| @@ -1,32 +1,32 @@ | ||
| 1 | 1 | (function() { |
| 2 | -"use strict";var wp;(wp||={}).blockEditor=(()=>{var d3e=Object.create;var kB=Object.defineProperty;var f3e=Object.getOwnPropertyDescriptor;var p3e=Object.getOwnPropertyNames;var m3e=Object.getPrototypeOf,g3e=Object.prototype.hasOwnProperty;var xe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),No=(e,t)=>{for(var o in t)kB(e,o,{get:t[o],enumerable:!0})},Tee=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of p3e(t))!g3e.call(e,n)&&n!==o&&kB(e,n,{get:()=>t[n],enumerable:!(r=f3e(t,n))||r.enumerable});return e};var c=(e,t,o)=>(o=e!=null?d3e(m3e(e)):{},Tee(t||!e||!e.__esModule?kB(o,"default",{value:e,enumerable:!0}):o,e)),h3e=e=>Tee(kB({},"__esModule",{value:!0}),e);var ce=xe((spt,Bee)=>{Bee.exports=window.wp.blocks});var F=xe((apt,Iee)=>{Iee.exports=window.wp.element});var te=xe((lpt,Pee)=>{Pee.exports=window.wp.data});var ue=xe((cpt,Oee)=>{Oee.exports=window.wp.compose});var Bo=xe((upt,Aee)=>{Aee.exports=window.wp.hooks});var Mt=xe((Opt,Zee)=>{Zee.exports=window.wp.deprecated});var Y=xe((Apt,Xee)=>{Xee.exports=window.wp.components});var T=xe((Mpt,Qee)=>{Qee.exports=window.ReactJSXRuntime});var ga=xe((Lpt,ete)=>{ete.exports=window.wp.url});var OB=xe((Fpt,rte)=>{rte.exports=window.wp.privateApis});var q=xe((qpt,ute)=>{ute.exports=window.wp.i18n});var lb=xe((Zpt,dte)=>{"use strict";dte.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 me=xe((smt,Ste)=>{Ste.exports=window.wp.primitives});var Ar=xe((Byt,Cte)=>{Cte.exports=window.wp.richText});var Tte=xe((Iyt,Ete)=>{Ete.exports=window.wp.blockSerializationDefaultParser});var k_=xe((Ayt,Bte)=>{Bte.exports=window.wp.styleEngine});var UP=xe((jyt,Fte)=>{"use strict";var HFe=function(t){return UFe(t)&&!WFe(t)};function UFe(e){return!!e&&typeof e=="object"}function WFe(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||YFe(e)}var GFe=typeof Symbol=="function"&&Symbol.for,$Fe=GFe?Symbol.for("react.element"):60103;function YFe(e){return e.$$typeof===$Fe}function KFe(e){return Array.isArray(e)?[]:{}}function hC(e,t){return t.clone!==!1&&t.isMergeableObject(e)?x_(KFe(e),e,t):e}function qFe(e,t,o){return e.concat(t).map(function(r){return hC(r,o)})}function ZFe(e,t){if(!t.customMerge)return x_;var o=t.customMerge(e);return typeof o=="function"?o:x_}function XFe(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Dte(e){return Object.keys(e).concat(XFe(e))}function Vte(e,t){try{return t in e}catch{return!1}}function QFe(e,t){return Vte(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function JFe(e,t,o){var r={};return o.isMergeableObject(e)&&Dte(e).forEach(function(n){r[n]=hC(e[n],o)}),Dte(t).forEach(function(n){QFe(e,n)||(Vte(e,n)&&o.isMergeableObject(t[n])?r[n]=ZFe(n,o)(e[n],t[n],o):r[n]=hC(t[n],o))}),r}function x_(e,t,o){o=o||{},o.arrayMerge=o.arrayMerge||qFe,o.isMergeableObject=o.isMergeableObject||HFe,o.cloneUnlessOtherwiseSpecified=hC;var r=Array.isArray(t),n=Array.isArray(e),i=r===n;return i?r?o.arrayMerge(e,t,o):JFe(e,t,o):hC(t,o)}x_.all=function(t,o){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,n){return x_(r,n,o)},{})};var e6e=x_;Fte.exports=e6e});var Yo=xe((f_t,Koe)=>{Koe.exports=window.wp.a11y});var Ls=xe((p_t,Joe)=>{Joe.exports=window.wp.notices});var B_=xe((m_t,ere)=>{ere.exports=window.wp.preferences});var Dre=xe((mwt,S2)=>{var Mre={\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"},Nre=Object.keys(Mre).join("|"),Q7e=new RegExp(Nre,"g"),J7e=new RegExp(Nre,"");function e9e(e){return Mre[e]}var Lre=function(e){return e.replace(Q7e,e9e)},t9e=function(e){return!!e.match(J7e)};S2.exports=Lre;S2.exports.has=t9e;S2.exports.remove=Lre});var wo=xe((oxt,Ane)=>{Ane.exports=window.wp.keycodes});var Lt=xe((wxt,Yne)=>{Yne.exports=window.wp.dom});var re=xe((zxt,aie)=>{aie.exports=window.React});var cie=xe((jxt,lie)=>{"use strict";var q9e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";lie.exports=q9e});var pie=xe((Hxt,fie)=>{"use strict";var Z9e=cie();function uie(){}function die(){}die.resetWarningCache=uie;fie.exports=function(){function e(r,n,i,s,a,l){if(l!==Z9e){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:die,resetWarningCache:uie};return o.PropTypes=o,o}});var gie=xe((Gxt,mie)=>{mie.exports=pie()();var Uxt,Wxt});var bie=xe((tO,hie)=>{(function(e,t){if(typeof define=="function"&&define.amd)define(["module","exports"],t);else if(typeof tO<"u")t(hie,tO);else{var o={exports:{}};t(o,o.exports),e.autosize=o.exports}})(tO,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,p){l.indexOf(f)===-1&&(l.push(f),u.push(p))},delete:function(f){var p=l.indexOf(f);p>-1&&(l.splice(p,1),u.splice(p,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 p(){var _=window.getComputedStyle(l,null);_.resize==="vertical"?l.style.resize="none":_.resize==="both"&&(l.style.resize="horizontal"),_.boxSizing==="content-box"?u=-(parseFloat(_.paddingTop)+parseFloat(_.paddingBottom)):u=parseFloat(_.borderTopWidth)+parseFloat(_.borderBottomWidth),isNaN(u)&&(u=0),b()}function m(_){{var w=l.style.width;l.style.width="0px",l.offsetWidth,l.style.width=w}l.style.overflowY=_}function g(_){for(var w=[];_&&_.parentNode&&_.parentNode instanceof Element;)_.parentNode.scrollTop&&w.push({node:_.parentNode,scrollTop:_.parentNode.scrollTop}),_=_.parentNode;return w}function h(){if(l.scrollHeight!==0){var _=g(l),w=document.documentElement&&document.documentElement.scrollTop;l.style.height="",l.style.height=l.scrollHeight+u+"px",d=l.clientWidth,_.forEach(function(k){k.node.scrollTop=k.scrollTop}),w&&(document.documentElement.scrollTop=w)}}function b(){h();var _=Math.round(parseFloat(l.style.height)),w=window.getComputedStyle(l,null),k=w.boxSizing==="content-box"?Math.round(parseFloat(w.height)):l.offsetHeight;if(k<_?w.overflowY==="hidden"&&(m("scroll"),h(),k=w.boxSizing==="content-box"?Math.round(parseFloat(window.getComputedStyle(l,null).height)):l.offsetHeight):w.overflowY!=="hidden"&&(m("hidden"),h(),k=w.boxSizing==="content-box"?Math.round(parseFloat(window.getComputedStyle(l,null).height)):l.offsetHeight),f!==k){f=k;var x=r("autosize:resized");try{l.dispatchEvent(x)}catch{}}}var v=function(){l.clientWidth!==d&&b()},y=function(_){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(_).forEach(function(w){l.style[w]=_[w]}),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}),p()}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 vie=xe(($xt,yie)=>{var X9e=function(e,t,o){return o=window.getComputedStyle,(o?o(e):e.currentStyle)[t.replace(/-(\w)/gi,function(r,n){return n.toUpperCase()})]};yie.exports=X9e});var wie=xe((Yxt,_ie)=>{var xH=vie();function Q9e(e){var t=xH(e,"line-height"),o=parseFloat(t,10);if(t===o+""){var r=e.style.lineHeight;e.style.lineHeight=t+"em",t=xH(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=" ",n.toUpperCase()==="TEXTAREA"&&i.setAttribute("rows","1");var s=xH(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}_ie.exports=Q9e});var xie=xe(If=>{"use strict";var J9e=If&&If.__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)}})(),SH=If&&If.__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},eje=If&&If.__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};If.__esModule=!0;var rO=re(),GC=gie(),oO=bie(),tje=wie(),oje=tje,kie="autosize:resized",rje=(function(e){J9e(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:oje(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&&oO(o.textarea)}):this.textarea&&oO(this.textarea),this.textarea&&this.textarea.addEventListener(kie,this.onResize)},t.prototype.componentWillUnmount=function(){this.textarea&&(this.textarea.removeEventListener(kie,this.onResize),oO.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=eje(n,["onResize","maxRows","onChange","style","innerRef","children"]),p=r.state.lineHeight,m=s&&p?p*s:null;return rO.createElement("textarea",SH({},f,{onChange:this.onChange,style:m?SH({},l,{maxHeight:m}):l,ref:function(g){o.textarea=g,typeof o.props.innerRef=="function"?o.props.innerRef(g):o.props.innerRef&&(o.props.innerRef.current=g)}}),d)},t.prototype.componentDidUpdate=function(){this.textarea&&oO.update(this.textarea)},t.defaultProps={rows:1,async:!1},t.propTypes={rows:GC.number,maxRows:GC.number,onResize:GC.func,innerRef:GC.any,async:GC.bool},t})(rO.Component);If.TextareaAutosize=rO.forwardRef(function(e,t){return rO.createElement(rje,SH({},e,{innerRef:t}))})});var CH=xe((qxt,Sie)=>{"use strict";var nje=xie();Sie.exports=nje.TextareaAutosize});var Y_=xe((eSt,Iie)=>{Iie.exports=window.wp.warning});var Of=xe((ySt,Ese)=>{Ese.exports=window.ReactDOM});var pl=xe((t0t,aae)=>{aae.exports=window.wp.keyboardShortcuts});var Sae=xe((gCt,xae)=>{xae.exports=window.wp.htmlEntities});var Tce=xe(Ece=>{"use strict";var ww=re();function tGe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var oGe=typeof Object.is=="function"?Object.is:tGe,rGe=ww.useState,nGe=ww.useEffect,iGe=ww.useLayoutEffect,sGe=ww.useDebugValue;function aGe(e,t){var o=t(),r=rGe({inst:{value:o,getSnapshot:t}}),n=r[0].inst,i=r[1];return iGe(function(){n.value=o,n.getSnapshot=t,wW(n)&&i({inst:n})},[e,o,t]),nGe(function(){return wW(n)&&i({inst:n}),e(function(){wW(n)&&i({inst:n})})},[e]),sGe(o),o}function wW(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!oGe(e,o)}catch{return!0}}function lGe(e,t){return t()}var cGe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?lGe:aGe;Ece.useSyncExternalStore=ww.useSyncExternalStore!==void 0?ww.useSyncExternalStore:cGe});var D1=xe((yBt,Rce)=>{"use strict";Rce.exports=Tce()});var Ice=xe(Bce=>{"use strict";var BA=re(),uGe=D1();function dGe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var fGe=typeof Object.is=="function"?Object.is:dGe,pGe=uGe.useSyncExternalStore,mGe=BA.useRef,gGe=BA.useEffect,hGe=BA.useMemo,bGe=BA.useDebugValue;Bce.useSyncExternalStoreWithSelector=function(e,t,o,r,n){var i=mGe(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=hGe(function(){function l(m){if(!u){if(u=!0,d=m,m=r(m),n!==void 0&&s.hasValue){var g=s.value;if(n(g,m))return f=g}return f=m}if(g=f,fGe(d,m))return g;var h=r(m);return n!==void 0&&n(g,h)?(d=m,g):(d=m,f=h)}var u=!1,d,f,p=o===void 0?null:o;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,o,r,n]);var a=pGe(e,i[0],i[1]);return gGe(function(){s.hasValue=!0,s.value=a},[a]),bGe(a),a}});var Oce=xe((_Bt,Pce)=>{"use strict";Pce.exports=Ice()});var Ege=xe((oqt,Cge)=>{Cge.exports=window.wp.theme});var xye=xe((Feo,kye)=>{kye.exports=window.wp.uploadMedia});var Gve=xe((Ooo,iK)=>{var wt=String,Wve=function(){return{isColorSupported:!1,reset:wt,bold:wt,dim:wt,italic:wt,underline:wt,inverse:wt,hidden:wt,strikethrough:wt,black:wt,red:wt,green:wt,yellow:wt,blue:wt,magenta:wt,cyan:wt,white:wt,gray:wt,bgBlack:wt,bgRed:wt,bgGreen:wt,bgYellow:wt,bgBlue:wt,bgMagenta:wt,bgCyan:wt,bgWhite:wt,blackBright:wt,redBright:wt,greenBright:wt,yellowBright:wt,blueBright:wt,magentaBright:wt,cyanBright:wt,whiteBright:wt,bgBlackBright:wt,bgRedBright:wt,bgGreenBright:wt,bgYellowBright:wt,bgBlueBright:wt,bgMagentaBright:wt,bgCyanBright:wt,bgWhiteBright:wt}};iK.exports=Wve();iK.exports.createColors=Wve});var sK=xe(()=>{});var cD=xe((Noo,Kve)=>{"use strict";var $ve=Gve(),Yve=sK(),IE=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=$ve.isColorSupported);let r=d=>d,n=d=>d,i=d=>d;if(t){let{bold:d,gray:f,red:p}=$ve.createColors(!0);n=m=>d(p(m)),r=m=>f(m),Yve&&(i=m=>Yve(m))}let s=o.split(/\r?\n/),a=Math.max(this.line-3,0),l=Math.min(this.line+2,s.length),u=String(l).length;return s.slice(a,l).map((d,f)=>{let p=a+1+f,m=" "+(" "+p).slice(-u)+" | ";if(p===this.line){if(d.length>160){let h=20,b=Math.max(0,this.column-h),v=Math.max(this.column+h,this.endColumn+h),y=d.slice(b,v),_=r(m.replace(/\d/g," "))+d.slice(0,Math.min(this.column-1,h-1)).replace(/[^\t]/g," ");return n(">")+r(m)+i(y)+` | |
| 3 | - `+_+n("^")}let g=r(m.replace(/\d/g," "))+d.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+r(m)+i(d)+` | |
| 4 | - `+g+n("^")}return" "+r(m)+i(d)}).join(` | |
| 2 | +"use strict";var wp;(wp||={}).blockEditor=(()=>{var kFe=Object.create;var p3=Object.defineProperty;var SFe=Object.getOwnPropertyDescriptor;var CFe=Object.getOwnPropertyNames;var EFe=Object.getPrototypeOf,TFe=Object.prototype.hasOwnProperty;var Pe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ro=(e,t)=>{for(var o in t)p3(e,o,{get:t[o],enumerable:!0})},qre=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of CFe(t))!TFe.call(e,n)&&n!==o&&p3(e,n,{get:()=>t[n],enumerable:!(r=SFe(t,n))||r.enumerable});return e};var c=(e,t,o)=>(o=e!=null?kFe(EFe(e)):{},qre(t||!e||!e.__esModule?p3(o,"default",{value:e,enumerable:!0}):o,e)),RFe=e=>qre(p3({},"__esModule",{value:!0}),e);var ce=Pe((Swt,Zre)=>{Zre.exports=window.wp.blocks});var D=Pe((Cwt,Qre)=>{Qre.exports=window.wp.element});var oe=Pe((Ewt,Jre)=>{Jre.exports=window.wp.data});var ue=Pe((Twt,ene)=>{ene.exports=window.wp.compose});var To=Pe((Rwt,tne)=>{tne.exports=window.wp.hooks});var Gt=Pe((Xwt,_ne)=>{_ne.exports=window.wp.deprecated});var Q=Pe((Zwt,vne)=>{vne.exports=window.wp.components});var T=Pe((Qwt,yne)=>{yne.exports=window.ReactJSXRuntime});var ml=Pe((e0t,xne)=>{xne.exports=window.wp.url});var S3=Pe((r0t,Ene)=>{Ene.exports=window.wp.privateApis});var X=Pe((p0t,Mne)=>{Mne.exports=window.wp.i18n});var $b=Pe((m0t,Ane)=>{"use strict";Ane.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 ve=Pe((S0t,Kne)=>{Kne.exports=window.wp.primitives});var pn=Pe((USt,qne)=>{qne.exports=window.wp.richText});var Zne=Pe((WSt,Xne)=>{Xne.exports=window.wp.blockSerializationDefaultParser});var Sw=Pe((YSt,Jne)=>{Jne.exports=window.wp.styleEngine});var j4=Pe((tCt,cie)=>{"use strict";var Qze=function(t){return Jze(t)&&!eje(t)};function Jze(e){return!!e&&typeof e=="object"}function eje(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||rje(e)}var tje=typeof Symbol=="function"&&Symbol.for,oje=tje?Symbol.for("react.element"):60103;function rje(e){return e.$$typeof===oje}function nje(e){return Array.isArray(e)?[]:{}}function FE(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Cw(nje(e),e,t):e}function ije(e,t,o){return e.concat(t).map(function(r){return FE(r,o)})}function sje(e,t){if(!t.customMerge)return Cw;var o=t.customMerge(e);return typeof o=="function"?o:Cw}function aje(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function aie(e){return Object.keys(e).concat(aje(e))}function lie(e,t){try{return t in e}catch{return!1}}function lje(e,t){return lie(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function cje(e,t,o){var r={};return o.isMergeableObject(e)&&aie(e).forEach(function(n){r[n]=FE(e[n],o)}),aie(t).forEach(function(n){lje(e,n)||(lie(e,n)&&o.isMergeableObject(t[n])?r[n]=sje(n,o)(e[n],t[n],o):r[n]=FE(t[n],o))}),r}function Cw(e,t,o){o=o||{},o.arrayMerge=o.arrayMerge||ije,o.isMergeableObject=o.isMergeableObject||Qze,o.cloneUnlessOtherwiseSpecified=FE;var r=Array.isArray(t),n=Array.isArray(e),i=r===n;return i?r?o.arrayMerge(e,t,o):cje(e,t,o):FE(t,o)}Cw.all=function(t,o){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,n){return Cw(r,n,o)},{})};var dje=Cw;cie.exports=dje});var zo=Pe((EEt,bse)=>{bse.exports=window.wp.a11y});var Ks=Pe((TEt,xse)=>{xse.exports=window.wp.notices});var sae=Pe((RTt,x9)=>{var rae={\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"},nae=Object.keys(rae).join("|"),c$e=new RegExp(nae,"g"),d$e=new RegExp(nae,"");function u$e(e){return rae[e]}var iae=function(e){return e.replace(c$e,u$e)},f$e=function(e){return!!e.match(d$e)};x9.exports=iae;x9.exports.has=f$e;x9.exports.remove=iae});var te=Pe((t5t,qae)=>{qae.exports=window.React});var bu=Pe((V2t,Ple)=>{Ple.exports=window.ReactDOM});var lde=Pe(ade=>{"use strict";var i0=te();function Eqe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Tqe=typeof Object.is=="function"?Object.is:Eqe,Rqe=i0.useState,Iqe=i0.useEffect,Pqe=i0.useLayoutEffect,Bqe=i0.useDebugValue;function Oqe(e,t){var o=t(),r=Rqe({inst:{value:o,getSnapshot:t}}),n=r[0].inst,i=r[1];return Pqe(function(){n.value=o,n.getSnapshot=t,sG(n)&&i({inst:n})},[e,o,t]),Iqe(function(){return sG(n)&&i({inst:n}),e(function(){sG(n)&&i({inst:n})})},[e]),Bqe(o),o}function sG(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!Tqe(e,o)}catch{return!0}}function Mqe(e,t){return t()}var Aqe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Mqe:Oqe;ade.useSyncExternalStore=i0.useSyncExternalStore!==void 0?i0.useSyncExternalStore:Aqe});var MT=Pe((u9t,cde)=>{"use strict";cde.exports=lde()});var ude=Pe(dde=>{"use strict";var TP=te(),Nqe=MT();function Lqe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Dqe=typeof Object.is=="function"?Object.is:Lqe,Vqe=Nqe.useSyncExternalStore,Fqe=TP.useRef,zqe=TP.useEffect,jqe=TP.useMemo,Hqe=TP.useDebugValue;dde.useSyncExternalStoreWithSelector=function(e,t,o,r,n){var i=Fqe(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=jqe(function(){function l(m){if(!d){if(d=!0,u=m,m=r(m),n!==void 0&&s.hasValue){var g=s.value;if(n(g,m))return f=g}return f=m}if(g=f,Dqe(u,m))return g;var h=r(m);return n!==void 0&&n(g,h)?(u=m,g):(u=m,f=h)}var d=!1,u,f,p=o===void 0?null:o;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,o,r,n]);var a=Vqe(e,i[0],i[1]);return zqe(function(){s.hasValue=!0,s.value=a},[a]),Hqe(a),a}});var pde=Pe((p9t,fde)=>{"use strict";fde.exports=ude()});var tge=Pe((O$t,ege)=>{ege.exports=window.wp.theme});var ix=Pe((Jdo,Hye)=>{Hye.exports=window.wp.warning});var Mo=Pe((kpo,n0e)=>{n0e.exports=window.wp.keycodes});var Ut=Pe((Hpo,_0e)=>{_0e.exports=window.wp.dom});var Wl=Pe((dgo,uke)=>{uke.exports=window.wp.keyboardShortcuts});var Rke=Pe((Cho,Tke)=>{Tke.exports=window.wp.htmlEntities});var Nke=Pe((Aho,Ake)=>{Ake.exports=window.wp.uploadMedia});var aSe=Pe((P_o,kZ)=>{var Bt=String,sSe=function(){return{isColorSupported:!1,reset:Bt,bold:Bt,dim:Bt,italic:Bt,underline:Bt,inverse:Bt,hidden:Bt,strikethrough:Bt,black:Bt,red:Bt,green:Bt,yellow:Bt,blue:Bt,magenta:Bt,cyan:Bt,white:Bt,gray:Bt,bgBlack:Bt,bgRed:Bt,bgGreen:Bt,bgYellow:Bt,bgBlue:Bt,bgMagenta:Bt,bgCyan:Bt,bgWhite:Bt,blackBright:Bt,redBright:Bt,greenBright:Bt,yellowBright:Bt,blueBright:Bt,magentaBright:Bt,cyanBright:Bt,whiteBright:Bt,bgBlackBright:Bt,bgRedBright:Bt,bgGreenBright:Bt,bgYellowBright:Bt,bgBlueBright:Bt,bgMagentaBright:Bt,bgCyanBright:Bt,bgWhiteBright:Bt}};kZ.exports=sSe();kZ.exports.createColors=sSe});var SZ=Pe(()=>{});var Q8=Pe((M_o,dSe)=>{"use strict";var lSe=aSe(),cSe=SZ(),w5=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=lSe.isColorSupported);let r=u=>u,n=u=>u,i=u=>u;if(t){let{bold:u,gray:f,red:p}=lSe.createColors(!0);n=m=>u(p(m)),r=m=>f(m),cSe&&(i=m=>cSe(m))}let s=o.split(/\r?\n/),a=Math.max(this.line-3,0),l=Math.min(this.line+2,s.length),d=String(l).length;return s.slice(a,l).map((u,f)=>{let p=a+1+f,m=" "+(" "+p).slice(-d)+" | ";if(p===this.line){if(u.length>160){let h=20,b=Math.max(0,this.column-h),v=Math.max(this.column+h,this.endColumn+h),_=u.slice(b,v),y=r(m.replace(/\d/g," "))+u.slice(0,Math.min(this.column-1,h-1)).replace(/[^\t]/g," ");return n(">")+r(m)+i(_)+` | |
| 3 | + `+y+n("^")}let g=r(m.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+r(m)+i(u)+` | |
| 4 | + `+g+n("^")}return" "+r(m)+i(u)}).join(` | |
| 5 | 5 | `)}toString(){let t=this.showSourceCode();return t&&(t=` |
| 6 | 6 | |
| 7 | 7 | `+t+` |
| 8 | -`),this.name+": "+this.message+t}};Kve.exports=IE;IE.default=IE});var aK=xe((Loo,Jve)=>{"use strict";var wQe=/(<)(\/?style\b)/gi,kQe=/(<)(!--)/g,xQe=/[\t\n\f\r "#'()/;[\\\]{}]/;function Yc(e){return typeof e!="string"||!e.includes("<")?e:e.replace(wQe,"\\3c $2").replace(kQe,"\\3c $2")}var qve={after:` | |
| 8 | +`),this.name+": "+this.message+t}};dSe.exports=w5;w5.default=w5});var CZ=Pe((A_o,gSe)=>{"use strict";var Kst=/(<)(\/?style\b)/gi,qst=/(<)(!--)/g,Xst=/[\t\n\f\r "#'()/;[\\\]{}]/;function ud(e){return typeof e!="string"||!e.includes("<")?e:e.replace(Kst,"\\3c $2").replace(qst,"\\3c $2")}var uSe={after:` | |
| 9 | 9 | `,beforeClose:` |
| 10 | 10 | `,beforeComment:` |
| 11 | 11 | `,beforeDecl:` |
| 12 | 12 | `,beforeOpen:" ",beforeRule:` |
| 13 | -`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function SQe(e){return e[0].toUpperCase()+e.slice(1)}function Zve(e,t){let o="@"+t.name,r=t.params?e.rawValue(t,"params"):"",n=t.raws.afterName;return typeof n>"u"?n=r?" ":"":n===""&&r&&!xQe.test(r[0])&&(n=" "),o+n+r}function Qve(e,t,o){let r=o.nodes,n=r.length-1;for(;n>0&&r[n].type==="comment";)n-=1;let i=e.raw(o,"semicolon"),s=o.type==="document";for(let a=r.length-1;a>=0;a--){let l=r[a],u=n!==a||i;!u&&a<r.length-1&&(l.type==="atrule"&&!l.nodes||l.type==="decl"&&l.prop.startsWith("--"))&&(u=!0),t.push({document:s,node:l,semicolon:u})}}function Xve(e,t,o,r){let n=e.raw(o,"between","beforeOpen");e.builder(Yc(r+n)+"{",o,"start");let i=o.nodes&&o.nodes.length,s=()=>{let a=i?e.raw(o,"after"):e.raw(o,"after","emptyBody");a&&e.builder(Yc(a)),e.builder("}",o,"end"),o.type==="rule"&&o.raws.ownSemicolon&&e.builder(Yc(o.raws.ownSemicolon),o,"end")};i?(t.push(s),Qve(e,t,o)):s()}var PE=class e{constructor(t){this.builder=t}atrule(t,o){let r=Zve(this,t);if(t.nodes)this.block(t,r);else{let n=(t.raws.between||"")+(o?";":"");this.builder(Yc(r+n),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(` | |
| 14 | -`)){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(Yc(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(Yc(n)),this.builder("}",t,"end")}body(t){let o=e.prototype,r=["atrule","block","body","rule","stringify"].every(i=>this[i]===o[i]),n=[];for(Qve(this,n,t);n.length>0;){let i=n.pop();if(typeof i=="function"){i();continue}let s=i.node,a=this.raw(s,"before");a&&this.builder(i.document?a:Yc(a)),r&&s.type==="rule"?Xve(this,n,s,this.rawValue(s,"selector")):r&&s.type==="atrule"&&s.nodes?Xve(this,n,s,Zve(this,s)):this.stringify(s,i.semicolon)}}comment(t){let o=this.raw(t,"left","commentLeft"),r=this.raw(t,"right","commentRight");this.builder(Yc("/*"+o+t.text+r+"*/"),t)}decl(t,o){let r=t.raws,n=this.raw(t,"between","colon"),i=t.prop+n+this.rawValue(t,"value");t.important&&(i+=r.important||" !important"),o&&(i+=";"),this.builder(Yc(i),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 qve[r];let s=t.root(),a=s.rawCache||(s.rawCache={});if(typeof a[r]<"u")return a[r];if(r==="before"||r==="after")return this.beforeAfter(t,r);{let l="raw"+SQe(r);this[l]?n=this[l](s,t):s.walk(u=>{if(n=u.raws[o],typeof n<"u")return!1})}return typeof n>"u"&&(n=qve[r]),a[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(` | |
| 13 | +`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Zst(e){return e[0].toUpperCase()+e.slice(1)}function fSe(e,t){let o="@"+t.name,r=t.params?e.rawValue(t,"params"):"",n=t.raws.afterName;return typeof n>"u"?n=r?" ":"":n===""&&r&&!Xst.test(r[0])&&(n=" "),o+n+r}function mSe(e,t,o){let r=o.nodes,n=r.length-1;for(;n>0&&r[n].type==="comment";)n-=1;let i=e.raw(o,"semicolon"),s=o.type==="document";for(let a=r.length-1;a>=0;a--){let l=r[a],d=n!==a||i;!d&&a<r.length-1&&(l.type==="atrule"&&!l.nodes||l.type==="decl"&&l.prop.startsWith("--"))&&(d=!0),t.push({document:s,node:l,semicolon:d})}}function pSe(e,t,o,r){let n=e.raw(o,"between","beforeOpen");e.builder(ud(r+n)+"{",o,"start");let i=o.nodes&&o.nodes.length,s=()=>{let a=i?e.raw(o,"after"):e.raw(o,"after","emptyBody");a&&e.builder(ud(a)),e.builder("}",o,"end"),o.type==="rule"&&o.raws.ownSemicolon&&e.builder(ud(o.raws.ownSemicolon),o,"end")};i?(t.push(s),mSe(e,t,o)):s()}var x5=class e{constructor(t){this.builder=t}atrule(t,o){let r=fSe(this,t);if(t.nodes)this.block(t,r);else{let n=(t.raws.between||"")+(o?";":"");this.builder(ud(r+n),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(` | |
| 14 | +`)){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(ud(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(ud(n)),this.builder("}",t,"end")}body(t){let o=e.prototype,r=["atrule","block","body","rule","stringify"].every(i=>this[i]===o[i]),n=[];for(mSe(this,n,t);n.length>0;){let i=n.pop();if(typeof i=="function"){i();continue}let s=i.node,a=this.raw(s,"before");a&&this.builder(i.document?a:ud(a)),r&&s.type==="rule"?pSe(this,n,s,this.rawValue(s,"selector")):r&&s.type==="atrule"&&s.nodes?pSe(this,n,s,fSe(this,s)):this.stringify(s,i.semicolon)}}comment(t){let o=this.raw(t,"left","commentLeft"),r=this.raw(t,"right","commentRight");this.builder(ud("/*"+o+t.text+r+"*/"),t)}decl(t,o){let r=t.raws,n=this.raw(t,"between","colon"),i=t.prop+n+this.rawValue(t,"value");t.important&&(i+=r.important||" !important"),o&&(i+=";"),this.builder(ud(i),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 uSe[r];let s=t.root(),a=s.rawCache||(s.rawCache={});if(typeof a[r]<"u")return a[r];if(r==="before"||r==="after")return this.beforeAfter(t,r);{let l="raw"+Zst(r);this[l]?n=this[l](s,t):s.walk(d=>{if(n=d.raws[o],typeof n<"u")return!1})}return typeof n>"u"&&(n=uSe[r]),a[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(` | |
| 15 | 15 | `)&&(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(` |
| 16 | 16 | `)&&(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(` |
| 17 | 17 | `)&&(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(` |
| 18 | 18 | `)&&(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(` |
| 19 | -`);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){if(t.source&&t.source.input.hasBOM&&this.builder("\uFEFF",t,"start"),this.body(t),t.raws.after){let o=t.raws.after,r=t.parent&&t.parent.type==="document";this.builder(r?o:Yc(o))}}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(Yc(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)}};Jve.exports=PE;PE.default=PE});var uD=xe((Doo,e_e)=>{"use strict";var CQe=aK();function lK(e,t){new CQe(t).stringify(e)}e_e.exports=lK;lK.default=lK});var OE=xe((Voo,cK)=>{"use strict";cK.exports.isClean=Symbol("isClean");cK.exports.my=Symbol("my")});var dD=xe((Foo,t_e)=>{"use strict";var EQe=cD(),TQe=aK(),RQe=uD(),{isClean:AE,my:BQe}=OE();function IQe(e,t){let o=new e.constructor,r=[[e,o,t]];for(;r.length>0;){let[n,i,s]=r.pop();for(let a in n){if(!Object.prototype.hasOwnProperty.call(n,a)||a==="proxyCache")continue;let l=n[a],u=typeof l;if(a==="parent"&&u==="object")s&&(i[a]=s);else if(a==="source")i[a]=l;else if(Array.isArray(l)){let d=[];i[a]=d;for(let f of l){let p=new f.constructor;d.push(p),r.push([f,p,i])}}else{if(u==="object"&&l!==null){let d=new l.constructor;r.push([l,d,void 0]),l=d}i[a]=l}}}return o}function bd(e,t){if(t&&typeof t.offset<"u")return t.offset;let o=1,r=1,n=0;for(let i=0;i<e.length;i++){if(r===t.line&&o===t.column){n=i;break}e[i]===` | |
| 20 | -`?(o=1,r+=1):o+=1}return n}var ME=class e{get proxyOf(){return this}constructor(t={}){this.raws={},this[AE]=!1,this[BQe]=!0;for(let o of Object.keys(t))if(o!=="__proto__")if(o==="nodes"){this.nodes=[];for(let r of t[o])typeof r.clone=="function"&&r.parent?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=IQe(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 EQe(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}}}markClean(){this[AE]=!0}markDirty(){if(this[AE]){this[AE]=!1;let t=this;for(;t=t.parent;)t[AE]=!1}}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}positionBy(t={}){let o="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:bd(o,this.source.start)};if(t.index)r=this.positionInside(t.index);else if(t.word){let i=o.slice(bd(o,this.source.start),bd(o,this.source.end)).indexOf(t.word);i!==-1&&(r=this.positionInside(i))}return r}positionInside(t){let o=this.source.start.column,r=this.source.start.line,n="document"in this.source.input?this.source.input.document:this.source.input.css,i=bd(n,this.source.start),s=i+t;for(let a=i;a<s;a++)n[a]===` | |
| 21 | -`?(o=1,r+=1):o+=1;return{column:o,line:r,offset:s}}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}rangeBy(t={}){let o="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:bd(o,this.source.start)},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:bd(o,this.source.end)+1}:{column:r.column+1,line:r.line,offset:r.offset+1};if(t.word){let s=o.slice(bd(o,this.source.start),bd(o,this.source.end)).indexOf(t.word);s!==-1&&(r=this.positionInside(s),n=this.positionInside(s+t.word.length))}else t.start?r={column:t.start.column,line:t.start.line,offset:bd(o,t.start)}:typeof t.index=="number"&&(r=this.positionInside(t.index)),t.end?n={column:t.end.column,line:t.end.line,offset:bd(o,t.end)}:typeof t.endIndex=="number"?n=this.positionInside(t.endIndex):typeof t.index=="number"&&(n=this.positionInside(t.index+1));return(n.line<r.line||n.line===r.line&&n.column<=r.column)&&(n={column:r.column+1,line:r.line,offset:r.offset+1}),{end:n,start:r}}raw(t,o){return new TQe().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=o==null;o=o||new Map;let n=[],i=[[this,n,0]];for(let a=0;a<i.length;a++){let[l,u,d]=i[a],f={};u[d]=f;for(let p in l){if(!Object.prototype.hasOwnProperty.call(l,p)||p==="parent"||p==="proxyCache")continue;let m=l[p];if(Array.isArray(m)){let g=[];f[p]=g;for(let h=0;h<m.length;h++){let b=m[h];typeof b=="object"&&b.toJSON?b.toJSON===e.prototype.toJSON?i.push([b,g,h]):g[h]=b.toJSON(null,o):g[h]=b}}else if(typeof m=="object"&&m.toJSON)m.toJSON===e.prototype.toJSON?i.push([m,f,p]):f[p]=m.toJSON(null,o);else if(p==="source"){if(m==null)continue;let g=o.get(m.input);g==null&&(g=o.size,o.set(m.input,g)),f[p]={end:m.end,inputId:g,start:m.start}}else f[p]=m}}let s=n[0];return r&&(s.inputs=[...o.keys()].map(a=>a.toJSON())),s}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(t=RQe){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)}};t_e.exports=ME;ME.default=ME});var uK=xe((zoo,o_e)=>{"use strict";var PQe=dD(),NE=class extends PQe{constructor(t){super(t),this.type="comment"}};o_e.exports=NE;NE.default=NE});var dK=xe((joo,r_e)=>{"use strict";var OQe=dD(),LE=class extends OQe{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(t){t&&typeof t.value<"u"&&typeof t.value!="string"&&(t={...t,value:String(t.value)}),super(t),this.type="decl"}};r_e.exports=LE;LE.default=LE});var Rg=xe((Hoo,d_e)=>{"use strict";var i_e=uK(),s_e=dK(),n_e=dD(),{isClean:a_e,my:l_e}=OE(),fK,c_e,u_e,pK;function AQe(e){let t=e.slice();for(;t.length>0;){let o=t.pop();if(delete o.source,o.nodes){o.nodes=o.nodes.slice();for(let r of o.nodes)t.push(r)}}return e.slice()}function MQe(e){let t=[e];for(;t.length>0;){let o=t.pop();if(o[a_e]=!1,o.proxyOf.nodes)for(let r of o.proxyOf.nodes)t.push(r)}}var yd=class e extends n_e{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]}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){let o=[this];for(;o.length>0;){let r=o.pop();if(r!==this&&r.cleanRaws!==e.prototype.cleanRaws){r.cleanRaws(t);continue}if(n_e.prototype.cleanRaws.call(r,t),r.nodes)for(let n of r.nodes)o.push(n)}}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=AQe(c_e(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 s_e(t)]}else if(t.selector||t.selectors)t=[new pK(t)];else if(t.name)t=[new fK(t)];else if(t.text)t=[new i_e(t)];else throw new Error("Unknown node type in node creation");return t.map(n=>(n[l_e]||e.rebuild(n),n=n.proxyOf,n.parent&&n.parent.removeChild(n),n[a_e]&&MQe(n),n.raws||(n.raws={}),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){if(!this.proxyOf.nodes)return;let o=[{iterator:this.getIterator(),node:this.proxyOf}];for(;o.length>0;){let{iterator:r,node:n}=o[o.length-1],i=n.indexes[r];if(i>=n.proxyOf.nodes.length){delete n.indexes[r],o.pop();let l=o[o.length-1];l&&(l.node.indexes[l.iterator]+=1);continue}let s=n.proxyOf.nodes[i],a;try{a=t(s,i)}catch(l){throw s.addToError(l)}if(a===!1){for(let l of o)delete l.node.indexes[l.iterator];return!1}s.walk&&s.proxyOf.nodes?o.push({iterator:s.getIterator(),node:s}):n.indexes[r]+=1}}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)}))}};yd.registerParse=e=>{c_e=e};yd.registerRule=e=>{pK=e};yd.registerAtRule=e=>{fK=e};yd.registerRoot=e=>{u_e=e};d_e.exports=yd;yd.default=yd;yd.rebuild=e=>{let t=[e];for(;t.length>0;){let o=t.pop();if(o.type==="atrule"?Object.setPrototypeOf(o,fK.prototype):o.type==="rule"?Object.setPrototypeOf(o,pK.prototype):o.type==="decl"?Object.setPrototypeOf(o,s_e.prototype):o.type==="comment"?Object.setPrototypeOf(o,i_e.prototype):o.type==="root"&&Object.setPrototypeOf(o,u_e.prototype),o[l_e]=!0,o.nodes)for(let r of o.nodes)t.push(r)}}});var mK=xe((Uoo,m_e)=>{"use strict";var NQe=Rg(),f_e,p_e,Iy=class extends NQe{constructor(t){super({type:"document",...t}),this.nodes||(this.nodes=[])}toResult(t={}){return new f_e(new p_e,this,t).stringify()}};Iy.registerLazyResult=e=>{f_e=e};Iy.registerProcessor=e=>{p_e=e};m_e.exports=Iy;Iy.default=Iy});var fD=xe(()=>{});var pD=xe(()=>{});var gK=xe(()=>{});var h_e=xe((Zoo,g_e)=>{var LQe="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",DQe=(e,t=21)=>(o=t)=>{let r="",n=o|0;for(;n-- >0;)r+=e[Math.random()*e.length|0];return r},VQe=(e=21)=>{let t="",o=e|0;for(;o-- >0;)t+=LQe[Math.random()*64|0];return t};g_e.exports={nanoid:VQe,customAlphabet:DQe}});var b_e=xe(()=>{});var k_e=xe((Joo,w_e)=>{"use strict";var{existsSync:FQe,readFileSync:zQe,realpathSync:jQe}=b_e(),{dirname:mD,isAbsolute:HQe,join:UQe,relative:WQe,sep:GQe}=fD(),{SourceMapConsumer:y_e,SourceMapGenerator:v_e}=pD();function __e(e){try{return jQe(e)}catch{return e}}function $Qe(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var DE=class{constructor(t,o){if(o.map===!1)return;o.unsafeMap&&(this.unsafeMap=!0),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=mD(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new y_e(this.json||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,/,s=t.match(n)||t.match(i);if(s)return decodeURIComponent(t.substr(s[0].length));let a=t.match(o)||t.match(r);if(a)return $Qe(t.substr(a[0].length));let l=t.slice(22);throw l=l.slice(0,l.indexOf(",")),new Error("Unsupported source map encoding "+l)}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=/g);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,o,r){if(!r&&!this.unsafeMap){if(!/\.map$/i.test(t)||!o)return;let n=WQe(__e(mD(o)),__e(t));if(n===".."||n.startsWith(".."+GQe)||HQe(n))return}if(this.root=mD(t),FQe(t))return this.mapFile=t,zQe(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,t,!0);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(o instanceof y_e)return v_e.fromSourceMap(o).toString();if(o instanceof v_e)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;t&&(r=UQe(mD(t),r));let n=this.loadFile(r,t,!1);if(n)try{this.json=JSON.parse(n.replace(/^\)]}'[^\n]*\n/,""))}catch{return}return n}}}startWith(t,o){return t?t.substr(0,o.length)===o:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};w_e.exports=DE;DE.default=DE});var _K=xe((ero,T_e)=>{"use strict";var{nanoid:YQe}=h_e(),{isAbsolute:yK,resolve:vK}=fD(),{SourceMapConsumer:KQe,SourceMapGenerator:qQe}=pD(),{fileURLToPath:x_e,pathToFileURL:gD}=gK(),S_e=cD(),ZQe=k_e(),hK=sK(),bK=Symbol("lineToIndexCache"),XQe=!!(KQe&&qQe),C_e=!!(vK&&yK);function E_e(e){if(e[bK])return e[bK];let t=e.css.split(` | |
| 22 | -`),o=new Array(t.length),r=0;for(let n=0,i=t.length;n<i;n++)o[n]=r,r+=t[n].length+1;return e[bK]=o,o}var Bk=class{get from(){return this.file||this.id}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,this.document=this.css,o.document&&(this.document=o.document.toString()),o.from&&(!C_e||/^\w+:\/\//.test(o.from)||yK(o.from)?this.file=o.from:this.file=vK(o.from)),C_e&&XQe){let r=new ZQe(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 "+YQe(6)+">"),this.map&&(this.map.file=this.from)}error(t,o,r,n={}){let i,s,a,l,u;if(o&&typeof o=="object"){let f=o,p=r;if(typeof f.offset=="number"){l=f.offset;let m=this.fromOffset(l);o=m.line,r=m.col}else o=f.line,r=f.column,l=this.fromLineAndColumn(o,r);if(typeof p.offset=="number"){a=p.offset;let m=this.fromOffset(a);s=m.line,i=m.col}else s=p.line,i=p.column,a=this.fromLineAndColumn(p.line,p.column)}else if(r)l=this.fromLineAndColumn(o,r);else{l=o;let f=this.fromOffset(l);o=f.line,r=f.col}let d=this.origin(o,r,s,i);return d?u=new S_e(t,d.endLine===void 0?d.line:{column:d.column,line:d.line},d.endLine===void 0?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,n.plugin):u=new S_e(t,s===void 0?o:{column:r,line:o},s===void 0?r:{column:i,line:s},this.css,this.file,n.plugin),u.input={column:r,endColumn:i,endLine:s,endOffset:a,line:o,offset:l,source:this.css},this.file&&(gD&&(u.input.url=gD(this.file).toString()),u.input.file=this.file),u}fromLineAndColumn(t,o){return E_e(this)[t-1]+o-1}fromOffset(t){let o=E_e(this),r=o[o.length-1],n=0;if(t>=r)n=o.length-1;else{let i=o.length-2,s;for(;n<i;)if(s=n+(i-n>>1),t<o[s])i=s-1;else if(t>=o[s+1])n=s+1;else{n=s;break}}return{col:t-o[n]+1,line:n+1}}mapResolve(t){return/^\w+:\/\//.test(t)?t:vK(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-1,line:t});if(!s.source)return!1;let a;if(typeof r=="number"){let f=i.originalPositionFor({column:n-1,line:r});f.source&&(a=f)}let l;yK(s.source)?l=gD(s.source):l=new URL(s.source,this.map.consumer().sourceRoot||gD(this.map.mapFile));let u={column:s.column+1,endColumn:a&&a.column+1,endLine:a&&a.line,line:s.line,url:l.toString()};if(l.protocol==="file:")if(x_e)u.file=x_e(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}};T_e.exports=Bk;Bk.default=Bk;hK&&hK.registerInput&&hK.registerInput(Bk)});var kK=xe((tro,A_e)=>{"use strict";var{dirname:hD,relative:B_e,resolve:I_e,sep:P_e}=fD(),{SourceMapConsumer:O_e,SourceMapGenerator:bD}=pD(),{pathToFileURL:R_e}=gK(),QQe=_K(),JQe=!!(O_e&&bD),eJe=!!(hD&&I_e&&B_e&&P_e),wK=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=` | |
| 19 | +`);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){if(t.source&&t.source.input.hasBOM&&this.builder("\uFEFF",t,"start"),this.body(t),t.raws.after){let o=t.raws.after,r=t.parent&&t.parent.type==="document";this.builder(r?o:ud(o))}}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(ud(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)}};gSe.exports=x5;x5.default=x5});var J8=Pe((N_o,hSe)=>{"use strict";var Qst=CZ();function EZ(e,t){new Qst(t).stringify(e)}hSe.exports=EZ;EZ.default=EZ});var k5=Pe((L_o,TZ)=>{"use strict";TZ.exports.isClean=Symbol("isClean");TZ.exports.my=Symbol("my")});var eM=Pe((D_o,bSe)=>{"use strict";var Jst=Q8(),eat=CZ(),tat=J8(),{isClean:S5,my:oat}=k5();function rat(e,t){let o=new e.constructor,r=[[e,o,t]];for(;r.length>0;){let[n,i,s]=r.pop();for(let a in n){if(!Object.prototype.hasOwnProperty.call(n,a)||a==="proxyCache")continue;let l=n[a],d=typeof l;if(a==="parent"&&d==="object")s&&(i[a]=s);else if(a==="source")i[a]=l;else if(Array.isArray(l)){let u=[];i[a]=u;for(let f of l){let p=new f.constructor;u.push(p),r.push([f,p,i])}}else{if(d==="object"&&l!==null){let u=new l.constructor;r.push([l,u,void 0]),l=u}i[a]=l}}}return o}function Vu(e,t){if(t&&typeof t.offset<"u")return t.offset;let o=1,r=1,n=0;for(let i=0;i<e.length;i++){if(r===t.line&&o===t.column){n=i;break}e[i]===` | |
| 20 | +`?(o=1,r+=1):o+=1}return n}var C5=class e{get proxyOf(){return this}constructor(t={}){this.raws={},this[S5]=!1,this[oat]=!0;for(let o of Object.keys(t))if(o!=="__proto__")if(o==="nodes"){this.nodes=[];for(let r of t[o])typeof r.clone=="function"&&r.parent?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=rat(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 Jst(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}}}markClean(){this[S5]=!0}markDirty(){if(this[S5]){this[S5]=!1;let t=this;for(;t=t.parent;)t[S5]=!1}}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}positionBy(t={}){let o="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:Vu(o,this.source.start)};if(t.index)r=this.positionInside(t.index);else if(t.word){let i=o.slice(Vu(o,this.source.start),Vu(o,this.source.end)).indexOf(t.word);i!==-1&&(r=this.positionInside(i))}return r}positionInside(t){let o=this.source.start.column,r=this.source.start.line,n="document"in this.source.input?this.source.input.document:this.source.input.css,i=Vu(n,this.source.start),s=i+t;for(let a=i;a<s;a++)n[a]===` | |
| 21 | +`?(o=1,r+=1):o+=1;return{column:o,line:r,offset:s}}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}rangeBy(t={}){let o="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:Vu(o,this.source.start)},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:Vu(o,this.source.end)+1}:{column:r.column+1,line:r.line,offset:r.offset+1};if(t.word){let s=o.slice(Vu(o,this.source.start),Vu(o,this.source.end)).indexOf(t.word);s!==-1&&(r=this.positionInside(s),n=this.positionInside(s+t.word.length))}else t.start?r={column:t.start.column,line:t.start.line,offset:Vu(o,t.start)}:typeof t.index=="number"&&(r=this.positionInside(t.index)),t.end?n={column:t.end.column,line:t.end.line,offset:Vu(o,t.end)}:typeof t.endIndex=="number"?n=this.positionInside(t.endIndex):typeof t.index=="number"&&(n=this.positionInside(t.index+1));return(n.line<r.line||n.line===r.line&&n.column<=r.column)&&(n={column:r.column+1,line:r.line,offset:r.offset+1}),{end:n,start:r}}raw(t,o){return new eat().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=o==null;o=o||new Map;let n=[],i=[[this,n,0]];for(let a=0;a<i.length;a++){let[l,d,u]=i[a],f={};d[u]=f;for(let p in l){if(!Object.prototype.hasOwnProperty.call(l,p)||p==="parent"||p==="proxyCache")continue;let m=l[p];if(Array.isArray(m)){let g=[];f[p]=g;for(let h=0;h<m.length;h++){let b=m[h];typeof b=="object"&&b.toJSON?b.toJSON===e.prototype.toJSON?i.push([b,g,h]):g[h]=b.toJSON(null,o):g[h]=b}}else if(typeof m=="object"&&m.toJSON)m.toJSON===e.prototype.toJSON?i.push([m,f,p]):f[p]=m.toJSON(null,o);else if(p==="source"){if(m==null)continue;let g=o.get(m.input);g==null&&(g=o.size,o.set(m.input,g)),f[p]={end:m.end,inputId:g,start:m.start}}else f[p]=m}}let s=n[0];return r&&(s.inputs=[...o.keys()].map(a=>a.toJSON())),s}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(t=tat){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)}};bSe.exports=C5;C5.default=C5});var RZ=Pe((V_o,_Se)=>{"use strict";var nat=eM(),E5=class extends nat{constructor(t){super(t),this.type="comment"}};_Se.exports=E5;E5.default=E5});var IZ=Pe((F_o,vSe)=>{"use strict";var iat=eM(),T5=class extends iat{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(t){t&&typeof t.value<"u"&&typeof t.value!="string"&&(t={...t,value:String(t.value)}),super(t),this.type="decl"}};vSe.exports=T5;T5.default=T5});var gh=Pe((z_o,TSe)=>{"use strict";var wSe=RZ(),xSe=IZ(),ySe=eM(),{isClean:kSe,my:SSe}=k5(),PZ,CSe,ESe,BZ;function sat(e){let t=e.slice();for(;t.length>0;){let o=t.pop();if(delete o.source,o.nodes){o.nodes=o.nodes.slice();for(let r of o.nodes)t.push(r)}}return e.slice()}function aat(e){let t=[e];for(;t.length>0;){let o=t.pop();if(o[kSe]=!1,o.proxyOf.nodes)for(let r of o.proxyOf.nodes)t.push(r)}}var Fu=class e extends ySe{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]}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){let o=[this];for(;o.length>0;){let r=o.pop();if(r!==this&&r.cleanRaws!==e.prototype.cleanRaws){r.cleanRaws(t);continue}if(ySe.prototype.cleanRaws.call(r,t),r.nodes)for(let n of r.nodes)o.push(n)}}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=sat(CSe(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 xSe(t)]}else if(t.selector||t.selectors)t=[new BZ(t)];else if(t.name)t=[new PZ(t)];else if(t.text)t=[new wSe(t)];else throw new Error("Unknown node type in node creation");return t.map(n=>(n[SSe]||e.rebuild(n),n=n.proxyOf,n.parent&&n.parent.removeChild(n),n[kSe]&&aat(n),n.raws||(n.raws={}),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){if(!this.proxyOf.nodes)return;let o=[{iterator:this.getIterator(),node:this.proxyOf}];for(;o.length>0;){let{iterator:r,node:n}=o[o.length-1],i=n.indexes[r];if(i>=n.proxyOf.nodes.length){delete n.indexes[r],o.pop();let l=o[o.length-1];l&&(l.node.indexes[l.iterator]+=1);continue}let s=n.proxyOf.nodes[i],a;try{a=t(s,i)}catch(l){throw s.addToError(l)}if(a===!1){for(let l of o)delete l.node.indexes[l.iterator];return!1}s.walk&&s.proxyOf.nodes?o.push({iterator:s.getIterator(),node:s}):n.indexes[r]+=1}}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)}))}};Fu.registerParse=e=>{CSe=e};Fu.registerRule=e=>{BZ=e};Fu.registerAtRule=e=>{PZ=e};Fu.registerRoot=e=>{ESe=e};TSe.exports=Fu;Fu.default=Fu;Fu.rebuild=e=>{let t=[e];for(;t.length>0;){let o=t.pop();if(o.type==="atrule"?Object.setPrototypeOf(o,PZ.prototype):o.type==="rule"?Object.setPrototypeOf(o,BZ.prototype):o.type==="decl"?Object.setPrototypeOf(o,xSe.prototype):o.type==="comment"?Object.setPrototypeOf(o,wSe.prototype):o.type==="root"&&Object.setPrototypeOf(o,ESe.prototype),o[SSe]=!0,o.nodes)for(let r of o.nodes)t.push(r)}}});var OZ=Pe((j_o,PSe)=>{"use strict";var lat=gh(),RSe,ISe,vv=class extends lat{constructor(t){super({type:"document",...t}),this.nodes||(this.nodes=[])}toResult(t={}){return new RSe(new ISe,this,t).stringify()}};vv.registerLazyResult=e=>{RSe=e};vv.registerProcessor=e=>{ISe=e};PSe.exports=vv;vv.default=vv});var tM=Pe(()=>{});var oM=Pe(()=>{});var MZ=Pe(()=>{});var OSe=Pe((K_o,BSe)=>{var cat="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",dat=(e,t=21)=>(o=t)=>{let r="",n=o|0;for(;n-- >0;)r+=e[Math.random()*e.length|0];return r},uat=(e=21)=>{let t="",o=e|0;for(;o-- >0;)t+=cat[Math.random()*64|0];return t};BSe.exports={nanoid:uat,customAlphabet:dat}});var MSe=Pe(()=>{});var VSe=Pe((Z_o,DSe)=>{"use strict";var{existsSync:fat,readFileSync:pat,realpathSync:mat}=MSe(),{dirname:rM,isAbsolute:gat,join:hat,relative:bat,sep:_at}=tM(),{SourceMapConsumer:ASe,SourceMapGenerator:NSe}=oM();function LSe(e){try{return mat(e)}catch{return e}}function vat(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var R5=class{constructor(t,o){if(o.map===!1)return;o.unsafeMap&&(this.unsafeMap=!0),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=rM(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new ASe(this.json||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,/,s=t.match(n)||t.match(i);if(s)return decodeURIComponent(t.substr(s[0].length));let a=t.match(o)||t.match(r);if(a)return vat(t.substr(a[0].length));let l=t.slice(22);throw l=l.slice(0,l.indexOf(",")),new Error("Unsupported source map encoding "+l)}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=/g);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,o,r){if(!r&&!this.unsafeMap){if(!/\.map$/i.test(t)||!o)return;let n=bat(LSe(rM(o)),LSe(t));if(n===".."||n.startsWith(".."+_at)||gat(n))return}if(this.root=rM(t),fat(t))return this.mapFile=t,pat(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,t,!0);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(o instanceof ASe)return NSe.fromSourceMap(o).toString();if(o instanceof NSe)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;t&&(r=hat(rM(t),r));let n=this.loadFile(r,t,!1);if(n)try{this.json=JSON.parse(n.replace(/^\)]}'[^\n]*\n/,""))}catch{return}return n}}}startWith(t,o){return t?t.substr(0,o.length)===o:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};DSe.exports=R5;R5.default=R5});var VZ=Pe((Q_o,USe)=>{"use strict";var{nanoid:yat}=OSe(),{isAbsolute:LZ,resolve:DZ}=tM(),{SourceMapConsumer:wat,SourceMapGenerator:xat}=oM(),{fileURLToPath:FSe,pathToFileURL:nM}=MZ(),zSe=Q8(),kat=VSe(),AZ=SZ(),NZ=Symbol("lineToIndexCache"),Sat=!!(wat&&xat),jSe=!!(DZ&&LZ);function HSe(e){if(e[NZ])return e[NZ];let t=e.css.split(` | |
| 22 | +`),o=new Array(t.length),r=0;for(let n=0,i=t.length;n<i;n++)o[n]=r,r+=t[n].length+1;return e[NZ]=o,o}var zx=class{get from(){return this.file||this.id}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,this.document=this.css,o.document&&(this.document=o.document.toString()),o.from&&(!jSe||/^\w+:\/\//.test(o.from)||LZ(o.from)?this.file=o.from:this.file=DZ(o.from)),jSe&&Sat){let r=new kat(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 "+yat(6)+">"),this.map&&(this.map.file=this.from)}error(t,o,r,n={}){let i,s,a,l,d;if(o&&typeof o=="object"){let f=o,p=r;if(typeof f.offset=="number"){l=f.offset;let m=this.fromOffset(l);o=m.line,r=m.col}else o=f.line,r=f.column,l=this.fromLineAndColumn(o,r);if(typeof p.offset=="number"){a=p.offset;let m=this.fromOffset(a);s=m.line,i=m.col}else s=p.line,i=p.column,a=this.fromLineAndColumn(p.line,p.column)}else if(r)l=this.fromLineAndColumn(o,r);else{l=o;let f=this.fromOffset(l);o=f.line,r=f.col}let u=this.origin(o,r,s,i);return u?d=new zSe(t,u.endLine===void 0?u.line:{column:u.column,line:u.line},u.endLine===void 0?u.column:{column:u.endColumn,line:u.endLine},u.source,u.file,n.plugin):d=new zSe(t,s===void 0?o:{column:r,line:o},s===void 0?r:{column:i,line:s},this.css,this.file,n.plugin),d.input={column:r,endColumn:i,endLine:s,endOffset:a,line:o,offset:l,source:this.css},this.file&&(nM&&(d.input.url=nM(this.file).toString()),d.input.file=this.file),d}fromLineAndColumn(t,o){return HSe(this)[t-1]+o-1}fromOffset(t){let o=HSe(this),r=o[o.length-1],n=0;if(t>=r)n=o.length-1;else{let i=o.length-2,s;for(;n<i;)if(s=n+(i-n>>1),t<o[s])i=s-1;else if(t>=o[s+1])n=s+1;else{n=s;break}}return{col:t-o[n]+1,line:n+1}}mapResolve(t){return/^\w+:\/\//.test(t)?t:DZ(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-1,line:t});if(!s.source)return!1;let a;if(typeof r=="number"){let f=i.originalPositionFor({column:n-1,line:r});f.source&&(a=f)}let l;LZ(s.source)?l=nM(s.source):l=new URL(s.source,this.map.consumer().sourceRoot||nM(this.map.mapFile));let d={column:s.column+1,endColumn:a&&a.column+1,endLine:a&&a.line,line:s.line,url:l.toString()};if(l.protocol==="file:")if(FSe)d.file=FSe(l);else throw new Error("file: protocol is not available in this PostCSS build");let u=i.sourceContentFor(s.source);return u&&(d.source=u),d}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}};USe.exports=zx;zx.default=zx;AZ&&AZ.registerInput&&AZ.registerInput(zx)});var zZ=Pe((J_o,qSe)=>{"use strict";var{dirname:iM,relative:GSe,resolve:$Se,sep:YSe}=tM(),{SourceMapConsumer:KSe,SourceMapGenerator:sM}=oM(),{pathToFileURL:WSe}=MZ(),Cat=VZ(),Eat=!!(KSe&&sM),Tat=!!(iM&&$Se&&GSe&&YSe),FZ=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=` | |
| 23 | 23 | `;this.css.includes(`\r |
| 24 | 24 | `)&&(o=`\r |
| 25 | -`),this.css+=o+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(let t of this.previous()){let o=this.toUrl(this.path(t.file)),r=t.root||hD(t.file),n;this.mapOpts.sourcesContent===!1?(n=new O_e(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.startsWith("# sourceMappingURL=")&&this.root.removeChild(o)}else if(this.css){let t;for(;(t=this.css.lastIndexOf("/*#"))!==-1;){let o=this.css.indexOf("*/",t+3);if(o===-1)break;for(;t>0&&this.css[t-1]===` | |
| 26 | -`;)t--;this.css=this.css.slice(0,t)+this.css.slice(o+2)}}}}generate(){if(this.clearAnnotation(),eJe&&JQe&&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=bD.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new bD({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 bD({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))),s=a.match(/\n/g),s?(t+=s.length,i=a.lastIndexOf(` | |
| 27 | -`),o=a.length-i):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?hD(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=hD(I_e(r,this.mapOpts.annotation)));let n=B_e(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 QQe(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(R_e){let r=R_e(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;P_e==="\\"&&(t=t.replace(/\\/g,"/"));let r=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,r),r}};A_e.exports=wK});var L_e=xe((oro,N_e)=>{"use strict";var M_e=Rg(),Ik=class extends M_e{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)}};N_e.exports=Ik;Ik.default=Ik;M_e.registerAtRule(Ik)});var yD=xe((rro,z_e)=>{"use strict";var D_e=Rg(),V_e,F_e,Bg=class extends D_e{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}normalize(t,o,r){let n=new Set;for(let s of Array.isArray(t)?t:[t])s&&typeof s=="object"&&!s.parent&&s.raws&&typeof s.raws.before<"u"&&n.add(s.raws);let i=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 s of i)n.has(s.raws)||(s.raws.before=o.raws.before)}return i}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 V_e(new F_e,this,t).stringify()}};Bg.registerLazyResult=e=>{V_e=e};Bg.registerProcessor=e=>{F_e=e};z_e.exports=Bg;Bg.default=Bg;D_e.registerRoot(Bg)});var H_e=xe((nro,j_e)=>{"use strict";var VE={comma(e){return VE.split(e,[","],!0)},space(e){let t=[" ",` | |
| 28 | -`," "];return VE.split(e,t)},split(e,t,o){if(typeof e!="string")return[];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}};j_e.exports=VE;VE.default=VE});var G_e=xe((iro,W_e)=>{"use strict";var U_e=Rg(),tJe=H_e(),Pk=class extends U_e{get selectors(){return tJe.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)}constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}};W_e.exports=Pk;Pk.default=Pk;U_e.registerRule(Pk)});var K_e=xe((sro,Y_e)=>{"use strict";var vD=/[\t\n\f\r "#'()/;[\\\]{}]/g,_D=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,oJe=/.[\r\n"'(/\\]/,$_e=/[\da-f]/i;Y_e.exports=function(t,o={}){let r=t.css.valueOf(),n=o.ignoreErrors,i,s,a,l,u,d,f,p,m,g,h=r.length,b=0,v=[],y=[],_=-1;function w(){return b}function k(R){throw t.error("Unclosed "+R,b)}function x(){return y.length===0&&b>=h}function S(R){if(y.length)return y.pop();if(b>=h)return;let E=R?R.ignoreUnclosed:!1;switch(i=r.charCodeAt(b),i){case 10:case 32:case 9:case 13:case 12:{l=b;do l+=1,i=r.charCodeAt(l);while(i===32||i===10||i===9||i===13||i===12);d=["space",r.slice(b,l)],b=l-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let I=String.fromCharCode(i);d=[I,I,b];break}case 40:{if(g=v.length?v.pop()[1]:"",m=r.charCodeAt(b+1),g==="url"&&m!==39&&m!==34&&m!==32&&m!==10&&m!==9&&m!==12&&m!==13){l=b;do{if(f=!1,l=r.indexOf(")",l+1),l===-1)if(n||E){l=b;break}else k("bracket");for(p=l;r.charCodeAt(p-1)===92;)p-=1,f=!f}while(f);d=["brackets",r.slice(b,l+1),b,l],b=l}else b<=_?d=["(","(",b]:(l=r.indexOf(")",b+1),s=r.slice(b,l+1),l===-1||oJe.test(s)?(_=l===-1?h:l,d=["(","(",b]):(d=["brackets",s,b,l],b=l));break}case 39:case 34:{u=i===39?"'":'"',l=b;do{if(f=!1,l=r.indexOf(u,l+1),l===-1)if(n||E){l=b+1;break}else k("string");for(p=l;r.charCodeAt(p-1)===92;)p-=1,f=!f}while(f);d=["string",r.slice(b,l+1),b,l],b=l;break}case 64:{vD.lastIndex=b+1,vD.test(r),vD.lastIndex===0?l=r.length-1:l=vD.lastIndex-2,d=["at-word",r.slice(b,l+1),b,l],b=l;break}case 92:{for(l=b,a=!0;r.charCodeAt(l+1)===92;)l+=1,a=!a;if(i=r.charCodeAt(l+1),a&&i!==47&&i!==32&&i!==10&&i!==9&&i!==13&&i!==12&&(l+=1,$_e.test(r.charAt(l)))){for(;$_e.test(r.charAt(l+1));)l+=1;r.charCodeAt(l+1)===32&&(l+=1)}d=["word",r.slice(b,l+1),b,l],b=l;break}default:{i===47&&r.charCodeAt(b+1)===42?(l=r.indexOf("*/",b+2)+1,l===0&&(n||E?l=r.length:k("comment")),d=["comment",r.slice(b,l+1),b,l],b=l):(_D.lastIndex=b+1,_D.test(r),_D.lastIndex===0?l=r.length-1:l=_D.lastIndex-2,d=["word",r.slice(b,l+1),b,l],v.push(d),b=l);break}}return b++,d}function C(R){y.push(R)}return{back:C,endOfFile:x,nextToken:S,position:w}}});var Q_e=xe((aro,X_e)=>{"use strict";var rJe=L_e(),nJe=uK(),iJe=dK(),sJe=yD(),q_e=G_e(),aJe=K_e(),Z_e={empty:!0,space:!0};function lJe(e){for(let t=e.length-1;t>=0;t--){let o=e[t],r=o[3]||o[2];if(r)return r}}function xK(e,t,o){let r="";for(let n=t;n<o;n++)r+=e[n][1];return r}var SK=class{constructor(t){this.input=t,this.root=new sJe,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 rJe;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(n=a,i=n[0],i==="("&&(o+=1),i===")"&&(o-=1),o===0&&i===":")if(!r)this.doubleColon(n);else{if(r[0]==="word"&&r[1]==="progid")continue;return s}r=n}return!1}comment(t){let o=new nJe;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(!r.trim())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=aJe(this.input)}decl(t,o){let r=new iJe;this.init(r,t[0][2]);let n=t[t.length-1];n[0]===";"&&(this.semicolon=!0,t.pop()),r.source.end=this.getPosition(n[3]||n[2]||lJe(t)),r.source.end.offset++;let i=0;for(;t[i][0]!=="word";)i===t.length-1&&this.unknownWord([t[i]]),i++;r.raws.before+=xK(t,0,i),r.source.start=this.getPosition(t[i][2]);let s=i;for(;i<t.length;){let p=t[i][0];if(p===":"||p==="space"||p==="comment")break;i++}r.prop=xK(t,s,i);let a=i,l;for(;i<t.length&&(l=t[i],i++,l[0]!==":");)l[0]==="word"&&/\w/.test(l[1])&&this.unknownWord([l]);r.raws.between=xK(t,a,i),(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let u=i;for(;i<t.length;){let p=t[i][0];if(p!=="space"&&p!=="comment")break;i++}let d=t.slice(u,i);t=t.slice(i),this.precheckMissedSemicolon(t);for(let p=t.length-1;p>=0;p--){if(l=t[p],l[1].toLowerCase()==="!important"){r.important=!0;let m=this.stringFrom(t,p);m=this.spacesFromEnd(t)+m,m!==" !important"&&(r.raws.important=m);break}else if(l[1].toLowerCase()==="important"){let m=t.slice(0),g="";for(let h=p;h>0;h--){let b=m[h][0];if(g.trim().startsWith("!")&&b!=="space")break;g=m.pop()[1]+g}g.trim().startsWith("!")&&(r.important=!0,r.raws.important=g,t=m)}if(l[0]!=="space"&&l[0]!=="comment")break}t.some(p=>p[0]!=="space"&&p[0]!=="comment")&&(r.raws.between+=d.map(p=>p[1]).join(""),d=[]),this.raw(r,"value",d.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 q_e;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="",o.source.end=this.getPosition(t[2]),o.source.end.offset+=o.raws.ownSemicolon.length)}}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 p=0;p<a;p+=1)i=r[p],s=i[0],s==="space"&&p===a-1&&!n?u=!1:s==="comment"?(f=r[p-1]?r[p-1][0]:"empty",d=r[p+1]?r[p+1][0]:"empty",!Z_e[f]&&!Z_e[d]?l.slice(-1)===","?u=!1:l+=i[1]:u=!1):l+=i[1];if(!u){let p=r.reduce((m,g)=>m+g[1],"");t.raws[o]={raw:p,value:l}}t[o]=l}rule(t){t.pop();let o=new q_e;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 "+t[0][1],{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})}};X_e.exports=SK});var CK=xe((lro,J_e)=>{"use strict";var cJe=Rg(),uJe=_K(),dJe=Q_e();function wD(e,t){let o=new uJe(e,t),r=new dJe(o);try{r.parse()}catch(n){throw n}return r.root}J_e.exports=wD;wD.default=wD;cJe.registerParse(wD)});var twe=xe((cro,ewe)=>{"use strict";var fJe=Rg(),{my:pJe}=OE(),FE=class{constructor(t,o={}){if(this.type="warning",this.text=t,o.node&&o.node.source){o.node[pJe]||fJe.rebuild(o.node);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}};ewe.exports=FE;FE.default=FE});var EK=xe((uro,owe)=>{"use strict";var mJe=twe(),zE=class{get content(){return this.css}constructor(t,o,r){this.processor=t,this.messages=[],this.root=o,this.opts=r,this.css="",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 mJe(t,o);return this.messages.push(r),r}warnings(){return this.messages.filter(t=>t.type==="warning")}};owe.exports=zE;zE.default=zE});var TK=xe((dro,nwe)=>{"use strict";var rwe={};nwe.exports=function(t){rwe[t]||(rwe[t]=!0,typeof console<"u"&&console.warn&&console.warn(t))}});var cwe=xe((pro,lwe)=>{"use strict";var gJe=Rg(),hJe=mK(),bJe=kK(),yJe=CK(),iwe=EK(),vJe=yD(),_Je=uD(),{isClean:Kc,my:wJe}=OE(),fro=TK(),kJe={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},xJe={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},SJe={Once:!0,postcssPlugin:!0,prepare:!0},Ok=0;function jE(e){return typeof e=="object"&&typeof e.then=="function"}function RK(e){let t=!1,o=kJe[e.type];return e.type==="decl"?t=e.prop.toLowerCase():e.type==="atrule"&&(t=e.name.toLowerCase()),t&&e.append?[o,o+"-"+t,Ok,o+"Exit",o+"Exit-"+t]:t?[o,o+"-"+t,o+"Exit",o+"Exit-"+t]:e.append?[o,Ok,o+"Exit"]:[o,o+"Exit"]}function swe(e){let t;return e.type==="document"?t=["Document",Ok,"DocumentExit"]:e.type==="root"?t=["Root",Ok,"RootExit"]:t=RK(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function awe(e){let t=[e];for(;t.length>0;){let o=t.pop();if(o[Kc]=!1,o.nodes)for(let r of o.nodes)t.push(r)}return e}var BK={},Ig=class e{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"}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=awe(o);else if(o instanceof e||o instanceof iwe)n=awe(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=yJe;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[wJe]&&gJe.rebuild(n)}this.result=new iwe(t,n,r),this.helpers={...BK,postcss:BK,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(!xJe[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${o.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!SJe[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(jE(r))try{await r}catch(n){throw this.handleError(n)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[Kc];){t[Kc]=!0;let o=[swe(t)];for(;o.length>0;){let r=this.visitTick(o);if(jE(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 jE(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=_Je;t.syntax&&(o=t.syntax.stringify),t.stringifier&&(o=t.stringifier),o.stringify&&(o=o.stringify);let r=this.result.root.source;if(t.map===void 0&&!(r&&r.input&&r.input.map)){let s="";return o(this.result.root,a=>{s+=a}),this.result.css=s,this.result}let i=new bJe(o,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[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(jE(o))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[Kc];)t[Kc]=!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(jE(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;o.descending&&(o.descending=!1,r.indexes[s]+=1);let a;for(;a=r.nodes[r.indexes[s]];){if(!a[Kc]){a[Kc]=!0,o.descending=!0,t.push(swe(a));return}r.indexes[s]+=1}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===Ok){r.nodes&&r.nodes.length&&(r[Kc]=!0,o.iterator=r.getIterator());return}else if(this.listeners[s]){o.visitors=this.listeners[s];return}}t.pop()}walkSync(t){t[Kc]=!0;let o=[{eventIndex:0,events:RK(t),iterator:0,node:t}];for(;o.length>0;){let r=o[o.length-1],n=r.node;if(r.iterator!==0){let i=r.iterator;r.descending&&(r.descending=!1,n.indexes[i]+=1);let s,a=!1;for(;s=n.nodes[n.indexes[i]];){if(!s[Kc]){s[Kc]=!0,r.descending=!0,o.push({eventIndex:0,events:RK(s),iterator:0,node:s}),a=!0;break}n.indexes[i]+=1}if(a)continue;r.iterator=0,delete n.indexes[i]}if(r.eventIndex<r.events.length){let i=r.events[r.eventIndex];if(r.eventIndex+=1,i===Ok)n.nodes&&n.nodes.length&&(r.iterator=n.getIterator());else{let s=this.listeners[i];s&&this.visitSync(s,n.toProxy())&&o.pop()}continue}o.pop()}}warnings(){return this.sync().warnings()}};Ig.registerPostcss=e=>{BK=e};lwe.exports=Ig;Ig.default=Ig;vJe.registerLazyResult(Ig);hJe.registerLazyResult(Ig)});var dwe=xe((gro,uwe)=>{"use strict";var CJe=kK(),EJe=CK(),TJe=EK(),RJe=uD(),mro=TK(),HE=class{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=EJe;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"}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=RJe;this.result=new TJe(this._processor,void 0,this._opts),this.result.css=o;let i=this;Object.defineProperty(this.result,"root",{get(){return i.root}});let s=new CJe(n,void 0,this._opts,o);if(s.isMap()){let[a,l]=s.generate();a&&(this.result.css=a),l&&(this.result.map=l)}else s.clearAnnotation(),this.result.css=s.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[]}};uwe.exports=HE;HE.default=HE});var pwe=xe((hro,fwe)=>{"use strict";var BJe=mK(),IJe=cwe(),PJe=dwe(),OJe=yD(),Py=class{constructor(t=[]){this.version="8.5.26",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 PJe(this,t,o):new IJe(this,t,o)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}};fwe.exports=Py;Py.default=Py;OJe.registerProcessor(Py);BJe.registerProcessor(Py)});var hwe=xe((bro,gwe)=>{gwe.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&&mwe(s.source.input.file,n)||i.length&&s.source.input.file&&!mwe(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&&AJe(u,t.exclude)?u:t.transform?t.transform(o,u,r+u,s.source.input.file,a):r+u))})}};function mwe(e,t){return t.some(o=>o instanceof RegExp?o.test(e):e.includes(o))}function AJe(e,t){return t.some(o=>o instanceof RegExp?o.test(e):e===o)}});var ywe=xe((yro,bwe)=>{var IK=40,PK=41,kD=39,OK=34,AK=92,Ak=47,MK=44,NK=58,xD=42,MJe=117,NJe=85,LJe=43,DJe=/^[a-f0-9?-]+$/i;bwe.exports=function(e){for(var t=[],o=e,r,n,i,s,a,l,u,d,f=0,p=o.charCodeAt(f),m=o.length,g=[{nodes:t}],h=0,b,v="",y="",_="";f<m;)if(p<=32){r=f;do r+=1,p=o.charCodeAt(r);while(p<=32);s=o.slice(f,r),i=t[t.length-1],p===PK&&h?_=s:i&&i.type==="div"?(i.after=s,i.sourceEndIndex+=s.length):p===MK||p===NK||p===Ak&&o.charCodeAt(r+1)!==xD&&(!b||b&&b.type==="function"&&b.value!=="calc")?y=s:t.push({type:"space",sourceIndex:f,sourceEndIndex:r,value:s}),f=r}else if(p===kD||p===OK){r=f,n=p===kD?"'":'"',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)===AK;)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,p=o.charCodeAt(f)}else if(p===Ak&&o.charCodeAt(f+1)===xD)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,p=o.charCodeAt(f);else if((p===Ak||p===xD)&&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,p=o.charCodeAt(f);else if(p===Ak||p===MK||p===NK)s=o[f],t.push({type:"div",sourceIndex:f-y.length,sourceEndIndex:f+s.length,value:s,before:y,after:""}),y="",f+=1,p=o.charCodeAt(f);else if(IK===p){r=f;do r+=1,p=o.charCodeAt(r);while(p<=32);if(d=f,s={type:"function",sourceIndex:f-v.length,value:v,before:o.slice(d+1,r)},f=r,v==="url"&&p!==kD&&p!==OK){r-=1;do if(a=!1,r=o.indexOf(")",r+1),~r)for(l=r;o.charCodeAt(l-1)===AK;)l-=1,a=!a;else o+=")",r=o.length-1,s.unclosed=!0;while(a);u=r;do u-=1,p=o.charCodeAt(u);while(p<=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,p=o.charCodeAt(f),t.push(s)}else h+=1,s.after="",s.sourceEndIndex=f+1,t.push(s),g.push(s),t=s.nodes=[],b=s;v=""}else if(PK===p&&h)f+=1,p=o.charCodeAt(f),b.after=_,b.sourceEndIndex+=_.length,_="",h-=1,g[g.length-1].sourceEndIndex=f,g.pop(),b=g[h],t=b.nodes;else{r=f;do p===AK&&(r+=1),r+=1,p=o.charCodeAt(r);while(r<m&&!(p<=32||p===kD||p===OK||p===MK||p===NK||p===Ak||p===IK||p===xD&&b&&b.type==="function"&&b.value==="calc"||p===Ak&&b.type==="function"&&b.value==="calc"||p===PK&&h));s=o.slice(f,r),IK===p?v=s:(MJe===s.charCodeAt(0)||NJe===s.charCodeAt(0))&&LJe===s.charCodeAt(1)&&DJe.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=g.length-1;f;f-=1)g[f].unclosed=!0,g[f].sourceEndIndex=o.length;return g[0].nodes}});var _we=xe((vro,vwe)=>{vwe.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 Swe=xe((_ro,xwe)=>{function wwe(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=kwe(e.nodes,t),o!=="function"?n:r+"("+(e.before||"")+n+(e.after||"")+(e.unclosed?"":")")):r}function kwe(e,t){var o,r;if(Array.isArray(e)){for(o="",r=e.length-1;~r;r-=1)o=wwe(e[r],t)+o;return o}return wwe(e,t)}xwe.exports=kwe});var Ewe=xe((wro,Cwe)=>{var SD=45,CD=43,LK=46,VJe=101,FJe=69;function zJe(e){var t=e.charCodeAt(0),o;if(t===CD||t===SD){if(o=e.charCodeAt(1),o>=48&&o<=57)return!0;var r=e.charCodeAt(2);return o===LK&&r>=48&&r<=57}return t===LK?(o=e.charCodeAt(1),o>=48&&o<=57):t>=48&&t<=57}Cwe.exports=function(e){var t=0,o=e.length,r,n,i;if(o===0||!zJe(e))return!1;for(r=e.charCodeAt(t),(r===CD||r===SD)&&t++;t<o&&(r=e.charCodeAt(t),!(r<48||r>57));)t+=1;if(r=e.charCodeAt(t),n=e.charCodeAt(t+1),r===LK&&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===VJe||r===FJe)&&(n>=48&&n<=57||(n===CD||n===SD)&&i>=48&&i<=57))for(t+=n===CD||n===SD?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 Iwe=xe((kro,Bwe)=>{var jJe=ywe(),Twe=_we(),Rwe=Swe();function Pg(e){return this instanceof Pg?(this.nodes=jJe(e),this):new Pg(e)}Pg.prototype.toString=function(){return Array.isArray(this.nodes)?Rwe(this.nodes):""};Pg.prototype.walk=function(e,t){return Twe(this.nodes,e,t),this};Pg.unit=Ewe();Pg.walk=Twe;Pg.stringify=Rwe;Bwe.exports=Pg});var Owe=xe((xro,DK)=>{var Pwe=Iwe();DK.exports=e=>{let o=Object.assign({skipHostRelativeUrls:!0},e);return{postcssPlugin:"rebaseUrl",Declaration(r){let n=Pwe(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=Pwe.stringify(n))}}};DK.exports.postcss=!0});var Gwe=xe((Dro,Wwe)=>{Wwe.exports=window.wp.priorityQueue});var tq=xe((Aio,Gke)=>{Gke.exports=window.wp.blob});var lx=xe((dlo,tSe)=>{tSe.exports=window.wp.isShallowEqual});var CV=xe((Pfo,UCe)=>{UCe.exports=window.wp.tokenList});var q1e=xe((Hmo,K1e)=>{K1e.exports=window.wp.commands});var lu=xe((yyo,dRe)=>{dRe.exports=window.wp.date});var jRe=xe((avo,zRe)=>{var NRe=!1,mv,WZ,GZ,j3,H3,LRe,U3,$Z,YZ,KZ,DRe,qZ,ZZ,VRe,FRe;function na(){if(!NRe){NRe=!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(qZ=/\b(iPhone|iP[ao]d)/.exec(e),ZZ=/\b(iP[ao]d)/.exec(e),KZ=/Android/i.exec(e),VRe=/FBAN\/\w+;/i.exec(e),FRe=/Mobile/i.exec(e),DRe=!!/Win64/.exec(e),t){mv=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,mv&&document&&document.documentMode&&(mv=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);LRe=r?parseFloat(r[1])+4:mv,WZ=t[2]?parseFloat(t[2]):NaN,GZ=t[3]?parseFloat(t[3]):NaN,j3=t[4]?parseFloat(t[4]):NaN,j3?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),H3=t&&t[1]?parseFloat(t[1]):NaN):H3=NaN}else mv=WZ=GZ=H3=j3=NaN;if(o){if(o[1]){var n=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);U3=n?parseFloat(n[1].replace("_",".")):!0}else U3=!1;$Z=!!o[2],YZ=!!o[3]}else U3=$Z=YZ=!1}}var XZ={ie:function(){return na()||mv},ieCompatibilityMode:function(){return na()||LRe>mv},ie64:function(){return XZ.ie()&&DRe},firefox:function(){return na()||WZ},opera:function(){return na()||GZ},webkit:function(){return na()||j3},safari:function(){return XZ.webkit()},chrome:function(){return na()||H3},windows:function(){return na()||$Z},osx:function(){return na()||U3},linux:function(){return na()||YZ},iphone:function(){return na()||qZ},mobile:function(){return na()||qZ||ZZ||KZ||FRe},nativeApp:function(){return na()||VRe},android:function(){return na()||KZ},ipad:function(){return na()||ZZ}};zRe.exports=XZ});var URe=xe((lvo,HRe)=>{"use strict";var W3=!!(typeof window<"u"&&window.document&&window.document.createElement),Gnt={canUseDOM:W3,canUseWorkers:typeof Worker<"u",canUseEventListeners:W3&&!!(window.addEventListener||window.attachEvent),canUseViewport:W3&&!!window.screen,isInWorker:!W3};HRe.exports=Gnt});var YRe=xe((cvo,$Re)=>{"use strict";var WRe=URe(),GRe;WRe.canUseDOM&&(GRe=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function $nt(e,t){if(!WRe.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&&GRe&&e==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}$Re.exports=$nt});var JRe=xe((uvo,QRe)=>{"use strict";var Ynt=jRe(),Knt=YRe(),KRe=10,qRe=40,ZRe=800;function XRe(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*KRe,n=o*KRe,"deltaY"in e&&(n=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||n)&&e.deltaMode&&(e.deltaMode==1?(r*=qRe,n*=qRe):(r*=ZRe,n*=ZRe)),r&&!t&&(t=r<1?-1:1),n&&!o&&(o=n<1?-1:1),{spinX:t,spinY:o,pixelX:r,pixelY:n}}XRe.getEventType=function(){return Ynt.firefox()?"DOMMouseScroll":Knt("wheel")?"wheel":"mousewheel"};QRe.exports=XRe});var tBe=xe((dvo,eBe)=>{eBe.exports=JRe()});var OIe=xe((rwo,PIe)=>{"use strict";PIe.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 rpt={};No(rpt,{AlignmentControl:()=>x2,AlignmentToolbar:()=>Are,Autocomplete:()=>Kre,BlockAlignmentControl:()=>H2,BlockAlignmentToolbar:()=>wne,BlockBindingsAttributeControl:()=>zC,BlockBindingsSourceFieldsList:()=>FC,BlockBreadcrumb:()=>Wne,BlockCanvas:()=>eEe,BlockColorsStyleSelector:()=>nEe,BlockContextProvider:()=>IB,BlockControls:()=>Ko,BlockEdit:()=>b2,BlockEditorKeyboardShortcuts:()=>WL,BlockEditorProvider:()=>$ye,BlockFormatControls:()=>Aq,BlockIcon:()=>Nt,BlockInspector:()=>NMe,BlockList:()=>Lk,BlockMover:()=>K5,BlockNavigationDropdown:()=>bTe,BlockPopover:()=>Dxe,BlockPreview:()=>Ks,BlockSelectionClearer:()=>Zxe,BlockSettingsMenu:()=>yV,BlockSettingsMenuControls:()=>pV,BlockStyles:()=>Wx,BlockTitle:()=>HC,BlockToolbar:()=>A1e,BlockTools:()=>PT,BlockVerticalAlignmentControl:()=>D2,BlockVerticalAlignmentToolbar:()=>FTe,ButtonBlockAppender:()=>Hg,ButtonBlockerAppender:()=>Txe,ColorPalette:()=>nRe,ColorPaletteControl:()=>aRe,ContrastChecker:()=>uRe,CopyHandler:()=>VMe,DefaultBlockAppender:()=>nx,DimensionControl:()=>pv,FontSizePicker:()=>Jj,HeadingLevelDropdown:()=>ETe,HeightControl:()=>MRe,InnerBlocks:()=>sT,Inserter:()=>Js,InspectorAdvancedControls:()=>Gg,InspectorControls:()=>Fe,JustifyContentControl:()=>U_,JustifyToolbar:()=>GBe,LineHeightControl:()=>mF,LinkControl:()=>_h,MediaPlaceholder:()=>dPe,MediaReplaceFlow:()=>uS,MediaUpload:()=>xd,MediaUploadCheck:()=>Oa,MultiSelectScrollIntoView:()=>HMe,NavigableToolbar:()=>Sx,ObserveTyping:()=>Y1e,PanelColorSettings:()=>pPe,PlainText:()=>_2e,RecursionProvider:()=>$Q,RichText:()=>bS,RichTextShortcut:()=>f2e,RichTextToolbarButton:()=>NX,SETTINGS_DEFAULTS:()=>P0,SkipToSelectedBlock:()=>zF,ToolSelector:()=>JMe,Typewriter:()=>GMe,URLInput:()=>Ap,URLInputButton:()=>R2e,URLPopover:()=>kh,Warning:()=>Im,WritingFlow:()=>iD,__experimentalBlockAlignmentMatrixControl:()=>Lne,__experimentalBlockFullHeightAligmentControl:()=>One,__experimentalBlockPatternSetup:()=>LTe,__experimentalBlockPatternsList:()=>_d,__experimentalBlockVariationPicker:()=>TTe,__experimentalBlockVariationTransforms:()=>h3,__experimentalBorderRadiusControl:()=>k3,__experimentalColorGradientControl:()=>ph,__experimentalColorGradientSettingsDropdown:()=>D3,__experimentalDateFormatPicker:()=>fRe,__experimentalDuotoneControl:()=>C3,__experimentalFontAppearanceControl:()=>T3,__experimentalFontFamilyControl:()=>R3,__experimentalGetBorderClassesAndStyles:()=>N8,__experimentalGetColorClassesAndStyles:()=>L8,__experimentalGetDimensionsClassesAndStyles:()=>M8,__experimentalGetElementClassName:()=>Qft,__experimentalGetGapCSSValue:()=>wa,__experimentalGetGradientClass:()=>L_,__experimentalGetGradientObjectByGradientValue:()=>Sre,__experimentalGetShadowClassesAndStyles:()=>fee,__experimentalGetSpacingClassesAndStyles:()=>gee,__experimentalImageEditor:()=>VBe,__experimentalImageSizeControl:()=>HBe,__experimentalImageURLInputUI:()=>N2e,__experimentalInspectorPopoverHeader:()=>Q6,__experimentalLetterSpacingControl:()=>I3,__experimentalLibrary:()=>zMe,__experimentalLinkControl:()=>pF,__experimentalLinkControlSearchInput:()=>hIe,__experimentalLinkControlSearchItem:()=>rIe,__experimentalLinkControlSearchResults:()=>cIe,__experimentalListView:()=>u3,__experimentalPanelColorGradientSettings:()=>F3,__experimentalPreviewOptions:()=>X2e,__experimentalPublishDateTimePicker:()=>ZMe,__experimentalRecursionProvider:()=>$Me,__experimentalResponsiveBlockControl:()=>S2e,__experimentalSpacingSizesControl:()=>xS,__experimentalTextDecorationControl:()=>O3,__experimentalTextTransformControl:()=>M3,__experimentalUnitControl:()=>E2e,__experimentalUseBlockOverlayActive:()=>$ne,__experimentalUseBlockPreview:()=>Zwe,__experimentalUseBorderProps:()=>dee,__experimentalUseColorProps:()=>mee,__experimentalUseCustomSides:()=>HJ,__experimentalUseGradient:()=>z7e,__experimentalUseHasRecursion:()=>YMe,__experimentalUseMultipleOriginColorsAndGradients:()=>gh,__experimentalUseResizeCanvas:()=>J2e,__experimentalWritingModeControl:()=>L3,__unstableBlockSettingsMenuFirstItem:()=>rV,__unstableBlockToolbarLastItem:()=>Q5,__unstableEditorStyles:()=>Xf,__unstableIframe:()=>Rk,__unstableInserterMenuExtension:()=>YD,__unstableRichTextInputEvent:()=>p2e,__unstableUseBlockSelectionClearer:()=>zy,__unstableUseClipboardHandler:()=>DMe,__unstableUseMouseMoveTypingReset:()=>AT,__unstableUseTypewriter:()=>UQ,__unstableUseTypingObserver:()=>MT,createCustomColorsHOC:()=>kre,getColorClassName:()=>el,getColorObjectByAttributeValues:()=>Du,getColorObjectByColorValue:()=>RB,getComputedFluidTypographyValue:()=>Ere,getCustomValueFromPreset:()=>ene,getDimensionsClassesAndStyles:()=>M8,getFontSize:()=>D_,getFontSizeClass:()=>Pm,getFontSizeObjectByValue:()=>Qj,getGradientSlugByValue:()=>Cre,getGradientValueBySlug:()=>w2,getPxFromCssUnit:()=>DVe,getSpacingPresetCssVar:()=>il,getTypographyClassesAndStyles:()=>hee,isValueSpacingPreset:()=>L2,privateApis:()=>Cee,store:()=>B,storeConfig:()=>O_,transformStyles:()=>Mk,useBlockBindingsUtils:()=>Rf,useBlockCommands:()=>$V,useBlockDisplayInformation:()=>Mn,useBlockEditContext:()=>kt,useBlockEditingMode:()=>zr,useBlockProps:()=>f1,useCachedTruthy:()=>bee,useHasRecursion:()=>YQ,useInnerBlocksProps:()=>Gy,useSetting:()=>vre,useSettings:()=>je,useStyleOverride:()=>Dl,withColorContext:()=>x3,withColors:()=>xre,withFontSizes:()=>Pre});function Ree(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=Ree(e[t]))&&(r&&(r+=" "),r+=o)}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}function b3e(){for(var e,t,o=0,r="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Ree(e))&&(r&&(r+=" "),r+=t);return r}var $=b3e;var eNe=c(ce(),1),cc=c(F(),1),e4=c(te(),1),XQ=c(ue(),1),DR=c(Bo(),1);var xB=c(F(),1),Lu=Symbol("mayDisplayControls"),o_=Symbol("mayDisplayParentControls"),r_=Symbol("mayDisplayPatternEditingControls"),n_=Symbol("blockEditingMode"),i_=Symbol("blockBindings"),SB=Symbol("isPreviewMode"),T0=Symbol("isInListViewBlockSupportTree"),Y8={name:"",isSelected:!1},K8=(0,xB.createContext)(Y8);K8.displayName="BlockEditContext";var{Provider:CB}=K8;function kt(){return(0,xB.useContext)(K8)}var y3e={grad:.9,turn:360,rad:360/(2*Math.PI)},ff=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},Fn=function(e,t,o){return t===void 0&&(t=0),o===void 0&&(o=Math.pow(10,t)),Math.round(o*e)/o+0},Ja=function(e,t,o){return t===void 0&&(t=0),o===void 0&&(o=1),e>o?o:e>t?e:t},jee=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Mee=function(e){return{r:Ja(e.r,0,255),g:Ja(e.g,0,255),b:Ja(e.b,0,255),a:Ja(e.a)}},q8=function(e){return{r:Fn(e.r),g:Fn(e.g),b:Fn(e.b),a:Fn(e.a,3)}},v3e=/^#([0-9a-f]{3,8})$/i,EB=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Hee=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}},Uee=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}},Nee=function(e){return{h:jee(e.h),s:Ja(e.s,0,100),l:Ja(e.l,0,100),a:Ja(e.a)}},Lee=function(e){return{h:Fn(e.h),s:Fn(e.s),l:Fn(e.l),a:Fn(e.a,3)}},Dee=function(e){return Uee((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},R0=function(e){return{h:(t=Hee(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},_3e=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,w3e=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,k3e=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,x3e=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Q8={string:[[function(e){var t=v3e.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?Fn(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?Fn(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=k3e.exec(e)||x3e.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Mee({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=_3e.exec(e)||w3e.exec(e);if(!t)return null;var o,r,n=Nee({h:(o=t[1],r=t[2],r===void 0&&(r="deg"),Number(o)*(y3e[r]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return Dee(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 ff(t)&&ff(o)&&ff(r)?Mee({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(!ff(t)||!ff(o)||!ff(r))return null;var s=Nee({h:Number(t),s:Number(o),l:Number(r),a:Number(i)});return Dee(s)},"hsl"],[function(e){var t=e.h,o=e.s,r=e.v,n=e.a,i=n===void 0?1:n;if(!ff(t)||!ff(o)||!ff(r))return null;var s=(function(a){return{h:jee(a.h),s:Ja(a.s,0,100),v:Ja(a.v,0,100),a:Ja(a.a)}})({h:Number(t),s:Number(o),v:Number(r),a:Number(i)});return Uee(s)},"hsv"]]},Vee=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]},S3e=function(e){return typeof e=="string"?Vee(e.trim(),Q8.string):typeof e=="object"&&e!==null?Vee(e,Q8.object):[null,void 0]};var Z8=function(e,t){var o=R0(e);return{h:o.h,s:Ja(o.s+100*t,0,100),l:o.l,a:o.a}},X8=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},Fee=function(e,t){var o=R0(e);return{h:o.h,s:o.s,l:Ja(o.l+100*t,0,100),a:o.a}},J8=(function(){function e(t){this.parsed=S3e(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 Fn(X8(this.rgba),2)},e.prototype.isDark=function(){return X8(this.rgba)<.5},e.prototype.isLight=function(){return X8(this.rgba)>=.5},e.prototype.toHex=function(){return t=q8(this.rgba),o=t.r,r=t.g,n=t.b,s=(i=t.a)<1?EB(Fn(255*i)):"","#"+EB(o)+EB(r)+EB(n)+s;var t,o,r,n,i,s},e.prototype.toRgb=function(){return q8(this.rgba)},e.prototype.toRgbString=function(){return t=q8(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 Lee(R0(this.rgba))},e.prototype.toHslString=function(){return t=Lee(R0(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=Hee(this.rgba),{h:Fn(t.h),s:Fn(t.s),v:Fn(t.v),a:Fn(t.a,3)};var t},e.prototype.invert=function(){return Go({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),Go(Z8(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),Go(Z8(this.rgba,-t))},e.prototype.grayscale=function(){return Go(Z8(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),Go(Fee(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),Go(Fee(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"?Go({r:(o=this.rgba).r,g:o.g,b:o.b,a:t}):Fn(this.rgba.a,3);var o},e.prototype.hue=function(t){var o=R0(this.rgba);return typeof t=="number"?Go({h:t,s:o.s,l:o.l,a:o.a}):Fn(o.h)},e.prototype.isEqual=function(t){return this.toHex()===Go(t).toHex()},e})(),Go=function(e){return e instanceof J8?e:new J8(e)},zee=[],lm=function(e){e.forEach(function(t){zee.indexOf(t)<0&&(t(J8,Q8),zee.push(t))})};function cm(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,p="black";if(!i.length)for(var m in o)i[m]=new e(o[m]).toRgb();for(var g in o){var h=(a=d,l=i[g],Math.pow(a.r-l.r,2)+Math.pow(a.g-l.g,2)+Math.pow(a.b-l.b,2));h<f&&(f=h,p=g)}return p}},t.string.push([function(s){var a=s.toLowerCase(),l=a==="transparent"?"#0000":o[a];return l?new e(l).toRgb():null},"name"])}var ez=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},tz=function(e){return .2126*ez(e.r)+.7152*ez(e.g)+.0722*ez(e.b)};function s_(e){e.prototype.luminance=function(){return t=tz(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=tz(i),l=tz(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 oz=function(e,t){return oz=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])},oz(e,t)};function Wee(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");oz(e,t);function o(){this.constructor=e}e.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)}var gr=function(){return gr=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},gr.apply(this,arguments)};function Gee(e){return e.toLowerCase()}var C3e=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],E3e=/[^A-Z0-9]+/gi;function TB(e,t){t===void 0&&(t={});for(var o=t.splitRegexp,r=o===void 0?C3e:o,n=t.stripRegexp,i=n===void 0?E3e:n,s=t.transform,a=s===void 0?Gee:s,l=t.delimiter,u=l===void 0?" ":l,d=$ee($ee(e,r,"$1\0$2"),i,"\0"),f=0,p=d.length;d.charAt(f)==="\0";)f++;for(;d.charAt(p-1)==="\0";)p--;return d.slice(f,p).split("\0").map(a).join(u)}function $ee(e,t,o){return t instanceof RegExp?e.replace(t,o):t.reduce(function(r,n){return r.replace(n,o)},e)}function Yee(e,t){return t===void 0&&(t={}),TB(e,gr({delimiter:"."},t))}function Kee(e,t){return t===void 0&&(t={}),Yee(e,gr({delimiter:"-"},t))}function Is(e){let t=e?.toString?.()??"";return t=t.replace(/['\u2019]/,""),Kee(t,{splitRegexp:[/(?!(?:1ST|2ND|3RD|[4-9]TH)(?![a-z]))([a-z0-9])([A-Z])/g,/(?!(?:1st|2nd|3rd|[4-9]th)(?![a-z]))([0-9])([a-z])/g,/([A-Za-z])([0-9])/g,/([A-Z])([A-Z][a-z])/g]})}lm([cm,s_]);var Du=(e,t,o)=>{if(t){let r=e?.find(n=>n.slug===t);if(r)return r}return{color:o}},RB=(e,t)=>e?.find(o=>o.color===t);function el(e,t){if(!(!e||!t))return`has-${Is(t)}-${e}`}function qee(e,t){let o=Go(t),r=({color:i})=>o.contrast(i),n=Math.max(...e.map(r));return e.find(i=>r(i)===n).color}var N_=c(F(),1),Rb=c(ue(),1);var bre=c(te(),1),yre=c(Mt(),1);var h2=c(F(),1),g2=c(ce(),1);var pf=c(ce(),1),lte=c(Y(),1),I0=c(te(),1),ab=c(F(),1);var a_=c(F(),1),Jee=c(T(),1),BB=(0,a_.createContext)({});BB.displayName="BlockContext";function IB({value:e,children:t}){let o=(0,a_.useContext)(BB),r=(0,a_.useMemo)(()=>({...o,...e}),[o,e]);return(0,Jee.jsx)(BB.Provider,{value:r,children:t})}var zn=BB;var l_=c(ga(),1);function nb(e){return e?.startsWith("#")&&(0,l_.isValidFragment)(e)}function ib(e){return e?.startsWith("/")||e?.startsWith("./")||e?.startsWith("../")}function sb(e){if(e.includes(" "))return!1;let o=(0,l_.getProtocol)(e),r=(0,l_.isValidProtocol)(o),n=T3e(e),i=e?.startsWith("www.");return r||i||nb(e)||n||ib(e)}function T3e(e,t=6){let o=e.split(/[?#]/)[0];return new RegExp(`(?<=\\S)\\.(?:[a-zA-Z_]{2,${t}})(?:\\/|$)`).test(o)}var R3e="__default",tte="core/pattern-overrides",B3e={};function ote(e,t,o){let r;if(t)for(let[n,i]of Object.entries(e))t.includes(n)&&(r===void 0&&(r={}),r[n]=i);if(o)for(let n of o)n?.usesContext?.forEach(i=>{i in e&&(r===void 0&&(r={}),r[i]=e[i])});return r??B3e}function B0(e){return e?.[R3e]?.source===tte}function PB(e,t){if(!B0(e))return e;let o={};for(let r of t){let n=e[r]?e[r]:{source:tte};o[r]=n}return o}var nte=c(OB(),1),{lock:ite,unlock:G}=(0,nte.__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");var ste=c(F(),1),Tn=(0,ste.createContext)({});Tn.displayName="PrivateBlockContext";var AB=c(T(),1),I3e=e=>{let{name:t}=e,o=(0,pf.getBlockType)(t);if(!o)return null;let r=o.edit||o.save;return(0,AB.jsx)(r,{...e})},ate=(0,lte.withFilters)("editor.BlockEdit")(I3e),P3e=e=>{let{name:t,clientId:o,attributes:r,setAttributes:n}=e,i=(0,I0.useRegistry)(),s=(0,pf.getBlockType)(t),a=(0,ab.useContext)(zn),l=(0,I0.useSelect)(v=>G(v(pf.store)).getAllBlockBindingsSources(),[]),{bindableAttributes:u}=(0,ab.useContext)(Tn),{blockBindings:d,context:f,hasPatternOverrides:p}=(0,ab.useMemo)(()=>({blockBindings:PB(r?.metadata?.bindings,u),context:ote(a,s?.usesContext,r?.metadata?.bindings?Object.values(r.metadata.bindings).map(v=>l[v?.source]):void 0),hasPatternOverrides:B0(r?.metadata?.bindings)}),[s?.usesContext,a,r?.metadata?.bindings,u,l]),m=(0,I0.useSelect)(v=>{if(!d)return r;let y={},_=new Map;for(let[w,k]of Object.entries(d)){let{source:x,args:S}=k,C=l[x];!C||!u?.includes(w)||_.set(C,{..._.get(C),[w]:{args:S}})}if(_.size)for(let[w,k]of _){let x={};w.getValues?x=w.getValues({select:v,context:f,clientId:o,bindings:k}):Object.keys(k).forEach(S=>{x[S]=w.label});for(let[S,C]of Object.entries(x))S==="url"&&(!C||!sb(C))?y[S]=null:y[S]=C}return{...r,...y}},[r,u,d,o,f,l]),g=(0,ab.useCallback)(v=>{if(!d){n(v);return}i.batch(()=>{let y={...v},_=new Map;for(let[k,x]of Object.entries(y)){if(!d[k]||!u?.includes(k))continue;let S=d[k],C=l[S?.source];C?.setValues&&(_.set(C,{..._.get(C),[k]:{args:S.args,newValue:x}}),delete y[k])}if(_.size)for(let[k,x]of _)k.setValues({select:i.select,dispatch:i.dispatch,context:f,clientId:o,bindings:x});let w=!!f["pattern/overrides"];!(p&&w)&&Object.keys(y).length&&(p&&delete y.href,n(y))})},[u,d,o,f,p,n,l,i]);if(!s)return null;if(s.apiVersion>1)return(0,AB.jsx)(ate,{...e,attributes:m,context:f,setAttributes:g});let h=(0,pf.hasBlockSupport)(s,"className",!0)?(0,pf.getBlockDefaultClassName)(t):null,b=$(h,r?.className,e.className);return(0,AB.jsx)(ate,{...e,attributes:m,className:b,context:f,setAttributes:g})},cte=P3e;var mre=c(ce(),1),Xj=c(Y(),1),gre=c(te(),1),m2=c(q(),1);var p2=c(te(),1);var u_=c(lb(),1),iz=c(ue(),1),M0=c(te(),1),_te=c(Mt(),1),jB=c(ce(),1);var Vt=c(q(),1),fte={insertUsage:{}},P0={alignWide:!1,supportsLayout:!0,colors:[{name:(0,Vt.__)("Black"),slug:"black",color:"#000000"},{name:(0,Vt.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:(0,Vt.__)("White"),slug:"white",color:"#ffffff"},{name:(0,Vt.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:(0,Vt.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:(0,Vt.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:(0,Vt.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:(0,Vt.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:(0,Vt.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:(0,Vt.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:(0,Vt.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:(0,Vt.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:(0,Vt._x)("Small","font size name"),size:13,slug:"small"},{name:(0,Vt._x)("Normal","font size name"),size:16,slug:"normal"},{name:(0,Vt._x)("Medium","font size name"),size:20,slug:"medium"},{name:(0,Vt._x)("Large","font size name"),size:36,slug:"large"},{name:(0,Vt._x)("Huge","font size name"),size:42,slug:"huge"}],imageDefaultSize:"large",imageSizes:[{slug:"thumbnail",name:(0,Vt.__)("Thumbnail")},{slug:"medium",name:(0,Vt.__)("Medium")},{slug:"large",name:(0,Vt.__)("Large")},{slug:"full",name:(0,Vt.__)("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,canLockBlocks:!0,blockStatesEditingEnabled:!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,Vt.__)("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,Vt.__)("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,Vt.__)("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,Vt.__)("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,Vt.__)("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,Vt.__)("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,Vt.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:(0,Vt.__)("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,Vt.__)("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,Vt.__)("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,Vt.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:(0,Vt.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}],__unstableResolvedAssets:{styles:[],scripts:[]}};function MB(e,t,o){return[...e.slice(0,o),...Array.isArray(t)?t:[t],...e.slice(o)]}function NB(e,t,o,r=1){let n=[...e];return n.splice(t,r),MB(n,e.slice(t,t+r),o)}var Ps=Symbol("globalStylesDataKey"),c_=Symbol("globalStylesLinks"),um=Symbol("selectBlockPatternsKey"),LB=Symbol("reusableBlocksSelect"),mf=Symbol("userPatternCategoriesSelect"),dm=Symbol("sectionRootClientIdKey"),DB=Symbol("mediaEditKey"),VB=Symbol("getMediaSelect"),fm=Symbol("isIsolatedEditor"),tl=Symbol("deviceTypeKey"),FB=Symbol("isNavigationOverlayContext"),pte=Symbol("isNavigationPostEditor"),O0=Symbol("mediaUploadOnSuccess"),mte=Symbol("mediaSideloadFromUrl"),gte=Symbol("openMediaEditorModal");var{isContentBlock:O3e}=G(jB.privateApis),A3e=e=>e;function zB(e,t=""){let o=new Map,r=[];return o.set(t,r),e.forEach(n=>{let{clientId:i,innerBlocks:s}=n;r.push(i),zB(s,i).forEach((a,l)=>{o.set(l,a)})}),o}function rz(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 wte(e,t=A3e){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 sz(e){let t={},o=[...e];for(;o.length;){let{innerBlocks:r,...n}=o.shift();o.push(...r),t[n.clientId]=!0}return t}function hte(e){return wte(e,t=>{let{attributes:o,...r}=t;return r})}function bte(e){return wte(e,t=>t.attributes)}function M3e(e,t){return(0,u_.default)(Object.keys(e),Object.keys(t))}function N3e(e,t){return e.type==="UPDATE_BLOCK_ATTRIBUTES"&&t!==void 0&&t.type==="UPDATE_BLOCK_ATTRIBUTES"&&(0,u_.default)(e.clientIds,t.clientIds)&&M3e(e.attributes,t.attributes)}function yte(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 pm(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 L3e=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),yte(r,o.blocks),pm(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)}),pm(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)})}),pm(r,o.clientIds,!1);break}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{let i=sz(o.blocks);r.tree=new Map(r.tree),o.replacedClientIds.forEach(a=>{r.tree.delete(a),i[a]||r.tree.delete("controlled||"+a)}),yte(r,o.blocks),pm(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)}pm(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)}),pm(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),pm(r,i,!0);break}case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":{let i=[o.rootClientId?o.rootClientId:""];r.tree=new Map(r.tree),pm(r,i,!0);break}}return r};function D3e(e){let t,o;return(r,n)=>{let i=e(r,n),s=o;o=n.type==="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"?n.history??"merge":void 0;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:!N3e(n,t);if(t=n,s==="ignore")return{...i,isPersistentChange:l,lastBlockChangeHistoryMode:"ignore"};let{lastBlockChangeHistoryMode:u,...d}=i;return{...d,isPersistentChange:l}}}function V3e(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 F3e=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)},z3e=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 p=t.order.get(u)||[];r.order.set(u,p),p.forEach(m=>l(m,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 p=t.tree.get(f);if(!p)return;r.tree.set(f,p),(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)},j3e=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},H3e=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)},U3e=(0,iz.pipe)(M0.combineReducers,L3e,F3e,j3e,z3e,D3e,V3e,H3e)({byClientId(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{let o=new Map(e);return hte(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)}),hte(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 bte(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)}),bte(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=zB(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=zB(t.blocks,o),{index:i=r.length}=t,s=new Map(e);return n.forEach((a,l)=>{s.set(l,a)}),s.set(o,MB(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,NB(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,MB(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,NB(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,NB(s,a,a+1,o.length)),l}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{let{clientIds:o}=t;if(!t.blocks)return e;let r=zB(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 rz(t.blocks).forEach(([r,n])=>{o.set(r,n)}),o}case"INSERT_BLOCKS":{let o=new Map(e);return rz(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)}),rz(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 W3e(e=!1,t){switch(t.type){case"HIDE_BLOCK_INTERFACE":return!0;case"SHOW_BLOCK_INTERFACE":return!1}return e}function G3e(e=!1,t){switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e}function $3e(e=!1,t){switch(t.type){case"START_DRAGGING":return!0;case"STOP_DRAGGING":return!1}return e}function Y3e(e=[],t){switch(t.type){case"START_DRAGGING_BLOCKS":return t.clientIds;case"STOP_DRAGGING_BLOCKS":return[]}return e}function K3e(e={},t){return t.type==="SET_BLOCK_VISIBILITY"?{...e,...t.updates}:e}function vte(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 q3e(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 s={selectionStart:{clientId:t.start},selectionEnd:{clientId:t.end}};return(0,u_.default)(e,s)?e:s;case"RESET_BLOCKS":let a=e?.selectionStart?.clientId,l=e?.selectionEnd?.clientId;if(!a&&!l)return e;if(!t.blocks.some(u=>u.clientId===a))return{selectionStart:{},selectionEnd:{}};if(!t.blocks.some(u=>u.clientId===l))return{...e,selectionEnd:e.selectionStart}}let o=vte(e.selectionStart,t),r=vte(e.selectionEnd,t);return o===e.selectionStart&&r===e.selectionEnd?e:{selectionStart:o,selectionEnd:r}}function Z3e(e=!1,t){switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e}function X3e(e=!0,t){return t.type==="TOGGLE_SELECTION"?t.isSelectionEnabled:e}function Q3e(e=null,t){switch(t.type){case"SHOW_VIEWPORT_MODAL":return t.clientIds;case"HIDE_VIEWPORT_MODAL":return null}return e}function J3e(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 eFe(e=!1,t){return t.type==="SET_BLOCK_REMOVAL_RULES"?t.rules:e}function tFe(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 oFe(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 rFe(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,u_.default)(e,a)?e:a}case"HIDE_INSERTION_POINT":return null}return e}function nFe(e={isValid:!0},t){return t.type==="SET_TEMPLATE_VALIDITY"?{...e,isValid:t.isValid}:e}function iFe(e=P0,t){if(t.type==="UPDATE_SETTINGS"){let o=t.reset?{...P0,...t.settings}:{...e,...t.settings};return Object.defineProperty(o,"__unstableIsPreviewMode",{get(){return(0,_te.default)("__unstableIsPreviewMode",{since:"6.8",alternative:"isPreviewMode"}),this.isPreviewMode}}),o}return e}function sFe(e=fte,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,M0.select)(jB.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 aFe=(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,u_.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 lFe(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 cFe(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 uFe(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 dFe(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 fFe(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 pFe(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(!sz(t.blocks)[e])return;break}return e}function mFe(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 gFe(e=[],t){return t.type==="REGISTER_INSERTER_MEDIA_CATEGORY"?[...e,t.category]:e}function hFe(e=!1,t){return t.type==="LAST_FOCUS"?t.lastFocus:e}function bFe(e=100,t){switch(t.type){case"SET_ZOOM_LEVEL":return t.zoom;case"RESET_ZOOM_LEVEL":return 100}return e}function yFe(e=null,t){switch(t.type){case"SET_INSERTION_POINT":return t.value;case"SELECT_BLOCK":return null}return e}function vFe(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 _Fe(e=0,t){return t.type==="INCREMENT_LIST_VIEW_EXPAND_REVISION"?e+1:e}function wFe(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 kFe(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 xFe(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:{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:{pseudo:"default",...o}}}case"SELECT_BLOCK":case"SELECTION_CHANGE":{let o=t.clientId??t.start?.clientId,r=t.clientId??t.end?.clientId;if(e?.clientId&&(o!==r||e.clientId!==o))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&&!sz(t.blocks)[e.clientId])return;break}}return e}function SFe(e="default",t){return t.type==="SET_STYLE_STATE_VIEWPORT"?t.viewport??"default":e}function CFe(e=!1,t){return t.type==="SET_RESPONSIVE_EDITING"?t.enabled:e}var EFe=(0,M0.combineReducers)({blocks:U3e,isDragging:$3e,isTyping:G3e,isBlockInterfaceHidden:W3e,draggedBlocks:Y3e,selection:q3e,isMultiSelecting:Z3e,isSelectionEnabled:X3e,initialPosition:tFe,blocksMode:oFe,blockListSettings:aFe,insertionPoint:yFe,insertionCue:rFe,template:nFe,settings:iFe,preferences:sFe,lastBlockAttributesChange:lFe,lastFocus:hFe,expandedBlock:dFe,highlightedBlock:cFe,lastBlockInserted:fFe,editedContentOnlySection:pFe,blockVisibility:K3e,viewportModalClientIds:Q3e,styleOverrides:mFe,removalPromptData:J3e,blockRemovalRules:eFe,registeredInserterMediaCategories:gFe,zoomLevel:bFe,hasBlockSpotlight:uFe,openedListViewPanels:vFe,listViewExpandRevision:_Fe,listViewContentPanelOpen:wFe,requestedInspectorTab:kFe,selectedBlockStyleState:xFe,styleStateViewport:SFe,isResponsiveEditing:CFe});function kte(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 az(e,t,o){let r=kte(e,t);if(r&&(o(r),!!r?.innerBlocks?.length))for(let n of r?.innerBlocks)az(e,n.clientId,o)}function A0(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 TFe(e){return e?.attributes?.metadata?.bindings&&Object.keys(e?.attributes?.metadata?.bindings).length}function nz(e,t=""){let o=e?.zoomLevel<100||e?.zoomLevel==="auto-scaled",r=new Map,n=e.settings?.[dm],i=e.blocks.order.get(n),s=Array.from(e.blocks.blockEditingModes).some(([,h])=>h==="disabled"),a=[],l=[];e.blocks.controlledInnerBlocks.forEach(h=>{let b=e.blocks.byClientId?.get(h);b?.name==="core/template-part"&&a.push(h),b?.name==="core/block"&&l.push(h)});let u=Array.from(e.blockListSettings).flatMap(([h,b])=>b?.templateLock==="contentOnly"?[h]:[]),d=e.settings?.[fm],f=e.settings?.disableContentOnlyForUnsyncedPatterns,p=d||f?[]:Array.from(e.blocks.attributes.keys()).filter(h=>e.blocks.attributes.get(h)?.metadata?.patternName),m=e.settings?.disableContentOnlyForTemplateParts,g=[...u,...p,...d||m?[]:a];return az(e,t,h=>{let{clientId:b,name:v}=h,y=!!e.editedContentOnlySection,_=!1;if(y&&(_=b===e.editedContentOnlySection||!!A0(e,b,[e.editedContentOnlySection]),!_)){r.set(b,"disabled");return}if(!e.blocks.blockEditingModes.has(b)){if(s){let w,k=e.blocks.parents.get(b);for(;k!==void 0&&(e.blocks.blockEditingModes.has(k)&&(w=e.blocks.blockEditingModes.get(k)),!w);)k=e.blocks.parents.get(k);if(w==="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(A0(e,b,l)){r.set(b,"disabled");return}return}let w=A0(e,b,l);if(w){if(A0(e,w,l)){r.set(b,"disabled");return}if(TFe(h)){r.set(b,"contentOnly");return}r.set(b,"disabled");return}}if(y&&_){r.set(b,"default");return}g.length&&A0(e,b,g)&&(O3e(v)?r.set(b,"contentOnly"):r.set(b,"disabled"))}}),r}function mm({prevState:e,nextState:t,addedBlocks:o,removedClientIds:r}){let n=e.derivedBlockEditingModes,i;return r?.forEach(s=>{az(e,s,a=>{n.has(a.clientId)&&(i||(i=new Map(n)),i.delete(a.clientId))})}),o?.forEach(s=>{let a=nz(t,s.clientId);a.size&&(i?i=new Map([...i?.size?i:[],...a]):i=new Map([...n?.size?n:[],...a]))}),i}function RFe(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=mm({prevState:t,nextState:r,removedClientIds:o.clientIds});if(n)return{...r,derivedBlockEditingModes:n??t.derivedBlockEditingModes};break}case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{let n=mm({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=mm({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=mm({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=kte(r,o.clientId);if(!n)break;let i=mm({prevState:t,nextState:r,removedClientIds:[o.clientId],addedBlocks:[n]});if(i)return{...r,derivedBlockEditingModes:i??t.derivedBlockEditingModes};break}case"REPLACE_BLOCKS":{let n=mm({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=mm({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=mm({prevState:t,nextState:r,addedBlocks:n,removedClientIds:o.clientIds});if(i)return{...r,derivedBlockEditingModes:i??t.derivedBlockEditingModes};break}case"UPDATE_SETTINGS":{if(t?.settings?.[dm]!==r?.settings?.[dm]||!!t?.settings?.disableContentOnlyForUnsyncedPatterns!=!!r?.settings?.disableContentOnlyForUnsyncedPatterns||!!t?.settings?.[fm]!=!!r?.settings?.[fm]||!!t?.settings?.disableContentOnlyForTemplateParts!=!!r?.settings?.disableContentOnlyForTemplateParts)return{...r,derivedBlockEditingModes:nz(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:nz(r)}}return r.derivedBlockEditingModes=t?.derivedBlockEditingModes??new Map,r}}function BFe(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 xte=(0,iz.pipe)(RFe,BFe)(EFe);var Wj={};No(Wj,{__experimentalGetActiveBlockIdByBlockNames:()=>Y8e,__experimentalGetAllowedBlocks:()=>I8e,__experimentalGetAllowedPatterns:()=>M8e,__experimentalGetBlockListSettingsForBlocks:()=>z8e,__experimentalGetDirectInsertBlock:()=>P8e,__experimentalGetGlobalBlocksByName:()=>z4e,__experimentalGetLastBlockAttributeChanges:()=>U8e,__experimentalGetParsedPattern:()=>O8e,__experimentalGetPatternTransformItems:()=>D8e,__experimentalGetPatternsByBlockTypes:()=>L8e,__experimentalGetReusableBlockTitle:()=>j8e,__unstableGetBlockWithoutInnerBlocks:()=>N4e,__unstableGetClientIdWithClientIdsTree:()=>D4e,__unstableGetClientIdsTree:()=>V4e,__unstableGetContentLockingParent:()=>tze,__unstableGetLastBlockChangeHistoryMode:()=>F8e,__unstableGetSelectedBlocksWithPartialSelection:()=>l8e,__unstableGetTemporarilyEditingAsBlocks:()=>oze,__unstableGetVisibleBlocks:()=>X8e,__unstableHasActiveBlockOverlayActive:()=>Yoe,__unstableIsFullySelected:()=>n8e,__unstableIsLastBlockChangeIgnored:()=>H8e,__unstableIsSelectionCollapsed:()=>i8e,__unstableIsSelectionMergeable:()=>a8e,__unstableIsWithinBlockOverlay:()=>Q8e,__unstableSelectionHasUnmergeableBlock:()=>s8e,areInnerBlocksControlled:()=>l2,canEditBlock:()=>Woe,canInsertBlockType:()=>Cb,canInsertBlocks:()=>k8e,canLockBlockType:()=>S8e,canMoveBlock:()=>Uoe,canMoveBlocks:()=>x8e,canRemoveBlock:()=>Hj,canRemoveBlocks:()=>Hoe,didAutomaticChange:()=>G8e,getAdjacentBlockClientId:()=>Dj,getAllowedBlocks:()=>Mj,getBlock:()=>Sf,getBlockAttributes:()=>ya,getBlockCount:()=>H4e,getBlockEditingMode:()=>ts,getBlockHierarchyRootClientId:()=>K4e,getBlockIndex:()=>Doe,getBlockInsertionPoint:()=>y8e,getBlockListSettings:()=>E_,getBlockMode:()=>Aj,getBlockName:()=>Jt,getBlockNamesByClientId:()=>j4e,getBlockOrder:()=>jn,getBlockParents:()=>nl,getBlockParentsByBlockName:()=>Lj,getBlockRootClientId:()=>yr,getBlockSelectionEnd:()=>W4e,getBlockSelectionStart:()=>U4e,getBlockTransformItems:()=>R8e,getBlocks:()=>L4e,getBlocksByClientId:()=>i2,getBlocksByName:()=>Aoe,getClientIdsOfDescendants:()=>Ooe,getClientIdsWithDescendants:()=>C_,getDirectInsertBlock:()=>$oe,getDraggedBlockClientIds:()=>g8e,getFirstMultiSelectedBlockClientId:()=>Vj,getGlobalBlockCount:()=>F4e,getHoveredBlockClientId:()=>Z8e,getInserterItems:()=>T8e,getLastMultiSelectedBlockClientId:()=>Noe,getLowestCommonAncestorWithSelectedBlock:()=>q4e,getMultiSelectedBlockClientIds:()=>Bm,getMultiSelectedBlocks:()=>J4e,getMultiSelectedBlocksEndClientId:()=>r8e,getMultiSelectedBlocksStartClientId:()=>o8e,getNextBlockClientId:()=>X4e,getPatternsByBlockTypes:()=>N8e,getPreviousBlockClientId:()=>Z4e,getSelectedBlock:()=>Y4e,getSelectedBlockClientId:()=>R_,getSelectedBlockClientIds:()=>Rm,getSelectedBlockCount:()=>G4e,getSelectedBlocksInitialCaretPosition:()=>Q4e,getSelectionEnd:()=>RC,getSelectionStart:()=>TC,getSettings:()=>vf,getTemplate:()=>w8e,getTemplateLock:()=>ju,hasBlockMovingClientId:()=>W8e,hasDraggedInnerBlock:()=>zoe,hasInserterItems:()=>B8e,hasMultiSelection:()=>d8e,hasSelectedBlock:()=>$4e,hasSelectedInnerBlock:()=>Foe,isAncestorBeingDragged:()=>h8e,isAncestorMultiSelected:()=>t8e,isBlockBeingDragged:()=>Fj,isBlockHighlighted:()=>$8e,isBlockInsertionPointVisible:()=>v8e,isBlockMultiSelected:()=>Loe,isBlockSelected:()=>Voe,isBlockValid:()=>M4e,isBlockVisible:()=>q8e,isBlockWithinSelection:()=>u8e,isCaretWithinFormattedText:()=>b8e,isDraggingBlocks:()=>joe,isFirstMultiSelectedBlock:()=>e8e,isGroupable:()=>eze,isLastBlockChangePersistent:()=>V8e,isMultiSelecting:()=>f8e,isSelectionEnabled:()=>p8e,isTyping:()=>m8e,isUngroupable:()=>J8e,isValidTemplate:()=>_8e,wasBlockJustInserted:()=>K8e});var Ot=c(ce(),1),Ioe=c(Bo(),1);var HB=c(F(),1),xt=(0,HB.forwardRef)(({icon:e,size:t=24,...o},r)=>(0,HB.cloneElement)(e,{width:t,height:t,...o,ref:r}));var UB=c(me(),1),lz=c(T(),1),cb=(0,lz.jsx)(UB.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,lz.jsx)(UB.Path,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"})});var WB=c(me(),1),cz=c(T(),1),uz=(0,cz.jsx)(WB.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,cz.jsx)(WB.Path,{d:"M4 12.8h16v-1.5H4v1.5zm0 7h12.4v-1.5H4v1.5zM4 4.3v1.5h16V4.3H4z"})});var GB=c(me(),1),dz=c(T(),1),gm=(0,dz.jsx)(GB.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,dz.jsx)(GB.Path,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"})});var $B=c(me(),1),fz=c(T(),1),ub=(0,fz.jsx)($B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,fz.jsx)($B.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM5 9h14v6H5V9Z"})});var YB=c(me(),1),pz=c(T(),1),hm=(0,pz.jsx)(YB.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,pz.jsx)(YB.Path,{d:"M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"})});var KB=c(me(),1),mz=c(T(),1),gz=(0,mz.jsx)(KB.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,mz.jsx)(KB.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 qB=c(me(),1),hz=c(T(),1),N0=(0,hz.jsx)(qB.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,hz.jsx)(qB.Path,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"})});var ZB=c(me(),1),bz=c(T(),1),L0=(0,bz.jsx)(ZB.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,bz.jsx)(ZB.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 XB=c(me(),1),yz=c(T(),1),vz=(0,yz.jsx)(XB.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,yz.jsx)(XB.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 QB=c(me(),1),_z=c(T(),1),wz=(0,_z.jsx)(QB.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,_z.jsx)(QB.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 JB=c(me(),1),kz=c(T(),1),D0=(0,kz.jsx)(JB.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,kz.jsx)(JB.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 eI=c(me(),1),xz=c(T(),1),Sz=(0,xz.jsx)(eI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,xz.jsx)(eI.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 tI=c(me(),1),Cz=c(T(),1),Ez=(0,Cz.jsx)(tI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Cz.jsx)(tI.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 12v-1.5h1.5V16h-1.5Zm0-8v5h1.5V8h-1.5Z"})});var oI=c(me(),1),Tz=c(T(),1),Os=(0,Tz.jsx)(oI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Tz.jsx)(oI.Path,{d:"M16.5 7.5 10 13.9l-2.5-2.4-1 1 3.5 3.6 7.5-7.6z"})});var rI=c(me(),1),Rz=c(T(),1),Rn=(0,Rz.jsx)(rI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Rz.jsx)(rI.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})});var nI=c(me(),1),Bz=c(T(),1),V0=(0,Bz.jsx)(nI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Bz.jsx)(nI.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"})});var iI=c(me(),1),Iz=c(T(),1),ai=(0,Iz.jsx)(iI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Iz.jsx)(iI.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})});var sI=c(me(),1),Pz=c(T(),1),bm=(0,Pz.jsx)(sI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Pz.jsx)(sI.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 aI=c(me(),1),Oz=c(T(),1),hr=(0,Oz.jsx)(aI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Oz.jsx)(aI.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})});var lI=c(me(),1),Az=c(T(),1),db=(0,Az.jsx)(lI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Az.jsx)(lI.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})});var cI=c(me(),1),Mz=c(T(),1),fb=(0,Mz.jsx)(cI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Mz.jsx)(cI.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 uI=c(me(),1),Nz=c(T(),1),Lz=(0,Nz.jsx)(uI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Nz.jsx)(uI.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 dI=c(me(),1),Dz=c(T(),1),Vz=(0,Dz.jsx)(dI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Dz.jsx)(dI.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 fI=c(me(),1),Fz=c(T(),1),pb=(0,Fz.jsx)(fI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Fz.jsx)(fI.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 pI=c(me(),1),zz=c(T(),1),jz=(0,zz.jsx)(pI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,zz.jsx)(pI.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 mb=c(me(),1),d_=c(T(),1),Hz=(0,d_.jsxs)(mb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,d_.jsx)(mb.G,{opacity:".25",children:(0,d_.jsx)(mb.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,d_.jsx)(mb.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 gb=c(me(),1),f_=c(T(),1),Uz=(0,f_.jsxs)(gb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,f_.jsx)(gb.G,{opacity:".25",children:(0,f_.jsx)(gb.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,f_.jsx)(gb.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 hb=c(me(),1),p_=c(T(),1),Wz=(0,p_.jsxs)(hb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,p_.jsx)(hb.G,{opacity:".25",children:(0,p_.jsx)(hb.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,p_.jsx)(hb.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 bb=c(me(),1),m_=c(T(),1),Gz=(0,m_.jsxs)(bb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,m_.jsx)(bb.G,{opacity:".25",children:(0,m_.jsx)(bb.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,m_.jsx)(bb.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 mI=c(me(),1),$z=c(T(),1),Yz=(0,$z.jsx)(mI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,$z.jsx)(mI.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 gI=c(me(),1),Kz=c(T(),1),F0=(0,Kz.jsx)(gI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Kz.jsx)(gI.Path,{d:"M8 7h2V5H8v2zm0 6h2v-2H8v2zm0 6h2v-2H8v2zm6-14v2h2V5h-2zm0 8h2v-2h-2v2zm0 6h2v-2h-2v2z"})});var hI=c(me(),1),qz=c(T(),1),Zz=(0,qz.jsx)(hI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,qz.jsx)(hI.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 bI=c(me(),1),Xz=c(T(),1),z0=(0,Xz.jsx)(bI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Xz.jsx)(bI.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 yI=c(me(),1),Qz=c(T(),1),Jz=(0,Qz.jsx)(yI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Qz.jsx)(yI.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 vI=c(me(),1),e7=c(T(),1),t7=(0,e7.jsx)(vI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,e7.jsx)(vI.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 _I=c(me(),1),o7=c(T(),1),r7=(0,o7.jsx)(_I.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o7.jsx)(_I.Path,{d:"M12 4 4 19h16L12 4zm0 3.2 5.5 10.3H12V7.2z"})});var wI=c(me(),1),n7=c(T(),1),i7=(0,n7.jsx)(wI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,n7.jsx)(wI.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 kI=c(me(),1),s7=c(T(),1),a7=(0,s7.jsx)(kI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,s7.jsx)(kI.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 xI=c(me(),1),l7=c(T(),1),c7=(0,l7.jsx)(xI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,l7.jsx)(xI.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 SI=c(me(),1),u7=c(T(),1),d7=(0,u7.jsx)(SI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,u7.jsx)(SI.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 CI=c(me(),1),f7=c(T(),1),p7=(0,f7.jsx)(CI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,f7.jsx)(CI.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 EI=c(me(),1),m7=c(T(),1),g7=(0,m7.jsx)(EI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,m7.jsx)(EI.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 TI=c(me(),1),h7=c(T(),1),RI=(0,h7.jsx)(TI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,h7.jsx)(TI.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 BI=c(me(),1),b7=c(T(),1),j0=(0,b7.jsx)(BI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,b7.jsx)(BI.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 II=c(me(),1),y7=c(T(),1),H0=(0,y7.jsx)(II.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,y7.jsx)(II.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 PI=c(me(),1),v7=c(T(),1),U0=(0,v7.jsx)(PI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,v7.jsx)(PI.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 OI=c(me(),1),_7=c(T(),1),w7=(0,_7.jsx)(OI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,_7.jsx)(OI.Path,{d:"M17.6 7c-.6.9-1.5 1.7-2.6 2v1h2v7h2V7h-1.4zM11 11H7V7H5v10h2v-4h4v4h2V7h-2v4z"})});var AI=c(me(),1),k7=c(T(),1),x7=(0,k7.jsx)(AI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,k7.jsx)(AI.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 MI=c(me(),1),S7=c(T(),1),C7=(0,S7.jsx)(MI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,S7.jsx)(MI.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 NI=c(me(),1),E7=c(T(),1),T7=(0,E7.jsx)(NI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,E7.jsx)(NI.Path,{d:"M20 13V7h-3l-4 6v2h5v2h2v-2h1v-2h-1zm-2 0h-2.8L18 9v4zm-9-2H5V7H3v10h2v-4h4v4h2V7H9v4z"})});var LI=c(me(),1),R7=c(T(),1),B7=(0,R7.jsx)(LI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,R7.jsx)(LI.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 DI=c(me(),1),I7=c(T(),1),P7=(0,I7.jsx)(DI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,I7.jsx)(DI.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 VI=c(me(),1),O7=c(T(),1),A7=(0,O7.jsx)(VI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,O7.jsx)(VI.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"})});var FI=c(me(),1),M7=c(T(),1),W0=(0,M7.jsx)(FI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,M7.jsx)(FI.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 zI=c(me(),1),N7=c(T(),1),L7=(0,N7.jsx)(zI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,N7.jsx)(zI.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 jI=c(me(),1),D7=c(T(),1),G0=(0,D7.jsx)(jI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,D7.jsx)(jI.Path,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})});var HI=c(me(),1),V7=c(T(),1),$0=(0,V7.jsx)(HI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,V7.jsx)(HI.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"})});var UI=c(me(),1),F7=c(T(),1),ym=(0,F7.jsx)(UI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,F7.jsx)(UI.Path,{d:"M12.5 15v5H11v-5H4V9h7V4h1.5v5h7v6h-7Z"})});var WI=c(me(),1),z7=c(T(),1),vm=(0,z7.jsx)(WI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,z7.jsx)(WI.Path,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"})});var GI=c(me(),1),j7=c(T(),1),_m=(0,j7.jsx)(GI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,j7.jsx)(GI.Path,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"})});var $I=c(me(),1),H7=c(T(),1),Y0=(0,H7.jsx)($I.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,H7.jsx)($I.Path,{d:"M7 4H17V8L7 8V4ZM7 16L17 16V20L7 20V16ZM20 11.25H4V12.75H20V11.25Z"})});var YI=c(me(),1),U7=c(T(),1),g_=(0,U7.jsx)(YI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,U7.jsx)(YI.Path,{d:"M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"})});var KI=c(me(),1),W7=c(T(),1),K0=(0,W7.jsx)(KI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,W7.jsx)(KI.Path,{d:"M4 4L20 4L20 5.5L4 5.5L4 4ZM10 7L14 7L14 17L10 17L10 7ZM20 18.5L4 18.5L4 20L20 20L20 18.5Z"})});var qI=c(me(),1),G7=c(T(),1),h_=(0,G7.jsx)(qI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,G7.jsx)(qI.Path,{d:"M4 4H5.5V20H4V4ZM7 10L17 10V14L7 14V10ZM20 4H18.5V20H20V4Z"})});var ZI=c(me(),1),$7=c(T(),1),q0=(0,$7.jsx)(ZI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,$7.jsx)(ZI.Path,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})});var XI=c(me(),1),Y7=c(T(),1),gf=(0,Y7.jsx)(XI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Y7.jsx)(XI.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 QI=c(me(),1),K7=c(T(),1),q7=(0,K7.jsx)(QI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,K7.jsx)(QI.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 JI=c(me(),1),Z7=c(T(),1),As=(0,Z7.jsx)(JI.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Z7.jsx)(JI.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 eP=c(me(),1),X7=c(T(),1),Ms=(0,X7.jsx)(eP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,X7.jsx)(eP.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 tP=c(me(),1),Q7=c(T(),1),Z0=(0,Q7.jsx)(tP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Q7.jsx)(tP.Path,{d:"M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"})});var oP=c(me(),1),J7=c(T(),1),e9=(0,J7.jsx)(oP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,J7.jsx)(oP.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 rP=c(me(),1),t9=c(T(),1),o9=(0,t9.jsx)(rP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,t9.jsx)(rP.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 nP=c(me(),1),r9=c(T(),1),yb=(0,r9.jsx)(nP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,r9.jsx)(nP.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 X0=c(me(),1),Q0=c(T(),1),b_=(0,Q0.jsxs)(X0.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,Q0.jsx)(X0.Path,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,Q0.jsx)(X0.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 iP=c(me(),1),n9=c(T(),1),J0=(0,n9.jsx)(iP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,n9.jsx)(iP.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 sP=c(me(),1),i9=c(T(),1),ha=(0,i9.jsx)(sP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,i9.jsx)(sP.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})});var eC=c(me(),1),tC=c(T(),1),vb=(0,tC.jsxs)(eC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,tC.jsx)(eC.Path,{d:"M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"}),(0,tC.jsx)(eC.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 aP=c(me(),1),s9=c(T(),1),a9=(0,s9.jsx)(aP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,s9.jsx)(aP.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 lP=c(me(),1),l9=c(T(),1),_b=(0,l9.jsx)(lP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,l9.jsx)(lP.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})});var cP=c(me(),1),c9=c(T(),1),u9=(0,c9.jsx)(cP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,c9.jsx)(cP.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 uP=c(me(),1),d9=c(T(),1),Ns=(0,d9.jsx)(uP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,d9.jsx)(uP.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})});var dP=c(me(),1),f9=c(T(),1),p9=(0,f9.jsx)(dP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,f9.jsx)(dP.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM7 9h10v6H7V9Z"})});var fP=c(me(),1),m9=c(T(),1),g9=(0,m9.jsx)(fP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,m9.jsx)(fP.Path,{d:"M5 5.5h8V4H5v1.5ZM5 20h8v-1.5H5V20ZM19 9H5v6h14V9Z"})});var pP=c(me(),1),h9=c(T(),1),b9=(0,h9.jsx)(pP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,h9.jsx)(pP.Path,{d:"M19 5.5h-8V4h8v1.5ZM19 20h-8v-1.5h8V20ZM5 9h14v6H5V9Z"})});var mP=c(me(),1),y9=c(T(),1),v9=(0,y9.jsx)(mP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,y9.jsx)(mP.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 gP=c(me(),1),_9=c(T(),1),w9=(0,_9.jsx)(gP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,_9.jsx)(gP.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 hP=c(me(),1),k9=c(T(),1),x9=(0,k9.jsx)(hP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,k9.jsx)(hP.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm11.53-1.47-1.06-1.06L11 12.94l-1.47-1.47-1.06 1.06L11 15.06l4.53-4.53Z"})});var bP=c(me(),1),S9=c(T(),1),Bn=(0,S9.jsx)(bP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,S9.jsx)(bP.Path,{d:"M7 11.5h10V13H7z"})});var yP=c(me(),1),C9=c(T(),1),E9=(0,C9.jsx)(yP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,C9.jsx)(yP.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 vP=c(me(),1),T9=c(T(),1),R9=(0,T9.jsx)(vP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,T9.jsx)(vP.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 _P=c(me(),1),B9=c(T(),1),I9=(0,B9.jsx)(_P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,B9.jsx)(_P.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 wP=c(me(),1),P9=c(T(),1),wb=(0,P9.jsx)(wP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,P9.jsx)(wP.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 oC=c(me(),1),rC=c(T(),1),O9=(0,rC.jsxs)(oC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,rC.jsx)(oC.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,rC.jsx)(oC.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 kP=c(me(),1),A9=c(T(),1),M9=(0,A9.jsx)(kP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,A9.jsx)(kP.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 xP=c(me(),1),N9=c(T(),1),SP=(0,N9.jsx)(xP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,N9.jsx)(xP.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z"})});var nC=c(me(),1),iC=c(T(),1),L9=(0,iC.jsxs)(nC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,iC.jsx)(nC.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,iC.jsx)(nC.Path,{d:"m16.5 19.5h-9v-1.5h9z"})]});var y_=c(me(),1),v_=c(T(),1),D9=(0,v_.jsxs)(y_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,v_.jsx)(y_.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,v_.jsx)(y_.Path,{d:"m4.5 7.5v9h1.5v-9z"}),(0,v_.jsx)(y_.Path,{d:"m18 7.5v9h1.5v-9z"})]});var sC=c(me(),1),aC=c(T(),1),V9=(0,aC.jsxs)(sC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,aC.jsx)(sC.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,aC.jsx)(sC.Path,{d:"m4.5 16.5v-9h1.5v9z"})]});var lC=c(me(),1),cC=c(T(),1),F9=(0,cC.jsxs)(lC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,cC.jsx)(lC.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,cC.jsx)(lC.Path,{d:"m18 16.5v-9h1.5v9z"})]});var uC=c(me(),1),dC=c(T(),1),z9=(0,dC.jsxs)(uC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,dC.jsx)(uC.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,dC.jsx)(uC.Path,{d:"m16.5 6h-9v-1.5h9z"})]});var __=c(me(),1),w_=c(T(),1),j9=(0,w_.jsxs)(__.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,w_.jsx)(__.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,w_.jsx)(__.Path,{d:"m7.5 6h9v-1.5h-9z"}),(0,w_.jsx)(__.Path,{d:"m7.5 19.5h9v-1.5h-9z"})]});var CP=c(me(),1),H9=c(T(),1),U9=(0,H9.jsx)(CP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,H9.jsx)(CP.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 EP=c(me(),1),W9=c(T(),1),fC=(0,W9.jsx)(EP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,W9.jsx)(EP.Path,{d:"M5 4h14v11H5V4Zm11 16H8v-1.5h8V20Z"})});var TP=c(me(),1),G9=c(T(),1),kb=(0,G9.jsx)(TP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,G9.jsx)(TP.Path,{d:"M16 5.5H8V4h8v1.5ZM16 20H8v-1.5h8V20ZM5 9h14v6H5V9Z"})});var RP=c(me(),1),$9=c(T(),1),Y9=(0,$9.jsx)(RP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,$9.jsx)(RP.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 BP=c(me(),1),K9=c(T(),1),ol=(0,K9.jsx)(BP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,K9.jsx)(BP.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 IP=c(me(),1),q9=c(T(),1),Z9=(0,q9.jsx)(IP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,q9.jsx)(IP.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 PP=c(me(),1),X9=c(T(),1),Q9=(0,X9.jsx)(PP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,X9.jsx)(PP.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 OP=c(me(),1),J9=c(T(),1),ej=(0,J9.jsx)(OP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,J9.jsx)(OP.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 AP=c(me(),1),tj=c(T(),1),oj=(0,tj.jsx)(AP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,tj.jsx)(AP.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 MP=c(me(),1),rj=c(T(),1),nj=(0,rj.jsx)(MP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,rj.jsx)(MP.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 NP=c(me(),1),ij=c(T(),1),sj=(0,ij.jsx)(NP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,ij.jsx)(NP.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 LP=c(me(),1),aj=c(T(),1),hf=(0,aj.jsx)(LP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,aj.jsx)(LP.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 DP=c(me(),1),lj=c(T(),1),kc=(0,lj.jsx)(DP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,lj.jsx)(DP.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 VP=c(me(),1),cj=c(T(),1),uj=(0,cj.jsx)(VP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,cj.jsx)(VP.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 FP=c(me(),1),dj=c(T(),1),fj=(0,dj.jsx)(FP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,dj.jsx)(FP.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 zP=c(me(),1),pj=c(T(),1),mj=(0,pj.jsx)(zP.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,pj.jsx)(zP.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 xf=c(Ar(),1),va=c(Mt(),1),It=c(te(),1);var Eoe=c(ce(),1),Toe=c(Tte(),1);var br="core/block-editor";var o2={};No(o2,{canHostEditableRoot:()=>G6e,getAllPatterns:()=>r4e,getBlockRemovalRules:()=>X6e,getBlockSettings:()=>foe,getBlockStyles:()=>u4e,getBlockWithoutAttributes:()=>j6e,getClientIdWithClientIdsTree:()=>Ej,getClientIdsTree:()=>Tj,getClosestAllowedInsertionPoint:()=>boe,getClosestAllowedInsertionPointForPattern:()=>f4e,getContentLockingParent:()=>Bj,getEditedContentOnlySection:()=>Ij,getEnabledBlockParents:()=>q6e,getEnabledClientIdsTree:()=>Y6e,getExpandedBlock:()=>l4e,getInserterMediaCategories:()=>e4e,getInsertionPoint:()=>p4e,getLastFocus:()=>s4e,getLastInsertedBlocksClientIds:()=>z6e,getListViewClientIdsTree:()=>K6e,getListViewExpandRevision:()=>w4e,getParentSectionBlock:()=>_f,getPatternBySlug:()=>o4e,getRegisteredInserterMediaCategories:()=>J6e,getRemovalPromptData:()=>Z6e,getRequestedInspectorTab:()=>S4e,getReusableBlocks:()=>i4e,getSectionRootClientId:()=>Sb,getSelectedBlockStyleState:()=>xoe,getStyleOverrides:()=>Q6e,getStyleStateViewport:()=>koe,getViewportModalClientIds:()=>x4e,getZoomLevel:()=>d4e,hasAllowedPatterns:()=>t4e,hasBlockSpotlight:()=>b4e,hasSelectedStyleState:()=>E4e,isBlockHiddenAnywhere:()=>m4e,isBlockHiddenAtViewport:()=>yoe,isBlockHiddenEverywhere:()=>Oj,isBlockInterfaceHidden:()=>F6e,isBlockParentHiddenAtViewport:()=>h4e,isBlockParentHiddenEverywhere:()=>g4e,isBlockSubtreeDisabled:()=>H6e,isContainerInsertableToInContentOnlyMode:()=>_C,isDragging:()=>a4e,isEditLockedBlock:()=>voe,isListViewContentPanelOpen:()=>v4e,isListViewPanelOpened:()=>_4e,isLockedBlock:()=>y4e,isMoveLockedBlock:()=>_oe,isRemoveLockedBlock:()=>woe,isResponsiveEditing:()=>C4e,isSectionBlock:()=>wf,isSelectedBlockStyleStateShownOnCanvas:()=>T4e,isSyncedBlock:()=>c4e,isWithinEditedContentOnlySection:()=>t2,isZoomOut:()=>Pj,shouldRenderBlockListView:()=>k4e});var In=c(te(),1),Cm=c(ce(),1);function Rte(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 $o=(e,t,o)=>{let r=Array.isArray(t)?t:t.split("."),n=e;return r.forEach(i=>{n=n?.[i]}),n??o};var Pte=c(k_(),1);var IFe="1600px",PFe="320px",OFe=1,AFe=.25,MFe=.75,NFe="14px";function Ite({minimumFontSize:e,maximumFontSize:t,fontSize:o,minimumViewportWidth:r=PFe,maximumViewportWidth:n=IFe,scaleFactor:i=OFe,minimumFontSizeLimit:s}){if(s=Vu(s)?s:NFe,o){let _=Vu(o);if(!_?.unit||!_?.value)return null;let w=Vu(s,{coerceTo:_.unit});if(w?.value&&!e&&!t&&_?.value<=w?.value)return null;if(t||(t=`${_.value}${_.unit}`),!e){let k=_.unit==="px"?_.value:_.value*16,x=Math.min(Math.max(1-.075*Math.log2(k),AFe),MFe),S=pC(_.value*x,3);w?.value&&S<w?.value?e=`${w.value}${w.unit}`:e=`${S}${_.unit}`}}let a=Vu(e),l=a?.unit||"rem",u=Vu(t,{coerceTo:l});if(!a||!u)return null;let d=Vu(e,{coerceTo:"rem"}),f=Vu(n,{coerceTo:l}),p=Vu(r,{coerceTo:l});if(!f||!p||!d)return null;let m=f.value-p.value;if(!m)return null;let g=pC(p.value/100,3),h=pC(g,3)+l,b=100*((u.value-a.value)/m),v=pC((b||1)*i,3),y=`${d.value}${d.unit} + ((1vw - ${h}) * ${v})`;return`clamp(${e}, ${y}, ${t})`}function Vu(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:pC(d,3),unit:u}:null}function pC(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 LFe(e){let t=e?.typography??{},o=e?.layout,r=Vu(o?.wideSize)?o?.wideSize:null;return gj(t)&&r?{fluid:{maxViewportWidth:r,...typeof t.fluid=="object"?t.fluid:{}}}:{fluid:t?.fluid}}function bf(e,t){let{size:o}=e;if(!o||o==="0"||e?.fluid===!1||!gj(t?.typography)&&!gj(e))return o;let r=LFe(t)?.fluid??{},n=Ite({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 zu="body",mC=":root";function Fu(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 jP=[{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)=>bf(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 xc(e,t){if(!e||!t)return t;let o=Fu(e),r=Fu(t),n=[];return o.forEach(i=>{r.forEach(s=>{n.push(`${i.trim()} ${s.trim()}`)})}),n.join(", ")}function Ote(e,t){if(!e||!t)return;let o={};return Object.entries(t).forEach(([r,n])=>{typeof n=="string"&&(o[r]=xc(e,n)),typeof n=="object"&&(o[r]={},Object.entries(n).forEach(([i,s])=>{o[r][i]=xc(e,s)}))}),o}function HP(e,t){return e.includes(",")?Fu(e).map(n=>n+t).join(","):e+t}function hj(e,t){let o=`.is-style-${e}`;if(!t)return o;let r=/[^\s:]+/,n=s=>s+o;return Fu(t).map(s=>s.replace(r,n)).join(",")}function Ate(e,t){let o=`.is-style-${e}`,r=Fu(t).map(n=>{let i=n.trim(),s=`${o} `;return i.startsWith(s)?i.slice(s.length):i});return hj(e,r.join(","))}function DFe(e,t){if(!e||!t)return e;if(typeof e=="object"&&"ref"in e&&e?.ref){let o=(0,Pte.getCSSValueFromRawStyle)($o(t,e.ref));return typeof o=="object"&&o!==null&&"ref"in o&&o?.ref?void 0:o===void 0?e:o}return e}function VFe(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 wm(e,t){if(!e||!t)return e;let o=DFe(e,t);return typeof o=="object"&&o!==null&&"url"in o&&o?.url&&(o.url=VFe(o.url,t?._links?.["wp:theme-file"])),o}function Mte(e,t,o=[],r="slug",n){let i=[t?$o(e,["blocks",t,...o]):void 0,$o(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"||Mte(e,t,o,"slug",d.slug)[r]===d[r]?d:void 0}}}}function FFe(e,t,o,[r,n]=[]){let i=jP.find(a=>a.cssVarInfix===r);if(!i||!e.settings)return o;let s=Mte(e.settings,t,i.path,"slug",n);if(s){let{valueKey:a}=i,l=s[a];return rl(e,t,l)}return o}function zFe(e,t,o,r=[]){let n=(t?$o(e?.settings??{},["blocks",t,"custom",...r]):void 0)??$o(e?.settings??{},["custom",...r]);return n?rl(e,t,n):o}function rl(e,t,o){if(!o||typeof o!="string")if(typeof o=="object"&&o!==null&&"ref"in o&&typeof o.ref=="string"){let u=$o(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"?FFe(e,t,o,l):a==="custom"?zFe(e,t,o,l):o}var jFe={"@mobile":"mobile","@tablet":"tablet","-current":"@current"};function Nte(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function Lte(e){if(!Nte(e))return e;let t=e;return Object.entries(jFe).forEach(([o,r])=>{Object.hasOwn(e,r)&&(t===e&&(t={...e}),Object.hasOwn(e,o)||(t[o]=e[r]),delete t[r])}),Object.entries(t).forEach(([o,r])=>{if(!Nte(r))return;let n=Lte(r);n!==r&&(t===e&&(t={...e}),t[o]=n)}),t}function gC(e){if(!e?.styles)return e;let t=Lte(e.styles);return t===e.styles?e:{...e,styles:t}}var Hte=c(UP(),1);function zte(e){return Object.prototype.toString.call(e)==="[object Object]"}function jte(e){var t,o;return zte(e)===!1?!1:(t=e.constructor,t===void 0?!0:(o=t.prototype,!(zte(o)===!1||o.hasOwnProperty("isPrototypeOf")===!1)))}function WP(e,t){return(0,Hte.default)(gC(e),gC(t),{isMergeableObject:jte,customMerge:o=>{if(o==="backgroundImage")return(r,n)=>n??r}})}var es=c(ce(),1),yC=c(k_(),1),Qte=c(te(),1);function ba(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 p=r?u:null;if(a)return $o(i,`${l}.root`,null)||$o(i,l,null)||p;let m=s?$o(s,`${l}.__experimentalSelector`,null):void 0;return m?xc(u,m):p}let f;return a&&(f=$o(i,l,null)),f||(r?ba(e,d[0],o):null)}function t6e(e=[]){let t={r:[],g:[],b:[],a:[]};return e.forEach(o=>{let r=Go(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 Ute(e){return`${e}{filter:none}`}function Wte(e,t){return`${e}{filter:url(#${t})}`}function Gte(e,t){let o=t6e(t);return` | |
| 25 | +`),this.css+=o+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(let t of this.previous()){let o=this.toUrl(this.path(t.file)),r=t.root||iM(t.file),n;this.mapOpts.sourcesContent===!1?(n=new KSe(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.startsWith("# sourceMappingURL=")&&this.root.removeChild(o)}else if(this.css){let t;for(;(t=this.css.lastIndexOf("/*#"))!==-1;){let o=this.css.indexOf("*/",t+3);if(o===-1)break;for(;t>0&&this.css[t-1]===` | |
| 26 | +`;)t--;this.css=this.css.slice(0,t)+this.css.slice(o+2)}}}}generate(){if(this.clearAnnotation(),Tat&&Eat&&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=sM.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new sM({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 sM({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,d)=>{if(this.css+=a,l&&d!=="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))),s=a.match(/\n/g),s?(t+=s.length,i=a.lastIndexOf(` | |
| 27 | +`),o=a.length-i):o+=a.length,l&&d!=="start"){let u=l.parent||{raws:{}};(!(l.type==="decl"||l.type==="atrule"&&!l.nodes)||l!==u.last||u.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?iM(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=iM($Se(r,this.mapOpts.annotation)));let n=GSe(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 Cat(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(WSe){let r=WSe(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;YSe==="\\"&&(t=t.replace(/\\/g,"/"));let r=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,r),r}};qSe.exports=FZ});var QSe=Pe((evo,ZSe)=>{"use strict";var XSe=gh(),jx=class extends XSe{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)}};ZSe.exports=jx;jx.default=jx;XSe.registerAtRule(jx)});var aM=Pe((tvo,oCe)=>{"use strict";var JSe=gh(),eCe,tCe,hh=class extends JSe{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}normalize(t,o,r){let n=new Set;for(let s of Array.isArray(t)?t:[t])s&&typeof s=="object"&&!s.parent&&s.raws&&typeof s.raws.before<"u"&&n.add(s.raws);let i=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 s of i)n.has(s.raws)||(s.raws.before=o.raws.before)}return i}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 eCe(new tCe,this,t).stringify()}};hh.registerLazyResult=e=>{eCe=e};hh.registerProcessor=e=>{tCe=e};oCe.exports=hh;hh.default=hh;JSe.registerRoot(hh)});var nCe=Pe((ovo,rCe)=>{"use strict";var I5={comma(e){return I5.split(e,[","],!0)},space(e){let t=[" ",` | |
| 28 | +`," "];return I5.split(e,t)},split(e,t,o){if(typeof e!="string")return[];let r=[],n="",i=!1,s=0,a=!1,l="",d=!1;for(let u of e)d?d=!1:u==="\\"?d=!0:a?u===l&&(a=!1):u==='"'||u==="'"?(a=!0,l=u):u==="("?s+=1:u===")"?s>0&&(s-=1):s===0&&t.includes(u)&&(i=!0),i?(n!==""&&r.push(n.trim()),n="",i=!1):n+=u;return(o||n!=="")&&r.push(n.trim()),r}};rCe.exports=I5;I5.default=I5});var aCe=Pe((rvo,sCe)=>{"use strict";var iCe=gh(),Rat=nCe(),Hx=class extends iCe{get selectors(){return Rat.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)}constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}};sCe.exports=Hx;Hx.default=Hx;iCe.registerRule(Hx)});var dCe=Pe((nvo,cCe)=>{"use strict";var lM=/[\t\n\f\r "#'()/;[\\\]{}]/g,cM=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Iat=/.[\r\n"'(/\\]/,lCe=/[\da-f]/i;cCe.exports=function(t,o={}){let r=t.css.valueOf(),n=o.ignoreErrors,i,s,a,l,d,u,f,p,m,g,h=r.length,b=0,v=[],_=[],y=-1;function w(){return b}function x(R){throw t.error("Unclosed "+R,b)}function k(){return _.length===0&&b>=h}function C(R){if(_.length)return _.pop();if(b>=h)return;let E=R?R.ignoreUnclosed:!1;switch(i=r.charCodeAt(b),i){case 10:case 32:case 9:case 13:case 12:{l=b;do l+=1,i=r.charCodeAt(l);while(i===32||i===10||i===9||i===13||i===12);u=["space",r.slice(b,l)],b=l-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let I=String.fromCharCode(i);u=[I,I,b];break}case 40:{if(g=v.length?v.pop()[1]:"",m=r.charCodeAt(b+1),g==="url"&&m!==39&&m!==34&&m!==32&&m!==10&&m!==9&&m!==12&&m!==13){l=b;do{if(f=!1,l=r.indexOf(")",l+1),l===-1)if(n||E){l=b;break}else x("bracket");for(p=l;r.charCodeAt(p-1)===92;)p-=1,f=!f}while(f);u=["brackets",r.slice(b,l+1),b,l],b=l}else b<=y?u=["(","(",b]:(l=r.indexOf(")",b+1),s=r.slice(b,l+1),l===-1||Iat.test(s)?(y=l===-1?h:l,u=["(","(",b]):(u=["brackets",s,b,l],b=l));break}case 39:case 34:{d=i===39?"'":'"',l=b;do{if(f=!1,l=r.indexOf(d,l+1),l===-1)if(n||E){l=b+1;break}else x("string");for(p=l;r.charCodeAt(p-1)===92;)p-=1,f=!f}while(f);u=["string",r.slice(b,l+1),b,l],b=l;break}case 64:{lM.lastIndex=b+1,lM.test(r),lM.lastIndex===0?l=r.length-1:l=lM.lastIndex-2,u=["at-word",r.slice(b,l+1),b,l],b=l;break}case 92:{for(l=b,a=!0;r.charCodeAt(l+1)===92;)l+=1,a=!a;if(i=r.charCodeAt(l+1),a&&i!==47&&i!==32&&i!==10&&i!==9&&i!==13&&i!==12&&(l+=1,lCe.test(r.charAt(l)))){for(;lCe.test(r.charAt(l+1));)l+=1;r.charCodeAt(l+1)===32&&(l+=1)}u=["word",r.slice(b,l+1),b,l],b=l;break}default:{i===47&&r.charCodeAt(b+1)===42?(l=r.indexOf("*/",b+2)+1,l===0&&(n||E?l=r.length:x("comment")),u=["comment",r.slice(b,l+1),b,l],b=l):(cM.lastIndex=b+1,cM.test(r),cM.lastIndex===0?l=r.length-1:l=cM.lastIndex-2,u=["word",r.slice(b,l+1),b,l],v.push(u),b=l);break}}return b++,u}function S(R){_.push(R)}return{back:S,endOfFile:k,nextToken:C,position:w}}});var mCe=Pe((ivo,pCe)=>{"use strict";var Pat=QSe(),Bat=RZ(),Oat=IZ(),Mat=aM(),uCe=aCe(),Aat=dCe(),fCe={empty:!0,space:!0};function Nat(e){for(let t=e.length-1;t>=0;t--){let o=e[t],r=o[3]||o[2];if(r)return r}}function jZ(e,t,o){let r="";for(let n=t;n<o;n++)r+=e[n][1];return r}var HZ=class{constructor(t){this.input=t,this.root=new Mat,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 Pat;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=[],d=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),r=t[0],r==="("||r==="["?d.push(r==="("?")":"]"):r==="{"&&d.length>0?d.push("}"):r===d[d.length-1]&&d.pop(),d.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(n=a,i=n[0],i==="("&&(o+=1),i===")"&&(o-=1),o===0&&i===":")if(!r)this.doubleColon(n);else{if(r[0]==="word"&&r[1]==="progid")continue;return s}r=n}return!1}comment(t){let o=new Bat;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(!r.trim())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=Aat(this.input)}decl(t,o){let r=new Oat;this.init(r,t[0][2]);let n=t[t.length-1];n[0]===";"&&(this.semicolon=!0,t.pop()),r.source.end=this.getPosition(n[3]||n[2]||Nat(t)),r.source.end.offset++;let i=0;for(;t[i][0]!=="word";)i===t.length-1&&this.unknownWord([t[i]]),i++;r.raws.before+=jZ(t,0,i),r.source.start=this.getPosition(t[i][2]);let s=i;for(;i<t.length;){let p=t[i][0];if(p===":"||p==="space"||p==="comment")break;i++}r.prop=jZ(t,s,i);let a=i,l;for(;i<t.length&&(l=t[i],i++,l[0]!==":");)l[0]==="word"&&/\w/.test(l[1])&&this.unknownWord([l]);r.raws.between=jZ(t,a,i),(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let d=i;for(;i<t.length;){let p=t[i][0];if(p!=="space"&&p!=="comment")break;i++}let u=t.slice(d,i);t=t.slice(i),this.precheckMissedSemicolon(t);for(let p=t.length-1;p>=0;p--){if(l=t[p],l[1].toLowerCase()==="!important"){r.important=!0;let m=this.stringFrom(t,p);m=this.spacesFromEnd(t)+m,m!==" !important"&&(r.raws.important=m);break}else if(l[1].toLowerCase()==="important"){let m=t.slice(0),g="";for(let h=p;h>0;h--){let b=m[h][0];if(g.trim().startsWith("!")&&b!=="space")break;g=m.pop()[1]+g}g.trim().startsWith("!")&&(r.important=!0,r.raws.important=g,t=m)}if(l[0]!=="space"&&l[0]!=="comment")break}t.some(p=>p[0]!=="space"&&p[0]!=="comment")&&(r.raws.between+=u.map(p=>p[1]).join(""),u=[]),this.raw(r,"value",u.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 uCe;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="",o.source.end=this.getPosition(t[2]),o.source.end.offset+=o.raws.ownSemicolon.length)}}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=[],d=t;for(;d;){if(r=d[0],l.push(d),r==="("||r==="[")i||(i=d),s.push(r==="("?")":"]");else if(a&&n&&r==="{")i||(i=d),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));d=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(o=!0),s.length>0&&this.unclosedBracket(i),o&&n){if(!a)for(;l.length&&(d=l[l.length-1][0],!(d!=="space"&&d!=="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="",d=!0,u,f;for(let p=0;p<a;p+=1)i=r[p],s=i[0],s==="space"&&p===a-1&&!n?d=!1:s==="comment"?(f=r[p-1]?r[p-1][0]:"empty",u=r[p+1]?r[p+1][0]:"empty",!fCe[f]&&!fCe[u]?l.slice(-1)===","?d=!1:l+=i[1]:d=!1):l+=i[1];if(!d){let p=r.reduce((m,g)=>m+g[1],"");t.raws[o]={raw:p,value:l}}t[o]=l}rule(t){t.pop();let o=new uCe;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 "+t[0][1],{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})}};pCe.exports=HZ});var UZ=Pe((svo,gCe)=>{"use strict";var Lat=gh(),Dat=VZ(),Vat=mCe();function dM(e,t){let o=new Dat(e,t),r=new Vat(o);try{r.parse()}catch(n){throw n}return r.root}gCe.exports=dM;dM.default=dM;Lat.registerParse(dM)});var bCe=Pe((avo,hCe)=>{"use strict";var Fat=gh(),{my:zat}=k5(),P5=class{constructor(t,o={}){if(this.type="warning",this.text=t,o.node&&o.node.source){o.node[zat]||Fat.rebuild(o.node);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}};hCe.exports=P5;P5.default=P5});var WZ=Pe((lvo,_Ce)=>{"use strict";var jat=bCe(),B5=class{get content(){return this.css}constructor(t,o,r){this.processor=t,this.messages=[],this.root=o,this.opts=r,this.css="",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 jat(t,o);return this.messages.push(r),r}warnings(){return this.messages.filter(t=>t.type==="warning")}};_Ce.exports=B5;B5.default=B5});var GZ=Pe((cvo,yCe)=>{"use strict";var vCe={};yCe.exports=function(t){vCe[t]||(vCe[t]=!0,typeof console<"u"&&console.warn&&console.warn(t))}});var CCe=Pe((uvo,SCe)=>{"use strict";var Hat=gh(),Uat=OZ(),Wat=zZ(),Gat=UZ(),wCe=WZ(),$at=aM(),Yat=J8(),{isClean:fd,my:Kat}=k5(),dvo=GZ(),qat={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Xat={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},Zat={Once:!0,postcssPlugin:!0,prepare:!0},Ux=0;function O5(e){return typeof e=="object"&&typeof e.then=="function"}function $Z(e){let t=!1,o=qat[e.type];return e.type==="decl"?t=e.prop.toLowerCase():e.type==="atrule"&&(t=e.name.toLowerCase()),t&&e.append?[o,o+"-"+t,Ux,o+"Exit",o+"Exit-"+t]:t?[o,o+"-"+t,o+"Exit",o+"Exit-"+t]:e.append?[o,Ux,o+"Exit"]:[o,o+"Exit"]}function xCe(e){let t;return e.type==="document"?t=["Document",Ux,"DocumentExit"]:e.type==="root"?t=["Root",Ux,"RootExit"]:t=$Z(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function kCe(e){let t=[e];for(;t.length>0;){let o=t.pop();if(o[fd]=!1,o.nodes)for(let r of o.nodes)t.push(r)}return e}var YZ={},bh=class e{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"}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=kCe(o);else if(o instanceof e||o instanceof wCe)n=kCe(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=Gat;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[Kat]&&Hat.rebuild(n)}this.result=new wCe(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(!Xat[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${o.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Zat[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(O5(r))try{await r}catch(n){throw this.handleError(n)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[fd];){t[fd]=!0;let o=[xCe(t)];for(;o.length>0;){let r=this.visitTick(o);if(O5(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 O5(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=Yat;t.syntax&&(o=t.syntax.stringify),t.stringifier&&(o=t.stringifier),o.stringify&&(o=o.stringify);let r=this.result.root.source;if(t.map===void 0&&!(r&&r.input&&r.input.map)){let s="";return o(this.result.root,a=>{s+=a}),this.result.css=s,this.result}let i=new Wat(o,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[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(O5(o))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[fd];)t[fd]=!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(O5(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;o.descending&&(o.descending=!1,r.indexes[s]+=1);let a;for(;a=r.nodes[r.indexes[s]];){if(!a[fd]){a[fd]=!0,o.descending=!0,t.push(xCe(a));return}r.indexes[s]+=1}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===Ux){r.nodes&&r.nodes.length&&(r[fd]=!0,o.iterator=r.getIterator());return}else if(this.listeners[s]){o.visitors=this.listeners[s];return}}t.pop()}walkSync(t){t[fd]=!0;let o=[{eventIndex:0,events:$Z(t),iterator:0,node:t}];for(;o.length>0;){let r=o[o.length-1],n=r.node;if(r.iterator!==0){let i=r.iterator;r.descending&&(r.descending=!1,n.indexes[i]+=1);let s,a=!1;for(;s=n.nodes[n.indexes[i]];){if(!s[fd]){s[fd]=!0,r.descending=!0,o.push({eventIndex:0,events:$Z(s),iterator:0,node:s}),a=!0;break}n.indexes[i]+=1}if(a)continue;r.iterator=0,delete n.indexes[i]}if(r.eventIndex<r.events.length){let i=r.events[r.eventIndex];if(r.eventIndex+=1,i===Ux)n.nodes&&n.nodes.length&&(r.iterator=n.getIterator());else{let s=this.listeners[i];s&&this.visitSync(s,n.toProxy())&&o.pop()}continue}o.pop()}}warnings(){return this.sync().warnings()}};bh.registerPostcss=e=>{YZ=e};SCe.exports=bh;bh.default=bh;$at.registerLazyResult(bh);Uat.registerLazyResult(bh)});var TCe=Pe((pvo,ECe)=>{"use strict";var Qat=zZ(),Jat=UZ(),elt=WZ(),tlt=J8(),fvo=GZ(),M5=class{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=Jat;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"}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=tlt;this.result=new elt(this._processor,void 0,this._opts),this.result.css=o;let i=this;Object.defineProperty(this.result,"root",{get(){return i.root}});let s=new Qat(n,void 0,this._opts,o);if(s.isMap()){let[a,l]=s.generate();a&&(this.result.css=a),l&&(this.result.map=l)}else s.clearAnnotation(),this.result.css=s.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[]}};ECe.exports=M5;M5.default=M5});var ICe=Pe((mvo,RCe)=>{"use strict";var olt=OZ(),rlt=CCe(),nlt=TCe(),ilt=aM(),yv=class{constructor(t=[]){this.version="8.5.26",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 nlt(this,t,o):new rlt(this,t,o)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}};RCe.exports=yv;yv.default=yv;ilt.registerProcessor(yv);olt.registerProcessor(yv)});var OCe=Pe((gvo,BCe)=>{BCe.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&&PCe(s.source.input.file,n)||i.length&&s.source.input.file&&!PCe(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(d=>t.exclude&&slt(d,t.exclude)?d:t.transform?t.transform(o,d,r+d,s.source.input.file,a):r+d))})}};function PCe(e,t){return t.some(o=>o instanceof RegExp?o.test(e):e.includes(o))}function slt(e,t){return t.some(o=>o instanceof RegExp?o.test(e):e===o)}});var ACe=Pe((hvo,MCe)=>{var KZ=40,qZ=41,uM=39,XZ=34,ZZ=92,Wx=47,QZ=44,JZ=58,fM=42,alt=117,llt=85,clt=43,dlt=/^[a-f0-9?-]+$/i;MCe.exports=function(e){for(var t=[],o=e,r,n,i,s,a,l,d,u,f=0,p=o.charCodeAt(f),m=o.length,g=[{nodes:t}],h=0,b,v="",_="",y="";f<m;)if(p<=32){r=f;do r+=1,p=o.charCodeAt(r);while(p<=32);s=o.slice(f,r),i=t[t.length-1],p===qZ&&h?y=s:i&&i.type==="div"?(i.after=s,i.sourceEndIndex+=s.length):p===QZ||p===JZ||p===Wx&&o.charCodeAt(r+1)!==fM&&(!b||b&&b.type==="function"&&b.value!=="calc")?_=s:t.push({type:"space",sourceIndex:f,sourceEndIndex:r,value:s}),f=r}else if(p===uM||p===XZ){r=f,n=p===uM?"'":'"',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)===ZZ;)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,p=o.charCodeAt(f)}else if(p===Wx&&o.charCodeAt(f+1)===fM)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,p=o.charCodeAt(f);else if((p===Wx||p===fM)&&b&&b.type==="function"&&b.value==="calc")s=o[f],t.push({type:"word",sourceIndex:f-_.length,sourceEndIndex:f+s.length,value:s}),f+=1,p=o.charCodeAt(f);else if(p===Wx||p===QZ||p===JZ)s=o[f],t.push({type:"div",sourceIndex:f-_.length,sourceEndIndex:f+s.length,value:s,before:_,after:""}),_="",f+=1,p=o.charCodeAt(f);else if(KZ===p){r=f;do r+=1,p=o.charCodeAt(r);while(p<=32);if(u=f,s={type:"function",sourceIndex:f-v.length,value:v,before:o.slice(u+1,r)},f=r,v==="url"&&p!==uM&&p!==XZ){r-=1;do if(a=!1,r=o.indexOf(")",r+1),~r)for(l=r;o.charCodeAt(l-1)===ZZ;)l-=1,a=!a;else o+=")",r=o.length-1,s.unclosed=!0;while(a);d=r;do d-=1,p=o.charCodeAt(d);while(p<=32);u<d?(f!==d+1?s.nodes=[{type:"word",sourceIndex:f,sourceEndIndex:d+1,value:o.slice(f,d+1)}]:s.nodes=[],s.unclosed&&d+1!==r?(s.after="",s.nodes.push({type:"space",sourceIndex:d+1,sourceEndIndex:r,value:o.slice(d+1,r)})):(s.after=o.slice(d+1,r),s.sourceEndIndex=r)):(s.after="",s.nodes=[]),f=r+1,s.sourceEndIndex=s.unclosed?r:f,p=o.charCodeAt(f),t.push(s)}else h+=1,s.after="",s.sourceEndIndex=f+1,t.push(s),g.push(s),t=s.nodes=[],b=s;v=""}else if(qZ===p&&h)f+=1,p=o.charCodeAt(f),b.after=y,b.sourceEndIndex+=y.length,y="",h-=1,g[g.length-1].sourceEndIndex=f,g.pop(),b=g[h],t=b.nodes;else{r=f;do p===ZZ&&(r+=1),r+=1,p=o.charCodeAt(r);while(r<m&&!(p<=32||p===uM||p===XZ||p===QZ||p===JZ||p===Wx||p===KZ||p===fM&&b&&b.type==="function"&&b.value==="calc"||p===Wx&&b.type==="function"&&b.value==="calc"||p===qZ&&h));s=o.slice(f,r),KZ===p?v=s:(alt===s.charCodeAt(0)||llt===s.charCodeAt(0))&&clt===s.charCodeAt(1)&&dlt.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=g.length-1;f;f-=1)g[f].unclosed=!0,g[f].sourceEndIndex=o.length;return g[0].nodes}});var LCe=Pe((bvo,NCe)=>{NCe.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 zCe=Pe((_vo,FCe)=>{function DCe(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=VCe(e.nodes,t),o!=="function"?n:r+"("+(e.before||"")+n+(e.after||"")+(e.unclosed?"":")")):r}function VCe(e,t){var o,r;if(Array.isArray(e)){for(o="",r=e.length-1;~r;r-=1)o=DCe(e[r],t)+o;return o}return DCe(e,t)}FCe.exports=VCe});var HCe=Pe((vvo,jCe)=>{var pM=45,mM=43,eQ=46,ult=101,flt=69;function plt(e){var t=e.charCodeAt(0),o;if(t===mM||t===pM){if(o=e.charCodeAt(1),o>=48&&o<=57)return!0;var r=e.charCodeAt(2);return o===eQ&&r>=48&&r<=57}return t===eQ?(o=e.charCodeAt(1),o>=48&&o<=57):t>=48&&t<=57}jCe.exports=function(e){var t=0,o=e.length,r,n,i;if(o===0||!plt(e))return!1;for(r=e.charCodeAt(t),(r===mM||r===pM)&&t++;t<o&&(r=e.charCodeAt(t),!(r<48||r>57));)t+=1;if(r=e.charCodeAt(t),n=e.charCodeAt(t+1),r===eQ&&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===ult||r===flt)&&(n>=48&&n<=57||(n===mM||n===pM)&&i>=48&&i<=57))for(t+=n===mM||n===pM?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 $Ce=Pe((yvo,GCe)=>{var mlt=ACe(),UCe=LCe(),WCe=zCe();function _h(e){return this instanceof _h?(this.nodes=mlt(e),this):new _h(e)}_h.prototype.toString=function(){return Array.isArray(this.nodes)?WCe(this.nodes):""};_h.prototype.walk=function(e,t){return UCe(this.nodes,e,t),this};_h.unit=HCe();_h.walk=UCe;_h.stringify=WCe;GCe.exports=_h});var KCe=Pe((wvo,tQ)=>{var YCe=$Ce();tQ.exports=e=>{let o=Object.assign({skipHostRelativeUrls:!0},e);return{postcssPlugin:"rebaseUrl",Declaration(r){let n=YCe(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=YCe.stringify(n))}}};tQ.exports.postcss=!0});var aEe=Pe((Nvo,sEe)=>{sEe.exports=window.wp.priorityQueue});var vQ=Pe((Bwo,aTe)=>{aTe.exports=window.wp.blob});var _k=Pe((uko,hRe)=>{hRe.exports=window.wp.isShallowEqual});var _2=Pe((NEo,iIe)=>{iIe.exports=window.wp.tokenList});var v2=Pe((JEo,mIe)=>{mIe.exports=window.wp.preferences});var f3e=Pe((qRo,u3e)=>{u3e.exports=window.wp.commands});var lc=Pe((C3o,R9e)=>{R9e.exports=window.wp.date});var nPe=Pe((m4o,rPe)=>{var Q9e=!1,ry,cee,dee,OL,ML,J9e,AL,uee,fee,pee,ePe,mee,gee,tPe,oPe;function ga(){if(!Q9e){Q9e=!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(mee=/\b(iPhone|iP[ao]d)/.exec(e),gee=/\b(iP[ao]d)/.exec(e),pee=/Android/i.exec(e),tPe=/FBAN\/\w+;/i.exec(e),oPe=/Mobile/i.exec(e),ePe=!!/Win64/.exec(e),t){ry=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,ry&&document&&document.documentMode&&(ry=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);J9e=r?parseFloat(r[1])+4:ry,cee=t[2]?parseFloat(t[2]):NaN,dee=t[3]?parseFloat(t[3]):NaN,OL=t[4]?parseFloat(t[4]):NaN,OL?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),ML=t&&t[1]?parseFloat(t[1]):NaN):ML=NaN}else ry=cee=dee=ML=OL=NaN;if(o){if(o[1]){var n=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);AL=n?parseFloat(n[1].replace("_",".")):!0}else AL=!1;uee=!!o[2],fee=!!o[3]}else AL=uee=fee=!1}}var hee={ie:function(){return ga()||ry},ieCompatibilityMode:function(){return ga()||J9e>ry},ie64:function(){return hee.ie()&&ePe},firefox:function(){return ga()||cee},opera:function(){return ga()||dee},webkit:function(){return ga()||OL},safari:function(){return hee.webkit()},chrome:function(){return ga()||ML},windows:function(){return ga()||uee},osx:function(){return ga()||AL},linux:function(){return ga()||fee},iphone:function(){return ga()||mee},mobile:function(){return ga()||mee||gee||pee||oPe},nativeApp:function(){return ga()||tPe},android:function(){return ga()||pee},ipad:function(){return ga()||gee}};rPe.exports=hee});var sPe=Pe((g4o,iPe)=>{"use strict";var NL=!!(typeof window<"u"&&window.document&&window.document.createElement),gpt={canUseDOM:NL,canUseWorkers:typeof Worker<"u",canUseEventListeners:NL&&!!(window.addEventListener||window.attachEvent),canUseViewport:NL&&!!window.screen,isInWorker:!NL};iPe.exports=gpt});var dPe=Pe((h4o,cPe)=>{"use strict";var aPe=sPe(),lPe;aPe.canUseDOM&&(lPe=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function hpt(e,t){if(!aPe.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&&lPe&&e==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}cPe.exports=hpt});var hPe=Pe((b4o,gPe)=>{"use strict";var bpt=nPe(),_pt=dPe(),uPe=10,fPe=40,pPe=800;function mPe(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*uPe,n=o*uPe,"deltaY"in e&&(n=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||n)&&e.deltaMode&&(e.deltaMode==1?(r*=fPe,n*=fPe):(r*=pPe,n*=pPe)),r&&!t&&(t=r<1?-1:1),n&&!o&&(o=n<1?-1:1),{spinX:t,spinY:o,pixelX:r,pixelY:n}}mPe.getEventType=function(){return bpt.firefox()?"DOMMouseScroll":_pt("wheel")?"wheel":"mousewheel"};gPe.exports=mPe});var _Pe=Pe((_4o,bPe)=>{bPe.exports=hPe()});var qBe=Pe((dPo,KBe)=>{"use strict";KBe.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 wwt={};ro(wwt,{AlignmentControl:()=>w9,AlignmentToolbar:()=>oae,Autocomplete:()=>yae,BlockAlignmentControl:()=>j9,BlockAlignmentToolbar:()=>Kae,BlockBindingsAttributeControl:()=>zR,BlockBindingsSourceFieldsList:()=>FR,BlockBreadcrumb:()=>g0e,BlockCanvas:()=>b3e,BlockColorsStyleSelector:()=>w3e,BlockContextProvider:()=>k3,BlockControls:()=>Jo,BlockEdit:()=>g9,BlockEditorKeyboardShortcuts:()=>B8,BlockEditorProvider:()=>i1e,BlockFormatControls:()=>QQ,BlockIcon:()=>$t,BlockInspector:()=>mMe,BlockList:()=>Yx,BlockMover:()=>FA,BlockNavigationDropdown:()=>A4e,BlockPopover:()=>JTe,BlockPreview:()=>sa,BlockSelectionClearer:()=>uRe,BlockSettingsMenu:()=>cN,BlockSettingsMenuControls:()=>nN,BlockStyles:()=>Qk,BlockTitle:()=>HR,BlockToolbar:()=>XIe,BlockTools:()=>C2,BlockVerticalAlignmentControl:()=>N9,BlockVerticalAlignmentToolbar:()=>o9e,ButtonBlockAppender:()=>Ih,ButtonBlockerAppender:()=>UTe,ColorPalette:()=>w9e,ColorPaletteControl:()=>S9e,ContrastChecker:()=>T9e,CopyHandler:()=>bMe,DefaultBlockAppender:()=>mk,DimensionControl:()=>oy,FontSizePicker:()=>GU,HeadingLevelDropdown:()=>U4e,HeightControl:()=>Z9e,InnerBlocks:()=>Z5,Inserter:()=>ua,InspectorAdvancedControls:()=>Oh,InspectorControls:()=>je,JustifyContentControl:()=>Gw,JustifyToolbar:()=>lBe,LineHeightControl:()=>iD,LinkControl:()=>_1,MediaPlaceholder:()=>R7e,MediaReplaceFlow:()=>lD,MediaUpload:()=>Wu,MediaUploadCheck:()=>hd,MultiSelectScrollIntoView:()=>wMe,NavigableToolbar:()=>Mk,ObserveTyping:()=>d3e,PanelColorSettings:()=>P7e,PlainText:()=>L6e,RecursionProvider:()=>ooe,RichText:()=>S1,RichTextShortcut:()=>I6e,RichTextToolbarButton:()=>Jee,SETTINGS_DEFAULTS:()=>NS,SkipToSelectedBlock:()=>PD,ToolSelector:()=>OMe,Typewriter:()=>SMe,URLInput:()=>cm,URLInputButton:()=>W6e,URLPopover:()=>lb,Warning:()=>ig,WritingFlow:()=>K8,__experimentalBlockAlignmentMatrixControl:()=>a0e,__experimentalBlockFullHeightAligmentControl:()=>r0e,__experimentalBlockPatternSetup:()=>J4e,__experimentalBlockPatternsList:()=>ju,__experimentalBlockVariationPicker:()=>W4e,__experimentalBlockVariationTransforms:()=>aL,__experimentalBorderRadiusControl:()=>pL,__experimentalColorGradientControl:()=>eb,__experimentalColorGradientSettingsDropdown:()=>RL,__experimentalDateFormatPicker:()=>I9e,__experimentalDuotoneControl:()=>hL,__experimentalFontAppearanceControl:()=>_L,__experimentalFontFamilyControl:()=>vL,__experimentalGetBorderClassesAndStyles:()=>xz,__experimentalGetColorClassesAndStyles:()=>kz,__experimentalGetDimensionsClassesAndStyles:()=>wz,__experimentalGetElementClassName:()=>bwt,__experimentalGetGapCSSValue:()=>Pa,__experimentalGetGradientClass:()=>Vw,__experimentalGetGradientObjectByGradientValue:()=>Yse,__experimentalGetShadowClassesAndStyles:()=>Bre,__experimentalGetSpacingClassesAndStyles:()=>Are,__experimentalImageEditor:()=>tBe,__experimentalImageSizeControl:()=>iBe,__experimentalImageURLInputUI:()=>Z6e,__experimentalInspectorPopoverHeader:()=>xV,__experimentalLetterSpacingControl:()=>wL,__experimentalLibrary:()=>vMe,__experimentalLinkControl:()=>nD,__experimentalLinkControlSearchInput:()=>MBe,__experimentalLinkControlSearchItem:()=>yBe,__experimentalLinkControlSearchResults:()=>EBe,__experimentalListView:()=>tL,__experimentalPanelColorGradientSettings:()=>PL,__experimentalPreviewOptions:()=>pOe,__experimentalPublishDateTimePicker:()=>IMe,__experimentalRecursionProvider:()=>CMe,__experimentalResponsiveBlockControl:()=>z6e,__experimentalSpacingSizesControl:()=>P1,__experimentalTextDecorationControl:()=>kL,__experimentalTextTransformControl:()=>CL,__experimentalUnitControl:()=>H6e,__experimentalUseBlockOverlayActive:()=>b0e,__experimentalUseBlockPreview:()=>fEe,__experimentalUseBorderProps:()=>Pre,__experimentalUseColorProps:()=>Mre,__experimentalUseCustomSides:()=>Ooe,__experimentalUseGradient:()=>ZGe,__experimentalUseHasRecursion:()=>EMe,__experimentalUseMultipleOriginColorsAndGradients:()=>ob,__experimentalUseResizeCanvas:()=>gOe,__experimentalWritingModeControl:()=>TL,__unstableBlockSettingsMenuFirstItem:()=>KA,__unstableBlockToolbarLastItem:()=>UA,__unstableEditorStyles:()=>Rp,__unstableIframe:()=>Fx,__unstableInserterMenuExtension:()=>DM,__unstableRichTextInputEvent:()=>P6e,__unstableUseBlockSelectionClearer:()=>Iv,__unstableUseClipboardHandler:()=>hMe,__unstableUseMouseMoveTypingReset:()=>T2,__unstableUseTypewriter:()=>Jte,__unstableUseTypingObserver:()=>R2,createCustomColorsHOC:()=>Gse,getColorClassName:()=>pl,getColorObjectByAttributeValues:()=>ru,getColorObjectByColorValue:()=>w3,getComputedFluidTypographyValue:()=>qse,getCustomValueFromPreset:()=>Eae,getDimensionsClassesAndStyles:()=>wz,getFontSize:()=>Fw,getFontSizeClass:()=>sg,getFontSizeObjectByValue:()=>WU,getGradientSlugByValue:()=>Kse,getGradientValueBySlug:()=>v9,getPxFromCssUnit:()=>GVe,getSpacingPresetCssVar:()=>vl,getStyleForState:()=>ho,getTypographyClassesAndStyles:()=>Nre,isValueSpacingPreset:()=>A9,privateApis:()=>Wre,setStyleForState:()=>Vr,store:()=>P,storeConfig:()=>Aw,transformStyles:()=>Gx,useBlockBindingsUtils:()=>yp,useBlockCommands:()=>DN,useBlockDisplayInformation:()=>yi,useBlockEditContext:()=>Mt,useBlockEditingMode:()=>Hr,useBlockProps:()=>u5,useCachedTruthy:()=>Lre,useHasRecursion:()=>roe,useInnerBlocksProps:()=>Nv,useSetting:()=>Hse,useSettings:()=>Fe,useStyleOverride:()=>vd,withColorContext:()=>mL,withColors:()=>$se,withFontSizes:()=>eae});function Xre(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=Xre(e[t]))&&(r&&(r+=" "),r+=o)}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}function IFe(){for(var e,t,o=0,r="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Xre(e))&&(r&&(r+=" "),r+=t);return r}var U=IFe;var MMe=c(ce(),1),Sc=c(D(),1),SV=c(oe(),1),aoe=c(ue(),1),SI=c(To(),1);var m3=c(D(),1),tu=Symbol("mayDisplayControls"),Gy=Symbol("mayDisplayParentControls"),$y=Symbol("mayDisplayPatternEditingControls"),Yy=Symbol("blockEditingMode"),Ky=Symbol("blockBindings"),g3=Symbol("isPreviewMode"),PS=Symbol("isInListViewBlockSupportTree"),Az={name:"",isSelected:!1},Nz=(0,m3.createContext)(Az);Nz.displayName="BlockEditContext";var{Provider:h3}=Nz;function Mt(){return(0,m3.useContext)(Nz)}for(lne={grad:.9,turn:360,rad:360/(2*Math.PI)},ou=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},ii=function(e,t,o){return t===void 0&&(t=0),o===void 0&&(o=Math.pow(10,t)),Math.round(o*e)/o+0},Ws=function(e,t,o){return t===void 0&&(t=0),o===void 0&&(o=1),e>o?o:e>t?e:t},Hz=function(e){return(e=isFinite(e)?e%360:0)<0?e+360:e},v3=function(e,t){return t===void 0&&(t=0),ii(e,t)%360},Vz=function(e){return{r:Ws(e.r,0,255),g:Ws(e.g,0,255),b:Ws(e.b,0,255),a:Ws(e.a)}},_3=function(e){return{r:ii(e.r),g:ii(e.g),b:ii(e.b),a:ii(e.a,3)}},cne=/^#([0-9a-f]{3,8})$/i,jb=function(e,t){var o=e.charCodeAt(t);return(15&o)+9*(o>>6)},OS=function(e,t){return jb(e,t)<<4|jb(e,t+1)},Fz=[],BS=0;BS<256;BS++)Fz.push((BS<16?"0":"")+BS.toString(16));var lne,ou,ii,Ws,Hz,v3,Vz,_3,cne,jb,OS,Fz,BS,b3=function(e){return Fz[Ws(e,0,255)]},dne=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}},une=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),d=i%6;return{r:255*[r,a,s,s,l,r][d],g:255*[l,r,r,a,s,s][d],b:255*[s,s,l,r,r,a][d],a:n}},one=function(e){return{h:Hz(e.h),s:Ws(e.s,0,100),l:Ws(e.l,0,100),a:Ws(e.a)}},rne=function(e){return{h:v3(e.h),s:ii(e.s),l:ii(e.l),a:ii(e.a,3)}},nne=function(e){return une((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},qy=function(e){return{h:(t=dne(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},PFe=/^hsla?\(\s*([+-]?(?:\d*\.\d+|\d+))(deg|rad|grad|turn)?\s*,\s*([+-]?(?:\d*\.\d+|\d+))%\s*,\s*([+-]?(?:\d*\.\d+|\d+))%\s*(?:,\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s*)?\)$/i,BFe=/^hsla?\(\s*([+-]?(?:\d*\.\d+|\d+))(deg|rad|grad|turn)?\s+([+-]?(?:\d*\.\d+|\d+))%\s+([+-]?(?:\d*\.\d+|\d+))%\s*(?:\/\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s*)?\)$/i,OFe=/^rgba?\(\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s*,\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s*,\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s*(?:,\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s*)?\)$/i,MFe=/^rgba?\(\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s+([+-]?(?:\d*\.\d+|\d+))(%)?\s+([+-]?(?:\d*\.\d+|\d+))(%)?\s*(?:\/\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s*)?\)$/i,zz={string:[[function(e){if(!cne.test(e))return null;var t=e.length;return t<=5?{r:17*jb(e,1),g:17*jb(e,2),b:17*jb(e,3),a:t===5?ii(17*jb(e,4)/255,2):1}:t===7||t===9?{r:OS(e,1),g:OS(e,3),b:OS(e,5),a:t===9?ii(OS(e,7)/255,2):1}:null},"hex"],[function(e){var t=OFe.exec(e)||MFe.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Vz({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=PFe.exec(e)||BFe.exec(e);if(!t)return null;var o,r,n=one({h:(o=t[1],r=t[2],r===void 0&&(r="deg"),Number(o)*(lne[r]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return nne(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 ou(t)&&ou(o)&&ou(r)?Vz({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(!ou(t)||!ou(o)||!ou(r))return null;var s=one({h:Number(t),s:Number(o),l:Number(r),a:Number(i)});return nne(s)},"hsl"],[function(e){var t=e.h,o=e.s,r=e.v,n=e.a,i=n===void 0?1:n;if(!ou(t)||!ou(o)||!ou(r))return null;var s=(function(a){return{h:Hz(a.h),s:Ws(a.s,0,100),v:Ws(a.v,0,100),a:Ws(a.a)}})({h:Number(t),s:Number(o),v:Number(r),a:Number(i)});return une(s)},"hsv"]]},ine=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]},AFe=function(e){return typeof e=="string"?ine(e.trim(),zz.string):typeof e=="object"&&e!==null?ine(e,zz.object):[null,void 0]};var Lz=function(e,t){var o=qy(e);return{h:o.h,s:Ws(o.s+100*t,0,100),l:o.l,a:o.a}},Dz=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},sne=function(e,t){var o=qy(e);return{h:o.h,s:o.s,l:Ws(o.l+100*t,0,100),a:o.a}},jz=(function(){function e(t){this.parsed=AFe(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 ii(Dz(this.rgba),2)},e.prototype.isDark=function(){return Dz(this.rgba)<.5},e.prototype.isLight=function(){return Dz(this.rgba)>=.5},e.prototype.toHex=function(){return t=_3(this.rgba),o=t.r,r=t.g,n=t.b,s=(i=t.a)<1?b3(ii(255*i)):"","#"+b3(o)+b3(r)+b3(n)+s;var t,o,r,n,i,s},e.prototype.toRgb=function(){return _3(this.rgba)},e.prototype.toRgbString=function(){return t=_3(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 rne(qy(this.rgba))},e.prototype.toHslString=function(){return t=rne(qy(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=dne(this.rgba),{h:v3(t.h),s:ii(t.s),v:ii(t.v),a:ii(t.a,3)};var t},e.prototype.invert=function(){return Zo({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),Zo(Lz(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),Zo(Lz(this.rgba,-t))},e.prototype.grayscale=function(){return Zo(Lz(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),Zo(sne(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),Zo(sne(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(qy(this.rgba).h+t)},e.prototype.alpha=function(t){return typeof t=="number"?Zo({r:(o=this.rgba).r,g:o.g,b:o.b,a:t}):ii(this.rgba.a,3);var o},e.prototype.hue=function(t){var o=qy(this.rgba);return typeof t=="number"?Zo({h:t,s:o.s,l:o.l,a:o.a}):v3(o.h)},e.prototype.isEqual=function(t){return this.toHex()===Zo(t).toHex()},e})(),Zo=function(e){return e instanceof jz?e:new jz(e)},ane=[],Dm=function(e){e.forEach(function(t){ane.indexOf(t)<0&&(t(jz,zz),ane.push(t))})};var Vm=function(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,d=r[this.toHex()];if(d)return d;if(s?.closest){var u=this.toRgb(),f=1/0,p="black";if(!i.length)for(var m in o)i[m]=new e(o[m]).toRgb();for(var g in o){var h=(a=u,l=i[g],Math.pow(a.r-l.r,2)+Math.pow(a.g-l.g,2)+Math.pow(a.b-l.b,2));h<f&&(f=h,p=g)}return p}},t.string.push([function(s){var a=s.toLowerCase(),l=a==="transparent"?"#0000":o[a];return l?new e(l).toRgb():null},"name"])};var Uz=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},Wz=function(e){return .2126*Uz(e.r)+.7152*Uz(e.g)+.0722*Uz(e.b)},Xy=function(e){e.prototype.luminance=function(){return t=Wz(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,d=t instanceof e?t:new e(t);return i=this.rgba,s=d.toRgb(),a=Wz(i),l=Wz(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 Gz=function(e,t){return Gz=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])},Gz(e,t)};function fne(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Gz(e,t);function o(){this.constructor=e}e.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)}var vr=function(){return vr=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},vr.apply(this,arguments)};function pne(e){return e.toLowerCase()}var NFe=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],LFe=/[^A-Z0-9]+/gi;function y3(e,t){t===void 0&&(t={});for(var o=t.splitRegexp,r=o===void 0?NFe:o,n=t.stripRegexp,i=n===void 0?LFe:n,s=t.transform,a=s===void 0?pne:s,l=t.delimiter,d=l===void 0?" ":l,u=mne(mne(e,r,"$1\0$2"),i,"\0"),f=0,p=u.length;u.charAt(f)==="\0";)f++;for(;u.charAt(p-1)==="\0";)p--;return u.slice(f,p).split("\0").map(a).join(d)}function mne(e,t,o){return t instanceof RegExp?e.replace(t,o):t.reduce(function(r,n){return r.replace(n,o)},e)}function gne(e,t){return t===void 0&&(t={}),y3(e,vr({delimiter:"."},t))}function hne(e,t){return t===void 0&&(t={}),gne(e,vr({delimiter:"-"},t))}function Bi(e){let t=e?.toString?.()??"";return t=t.replace(/['\u2019]/,""),hne(t,{splitRegexp:[/(?!(?:1ST|2ND|3RD|[4-9]TH)(?![a-z]))([a-z0-9])([A-Z])/g,/(?!(?:1st|2nd|3rd|[4-9]th)(?![a-z]))([0-9])([a-z])/g,/([A-Za-z])([0-9])/g,/([A-Z])([A-Z][a-z])/g]})}Dm([Vm,Xy]);var ru=(e,t,o)=>{if(t){let r=e?.find(n=>n.slug===t);if(r)return r}return{color:o}},w3=(e,t)=>e?.find(o=>o.color===t);function pl(e,t){if(!(!e||!t))return`has-${Bi(t)}-${e}`}function bne(e,t){let o=Zo(t),r=({color:i})=>o.contrast(i),n=Math.max(...e.map(r));return e.find(i=>r(i)===n).color}var Dw=c(D(),1),u_=c(ue(),1);var zse=c(oe(),1),jse=c(Gt(),1);var m9=c(D(),1),p9=c(ce(),1);var Af=c(ce(),1),Bne=c(Q(),1),AS=c(oe(),1),Gb=c(D(),1);var Zy=c(D(),1),wne=c(T(),1),x3=(0,Zy.createContext)({});x3.displayName="BlockContext";function k3({value:e,children:t}){let o=(0,Zy.useContext)(x3),r=(0,Zy.useMemo)(()=>({...o,...e}),[o,e]);return(0,wne.jsx)(x3.Provider,{value:r,children:t})}var Oi=x3;var Qy=c(ml(),1);function Hb(e){return e?.startsWith("#")&&(0,Qy.isValidFragment)(e)}function Ub(e){return e?.startsWith("/")||e?.startsWith("./")||e?.startsWith("../")}function Wb(e){if(e.includes(" "))return!1;let o=(0,Qy.getProtocol)(e),r=(0,Qy.isValidProtocol)(o),n=DFe(e),i=e?.startsWith("www.");return r||i||Hb(e)||n||Ub(e)}function DFe(e,t=6){let o=e.split(/[?#]/)[0];return new RegExp(`(?<=\\S)\\.(?:[a-zA-Z_]{2,${t}})(?:\\/|$)`).test(o)}var VFe="__default",kne="core/pattern-overrides",FFe={};function Sne(e,t,o){let r;if(t)for(let[n,i]of Object.entries(e))t.includes(n)&&(r===void 0&&(r={}),r[n]=i);if(o)for(let n of o)n?.usesContext?.forEach(i=>{i in e&&(r===void 0&&(r={}),r[i]=e[i])});return r??FFe}function MS(e){return e?.[VFe]?.source===kne}function Cne(e,t){if(!MS(e))return e;let o={};for(let r of t){let n=e[r]?e[r]:{source:kne};o[r]=n}return o}var Tne=c(S3(),1),{lock:Rne,unlock:Z}=(0,Tne.__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");var Ine=c(D(),1),si=(0,Ine.createContext)({});si.displayName="PrivateBlockContext";var C3=c(T(),1),zFe=e=>{let{name:t}=e,o=(0,Af.getBlockType)(t);if(!o)return null;let r=o.edit||o.save;return(0,C3.jsx)(r,{...e})},Pne=(0,Bne.withFilters)("editor.BlockEdit")(zFe),jFe=e=>{let{name:t,clientId:o,attributes:r,setAttributes:n}=e,i=(0,AS.useRegistry)(),s=(0,Af.getBlockType)(t),a=(0,Gb.useContext)(Oi),l=(0,AS.useSelect)(v=>Z(v(Af.store)).getAllBlockBindingsSources(),[]),{bindableAttributes:d}=(0,Gb.useContext)(si),{blockBindings:u,context:f,hasPatternOverrides:p}=(0,Gb.useMemo)(()=>({blockBindings:Cne(r?.metadata?.bindings,d),context:Sne(a,s?.usesContext,r?.metadata?.bindings?Object.values(r.metadata.bindings).map(v=>l[v?.source]):void 0),hasPatternOverrides:MS(r?.metadata?.bindings)}),[s?.usesContext,a,r?.metadata?.bindings,d,l]),m=(0,AS.useSelect)(v=>{if(!u)return r;let _={},y=new Map;for(let[w,x]of Object.entries(u)){let{source:k,args:C}=x,S=l[k];!S||!d?.includes(w)||y.set(S,{...y.get(S),[w]:{args:C}})}if(y.size)for(let[w,x]of y){let k={};w.getValues?k=w.getValues({select:v,context:f,clientId:o,bindings:x}):Object.keys(x).forEach(C=>{k[C]=w.label});for(let[C,S]of Object.entries(k))C==="url"&&(!S||!Wb(S))?_[C]=null:_[C]=S}return{...r,..._}},[r,d,u,o,f,l]),g=(0,Gb.useCallback)(v=>{if(!u){n(v);return}i.batch(()=>{let _={...v},y=new Map;for(let[x,k]of Object.entries(_)){if(!u[x]||!d?.includes(x))continue;let C=u[x],S=l[C?.source];S?.setValues&&(y.set(S,{...y.get(S),[x]:{args:C.args,newValue:k}}),delete _[x])}if(y.size)for(let[x,k]of y)x.setValues({select:i.select,dispatch:i.dispatch,context:f,clientId:o,bindings:k});let w=!!f["pattern/overrides"];!(p&&w)&&Object.keys(_).length&&(p&&delete _.href,n(_))})},[d,u,o,f,p,n,l,i]);if(!s)return null;if(s.apiVersion>1)return(0,C3.jsx)(Pne,{...e,attributes:m,context:f,setAttributes:g});let h=(0,Af.hasBlockSupport)(s,"className",!0)?(0,Af.getBlockDefaultClassName)(t):null,b=U(h,r?.className,e.className);return(0,C3.jsx)(Pne,{...e,attributes:m,className:b,context:f,setAttributes:g})},One=jFe;var Dse=c(ce(),1),UU=c(Q(),1),Vse=c(oe(),1),f9=c(X(),1);var u9=c(oe(),1);var ew=c($b(),1),Kz=c(ue(),1),VS=c(oe(),1),Wne=c(Gt(),1),O3=c(ce(),1);var zt=c(X(),1),Nne={insertUsage:{}},NS={alignWide:!1,supportsLayout:!0,colors:[{name:(0,zt.__)("Black"),slug:"black",color:"#000000"},{name:(0,zt.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:(0,zt.__)("White"),slug:"white",color:"#ffffff"},{name:(0,zt.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:(0,zt.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:(0,zt.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:(0,zt.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:(0,zt.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:(0,zt.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:(0,zt.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:(0,zt.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:(0,zt.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:(0,zt._x)("Small","font size name"),size:13,slug:"small"},{name:(0,zt._x)("Normal","font size name"),size:16,slug:"normal"},{name:(0,zt._x)("Medium","font size name"),size:20,slug:"medium"},{name:(0,zt._x)("Large","font size name"),size:36,slug:"large"},{name:(0,zt._x)("Huge","font size name"),size:42,slug:"huge"}],imageDefaultSize:"large",imageSizes:[{slug:"thumbnail",name:(0,zt.__)("Thumbnail")},{slug:"medium",name:(0,zt.__)("Medium")},{slug:"large",name:(0,zt.__)("Large")},{slug:"full",name:(0,zt.__)("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,canLockBlocks:!0,blockStatesEditingEnabled:!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,zt.__)("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,zt.__)("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,zt.__)("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,zt.__)("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,zt.__)("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,zt.__)("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,zt.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:(0,zt.__)("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,zt.__)("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,zt.__)("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,zt.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:(0,zt.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}],__unstableResolvedAssets:{styles:[],scripts:[]}};function E3(e,t,o){return[...e.slice(0,o),...Array.isArray(t)?t:[t],...e.slice(o)]}function T3(e,t,o,r=1){let n=[...e];return n.splice(t,r),E3(n,e.slice(t,t+r),o)}var Gs=Symbol("globalStylesDataKey"),Jy=Symbol("globalStylesLinks"),Fm=Symbol("selectBlockPatternsKey"),R3=Symbol("reusableBlocksSelect"),Nf=Symbol("userPatternCategoriesSelect"),zm=Symbol("sectionRootClientIdKey"),I3=Symbol("mediaEditKey"),Lne=Symbol("getMediaSelect"),jm=Symbol("isIsolatedEditor"),gl=Symbol("deviceTypeKey"),P3=Symbol("isNavigationOverlayContext"),Dne=Symbol("isNavigationPostEditor"),LS=Symbol("mediaUploadOnSuccess"),Vne=Symbol("mediaSideloadFromUrl"),Fne=Symbol("openMediaEditorModal");var{isContentBlock:HFe}=Z(O3.privateApis),UFe=e=>e;function B3(e,t=""){let o=new Map,r=[];return o.set(t,r),e.forEach(n=>{let{clientId:i,innerBlocks:s}=n;r.push(i),B3(s,i).forEach((a,l)=>{o.set(l,a)})}),o}function $z(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 Gne(e,t=UFe){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 qz(e){let t={},o=[...e];for(;o.length;){let{innerBlocks:r,...n}=o.shift();o.push(...r),t[n.clientId]=!0}return t}function zne(e){return Gne(e,t=>{let{attributes:o,...r}=t;return r})}function jne(e){return Gne(e,t=>t.attributes)}function WFe(e,t){return(0,ew.default)(Object.keys(e),Object.keys(t))}function GFe(e,t){return e.type==="UPDATE_BLOCK_ATTRIBUTES"&&t!==void 0&&t.type==="UPDATE_BLOCK_ATTRIBUTES"&&(0,ew.default)(e.clientIds,t.clientIds)&&WFe(e.attributes,t.attributes)}function Hne(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 Hm(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 $Fe=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),Hne(r,o.blocks),Hm(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)}),Hm(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)})}),Hm(r,o.clientIds,!1);break}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{let i=qz(o.blocks);r.tree=new Map(r.tree),o.replacedClientIds.forEach(a=>{r.tree.delete(a),i[a]||r.tree.delete("controlled||"+a)}),Hne(r,o.blocks),Hm(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)}Hm(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)}),Hm(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),Hm(r,i,!0);break}case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":{let i=[o.rootClientId?o.rootClientId:""];r.tree=new Map(r.tree),Hm(r,i,!0);break}}return r};function YFe(e){let t,o;return(r,n)=>{let i=e(r,n),s=o;o=n.type==="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"?n.history??"merge":void 0;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:!GFe(n,t);if(t=n,s==="ignore")return{...i,isPersistentChange:l,lastBlockChangeHistoryMode:"ignore"};let{lastBlockChangeHistoryMode:d,...u}=i;return{...u,isPersistentChange:l}}}function KFe(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 qFe=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)},XFe=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=(d,u)=>{let f=t.byClientId.get(d);if(!f)return;r.byClientId.set(d,f),r.attributes.set(d,t.attributes.get(d)),r.parents.set(d,u);let p=t.order.get(d)||[];r.order.set(d,p),p.forEach(m=>l(m,d))};a.forEach(d=>l(d,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)),d=r.tree.get(s);d&&(d.innerBlocks=l),r.tree.set("controlled||"+s,{innerBlocks:l});let u=f=>{let p=t.tree.get(f);if(!p)return;r.tree.set(f,p),(r.order.get(f)||[]).forEach(u)};a.forEach(u)}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)},ZFe=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},QFe=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)},JFe=(0,Kz.pipe)(VS.combineReducers,$Fe,qFe,ZFe,XFe,YFe,KFe,QFe)({byClientId(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{let o=new Map(e);return zne(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)}),zne(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 jne(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(([d,u])=>{a[d]!==u&&(s=!0,l[d]=u)}),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)}),jne(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=B3(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=B3(t.blocks,o),{index:i=r.length}=t,s=new Map(e);return n.forEach((a,l)=>{s.set(l,a)}),s.set(o,E3(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 d=new Map(e);return d.set(r,T3(e.get(r),l,i,n.length)),d}let s=new Map(e);return s.set(o,e.get(o)?.filter(a=>!n.includes(a))??[]),s.set(r,E3(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,T3(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,T3(s,a,a+1,o.length)),l}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{let{clientIds:o}=t;if(!t.blocks)return e;let r=B3(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,d)=>d===o[0]?[...l,...r.get("")]:(o.indexOf(d)===-1&&l.push(d),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 $z(t.blocks).forEach(([r,n])=>{o.set(r,n)}),o}case"INSERT_BLOCKS":{let o=new Map(e);return $z(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)}),$z(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 eze(e=!1,t){switch(t.type){case"HIDE_BLOCK_INTERFACE":return!0;case"SHOW_BLOCK_INTERFACE":return!1}return e}function tze(e=!1,t){switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e}function oze(e=!1,t){switch(t.type){case"START_DRAGGING":return!0;case"STOP_DRAGGING":return!1}return e}function rze(e=[],t){switch(t.type){case"START_DRAGGING_BLOCKS":return t.clientIds;case"STOP_DRAGGING_BLOCKS":return[]}return e}function nze(e={},t){return t.type==="SET_BLOCK_VISIBILITY"?{...e,...t.updates}:e}function Une(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 ize(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 s={selectionStart:{clientId:t.start},selectionEnd:{clientId:t.end}};return(0,ew.default)(e,s)?e:s;case"RESET_BLOCKS":let a=e?.selectionStart?.clientId,l=e?.selectionEnd?.clientId;if(!a&&!l)return e;if(!t.blocks.some(d=>d.clientId===a))return{selectionStart:{},selectionEnd:{}};if(!t.blocks.some(d=>d.clientId===l))return{...e,selectionEnd:e.selectionStart}}let o=Une(e.selectionStart,t),r=Une(e.selectionEnd,t);return o===e.selectionStart&&r===e.selectionEnd?e:{selectionStart:o,selectionEnd:r}}function sze(e=!1,t){switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e}function aze(e=!0,t){return t.type==="TOGGLE_SELECTION"?t.isSelectionEnabled:e}function lze(e=null,t){switch(t.type){case"SHOW_VIEWPORT_MODAL":return t.clientIds;case"HIDE_VIEWPORT_MODAL":return null}return e}function cze(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 dze(e=!1,t){return t.type==="SET_BLOCK_REMOVAL_RULES"?t.rules:e}function uze(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 fze(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 pze(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,ew.default)(e,a)?e:a}case"HIDE_INSERTION_POINT":return null}return e}function mze(e={isValid:!0},t){return t.type==="SET_TEMPLATE_VALIDITY"?{...e,isValid:t.isValid}:e}function gze(e=NS,t){if(t.type==="UPDATE_SETTINGS"){let o=t.reset?{...NS,...t.settings}:{...e,...t.settings};return Object.defineProperty(o,"__unstableIsPreviewMode",{get(){return(0,Wne.default)("__unstableIsPreviewMode",{since:"6.8",alternative:"isPreviewMode"}),this.isPreviewMode}}),o}return e}function hze(e=Nne,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,VS.select)(O3.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 bze=(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,ew.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 _ze(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 vze(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 yze(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 wze(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 xze(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 kze(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(!qz(t.blocks)[e])return;break}return e}function Sze(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 Cze(e=[],t){return t.type==="REGISTER_INSERTER_MEDIA_CATEGORY"?[...e,t.category]:e}function Eze(e=!1,t){return t.type==="LAST_FOCUS"?t.lastFocus:e}function Tze(e=100,t){switch(t.type){case"SET_ZOOM_LEVEL":return t.zoom;case"RESET_ZOOM_LEVEL":return 100}return e}function Rze(e=null,t){switch(t.type){case"SET_INSERTION_POINT":return t.value;case"SELECT_BLOCK":return null}return e}function Ize(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 Pze(e=0,t){return t.type==="INCREMENT_LIST_VIEW_EXPAND_REVISION"?e+1:e}function Bze(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 Oze(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 Mze(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:{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:{pseudo:"default",...o}}}case"SELECT_BLOCK":case"SELECTION_CHANGE":{let o=t.clientId??t.start?.clientId,r=t.clientId??t.end?.clientId;if(e?.clientId&&(o!==r||e.clientId!==o))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&&!qz(t.blocks)[e.clientId])return;break}}return e}function Aze(e="default",t){return t.type==="SET_STYLE_STATE_VIEWPORT"?t.viewport??"default":e}function Nze(e=!1,t){return t.type==="SET_RESPONSIVE_EDITING"?t.enabled:e}var Lze=(0,VS.combineReducers)({blocks:JFe,isDragging:oze,isTyping:tze,isBlockInterfaceHidden:eze,draggedBlocks:rze,selection:ize,isMultiSelecting:sze,isSelectionEnabled:aze,initialPosition:uze,blocksMode:fze,blockListSettings:bze,insertionPoint:Rze,insertionCue:pze,template:mze,settings:gze,preferences:hze,lastBlockAttributesChange:_ze,lastFocus:Eze,expandedBlock:wze,highlightedBlock:vze,lastBlockInserted:xze,editedContentOnlySection:kze,blockVisibility:nze,viewportModalClientIds:lze,styleOverrides:Sze,removalPromptData:cze,blockRemovalRules:dze,registeredInserterMediaCategories:Cze,zoomLevel:Tze,hasBlockSpotlight:yze,openedListViewPanels:Ize,listViewExpandRevision:Pze,listViewContentPanelOpen:Bze,requestedInspectorTab:Oze,selectedBlockStyleState:Mze,styleStateViewport:Aze,isResponsiveEditing:Nze});function $ne(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 Xz(e,t,o){let r=$ne(e,t);if(r&&(o(r),!!r?.innerBlocks?.length))for(let n of r?.innerBlocks)Xz(e,n.clientId,o)}function DS(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 Dze(e){return e?.attributes?.metadata?.bindings&&Object.keys(e?.attributes?.metadata?.bindings).length}function Yz(e,t=""){let o=e?.zoomLevel<100||e?.zoomLevel==="auto-scaled",r=new Map,n=e.settings?.[zm],i=e.blocks.order.get(n),s=Array.from(e.blocks.blockEditingModes).some(([,h])=>h==="disabled"),a=[],l=[];e.blocks.controlledInnerBlocks.forEach(h=>{let b=e.blocks.byClientId?.get(h);b?.name==="core/template-part"&&a.push(h),b?.name==="core/block"&&l.push(h)});let d=Array.from(e.blockListSettings).flatMap(([h,b])=>b?.templateLock==="contentOnly"?[h]:[]),u=e.settings?.[jm],f=e.settings?.disableContentOnlyForUnsyncedPatterns,p=u||f?[]:Array.from(e.blocks.attributes.keys()).filter(h=>e.blocks.attributes.get(h)?.metadata?.patternName),m=e.settings?.disableContentOnlyForTemplateParts,g=[...d,...p,...u||m?[]:a];return Xz(e,t,h=>{let{clientId:b,name:v}=h,_=!!e.editedContentOnlySection,y=!1;if(_&&(y=b===e.editedContentOnlySection||!!DS(e,b,[e.editedContentOnlySection]),!y)){r.set(b,"disabled");return}if(!e.blocks.blockEditingModes.has(b)){if(s){let w,x=e.blocks.parents.get(b);for(;x!==void 0&&(e.blocks.blockEditingModes.has(x)&&(w=e.blocks.blockEditingModes.get(x)),!w);)x=e.blocks.parents.get(x);if(w==="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(DS(e,b,l)){r.set(b,"disabled");return}return}let w=DS(e,b,l);if(w){if(DS(e,w,l)){r.set(b,"disabled");return}if(Dze(h)){r.set(b,"contentOnly");return}r.set(b,"disabled");return}}if(_&&y){r.set(b,"default");return}g.length&&DS(e,b,g)&&(HFe(v)?r.set(b,"contentOnly"):r.set(b,"disabled"))}}),r}function Um({prevState:e,nextState:t,addedBlocks:o,removedClientIds:r}){let n=e.derivedBlockEditingModes,i;return r?.forEach(s=>{Xz(e,s,a=>{n.has(a.clientId)&&(i||(i=new Map(n)),i.delete(a.clientId))})}),o?.forEach(s=>{let a=Yz(t,s.clientId);a.size&&(i?i=new Map([...i?.size?i:[],...a]):i=new Map([...n?.size?n:[],...a]))}),i}function Vze(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=Um({prevState:t,nextState:r,removedClientIds:o.clientIds});if(n)return{...r,derivedBlockEditingModes:n??t.derivedBlockEditingModes};break}case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{let n=Um({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 d=o.options?.uniqueByBlock?o.attributes[l]:o.attributes;if(!d)break;d.metadata?.patternName&&!t.blocks.attributes.get(l)?.metadata?.patternName?i.push(r.blocks.tree.get(l)):d.metadata&&!d.metadata?.patternName&&t.blocks.attributes.get(l)?.metadata?.patternName&&s.push(l)}if(!i?.length&&!s?.length)break;let a=Um({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 d=t.blockListSettings.get(l)?.templateLock!=="contentOnly"&&r.blockListSettings.get(l)?.templateLock==="contentOnly",u=t.blockListSettings.get(l)?.templateLock==="contentOnly"&&r.blockListSettings.get(l)?.templateLock!=="contentOnly";d?n.push(r.blocks.tree.get(l)):u&&i.push(l)}if(!n.length&&!i.length)break;let a=Um({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=$ne(r,o.clientId);if(!n)break;let i=Um({prevState:t,nextState:r,removedClientIds:[o.clientId],addedBlocks:[n]});if(i)return{...r,derivedBlockEditingModes:i??t.derivedBlockEditingModes};break}case"REPLACE_BLOCKS":{let n=Um({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=Um({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=Um({prevState:t,nextState:r,addedBlocks:n,removedClientIds:o.clientIds});if(i)return{...r,derivedBlockEditingModes:i??t.derivedBlockEditingModes};break}case"UPDATE_SETTINGS":{if(t?.settings?.[zm]!==r?.settings?.[zm]||!!t?.settings?.disableContentOnlyForUnsyncedPatterns!=!!r?.settings?.disableContentOnlyForUnsyncedPatterns||!!t?.settings?.[jm]!=!!r?.settings?.[jm]||!!t?.settings?.disableContentOnlyForTemplateParts!=!!r?.settings?.disableContentOnlyForTemplateParts)return{...r,derivedBlockEditingModes:Yz(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:Yz(r)}}return r.derivedBlockEditingModes=t?.derivedBlockEditingModes??new Map,r}}function Fze(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 Yne=(0,Kz.pipe)(Vze,Fze)(Lze);var DU={};ro(DU,{__experimentalGetActiveBlockIdByBlockNames:()=>rWe,__experimentalGetAllowedBlocks:()=>zUe,__experimentalGetAllowedPatterns:()=>WUe,__experimentalGetBlockListSettingsForBlocks:()=>XUe,__experimentalGetDirectInsertBlock:()=>jUe,__experimentalGetGlobalBlocksByName:()=>XHe,__experimentalGetLastBlockAttributeChanges:()=>JUe,__experimentalGetParsedPattern:()=>HUe,__experimentalGetPatternTransformItems:()=>YUe,__experimentalGetPatternsByBlockTypes:()=>$Ue,__experimentalGetReusableBlockTitle:()=>ZUe,__unstableGetBlockWithoutInnerBlocks:()=>GHe,__unstableGetClientIdWithClientIdsTree:()=>YHe,__unstableGetClientIdsTree:()=>KHe,__unstableGetContentLockingParent:()=>uWe,__unstableGetLastBlockChangeHistoryMode:()=>qUe,__unstableGetSelectedBlocksWithPartialSelection:()=>_Ue,__unstableGetTemporarilyEditingAsBlocks:()=>fWe,__unstableGetVisibleBlocks:()=>aWe,__unstableHasActiveBlockOverlayActive:()=>gse,__unstableIsFullySelected:()=>mUe,__unstableIsLastBlockChangeIgnored:()=>QUe,__unstableIsSelectionCollapsed:()=>gUe,__unstableIsSelectionMergeable:()=>bUe,__unstableIsWithinBlockOverlay:()=>lWe,__unstableSelectionHasUnmergeableBlock:()=>hUe,areInnerBlocksControlled:()=>a9,canEditBlock:()=>fse,canInsertBlockType:()=>l_,canInsertBlocks:()=>OUe,canLockBlockType:()=>AUe,canMoveBlock:()=>use,canMoveBlocks:()=>MUe,canRemoveBlock:()=>NU,canRemoveBlocks:()=>dse,didAutomaticChange:()=>tWe,getAdjacentBlockClientId:()=>PU,getAllowedBlocks:()=>TU,getBlock:()=>qf,getBlockAttributes:()=>Ta,getBlockCount:()=>QHe,getBlockEditingMode:()=>fs,getBlockHierarchyRootClientId:()=>nUe,getBlockIndex:()=>ise,getBlockInsertionPoint:()=>RUe,getBlockListSettings:()=>Rw,getBlockMode:()=>EU,getBlockName:()=>no,getBlockNamesByClientId:()=>ZHe,getBlockOrder:()=>Fn,getBlockParents:()=>_l,getBlockParentsByBlockName:()=>IU,getBlockRootClientId:()=>xr,getBlockSelectionEnd:()=>eUe,getBlockSelectionStart:()=>JHe,getBlockTransformItems:()=>VUe,getBlocks:()=>$He,getBlocksByClientId:()=>n9,getBlocksByName:()=>tse,getClientIdsOfDescendants:()=>ese,getClientIdsWithDescendants:()=>Tw,getDirectInsertBlock:()=>mse,getDraggedBlockClientIds:()=>CUe,getFirstMultiSelectedBlockClientId:()=>BU,getGlobalBlockCount:()=>qHe,getHoveredBlockClientId:()=>sWe,getInserterItems:()=>DUe,getLastMultiSelectedBlockClientId:()=>rse,getLowestCommonAncestorWithSelectedBlock:()=>iUe,getMultiSelectedBlockClientIds:()=>rg,getMultiSelectedBlocks:()=>cUe,getMultiSelectedBlocksEndClientId:()=>pUe,getMultiSelectedBlocksStartClientId:()=>fUe,getNextBlockClientId:()=>aUe,getPatternsByBlockTypes:()=>GUe,getPreviousBlockClientId:()=>sUe,getSelectedBlock:()=>rUe,getSelectedBlockClientId:()=>Bw,getSelectedBlockClientIds:()=>og,getSelectedBlockCount:()=>tUe,getSelectedBlockStyleState:()=>hse,getSelectedBlocksInitialCaretPosition:()=>lUe,getSelectionEnd:()=>qE,getSelectionStart:()=>KE,getSettings:()=>Wf,getTemplate:()=>BUe,getTemplateLock:()=>cu,hasBlockMovingClientId:()=>eWe,hasDraggedInnerBlock:()=>lse,hasInserterItems:()=>FUe,hasMultiSelection:()=>wUe,hasSelectedBlock:()=>oUe,hasSelectedBlockStyleState:()=>pWe,hasSelectedInnerBlock:()=>ase,isAncestorBeingDragged:()=>EUe,isAncestorMultiSelected:()=>uUe,isBlockBeingDragged:()=>OU,isBlockHighlighted:()=>oWe,isBlockInsertionPointVisible:()=>IUe,isBlockMultiSelected:()=>nse,isBlockSelected:()=>sse,isBlockValid:()=>WHe,isBlockVisible:()=>iWe,isBlockWithinSelection:()=>yUe,isCaretWithinFormattedText:()=>TUe,isDraggingBlocks:()=>cse,isFirstMultiSelectedBlock:()=>dUe,isGroupable:()=>dWe,isLastBlockChangePersistent:()=>KUe,isMultiSelecting:()=>xUe,isSelectionEnabled:()=>kUe,isTyping:()=>SUe,isUngroupable:()=>cWe,isValidTemplate:()=>PUe,wasBlockJustInserted:()=>nWe});var Lt=c(ce(),1),Qie=c(To(),1);var M3=c(D(),1),St=(0,M3.forwardRef)(({icon:e,size:t=24,style:o,...r},n)=>{let i=e.props.style,s=i||o?{...i,...o}:void 0;return(0,M3.cloneElement)(e,{width:t,height:t,...r,...s?{style:s}:{},ref:n})});var A3=c(ve(),1),Zz=c(T(),1),Yb=(0,Zz.jsx)(A3.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,Zz.jsx)(A3.Path,{d:"M7.5 5H16.5M4 12H20M7.5 19H16.5",vectorEffect:"non-scaling-stroke"})});var N3=c(ve(),1),Qz=c(T(),1),Jz=(0,Qz.jsx)(N3.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,Qz.jsx)(N3.Path,{d:"M4 5H20M4 12H20M4 19H16.5",vectorEffect:"non-scaling-stroke"})});var L3=c(ve(),1),ej=c(T(),1),Wm=(0,ej.jsx)(L3.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,ej.jsx)(L3.Path,{d:"M4 5H13M4 12H20M4 19H13",vectorEffect:"non-scaling-stroke"})});var tw=c(ve(),1),FS=c(T(),1),Kb=(0,FS.jsxs)(tw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,FS.jsx)(tw.Path,{d:"M5 5H19M5 19H19",vectorEffect:"non-scaling-stroke"}),(0,FS.jsx)(tw.Rect,{x:"5",y:"9",width:"14",height:"6",fill:"currentColor",stroke:"none"})]});var D3=c(ve(),1),tj=c(T(),1),Gm=(0,tj.jsx)(D3.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,tj.jsx)(D3.Path,{d:"M11 5H20M4 12H20M11 19H20",vectorEffect:"non-scaling-stroke"})});var V3=c(ve(),1),oj=c(T(),1),rj=(0,oj.jsx)(V3.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,oj.jsx)(V3.Path,{d:"M12 4V19M7 14L12 19L17 14",vectorEffect:"non-scaling-stroke"})});var F3=c(ve(),1),nj=c(T(),1),zS=(0,nj.jsx)(F3.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,nj.jsx)(F3.Path,{d:"M20 12L5 12M10 7L5 12L10 17",vectorEffect:"non-scaling-stroke"})});var z3=c(ve(),1),ij=c(T(),1),jS=(0,ij.jsx)(z3.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,ij.jsx)(z3.Path,{d:"M4 12L19 12M14 17L19 12L14 7",vectorEffect:"non-scaling-stroke"})});var j3=c(ve(),1),sj=c(T(),1),aj=(0,sj.jsx)(j3.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,sj.jsx)(j3.Path,{d:"M7.25 12V9.25H10M16.75 12V14.75H14M5.5 17.75H18.5C19.1904 17.75 19.75 17.1904 19.75 16.5V7.5C19.75 6.80964 19.1904 6.25 18.5 6.25H5.5C4.80964 6.25 4.25 6.80964 4.25 7.5V16.5C4.25 17.1904 4.80964 17.75 5.5 17.75Z",vectorEffect:"non-scaling-stroke"})});var HS=c(ve(),1),US=c(T(),1),WS=(0,US.jsxs)(HS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,US.jsx)(HS.Path,{d:"M3.75 10C3.75 9.30964 4.30964 8.75 5 8.75H19C19.6904 8.75 20.25 9.30964 20.25 10V18C20.25 18.6904 19.6904 19.25 19 19.25H5C4.30964 19.25 3.75 18.6904 3.75 18V10Z",vectorEffect:"non-scaling-stroke"}),(0,US.jsx)(HS.Path,{d:"M10.5 6.5V9H6.5V6.5H10.5ZM17.5 6.5V9H13.5V6.5H17.5Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"})]});var qb=c(ve(),1),Xb=c(T(),1),lj=(0,Xb.jsxs)(qb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Xb.jsx)(qb.Path,{d:"M4.75 6C4.75 5.30964 5.30964 4.75 6 4.75H9C9.69036 4.75 10.25 5.30964 10.25 6V9C10.25 9.69036 9.69036 10.25 9 10.25H6C5.30964 10.25 4.75 9.69036 4.75 9V6Z",vectorEffect:"non-scaling-stroke"}),(0,Xb.jsx)(qb.Path,{d:"M4.75 15C4.75 14.3096 5.30964 13.75 6 13.75H9C9.69036 13.75 10.25 14.3096 10.25 15V18C10.25 18.6904 9.69036 19.25 9 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V15Z",vectorEffect:"non-scaling-stroke"}),(0,Xb.jsx)(qb.Path,{d:"M13.75 6C13.75 5.30964 14.3096 4.75 15 4.75H18C18.6904 4.75 19.25 5.30964 19.25 6V9C19.25 9.69036 18.6904 10.25 18 10.25H15C14.3096 10.25 13.75 9.69036 13.75 9V6Z",vectorEffect:"non-scaling-stroke"}),(0,Xb.jsx)(qb.Path,{d:"M13.75 15C13.75 14.3096 14.3096 13.75 15 13.75H18C18.6904 13.75 19.25 14.3096 19.25 15V18C19.25 18.6904 18.6904 19.25 18 19.25H15C14.3096 19.25 13.75 18.6904 13.75 18V15Z",vectorEffect:"non-scaling-stroke"})]});var H3=c(ve(),1),cj=c(T(),1),GS=(0,cj.jsx)(H3.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,cj.jsx)(H3.Path,{d:"M12 8L12 13M12 14.5L12 16M4.75 12C4.75 7.99593 7.99594 4.75 12 4.75C16.0041 4.75 19.25 7.99594 19.25 12C19.25 16.0041 16.0041 19.25 12 19.25C7.99594 19.25 4.75 16.0041 4.75 12Z",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})});var U3=c(ve(),1),dj=c(T(),1),Vn=(0,dj.jsx)(U3.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,dj.jsx)(U3.Path,{d:"M7 12L10 15L17 8",vectorEffect:"non-scaling-stroke"})});var W3=c(ve(),1),uj=c(T(),1),Tn=(0,uj.jsx)(W3.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,uj.jsx)(W3.Path,{d:"M7 11L12 15L17 11",vectorEffect:"non-scaling-stroke"})});var G3=c(ve(),1),fj=c(T(),1),$S=(0,fj.jsx)(G3.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,fj.jsx)(G3.Path,{d:"M13.5 8.5L10.5 12L13.5 15.5",vectorEffect:"non-scaling-stroke"})});var $3=c(ve(),1),pj=c(T(),1),ai=(0,pj.jsx)($3.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,pj.jsx)($3.Path,{d:"M14 6.5L9 12L14 17.5",vectorEffect:"non-scaling-stroke"})});var Y3=c(ve(),1),mj=c(T(),1),nu=(0,mj.jsx)(Y3.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,mj.jsx)(Y3.Path,{d:"M10.5 8.5L13.5 12L10.5 15.5",vectorEffect:"non-scaling-stroke"})});var K3=c(ve(),1),gj=c(T(),1),yr=(0,gj.jsx)(K3.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,gj.jsx)(K3.Path,{d:"M10 6.5L15 12L10 17.5",vectorEffect:"non-scaling-stroke"})});var q3=c(ve(),1),hj=c(T(),1),Zb=(0,hj.jsx)(q3.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,hj.jsx)(q3.Path,{d:"M7 13L12 9L17 13",vectorEffect:"non-scaling-stroke"})});var X3=c(ve(),1),bj=c(T(),1),Lf=(0,bj.jsx)(X3.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,bj.jsx)(X3.Path,{d:"M7.75 16.25L16.25 7.75M16.25 16.25L7.75 7.75",vectorEffect:"non-scaling-stroke"})});var Fc=c(ve(),1),zc=c(T(),1),_j=(0,zc.jsxs)(Fc.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,zc.jsx)(Fc.Path,{d:"M5.38646 8.95505C5.36302 8.99564 5.37092 9.04706 5.40547 9.07874L6.96476 10.509C7.08306 10.1089 7.24777 9.72864 7.45264 9.37456C7.66022 9.01579 7.90904 8.68387 8.19262 8.38527L6.17287 7.74956C6.12816 7.73549 6.07968 7.75436 6.05624 7.79495L5.38646 8.95505Z",fill:"currentColor",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"}),(0,zc.jsx)(Fc.Path,{d:"M12.6698 19.25C12.7167 19.25 12.7573 19.2174 12.7674 19.1717L13.2265 17.106C12.833 17.2001 12.4223 17.25 12 17.25C11.5777 17.25 11.167 17.2001 10.7736 17.106L11.2326 19.1717C11.2428 19.2174 11.2834 19.25 11.3303 19.25L12.6698 19.25Z",fill:"currentColor",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"}),(0,zc.jsx)(Fc.Path,{d:"M11.3303 4.75C11.2834 4.75 11.2428 4.78255 11.2326 4.82831L10.7736 6.89403C11.167 6.79986 11.5777 6.75 12 6.75C12.4223 6.75 12.833 6.79987 13.2265 6.89403L12.7674 4.82831C12.7573 4.78255 12.7167 4.75 12.6698 4.75L11.3303 4.75Z",fill:"currentColor",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"}),(0,zc.jsx)(Fc.Path,{d:"M17.9438 7.79495C17.9204 7.75436 17.8719 7.73549 17.8272 7.74956L15.8074 8.38528C16.091 8.68388 16.3398 9.0158 16.5474 9.37457C16.7523 9.72865 16.917 10.1089 17.0353 10.509L18.5946 9.07874C18.6291 9.04706 18.637 8.99564 18.6136 8.95505L17.9438 7.79495Z",fill:"currentColor",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"}),(0,zc.jsx)(Fc.Path,{d:"M6.05625 16.205C6.07968 16.2456 6.12816 16.2645 6.17287 16.2504L8.19262 15.6147C7.90904 15.3161 7.66022 14.9842 7.45264 14.6254C7.24777 14.2714 7.08307 13.8911 6.96476 13.491L5.40547 14.9213C5.37093 14.9529 5.36303 15.0044 5.38646 15.045L6.05625 16.205Z",fill:"currentColor",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"}),(0,zc.jsx)(Fc.Path,{d:"M18.6136 15.0449C18.637 15.0044 18.6291 14.9529 18.5946 14.9213L17.0353 13.491C16.917 13.8911 16.7523 14.2713 16.5474 14.6254C16.3398 14.9842 16.091 15.3161 15.8074 15.6147L17.8272 16.2504C17.8719 16.2645 17.9204 16.2456 17.9438 16.205L18.6136 15.0449Z",fill:"currentColor",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"}),(0,zc.jsx)(Fc.Path,{d:"M12 6.75C14.8995 6.75 17.25 9.10051 17.25 12C17.25 14.8995 14.8995 17.25 12 17.25C9.10051 17.25 6.75 14.8995 6.75 12C6.75 9.10051 9.10051 6.75 12 6.75Z",vectorEffect:"non-scaling-stroke"}),(0,zc.jsx)(Fc.Path,{d:"M12 8C14.2091 8 16 9.79086 16 12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12C8 9.79086 9.79086 8 12 8Z",vectorEffect:"non-scaling-stroke"})]});var ow=c(ve(),1),YS=c(T(),1),vj=(0,YS.jsxs)(ow.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,YS.jsx)(ow.Rect,{x:"4.75",y:"4.75",width:"11.5",height:"11.5",rx:"0.875",vectorEffect:"non-scaling-stroke"}),(0,YS.jsx)(ow.Path,{d:"M19.25 8.281V17.281C19.25 18.3692 18.3546 19.25 17.251 19.25H6.25",vectorEffect:"non-scaling-stroke"})]});var KS=c(ve(),1),qS=c(T(),1),Qb=(0,qS.jsxs)(KS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,qS.jsx)(KS.Path,{d:"M20.25 6.75V19C20.25 19.6904 19.6904 20.25 19 20.25H6.75",vectorEffect:"non-scaling-stroke"}),(0,qS.jsx)(KS.Path,{d:"M3.75 5C3.75 4.30964 4.30964 3.75 5 3.75H16C16.6904 3.75 17.25 4.30964 17.25 5V16C17.25 16.6904 16.6904 17.25 16 17.25H5C4.30964 17.25 3.75 16.6904 3.75 16V5Z",vectorEffect:"non-scaling-stroke"})]});var Z3=c(ve(),1),yj=c(T(),1),wj=(0,yj.jsx)(Z3.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,yj.jsx)(Z3.Path,{d:"M19.25 9V6C19.25 5.30964 18.6904 4.75 18 4.75H15M19.25 15V18C19.25 18.6904 18.6904 19.25 18 19.25H15M9 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V9M4.75 15V18C4.75 18.6904 5.30964 19.25 6 19.25H9",vectorEffect:"non-scaling-stroke"})});var XS=c(ve(),1),ZS=c(T(),1),xj=(0,ZS.jsxs)(XS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,ZS.jsx)(XS.Path,{d:"M4.75 15V18C4.75 18.6904 5.30964 19.25 6 19.25H9",vectorEffect:"non-scaling-stroke"}),(0,ZS.jsx)(XS.Path,{opacity:".25",d:"M19.25 9V6C19.25 5.30964 18.6904 4.75 18 4.75H15M19.25 15V18C19.25 18.6904 18.6904 19.25 18 19.25H15M9 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V9",vectorEffect:"non-scaling-stroke"})]});var QS=c(ve(),1),JS=c(T(),1),kj=(0,JS.jsxs)(QS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,JS.jsx)(QS.Path,{d:"M15 19.25L18 19.25C18.6904 19.25 19.25 18.6904 19.25 18L19.25 15",vectorEffect:"non-scaling-stroke"}),(0,JS.jsx)(QS.Path,{opacity:".25",d:"M9 4.75L6 4.75C5.30965 4.75 4.75 5.30964 4.75 6L4.75 9M15 4.75L18 4.75C18.6904 4.75 19.25 5.30964 19.25 6L19.25 9M4.75 15L4.75 18C4.75 18.6904 5.30964 19.25 6 19.25L9 19.25",vectorEffect:"non-scaling-stroke"})]});var eC=c(ve(),1),tC=c(T(),1),Sj=(0,tC.jsxs)(eC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,tC.jsx)(eC.Path,{d:"M9 4.75L6 4.75C5.30964 4.75 4.75 5.30964 4.75 6L4.75 9",vectorEffect:"non-scaling-stroke"}),(0,tC.jsx)(eC.Path,{opacity:".25",d:"M15 19.25L18 19.25C18.6904 19.25 19.25 18.6904 19.25 18L19.25 15M9 19.25L6 19.25C5.30964 19.25 4.75 18.6904 4.75 18L4.75 15M19.25 9L19.25 6C19.25 5.30964 18.6904 4.75 18 4.75L15 4.75",vectorEffect:"non-scaling-stroke"})]});var oC=c(ve(),1),rC=c(T(),1),Cj=(0,rC.jsxs)(oC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,rC.jsx)(oC.Path,{d:"M19.25 9L19.25 6C19.25 5.30965 18.6904 4.75 18 4.75L15 4.75",vectorEffect:"non-scaling-stroke"}),(0,rC.jsx)(oC.Path,{opacity:".25",d:"M4.75 15L4.75 18C4.75 18.6904 5.30964 19.25 6 19.25L9 19.25M4.75 9L4.75 6C4.75 5.30964 5.30965 4.75 6 4.75L9 4.75M15 19.25L18 19.25C18.6904 19.25 19.25 18.6904 19.25 18L19.25 15",vectorEffect:"non-scaling-stroke"})]});var Q3=c(ve(),1),Ej=c(T(),1),Tj=(0,Ej.jsx)(Q3.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,Ej.jsx)(Q3.Path,{d:"M4.75 16.75V17H3.25C3.11193 17 3 17.1119 3 17.25H21C21 17.1119 20.8881 17 20.75 17H19.25V16.75M4.75 16.75V8.5C4.75 7.80964 5.30964 7.25 6 7.25H18C18.6904 7.25 19.25 7.80964 19.25 8.5V16.75M4.75 16.75H19.25",vectorEffect:"non-scaling-stroke"})});var cs=c(ve(),1),ds=c(T(),1),nC=(0,ds.jsxs)(cs.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,ds.jsx)(cs.Path,{d:"M9.25 5.75H8.75V6.25H9.25V5.75Z",fill:"currentColor",stroke:"none"}),(0,ds.jsx)(cs.Path,{d:"M9.25 11.75H8.75V12.25H9.25V11.75Z",fill:"currentColor",stroke:"none"}),(0,ds.jsx)(cs.Path,{d:"M9.25 17.75H8.75V18.25H9.25V17.75Z",fill:"currentColor",stroke:"none"}),(0,ds.jsx)(cs.Path,{d:"M15.25 5.75H14.75V6.25H15.25V5.75Z",fill:"currentColor",stroke:"none"}),(0,ds.jsx)(cs.Path,{d:"M15.25 11.75H14.75V12.25H15.25V11.75Z",fill:"currentColor",stroke:"none"}),(0,ds.jsx)(cs.Path,{d:"M15.25 17.75H14.75V18.25H15.25V17.75Z",fill:"currentColor",stroke:"none"}),(0,ds.jsx)(cs.Path,{d:"M9.25 5.75H8.75V6.25H9.25V5.75Z",vectorEffect:"non-scaling-stroke"}),(0,ds.jsx)(cs.Path,{d:"M9.25 11.75H8.75V12.25H9.25V11.75Z",vectorEffect:"non-scaling-stroke"}),(0,ds.jsx)(cs.Path,{d:"M9.25 17.75H8.75V18.25H9.25V17.75Z",vectorEffect:"non-scaling-stroke"}),(0,ds.jsx)(cs.Path,{d:"M15.25 5.75H14.75V6.25H15.25V5.75Z",vectorEffect:"non-scaling-stroke"}),(0,ds.jsx)(cs.Path,{d:"M15.25 11.75H14.75V12.25H15.25V11.75Z",vectorEffect:"non-scaling-stroke"}),(0,ds.jsx)(cs.Path,{d:"M15.25 17.75H14.75V18.25H15.25V17.75Z",vectorEffect:"non-scaling-stroke"})]});var J3=c(ve(),1),Rj=c(T(),1),Ij=(0,Rj.jsx)(J3.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,Rj.jsx)(J3.Path,{d:"M20.25 8.5V7C20.25 6.30964 19.6904 5.75 19 5.75H5C4.30964 5.75 3.75 6.30964 3.75 7V8.5M20.25 8.5V17C20.25 17.6904 19.6904 18.25 19 18.25H5C4.30964 18.25 3.75 17.6904 3.75 17V8.5M20.25 8.5L12 14.5L3.75 8.5",vectorEffect:"non-scaling-stroke"})});var e4=c(ve(),1),Pj=c(T(),1),Jb=(0,Pj.jsx)(e4.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,Pj.jsx)(e4.Path,{d:"M12 9L12 14M12 15.5V17M11.1284 5.04947L3.83827 18.0097C3.46331 18.6763 3.94502 19.5 4.70985 19.5H19.2902C20.055 19.5 20.5367 18.6763 20.1617 18.0097L12.8716 5.04947C12.4893 4.36982 11.5107 4.36982 11.1284 5.04947Z",vectorEffect:"non-scaling-stroke"})});var t4=c(ve(),1),Bj=c(T(),1),Oj=(0,Bj.jsx)(t4.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,Bj.jsx)(t4.Path,{d:"M9.5 6.25H6.5C5.80964 6.25 5.25 6.80964 5.25 7.5V17.5C5.25 18.1904 5.80964 18.75 6.5 18.75H16.5C17.1904 18.75 17.75 18.1904 17.75 17.5V14.5M11.5 12.5L18.75 5.25M12.5 5.25H18.75V11.5",vectorEffect:"non-scaling-stroke"})});var o4=c(ve(),1),Mj=c(T(),1),Aj=(0,Mj.jsx)(o4.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,Mj.jsx)(o4.Path,{d:"M3.75 6V17.5C3.75 18.1904 4.30964 18.75 5 18.75H19C19.6904 18.75 20.25 18.1904 20.25 17.5V8.5C20.25 7.80964 19.6904 7.25 19 7.25H13.3463C12.8352 7.25 12.3755 6.93881 12.1857 6.46424L11.8143 5.53576C11.6245 5.06119 11.1648 4.75 10.6537 4.75H5C4.30964 4.75 3.75 5.30964 3.75 6Z",vectorEffect:"non-scaling-stroke"})});var iC=c(ve(),1),sC=c(T(),1),Nj=(0,sC.jsxs)(iC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,sC.jsx)(iC.Path,{d:"M12 5.5L5.25 18.25H18.75L12 5.5Z",vectorEffect:"non-scaling-stroke"}),(0,sC.jsx)(iC.Path,{d:"M11.25 18.25H5.25L11.25 6.91666V18.25Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"})]});var aC=c(ve(),1),lC=c(T(),1),Lj=(0,lC.jsxs)(aC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,lC.jsx)(aC.Path,{d:"M11.4527 17.5V17.223L10.4369 14.1757L8.12838 7.25H7.57432L5.26577 14.1757L4.25 17.223V17.5M10.4369 14.1757H5.26577",vectorEffect:"non-scaling-stroke"}),(0,lC.jsx)(aC.Path,{d:"M14.25 6V15.0386V17.5M14.25 13.2941C14.25 11.2353 15.4265 10.4118 16.8676 10.4118C18.4595 10.4118 19.75 11.6471 19.75 13.7059C19.75 15.7647 18.4595 17 16.8676 17C15.6908 17 14.25 15.7647 14.25 14.1176",vectorEffect:"non-scaling-stroke"})]});var cC=c(ve(),1),dC=c(T(),1),Dj=(0,dC.jsxs)(cC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,dC.jsx)(cC.Path,{d:"M14.25 6V15.0386V17.5M14.25 13.2941C14.25 11.2353 15.4265 10.4118 16.8676 10.4118C18.4595 10.4118 19.75 11.6471 19.75 13.7059C19.75 15.7647 18.4595 16.75 16.8676 16.75C15.6908 16.75 14.25 15.7647 14.25 14.1176",vectorEffect:"non-scaling-stroke"}),(0,dC.jsx)(cC.Path,{d:"M10.5 9.5C10.5 9.5 10.5 13.5533 10.5 14.7886C10.5 16.0239 10.6824 16.75 12 16.75M10.5 13.0441C10.5 10.9853 9.32353 10.1618 7.88235 10.1618C6.29047 10.1618 5 11.3971 5 13.4559C5 15.5147 6.29047 16.75 7.88235 16.75C9.0592 16.75 10.5 15.5147 10.5 13.8676",vectorEffect:"non-scaling-stroke"})]});var r4=c(ve(),1),Vj=c(T(),1),Fj=(0,Vj.jsx)(r4.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,Vj.jsx)(r4.Path,{d:"M9 16.1554C12 18.02 15 16.5283 15 14.2908C15 13.6314 14.6839 12.999 14.1213 12.5328C14.108 12.5217 14.0945 12.5108 14.081 12.5M9 9.31845C9 7.49773 11.4313 6.3247 13.9199 7.4278M5.5 12.5H14.081M18.5 12.5H14.081",strokeLinecap:"square",vectorEffect:"non-scaling-stroke"})});var uC=c(ve(),1),fC=c(T(),1),zj=(0,fC.jsxs)(uC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,fC.jsx)(uC.Path,{d:"M15.25 7.25V13.5C15.25 15.2949 13.7949 16.75 12 16.75C10.2051 16.75 8.75 15.2949 8.75 13.5V7.25",strokeLinecap:"square",vectorEffect:"non-scaling-stroke"}),(0,fC.jsx)(uC.Path,{d:"M8 19.5H16",vectorEffect:"non-scaling-stroke"})]});var pC=c(ve(),1),mC=c(T(),1),jj=(0,mC.jsxs)(pC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,mC.jsx)(pC.Path,{d:"M17.4118 11.7206H14M17.4118 11.7206L17.9839 11.8477C19.1189 12.1 19.9265 13.1066 19.9265 14.2693C19.9265 15.6394 18.8158 16.75 17.4458 16.75H14C14 16.75 14 14.439 14 11.7206M17.4118 11.7206C18.3792 11.5594 19.0882 10.7223 19.0882 9.74158V9.51902C19.0882 8.26588 18.0724 7.25 16.8192 7.25H14C14 8.55783 14 10.2406 14 11.7206",vectorEffect:"non-scaling-stroke"}),(0,mC.jsx)(pC.Path,{d:"M4.25 17.5V17.223L5.26577 14.1757M5.26577 14.1757L7.57432 7.25H8.12838L10.4369 14.1757L11.4527 17.223V17.5M10.4369 14.1757H5.26577",vectorEffect:"non-scaling-stroke"})]});var n4=c(ve(),1),Hj=c(T(),1),Uj=(0,Hj.jsx)(n4.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,Hj.jsx)(n4.Path,{d:"M5 12H19M12 9.5V3M8.5 6L12 3L15.5 6M12 14.5V21M8.5 18L12 21L15.5 18",vectorEffect:"non-scaling-stroke"})});var i4=c(ve(),1),Wj=c(T(),1),s4=(0,Wj.jsx)(i4.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,Wj.jsx)(i4.Path,{d:"M4.75 10V4.75H10M4.75 4.75L10 10M14 19.25H19.25V14M19.25 19.25L14 14",vectorEffect:"non-scaling-stroke"})});var a4=c(ve(),1),Gj=c(T(),1),gC=(0,Gj.jsx)(a4.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,Gj.jsx)(a4.Path,{d:"M12 4.75C8.87453 4.75 6.21099 6.72773 5.19257 9.5M18.8074 14.5C19.0937 13.7207 19.25 12.8786 19.25 12C19.25 11.1214 19.0937 10.2793 18.8074 9.5C17.789 6.72773 15.1255 4.75 12 4.75M12 4.75C11 5.5 9 8.63218 9 12C9 15.3678 11 18.5 12 19.25M12 4.75C13 5.5 15 8.63218 15 12C15 15.3678 13 18.5 12 19.25M5.19257 9.5C4.90628 10.2793 4.75 11.1214 4.75 12C4.75 12.8786 4.90629 13.7207 5.19257 14.5C6.21099 17.2723 8.87453 19.25 12 19.25M12 19.25C15.1255 19.25 17.789 17.2723 18.8074 14.5M5.19257 9.5L18.8074 9.5M5.19257 14.5L18.8074 14.5",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})});var l4=c(ve(),1),$j=c(T(),1),hC=(0,$j.jsx)(l4.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,$j.jsx)(l4.Path,{d:"M12 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V12M12 4.75H18C18.6904 4.75 19.25 5.30964 19.25 6V12M12 4.75V19.25M12 19.25H18C18.6904 19.25 19.25 18.6904 19.25 18V12M12 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V12M19.25 12H4.75",vectorEffect:"non-scaling-stroke"})});var bC=c(ve(),1),_C=c(T(),1),vC=(0,_C.jsxs)(bC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,_C.jsx)(bC.Path,{d:"M4.75 11C4.75 10.3096 5.30964 9.75 6 9.75H13C13.6904 9.75 14.25 10.3096 14.25 11V18C14.25 18.6904 13.6904 19.25 13 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V11Z",vectorEffect:"non-scaling-stroke"}),(0,_C.jsx)(bC.Path,{d:"M9.75 6C9.75 5.30964 10.3096 4.75 11 4.75H18C18.6904 4.75 19.25 5.30964 19.25 6V13C19.25 13.6904 18.6904 14.25 18 14.25H11C10.3096 14.25 9.75 13.6904 9.75 13V6Z",vectorEffect:"non-scaling-stroke"})]});var yC=c(ve(),1),wC=c(T(),1),Yj=(0,wC.jsxs)(yC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,wC.jsx)(yC.Path,{d:"M5.25 12H11M5.25 12V7.75M5.25 12L5.25 16.25M11 12V7.75M11 12V16.25",strokeLinecap:"square",vectorEffect:"non-scaling-stroke"}),(0,wC.jsx)(yC.Path,{d:"M17 17C17 16.1556 17 10.213 17 7.75L14 8.55556",vectorEffect:"non-scaling-stroke"})]});var xC=c(ve(),1),kC=c(T(),1),Kj=(0,kC.jsxs)(xC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,kC.jsx)(xC.Path,{d:"M19.1415 16.25H14.75C14.75 11.7122 19.25 12.9034 19.25 9.5C19.25 7.79832 16.9457 6.29831 14.75 8",strokeLinecap:"square",vectorEffect:"non-scaling-stroke"}),(0,kC.jsx)(xC.Path,{d:"M5.25 12H11M5.25 12V7.75M5.25 12L5.25 16.25M11 12V7.75M11 12V16.25",strokeLinecap:"square",vectorEffect:"non-scaling-stroke"})]});var SC=c(ve(),1),CC=c(T(),1),qj=(0,CC.jsxs)(SC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,CC.jsx)(SC.Path,{d:"M5.25 12H11M5.25 12V7.75M5.25 12L5.25 16.25M11 12V7.75M11 12V16.25",strokeLinecap:"square",vectorEffect:"non-scaling-stroke"}),(0,CC.jsx)(SC.Path,{d:"M14.5 15.4934C17 17.1638 19.5 15.8275 19.5 13.823C19.5 13.2323 19.2366 12.6658 18.7678 12.2481C18.2989 11.8305 17.663 11.5958 17 11.5958M17 11.5958C17.663 11.5958 18.2989 11.3612 18.7678 10.9435C19.2366 10.5258 19.5 9.95933 19.5 9.36864C19.5 7.69825 17.125 6.58466 15 7.69825M17 11.5958H16.75",strokeLinecap:"square",vectorEffect:"non-scaling-stroke"})]});var EC=c(ve(),1),TC=c(T(),1),Xj=(0,TC.jsxs)(EC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,TC.jsx)(EC.Path,{d:"M5.25 12H11M5.25 12V7.75M5.25 12L5.25 16.25M11 12V7.75M11 12V16.25",strokeLinecap:"square",vectorEffect:"non-scaling-stroke"}),(0,TC.jsx)(EC.Path,{d:"M19.25 17V12.75M19.25 9V12.75M15 7V7.5L13.75 12.75H19.25",vectorEffect:"non-scaling-stroke"})]});var RC=c(ve(),1),IC=c(T(),1),Zj=(0,IC.jsxs)(RC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,IC.jsx)(RC.Path,{d:"M5.25 12H11M5.25 12V7.75M5.25 12L5.25 16.25M11 12V7.75M11 12V16.25",strokeLinecap:"square",vectorEffect:"non-scaling-stroke"}),(0,IC.jsx)(RC.Path,{d:"M14 15.4934C16.5 17.1638 19 15.8275 19 13.823C19 13.2323 18.7366 12.6658 18.2678 12.2482C17.7989 11.8305 17.163 11.5958 16.5 11.5958H14.25L14.75 7.75H18",strokeLinecap:"square",vectorEffect:"non-scaling-stroke"})]});var PC=c(ve(),1),BC=c(T(),1),Qj=(0,BC.jsxs)(PC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,BC.jsx)(PC.Path,{d:"M5.25 12H11M5.25 12V7.75M5.25 12L5.25 16.25M11 12V7.75M11 12V16.25",strokeLinecap:"square",vectorEffect:"non-scaling-stroke"}),(0,BC.jsx)(PC.Path,{d:"M19.0092 8.10342C17.1095 7.1899 15.4694 8.08711 14.7634 9.38026C14.0574 10.6734 13.8551 12.0834 14.0986 13.62C14.177 14.1146 14.3884 14.8582 14.9041 15.3039C15.4198 15.7496 16.1193 16 16.8486 16C17.578 16 18.2775 15.7496 18.7932 15.3039C19.3089 14.8582 19.5986 14.2537 19.5986 13.6234C19.5986 12.9931 19.3089 12.3918 18.7932 11.9461C18.2775 11.5004 17.578 11.25 16.8486 11.25C16.1193 11.25 15.4198 11.5004 14.9041 11.9461C14.3884 12.3918 14.0986 12.9931 14.0986 13.6234",vectorEffect:"non-scaling-stroke"})]});var c4=c(ve(),1),Jj=c(T(),1),eH=(0,Jj.jsx)(c4.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,Jj.jsx)(c4.Path,{d:"M13.75 19.25H19.25V8.5L12 5L4.75 8.5V19.25H10.25M13.75 19.25V13.7H10.25V19.25M13.75 19.25H10.25",vectorEffect:"non-scaling-stroke"})});var d4=c(ve(),1),tH=c(T(),1),oH=(0,tH.jsx)(d4.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,tH.jsx)(d4.Path,{d:"M19.25 14.2513L16.0707 11.0707C16.0317 11.0317 15.9683 11.0317 15.9293 11.0707L12.0584 14.9416C12.0245 14.9755 11.9713 14.9806 11.9316 14.9537L8.65791 12.7392C8.62313 12.7156 8.57736 12.7163 8.54332 12.7409L4.75 15.4808M19.25 14.2513V6C19.25 5.30964 18.6904 4.75 18 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V15.4808M19.25 14.2513V18C19.25 18.6904 18.6904 19.25 18 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V15.4808",vectorEffect:"non-scaling-stroke"})});var u4=c(ve(),1),rH=c(T(),1),OC=(0,rH.jsx)(u4.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,rH.jsx)(u4.Path,{d:"M12 16V11M12 9.5V8M19.25 12C19.25 16.0041 16.0041 19.25 12 19.25C7.99594 19.25 4.75 16.0041 4.75 12C4.75 7.99594 7.99594 4.75 12 4.75C16.0041 4.75 19.25 7.99594 19.25 12Z",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})});var rw=c(ve(),1),MC=c(T(),1),AC=(0,MC.jsxs)(rw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,MC.jsx)(rw.Path,{d:"M4 19.25H20",vectorEffect:"non-scaling-stroke"}),(0,MC.jsx)(rw.Rect,{x:"9",y:"4",width:"6",height:"11",fill:"currentColor",stroke:"none"})]});var nw=c(ve(),1),NC=c(T(),1),LC=(0,NC.jsxs)(nw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,NC.jsx)(nw.Path,{d:"M4 12H20",vectorEffect:"non-scaling-stroke"}),(0,NC.jsx)(nw.Rect,{x:"9",y:"4",width:"6",height:"16",fill:"currentColor",stroke:"none"})]});var iw=c(ve(),1),DC=c(T(),1),$m=(0,DC.jsxs)(iw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,DC.jsx)(iw.Path,{d:"M12 20V4",vectorEffect:"non-scaling-stroke"}),(0,DC.jsx)(iw.Rect,{x:"4",y:"9",width:"16",height:"6",fill:"currentColor",stroke:"none"})]});var sw=c(ve(),1),VC=c(T(),1),Ym=(0,VC.jsxs)(sw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,VC.jsx)(sw.Path,{d:"M4.75 4V20",vectorEffect:"non-scaling-stroke"}),(0,VC.jsx)(sw.Rect,{x:"9",y:"9",width:"11",height:"6",fill:"currentColor",stroke:"none"})]});var aw=c(ve(),1),FC=c(T(),1),Km=(0,FC.jsxs)(aw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,FC.jsx)(aw.Rect,{x:"4",y:"9",width:"11",height:"6",fill:"currentColor",stroke:"none"}),(0,FC.jsx)(aw.Path,{d:"M19.25 20V4",vectorEffect:"non-scaling-stroke"})]});var lw=c(ve(),1),cw=c(T(),1),zC=(0,cw.jsxs)(lw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,cw.jsx)(lw.Path,{d:"M4 12H20",vectorEffect:"non-scaling-stroke"}),(0,cw.jsx)(lw.Path,{d:"M17 20H7V16H17V20Z",fill:"currentColor",stroke:"none"}),(0,cw.jsx)(lw.Path,{d:"M17 8H7V4H17V8Z",fill:"currentColor",stroke:"none"})]});var dw=c(ve(),1),jC=c(T(),1),uw=(0,jC.jsxs)(dw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,jC.jsx)(dw.Rect,{x:"9",y:"9",width:"6",height:"6",fill:"currentColor",stroke:"none"}),(0,jC.jsx)(dw.Path,{d:"M19.25 4V20M4.75 20V4",vectorEffect:"non-scaling-stroke"})]});var fw=c(ve(),1),HC=c(T(),1),UC=(0,HC.jsxs)(fw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,HC.jsx)(fw.Rect,{x:"10",y:"7",width:"4",height:"10",fill:"currentColor",stroke:"none"}),(0,HC.jsx)(fw.Path,{d:"M4 4.75H20M4 19.25H20",vectorEffect:"non-scaling-stroke"})]});var pw=c(ve(),1),WC=c(T(),1),mw=(0,WC.jsxs)(pw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,WC.jsx)(pw.Path,{d:"M4.75 4V20M19.25 20V4",vectorEffect:"non-scaling-stroke"}),(0,WC.jsx)(pw.Rect,{x:"7",y:"10",width:"10",height:"4",fill:"currentColor",stroke:"none"})]});var gw=c(ve(),1),GC=c(T(),1),$C=(0,GC.jsxs)(gw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,GC.jsx)(gw.Rect,{x:"9",y:"9",width:"6",height:"11",fill:"currentColor",stroke:"none"}),(0,GC.jsx)(gw.Path,{d:"M4 4.75H20",vectorEffect:"non-scaling-stroke"})]});var f4=c(ve(),1),nH=c(T(),1),Df=(0,nH.jsx)(f4.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,nH.jsx)(f4.Path,{d:"M8.25 21L4.75 17L8.25 13M4.75 17H14.125C17.5077 17 20.25 14.2577 20.25 10.875C20.25 7.49226 17.5077 4.75 14.125 4.75H12",vectorEffect:"non-scaling-stroke"})});var p4=c(ve(),1),iH=c(T(),1),sH=(0,iH.jsx)(p4.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,iH.jsx)(p4.Path,{d:"M9.75 19.25H18C18.6904 19.25 19.25 18.6904 19.25 18V9.75M9.75 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V9.75M9.75 19.25V9.75M19.25 9.75V6C19.25 5.30964 18.6904 4.75 18 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V9.75M19.25 9.75H9.75M9.75 9.75H4.75",vectorEffect:"non-scaling-stroke"})});var m4=c(ve(),1),aH=c(T(),1),$s=(0,aH.jsx)(m4.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,aH.jsx)(m4.Path,{d:"M9.5 12H12.5M10 7.75H8.25C5.90279 7.75 4 9.65279 4 12C4 14.3472 5.90279 16.25 8.25 16.25H10.2333M14 16.25H15.75C18.0972 16.25 20 14.3472 20 12C20 9.65279 18.0972 7.75 15.75 7.75H14.7667M8.5 19.5L16.5 4.5",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})});var g4=c(ve(),1),lH=c(T(),1),jc=(0,lH.jsx)(g4.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,lH.jsx)(g4.Path,{d:"M9.5 12L14.5 12M10 7.75H8.25C5.90279 7.75 4 9.65279 4 12C4 14.3472 5.90279 16.25 8.25 16.25H10M14 16.25H15.75C18.0972 16.25 20 14.3472 20 12C20 9.65279 18.0972 7.75 15.75 7.75L14 7.75",vectorEffect:"non-scaling-stroke"})});var h4=c(ve(),1),cH=c(T(),1),YC=(0,cH.jsx)(h4.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,cH.jsx)(h4.Path,{d:"M10 17.5H21M6.5 12H17.5M3 6.5H14",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})});var b4=c(ve(),1),dH=c(T(),1),uH=(0,dH.jsx)(b4.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,dH.jsx)(b4.Path,{d:"M9.25 10.75H7.75C7.47386 10.75 7.25 10.9739 7.25 11.25V17.25C7.25 17.5261 7.47386 17.75 7.75 17.75H16.25C16.5261 17.75 16.75 17.5261 16.75 17.25V11.25C16.75 10.9739 16.5261 10.75 16.25 10.75H14.75M9.25 10.75V7.5C9.25 5.98122 10.4812 4.75 12 4.75C13.5188 4.75 14.75 5.98122 14.75 7.5V10.75M9.25 10.75H14.75",vectorEffect:"non-scaling-stroke"})});var _4=c(ve(),1),fH=c(T(),1),pH=(0,fH.jsx)(_4.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,fH.jsx)(_4.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 KC=c(ve(),1),qC=c(T(),1),e_=(0,qC.jsxs)(KC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,qC.jsx)(KC.Path,{d:"M9.25 11.1H7.75C7.47386 11.1 7.25 11.3239 7.25 11.6V17.6C7.25 17.8761 7.47386 18.1 7.75 18.1H16.25C16.5261 18.1 16.75 17.8761 16.75 17.6V11.6C16.75 11.3239 16.5261 11.1 16.25 11.1H14.75M9.25 11.1V7.85C9.25 6.33122 10.4812 5.1 12 5.1C13.5188 5.1 14.75 6.33122 14.75 7.85V11.1M9.25 11.1H14.75",vectorEffect:"non-scaling-stroke"}),(0,qC.jsx)(KC.Path,{d:"M16.25 18.1H7.75C7.47386 18.1 7.25 17.8761 7.25 17.6V11.6C7.25 11.3239 7.47386 11.1 7.75 11.1H16.25C16.5261 11.1 16.75 11.3239 16.75 11.6V17.6C16.75 17.8761 16.5261 18.1 16.25 18.1Z",fill:"currentColor",stroke:"none"})]});var iu=c(ve(),1),Vf=c(T(),1),mH=(0,Vf.jsxs)(iu.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Vf.jsx)(iu.Path,{d:"M14 12.375V6.51534C14 6.21609 13.7879 5.95882 13.4941 5.9018L11.8239 5.57758C11.5677 5.52784 11.341 5.37988 11.1924 5.1653L10.3985 4.01913C10.2818 3.85057 10.0898 3.75 9.88474 3.75H8.11526C7.91022 3.75 7.71822 3.85057 7.60147 4.01913L6.80758 5.1653C6.65896 5.37988 6.43232 5.52784 6.17608 5.57758L4.5059 5.9018C4.21213 5.95882 4 6.21609 4 6.51534V12.375C4 12.7202 4.27982 13 4.625 13H13.375C13.7202 13 14 12.7202 14 12.375Z",vectorEffect:"non-scaling-stroke"}),(0,Vf.jsx)(iu.Circle,{cx:"9",cy:"9",r:"1",fill:"currentColor",vectorEffect:"non-scaling-stroke"}),(0,Vf.jsx)(iu.Path,{d:"M20 17.25V9",vectorEffect:"non-scaling-stroke"}),(0,Vf.jsx)(iu.Path,{d:"M17 10H20V9H17V10Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"}),(0,Vf.jsx)(iu.Path,{d:"M11.75 18.5C12.4404 18.5 13 17.9404 13 17.25V16H11.75C11.0596 16 10.5 16.5596 10.5 17.25C10.5 17.9404 11.0596 18.5 11.75 18.5Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"}),(0,Vf.jsx)(iu.Path,{d:"M18.75 18.5C19.4404 18.5 20 17.9404 20 17.25V16H18.75C18.0596 16 17.5 16.5596 17.5 17.25C17.5 17.9404 18.0596 18.5 18.75 18.5Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"})]});var v4=c(ve(),1),gH=c(T(),1),XC=(0,gH.jsx)(v4.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,gH.jsx)(v4.Path,{d:"M11 16.5H13M16.25 18V6C16.25 5.30964 15.6904 4.75 15 4.75H9C8.30964 4.75 7.75 5.30964 7.75 6L7.75 18C7.75 18.6904 8.30964 19.25 9 19.25H15C15.6904 19.25 16.25 18.6904 16.25 18Z",vectorEffect:"non-scaling-stroke"})});var Ff=c(ve(),1),zf=c(T(),1),Hc=(0,zf.jsxs)(Ff.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,zf.jsx)(Ff.Path,{d:"M11.75 18.25L12.25 18.25L12.25 17.75L11.75 17.75L11.75 18.25Z",fill:"currentColor",stroke:"none"}),(0,zf.jsx)(Ff.Path,{d:"M11.75 12.25L12.25 12.25L12.25 11.75L11.75 11.75L11.75 12.25Z",fill:"currentColor",stroke:"none"}),(0,zf.jsx)(Ff.Path,{d:"M11.75 6.25L12.25 6.25L12.25 5.75L11.75 5.75L11.75 6.25Z",fill:"currentColor",stroke:"none"}),(0,zf.jsx)(Ff.Path,{d:"M11.75 18.25L12.25 18.25L12.25 17.75L11.75 17.75L11.75 18.25Z",vectorEffect:"non-scaling-stroke"}),(0,zf.jsx)(Ff.Path,{d:"M11.75 12.25L12.25 12.25L12.25 11.75L11.75 11.75L11.75 12.25Z",vectorEffect:"non-scaling-stroke"}),(0,zf.jsx)(Ff.Path,{d:"M11.75 6.25L12.25 6.25L12.25 5.75L11.75 5.75L11.75 6.25Z",vectorEffect:"non-scaling-stroke"})]});var y4=c(ve(),1),hH=c(T(),1),t_=(0,hH.jsx)(y4.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,hH.jsx)(y4.Path,{d:"M8.5 8.25H15.5M8.5 11.75H15.5M8.5 15.25H15.5M18.25 18V6C18.25 5.30964 17.6904 4.75 17 4.75H7C6.30964 4.75 5.75 5.30964 5.75 6L5.75 18C5.75 18.6904 6.30964 19.25 7 19.25H17C17.6904 19.25 18.25 18.6904 18.25 18Z",vectorEffect:"non-scaling-stroke"})});var ZC=c(ve(),1),QC=c(T(),1),bH=(0,QC.jsxs)(ZC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,QC.jsx)(ZC.Path,{d:"M10.75 20V4.75L14.75 4.75M14.75 20V4.75M14.75 4.75H18.5",vectorEffect:"non-scaling-stroke"}),(0,QC.jsx)(ZC.Path,{d:"M5.75 9C5.75 11.3472 7.65279 13.25 10 13.25H10.75V4.75H10C7.65279 4.75 5.75 6.65279 5.75 9Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"})]});var JC=c(ve(),1),eE=c(T(),1),o_=(0,eE.jsxs)(JC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,eE.jsx)(JC.Path,{d:"M5 19.25H12",vectorEffect:"non-scaling-stroke"}),(0,eE.jsx)(JC.Path,{d:"M10 15L7.5 15.5L8 13L16 5L18 7L10 15Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"})]});var w4=c(ve(),1),_H=c(T(),1),vH=(0,_H.jsx)(w4.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,_H.jsx)(w4.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 x4=c(ve(),1),yH=c(T(),1),Ys=(0,yH.jsx)(x4.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,yH.jsx)(x4.Path,{d:"M12 18V6M18 12H6",vectorEffect:"non-scaling-stroke"})});var hw=c(ve(),1),tE=c(T(),1),wH=(0,tE.jsxs)(hw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,tE.jsx)(hw.Path,{d:"M5 4.75H19M5 19.25H19",vectorEffect:"non-scaling-stroke"}),(0,tE.jsx)(hw.Rect,{x:"7",y:"9",width:"10",height:"6",fill:"currentColor",stroke:"none"})]});var bw=c(ve(),1),oE=c(T(),1),xH=(0,oE.jsxs)(bw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,oE.jsx)(bw.Path,{d:"M5 4.75H13M5 19.25H13",vectorEffect:"non-scaling-stroke"}),(0,oE.jsx)(bw.Rect,{x:"5",y:"9",width:"14",height:"6",fill:"currentColor",stroke:"none"})]});var _w=c(ve(),1),rE=c(T(),1),kH=(0,rE.jsxs)(_w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,rE.jsx)(_w.Path,{d:"M11 4.75H19M11 19.25H19",vectorEffect:"non-scaling-stroke"}),(0,rE.jsx)(_w.Rect,{x:"5",y:"9",width:"14",height:"6",fill:"currentColor",stroke:"none"})]});var k4=c(ve(),1),SH=c(T(),1),CH=(0,SH.jsx)(k4.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,SH.jsx)(k4.Path,{d:"M19.25 9.25131L14.0498 7.02135C14.0187 7.00803 13.983 7.01131 13.9549 7.03006L11.0501 8.96658C11.0193 8.98714 10.9796 8.98896 10.947 8.97131L8.65525 7.72992C8.62147 7.71163 8.5802 7.7143 8.54907 7.73679L4.75 10.4808M19.25 9.25131V5C19.25 4.30964 18.6904 3.75 18 3.75H6C5.30964 3.75 4.75 4.30964 4.75 5V10.4808M19.25 9.25131V10C19.25 10.6904 18.6904 11.25 18 11.25H5.51917C5.09437 11.25 4.75 10.9056 4.75 10.4808M4 15H20M4 19H13",vectorEffect:"non-scaling-stroke"})});var S4=c(ve(),1),EH=c(T(),1),TH=(0,EH.jsx)(S4.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,EH.jsx)(S4.Path,{d:"M7 10H8.5M10 10H17M7 14H8.5M10 14H17M6 19.25H18C18.6904 19.25 19.25 18.6904 19.25 18V6C19.25 5.30964 18.6904 4.75 18 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V18C4.75 18.6904 5.30964 19.25 6 19.25Z",vectorEffect:"non-scaling-stroke"})});var nE=c(ve(),1),iE=c(T(),1),sE=(0,iE.jsxs)(nE.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,iE.jsx)(nE.Path,{d:"M12 19.25C16.0041 19.25 19.25 16.0041 19.25 12C19.25 7.99594 16.0041 4.75 12 4.75C7.99594 4.75 4.75 7.99594 4.75 12C4.75 16.0041 7.99594 19.25 12 19.25Z",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"}),(0,iE.jsx)(nE.Path,{d:"M9 12L11 14L15 10",vectorEffect:"non-scaling-stroke"})]});var C4=c(ve(),1),RH=c(T(),1),Rn=(0,RH.jsx)(C4.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,RH.jsx)(C4.Path,{d:"M7 12H17",vectorEffect:"non-scaling-stroke"})});var aE=c(ve(),1),lE=c(T(),1),IH=(0,lE.jsxs)(aE.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,lE.jsx)(aE.Path,{d:"M12 19.25C7.99593 19.25 4.75 16.0041 4.75 12C4.75 7.99594 7.99593 4.75 12 4.75L14 4.75M12 2L14 4.75L12 7.5",vectorEffect:"non-scaling-stroke"}),(0,lE.jsx)(aE.Path,{d:"M9.22553 18.6981C12.9248 20.2304 17.1658 18.4737 18.6981 14.7745C19.7261 12.2927 19.2738 9.56712 17.7477 7.57918",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})]});var E4=c(ve(),1),PH=c(T(),1),BH=(0,PH.jsx)(E4.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,PH.jsx)(E4.Path,{d:"M20 16.75L15 16.75C14.3096 16.75 13.75 16.1904 13.75 15.5L13.75 8.5C13.75 7.80964 14.3096 7.25 15 7.25L20 7.25M4 7.25L9 7.25C9.69036 7.25 10.25 7.80964 10.25 8.5L10.25 15.5C10.25 16.1904 9.69036 16.75 9 16.75L4 16.75",vectorEffect:"non-scaling-stroke"})});var T4=c(ve(),1),OH=c(T(),1),MH=(0,OH.jsx)(T4.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,OH.jsx)(T4.Path,{d:"M5 19L9.28769 14.7123M18.25 11C18.25 13.8995 15.8995 16.25 13 16.25C10.1005 16.25 7.75 13.8995 7.75 11C7.75 8.10051 10.1005 5.75 13 5.75C15.8995 5.75 18.25 8.10051 18.25 11Z",vectorEffect:"non-scaling-stroke"})});var vw=c(ve(),1),cE=c(T(),1),r_=(0,cE.jsxs)(vw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,cE.jsx)(vw.Path,{d:"M20.0645 13C18.5918 10.0366 15.5337 8 12 8C8.46631 8 5.40825 10.0366 3.93555 13",vectorEffect:"non-scaling-stroke"}),(0,cE.jsx)(vw.Circle,{cx:"12",cy:"12.5",r:"3",fill:"currentColor",vectorEffect:"non-scaling-stroke"})]});var R4=c(ve(),1),AH=c(T(),1),NH=(0,AH.jsx)(R4.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,AH.jsx)(R4.Path,{d:"M5 8H19M19 16H5M10.75 8C10.75 8.82843 10.0784 9.5 9.25 9.5C8.42157 9.5 7.75 8.82843 7.75 8C7.75 7.17157 8.42157 6.5 9.25 6.5C10.0784 6.5 10.75 7.17157 10.75 8ZM16.25 16C16.25 16.8284 15.5784 17.5 14.75 17.5C13.9216 17.5 13.25 16.8284 13.25 16C13.25 15.1716 13.9216 14.5 14.75 14.5C15.5784 14.5 16.25 15.1716 16.25 16Z",vectorEffect:"non-scaling-stroke"})});var I4=c(ve(),1),LH=c(T(),1),dE=(0,LH.jsx)(I4.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,LH.jsx)(I4.Path,{d:"M3 12H6M18 12H21M5.63957 5.63751L7.76089 7.75883M16.2462 16.2441L18.3675 18.3654M12.005 3.005V6.005M12.005 18.005V21.005M18.3675 5.64459L16.2462 7.76591M7.76088 16.2512L5.63956 18.3725M15.25 12C15.25 13.7949 13.7949 15.25 12 15.25C10.2051 15.25 8.75 13.7949 8.75 12C8.75 10.2051 10.2051 8.75 12 8.75C13.7949 8.75 15.25 10.2051 15.25 12Z",vectorEffect:"non-scaling-stroke"})});var P4=c(ve(),1),DH=c(T(),1),B4=(0,DH.jsx)(P4.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,DH.jsx)(P4.Path,{d:"M7.5 18.5H16.5M18.5 16.5V7.5M16.5 5.5H7.5M5.5 7.5V16.5",vectorEffect:"non-scaling-stroke"})});var uE=c(ve(),1),fE=c(T(),1),VH=(0,fE.jsxs)(uE.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,fE.jsx)(uE.Path,{opacity:".25",d:"M18.5 16.5V7.5M16.5 5.5H7.5M5.5 7.5V16.5",vectorEffect:"non-scaling-stroke"}),(0,fE.jsx)(uE.Path,{d:"M7.5 18.5H16.5",vectorEffect:"non-scaling-stroke"})]});var pE=c(ve(),1),mE=c(T(),1),FH=(0,mE.jsxs)(pE.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,mE.jsx)(pE.Path,{opacity:".25",d:"M7.5 18.5L16.5 18.5M16.5 5.5L7.5 5.5",vectorEffect:"non-scaling-stroke"}),(0,mE.jsx)(pE.Path,{d:"M18.5 16.5L18.5 7.5M5.5 7.5L5.5 16.5",vectorEffect:"non-scaling-stroke"})]});var gE=c(ve(),1),hE=c(T(),1),zH=(0,hE.jsxs)(gE.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,hE.jsx)(gE.Path,{opacity:".25",d:"M7.5 18.5L16.5 18.5M18.5 16.5L18.5 7.5M16.5 5.5L7.5 5.5",vectorEffect:"non-scaling-stroke"}),(0,hE.jsx)(gE.Path,{d:"M5.5 7.5L5.5 16.5",vectorEffect:"non-scaling-stroke"})]});var bE=c(ve(),1),_E=c(T(),1),jH=(0,_E.jsxs)(bE.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,_E.jsx)(bE.Path,{opacity:".25",d:"M16.5 5.5L7.5 5.5M5.5 7.5L5.5 16.5M7.5 18.5L16.5 18.5",vectorEffect:"non-scaling-stroke"}),(0,_E.jsx)(bE.Path,{d:"M18.5 16.5L18.5 7.5",vectorEffect:"non-scaling-stroke"})]});var vE=c(ve(),1),yE=c(T(),1),HH=(0,yE.jsxs)(vE.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,yE.jsx)(vE.Path,{opacity:".25",d:"M5.5 7.5L5.5 16.5M7.5 18.5L16.5 18.5M18.5 16.5L18.5 7.5",vectorEffect:"non-scaling-stroke"}),(0,yE.jsx)(vE.Path,{d:"M16.5 5.5L7.5 5.5",vectorEffect:"non-scaling-stroke"})]});var wE=c(ve(),1),xE=c(T(),1),UH=(0,xE.jsxs)(wE.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,xE.jsx)(wE.Path,{opacity:".25",d:"M5.5 7.5L5.5 16.5M18.5 16.5L18.5 7.5",vectorEffect:"non-scaling-stroke"}),(0,xE.jsx)(wE.Path,{d:"M16.5 5.5L7.5 5.5M7.5 18.5L16.5 18.5",vectorEffect:"non-scaling-stroke"})]});var O4=c(ve(),1),WH=c(T(),1),GH=(0,WH.jsx)(O4.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,WH.jsx)(O4.Path,{d:"M7.25 20L7.25 15C7.25 14.3096 7.80965 13.75 8.5 13.75L15.5 13.75C16.1904 13.75 16.75 14.3096 16.75 15L16.75 20M16.75 4L16.75 9C16.75 9.69035 16.1904 10.25 15.5 10.25L8.5 10.25C7.80964 10.25 7.25 9.69036 7.25 9L7.25 4",vectorEffect:"non-scaling-stroke"})});var yw=c(ve(),1),kE=c(T(),1),SE=(0,kE.jsxs)(yw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,kE.jsx)(yw.Path,{d:"M8 19.25H16",vectorEffect:"non-scaling-stroke"}),(0,kE.jsx)(yw.Rect,{x:"5",y:"4",width:"14",height:"11",fill:"currentColor",stroke:"none"})]});var ww=c(ve(),1),CE=c(T(),1),n_=(0,CE.jsxs)(ww.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,CE.jsx)(ww.Rect,{x:"5",y:"9",width:"14",height:"6",fill:"currentColor",stroke:"none"}),(0,CE.jsx)(ww.Path,{d:"M8 4.75H16M8 19.25H16",vectorEffect:"non-scaling-stroke"})]});var EE=c(ve(),1),TE=c(T(),1),$H=(0,TE.jsxs)(EE.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,TE.jsx)(EE.Path,{d:"M12 4.75C7.99594 4.75 4.75 7.99593 4.75 12C4.75 16.0041 7.99594 19.25 12 19.25L12 4.75Z",fill:"currentColor",stroke:"none"}),(0,TE.jsx)(EE.Path,{d:"M12 19.25C16.0041 19.25 19.25 16.0041 19.25 12C19.25 7.99594 16.0041 4.75 12 4.75C7.99594 4.75 4.75 7.99594 4.75 12C4.75 16.0041 7.99594 19.25 12 19.25Z",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})]});var RE=c(ve(),1),IE=c(T(),1),hl=(0,IE.jsxs)(RE.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,IE.jsx)(RE.Path,{d:"M15.2071 6.20711L20.2929 11.2929C20.6834 11.6834 20.6834 12.3166 20.2929 12.7071L15.2071 17.7929C14.8166 18.1834 14.1834 18.1834 13.7929 17.7929L8.70711 12.7071C8.31658 12.3166 8.31658 11.6834 8.70711 11.2929L13.7929 6.20711C14.1834 5.81658 14.8166 5.81658 15.2071 6.20711Z",vectorEffect:"non-scaling-stroke"}),(0,IE.jsx)(RE.Path,{d:"M9.5 5.5L3.70711 11.2929C3.31658 11.6834 3.31658 12.3166 3.70711 12.7071L9.5 18.5",vectorEffect:"non-scaling-stroke"})]});var M4=c(ve(),1),YH=c(T(),1),KH=(0,YH.jsx)(M4.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,YH.jsx)(M4.Path,{d:"M10 16.5H14M18.25 18V6C18.25 5.30964 17.6904 4.75 17 4.75H7C6.30964 4.75 5.75 5.30964 5.75 6L5.75 18C5.75 18.6904 6.30964 19.25 7 19.25H17C17.6904 19.25 18.25 18.6904 18.25 18Z",vectorEffect:"non-scaling-stroke"})});var PE=c(ve(),1),BE=c(T(),1),qH=(0,BE.jsxs)(PE.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,BE.jsx)(PE.Path,{d:"M4.75 12.5429V4.85C4.75 4.79477 4.79477 4.75 4.85 4.75H12.5429C12.6755 4.75 12.8027 4.80268 12.8964 4.89645L20.1464 12.1464C20.3417 12.3417 20.3417 12.6583 20.1464 12.8536L12.8536 20.1464C12.6583 20.3417 12.3417 20.3417 12.1464 20.1464L4.89645 12.8964C4.80268 12.8027 4.75 12.6755 4.75 12.5429Z",vectorEffect:"non-scaling-stroke"}),(0,BE.jsx)(PE.Path,{d:"M9.75 8.75a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",fill:"currentColor",stroke:"none"})]});var A4=c(ve(),1),XH=c(T(),1),ZH=(0,XH.jsx)(A4.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,XH.jsx)(A4.Path,{d:"M5.5 19.5H18.5L17.0566 17M13.4527 17.5V17.223L12.4369 14.1757L10.1284 7.25H9.57432L7.26577 14.1757L6.25 17.223V17.5M12.4369 14.1757H7.26577",vectorEffect:"non-scaling-stroke"})});var N4=c(ve(),1),QH=c(T(),1),JH=(0,QH.jsx)(N4.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,QH.jsx)(N4.Path,{d:"M4.5 5.5L4.5 18.5L7 17.0566M6.5 13.4527L6.77703 13.4527L9.82432 12.4369L16.75 10.1284L16.75 9.57432L9.82432 7.26577L6.77703 6.25L6.5 6.25M9.82432 12.4369L9.82432 7.26577",vectorEffect:"non-scaling-stroke"})});var L4=c(ve(),1),eU=c(T(),1),tU=(0,eU.jsx)(L4.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,eU.jsx)(L4.Path,{d:"M5 7.5H7M19 7.5H17M17 7.5L16.1588 17.1733C16.069 18.2068 15.2038 19 14.1664 19H9.83363C8.79622 19 7.93102 18.2068 7.84115 17.1733L7 7.5M17 7.5H14.9897M7 7.5H9.01027M14.9897 7.5C14.8627 5.96012 13.5727 4.75 12 4.75C10.4273 4.75 9.13731 5.96012 9.01027 7.5M14.9897 7.5H9.01027",vectorEffect:"non-scaling-stroke"})});var OE=c(ve(),1),ME=c(T(),1),oU=(0,ME.jsxs)(OE.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,ME.jsx)(OE.Path,{d:"M14.25 17V18C14.25 18.6904 13.6904 19.25 13 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V11C4.75 10.3096 5.30964 9.75 6 9.75H7",vectorEffect:"non-scaling-stroke"}),(0,ME.jsx)(OE.Path,{d:"M9.75 6C9.75 5.30964 10.3096 4.75 11 4.75H18C18.6904 4.75 19.25 5.30964 19.25 6V13C19.25 13.6904 18.6904 14.25 18 14.25H11C10.3096 14.25 9.75 13.6904 9.75 13V6Z",vectorEffect:"non-scaling-stroke"})]});var D4=c(ve(),1),rU=c(T(),1),jf=(0,rU.jsx)(D4.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,rU.jsx)(D4.Path,{d:"M14.75 10.75H16.25C16.5261 10.75 16.75 10.9739 16.75 11.25V17.25C16.75 17.5261 16.5261 17.75 16.25 17.75H7.75C7.47386 17.75 7.25 17.5261 7.25 17.25V11.25C7.25 10.9739 7.47386 10.75 7.75 10.75H14.75ZM14.75 10.75V7.5C14.75 5.98122 13.5188 4.75 12 4.75C10.4812 4.75 9.25 5.98122 9.25 7.5V7.7368",vectorEffect:"non-scaling-stroke"})});var AE=c(ve(),1),NE=c(T(),1),Uc=(0,NE.jsxs)(AE.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,NE.jsx)(AE.Path,{d:"M8 21L10.6587 15.1842M13.1523 9.72929L13.8553 8.19144L16 3.5M20.0645 13C19.2118 11.2841 17.8276 9.87898 16.1272 9M3.93555 13C5.40825 10.0366 8.46631 8 12 8C12.636 8 13.2566 8.06597 13.8553 8.19144M13.1523 9.72929C12.7975 9.58156 12.4083 9.5 12 9.5C10.3431 9.5 9 10.8431 9 12.5C9 13.6747 9.67519 14.6917 10.6587 15.1842M13.1523 9.72929L10.6587 15.1842M13.1755 15.261C14.2481 14.8037 15 13.7397 15 12.5C15 12.1819 14.9505 11.8753 14.8587 11.5876",vectorEffect:"non-scaling-stroke"}),(0,NE.jsx)(AE.Path,{d:"M12 9.5C10.3431 9.5 9 10.8431 9 12.5C9 13.6747 9.67519 14.6917 10.6587 15.1842L13.1523 9.72929C12.7975 9.58156 12.4083 9.5 12 9.5Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"})]});var V4=c(ve(),1),nU=c(T(),1),iU=(0,nU.jsx)(V4.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,nU.jsx)(V4.Path,{d:"M4.75 15V19.25H12M12 19.25V4.5M12 19.25H19.25V15M17.5 10L12 4.5L6.5 10",vectorEffect:"non-scaling-stroke"})});var xw=c(ve(),1),kw=c(T(),1),sU=(0,kw.jsxs)(xw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,kw.jsx)(xw.Path,{d:"M8.5 14C9 12 12.5 7.5 17 5.5",vectorEffect:"non-scaling-stroke"}),(0,kw.jsx)(xw.Path,{d:"M8 14C7.66667 11.1667 9 5 17 3C17.1667 4.66667 17.2 8.6 16 11C14.8 13.4 10.1667 14 8 14ZM8 14L7 16",strokeLinecap:"round",vectorEffect:"non-scaling-stroke"}),(0,kw.jsx)(xw.Path,{d:"M5 19.25H12",vectorEffect:"non-scaling-stroke"})]});var Kf=c(pn(),1),Ra=c(Gt(),1),At=c(oe(),1);var Kie=c(ce(),1),qie=c(Zne(),1);var wr="core/block-editor";var e9={};ro(e9,{DEFAULT_BLOCK_STYLE_STATE:()=>a_,canHostEditableRoot:()=>tHe,getAllPatterns:()=>pHe,getBlockRemovalRules:()=>aHe,getBlockSettings:()=>Lie,getBlockStyles:()=>yHe,getBlockWithoutAttributes:()=>Zje,getClientIdWithClientIdsTree:()=>_U,getClientIdsTree:()=>vU,getClosestAllowedInsertionPoint:()=>jie,getClosestAllowedInsertionPointForPattern:()=>xHe,getContentLockingParent:()=>wU,getEditedContentOnlySection:()=>xU,getEnabledBlockParents:()=>iHe,getEnabledClientIdsTree:()=>rHe,getExpandedBlock:()=>_He,getInserterMediaCategories:()=>dHe,getInsertionPoint:()=>kHe,getLastFocus:()=>hHe,getLastInsertedBlocksClientIds:()=>Xje,getListViewClientIdsTree:()=>nHe,getListViewExpandRevision:()=>BHe,getParentSectionBlock:()=>Gf,getPatternBySlug:()=>fHe,getRegisteredInserterMediaCategories:()=>cHe,getRemovalPromptData:()=>sHe,getRequestedInspectorTab:()=>AHe,getReusableBlocks:()=>gHe,getSectionRootClientId:()=>s_,getStyleOverrides:()=>lHe,getStyleStateViewport:()=>CU,getViewportModalClientIds:()=>MHe,getZoomLevel:()=>wHe,hasAllowedPatterns:()=>uHe,hasBlockSpotlight:()=>THe,isBlockHiddenAnywhere:()=>SHe,isBlockHiddenAtViewport:()=>Hie,isBlockHiddenEverywhere:()=>SU,isBlockInterfaceHidden:()=>qje,isBlockParentHiddenAtViewport:()=>EHe,isBlockParentHiddenEverywhere:()=>CHe,isBlockSubtreeDisabled:()=>Qje,isContainerInsertableToInContentOnlyMode:()=>HE,isDragging:()=>bHe,isEditLockedBlock:()=>Uie,isListViewContentPanelOpen:()=>IHe,isListViewPanelOpened:()=>PHe,isLockedBlock:()=>RHe,isMoveLockedBlock:()=>Wie,isRemoveLockedBlock:()=>Gie,isResponsiveEditing:()=>NHe,isSectionBlock:()=>$f,isSelectedBlockStyleStateShownOnCanvas:()=>LHe,isSyncedBlock:()=>vHe,isWithinEditedContentOnlySection:()=>J4,isZoomOut:()=>kU,shouldRenderBlockListView:()=>OHe});var zn=c(oe(),1),Jm=c(ce(),1);function Qne(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 Qo=(e,t,o)=>{let r=Array.isArray(t)?t:t.split("."),n=e;return r.forEach(i=>{n=n?.[i]}),n??o};var tie=c(Sw(),1);var zze="1600px",jze="320px",Hze=1,Uze=.25,Wze=.75,Gze="14px";function eie({minimumFontSize:e,maximumFontSize:t,fontSize:o,minimumViewportWidth:r=jze,maximumViewportWidth:n=zze,scaleFactor:i=Hze,minimumFontSizeLimit:s}){if(s=su(s)?s:Gze,o){let y=su(o);if(!y?.unit||!y?.value)return null;let w=su(s,{coerceTo:y.unit});if(w?.value&&!e&&!t&&y?.value<=w?.value)return null;if(t||(t=`${y.value}${y.unit}`),!e){let x=y.unit==="px"?y.value:y.value*16,k=Math.min(Math.max(1-.075*Math.log2(x),Uze),Wze),C=LE(y.value*k,3);w?.value&&C<w?.value?e=`${w.value}${w.unit}`:e=`${C}${y.unit}`}}let a=su(e),l=a?.unit||"rem",d=su(t,{coerceTo:l});if(!a||!d)return null;let u=su(e,{coerceTo:"rem"}),f=su(n,{coerceTo:l}),p=su(r,{coerceTo:l});if(!f||!p||!u)return null;let m=f.value-p.value;if(!m)return null;let g=LE(p.value/100,3),h=LE(g,3)+l,b=100*((d.value-a.value)/m),v=LE((b||1)*i,3),_=`${u.value}${u.unit} + ((1vw - ${h}) * ${v})`;return`clamp(${e}, ${_}, ${t})`}function su(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,d]=a,u=parseFloat(l);return o==="px"&&(d==="em"||d==="rem")&&(u=u*r,d=o),d==="px"&&(o==="em"||o==="rem")&&(u=u/r,d=o),(o==="em"||o==="rem")&&(d==="em"||d==="rem")&&(d=o),d?{value:LE(u,3),unit:d}:null}function LE(e,t=3){let o=Math.pow(10,t);return Math.round(e*o)/o}function aU(e){let t=e?.fluid;return t===!0||t&&typeof t=="object"&&Object.keys(t).length>0}function $ze(e){let t=e?.typography??{},o=e?.layout,r=su(o?.wideSize)?o?.wideSize:null;return aU(t)&&r?{fluid:{maxViewportWidth:r,...typeof t.fluid=="object"?t.fluid:{}}}:{fluid:t?.fluid}}function Hf(e,t){let{size:o}=e;if(!o||o==="0"||e?.fluid===!1||!aU(t?.typography)&&!aU(e))return o;let r=$ze(t)?.fluid??{},n=eie({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 lu="body",DE=":root";function au(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 F4=[{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)=>Hf(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:["typography","textShadowPresets"],valueKey:"textShadow",cssVarInfix:"text-shadow",classes:[{classSuffix:"text-shadow",propertyName:"text-shadow"}]},{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 Wc(e,t){if(!e||!t)return t;let o=au(e),r=au(t),n=[];return o.forEach(i=>{r.forEach(s=>{n.push(`${i.trim()} ${s.trim()}`)})}),n.join(", ")}function oie(e,t){if(!e||!t)return;let o={};return Object.entries(t).forEach(([r,n])=>{typeof n=="string"&&(o[r]=Wc(e,n)),typeof n=="object"&&(o[r]={},Object.entries(n).forEach(([i,s])=>{o[r][i]=Wc(e,s)}))}),o}function z4(e,t){return e.includes(",")?au(e).map(n=>n+t).join(","):e+t}function lU(e,t){let o=`.is-style-${e}`;if(!t)return o;let r=/[^\s:]+/,n=s=>s+o;return au(t).map(s=>s.replace(r,n)).join(",")}function rie(e,t){let o=`.is-style-${e}`,r=au(t).map(n=>{let i=n.trim(),s=`${o} `;return i.startsWith(s)?i.slice(s.length):i});return lU(e,r.join(","))}function Yze(e,t){if(!e||!t)return e;if(typeof e=="object"&&"ref"in e&&e?.ref){let o=(0,tie.getCSSValueFromRawStyle)(Qo(t,e.ref));return typeof o=="object"&&o!==null&&"ref"in o&&o?.ref?void 0:o===void 0?e:o}return e}function Kze(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 qm(e,t){if(!e||!t)return e;let o=Yze(e,t);return typeof o=="object"&&o!==null&&"url"in o&&o?.url?{...o,url:Kze(o.url,t?._links?.["wp:theme-file"])}:o}function nie(e,t,o=[],r="slug",n){let i=[t?Qo(e,["blocks",t,...o]):void 0,Qo(e,o)].filter(Boolean);for(let s of i)if(s){let a=["custom","theme","default"];for(let l of a){let d=s[l];if(d){let u=d.find(f=>f[r]===n);if(u)return r==="slug"||nie(e,t,o,"slug",u.slug)[r]===u[r]?u:void 0}}}}function qze(e,t,o,[r,n]=[]){let i=F4.find(a=>a.cssVarInfix===r);if(!i||!e.settings)return o;let s=nie(e.settings,t,i.path,"slug",n);if(s){let{valueKey:a}=i,l=s[a];return bl(e,t,l)}return o}function Xze(e,t,o,r=[]){let n=(t?Qo(e?.settings??{},["blocks",t,"custom",...r]):void 0)??Qo(e?.settings??{},["custom",...r]);return n?bl(e,t,n):o}function bl(e,t,o){if(!o||typeof o!="string")if(typeof o=="object"&&o!==null&&"ref"in o&&typeof o.ref=="string"){let d=Qo(e,o.ref);if(!d||typeof d=="object"&&"ref"in d)return d;o=d}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"?qze(e,t,o,l):a==="custom"?Xze(e,t,o,l):o}var Zze={"@mobile":"mobile","@tablet":"tablet","-current":"@current"};function iie(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function sie(e){if(!iie(e))return e;let t=e;return Object.entries(Zze).forEach(([o,r])=>{Object.hasOwn(e,r)&&(t===e&&(t={...e}),Object.hasOwn(e,o)||(t[o]=e[r]),delete t[r])}),Object.entries(t).forEach(([o,r])=>{if(!iie(r))return;let n=sie(r);n!==r&&(t===e&&(t={...e}),t[o]=n)}),t}function VE(e){if(!e?.styles)return e;let t=sie(e.styles);return t===e.styles?e:{...e,styles:t}}var fie=c(j4(),1);function die(e){return Object.prototype.toString.call(e)==="[object Object]"}function uie(e){var t,o;return die(e)===!1?!1:(t=e.constructor,t===void 0?!0:(o=t.prototype,!(die(o)===!1||o.hasOwnProperty("isPrototypeOf")===!1)))}function H4(e,t){return(0,fie.default)(VE(e),VE(t),{isMergeableObject:uie,customMerge:o=>{if(o==="backgroundImage")return(r,n)=>n??r}})}var us=c(ce(),1),jE=c(Sw(),1),xie=c(oe(),1);function Ea(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,d=null;if(a&&i.root?d=i?.root:s?.__experimentalSelector?d=s.__experimentalSelector:d=".wp-block-"+n.replace("core/","").replace("/","-"),l==="root")return d;let u=Array.isArray(t)?t:t.split(".");if(u.length===1){let p=r?d:null;if(a)return Qo(i,`${l}.root`,null)||Qo(i,l,null)||p;let m=s?Qo(s,`${l}.__experimentalSelector`,null):void 0;return m?Wc(d,m):p}let f;return a&&(f=Qo(i,l,null)),f||(r?Ea(e,u[0],o):null)}function uje(e=[]){let t={r:[],g:[],b:[],a:[]};return e.forEach(o=>{let r=Zo(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 pie(e){return`${e}{filter:none}`}function mie(e,t){return`${e}{filter:url(#${t})}`}function gie(e,t){let o=uje(t);return` | |
| 29 | 29 | <svg |
| 30 | 30 | xmlns:xlink="http://www.w3.org/1999/xlink" |
| 31 | 31 | viewBox="0 0 0 0" |
| 32 | 32 | width="0" |
| @@ -53,47 +53,48 @@ | ||
| 53 | 53 | <!-- Re-mask the image with the original transparency since the feColorMatrix above loses that information. --> |
| 54 | 54 | <feComposite in2="SourceGraphic" operator="in"></feComposite> |
| 55 | 55 | </filter> |
| 56 | 56 | </defs> |
| 57 | -</svg>`}function S_(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 bj(e){if(!e)return;let t=e.match(/var:preset\|spacing\|(.+)/);return t?`var(--wp--preset--spacing--${t[1]})`:e}function o6e(e){if(!e)return null;let t=typeof e=="string";return{top:t?e:e?.top,left:t?e:e?.left}}function GP(e,t="0"){let o=o6e(e);if(!o)return null;let r=bj(o?.top)||t,n=bj(o?.left)||t;return r===n?r:`${r} ${n}`}var $te={backgroundSize:"cover",backgroundPosition:"50% 50%"};function r6e(e){return typeof e=="object"&&e!==null&&"url"in e&&!!e.url}function Yte(e){if(!e||!r6e(e.backgroundImage))return;let t;return e?.backgroundSize||(t={backgroundSize:$te.backgroundSize}),e?.backgroundSize==="contain"&&!e?.backgroundPosition&&(t={backgroundPosition:$te.backgroundPosition}),t}var Kte={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 qte={mobile:"480px",tablet:"782px"},Zte=/^(\d+|\d*\.\d+)(px|em|rem)$/,n6e=16;function i6e(e){return"mobile"in e||"tablet"in e}function s6e(e){return!e||typeof e!="object"?{}:i6e(e)?e:e.settings?.viewport??{}}function a6e(e){return typeof e=="string"&&Zte.test(e.trim())}function yj(e){if(typeof e=="number")return e;if(typeof e!="string")return;let t=e.trim().match(Zte);if(!t)return;let o=Number.parseFloat(t[1]);return t[2]==="px"?o:o*n6e}function vj(e){let t=s6e(e),o={},r={};Object.keys(qte).forEach(a=>{let l=a,u=t[l],d=yj(u);d!==void 0&&a6e(u)&&(o[l]=u.trim(),r[l]=d)});let n=Object.keys(o);if(!n.length)return{...qte};if(n.length===1)return o;let i=o.mobile,s=o.tablet;return r.mobile>=r.tablet?{mobile:i}:{mobile:i,tablet:s}}function bC(e){let t=vj(e),o={};return t.mobile&&(o["@mobile"]=`@media (width <= ${t.mobile})`),t.tablet&&(o["@tablet"]=t.mobile?`@media (${t.mobile} < width <= ${t.tablet})`:`@media (width <= ${t.tablet})`),o}var l6e={button:"wp-element-button",caption:"wp-element-caption"},c6e={__experimentalBorder:"border",color:"color",dimensions:"dimensions",spacing:"spacing",typography:"typography"},Jte={"core/button":[":hover",":focus",":focus-visible",":active"],"core/navigation-link":[":hover",":focus",":focus-visible",":active"]},u6e={link:[":link",":any-link",":visited",":hover",":focus",":focus-visible",":active"],button:[":link",":any-link",":visited",":hover",":focus",":focus-visible",":active"]};function d6e(e="*",t={}){return jP.reduce((o,{path:r,cssVarInfix:n,classes:i})=>{if(!i)return o;let s=$o(t,r,[]);return["default","theme","custom"].forEach(a=>{s[a]&&s[a].forEach(({slug:l})=>{i.forEach(({classSuffix:u,propertyName:d})=>{let f=`.has-${S_(l)}-${u}`,p=e?`:where(${e})${f}`:f,m=`var(--wp--preset--${n}--${S_(l)})`;o+=`${p}{${d}: ${m} !important;}`})})}),o},"")}var f6e=(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},p6e=(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 p of f)if(p.slug===u&&typeof p.size=="string"&&p.size.endsWith("%")){a=parseFloat(p.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},m6e=(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=YP(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=YP(a);o[s]=[...o[s]||[],...l],delete t[r]}}),o};function YP(e={},t="",o,r={},n=!1){let i=zu===t,s=Object.entries(es.__EXPERIMENTAL_STYLE_PROPERTY).reduce((l,[u,{value:d,properties:f,useEngine:p,rootOnly:m}])=>{if(m&&!i)return l;let g=d;if(g[0]==="elements"||p)return l;let h=$o(e,g);if(u==="--wp--style--root--padding"&&(typeof h=="string"||!o))return l;if(f&&typeof h!="string")Object.entries(f).forEach(b=>{let[v,y]=b;if(!$o(h,[y],!1))return;let _=v.startsWith("--")?v:S_(v);l.push(`${_}: ${(0,yC.getCSSValueFromRawStyle)($o(h,[y]))}`)});else if($o(e,g,!1)){let b=u.startsWith("--")?u:S_(u);l.push(`${b}: ${(0,yC.getCSSValueFromRawStyle)($o(e,g))}`)}return l},[]);return e.background&&(e.background?.backgroundImage&&(e.background.backgroundImage=wm(e.background.backgroundImage,r)),!i&&e.background?.backgroundImage?.id&&(e={...e,background:{...e.background,...Yte(e.background)}})),(0,yC.getCSSRules)(e).forEach(l=>{if(i&&(o||n)&&l.key.startsWith("padding"))return;let u=l.key.startsWith("--")?l.key:S_(l.key),d=wm(l.value,r);u==="font-size"&&(d=bf({name:"",slug:"",size:d},r?.settings)),u==="aspect-ratio"&&s.push("min-height: unset"),s.push(`${u}: ${d}`)}),s}function eoe({layoutDefinitions:e=Kte,style:t,selector:o,hasBlockGapSupport:r,hasFallbackGapSupport:n,fallbackGapValue:i}){let s="",a=t?.spacing?.blockGap,l=r?GP(a):"";n&&(o===zu?l=l||"0.5em":!r&&i&&(l=i));let u=r&&a&&typeof a!="string"?GP(a.top):l;if(l&&e&&(Object.values(e).forEach(({className:d,name:f,spacingStyles:p})=>{if(!r&&f!=="flex"&&f!=="grid")return;let m=["default","constrained"].includes(f)?u:l;p?.length&&p.forEach(g=>{let h=[];if(g.rules&&Object.entries(g.rules).forEach(([b,v])=>{h.push(`${b}: ${v||m}`)}),h.length){let b="";r?b=o===zu?`:root :where(.${d})${g?.selector||""}`:`:root :where(${o}-${d})${g?.selector||""}`:b=o===zu?`:where(.${d}${g?.selector||""})`:`:where(${o}.${d}${g?.selector||""})`,s+=`${b} { ${h.join("; ")}; }`}})}),o===zu&&r&&(s+=`${mC} { --wp--style--block-gap: ${l}; }`)),o===zu&&e){let d=["block","flex","grid"];Object.values(e).forEach(({className:f,displayMode:p,baseStyles:m})=>{p&&d.includes(p)&&(s+=`${o} .${f} { display:${p}; }`),m?.length&&m.forEach(g=>{let h=[];if(g.rules&&Object.entries(g.rules).forEach(([b,v])=>{h.push(`${b}: ${v}`)}),h.length){let b=`.${f}${g?.selector||""}`;s+=`${b} { ${h.join("; ")}; }`}})})}return s}var g6e=["border","color","dimensions","spacing","typography","filter","outline","shadow","background"];function h6e(e,t){return $P(e,void 0,t)}function $P(e,t,o){if(!e)return{};let r=Object.entries(e),n=t?Jte[t]??[]:[],s=r.filter(([a])=>g6e.includes(a)||n.includes(a)||o[a]).map(([a,l])=>[a,JSON.parse(JSON.stringify(l))]);return Object.fromEntries(s)}function Xte(e){let{styles:t,selector:o,featureSelectors:r,name:n,elementName:i,mediaQuery:s,variationName:a}=e,l=n?Jte[n]??[]:u6e[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 b6e(e,t){let{styles:o,selector:r,fallbackGapValue:n,featureSelectors:i,hasLayoutSupport:s,layoutHasBlockGapSupport:a,layoutSelector:l,name:u,elementName:d,isStyleVariation:f,variationName:p}=e;return!u&&!d?[]:Object.entries(t).flatMap(([m,g])=>{let h=o?.[m];return!h||typeof h!="object"?[]:[{styles:JSON.parse(JSON.stringify(h)),selector:r,mediaQuery:g,featureSelectors:i&&typeof i!="string"?i:void 0,fallbackGapValue:n,hasLayoutSupport:s,name:u,elementName:d,isStyleVariation:f,variationName:p,layoutSelector:l,layoutHasBlockGapSupport:a}]})}function _j(e,t){let o={...e?.elements??{}};return Object.keys(t).forEach(r=>{Object.entries(e?.[r]?.elements??{}).forEach(([n,i])=>{o[n]={...o[n]??{},[r]:i}})}),o}var y6e=(e,t)=>{let o=[];if(!e?.styles)return o;let r=bC(e),n=h6e(e.styles,r);return n&&o.push({styles:n,selector:zu,skipSelectorWrapper:!0}),Object.entries(es.__EXPERIMENTAL_ELEMENTS).forEach(([i,s])=>{e.styles?.elements?.[i]&&o.push({styles:e.styles?.elements?.[i]??{},selector:s,elementName:i,skipSelectorWrapper:!l6e[i]})}),Object.entries(e.styles?.blocks??{}).forEach(([i,s])=>{let a=$P(s,i,r),l=s,u=[],d=[];l?.variations&&Object.entries(l.variations).forEach(([f,p])=>{let m=p,g=$P(m,i,r);m?.css&&(g.css=m.css);let h=typeof t!="string"?t[i]?.styleVariationSelectors?.[f]:void 0;if(h&&typeof t!="string"){let b=t[i];d.push({styles:g,selector:h,featureSelectors:b?.featureSelectors,fallbackGapValue:b?.fallbackGapValue,hasLayoutSupport:b?.hasLayoutSupport,isStyleVariation:!0,variationName:f,layoutSelector:h+b.selector,layoutHasBlockGapSupport:!0,name:i})}Object.entries(_j(m,r)).forEach(([b,v])=>{v&&es.__EXPERIMENTAL_ELEMENTS[b]&&u.push({styles:v,selector:xc(h,es.__EXPERIMENTAL_ELEMENTS[b]),elementName:b,isStyleVariation:!0})}),Object.entries(m?.blocks??{}).forEach(([b,v])=>{let y=typeof t!="string"?xc(h,t[b]?.selector):void 0,_=typeof t!="string"?xc(h,t[b]?.duotoneSelector):void 0,w=typeof t!="string"?Ote(h,t[b]?.featureSelectors??{}):void 0,k=$P(v,b,r);v?.css&&(k.css=v.css),!(!y||typeof t=="string")&&(u.push({selector:y,name:b,isStyleVariation:!0,duotoneSelector:_,featureSelectors:w,fallbackGapValue:t[b]?.fallbackGapValue,hasLayoutSupport:t[b]?.hasLayoutSupport,styles:k}),Object.entries(_j(v,r)).forEach(([x,S])=>{S&&es.__EXPERIMENTAL_ELEMENTS[x]&&u.push({styles:S,selector:xc(y,es.__EXPERIMENTAL_ELEMENTS[x]),elementName:x,isStyleVariation:!0})}))})}),typeof t!="string"&&t?.[i]?.selector&&o.push({duotoneSelector:t[i].duotoneSelector,fallbackGapValue:t[i].fallbackGapValue,hasLayoutSupport:t[i].hasLayoutSupport,selector:t[i].selector,styles:a,featureSelectors:t[i].featureSelectors,name:i}),o.push(...d),Object.entries(_j(l,r)).forEach(([f,p])=>{typeof t!="string"&&p&&t?.[i]&&es.__EXPERIMENTAL_ELEMENTS[f]&&o.push({styles:p,selector:t[i]?.selector.split(",").map(m=>es.__EXPERIMENTAL_ELEMENTS[f].split(",").map(h=>m+" "+h)).join(","),elementName:f})}),o.push(...u)}),o},v6e=(e,t)=>{let o=[];if(!e?.settings)return o;let r=s=>{let a={};return jP.forEach(({path:l})=>{let u=$o(s,l,!1);u!==!1&&(a=Rte(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:mC}),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 _6e(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:p,hasLayoutSupport:m,featureSelectors:g,layoutSelector:h,layoutHasBlockGapSupport:b,skipSelectorWrapper:v,name:y,variationName:_}=e,w="",k=l?HP(a,l):a;if(g&&typeof g!="string"){let R=m6e(g,f);R=f6e(R,t.settings,y),R=p6e(R,t.settings),Object.entries(R).forEach(([E,I])=>{if(I.length){let O=_?Ate(_,E):E;O=l?HP(O,l):O;let A=I.join(";");w+=`:root :where(${O}){${A};}`}})}if(d){let R={};f?.filter&&(R.filter=f.filter,delete f.filter);let E=YP(R);E.length&&(w+=`${d}{${E.join(";")};}`)}let x=h??k;!r&&(zu===x||m)&&(w+=eoe({style:f,selector:x,hasBlockGapSupport:b??n,hasFallbackGapSupport:i,fallbackGapValue:p}));let C=YP(f,k,o,t,s);if(C?.length){let R=v?k:`:root :where(${k})`;w+=`${R}{${C.join(";")};}`}return f?.css&&(w+=ZP(f.css,`:root :where(${k})`)),u&&w?`${u}{${w}}`:w}var KP=(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=gC(e),u=y6e(l,t),d=v6e(l,t),f=l?.settings?.useRootPaddingAwareAlignments,{contentSize:p,wideSize:m}=l?.settings?.layout||{},g=a.marginReset||a.rootPadding||a.layoutStyles,h="";if(a.presets&&(p||m)&&(h+=`${mC} {`,h=p?h+` --wp--style--global--content-size: ${p};`:h,h=m?h+` --wp--style--global--wide-size: ${m};`:h,h+="}"),g&&(h+=":where(body) {margin: 0;",a.rootPadding&&f&&(h+=`padding-right: 0; padding-left: 0; padding-top: var(--wp--style--root--padding-top); padding-bottom: var(--wp--style--root--padding-bottom) } | |
| 57 | +</svg>`}function Ew(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 cU(e){if(!e)return;let t=e.match(/var:preset\|spacing\|(.+)/);return t?`var(--wp--preset--spacing--${t[1]})`:e}function fje(e){if(!e)return null;let t=typeof e=="string";return{top:t?e:e?.top,left:t?e:e?.left}}function U4(e,t="0"){let o=fje(e);if(!o)return null;let r=cU(o?.top)||t,n=cU(o?.left)||t;return r===n?r:`${r} ${n}`}var hie={backgroundSize:"cover",backgroundPosition:"50% 50%"};function pje(e){return typeof e=="object"&&e!==null&&"url"in e&&!!e.url}function bie(e){if(!e||!pje(e.backgroundImage))return;let t;return e?.backgroundSize||(t={backgroundSize:hie.backgroundSize}),e?.backgroundSize==="contain"&&!e?.backgroundPosition&&(t={backgroundPosition:hie.backgroundPosition}),t}var _ie={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 vie={mobile:"480px",tablet:"782px"},yie=/^(\d+|\d*\.\d+)(px|em|rem)$/,mje=16;function gje(e){return"mobile"in e||"tablet"in e}function hje(e){return!e||typeof e!="object"?{}:gje(e)?e:e.settings?.viewport??{}}function bje(e){return typeof e=="string"&&yie.test(e.trim())}function dU(e){if(typeof e=="number")return e;if(typeof e!="string")return;let t=e.trim().match(yie);if(!t)return;let o=Number.parseFloat(t[1]);return t[2]==="px"?o:o*mje}function uU(e){let t=hje(e),o={},r={};Object.keys(vie).forEach(a=>{let l=a,d=t[l],u=dU(d);u!==void 0&&bje(d)&&(o[l]=d.trim(),r[l]=u)});let n=Object.keys(o);if(!n.length)return{...vie};if(n.length===1)return o;let i=o.mobile,s=o.tablet;return r.mobile>=r.tablet?{mobile:i}:{mobile:i,tablet:s}}function zE(e){let t=uU(e),o={};return t.mobile&&(o["@mobile"]=`@media (width <= ${t.mobile})`),t.tablet&&(o["@tablet"]=t.mobile?`@media (${t.mobile} < width <= ${t.tablet})`:`@media (width <= ${t.tablet})`),o}var _je={button:"wp-element-button",caption:"wp-element-caption"},vje={__experimentalBorder:"border",color:"color",dimensions:"dimensions",spacing:"spacing",typography:"typography"},kie={"core/button":[":hover",":focus",":focus-visible",":active"],"core/navigation-link":[":hover",":focus",":focus-visible",":active"]},yje={link:[":link",":any-link",":visited",":hover",":focus",":focus-visible",":active"],button:[":link",":any-link",":visited",":hover",":focus",":focus-visible",":active"]};function wje(e="*",t={}){return F4.reduce((o,{path:r,cssVarInfix:n,classes:i})=>{if(!i)return o;let s=Qo(t,r,[]);return["default","theme","custom"].forEach(a=>{s[a]&&s[a].forEach(({slug:l})=>{i.forEach(({classSuffix:d,propertyName:u})=>{let f=`.has-${Ew(l)}-${d}`,p=e?`:where(${e})${f}`:f,m=`var(--wp--preset--${n}--${Ew(l)})`;o+=`${p}{${u}: ${m} !important;}`})})}),o},"")}var xje=(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},kje=(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 d=s.slice(l.length,-1),u={...t?.dimensions?.dimensionSizes??{},...t?.blocks?.["core/button"]?.dimensions?.dimensionSizes??{}};for(let f of Object.values(u))if(Array.isArray(f)){for(let p of f)if(p.slug===d&&typeof p.size=="string"&&p.size.endsWith("%")){a=parseFloat(p.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},Sje=(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]}},d=G4(l);o[a]=[...o[a]||[],...d],delete t[r][s]}),i||typeof n=="object"&&n!==null&&"root"in n){let s=i?n:n.root,a={[r]:t[r]},l=G4(a);o[s]=[...o[s]||[],...l],delete t[r]}}),o};function G4(e={},t="",o,r={},n=!1){let i=lu===t,s=Object.entries(us.__EXPERIMENTAL_STYLE_PROPERTY).reduce((l,[d,{value:u,properties:f,useEngine:p,rootOnly:m}])=>{if(m&&!i)return l;let g=u;if(g[0]==="elements"||p)return l;let h=Qo(e,g);if(d==="--wp--style--root--padding"&&(typeof h=="string"||!o))return l;if(f&&typeof h!="string")Object.entries(f).forEach(b=>{let[v,_]=b;if(!Qo(h,[_],!1))return;let y=v.startsWith("--")?v:Ew(v);l.push(`${y}: ${(0,jE.getCSSValueFromRawStyle)(Qo(h,[_]))}`)});else if(Qo(e,g,!1)){let b=d.startsWith("--")?d:Ew(d);l.push(`${b}: ${(0,jE.getCSSValueFromRawStyle)(Qo(e,g))}`)}return l},[]);return e.background&&(e.background?.backgroundImage&&(e.background.backgroundImage=qm(e.background.backgroundImage,r)),!i&&e.background?.backgroundImage?.id&&(e={...e,background:{...e.background,...bie(e.background)}})),(0,jE.getCSSRules)(e).forEach(l=>{if(i&&(o||n)&&l.key.startsWith("padding"))return;let d=l.key.startsWith("--")?l.key:Ew(l.key),u=qm(l.value,r);d==="font-size"&&(u=Hf({name:"",slug:"",size:u},r?.settings)),d==="aspect-ratio"&&s.push("min-height: unset"),s.push(`${d}: ${u}`)}),s}function Sie({layoutDefinitions:e=_ie,style:t,selector:o,hasBlockGapSupport:r,hasFallbackGapSupport:n,fallbackGapValue:i}){let s="",a=t?.spacing?.blockGap,l=r?U4(a):"";n&&(o===lu?l=l||"0.5em":!r&&i&&(l=i));let d=r&&a&&typeof a!="string"?U4(a.top):l;if(l&&e&&(Object.values(e).forEach(({className:u,name:f,spacingStyles:p})=>{if(!r&&f!=="flex"&&f!=="grid")return;let m=["default","constrained"].includes(f)?d:l;p?.length&&p.forEach(g=>{let h=[];if(g.rules&&Object.entries(g.rules).forEach(([b,v])=>{h.push(`${b}: ${v||m}`)}),h.length){let b="";r?b=o===lu?`:root :where(.${u})${g?.selector||""}`:`:root :where(${o}-${u})${g?.selector||""}`:b=o===lu?`:where(.${u}${g?.selector||""})`:`:where(${o}.${u}${g?.selector||""})`,s+=`${b} { ${h.join("; ")}; }`}})}),o===lu&&r&&(s+=`${DE} { --wp--style--block-gap: ${l}; }`)),o===lu&&e){let u=["block","flex","grid"];Object.values(e).forEach(({className:f,displayMode:p,baseStyles:m})=>{p&&u.includes(p)&&(s+=`${o} .${f} { display:${p}; }`),m?.length&&m.forEach(g=>{let h=[];if(g.rules&&Object.entries(g.rules).forEach(([b,v])=>{h.push(`${b}: ${v}`)}),h.length){let b=`.${f}${g?.selector||""}`;s+=`${b} { ${h.join("; ")}; }`}})})}return s}var Cje=["border","color","dimensions","spacing","typography","filter","outline","shadow","background"];function Eje(e,t){return W4(e,void 0,t)}function W4(e,t,o){if(!e)return{};let r=Object.entries(e),n=t?kie[t]??[]:[],s=r.filter(([a])=>Cje.includes(a)||n.includes(a)||o[a]).map(([a,l])=>[a,JSON.parse(JSON.stringify(l))]);return Object.fromEntries(s)}function wie(e){let{styles:t,selector:o,featureSelectors:r,name:n,elementName:i,mediaQuery:s,variationName:a}=e,l=n?kie[n]??[]:yje[i??""]??[];return l.length?l.flatMap(d=>{let u=t?.[d];return!u||typeof u!="object"?[]:[{styles:JSON.parse(JSON.stringify(u)),selector:o,selectorSuffix:d,mediaQuery:s,featureSelectors:r&&typeof r!="string"?r:void 0,name:n,elementName:i,variationName:a}]}):[]}function Tje(e,t){let{styles:o,selector:r,fallbackGapValue:n,featureSelectors:i,hasLayoutSupport:s,layoutHasBlockGapSupport:a,layoutSelector:l,name:d,elementName:u,isStyleVariation:f,variationName:p}=e;return!d&&!u?[]:Object.entries(t).flatMap(([m,g])=>{let h=o?.[m];return!h||typeof h!="object"?[]:[{styles:JSON.parse(JSON.stringify(h)),selector:r,mediaQuery:g,featureSelectors:i&&typeof i!="string"?i:void 0,fallbackGapValue:n,hasLayoutSupport:s,name:d,elementName:u,isStyleVariation:f,variationName:p,layoutSelector:l,layoutHasBlockGapSupport:a}]})}function fU(e,t){let o={...e?.elements??{}};return Object.keys(t).forEach(r=>{Object.entries(e?.[r]?.elements??{}).forEach(([n,i])=>{o[n]={...o[n]??{},[r]:i}})}),o}var Rje=(e,t)=>{let o=[];if(!e?.styles)return o;let r=zE(e),n=Eje(e.styles,r);return n&&o.push({styles:n,selector:lu,skipSelectorWrapper:!0}),Object.entries(us.__EXPERIMENTAL_ELEMENTS).forEach(([i,s])=>{e.styles?.elements?.[i]&&o.push({styles:e.styles?.elements?.[i]??{},selector:s,elementName:i,skipSelectorWrapper:!_je[i]})}),Object.entries(e.styles?.blocks??{}).forEach(([i,s])=>{let a=W4(s,i,r),l=s,d=[],u=[];l?.variations&&Object.entries(l.variations).forEach(([f,p])=>{let m=p,g=W4(m,i,r);m?.css&&(g.css=m.css);let h=typeof t!="string"?t[i]?.styleVariationSelectors?.[f]:void 0;if(h&&typeof t!="string"){let b=t[i];u.push({styles:g,selector:h,featureSelectors:b?.featureSelectors,fallbackGapValue:b?.fallbackGapValue,hasLayoutSupport:b?.hasLayoutSupport,isStyleVariation:!0,variationName:f,layoutSelector:h+b.selector,layoutHasBlockGapSupport:!0,name:i})}Object.entries(fU(m,r)).forEach(([b,v])=>{v&&us.__EXPERIMENTAL_ELEMENTS[b]&&d.push({styles:v,selector:Wc(h,us.__EXPERIMENTAL_ELEMENTS[b]),elementName:b,isStyleVariation:!0})}),Object.entries(m?.blocks??{}).forEach(([b,v])=>{let _=typeof t!="string"?Wc(h,t[b]?.selector):void 0,y=typeof t!="string"?Wc(h,t[b]?.duotoneSelector):void 0,w=typeof t!="string"?oie(h,t[b]?.featureSelectors??{}):void 0,x=W4(v,b,r);v?.css&&(x.css=v.css),!(!_||typeof t=="string")&&(d.push({selector:_,name:b,isStyleVariation:!0,duotoneSelector:y,featureSelectors:w,fallbackGapValue:t[b]?.fallbackGapValue,hasLayoutSupport:t[b]?.hasLayoutSupport,styles:x}),Object.entries(fU(v,r)).forEach(([k,C])=>{C&&us.__EXPERIMENTAL_ELEMENTS[k]&&d.push({styles:C,selector:Wc(_,us.__EXPERIMENTAL_ELEMENTS[k]),elementName:k,isStyleVariation:!0})}))})}),typeof t!="string"&&t?.[i]?.selector&&o.push({duotoneSelector:t[i].duotoneSelector,fallbackGapValue:t[i].fallbackGapValue,hasLayoutSupport:t[i].hasLayoutSupport,selector:t[i].selector,styles:a,featureSelectors:t[i].featureSelectors,name:i}),o.push(...u),Object.entries(fU(l,r)).forEach(([f,p])=>{typeof t!="string"&&p&&t?.[i]&&us.__EXPERIMENTAL_ELEMENTS[f]&&o.push({styles:p,selector:t[i]?.selector.split(",").map(m=>us.__EXPERIMENTAL_ELEMENTS[f].split(",").map(h=>m+" "+h)).join(","),elementName:f})}),o.push(...d)}),o},Ije=(e,t)=>{let o=[];if(!e?.settings)return o;let r=s=>{let a={};return F4.forEach(({path:l})=>{let d=Qo(s,l,!1);d!==!1&&(a=Qne(a,l,d))}),a},n=r(e.settings),i=e.settings?.custom;return(Object.keys(n).length>0||i)&&o.push({presets:n,custom:i,selector:DE}),Object.entries(e.settings?.blocks??{}).forEach(([s,a])=>{let l=a.custom;if(typeof t=="string"||!t[s])return;let d=r(a);(Object.keys(d).length>0||l)&&o.push({presets:d,custom:l,selector:t[s]?.selector,featureSelectors:t[s]?.featureSelectors})}),o};function Pje(e,{tree:t,useRootPaddingAlign:o,disableLayoutStyles:r,hasBlockGapSupport:n,hasFallbackGapSupport:i,disableRootPadding:s}){let{selector:a,selectorSuffix:l,mediaQuery:d,duotoneSelector:u,styles:f,fallbackGapValue:p,hasLayoutSupport:m,featureSelectors:g,layoutSelector:h,layoutHasBlockGapSupport:b,skipSelectorWrapper:v,name:_,variationName:y}=e,w="",x=l?z4(a,l):a;if(g&&typeof g!="string"){let R=Sje(g,f);R=xje(R,t.settings,_),R=kje(R,t.settings),Object.entries(R).forEach(([E,I])=>{if(I.length){let B=y?rie(y,E):E;B=l?z4(B,l):B;let O=I.join(";");w+=`:root :where(${B}){${O};}`}})}if(u){let R={};f?.filter&&(R.filter=f.filter,delete f.filter);let E=G4(R);E.length&&(w+=`${u}{${E.join(";")};}`)}let k=h??x;!r&&(lu===k||m)&&(w+=Sie({style:f,selector:k,hasBlockGapSupport:b??n,hasFallbackGapSupport:i,fallbackGapValue:p}));let S=G4(f,x,o,t,s);if(S?.length){let R=v?x:`:root :where(${x})`;w+=`${R}{${S.join(";")};}`}return f?.css&&(w+=K4(f.css,`:root :where(${x})`)),d&&w?`${d}{${w}}`:w}var $4=(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=VE(e),d=Rje(l,t),u=Ije(l,t),f=l?.settings?.useRootPaddingAwareAlignments,{contentSize:p,wideSize:m}=l?.settings?.layout||{},g=a.marginReset||a.rootPadding||a.layoutStyles,h="";if(a.presets&&(p||m)&&(h+=`${DE} {`,h=p?h+` --wp--style--global--content-size: ${p};`:h,h=m?h+` --wp--style--global--wide-size: ${m};`:h,h+="}"),g&&(h+=":where(body) {margin: 0;",a.rootPadding&&f&&(h+=`padding-right: 0; padding-left: 0; padding-top: var(--wp--style--root--padding-top); padding-bottom: var(--wp--style--root--padding-bottom) } | |
| 58 | 58 | .has-global-padding { padding-right: var(--wp--style--root--padding-right); padding-left: var(--wp--style--root--padding-left); } |
| 59 | 59 | .has-global-padding > .alignfull { margin-right: calc(var(--wp--style--root--padding-right) * -1); margin-left: calc(var(--wp--style--root--padding-left) * -1); } |
| 60 | 60 | .has-global-padding :where(:not(.alignfull.is-layout-flow) > .has-global-padding:not(.wp-block-block, .alignfull)) { padding-right: 0; padding-left: 0; } |
| 61 | 61 | .has-global-padding :where(:not(.alignfull.is-layout-flow) > .has-global-padding:not(.wp-block-block, .alignfull)) > .alignfull { margin-left: 0; margin-right: 0; |
| 62 | - `),h+="}"),a.blockStyles){let b=bC(e);u.forEach(v=>{if(v.isStyleVariation&&!a.variationStyles)return;let y=b6e(v,b);[v,...y,...Xte(v),...y.flatMap(Xte)].forEach(_=>{h+=_6e(_,{tree:l,useRootPaddingAlign:f,disableLayoutStyles:n,hasBlockGapSupport:o,hasFallbackGapSupport:r,disableRootPadding:i})})})}if(a.layoutStyles&&(h=h+".wp-site-blocks > .alignleft { float: left; margin-right: 2em; }",h=h+".wp-site-blocks > .alignright { float: right; margin-left: 2em; }",h=h+".wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }"),a.blockGap&&o){let b=GP(l?.styles?.spacing?.blockGap)||"0.5em";h=h+`:root :where(.wp-site-blocks) > * { margin-block-start: ${b}; margin-block-end: 0; }`,h=h+":root :where(.wp-site-blocks) > :first-child { margin-block-start: 0; }",h=h+":root :where(.wp-site-blocks) > :last-child { margin-block-end: 0; }"}return a.presets&&d.forEach(({selector:b,presets:v})=>{(zu===b||mC===b)&&(b="");let y=d6e(b,v);y.length>0&&(h+=y)}),h};var w6e=(e,t)=>{if(e?.selectors&&Object.keys(e.selectors).length>0)return e.selectors;let o={root:t};return Object.entries(c6e).forEach(([r,n])=>{let i=ba(e,r);i&&(o[n]=i)}),o},qP=(e,t)=>{let{getBlockStyles:o}=(0,Qte.select)(es.store),r={};return e.forEach(n=>{let i=n.name,s=ba(n);if(!s)return;let a=ba(n,"filter.duotone");if(!a){let g=ba(n),h=(0,es.getBlockSupport)(n,"color.__experimentalDuotone",!1);typeof h=="string"&&g&&(a=xc(g,h))}let l=!!n?.supports?.layout||!!n?.supports?.__experimentalLayout,u=n?.supports?.spacing?.blockGap,d=typeof u=="object"&&!Array.isArray(u)?u.__experimentalDefault:void 0,f=o(i),p={};f?.forEach(g=>{let h=t?`-${t}`:"",b=`${g.name}${h}`,v=hj(b,s);p[b]=v});let m=w6e(n,s);r[i]={duotoneSelector:a??void 0,fallbackGapValue:d,featureSelectors:Object.keys(m).length?m:void 0,hasLayoutSupport:l,name:i,selector:s,styleVariationSelectors:f?.length?p:void 0}}),r};function ZP(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(),p;f===""?p=t:p=a.startsWith(" ")?xc(t,f):HP(t,f),o+=`:root :where(${p})${d}{${l.trim()}}`}}),o}function XP(e,t,o,{resolveRefs:r=!0}={}){if(!e?.styles?.blocks?.[t]?.variations?.[o])return;let n=s=>{Object.keys(s).forEach(a=>{let l=s[a];if(typeof l=="object"&&l!==null)if(l.ref!==void 0)if(typeof l.ref!="string"||l.ref.trim()==="")delete s[a];else{let u=$o(e,l.ref);u!=null?s[a]=u:delete s[a]}else n(l),Object.keys(l).length===0&&delete s[a]})},i=JSON.parse(JSON.stringify(e.styles.blocks[t].variations[o]));return r&&n(i),i}var xj="default";function noe(e){let t=e?.viewport,o=e?.pseudoState;return(!t||t===xj)&&(!o||o===xj)}function k6e(e){return noe(e)?[]:[e.viewport,e.pseudoState].filter(t=>!!t&&t!==xj)}function x6e(e,t){let o=k6e(t);return o.length?$o(e,o):e}var S6e=new Set(["blocks","variations","css"]),wj=Object.freeze({value:{},sources:{}}),C6e={root:{layer:"root"},element:{layer:"element"},block:{layer:"block"},blockVariation:{layer:"blockVariation"}};function km(e){let t=C6e[e];return t?{...t}:null}function xm(e,t){return!e||!t?null:{styles:e,source:t}}function E6e(e){return e.join(".")}function T6e(e){return{...e}}function ioe(e){return e===""||e===null||typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0}function kj(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e.ref=="string"}function Sm(e){if(!e||typeof e!="object"||Array.isArray(e))return null;let t={};for(let o of Object.keys(e))if(!S6e.has(o)){if(o==="elements"){e.elements&&typeof e.elements=="object"&&(t.elements=e.elements);continue}ioe(e[o])||(t[o]=e[o])}return Object.keys(t).length===0?null:t}var toe=new Set(["backgroundImage"]);function soe(e,t,o,r,n,i=[]){if(!t||typeof t!="object"||Array.isArray(t))return e;for(let s of Object.keys(t)){let a=t[s];if(ioe(a))continue;if(kj(a)){if(a.ref.trim()==="")continue;let u=$o(o,a.ref);if(u==null||kj(u))continue;a=u}let l=[...i,s];if(!toe.has(s)&&a!==null&&typeof a=="object"&&!Array.isArray(a)&&!kj(a)){let u=e[s]&&typeof e[s]=="object"&&!Array.isArray(e[s])?e[s]:{};e[s]=soe({...u},a,o,r,n,l)}else e[s]=toe.has(s)&&a!==null&&typeof a=="object"&&!Array.isArray(a)?{...a}:a,r&&n&&(n[E6e(l)]=T6e(r))}return e}function QP(e,t){if(!e)return null;let o=x6e(e,t);return o&&typeof o=="object"&&!Array.isArray(o)?o:null}var R6e=["color.background","color.gradient","background","spacing","dimensions","border","shadow","filter"];function B6e(e){return e.startsWith("elements.")?!1:R6e.some(t=>e===t||e.startsWith(`${t}.`))}function aoe(e,t){if(!e||typeof e!="object")return;let[o,...r]=t;if(r.length===0){delete e[o];return}let n=e[o];n&&typeof n=="object"&&(aoe(n,r),Object.keys(n).length===0&&delete e[o])}function I6e(e,t){for(let o of Object.keys(t))t[o].layer==="root"&&B6e(o)&&(aoe(e,o.split(".")),delete t[o])}function P6e(e,t,o){let r=e?.background?.backgroundImage;if(!r)return;let n=wm(r,{...t,_links:o??void 0});n!==void 0&&(e.background.backgroundImage=n)}function ooe(e,{blockName:t,variationName:o=null,elements:r=null,viewport:n=null,pseudoState:i=null}={}){if(!e||!e.styles||!t)return wj;let s=e.styles,a={viewport:n,pseudoState:i},l=s,u=s.blocks?.[t]??null,d=(r??[]).map(b=>s.elements?.[b]??null).filter(b=>!!b),f=o?XP(e,t,o)??null:null,p=[xm(Sm(l),km("root")),...d.map(b=>xm(Sm(b),km("element"))),u?xm(Sm(u),km("block")):null,f?xm(Sm(f),km("blockVariation")):null];noe(a)||p.push(xm(Sm(QP(l,a)),km("root")),...d.map(b=>xm(Sm(QP(b,a)),km("element"))),u?xm(Sm(QP(u,a)),km("block")):null,f?xm(Sm(QP(f,a)),km("blockVariation")):null);let m=p.filter(Boolean);if(m.length===0)return wj;let g={},h=m.reduce((b,v)=>soe(b,v.styles,e,v.source,g),{});return I6e(h,g),P6e(h,e,e._links??null),{value:h,sources:g}}var O6e={},roe=new WeakMap;function loe(e,t={}){let o=e?.styles;if(!o||typeof o!="object")return ooe(e,t);let r=roe.get(o);r||(r=new WeakMap,roe.set(o,r));let n=e?._links??O6e,i=r.get(n);i||(i=new Map,r.set(n,i));let s=`${t.elements?.join(",")??""}:${t.viewport??""}:${t.pseudoState??""}`,a=(t.blockName||"")+""+(t.variationName||"")+""+s;if(i.has(a))return i.get(a);let l=ooe(e,t);return i.set(a,l),l}var coe=c(OB(),1),{lock:uoe,unlock:wvt}=(0,coe.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/global-styles-engine");var Lo={};uoe(Lo,{getResponsiveMediaQueries:bC,getViewportBreakpoints:vj,getViewportBreakpointValueInPixels:yj,getDuotoneFilter:Gte,getDuotoneStylesheet:Wte,getDuotoneUnsetStylesheet:Ute,resolveStyle:loe,getVariationStyle:XP});var JP=c(q(),1);var fn={desktop:{label:(0,JP.__)("Desktop"),icon:Yz,key:"desktop"},tablet:{label:(0,JP.__)("Tablet"),icon:Z9,key:"tablet"},mobile:{label:(0,JP.__)("Mobile"),icon:J0,key:"mobile"}},Sj=Object.entries(fn);var e2=c(ce(),1),doe=c(Bo(),1);function Ge(e,t,o){let r=Array.isArray(t)?[...t]:[t],n=Array.isArray(e)?[...e]:{...e},i=r.pop(),s=n;for(let a of r){let l=s[a];s[a]=s=Array.isArray(l)?[...l]:{...l}}return s[i]=o,n}var yf=(e,t,o)=>{let r=Array.isArray(t)?t:t.split("."),n=e;return r.forEach(i=>{n=n?.[i]}),n??o};var A6e=["color","border","dimensions","typography","spacing"],M6e={"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},N6e={"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"},L6e=e=>N6e[e]||e;function foe(e,t,...o){let r=Jt(e,t),n=[];if(t){let i=t;do{let s=Jt(e,i);(0,e2.hasBlockSupport)(s,"__experimentalSettings",!1)&&n.push(i)}while(i=e.blocks.parents.get(i))}return o.map(i=>{if(A6e.includes(i)){console.warn("Top level useSetting paths are disabled. Please use a subpath to query the information needed.");return}let s=(0,doe.applyFilters)("blockEditor.useSetting.before",void 0,i,t,r);if(s!==void 0)return s;let a=L6e(i);for(let d of n){let f=ya(e,d);if(s=yf(f.settings?.blocks?.[r],a)??yf(f.settings,a),s!==void 0)break}let l=vf(e);if(s===void 0&&r&&(s=yf(l.__experimentalFeatures?.blocks?.[r],a)),s===void 0&&(s=yf(l.__experimentalFeatures,a)),s!==void 0)return e2.__EXPERIMENTAL_PATHS_WITH_OVERRIDE[a]?s.custom??s.theme??s.default:s;let u=M6e[a]?.(l);return u!==void 0?u:a==="typography.dropCap"?!0:void 0})}var{isContentBlock:Cj,editableRootKey:D6e}=G(Cm.privateApis),{getViewportBreakpoints:V6e}=G(Lo);function poe(e,t){return t===fn.desktop.key?!0:V6e(vf(e)?.__experimentalFeatures?.viewport)[t]!==void 0}function F6e(e){return e.isBlockInterfaceHidden}function z6e(e){return e?.lastBlockInserted?.clientIds}function j6e(e,t){return e.blocks.byClientId.get(t)}var H6e=(e,t)=>{let o=r=>ts(e,r)==="disabled"&&jn(e,r).every(o);return jn(e,t).every(o)};function _C(e,t,o){let r=Cj(t),n=Jt(e,o),i=Cj(n);return Sb(e)===o||i&&r}function moe(e,t){return{clientId:t,innerBlocks:goe(e,t)}}function goe(e,t=""){return jn(e,t).map(o=>moe(e,o))}var Ej=(0,In.createSelector)(moe,e=>[e.blocks.order]),Tj=(0,In.createSelector)(goe,e=>[e.blocks.order]);function Rj(e,t,o){let r=jn(e,t),n=[];for(let i of r){let s=Rj(e,i,o);o(e,i)?n.push({clientId:i,innerBlocks:s}):n.push(...s)}return n}function U6e(e,t){return Rj(e,t,(o,r)=>ts(o,r)!=="disabled")}function W6e(e,t){let o=e.blocks.parents.get(t);for(;o!==void 0;){let r=e.blocks.blockEditingModes.get(o);if(r)return r==="disabled";o=e.blocks.parents.get(o)}return!1}var G6e=(0,In.createSelector)((e,t)=>{if(!t||ts(e,t)!=="default"||Aj(e,t)!=="visual"||!(0,Cm.getBlockType)(Jt(e,t))?.[D6e])return!1;let o=jn(e,yr(e,t));return o.length>1&&o.every(r=>ts(e,r)==="default")},e=>[e.blocks.order,e.blocks.parents,e.blocks.byClientId,e.blocks.blockEditingModes,e.derivedBlockEditingModes,e.blocksMode]);function $6e(e,t){return Rj(e,t,(o,r)=>{if(ts(o,r)!=="disabled")return!0;let n=o.blocks.blockEditingModes.get(r);if(n)return n!=="disabled";if(W6e(o,r))return!1;if(o.editedContentOnlySection){if(t2(o,r))return!1;if(!_f(o,r)||Cj(Jt(o,r)))return!0}return!1})}var Y6e=(0,In.createSelector)(U6e,e=>[e.blocks.order,e.derivedBlockEditingModes,e.blocks.blockEditingModes]),K6e=(0,In.createSelector)($6e,e=>[e.blocks.order,e.derivedBlockEditingModes,e.blocks.blockEditingModes,e.blocks.parents,e.editedContentOnlySection,...e.editedContentOnlySection?[e.blocks.byClientId,e.blocks.attributes,e.blockListSettings,e.settings]:[]]),q6e=(0,In.createSelector)((e,t,o=!1)=>nl(e,t,o).filter(r=>ts(e,r)!=="disabled"),e=>[e.blocks.parents,e.blocks.blockEditingModes,e.settings.templateLock,e.blockListSettings]);function Z6e(e){return e.removalPromptData}function X6e(e){return e.blockRemovalRules}var Q6e=(0,In.createSelector)(e=>{let o=C_(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 J6e(e){return e.registeredInserterMediaCategories}var e4e=(0,In.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]),t4e=(0,In.createRegistrySelector)(e=>(0,In.createSelector)((t,o=null)=>{let{getAllPatterns:r}=G(e(br)),n=r(),{allowedBlockTypes:i}=vf(t);return n.some(s=>{let{inserter:a=!0}=s;if(!a)return!1;let l=xb(s);return kC(l,i)&&l.every(({name:u})=>Cb(t,u,o))})},(t,o)=>[...xC(e)(t),...Em(e)(t,o)])),o4e=(0,In.createRegistrySelector)(e=>(0,In.createSelector)((t,o)=>{if(o?.startsWith("core/block/")){let r=parseInt(o.slice(11),10),n=G(e(br)).getReusableBlocks().find(({id:i})=>i===r);return n?wC(n,t.settings[mf]?.(e)??t.settings.__experimentalUserPatternCategories):null}return[...t.settings.__experimentalBlockPatterns??[],...t.settings[um]?.(e)??[]].find(({name:r})=>r===o)},(t,o)=>o?.startsWith("core/block/")?[G(e(br)).getReusableBlocks(),t.settings.__experimentalReusableBlocks]:[t.settings.__experimentalBlockPatterns,t.settings[um]?.(e)])),r4e=(0,In.createRegistrySelector)(e=>(0,In.createSelector)(t=>[...G(e(br)).getReusableBlocks().map(o=>wC(o,t.settings[mf]?.(e)??t.settings.__experimentalUserPatternCategories)),...t.settings.__experimentalBlockPatterns??[],...t.settings[um]?.(e)??[]].filter((o,r,n)=>r===n.findIndex(i=>o.name===i.name)),xC(e))),n4e=[],i4e=(0,In.createRegistrySelector)(e=>t=>{let o=t.settings[LB];return(o?o(e):t.settings.__experimentalReusableBlocks)??n4e});function s4e(e){return e.lastFocus}function a4e(e){return e.isDragging}function l4e(e){return e.expandedBlock}var Bj=(e,t)=>{let o=t,r;for(;!r&&(o=e.blocks.parents.get(o));)ju(e,o)==="contentOnly"&&(r=o);return r};function hoe(e,t){let o=Jt(e,t);if(o==="core/block")return!0;let r=ya(e,t),n=o==="core/template-part",i=e.settings?.[fm],s=e.settings?.disableContentOnlyForUnsyncedPatterns,a=e.settings?.disableContentOnlyForTemplateParts;if((!s&&r?.metadata?.patternName||n&&!a)&&!i)return!0;let l=ju(e,t)==="contentOnly",u=yr(e,t),d=ju(e,u)==="contentOnly";return!!(l&&!d)}var _f=(e,t)=>{if(t2(e,t))return;let o=t,r;for(;o=e.blocks.parents.get(o);)hoe(e,o)&&(r=o);return r};function wf(e,t){return t2(e,t)||_f(e,t)?!1:hoe(e,t)}function c4e(e,t){let o=Jt(e,t);return o!=="core/block"&&o!=="core/template-part"?!1:!(ya(e,t)?.metadata?.patternName&&wf(e,t))}function Ij(e){return e.editedContentOnlySection}function t2(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 u4e=(0,In.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 Sb(e){return e.settings?.[dm]}function Pj(e){return e.zoomLevel==="auto-scaled"||e.zoomLevel<100}function d4e(e){return e.zoomLevel}function boe(e,t,o=""){let r=Array.isArray(t)?t:[t],n=s=>r.every(a=>Cb(e,a,s));if(!o){if(n(o))return o;let s=Sb(e);return s&&n(s)?s:null}let i=o;for(;i!==null&&!n(i);)i=yr(e,i);return i}function f4e(e,t,o){let{allowedBlockTypes:r}=vf(e);if(!kC(xb(t),r))return null;let i=xb(t).map(({blockName:s})=>s);return boe(e,i,o)}function p4e(e){return e.insertionPoint}var m4e=(e,t)=>{let o=Jt(e,t);if(!(0,Cm.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(fn).some(i=>poe(e,i.key)&&n?.viewport?.[i.key]===!1):!1},Oj=(e,t)=>{let o=Jt(e,t);return(0,Cm.hasBlockSupport)(o,"visibility",!0)?e.blocks.attributes.get(t)?.metadata?.blockVisibility===!1:!1},g4e=(e,t)=>nl(e,t).some(r=>Oj(e,r)),yoe=(e,t,o)=>{if(Oj(e,t))return!0;let n=e.blocks.attributes.get(t)?.metadata?.blockVisibility?.viewport;if(typeof n=="object"&&n!==null&&typeof o=="string"){let i=o.toLowerCase();return poe(e,i)&&n?.[i]===!1}return!1},h4e=(e,t,o)=>nl(e,t).some(n=>yoe(e,n,o));function b4e(e){return!!e.hasBlockSpotlight||!!e.editedContentOnlySection}function voe(e,t){return!!ya(e,t)?.lock?.edit}function _oe(e,t){let o=ya(e,t);if(o?.lock?.move!==void 0)return!!o?.lock?.move;let r=yr(e,t);return ju(e,r)==="all"}function woe(e,t){let o=ya(e,t);if(o?.lock?.remove!==void 0)return!!o?.lock?.remove;let r=yr(e,t),n=ju(e,r);return n==="all"||n==="insert"}function y4e(e,t){return voe(e,t)||_oe(e,t)||woe(e,t)}function v4e(e){return e.listViewContentPanelOpen}function _4e(e,t){return e.openedListViewPanels?.allOpen?!0:e.openedListViewPanels?.panels?.[t]===!0}function w4e(e){return e.listViewExpandRevision||0}function k4e(e,t){let o=Jt(e,t);if(o==="core/navigation")return!0;if(!(0,Cm.hasBlockSupport)(o,"listView"))return!1;let r=E_(e,t)?.allowedBlocks;return!(jn(e,t).length===0&&(r===!1||Array.isArray(r)&&r.length===0))}function x4e(e){return e.viewportModalClientIds}function S4e(e){return e.requestedInspectorTab}var vC={viewport:"default",pseudo:"default"};function koe(e){return e.styleStateViewport??vC.viewport}function C4e(e){return e.isResponsiveEditing}var xoe=(0,In.createSelector)((e,t)=>({...e.selectedBlockStyleState?.clientId===t?e.selectedBlockStyleState.value??vC:vC,viewport:koe(e)}),e=>[e.styleStateViewport,e.selectedBlockStyleState]);function E4e(e,t){let o=xoe(e,t);return o.viewport!==vC.viewport||o.pseudo!==vC.pseudo}function T4e(e,t){return e.selectedBlockStyleState?.clientId!==t?!0:e.selectedBlockStyleState.showStateOnCanvas??!0}var CC=c(q(),1),nr={user:"user",theme:"theme",directory:"directory"},SC={full:"fully",unsynced:"unsynced"},Eb={name:"allPatterns",label:(0,CC._x)("All","patterns")},kf={name:"myPatterns",label:(0,CC.__)("My patterns")},T_={name:"core/starter-content",label:(0,CC.__)("Starter content")};function r2(e,t,o){let r=e.name.startsWith("core/block"),n=e.source==="core"||e.source?.startsWith("pattern-directory");return!!(t===nr.theme&&(r||n)||t===nr.directory&&(r||!n)||t===nr.user&&e.type!==nr.user||o===SC.full&&e.syncStatus!==""||o===SC.unsynced&&e.syncStatus!=="unsynced"&&r)}var Tm=Symbol("isFiltered"),Soe=new WeakMap,Coe=new WeakMap;function wC(e,t=[]){return{name:`core/block/${e.id}`,id:e.id,type:nr.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 R4e(e){let t=(0,Eoe.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 n2(e){let t=Soe.get(e);return t||(t=R4e(e),Soe.set(e,t)),t}function xb(e){let t=Coe.get(e);return t||(t=(0,Toe.parse)(e.content),t=t.filter(o=>o.blockName!==null),Coe.set(e,t)),t}var Tb=(e,t,o=null)=>typeof e=="boolean"?e:Array.isArray(e)?e.includes("core/post-content")&&t===null?!0:e.includes(t):o,kC=(e,t)=>{if(typeof t=="boolean")return t;let o=[...e];for(;o.length>0;){let r=o.shift();if(!Tb(t,r.name||r.blockName,!0))return!1;r.innerBlocks?.forEach(i=>{o.push(i)})}return!0},xC=e=>t=>[t.settings.__experimentalBlockPatterns,t.settings[mf]?.(e)??t.settings.__experimentalUserPatternCategories,t.settings.__experimentalReusableBlocks,t.settings[um]?.(e),t.blockPatterns,G(e(br)).getReusableBlocks()],Em=()=>(e,t)=>[e.blockListSettings.get(t),e.blocks.byClientId.get(t),e.blocks.order.get(t||""),e.settings.allowedBlockTypes,e.settings.templateLock,ts(e,t),Sb(e),wf(e,t),_f(e,t)];function Roe(e,t){return typeof e=="string"&&typeof t=="string"?e>t:Number(e)>Number(t)}var B4e=(e,t,o)=>(r,n)=>{let i,s;if(typeof e=="function"?(i=e(r),s=e(n)):(i=r[e],s=n[e]),Roe(i,s))return o==="asc"?1:-1;if(Roe(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 Hu(e,t,o="asc"){return e.concat().sort(B4e(t,e,o))}var{isContentBlock:Nj}=G(Ot.privateApis),I4e=3600*1e3,P4e=24*3600*1e3,O4e=168*3600*1e3,li=[],A4e=new Set,Poe={[Tm]:!0};function Jt(e,t){let o=e.blocks.byClientId.get(t);return o?o.name:null}function M4e(e,t){let o=e.blocks.byClientId.get(t);return!!o&&o.isValid}function ya(e,t){return e.blocks.byClientId.get(t)?e.blocks.attributes.get(t):null}function Sf(e,t){return e.blocks.byClientId.has(t)?e.blocks.tree.get(t):null}var N4e=(0,It.createSelector)((e,t)=>{let o=e.blocks.byClientId.get(t);return o?{...o,attributes:ya(e,t)}:null},(e,t)=>[e.blocks.byClientId.get(t),e.blocks.attributes.get(t)]);function L4e(e,t){let o=!t||!l2(e,t)?t||"":"controlled||"+t;return e.blocks.tree.get(o)?.innerBlocks||li}function D4e(e,t){return(0,va.default)("wp.data.select( 'core/block-editor' ).__unstableGetClientIdWithClientIdsTree",{since:"6.3",version:"6.5"}),Ej(e,t)}function V4e(e,t){return(0,va.default)("wp.data.select( 'core/block-editor' ).__unstableGetClientIdsTree",{since:"6.3",version:"6.5"}),Tj(e,t)}var Ooe=(0,It.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]),C_=e=>Ooe(e,""),F4e=(0,It.createSelector)((e,t)=>{let o=C_(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]),Aoe=(0,It.createSelector)((e,t)=>{if(!t)return li;let o=Array.isArray(t)?t:[t],n=C_(e).filter(i=>{let s=e.blocks.byClientId.get(i);return o.includes(s.name)});return n.length>0?n:li},e=>[e.blocks.order,e.blocks.byClientId]);function z4e(e,t){return(0,va.default)("wp.data.select( 'core/block-editor' ).__experimentalGetGlobalBlocksByName",{since:"6.5",alternative:"wp.data.select( 'core/block-editor' ).getBlocksByName"}),Aoe(e,t)}var i2=(0,It.createSelector)((e,t)=>(Array.isArray(t)?t:[t]).map(o=>Sf(e,o)),(e,t)=>(Array.isArray(t)?t:[t]).map(o=>e.blocks.tree.get(o))),j4e=(0,It.createSelector)((e,t)=>i2(e,t).filter(Boolean).map(o=>o.name),(e,t)=>i2(e,t));function H4e(e,t){return jn(e,t).length}function TC(e){return e.selection.selectionStart}function RC(e){return e.selection.selectionEnd}function U4e(e){return e.selection.selectionStart.clientId}function W4e(e){return e.selection.selectionEnd.clientId}function G4e(e){let t=Bm(e).length;return t||(e.selection.selectionStart.clientId?1:0)}function $4e(e){let{selectionStart:t,selectionEnd:o}=e.selection;return!!t.clientId&&t.clientId===o.clientId}function R_(e){let{selectionStart:t,selectionEnd:o}=e.selection,{clientId:r}=t;return!r||r!==o.clientId?null:r}function Y4e(e){let t=R_(e);return t?Sf(e,t):null}function yr(e,t){return e.blocks.parents.get(t)??null}var nl=(0,It.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():li},e=>[e.blocks.parents]),Lj=(0,It.createSelector)((e,t,o,r=!1)=>{let n=nl(e,t,r),i=Array.isArray(o)?s=>o.includes(s):s=>o===s;return n.filter(s=>i(Jt(e,s)))},e=>[e.blocks.parents]);function K4e(e,t){let o=t,r;do r=o,o=e.blocks.parents.get(o);while(o);return r}function q4e(e,t){let o=R_(e),r=[...nl(e,t),t],n=[...nl(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 Dj(e,t,o=1){if(t===void 0&&(t=R_(e)),t===void 0&&(o<0?t=Vj(e):t=Noe(e)),!t)return null;let r=yr(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 Z4e(e,t){return Dj(e,t,-1)}function X4e(e,t){return Dj(e,t,1)}function Q4e(e){return e.initialPosition}function Moe(e){let{selectionStart:t,selectionEnd:o}=e.selection,r=t.clientId,n=o.clientId;if(!(!r||!n||r===n)){if(nl(e,n).includes(r))return r;if(nl(e,r).includes(n))return n}}var Rm=(0,It.createSelector)(e=>{let{selectionStart:t,selectionEnd:o}=e.selection;if(!t.clientId||!o.clientId)return li;if(t.clientId===o.clientId)return[t.clientId];let r=Moe(e);if(r)return[r];let n=yr(e,t.clientId);if(n===null)return li;let i=jn(e,n),s=i.indexOf(t.clientId),a=i.indexOf(o.clientId);return s>a?i.slice(a,s+1):i.slice(s,a+1)},e=>[e.blocks.order,e.blocks.parents,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]);function Bm(e){let{selectionStart:t,selectionEnd:o}=e.selection;return t.clientId===o.clientId?li:Rm(e)}var J4e=(0,It.createSelector)(e=>{let t=Bm(e);return t.length?t.map(o=>Sf(e,o)):li},e=>[...Rm.getDependants(e),e.blocks.byClientId,e.blocks.order,e.blocks.attributes]);function Vj(e){return Bm(e)[0]||null}function Noe(e){let t=Bm(e);return t[t.length-1]||null}function e8e(e,t){return Vj(e)===t}function Loe(e,t){return Bm(e).indexOf(t)!==-1}var t8e=(0,It.createSelector)((e,t)=>{let o=t,r=!1;for(;o&&!r;)o=yr(e,o),r=Loe(e,o);return r},e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]);function o8e(e){let{selectionStart:t,selectionEnd:o}=e.selection;return t.clientId===o.clientId?null:t.clientId||null}function r8e(e){let{selectionStart:t,selectionEnd:o}=e.selection;return t.clientId===o.clientId?null:o.clientId||null}function n8e(e){if(Moe(e))return!0;let t=TC(e),o=RC(e);return!t.attributeKey&&!o.attributeKey&&typeof t.offset>"u"&&typeof o.offset>"u"}function i8e(e){let t=TC(e),o=RC(e);return!!t&&!!o&&t.clientId===o.clientId&&t.attributeKey===o.attributeKey&&t.offset===o.offset}function s8e(e){return Rm(e).some(t=>{let o=Jt(e,t);return!(0,Ot.getBlockType)(o).merge})}function a8e(e,t){let o=TC(e),r=RC(e);if(o.clientId===r.clientId||!o.attributeKey||!r.attributeKey||typeof o.offset>"u"||typeof r.offset>"u")return!1;let n=yr(e,o.clientId),i=yr(e,r.clientId);if(n!==i)return!1;let s=jn(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,p=t?u.clientId:d.clientId,m=Jt(e,f);if(!(0,Ot.getBlockType)(m).merge)return!1;let h=Sf(e,p);if(h.name===m)return!0;let b=(0,Ot.switchToBlockType)(h,m);return b&&b.length}var l8e=e=>{let t=TC(e),o=RC(e);if(t.clientId===o.clientId||!t.attributeKey||!o.attributeKey||typeof t.offset>"u"||typeof o.offset>"u")return li;let r=yr(e,t.clientId),n=yr(e,o.clientId);if(r!==n)return li;let i=jn(e,r),s=i.indexOf(t.clientId),a=i.indexOf(o.clientId),[l,u]=s>a?[o,t]:[t,o],d=Sf(e,l.clientId),f=Sf(e,u.clientId),p=d.attributes[l.attributeKey],m=f.attributes[u.attributeKey],g=(0,xf.create)({html:p}),h=(0,xf.create)({html:m});return g=(0,xf.remove)(g,0,l.offset),h=(0,xf.remove)(h,u.offset,h.text.length),[{...d,attributes:{...d.attributes,[l.attributeKey]:(0,xf.toHTMLString)({value:g})}},{...f,attributes:{...f.attributes,[u.attributeKey]:(0,xf.toHTMLString)({value:h})}}]};function jn(e,t){return e.blocks.order.get(t||"")||li}function Doe(e,t){let o=yr(e,t);return jn(e,o).indexOf(t)}function Voe(e,t){let{selectionStart:o,selectionEnd:r}=e.selection;return o.clientId!==r.clientId?!1:!!t&&o.clientId===t}var c8e=(0,It.createSelector)(e=>{let t=new Set;for(let o of Rm(e)){let r=o;for(;(r=e.blocks.parents.get(r))&&!t.has(r);)t.add(r)}return t},e=>Rm.getDependants(e));function Foe(e,t,o=!1){if(!t)return!1;let r=Rm(e);return r.length?o?c8e(e).has(t):r.some(n=>yr(e,n)===t):!1}function zoe(e,t,o=!1){return jn(e,t).some(r=>Fj(e,r)||o&&zoe(e,r,o))}function u8e(e,t){if(!t)return!1;let o=Bm(e),r=o.indexOf(t);return r>-1&&r<o.length-1}function d8e(e){let{selectionStart:t,selectionEnd:o}=e.selection;return t.clientId!==o.clientId}function f8e(e){return e.isMultiSelecting}function p8e(e){return e.isSelectionEnabled}function Aj(e,t){return e.blocksMode[t]||"visual"}function m8e(e){return e.isTyping}function joe(e){return!!e.draggedBlocks.length}function g8e(e){return e.draggedBlocks}function Fj(e,t){return e.draggedBlocks.includes(t)}function h8e(e,t){return joe(e)?nl(e,t).some(r=>Fj(e,r)):!1}function b8e(){return(0,va.default)('wp.data.select( "core/block-editor" ).isCaretWithinFormattedText',{since:"6.1",version:"6.3"}),!1}var y8e=(0,It.createSelector)(e=>{let t,o,{insertionCue:r,selection:{selectionEnd:n}}=e;if(r!==null)return r;let{clientId:i}=n;return i?(t=yr(e,i)||void 0,o=Doe(e,n.clientId)+1):o=jn(e).length,{rootClientId:t,index:o}},e=>[e.insertionCue,e.selection.selectionEnd.clientId,e.blocks.parents,e.blocks.order]);function v8e(e){return e.insertionCue!==null}function _8e(e){return e.template.isValid}function w8e(e){return e.settings.template}function ju(e,t){if(!t)return e.settings.templateLock??!1;let o=E_(e,t)?.templateLock;return o==="contentOnly"&&e.editedContentOnlySection===t?!1:o??!1}var zj=(e,t,o=null)=>{let r,n;if(t&&typeof t=="object"?(r=t,n=t.name):(r=(0,Ot.getBlockType)(t),n=t),!r)return!1;let{allowedBlockTypes:i}=vf(e);if(!Tb(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(Jt(e,l))){u=!0;break}l=e.blocks.parents.get(l)}while(l);return u}return!0},BC=(e,t,o=null)=>{if(e.settings.isPreviewMode||!zj(e,t,o))return!1;let r;t&&typeof t=="object"?(r=t,t=r.name):r=(0,Ot.getBlockType)(t);let n=ju(e,o);if(n&&n!=="contentOnly"||jj(e,o))return!1;let i=ts(e,o??""),s=!!wf(e,o),a=s?o:_f(e,o),l=!!a;if(i==="disabled"&&(!l||t!==(0,Ot.getDefaultBlockName)()))return!1;let u=E_(e,o);if(o&&u===void 0)return!1;let d=Nj(t);if(l&&!d||l&&Jt(e,a)==="core/block")return!1;if(l&&(s||i==="contentOnly"||i==="disabled")&&!_C(e,t,o)){let w=(0,Ot.getDefaultBlockName)();if(t===w){if(!jn(e,o).some(S=>Jt(e,S)===w))return!1}else return!1}let f=Jt(e,o),m=(0,Ot.getBlockType)(f)?.allowedBlocks,g=Tb(m,t);if(g!==!1){let w=u?.allowedBlocks,k=Tb(w,t);k!==null&&(g=k)}let h=r.parent,b=Tb(h,f),v=!0,y=r.ancestor;y&&(v=[o,...nl(e,o)].some(k=>Tb(y,Jt(e,k))));let _=v&&(g===null&&b===null||g===!0||b===!0);return _&&(0,Ioe.applyFilters)("blockEditor.__unstableCanInsertBlockType",_,r,o,{getBlock:Sf.bind(null,e),getBlockParentsByBlockName:Lj.bind(null,e)})},Cb=(0,It.createRegistrySelector)(e=>(0,It.createSelector)(BC,(t,o,r)=>Em(e)(t,r)));function k8e(e,t,o=null){return t.every(r=>Cb(e,Jt(e,r),o))}function jj(e,t){return!!t&&Jt(e,t)==="core/html"}function Hj(e,t){if(e.settings.isPreviewMode||jj(e,yr(e,t)))return!1;let o=ya(e,t);if(o===null)return!0;if(o.lock?.remove!==void 0)return!o.lock.remove;let r=yr(e,t),n=ju(e,r);if(n&&n!=="contentOnly")return!1;let i=!!wf(e,r),s=i?r:_f(e,r),a=!!s,l=Nj(Jt(e,t));if(a&&!l||a&&Jt(e,s)==="core/block")return!1;let u=ts(e,r),d=Jt(e,t),f=(0,Ot.getDefaultBlockName)();return a&&(i||d===f||u==="contentOnly")&&!_C(e,Jt(e,t),r)?d===f?jn(e,r).filter(g=>Jt(e,g)===f).length>1:!1:u!=="disabled"}function Hoe(e,t){return t.every(o=>Hj(e,o))}function Uoe(e,t){if(e.settings.isPreviewMode||jj(e,yr(e,t)))return!1;let o=ya(e,t);if(o===null)return!0;if(o.lock?.move!==void 0)return!o.lock.move;let r=yr(e,t);if(ju(e,r)==="all")return!1;let i=!!_f(e,t),s=Nj(Jt(e,t));if(i&&!s)return!1;let a=!!wf(e,r),l=ts(e,r);return i&&(a||l==="contentOnly")&&!_C(e,Jt(e,t),r)?!1:ts(e,r)!=="disabled"}function x8e(e,t){return t.every(o=>Uoe(e,o))}function Woe(e,t){if(e.settings.isPreviewMode)return!1;let o=ya(e,t);if(o===null)return!0;let{lock:r}=o;return!r?.edit}function S8e(e,t){return e.settings.isPreviewMode||!(0,Ot.hasBlockSupport)(t,"lock",!0)?!1:!!e.settings?.canLockBlocks}function s2(e,t){return e.preferences.insertUsage?.[t]??null}var EC=(e,t,o)=>(0,Ot.hasBlockSupport)(t,"inserter",!0)?BC(e,t.name,o):!1,C8e=(e,t)=>o=>{let r=`${t.id}/${o.name}`,{time:n,count:i=0}=s2(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,innerContent:o.innerContent,keywords:o.keywords||t.keywords,frecency:a2(n,i),isSearchOnly:o.isSearchOnly}},a2=(e,t)=>{if(!e)return t;let o=Date.now()-e;switch(!0){case o<I4e:return t*4;case o<P4e:return t*2;case o<O4e:return t/2;default:return t/4}},Goe=(e,{buildScope:t="inserter"})=>o=>{let r=o.name,n=!1;(0,Ot.hasBlockSupport)(o.name,"multiple",!0)||(n=i2(e,C_(e)).some(({name:f})=>f===o.name));let{time:i,count:s=0}=s2(e,r)||{},a={id:r,name:o.name,title:o.title,icon:o.icon,isDisabled:n,frecency:a2(i,s)};if(t==="transform")return a;let l=(0,Ot.getBlockVariations)(o.name,"inserter"),u=(0,Ot.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}},E8e=(e,t)=>o=>{let r=`${t.id}/${o.name}`,{time:n,count:i=0}=s2(e,r)||{};return{...t,id:r,icon:o.icon||t.icon,title:o.title||t.title,frecency:a2(n,i),variationName:o.name}},T8e=(0,It.createRegistrySelector)(e=>(0,It.createSelector)((t,o=null,r=Poe)=>{let n=m=>{let g=m.wp_pattern_sync_status?ol:{src:ol,foreground:"var(--wp-block-synced-color)"},h=wC(m),{time:b,count:v=0}=s2(t,h.name)||{},y=a2(b,v);return{id:h.name,name:"core/block",initialAttributes:{ref:m.id},title:h.title,icon:g,category:"reusable",keywords:["reusable"],isDisabled:!1,utility:1,frecency:y,content:h.content,get blocks(){return n2(h).blocks},syncStatus:h.syncStatus}},i=BC(t,"core/block",o)?G(e(br)).getReusableBlocks().map(n):[],s=Goe(t,{buildScope:"inserter"}),a=(0,Ot.getBlockTypes)().filter(m=>(0,Ot.hasBlockSupport)(m,"inserter",!0)).map(s);if(r[Tm]!==!1)a=a.filter(m=>EC(t,m,o));else{let{getClosestAllowedInsertionPoint:m}=G(e(br));a=a.filter(g=>zj(t,g,o)&&m(g.name,o)!==null).map(g=>({...g,isAllowedInCurrentRoot:EC(t,g,o)}))}let l=a.reduce((m,g)=>{let{variations:h=[]}=g;if(h.some(({isDefault:b})=>b)||m.push(g),h.length){let b=C8e(t,g);m.push(...h.map(b))}return m},[]),u=(m,g)=>{let{core:h,noncore:b}=m;return(g.name.startsWith("core/")?h:b).push(g),m},{core:d,noncore:f}=l.reduce(u,{core:[],noncore:[]});return[...[...d,...f],...i]},(t,o)=>[(0,Ot.getBlockTypes)(),G(e(br)).getReusableBlocks(),t.blocks.order,t.preferences.insertUsage,...Em(e)(t,o)])),R8e=(0,It.createRegistrySelector)(e=>(0,It.createSelector)((t,o,r=null)=>{let n=Array.isArray(o)?o:[o],i=Goe(t,{buildScope:"transform"}),s=(0,Ot.getBlockTypes)().filter(u=>EC(t,u,r)).map(i),a=Object.fromEntries(Object.entries(s).map(([,u])=>[u.name,u])),l=(0,Ot.getPossibleBlockTransformations)(n).reduce((u,d)=>{let f=a[d?.name];if(!f)return u;let{variationName:p}=d;if(!p)return u.push(f),u;let m=(0,Ot.getBlockVariations)(f.name,"transform")?.find(({name:g})=>g===p);return m?(u.push(E8e(t,f)(m)),u):(u.push(f),u)},[]);return Hu(l,u=>u.frecency,"desc")},(t,o,r)=>[(0,Ot.getBlockTypes)(),t.preferences.insertUsage,...Em(e)(t,r)])),B8e=(e,t=null)=>(0,Ot.getBlockTypes)().some(n=>EC(e,n,t))?!0:BC(e,"core/block",t),Mj=(0,It.createRegistrySelector)(e=>(0,It.createSelector)((t,o=null)=>{if(!o)return;let r=(0,Ot.getBlockTypes)().filter(i=>EC(t,i,o));return BC(t,"core/block",o)&&r.push("core/block"),r},(t,o)=>[(0,Ot.getBlockTypes)(),...Em(e)(t,o)])),I8e=(0,It.createSelector)((e,t=null)=>((0,va.default)('wp.data.select( "core/block-editor" ).__experimentalGetAllowedBlocks',{alternative:'wp.data.select( "core/block-editor" ).getAllowedBlocks',since:"6.2",version:"6.4"}),Mj(e,t)),(e,t)=>Mj.getDependants(e,t));function $oe(e,t=null){if(!t)return;let{defaultBlock:o,directInsert:r}=e.blockListSettings.get(t)??{};if(!(!o||!r))return o}function P8e(e,t=null){return(0,va.default)('wp.data.select( "core/block-editor" ).__experimentalGetDirectInsertBlock',{alternative:'wp.data.select( "core/block-editor" ).getDirectInsertBlock',since:"6.3",version:"6.4"}),$oe(e,t)}var O8e=(0,It.createRegistrySelector)(e=>(t,o)=>{let r=G(e(br)).getPatternBySlug(o);return r?n2(r):null}),Uj=e=>(t,o)=>[...xC(e)(t),...Em(e)(t,o)],Boe=new WeakMap;function A8e(e){let t=Boe.get(e);return t||(t={...e,get blocks(){return n2(e).blocks}},Boe.set(e,t)),t}var M8e=(0,It.createRegistrySelector)(e=>(0,It.createSelector)((t,o=null,r=Poe)=>{let{getAllPatterns:n}=G(e(br)),i=n(),{allowedBlockTypes:s}=vf(t);return i.filter(({inserter:d=!0})=>!!d).map(A8e).filter(d=>kC(xb(d),s)).filter(d=>xb(d).every(({blockName:f})=>r[Tm]!==!1?Cb(t,f,o):zj(t,f,o)))},Uj(e))),N8e=(0,It.createRegistrySelector)(e=>(0,It.createSelector)((t,o,r=null)=>{if(!o)return li;let n=e(br).__experimentalGetAllowedPatterns(r),i=Array.isArray(o)?o:[o],s=n.filter(a=>a?.blockTypes?.some?.(l=>i.includes(l)));return s.length===0?li:s},(t,o,r)=>Uj(e)(t,r))),L8e=(0,It.createRegistrySelector)(e=>((0,va.default)('wp.data.select( "core/block-editor" ).__experimentalGetPatternsByBlockTypes',{alternative:'wp.data.select( "core/block-editor" ).getPatternsByBlockTypes',since:"6.2",version:"6.4"}),e(br).getPatternsByBlockTypes)),D8e=(0,It.createRegistrySelector)(e=>(0,It.createSelector)((t,o,r=null)=>{if(!o||o.some(({clientId:i,innerBlocks:s})=>s.length||l2(t,i)))return li;let n=Array.from(new Set(o.map(({name:i})=>i)));return e(br).getPatternsByBlockTypes(n,r)},(t,o,r)=>Uj(e)(t,r)));function E_(e,t){return e.blockListSettings.get(t)}function vf(e){return e.settings}function V8e(e){return e.blocks.isPersistentChange}function F8e(e){return e.blocks.lastBlockChangeHistoryMode?e.blocks.lastBlockChangeHistoryMode:e.blocks.isPersistentChange===!1?"merge":"persistent"}var z8e=(0,It.createSelector)((e,t=[])=>{let o={};for(let r of t){let n=E_(e,r);n&&(o[r]=n)}return o},e=>[e.blockListSettings]),j8e=(0,It.createRegistrySelector)(e=>(0,It.createSelector)((t,o)=>{(0,va.default)("wp.data.select( 'core/block-editor' ).__experimentalGetReusableBlockTitle",{since:"6.6",version:"6.8"});let r=G(e(br)).getReusableBlocks().find(n=>n.id===o);return r?r.title?.raw:null},()=>[G(e(br)).getReusableBlocks()]));function H8e(e){return e.blocks.isIgnoredChange}function U8e(e){return e.lastBlockAttributesChange}function W8e(){return(0,va.default)('wp.data.select( "core/block-editor" ).hasBlockMovingClientId',{since:"6.7",hint:"Block moving mode feature has been removed"}),!1}function G8e(e){return!!e.automaticChangeStatus}function $8e(e,t){return e.highlightedBlock===t}function l2(e,t){return e.blocks.controlledInnerBlocks.has(t)}var Y8e=(0,It.createSelector)((e,t)=>{if(!t.length)return null;let o=R_(e);if(t.includes(Jt(e,o)))return o;let r=Bm(e),n=Lj(e,o||r[0],t);return n?n[n.length-1]:null},(e,t)=>[e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId,t]);function K8e(e,t,o){let{lastBlockInserted:r}=e;return r.clientIds?.includes(t)&&r.source===o}function q8e(e,t){return e.blockVisibility?.[t]??!0}function Z8e(){(0,va.default)("wp.data.select( 'core/block-editor' ).getHoveredBlockClientId",{since:"6.9",version:"7.1"})}var X8e=(0,It.createSelector)(e=>{let t=new Set(Object.keys(e.blockVisibility).filter(o=>e.blockVisibility[o]));return t.size===0?A4e:t},e=>[e.blockVisibility]);function Yoe(e,t){if(ts(e,t)!=="default")return!1;if(!Woe(e,t))return!0;if(Pj(e)){let n=Sb(e);if(n){if(jn(e,n)?.includes(t))return!0}else if(t&&!yr(e,t))return!0}return((0,Ot.hasBlockSupport)(Jt(e,t),"__experimentalDisableBlockOverlay",!1)?!1:l2(e,t))&&!Voe(e,t)&&!Foe(e,t,!0)}function Q8e(e,t){let o=e.blocks.parents.get(t);for(;o;){if(Yoe(e,o))return!0;o=e.blocks.parents.get(o)}return!1}function ts(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 J8e=(0,It.createRegistrySelector)(e=>(t,o="")=>{let r=o||R_(t);if(!r||wf(t,r))return!1;let{getGroupingBlockName:n}=e(Ot.store),i=Sf(t,r),s=n();return i&&(i.name===s||(0,Ot.getBlockType)(i.name)?.transforms?.ungroup)&&!!i.innerBlocks.length&&Hj(t,r)}),eze=(0,It.createRegistrySelector)(e=>(t,o=li)=>{let{getGroupingBlockName:r}=e(Ot.store),n=r(),i=o?.length?o:Rm(t),s=i?.length?yr(t,i[0]):void 0;return Cb(t,n,s)&&i.length&&Hoe(t,i)}),tze=(e,t)=>((0,va.default)("wp.data.select( 'core/block-editor' ).__unstableGetContentLockingParent",{since:"6.1",version:"6.7"}),Bj(e,t));function oze(e){return(0,va.default)("wp.data.select( 'core/block-editor' ).__unstableGetTemporarilyEditingAsBlocks",{since:"6.1",version:"6.7"}),Ij(e)}var u2={};No(u2,{__experimentalUpdateSettings:()=>Gj,clearBlockRemovalPrompt:()=>lze,clearRequestedInspectorTab:()=>Eze,closeListViewContentPanel:()=>kze,deleteStyleOverride:()=>dze,editContentOnlySection:()=>Yj,ensureDefaultBlock:()=>Qoe,expandBlock:()=>gze,hideBlockInterface:()=>ize,hideViewportModal:()=>Sze,openListViewContentPanel:()=>wze,privateRemoveBlocks:()=>$j,requestInspectorTab:()=>Cze,resetZoomLevel:()=>vze,setBlockRemovalRules:()=>cze,setInsertionPoint:()=>hze,setLastFocus:()=>fze,setResponsiveEditing:()=>Ize,setSelectedBlockStyleState:()=>Tze,setSelectedBlockStyleStateCanvasPreview:()=>Rze,setStyleOverride:()=>uze,setStyleStateViewport:()=>Bze,setZoomLevel:()=>yze,showBlockInterface:()=>sze,showViewportModal:()=>xze,startDragging:()=>pze,stopDragging:()=>mze,stopEditingContentOnlySection:()=>bze,toggleBlockSpotlight:()=>_ze});var qoe=c(Mt(),1),Zoe=c(Yo(),1),Xoe=c(q(),1),c2=c(ce(),1),rze=e=>Array.isArray(e)?e:[e],nze=["inserterMediaCategories","blockInspectorAnimation","mediaSideload"];function Gj(e,{stripExperimentalSettings:t=!1,reset:o=!1}={}){let r=e;Object.hasOwn(r,"__unstableIsPreviewMode")&&((0,qoe.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){n={};for(let i in r)nze.includes(i)||(n[i]=r[i])}return{type:"UPDATE_SETTINGS",settings:n,reset:o}}function ize(){return{type:"HIDE_BLOCK_INTERFACE"}}function sze(){return{type:"SHOW_BLOCK_INTERFACE"}}var $j=(e,t=!0,o=!1)=>({select:r,dispatch:n,registry:i})=>{if(!e||!e.length||(e=rze(e),!r.canRemoveBlocks(e)))return;let a=!o&&r.getBlockRemovalRules();if(a){let f=function(h){let b=[],v=[...h];for(;v.length;){let{innerBlocks:y,..._}=v.shift();v.push(...y),b.push(_)}return b};var l=f;let p=e.map(r.getBlock),m=f(p),g;for(let h of a)if(g=h.callback(m),g){n(aze(e,t,g));return}}let u=!1,d=r.getBlockRootClientId(e[0]);if(d&&!(0,c2.getBlockType)(r.getBlockName(d))?.parent?.length){let f=r.getBlockOrder(d);u=f.length===e.length&&f.every(p=>e.includes(p))&&(0,c2.isUnmodifiedBlock)(r.__unstableGetBlockWithoutInnerBlocks(d))}t&&n.selectPreviousBlock(u?d:e[0],t),i.batch(()=>{n({type:"REMOVE_BLOCKS",clientIds:u?[d]:e}),n(Qoe())})},Qoe=()=>({select:e,dispatch:t})=>{if(e.getBlockCount()>0)return;let{__unstableHasCustomAppender:r}=e.getSettings();r||t.insertDefaultBlock()};function aze(e,t,o){return{type:"DISPLAY_BLOCK_REMOVAL_PROMPT",clientIds:e,selectPrevious:t,message:o}}function lze(){return{type:"CLEAR_BLOCK_REMOVAL_PROMPT"}}function cze(e=!1){return{type:"SET_BLOCK_REMOVAL_RULES",rules:e}}function uze(e,t){return{type:"SET_STYLE_OVERRIDE",id:e,style:t}}function dze(e){return{type:"DELETE_STYLE_OVERRIDE",id:e}}function fze(e=null){return{type:"LAST_FOCUS",lastFocus:e}}function pze(){return{type:"START_DRAGGING"}}function mze(){return{type:"STOP_DRAGGING"}}function gze(e){return{type:"SET_BLOCK_EXPANDED_IN_LIST_VIEW",clientId:e}}function hze(e){return{type:"SET_INSERTION_POINT",value:e}}function Yj(e){return{type:"EDIT_CONTENT_ONLY_SECTION",clientId:e}}function bze(){return{type:"EDIT_CONTENT_ONLY_SECTION"}}var yze=(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,Zoe.speak)((0,Xoe.__)("You are currently in zoom-out mode."))}}o({type:"SET_ZOOM_LEVEL",zoom:e})};function vze(){return{type:"RESET_ZOOM_LEVEL"}}function _ze(e,t){return{type:"TOGGLE_BLOCK_SPOTLIGHT",clientId:e,hasBlockSpotlight:t}}function wze(){return{type:"OPEN_LIST_VIEW_CONTENT_PANEL"}}function kze(){return{type:"CLOSE_LIST_VIEW_CONTENT_PANEL"}}function xze(e){return{type:"SHOW_VIEWPORT_MODAL",clientIds:e}}function Sze(){return{type:"HIDE_VIEWPORT_MODAL"}}function Cze(e,t={}){return{type:"REQUEST_INSPECTOR_TAB",tabName:e,options:t}}function Eze(){return{type:"CLEAR_REQUESTED_INSPECTOR_TAB"}}function Tze(e,t){return{type:"SET_SELECTED_BLOCK_STYLE_STATE",clientId:e,value:t}}function Rze(e,t){return{type:"SET_SELECTED_BLOCK_STYLE_STATE_CANVAS_PREVIEW",clientId:e,value:t}}function Bze(e){return{type:"SET_STYLE_STATE_VIEWPORT",viewport:e}}function Ize(e){return{type:"SET_RESPONSIVE_EDITING",enabled:e}}var Zj={};No(Zj,{__unstableDeleteSelection:()=>e7e,__unstableExpandSelection:()=>o7e,__unstableIncrementListViewExpandRevision:()=>L7e,__unstableMarkAutomaticChange:()=>_7e,__unstableMarkLastChangeAsPersistent:()=>y7e,__unstableMarkNextChangeAsNotPersistent:()=>v7e,__unstableSaveReusableBlock:()=>b7e,__unstableSetAllListViewPanelsOpen:()=>M7e,__unstableSetEditorMode:()=>w7e,__unstableSetOpenListViewPanel:()=>A7e,__unstableSetTemporarilyEditingAsBlocks:()=>B7e,__unstableSplitSelection:()=>t7e,__unstableToggleListViewPanel:()=>N7e,clearSelectedBlock:()=>Uze,duplicateBlocks:()=>x7e,enterFormattedText:()=>d7e,exitFormattedText:()=>f7e,flashBlock:()=>E7e,hideInsertionPoint:()=>Xze,hoverBlock:()=>Dze,insertAfterBlock:()=>C7e,insertBeforeBlock:()=>S7e,insertBlock:()=>qze,insertBlocks:()=>ure,insertDefaultBlock:()=>m7e,mergeBlocks:()=>r7e,moveBlockToPosition:()=>Kze,moveBlocksDown:()=>$ze,moveBlocksToPosition:()=>lre,moveBlocksUp:()=>Yze,multiSelect:()=>Hze,receiveBlocks:()=>Aze,registerInserterMediaCategory:()=>I7e,removeBlock:()=>n7e,removeBlocks:()=>dre,replaceBlock:()=>Gze,replaceBlocks:()=>sre,replaceInnerBlocks:()=>i7e,resetBlocks:()=>Pze,resetSelection:()=>Oze,selectBlock:()=>Lze,selectNextBlock:()=>Fze,selectPreviousBlock:()=>Vze,selectionChange:()=>p7e,setBlockEditingMode:()=>P7e,setBlockMovingClientId:()=>k7e,setBlockVisibility:()=>R7e,setHasControlledInnerBlocks:()=>T7e,setTemplateValidity:()=>Qze,showInsertionPoint:()=>Zze,startDraggingBlocks:()=>c7e,startMultiSelect:()=>zze,startTyping:()=>a7e,stopDraggingBlocks:()=>u7e,stopMultiSelect:()=>jze,stopTyping:()=>l7e,synchronizeTemplate:()=>Jze,toggleBlockHighlight:()=>qj,toggleBlockMode:()=>s7e,toggleSelection:()=>Wze,unsetBlockEditingMode:()=>O7e,updateBlock:()=>Nze,updateBlockAttributes:()=>Mze,updateBlockListSettings:()=>g7e,updateSettings:()=>h7e,validateBlocksToTemplate:()=>ire});var rt=c(ce(),1),d2=c(Yo(),1),Uu=c(q(),1),rre=c(Ls(),1),Io=c(Ar(),1),Ef=c(Mt(),1),nre=c(B_(),1);var tre=c(Ar(),1),Cf="\x86";function IC(e){if(e)return Object.keys(e).find(t=>{let o=e[t];return(typeof o=="string"||o instanceof tre.RichTextData)&&o.toString().indexOf(Cf)!==-1})}function Kj(e){for(let[t,o]of Object.entries(e.attributes))if(o.source==="rich-text"||o.source==="html")return t}var ore=c(ce(),1);function I_(e,t){if(!t)return{};let o=new Set((0,ore.getBlockAttributesNamesByRole)(e,"content"));return o.add("metadata"),Object.fromEntries(Object.entries(t).filter(([r])=>!o.has(r)))}var P_=e=>Array.isArray(e)?e:[e],Pze=e=>({dispatch:t})=>{t({type:"RESET_BLOCKS",blocks:e}),t(ire(e))},ire=e=>({select:t,dispatch:o})=>{let r=t.getTemplate(),n=t.getTemplateLock(),i=!r||n!=="all"||(0,rt.doBlocksMatchTemplate)(e,r),s=t.isValidTemplate();if(i!==s)return o.setTemplateValidity(i),i};function Oze(e,t,o){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t,initialPosition:o}}function Aze(e){return(0,Ef.default)('wp.data.dispatch( "core/block-editor" ).receiveBlocks',{since:"5.9",alternative:"resetBlocks or insertBlocks"}),{type:"RECEIVE_BLOCKS",blocks:e}}function Mze(e,t,o={uniqueByBlock:!1}){return typeof o=="boolean"&&(o={uniqueByBlock:o}),{type:"UPDATE_BLOCK_ATTRIBUTES",clientIds:P_(e),attributes:t,options:o}}function Nze(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function Lze(e,t=0){return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}function Dze(){return(0,Ef.default)('wp.data.dispatch( "core/block-editor" ).hoverBlock',{since:"6.9",version:"7.1"}),{type:"DO_NOTHING"}}var Vze=(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)}}},Fze=e=>({select:t,dispatch:o})=>{let r=t.getNextBlockClientId(e);r&&o.selectBlock(r)};function zze(){return{type:"START_MULTI_SELECT"}}function jze(){return{type:"STOP_MULTI_SELECT"}}var Hze=(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(),l=r.getClientIdsOfDescendants(r.getMultiSelectedBlockClientIds()).length;(0,d2.speak)(l?(0,Uu.sprintf)((0,Uu._n)("%1$s block selected, %2$s including nested blocks.","%1$s blocks selected, %2$s including nested blocks.",a),a,a+l):(0,Uu.sprintf)((0,Uu._n)("%s block selected.","%s blocks selected.",a),a),"assertive")};function Uze(){return{type:"CLEAR_SELECTED_BLOCK"}}function Wze(e=!0){return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}var sre=(e,t,o,r=0,n)=>({select:i,dispatch:s,registry:a})=>{e=P_(e),t=P_(t);let l=i.getBlockRootClientId(e[0]);for(let d=0;d<t.length;d++){let f=t[d];if(!i.canInsertBlockType(f.name,l))return}let u=f2(t);a.batch(()=>{s({type:"REPLACE_BLOCKS",clientIds:e,blocks:u,time:Date.now(),indexToSelect:o,initialPosition:r,meta:n}),cre(i,s,t,u,r),s.ensureDefaultBlock()})};function Gze(e,t){return sre(e,t)}var are=e=>(t,o)=>({select:r,dispatch:n})=>{r.canMoveBlocks(t)&&n({type:e,clientIds:P_(t),rootClientId:o})},$ze=are("MOVE_BLOCKS_DOWN"),Yze=are("MOVE_BLOCKS_UP"),lre=(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 Kze(e,t="",o="",r){return lre([e],t,o,r)}function qze(e,t,o,r,n,i){return ure([e],t,o,r,n,i)}function f2(e,t=new Set){let o=!1,r=e.map(n=>{let{innerBlocks:i}=n;if(i?.length)i=f2(i,t);else if(!t.has(n.name)){let{template:s}=(0,rt.getBlockType)(n.name)??{};s?.length&&(i=f2((0,rt.synchronizeBlocksWithTemplate)([],s),new Set(t).add(n.name)))}return i===n.innerBlocks?n:(o=!0,{...n,innerBlocks:i})});return o?r:e}function cre(e,t,o,r,n){let i=e.getSelectedBlockClientId();if(!i)return;let s=r.findIndex(l=>l.clientId===i);if(s===-1||r[s]===o[s]||!r[s].innerBlocks.length||!(0,rt.getBlockType)(r[s].name)?.templateInsertUpdatesSelection)return;let a=r[s];for(;a.innerBlocks[0];)a=a.innerBlocks[0];t.selectBlock(a.clientId,n)}var ure=(e,t,o,r=!0,n=0,i)=>({select:s,dispatch:a,registry:l})=>{n!==null&&typeof n=="object"&&(i=n,n=0,(0,Ef.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=P_(e);let u=[];for(let d of e)s.canInsertBlockType(d.name,o)&&u.push(d);if(u.length){let d=f2(u);l.batch(()=>{a({type:"INSERT_BLOCKS",blocks:d,index:t,rootClientId:o,time:Date.now(),updateSelection:r,initialPosition:r?n:null,meta:i}),cre(s,a,u,d,n)})}};function Zze(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 Xze=()=>({select:e,dispatch:t})=>{e.isBlockInsertionPointVisible()&&t({type:"HIDE_INSERTION_POINT"})};function Qze(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}var Jze=()=>({select:e,dispatch:t})=>{t({type:"SYNCHRONIZE_TEMPLATE"});let o=e.getBlocks(),r=e.getTemplate(),n=(0,rt.synchronizeBlocksWithTemplate)(o,r);t.resetBlocks(n)},e7e=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,p;u>d?(f=i,p=n):(f=n,p=i);let m=e?p:f,g=o.getBlock(m.clientId),h=(0,rt.getBlockType)(g.name);if(!h.merge)return;let b=f,v=p,y=o.getBlock(b.clientId),_=o.getBlock(v.clientId),w=y.attributes[b.attributeKey],k=_.attributes[v.attributeKey],x=(0,Io.create)({html:w}),S=(0,Io.create)({html:k});x=(0,Io.remove)(x,b.offset,x.text.length),S=(0,Io.insert)(S,Cf,0,v.offset);let C=(0,rt.cloneBlock)(y,{[b.attributeKey]:(0,Io.toHTMLString)({value:x})}),R=(0,rt.cloneBlock)(_,{[v.attributeKey]:(0,Io.toHTMLString)({value:S})}),E=e?C:R,I=y.name===_.name?[E]:(0,rt.switchToBlockType)(E,h.name);if(!I||!I.length)return;let O;if(e){let D=I.pop();O=h.merge(D.attributes,R.attributes)}else{let D=I.shift();O=h.merge(C.attributes,D.attributes)}let A=IC(O),P=O[A],L=(0,Io.create)({html:P}),H=L.text.indexOf(Cf),N=(0,Io.remove)(L,H,H+1),M=(0,Io.toHTMLString)({value:N});O[A]=M;let V=o.getSelectedBlockClientIds(),j=[...e?I:[],{...g,attributes:{...g.attributes,...O},innerBlocks:_.innerBlocks},...e?[]:I];t.batch(()=>{r.selectionChange(g.clientId,A,H,H),r.replaceBlocks(V,j,0,o.getSelectedBlocksInitialCaretPosition())})},t7e=(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,p;u>d?(f=i,p=n):(f=n,p=i);let m=f,g=p,h=o.getBlock(m.clientId),b=o.getBlock(g.clientId),v=(0,rt.getBlockType)(h.name),y=(0,rt.getBlockType)(b.name),_=typeof m.attributeKey=="string"?m.attributeKey:Kj(v),w=typeof g.attributeKey=="string"?g.attributeKey:Kj(y),k=o.getBlockAttributes(m.clientId);if(k?.metadata?.bindings?.[_]){if(e.length){let{createWarningNotice:W}=t.dispatch(rre.store);W((0,Uu.__)("Blocks can't be inserted into other blocks with bindings"),{type:"snackbar"});return}r.insertAfterBlock(m.clientId);return}if(!_||!w||typeof n.offset>"u"||typeof i.offset>"u")return;if(m.clientId===g.clientId&&_===w&&m.offset===g.offset){if(e.length){if((0,rt.isUnmodifiedDefaultBlock)(h,"content")){r.replaceBlocks([m.clientId],e,e.length-1,-1);return}}else if(!o.getBlockOrder(m.clientId).length){let W=function(){let J=(0,rt.getDefaultBlockName)();if(o.canInsertBlockType(J,s))return(0,rt.createBlock)(J);let U=o.getBlockName(m.clientId);return(0,rt.createBlock)(U,I_(U,k))};var S=W;let ee=k[_].length;if(m.offset===0&&ee){r.insertBlocks([W()],o.getBlockIndex(m.clientId),s,!1);return}if(m.offset===ee){r.insertBlocks([W()],o.getBlockIndex(m.clientId)+1,s);return}}}let C=h.attributes[_],R=b.attributes[w],E=(0,Io.create)({html:C}),I=(0,Io.create)({html:R});E=(0,Io.remove)(E,m.offset,E.text.length),I=(0,Io.remove)(I,0,g.offset);let O={...h,innerBlocks:h.clientId===b.clientId?[]:h.innerBlocks,attributes:{...h.attributes,[_]:(0,Io.toHTMLString)({value:E})}},A={...b,clientId:h.clientId===b.clientId?(0,rt.createBlock)(b.name).clientId:b.clientId,attributes:{...b.attributes,[w]:(0,Io.toHTMLString)({value:I})}},P=(0,rt.getDefaultBlockName)();if(h.clientId===b.clientId&&P&&A.name!==P&&o.canInsertBlockType(P,s)){let W=(0,rt.switchToBlockType)(A,P);W?.length===1&&(A=W[0])}if(!e.length){r.replaceBlocks(o.getSelectedBlockClientIds(),[O,A]);return}let L,H=[],N=[...e],M=N.shift(),V=(0,rt.getBlockType)(O.name),j=V.merge&&M.name===V.name?[M]:(0,rt.switchToBlockType)(M,V.name);if(j?.length){let W=j.shift();O={...O,attributes:{...O.attributes,...V.merge(O.attributes,W.attributes)}},H.push(O),L={clientId:O.clientId,attributeKey:_,offset:(0,Io.create)({html:O.attributes[_]}).text.length},N.unshift(...j)}else(0,rt.isUnmodifiedBlock)(O)||H.push(O),H.push(M);let D=N.pop(),z=(0,rt.getBlockType)(A.name);if(N.length&&H.push(...N),D){let W=z.merge&&z.name===D.name?[D]:(0,rt.switchToBlockType)(D,z.name);if(W?.length){let ee=W.pop();H.push({...A,attributes:{...A.attributes,...z.merge(ee.attributes,A.attributes)}}),H.push(...W),L={clientId:A.clientId,attributeKey:w,offset:(0,Io.create)({html:ee.attributes[w]}).text.length}}else H.push(D),(0,rt.isUnmodifiedBlock)(A)||H.push(A)}else(0,rt.isUnmodifiedBlock)(A)||H.push(A);t.batch(()=>{r.replaceBlocks(o.getSelectedBlockClientIds(),H,H.length-1,0),L&&r.selectionChange(L.clientId,L.attributeKey,L.offset,L.offset)})},o7e=()=>({select:e,dispatch:t})=>{let o=e.getSelectionStart(),r=e.getSelectionEnd();t.selectionChange({start:{clientId:o.clientId},end:{clientId:r.clientId}})},r7e=(e,t)=>({registry:o,select:r,dispatch:n})=>{let i=e,s=t,a=r.getBlock(i),l=(0,rt.getBlockType)(a.name);if(!l||r.getBlockEditingMode(i)==="disabled"||r.getBlockEditingMode(s)==="disabled")return;let u=r.getBlock(s);if(!l.merge&&(0,rt.getBlockSupport)(a.name,"__experimentalOnMerge")){let k=(0,rt.switchToBlockType)(u,l.name);if(k?.length!==1){n.selectBlock(a.clientId);return}let[x]=k;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 S=r.getNextBlockClientId(i);if(S&&r.getBlockName(i)===r.getBlockName(S)){let C=r.getBlockAttributes(i),R=r.getBlockAttributes(S);Object.keys(C).every(E=>C[E]===R[E])&&(n.moveBlocksToPosition(r.getBlockOrder(S),S,i),n.removeBlock(S,!1))}});return}if((0,rt.isUnmodifiedDefaultBlock)(a)||l.merge&&a.name!==u.name&&(0,rt.isUnmodifiedBlock)(a,"content")){r.isBlockSelected(i)?o.batch(()=>{n.removeBlock(i,!1),n.selectBlock(s,0)}):n.removeBlock(i,!1);return}if((0,rt.isUnmodifiedDefaultBlock)(u)){n.removeBlock(s,r.isBlockSelected(s));return}if(!l.merge){(0,rt.isUnmodifiedBlock)(u,"content")?n.removeBlock(s,r.isBlockSelected(s)):n.selectBlock(a.clientId);return}let d=(0,rt.getBlockType)(u.name),{clientId:f,attributeKey:p,offset:m}=r.getSelectionStart(),h=(f===i?l:d).attributes[p],b=(f===i||f===s)&&p!==void 0&&m!==void 0&&!!h;h||(typeof p=="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 p}`):window.console.error("The RichText identifier prop does not match any attributes defined by the block."));let v=(0,rt.cloneBlock)(a),y=(0,rt.cloneBlock)(u);if(b){let k=f===i?v:y,x=k.attributes[p],S=(0,Io.insert)((0,Io.create)({html:x}),Cf,m,m);k.attributes[p]=(0,Io.toHTMLString)({value:S})}let _=a.name===u.name?[y]:(0,rt.switchToBlockType)(y,a.name);if(!_||!_.length)return;let w=l.merge(v.attributes,_[0].attributes);if(b){let k=IC(w),x=w[k],S=(0,Io.create)({html:x}),C=S.text.indexOf(Cf),R=(0,Io.remove)(S,C,C+1),E=(0,Io.toHTMLString)({value:R});w[k]=E,n.selectionChange(a.clientId,k,C,C)}n.replaceBlocks([a.clientId,u.clientId],[{...a,attributes:{...a.attributes,...w}},..._.slice(1)],0)},dre=(e,t=!0)=>$j(e,t);function n7e(e,t){return dre([e],t)}function i7e(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 s7e(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function a7e(){return{type:"START_TYPING"}}function l7e(){return{type:"STOP_TYPING"}}function c7e(e=[]){return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function u7e(){return{type:"STOP_DRAGGING_BLOCKS"}}function d7e(){return(0,Ef.default)('wp.data.dispatch( "core/block-editor" ).enterFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function f7e(){return(0,Ef.default)('wp.data.dispatch( "core/block-editor" ).exitFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function p7e(e,t,o,r){return typeof e=="string"?{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:o,endOffset:r}:{type:"SELECTION_CHANGE",...e}}var m7e=(e,t,o)=>({dispatch:r})=>{let n=(0,rt.getDefaultBlockName)();if(!n)return;let i=(0,rt.createBlock)(n,e);return r.insertBlock(i,o,t)};function g7e(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function h7e(e){return Gj(e,{stripExperimentalSettings:!0})}function b7e(){return(0,Ef.default)('wp.data.dispatch( "core/block-editor" ).__unstableSaveReusableBlock',{since:"7.1"}),{type:"DO_NOTHING"}}function y7e(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function v7e({history:e="merge"}={}){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT",history:e}}var _7e=()=>({dispatch:e})=>{e({type:"MARK_AUTOMATIC_CHANGE"});let{requestIdleCallback:t=o=>setTimeout(o,100)}=window;t(()=>{e({type:"MARK_AUTOMATIC_CHANGE_FINAL"})})},w7e=e=>({registry:t})=>{t.dispatch(nre.store).set("core","editorTool",e),e==="navigation"?(0,d2.speak)((0,Uu.__)("You are currently in Write mode.")):e==="edit"&&(0,d2.speak)((0,Uu.__)("You are currently in Design mode."))};function k7e(){return(0,Ef.default)('wp.data.dispatch( "core/block-editor" ).setBlockMovingClientId',{since:"6.7",hint:"Block moving mode feature has been removed"}),{type:"DO_NOTHING"}}var x7e=(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,rt.hasBlockSupport)(d,"multiple",!0)))return;let s=o.getBlockRootClientId(e[0]),a=P_(e),l=o.getBlockIndex(a[a.length-1]),u=n.map(d=>(0,rt.cloneSanitizedBlock)(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)},S7e=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=(0,rt.createBlock)(i.name,{...i.attributes,...t.getBlockName(e)===i.name?I_(i.name,t.getBlockAttributes(e)):{}});return o.insertBlock(s,n,r)},C7e=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=(0,rt.createBlock)(i.name,{...i.attributes,...t.getBlockName(e)===i.name?I_(i.name,t.getBlockAttributes(e)):{}});return o.insertBlock(s,n+1,r)};function qj(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}var E7e=(e,t=150)=>async({dispatch:o})=>{o(qj(e,!0)),await new Promise(r=>setTimeout(r,t)),o(qj(e,!1))};function T7e(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}function R7e(e){return{type:"SET_BLOCK_VISIBILITY",updates:e}}function B7e(e){return(0,Ef.default)("wp.data.dispatch( 'core/block-editor' ).__unstableSetTemporarilyEditingAsBlocks",{since:"7.0"}),Yj(e)}var I7e=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[]|InserterMediaResponse>`.");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 P7e(e="",t){return{type:"SET_BLOCK_EDITING_MODE",clientId:e,mode:t}}function O7e(e=""){return{type:"UNSET_BLOCK_EDITING_MODE",clientId:e}}function A7e(e){return{type:"SET_OPEN_LIST_VIEW_PANEL",clientId:e}}function M7e(){return{type:"SET_ALL_LIST_VIEW_PANELS_OPEN"}}function N7e(e,t){return{type:"TOGGLE_LIST_VIEW_PANEL",clientId:e,isOpen:t}}function L7e(){return{type:"INCREMENT_LIST_VIEW_EXPAND_REVISION"}}var O_={reducer:xte,selectors:Wj,actions:Zj},B=(0,p2.createReduxStore)(br,{...O_,persist:["preferences"]}),fre=(0,p2.registerStore)(br,{...O_,persist:["preferences"]});G(fre).registerPrivateActions(u2);G(fre).registerPrivateSelectors(o2);G(B).registerPrivateActions(u2);G(B).registerPrivateSelectors(o2);var A_=c(Y(),1),pre=c(q(),1);var Sc=c(T(),1);function D7e({className:e,actions:t,children:o,secondaryActions:r}){return(0,Sc.jsx)("div",{style:{display:"contents",all:"initial"},children:(0,Sc.jsx)("div",{className:$(e,"block-editor-warning"),children:(0,Sc.jsxs)("div",{className:"block-editor-warning__contents",children:[(0,Sc.jsx)("p",{className:"block-editor-warning__message",children:o}),(t?.length>0||r)&&(0,Sc.jsxs)("div",{className:"block-editor-warning__actions",children:[t?.length>0&&t.map((n,i)=>(0,Sc.jsx)("span",{className:"block-editor-warning__action",children:n},i)),r&&(0,Sc.jsx)(A_.DropdownMenu,{className:"block-editor-warning__secondary",icon:ha,label:(0,pre.__)("More options"),popoverProps:{placement:"bottom-end",className:"block-editor-warning__dropdown"},noIcons:!0,children:()=>(0,Sc.jsx)(A_.MenuGroup,{children:r.map((n,i)=>(0,Sc.jsx)(A_.MenuItem,{onClick:n.onClick,children:n.title},i))})})]})]})})})}var Im=D7e;var M_=c(T(),1);function hre({originalBlockClientId:e,name:t,onReplace:o}){let{selectBlock:r}=(0,gre.useDispatch)(B),n=(0,mre.getBlockType)(t);return(0,M_.jsxs)(Im,{actions:[(0,M_.jsx)(Xj.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>r(e),children:(0,m2.__)("Find original")},"find-original"),(0,M_.jsx)(Xj.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>o([]),children:(0,m2.__)("Remove")},"remove")],children:[(0,M_.jsxs)("strong",{children:[n?.title,": "]}),(0,m2.__)("This block can only be used once.")]})}var PC=c(T(),1);function b2({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:p={}}=u,{bindings:m}=p,g=(0,g2.hasBlockSupport)(s,"layout",!1)||(0,g2.hasBlockSupport)(s,"__experimentalLayout",!1),b=!!kt()[T0]||(0,g2.hasBlockSupport)(s,"listView")||s==="core/navigation",{originalBlockClientId:v}=(0,h2.useContext)(Tn);return(0,PC.jsxs)(CB,{value:(0,h2.useMemo)(()=>({name:s,isSelected:a,clientId:l,layout:g?f:null,__unstableLayoutClassNames:d,[Lu]:e,[o_]:t,[r_]:o&&r!=="disabled",[n_]:r,[i_]:m,[SB]:n,[T0]:b}),[s,a,l,g,f,d,e,t,o,r,m,n,b]),children:[(0,PC.jsx)(cte,{...i}),v&&(0,PC.jsx)(hre,{originalBlockClientId:v,name:s,onReplace:i.onReplace})]})}function je(...e){let{clientId:t=null}=kt();return(0,bre.useSelect)(o=>G(o(B)).getBlockSettings(t,...e),[t,...e])}function vre(e){(0,yre.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]=je(e);return t}var y2=c(T(),1),_re=([e,...t])=>e.toUpperCase()+t.join(""),V7e=e=>(0,Rb.createHigherOrderComponent)(t=>function(r){return(0,y2.jsx)(t,{...r,colors:e})},"withCustomColorPalette"),F7e=()=>(0,Rb.createHigherOrderComponent)(e=>function(o){let[r,n,i]=je("color.palette.custom","color.palette.theme","color.palette.default"),s=(0,N_.useMemo)(()=>[...r||[],...n||[],...i||[]],[r,n,i]);return(0,y2.jsx)(e,{...o,colors:s})},"withEditorColorPalette");function wre(e,t){let o=e.reduce((r,n)=>({...r,...typeof n=="string"?{[n]:Is(n)}:n}),{});return(0,Rb.compose)([t,r=>function(i){let{colors:s,...a}=i,{attributes:l,setAttributes:u}=a,d=(0,N_.useRef)(null),f=(0,N_.useMemo)(()=>{let m=d.current,g=Object.fromEntries(Object.entries(o).flatMap(([h,b])=>{let v=`custom${_re(h)}`,y=_re(h),_=Du(s,l[h],l[v]),w=m?.[h],k=w?.color===_.color&&w?w:{..._,class:el(b,_.slug)},x=S=>{let C=RB(s,S);u({[h]:C?.slug||void 0,[v]:C?.slug?void 0:S})};return[[h,k],[`set${y}`,x]]}));return d.current=g,g},[l,s,u]),p=(0,N_.useMemo)(()=>({getMostReadableColor:m=>qee(s,m)}),[s]);return(0,y2.jsx)(r,{...a,...f,colorUtils:p})}])}function kre(e){return(...t)=>{let o=V7e(e);return(0,Rb.createHigherOrderComponent)(wre(t,o),"withCustomColors")}}function xre(...e){let t=F7e();return(0,Rb.createHigherOrderComponent)(wre(e,t),"withColors")}var v2=c(F(),1),_2=c(te(),1);function L_(e){if(e)return`has-${e}-gradient-background`}function w2(e,t){let o=e?.find(r=>r.slug===t);return o&&o.gradient}function Sre(e,t){return e?.find(r=>r.gradient===t)}function Cre(e,t){let o=Sre(e,t);return o&&o.slug}function z7e({gradientAttribute:e="gradient",customGradientAttribute:t="customGradient"}={}){let{clientId:o}=kt(),[r,n,i]=je("color.gradients.custom","color.gradients.theme","color.gradients.default"),s=(0,v2.useMemo)(()=>[...r||[],...n||[],...i||[]],[r,n,i]),{gradient:a,customGradient:l}=(0,_2.useSelect)(m=>{let{getBlockAttributes:g}=m(B),h=g(o)||{};return{customGradient:h[t],gradient:h[e]}},[o,e,t]),{updateBlockAttributes:u}=(0,_2.useDispatch)(B),d=(0,v2.useCallback)(m=>{let g=Cre(s,m);if(g){u(o,{[e]:g,[t]:void 0});return}u(o,{[e]:void 0,[t]:m})},[s,o,u]),f=L_(a),p;return a?p=w2(s,a):p=l,{gradientClass:f,gradientValue:p,setGradient:d}}var D_=(e,t,o)=>{if(t){let r=e?.find(({slug:n})=>n===t);if(r)return r}return{size:o}};function Qj(e,t){let o=e?.find(({size:r})=>r===t);return o||{size:t}}function Pm(e){if(e)return`has-${Is(e)}-font-size`}var j7e="1600px",H7e="320px",U7e=1,W7e=.25,G7e=.75,$7e="14px";function Ere({minimumFontSize:e,maximumFontSize:t,fontSize:o,minimumViewportWidth:r=H7e,maximumViewportWidth:n=j7e,scaleFactor:i=U7e,minimumFontSizeLimit:s}){if(s=Om(s)?s:$7e,o){let _=Om(o);if(!_?.unit)return null;let w=Om(s,{coerceTo:_.unit});if(w?.value&&!e&&!t&&_?.value<=w?.value)return null;if(t||(t=`${_.value}${_.unit}`),!e){let k=_.unit==="px"?_.value:_.value*16,x=Math.min(Math.max(1-.075*Math.log2(k),W7e),G7e),S=OC(_.value*x,3);w?.value&&S<w?.value?e=`${w.value}${w.unit}`:e=`${S}${_.unit}`}}let a=Om(e),l=a?.unit||"rem",u=Om(t,{coerceTo:l});if(!a||!u)return null;let d=Om(e,{coerceTo:"rem"}),f=Om(n,{coerceTo:l}),p=Om(r,{coerceTo:l});if(!f||!p||!d)return null;let m=f.value-p.value;if(!m)return null;let g=OC(p.value/100,3),h=OC(g,3)+l,b=100*((u.value-a.value)/m),v=OC((b||1)*i,3),y=`${d.value}${d.unit} + ((1vw - ${h}) * ${v})`;return`clamp(${e}, ${y}, ${t})`}function Om(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:OC(d,3),unit:u}}function OC(e,t=3){let o=Math.pow(10,t);return Number.isFinite(e)?parseFloat(Math.round(e*o)/o):void 0}var Tre=c(Y(),1);var Rre=c(T(),1);function Y7e(e){let[t,o]=je("typography.fontSizes","typography.customFontSize");return(0,Rre.jsx)(Tre.FontSizePicker,{...e,fontSizes:t,disableCustomFontSizes:!o})}var Jj=Y7e;var AC=c(ue(),1),Ire=c(F(),1);var eH=c(T(),1),K7e=[],Bre=([e,...t])=>e.toUpperCase()+t.join(""),Pre=(...e)=>{let t=e.reduce((o,r)=>(o[r]=`custom${Bre(r)}`,o),{});return(0,AC.createHigherOrderComponent)((0,AC.compose)([(0,AC.createHigherOrderComponent)(o=>function(n){let[i]=je("typography.fontSizes");return(0,eH.jsx)(o,{...n,fontSizes:i||K7e})},"withFontSizes"),o=>class extends Ire.Component{constructor(n){super(n),this.setters=this.createSetters(),this.state={}}createSetters(){return Object.entries(t).reduce((n,[i,s])=>{let a=Bre(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 p=n[d],m=D_(i,p,n[f]);return u[d]={...m,class:Pm(p)},u},{});return{...s,...l}}render(){return(0,eH.jsx)(o,{...this.props,fontSizes:void 0,...this.state,...this.setters})}}]),"withFontSizes")};var Bb=c(q(),1),k2=c(Y(),1);var Ore=c(T(),1),q7e=[{icon:gm,title:(0,Bb.__)("Align text left"),align:"left"},{icon:cb,title:(0,Bb.__)("Align text center"),align:"center"},{icon:hm,title:(0,Bb.__)("Align text right"),align:"right"}],Z7e={placement:"bottom-start"};function X7e({value:e,onChange:t,alignmentControls:o=q7e,label:r=(0,Bb.__)("Align text"),description:n,isCollapsed:i=!0,isToolbar:s}){function a(p){return()=>t(e===p?void 0:p)}let l=o.find(p=>p.align===e);function u(){return l?l.icon:(0,Bb.isRTL)()?hm:gm}let d=s?k2.ToolbarGroup:k2.ToolbarDropdownMenu,f=s?{isCollapsed:i}:{toggleProps:n?{description:n}:{},popoverProps:Z7e};return(0,Ore.jsx)(d,{icon:u(),label:r,controls:o.map(p=>{let{align:m}=p;return{...p,isActive:e===m,role:i?"menuitemradio":void 0,onClick:a(m)}}),...f})}var tH=X7e;var oH=c(T(),1),x2=e=>(0,oH.jsx)(tH,{...e,isToolbar:!1}),Are=e=>(0,oH.jsx)(tH,{...e,isToolbar:!0});var I2=c(Bo(),1),P2=c(Y(),1),Wre=c(F(),1),O2=c(ce(),1);var Hre=c(te(),1),Mm=c(ce(),1),sH=c(F(),1);var Vre=c(Dre(),1);var o9e=e=>e.name||"",r9e=e=>e.title,n9e=e=>e.description||"",i9e=e=>e.keywords||[],s9e=e=>e.category,a9e=()=>null,l9e=[/([\p{Ll}\p{Lo}\p{N}])([\p{Lu}\p{Lt}])/gu,/([\p{Lu}\p{Lt}])([\p{Lu}\p{Lt}][\p{Ll}\p{Lo}])/gu],c9e=new RegExp("(\\p{C}|\\p{P}|\\p{S})+","giu"),rH=new Map,nH=new Map;function C2(e=""){if(rH.has(e))return rH.get(e);let t=TB(e,{splitRegexp:l9e,stripRegexp:c9e}).split(" ").filter(Boolean);return rH.set(e,t),t}function MC(e=""){if(nH.has(e))return nH.get(e);let t=(0,Vre.default)(e);return t=t.replace(/^\//,""),t=t.toLowerCase(),nH.set(e,t),t}var NC=(e="")=>C2(MC(e)),u9e=(e,t)=>e.filter(o=>!NC(t).some(r=>r.includes(o))),E2=(e,t,o,r)=>NC(r).length===0?e:LC(e,r,{getCategory:s=>t.find(({slug:a})=>a===s.category)?.title,getCollection:s=>o[s.name.split("/")[0]]?.title}),LC=(e=[],t="",o={})=>{if(NC(t).length===0)return e;let n=e.map(i=>[i,d9e(i,t,o)]).filter(([,i])=>i>0);return n.sort(([,i],[,s])=>s-i),n.map(([i])=>i)};function d9e(e,t,o={}){let{getName:r=o9e,getTitle:n=r9e,getDescription:i=n9e,getKeywords:s=i9e,getCategory:a=s9e,getCollection:l=a9e}=o,u=r(e),d=n(e),f=i(e),p=s(e),m=a(e),g=l(e),h=MC(t),b=MC(d),v=0;if(h===b)v+=30;else if(b.startsWith(h))v+=20;else{let y=[u,d,f,...p,m,g].join(" "),_=C2(h);u9e(_,y).length===0&&(v+=10)}if(v!==0&&u.startsWith("core/")){let y=u!==e.id;v+=y?1:2}return v}var Wu=c(ce(),1),V_=c(te(),1),T2=c(F(),1),Fre=c(Ls(),1),R2=c(q(),1);var f9e=(e,t,o)=>{let r=(0,T2.useMemo)(()=>({[Tm]:!!o}),[o]),[n]=(0,V_.useSelect)(d=>[d(B).getInserterItems(e,r)],[e,r]),{getClosestAllowedInsertionPoint:i}=G((0,V_.useSelect)(B)),{createErrorNotice:s}=(0,V_.useDispatch)(Fre.store),[a,l]=(0,V_.useSelect)(d=>{let{getCategories:f,getCollections:p}=d(Wu.store);return[f(),p()]},[]),u=(0,T2.useCallback)(({name:d,initialAttributes:f,innerBlocks:p,innerContent:m,syncStatus:g,content:h},b)=>{let v=i(d,e);if(v===null){let _=(0,Wu.getBlockType)(d)?.title??d;s((0,R2.sprintf)((0,R2.__)(`Block "%s" can't be inserted.`),_),{type:"snackbar",id:"inserter-notice"});return}let y=g==="unsynced"?(0,Wu.parse)(h,{__unstableSkipMigrationLogs:!0}):(0,Wu.createBlock)(d,f,(0,Wu.createBlocksFromInnerBlocksTemplate)(p),m);t(y,void 0,b,v)},[i,e,t,s]);return[n,a,l,u]},Am=f9e;var zre=c(Y(),1);var jre=c(F(),1),iH=c(T(),1);function p9e({icon:e,showColors:t=!1,className:o,context:r}){e?.src==="block-default"&&(e={src:D0});let n=(0,iH.jsx)(zre.Icon,{icon:e&&e.src?e.src:e,context:r}),i=t?{backgroundColor:e&&e.background,color:e&&e.foreground}:{};return(0,iH.jsx)("span",{style:i,className:$("block-editor-block-icon",o,{"has-colors":t}),children:n})}var Nt=(0,jre.memo)(p9e);var B2=(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 F_=c(T(),1),m9e=()=>{},g9e=9;function h9e(){return{name:"blocks",className:"block-editor-autocompleters__block",triggerPrefix:"/",useItems(e){let{rootClientId:t,selectedBlockId:o,prioritizedBlocks:r}=(0,Hre.useSelect)(u=>{let{getSelectedBlockClientId:d,getBlock:f,getBlockListSettings:p,getBlockRootClientId:m}=u(B),{getActiveBlockVariation:g}=u(Mm.store),h=d(),{name:b,attributes:v}=f(h),y=g(b,v),_=m(h);return{selectedBlockId:y?`${b}/${y.name}`:b,rootClientId:_,prioritizedBlocks:p(_)?.prioritizedInserterBlocks}},[]),[n,i,s]=Am(t,m9e,!0),a=(0,sH.useMemo)(()=>(e.trim()?E2(n,i,s,e):B2(Hu(n,"frecency","desc"),r)).filter(d=>d.id!==o).slice(0,g9e),[e,o,n,i,s,r]);return[(0,sH.useMemo)(()=>a.map(u=>{let{title:d,icon:f,isDisabled:p}=u;return{key:`block-${u.id}`,value:u,label:(0,F_.jsxs)(F_.Fragment,{children:[(0,F_.jsx)(Nt,{icon:f,showColors:!0},"icon"),d]}),isDisabled:p}}),[a])]},allowContext(e,t){return!(/\S/.test(e)||/\S/.test(t))},getOptionCompletion(e){let{name:t,initialAttributes:o,innerBlocks:r,innerContent:n,syncStatus:i,blocks:s}=e;return{action:"replace",value:i==="unsynced"?(s??[]).map(a=>(0,Mm.cloneBlock)(a)):(0,Mm.createBlock)(t,o,(0,Mm.createBlocksFromInnerBlocksTemplate)(r),n)}}}}var Ure=h9e();var Gre=c(T(),1),b9e=[];function $re({completers:e=b9e}){let{name:t}=kt();return(0,Wre.useMemo)(()=>{let o=[...e];return(t===(0,O2.getDefaultBlockName)()||(0,O2.getBlockSupport)(t,"__experimentalSlashInserter",!1))&&(o=[...o,Ure]),(0,I2.hasFilter)("editor.Autocomplete.completers")&&(o===e&&(o=o.map(r=>({...r}))),o=(0,I2.applyFilters)("editor.Autocomplete.completers",o,t)),o},[e,t])}function Yre(e){return(0,P2.__unstableUseAutocompleteProps)({...e,completers:$re(e)})}function y9e(e){return(0,Gre.jsx)(P2.Autocomplete,{...e,completers:$re(e)})}var Kre=y9e;var _ne=c(q(),1),Vm=c(Y(),1);var yne=c(te(),1);var F2=c(F(),1);var vr=c(q(),1);var Hn=c(Y(),1);var z_=c(q(),1);var _a={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 Ds(e,t=""){return e.split(",").map(o=>`${o}${t?` ${t}`:""}`).join(",")}function Nm(e,t=_a,o,r){let n="";return t?.[o]?.spacingStyles?.length&&r&&t[o].spacingStyles.forEach(i=>{n+=`${Ds(e,i.selector.trim())} { `,n+=Object.entries(i.rules).map(([s,a])=>`${s}: ${a||r}`).join("; "),n+="; }"}),n}function A2(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,z_.sprintf)((0,z_.__)("Max %s wide"),t)),i.test(o)&&(n.wide=(0,z_.sprintf)((0,z_.__)("Max %s wide"),o)),n}var Cc=c(q(),1);var Gu=(e,t)=>e?.includes?e==="0"||e.includes(`var:preset|${t}|`):!1;function M2(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 qre(e,t,o){if(e===void 0)return 0;let r=parseFloat(e,10)===0?"0":M2(e,o),n=t.findIndex(i=>String(i.slug)===r);return n!==-1?n:NaN}function aH(e,t,o){if(!Gu(e,o))return e;let r=parseFloat(e,10)===0?"0":M2(e,o);return t.find(i=>String(i.slug)===r)?.size}function Zre(e,t,o){if(!e||Gu(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 Xre="spacing",Qre=8,Lm=["top","bottom","left","right"],Jre={top:void 0,right:void 0,bottom:void 0,left:void 0},N2={custom:SP,axial:SP,horizontal:D9,vertical:j9,top:z9,right:F9,bottom:L9,left:V9},$u={default:(0,Cc.__)("Spacing control"),top:(0,Cc.__)("Top"),bottom:(0,Cc.__)("Bottom"),left:(0,Cc.__)("Left"),right:(0,Cc.__)("Right"),mixed:(0,Cc.__)("Mixed"),vertical:(0,Cc.__)("Vertical"),horizontal:(0,Cc.__)("Horizontal"),axial:(0,Cc.__)("Horizontal & vertical"),custom:(0,Cc.__)("Custom")},Tf={axial:"axial",top:"top",right:"right",bottom:"bottom",left:"left",custom:"custom"};function L2(e){return Gu(e,Xre)}function ene(e,t){if(!L2(e))return e;let o=M2(e,Xre);return t.find(n=>String(n.slug)===o)?.size}function j_(e,t){if(!e||L2(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 il(e){if(!e||typeof e!="string")return;let t=e.match(/var:preset\|spacing\|(.+)/);return t?`var(--wp--preset--spacing--${t[1]})`:e}function lH(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 v9e(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 tne(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&&v9e(t),u=t?.includes("horizontal")&&t?.includes("vertical")&&t?.length===2;if(lH(t)&&(a||l))return Tf.axial;if(u&&s.length===1){let d;return Object.entries(e).some(([f,p])=>(d=f,p!==void 0)),d}return t?.length===1&&!s.length?t[0]:Tf.custom}function one(e,t){let o=e?.inherit||e?.contentSize||e?.wideSize?{...e,type:"constrained"}:e||t||{};return["flex","grid"].includes(o?.type)}function H_(e){if(!e)return null;let t=typeof e=="string";return{top:t?e:e?.top,left:t?e:e?.left}}function wa(e,t="0"){let o=H_(e);if(!o)return null;let r=il(o?.top)||t,n=il(o?.left)||t;return r===n?r:`${r} ${n}`}var Po=c(T(),1),_9e={left:"flex-start",right:"flex-end",center:"center","space-between":"space-between"},rne={left:"flex-start",right:"flex-end",center:"center",stretch:"stretch"},w9e={top:"flex-start",center:"center",bottom:"flex-end",stretch:"stretch","space-between":"space-between"},nne={horizontal:"center",vertical:"top"},k9e={top:{icon:q0,label:(0,vr._x)("Align top","Block vertical alignment setting")},center:{icon:$0,label:(0,vr._x)("Align middle","Block vertical alignment setting")},bottom:{icon:G0,label:(0,vr._x)("Align bottom","Block vertical alignment setting")},stretch:{icon:K0,label:(0,vr._x)("Stretch to fill","Block vertical alignment setting")},"space-between":{icon:Y0,label:(0,vr._x)("Space between","Block vertical alignment setting")}},x9e=["wrap","nowrap"],ane={name:"flex",label:(0,vr.__)("Flex"),hasInspectorControls(e={}){let{allowOrientation:t=!0,allowJustification:o=!0,allowVerticalAlignment:r=!0,allowWrap:n=!0}=e;return t||o||r||n},inspectorControls:function({layout:t={},onChange:o,layoutBlockSupport:r={},resetLayout:n={},clientId:i}){let{allowOrientation:s=!0,allowJustification:a=!0,allowVerticalAlignment:l=!0,allowWrap:u=!0}=r,d=(_,w)=>(t?.[_]??w)!==(n?.[_]??w),f=()=>d("justifyContent","left"),p=()=>d("verticalAlignment",lne(t)),m=()=>d("orientation","horizontal"),g=()=>d("flexWrap","wrap"),h=()=>o(Xe({...t,justifyContent:n?.justifyContent})),b=()=>o(Xe({...t,verticalAlignment:S9e(n?.verticalAlignment,t?.orientation)})),v=()=>{let{verticalAlignment:_,justifyContent:w}=t,k=n?.orientation,x=!k||k==="horizontal";o(Xe({...t,orientation:k,verticalAlignment:n?.verticalAlignment??(x&&_==="space-between"?"center":_),justifyContent:n?.justifyContent??(x&&w==="stretch"?"left":w)}))},y=()=>o(Xe({...t,flexWrap:n?.flexWrap}));return(0,Po.jsxs)(Po.Fragment,{children:[(a||s)&&(0,Po.jsxs)(Hn.Flex,{align:"flex-start",className:"block-editor-hooks__flex-layout-controls",gap:4,justify:"flex-start",children:[a&&(0,Po.jsx)(Hn.__experimentalToolsPanelItem,{label:(0,vr.__)("Justification"),hasValue:f,onDeselect:h,isShownByDefault:!0,panelId:i,children:(0,Po.jsx)(sne,{layout:t,onChange:o})}),s&&(0,Po.jsx)(Hn.__experimentalToolsPanelItem,{label:(0,vr.__)("Orientation"),hasValue:m,onDeselect:v,isShownByDefault:!0,panelId:i,children:(0,Po.jsx)(R9e,{layout:t,onChange:o})})]}),l&&(0,Po.jsx)(Hn.__experimentalToolsPanelItem,{label:(0,vr.__)("Alignment"),hasValue:p,onDeselect:b,panelId:i,children:(0,Po.jsx)(ine,{layout:t,onChange:o})}),u&&(0,Po.jsx)(Hn.__experimentalToolsPanelItem,{label:(0,vr.__)("Wrapping"),hasValue:g,onDeselect:y,panelId:i,children:(0,Po.jsx)(T9e,{layout:t,onChange:o})})]})},toolBarControls:function({layout:t={},onChange:o,layoutBlockSupport:r,controlsGroup:n="block"}){let{allowVerticalAlignment:i=!0,allowJustification:s=!0}=r;return!s&&!i?null:(0,Po.jsxs)(Ko,{group:n,__experimentalShareWithChildBlocks:!0,children:[s&&(0,Po.jsx)(sne,{layout:t,onChange:o,isToolbar:!0}),i&&(0,Po.jsx)(ine,{layout:t,onChange:o,isToolbar:!0})]})},getLayoutStyle:function({selector:t,layout:o={},viewportOverrides:r,style:n,blockName:i,hasBlockGapSupport:s,globalBlockGapValue:a,layoutDefinitions:l=_a}){let u=r!==void 0,d=u?{...o,...r}:o,f=E=>Object.hasOwn(r||{},E),{orientation:p="horizontal"}=d,m="0.5em";if(a){let E=H_(a);m=il(E?.left)||il(E?.top)||"0.5em"}let g=n?.spacing?.blockGap&&!io(i,"spacing","blockGap")?wa(n?.spacing?.blockGap,m):void 0,h=!u||Object.hasOwn(n?.spacing||{},"blockGap"),b=_9e[d.justifyContent],v=x9e.includes(d.flexWrap)?d.flexWrap:"wrap",y=w9e[d.verticalAlignment],_=rne[d.justifyContent]||rne.left,w="",k=[],x=!u||f("flexWrap"),S=!u||f("orientation"),C=!u||f("justifyContent")||f("orientation"),R=!u||f("verticalAlignment")||f("orientation");return x&&v&&v!=="wrap"&&k.push(`flex-wrap: ${v}`),p==="horizontal"?(R&&y&&k.push(`align-items: ${y}`),C&&b&&k.push(`justify-content: ${b}`)):(R&&y&&k.push(`justify-content: ${y}`),S&&k.push("flex-direction: column"),C&&k.push(`align-items: ${_}`)),k.length&&(w=`${Ds(t)} { | |
| 63 | - ${k.join("; ")}; | |
| 64 | - }`),s&&h&&g&&(w+=Nm(t,l,"flex",g)),w},getOrientation(e){let{orientation:t="horizontal"}=e;return t},getAlignments(){return[]}};function lne({orientation:e="horizontal"}={}){return e==="horizontal"?nne.horizontal:nne.vertical}function S9e(e,t){if(!(t==="horizontal"&&e==="space-between"||t==="vertical"&&e==="stretch"))return e}function C9e(e){return e==="horizontal"?["top","center","bottom","stretch"]:["top","center","bottom","space-between"]}function ine({layout:e,onChange:t,isToolbar:o=!1}){let{orientation:r="horizontal"}=e,{verticalAlignment:n=lne(e)}=e,i=a=>{t({...e,verticalAlignment:a})},s=C9e(r);return o?(0,Po.jsx)(D2,{onChange:i,value:n,controls:s}):(0,Po.jsx)(Hn.__experimentalToggleGroupControl,{label:(0,vr.__)("Alignment"),onChange:i,value:n,className:"block-editor-hooks__flex-layout-alignment-controls",children:s.map(a=>{let{icon:l,label:u}=k9e[a];return(0,Po.jsx)(Hn.__experimentalToggleGroupControlOptionIcon,{value:a,icon:l,label:u},a)})})}var E9e={placement:"bottom-start"};function sne({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,Po.jsx)(U_,{allowedControls:s,value:r,onChange:i,popoverProps:E9e});let a=[{value:"left",icon:vm,label:(0,vr.__)("Justify items left")},{value:"center",icon:ym,label:(0,vr.__)("Justify items center")},{value:"right",icon:_m,label:(0,vr.__)("Justify items right")}];return n==="horizontal"?a.push({value:"space-between",icon:g_,label:(0,vr.__)("Space between items")}):a.push({value:"stretch",icon:h_,label:(0,vr.__)("Stretch items")}),(0,Po.jsx)(Hn.__experimentalToggleGroupControl,{label:(0,vr.__)("Justification"),value:r,onChange:i,className:"block-editor-hooks__flex-layout-justification-controls",children:a.map(({value:l,icon:u,label:d})=>(0,Po.jsx)(Hn.__experimentalToggleGroupControlOptionIcon,{value:l,icon:u,label:d},l))})}function T9e({layout:e,onChange:t}){let{flexWrap:o="wrap"}=e;return(0,Po.jsx)(Hn.ToggleControl,{label:(0,vr.__)("Allow to wrap to multiple lines"),onChange:r=>{t({...e,flexWrap:r?"wrap":"nowrap"})},checked:o==="wrap"})}function R9e({layout:e,onChange:t}){let{orientation:o="horizontal",verticalAlignment:r,justifyContent:n}=e;return(0,Po.jsxs)(Hn.__experimentalToggleGroupControl,{className:"block-editor-hooks__flex-layout-orientation-controls",label:(0,vr.__)("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,Po.jsx)(Hn.__experimentalToggleGroupControlOptionIcon,{icon:L0,value:"horizontal",label:(0,vr.__)("Horizontal")}),(0,Po.jsx)(Hn.__experimentalToggleGroupControlOptionIcon,{icon:gz,value:"vertical",label:(0,vr.__)("Vertical")})]})}var cne=c(q(),1);var une={name:"default",label:(0,cne.__)("Flow"),hasInspectorControls(){return!1},inspectorControls:function(){return null},toolBarControls:function(){return null},getLayoutStyle:function({selector:t,style:o,blockName:r,hasBlockGapSupport:n,layoutDefinitions:i=_a}){let s=o?.spacing?.blockGap,a="";io(r,"spacing","blockGap")||(s?.top?a=wa(s?.top):typeof s=="string"&&(a=wa(s)));let l="";return n&&a&&(l+=Nm(t,i,"default",a)),l},getOrientation(){return"vertical"},getAlignments(e,t){let o=A2(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 Ii=c(Y(),1),sl=c(q(),1);var dne=c(k_(),1);var Mr=c(T(),1),B9e="var(--wp--style--global--content-size, none)",I9e="var(--wp--style--global--wide-size, none)",fne={name:"constrained",label:(0,sl.__)("Constrained"),hasInspectorControls(e={}){let{allowJustification:t=!0,allowCustomContentAndWideSize:o=!0}=e;return t||o},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})},p=[{value:"left",icon:vm,label:(0,sl.__)("Justify items left")},{value:"center",icon:ym,label:(0,sl.__)("Justify items center")},{value:"right",icon:_m,label:(0,sl.__)("Justify items right")}],[m]=je("spacing.units"),g=(0,Ii.__experimentalUseCustomUnits)({availableUnits:m||["%","px","em","rem","vw"]}),h=(x,S)=>(t?.[x]??S)!==(n?.[x]??S),b=()=>o(Xe({...t,contentSize:n?.contentSize})),v=()=>o(Xe({...t,wideSize:n?.wideSize})),y=()=>o(Xe({...t,justifyContent:n?.justifyContent})),_=()=>h("contentSize"),w=()=>h("wideSize"),k=()=>h("justifyContent","center");return(0,Mr.jsxs)(Mr.Fragment,{children:[d&&(0,Mr.jsxs)(Mr.Fragment,{children:[(0,Mr.jsx)(Ii.__experimentalToolsPanelItem,{label:(0,sl.__)("Content width"),hasValue:_,onDeselect:b,panelId:i,children:(0,Mr.jsx)(Ii.__experimentalUnitControl,{label:(0,sl.__)("Content width"),labelPosition:"top",value:a===null?"":a||s||"",onChange:x=>{x=0>parseFloat(x)?"0":x,o({...t,contentSize:x!==""?x:void 0})},units:g,prefix:(0,Mr.jsx)(Ii.__experimentalInputControlPrefixWrapper,{variant:"icon",children:(0,Mr.jsx)(xt,{icon:ub})})})}),(0,Mr.jsxs)(Ii.__experimentalToolsPanelItem,{label:(0,sl.__)("Wide width"),hasValue:w,onDeselect:v,panelId:i,children:[(0,Mr.jsx)(Ii.__experimentalUnitControl,{label:(0,sl.__)("Wide width"),labelPosition:"top",value:s===null?"":s||a||"",onChange:x=>{x=0>parseFloat(x)?"0":x,o({...t,wideSize:x!==""?x:void 0})},units:g,prefix:(0,Mr.jsx)(Ii.__experimentalInputControlPrefixWrapper,{variant:"icon",children:(0,Mr.jsx)(xt,{icon:kb})})}),(0,Mr.jsx)("p",{className:"block-editor-hooks__layout-constrained-helptext",children:(0,sl.__)("Customize the width for all elements that are assigned to the center or wide columns.")})]})]}),u&&(0,Mr.jsx)(Ii.__experimentalToolsPanelItem,{label:(0,sl.__)("Justification"),hasValue:k,onDeselect:y,panelId:i,children:(0,Mr.jsx)(Ii.__experimentalToggleGroupControl,{label:(0,sl.__)("Justification"),value:l,onChange:f,children:p.map(({value:x,icon:S,label:C})=>(0,Mr.jsx)(Ii.__experimentalToggleGroupControlOptionIcon,{value:x,icon:S,label:C},x))})})]})},toolBarControls:function({layout:t={},onChange:o,layoutBlockSupport:r,controlsGroup:n="block"}){let{allowJustification:i=!0}=r;return i?(0,Mr.jsx)(Ko,{group:n,__experimentalShareWithChildBlocks:!0,children:(0,Mr.jsx)(O9e,{layout:t,onChange:o})}):null},getLayoutStyle:function({selector:t,layout:o={},viewportOverrides:r,style:n,blockName:i,hasBlockGapSupport:s,layoutDefinitions:a=_a}){let l=r!==void 0,u=l?{...o,...r}:o,d=A=>Object.hasOwn(r||{},A),{contentSize:f,wideSize:p,justifyContent:m}=u,g=n?.spacing?.blockGap,h=!l||Object.hasOwn(n?.spacing||{},"blockGap"),b=!l||Object.hasOwn(n?.spacing||{},"padding"),v="";io(i,"spacing","blockGap")||(g?.top?v=wa(g?.top):typeof g=="string"&&(v=wa(g)));let y=m==="left"?"0 !important":"auto !important",_=m==="right"?"0 !important":"auto !important",w=l&&d("justifyContent"),k=l&&d("contentSize"),x=l&&d("wideSize"),S=!l||k||x,C=l&&(k&&!f||x&&!p),R=f||(p&&!k?p:B9e),E=p||(f&&!x?f:I9e),I=[`max-width: ${R}`];(!l||w)&&I.push(`margin-left: ${y}`,`margin-right: ${_}`);let O=S&&(f||p||C)?` | |
| 65 | - ${Ds(t,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")} { | |
| 62 | + `),h+="}"),a.blockStyles){let b=zE(e);d.forEach(v=>{if(v.isStyleVariation&&!a.variationStyles)return;let _=Tje(v,b);[v,..._,...wie(v),..._.flatMap(wie)].forEach(y=>{h+=Pje(y,{tree:l,useRootPaddingAlign:f,disableLayoutStyles:n,hasBlockGapSupport:o,hasFallbackGapSupport:r,disableRootPadding:i})})})}if(a.layoutStyles&&(h=h+".wp-site-blocks > .alignleft { float: left; margin-right: 2em; }",h=h+".wp-site-blocks > .alignright { float: right; margin-left: 2em; }",h=h+".wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }"),a.blockGap&&o){let b=U4(l?.styles?.spacing?.blockGap)||"0.5em";h=h+`:root :where(.wp-site-blocks) > * { margin-block-start: ${b}; margin-block-end: 0; }`,h=h+":root :where(.wp-site-blocks) > :first-child { margin-block-start: 0; }",h=h+":root :where(.wp-site-blocks) > :last-child { margin-block-end: 0; }"}return a.presets&&u.forEach(({selector:b,presets:v})=>{(lu===b||DE===b)&&(b="");let _=wje(b,v);_.length>0&&(h+=_)}),h};var Bje=(e,t)=>{if(e?.selectors&&Object.keys(e.selectors).length>0)return e.selectors;let o={root:t};return Object.entries(vje).forEach(([r,n])=>{let i=Ea(e,r);i&&(o[n]=i)}),o},Y4=(e,t)=>{let{getBlockStyles:o}=(0,xie.select)(us.store),r={};return e.forEach(n=>{let i=n.name,s=Ea(n);if(!s)return;let a=Ea(n,"filter.duotone");if(!a){let g=Ea(n),h=(0,us.getBlockSupport)(n,"color.__experimentalDuotone",!1);typeof h=="string"&&g&&(a=Wc(g,h))}let l=!!n?.supports?.layout||!!n?.supports?.__experimentalLayout,d=n?.supports?.spacing?.blockGap,u=typeof d=="object"&&!Array.isArray(d)?d.__experimentalDefault:void 0,f=o(i),p={};f?.forEach(g=>{let h=t?`-${t}`:"",b=`${g.name}${h}`,v=lU(b,s);p[b]=v});let m=Bje(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:f?.length?p:void 0}}),r};function K4(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,d=a.match(/([>+~\s]*::[a-zA-Z-]+)/),u=d?d[1]:"",f=d?a.replace(u,"").trim():a.trim(),p;f===""?p=t:p=a.startsWith(" ")?Wc(t,f):z4(t,f),o+=`:root :where(${p})${u}{${l.trim()}}`}}),o}function q4(e,t,o,{resolveRefs:r=!0}={}){if(!e?.styles?.blocks?.[t]?.variations?.[o])return;let n=s=>{Object.keys(s).forEach(a=>{let l=s[a];if(typeof l=="object"&&l!==null)if(l.ref!==void 0)if(typeof l.ref!="string"||l.ref.trim()==="")delete s[a];else{let d=Qo(e,l.ref);d!=null?s[a]=d:delete s[a]}else n(l),Object.keys(l).length===0&&delete s[a]})},i=JSON.parse(JSON.stringify(e.styles.blocks[t].variations[o]));return r&&n(i),i}var gU="default";function Rie(e){let t=e?.viewport,o=e?.pseudoState;return(!t||t===gU)&&(!o||o===gU)}function Oje(e){return Rie(e)?[]:[e.viewport,e.pseudoState].filter(t=>!!t&&t!==gU)}function Mje(e,t){let o=Oje(t);return o.length?Qo(e,o):e}var Aje=new Set(["blocks","variations","css"]),pU=Object.freeze({value:{},sources:{}}),Nje={root:{layer:"root"},element:{layer:"element"},block:{layer:"block"},blockVariation:{layer:"blockVariation"}};function Xm(e){let t=Nje[e];return t?{...t}:null}function Zm(e,t){return!e||!t?null:{styles:e,source:t}}function Lje(e){return e.join(".")}function Dje(e){return{...e}}function Iie(e){return e===""||e===null||typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0}function mU(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e.ref=="string"}function Qm(e){if(!e||typeof e!="object"||Array.isArray(e))return null;let t={};for(let o of Object.keys(e))if(!Aje.has(o)){if(o==="elements"){e.elements&&typeof e.elements=="object"&&(t.elements=e.elements);continue}Iie(e[o])||(t[o]=e[o])}return Object.keys(t).length===0?null:t}var Cie=new Set(["backgroundImage"]);function Pie(e,t,o,r,n,i=[]){if(!t||typeof t!="object"||Array.isArray(t))return e;for(let s of Object.keys(t)){let a=t[s];if(Iie(a))continue;if(mU(a)){if(a.ref.trim()==="")continue;let d=Qo(o,a.ref);if(d==null||mU(d))continue;a=d}let l=[...i,s];if(!Cie.has(s)&&a!==null&&typeof a=="object"&&!Array.isArray(a)&&!mU(a)){let d=e[s]&&typeof e[s]=="object"&&!Array.isArray(e[s])?e[s]:{};e[s]=Pie({...d},a,o,r,n,l)}else e[s]=Cie.has(s)&&a!==null&&typeof a=="object"&&!Array.isArray(a)?{...a}:a,r&&n&&(n[Lje(l)]=Dje(r))}return e}function X4(e,t){if(!e)return null;let o=Mje(e,t);return o&&typeof o=="object"&&!Array.isArray(o)?o:null}var Vje=["color.background","color.gradient","background","spacing","dimensions","border","shadow","filter"];function Fje(e){return e.startsWith("elements.")?!1:Vje.some(t=>e===t||e.startsWith(`${t}.`))}function Bie(e,t){if(!e||typeof e!="object")return;let[o,...r]=t;if(r.length===0){delete e[o];return}let n=e[o];n&&typeof n=="object"&&(Bie(n,r),Object.keys(n).length===0&&delete e[o])}function zje(e,t){for(let o of Object.keys(t))t[o].layer==="root"&&Fje(o)&&(Bie(e,o.split(".")),delete t[o])}function jje(e,t,o){let r=e?.background?.backgroundImage;if(!r)return;let n=qm(r,{...t,_links:o??void 0});n!==void 0&&(e.background.backgroundImage=n)}function Eie(e,{blockName:t,variationName:o=null,elements:r=null,viewport:n=null,pseudoState:i=null}={}){if(!e||!e.styles||!t)return pU;let s=e.styles,a={viewport:n,pseudoState:i},l=s,d=s.blocks?.[t]??null,u=(r??[]).map(b=>s.elements?.[b]??null).filter(b=>!!b),f=o?q4(e,t,o)??null:null,p=[Zm(Qm(l),Xm("root")),...u.map(b=>Zm(Qm(b),Xm("element"))),d?Zm(Qm(d),Xm("block")):null,f?Zm(Qm(f),Xm("blockVariation")):null];Rie(a)||p.push(Zm(Qm(X4(l,a)),Xm("root")),...u.map(b=>Zm(Qm(X4(b,a)),Xm("element"))),d?Zm(Qm(X4(d,a)),Xm("block")):null,f?Zm(Qm(X4(f,a)),Xm("blockVariation")):null);let m=p.filter(Boolean);if(m.length===0)return pU;let g={},h=m.reduce((b,v)=>Pie(b,v.styles,e,v.source,g),{});return zje(h,g),jje(h,e,e._links??null),{value:h,sources:g}}var Hje={},Tie=new WeakMap;function Oie(e,t={}){let o=e?.styles;if(!o||typeof o!="object")return Eie(e,t);let r=Tie.get(o);r||(r=new WeakMap,Tie.set(o,r));let n=e?._links??Hje,i=r.get(n);i||(i=new Map,r.set(n,i));let s=`${t.elements?.join(",")??""}:${t.viewport??""}:${t.pseudoState??""}`,a=(t.blockName||"")+""+(t.variationName||"")+""+s;if(i.has(a))return i.get(a);let l=Eie(e,t);return i.set(a,l),l}var Mie=c(S3(),1),{lock:Aie,unlock:NCt}=(0,Mie.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/global-styles-engine");var Ro={};Aie(Ro,{getResponsiveMediaQueries:zE,getViewportBreakpoints:uU,getViewportBreakpointValueInPixels:dU,getDuotoneFilter:gie,getDuotoneStylesheet:mie,getDuotoneUnsetStylesheet:pie,resolveStyle:Oie,getVariationStyle:q4});var Z4=c(X(),1);var mn={desktop:{label:(0,Z4.__)("Desktop"),icon:Tj,key:"desktop"},tablet:{label:(0,Z4.__)("Tablet"),icon:KH,key:"tablet"},mobile:{label:(0,Z4.__)("Mobile"),icon:XC,key:"mobile"}},hU=Object.entries(mn);var Q4=c(ce(),1),Nie=c(To(),1);function Ge(e,t,o){let r=Array.isArray(t)?[...t]:[t],n=Array.isArray(e)?[...e]:{...e},i=r.pop(),s=n;for(let a of r){let l=s[a];s[a]=s=Array.isArray(l)?[...l]:{...l}}return s[i]=o,n}var Uf=(e,t,o)=>{let r=Array.isArray(t)?t:t.split("."),n=e;return r.forEach(i=>{n=n?.[i]}),n??o};var Uje=["color","border","dimensions","typography","spacing"],Wje={"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},Gje={"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"},$je=e=>Gje[e]||e;function Lie(e,t,...o){let r=no(e,t),n=[];if(t){let i=t;do{let s=no(e,i);(0,Q4.hasBlockSupport)(s,"__experimentalSettings",!1)&&n.push(i)}while(i=e.blocks.parents.get(i))}return o.map(i=>{if(Uje.includes(i)){console.warn("Top level useSetting paths are disabled. Please use a subpath to query the information needed.");return}let s=(0,Nie.applyFilters)("blockEditor.useSetting.before",void 0,i,t,r);if(s!==void 0)return s;let a=$je(i);for(let u of n){let f=Ta(e,u);if(s=Uf(f.settings?.blocks?.[r],a)??Uf(f.settings,a),s!==void 0)break}let l=Wf(e);if(s===void 0&&r&&(s=Uf(l.__experimentalFeatures?.blocks?.[r],a)),s===void 0&&(s=Uf(l.__experimentalFeatures,a)),s!==void 0)return Q4.__EXPERIMENTAL_PATHS_WITH_OVERRIDE[a]?s.custom??s.theme??s.default:s;let d=Wje[a]?.(l);return d!==void 0?d:a==="typography.dropCap"?!0:void 0})}var{isContentBlock:bU,editableRootKey:Yje}=Z(Jm.privateApis),{getViewportBreakpoints:Kje}=Z(Ro);function Die(e,t){return t===mn.desktop.key?!0:Kje(Wf(e)?.__experimentalFeatures?.viewport)[t]!==void 0}function qje(e){return e.isBlockInterfaceHidden}function Xje(e){return e?.lastBlockInserted?.clientIds}function Zje(e,t){return e.blocks.byClientId.get(t)}var Qje=(e,t)=>{let o=r=>fs(e,r)==="disabled"&&Fn(e,r).every(o);return Fn(e,t).every(o)};function HE(e,t,o){let r=bU(t),n=no(e,o),i=bU(n);return s_(e)===o||i&&r}function Vie(e,t){return{clientId:t,innerBlocks:Fie(e,t)}}function Fie(e,t=""){return Fn(e,t).map(o=>Vie(e,o))}var _U=(0,zn.createSelector)(Vie,e=>[e.blocks.order]),vU=(0,zn.createSelector)(Fie,e=>[e.blocks.order]);function yU(e,t,o){let r=Fn(e,t),n=[];for(let i of r){let s=yU(e,i,o);o(e,i)?n.push({clientId:i,innerBlocks:s}):n.push(...s)}return n}function Jje(e,t){return yU(e,t,(o,r)=>fs(o,r)!=="disabled")}function eHe(e,t){let o=e.blocks.parents.get(t);for(;o!==void 0;){let r=e.blocks.blockEditingModes.get(o);if(r)return r==="disabled";o=e.blocks.parents.get(o)}return!1}var tHe=(0,zn.createSelector)((e,t)=>{if(!t||fs(e,t)!=="default"||EU(e,t)!=="visual"||!(0,Jm.getBlockType)(no(e,t))?.[Yje])return!1;let o=Fn(e,xr(e,t));return o.length>1&&o.every(r=>fs(e,r)==="default")},e=>[e.blocks.order,e.blocks.parents,e.blocks.byClientId,e.blocks.blockEditingModes,e.derivedBlockEditingModes,e.blocksMode]);function oHe(e,t){return yU(e,t,(o,r)=>{if(fs(o,r)!=="disabled")return!0;let n=o.blocks.blockEditingModes.get(r);if(n)return n!=="disabled";if(eHe(o,r))return!1;if(o.editedContentOnlySection){if(J4(o,r))return!1;if(!Gf(o,r)||bU(no(o,r)))return!0}return!1})}var rHe=(0,zn.createSelector)(Jje,e=>[e.blocks.order,e.derivedBlockEditingModes,e.blocks.blockEditingModes]),nHe=(0,zn.createSelector)(oHe,e=>[e.blocks.order,e.derivedBlockEditingModes,e.blocks.blockEditingModes,e.blocks.parents,e.editedContentOnlySection,...e.editedContentOnlySection?[e.blocks.byClientId,e.blocks.attributes,e.blockListSettings,e.settings]:[]]),iHe=(0,zn.createSelector)((e,t,o=!1)=>_l(e,t,o).filter(r=>fs(e,r)!=="disabled"),e=>[e.blocks.parents,e.blocks.blockEditingModes,e.settings.templateLock,e.blockListSettings]);function sHe(e){return e.removalPromptData}function aHe(e){return e.blockRemovalRules}var lHe=(0,zn.createSelector)(e=>{let o=Tw(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 cHe(e){return e.registeredInserterMediaCategories}var dHe=(0,zn.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]),uHe=(0,zn.createRegistrySelector)(e=>(0,zn.createSelector)((t,o=null)=>{let{getAllPatterns:r}=Z(e(wr)),n=r(),{allowedBlockTypes:i}=Wf(t);return n.some(s=>{let{inserter:a=!0}=s;if(!a)return!1;let l=i_(s);return WE(l,i)&&l.every(({name:d})=>l_(t,d,o))})},(t,o)=>[...GE(e)(t),...eg(e)(t,o)])),fHe=(0,zn.createRegistrySelector)(e=>(0,zn.createSelector)((t,o)=>{if(o?.startsWith("core/block/")){let r=parseInt(o.slice(11),10),n=Z(e(wr)).getReusableBlocks().find(({id:i})=>i===r);return n?UE(n,t.settings[Nf]?.(e)??t.settings.__experimentalUserPatternCategories):null}return[...t.settings.__experimentalBlockPatterns??[],...t.settings[Fm]?.(e)??[]].find(({name:r})=>r===o)},(t,o)=>o?.startsWith("core/block/")?[Z(e(wr)).getReusableBlocks(),t.settings.__experimentalReusableBlocks]:[t.settings.__experimentalBlockPatterns,t.settings[Fm]?.(e)])),pHe=(0,zn.createRegistrySelector)(e=>(0,zn.createSelector)(t=>[...Z(e(wr)).getReusableBlocks().map(o=>UE(o,t.settings[Nf]?.(e)??t.settings.__experimentalUserPatternCategories)),...t.settings.__experimentalBlockPatterns??[],...t.settings[Fm]?.(e)??[]].filter((o,r,n)=>r===n.findIndex(i=>o.name===i.name)),GE(e))),mHe=[],gHe=(0,zn.createRegistrySelector)(e=>t=>{let o=t.settings[R3];return(o?o(e):t.settings.__experimentalReusableBlocks)??mHe});function hHe(e){return e.lastFocus}function bHe(e){return e.isDragging}function _He(e){return e.expandedBlock}var wU=(e,t)=>{let o=t,r;for(;!r&&(o=e.blocks.parents.get(o));)cu(e,o)==="contentOnly"&&(r=o);return r};function zie(e,t){let o=no(e,t);if(o==="core/block")return!0;let r=Ta(e,t),n=o==="core/template-part",i=e.settings?.[jm],s=e.settings?.disableContentOnlyForUnsyncedPatterns,a=e.settings?.disableContentOnlyForTemplateParts;if((!s&&r?.metadata?.patternName||n&&!a)&&!i)return!0;let l=cu(e,t)==="contentOnly",d=xr(e,t),u=cu(e,d)==="contentOnly";return!!(l&&!u)}var Gf=(e,t)=>{if(J4(e,t))return;let o=t,r;for(;o=e.blocks.parents.get(o);)zie(e,o)&&(r=o);return r};function $f(e,t){return J4(e,t)||Gf(e,t)?!1:zie(e,t)}function vHe(e,t){let o=no(e,t);return o!=="core/block"&&o!=="core/template-part"?!1:!(Ta(e,t)?.metadata?.patternName&&$f(e,t))}function xU(e){return e.editedContentOnlySection}function J4(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 yHe=(0,zn.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 s_(e){return e.settings?.[zm]}function kU(e){return e.zoomLevel==="auto-scaled"||e.zoomLevel<100}function wHe(e){return e.zoomLevel}function jie(e,t,o=""){let r=Array.isArray(t)?t:[t],n=s=>r.every(a=>l_(e,a,s));if(!o){if(n(o))return o;let s=s_(e);return s&&n(s)?s:null}let i=o;for(;i!==null&&!n(i);)i=xr(e,i);return i}function xHe(e,t,o){let{allowedBlockTypes:r}=Wf(e);if(!WE(i_(t),r))return null;let i=i_(t).map(({blockName:s})=>s);return jie(e,i,o)}function kHe(e){return e.insertionPoint}var SHe=(e,t)=>{let o=no(e,t);if(!(0,Jm.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(mn).some(i=>Die(e,i.key)&&n?.viewport?.[i.key]===!1):!1},SU=(e,t)=>{let o=no(e,t);return(0,Jm.hasBlockSupport)(o,"visibility",!0)?e.blocks.attributes.get(t)?.metadata?.blockVisibility===!1:!1},CHe=(e,t)=>_l(e,t).some(r=>SU(e,r)),Hie=(e,t,o)=>{if(SU(e,t))return!0;let n=e.blocks.attributes.get(t)?.metadata?.blockVisibility?.viewport;if(typeof n=="object"&&n!==null&&typeof o=="string"){let i=o.toLowerCase();return Die(e,i)&&n?.[i]===!1}return!1},EHe=(e,t,o)=>_l(e,t).some(n=>Hie(e,n,o));function THe(e){return!!e.hasBlockSpotlight||!!e.editedContentOnlySection}function Uie(e,t){return!!Ta(e,t)?.lock?.edit}function Wie(e,t){let o=Ta(e,t);if(o?.lock?.move!==void 0)return!!o?.lock?.move;let r=xr(e,t);return cu(e,r)==="all"}function Gie(e,t){let o=Ta(e,t);if(o?.lock?.remove!==void 0)return!!o?.lock?.remove;let r=xr(e,t),n=cu(e,r);return n==="all"||n==="insert"}function RHe(e,t){return Uie(e,t)||Wie(e,t)||Gie(e,t)}function IHe(e){return e.listViewContentPanelOpen}function PHe(e,t){return e.openedListViewPanels?.allOpen?!0:e.openedListViewPanels?.panels?.[t]===!0}function BHe(e){return e.listViewExpandRevision||0}function OHe(e,t){let o=no(e,t);if(o==="core/navigation")return!0;if(!(0,Jm.hasBlockSupport)(o,"listView"))return!1;let r=Rw(e,t)?.allowedBlocks;return!(Fn(e,t).length===0&&(r===!1||Array.isArray(r)&&r.length===0))}function MHe(e){return e.viewportModalClientIds}function AHe(e){return e.requestedInspectorTab}var a_={viewport:"default",pseudo:"default"};function CU(e){return e.styleStateViewport??a_.viewport}function NHe(e){return e.isResponsiveEditing}function LHe(e,t){return e.selectedBlockStyleState?.clientId!==t?!0:e.selectedBlockStyleState.showStateOnCanvas??!0}var Iw=c(X(),1),lr={user:"user",theme:"theme",directory:"directory"},$E={full:"fully",unsynced:"unsynced"},c_={name:"allPatterns",label:(0,Iw._x)("All","patterns")},Yf={name:"myPatterns",label:(0,Iw.__)("My patterns")},Pw={name:"core/starter-content",label:(0,Iw.__)("Starter content")};function DHe(e,t){return!e.categories||!e.categories.length?!1:e.categories.some(o=>t.some(r=>r.name===o))}function t9(e,t){let o=t.filter(r=>e.some(n=>n.categories?.includes(r.name))).sort((r,n)=>r.label.localeCompare(n.label));return e.some(r=>!DHe(r,t))&&!o.find(r=>r.name==="uncategorized")&&o.push({name:"uncategorized",label:(0,Iw.__)("Uncategorized")}),o}function o9(e,t,o){let r=e.name.startsWith("core/block"),n=e.source==="core"||e.source?.startsWith("pattern-directory");return!!(t===lr.theme&&(r||n)||t===lr.directory&&(r||!n)||t===lr.user&&e.type!==lr.user||o===$E.full&&e.syncStatus!==""||o===$E.unsynced&&e.syncStatus!=="unsynced"&&r)}var tg=Symbol("isFiltered"),$ie=new WeakMap,Yie=new WeakMap;function UE(e,t=[]){return{name:`core/block/${e.id}`,id:e.id,type:lr.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 VHe(e){let t=(0,Kie.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 r9(e){let t=$ie.get(e);return t||(t=VHe(e),$ie.set(e,t)),t}function i_(e){let t=Yie.get(e);return t||(t=(0,qie.parse)(e.content),t=t.filter(o=>o.blockName!==null),Yie.set(e,t)),t}var d_=(e,t,o=null)=>typeof e=="boolean"?e:Array.isArray(e)?e.includes("core/post-content")&&t===null?!0:e.includes(t):o,WE=(e,t)=>{if(typeof t=="boolean")return t;let o=[...e];for(;o.length>0;){let r=o.shift();if(!d_(t,r.name||r.blockName,!0))return!1;r.innerBlocks?.forEach(i=>{o.push(i)})}return!0},GE=e=>t=>[t.settings.__experimentalBlockPatterns,t.settings[Nf]?.(e)??t.settings.__experimentalUserPatternCategories,t.settings.__experimentalReusableBlocks,t.settings[Fm]?.(e),t.blockPatterns,Z(e(wr)).getReusableBlocks()],eg=()=>(e,t)=>[e.blockListSettings.get(t),e.blocks.byClientId.get(t),e.blocks.order.get(t||""),e.settings.allowedBlockTypes,e.settings.templateLock,fs(e,t),s_(e),$f(e,t),Gf(e,t)];function Xie(e,t){return typeof e=="string"&&typeof t=="string"?e>t:Number(e)>Number(t)}var FHe=(e,t)=>(o,r)=>{let n,i;return typeof e=="function"?(n=e(o),i=e(r)):(n=o[e],i=r[e]),Xie(n,i)?t==="asc"?1:-1:Xie(i,n)?t==="asc"?-1:1:0};function du(e,t,o="asc"){return e.concat().sort(FHe(t,o))}var{isContentBlock:RU}=Z(Lt.privateApis),zHe=3600*1e3,jHe=24*3600*1e3,HHe=168*3600*1e3,li=[],UHe=new Set,Jie={[tg]:!0};function no(e,t){let o=e.blocks.byClientId.get(t);return o?o.name:null}function WHe(e,t){let o=e.blocks.byClientId.get(t);return!!o&&o.isValid}function Ta(e,t){return e.blocks.byClientId.get(t)?e.blocks.attributes.get(t):null}function qf(e,t){return e.blocks.byClientId.has(t)?e.blocks.tree.get(t):null}var GHe=(0,At.createSelector)((e,t)=>{let o=e.blocks.byClientId.get(t);return o?{...o,attributes:Ta(e,t)}:null},(e,t)=>[e.blocks.byClientId.get(t),e.blocks.attributes.get(t)]);function $He(e,t){let o=!t||!a9(e,t)?t||"":"controlled||"+t;return e.blocks.tree.get(o)?.innerBlocks||li}function YHe(e,t){return(0,Ra.default)("wp.data.select( 'core/block-editor' ).__unstableGetClientIdWithClientIdsTree",{since:"6.3",version:"6.5"}),_U(e,t)}function KHe(e,t){return(0,Ra.default)("wp.data.select( 'core/block-editor' ).__unstableGetClientIdsTree",{since:"6.3",version:"6.5"}),vU(e,t)}var ese=(0,At.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]),Tw=e=>ese(e,""),qHe=(0,At.createSelector)((e,t)=>{let o=Tw(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]),tse=(0,At.createSelector)((e,t)=>{if(!t)return li;let o=Array.isArray(t)?t:[t],n=Tw(e).filter(i=>{let s=e.blocks.byClientId.get(i);return o.includes(s.name)});return n.length>0?n:li},e=>[e.blocks.order,e.blocks.byClientId]);function XHe(e,t){return(0,Ra.default)("wp.data.select( 'core/block-editor' ).__experimentalGetGlobalBlocksByName",{since:"6.5",alternative:"wp.data.select( 'core/block-editor' ).getBlocksByName"}),tse(e,t)}var n9=(0,At.createSelector)((e,t)=>(Array.isArray(t)?t:[t]).map(o=>qf(e,o)),(e,t)=>(Array.isArray(t)?t:[t]).map(o=>e.blocks.tree.get(o))),ZHe=(0,At.createSelector)((e,t)=>n9(e,t).filter(Boolean).map(o=>o.name),(e,t)=>n9(e,t));function QHe(e,t){return Fn(e,t).length}function KE(e){return e.selection.selectionStart}function qE(e){return e.selection.selectionEnd}function JHe(e){return e.selection.selectionStart.clientId}function eUe(e){return e.selection.selectionEnd.clientId}function tUe(e){let t=rg(e).length;return t||(e.selection.selectionStart.clientId?1:0)}function oUe(e){let{selectionStart:t,selectionEnd:o}=e.selection;return!!t.clientId&&t.clientId===o.clientId}function Bw(e){let{selectionStart:t,selectionEnd:o}=e.selection,{clientId:r}=t;return!r||r!==o.clientId?null:r}function rUe(e){let t=Bw(e);return t?qf(e,t):null}function xr(e,t){return e.blocks.parents.get(t)??null}var _l=(0,At.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():li},e=>[e.blocks.parents]),IU=(0,At.createSelector)((e,t,o,r=!1)=>{let n=_l(e,t,r),i=Array.isArray(o)?s=>o.includes(s):s=>o===s;return n.filter(s=>i(no(e,s)))},e=>[e.blocks.parents]);function nUe(e,t){let o=t,r;do r=o,o=e.blocks.parents.get(o);while(o);return r}function iUe(e,t){let o=Bw(e),r=[..._l(e,t),t],n=[..._l(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 PU(e,t,o=1){if(t===void 0&&(t=Bw(e)),t===void 0&&(o<0?t=BU(e):t=rse(e)),!t)return null;let r=xr(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 sUe(e,t){return PU(e,t,-1)}function aUe(e,t){return PU(e,t,1)}function lUe(e){return e.initialPosition}function ose(e){let{selectionStart:t,selectionEnd:o}=e.selection,r=t.clientId,n=o.clientId;if(!(!r||!n||r===n)){if(_l(e,n).includes(r))return r;if(_l(e,r).includes(n))return n}}var og=(0,At.createSelector)(e=>{let{selectionStart:t,selectionEnd:o}=e.selection;if(!t.clientId||!o.clientId)return li;if(t.clientId===o.clientId)return[t.clientId];let r=ose(e);if(r)return[r];let n=xr(e,t.clientId);if(n===null)return li;let i=Fn(e,n),s=i.indexOf(t.clientId),a=i.indexOf(o.clientId);return s>a?i.slice(a,s+1):i.slice(s,a+1)},e=>[e.blocks.order,e.blocks.parents,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]);function rg(e){let{selectionStart:t,selectionEnd:o}=e.selection;return t.clientId===o.clientId?li:og(e)}var cUe=(0,At.createSelector)(e=>{let t=rg(e);return t.length?t.map(o=>qf(e,o)):li},e=>[...og.getDependants(e),e.blocks.byClientId,e.blocks.order,e.blocks.attributes]);function BU(e){return rg(e)[0]||null}function rse(e){let t=rg(e);return t[t.length-1]||null}function dUe(e,t){return BU(e)===t}function nse(e,t){return rg(e).indexOf(t)!==-1}var uUe=(0,At.createSelector)((e,t)=>{let o=t,r=!1;for(;o&&!r;)o=xr(e,o),r=nse(e,o);return r},e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]);function fUe(e){let{selectionStart:t,selectionEnd:o}=e.selection;return t.clientId===o.clientId?null:t.clientId||null}function pUe(e){let{selectionStart:t,selectionEnd:o}=e.selection;return t.clientId===o.clientId?null:o.clientId||null}function mUe(e){if(ose(e))return!0;let t=KE(e),o=qE(e);return!t.attributeKey&&!o.attributeKey&&typeof t.offset>"u"&&typeof o.offset>"u"}function gUe(e){let t=KE(e),o=qE(e);return!!t&&!!o&&t.clientId===o.clientId&&t.attributeKey===o.attributeKey&&t.offset===o.offset}function hUe(e){return og(e).some(t=>{let o=no(e,t);return!(0,Lt.getBlockType)(o).merge})}function bUe(e,t){let o=KE(e),r=qE(e);if(o.clientId===r.clientId||!o.attributeKey||!r.attributeKey||typeof o.offset>"u"||typeof r.offset>"u")return!1;let n=xr(e,o.clientId),i=xr(e,r.clientId);if(n!==i)return!1;let s=Fn(e,n),a=s.indexOf(o.clientId),l=s.indexOf(r.clientId),d,u;a>l?(d=r,u=o):(d=o,u=r);let f=t?u.clientId:d.clientId,p=t?d.clientId:u.clientId,m=no(e,f);if(!(0,Lt.getBlockType)(m).merge)return!1;let h=qf(e,p);if(h.name===m)return!0;let b=(0,Lt.switchToBlockType)(h,m);return b&&b.length}var _Ue=e=>{let t=KE(e),o=qE(e);if(t.clientId===o.clientId||!t.attributeKey||!o.attributeKey||typeof t.offset>"u"||typeof o.offset>"u")return li;let r=xr(e,t.clientId),n=xr(e,o.clientId);if(r!==n)return li;let i=Fn(e,r),s=i.indexOf(t.clientId),a=i.indexOf(o.clientId),[l,d]=s>a?[o,t]:[t,o],u=qf(e,l.clientId),f=qf(e,d.clientId),p=u.attributes[l.attributeKey],m=f.attributes[d.attributeKey],g=(0,Kf.create)({html:p}),h=(0,Kf.create)({html:m});return g=(0,Kf.remove)(g,0,l.offset),h=(0,Kf.remove)(h,d.offset,h.text.length),[{...u,attributes:{...u.attributes,[l.attributeKey]:(0,Kf.toHTMLString)({value:g})}},{...f,attributes:{...f.attributes,[d.attributeKey]:(0,Kf.toHTMLString)({value:h})}}]};function Fn(e,t){return e.blocks.order.get(t||"")||li}function ise(e,t){let o=xr(e,t);return Fn(e,o).indexOf(t)}function sse(e,t){let{selectionStart:o,selectionEnd:r}=e.selection;return o.clientId!==r.clientId?!1:!!t&&o.clientId===t}var vUe=(0,At.createSelector)(e=>{let t=new Set;for(let o of og(e)){let r=o;for(;(r=e.blocks.parents.get(r))&&!t.has(r);)t.add(r)}return t},e=>og.getDependants(e));function ase(e,t,o=!1){if(!t)return!1;let r=og(e);return r.length?o?vUe(e).has(t):r.some(n=>xr(e,n)===t):!1}function lse(e,t,o=!1){return Fn(e,t).some(r=>OU(e,r)||o&&lse(e,r,o))}function yUe(e,t){if(!t)return!1;let o=rg(e),r=o.indexOf(t);return r>-1&&r<o.length-1}function wUe(e){let{selectionStart:t,selectionEnd:o}=e.selection;return t.clientId!==o.clientId}function xUe(e){return e.isMultiSelecting}function kUe(e){return e.isSelectionEnabled}function EU(e,t){return e.blocksMode[t]||"visual"}function SUe(e){return e.isTyping}function cse(e){return!!e.draggedBlocks.length}function CUe(e){return e.draggedBlocks}function OU(e,t){return e.draggedBlocks.includes(t)}function EUe(e,t){return cse(e)?_l(e,t).some(r=>OU(e,r)):!1}function TUe(){return(0,Ra.default)('wp.data.select( "core/block-editor" ).isCaretWithinFormattedText',{since:"6.1",version:"6.3"}),!1}var RUe=(0,At.createSelector)(e=>{let t,o,{insertionCue:r,selection:{selectionEnd:n}}=e;if(r!==null)return r;let{clientId:i}=n;return i?(t=xr(e,i)||void 0,o=ise(e,n.clientId)+1):o=Fn(e).length,{rootClientId:t,index:o}},e=>[e.insertionCue,e.selection.selectionEnd.clientId,e.blocks.parents,e.blocks.order]);function IUe(e){return e.insertionCue!==null}function PUe(e){return e.template.isValid}function BUe(e){return e.settings.template}function cu(e,t){if(!t)return e.settings.templateLock??!1;let o=Rw(e,t)?.templateLock;return o==="contentOnly"&&e.editedContentOnlySection===t?!1:o??!1}var MU=(e,t,o=null)=>{let r,n;if(t&&typeof t=="object"?(r=t,n=t.name):(r=(0,Lt.getBlockType)(t),n=t),!r)return!1;let{allowedBlockTypes:i}=Wf(e);if(!d_(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,d=!1;do{if(a.includes(no(e,l))){d=!0;break}l=e.blocks.parents.get(l)}while(l);return d}return!0},XE=(e,t,o=null)=>{if(e.settings.isPreviewMode||!MU(e,t,o))return!1;let r;t&&typeof t=="object"?(r=t,t=r.name):r=(0,Lt.getBlockType)(t);let n=cu(e,o);if(n&&n!=="contentOnly"||AU(e,o))return!1;let i=fs(e,o??""),s=!!$f(e,o),a=s?o:Gf(e,o),l=!!a;if(i==="disabled"&&(!l||t!==(0,Lt.getDefaultBlockName)()))return!1;let d=Rw(e,o);if(o&&d===void 0)return!1;let u=RU(t);if(l&&!u||l&&no(e,a)==="core/block")return!1;if(l&&(s||i==="contentOnly"||i==="disabled")&&!HE(e,t,o)){let w=(0,Lt.getDefaultBlockName)();if(t===w){if(!Fn(e,o).some(C=>no(e,C)===w))return!1}else return!1}let f=no(e,o),m=(0,Lt.getBlockType)(f)?.allowedBlocks,g=d_(m,t);if(g!==!1){let w=d?.allowedBlocks,x=d_(w,t);x!==null&&(g=x)}let h=r.parent,b=d_(h,f),v=!0,_=r.ancestor;_&&(v=[o,..._l(e,o)].some(x=>d_(_,no(e,x))));let y=v&&(g===null&&b===null||g===!0||b===!0);return y&&(0,Qie.applyFilters)("blockEditor.__unstableCanInsertBlockType",y,r,o,{getBlock:qf.bind(null,e),getBlockParentsByBlockName:IU.bind(null,e)})},l_=(0,At.createRegistrySelector)(e=>(0,At.createSelector)(XE,(t,o,r)=>eg(e)(t,r)));function OUe(e,t,o=null){return t.every(r=>l_(e,no(e,r),o))}function AU(e,t){return!!t&&no(e,t)==="core/html"}function NU(e,t){if(e.settings.isPreviewMode||AU(e,xr(e,t)))return!1;let o=Ta(e,t);if(o===null)return!0;if(o.lock?.remove!==void 0)return!o.lock.remove;let r=xr(e,t),n=cu(e,r);if(n&&n!=="contentOnly")return!1;let i=!!$f(e,r),s=i?r:Gf(e,r),a=!!s,l=RU(no(e,t));if(a&&!l||a&&no(e,s)==="core/block")return!1;let d=fs(e,r),u=no(e,t),f=(0,Lt.getDefaultBlockName)();return a&&(i||u===f||d==="contentOnly")&&!HE(e,no(e,t),r)?u===f?Fn(e,r).filter(g=>no(e,g)===f).length>1:!1:d!=="disabled"}function dse(e,t){return t.every(o=>NU(e,o))}function use(e,t){if(e.settings.isPreviewMode||AU(e,xr(e,t)))return!1;let o=Ta(e,t);if(o===null)return!0;if(o.lock?.move!==void 0)return!o.lock.move;let r=xr(e,t);if(cu(e,r)==="all")return!1;let i=!!Gf(e,t),s=RU(no(e,t));if(i&&!s)return!1;let a=!!$f(e,r),l=fs(e,r);return i&&(a||l==="contentOnly")&&!HE(e,no(e,t),r)?!1:fs(e,r)!=="disabled"}function MUe(e,t){return t.every(o=>use(e,o))}function fse(e,t){if(e.settings.isPreviewMode)return!1;let o=Ta(e,t);if(o===null)return!0;let{lock:r}=o;return!r?.edit}function AUe(e,t){return e.settings.isPreviewMode||!(0,Lt.hasBlockSupport)(t,"lock",!0)?!1:!!e.settings?.canLockBlocks}function i9(e,t){return e.preferences.insertUsage?.[t]??null}var YE=(e,t,o)=>(0,Lt.hasBlockSupport)(t,"inserter",!0)?XE(e,t.name,o):!1,NUe=(e,t)=>o=>{let r=`${t.id}/${o.name}`,{time:n,count:i=0}=i9(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,innerContent:o.innerContent,keywords:o.keywords||t.keywords,frecency:s9(n,i),isSearchOnly:o.isSearchOnly}},s9=(e,t)=>{if(!e)return t;let o=Date.now()-e;switch(!0){case o<zHe:return t*4;case o<jHe:return t*2;case o<HHe:return t/2;default:return t/4}},pse=(e,{buildScope:t="inserter"})=>o=>{let r=o.name,n=!1;(0,Lt.hasBlockSupport)(o.name,"multiple",!0)||(n=n9(e,Tw(e)).some(({name:f})=>f===o.name));let{time:i,count:s=0}=i9(e,r)||{},a={id:r,name:o.name,title:o.title,icon:o.icon,isDisabled:n,frecency:s9(i,s)};if(t==="transform")return a;let l=(0,Lt.getBlockVariations)(o.name,"inserter"),d=(0,Lt.getBlockVariations)(o.name,"block"),u=[...l,...d.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:u,example:o.example,utility:1}},LUe=(e,t)=>o=>{let r=`${t.id}/${o.name}`,{time:n,count:i=0}=i9(e,r)||{};return{...t,id:r,icon:o.icon||t.icon,title:o.title||t.title,frecency:s9(n,i),variationName:o.name}},DUe=(0,At.createRegistrySelector)(e=>(0,At.createSelector)((t,o=null,r=Jie)=>{let n=m=>{let g=m.wp_pattern_sync_status?hl:{src:hl,foreground:"var(--wp-block-synced-color)"},h=UE(m),{time:b,count:v=0}=i9(t,h.name)||{},_=s9(b,v);return{id:h.name,name:"core/block",initialAttributes:{ref:m.id},title:h.title,icon:g,category:"reusable",keywords:["reusable"],isDisabled:!1,utility:1,frecency:_,content:h.content,get blocks(){return r9(h).blocks},syncStatus:h.syncStatus}},i=XE(t,"core/block",o)?Z(e(wr)).getReusableBlocks().map(n):[],s=pse(t,{buildScope:"inserter"}),a=(0,Lt.getBlockTypes)().filter(m=>(0,Lt.hasBlockSupport)(m,"inserter",!0)).map(s);if(r[tg]!==!1)a=a.filter(m=>YE(t,m,o));else{let{getClosestAllowedInsertionPoint:m}=Z(e(wr));a=a.filter(g=>MU(t,g,o)&&m(g.name,o)!==null).map(g=>({...g,isAllowedInCurrentRoot:YE(t,g,o)}))}let l=a.reduce((m,g)=>{let{variations:h=[]}=g;if(h.some(({isDefault:b})=>b)||m.push(g),h.length){let b=NUe(t,g);m.push(...h.map(b))}return m},[]),d=(m,g)=>{let{core:h,noncore:b}=m;return(g.name.startsWith("core/")?h:b).push(g),m},{core:u,noncore:f}=l.reduce(d,{core:[],noncore:[]});return[...[...u,...f],...i]},(t,o)=>[(0,Lt.getBlockTypes)(),Z(e(wr)).getReusableBlocks(),t.blocks.order,t.preferences.insertUsage,...eg(e)(t,o)])),VUe=(0,At.createRegistrySelector)(e=>(0,At.createSelector)((t,o,r=null)=>{let n=Array.isArray(o)?o:[o],i=pse(t,{buildScope:"transform"}),s=(0,Lt.getBlockTypes)().filter(d=>YE(t,d,r)).map(i),a=Object.fromEntries(Object.entries(s).map(([,d])=>[d.name,d])),l=(0,Lt.getPossibleBlockTransformations)(n).reduce((d,u)=>{let f=a[u?.name];if(!f)return d;let{variationName:p}=u;if(!p)return d.push(f),d;let m=(0,Lt.getBlockVariations)(f.name,"transform")?.find(({name:g})=>g===p);return m?(d.push(LUe(t,f)(m)),d):(d.push(f),d)},[]);return du(l,d=>d.frecency,"desc")},(t,o,r)=>[(0,Lt.getBlockTypes)(),t.preferences.insertUsage,...eg(e)(t,r)])),FUe=(e,t=null)=>(0,Lt.getBlockTypes)().some(n=>YE(e,n,t))?!0:XE(e,"core/block",t),TU=(0,At.createRegistrySelector)(e=>(0,At.createSelector)((t,o=null)=>{if(!o)return;let r=(0,Lt.getBlockTypes)().filter(i=>YE(t,i,o));return XE(t,"core/block",o)&&r.push("core/block"),r},(t,o)=>[(0,Lt.getBlockTypes)(),...eg(e)(t,o)])),zUe=(0,At.createSelector)((e,t=null)=>((0,Ra.default)('wp.data.select( "core/block-editor" ).__experimentalGetAllowedBlocks',{alternative:'wp.data.select( "core/block-editor" ).getAllowedBlocks',since:"6.2",version:"6.4"}),TU(e,t)),(e,t)=>TU.getDependants(e,t));function mse(e,t=null){if(!t)return;let{defaultBlock:o,directInsert:r}=e.blockListSettings.get(t)??{};if(!(!o||!r))return o}function jUe(e,t=null){return(0,Ra.default)('wp.data.select( "core/block-editor" ).__experimentalGetDirectInsertBlock',{alternative:'wp.data.select( "core/block-editor" ).getDirectInsertBlock',since:"6.3",version:"6.4"}),mse(e,t)}var HUe=(0,At.createRegistrySelector)(e=>(t,o)=>{let r=Z(e(wr)).getPatternBySlug(o);return r?r9(r):null}),LU=e=>(t,o)=>[...GE(e)(t),...eg(e)(t,o)],Zie=new WeakMap;function UUe(e){let t=Zie.get(e);return t||(t={...e,get blocks(){return r9(e).blocks}},Zie.set(e,t)),t}var WUe=(0,At.createRegistrySelector)(e=>(0,At.createSelector)((t,o=null,r=Jie)=>{let{getAllPatterns:n}=Z(e(wr)),i=n(),{allowedBlockTypes:s}=Wf(t);return i.filter(({inserter:u=!0})=>!!u).map(UUe).filter(u=>WE(i_(u),s)).filter(u=>i_(u).every(({blockName:f})=>r[tg]!==!1?l_(t,f,o):MU(t,f,o)))},LU(e))),GUe=(0,At.createRegistrySelector)(e=>(0,At.createSelector)((t,o,r=null)=>{if(!o)return li;let n=e(wr).__experimentalGetAllowedPatterns(r),i=Array.isArray(o)?o:[o],s=n.filter(a=>a?.blockTypes?.some?.(l=>i.includes(l)));return s.length===0?li:s},(t,o,r)=>LU(e)(t,r))),$Ue=(0,At.createRegistrySelector)(e=>((0,Ra.default)('wp.data.select( "core/block-editor" ).__experimentalGetPatternsByBlockTypes',{alternative:'wp.data.select( "core/block-editor" ).getPatternsByBlockTypes',since:"6.2",version:"6.4"}),e(wr).getPatternsByBlockTypes)),YUe=(0,At.createRegistrySelector)(e=>(0,At.createSelector)((t,o,r=null)=>{if(!o||o.some(({clientId:i,innerBlocks:s})=>s.length||a9(t,i)))return li;let n=Array.from(new Set(o.map(({name:i})=>i)));return e(wr).getPatternsByBlockTypes(n,r)},(t,o,r)=>LU(e)(t,r)));function Rw(e,t){return e.blockListSettings.get(t)}function Wf(e){return e.settings}function KUe(e){return e.blocks.isPersistentChange}function qUe(e){return e.blocks.lastBlockChangeHistoryMode?e.blocks.lastBlockChangeHistoryMode:e.blocks.isPersistentChange===!1?"merge":"persistent"}var XUe=(0,At.createSelector)((e,t=[])=>{let o={};for(let r of t){let n=Rw(e,r);n&&(o[r]=n)}return o},e=>[e.blockListSettings]),ZUe=(0,At.createRegistrySelector)(e=>(0,At.createSelector)((t,o)=>{(0,Ra.default)("wp.data.select( 'core/block-editor' ).__experimentalGetReusableBlockTitle",{since:"6.6",version:"6.8"});let r=Z(e(wr)).getReusableBlocks().find(n=>n.id===o);return r?r.title?.raw:null},()=>[Z(e(wr)).getReusableBlocks()]));function QUe(e){return e.blocks.isIgnoredChange}function JUe(e){return e.lastBlockAttributesChange}function eWe(){return(0,Ra.default)('wp.data.select( "core/block-editor" ).hasBlockMovingClientId',{since:"6.7",hint:"Block moving mode feature has been removed"}),!1}function tWe(e){return!!e.automaticChangeStatus}function oWe(e,t){return e.highlightedBlock===t}function a9(e,t){return e.blocks.controlledInnerBlocks.has(t)}var rWe=(0,At.createSelector)((e,t)=>{if(!t.length)return null;let o=Bw(e);if(t.includes(no(e,o)))return o;let r=rg(e),n=IU(e,o||r[0],t);return n?n[n.length-1]:null},(e,t)=>[e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId,t]);function nWe(e,t,o){let{lastBlockInserted:r}=e;return r.clientIds?.includes(t)&&r.source===o}function iWe(e,t){return e.blockVisibility?.[t]??!0}function sWe(){(0,Ra.default)("wp.data.select( 'core/block-editor' ).getHoveredBlockClientId",{since:"6.9",version:"7.1"})}var aWe=(0,At.createSelector)(e=>{let t=new Set(Object.keys(e.blockVisibility).filter(o=>e.blockVisibility[o]));return t.size===0?UHe:t},e=>[e.blockVisibility]);function gse(e,t){if(fs(e,t)!=="default")return!1;if(!fse(e,t))return!0;if(kU(e)){let n=s_(e);if(n){if(Fn(e,n)?.includes(t))return!0}else if(t&&!xr(e,t))return!0}return((0,Lt.hasBlockSupport)(no(e,t),"__experimentalDisableBlockOverlay",!1)?!1:a9(e,t))&&!sse(e,t)&&!ase(e,t,!0)}function lWe(e,t){let o=e.blocks.parents.get(t);for(;o;){if(gse(e,o))return!0;o=e.blocks.parents.get(o)}return!1}function fs(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 cWe=(0,At.createRegistrySelector)(e=>(t,o="")=>{let r=o||Bw(t);if(!r||$f(t,r))return!1;let{getGroupingBlockName:n}=e(Lt.store),i=qf(t,r),s=n();return i&&(i.name===s||(0,Lt.getBlockType)(i.name)?.transforms?.ungroup)&&!!i.innerBlocks.length&&NU(t,r)}),dWe=(0,At.createRegistrySelector)(e=>(t,o=li)=>{let{getGroupingBlockName:r}=e(Lt.store),n=r(),i=o?.length?o:og(t),s=i?.length?xr(t,i[0]):void 0;return l_(t,n,s)&&i.length&&dse(t,i)}),uWe=(e,t)=>((0,Ra.default)("wp.data.select( 'core/block-editor' ).__unstableGetContentLockingParent",{since:"6.1",version:"6.7"}),wU(e,t));function fWe(e){return(0,Ra.default)("wp.data.select( 'core/block-editor' ).__unstableGetTemporarilyEditingAsBlocks",{since:"6.1",version:"6.7"}),xU(e)}var hse=(0,At.createSelector)((e,t)=>({...e.selectedBlockStyleState?.clientId===t?e.selectedBlockStyleState.value??a_:a_,viewport:CU(e)}),e=>[e.styleStateViewport,e.selectedBlockStyleState]);function pWe(e,t){let o=hse(e,t);return o.viewport!==a_.viewport||o.pseudo!==a_.pseudo}var c9={};ro(c9,{__experimentalUpdateSettings:()=>VU,clearBlockRemovalPrompt:()=>vWe,clearRequestedInspectorTab:()=>DWe,closeListViewContentPanel:()=>MWe,deleteStyleOverride:()=>xWe,editContentOnlySection:()=>zU,ensureDefaultBlock:()=>wse,expandBlock:()=>EWe,hideBlockInterface:()=>hWe,hideViewportModal:()=>NWe,openListViewContentPanel:()=>OWe,privateRemoveBlocks:()=>FU,requestInspectorTab:()=>LWe,resetZoomLevel:()=>PWe,setBlockRemovalRules:()=>yWe,setInsertionPoint:()=>TWe,setLastFocus:()=>kWe,setResponsiveEditing:()=>jWe,setSelectedBlockStyleState:()=>VWe,setSelectedBlockStyleStateCanvasPreview:()=>FWe,setStyleOverride:()=>wWe,setStyleStateViewport:()=>zWe,setZoomLevel:()=>IWe,showBlockInterface:()=>bWe,showViewportModal:()=>AWe,startDragging:()=>SWe,stopDragging:()=>CWe,stopEditingContentOnlySection:()=>RWe,toggleBlockSpotlight:()=>BWe});var _se=c(Gt(),1),vse=c(zo(),1),yse=c(X(),1),l9=c(ce(),1),mWe=e=>Array.isArray(e)?e:[e],gWe=["inserterMediaCategories","blockInspectorAnimation","mediaSideload"];function VU(e,{stripExperimentalSettings:t=!1,reset:o=!1}={}){let r=e;Object.hasOwn(r,"__unstableIsPreviewMode")&&((0,_se.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){n={};for(let i in r)gWe.includes(i)||(n[i]=r[i])}return{type:"UPDATE_SETTINGS",settings:n,reset:o}}function hWe(){return{type:"HIDE_BLOCK_INTERFACE"}}function bWe(){return{type:"SHOW_BLOCK_INTERFACE"}}var FU=(e,t=!0,o=!1)=>({select:r,dispatch:n,registry:i})=>{if(!e||!e.length||(e=mWe(e),!r.canRemoveBlocks(e)))return;let a=!o&&r.getBlockRemovalRules();if(a){let f=function(h){let b=[],v=[...h];for(;v.length;){let{innerBlocks:_,...y}=v.shift();v.push(..._),b.push(y)}return b};var l=f;let p=e.map(r.getBlock),m=f(p),g;for(let h of a)if(g=h.callback(m),g){n(_We(e,t,g));return}}let d=!1,u=r.getBlockRootClientId(e[0]);if(u&&!(0,l9.getBlockType)(r.getBlockName(u))?.parent?.length){let f=r.getBlockOrder(u);d=f.length===e.length&&f.every(p=>e.includes(p))&&(0,l9.isUnmodifiedBlock)(r.__unstableGetBlockWithoutInnerBlocks(u))}t&&n.selectPreviousBlock(d?u:e[0],t),i.batch(()=>{n({type:"REMOVE_BLOCKS",clientIds:d?[u]:e}),n(wse())})},wse=()=>({select:e,dispatch:t})=>{if(e.getBlockCount()>0)return;let{__unstableHasCustomAppender:r}=e.getSettings();r||t.insertDefaultBlock()};function _We(e,t,o){return{type:"DISPLAY_BLOCK_REMOVAL_PROMPT",clientIds:e,selectPrevious:t,message:o}}function vWe(){return{type:"CLEAR_BLOCK_REMOVAL_PROMPT"}}function yWe(e=!1){return{type:"SET_BLOCK_REMOVAL_RULES",rules:e}}function wWe(e,t){return{type:"SET_STYLE_OVERRIDE",id:e,style:t}}function xWe(e){return{type:"DELETE_STYLE_OVERRIDE",id:e}}function kWe(e=null){return{type:"LAST_FOCUS",lastFocus:e}}function SWe(){return{type:"START_DRAGGING"}}function CWe(){return{type:"STOP_DRAGGING"}}function EWe(e){return{type:"SET_BLOCK_EXPANDED_IN_LIST_VIEW",clientId:e}}function TWe(e){return{type:"SET_INSERTION_POINT",value:e}}function zU(e){return{type:"EDIT_CONTENT_ONLY_SECTION",clientId:e}}function RWe(){return{type:"EDIT_CONTENT_ONLY_SECTION"}}var IWe=(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,vse.speak)((0,yse.__)("You are currently in zoom-out mode."))}}o({type:"SET_ZOOM_LEVEL",zoom:e})};function PWe(){return{type:"RESET_ZOOM_LEVEL"}}function BWe(e,t){return{type:"TOGGLE_BLOCK_SPOTLIGHT",clientId:e,hasBlockSpotlight:t}}function OWe(){return{type:"OPEN_LIST_VIEW_CONTENT_PANEL"}}function MWe(){return{type:"CLOSE_LIST_VIEW_CONTENT_PANEL"}}function AWe(e){return{type:"SHOW_VIEWPORT_MODAL",clientIds:e}}function NWe(){return{type:"HIDE_VIEWPORT_MODAL"}}function LWe(e,t={}){return{type:"REQUEST_INSPECTOR_TAB",tabName:e,options:t}}function DWe(){return{type:"CLEAR_REQUESTED_INSPECTOR_TAB"}}function VWe(e,t){return{type:"SET_SELECTED_BLOCK_STYLE_STATE",clientId:e,value:t}}function FWe(e,t){return{type:"SET_SELECTED_BLOCK_STYLE_STATE_CANVAS_PREVIEW",clientId:e,value:t}}function zWe(e){return{type:"SET_STYLE_STATE_VIEWPORT",viewport:e}}function jWe(e){return{type:"SET_RESPONSIVE_EDITING",enabled:e}}var HU={};ro(HU,{__unstableDeleteSelection:()=>uGe,__unstableExpandSelection:()=>pGe,__unstableIncrementListViewExpandRevision:()=>YGe,__unstableMarkAutomaticChange:()=>BGe,__unstableMarkLastChangeAsPersistent:()=>IGe,__unstableMarkNextChangeAsNotPersistent:()=>PGe,__unstableSaveReusableBlock:()=>RGe,__unstableSetAllListViewPanelsOpen:()=>GGe,__unstableSetEditorMode:()=>OGe,__unstableSetOpenListViewPanel:()=>WGe,__unstableSetTemporarilyEditingAsBlocks:()=>zGe,__unstableSplitSelection:()=>fGe,__unstableToggleListViewPanel:()=>$Ge,clearSelectedBlock:()=>eGe,duplicateBlocks:()=>AGe,enterFormattedText:()=>xGe,exitFormattedText:()=>kGe,flashBlock:()=>DGe,hideInsertionPoint:()=>lGe,hoverBlock:()=>KWe,insertAfterBlock:()=>LGe,insertBeforeBlock:()=>NGe,insertBlock:()=>sGe,insertBlocks:()=>Mse,insertDefaultBlock:()=>CGe,mergeBlocks:()=>mGe,moveBlockToPosition:()=>iGe,moveBlocksDown:()=>rGe,moveBlocksToPosition:()=>Bse,moveBlocksUp:()=>nGe,multiSelect:()=>JWe,receiveBlocks:()=>WWe,registerInserterMediaCategory:()=>jGe,removeBlock:()=>gGe,removeBlocks:()=>Ase,replaceBlock:()=>oGe,replaceBlocks:()=>Ise,replaceInnerBlocks:()=>hGe,resetBlocks:()=>HWe,resetSelection:()=>UWe,selectBlock:()=>YWe,selectNextBlock:()=>XWe,selectPreviousBlock:()=>qWe,selectionChange:()=>SGe,setBlockEditingMode:()=>HGe,setBlockMovingClientId:()=>MGe,setBlockVisibility:()=>FGe,setHasControlledInnerBlocks:()=>VGe,setTemplateValidity:()=>cGe,showInsertionPoint:()=>aGe,startDraggingBlocks:()=>yGe,startMultiSelect:()=>ZWe,startTyping:()=>_Ge,stopDraggingBlocks:()=>wGe,stopMultiSelect:()=>QWe,stopTyping:()=>vGe,synchronizeTemplate:()=>dGe,toggleBlockHighlight:()=>jU,toggleBlockMode:()=>bGe,toggleSelection:()=>tGe,unsetBlockEditingMode:()=>UGe,updateBlock:()=>$We,updateBlockAttributes:()=>GWe,updateBlockListSettings:()=>EGe,updateSettings:()=>TGe,validateBlocksToTemplate:()=>Rse});var tt=c(ce(),1),Cse=c(zo(),1),ng=c(X(),1),Ese=c(Ks(),1),Do=c(pn(),1),uu=c(Gt(),1);var kse=c(pn(),1),Xf="\x86";function ZE(e){if(e)return Object.keys(e).find(t=>{let o=e[t];return(typeof o=="string"||o instanceof kse.RichTextData)&&o.toString().indexOf(Xf)!==-1})}function QE(e){for(let[t,o]of Object.entries(e.attributes))if(o.source==="rich-text"||o.source==="html")return t}var Sse=c(ce(),1);function Ow(e,t){if(!t)return{};let o=new Set((0,Sse.getBlockAttributesNamesByRole)(e,"content"));return o.add("metadata"),Object.fromEntries(Object.entries(t).filter(([r])=>!o.has(r)))}var{editableRootKey:Tse}=Z(tt.privateApis),Mw=e=>Array.isArray(e)?e:[e],HWe=e=>({dispatch:t})=>{t({type:"RESET_BLOCKS",blocks:e}),t(Rse(e))},Rse=e=>({select:t,dispatch:o})=>{let r=t.getTemplate(),n=t.getTemplateLock(),i=!r||n!=="all"||(0,tt.doBlocksMatchTemplate)(e,r),s=t.isValidTemplate();if(i!==s)return o.setTemplateValidity(i),i};function UWe(e,t,o){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t,initialPosition:o}}function WWe(e){return(0,uu.default)('wp.data.dispatch( "core/block-editor" ).receiveBlocks',{since:"5.9",alternative:"resetBlocks or insertBlocks"}),{type:"RECEIVE_BLOCKS",blocks:e}}function GWe(e,t,o={uniqueByBlock:!1}){return typeof o=="boolean"&&(o={uniqueByBlock:o}),{type:"UPDATE_BLOCK_ATTRIBUTES",clientIds:Mw(e),attributes:t,options:o}}function $We(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function YWe(e,t=0){return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}function KWe(){return(0,uu.default)('wp.data.dispatch( "core/block-editor" ).hoverBlock',{since:"6.9",version:"7.1"}),{type:"DO_NOTHING"}}var qWe=(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)}}},XWe=e=>({select:t,dispatch:o})=>{let r=t.getNextBlockClientId(e);r&&o.selectBlock(r)};function ZWe(){return{type:"START_MULTI_SELECT"}}function QWe(){return{type:"STOP_MULTI_SELECT"}}var JWe=(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(),l=r.getClientIdsOfDescendants(r.getMultiSelectedBlockClientIds()).length;(0,Cse.speak)(l?(0,ng.sprintf)((0,ng._n)("%1$s block selected, %2$s including nested blocks.","%1$s blocks selected, %2$s including nested blocks.",a),a,a+l):(0,ng.sprintf)((0,ng._n)("%s block selected.","%s blocks selected.",a),a),"assertive")};function eGe(){return{type:"CLEAR_SELECTED_BLOCK"}}function tGe(e=!0){return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}var Ise=(e,t,o,r=0,n)=>({select:i,dispatch:s,registry:a})=>{e=Mw(e),t=Mw(t);let l=i.getBlockRootClientId(e[0]);for(let u=0;u<t.length;u++){let f=t[u];if(!i.canInsertBlockType(f.name,l))return}let d=d9(t);a.batch(()=>{s({type:"REPLACE_BLOCKS",clientIds:e,blocks:d,time:Date.now(),indexToSelect:o,initialPosition:r,meta:n}),Ose(i,s,t,d,r),s.ensureDefaultBlock()})};function oGe(e,t){return Ise(e,t)}var Pse=e=>(t,o)=>({select:r,dispatch:n})=>{r.canMoveBlocks(t)&&n({type:e,clientIds:Mw(t),rootClientId:o})},rGe=Pse("MOVE_BLOCKS_DOWN"),nGe=Pse("MOVE_BLOCKS_UP"),Bse=(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 iGe(e,t="",o="",r){return Bse([e],t,o,r)}function sGe(e,t,o,r,n,i){return Mse([e],t,o,r,n,i)}function d9(e,t=new Set){let o=!1,r=e.map(n=>{let{innerBlocks:i}=n;if(i?.length)i=d9(i,t);else if(!t.has(n.name)){let{template:s}=(0,tt.getBlockType)(n.name)??{};s?.length&&(i=d9((0,tt.synchronizeBlocksWithTemplate)([],s),new Set(t).add(n.name)))}return i===n.innerBlocks?n:(o=!0,{...n,innerBlocks:i})});return o?r:e}function Ose(e,t,o,r,n){let i=e.getSelectedBlockClientId();if(!i)return;let s=r.findIndex(l=>l.clientId===i);if(s===-1||r[s]===o[s]||!r[s].innerBlocks.length||!(0,tt.getBlockType)(r[s].name)?.templateInsertUpdatesSelection)return;let a=r[s];for(;a.innerBlocks[0];)a=a.innerBlocks[0];t.selectBlock(a.clientId,n)}var Mse=(e,t,o,r=!0,n=0,i)=>({select:s,dispatch:a,registry:l})=>{n!==null&&typeof n=="object"&&(i=n,n=0,(0,uu.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=Mw(e);let d=[];for(let u of e)s.canInsertBlockType(u.name,o)&&d.push(u);if(d.length){let u=d9(d);l.batch(()=>{if(a({type:"INSERT_BLOCKS",blocks:u,index:t,rootClientId:o,time:Date.now(),updateSelection:r,initialPosition:r?n:null,meta:i}),Ose(s,a,d,u,n),r&&n===0){let f=s.getSelectedBlockClientId(),p=f&&(0,tt.getBlockType)(s.getBlockName(f)),m=p?.[Tse]&&QE(p);m&&a.selectionChange(f,m,0,0)}})}};function aGe(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 lGe=()=>({select:e,dispatch:t})=>{e.isBlockInsertionPointVisible()&&t({type:"HIDE_INSERTION_POINT"})};function cGe(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}var dGe=()=>({select:e,dispatch:t})=>{t({type:"SYNCHRONIZE_TEMPLATE"});let o=e.getBlocks(),r=e.getTemplate(),n=(0,tt.synchronizeBlocksWithTemplate)(o,r);t.resetBlocks(n)},uGe=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),d=l.indexOf(n.clientId),u=l.indexOf(i.clientId),f,p;d>u?(f=i,p=n):(f=n,p=i);let m=e?p:f,g=o.getBlock(m.clientId),h=(0,tt.getBlockType)(g.name);if(!h.merge)return;let b=f,v=p,_=o.getBlock(b.clientId),y=o.getBlock(v.clientId),w=_.attributes[b.attributeKey],x=y.attributes[v.attributeKey],k=(0,Do.create)({html:w}),C=(0,Do.create)({html:x});k=(0,Do.remove)(k,b.offset,k.text.length),C=(0,Do.insert)(C,Xf,0,v.offset);let S=(0,tt.cloneBlock)(_,{[b.attributeKey]:(0,Do.toHTMLString)({value:k})}),R=(0,tt.cloneBlock)(y,{[v.attributeKey]:(0,Do.toHTMLString)({value:C})}),E=e?S:R,I=_.name===y.name?[E]:(0,tt.switchToBlockType)(E,h.name);if(!I||!I.length)return;let B;if(e){let F=I.pop();B=h.merge(F.attributes,R.attributes)}else{let F=I.shift();B=h.merge(S.attributes,F.attributes)}let O=ZE(B),M=B[O],N=(0,Do.create)({html:M}),j=N.text.indexOf(Xf),V=(0,Do.remove)(N,j,j+1),A=(0,Do.toHTMLString)({value:V});B[O]=A;let L=o.getSelectedBlockClientIds(),z=[...e?I:[],{...g,attributes:{...g.attributes,...B},innerBlocks:y.innerBlocks},...e?[]:I];t.batch(()=>{r.selectionChange(g.clientId,O,j,j),r.replaceBlocks(L,z,0,o.getSelectedBlocksInitialCaretPosition())})},fGe=(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),d=l.indexOf(n.clientId),u=l.indexOf(i.clientId),f,p;d>u?(f=i,p=n):(f=n,p=i);let m=f,g=p,h=o.getBlock(m.clientId),b=o.getBlock(g.clientId),v=(0,tt.getBlockType)(h.name),_=(0,tt.getBlockType)(b.name),y=typeof m.attributeKey=="string"?m.attributeKey:QE(v),w=typeof g.attributeKey=="string"?g.attributeKey:QE(_),x=o.getBlockAttributes(m.clientId);if(x?.metadata?.bindings?.[y]){if(e.length){let{createWarningNotice:$}=t.dispatch(Ese.store);$((0,ng.__)("Blocks can't be inserted into other blocks with bindings"),{type:"snackbar"});return}r.insertAfterBlock(m.clientId);return}if(!y||!w||typeof n.offset>"u"||typeof i.offset>"u")return;if(m.clientId===g.clientId&&y===w&&m.offset===g.offset){if(e.length){if((0,tt.isUnmodifiedDefaultBlock)(h,"content")){r.replaceBlocks([m.clientId],e,e.length-1,-1);return}}else if(!o.getBlockOrder(m.clientId).length){let $=function(){let q=(0,tt.getDefaultBlockName)();if(o.canInsertBlockType(q,s))return(0,tt.createBlock)(q);let H=o.getBlockName(m.clientId);return(0,tt.createBlock)(H,Ow(H,x))};var C=$;let K=x[y].length;if(m.offset===0&&K){r.insertBlocks([$()],o.getBlockIndex(m.clientId),s,!1);return}if(m.offset===K){r.insertBlocks([$()],o.getBlockIndex(m.clientId)+1,s);return}}}let S=h.attributes[y],R=b.attributes[w],E=(0,Do.create)({html:S}),I=(0,Do.create)({html:R});E=(0,Do.remove)(E,m.offset,E.text.length),I=(0,Do.remove)(I,0,g.offset);let B={...h,innerBlocks:h.clientId===b.clientId?[]:h.innerBlocks,attributes:{...h.attributes,[y]:(0,Do.toHTMLString)({value:E})}},O={...b,clientId:h.clientId===b.clientId?(0,tt.createBlock)(b.name).clientId:b.clientId,attributes:{...b.attributes,[w]:(0,Do.toHTMLString)({value:I})}},M=(0,tt.getDefaultBlockName)();if(h.clientId===b.clientId&&M&&O.name!==M&&o.canInsertBlockType(M,s)){let $=(0,tt.switchToBlockType)(O,M);$?.length===1&&(O=$[0])}if(!e.length){t.batch(()=>{r.replaceBlocks(o.getSelectedBlockClientIds(),[B,O]);let $=(0,tt.getBlockType)(O.name),K=$?.[Tse]&&QE($);K&&r.selectionChange(O.clientId,K,0,0)});return}let N,j=[],V=[...e],A=V.shift(),L=(0,tt.getBlockType)(B.name),z=L.merge&&A.name===L.name?[A]:(0,tt.switchToBlockType)(A,L.name);if(z?.length){let $=z.shift();B={...B,attributes:{...B.attributes,...L.merge(B.attributes,$.attributes)}},j.push(B),N={clientId:B.clientId,attributeKey:y,offset:(0,Do.create)({html:B.attributes[y]}).text.length},V.unshift(...z)}else(0,tt.isUnmodifiedBlock)(B)||j.push(B),j.push(A);let F=V.pop(),G=(0,tt.getBlockType)(O.name);if(V.length&&j.push(...V),F){let $=G.merge&&G.name===F.name?[F]:(0,tt.switchToBlockType)(F,G.name);if($?.length){let K=$.pop();j.push({...O,attributes:{...O.attributes,...G.merge(K.attributes,O.attributes)}}),j.push(...$),N={clientId:O.clientId,attributeKey:w,offset:(0,Do.create)({html:K.attributes[w]}).text.length}}else j.push(F),(0,tt.isUnmodifiedBlock)(O)||j.push(O)}else(0,tt.isUnmodifiedBlock)(O)||j.push(O);t.batch(()=>{r.replaceBlocks(o.getSelectedBlockClientIds(),j,j.length-1,0),N&&r.selectionChange(N.clientId,N.attributeKey,N.offset,N.offset)})},pGe=()=>({select:e,dispatch:t})=>{let o=e.getSelectionStart(),r=e.getSelectionEnd();t.selectionChange({start:{clientId:o.clientId},end:{clientId:r.clientId}})},mGe=(e,t)=>({registry:o,select:r,dispatch:n})=>{let i=e,s=t,a=r.getBlock(i),l=(0,tt.getBlockType)(a.name);if(!l||r.getBlockEditingMode(i)==="disabled"||r.getBlockEditingMode(s)==="disabled")return;let d=r.getBlock(s);if(!l.merge&&(0,tt.getBlockSupport)(a.name,"__experimentalOnMerge")){let x=(0,tt.switchToBlockType)(d,l.name);if(x?.length!==1){n.selectBlock(a.clientId);return}let[k]=x;if(k.innerBlocks.length<1){n.selectBlock(a.clientId);return}o.batch(()=>{n.insertBlocks(k.innerBlocks,void 0,i),n.removeBlock(s),n.selectBlock(k.innerBlocks[0].clientId);let C=r.getNextBlockClientId(i);if(C&&r.getBlockName(i)===r.getBlockName(C)){let S=r.getBlockAttributes(i),R=r.getBlockAttributes(C);Object.keys(S).every(E=>S[E]===R[E])&&(n.moveBlocksToPosition(r.getBlockOrder(C),C,i),n.removeBlock(C,!1))}});return}if((0,tt.isUnmodifiedDefaultBlock)(a)||l.merge&&a.name!==d.name&&(0,tt.isUnmodifiedBlock)(a,"content")){r.isBlockSelected(i)?o.batch(()=>{n.removeBlock(i,!1),n.selectBlock(s,0)}):n.removeBlock(i,!1);return}if((0,tt.isUnmodifiedDefaultBlock)(d)){n.removeBlock(s,r.isBlockSelected(s));return}if(!l.merge){(0,tt.isUnmodifiedBlock)(d,"content")?n.removeBlock(s,r.isBlockSelected(s)):n.selectBlock(a.clientId);return}let u=(0,tt.getBlockType)(d.name),{clientId:f,attributeKey:p,offset:m}=r.getSelectionStart(),h=(f===i?l:u).attributes[p],b=(f===i||f===s)&&p!==void 0&&m!==void 0&&!!h;h||(typeof p=="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 p}`):window.console.error("The RichText identifier prop does not match any attributes defined by the block."));let v=(0,tt.cloneBlock)(a),_=(0,tt.cloneBlock)(d);if(b){let x=f===i?v:_,k=x.attributes[p],C=(0,Do.insert)((0,Do.create)({html:k}),Xf,m,m);x.attributes[p]=(0,Do.toHTMLString)({value:C})}let y=a.name===d.name?[_]:(0,tt.switchToBlockType)(_,a.name);if(!y||!y.length)return;let w=l.merge(v.attributes,y[0].attributes);if(b){let x=ZE(w),k=w[x],C=(0,Do.create)({html:k}),S=C.text.indexOf(Xf),R=(0,Do.remove)(C,S,S+1),E=(0,Do.toHTMLString)({value:R});w[x]=E,n.selectionChange(a.clientId,x,S,S)}n.replaceBlocks([a.clientId,d.clientId],[{...a,attributes:{...a.attributes,...w}},...y.slice(1)],0)},Ase=(e,t=!0)=>FU(e,t);function gGe(e,t){return Ase([e],t)}function hGe(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 bGe(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function _Ge(){return{type:"START_TYPING"}}function vGe(){return{type:"STOP_TYPING"}}function yGe(e=[]){return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function wGe(){return{type:"STOP_DRAGGING_BLOCKS"}}function xGe(){return(0,uu.default)('wp.data.dispatch( "core/block-editor" ).enterFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function kGe(){return(0,uu.default)('wp.data.dispatch( "core/block-editor" ).exitFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function SGe(e,t,o,r){return typeof e=="string"?{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:o,endOffset:r}:{type:"SELECTION_CHANGE",...e}}var CGe=(e,t,o)=>({dispatch:r})=>{let n=(0,tt.getDefaultBlockName)();if(!n)return;let i=(0,tt.createBlock)(n,e);return r.insertBlock(i,o,t)};function EGe(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function TGe(e){return VU(e,{stripExperimentalSettings:!0})}function RGe(){return(0,uu.default)('wp.data.dispatch( "core/block-editor" ).__unstableSaveReusableBlock',{since:"7.1"}),{type:"DO_NOTHING"}}function IGe(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function PGe({history:e="merge"}={}){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT",history:e}}var BGe=()=>({dispatch:e})=>{e({type:"MARK_AUTOMATIC_CHANGE"});let{requestIdleCallback:t=o=>setTimeout(o,100)}=window;t(()=>{e({type:"MARK_AUTOMATIC_CHANGE_FINAL"})})};function OGe(){return(0,uu.default)('wp.data.dispatch( "core/block-editor" ).__unstableSetEditorMode',{since:"7.2",hint:"The Write/Design editor tool has been removed."}),{type:"DO_NOTHING"}}function MGe(){return(0,uu.default)('wp.data.dispatch( "core/block-editor" ).setBlockMovingClientId',{since:"6.7",hint:"Block moving mode feature has been removed"}),{type:"DO_NOTHING"}}var AGe=(e,t=!0)=>({select:o,dispatch:r})=>{if(!e||!e.length)return;let n=o.getBlocksByClientId(e);if(n.some(u=>!u)||n.map(u=>u.name).some(u=>!(0,tt.hasBlockSupport)(u,"multiple",!0)))return;let s=o.getBlockRootClientId(e[0]),a=Mw(e),l=o.getBlockIndex(a[a.length-1]),d=n.map(u=>(0,tt.cloneSanitizedBlock)(u));return r.insertBlocks(d,l+1,s,t),d.length>1&&t&&r.multiSelect(d[0].clientId,d[d.length-1].clientId),d.map(u=>u.clientId)},NGe=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=(0,tt.createBlock)(i.name,{...i.attributes,...t.getBlockName(e)===i.name?Ow(i.name,t.getBlockAttributes(e)):{}});return o.insertBlock(s,n,r)},LGe=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=(0,tt.createBlock)(i.name,{...i.attributes,...t.getBlockName(e)===i.name?Ow(i.name,t.getBlockAttributes(e)):{}});return o.insertBlock(s,n+1,r)};function jU(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}var DGe=(e,t=150)=>async({dispatch:o})=>{o(jU(e,!0)),await new Promise(r=>setTimeout(r,t)),o(jU(e,!1))};function VGe(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}function FGe(e){return{type:"SET_BLOCK_VISIBILITY",updates:e}}function zGe(e){return(0,uu.default)("wp.data.dispatch( 'core/block-editor' ).__unstableSetTemporarilyEditingAsBlocks",{since:"7.0"}),zU(e)}var jGe=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[]|InserterMediaResponse>`.");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 HGe(e="",t){return{type:"SET_BLOCK_EDITING_MODE",clientId:e,mode:t}}function UGe(e=""){return{type:"UNSET_BLOCK_EDITING_MODE",clientId:e}}function WGe(e){return{type:"SET_OPEN_LIST_VIEW_PANEL",clientId:e}}function GGe(){return{type:"SET_ALL_LIST_VIEW_PANELS_OPEN"}}function $Ge(e,t){return{type:"TOGGLE_LIST_VIEW_PANEL",clientId:e,isOpen:t}}function YGe(){return{type:"INCREMENT_LIST_VIEW_EXPAND_REVISION"}}var Aw={reducer:Yne,selectors:DU,actions:HU},P=(0,u9.createReduxStore)(wr,{...Aw,persist:["preferences"]}),Nse=(0,u9.registerStore)(wr,{...Aw,persist:["preferences"]});Z(Nse).registerPrivateActions(c9);Z(Nse).registerPrivateSelectors(e9);Z(P).registerPrivateActions(c9);Z(P).registerPrivateSelectors(e9);var Nw=c(Q(),1),Lse=c(X(),1);var Gc=c(T(),1);function KGe({className:e,actions:t,children:o,secondaryActions:r}){return(0,Gc.jsx)("div",{style:{display:"contents",all:"initial"},children:(0,Gc.jsx)("div",{className:U(e,"block-editor-warning"),children:(0,Gc.jsxs)("div",{className:"block-editor-warning__contents",children:[(0,Gc.jsx)("p",{className:"block-editor-warning__message",children:o}),(t?.length>0||r)&&(0,Gc.jsxs)("div",{className:"block-editor-warning__actions",children:[t?.length>0&&t.map((n,i)=>(0,Gc.jsx)("span",{className:"block-editor-warning__action",children:n},i)),r&&(0,Gc.jsx)(Nw.DropdownMenu,{className:"block-editor-warning__secondary",icon:Hc,label:(0,Lse.__)("More options"),popoverProps:{placement:"bottom-end",className:"block-editor-warning__dropdown"},noIcons:!0,children:()=>(0,Gc.jsx)(Nw.MenuGroup,{children:r.map((n,i)=>(0,Gc.jsx)(Nw.MenuItem,{onClick:n.onClick,children:n.title},i))})})]})]})})})}var ig=KGe;var Lw=c(T(),1);function Fse({originalBlockClientId:e,name:t,onReplace:o}){let{selectBlock:r}=(0,Vse.useDispatch)(P),n=(0,Dse.getBlockType)(t);return(0,Lw.jsxs)(ig,{actions:[(0,Lw.jsx)(UU.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>r(e),children:(0,f9.__)("Find original")},"find-original"),(0,Lw.jsx)(UU.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>o([]),children:(0,f9.__)("Remove")},"remove")],children:[(0,Lw.jsxs)("strong",{children:[n?.title,": "]}),(0,f9.__)("This block can only be used once.")]})}var JE=c(T(),1);function g9({mayDisplayControls:e,mayDisplayParentControls:t,mayDisplayPatternEditingControls:o,blockEditingMode:r,isPreviewMode:n,...i}){let{name:s,isSelected:a,clientId:l,attributes:d={},__unstableLayoutClassNames:u}=i,{layout:f=null,metadata:p={}}=d,{bindings:m}=p,g=(0,p9.hasBlockSupport)(s,"layout",!1)||(0,p9.hasBlockSupport)(s,"__experimentalLayout",!1),b=!!Mt()[PS]||(0,p9.hasBlockSupport)(s,"listView")||s==="core/navigation",{originalBlockClientId:v}=(0,m9.useContext)(si);return(0,JE.jsxs)(h3,{value:(0,m9.useMemo)(()=>({name:s,isSelected:a,clientId:l,layout:g?f:null,__unstableLayoutClassNames:u,[tu]:e,[Gy]:t,[$y]:o&&r!=="disabled",[Yy]:r,[Ky]:m,[g3]:n,[PS]:b}),[s,a,l,g,f,u,e,t,o,r,m,n,b]),children:[(0,JE.jsx)(One,{...i}),v&&(0,JE.jsx)(Fse,{originalBlockClientId:v,name:s,onReplace:i.onReplace})]})}function Fe(...e){let{clientId:t=null}=Mt();return(0,zse.useSelect)(o=>Z(o(P)).getBlockSettings(t,...e),[t,...e])}function Hse(e){(0,jse.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]=Fe(e);return t}var h9=c(T(),1),Use=([e,...t])=>e.toUpperCase()+t.join(""),qGe=e=>(0,u_.createHigherOrderComponent)(t=>function(r){return(0,h9.jsx)(t,{...r,colors:e})},"withCustomColorPalette"),XGe=()=>(0,u_.createHigherOrderComponent)(e=>function(o){let[r,n,i]=Fe("color.palette.custom","color.palette.theme","color.palette.default"),s=(0,Dw.useMemo)(()=>[...r||[],...n||[],...i||[]],[r,n,i]);return(0,h9.jsx)(e,{...o,colors:s})},"withEditorColorPalette");function Wse(e,t){let o=e.reduce((r,n)=>({...r,...typeof n=="string"?{[n]:Bi(n)}:n}),{});return(0,u_.compose)([t,r=>function(i){let{colors:s,...a}=i,{attributes:l,setAttributes:d}=a,u=(0,Dw.useRef)(null),f=(0,Dw.useMemo)(()=>{let m=u.current,g=Object.fromEntries(Object.entries(o).flatMap(([h,b])=>{let v=`custom${Use(h)}`,_=Use(h),y=ru(s,l[h],l[v]),w=m?.[h],x=w?.color===y.color&&w?w:{...y,class:pl(b,y.slug)},k=C=>{let S=w3(s,C);d({[h]:S?.slug||void 0,[v]:S?.slug?void 0:C})};return[[h,x],[`set${_}`,k]]}));return u.current=g,g},[l,s,d]),p=(0,Dw.useMemo)(()=>({getMostReadableColor:m=>bne(s,m)}),[s]);return(0,h9.jsx)(r,{...a,...f,colorUtils:p})}])}function Gse(e){return(...t)=>{let o=qGe(e);return(0,u_.createHigherOrderComponent)(Wse(t,o),"withCustomColors")}}function $se(...e){let t=XGe();return(0,u_.createHigherOrderComponent)(Wse(e,t),"withColors")}var b9=c(D(),1),_9=c(oe(),1);function Vw(e){if(e)return`has-${e}-gradient-background`}function v9(e,t){let o=e?.find(r=>r.slug===t);return o&&o.gradient}function Yse(e,t){return e?.find(r=>r.gradient===t)}function Kse(e,t){let o=Yse(e,t);return o&&o.slug}function ZGe({gradientAttribute:e="gradient",customGradientAttribute:t="customGradient"}={}){let{clientId:o}=Mt(),[r,n,i]=Fe("color.gradients.custom","color.gradients.theme","color.gradients.default"),s=(0,b9.useMemo)(()=>[...r||[],...n||[],...i||[]],[r,n,i]),{gradient:a,customGradient:l}=(0,_9.useSelect)(m=>{let{getBlockAttributes:g}=m(P),h=g(o)||{};return{customGradient:h[t],gradient:h[e]}},[o,e,t]),{updateBlockAttributes:d}=(0,_9.useDispatch)(P),u=(0,b9.useCallback)(m=>{let g=Kse(s,m);if(g){d(o,{[e]:g,[t]:void 0});return}d(o,{[e]:void 0,[t]:m})},[s,o,d]),f=Vw(a),p;return a?p=v9(s,a):p=l,{gradientClass:f,gradientValue:p,setGradient:u}}var Fw=(e,t,o)=>{if(t){let r=e?.find(({slug:n})=>n===t);if(r)return r}return{size:o}};function WU(e,t){let o=e?.find(({size:r})=>r===t);return o||{size:t}}function sg(e){if(e)return`has-${Bi(e)}-font-size`}var QGe="1600px",JGe="320px",e$e=1,t$e=.25,o$e=.75,r$e="14px";function qse({minimumFontSize:e,maximumFontSize:t,fontSize:o,minimumViewportWidth:r=JGe,maximumViewportWidth:n=QGe,scaleFactor:i=e$e,minimumFontSizeLimit:s}){if(s=ag(s)?s:r$e,o){let y=ag(o);if(!y?.unit)return null;let w=ag(s,{coerceTo:y.unit});if(w?.value&&!e&&!t&&y?.value<=w?.value)return null;if(t||(t=`${y.value}${y.unit}`),!e){let x=y.unit==="px"?y.value:y.value*16,k=Math.min(Math.max(1-.075*Math.log2(x),t$e),o$e),C=eT(y.value*k,3);w?.value&&C<w?.value?e=`${w.value}${w.unit}`:e=`${C}${y.unit}`}}let a=ag(e),l=a?.unit||"rem",d=ag(t,{coerceTo:l});if(!a||!d)return null;let u=ag(e,{coerceTo:"rem"}),f=ag(n,{coerceTo:l}),p=ag(r,{coerceTo:l});if(!f||!p||!u)return null;let m=f.value-p.value;if(!m)return null;let g=eT(p.value/100,3),h=eT(g,3)+l,b=100*((d.value-a.value)/m),v=eT((b||1)*i,3),_=`${u.value}${u.unit} + ((1vw - ${h}) * ${v})`;return`clamp(${e}, ${_}, ${t})`}function ag(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,d]=a,u=parseFloat(l);return o==="px"&&(d==="em"||d==="rem")&&(u=u*r,d=o),d==="px"&&(o==="em"||o==="rem")&&(u=u/r,d=o),(o==="em"||o==="rem")&&(d==="em"||d==="rem")&&(d=o),{value:eT(u,3),unit:d}}function eT(e,t=3){let o=Math.pow(10,t);return Number.isFinite(e)?parseFloat(Math.round(e*o)/o):void 0}var Xse=c(Q(),1);var Zse=c(T(),1);function n$e(e){let[t,o]=Fe("typography.fontSizes","typography.customFontSize");return(0,Zse.jsx)(Xse.FontSizePicker,{...e,fontSizes:t,disableCustomFontSizes:!o})}var GU=n$e;var tT=c(ue(),1),Jse=c(D(),1);var $U=c(T(),1),i$e=[],Qse=([e,...t])=>e.toUpperCase()+t.join(""),eae=(...e)=>{let t=e.reduce((o,r)=>(o[r]=`custom${Qse(r)}`,o),{});return(0,tT.createHigherOrderComponent)((0,tT.compose)([(0,tT.createHigherOrderComponent)(o=>function(n){let[i]=Fe("typography.fontSizes");return(0,$U.jsx)(o,{...n,fontSizes:i||i$e})},"withFontSizes"),o=>class extends Jse.Component{constructor(n){super(n),this.setters=this.createSetters(),this.state={}}createSetters(){return Object.entries(t).reduce((n,[i,s])=>{let a=Qse(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=(d,u)=>s[u]?n[u]?n[u]!==s[u].slug:s[u].size!==n[d]:!0;if(!Object.values(t).some(a))return null;let l=Object.entries(t).filter(([d,u])=>a(u,d)).reduce((d,[u,f])=>{let p=n[u],m=Fw(i,p,n[f]);return d[u]={...m,class:sg(p)},d},{});return{...s,...l}}render(){return(0,$U.jsx)(o,{...this.props,fontSizes:void 0,...this.state,...this.setters})}}]),"withFontSizes")};var f_=c(X(),1),y9=c(Q(),1);var tae=c(T(),1),s$e=[{icon:Wm,title:(0,f_.__)("Align text left"),align:"left"},{icon:Yb,title:(0,f_.__)("Align text center"),align:"center"},{icon:Gm,title:(0,f_.__)("Align text right"),align:"right"}],a$e={placement:"bottom-start"};function l$e({value:e,onChange:t,alignmentControls:o=s$e,label:r=(0,f_.__)("Align text"),description:n,isCollapsed:i=!0,isToolbar:s}){function a(p){return()=>t(e===p?void 0:p)}let l=o.find(p=>p.align===e);function d(){return l?l.icon:(0,f_.isRTL)()?Gm:Wm}let u=s?y9.ToolbarGroup:y9.ToolbarDropdownMenu,f=s?{isCollapsed:i}:{toggleProps:n?{description:n}:{},popoverProps:a$e};return(0,tae.jsx)(u,{icon:d(),label:r,controls:o.map(p=>{let{align:m}=p;return{...p,isActive:e===m,role:i?"menuitemradio":void 0,onClick:a(m)}}),...f})}var YU=l$e;var KU=c(T(),1),w9=e=>(0,KU.jsx)(YU,{...e,isToolbar:!1}),oae=e=>(0,KU.jsx)(YU,{...e,isToolbar:!0});var R9=c(To(),1),I9=c(Q(),1),hae=c(D(),1),P9=c(ce(),1);var mae=c(oe(),1),dg=c(ce(),1),XU=c(D(),1);var lae=c(sae(),1);var p$e=[/([\p{Ll}\p{Lo}\p{N}])([\p{Lu}\p{Lt}])/gu,/([\p{Lu}\p{Lt}])([\p{Lu}\p{Lt}][\p{Ll}\p{Lo}])/gu],m$e=new RegExp("(\\p{C}|\\p{P}|\\p{S})+","giu"),jn={NO_MATCH:0,MATCHES:1,CONTAINS:2,WORD_STARTS_WITH:3,STARTS_WITH:4,EQUAL:5},oT=e=>t=>t[e],g$e=[{get:oT("title")},{get:oT("name"),maxRank:jn.WORD_STARTS_WITH},{get:oT("keywords"),maxRank:jn.WORD_STARTS_WITH},{get:oT("category"),maxRank:jn.CONTAINS},{get:oT("description"),maxRank:jn.CONTAINS}],aae=new WeakMap;function rT(e=""){return(0,lae.default)(e).replace(/^\//,"").toLowerCase()}function cae(e){return y3(e,{splitRegexp:p$e,stripRegexp:m$e}).split(" ").filter(Boolean)}function h$e(e=""){return cae(rT(e))}function b$e(e){let t=h$e(e);return t.length>0?{terms:t,phrase:rT(e).trim()}:null}function k9(e){return 1/(2+e)}function _$e(e){return Array.isArray(e)?e:e==null?[]:[e]}function v$e(e,t){let o=aae.get(e);o||(o=new Map,aae.set(e,o));let r=[];for(let n of _$e(t.get(e))){let i=o.get(n);if(!i){let s=rT(String(n));i={normalized:s,words:cae(s)},o.set(n,i)}i.normalized&&r.push(i)}return r}function y$e({normalized:e,words:t},o){if(e===o)return{rank:jn.EQUAL,closeness:k9(0)};if(e.startsWith(o))return{rank:jn.STARTS_WITH,closeness:k9(0)};let r=t.findIndex(i=>i.startsWith(o));if(r!==-1)return{rank:jn.WORD_STARTS_WITH,closeness:k9(r)};let n=e.indexOf(o);return n!==-1?{rank:jn.CONTAINS,closeness:k9(n)}:null}function w$e(e,t,o){let r=null;for(let i of t){let s=y$e(i,o);s&&(!r||s.rank>r.rank||s.rank===r.rank&&s.closeness>r.closeness)&&(r=s)}if(!r)return null;let n=e.maxRank??jn.EQUAL;return r.rank>n?{...r,rank:n}:r}function x$e(e,t){return t.every(o=>e.some(r=>r.some(n=>n.words.some(i=>i.includes(o)))))}function k$e(e,{terms:t,phrase:o},r){let n=null,i=[];for(let s=0;s<r.length;s++){let a=r[s],l=v$e(e,a);i.push(l);let d=w$e(a,l,o);d&&(!n||d.rank>n.rank)&&(n={...d,fieldIndex:s})}return n||(x$e(i,t)?{rank:jn.MATCHES,closeness:0,fieldIndex:r.length}:null)}function lg(e=[],t="",{fields:o=g$e,filter:r,tiebreak:n}={}){let i=r?e.filter(r):e,s=b$e(t);if(!s)return i;let a=[];for(let l of i){let d=k$e(l,s,o);d&&a.push({item:l,...d})}return a.sort((l,d)=>d.rank-l.rank||l.fieldIndex-d.fieldIndex||d.closeness-l.closeness||(n?n(l.item,d.item):0)),a.map(({item:l})=>l)}function dae(e){let t=e.name||"";return t.startsWith("core/")?t===e.id?2:1:0}var S9=(e,t,o,r)=>{let n=[{get:i=>i.title},{get:i=>i.name,maxRank:jn.WORD_STARTS_WITH},{get:i=>i.keywords,maxRank:jn.WORD_STARTS_WITH},{get:i=>t.find(({slug:s})=>s===i.category)?.title,maxRank:jn.CONTAINS},{get:i=>o[(i.name||"").split("/")[0]]?.title,maxRank:jn.CONTAINS},{get:i=>i.description,maxRank:jn.CONTAINS}];return lg(e,r,{fields:n,tiebreak:(i,s)=>dae(s)-dae(i)})};var fu=c(ce(),1),zw=c(oe(),1),C9=c(D(),1),uae=c(Ks(),1),E9=c(X(),1);var S$e=(e,t,o)=>{let r=(0,C9.useMemo)(()=>({[tg]:!!o}),[o]),[n]=(0,zw.useSelect)(u=>[u(P).getInserterItems(e,r)],[e,r]),{getClosestAllowedInsertionPoint:i}=Z((0,zw.useSelect)(P)),{createErrorNotice:s}=(0,zw.useDispatch)(uae.store),[a,l]=(0,zw.useSelect)(u=>{let{getCategories:f,getCollections:p}=u(fu.store);return[f(),p()]},[]),d=(0,C9.useCallback)(({name:u,initialAttributes:f,innerBlocks:p,innerContent:m,syncStatus:g,content:h},b)=>{let v=i(u,e);if(v===null){let y=(0,fu.getBlockType)(u)?.title??u;s((0,E9.sprintf)((0,E9.__)(`Block "%s" can't be inserted.`),y),{type:"snackbar",id:"inserter-notice"});return}let _=g==="unsynced"?(0,fu.parse)(h,{__unstableSkipMigrationLogs:!0}):(0,fu.createBlock)(u,f,(0,fu.createBlocksFromInnerBlocksTemplate)(p),m);t(_,void 0,b,v)},[i,e,t,s]);return[n,a,l,d]},cg=S$e;var fae=c(Q(),1);var pae=c(D(),1),qU=c(T(),1);function C$e({icon:e,showColors:t=!1,className:o,context:r}){e?.src==="block-default"&&(e={src:WS});let n=(0,qU.jsx)(fae.Icon,{icon:e&&e.src?e.src:e,context:r}),i=t?{backgroundColor:e&&e.background,color:e&&e.foreground}:{};return(0,qU.jsx)("span",{style:i,className:U("block-editor-block-icon",o,{"has-colors":t}),children:n})}var $t=(0,pae.memo)(C$e);var T9=(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 jw=c(T(),1),E$e=()=>{},T$e=9;function R$e(){return{name:"blocks",className:"block-editor-autocompleters__block",triggerPrefix:"/",useItems(e){let{rootClientId:t,selectedBlockId:o,prioritizedBlocks:r}=(0,mae.useSelect)(d=>{let{getSelectedBlockClientId:u,getBlock:f,getBlockListSettings:p,getBlockRootClientId:m}=d(P),{getActiveBlockVariation:g}=d(dg.store),h=u(),{name:b,attributes:v}=f(h),_=g(b,v),y=m(h);return{selectedBlockId:_?`${b}/${_.name}`:b,rootClientId:y,prioritizedBlocks:p(y)?.prioritizedInserterBlocks}},[]),[n,i,s]=cg(t,E$e,!0),a=(0,XU.useMemo)(()=>(e.trim()?S9(n,i,s,e):T9(du(n,"frecency","desc"),r)).filter(u=>u.id!==o).slice(0,T$e),[e,o,n,i,s,r]);return[(0,XU.useMemo)(()=>a.map(d=>{let{title:u,icon:f,isDisabled:p}=d;return{key:`block-${d.id}`,value:d,label:(0,jw.jsxs)(jw.Fragment,{children:[(0,jw.jsx)($t,{icon:f,showColors:!0},"icon"),u]}),isDisabled:p}}),[a])]},allowContext(e,t){return!(/\S/.test(e)||/\S/.test(t))},getOptionCompletion(e){let{name:t,initialAttributes:o,innerBlocks:r,innerContent:n,syncStatus:i,blocks:s}=e;return{action:"replace",value:i==="unsynced"?(s??[]).map(a=>(0,dg.cloneBlock)(a)):(0,dg.createBlock)(t,o,(0,dg.createBlocksFromInnerBlocksTemplate)(r),n)}}}}var gae=R$e();var bae=c(T(),1),I$e=[];function _ae({completers:e=I$e}){let{name:t}=Mt();return(0,hae.useMemo)(()=>{let o=[...e];return(t===(0,P9.getDefaultBlockName)()||(0,P9.getBlockSupport)(t,"__experimentalSlashInserter",!1))&&(o=[...o,gae]),(0,R9.hasFilter)("editor.Autocomplete.completers")&&(o===e&&(o=o.map(r=>({...r}))),o=(0,R9.applyFilters)("editor.Autocomplete.completers",o,t)),o},[e,t])}function vae(e){return(0,I9.__unstableUseAutocompleteProps)({...e,completers:_ae(e)})}function P$e(e){return(0,bae.jsx)(I9.Autocomplete,{...e,completers:_ae(e)})}var yae=P$e;var oW=c(X(),1),hg=c(Q(),1);var Uae=c(oe(),1);var D9=c(D(),1);var kr=c(X(),1);var Hn=c(Q(),1);var Hw=c(X(),1);var Ia={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 qs(e,t=""){return e.split(",").map(o=>`${o}${t?` ${t}`:""}`).join(",")}function ug(e,t=Ia,o,r){let n="";return t?.[o]?.spacingStyles?.length&&r&&t[o].spacingStyles.forEach(i=>{n+=`${qs(e,i.selector.trim())} { `,n+=Object.entries(i.rules).map(([s,a])=>`${s}: ${a||r}`).join("; "),n+="; }"}),n}function B9(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,Hw.sprintf)((0,Hw.__)("Max %s wide"),t)),i.test(o)&&(n.wide=(0,Hw.sprintf)((0,Hw.__)("Max %s wide"),o)),n}function fg(e){return e?.inherit||e?.contentSize||e?.wideSize?{...e,type:"constrained"}:e}var $c=c(X(),1);var pu=(e,t)=>e?.includes?e==="0"||e.includes(`var:preset|${t}|`):!1;function O9(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 wae(e,t,o){if(e===void 0)return 0;let r=parseFloat(e,10)===0?"0":O9(e,o),n=t.findIndex(i=>String(i.slug)===r);return n!==-1?n:NaN}function ZU(e,t,o){if(!pu(e,o))return e;let r=parseFloat(e,10)===0?"0":O9(e,o);return t.find(i=>String(i.slug)===r)?.size}function xae(e,t,o){if(!e||pu(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 kae="spacing",Sae=8,pg=["top","bottom","left","right"],Cae={top:void 0,right:void 0,bottom:void 0,left:void 0},M9={custom:B4,axial:B4,horizontal:FH,vertical:UH,top:HH,right:jH,bottom:VH,left:zH},mu={default:(0,$c.__)("Spacing control"),top:(0,$c.__)("Top"),bottom:(0,$c.__)("Bottom"),left:(0,$c.__)("Left"),right:(0,$c.__)("Right"),mixed:(0,$c.__)("Mixed"),vertical:(0,$c.__)("Vertical"),horizontal:(0,$c.__)("Horizontal"),axial:(0,$c.__)("Horizontal & vertical"),custom:(0,$c.__)("Custom")},Zf={axial:"axial",top:"top",right:"right",bottom:"bottom",left:"left",custom:"custom"};function A9(e){return pu(e,kae)}function Eae(e,t){if(!A9(e))return e;let o=O9(e,kae);return t.find(n=>String(n.slug)===o)?.size}function Uw(e,t){if(!e||A9(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 vl(e){if(!e||typeof e!="string")return;let t=e.match(/var:preset\|spacing\|(.+)/);return t?`var(--wp--preset--spacing--${t[1]})`:e}function QU(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 B$e(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 Tae(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&&B$e(t),d=t?.includes("horizontal")&&t?.includes("vertical")&&t?.length===2;if(QU(t)&&(a||l))return Zf.axial;if(d&&s.length===1){let u;return Object.entries(e).some(([f,p])=>(u=f,p!==void 0)),u}return t?.length===1&&!s.length?t[0]:Zf.custom}function Rae(e,t){let o=fg(e)||t||{};return["flex","grid"].includes(o?.type)}function Ww(e){if(!e)return null;let t=typeof e=="string";return{top:t?e:e?.top,left:t?e:e?.left}}function Pa(e,t="0"){let o=Ww(e);if(!o)return null;let r=vl(o?.top)||t,n=vl(o?.left)||t;return r===n?r:`${r} ${n}`}var Vo=c(T(),1),O$e={left:"flex-start",right:"flex-end",center:"center","space-between":"space-between"},Iae={left:"flex-start",right:"flex-end",center:"center",stretch:"stretch"},M$e={top:"flex-start",center:"center",bottom:"flex-end",stretch:"stretch","space-between":"space-between"},Pae={horizontal:"center",vertical:"top"},A$e={top:{icon:$C,label:(0,kr._x)("Align top","Block vertical alignment setting")},center:{icon:LC,label:(0,kr._x)("Align middle","Block vertical alignment setting")},bottom:{icon:AC,label:(0,kr._x)("Align bottom","Block vertical alignment setting")},stretch:{icon:UC,label:(0,kr._x)("Stretch to fill","Block vertical alignment setting")},"space-between":{icon:zC,label:(0,kr._x)("Space between","Block vertical alignment setting")}},N$e=["wrap","nowrap"],Mae={name:"flex",label:(0,kr.__)("Flex"),hasInspectorControls(e={}){let{allowOrientation:t=!0,allowJustification:o=!0,allowVerticalAlignment:r=!0,allowWrap:n=!0}=e;return t||o||r||n},inspectorControls:function({layout:t={},onChange:o,layoutBlockSupport:r={},resetLayout:n={},clientId:i}){let{allowOrientation:s=!0,allowJustification:a=!0,allowVerticalAlignment:l=!0,allowWrap:d=!0}=r,u=(y,w)=>(t?.[y]??w)!==(n?.[y]??w),f=()=>u("justifyContent","left"),p=()=>u("verticalAlignment",Aae(t)),m=()=>u("orientation","horizontal"),g=()=>u("flexWrap","wrap"),h=()=>o(Qe({...t,justifyContent:n?.justifyContent})),b=()=>o(Qe({...t,verticalAlignment:L$e(n?.verticalAlignment,t?.orientation)})),v=()=>{let{verticalAlignment:y,justifyContent:w}=t,x=n?.orientation,k=!x||x==="horizontal";o(Qe({...t,orientation:x,verticalAlignment:n?.verticalAlignment??(k&&y==="space-between"?"center":y),justifyContent:n?.justifyContent??(k&&w==="stretch"?"left":w)}))},_=()=>o(Qe({...t,flexWrap:n?.flexWrap}));return(0,Vo.jsxs)(Vo.Fragment,{children:[(a||s)&&(0,Vo.jsxs)(Hn.Flex,{align:"flex-start",className:"block-editor-hooks__flex-layout-controls",gap:4,justify:"flex-start",children:[a&&(0,Vo.jsx)(Hn.__experimentalToolsPanelItem,{label:(0,kr.__)("Justification"),hasValue:f,onDeselect:h,isShownByDefault:!0,panelId:i,children:(0,Vo.jsx)(Oae,{layout:t,onChange:o})}),s&&(0,Vo.jsx)(Hn.__experimentalToolsPanelItem,{label:(0,kr.__)("Orientation"),hasValue:m,onDeselect:v,isShownByDefault:!0,panelId:i,children:(0,Vo.jsx)(z$e,{layout:t,onChange:o})})]}),l&&(0,Vo.jsx)(Hn.__experimentalToolsPanelItem,{label:(0,kr.__)("Alignment"),hasValue:p,onDeselect:b,panelId:i,children:(0,Vo.jsx)(Bae,{layout:t,onChange:o})}),d&&(0,Vo.jsx)(Hn.__experimentalToolsPanelItem,{label:(0,kr.__)("Wrapping"),hasValue:g,onDeselect:_,panelId:i,children:(0,Vo.jsx)(F$e,{layout:t,onChange:o})})]})},toolBarControls:function({layout:t={},onChange:o,layoutBlockSupport:r,controlsGroup:n="block"}){let{allowVerticalAlignment:i=!0,allowJustification:s=!0}=r;return!s&&!i?null:(0,Vo.jsxs)(Jo,{group:n,__experimentalShareWithChildBlocks:!0,children:[s&&(0,Vo.jsx)(Oae,{layout:t,onChange:o,isToolbar:!0}),i&&(0,Vo.jsx)(Bae,{layout:t,onChange:o,isToolbar:!0})]})},getLayoutStyle:function({selector:t,layout:o={},viewportOverrides:r,style:n,blockName:i,hasBlockGapSupport:s,globalBlockGapValue:a,layoutDefinitions:l=Ia}){let d=r!==void 0,u=d?{...o,...r}:o,f=E=>Object.hasOwn(r||{},E),{orientation:p="horizontal"}=u,m="0.5em";if(a){let E=Ww(a);m=vl(E?.left)||vl(E?.top)||"0.5em"}let g=n?.spacing?.blockGap&&!Qt(i,"spacing","blockGap")?Pa(n?.spacing?.blockGap,m):void 0,h=!d||Object.hasOwn(n?.spacing||{},"blockGap"),b=O$e[u.justifyContent],v=N$e.includes(u.flexWrap)?u.flexWrap:"wrap",_=M$e[u.verticalAlignment],y=Iae[u.justifyContent]||Iae.left,w="",x=[],k=!d||f("flexWrap"),C=!d||f("orientation"),S=!d||f("justifyContent")||f("orientation"),R=!d||f("verticalAlignment")||f("orientation");return k&&v&&v!=="wrap"&&x.push(`flex-wrap: ${v}`),p==="horizontal"?(f("orientation")&&x.push("flex-direction: row"),R&&_&&x.push(`align-items: ${_}`),S&&b&&x.push(`justify-content: ${b}`)):(R&&_&&x.push(`justify-content: ${_}`),C&&x.push("flex-direction: column"),S&&x.push(`align-items: ${y}`)),x.length&&(w=`${qs(t)} { | |
| 63 | + ${x.join("; ")}; | |
| 64 | + }`),s&&h&&g&&(w+=ug(t,l,"flex",g)),w},getOrientation(e){let{orientation:t="horizontal"}=e;return t},getAlignments(){return[]}};function Aae({orientation:e="horizontal"}={}){return e==="horizontal"?Pae.horizontal:Pae.vertical}function L$e(e,t){if(!(t==="horizontal"&&e==="space-between"||t==="vertical"&&e==="stretch"))return e}function D$e(e){return e==="horizontal"?["top","center","bottom","stretch"]:["top","center","bottom","space-between"]}function Bae({layout:e,onChange:t,isToolbar:o=!1}){let{orientation:r="horizontal"}=e,{verticalAlignment:n=Aae(e)}=e,i=a=>{t({...e,verticalAlignment:a})},s=D$e(r);return o?(0,Vo.jsx)(N9,{onChange:i,value:n,controls:s}):(0,Vo.jsx)(Hn.__experimentalToggleGroupControl,{label:(0,kr.__)("Alignment"),onChange:i,value:n,className:"block-editor-hooks__flex-layout-alignment-controls",children:s.map(a=>{let{icon:l,label:d}=A$e[a];return(0,Vo.jsx)(Hn.__experimentalToggleGroupControlOptionIcon,{value:a,icon:l,label:d},a)})})}var V$e={placement:"bottom-start"};function Oae({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,Vo.jsx)(Gw,{allowedControls:s,value:r,onChange:i,popoverProps:V$e});let a=[{value:"left",icon:Ym,label:(0,kr.__)("Justify items left")},{value:"center",icon:$m,label:(0,kr.__)("Justify items center")},{value:"right",icon:Km,label:(0,kr.__)("Justify items right")}];return n==="horizontal"?a.push({value:"space-between",icon:uw,label:(0,kr.__)("Space between items")}):a.push({value:"stretch",icon:mw,label:(0,kr.__)("Stretch items")}),(0,Vo.jsx)(Hn.__experimentalToggleGroupControl,{label:(0,kr.__)("Justification"),value:r,onChange:i,className:"block-editor-hooks__flex-layout-justification-controls",children:a.map(({value:l,icon:d,label:u})=>(0,Vo.jsx)(Hn.__experimentalToggleGroupControlOptionIcon,{value:l,icon:d,label:u},l))})}function F$e({layout:e,onChange:t}){let{flexWrap:o="wrap"}=e;return(0,Vo.jsx)(Hn.ToggleControl,{label:(0,kr.__)("Allow to wrap to multiple lines"),onChange:r=>{t({...e,flexWrap:r?"wrap":"nowrap"})},checked:o==="wrap"})}function z$e({layout:e,onChange:t}){let{orientation:o="horizontal",verticalAlignment:r,justifyContent:n}=e;return(0,Vo.jsxs)(Hn.__experimentalToggleGroupControl,{className:"block-editor-hooks__flex-layout-orientation-controls",label:(0,kr.__)("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,Vo.jsx)(Hn.__experimentalToggleGroupControlOptionIcon,{icon:jS,value:"horizontal",label:(0,kr.__)("Horizontal")}),(0,Vo.jsx)(Hn.__experimentalToggleGroupControlOptionIcon,{icon:rj,value:"vertical",label:(0,kr.__)("Vertical")})]})}var Nae=c(X(),1);var Lae={name:"default",label:(0,Nae.__)("Flow"),hasInspectorControls(){return!1},inspectorControls:function(){return null},toolBarControls:function(){return null},getLayoutStyle:function({selector:t,style:o,blockName:r,hasBlockGapSupport:n,layoutDefinitions:i=Ia}){let s=o?.spacing?.blockGap,a="";Qt(r,"spacing","blockGap")||(s?.top?a=Pa(s?.top):typeof s=="string"&&(a=Pa(s)));let l="";return n&&a&&(l+=ug(t,i,"default",a)),l},getOrientation(){return"vertical"},getAlignments(e,t){let o=B9(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 Mi=c(Q(),1),yl=c(X(),1);var Dae=c(Sw(),1);var Ar=c(T(),1),j$e="var(--wp--style--global--content-size, none)",H$e="var(--wp--style--global--wide-size, none)",Vae={name:"constrained",label:(0,yl.__)("Constrained"),hasInspectorControls(e={}){let{allowJustification:t=!0,allowCustomContentAndWideSize:o=!0}=e;return t||o},inspectorControls:function({layout:t,onChange:o,layoutBlockSupport:r={},resetLayout:n={},clientId:i}){let{wideSize:s,contentSize:a,justifyContent:l="center"}=t,{allowJustification:d=!0,allowCustomContentAndWideSize:u=!0}=r,f=k=>{o({...t,justifyContent:k})},p=[{value:"left",icon:Ym,label:(0,yl.__)("Justify items left")},{value:"center",icon:$m,label:(0,yl.__)("Justify items center")},{value:"right",icon:Km,label:(0,yl.__)("Justify items right")}],[m]=Fe("spacing.units"),g=(0,Mi.__experimentalUseCustomUnits)({availableUnits:m||["%","px","em","rem","vw"]}),h=(k,C)=>(t?.[k]??C)!==(n?.[k]??C),b=()=>o(Qe({...t,contentSize:n?.contentSize})),v=()=>o(Qe({...t,wideSize:n?.wideSize})),_=()=>o(Qe({...t,justifyContent:n?.justifyContent})),y=()=>h("contentSize"),w=()=>h("wideSize"),x=()=>h("justifyContent","center");return(0,Ar.jsxs)(Ar.Fragment,{children:[u&&(0,Ar.jsxs)(Ar.Fragment,{children:[(0,Ar.jsx)(Mi.__experimentalToolsPanelItem,{label:(0,yl.__)("Content width"),hasValue:y,onDeselect:b,panelId:i,children:(0,Ar.jsx)(Mi.__experimentalUnitControl,{label:(0,yl.__)("Content width"),labelPosition:"top",value:a===null?"":a||s||"",onChange:k=>{k=0>parseFloat(k)?"0":k,o({...t,contentSize:k!==""?k:void 0})},units:g,prefix:(0,Ar.jsx)(Mi.__experimentalInputControlPrefixWrapper,{variant:"icon",children:(0,Ar.jsx)(St,{icon:Kb})})})}),(0,Ar.jsxs)(Mi.__experimentalToolsPanelItem,{label:(0,yl.__)("Wide width"),hasValue:w,onDeselect:v,panelId:i,children:[(0,Ar.jsx)(Mi.__experimentalUnitControl,{label:(0,yl.__)("Wide width"),labelPosition:"top",value:s===null?"":s||a||"",onChange:k=>{k=0>parseFloat(k)?"0":k,o({...t,wideSize:k!==""?k:void 0})},units:g,prefix:(0,Ar.jsx)(Mi.__experimentalInputControlPrefixWrapper,{variant:"icon",children:(0,Ar.jsx)(St,{icon:n_})})}),(0,Ar.jsx)("p",{className:"block-editor-hooks__layout-constrained-helptext",children:(0,yl.__)("Customize the width for all elements that are assigned to the center or wide columns.")})]})]}),d&&(0,Ar.jsx)(Mi.__experimentalToolsPanelItem,{label:(0,yl.__)("Justification"),hasValue:x,onDeselect:_,panelId:i,children:(0,Ar.jsx)(Mi.__experimentalToggleGroupControl,{label:(0,yl.__)("Justification"),value:l,onChange:f,children:p.map(({value:k,icon:C,label:S})=>(0,Ar.jsx)(Mi.__experimentalToggleGroupControlOptionIcon,{value:k,icon:C,label:S},k))})})]})},toolBarControls:function({layout:t={},onChange:o,layoutBlockSupport:r,controlsGroup:n="block"}){let{allowJustification:i=!0}=r;return i?(0,Ar.jsx)(Jo,{group:n,__experimentalShareWithChildBlocks:!0,children:(0,Ar.jsx)(W$e,{layout:t,onChange:o})}):null},getLayoutStyle:function({selector:t,layout:o={},viewportOverrides:r,style:n,blockName:i,hasBlockGapSupport:s,layoutDefinitions:a=Ia}){let l=r!==void 0,d=l?{...o,...r}:o,u=O=>Object.hasOwn(r||{},O),{contentSize:f,wideSize:p,justifyContent:m}=d,g=n?.spacing?.blockGap,h=!l||Object.hasOwn(n?.spacing||{},"blockGap"),b=!l||Object.hasOwn(n?.spacing||{},"padding"),v="";Qt(i,"spacing","blockGap")||(g?.top?v=Pa(g?.top):typeof g=="string"&&(v=Pa(g)));let _=m==="left"?"0 !important":"auto !important",y=m==="right"?"0 !important":"auto !important",w=l&&u("justifyContent"),x=l&&u("contentSize"),k=l&&u("wideSize"),C=!l||x||k,S=l&&(x&&!f||k&&!p),R=f||(p&&!x?p:j$e),E=p||(f&&!k?f:H$e),I=[`max-width: ${R}`];(!l||w)&&I.push(`margin-left: ${_}`,`margin-right: ${y}`);let B=C&&(f||p||S)?` | |
| 65 | + ${qs(t,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")} { | |
| 66 | 66 | ${I.join("; ")}; |
| 67 | 67 | } |
| 68 | - ${Ds(t,"> .alignwide")} { | |
| 68 | + ${qs(t,"> .alignwide")} { | |
| 69 | 69 | max-width: ${E}; |
| 70 | 70 | } |
| 71 | - ${Ds(t,"> .alignfull")} { | |
| 71 | + ${qs(t,"> .alignfull")} { | |
| 72 | 72 | max-width: none; |
| 73 | 73 | } |
| 74 | - `:"";return w&&!S?O+=`${Ds(t,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")} | |
| 75 | - { margin-left: ${y}; margin-right: ${_}; }`:l||(m==="left"?O+=`${Ds(t,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")} | |
| 76 | - { margin-left: ${y}; }`:m==="right"&&(O+=`${Ds(t,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")} | |
| 77 | - { margin-right: ${_}; }`)),b&&n?.spacing?.padding&&(0,dne.getCSSRules)(n).forEach(P=>{if(P.key==="paddingRight"){let L=P.value==="0"?"0px":P.value;O+=` | |
| 78 | - ${Ds(t,"> .alignfull")} { | |
| 79 | - margin-right: calc(${L} * -1); | |
| 74 | + `:"";return w&&!C?B+=`${qs(t,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")} | |
| 75 | + { margin-left: ${_}; margin-right: ${y}; }`:l||(m==="left"?B+=`${qs(t,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")} | |
| 76 | + { margin-left: ${_}; }`:m==="right"&&(B+=`${qs(t,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")} | |
| 77 | + { margin-right: ${y}; }`)),b&&n?.spacing?.padding&&(0,Dae.getCSSRules)(n).forEach(M=>{if(M.key==="paddingRight"){let N=M.value==="0"?"0px":M.value;B+=` | |
| 78 | + ${qs(t,"> .alignfull")} { | |
| 79 | + margin-right: calc(${N} * -1); | |
| 80 | 80 | } |
| 81 | - `}else if(P.key==="paddingLeft"){let L=P.value==="0"?"0px":P.value;O+=` | |
| 82 | - ${Ds(t,"> .alignfull")} { | |
| 83 | - margin-left: calc(${L} * -1); | |
| 81 | + `}else if(M.key==="paddingLeft"){let N=M.value==="0"?"0px":M.value;B+=` | |
| 82 | + ${qs(t,"> .alignfull")} { | |
| 83 | + margin-left: calc(${N} * -1); | |
| 84 | 84 | } |
| 85 | - `}}),s&&h&&v&&(O+=Nm(t,a,"constrained",v)),O},getOrientation(){return"vertical"},getAlignments(e){let t=A2(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}},P9e={placement:"bottom-start"};function O9e({layout:e,onChange:t}){let{justifyContent:o="center"}=e;return(0,Mr.jsx)(U_,{allowedControls:["left","center","right"],value:o,onChange:i=>{t({...e,justifyContent:i})},popoverProps:P9e})}var Gr=c(q(),1),qt=c(Y(),1),V2=c(F(),1);var Ft=c(T(),1),A9e={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},M9e=[{value:"px",label:"px",default:0},{value:"rem",label:"rem",default:0},{value:"em",label:"em",default:0}],pne={name:"grid",label:(0,Gr.__)("Grid"),hasInspectorControls(){return!0},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,d=t.isManualPlacement?3:void 0,f=(w,k)=>(t?.[w]??k)!==(n?.[w]??k),p=()=>f("isManualPlacement",!1),m=()=>f("columnCount",d)||f("rowCount"),g=()=>f("minimumColumnWidth"),h=()=>f("autoFit",!1),b=()=>o(Xe({...t,isManualPlacement:n?.isManualPlacement,rowCount:n?.rowCount,minimumColumnWidth:n?.minimumColumnWidth})),v=()=>o(Xe({...t,columnCount:n?.columnCount??d,rowCount:n?.rowCount})),y=()=>o(Xe({...t,minimumColumnWidth:n?.minimumColumnWidth})),_=()=>o(Xe({...t,autoFit:n?.autoFit}));return(0,Ft.jsxs)(Ft.Fragment,{children:[window.__experimentalEnableGridInteractivity&&(0,Ft.jsx)(qt.__experimentalToolsPanelItem,{label:(0,Gr.__)("Grid item position"),hasValue:p,onDeselect:b,isShownByDefault:!0,panelId:i,children:(0,Ft.jsx)(V9e,{layout:t,onChange:o})}),a&&(0,Ft.jsx)(qt.__experimentalToolsPanelItem,{label:(0,Gr.__)("Columns and rows"),hasValue:m,onDeselect:v,isShownByDefault:!0,panelId:i,children:(0,Ft.jsx)(L9e,{layout:t,onChange:o,allowSizingOnChildren:s})}),l&&(0,Ft.jsx)(qt.__experimentalToolsPanelItem,{label:(0,Gr.__)("Min. column width"),hasValue:g,onDeselect:y,isShownByDefault:!0,panelId:i,children:(0,Ft.jsx)(N9e,{layout:t,onChange:o})}),u&&(0,Ft.jsx)(qt.__experimentalToolsPanelItem,{label:(0,Gr.__)("Fill available space"),hasValue:h,onDeselect:_,panelId:i,children:(0,Ft.jsx)(D9e,{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=_a}){let u=r!==void 0,d=u?{...o,...r}:o,f=C=>Object.hasOwn(r||{},C),{minimumColumnWidth:p=null,columnCount:m=null,rowCount:g=null,autoFit:h=!1}=d,b=h?"auto-fit":"auto-fill",v="1.2rem";if(a){let C=H_(a);v=il(C?.left)||il(C?.top)||"1.2rem"}let y=n?.spacing?.blockGap&&!io(i,"spacing","blockGap")?wa(n?.spacing?.blockGap,v):void 0,_=!u||Object.hasOwn(n?.spacing||{},"blockGap"),w="",k=[],x=!u||f("minimumColumnWidth")||f("columnCount")||f("autoFit")||_&&p&&m>0,S=(!u||f("rowCount"))&&m&&g;if(x&&p&&m>0){let C=y?H_(n.spacing.blockGap):void 0,R=il(C?.left)||v;(R==="0"||R===0)&&(R="0px");let E=`max(min( ${p}, 100%), ( 100% - (${R}*${m-1}) ) / ${m})`;k.push(`grid-template-columns: repeat(${b}, minmax(${E}, 1fr))`)}else x&&m?k.push(`grid-template-columns: repeat(${m}, minmax(0, 1fr))`):x&&k.push(`grid-template-columns: repeat(${b}, minmax(min(${p||"12rem"}, 100%), 1fr))`);if(x){let C=!o?.columnCount||o?.columnCount&&o?.minimumColumnWidth;(!m||p)&&(!u||!C)&&k.push("container-type: inline-size")}return S&&k.push(`grid-template-rows: repeat(${g}, minmax(1rem, auto))`),k.length&&(w=`${Ds(t)} { ${k.join("; ")}; }`),s&&_&&y&&(w+=Nm(t,l,"grid",y)),w},getOrientation(){return"horizontal"},getAlignments(){return[]}};function N9e({layout:e,onChange:t}){let{minimumColumnWidth:o,columnCount:r,isManualPlacement:n}=e,s=o||(n||r?null:"12rem"),[a,l="rem"]=(0,qt.__experimentalParseQuantityAndUnitFromRawValue)(s),u=f=>{t({...e,minimumColumnWidth:[f,l].join("")})},d=f=>{let p;["em","rem"].includes(f)&&l==="px"?p=(a/16).toFixed(2)+f:["em","rem"].includes(l)&&f==="px"&&(p=Math.round(a*16)+f),t({...e,minimumColumnWidth:p})};return(0,Ft.jsxs)("fieldset",{className:"block-editor-hooks__grid-layout-minimum-width-control",children:[(0,Ft.jsx)(qt.BaseControl.VisualLabel,{as:"legend",children:(0,Gr.__)("Min. column width")}),(0,Ft.jsxs)(qt.Flex,{gap:4,children:[(0,Ft.jsx)(qt.FlexItem,{isBlock:!0,children:(0,Ft.jsx)(qt.__experimentalUnitControl,{onChange:f=>{t({...e,minimumColumnWidth:f===""?void 0:f})},onUnitChange:d,value:s,units:M9e,min:0,label:(0,Gr.__)("Minimum column width"),hideLabelFromVision:!0})}),(0,Ft.jsx)(qt.FlexItem,{isBlock:!0,children:(0,Ft.jsx)(qt.RangeControl,{onChange:u,value:a||0,min:0,max:A9e[l]||600,withInputField:!1,label:(0,Gr.__)("Minimum column width"),hideLabelFromVision:!0})})]}),(0,Ft.jsx)("p",{className:"components-base-control__help",children:(0,Gr.__)("Columns will wrap to fewer per row when they can no longer maintain the minimum width.")})]})}function L9e({layout:e,onChange:t,allowSizingOnChildren:o}){let{columnCount:n=void 0,rowCount:i,isManualPlacement:s}=e;return(0,Ft.jsx)(Ft.Fragment,{children:(0,Ft.jsxs)("fieldset",{className:"block-editor-hooks__grid-layout-columns-and-rows-controls",children:[!s&&(0,Ft.jsx)(qt.BaseControl.VisualLabel,{as:"legend",children:(0,Gr.__)("Max. columns")}),(0,Ft.jsxs)(qt.Flex,{gap:4,children:[(0,Ft.jsx)(qt.FlexItem,{isBlock:!0,children:(0,Ft.jsx)(qt.__experimentalNumberControl,{onChange:a=>{let u=a===""||a==="0"?s?1:void 0:parseInt(a,10);t({...e,columnCount:u})},value:n??"",min:1,label:(0,Gr.__)("Columns"),hideLabelFromVision:!s})}),(0,Ft.jsx)(qt.FlexItem,{isBlock:!0,children:o&&s?(0,Ft.jsx)(qt.__experimentalNumberControl,{onChange:a=>{let l=a===""||a==="0"?1:parseInt(a,10);t({...e,rowCount:l})},value:i,min:1,label:(0,Gr.__)("Rows")}):(0,Ft.jsx)(qt.RangeControl,{value:n??1,onChange:a=>t({...e,columnCount:a===""||a==="0"?1:a}),min:1,max:16,withInputField:!1,label:(0,Gr.__)("Columns"),hideLabelFromVision:!0})})]})]})})}function D9e({layout:e,onChange:t}){let{autoFit:o=!1}=e;return(0,Ft.jsx)(qt.ToggleControl,{label:(0,Gr.__)("Fill available space"),help:(0,Gr.__)("Stretch columns to fill the available space, instead of leaving gaps when there are too few items to fill a row."),checked:o,onChange:r=>t({...e,autoFit:r})})}function V9e({layout:e,onChange:t}){let{columnCount:o,rowCount:r,minimumColumnWidth:n,isManualPlacement:i}=e,[s,a]=(0,V2.useState)(o||3),[l,u]=(0,V2.useState)(r),[d,f]=(0,V2.useState)(n||"12rem"),p=i?"manual":"auto",m=h=>{h==="manual"?f(n||"12rem"):(a(o||3),u(r)),t({...e,columnCount:s,rowCount:h==="manual"?l:void 0,isManualPlacement:h==="manual"?!0:void 0,minimumColumnWidth:h==="auto"?d:null})},g=p==="manual"?(0,Gr.__)("Grid items can be manually placed in any position on the grid."):(0,Gr.__)("Grid items are placed automatically depending on their order.");return(0,Ft.jsxs)(qt.__experimentalToggleGroupControl,{label:(0,Gr.__)("Grid item position"),value:p,onChange:m,isBlock:!0,help:g,children:[(0,Ft.jsx)(qt.__experimentalToggleGroupControlOption,{value:"auto",label:(0,Gr.__)("Auto")},"auto"),(0,Ft.jsx)(qt.__experimentalToggleGroupControlOption,{value:"manual",label:(0,Gr.__)("Manual")},"manual")]})}var mne=[une,ane,fne,pne];function al(e="default"){return mne.find(t=>t.name===e)}function gne(){return mne}var cH=c(T(),1),uH={type:"default"},dH=(0,F2.createContext)(uH);dH.displayName="BlockLayoutContext";var z2=dH.Provider;function Ib(){return(0,F2.useContext)(dH)}function hne({layout:e={},css:t,...o}){let r=al(e.type),[n]=je("spacing.blockGap"),i=n!==null;if(r){if(t)return(0,cH.jsx)("style",{children:t});let s=r.getLayoutStyle?.({hasBlockGapSupport:i,layout:e,...o});if(s)return(0,cH.jsx)("style",{children:s})}return null}var j2=[],bne=["none","left","center","right","wide","full"],F9e=["wide","full"];function DC(e=bne){e.includes("none")||(e=["none",...e]);let t=e.length===1&&e[0]==="none",[o,r,n]=(0,yne.useSelect)(l=>{if(t)return[!1,!1,!1];let u=l(B).getSettings();return[u.alignWide??!1,u.supportsLayout,u.__unstableIsBlockBasedTheme]},[t]),i=Ib();if(t)return j2;let s=al(i?.type);if(r){let u=s.getAlignments(i,n).filter(d=>e.includes(d.name));return u.length===1&&u[0].name==="none"?j2:u}if(s.name!=="default"&&s.name!=="constrained")return j2;let a=e.filter(l=>i.alignments?i.alignments.includes(l):!o&&F9e.includes(l)?!1:bne.includes(l)).map(l=>({name:l}));return a.length===1&&a[0].name==="none"?j2:a}var Dm=c(q(),1);var VC={none:{icon:ub,title:(0,Dm._x)("None","Alignment option")},left:{icon:g9,title:(0,Dm.__)("Align left")},center:{icon:p9,title:(0,Dm.__)("Align center")},right:{icon:b9,title:(0,Dm.__)("Align right")},wide:{icon:kb,title:(0,Dm.__)("Wide width")},full:{icon:fC,title:(0,Dm.__)("Full width")}},vne="none";var Pb=c(T(),1);function z9e({value:e,onChange:t,controls:o,isToolbar:r,isCollapsed:n=!0,label:i=(0,_ne.__)("Align block"),description:s}){let a=DC(o);if(!!!a.length)return null;function u(h){t([e,"none"].includes(h)?void 0:h)}let d=VC[e],f=VC[vne],p=r?Vm.ToolbarGroup:Vm.ToolbarDropdownMenu,m={icon:d?d.icon:f.icon,label:i},g=r?{isCollapsed:n,controls:a.map(({name:h})=>({...VC[h],isActive:e===h||!e&&h==="none",role:n?"menuitemradio":void 0,onClick:()=>u(h)}))}:{toggleProps:s?{description:s}:{},children:({onClose:h})=>(0,Pb.jsx)(Pb.Fragment,{children:(0,Pb.jsx)(Vm.MenuGroup,{className:"block-editor-block-alignment-control__menu-group",children:a.map(({name:b,info:v})=>{let{icon:y,title:_}=VC[b],w=b===e||!e&&b==="none";return(0,Pb.jsx)(Vm.MenuItem,{icon:y,iconPosition:"left",className:$("components-dropdown-menu__menu-item",{"is-active":w}),isSelected:w,onClick:()=>{u(b),h()},role:"menuitemradio",info:v,children:_},b)})})})};return(0,Pb.jsx)(p,{...m,...g})}var fH=z9e;var pH=c(T(),1),H2=e=>(0,pH.jsx)(fH,{...e,isToolbar:!1}),wne=e=>(0,pH.jsx)(fH,{...e,isToolbar:!0});var Ene=c(lb(),1),$2=c(q(),1),Y2=c(ce(),1),Tc=c(Y(),1),hH=c(te(),1),Tne=c(F(),1),Rne=c(ue(),1);var gH=c(lb(),1),kne=c(ce(),1),xne=c(Y(),1),Sne=c(te(),1),W2=c(F(),1),Cne=c(ue(),1);var U2=c(te(),1);function mH(e){return!e||Object.keys(e).length===0}function Rf(e){let{clientId:t}=kt(),o=e||t,{updateBlockAttributes:r}=(0,U2.useDispatch)(B),{getBlockAttributes:n}=(0,U2.useRegistry)().select(B);return{updateBlockBindings:a=>{let{metadata:{bindings:l,...u}={}}=n(o),d={...l};Object.entries(a).forEach(([p,m])=>{if(!m&&d[p]){delete d[p];return}d[p]=m});let f={...u,bindings:d};mH(f.bindings)&&delete f.bindings,r(o,{metadata:mH(f)?void 0:f})},removeAllBlockBindings:()=>{let{metadata:{bindings:a,...l}={}}=n(o);r(o,{metadata:mH(l)?void 0:l})}}}var Ec=c(T(),1),{Menu:Fm}=G(xne.privateApis);function j9e({args:e,attribute:t,field:o,source:r,sourceKey:n}){let i=(0,W2.useMemo)(()=>({source:n,args:o.args||{key:o.key}}),[o.args,o.key,n]),s=(0,W2.useContext)(zn),a=(0,Sne.useSelect)(u=>r.getValues({select:u,context:s,bindings:{[t]:i}}),[t,s,i,r]),{updateBlockBindings:l}=Rf();return(0,Ec.jsxs)(Fm.CheckboxItem,{onChange:()=>{let u=(0,gH.default)(e,o.args)??o.key===e?.key;l(u?{[t]:void 0}:{[t]:i})},name:t+"-binding",value:a[t],checked:(0,gH.default)(e,o.args)??o.key===e?.key,children:[(0,Ec.jsx)(Fm.ItemLabel,{children:o.label}),(0,Ec.jsx)(Fm.ItemHelpText,{children:a[t]})]})}function FC({args:e,attribute:t,sourceKey:o,fields:r}){let n=(0,Cne.useViewportMatch)("medium","<");if(!r||r.length===0)return null;let i=(0,kne.getBlockBindingsSource)(o);return(0,Ec.jsxs)(Fm,{placement:n?"bottom-start":"left-start",children:[(0,Ec.jsx)(Fm.SubmenuTriggerItem,{children:(0,Ec.jsx)(Fm.ItemLabel,{children:i.label})}),(0,Ec.jsx)(Fm.Popover,{gutter:8,children:(0,Ec.jsx)(Fm.Group,{children:r.map(s=>(0,Ec.jsx)(j9e,{args:e,attribute:t,field:s,source:i,sourceKey:o},o+JSON.stringify(s.args)||s.key))})})]},o)}var ll=c(T(),1),{Menu:G2}=G(Tc.privateApis);function zC({attribute:e,binding:t,blockName:o}){let{updateBlockBindings:r}=Rf(),n=(0,Rne.useViewportMatch)("medium","<"),i=(0,Tne.useContext)(zn),s=(0,hH.useSelect)(h=>{let{getAllBlockBindingsSources:b,getBlockBindingsSourceFieldsList:v,getBlockType:y}=G(h(Y2.store)),_=y(o).attributes?.[e];if(_?.enum)return{};let w=_?.type==="rich-text"?"string":_?.type,k={};return Object.entries(b()).forEach(([x,S])=>{let C=v(S,i);if(!C?.length)return;let R=C.filter(E=>E.type===w);R.length&&(k[x]=R)}),k},[e,o,i]),{canUpdateBlockBindings:a}=(0,hH.useSelect)(h=>({canUpdateBlockBindings:h(B).getSettings().canUpdateBlockBindings})),l=Object.keys(s).length>0,u=!a||!l,{source:d,args:f}=t||{},p=(0,Y2.getBlockBindingsSource)(d),m,g=!0;return t===void 0?(l?m=(0,$2.__)("Not connected"):m=(0,$2.__)("No sources available"),g=!0):p?m=s?.[d]?.find(h=>(0,Ene.default)(h.args,f))?.label||p?.label||d:(g=!1,m=(0,$2.__)("Source not registered")),(0,ll.jsx)(Tc.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:e,onDeselect:!!l&&(()=>{r({[e]:void 0})}),children:(0,ll.jsxs)(G2,{placement:n?"bottom-start":"left-start",children:[(0,ll.jsx)(G2.TriggerButton,{render:(0,ll.jsx)(Tc.__experimentalItem,{}),disabled:!l,children:(0,ll.jsxs)(Tc.__experimentalVStack,{className:"block-editor-bindings__item",spacing:0,children:[(0,ll.jsx)(Tc.__experimentalText,{truncate:!0,children:e}),(0,ll.jsx)(Tc.__experimentalText,{truncate:!0,variant:g?"muted":void 0,isDestructive:!g,children:m})]})}),!u&&(0,ll.jsx)(G2.Popover,{gutter:n?8:36,children:(0,ll.jsx)(G2,{placement:n?"bottom-start":"left-start",children:Object.entries(s).map(([h,b])=>(0,ll.jsx)(FC,{args:t?.args,attribute:e,sourceKey:h,fields:b},h))})})]})})}var Bne=c(q(),1),Ine=c(Y(),1);var Pne=c(T(),1);function H9e({isActive:e,label:t=(0,Bne.__)("Full height"),onToggle:o,isDisabled:r}){return(0,Pne.jsx)(Ine.ToolbarButton,{isActive:e,icon:g7,label:t,onClick:()=>o(!e),disabled:r})}var One=H9e;var Mne=c(q(),1),Nne=c(wo(),1),Ob=c(Y(),1),jC=c(T(),1),U9e=()=>{};function W9e(e){let{label:t=(0,Mne.__)("Change matrix alignment"),onChange:o=U9e,value:r="center",isDisabled:n}=e,i=(0,jC.jsx)(Ob.AlignmentMatrixControl.Icon,{value:r});return(0,jC.jsx)(Ob.Dropdown,{popoverProps:{placement:"bottom-start"},renderToggle:({onToggle:s,isOpen:a})=>(0,jC.jsx)(Ob.ToolbarButton,{onClick:s,"aria-haspopup":"true","aria-expanded":a,onKeyDown:u=>{!a&&u.keyCode===Nne.DOWN&&(u.preventDefault(),s())},label:t,icon:i,showTooltip:!0,disabled:n}),renderContent:()=>(0,jC.jsx)(Ob.AlignmentMatrixControl,{onChange:o,value:r})})}var Lne=W9e;var vH=c(Y(),1),Z2=c(te(),1),X2=c(q(),1);var Une=c(F(),1);var Dne=c(te(),1),K2=c(ce(),1);function ci({clientId:e,maximumLength:t,context:o}){let r=(0,Dne.useSelect)(n=>{if(!e)return null;let{getBlockName:i,getBlockAttributes:s,getBlock:a}=n(B),{getBlockType:l,getActiveBlockVariation:u}=n(K2.store),d=i(e),f=l(d);if(!f)return null;let p=s(e),m=(0,K2.__experimentalGetBlockLabel)(f,p,o);return m!==f.title?m:u(d,p,void 0,a?.(e)?.innerContent)?.title||f.title},[e,o]);return r?t&&t>0&&r.length>t?r.slice(0,t-3)+"...":r:null}function HC({clientId:e,maximumLength:t,context:o}){return ci({clientId:e,maximumLength:t,context:o})}var Ab=c(F(),1),zne=c(ue(),1);var q2=c(F(),1),bH=c(ue(),1),Vne=c(T(),1),Rc=(0,q2.createContext)({refsMap:(0,bH.observableMap)(),eventHandlers:new Map});Rc.displayName="BlockRefsContext";function Fne({children:e}){let t=(0,q2.useMemo)(()=>({refsMap:(0,bH.observableMap)(),eventHandlers:new Map}),[]);return(0,Vne.jsx)(Rc.Provider,{value:t,children:e})}function jne(e){let{refsMap:t}=(0,Ab.useContext)(Rc);return(0,zne.useRefEffect)(o=>(t.set(e,o),()=>t.delete(e)),[e])}function yH(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Mb(e,t){let{refsMap:o}=(0,Ab.useContext)(Rc);(0,Ab.useLayoutEffect)(()=>{yH(t,o.get(e));let r=o.subscribe(e,()=>yH(t,o.get(e)));return()=>{r(),yH(t,null)}},[o,e,t])}function Zt(e){let[t,o]=(0,Ab.useState)(null);return Mb(e,o),t}function Hne(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 ka=c(T(),1);function G9e({rootLabelText:e}){let{selectBlock:t,clearSelectedBlock:o}=(0,Z2.useDispatch)(B),{clientId:r,parents:n,hasSelection:i}=(0,Z2.useSelect)(l=>{let{getSelectionStart:u,getSelectedBlockClientId:d,getEnabledBlockParents:f}=G(l(B)),p=d();return{parents:f(p),clientId:p,hasSelection:!!u().clientId}},[]),s=e||(0,X2._x)("Document","noun, breadcrumb"),a=(0,Une.useRef)();return Mb(r,a),(0,ka.jsxs)("ul",{className:"block-editor-block-breadcrumb",role:"list","aria-label":(0,X2.__)("Block breadcrumb"),children:[(0,ka.jsxs)("li",{className:i?void 0:"block-editor-block-breadcrumb__current","aria-current":i?void 0:"true",children:[i&&(0,ka.jsx)(vH.Button,{size:"small",className:"block-editor-block-breadcrumb__button",onClick:()=>{let l=a.current?.closest(".editor-styles-wrapper");o(),Hne(l)?.focus()},children:s}),!i&&(0,ka.jsx)("span",{children:s}),!!r&&(0,ka.jsx)(xt,{icon:bm,className:"block-editor-block-breadcrumb__separator"})]}),n.map(l=>(0,ka.jsxs)("li",{children:[(0,ka.jsx)(vH.Button,{size:"small",className:"block-editor-block-breadcrumb__button",onClick:()=>t(l),children:(0,ka.jsx)(HC,{clientId:l,maximumLength:35,context:"breadcrumb"})}),(0,ka.jsx)(xt,{icon:bm,className:"block-editor-block-breadcrumb__separator"})]},l)),!!r&&(0,ka.jsx)("li",{className:"block-editor-block-breadcrumb__current","aria-current":"true",children:(0,ka.jsx)(HC,{clientId:r,maximumLength:35,context:"breadcrumb"})})]})}var Wne=G9e;var Gne=c(te(),1);function $ne(e){return(0,Gne.useSelect)(t=>{let{__unstableHasActiveBlockOverlayActive:o}=t(B);return o(e)},[e])}var KV=c(ue(),1),X1e=c(F(),1),Q1e=c(te(),1),J1e=c(Y(),1);var Nl=c(te(),1),C5=c(ue(),1),lp=c(F(),1),lT=c(ce(),1);var Mf=c(F(),1),Xt=c(ce(),1),wae=c(Y(),1),UO=c(te(),1),WO=c(ue(),1),kae=c(Lt(),1);var zm=c(q(),1),J2=c(Y(),1),Nb=c(F(),1),WC=c(ce(),1),eO=c(te(),1);var UC=class{diff(t,o,r={}){let n;typeof r=="function"?(n=r,r={}):"callback"in r&&(n=r.callback);let i=this.castInput(t,r),s=this.castInput(o,r),a=this.removeEmpty(this.tokenize(i,r)),l=this.removeEmpty(this.tokenize(s,r));return this.diffWithOptionsObj(a,l,r,n)}diffWithOptionsObj(t,o,r,n){var i;let s=y=>{if(y=this.postProcess(y,r),n){setTimeout(function(){n(y)},0);return}else return y},a=o.length,l=t.length,u=1,d=a+l;r.maxEditLength!=null&&(d=Math.min(d,r.maxEditLength));let f=(i=r.timeout)!==null&&i!==void 0?i:1/0,p=Date.now()+f,m=[{oldPos:-1,lastComponent:void 0}],g=this.extractCommon(m[0],o,t,0,r);if(m[0].oldPos+1>=l&&g+1>=a)return s(this.buildValues(m[0].lastComponent,o,t));let h=-1/0,b=1/0,v=()=>{for(let y=Math.max(h,-u);y<=Math.min(b,u);y+=2){let _,w=m[y-1],k=m[y+1];w&&(m[y-1]=void 0);let x=!1;if(k){let C=k.oldPos-y;x=k&&0<=C&&C<a}let S=w&&w.oldPos+1<l;if(!x&&!S){m[y]=void 0;continue}if(!S||x&&w.oldPos<k.oldPos?_=this.addToPath(k,!0,!1,0,r):_=this.addToPath(w,!1,!0,1,r),g=this.extractCommon(_,o,t,y,r),_.oldPos+1>=l&&g+1>=a)return s(this.buildValues(_.lastComponent,o,t))||!0;m[y]=_,_.oldPos+1>=l&&(b=Math.min(b,y-1)),g+1>=a&&(h=Math.max(h,y+1))}u++};if(n)(function y(){setTimeout(function(){if(u>d||Date.now()>p)return n(void 0);v()||y()},0)})();else for(;u<=d&&Date.now()<=p;){let y=v();if(y)return y}}addToPath(t,o,r,n,i){let s=t.lastComponent;return s&&!i.oneChangePerToken&&s.added===o&&s.removed===r?{oldPos:t.oldPos+n,lastComponent:{count:s.count+1,added:o,removed:r,previousComponent:s.previousComponent}}:{oldPos:t.oldPos+n,lastComponent:{count:1,added:o,removed:r,previousComponent:s}}}extractCommon(t,o,r,n,i){let s=o.length,a=r.length,l=t.oldPos,u=l-n,d=0;for(;u+1<s&&l+1<a&&this.equals(r[l+1],o[u+1],i);)u++,l++,d++,i.oneChangePerToken&&(t.lastComponent={count:1,previousComponent:t.lastComponent,added:!1,removed:!1});return d&&!i.oneChangePerToken&&(t.lastComponent={count:d,previousComponent:t.lastComponent,added:!1,removed:!1}),t.oldPos=l,u}equals(t,o,r){return r.comparator?r.comparator(t,o):t===o||!!r.ignoreCase&&t.toLowerCase()===o.toLowerCase()}removeEmpty(t){let o=[];for(let r=0;r<t.length;r++)t[r]&&o.push(t[r]);return o}castInput(t,o){return t}tokenize(t,o){return Array.from(t)}join(t){return t.join("")}postProcess(t,o){return t}get useLongestToken(){return!1}buildValues(t,o,r){let n=[],i;for(;t;)n.push(t),i=t.previousComponent,delete t.previousComponent,t=i;n.reverse();let s=n.length,a=0,l=0,u=0;for(;a<s;a++){let d=n[a];if(d.removed)d.value=this.join(r.slice(u,u+d.count)),u+=d.count;else{if(!d.added&&this.useLongestToken){let f=o.slice(l,l+d.count);f=f.map(function(p,m){let g=r[u+m];return g.length>p.length?g:p}),d.value=this.join(f)}else d.value=this.join(o.slice(l,l+d.count));l+=d.count,d.added||(u+=d.count)}}return n}};var _H=class extends UC{},Kne=new _H;function wH(e,t,o){return Kne.diff(e,t,o)}var Q2=c(q(),1),Qne=c(ce(),1);var qne=c(Y(),1),Zne=c(F(),1),Xne=c(Lt(),1),Yu=c(T(),1);function kH({title:e,rawContent:t,renderedContent:o,action:r,actionText:n,className:i}){return(0,Yu.jsxs)("div",{className:i,children:[(0,Yu.jsxs)("div",{className:"block-editor-block-compare__content",children:[(0,Yu.jsx)("h2",{className:"block-editor-block-compare__heading",children:e}),(0,Yu.jsx)("div",{className:"block-editor-block-compare__html",children:t}),(0,Yu.jsx)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor",children:(0,Yu.jsx)(Zne.RawHTML,{children:(0,Xne.safeHTML)(o)})})]}),(0,Yu.jsx)("div",{className:"block-editor-block-compare__action",children:(0,Yu.jsx)(qne.Button,{__next40pxDefaultSize:!0,variant:"secondary",tabIndex:"0",onClick:r,children:n})})]})}var W_=c(T(),1);function $9e({block:e,onKeep:t,onConvert:o,convertor:r,convertButtonText:n}){function i(u,d){return wH(u,d).map((p,m)=>{let g=$({"block-editor-block-compare__added":p.added,"block-editor-block-compare__removed":p.removed});return(0,W_.jsx)("span",{className:g,children:p.value},m)})}function s(u){return(Array.isArray(u)?u:[u]).map(p=>(0,Qne.getSaveContent)(p.name,p.attributes,p.innerBlocks)).join("")}let a=s(r(e)),l=i(e.originalContent,a);return(0,W_.jsxs)("div",{className:"block-editor-block-compare__wrapper",children:[(0,W_.jsx)(kH,{title:(0,Q2.__)("Current"),className:"block-editor-block-compare__current",action:t,actionText:(0,Q2.__)("Convert to HTML"),rawContent:e.originalContent,renderedContent:e.originalContent}),(0,W_.jsx)(kH,{title:(0,Q2.__)("After Conversion"),className:"block-editor-block-compare__converted",action:o,actionText:n,rawContent:l,renderedContent:a})]})}var Jne=$9e;var Bf=c(T(),1),eie=e=>(0,WC.rawHandler)({HTML:e.originalContent});function tie({clientId:e}){let{block:t,canInsertHTMLBlock:o}=(0,eO.useSelect)(u=>{let{canInsertBlockType:d,getBlock:f,getBlockRootClientId:p}=u(B),m=p(e);return{block:f(e),canInsertHTMLBlock:d("core/html",m)}},[e]),{replaceBlock:r}=(0,eO.useDispatch)(B),[n,i]=(0,Nb.useState)(!1),s=(0,Nb.useCallback)(()=>i(!1),[]),a=(0,Nb.useMemo)(()=>({toHTML(){let u=(0,WC.createBlock)("core/html",{},[],[t.originalContent]);return r(t.clientId,u)},toBlocks(){let u=eie(t);return r(t.clientId,u)},toRecoveredBlock(){let u=(0,WC.createBlock)(t.name,t.attributes,t.innerBlocks);return r(t.clientId,u)}}),[t,r]),l=(0,Nb.useMemo)(()=>[{title:(0,zm._x)("Resolve","imperative verb"),onClick:()=>i(!0)},o&&{title:(0,zm.__)("Convert to HTML"),onClick:a.toHTML}].filter(Boolean),[o,a]);return(0,Bf.jsxs)(Bf.Fragment,{children:[(0,Bf.jsx)(Im,{actions:[(0,Bf.jsx)(J2.Button,{__next40pxDefaultSize:!0,onClick:a.toRecoveredBlock,variant:"primary",children:(0,zm.__)("Attempt recovery")},"recover")],secondaryActions:l,children:(0,zm.__)("Block contains unexpected or invalid content.")}),n&&(0,Bf.jsx)(J2.Modal,{title:(0,zm.__)("Resolve Block"),onRequestClose:s,className:"block-editor-block-compare",children:(0,Bf.jsx)(Jne,{block:t,onKeep:a.toHTML,onConvert:a.toBlocks,convertor:eie,convertButtonText:(0,zm.__)("Convert to Blocks")})})]})}var oie=c(q(),1);var rie=c(T(),1),Y9e=(0,rie.jsx)(Im,{className:"block-editor-block-list__block-crash-warning",children:(0,oie.__)("This block has encountered an error and cannot be previewed.")});function nie(){return Y9e}var iie=c(F(),1),K9e=class extends iie.Component{constructor(){super(...arguments),this.state={hasError:!1}}componentDidCatch(){this.setState({hasError:!0})}render(){return this.state.hasError?this.props.fallback:this.props.children}},sie=K9e;var Tie=c(CH(),1),$_=c(F(),1),nO=c(te(),1),Ku=c(ce(),1);var Cie=c(ue(),1),EH=new WeakSet;function G_(){return(0,Cie.useRefEffect)(e=>(EH.add(e),()=>{EH.delete(e)}),[])}function Eie(e){let{target:t}=e;for(t?.nodeName==="IFRAME"&&(t=t.contentDocument?.activeElement);t;){if(EH.has(t))return!0;t=t.parentElement}return!1}var Rie=c(T(),1);function ije({clientId:e}){let[t,o]=(0,$_.useState)(""),r=G_(),n=(0,nO.useSelect)(l=>l(B).getBlock(e),[e]),{updateBlock:i}=(0,nO.useDispatch)(B),s=(0,$_.useMemo)(()=>n?(0,Ku.getBlockContent)(n):"",[n]),a=()=>{let l=(0,Ku.getBlockType)(n.name);if(!l)return;let u=(0,Ku.getBlockAttributes)(l,t,n.attributes),d=t||(0,Ku.getSaveContent)(l,u),[f]=t?(0,Ku.validateBlock)({...n,attributes:u,originalContent:d}):[!0];i(e,{attributes:u,originalContent:d,isValid:f}),t||o(d)};return(0,$_.useEffect)(()=>{o(s)},[s]),(0,Rie.jsx)(Tie.default,{className:"block-editor-block-list__block-html-textarea",value:t,onBlur:a,onChange:l=>o(l.target.value),ref:r})}var Bie=ije;var bae=c(F(),1),d1=c(q(),1),yae=c(ce(),1),Gb=c(ue(),1),vae=c(te(),1),_ae=c(Y_(),1);var RH=YC(),ft=e=>$C(e,RH),BH=YC();ft.write=e=>$C(e,BH);var iO=YC();ft.onStart=e=>$C(e,iO);var IH=YC();ft.onFrame=e=>$C(e,IH);var PH=YC();ft.onFinish=e=>$C(e,PH);var K_=[];ft.setTimeout=(e,t)=>{let o=ft.now()+t,r=()=>{let i=K_.findIndex(s=>s.cancel==r);~i&&K_.splice(i,1),Hm-=~i?1:0},n={time:o,handler:e,cancel:r};return K_.splice(Pie(o),0,n),Hm+=1,Oie(),n};var Pie=e=>~(~K_.findIndex(t=>t.time>e)||~K_.length);ft.cancel=e=>{iO.delete(e),IH.delete(e),PH.delete(e),RH.delete(e),BH.delete(e)};ft.sync=e=>{TH=!0,ft.batchedUpdates(e),TH=!1};ft.throttle=e=>{let t;function o(){try{e(...t)}finally{t=null}}function r(...n){t=n,ft.onStart(o)}return r.handler=e,r.cancel=()=>{iO.delete(o),t=null},r};var OH=typeof window<"u"?window.requestAnimationFrame:()=>{};ft.use=e=>OH=e;ft.now=typeof performance<"u"?()=>performance.now():Date.now;ft.batchedUpdates=e=>e();ft.catch=console.error;ft.frameLoop="always";ft.advance=()=>{ft.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Mie()};var jm=-1,Hm=0,TH=!1;function $C(e,t){TH?(t.delete(e),e(0)):(t.add(e),Oie())}function Oie(){jm<0&&(jm=0,ft.frameLoop!=="demand"&&OH(Aie))}function sje(){jm=-1}function Aie(){~jm&&(OH(Aie),ft.batchedUpdates(Mie))}function Mie(){let e=jm;jm=ft.now();let t=Pie(jm);if(t&&(Nie(K_.splice(0,t),o=>o.handler()),Hm-=t),!Hm){sje();return}iO.flush(),RH.flush(e?Math.min(64,jm-e):16.667),IH.flush(),BH.flush(),PH.flush()}function YC(){let e=new Set,t=e;return{add(o){Hm+=t==e&&!e.has(o)?1:0,e.add(o)},delete(o){return Hm-=t==e&&e.has(o)?1:0,e.delete(o)},flush(o){t.size&&(e=new Set,Hm-=t.size,Nie(t,r=>r(o)&&e.add(r)),Hm+=e.size,t=e)}}}function Nie(e,t){e.forEach(o=>{try{t(o)}catch(r){ft.catch(r)}})}var ul=c(re());function uO(){}var jie=(e,t,o)=>Object.defineProperty(e,t,{value:o,writable:!0,configurable:!0}),Oe={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 qu(e,t){if(Oe.arr(e)){if(!Oe.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 Do=(e,t)=>e.forEach(t);function dl(e,t,o){if(Oe.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 Vs=e=>Oe.und(e)?[]:Oe.arr(e)?e:[e];function Q_(e,t){if(e.size){let o=Array.from(e);e.clear(),Do(o,t)}}var J_=(e,...t)=>Q_(e,o=>o(...t)),VH=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),FH,Hie,Um=null,Uie=!1,zH=uO,aje=e=>{e.to&&(Hie=e.to),e.now&&(ft.now=e.now),e.colors!==void 0&&(Um=e.colors),e.skipAnimation!=null&&(Uie=e.skipAnimation),e.createStringInterpolator&&(FH=e.createStringInterpolator),e.requestAnimationFrame&&ft.use(e.requestAnimationFrame),e.batchedUpdates&&(ft.batchedUpdates=e.batchedUpdates),e.willAdvance&&(zH=e.willAdvance),e.frameLoop&&(ft.frameLoop=e.frameLoop)},xa=Object.freeze({__proto__:null,get createStringInterpolator(){return FH},get to(){return Hie},get colors(){return Um},get skipAnimation(){return Uie},get willAdvance(){return zH},assign:aje}),KC=new Set,cl=[],AH=[],lO=0,ew={get idle(){return!KC.size&&!cl.length},start(e){lO>e.priority?(KC.add(e),ft.onStart(lje)):(Wie(e),ft(LH))},advance:LH,sort(e){if(lO)ft.onFrame(()=>ew.sort(e));else{let t=cl.indexOf(e);~t&&(cl.splice(t,1),Gie(e))}},clear(){cl=[],KC.clear()}};function lje(){KC.forEach(Wie),KC.clear(),ft(LH)}function Wie(e){cl.includes(e)||Gie(e)}function Gie(e){cl.splice(cje(cl,t=>t.priority>e.priority),0,e)}function LH(e){let t=AH;for(let o=0;o<cl.length;o++){let r=cl[o];lO=r.priority,r.idle||(zH(r),r.advance(e),r.idle||t.push(r))}return lO=0,AH=cl,AH.length=0,cl=t,cl.length>0}function cje(e,t){let o=e.findIndex(t);return o<0?e.length:o}var $ie={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},Bc="[-+]?\\d*\\.?\\d+",cO=Bc+"%";function dO(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var uje=new RegExp("rgb"+dO(Bc,Bc,Bc)),dje=new RegExp("rgba"+dO(Bc,Bc,Bc,Bc)),fje=new RegExp("hsl"+dO(Bc,cO,cO)),pje=new RegExp("hsla"+dO(Bc,cO,cO,Bc)),mje=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,gje=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hje=/^#([0-9a-fA-F]{6})$/,bje=/^#([0-9a-fA-F]{8})$/;function yje(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=hje.exec(e))?parseInt(t[1]+"ff",16)>>>0:Um&&Um[e]!==void 0?Um[e]:(t=uje.exec(e))?(q_(t[1])<<24|q_(t[2])<<16|q_(t[3])<<8|255)>>>0:(t=dje.exec(e))?(q_(t[1])<<24|q_(t[2])<<16|q_(t[3])<<8|Vie(t[4]))>>>0:(t=mje.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=bje.exec(e))?parseInt(t[1],16)>>>0:(t=gje.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=fje.exec(e))?(Lie(Die(t[1]),sO(t[2]),sO(t[3]))|255)>>>0:(t=pje.exec(e))?(Lie(Die(t[1]),sO(t[2]),sO(t[3]))|Vie(t[4]))>>>0:null}function MH(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 Lie(e,t,o){let r=o<.5?o*(1+t):o+t-o*t,n=2*o-r,i=MH(n,r,e+1/3),s=MH(n,r,e),a=MH(n,r,e-1/3);return Math.round(i*255)<<24|Math.round(s*255)<<16|Math.round(a*255)<<8}function q_(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function Die(e){return(parseFloat(e)%360+360)%360/360}function Vie(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function sO(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function Fie(e){let t=yje(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 Wm=(e,t,o)=>{if(Oe.fun(e))return e;if(Oe.arr(e))return Wm({range:e,output:t,extrapolate:o});if(Oe.str(e.output[0]))return FH(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=_je(u,i);return vje(u,i[d],i[d+1],n[d],n[d+1],l,s,a,r.map)}};function vje(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 _je(e,t){for(var o=1;o<t.length-1&&!(t[o]>=e);++o);return o-1}function DH(){return DH=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},DH.apply(this,arguments)}var Z_=Symbol.for("FluidValue.get"),Lb=Symbol.for("FluidValue.observers"),os=e=>!!(e&&e[Z_]),ui=e=>e&&e[Z_]?e[Z_]():e,jH=e=>e[Lb]||null;function wje(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Db(e,t){let o=e[Lb];o&&o.forEach(r=>{wje(r,t)})}var X_=class{constructor(t){if(this[Z_]=void 0,this[Lb]=void 0,!t&&!(t=this.get))throw Error("Unknown getter");kje(this,t)}},kje=(e,t)=>Yie(e,Z_,t);function Gm(e,t){if(e[Z_]){let o=e[Lb];o||Yie(e,Lb,o=new Set),o.has(t)||(o.add(t),e.observerAdded&&e.observerAdded(o.size,t))}return t}function $m(e,t){let o=e[Lb];if(o&&o.has(t)){let r=o.size-1;r?o.delete(t):e[Lb]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var Yie=(e,t,o)=>Object.defineProperty(e,t,{value:o,writable:!0,configurable:!0}),aO=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,xje=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,zie=new RegExp(`(${aO.source})(%|[a-z]+)`,"i"),Sje=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,fO=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Kie=e=>{let[t,o]=Cje(e);if(!t||VH())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&&fO.test(o))return Kie(o);if(o)return o}return e},Cje=e=>{let t=fO.exec(e);if(!t)return[,];let[,o,r]=t;return[o,r]},NH,Eje=(e,t,o,r,n)=>`rgba(${Math.round(t)}, ${Math.round(o)}, ${Math.round(r)}, ${n})`,pO=e=>{NH||(NH=Um?new RegExp(`(${Object.keys(Um).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(i=>ui(i).replace(fO,Kie).replace(xje,Fie).replace(NH,Fie)),o=t.map(i=>i.match(aO).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=>Wm(DH({},e,{output:i})));return i=>{var s;let a=!zie.test(t[0])&&((s=t.find(u=>zie.test(u)))==null?void 0:s.replace(aO,"")),l=0;return t[0].replace(aO,()=>`${n[l++](i)}${a||""}`).replace(Sje,Eje)}},qie="react-spring: ",Zie=e=>{let t=e,o=!1;if(typeof t!="function")throw new TypeError(`${qie}once requires a function parameter`);return(...r)=>{o||(t(...r),o=!0)}},Tje=Zie(console.warn);function Xie(){Tje(`${qie}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var rSt=Zie(console.warn);function tw(e){return Oe.str(e)&&(e[0]=="#"||/\d/.test(e)||!VH()&&fO.test(e)||e in(Um||{}))}var qC=VH()?ul.useEffect:ul.useLayoutEffect,Rje=()=>{let e=(0,ul.useRef)(!1);return qC(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function HH(){let e=(0,ul.useState)()[1],t=Rje();return()=>{t.current&&e(Math.random())}}function Qie(e,t){let[o]=(0,ul.useState)(()=>({inputs:t,result:e()})),r=(0,ul.useRef)(),n=r.current,i=n;return i?t&&i.inputs&&Bje(t,i.inputs)||(i={inputs:t,result:e()}):i=o,(0,ul.useEffect)(()=>{r.current=i,n==o&&(o.inputs=o.result=void 0)},[i]),i.result}function Bje(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 UH=e=>(0,ul.useEffect)(e,Ije),Ije=[];var i1=c(re()),s1=c(re());var ose=c(re()),Pf=c(re()),ZC=Symbol.for("Animated:node"),Pje=e=>!!e&&e[ZC]===e,Ic=e=>e&&e[ZC],bO=(e,t)=>jie(e,ZC,t),XC=e=>e&&e[ZC]&&e[ZC].getPayload(),mO=class{constructor(){this.payload=void 0,bO(this,this)}getPayload(){return this.payload||[]}},Vb=class e extends mO{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,Oe.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 Oe.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,Oe.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}},Fb=class e extends Vb{constructor(t){super(0),this._string=null,this._toString=void 0,this._toString=Wm({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(Oe.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=Wm({output:[this.getValue(),t]})),this._value=0,super.reset()}},gO={dependencies:null},zb=class extends mO{constructor(t){super(),this.source=t,this.setValue(t)}getValue(t){let o={};return dl(this.source,(r,n)=>{Pje(r)?o[n]=r.getValue(t):os(r)?o[n]=ui(r):t||(o[n]=r)}),o}setValue(t){this.source=t,this.payload=this._makePayload(t)}reset(){this.payload&&Do(this.payload,t=>t.reset())}_makePayload(t){if(t){let o=new Set;return dl(t,this._addToPayload,o),Array.from(o)}}_addToPayload(t){gO.dependencies&&os(t)&&gO.dependencies.add(t);let o=XC(t);o&&Do(o,r=>this.add(r))}},WH=class e extends zb{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(Oje)),!0)}};function Oje(e){return(tw(e)?Fb:Vb).create(e)}function yO(e){let t=Ic(e);return t?t.constructor:Oe.arr(e)?WH:tw(e)?Fb:Vb}function hO(){return hO=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},hO.apply(this,arguments)}var Jie=(e,t)=>{let o=!Oe.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,Pf.forwardRef)((r,n)=>{let i=(0,Pf.useRef)(null),s=o&&(0,Pf.useCallback)(g=>{i.current=Mje(n,g)},[n]),[a,l]=Aje(r,t),u=HH(),d=()=>{let g=i.current;if(o&&!g)return;(g?t.applyAnimatedValues(g,a.getValue(!0)):!1)===!1&&u()},f=new GH(d,l),p=(0,Pf.useRef)();qC(()=>(p.current=f,Do(l,g=>Gm(g,f)),()=>{p.current&&(Do(p.current.deps,g=>$m(g,p.current)),ft.cancel(p.current.update))})),(0,Pf.useEffect)(d,[]),UH(()=>()=>{let g=p.current;Do(g.deps,h=>$m(h,g))});let m=t.getComponentProps(a.getValue());return ose.createElement(e,hO({},m,{ref:s}))})},GH=class{constructor(t,o){this.update=t,this.deps=o}eventObserved(t){t.type=="change"&&ft.write(this.update)}};function Aje(e,t){let o=new Set;return gO.dependencies=o,e.style&&(e=hO({},e,{style:t.createAnimatedStyle(e.style)})),e=new zb(e),gO.dependencies=null,[e,o]}function Mje(e,t){return e&&(Oe.fun(e)?e(t):e.current=t),t}var ese=Symbol.for("AnimatedComponent"),rse=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:o=n=>new zb(n),getComponentProps:r=n=>n}={})=>{let n={applyAnimatedValues:t,createAnimatedStyle:o,getComponentProps:r},i=s=>{let a=tse(s)||"Anonymous";return Oe.str(s)?s=i[s]||(i[s]=Jie(s,n)):s=s[ese]||(s[ese]=Jie(s,n)),s.displayName=`Animated(${a})`,s};return dl(e,(s,a)=>{Oe.arr(e)&&(a=tse(s)),i[a]=i(s)}),{animated:i}},tse=e=>Oe.str(e)?e:e&&Oe.str(e.displayName)?e.displayName:Oe.fun(e)&&e.name||null;function rs(){return rs=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},rs.apply(this,arguments)}function jb(e,...t){return Oe.fun(e)?e(...t):e}var t1=(e,t)=>e===!0||!!(t&&e&&(Oe.fun(e)?e(t):Vs(e).includes(t))),gse=(e,t)=>Oe.obj(e)?t&&e[t]:e,hse=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,Nje=e=>e,bse=(e,t=Nje)=>{let o=Lje;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);Oe.und(i)||(r[n]=i)}return r},Lje=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Dje={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 Vje(e){let t={},o=0;if(dl(e,(r,n)=>{Dje[n]||(t[n]=r,o++)}),o)return t}function yse(e){let t=Vje(e);if(t){let o={to:t};return dl(e,(r,n)=>n in t||(o[n]=r)),o}return rs({},e)}function o1(e){return e=ui(e),Oe.arr(e)?e.map(o1):tw(e)?xa.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function KH(e){return Oe.fun(e)||Oe.arr(e)&&Oe.obj(e[0])}var Fje={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}},wO=1.70158,vO=wO*1.525,nse=wO+1,ise=2*Math.PI/3,sse=2*Math.PI/4.5,_O=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,zje={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=>nse*e*e*e-wO*e*e,easeOutBack:e=>1+nse*Math.pow(e-1,3)+wO*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((vO+1)*2*e-vO)/2:(Math.pow(2*e-2,2)*((vO+1)*(e*2-2)+vO)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*ise),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*ise)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*sse))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*sse)/2+1,easeInBounce:e=>1-_O(1-e),easeOutBounce:_O,easeInOutBounce:e=>e<.5?(1-_O(1-2*e))/2:(1+_O(2*e-1))/2},qH=rs({},Fje.default,{mass:1,damping:1,easing:zje.linear,clamp:!1}),ZH=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,qH)}};function jje(e,t,o){o&&(o=rs({},o),ase(o,t),t=rs({},o,t)),ase(e,t),Object.assign(e,t);for(let s in qH)e[s]==null&&(e[s]=qH[s]);let{mass:r,frequency:n,damping:i}=e;return Oe.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 ase(e,t){if(!Oe.und(t.decay))e.duration=void 0;else{let o=!Oe.und(t.tension)||!Oe.und(t.friction);(o||!Oe.und(t.frequency)||!Oe.und(t.damping)||!Oe.und(t.mass))&&(e.duration=void 0,e.decay=void 0),o&&(e.frequency=void 0)}}var lse=[],XH=class{constructor(){this.changed=!1,this.values=lse,this.toValues=null,this.fromValues=lse,this.to=void 0,this.from=void 0,this.config=new ZH,this.immediate=!1}};function vse(e,{key:t,props:o,defaultProps:r,state:n,actions:i}){return new Promise((s,a)=>{var l;let u,d,f=t1((l=o.cancel)!=null?l:r?.cancel,t);if(f)g();else{Oe.und(o.pause)||(n.paused=t1(o.pause,t));let h=r?.pause;h!==!0&&(h=n.paused||t1(h,t)),u=jb(o.delay||0,t),h?(n.resumeQueue.add(m),i.pause()):(i.resume(),m())}function p(){n.resumeQueue.add(m),n.timeouts.delete(d),d.cancel(),u=d.time-ft.now()}function m(){u>0&&!xa.skipAnimation?(n.delayed=!0,d=ft.setTimeout(g,u),n.pauseQueue.add(p),n.timeouts.add(d)):g()}function g(){n.delayed&&(n.delayed=!1),n.pauseQueue.delete(p),n.timeouts.delete(d),e<=(n.cancelId||0)&&(f=!0);try{i.start(rs({},o,{callId:e,cancel:f}),s)}catch(h){a(h)}}})}var nU=(e,t)=>t.length==1?t[0]:t.some(o=>o.cancelled)?ow(e.get()):t.every(o=>o.noop)?_se(e.get()):Pc(e.get(),t.every(o=>o.finished)),_se=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Pc=(e,t,o=!1)=>({value:e,finished:t,cancelled:o}),ow=e=>({value:e,cancelled:!0,finished:!1});function wse(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=bse(t,(b,v)=>v==="onRest"?void 0:b),d,f,p=new Promise((b,v)=>(d=b,f=v)),m=b=>{let v=n<=(o.cancelId||0)&&ow(r)||n!==o.asyncId&&Pc(r,!1);if(v)throw b.result=v,f(b),b},g=(b,v)=>{let y=new kO,_=new xO;return(async()=>{if(xa.skipAnimation)throw r1(o),_.result=Pc(r,!1),f(_),_;m(y);let w=Oe.obj(b)?rs({},b):rs({},v,{to:b});w.parentId=n,dl(u,(x,S)=>{Oe.und(w[S])&&(w[S]=x)});let k=await r.start(w);return m(y),o.paused&&await new Promise(x=>{o.resumeQueue.add(x)}),k})()},h;if(xa.skipAnimation)return r1(o),Pc(r,!1);try{let b;Oe.arr(e)?b=(async v=>{for(let y of v)await g(y)})(e):b=Promise.resolve(e(g,r.stop.bind(r))),await Promise.all([b.then(d),p]),h=Pc(r.get(),!0,!1)}catch(b){if(b instanceof kO)h=b.result;else if(b instanceof xO)h=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 Oe.fun(s)&&ft.batchedUpdates(()=>{s(h,r,r.item)}),h})()}function r1(e,t){Q_(e.timeouts,o=>o.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var kO=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}},xO=class extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}},QH=e=>e instanceof n1,Hje=1,n1=class extends X_{constructor(...t){super(...t),this.id=Hje++,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=Ic(this);return t&&t.getValue()}to(...t){return xa.to(this,t)}interpolate(...t){return Xie(),xa.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){Db(this,{type:"change",parent:this,value:t,idle:o})}_onPriorityChange(t){this.idle||ew.sort(this),Db(this,{type:"priority",parent:this,priority:t})}},Hb=Symbol.for("SpringPhase"),kse=1,JH=2,eU=4,$H=e=>(e[Hb]&kse)>0,Ym=e=>(e[Hb]&JH)>0,QC=e=>(e[Hb]&eU)>0,cse=(e,t)=>t?e[Hb]|=JH|kse:e[Hb]&=~JH,use=(e,t)=>t?e[Hb]|=eU:e[Hb]&=~eU,tU=class extends n1{constructor(t,o){if(super(),this.key=void 0,this.animation=new XH,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,!Oe.und(t)||!Oe.und(o)){let r=Oe.obj(t)?rs({},t):rs({},o,{from:t});Oe.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(Ym(this)||this._state.asyncTo)||QC(this)}get goal(){return ui(this.animation.to)}get velocity(){let t=Ic(this);return t instanceof Vb?t.lastVelocity||0:t.getPayload().map(o=>o.lastVelocity||0)}get hasAnimated(){return $H(this)}get isAnimating(){return Ym(this)}get isPaused(){return QC(this)}get isDelayed(){return this._state.delayed}advance(t){let o=!0,r=!1,n=this.animation,{config:i,toValues:s}=n,a=XC(n.to);!a&&os(n.to)&&(s=Vs(ui(n.to))),n.values.forEach((d,f)=>{if(d.done)return;let p=d.constructor==Fb?1:a?a[f].lastPosition:s[f],m=n.immediate,g=p;if(!m){if(g=d.lastPosition,i.tension<=0){d.done=!0;return}let h=d.elapsedTime+=t,b=n.fromValues[f],v=d.v0!=null?d.v0:d.v0=Oe.arr(i.velocity)?i.velocity[f]:i.velocity,y,_=i.precision||(b==p?.005:Math.min(1,Math.abs(p-b)*.001));if(Oe.und(i.duration))if(i.decay){let w=i.decay===!0?.998:i.decay,k=Math.exp(-(1-w)*h);g=b+v/(1-w)*(1-k),m=Math.abs(d.lastPosition-g)<=_,y=v*k}else{y=d.lastVelocity==null?v:d.lastVelocity;let w=i.restVelocity||_/10,k=i.clamp?0:i.bounce,x=!Oe.und(k),S=b==p?d.v0>0:b<p,C,R=!1,E=1,I=Math.ceil(t/E);for(let O=0;O<I&&(C=Math.abs(y)>w,!(!C&&(m=Math.abs(p-g)<=_,m)));++O){x&&(R=g==p||g>p==S,R&&(y=-y*k,g=p));let A=-i.tension*1e-6*(g-p),P=-i.friction*.001*y,L=(A+P)/i.mass;y=y+L*E,g=g+y*E}}else{let w=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,d.durationProgress>0&&(d.elapsedTime=i.duration*d.durationProgress,h=d.elapsedTime+=t)),w=(i.progress||0)+h/this._memoizedDuration,w=w>1?1:w<0?0:w,d.durationProgress=w),g=b+i.easing(w)*(p-b),y=(g-d.lastPosition)/t,m=w==1}d.lastVelocity=y,Number.isNaN(g)&&(console.warn("Got NaN while animating:",this),m=!0)}a&&!a[f].done&&(m=!1),m?d.done=!0:o=!1,d.setValue(g,i.round)&&(r=!0)});let l=Ic(this),u=l.getValue();if(o){let d=ui(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 ft.batchedUpdates(()=>{this._stop(),this._focus(t),this._set(t)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Ym(this)){let{to:t,config:o}=this.animation;ft.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 Oe.und(t)?(r=this.queue||[],this.queue=[]):r=[Oe.obj(t)?t:rs({},o,{to:t})],Promise.all(r.map(n=>this._update(n))).then(n=>nU(this,n))}stop(t){let{to:o}=this.animation;return this._focus(this.get()),r1(this._state,t&&this._lastCallId),ft.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=Oe.obj(r)?r[o]:r,(r==null||KH(r))&&(r=void 0),n=Oe.obj(n)?n[o]:n,n==null&&(n=void 0);let i={to:r,from:n};return $H(this)||(t.reverse&&([r,n]=[n,r]),n=ui(n),Oe.und(n)?Ic(this)||this._set(r):this._set(n)),i}_update(t,o){let r=rs({},t),{key:n,defaultProps:i}=this;r.default&&Object.assign(i,bse(r,(l,u)=>/^on/.test(u)?gse(l,n):l)),fse(this,r,"onProps"),e1(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 vse(++this._lastCallId,{key:n,props:r,defaultProps:i,state:a,actions:{pause:()=>{QC(this)||(use(this,!0),J_(a.pauseQueue),e1(this,"onPause",Pc(this,JC(this,this.animation.to)),this))},resume:()=>{QC(this)&&(use(this,!1),Ym(this)&&this._resume(),J_(a.resumeQueue),e1(this,"onResume",Pc(this,JC(this,this.animation.to)),this))},start:this._merge.bind(this,s)}}).then(l=>{if(r.loop&&l.finished&&!(o&&l.noop)){let u=xse(r);if(u)return this._update(u,!0)}return l})}_merge(t,o,r){if(o.cancel)return this.stop(!0),r(ow(this));let n=!Oe.und(t.to),i=!Oe.und(t.from);if(n||i)if(o.callId>this._lastToId)this._lastToId=o.callId;else return r(ow(this));let{key:s,defaultProps:a,animation:l}=this,{to:u,from:d}=l,{to:f=u,from:p=d}=t;i&&!n&&(!o.default||Oe.und(f))&&(f=p),o.reverse&&([f,p]=[p,f]);let m=!qu(p,d);m&&(l.from=p),p=ui(p);let g=!qu(f,u);g&&this._focus(f);let h=KH(o.to),{config:b}=l,{decay:v,velocity:y}=b;(n||i)&&(b.velocity=0),o.config&&!h&&jje(b,jb(o.config,s),o.config!==a.config?jb(a.config,s):void 0);let _=Ic(this);if(!_||Oe.und(f))return r(Pc(this,!0));let w=Oe.und(o.reset)?i&&!o.default:!Oe.und(p)&&t1(o.reset,s),k=w?p:this.get(),x=o1(f),S=Oe.num(x)||Oe.arr(x)||tw(x),C=!h&&(!S||t1(a.immediate||o.immediate,s));if(g){let O=yO(f);if(O!==_.constructor)if(C)_=this._set(x);else throw Error(`Cannot animate between ${_.constructor.name} and ${O.name}, as the "to" prop suggests`)}let R=_.constructor,E=os(f),I=!1;if(!E){let O=w||!$H(this)&&m;(g||O)&&(I=qu(o1(k),x),E=!I),(!qu(l.immediate,C)&&!C||!qu(b.decay,v)||!qu(b.velocity,y))&&(E=!0)}if(I&&Ym(this)&&(l.changed&&!w?E=!0:E||this._stop(u)),!h&&((E||os(u))&&(l.values=_.getPayload(),l.toValues=os(f)?null:R==Fb?[1]:Vs(x)),l.immediate!=C&&(l.immediate=C,!C&&!w&&this._set(u)),E)){let{onRest:O}=l;Do(Uje,P=>fse(this,o,P));let A=Pc(this,JC(this,u));J_(this._pendingCalls,A),this._pendingCalls.add(r),l.changed&&ft.batchedUpdates(()=>{l.changed=!w,O?.(A,this),w?jb(a.onRest,A):l.onStart==null||l.onStart(A,this)})}w&&this._set(k),h?r(wse(o.to,o,this._state,this)):E?this._start():Ym(this)&&!g?this._pendingCalls.add(r):r(_se(k))}_focus(t){let o=this.animation;t!==o.to&&(jH(this)&&this._detach(),o.to=t,jH(this)&&this._attach())}_attach(){let t=0,{to:o}=this.animation;os(o)&&(Gm(o,this),QH(o)&&(t=o.priority+1)),this.priority=t}_detach(){let{to:t}=this.animation;os(t)&&$m(t,this)}_set(t,o=!0){let r=ui(t);if(!Oe.und(r)){let n=Ic(this);if(!n||!qu(r,n.getValue())){let i=yO(r);!n||n.constructor!=i?bO(this,i.create(r)):n.setValue(r),n&&ft.batchedUpdates(()=>{this._onChange(r,o)})}}return Ic(this)}_onStart(){let t=this.animation;t.changed||(t.changed=!0,e1(this,"onStart",Pc(this,JC(this,t.to)),this))}_onChange(t,o){o||(this._onStart(),jb(this.animation.onChange,t,this)),jb(this.defaultProps.onChange,t,this),super._onChange(t,o)}_start(){let t=this.animation;Ic(this).reset(ui(t.to)),t.immediate||(t.fromValues=t.values.map(o=>o.lastPosition)),Ym(this)||(cse(this,!0),QC(this)||this._resume())}_resume(){xa.skipAnimation?this.finish():ew.start(this)}_stop(t,o){if(Ym(this)){cse(this,!1);let r=this.animation;Do(r.values,i=>{i.done=!0}),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),Db(this,{type:"idle",parent:this});let n=o?ow(this.get()):Pc(this.get(),JC(this,t??r.to));J_(this._pendingCalls,n),r.changed&&(r.changed=!1,e1(this,"onRest",n,this))}}};function JC(e,t){let o=o1(t),r=o1(e.get());return qu(r,o)}function xse(e,t=e.loop,o=e.to){let r=jb(t);if(r){let n=r!==!0&&yse(r),i=(n||e).reverse,s=!n||n.reset;return oU(rs({},e,{loop:t,default:!1,pause:void 0,to:!i||KH(o)?o:void 0,from:s?e.from:void 0,reset:s},n))}}function oU(e){let{to:t,from:o}=e=yse(e),r=new Set;return Oe.obj(t)&&dse(t,r),Oe.obj(o)&&dse(o,r),e.keys=r.size?Array.from(r):null,e}function dse(e,t){dl(e,(o,r)=>o!=null&&t.add(r))}var Uje=["onStart","onRest","onChange","onPause","onResume"];function fse(e,t,o){e.animation[o]=t[o]!==hse(t,o)?gse(t[o],e.key):void 0}function e1(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 Wje=["onStart","onChange","onRest"],Gje=1,SO=class{constructor(t,o){this.id=Gje++,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(rs({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];Oe.und(r)||this.springs[o].set(r)}}update(t){return t&&this.queue.push(oU(t)),this}start(t){let{queue:o}=this;return t?o=Vs(t).map(oU):this.queue=[],this._flush?this._flush(this,o):(Cse(this,o),$je(this,o))}stop(t,o){if(t!==!!t&&(o=t),o){let r=this.springs;Do(Vs(o),n=>r[n].stop(!!t))}else r1(this._state,this._lastAsyncId),this.each(r=>r.stop(!!t));return this}pause(t){if(Oe.und(t))this.start({pause:!0});else{let o=this.springs;Do(Vs(t),r=>o[r].pause())}return this}resume(t){if(Oe.und(t))this.start({pause:!1});else{let o=this.springs;Do(Vs(t),r=>o[r].resume())}return this}each(t){dl(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,Q_(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&&Q_(o,([l,u])=>{u.value=a,l(u,this,this._item)}),s&&(this._started=!1,Q_(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;ft.onFrame(this._onFrame)}};function $je(e,t){return Promise.all(t.map(o=>Sse(e,o))).then(o=>nU(e,o))}async function Sse(e,t,o){let{keys:r,to:n,from:i,loop:s,onRest:a,onResolve:l}=t,u=Oe.obj(t.default)&&t.default;s&&(t.loop=!1),n===!1&&(t.to=null),i===!1&&(t.from=null);let d=Oe.arr(n)||Oe.fun(n)?n:void 0;d?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):Do(Wje,h=>{let b=t[h];if(Oe.fun(b)){let v=e._events[h];t[h]=({finished:y,cancelled:_})=>{let w=v.get(b);w?(y||(w.finished=!1),_&&(w.cancelled=!0)):v.set(b,{value:null,finished:y||!1,cancelled:_||!1})},u&&(u[h]=t[h])}});let f=e._state;t.pause===!f.paused?(f.paused=t.pause,J_(t.pause?f.pauseQueue:f.resumeQueue)):f.paused&&(t.pause=!0);let p=(r||Object.keys(e.springs)).map(h=>e.springs[h].start(t)),m=t.cancel===!0||hse(t,"cancel")===!0;(d||m&&f.asyncId)&&p.push(vse(++e._lastAsyncId,{props:t,state:f,actions:{pause:uO,resume:uO,start(h,b){m?(r1(f,e._lastAsyncId),b(ow(e))):(h.onRest=a,b(wse(d,h,f,e)))}}})),f.paused&&await new Promise(h=>{f.resumeQueue.add(h)});let g=nU(e,await Promise.all(p));if(s&&g.finished&&!(o&&g.noop)){let h=xse(t,s,n);if(h)return Cse(e,[h]),Sse(e,h,!0)}return l&&ft.batchedUpdates(()=>l(g,e,e.item)),g}function Yje(e,t){let o=new tU;return o.key=e,t&&Gm(o,t),o}function Kje(e,t,o){t.keys&&Do(t.keys,r=>{(e[r]||(e[r]=o(r)))._prepareNode(t)})}function Cse(e,t){Do(t,o=>{Kje(e.springs,o,r=>Yje(r,e))})}function qje(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 Zje=["children"],iU=e=>{let{children:t}=e,o=qje(e,Zje),r=(0,s1.useContext)(CO),n=o.pause||!!r.pause,i=o.immediate||!!r.immediate;o=Qie(()=>({pause:n,immediate:i}),[n,i]);let{Provider:s}=CO;return i1.createElement(s,{value:o},t)},CO=Xje(iU,{});iU.Provider=CO.Provider;iU.Consumer=CO.Consumer;function Xje(e,t){return Object.assign(e,i1.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var pse;(function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"})(pse||(pse={}));var rU=class extends n1{constructor(t,o){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=t,this.calc=Wm(...o);let r=this._get(),n=yO(r);bO(this,n.create(r))}advance(t){let o=this._get(),r=this.get();qu(o,r)||(Ic(this).setValue(o),this._onChange(o,this.idle)),!this.idle&&mse(this._active)&&YH(this)}_get(){let t=Oe.arr(this.source)?this.source.map(ui):Vs(ui(this.source));return this.calc(...t)}_start(){this.idle&&!mse(this._active)&&(this.idle=!1,Do(XC(this),t=>{t.done=!1}),xa.skipAnimation?(ft.batchedUpdates(()=>this.advance()),YH(this)):ew.start(this))}_attach(){let t=1;Do(Vs(this.source),o=>{os(o)&&Gm(o,this),QH(o)&&(o.idle||this._active.add(o),t=Math.max(t,o.priority+1))}),this.priority=t,this._start()}_detach(){Do(Vs(this.source),t=>{os(t)&&$m(t,this)}),this._active.clear(),YH(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=Vs(this.source).reduce((o,r)=>Math.max(o,(QH(r)?r.priority:0)+1),0))}};function Qje(e){return e.idle!==!1}function mse(e){return!e.size||Array.from(e).every(Qje)}function YH(e){e.idle||(e.idle=!0,Do(XC(e),t=>{t.done=!0}),Db(e,{type:"idle",parent:e}))}xa.assign({createStringInterpolator:pO,to:(e,t)=>new rU(e,t)});var pSt=ew.advance;var Rse=c(Of());function cU(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 Jje=["style","children","scrollTop","scrollLeft"],Bse=/^--/;function eHe(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!Bse.test(e)&&!(a1.hasOwnProperty(e)&&a1[e])?t+"px":(""+t).trim()}var Tse={};function tHe(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=cU(r,Jje),u=Object.values(l),d=Object.keys(l).map(f=>o||e.hasAttribute(f)?f:Tse[f]||(Tse[f]=f.replace(/([A-Z])/g,p=>"-"+p.toLowerCase())));i!==void 0&&(e.textContent=i);for(let f in n)if(n.hasOwnProperty(f)){let p=eHe(f,n[f]);Bse.test(f)?e.style.setProperty(f,p):e.style[f]=p}d.forEach((f,p)=>{e.setAttribute(f,u[p])}),s!==void 0&&(e.scrollTop=s),a!==void 0&&(e.scrollLeft=a)}var a1={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},oHe=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),rHe=["Webkit","Ms","Moz","O"];a1=Object.keys(a1).reduce((e,t)=>(rHe.forEach(o=>e[oHe(o,t)]=e[t]),e),a1);var nHe=["x","y","z"],iHe=/^(matrix|translate|scale|rotate|skew)/,sHe=/^(translate)/,aHe=/^(rotate|skew)/,sU=(e,t)=>Oe.num(e)&&e!==0?e+t:e,EO=(e,t)=>Oe.arr(e)?e.every(o=>EO(o,t)):Oe.num(e)?e===t:parseFloat(e)===t,aU=class extends zb{constructor(t){let{x:o,y:r,z:n}=t,i=cU(t,nHe),s=[],a=[];(o||r||n)&&(s.push([o||0,r||0,n||0]),a.push(l=>[`translate3d(${l.map(u=>sU(u,"px")).join(",")})`,EO(l,0)])),dl(i,(l,u)=>{if(u==="transform")s.push([l||""]),a.push(d=>[d,d===""]);else if(iHe.test(u)){if(delete i[u],Oe.und(l))return;let d=sHe.test(u)?"px":aHe.test(u)?"deg":"";s.push(Vs(l)),a.push(u==="rotate3d"?([f,p,m,g])=>[`rotate3d(${f},${p},${m},${sU(g,d)})`,EO(g,0)]:f=>[`${u}(${f.map(p=>sU(p,d)).join(",")})`,EO(f,u.startsWith("scale")?1:0)])}}),s.length&&(i.transform=new lU(s,a)),super(i)}},lU=class extends X_{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 Do(this.inputs,(r,n)=>{let i=ui(r[0]),[s,a]=this.transforms[n](Oe.arr(i)?i:r.map(ui));t+=" "+s,o=o&&a}),o?"none":t}observerAdded(t){t==1&&Do(this.inputs,o=>Do(o,r=>os(r)&&Gm(r,this)))}observerRemoved(t){t==0&&Do(this.inputs,o=>Do(o,r=>os(r)&&$m(r,this)))}eventObserved(t){t.type=="change"&&(this._value=null),Db(this,t)}},lHe=["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"],cHe=["scrollTop","scrollLeft"];xa.assign({batchedUpdates:Rse.unstable_batchedUpdates,createStringInterpolator:pO,colors:$ie});var uHe=rse(lHe,{applyAnimatedValues:tHe,createAnimatedStyle:e=>new aU(e),getComponentProps:e=>cU(e,cHe)}),Ise=uHe.animated;var rw=c(F(),1),Ose=c(Lt(),1),Ase=c(te(),1);var dHe=200;function Pse(e){return{top:e.offsetTop,left:e.offsetLeft}}function fHe({triggerAnimationOnChange:e,clientId:t}){let o=(0,rw.useRef)(),{isTyping:r,getGlobalBlockCount:n,isBlockSelected:i,isFirstMultiSelectedBlock:s,isBlockMultiSelected:a,isAncestorMultiSelected:l,isDraggingBlocks:u}=(0,Ase.useSelect)(B),{previous:d,prevRect:f}=(0,rw.useMemo)(()=>({previous:o.current&&Pse(o.current),prevRect:o.current&&o.current.getBoundingClientRect()}),[e]);return(0,rw.useLayoutEffect)(()=>{if(!d||!o.current)return;let p=(0,Ose.getScrollContainer)(o.current),m=i(t),g=m||s(t),h=u();function b(){if(!h&&g&&f){let R=o.current.getBoundingClientRect().top-f.top;R&&(p.scrollTop+=R)}}if(window.matchMedia("(prefers-reduced-motion: reduce)").matches||r()||n()>dHe){b();return}let y=m||a(t)||l(t);if(y&&h)return;let _=y?"20":"",w=new SO({x:0,y:0,config:{mass:5,tension:2e3,friction:200},onChange({value:C}){if(!o.current)return;let{x:R,y:E}=C;R=Math.round(R),E=Math.round(E);let I=R===0&&E===0;o.current.style.transformOrigin="center center",o.current.style.transform=I?null:`translate3d(${R}px,${E}px,0)`,o.current.style.zIndex=I?null:_,b()}});o.current.style.transform=void 0;let k=Pse(o.current),x=Math.round(d.left-k.left),S=Math.round(d.top-k.top);return w.start({x:0,y:0,from:{x,y:S}}),()=>{w.stop(),w.set({x:0,y:0})}},[d,f,t,r,n,i,s,a,l,u]),o}var TO=fHe;var IO=c(F(),1),Af=c(Lt(),1),Mse=c(te(),1);var RO=".block-editor-block-list__block",pHe=".block-list-appender",mHe=".block-editor-button-block-appender";function BO(e,t){return e.closest(RO)===t.closest(RO)}function Zu(e,t){return t.closest([RO,pHe,mHe].join(","))===e}function fl(e,t){let{anchorNode:o,focusNode:r}=e;if(!o||!r)return;let i=(o.nodeType===o.ELEMENT_NODE?o:o.parentElement)?.closest('[contenteditable="true"]');if(!(!i||i===t||!i.contains(r)))return i}function Vo(e){for(;e&&e.nodeType!==e.ELEMENT_NODE;)e=e.parentNode;if(!e)return;let o=e.closest(RO);if(o)return o.id.slice(6)}function uU(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 dU(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 gHe(e){let t=window.getComputedStyle(e);return t.overflowX==="auto"||t.overflowX==="scroll"||t.overflowY==="auto"||t.overflowY==="scroll"}var hHe=["core/navigation"];function nw(e){let t=e.ownerDocument.defaultView;if(!t)return new window.DOMRectReadOnly;let o=e.getBoundingClientRect(),r=e.getAttribute("data-type");if(r&&hHe.includes(r)){let s=[e],a;for(;a=s.pop();)if(!gHe(a)){for(let l of a.children)if(dU(l)){let u=l.getBoundingClientRect();o=uU(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 Nse({clientId:e,initialPosition:t}){let o=(0,IO.useRef)(),{isBlockSelected:r,isMultiSelecting:n,isZoomOut:i,getSelectionStart:s}=G((0,Mse.useSelect)(B));return(0,IO.useEffect)(()=>{if(!r(e)||n()||i()||t==null||!o.current)return;let{ownerDocument:a}=o.current;if(Zu(o.current,a.activeElement))return;if(t===!0){o.current.focus();return}let l=Af.focus.tabbable.find(o.current).filter(v=>(0,Af.isTextField)(v)),u=t===-1,d=l[u?l.length-1:0]||o.current;if(!Zu(o.current,d)){o.current.focus();return}if(!o.current.getAttribute("contenteditable")){let v=Af.focus.tabbable.findNext(o.current);if(v&&Zu(o.current,v)&&(0,Af.isFormElement)(v)){v.focus();return}}let{activeElement:f}=a,p=a.defaultView.getSelection(),{clientId:m,offset:g}=s();f?.isContentEditable&&f.contains(d)&&p.anchorNode&&d.contains(p.anchorNode)&&(t===0||g!==void 0&&m===e)||(0,Af.placeCaretAtHorizontalEdge)(d,u)},[t,e]),o}var PO=c(ue(),1);var{subscribeDelegatedListener:Lse}=G(PO.privateApis);function Dse({isEnabled:e=!0}={}){return(0,PO.useRefEffect)(t=>{if(!e)return;function o(i){i.defaultPrevented||(i.preventDefault(),t.classList.toggle("is-hovered",i.type==="mouseover"))}let r=Lse(t,"mouseout",o),n=Lse(t,"mouseover",o);return()=>{r(),n(),t.classList.remove("is-hovered")}},[e])}var OO=c(te(),1),AO=c(ue(),1);var{subscribeDelegatedListener:bHe}=G(AO.privateApis);function Vse(e){let{isBlockSelected:t,isBlockMultiSelected:o,isMultiSelecting:r}=(0,OO.useSelect)(B),{selectBlock:n,selectionChange:i}=(0,OO.useDispatch)(B);return(0,AO.useRefEffect)(s=>{function a(l){if(t(e)){l.target.isContentEditable||i(e);return}if(!r()&&!o(e)&&Zu(s,l.target)){if(l.target.isContentEditable){n(e,null);return}n(e)}}return bHe(s,"focusin",a)},[t,n])}var Km=c(F(),1);var zse=c(te(),1),jse=c(ue(),1),Hse=c(F(),1);var fU={onKeyDown:"keydown",onKeyUp:"keyup",onBeforeInput:"beforeinput",onInput:"input",onCompositionStart:"compositionstart",onCompositionUpdate:"compositionupdate",onCompositionEnd:"compositionend"},yHe=Object.values(fU);function Use(e){let t;for(let o in fU)typeof e[o]=="function"&&(t=t||{},t[fU[o]]=e[o]);return t}var Wse=["eventPhase","bubbles","cancelable","timeStamp","defaultPrevented","isTrusted"],Fse=[...Wse,"view","detail","key","code","location","ctrlKey","shiftKey","altKey","metaKey","repeat","locale","getModifierState","charCode","keyCode","which"],l1=[...Wse,"data"],vHe={keydown:Fse,keyup:Fse,beforeinput:l1,input:l1,compositionstart:l1,compositionupdate:l1,compositionend:l1};function _He(e,t){let o=!1,r={nativeEvent:e,type:e.type,target:t,currentTarget:null,preventDefault(){e.preventDefault(),r.defaultPrevented=!0},isDefaultPrevented(){return r.defaultPrevented},stopPropagation(){e.stopPropagation(),o=!0},isPropagationStopped(){return o},persist(){},isPersistent(){return!0}};for(let n of vHe[e.type]){let i=e[n];r[n]=typeof i=="function"?i.bind(e):i}return r}function Gse(){let{hasMultiSelection:e,getBlockParents:t}=(0,zse.useSelect)(B),{refsMap:o,eventHandlers:r}=(0,Hse.useContext)(Rc);return(0,jse.useRefEffect)(n=>{function i(l){if(!r.size||l.target!==n||!l.isTrusted||n.contentEditable!=="true"||e())return;let u=n.ownerDocument.defaultView.getSelection();if(!u.rangeCount)return;let d=fl(u,n),f=Vo(d);if(!f)return;let p=[f,...t(f,!0)],m;for(let g of p){let h=r.get(g)?.current?.[l.type],b=h&&o.get(g);if(b&&(m||(m=_He(l,d)),m.currentTarget=b,h(m),m.isPropagationStopped()))break}}let s=n.ownerDocument.documentElement,a=yHe.map(l=>(s.addEventListener(l,i),()=>s.removeEventListener(l,i)));return()=>a.forEach(l=>l())},[e,t,o,r])}function $se(e,t){let{eventHandlers:o}=(0,Km.useContext)(Rc),r=Use(t),n=(0,Km.useRef)();(0,Km.useInsertionEffect)(()=>{n.current=r});let i=!!r;(0,Km.useEffect)(()=>{if(i)return o.set(e,n),()=>o.delete(e)},[o,e,i])}var iw=c(ce(),1),Kse=c(Lt(),1),Ub=c(wo(),1),MO=c(te(),1),qse=c(ue(),1);function Yse(e){return!e||e==="transparent"||e==="rgba(0, 0, 0, 0)"}function Zse({clientId:e,isSelected:t}){let{getBlockRootClientId:o,isZoomOut:r,hasMultiSelection:n,isSectionBlock:i,editedContentOnlySection:s,getBlock:a}=G((0,MO.useSelect)(B)),{removeBlock:l,resetZoomLevel:u,startDraggingBlocks:d,stopDraggingBlocks:f,editContentOnlySection:p}=G((0,MO.useDispatch)(B));return(0,qse.useRefEffect)(m=>{if(!t)return;function g(v){let{keyCode:y,target:_}=v;y!==Ub.ENTER&&y!==Ub.BACKSPACE&&y!==Ub.DELETE||_!==m||(0,Kse.isTextField)(_)||(y===Ub.ENTER?r()&&(v.preventDefault(),u()):(v.preventDefault(),l(e)))}function h(v){if(m!==v.target||m.isContentEditable||m.ownerDocument.activeElement!==m||n()){v.preventDefault();return}let y=JSON.stringify({type:"block",srcClientIds:[e],srcRootClientId:o(e)});v.dataTransfer.effectAllowed="move",v.dataTransfer.clearData(),v.dataTransfer.setData("wp-blocks",y);let{ownerDocument:_}=m,{defaultView:w}=_;w.getSelection().removeAllRanges();let x=_.createElement("div");x.style.width="1px",x.style.height="1px",x.style.position="fixed",x.style.visibility="hidden",_.body.appendChild(x),v.dataTransfer.setDragImage(x,0,0);let S=m.getBoundingClientRect(),C=m.id,R=m.cloneNode();R.style.display="none",m.id=null,m.after(R);let E=1;{let U=m;for(;U=U.parentElement;){let{scale:Q}=w.getComputedStyle(U);if(Q&&Q!=="none"){E=parseFloat(Q);break}}}let I=1/E,O={};for(let U of["transform","transformOrigin","transition","zIndex","position","top","left","pointerEvents","opacity","backgroundColor"])O[U]=m.style[U];let A=w.scrollY,P=w.scrollX,L=v.clientX,H=v.clientY;m.style.position="relative",m.style.top="0px",m.style.left="0px";let N=v.clientX-S.left,M=v.clientY-S.top,V=S.height>200?200/S.height:1;if(m.style.zIndex="1000",m.style.transformOrigin=`${N*I}px ${M*I}px`,m.style.transition="transform 0.2s ease-out",m.style.transform=`scale(${V})`,m.style.opacity="0.9",Yse(w.getComputedStyle(m).backgroundColor)){let U="transparent",Q=m;for(;Q=Q.parentElement;){let{backgroundColor:Z}=w.getComputedStyle(Q);if(!Yse(Z)){U=Z;break}}m.style.backgroundColor=U}let j=!1,D=L,z=H;function W(U){U.clientX===D&&U.clientY===z||(D=U.clientX,z=U.clientY,ee())}function ee(){j||(j=!0,m.style.pointerEvents="none");let U=z-H,Q=D-L,Z=w.scrollY,K=w.scrollX,X=Z-A,oe=K-P,ie=U+X,se=Q+oe;m.style.top=`${ie*I}px`,m.style.left=`${se*I}px`}function J(){_.removeEventListener("dragover",W),_.removeEventListener("dragend",J),_.removeEventListener("drop",J),_.removeEventListener("scroll",ee);for(let[U,Q]of Object.entries(O))m.style[U]=Q;R.remove(),m.id=C,x.remove(),f(),document.body.classList.remove("is-dragging-components-draggable"),_.documentElement.classList.remove("is-dragging")}_.addEventListener("dragover",W),_.addEventListener("dragend",J),_.addEventListener("drop",J),_.addEventListener("scroll",ee),d([e]),document.body.classList.add("is-dragging-components-draggable"),_.documentElement.classList.add("is-dragging")}m.addEventListener("keydown",g),m.addEventListener("dragstart",h);function b(v){let y=i(e),_=a(e),w=(0,iw.isReusableBlock)(_),k=(0,iw.isTemplatePart)(_);!y||s===e||w||k||(v.preventDefault(),p(e))}return m.addEventListener("dblclick",b),()=>{m.removeEventListener("keydown",g),m.removeEventListener("dragstart",h),m.removeEventListener("dblclick",b)}},[e,t,o,a,iw.isReusableBlock,iw.isTemplatePart,l,r,u,n,d,f,i,s,p])}var Xse=c(ue(),1),Qse=c(F(),1);function Jse(){let e=(0,Qse.useContext)(NO);return(0,Xse.useRefEffect)(t=>{if(e)return e.observe(t),()=>{e.unobserve(t)}},[e])}var LO=c(ue(),1);function eae({isSelected:e}){let t=(0,LO.useReducedMotion)();return(0,LO.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 tae=c(ue(),1),oae=c(te(),1);function DO({clientId:e="",isEnabled:t=!0}={}){let{getEnabledClientIdsTree:o}=G((0,oae.useSelect)(B));return(0,tae.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 rae=c(ue(),1),c1=new Map;function wHe(e,t){let o=c1.get(e);o||(o=new Set,c1.set(e,o),e.addEventListener("pointerdown",iae)),o.add(t)}function kHe(e,t){let o=c1.get(e);o&&(o.delete(t),nae(t),o.size===0&&(c1.delete(e),e.removeEventListener("pointerdown",iae)))}function nae(e){let t=e.getAttribute("data-draggable");t&&(e.removeAttribute("data-draggable"),t==="true"&&!e.getAttribute("draggable")&&e.setAttribute("draggable","true"))}function iae(e){let{target:t}=e,{ownerDocument:o,isContentEditable:r,tagName:n}=t,i=["INPUT","TEXTAREA"].includes(n),s=c1.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)nae(a)}function sae(){return(0,rae.useRefEffect)(e=>(wHe(e.ownerDocument,e),()=>{kHe(e.ownerDocument,e)}),[])}var $r=c(q(),1),ns=c(F(),1),is=c(Y(),1),Wb=c(te(),1),uae=c(pl(),1),dae=c(Ls(),1);var u1=c(q(),1);var{getViewportBreakpoints:xHe}=G(Lo);function pU(e){let t=xHe(e);return Sj.filter(([o])=>(o!==fn.tablet.key||t.tablet!==void 0)&&(o!==fn.mobile.key||t.mobile!==void 0))}function SHe(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"||!Sj.some(([,{key:n}])=>n===t)?!1:r[t]===!1}function lae(e,t){if(!e?.length)return!1;let o=e.filter(r=>SHe(r,t)).length;return o===0?!1:o===e.length?!0:null}function cae(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 mU(e,t){if(!e&&e!==!1)return null;if(e===!1)return(0,u1.__)("Block is hidden");if(e?.viewport){let o=pU(t).filter(([r])=>e.viewport?.[r]===!1).map(([,r])=>r.label);if(o.length>0)return(0,u1.sprintf)((0,u1.__)("Block is hidden on %s"),o.join(", "))}return null}var Nr=c(T(),1),CHe={[fn.mobile.key]:!1,[fn.tablet.key]:!1,[fn.desktop.key]:!1},EHe=[];function gU({clientIds:e,onClose:t}){let{createSuccessNotice:o}=(0,Wb.useDispatch)(dae.store),{updateBlockAttributes:r}=(0,Wb.useDispatch)(B),n=(0,Wb.useSelect)(w=>w(B).getBlocksByClientId(e)??EHe,[e]),i=(0,Wb.useSelect)(w=>w(uae.store).getShortcutRepresentation("core/editor/toggle-list-view"),[]),s=(0,Wb.useSelect)(w=>w(B).getSettings().__experimentalFeatures?.viewport,[]),a=(0,ns.useMemo)(()=>pU(s),[s]),l=(0,ns.useMemo)(()=>{if(n?.length===0)return{hideEverywhere:!1,viewportChecked:{}};let w={};return a.forEach(([,{key:k}])=>{w[k]=lae(n,k)}),{hideEverywhere:cae(n),viewportChecked:w}},[n,a]),[u,d]=(0,ns.useState)(l?.viewportChecked??{}),[f,p]=(0,ns.useState)(l?.hideEverywhere??!1),m=(0,ns.useCallback)((w,k)=>{d({...u,[w]:k})},[u]),g=(0,ns.useMemo)(()=>{if(!f)return(0,$r.sprintf)((0,$r.__)("Block visibility settings updated. You can access them via the List View (%s)."),i);let w=n?.length>1?(0,$r.__)("Blocks hidden. You can access them via the List View (%s)."):(0,$r.__)("Block hidden. You can access it via the List View (%s).");return(0,$r.sprintf)(w,i)},[f,n?.length,i]),h=(0,ns.useMemo)(()=>Object.values(u).some(w=>w===!0||w===null),[u]),b=(0,ns.useMemo)(()=>f!==l.hideEverywhere?!0:a.some(([,{key:w}])=>u[w]!==l.viewportChecked[w]),[f,u,l,a]),v=(0,ns.useMemo)(()=>f===null?!0:Object.values(u).some(w=>w===null),[f,u]),y=(0,ns.useCallback)(w=>{w.preventDefault();let k=f?!1:{viewport:a.reduce((S,[,{key:C}])=>(u[C]&&(S[C]=!1),S),{})},x=Object.fromEntries(n.map(({clientId:S,attributes:C})=>[S,{metadata:Xe({...C?.metadata,blockVisibility:k})}]));r(e,x,{uniqueByBlock:!0}),o(g,{id:f?"block-visibility-hidden":"block-visibility-viewports-updated",type:"snackbar"}),t()},[n,e,o,f,g,t,r,a,u]),_=n?.length>1;return(0,Nr.jsx)(is.Modal,{title:e?.length>1?(0,$r.__)("Hide blocks"):(0,$r.__)("Hide block"),onRequestClose:t,overlayClassName:"block-editor-block-visibility-modal",size:"small",children:(0,Nr.jsxs)("form",{onSubmit:y,children:[(0,Nr.jsxs)("fieldset",{children:[(0,Nr.jsx)("legend",{children:_?(0,$r.__)("Select the viewport sizes for which you want to hide the blocks. Changes will apply to all selected blocks."):(0,$r.__)("Select the viewport size for which you want to hide the block.")}),(0,Nr.jsx)("ul",{className:"block-editor-block-visibility-modal__options",children:(0,Nr.jsxs)("li",{className:"block-editor-block-visibility-modal__options-item block-editor-block-visibility-modal__options-item--everywhere",children:[(0,Nr.jsx)(is.CheckboxControl,{className:"block-editor-block-visibility-modal__options-checkbox--everywhere",label:(0,$r.__)("Omit from published content"),checked:f===!0,indeterminate:f===null,onChange:w=>{p(w),d(CHe)}}),f!==!0&&(0,Nr.jsx)("ul",{className:"block-editor-block-visibility-modal__sub-options",children:a.map(([,{label:w,icon:k,key:x}])=>(0,Nr.jsxs)("li",{className:"block-editor-block-visibility-modal__options-item",children:[(0,Nr.jsx)(is.CheckboxControl,{label:(0,$r.sprintf)((0,$r.__)("Hide on %s"),w),checked:u[x]??!1,indeterminate:u[x]===null,onChange:S=>m(x,S)}),(0,Nr.jsx)(is.Icon,{icon:k,className:$({"block-editor-block-visibility-modal__options-icon--checked":u[x]})})]},x))})]})}),_&&v&&(0,Nr.jsx)("p",{className:"block-editor-block-visibility-modal__description",children:(0,$r.__)("Selected blocks have different visibility settings. The checkboxes show an indeterminate state when settings differ.")}),!_&&f===!0&&(0,Nr.jsx)("p",{className:"block-editor-block-visibility-modal__description",children:(0,$r.sprintf)((0,$r.__)("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)}),!_&&!f&&h&&(0,Nr.jsx)("p",{className:"block-editor-block-visibility-modal__description",children:(0,ns.createInterpolateElement)((0,$r.sprintf)((0,$r.__)("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,Nr.jsx)("strong",{})})})]}),(0,Nr.jsxs)(is.Flex,{className:"block-editor-block-visibility-modal__actions",justify:"flex-end",expanded:!1,children:[(0,Nr.jsx)(is.FlexItem,{children:(0,Nr.jsx)(is.Button,{variant:"tertiary",onClick:t,__next40pxDefaultSize:!0,children:(0,$r.__)("Cancel")})}),(0,Nr.jsx)(is.FlexItem,{children:(0,Nr.jsx)(is.Button,{variant:"primary",type:"submit",disabled:!b,accessibleWhenDisabled:!0,__next40pxDefaultSize:!0,children:(0,$r.__)("Apply")})})]})]})})}var hU=c(ue(),1);var{getViewportBreakpoints:THe}=G(Lo);function ml({blockVisibility:e,deviceType:t="desktop",viewportSettings:o,view:r=window}={}){let n=THe(o),i=n.mobile?`(width <= ${n.mobile})`:void 0,s=(0,hU.useMediaQuery)(i,r),a;n.tablet&&(a=n.mobile?`(${n.mobile} < width <= ${n.tablet})`:`(width <= ${n.tablet})`);let l=(0,hU.useMediaQuery)(a,r),u;return t==="mobile"&&n.mobile?u="mobile":t==="tablet"&&n.tablet?u="tablet":s?u="mobile":l&&n.tablet?u="tablet":u="desktop",{isBlockCurrentlyHidden:e===!1||typeof e=="object"&&e?.viewport?.[u]===!1,currentViewport:u}}var bU=c(q(),1),VO=c(Y(),1),FO=c(F(),1);var fae=c(ce(),1),zO=c(te(),1);var yU=c(T(),1);function vU({clientIds:e}){let t=(0,FO.useRef)(!1),[o]=je("blockVisibility.allowEditing"),{canToggleBlockVisibility:r,areBlocksHiddenAnywhere:n}=(0,zO.useSelect)(a=>{let{getBlocksByClientId:l,getBlockName:u,isBlockHiddenAnywhere:d}=G(a(B));return{canToggleBlockVisibility:l(e).every(({clientId:p})=>(0,fae.hasBlockSupport)(u(p),"visibility",!0)),areBlocksHiddenAnywhere:e?.every(p=>d(p))}},[e]),i=(0,zO.useDispatch)(B);if((0,FO.useEffect)(()=>{n&&(t.current=!0)},[n]),o===!1||!n&&!t.current)return null;let{showViewportModal:s}=G(i);return(0,yU.jsx)(VO.ToolbarGroup,{className:"block-editor-block-visibility-toolbar",children:(0,yU.jsx)(VO.ToolbarButton,{disabled:!r,icon:n?kc:wb,label:n?(0,bU.__)("Hidden"):(0,bU.__)("Visible"),onClick:()=>s(e),"aria-haspopup":"dialog"})})}var _U=c(q(),1),pae=c(Y(),1),jO=c(te(),1),mae=c(pl(),1);var gae=c(T(),1);function wU({clientIds:e}){let[t]=je("blockVisibility.allowEditing"),{areBlocksHiddenAnywhere:o,shortcut:r}=(0,jO.useSelect)(s=>{let{isBlockHiddenAnywhere:a}=G(s(B));return{areBlocksHiddenAnywhere:e?.every(l=>a(l)),shortcut:s(mae.store).getShortcutRepresentation("core/block-editor/toggle-block-visibility")}},[e]),n=(0,jO.useDispatch)(B);if(t===!1)return null;let{showViewportModal:i}=G(n);return(0,gae.jsx)(pae.MenuItem,{onClick:()=>i(e),shortcut:r,children:o?(0,_U.__)("Show"):(0,_U.__)("Hide")})}var Zm=c(Y(),1),kU=c(te(),1),qm=c(q(),1);var sw=c(T(),1),{Badge:RHe}=G(Zm.privateApis),BHe={currentBlockVisibility:void 0,hasParentHiddenEverywhere:!1,selectedDeviceType:fn.desktop.key};function hae({clientId:e}){let{currentBlockVisibility:t,selectedDeviceType:o,viewportSettings:r,hasParentHiddenEverywhere:n}=(0,kU.useSelect)(p=>{if(!e)return BHe;let{getBlockAttributes:m,isBlockParentHiddenEverywhere:g,getSettings:h}=G(p(B)),b=h();return{currentBlockVisibility:m(e)?.metadata?.blockVisibility,selectedDeviceType:b?.[tl]?.toLowerCase()||fn.desktop.key,viewportSettings:b?.__experimentalFeatures?.viewport,hasParentHiddenEverywhere:g(e)}},[e]),s=Zt(e)?.ownerDocument?.defaultView,a=s===null?void 0:s,{isBlockCurrentlyHidden:l,currentViewport:u}=ml({blockVisibility:t,deviceType:o,viewportSettings:r,view:a}),d=(0,kU.useSelect)(p=>!e||!u?!1:G(p(B)).isBlockParentHiddenAtViewport(e,u),[e,u]);if(!(l||n||d))return null;let f;if(l)if(t===!1)f=(0,qm.__)("Block is hidden");else{let p=fn[u]?.label||u;f=(0,qm.sprintf)((0,qm.__)("Block is hidden on %s"),p)}if(n)f=(0,qm.__)("Parent block is hidden");else if(d){let p=fn[u]?.label||u;f=(0,qm.sprintf)((0,qm.__)("Parent block is hidden on %s"),p)}return(0,sw.jsx)(RHe,{className:"block-editor-block-visibility-info",children:(0,sw.jsxs)(Zm.__experimentalHStack,{spacing:2,justify:"start",children:[(0,sw.jsx)(Zm.Icon,{icon:kc}),(0,sw.jsx)(Zm.__experimentalText,{children:f})]})})}function IHe(e,t){let{insertBlocks:o}=(0,vae.useDispatch)(B);return(0,Gb.useRefEffect)(r=>{if(!t)return;function n(){r.removeEventListener("pointerdown",i,!0),r.removeEventListener("focusin",i,!0)}function i(){n(),o([t],void 0,e,!0,0)}return r.addEventListener("pointerdown",i,!0),r.addEventListener("focusin",i,!0),n},[t,e,o])}function f1(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:p,hasOverlay:m,initialPosition:g,blockEditingMode:h,isHighlighted:b,isMultiSelected:v,isPartiallySelected:y,isReusable:_,isDragging:w,hasChildSelected:k,isEditingDisabled:x,hasEditableOutline:S,isEditingContentOnlySection:C,defaultClassName:R,isSectionBlock:E,isWithinSectionBlock:I,canMove:O,blockVisibility:A,deviceType:P,viewportSettings:L,ariaLabel:H,ghostBlock:N,rootClientId:M}=(0,bae.useContext)(Tn),V=IHe(M,N);$se(o,n);let j=(0,Gb.useRefEffect)(oe=>{if(oe){let{ownerDocument:ie}=oe,{defaultView:se}=ie;j.current=se}},[]),D=(0,d1.sprintf)((0,d1.__)("Block: %s"),d),z=a==="html"&&!t?"-visual":"",W=sae(),ee=!I,J=(0,Gb.useMergeRefs)([e.ref,V,j,Nse({clientId:o,initialPosition:g}),jne(o),Vse(o),Zse({clientId:o,isSelected:f}),Dse({isEnabled:ee}),Jse(),TO({triggerAnimationOnChange:s,clientId:o}),(0,Gb.useDisabled)({isDisabled:!m}),DO({clientId:o,isEnabled:E}),eae({isSelected:f}),O?W:void 0]),U=kt(),Z=!!U[i_]?{"--wp-admin-theme-color":"var(--wp-block-synced-color)","--wp-admin-theme-color--rgb":"var(--wp-block-synced-color--rgb)"}:{},{isBlockCurrentlyHidden:K}=ml({blockVisibility:A,deviceType:P,viewportSettings:L,view:j.current});u<2&&o===U.clientId&&(0,_ae.default)(`Block type "${l}" must support API version 2 or higher to work correctly with "useBlockProps" method.`);let X=!1;return(n?.style?.marginTop?.charAt(0)==="-"||n?.style?.marginBottom?.charAt(0)==="-"||n?.style?.marginLeft?.charAt(0)==="-"||n?.style?.marginRight?.charAt(0)==="-")&&(X=!0),{tabIndex:h==="disabled"?-1:0,draggable:O&&!k?!0:void 0,...n,...e,ref:J,id:`block-${o}${z}`,role:"document","aria-label":H??(o===N?.clientId?(0,d1.__)("Add default block"):void 0)??e["aria-label"]??D,"data-block":o,"data-type":l,"data-title":d,inert:p?"true":void 0,className:$("block-editor-block-list__block",{"wp-block":!i,"has-block-overlay":m,"is-selected":f,"is-highlighted":b,"is-multi-selected":v,"is-partially-selected":y,"is-reusable":_,"is-dragging":w,"has-child-selected":k,"is-editing-disabled":x,"has-editable-outline":S,"has-negative-margin":X,"is-editing-content-only-section":C,"is-block-hidden":K},r,e.className,n.className,R),style:{...n.style,...e.style,...Z}}}f1.save=yae.__unstableGetBlockProps;var Yr=c(T(),1);function PHe(e,t){let o={...e,...t};return e?.hasOwnProperty("className")&&t?.hasOwnProperty("className")&&(o.className=$(e.className,t.className)),e?.hasOwnProperty("style")&&t?.hasOwnProperty("style")&&(o.style={...e.style,...t.style}),o}function HO({children:e,isHtml:t,...o}){return(0,Yr.jsx)("div",{...f1(o,{__unstableIsHtml:t}),children:e})}function xU({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:p,setAttributes:m,onReplace:g,onRemove:h,onInsertBlocksAfter:b,onMerge:v,toggleSelection:y}){let{mayDisplayControls:_,mayDisplayParentControls:w,isSelectionWithinCurrentSection:k,themeSupportsLayout:x,...S}=(0,Mf.useContext)(Tn),C=Ib()||{},R=(0,Yr.jsx)(b2,{name:u,isSelected:i,attributes:f,setAttributes:m,insertBlocksAfter:o?void 0:b,onReplace:r?g:void 0,onRemove:r?h:void 0,mergeBlocks:r?v:void 0,clientId:n,isSelectionEnabled:s,toggleSelection:y,__unstableLayoutClassNames:l,__unstableParentLayout:Object.keys(C).length?C:void 0,mayDisplayControls:_,mayDisplayParentControls:w,mayDisplayPatternEditingControls:k,blockEditingMode:S.blockEditingMode,isPreviewMode:S.isPreviewMode}),E=(0,Xt.getBlockType)(u);E?.getEditWrapperProps&&(p=PHe(p,E.getEditWrapperProps(f)));let I=p&&!!p["data-align"]&&!x,O=a?.includes("is-position-sticky");I&&(R=(0,Yr.jsx)("div",{className:$("wp-block",O&&a),"data-align":p["data-align"],children:R}));let A;if(d)t==="html"?A=(0,Yr.jsxs)(Yr.Fragment,{children:[(0,Yr.jsx)("div",{style:{display:"none"},children:R}),(0,Yr.jsx)(HO,{isHtml:!0,children:(0,Yr.jsx)(Bie,{clientId:n})})]}):E?.apiVersion>1?A=R:A=(0,Yr.jsx)(HO,{children:R});else{let N=e?(0,Xt.serializeRawBlock)(e):(0,Xt.getSaveContent)(E,f);A=(0,Yr.jsxs)(HO,{className:"has-warning",children:[(0,Yr.jsx)(tie,{clientId:n}),(0,Yr.jsx)(Mf.RawHTML,{children:(0,kae.safeHTML)(N)})]})}let{"data-align":P,...L}=p??{},H={...L,className:$(L.className,P&&x&&`align${P}`,!(P&&O)&&a)};return(0,Yr.jsx)(Tn.Provider,{value:{wrapperProps:H,isAligned:I,isSelectionWithinCurrentSection:k,...S},children:(0,Yr.jsx)(sie,{fallback:(0,Yr.jsx)(HO,{className:"has-warning",children:(0,Yr.jsx)(nie,{})}),children:A})})}var OHe=(0,UO.withDispatch)((e,t,o)=>{let{updateBlockAttributes:r,insertBlocks:n,mergeBlocks:i,replaceBlocks:s,toggleSelection:a,__unstableMarkLastChangeAsPersistent:l,moveBlocksToPosition:u,removeBlock:d,selectBlock:f}=e(B);return{setAttributes(p){let{getMultiSelectedBlockClientIds:m}=o.select(B),g=m(),{clientId:h,attributes:b}=t,v=g.length?g:[h],y=typeof p=="function"?p(b):p;r(v,y)},onInsertBlocks(p,m){let{rootClientId:g}=t;n(p,m,g)},onInsertBlocksAfter(p){let{clientId:m,rootClientId:g}=t,{getBlockIndex:h}=o.select(B),b=h(m);n(p,b+1,g)},onMerge(p){let{clientId:m,rootClientId:g}=t,{getPreviousBlockClientId:h,getNextBlockClientId:b,getBlock:v,getBlockAttributes:y,getBlockName:_,getBlockOrder:w,getBlockIndex:k,getBlockRootClientId:x,canInsertBlockType:S}=o.select(B);function C(){let E=v(m),I=(0,Xt.getDefaultBlockName)(),O=(0,Xt.getBlockType)(I);if(_(m)!==I){let A=(0,Xt.switchToBlockType)(E,I);A&&A.length&&s(m,A)}else if((0,Xt.isUnmodifiedDefaultBlock)(E)){let A=b(m);A&&o.batch(()=>{d(m),f(A)})}else if(O.merge){let A=O.merge({},E.attributes);s([m],[(0,Xt.createBlock)(I,A)])}}function R(E,I=!0){let O=_(E),P=(0,Xt.getBlockType)(O).category==="text",L=x(E),H=w(E),[N]=H;H.length===1&&(0,Xt.isUnmodifiedBlock)(v(N),"content")?d(E):P?o.batch(()=>{if(S(_(N),L))u([N],E,L,k(E));else{let M=(0,Xt.switchToBlockType)(v(N),(0,Xt.getDefaultBlockName)());M&&M.length&&M.every(V=>S(V.name,L))?(n(M,k(E),L,I),d(N,!1)):C()}!w(E).length&&(0,Xt.isUnmodifiedBlock)(v(E),"content")&&d(E,!1)}):C()}if(p){if(g){let I=b(g);if(I)if(_(g)===_(I)){let O=y(g),A=y(I);if(Object.keys(O).every(P=>O[P]===A[P])){o.batch(()=>{u(w(I),I,g),d(I,!1)});return}}else{i(g,I);return}}let E=b(m);if(!E)return;if((0,Xt.isUnmodifiedDefaultBlock)(v(m))){let I=E;for(;w(I).length;)I=w(I)[0];o.batch(()=>{d(m),f(I)})}else w(E).length?R(E,!1):i(m,E)}else{let E=h(m);if(E)i(E,m);else if(g){let I=h(g);if(I&&_(g)===_(I)){let O=y(g),A=y(I);if(Object.keys(O).every(P=>O[P]===A[P])){o.batch(()=>{u(w(g),g,I),d(g,!1)});return}}R(g)}else C()}},onReplace(p,m,g){p.length&&!(0,Xt.isUnmodifiedDefaultBlock)(p[p.length-1])&&l();let h=p?.length===1&&Array.isArray(p[0])?p[0]:p;s([t.clientId],h,m,g)},onRemove(){d(t.clientId)},toggleSelection(p){a(p)}}});xU=(0,WO.compose)(OHe,(0,wae.withFilters)("editor.BlockListBlock"))(xU);function AHe(e){let{clientId:t,rootClientId:o,ghostBlock:r}=e,n=(0,Mf.useMemo)(()=>r?{clientId:r.clientId,name:r.name,isValid:!0}:void 0,[r]),i=(0,UO.useSelect)(pe=>{let{isBlockSelected:ke,getBlockMode:ye,isSelectionEnabled:Pe,getTemplateLock:_e,isSectionBlock:ve,getParentSectionBlock:Se,getBlockWithoutAttributes:fe,getBlockAttributes:Ce,canRemoveBlock:ne,canMoveBlock:ae,getSettings:Ee,getEditedContentOnlySection:he,getBlockEditingMode:Ae,getBlockName:et,isFirstMultiSelectedBlock:Je,getMultiSelectedBlockClientIds:_t,hasSelectedInnerBlock:Et,getBlocksByName:mt,getBlockIndex:oo,isBlockMultiSelected:Tt,isBlockSubtreeDisabled:Rt,isBlockHighlighted:Bt,__unstableIsFullySelected:gt,__unstableSelectionHasUnmergeableBlock:He,isBlockBeingDragged:we,isDragging:Me,__unstableHasActiveBlockOverlayActive:ge,getSelectedBlocksInitialCaretPosition:Re}=G(pe(B)),Ie=fe(t)??(t===n?.clientId?n:void 0);if(!Ie)return;let{hasBlockSupport:at,getActiveBlockVariation:Qe}=pe(Xt.store),po=Ce(t)??r?.attributes,{name:ro,isValid:vo}=Ie,Kt=(0,Xt.getBlockType)(ro),_o=Ee(),{supportsLayout:Cn,isPreviewMode:it,__experimentalBlockBindingsSupportedAttributes:Dt}=_o,Ir=Dt?.[ro],mr=po?.metadata?.blockVisibility,Wr=_o?.[tl]?.toLowerCase()||"desktop",Pr=_o?.__experimentalFeatures?.viewport,dn=Kt?.apiVersion>1,Bi=Tt(t),Be=Ae(t),Ht={isPreviewMode:it,blockWithoutAttributes:Ie,name:ro,attributes:po,isValid:vo,themeSupportsLayout:Cn,index:oo(t),isReusable:(0,Xt.isReusableBlock)(Kt),className:dn?po.className:void 0,defaultClassName:dn?(0,Xt.getBlockDefaultClassName)(ro):void 0,blockTitle:Kt?.title,bindableAttributes:Ir,blockVisibility:mr,deviceType:Wr,viewportSettings:Pr,isMultiSelected:Bi,blockEditingMode:Be,isEditingDisabled:Be==="disabled"};if(it)return Ht;let lt=ke(t),no=ne(t),Or=ae(t),rr=Qe(ro,po),ii=!0,cf=Et(t,ii),Qa=ve(t),vc=Qa?t:Se(t),E0=ke(vc)||!!vc&&Et(vc,ii),ob=(0,Xt.hasBlockSupport)(ro,"multiple",!0)?[]:mt(ro),t_=ob.length&&ob[0]!==t;return{...Ht,mode:ye(t),isSelectionEnabled:Pe(),isLocked:!!_e(o),isSectionBlock:Qa,isWithinSectionBlock:!!vc,isSelectionWithinCurrentSection:E0,blockType:Kt,canRemove:no,canMove:Or,isSelected:lt,isEditingContentOnlySection:he()===t,blockEditingMode:Be,mayDisplayControls:lt||Je(t)&&_t().every(rb=>et(rb)===ro),mayDisplayParentControls:at(et(t),"__experimentalExposeControlsToChildren",!1)&&Et(t),blockApiVersion:Kt?.apiVersion||1,blockTitle:rr?.title||Kt?.title,isSubtreeDisabled:Be==="disabled"&&Rt(t),hasOverlay:ge(t)&&!Me(),initialPosition:lt?Re():void 0,isHighlighted:Bt(t),isMultiSelected:Bi,isPartiallySelected:Bi&&!gt()&&!He(),isDragging:we(t),hasChildSelected:cf,isEditingDisabled:Be==="disabled",hasEditableOutline:Be!=="disabled"&&Ae(o)==="disabled",originalBlockClientId:t_?ob[0]:!1,blockVisibility:mr,deviceType:Wr,viewportSettings:Pr,supportsSplitting:(0,Xt.hasBlockSupport)(ro,"splitting",!1)}},[t,o,r,n]),s=(0,WO.useRefEffect)(pe=>{if(pe){let{ownerDocument:ke}=pe,{defaultView:ye}=ke;s.current=ye}},[]),{isBlockCurrentlyHidden:a}=ml({blockVisibility:i?.blockVisibility,deviceType:i?.deviceType,viewportSettings:i?.viewportSettings,view:s.current}),l=(0,Mf.useMemo)(()=>({...i?.blockWithoutAttributes,attributes:i?.attributes}),[i?.blockWithoutAttributes,i?.attributes]);if(!i)return null;let{isPreviewMode:u,mode:d="visual",isSelectionEnabled:f=!1,isLocked:p=!1,canRemove:m=!1,canMove:g=!1,name:h,attributes:b,isValid:v,isSelected:y=!1,themeSupportsLayout:_,isEditingContentOnlySection:w,blockEditingMode:k,mayDisplayControls:x,mayDisplayParentControls:S,index:C,blockApiVersion:R,blockType:E,blockTitle:I,isSubtreeDisabled:O,hasOverlay:A,initialPosition:P,isHighlighted:L,isMultiSelected:H,isPartiallySelected:N,isReusable:M,isDragging:V,hasChildSelected:j,isSectionBlock:D,isWithinSectionBlock:z,isSelectionWithinCurrentSection:W,isEditingDisabled:ee,hasEditableOutline:J,className:U,defaultClassName:Q,originalBlockClientId:Z,bindableAttributes:K,blockVisibility:X,deviceType:oe,viewportSettings:ie,supportsSplitting:se}=i,be={isPreviewMode:u,ghostBlock:r,rootClientId:o,clientId:t,className:U,index:C,mode:d,name:h,blockApiVersion:R,blockType:E,blockTitle:I,isSelected:y,isSubtreeDisabled:O,hasOverlay:A,initialPosition:P,blockEditingMode:k,isHighlighted:L,isMultiSelected:H,isPartiallySelected:N,isReusable:M,isDragging:V,hasChildSelected:j,isSectionBlock:D,isWithinSectionBlock:z,isSelectionWithinCurrentSection:W,isEditingDisabled:ee,hasEditableOutline:J,isEditingContentOnlySection:w,defaultClassName:Q,mayDisplayControls:x,mayDisplayParentControls:S,originalBlockClientId:Z,themeSupportsLayout:_,canMove:g,isBlockCurrentlyHidden:a,bindableAttributes:K,blockVisibility:X,deviceType:oe,viewportSettings:ie,supportsSplitting:se};return a&&!y&&!H&&!j?null:(0,Yr.jsx)(Tn.Provider,{value:be,children:(0,Yr.jsx)(xU,{...e,mode:d,isSelectionEnabled:f,isLocked:p,canRemove:m,canMove:g,block:l,name:h,attributes:b,isValid:v,isSelected:y})})}var GO=(0,Mf.memo)(AHe);var uq=c(te(),1),Rxe=c(ce(),1);var lq=c(q(),1),xxe=c(Sae(),1),s5=c(te(),1),a5=c(wo(),1);var kxe=c(Yo(),1),rp=c(q(),1),i5=c(Y(),1),rx=c(te(),1),Dy=c(ce(),1),aq=c(F(),1);var go=c(F(),1),e5=c(Y(),1);var ipe=c(F(),1);var $b=c(re(),1);function Nf({controlled:e,default:t,name:o,state:r="value"}){let{current:n}=$b.useRef(e!==void 0),[i,s]=$b.useState(t),a=n?e:i,l=$b.useCallback(u=>{n||s(u)},[]);return[a,l]}var MHe=c(re(),1),p1={...MHe};var Eae=c(re(),1),Cae={};function eo(e,t){let o=Eae.useRef(Cae);return o.current===Cae&&(o.current=e(t)),o}var SU=p1.useInsertionEffect,NHe=SU&&SU!==p1.useLayoutEffect?SU:e=>e();function de(e){let t=eo(LHe).current;return t.next=e,NHe(t.effect),t.trampoline}function LHe(){let e={next:void 0,callback:DHe,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function DHe(){}var Lf=c(re(),1);var Tae=c(re(),1),VHe=()=>{},le=typeof document<"u"?Tae.useLayoutEffect:VHe;var $O=c(re(),1),CU=$O.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function Rae(){return $O.useContext(CU)}var Bae=c(T(),1);function aw(e){let{children:t,elementsRef:o,labelsRef:r,onMapChange:n}=e,i=de(n),[,s]=Lf.useState(!1),a=eo(zHe).current,l=eo(FHe).current,u=Lf.useRef(0),d=Lf.useRef(!0),f=Lf.useRef([]),p=Lf.useRef(null),m=de(()=>{d.current||(d.current=!0,s(k=>!k))}),g=de((k,x)=>{l.set(k,x),m()}),h=de(k=>{l.delete(k),m()}),b=de(k=>{let x=new Map;return o.current.length=0,r&&(r.current.length=0),k.forEach(S=>{x.set(S.element,{...S.registration.metadata??{},index:S.index}),o.current[S.index]=S.element,r&&(r.current[S.index]=S.registration.label!==void 0?S.registration.label:S.registration.textRef?.current?.textContent??S.element.textContent)}),u.current=o.current.length,x});function v(k){if(p.current?.disconnect(),p.current=null,typeof MutationObserver!="function"||k.length<2)return;let x=new MutationObserver(C=>{if(!UHe(C))return;let R=null;for(let E of k)if(E.isConnected){if(R&&Iae(R,E)>0){x.disconnect(),m();return}R=E}});p.current=x;let S=new Set;for(let C=1;C<k.length;C+=1){let R=HHe(k[C-1],k[C]);R&&S.add(R)}S.forEach(C=>x.observe(C,{childList:!0}))}let y=de(()=>{let[k,x]=jHe(l),S=b(k);v(x),f.current=k,d.current=!1,a.forEach(C=>C(S)),i(S)});le(()=>(d.current||b(f.current),()=>{o.current=[],r&&(r.current=[])}),[o,r,b]),le(()=>{d.current&&y()}),le(()=>()=>{p.current?.disconnect(),d.current=!0},[]);let _=de(k=>(a.add(k),()=>{a.delete(k)})),w=Lf.useMemo(()=>({register:g,unregister:h,subscribeMapChange:_,nextIndexRef:u}),[g,h,_,u]);return(0,Bae.jsx)(CU.Provider,{value:w,children:t})}function FHe(){return new Map}function zHe(){return new Set}function jHe(e){let t=new Set,o=[],r=[];e.forEach((i,s)=>{if(!s.isConnected)return;let a=i.index,l={index:a??-1,element:s,registration:i};a===null?r.push(l):a>=0&&(t.add(a),o.push(l))});let n=0;return r.sort((i,s)=>Iae(i.element,s.element)),r.forEach(i=>{for(;t.has(n);)n+=1;i.index=n,o.push(i),n+=1}),t.size>0&&o.sort((i,s)=>i.index-s.index),[o,r.map(i=>i.element)]}function HHe(e,t){let o=e.parentElement;for(;o&&!o.contains(t);)o=o.parentElement;return o}function UHe(e){for(let t of e)for(let o=0;o<t.removedNodes.length;o+=1)if(t.removedNodes[o].isConnected)return!0;return!1}function Iae(e,t){return e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}function WHe(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 GHe=WHe("https://base-ui.com/production-error","Base UI"),Ut=GHe;var Yb=c(re(),1);function Fs(e,t,o,r){let n=eo(Oae).current;return $He(n,e,t,o,r)&&Aae(n,[e,t,o,r]),n.callback}function Pae(e){let t=eo(Oae).current;return YHe(t,e)&&Aae(t,e),t.callback}function Oae(){return{callback:null,cleanup:null,refs:[]}}function $He(e,t,o,r,n){return e.refs[0]!==t||e.refs[1]!==o||e.refs[2]!==r||e.refs[3]!==n}function YHe(e,t){return e.refs.length!==t.length||e.refs.some((o,r)=>o!==t[r])}function Aae(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 Nae=c(re(),1);var Mae=c(re(),1),KHe=parseInt(Mae.version,10);function lw(e){return KHe>=e}function EU(e){if(!Nae.isValidElement(e))return null;let t=e,o=t.props;return(lw(19)?o?.ref:t.ref)??null}function m1(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function At(){}var gl=Object.freeze([]),Wt=Object.freeze({});function Lae(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 Dae(e,t){return typeof e=="function"?e(t):e}function YO(e,t){return typeof e=="function"?e(t):e}var TU={};function zt(e,t,o,r,n){if(!o&&!r&&!n&&!e)return KO(t);let i=KO(e);return t&&(i=g1(i,t)),o&&(i=g1(i,o)),r&&(i=g1(i,r)),n&&(i=g1(i,n)),i}function Vae(e){if(e.length===0)return TU;if(e.length===1)return KO(e[0]);let t=KO(e[0]);for(let o=1;o<e.length;o+=1)t=g1(t,e[o]);return t}function KO(e){return RU(e)?{...zae(e,TU)}:qHe(e)}function g1(e,t){return RU(t)?zae(t,e):ZHe(e,t)}function qHe(e){let t={...e};for(let o in t){let r=t[o];Fae(o,r)&&(t[o]=jae(r))}return t}function ZHe(e,t){if(!t)return e;for(let o in t){let r=t[o];switch(o){case"style":{e[o]=m1(e.style,r);break}case"className":{e[o]=BU(e.className,r);break}default:Fae(o,r)?e[o]=XHe(e[o],r):e[o]=r}}return e}function Fae(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 RU(e){return typeof e=="function"}function zae(e,t){return RU(e)?e(t):e??TU}function XHe(e,t){return t?e?(...o)=>{let r=o[0];if(Hae(r)){let i=r;h1(i);let s=t(...o);return i.baseUIHandlerPrevented||e?.(...o),s}let n=t(...o);return e?.(...o),n}:jae(t):e}function jae(e){return e&&((...t)=>{let o=t[0];return Hae(o)&&h1(o),e(...t)})}function h1(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function BU(e,t){return t?e?t+" "+e:t:e}function Hae(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}var IU=c(re(),1);function De(e,t,o={}){let r=t.render,n=QHe(t,o);if(o.enabled===!1)return null;let i=o.state??Wt;return tUe(e,r,n,i)}function QHe(e,t={}){let{className:o,style:r,render:n}=e,{state:i=Wt,ref:s,props:a,stateAttributesMapping:l,enabled:u=!0}=t,d=u?Dae(o,i):void 0,f=u?YO(r,i):void 0,p=u?Lae(i,l):Wt,m=u&&a?JHe(a):void 0,g=u?m1(p,m)??{}:Wt;return typeof document<"u"&&(u?Array.isArray(s)?g.ref=Pae([g.ref,EU(n),...s]):g.ref=Fs(g.ref,EU(n),s):Fs(null,null)),u?(d!==void 0&&(g.className=BU(g.className,d)),f!==void 0&&(g.style=m1(g.style,f)),g):Wt}function JHe(e){return Array.isArray(e)?Vae(e):zt(void 0,e)}var eUe=Symbol.for("react.lazy");function tUe(e,t,o,r){if(t){if(typeof t=="function")return t(o,r);let n=zt(o,t.props);n.ref=o.ref;let i=t;return i?.$$typeof===eUe&&(i=Yb.Children.toArray(t)[0]),Yb.cloneElement(i,n)}if(e&&typeof e=="string")return oUe(e,o);throw new Error(Ut(8))}function oUe(e,t){return e==="button"?(0,IU.createElement)("button",{type:"button",...t,key:t.key}):e==="img"?(0,IU.createElement)("img",{alt:"",...t,key:t.key}):Yb.createElement(e,t)}var qO=c(re(),1);var Uae=0;function rUe(e,t="mui"){let[o,r]=qO.useState(e),n=e||o;return qO.useEffect(()=>{o==null&&(Uae+=1,r(`${t}-${Uae}`))},[o,t]),n}var Wae=p1.useId;function Xm(e,t){if(Wae!==void 0){let o=Wae();return e??(t?`${t}-${o}`:o)}return rUe(e,t)}function pn(e){return Xm(e,"base-ui")}var QO=c(re(),1);var Te={};No(Te,{cancelOpen:()=>PUe,chipRemovePress:()=>pUe,clearPress:()=>fUe,closePress:()=>uUe,closeWatcher:()=>SUe,decrementPress:()=>hUe,disabled:()=>AUe,drag:()=>RUe,escapeKey:()=>xUe,focusOut:()=>kUe,imperativeAction:()=>LUe,incrementPress:()=>gUe,initial:()=>NUe,inputBlur:()=>vUe,inputChange:()=>bUe,inputClear:()=>yUe,inputPaste:()=>_Ue,inputPress:()=>wUe,itemPress:()=>cUe,keyboard:()=>EUe,linkPress:()=>dUe,listNavigation:()=>CUe,missing:()=>MUe,none:()=>nUe,outsidePress:()=>lUe,pointer:()=>TUe,scrub:()=>IUe,siblingOpen:()=>OUe,swipe:()=>DUe,trackPress:()=>mUe,triggerFocus:()=>aUe,triggerHover:()=>sUe,triggerPress:()=>iUe,wheel:()=>BUe,windowResize:()=>VUe});var nUe="none",iUe="trigger-press",sUe="trigger-hover",aUe="trigger-focus",lUe="outside-press",cUe="item-press",uUe="close-press",dUe="link-press",fUe="clear-press",pUe="chip-remove-press",mUe="track-press",gUe="increment-press",hUe="decrement-press",bUe="input-change",yUe="input-clear",vUe="input-blur",_Ue="input-paste",wUe="input-press",kUe="focus-out",xUe="escape-key",SUe="close-watcher",CUe="list-navigation",EUe="keyboard",TUe="pointer",RUe="drag",BUe="wheel",IUe="scrub",PUe="cancel-open",OUe="sibling-open",AUe="disabled",MUe="missing",NUe="initial",LUe="imperative-action",DUe="swipe",VUe="window-resize";function $e(e,t,o,r){let n=!1,i=!1,s=r??Wt;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 OU=c(re(),1);var Gae=c(re(),1);function cw(e){Gae.useEffect(e,gl)}var ZO=null,c1t=globalThis.requestAnimationFrame,PU=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)}},XO=new PU;var di=class e{static create(){return new e}static request(t){return XO.request(t)}static cancel(t){return XO.cancel(t)}currentId=ZO;request(t){this.cancel(),this.currentId=XO.request(()=>{this.currentId=ZO,t()})}cancel=()=>{this.currentId!==ZO&&(XO.cancel(this.currentId),this.currentId=ZO)};disposeEffect=()=>this.cancel};function ss(){let e=eo(di.create).current;return cw(e.disposeEffect),e}function Pi(e,t=!1,o=!1){let[r,n]=OU.useState(e&&t?"idle":void 0),[i,s]=OU.useState(e);return e&&!i&&(s(!0),n("starting")),!e&&i&&r!=="ending"&&!o&&n("ending"),!e&&!i&&r==="ending"&&n(void 0),le(()=>{if(!e&&i&&r!=="ending"&&o){let a=di.request(()=>{n("ending")});return()=>{di.cancel(a)}}},[e,i,r,o]),le(()=>{if(!e||t)return;let a=di.request(()=>{n(void 0)});return()=>{di.cancel(a)}},[t,e]),le(()=>{if(!e||!t)return;e&&i&&r!=="idle"&&n("starting");let a=di.request(()=>{n("idle")});return()=>{di.cancel(a)}},[t,e,i,r]),{mounted:i,setMounted:s,transitionStatus:r}}function $ae(e){let{open:t,defaultOpen:o,onOpenChange:r,disabled:n}=e,[i,s]=Nf({controlled:t,default:o,name:"Collapsible",state:"open"}),{mounted:a,setMounted:l,transitionStatus:u}=Pi(i,!0,!0),d=pn(),[f,p]=QO.useState(),m=f===null?void 0:f??d,g=de(h=>{let b=!i,v=$e(Te.triggerPress,h.nativeEvent);r(b,v),!v.isCanceled&&s(b)});return QO.useMemo(()=>({defaultPanelId:d,disabled:n,handleTrigger:g,mounted:a,open:i,panelId:m,setMounted:l,setOpen:s,setPanelIdState:p,transitionStatus:u}),[d,n,g,a,i,m,l,s,p,u])}var JO=c(re(),1),AU=JO.createContext(void 0);function eA(){let e=JO.useContext(AU);if(e===void 0)throw new Error(Ut(15));return e}var Kb=c(re(),1);function uw(e={}){let{guess:t,label:o,metadata:r,textRef:n,index:i}=e,{register:s,unregister:a,subscribeMapChange:l,nextIndexRef:u}=Rae(),d=Kb.useRef(-1),[f,p]=Kb.useState(i==null&&t?()=>{if(d.current===-1){let b=u.current;u.current+=1,d.current=b}return d.current}:-1),m=i??f,g=Kb.useRef(null),h=Kb.useCallback(b=>{let v=g.current;v&&a(v),g.current=b,b&&s(b,{metadata:r??null,index:i??null,label:o,textRef:n})},[i,s,a,r,o,n]);return le(()=>{if(i==null)return l(b=>{let v=g.current?b.get(g.current)?.index:null;v!=null&&p(v)})},[i,l]),{ref:h,index:m}}var dw=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({}),FUe={"data-starting-style":""},zUe={"data-ending-style":""},Un={transitionStatus(e){return e==="starting"?FUe:e==="ending"?zUe:null}};var b1=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=dw.startingStyle]="startingStyle",e[e.endingStyle=dw.endingStyle]="endingStyle",e})({});var Yae=(function(e){return e.panelOpen="data-panel-open",e})({});var jUe={[b1.open]:""},HUe={[b1.closed]:""},Kae={open(e){return e?{[Yae.panelOpen]:""}:null}},qae={open(e){return e?jUe:HUe}};var pw=c(re(),1);function tA(){return typeof window<"u"}function Kr(e){return oA(e)?(e.nodeName||"").toLowerCase():"#document"}function St(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ju(e){var t;return(t=(oA(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function oA(e){return tA()?e instanceof Node||e instanceof St(e).Node:!1}function ct(e){return tA()?e instanceof Element||e instanceof St(e).Element:!1}function Ct(e){return tA()?e instanceof HTMLElement||e instanceof St(e).HTMLElement:!1}function Xu(e){return!tA()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof St(e).ShadowRoot}function Zb(e){let{overflow:t,overflowX:o,overflowY:r,display:n}=Pn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+o)&&n!=="inline"&&n!=="contents"}function Zae(e){return/^(table|td|th)$/.test(Kr(e))}function y1(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var UUe=/transform|translate|scale|rotate|perspective|filter/,WUe=/paint|layout|strict|content/,qb=e=>!!e&&e!=="none",MU;function rA(e){let t=ct(e)?Pn(e):e;return qb(t.transform)||qb(t.translate)||qb(t.scale)||qb(t.rotate)||qb(t.perspective)||!nA()&&(qb(t.backdropFilter)||qb(t.filter))||UUe.test(t.willChange||"")||WUe.test(t.contain||"")}function Xae(e){let t=Qu(e);for(;Ct(t)&&!ed(t);){if(rA(t))return t;if(y1(t))return null;t=Qu(t)}return null}function nA(){return MU==null&&(MU=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),MU}function ed(e){return/^(html|body|#document)$/.test(Kr(e))}function Pn(e){return St(e).getComputedStyle(e)}function v1(e){return ct(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Qu(e){if(Kr(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Xu(e)&&e.host||Ju(e);return Xu(t)?t.host:t}function Qae(e){let t=Qu(e);return ed(t)?(e.ownerDocument||e).body:Ct(t)&&Zb(t)?t:Qae(t)}function Qm(e,t,o){var r;t===void 0&&(t=[]),o===void 0&&(o=!0);let n=Qae(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),s=St(n);if(i){let a=iA(s);return t.concat(s,s.visualViewport||[],Zb(n)?n:[],a&&o?Qm(a):[])}else return t.concat(n,Qm(n,[],o))}function iA(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var sA=c(re(),1),NU=sA.createContext(void 0);function fw(e=!1){let t=sA.useContext(NU);if(t===void 0&&!e)throw new Error(Ut(16));return t}var Jae=c(re(),1);function ele(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:Jae.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 ot(e){return e?.ownerDocument||document}function aA(e,t,{detail:o=0}={}){e.dispatchEvent(new(St(e)).PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:o,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function Oc(e={}){let{disabled:t=!1,focusableWhenDisabled:o,tabIndex:r=0,native:n=!0,composite:i}=e,s=pw.useRef(null),a=fw(!0),l=i??a!==void 0,{props:u}=ele({focusableWhenDisabled:o,disabled:t,composite:l,tabIndex:r,isNativeButton:n}),d=pw.useCallback(()=>{let m=s.current;LU(m)&&l&&t&&u.disabled===void 0&&m.disabled&&(m.disabled=!1)},[t,u.disabled,l]);le(d,[d]);let f=pw.useCallback((m={})=>{let{onClick:g,onMouseDown:h,onKeyUp:b,onKeyDown:v,onPointerDown:y,..._}=m;return zt({onClick(w){if(t){w.preventDefault();return}g?.(w)},onMouseDown(w){t||h?.(w)},onKeyDown(w){if(t||(h1(w),v?.(w),w.baseUIHandlerPrevented))return;let k=w.target===w.currentTarget,x=w.currentTarget,S=LU(x),C=!n&&GUe(x),R=k&&(n?S:!C),E=w.key==="Enter",I=w.key===" ",O=x.getAttribute("role"),A=O?.startsWith("menuitem")||O==="option"||O==="gridcell";if(k&&l&&I){if(w.defaultPrevented&&A)return;w.preventDefault(),(!n||S)&&(w.preventBaseUIHandler(),aA(x,w));return}if(!R||n||!I&&!E){k&&C&&I&&w.preventDefault();return}w.defaultPrevented||(w.preventDefault(),E&&(w.preventBaseUIHandler(),aA(x,w)))},onKeyUp(w){if(!t){if(h1(w),b?.(w),w.target===w.currentTarget&&n&&l&&LU(w.currentTarget)&&w.key===" "){w.preventDefault();return}w.baseUIHandlerPrevented||w.target===w.currentTarget&&!n&&!l&&!w.defaultPrevented&&w.key===" "&&(w.preventBaseUIHandler(),aA(w.currentTarget,w))}},onPointerDown(w){if(t){w.preventDefault();return}y?.(w)}},n?{type:"button"}:{role:"button"},u,_)},[t,u,l,n]),p=de(m=>{s.current=m,d()});return{getButtonProps:f,buttonRef:p}}function LU(e){return Ct(e)&&e.tagName==="BUTTON"}function GUe(e){return Ct(e)&&e.tagName==="A"&&!!e.href}var as=c(re(),1);function ut(e,t,o,r){return e.addEventListener(t,o,r),()=>{e.removeEventListener(t,o,r)}}function so(e){let t=eo($Ue,e).current;return t.next=e,le(t.effect),t}function $Ue(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var ole=c(re(),1);var tle=c(Of(),1);function Ac(e){return e==null?e:"current"in e?e.current:e}function Jm(e,t=!1){let o=ss();return de((r,n=null)=>{o.cancel();let i=Ac(e);if(i==null)return;let s=i,a=()=>{tle.flushSync(r)};if(typeof s.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){r();return}function l(){Promise.all(s.getAnimations().map(u=>u.finished)).then(()=>{n?.aborted||a()},()=>{if(n?.aborted)return;if(s.getAnimations().some(d=>d.pending||d.playState!=="finished")){l();return}a()})}if(t){let u="data-starting-style";if(!s.hasAttribute(u)){o.request(l);return}let d=new MutationObserver(()=>{s.hasAttribute(u)||(d.disconnect(),l())});d.observe(s,{attributes:!0,attributeFilter:[u]}),n?.addEventListener("abort",()=>d.disconnect(),{once:!0});return}o.request(l)})}function Wn(e){let{enabled:t=!0,open:o,ref:r,onComplete:n}=e,i=de(n),s=Jm(r,o);ole.useEffect(()=>{if(!t)return;let a=new AbortController;return s(i,a.signal),()=>{a.abort()}},[t,o,i,s])}var _1={height:void 0,width:void 0};function nle(e){let{externalRef:t,hiddenUntilFound:o,id:r,keepMounted:n,mounted:i,onOpenChange:s,open:a,setMounted:l,setOpen:u,transitionStatus:d}=e,f=as.useRef(null),p=as.useRef(null),[m,g]=as.useState(_1),h=as.useRef(_1),b=as.useRef(!1),v=as.useRef(a),y=as.useRef(!1),[_,w]=as.useState(!1),k=as.useRef(null),x=Fs(t,f),S=so(a),C=Jm(f),R=!a&&!i,E=_?"idle":d,I=a&&(v.current||y.current),O=!a&&i&&p.current==="css-animation"&&m.height===void 0&&m.width===void 0?h.current:m,A=o&&R&&p.current!=="css-animation",P=de((V,j=!0)=>{j&&(h.current=V),g(V)}),L=de(()=>{k.current?.(),k.current=null}),H=de(V=>{L(),k.current=()=>{k.current=null,V()}}),N=de(()=>{a&&i&&p.current==="css-animation"&&(y.current=!0)});le(()=>{!_||d==="starting"||w(!1)},[_,d]),as.useEffect(()=>()=>{N(),L()},[N,L]),le(()=>{let V=f.current;if(!V)return;!a&&k.current&&L();let j=YUe(V,I);if(p.current=j,a&&d==="idle"&&v.current&&j==="css-animation"){h.current=mw(V);return}if(a&&d==="starting"){let W=b.current;if(b.current=!1,j==="none"){P(mw(V)),w(!0);return}if(j==="css-transition"){let U=KUe(V);if(P(mw(V)),!W)return U;let Q=lA(V,"transition-duration","0s");return H(Q),w(!0),U}P(mw(V));let ee=lA(V,"animation-name","none");if(!W){ee();return}let J=lA(V,"animation-duration","0s");ee(),H(J),w(!0);return}if(!a&&i&&(d==="idle"||d==="starting")){if(v.current=!1,y.current=!1,j==="none"){P(_1,!1),l(!1);return}P(mw(V));return}if(d!=="ending")return;if(j==="none"){l(!1);return}let D=mw(V);if(!(D.height>0||D.width>0)){l(!1);return}P(D),j==="css-animation"&&lA(V,"animation-name","none")()},[i,a,L,P,l,H,I,d]),Wn({enabled:a&&i&&E==="idle",open:!0,ref:f,onComplete(){a&&P(_1,!1)}}),as.useEffect(()=>{if(a||!i||E!=="ending"||!f.current)return;let j=new AbortController,D=-1;function z(){S.current||(l(!1),P(_1,!1))}return D=di.request(()=>{C(z,j.signal)}),()=>{di.cancel(D),j.abort()}},[S,i,a,E,C,P,l]),le(()=>{let V=f.current;!V||!o||!R||V.setAttribute("hidden","until-found")},[R,o]),as.useEffect(function(){let j=f.current;if(!j)return;function D(z){let W=$e(Te.none,z);s(!0,W),!W.isCanceled&&(b.current=!0,u(!0))}return ut(j,"beforematch",D)},[s,u]);let M=n||o||i||a;return{height:O.height,props:{...A?{[b1.startingStyle]:""}:void 0,hidden:R,id:r},ref:x,shouldPreventOpenAnimation:I,shouldRender:M,transitionStatus:E,width:O.width}}function mw(e){return{height:e.scrollHeight,width:e.scrollWidth}}function YUe(e,t){let o=St(e).getComputedStyle(e),r=(o.animationName.split(",").map(i=>i.trim()).some(i=>i!==""&&i!=="none")||t)&&rle(o.animationDuration),n=rle(o.transitionDuration);return r&&n||n?"css-transition":r?"css-animation":"none"}function rle(e){return e.split(",").map(t=>t.trim()).some(t=>t!==""&&Number.parseFloat(t)>0)}function lA(e,t,o){let r=e.style.getPropertyValue(t),n=e.style.getPropertyPriority(t);return e.style.setProperty(t,o),()=>{if(r===""){e.style.removeProperty(t);return}e.style.setProperty(t,r,n)}}function KUe(e){let t={"justify-content":e.style.justifyContent,"align-items":e.style.alignItems,"align-content":e.style.alignContent,"justify-items":e.style.justifyItems};Object.keys(t).forEach(n=>{e.style.setProperty(n,"initial","important")});function o(){Object.entries(t).forEach(([n,i])=>{if(i===""){e.style.removeProperty(n);return}e.style.setProperty(n,i)})}let r=di.request(o);return()=>{di.cancel(r),o()}}var mo={};No(mo,{engine:()=>jU,env:()=>UU,os:()=>FU,screenReader:()=>HU});var FU={};No(FU,{android:()=>ale,apple:()=>VU,ios:()=>DU,linux:()=>JUe,mac:()=>lle,windows:()=>QUe});function qUe(){return typeof navigator>"u"?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:ZUe,platform:XUe,maxTouchPoints:ile}=qUe(),Xb=ZUe.toLowerCase(),Qb=XUe.toLowerCase();var DU=/^i(os$|p)/.test(Qb)||Qb==="macintel"&&ile>1,sle="android",ale=Qb===sle||Xb.includes(sle),lle=!DU&&Qb.startsWith("mac"),QUe=Qb.startsWith("win"),JUe=!ale&&/^(linux|chrome os)/.test(Qb),VU=lle||DU;var jU={};No(jU,{blink:()=>tWe,gecko:()=>eWe,webkit:()=>zU});var zU=typeof CSS<"u"&&!!CSS.supports?.("-webkit-backdrop-filter:none"),eWe=!zU&&Xb.includes("firefox"),tWe=!zU&&Xb.includes("chrom");var HU={};No(HU,{voiceOver:()=>oWe});var oWe=VU;var UU={};No(UU,{jsdom:()=>rWe});var rWe=/jsdom|happydom/.test(Xb);var w1=0,Oi=class e{static create(){return new e}currentId=w1;start(t,o){this.clear(),this.currentId=setTimeout(()=>{this.currentId=w1,o()},t)}isStarted(){return this.currentId!==w1}clear=()=>{this.currentId!==w1&&(clearTimeout(this.currentId),this.currentId=w1)};disposeEffect=()=>this.clear};function Fo(){let e=eo(Oi.create).current;return cw(e.disposeEffect),e}var cle={},ule={},dle="";function cA(e,t){return Zb(e)?e:t}function fle(e,t,o){return/hidden|clip/.test(e.getComputedStyle(cA(t,o)).overflowY)}function nWe(e){if(typeof document>"u")return!1;let t=ot(e);return St(t).innerWidth-t.documentElement.clientWidth>0}function iWe(e){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;let o=ot(e),r=o.documentElement,n=o.body,i=cA(r,n),s=i.style.overflowY,a=r.style.scrollbarGutter;r.style.scrollbarGutter="stable",i.style.overflowY="scroll";let l=i.offsetWidth;i.style.overflowY="hidden";let u=i.offsetWidth;return i.style.overflowY=s,r.style.scrollbarGutter=a,l===u}function sWe(e){let t=ot(e),o=t.documentElement,r=t.body,n=cA(o,r),i={overflowY:n.style.overflowY,overflowX:n.style.overflowX};return Object.assign(n.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(n.style,i)}}function aWe(e){let t=ot(e),o=t.documentElement,r=t.body,n=St(o),i=0,s=0,a=!1,l=di.create();if(mo.engine.webkit&&(n.visualViewport?.scale??1)!==1)return()=>{};function u(){let m=n.getComputedStyle(o),g=n.getComputedStyle(r),v=(m.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";i=o.scrollTop,s=o.scrollLeft,cle={scrollbarGutter:o.style.scrollbarGutter,overflowY:o.style.overflowY,overflowX:o.style.overflowX},dle=o.style.scrollBehavior,ule={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let y=o.scrollHeight>o.clientHeight,_=o.scrollWidth>o.clientWidth,w=m.overflowY==="scroll"||g.overflowY==="scroll",k=m.overflowX==="scroll"||g.overflowX==="scroll",x=Math.max(0,n.innerWidth-r.clientWidth),S=Math.max(0,n.innerHeight-r.clientHeight),C=parseFloat(g.marginTop)+parseFloat(g.marginBottom),R=parseFloat(g.marginLeft)+parseFloat(g.marginRight),E=cA(o,r);if(a=iWe(e),a){o.style.scrollbarGutter=v,E.style.overflowY="hidden",E.style.overflowX="hidden";return}Object.assign(o.style,{scrollbarGutter:v,overflowY:"hidden",overflowX:"hidden"}),(y||w)&&(o.style.overflowY="scroll"),(_||k)&&(o.style.overflowX="scroll"),Object.assign(r.style,{position:"relative",height:C||S?`calc(100dvh - ${C+S}px)`:"100dvh",width:R||x?`calc(100vw - ${R+x}px)`:"100vw",boxSizing:"border-box",overflowY:"hidden",overflowX:"hidden",scrollBehavior:"unset"}),r.scrollTop=i,r.scrollLeft=s,o.setAttribute("data-base-ui-scroll-locked",""),o.style.scrollBehavior="unset"}function d(){Object.assign(o.style,cle),Object.assign(r.style,ule),a||(o.scrollTop=i,o.scrollLeft=s,o.removeAttribute("data-base-ui-scroll-locked"),o.style.scrollBehavior=dle)}function f(){d(),l.request(u)}u();let p=ut(n,"resize",f);return()=>{l.cancel(),d(),typeof n.removeEventListener=="function"&&p()}}var WU=class{lockCount=0;restore=null;timeoutLock=Oi.create();timeoutUnlock=Oi.create();acquire(t){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(t)),this.release}release=()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(t){if(this.lockCount===0||this.restore!==null)return;let o=ot(t),r=o.documentElement,n=o.body,i=St(r);if(fle(i,r,n)){let a=new i.MutationObserver(()=>{fle(i,r,n)||(a.disconnect(),this.restore=null,this.lock(t))}),l={attributes:!0};a.observe(r,l),a.observe(n,l),this.restore=()=>a.disconnect();return}let s=mo.os.ios||!nWe(t);this.restore=s?sWe(t):aWe(t)}},lWe=new WU;function ple(e=!0,t=null){le(()=>{if(e)return lWe.acquire(t)},[e,t])}var ls=c(re(),1);function zs(e){e.preventDefault(),e.stopPropagation()}function mle(e){return"nativeEvent"in e}function gw(e){return e.pointerType===""&&e.isTrusted?!0:mo.os.android&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function hw(e){return mo.env.jsdom?!1:!mo.os.android&&e.width===0&&e.height===0||mo.os.android&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function Sa(e,t){let o=["mouse","pen"];return t||o.push("",void 0),o.includes(e)}function gle(e){let t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}var k1="data-base-ui-focusable";var GU="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",x1="ArrowLeft",S1="ArrowRight",$U="ArrowUp",uA="ArrowDown";function _r(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function We(e,t){if(!e||!t)return!1;let o=t.getRootNode?.();if(e.contains(t))return!0;if(o&&Xu(o)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function ko(e){return"composedPath"in e?e.composedPath()[0]:e.target}function eg(e,t){if(!ct(e))return!1;let o=e;if(t.hasElement(o))return!o.hasAttribute("data-trigger-disabled");for(let[,r]of t.entries())if(We(r,o))return!r.hasAttribute("data-trigger-disabled");return!1}function dA(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 hle(e){return e.matches("html,body")}function Jb(e){return Ct(e)&&e.matches(GU)}function YU(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${GU}`)!=null}function C1(e){return e?e.getAttribute("role")==="combobox"&&Jb(e):!1}function ble(e){if(!e||mo.env.jsdom)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function ey(e){return e?e.hasAttribute(k1)?e:e.querySelector(`[${k1}]`)||e:null}function cWe(e,t){return t!=null&&!Sa(t)?0:typeof e=="function"?e():e}function hl(e,t,o){let r=cWe(e,o);return typeof r=="number"?r:r?.[t]}function KU(e){return typeof e=="function"?e():e}function fA(e,t){return t||e==="click"||e==="mousedown"}function yle(e){return e?.includes("mouse")&&e!=="mousedown"}var vle=c(T(),1),_le=ls.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Oi,currentIdRef:{current:null},currentContextRef:{current:null}});function uWe(e,t){e.current=t.current}function qU(e){let{children:t,delay:o,timeoutMs:r=0}=e,n=ls.useRef(o),i=ls.useRef(o),s=ls.useRef(null),a=ls.useRef(null),l=Fo();return le(()=>{if(i.current=o,!s.current){n.current=o;return}n.current={open:hl(n.current,"open"),close:hl(o,"close")}},[o,s,n,i]),(0,vle.jsx)(_le.Provider,{value:ls.useMemo(()=>({hasProvider:!0,delayRef:n,initialDelayRef:i,currentIdRef:s,timeoutMs:r,currentContextRef:a,timeout:l}),[r,l]),children:t})}function ZU(e,t={open:!1}){let{open:o}=t,r="rootStore"in e?e.rootStore:e,n=r.useState("floatingId"),i=ls.useContext(_le),{currentIdRef:s,delayRef:a,timeoutMs:l,initialDelayRef:u,currentContextRef:d,hasProvider:f,timeout:p}=i,[m,g]=ls.useState(!1),h=ls.useRef(o);return le(()=>{h.current=o},[o]),le(()=>{function b(){d.current?.setIsInstantPhase(!1),s.current=null,d.current=null,a.current=u.current,p.clear()}if(s.current&&!o&&s.current===n){if(g(!1),l){let v=n;return p.start(l,()=>{r.select("open")||s.current&&s.current!==v||b()}),()=>{(h.current||s.current!==v)&&p.clear()}}b()}},[o,n,s,a,l,u,d,p,r]),le(()=>{if(!o)return;let b=d.current,v=s.current;p.clear(),d.current={onOpenChange:r.setOpen,setIsInstantPhase:g},s.current=n,a.current={open:0,close:hl(u.current,"close")},v!==null&&v!==n?(g(!0),b?.setIsInstantPhase(!0),b?.onOpenChange(!1,$e(Te.none))):(g(!1),b?.setIsInstantPhase(!1))},[o,n,r,s,a,u,d,p]),le(()=>()=>{if(s.current===n){if(d.current=null,!h.current)return;s.current=null,uWe(a,u),p.clear()}},[d,s,a,n,u,p]),ls.useMemo(()=>({hasProvider:f,delayRef:a,isInstantPhase:m}),[f,a,m])}var Ni=c(re(),1);function Ai(...e){return()=>{for(let t=0;t<e.length;t+=1){let o=e[t];o&&o()}}}var mA=c(re(),1);var wle={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},pA={...wle,position:"fixed",top:0,left:0},kle={...wle,position:"absolute"};var xle=c(T(),1),bw=mA.forwardRef(function(t,o){let[r,n]=mA.useState();return le(()=>{mo.screenReader.voiceOver&&mo.engine.webkit&&n("button")},[]),(0,xle.jsx)("span",{...t,ref:o,style:pA,"aria-hidden":r?void 0:!0,...{tabIndex:0,role:r},"data-base-ui-focus-guard":""})});var tg=Math.min,Mc=Math.max,og=Math.round,T1=Math.floor,td=e=>({x:e,y:e}),dWe={left:"right",right:"left",bottom:"top",top:"bottom"};function hA(e,t,o){return Mc(e,tg(t,o))}function od(e,t){return typeof e=="function"?e(t):e}function Mi(e){return e.split("-")[0]}function Nc(e){return e.split("-")[1]}function bA(e){return e==="x"?"y":"x"}function R1(e){return e==="y"?"height":"width"}function js(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function B1(e){return bA(js(e))}function Ele(e,t,o){o===void 0&&(o=!1);let r=Nc(e),n=B1(e),i=R1(n),s=n==="x"?r===(o?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=E1(s)),[s,E1(s)]}function Tle(e){let t=E1(e);return[gA(e),t,gA(t)]}function gA(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var Sle=["left","right"],Cle=["right","left"],fWe=["top","bottom"],pWe=["bottom","top"];function mWe(e,t,o){switch(e){case"top":case"bottom":return o?t?Cle:Sle:t?Sle:Cle;case"left":case"right":return t?fWe:pWe;default:return[]}}function Rle(e,t,o,r){let n=Nc(e),i=mWe(Mi(e),o==="start",r);return n&&(i=i.map(s=>s+"-"+n),t&&(i=i.concat(i.map(gA)))),i}function E1(e){let t=Mi(e);return dWe[t]+e.slice(t.length)}function gWe(e){var t,o,r,n;return{top:(t=e.top)!=null?t:0,right:(o=e.right)!=null?o:0,bottom:(r=e.bottom)!=null?r:0,left:(n=e.left)!=null?n:0}}function yA(e){return typeof e!="number"?gWe(e):{top:e,right:e,bottom:e,left:e}}function Df(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 rg(e,t){return t<0||t>=e.length}function ty(e,t){return bl(e.current,{disabledIndices:t})}function yw(e,t){return bl(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function bl(e,{startingIndex:t=-1,decrement:o=!1,disabledIndices:r,amount:n=1}={}){let i=t;do i+=o?-n:n;while(i>=0&&i<=e.length-1&&oy(e,i,r));return i}function oy(e,t,o){if(typeof o=="function"?o(t):o?.includes(t)??!1)return!0;let n=e[t];return n?!ry(n)||n.matches(":disabled")?!0:!o&&(n.hasAttribute("disabled")||n.getAttribute("aria-disabled")==="true"):!1}function hWe(e){return e.visibility==="hidden"||e.visibility==="collapse"}function ry(e,t=e?Pn(e):null){return!e||!e.isConnected||!t||hWe(t)?!1:typeof e.checkVisibility=="function"?e.checkVisibility():t.display!=="none"&&t.display!=="contents"}var bWe='a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';function yWe(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let o=e.getRootNode();return Xu(o)?o.host:null}function QU(e){for(let t of Array.from(e.children))if(Kr(t)==="summary")return t;return null}function vWe(e,t){let o=QU(t);return!!o&&(e===o||We(o,e))}function Ble(e){let t=e?Kr(e):"";return e!=null&&e.matches(bWe)&&(t!=="summary"||e.parentElement!=null&&Kr(e.parentElement)==="details"&&QU(e.parentElement)===e)&&(t!=="details"||QU(e)==null)&&(t!=="input"||e.type!=="hidden")}function Ile(e){if(!Ble(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=yWe(t)){let o=t!==e,r=Kr(t)==="slot";if(t.hasAttribute("inert")||o&&Kr(t)==="details"&&!t.open&&!vWe(e,t)||t.hasAttribute("hidden")||!r&&!_We(t,o))return!1}return!0}function _We(e,t){let o=Pn(e);return t?o.display!=="none":ry(e,o)}function Ple(e){let t=e.tabIndex;if(t<0){let o=Kr(e);if(o==="details"||o==="audio"||o==="video"||Ct(e)&&e.isContentEditable)return 0}return t}function XU(e){if(Kr(e)!=="input")return null;let t=e;return t.type==="radio"&&t.name!==""?t:null}function wWe(e,t){let o=XU(e);if(!o)return!0;let r=t.find(n=>{let i=XU(n);return i?.name===o.name&&i.form===o.form&&i.checked});return r?r===o:t.find(n=>{let i=XU(n);return i?.name===o.name&&i.form===o.form})===o}function Ole(e){if(Ct(e)&&Kr(e)==="slot"){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return Ct(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function Ale(e,t){Ole(e).forEach(o=>{Ble(o)&&t.push(o),Ale(o,t)})}function Mle(e,t,o){Ole(e).forEach(r=>{Ct(r)&&r.matches(t)&&o.push(r),Mle(r,t,o)})}function vA(e){return Ile(e)&&Ple(e)>=0}function JU(e){let t=[];return Ale(e,t),t.filter(Ile)}function I1(e){let t=JU(e);return t.filter(o=>Ple(o)>=0&&wWe(o,t))}function Nle(e,t){let o=I1(e),r=o.length;if(r===0)return;let n=_r(ot(e)),i=o.indexOf(n),s=i===-1?t===1?0:r-1:i+t;return o[s]}function _A(e){return Nle(ot(e).body,1)||e}function wA(e){return Nle(ot(e).body,-1)||e}function ny(e,t){let o=t||e.currentTarget,r=e.relatedTarget;return!r||!We(o,r)}function Lle(e){I1(e).forEach(o=>{o.dataset.tabindex=o.getAttribute("tabindex")||"",o.setAttribute("tabindex","-1")})}function eW(e){let t=[];Mle(e,"[data-tabindex]",t),t.forEach(o=>{let r=o.dataset.tabindex;delete o.dataset.tabindex,r?o.setAttribute("tabindex",r):o.removeAttribute("tabindex")})}function yl(e,t,o=!0){return e.filter(n=>n.parentId===t).flatMap(n=>[...!o||n.context?.open?[n]:[],...yl(e,n.id,o)])}function tW(e,t){let o=[],r=e.find(n=>n.id===t)?.parentId;for(;r;){let n=e.find(i=>i.id===r);r=n?.parentId,n&&(o=o.concat(n))}return o}function Vf(e){return`data-base-ui-${e}`}var kA=0;function vw(e,t={}){let{preventScroll:o=!1,sync:r=!1,shouldFocus:n}=t;cancelAnimationFrame(kA);function i(){n&&!n()||e?.focus({preventScroll:o})}if(r)return i(),At;let s=requestAnimationFrame(i);return kA=s,()=>{kA===s&&(cancelAnimationFrame(s),kA=0)}}var oW={inert:new WeakMap,"aria-hidden":new WeakMap},Dle="data-base-ui-inert",nW={inert:new WeakSet,"aria-hidden":new WeakSet},P1=new WeakMap,rW=0;function kWe(e){return nW[e]}function jle(e){return e?Xu(e)?e.host:jle(e.parentNode):null}var Vle=(e,t)=>t.map(o=>{if(e.contains(o))return o;let r=jle(o);return e.contains(r)?r:null}).filter(o=>o!=null),Fle=e=>{let t=new Set;return e.forEach(o=>{let r=o;for(;r&&!t.has(r);)t.add(r),r=r.parentNode}),t},zle=(e,t,o)=>{let r=[],n=i=>{!i||o.has(i)||Array.from(i.children).forEach(s=>{Kr(s)!=="script"&&(t.has(s)?n(s):r.push(s))})};return n(e),r};function xWe(e,t,o,r,{mark:n=!0}){let i=null;r?i="inert":o&&(i="aria-hidden");let s=null,a=null,l=Vle(t,e),u=n?zle(t,Fle(l),new Set(l)):[],d=[],f=[];if(i){let p=oW[i],m=kWe(i);a=m,s=p;let g=Vle(t,Array.from(t.querySelectorAll("[aria-live]"))),h=l.concat(g);zle(t,Fle(h),new Set(h)).forEach(v=>{let y=v.getAttribute(i),_=y!==null&&y!=="false",w=(p.get(v)||0)+1;p.set(v,w),d.push(v),w===1&&_&&m.add(v),_||v.setAttribute(i,i==="inert"?"":"true")})}return n&&u.forEach(p=>{let m=(P1.get(p)||0)+1;P1.set(p,m),f.push(p),m===1&&p.setAttribute(Dle,"")}),rW+=1,()=>{s&&d.forEach(p=>{let g=(s.get(p)||0)-1;s.set(p,g),g||(!a?.has(p)&&i&&p.removeAttribute(i),a?.delete(p))}),n&&f.forEach(p=>{let m=(P1.get(p)||0)-1;P1.set(p,m),m||p.removeAttribute(Dle)}),rW-=1,rW||(oW.inert=new WeakMap,oW["aria-hidden"]=new WeakMap,nW.inert=new WeakSet,nW["aria-hidden"]=new WeakSet,P1=new WeakMap)}}function iW(e,t={}){let{ariaHidden:o=!1,inert:r=!1,mark:n=!0}=t,i=ot(e[0]).body;return xWe(e,i,o,r,{mark:n})}var qo=c(re(),1),sW=c(Of(),1);var Hle={style:{transition:"none"}},Ule="data-base-ui-click-trigger",SWe="data-base-ui-swipe-ignore",CWe="data-swipe-ignore",CTt=`[${SWe}]`,ETt=`[${CWe}]`,Wle={fallbackAxisSide:"none"},Gle={fallbackAxisSide:"end"},$le={clipPath:"inset(50%)",position:"fixed",top:0,left:0};var iy=c(T(),1),Yle=qo.createContext(null),aW=()=>qo.useContext(Yle),EWe=Vf("portal");function xA(e={}){let{ref:t,container:o,componentProps:r=Wt,elementProps:n}=e,i=Xm(),a=aW()?.portalNode,[l,u]=qo.useState(null),[d,f]=qo.useState(null),p=de(b=>{b!==null&&f(b)}),m=qo.useRef(null);le(()=>{if(o===null){m.current&&(m.current=null,f(null),u(null));return}let b=(o&&(oA(o)?o:o.current))??a??document.body;if(b==null){m.current&&(m.current=null,f(null),u(null));return}m.current!==b&&(m.current=b,f(null),u(b))},[o,a]);let g=De("div",r,{ref:[t,p],props:[{id:i,[EWe]:""},n]}),h=l&&g?sW.createPortal(g,l):null;return{node:d,nodeId:qo.isValidElement(g)?g.props.id:void 0,subtree:h}}var lW=qo.forwardRef(function(t,o){let{render:r,className:n,style:i,children:s,container:a,...l}=t,{node:u,nodeId:d,subtree:f}=xA({container:a,ref:o,componentProps:t,elementProps:l}),p=qo.useRef(null),m=qo.useRef(null),g=qo.useRef(null),h=qo.useRef(null),[b,v]=qo.useState(null),y=qo.useRef(!1),_=b?.modal,w=b?.open,k=!!b&&!b.modal&&b.open&&!!u;qo.useEffect(()=>{if(!u||_)return;function S(C){u&&C.relatedTarget&&ny(C)&&(C.type==="focusin"?y.current&&(eW(u),y.current=!1):(Lle(u),y.current=!0))}return Ai(ut(u,"focusin",S,!0),ut(u,"focusout",S,!0))},[u,_]),le(()=>{!u||w!==!0||!y.current||(eW(u),y.current=!1)},[w,u]);let x=qo.useMemo(()=>({beforeOutsideRef:p,afterOutsideRef:m,beforeInsideRef:g,afterInsideRef:h,portalNode:u,setFocusManagerState:v}),[u]);return(0,iy.jsxs)(qo.Fragment,{children:[f,(0,iy.jsxs)(Yle.Provider,{value:x,children:[k&&u&&(0,iy.jsx)(bw,{"data-type":"outside",ref:p,onFocus:S=>{if(ny(S,u))g.current?.focus();else{let C=b?b.domReference:null;wA(C)?.focus()}}}),k&&u&&(0,iy.jsx)("span",{"aria-owns":d,style:$le}),u&&sW.createPortal(s,u),k&&u&&(0,iy.jsx)(bw,{"data-type":"outside",ref:m,onFocus:S=>{if(ny(S,u))h.current?.focus();else{let C=b?b.domReference:null;_A(C)?.focus(),b?.closeOnFocusOut&&b?.onOpenChange(!1,$e(Te.focusOut,S.nativeEvent))}}})]})]})});var sy=c(re(),1);function Kle(){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 TWe=c(T(),1),RWe=sy.createContext(null),BWe=sy.createContext(null),ng=()=>sy.useContext(RWe)?.id||null,vl=e=>{let t=sy.useContext(BWe);return e??t};var O1=c(T(),1);function IWe(e,t){let o=St(ko(e));return e instanceof o.KeyboardEvent?"keyboard":e instanceof o.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof o.MouseEvent?t||(e.detail===0?"keyboard":"mouse"):""}var qle=20,ig=[];function cW(){ig=ig.filter(e=>e.deref()?.isConnected)}function Zle(e){cW(),e&&Kr(e)!=="body"&&(ig.push(new WeakRef(e)),ig.length>qle&&(ig=ig.slice(-qle)))}function Xle(){return cW(),ig[ig.length-1]?.deref()}function PWe(e){return e?vA(e)?e:I1(e)[0]||e:null}function Qle(e){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!e.getAttribute("role")?.includes("dialog"))return;let o=JU(e).filter(n=>{let i=n.getAttribute("data-tabindex")||"";return vA(n)||n.hasAttribute("data-tabindex")&&!i.startsWith("-")}),r=e.getAttribute("tabindex");o.length===0?r!=="0"&&(e.setAttribute("tabindex","0"),e.setAttribute("data-tabindex","0")):(r!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function uW(e){let{context:t,children:o,disabled:r=!1,initialFocus:n=!0,returnFocus:i=!0,restoreFocus:s=!1,modal:a=!0,closeOnFocusOut:l=!0,openInteractionType:u="",nextFocusableElement:d,previousFocusableElement:f,beforeContentFocusGuardRef:p,externalTree:m,getInsideElements:g}=e,h="rootStore"in t?t.rootStore:t,b=h.useState("open"),v=h.useState("domReferenceElement"),y=h.useState("floatingElement"),{events:_,dataRef:w}=h.context,k=de(()=>w.current.floatingContext?.nodeId),x=n===!1,S=C1(v)&&x,C=so(n),R=so(i),E=so(u),I=so(b),O=vl(m),A=aW(),P=Ni.useRef(!1),L=Ni.useRef(!1),H=Ni.useRef(!1),N=Ni.useRef(null),M=Ni.useRef(""),V=Ni.useRef(""),j=Ni.useRef(null),D=Ni.useRef(null),z=Fs(j,p,A?.beforeInsideRef),W=Fs(D,A?.afterInsideRef),ee=Fo(),J=Fo(),U=ss(),Q=A!=null,Z=ey(y),K=de((ie=Z)=>ie?I1(ie):[]),X=de(()=>g?.().filter(ie=>ie!=null)??[]);Ni.useEffect(()=>{if(r||!a)return;function ie(be){be.key==="Tab"&&We(Z,_r(ot(Z)))&&K().length===0&&!S&&zs(be)}let se=ot(Z);return ut(se,"keydown",ie)},[r,Z,a,S,K]),Ni.useEffect(()=>{if(r||!b)return;let ie=ot(Z);function se(){H.current=!1}function be(ke){let ye=ko(ke),Pe=X(),_e=We(y,ye)||We(v,ye)||We(A?.portalNode,ye)||Pe.some(ve=>ve===ye||We(ve,ye));H.current=!_e,V.current=ke.pointerType||"keyboard",ye?.closest(`[${Ule}]`)&&(L.current=!0,J.start(0,()=>{L.current=!1}))}function pe(){V.current="keyboard"}return Ai(ut(ie,"pointerdown",be,!0),ut(ie,"pointerup",se,!0),ut(ie,"pointercancel",se,!0),ut(ie,"keydown",pe,!0),se)},[r,y,v,Z,b,A,J,X]),Ni.useEffect(()=>{if(r||!l)return;let ie=ot(Z);function se(){L.current=!0,J.start(0,()=>{L.current=!1})}function be(Pe){let _e=ko(Pe);vA(_e)&&(N.current=_e)}function pe(Pe){let _e=Pe.relatedTarget,ve=Pe.currentTarget,Se=ko(Pe);a&&_e==null&&Se!=null&&We(y,Se)&&Zle(Se),queueMicrotask(()=>{let fe=k(),Ce=h.context.triggerElements,ne=X(),ae=_e?.hasAttribute(Vf("focus-guard"))&&[j.current,D.current,A?.beforeInsideRef.current,A?.afterInsideRef.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,Ac(f),Ac(d)].includes(_e),Ee=!(We(v,_e)||We(y,_e)||We(_e,y)||We(A?.portalNode,_e)||ne.some(he=>he===_e||We(he,_e))||Ce.hasMatchingElement(he=>We(he,_e))||ae||O&&(yl(O.nodesRef.current,fe).find(he=>We(he.context?.elements.floating,_e)||We(he.context?.elements.domReference,_e))||tW(O.nodesRef.current,fe).find(he=>[he.context?.elements.floating,ey(he.context?.elements.floating)].includes(_e)||he.context?.elements.domReference===_e)));if(ve===v&&Z&&Qle(Z),s&&ve!==v&&!ry(Se)&&_r(ie)===ie.body){if(Ct(Z)&&(Z.focus(),s==="popup")){U.request(()=>{Z.focus()});return}let he=K(),Ae=N.current,et=(Ae&&he.includes(Ae)?Ae:null)||he[he.length-1]||Z;Ct(et)&&et.focus()}if(w.current.insideReactTree){w.current.insideReactTree=!1;return}(S||!a)&&_e&&Ee&&!L.current&&(S||_e!==Xle())&&(P.current=!0,h.setOpen(!1,$e(Te.focusOut,Pe)))})}function ke(){H.current||(w.current.insideReactTree=!0,ee.start(0,()=>{w.current.insideReactTree=!1}))}let ye=Ct(v)?v:null;if(!(!y&&!ye))return Ai(ye&&ut(ye,"focusout",pe),ye&&ut(ye,"pointerdown",se),y&&ut(y,"focusin",be),y&&ut(y,"focusout",pe),y&&A&&ut(y,"focusout",ke,!0))},[r,v,y,Z,a,O,A,h,l,s,K,S,k,w,ee,J,U,d,f,X]),Ni.useEffect(()=>{if(r||!y||!b)return;let ie=Array.from(A?.portalNode?.querySelectorAll(`[${Vf("portal")}]`)||[]),be=(O?tW(O.nodesRef.current,k()):[]).find(ve=>C1(ve.context?.elements.domReference||null))?.context?.elements.domReference,ke=[...[y,...ie,j.current,D.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,...X()],be,Ac(f),Ac(d),S?v:null].filter(ve=>ve!=null),ye=iW(ke,{ariaHidden:a||S,mark:!1}),Pe=[y,...ie].filter(ve=>ve!=null),_e=iW(Pe);return()=>{_e(),ye()}},[b,r,v,y,a,A,S,O,k,d,f,X]),le(()=>{if(!b||r||!Ct(Z))return;M.current="",V.current="";let ie=ot(Z),se=_r(ie);queueMicrotask(()=>{let be=C.current,pe=typeof be=="function"?be(E.current||""):be;if(pe===void 0||pe===!1||We(Z,se))return;let ye=null,Pe=()=>(ye==null&&(ye=K(Z)),ye[0]||Z),_e;pe===!0||pe===null?_e=Pe():_e=Ac(pe),_e=_e||Pe();let ve=We(Z,_r(ie));vw(_e,{preventScroll:_e===Z,shouldFocus(){if(!I.current)return!1;if(ve)return!0;let Se=_r(ie);return!(Se!==_e&&We(Z,Se))}})})},[r,b,Z,K,C,E,I]),le(()=>{if(r||!Z)return;let ie=ot(Z),se=_r(ie),be=E.current==null;Zle(se);function pe(ye){if(ye.open||(M.current=IWe(ye.nativeEvent,V.current)),ye.reason===Te.triggerHover&&ye.nativeEvent.type==="mouseleave"&&(P.current=!0),ye.reason===Te.outsidePress)if(ye.nested)P.current=!1;else if(gw(ye.nativeEvent)||hw(ye.nativeEvent))P.current=!1;else{let Pe=!1;ot(Z).createElement("div").focus({get preventScroll(){return Pe=!0,!1}}),Pe?P.current=!1:P.current=!0}}_.on("openchange",pe);function ke(ye){let Pe=R.current,_e=typeof Pe=="function"?Pe(ye):Pe;if(_e===void 0||_e===!1)return null;_e===null&&(_e=!0);let ve=v?.isConnected?v:null,Se=se?.isConnected&&Kr(se)!=="body"?se:null,fe=be?Se||ve:ve||Se;return fe||(fe=Xle()||null),typeof _e=="boolean"?fe:Ac(_e)||fe||null}return()=>{_.off("openchange",pe);let ye=_r(ie),Pe=X(),_e=We(y,ye)||Pe.some(Ce=>Ce===ye||We(Ce,ye))||O&&yl(O.nodesRef.current,k(),!1).some(Ce=>We(Ce.context?.elements.floating,ye)),ve=R.current,Se=M.current,fe=ke(Se);queueMicrotask(()=>{let Ce=PWe(fe),ne=typeof ve!="boolean";if(ve&&!P.current&&Ct(Ce)&&(!(!ne&&Ce!==ye&&ye!==ie.body)||_e)){let ae={preventScroll:!0};Se==="keyboard"&&(ae.focusVisible=!0),Ce.focus(ae)}P.current=!1})}},[r,y,Z,R,E,_,O,v,k,X]),le(()=>{if(!mo.engine.webkit||b||!y)return;let ie=_r(ot(y));!Ct(ie)||!Jb(ie)||We(y,ie)&&ie.blur()},[b,y]),le(()=>{if(!(r||!A))return A.setFocusManagerState({modal:a,closeOnFocusOut:l,open:b,onOpenChange:h.setOpen,domReference:v}),()=>{A.setFocusManagerState(null)}},[r,A,a,b,h,l,v]),le(()=>{if(!(r||!Z))return Qle(Z),()=>{queueMicrotask(cW)}},[r,Z]);let oe=!r&&(a?!S:!0)&&(Q||a);return(0,O1.jsxs)(Ni.Fragment,{children:[oe&&(0,O1.jsx)(bw,{"data-type":"inside",ref:z,onFocus:ie=>{if(a){let se=K();vw(se[se.length-1])}else A?.portalNode&&(P.current=!1,ny(ie,A.portalNode)?_A(v)?.focus():Ac(f??A.beforeOutsideRef)?.focus())}}),o,oe&&(0,O1.jsx)(bw,{"data-type":"inside",ref:W,onFocus:ie=>{a?vw(K()[0]):A?.portalNode&&(l&&(P.current=!0),ny(ie,A.portalNode)?wA(v)?.focus():Ac(d??A.afterOutsideRef)?.focus())}})]})}var A1=c(re(),1);function dW(e,t={}){let{enabled:o=!0,event:r="click",toggle:n=!0,ignoreMouse:i=!1,stickIfOpen:s=!0,touchOpenDelay:a=0,reason:l=Te.triggerPress}=t,u="rootStore"in e?e.rootStore:e,d=u.context.dataRef,f=A1.useRef(void 0),p=ss(),m=Fo(),g=A1.useMemo(()=>{function h(v,y,_,w){let k=$e(l,y,_);v&&w==="touch"&&a>0?m.start(a,()=>{u.setOpen(!0,k)}):u.setOpen(v,k)}function b(v,y,_){let w=d.current.openEvent,k=u.select("domReferenceElement")!==y;return v&&k||!v||!n?!0:w&&s?!_(w.type):!1}return{onPointerDown(v){f.current=Sa(v.pointerType,!0)&&hw(v.nativeEvent)?"virtual":v.pointerType},onMouseDown(v){let y=f.current,_=v.nativeEvent,w=u.select("open");if(v.button!==0||r==="click"||Sa(y,!0)&&i)return;let k=b(w,v.currentTarget,C=>C==="click"||C==="mousedown"),x=ko(_);if(Jb(x)){h(k,_,x,y);return}let S=v.currentTarget;p.request(()=>{h(k,_,S,y)})},onClick(v){if(r==="mousedown-only")return;let y=f.current;if(r==="mousedown"&&y){f.current=void 0;return}if(Sa(y,!0)&&i)return;let _=u.select("open"),w=b(_,v.currentTarget,k=>k==="click"||k==="mousedown"||k==="keydown"||k==="keyup");h(w,v.nativeEvent,v.currentTarget,y)},onKeyDown(){f.current=void 0}}},[d,r,i,l,u,s,n,p,m,a]);return A1.useMemo(()=>o?{reference:g}:Wt,[o,g])}var Hs=c(re(),1);function OWe(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,p=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,p-=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,p=a&&t.y!=null?t.y:p):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:p,top:p,right:f+u,bottom:p+d,left:f}}}}function Jle(e){return e!=null&&e.clientX!=null}function fW(e,t={}){let{enabled:o=!0,axis:r="both"}=t,n="rootStore"in e?e.rootStore:e,i=n.useState("open"),s=n.useState("floatingElement"),a=n.useState("domReferenceElement"),l=n.context.dataRef,u=Hs.useRef(!1),d=Hs.useRef(null),[f,p]=Hs.useState(),[m,g]=Hs.useState([]),h=de(w=>{n.set("positionReference",w)}),b=de((w,k,x)=>{u.current||l.current.openEvent&&!Jle(l.current.openEvent)||n.set("positionReference",OWe(x??a,{x:w,y:k,axis:r,dataRef:l,pointerType:f}))}),v=de(w=>{i?d.current||(b(w.clientX,w.clientY,w.currentTarget),g([])):b(w.clientX,w.clientY,w.currentTarget)}),y=Sa(f)?s:i;Hs.useEffect(()=>{if(!o){h(a);return}if(!y)return;function w(){d.current?.(),d.current=null}let k=St(s);function x(S){let C=ko(S);We(s,C)?w():b(S.clientX,S.clientY)}return!l.current.openEvent||Jle(l.current.openEvent)?d.current=ut(k,"mousemove",x):h(a),w},[y,o,s,l,a,n,b,h,m]),Hs.useEffect(()=>()=>{n.set("positionReference",null)},[n]),Hs.useEffect(()=>{o&&!s&&(u.current=!1)},[o,s]),Hs.useEffect(()=>{!o&&i&&(u.current=!0)},[o,i]);let _=Hs.useMemo(()=>{function w(k){p(k.pointerType)}return{onPointerDown:w,onPointerEnter:w,onMouseMove:v,onMouseEnter:v}},[v]);return Hs.useMemo(()=>o?{reference:_,trigger:_}:{},[o,_])}var Ca=c(re(),1);function AWe(){return!1}function MWe(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function M1(e,t={}){let{enabled:o=!0,escapeKey:r=!0,outsidePress:n=!0,outsidePressEvent:i="sloppy",referencePress:s=AWe,bubbles:a,externalTree:l}=t,u="rootStore"in e?e.rootStore:e,d=u.useState("open"),f=u.useState("floatingElement"),{dataRef:p}=u.context,m=vl(l),g=de(typeof n=="function"?n:()=>!1),h=typeof n=="function"?g:n,b=h!==!1,v=de(()=>i),{escapeKey:y,outsidePress:_}=MWe(a),w=Ca.useRef(!1),k=Ca.useRef(!1),x=Ca.useRef(!1),S=Ca.useRef(!1),C=Ca.useRef(""),R=Ca.useRef(null),E=Fo(),I=Fo(),O=de(()=>{I.clear(),p.current.insideReactTree=!1}),A=de(z=>{let W=p.current.floatingContext?.nodeId;return(m?yl(m.nodesRef.current,W):[]).some(J=>J.context?.open&&!J.context.dataRef.current[z])}),P=de(z=>dA(z,u.select("floatingElement"))||dA(z,u.select("domReferenceElement"))),L=de(z=>{s()&&u.setOpen(!1,$e(Te.triggerPress,z.nativeEvent))}),H=de(z=>{if(!d||!o||!r||z.key!=="Escape"||S.current||!y&&A("__escapeKeyBubbles"))return;let W=mle(z)?z.nativeEvent:z,ee=$e(Te.escapeKey,W);u.setOpen(!1,ee),ee.isCanceled||z.preventDefault(),!y&&!ee.isPropagationAllowed&&z.stopPropagation()}),N=de(()=>{p.current.insideReactTree=!0,I.start(0,O)}),M=de(z=>{if(!d||!o||z.button!==0)return;let W=ko(z.nativeEvent);We(u.select("floatingElement"),W)&&(w.current||(w.current=!0,k.current=!1))}),V=de(z=>{!d||!o||(z.defaultPrevented||z.nativeEvent.defaultPrevented)&&w.current&&(k.current=!0)});Ca.useEffect(()=>{if(!d||!o)return O;p.current.__escapeKeyBubbles=y,p.current.__outsidePressBubbles=_;let z=new Oi,W=new Oi;function ee(){z.clear(),S.current=!0}function J(){z.start(mo.engine.webkit?5:0,()=>{S.current=!1})}function U(){x.current=!0,W.start(0,()=>{x.current=!1})}function Q(){w.current=!1,k.current=!1}function Z(){let ne=C.current,ae=ne==="pen"||!ne?"mouse":ne,Ee=v(),he=typeof Ee=="function"?Ee():Ee;return typeof he=="string"?he:he[ae]}function K(ne){let ae=Z();return ae==="intentional"&&ne.type!=="click"||ae==="sloppy"&&ne.type==="click"}function X(ne){let ae=p.current.floatingContext?.nodeId,Ee=m&&yl(m.nodesRef.current,ae).some(he=>dA(ne,he.context?.elements.floating));return P(ne)||Ee}function oe(ne){if(K(ne)){ne.type!=="click"&&!P(ne)&&(W.clear(),x.current=!1),O();return}if(p.current.insideReactTree){O();return}let ae=ko(ne),Ee=`[${Vf("inert")}]`,he=ct(ae)?ae.getRootNode():null,Ae=Array.from((Xu(he)?he:ot(u.select("floatingElement"))).querySelectorAll(Ee)),et=u.context.triggerElements;if(ae&&(et.hasElement(ae)||et.hasMatchingElement(_t=>We(_t,ae))))return;let Je=ct(ae)?ae:null;for(;Je&&!ed(Je);){let _t=Qu(Je);if(ed(_t)||!ct(_t))break;Je=_t}if(!(Ae.length&&ct(ae)&&!hle(ae)&&!We(ae,u.select("floatingElement"))&&Ae.every(_t=>!We(Je,_t)))){if(Ct(ae)&&!("touches"in ne)){let _t=ed(ae),Et=Pn(ae),mt=/auto|scroll/,oo=_t||mt.test(Et.overflowX),Tt=_t||mt.test(Et.overflowY),Rt=oo&&ae.clientWidth>0&&ae.scrollWidth>ae.clientWidth,Bt=Tt&&ae.clientHeight>0&&ae.scrollHeight>ae.clientHeight,gt=Et.direction==="rtl",He=Bt&&(gt?ne.offsetX<=ae.offsetWidth-ae.clientWidth:ne.offsetX>ae.clientWidth),we=Rt&&ne.offsetY>ae.clientHeight;if(He||we)return}if(!X(ne)){if(Z()==="intentional"&&x.current){W.clear(),x.current=!1;return}typeof h=="function"&&!h(ne)||A("__outsidePressBubbles")||(u.setOpen(!1,$e(Te.outsidePress,ne)),O())}}}function ie(ne){Z()!=="sloppy"||ne.pointerType==="touch"||!u.select("open")||!o||P(ne)||oe(ne)}function se(ne){if(Z()!=="sloppy"||!u.select("open")||!o||P(ne))return;let ae=ne.touches[0];ae&&(R.current={startTime:Date.now(),startX:ae.clientX,startY:ae.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},E.start(1e3,()=>{R.current&&(R.current.dismissOnTouchEnd=!1,R.current.dismissOnMouseDown=!1)}))}function be(ne,ae){let Ee=ko(ne);if(!Ee)return;let he=ut(Ee,ne.type,()=>{ae(ne),he()})}function pe(ne){C.current="touch",be(ne,se)}function ke(ne){E.clear(),ne.type==="pointerdown"&&(C.current=ne.pointerType),!(ne.type==="mousedown"&&R.current&&!R.current.dismissOnMouseDown)&&be(ne,ae=>{ae.type==="pointerdown"?ie(ae):oe(ae)})}function ye(ne){if(!w.current)return;let ae=k.current;if(Q(),Z()==="intentional"){if(ne.type==="pointercancel"){ae&&U();return}if(!X(ne)){if(ae){U();return}typeof h=="function"&&!h(ne)||(W.clear(),x.current=!0,O())}}}function Pe(ne){if(Z()!=="sloppy"||!R.current||P(ne))return;let ae=ne.touches[0];if(!ae)return;let Ee=Math.abs(ae.clientX-R.current.startX),he=Math.abs(ae.clientY-R.current.startY),Ae=Math.sqrt(Ee*Ee+he*he);Ae>5&&(R.current.dismissOnTouchEnd=!0),Ae>10&&(oe(ne),E.clear(),R.current=null)}function _e(ne){be(ne,Pe)}function ve(ne){Z()!=="sloppy"||!R.current||P(ne)||(R.current.dismissOnTouchEnd&&oe(ne),E.clear(),R.current=null)}function Se(ne){be(ne,ve)}let fe=ot(f),Ce=Ai(r&&Ai(ut(fe,"keydown",H),ut(fe,"compositionstart",ee),ut(fe,"compositionend",J)),b&&Ai(ut(fe,"click",ke,!0),ut(fe,"pointerdown",ke,!0),ut(fe,"pointerup",ye,!0),ut(fe,"pointercancel",ye,!0),ut(fe,"mousedown",ke,!0),ut(fe,"mouseup",ye,!0),ut(fe,"touchstart",pe,!0),ut(fe,"touchmove",_e,!0),ut(fe,"touchend",Se,!0)));return()=>{Ce(),z.clear(),W.clear(),Q(),x.current=!1,O()}},[p,f,r,b,h,d,o,y,_,H,O,v,A,P,m,u,E]);let j=Ca.useMemo(()=>({onKeyDown:H,onPointerDown:L,onClick:L}),[H,L]),D=Ca.useMemo(()=>({onKeyDown:H,onPointerDown:V,onMouseDown:V,onClickCapture:N,onMouseDownCapture(z){N(),M(z)},onPointerDownCapture(z){N(),M(z)},onMouseUpCapture:N,onTouchEndCapture:N,onTouchMoveCapture:N}),[H,N,M,V]);return Ca.useMemo(()=>o?{reference:j,floating:D,trigger:j}:{},[o,j,D])}var Li=c(re(),1);function ece(e,t,o){let{reference:r,floating:n}=e,i=js(t),s=B1(t),a=R1(s),l=Mi(t),u=i==="y",d=r.x+r.width/2-n.width/2,f=r.y+r.height/2-n.height/2,p=r[a]/2-n[a]/2,m;switch(l){case"top":m={x:d,y:r.y-n.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-n.width,y:f};break;default:m={x:r.x,y:r.y}}let g=Nc(t);return g&&(m[s]+=p*(g==="end"?1:-1)*(o&&u?-1:1)),m}async function tce(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:p=!1,padding:m=0}=od(t,e),g=yA(m),b=a[p?f==="floating"?"reference":"floating":f],v=Df(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,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),w=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},k=Df(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:_,strategy:l}):y);return{top:(v.top-k.top+g.top)/w.y,bottom:(k.bottom-v.bottom+g.bottom)/w.y,left:(v.left-k.left+g.left)/w.x,right:(k.right-v.right+g.right)/w.x}}var NWe=50,oce=async(e,t,o)=>{let{placement:r="bottom",strategy:n="absolute",middleware:i=[],platform:s}=o,a=s.detectOverflow?s:{...s,detectOverflow:tce},l=await(s.isRTL==null?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:n}),{x:d,y:f}=ece(u,r,l),p=r,m=0,g={};for(let h=0;h<i.length;h++){let b=i[h];if(!b)continue;let{name:v,fn:y}=b,{x:_,y:w,data:k,reset:x}=await y({x:d,y:f,initialPlacement:r,placement:p,strategy:n,middlewareData:g,rects:u,platform:a,elements:{reference:e,floating:t}});d=_??d,f=w??f,g[v]={...g[v],...k},x&&m<NWe&&(m++,typeof x=="object"&&(x.placement&&(p=x.placement),x.rects&&(u=x.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:n}):x.rects),{x:d,y:f}=ece(u,p,l)),h=-1)}return{x:d,y:f,placement:p,strategy:n,middlewareData:g}};var rce=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:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...b}=od(e,t);if((o=i.arrow)!=null&&o.alignmentOffset)return{};let v=Mi(n),y=js(a),_=Mi(a)===a,w=await(l.isRTL==null?void 0:l.isRTL(u.floating)),k=p||(_||!h?[E1(a)]:Tle(a)),x=g!=="none";!p&&x&&k.push(...Rle(a,h,g,w));let S=[a,...k],C=await l.detectOverflow(t,b),R=[],E=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&R.push(C[v]),f){let P=Ele(n,s,w);R.push(C[P[0]],C[P[1]])}if(E=[...E,{placement:n,overflows:R}],!R.every(P=>P<=0)){var I,O;let P=(((I=i.flip)==null?void 0:I.index)||0)+1,L=S[P];if(L&&(!(f==="alignment"?y!==js(L):!1)||E.every(M=>js(M.placement)===y?M.overflows[0]>0:!0)))return{data:{index:P,overflows:E},reset:{placement:L}};let H=(O=E.filter(N=>N.overflows[0]<=0).sort((N,M)=>N.overflows[1]-M.overflows[1])[0])==null?void 0:O.placement;if(!H)switch(m){case"bestFit":{var A;let N=(A=E.filter(M=>{if(x){let V=js(M.placement);return V===y||V==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(V=>V>0).reduce((V,j)=>V+j,0)]).sort((M,V)=>M[1]-V[1])[0])==null?void 0:A[0];N&&(H=N);break}case"initialPlacement":H=a;break}if(n!==H)return{reset:{placement:H}}}return{}}}};var nce=new Set(["left","top"]);async function LWe(e,t){let{placement:o,platform:r,elements:n}=e,i=await(r.isRTL==null?void 0:r.isRTL(n.floating)),s=Mi(o),a=Nc(o),l=js(o)==="y",u=nce.has(s)?-1:1,d=i&&l?-1:1,f=od(t,e),{mainAxis:p,crossAxis:m,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof g=="number"&&(m=a==="end"?g*-1:g),l?{x:m*d,y:p*u}:{x:p*u,y:m*d}}var ice=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 LWe(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}}}}},sce=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:y=>{let{x:_,y:w}=y;return{x:_,y:w}}},...u}=od(e,t),d={x:o,y:r},f=await i.detectOverflow(t,u),p=js(n),m=bA(p),g=d[m],h=d[p],b=(y,_)=>hA(_+f[y==="y"?"top":"left"],_,_-f[y==="y"?"bottom":"right"]);s&&(g=b(m,g)),a&&(h=b(p,h));let v=l.fn({...t,[m]:g,[p]:h});return{...v,data:{x:v.x-o,y:v.y-r,enabled:{[m]:s,[p]:a}}}}}},ace=function(e){return e===void 0&&(e={}),{options:e,fn(t){var o,r;let{x:n,y:i,placement:s,rects:a,middlewareData:l}=t,{offset:u=0,mainAxis:d=!0,crossAxis:f=!0}=od(e,t),p={x:n,y:i},m=js(s),g=bA(m),h=p[g],b=p[m],v=od(u,t),y=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:(o=v.mainAxis)!=null?o:0,crossAxis:(r=v.crossAxis)!=null?r:0};if(d){let k=g==="y"?"height":"width",x=a.reference[g]-a.floating[k]+y.mainAxis,S=a.reference[g]+a.reference[k]-y.mainAxis;h<x?h=x:h>S&&(h=S)}if(f){var _,w;let k=g==="y"?"width":"height",x=nce.has(Mi(s)),S=a.reference[m]-a.floating[k]+(x&&((_=l.offset)==null?void 0:_[m])||0)+(x?0:y.crossAxis),C=a.reference[m]+a.reference[k]+(x?0:((w=l.offset)==null?void 0:w[m])||0)-(x?y.crossAxis:0);b<S?b=S:b>C&&(b=C)}return{[g]:h,[m]:b}}}},lce=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){let{placement:o,rects:r,platform:n,elements:i}=t,{apply:s=()=>{},...a}=od(e,t),l=await n.detectOverflow(t,a),u=Mi(o),d=Nc(o),f=js(o)==="y",{width:p,height:m}=r.floating,g,h;u==="top"||u==="bottom"?(g=u,h=d===(await(n.isRTL==null?void 0:n.isRTL(i.floating))?"start":"end")?"left":"right"):(h=u,g=d==="end"?"top":"bottom");let b=m-l.top-l.bottom,v=p-l.left-l.right,y=tg(m-l[g],b),_=tg(p-l[h],v),w=t.middlewareData.shift,k=!w,x=y,S=_;w!=null&&w.enabled.x&&(S=v),w!=null&&w.enabled.y&&(x=b),k&&!d&&(f?S=p-2*Mc(l.left,l.right):x=m-2*Mc(l.top,l.bottom)),await s({...t,availableWidth:S,availableHeight:x});let C=await n.getDimensions(i.floating);return p!==C.width||m!==C.height?{reset:{rects:!0}}:{}}}};function dce(e){let t=Pn(e),o=parseFloat(t.width)||0,r=parseFloat(t.height)||0,n=Ct(e),i=n?e.offsetWidth:o,s=n?e.offsetHeight:r,a=og(o)!==i||og(r)!==s;return a&&(o=i,r=s),{width:o,height:r,$:a}}function mW(e){return ct(e)?e:e.contextElement}function _w(e){let t=mW(e);if(!Ct(t))return td(1);let o=t.getBoundingClientRect(),{width:r,height:n,$:i}=dce(t),s=(i?og(o.width):o.width)/r,a=(i?og(o.height):o.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var DWe=td(0);function fce(e){let t=St(e);return!nA()||!t.visualViewport?DWe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function VWe(e,t,o){return t===void 0&&(t=!1),!!o&&t&&o===St(e)}function ay(e,t,o,r){t===void 0&&(t=!1),o===void 0&&(o=!1);let n=e.getBoundingClientRect(),i=mW(e),s=td(1);t&&(r?ct(r)&&(s=_w(r)):s=_w(e));let a=VWe(i,o,r)?fce(i):td(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&&r){let p=St(i),m=ct(r)?St(r):r,g=p,h=iA(g);for(;h&&m!==g;){let b=_w(h),v=h.getBoundingClientRect(),y=Pn(h),_=v.left+(h.clientLeft+parseFloat(y.paddingLeft))*b.x,w=v.top+(h.clientTop+parseFloat(y.paddingTop))*b.y;l*=b.x,u*=b.y,d*=b.x,f*=b.y,l+=_,u+=w,g=St(h),h=iA(g)}}return Df({width:d,height:f,x:l,y:u})}function SA(e,t){let o=v1(e).scrollLeft;return t?t.left+o:ay(Ju(e)).left+o}function pce(e,t){let o=e.getBoundingClientRect(),r=o.left+t.scrollLeft-SA(e,o),n=o.top+t.scrollTop;return{x:r,y:n}}function FWe(e){let{elements:t,rect:o,offsetParent:r,strategy:n}=e,i=n==="fixed",s=Ju(r),a=t?y1(t.floating):!1;if(r===s||a&&i)return o;let l={scrollLeft:0,scrollTop:0},u=td(1),d=td(0),f=Ct(r);if((f||!i)&&((Kr(r)!=="body"||Zb(s))&&(l=v1(r)),f)){let m=ay(r);u=_w(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}let p=s&&!f&&!i?pce(s,l):td(0);return{width:o.width*u.x,height:o.height*u.y,x:o.x*u.x-l.scrollLeft*u.x+d.x+p.x,y:o.y*u.y-l.scrollTop*u.y+d.y+p.y}}function zWe(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function jWe(e){let t=v1(e),o=e.ownerDocument.body,r=Mc(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),n=Mc(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight),i=-t.scrollLeft+SA(e),s=-t.scrollTop;return Pn(o).direction==="rtl"&&(i+=Mc(e.clientWidth,o.clientWidth)-r),{width:r,height:n,x:i,y:s}}var HWe=25;function UWe(e,t,o){o===void 0&&(o="viewport");let r=o==="layoutViewport",n=St(e),i=Ju(e),s=n.visualViewport,a=i.clientWidth,l=i.clientHeight,u=0,d=0;if(s){let p=!nA()||t==="fixed";r?p||(u=-s.offsetLeft,d=-s.offsetTop):(a=s.width,l=s.height,p&&(u=s.offsetLeft,d=s.offsetTop))}if(SA(i)<=0){let p=i.ownerDocument,m=p.body,g=getComputedStyle(m),h=p.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,b=Math.abs(i.clientWidth-m.clientWidth-h),v=getComputedStyle(i).scrollbarGutter==="stable both-edges"?b/2:b;v<=HWe&&(a-=v)}return{width:a,height:l,x:u,y:d}}function WWe(e,t){let o=ay(e,!0,t==="fixed"),r=o.top+e.clientTop,n=o.left+e.clientLeft,i=_w(e),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 cce(e,t,o){let r;if(t==="viewport"||t==="layoutViewport")r=UWe(e,o,t);else if(t==="document")r=jWe(Ju(e));else if(ct(t))r=WWe(t,o);else{let n=fce(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Df(r)}function GWe(e,t){let o=t.get(e);if(o)return o;let r=Qm(e,[],!1).filter(a=>ct(a)&&Kr(a)!=="body"),n=null,i=Pn(e).position==="fixed",s=i?Qu(e):e;for(;ct(s)&&!ed(s);){let a=Pn(s),l=rA(s),u=n?n.position:i?"fixed":"";!l&&(u==="fixed"||u==="absolute"&&a.position==="static")?r=r.filter(f=>f!==s):n=a,s=Qu(s)}return t.set(e,r),r}function $We(e){let{element:t,boundary:o,rootBoundary:r,strategy:n}=e,s=[...o==="clippingAncestors"?y1(t)?[]:GWe(t,this._c):[].concat(o),r],a=cce(t,s[0],n),l=a.top,u=a.right,d=a.bottom,f=a.left;for(let p=1;p<s.length;p++){let m=cce(t,s[p],n);l=Mc(m.top,l),u=tg(m.right,u),d=tg(m.bottom,d),f=Mc(m.left,f)}return{width:u-f,height:d-l,x:f,y:l}}function YWe(e){let{width:t,height:o}=dce(e);return{width:t,height:o}}function KWe(e,t,o){let r=Ct(t),n=Ju(t),i=o==="fixed",s=ay(e,!0,i,t),a={scrollLeft:0,scrollTop:0},l=td(0);if((r||!i)&&((Kr(t)!=="body"||Zb(n))&&(a=v1(t)),r)){let p=ay(t,!0,i,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}!r&&n&&(l.x=SA(n));let u=n&&!r&&!i?pce(n,a):td(0),d=s.left+a.scrollLeft-l.x-u.x,f=s.top+a.scrollTop-l.y-u.y;return{x:d,y:f,width:s.width,height:s.height}}function pW(e){return Pn(e).position==="static"}function uce(e,t){if(!Ct(e)||Pn(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return Ju(e)===o&&(o=o.ownerDocument.body),o}function mce(e,t){let o=St(e);if(y1(e))return o;if(!Ct(e)){let n=Qu(e);for(;n&&!ed(n);){if(ct(n)&&!pW(n))return n;n=Qu(n)}return o}let r=uce(e,t);for(;r&&Zae(r)&&pW(r);)r=uce(r,t);return r&&ed(r)&&pW(r)&&!rA(r)?o:r||Xae(e)||o}var qWe=async function(e){let t=this.getOffsetParent||mce,o=this.getDimensions,r=await o(e.floating);return{reference:KWe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ZWe(e){return Pn(e).direction==="rtl"}var N1={convertOffsetParentRelativeRectToViewportRelativeRect:FWe,getDocumentElement:Ju,getClippingRect:$We,getOffsetParent:mce,getElementRects:qWe,getClientRects:zWe,getDimensions:YWe,getScale:_w,isElement:ct,isRTL:ZWe};function gce(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function XWe(e,t,o){let r=null,n,i=Ju(e);function s(){var d;clearTimeout(n),(d=r)==null||d.disconnect(),r=null}function a(d,f){d===void 0&&(d=!1),f===void 0&&(f=1),s();let p=e.getBoundingClientRect(),{left:m,top:g,width:h,height:b}=p;if(d||t(),!h||!b)return;let v=T1(g),y=T1(i.clientWidth-(m+h)),_=T1(i.clientHeight-(g+b)),w=T1(m),x={rootMargin:-v+"px "+-y+"px "+-_+"px "+-w+"px",threshold:Mc(0,tg(1,f))||1},S=!0;function C(R){let E=R[0].intersectionRatio;if(!gce(p,e.getBoundingClientRect()))return a();if(E!==f){if(!S)return a();E?a(!1,E):n=setTimeout(()=>{a(!1,1e-7)},1e3)}S=!1}try{r=new IntersectionObserver(C,{...x,root:i.ownerDocument})}catch{r=new IntersectionObserver(C,x)}r.observe(e)}let l=St(e),u=()=>a(o);return l.addEventListener("resize",u),a(!0),()=>{l.removeEventListener("resize",u),s()}}function L1(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=mW(e),d=n||i?[...u?Qm(u):[],...t?Qm(t):[]]:[];d.forEach(v=>{n&&v.addEventListener("scroll",o),i&&v.addEventListener("resize",o)});let f=u&&a?XWe(u,o,i):null,p=-1,m=null;s&&(m=new ResizeObserver(v=>{let[y]=v;y&&y.target===u&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var _;(_=m)==null||_.observe(t)})),o()}),u&&!l&&m.observe(u),t&&m.observe(t));let g,h=l?ay(e):null;l&&b();function b(){let v=ay(e);h&&!gce(h,v)&&o(),h=v,g=requestAnimationFrame(b)}return o(),()=>{var v;d.forEach(y=>{n&&y.removeEventListener("scroll",o),i&&y.removeEventListener("resize",o)}),f?.(),(v=m)==null||v.disconnect(),m=null,l&&cancelAnimationFrame(g)}}var hce=ice;var bce=sce,yce=rce,vce=lce;var _ce=ace,CA=(e,t,o)=>{let r=new Map,n=o??{},i={...N1,...n.platform,_c:r};return oce(e,t,{...n,platform:i})};var mn=c(re(),1),kce=c(re(),1),xce=c(Of(),1),JWe=typeof document<"u",eGe=function(){},EA=JWe?kce.useLayoutEffect:eGe;function TA(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(!TA(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)&&!TA(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Sce(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function wce(e,t){let o=Sce(e);return Math.round(t*o)/o}function gW(e){let t=mn.useRef(e);return EA(()=>{t.current=e}),t}function Cce(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]=mn.useState({x:0,y:0,strategy:o,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=mn.useState(r);TA(p,r)||m(r);let[g,h]=mn.useState(null),[b,v]=mn.useState(null),y=mn.useCallback(M=>{M!==x.current&&(x.current=M,h(M))},[]),_=mn.useCallback(M=>{M!==S.current&&(S.current=M,v(M))},[]),w=i||g,k=s||b,x=mn.useRef(null),S=mn.useRef(null),C=mn.useRef(d),R=l!=null,E=gW(l),I=gW(n),O=gW(u),A=mn.useCallback(()=>{if(!x.current||!S.current)return;let M={placement:t,strategy:o,middleware:p};I.current&&(M.platform=I.current),CA(x.current,S.current,M).then(V=>{let j={...V,isPositioned:O.current!==!1};P.current&&!TA(C.current,j)&&(C.current=j,xce.flushSync(()=>{f(j)}))})},[p,t,o,I,O]);EA(()=>{u===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,f(M=>({...M,isPositioned:!1})))},[u]);let P=mn.useRef(!1);EA(()=>(P.current=!0,()=>{P.current=!1}),[]),EA(()=>{if(w&&(x.current=w),k&&(S.current=k),w&&k){if(E.current)return E.current(w,k,A);A()}},[w,k,A,E,R]);let L=mn.useMemo(()=>({reference:x,floating:S,setReference:y,setFloating:_}),[y,_]),H=mn.useMemo(()=>({reference:w,floating:k}),[w,k]),N=mn.useMemo(()=>{let M={position:o,left:0,top:0};if(!H.floating)return M;let V=wce(H.floating,d.x),j=wce(H.floating,d.y);return a?{...M,transform:"translate("+V+"px, "+j+"px)",...Sce(H.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:V,top:j}},[o,a,H.floating,d.x,d.y]);return mn.useMemo(()=>({...d,update:A,refs:L,elements:H,floatingStyles:N}),[d,A,L,H,N])}var hW=(e,t)=>{let o=hce(e);return{name:o.name,fn:o.fn,options:[e,t]}},bW=(e,t)=>{let o=bce(e);return{name:o.name,fn:o.fn,options:[e,t]}},yW=(e,t)=>({fn:_ce(e).fn,options:[e,t]}),vW=(e,t)=>{let o=yce(e);return{name:o.name,fn:o.fn,options:[e,t]}},_W=(e,t)=>{let o=vce(e);return{name:o.name,fn:o.fn,options:[e,t]}};var RA=class{attachedStores=[];attachedStoreValue=null;storeListeners=new Set;constructor(t,o,r=!0){this.fallbackStore=t,this.componentName=o,this.throwOnMissingTrigger=r}get attachedStore(){return this.attachedStoreValue}get store(){return this.attachedStoreValue??this.fallbackStore}get serverStore(){return this.fallbackStore}subscribeStore(t){return this.storeListeners.add(t),()=>{this.storeListeners.delete(t)}}attachStore(t){return this.attachedStores.push(t),this.setActiveStore(t),()=>{let o=this.attachedStores.lastIndexOf(t);o!==-1&&this.attachedStores.splice(o,1),this.setActiveStore(this.attachedStores[this.attachedStores.length-1]??null)}}setActiveStore(t){this.attachedStoreValue!==t&&(this.attachedStoreValue=t,this.storeListeners.forEach(o=>{o()}))}openByTrigger(t){let o=this.attachedStore;if(o===null)return;let r;if(t){for(let n=this.attachedStores.length-1;n>=0&&!r;n-=1)r=this.attachedStores[n].context.triggerElements.getById(t);r??=this.fallbackStore.context.triggerElements.getById(t)}if(t&&!r&&this.throwOnMissingTrigger)throw new Error(Ut(99,this.componentName,t,this.componentName));o.setOpen(!0,$e(Te.imperativeAction,void 0,r))}closePopup(){let t=this.attachedStore;t!==null&&t.setOpen(!1,$e(Te.imperativeAction))}};var cy=c(re(),1),Hce=c(Of(),1);var zce=c(re(),1);var Dce=c(re(),1),CW=c(D1(),1),Vce=c(Oce(),1);var Ace=c(re(),1);var kW=[],xW;function Mce(){return xW}function Nce(e){kW.push(e)}function SW(e){let t=(o,r)=>{let n=eo(yGe).current,i;try{xW=n;for(let s of kW)s.before(n);i=e(o,r);for(let s of kW)s.after(n);n.didInitialize=!0}finally{xW=void 0}return i};return t.displayName=e.displayName||e.name,t}function Lce(e){return Ace.forwardRef(SW(e))}function yGe(){return{didInitialize:!1}}var vGe=lw(19),_Ge=vGe?kGe:xGe;function Ve(e,t,o,r,n){return _Ge(e,t,o,r,n)}function wGe(e,t,o,r,n){let i=Dce.useCallback(()=>t(e.getSnapshot(),o,r,n),[e,t,o,r,n]);return(0,CW.useSyncExternalStore)(e.subscribe,i,i)}Nce({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);Object.is(r.value,n)||(t=!0,r.value=n)}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,CW.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function kGe(e,t,o,r,n){let i=Mce();if(!i)return wGe(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.value=t(e.getSnapshot(),o,r,n))):(a={store:e,selector:t,a1:o,a2:r,a3:n,value:t(e.getSnapshot(),o,r,n)},i.syncHooks.push(a)),a.value}function xGe(e,t,o,r,n){return(0,Vce.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,i=>t(i,o,r,n))}var IA=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 Ve(this,t,o,r,n)}};var ly=c(re(),1);var rd=class extends IA{constructor(t,o={},r){super(t),this.context=o,this.selectors=r}useSyncedValue(t,o){ly.useDebugValue(t);let r=this;le(()=>{r.state[t]!==o&&r.set(t,o)},[r,t,o])}useSyncedValueWithCleanup(t,o){let r=this;le(()=>(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);le(()=>{o.update(t)},[o,...r])}useControlledProp(t,o){ly.useDebugValue(t);let r=this,n=o!==void 0;le(()=>{n&&!Object.is(r.state[t],o)&&r.setState({...r.state,[t]:o})},[r,t,o,n])}select(t,o,r,n){let i=this.selectors[t];return i(this.state,o,r,n)}useState(t,o,r,n){return ly.useDebugValue(t),Ve(this,this.selectors[t],o,r,n)}useContextCallback(t,o){ly.useDebugValue(t);let r=de(o??At);this.context[t]=r}useStateSetter(t){let o=ly.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 PA=c(re(),1);function Fce(){let[,e]=PA.useState({});return PA.useCallback(()=>{e({})},[])}var SGe={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId},nd=class extends rd{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:Kle(),nested:r,triggerElements:i},SGe),this.syncOnly=o}syncOpenEvent=(t,o)=>{(!t||!this.state.open||o!=null&&gle(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)}};function jce(e){let{popupStore:t,treatPopupAsFloatingElement:o=!1,floatingRootContext:r,floatingId:n,nested:i,onOpenChange:s}=e,a=t.useState("open"),l=t.useState("activeTriggerElement"),u=t.useState(o?"popupElement":"positionerElement"),d=t.context.triggerElements,f=s,p=zce.useRef(null);r===void 0&&p.current===null&&(p.current=new nd({open:a,transitionStatus:void 0,referenceElement:l,floatingElement:u,triggerElements:d,onOpenChange:f,floatingId:n,syncOnly:!0,nested:i}));let m=r??p.current;return t.useSyncedValue("floatingId",n),le(()=>{let g={open:a,floatingId:n,referenceElement:l,floatingElement:u};ct(l)&&(g.domReferenceElement=l),m.state.positionReference===m.state.referenceElement&&(g.positionReference=l),m.update(g)},[a,n,l,u,m]),m.context.onOpenChange=f,m.context.nested=i,m}var OA={tabIndex:-1,[k1]:""};function Uce(e,t=!1){let o=Xm(),r=ng()!=null,n=eo(()=>e(o,r)).current;return jce({popupStore:n,treatPopupAsFloatingElement:t,floatingRootContext:n.state.floatingRootContext,floatingId:o,nested:r,onOpenChange:n.setOpen}),n}function Wce({handle:e,store:t}){return le(()=>e.attachStore(t),[e,t]),null}function CGe(e,t){let o=cy.useRef(null),r=cy.useRef(null);return cy.useCallback(n=>{if(e===void 0)return;let i=!1;if(o.current!==null){let s=o.current,a=r.current,l=t.context.triggerElements.getById(s);a&&l===a&&(t.context.triggerElements.delete(s),i=!0),o.current=null,r.current=null}if(n!==null&&(o.current=e,r.current=n,t.context.triggerElements.add(e,n),i=!0),i){let s=t.context.triggerElements.size;t.select("open")&&t.state.triggerCount!==s&&t.set("triggerCount",s)}},[t,e])}function EGe(e,t,o,r=!1){t?e.preventUnmountingOnClose=!1:r&&(e.preventUnmountingOnClose=!0);let n=o?.id??null;(n||t)&&(e.activeTriggerId=n,e.activeTriggerElement=o??null)}function TGe(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function Gce(e,t,o,r={}){let n=o.reason,i=n===Te.triggerHover,s=t&&n===Te.triggerFocus,a=!t&&(n===Te.triggerPress||n===Te.escapeKey),l=TGe(o);if(e.context.onOpenChange?.(t,o),o.isCanceled)return;r.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,o);let u=()=>{let d={...r.extraState,open:t};s?d.instantType="focus":a?d.instantType="dismiss":i&&(d.instantType=void 0),EGe(d,t,o.trigger,l()),e.update(d)};i?Hce.flushSync(u):u()}function $ce(e,t,o,r){let n=o.useState("isMountedByTrigger",e),i=CGe(e,o),s=de(l=>{let u=o.select("open"),d=o.select("activeTriggerId");if(d===e){o.update({activeTriggerElement:l,...u?r:null});return}d==null&&u&&o.update({activeTriggerId:e,activeTriggerElement:l,...r})}),a=cy.useCallback(l=>{i(l),l&&s(l)},[i,s]);return le(()=>{n&&o.update({activeTriggerElement:t.current,...r})},[n,o,t,...Object.values(r)]),{registerTrigger:a,isMountedByThisTrigger:n}}function Yce(e,t={}){let{closeOnActiveTriggerUnmount:o=!1}=t,r=cy.useRef(null),n=e.useState("open"),i=e.useState("triggerCount"),s=e.useState("activeTriggerId"),a=e.useState("activeTriggerElement");le(()=>{if(!n){r.current=null,e.state.triggerCount!==0&&e.set("triggerCount",0);return}let l=e.context.triggerElements.size,u={};e.state.triggerCount!==l&&(u.triggerCount=l);let d=e.select("activeTriggerId"),f=null;if(d){let p=e.context.triggerElements.getById(d);if(p)r.current=d,p!==e.state.activeTriggerElement&&(u.activeTriggerElement=p);else{for(let[m,g]of e.context.triggerElements.entries())if(g===e.state.activeTriggerElement){u.activeTriggerId=m,u.activeTriggerElement=g,r.current=m;break}u.activeTriggerId===void 0&&(r.current===d?f=d:r.current=null)}}else r.current=null;if(!f&&!d&&l===1){let p=e.context.triggerElements.entries().next();if(!p.done){let[m,g]=p.value;u.activeTriggerId=m,u.activeTriggerElement=g,r.current=m}}(u.triggerCount!==void 0||u.activeTriggerId!==void 0||u.activeTriggerElement!==void 0)&&e.update(u),f&&o&&queueMicrotask(()=>{if(e.select("open")&&e.select("activeTriggerId")===f&&!e.context.triggerElements.getById(f)){let p=$e(Te.none);e.setOpen(!1,p),p.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[n,e,i,s,a,o])}function Kce(e,t,o){let{mounted:r,setMounted:n,transitionStatus:i}=Pi(e),s=t.useState("preventUnmountingOnClose"),a=e?!1:s;t.useSyncedValues({mounted:r,transitionStatus:i,preventUnmountingOnClose:a});let l=de(()=>{n(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),o?.(),t.context.onOpenChangeComplete?.(!1)});return Wn({enabled:r&&!e&&!a,open:e,ref:t.context.popupRef,onComplete(){e||l()}}),{forceUnmount:l,transitionStatus:i}}function qce(e,t){e.useSyncedValues(t),le(()=>()=>{e.update({activeTriggerProps:Wt,inactiveTriggerProps:Wt,popupProps:Wt})},[e])}var Ff=class{constructor(){this.idMap=new Map}add(t,o){this.idMap.set(t,o)}delete(t){this.idMap.delete(t)}hasElement(t){for(let o of this.idMap.values())if(o===t)return!0;return!1}hasMatchingElement(t){for(let o of this.idMap.values())if(t(o))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}};function Zce(){return new nd({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new Ff,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}function Qce(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:Zce(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:Wt,inactiveTriggerProps:Wt,popupProps:Wt}}function Jce(e,t,o=!1){return new nd({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:o,onOpenChange:void 0})}var V1=e=>e.triggerIdProp??e.activeTriggerId,EW=e=>e.openProp??e.open,Xce=e=>(e.popupElement?.id??e.floatingId)||void 0;function eue(e,t){return t!==void 0&&EW(e)&&V1(e)===t}function RGe(e,t){return eue(e,t)?!0:t!==void 0&&EW(e)&&V1(e)==null&&e.triggerCount===1}var tue={open:EW,mounted:e=>e.mounted,transitionStatus:e=>e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:V1,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:Xce,isTriggerActive:(e,t)=>t!==void 0&&V1(e)===t,isOpenedByTrigger:(e,t)=>eue(e,t),isMountedByTrigger:(e,t)=>t!==void 0&&V1(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>RGe(e,t)?Xce(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement};var TW=c(re(),1),oue=c(D1(),1);function rue(e){let t=TW.useCallback(r=>e===void 0?At:e.subscribeStore(r),[e]),o=TW.useCallback(()=>e===void 0?void 0:e.store,[e]);return(0,oue.useSyncExternalStore)(t,o,()=>e?.serverStore)}function RW(e){let{open:t=!1,onOpenChange:o,elements:r={}}=e,n=Xm(),i=ng()!=null,s=eo(()=>new nd({open:t,transitionStatus:void 0,onOpenChange:o,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new Ff,floatingId:n,syncOnly:!1,nested:i})).current;return le(()=>{let a={open:t,floatingId:n};r.reference!==void 0&&(a.referenceElement=r.reference,a.domReferenceElement=ct(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 nue(e){return BGe(e,e.rootContext)}function BGe(e,t){let{nodeId:o,externalTree:r}=e,n=t.useState("referenceElement"),i=t.useState("floatingElement"),s=t.useState("domReferenceElement"),a=t.useState("open"),l=t.useState("floatingId"),[u,d]=Li.useState(null),[f,p]=Li.useState(void 0),[m,g]=Li.useState(void 0),h=Li.useRef(null),b=vl(r),v=Li.useMemo(()=>({reference:n,floating:i,domReference:s}),[n,i,s]),y=Cce({...e,elements:{...v,...u&&{reference:u}}}),_=ct(f)?f:null,w=m===void 0?t.state.floatingElement:m;t.useSyncedValue("referenceElement",f??null),t.useSyncedValue("domReferenceElement",f===void 0?s:_),t.useSyncedValue("floatingElement",w);let k=Li.useCallback(I=>{let O=ct(I)?{getBoundingClientRect:()=>I.getBoundingClientRect(),getClientRects:()=>I.getClientRects(),contextElement:I}:I;d(O),y.refs.setReference(O)},[y.refs]),x=Li.useCallback(I=>{(ct(I)||I===null)&&(h.current=I,p(I)),(ct(y.refs.reference.current)||y.refs.reference.current===null||I!==null&&!ct(I))&&y.refs.setReference(I)},[y.refs,p]),S=Li.useCallback(I=>{g(I),y.refs.setFloating(I)},[y.refs]),C=Li.useMemo(()=>({...y.refs,setReference:x,setFloating:S,setPositionReference:k,domReference:h}),[y.refs,x,S,k]),R=Li.useMemo(()=>({...y.elements,domReference:s}),[y.elements,s]),E=Li.useMemo(()=>({...y,dataRef:t.context.dataRef,open:a,onOpenChange:t.setOpen,events:t.context.events,floatingId:l,refs:C,elements:R,nodeId:o,rootStore:t}),[y,C,R,o,t,a,l]);return le(()=>{s&&(h.current=s)},[s]),le(()=>{t.context.dataRef.current.floatingContext=E;let I=b?.nodesRef.current.find(O=>O.id===o);I&&(I.context=E)}),Li.useMemo(()=>({...y,context:E,refs:C,elements:R,rootStore:t}),[y,C,R,E,t])}var id=c(re(),1);var BW=mo.os.mac&&mo.engine.webkit;function IW(e,t={}){let{enabled:o=!0,delay:r}=t,n="rootStore"in e?e.rootStore:e,{events:i,dataRef:s}=n.context,a=id.useRef(!1),l=id.useRef(null),u=id.useRef(!0),d=Fo();id.useEffect(()=>{let p=n.select("domReferenceElement");if(!o)return;let m=St(p);function g(){let v=n.select("domReferenceElement");!n.select("open")&&Ct(v)&&v===_r(ot(v))&&(a.current=!0)}function h(){u.current=!0}function b(){u.current=!1}return Ai(ut(m,"blur",g),BW&&ut(m,"keydown",h,!0),BW&&ut(m,"pointerdown",b,!0))},[n,o]),id.useEffect(()=>{if(!o)return;function p(m){if(m.reason===Te.triggerPress||m.reason===Te.escapeKey){let g=n.select("domReferenceElement");ct(g)&&(l.current=g,a.current=!0)}}return i.on("openchange",p),()=>{i.off("openchange",p)}},[i,o,n]);let f=id.useMemo(()=>{function p(){a.current=!1,l.current=null}return{onMouseLeave(){p()},onFocus(m){let g=m.currentTarget;if(a.current){if(l.current===g)return;p()}let h=ko(m.nativeEvent);if(ct(h)){if(BW&&!m.relatedTarget){if(!u.current&&!Jb(h))return}else if(!ble(h))return}let b=eg(m.relatedTarget,n.context.triggerElements),{nativeEvent:v,currentTarget:y}=m,_=typeof r=="function"?r():r;if(n.select("open")&&b||_===0||_===void 0){n.setOpen(!0,$e(Te.triggerFocus,v,y));return}d.start(_,()=>{a.current||n.setOpen(!0,$e(Te.triggerFocus,v,y))})},onBlur(m){p();let g=m.relatedTarget,h=m.nativeEvent,b=ct(g)&&g.hasAttribute(Vf("focus-guard"))&&g.getAttribute("data-type")==="outside";d.start(0,()=>{let v=n.select("domReferenceElement"),y=_r(ot(v));!g&&y===v||We(s.current.floatingContext?.refs.floating.current,y)||We(v,y)||b||eg(g??y,n.context.triggerElements)||n.setOpen(!1,$e(Te.triggerFocus,h))})}}},[s,r,n,d]);return id.useMemo(()=>o?{reference:f,trigger:f}:{},[o,f])}var OW=c(re(),1);var PW=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 Oi,this.restTimeout=new Oi,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},AA=new WeakMap;function kw(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&AA.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty("pointer-events"),e.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),e.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),AA.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function MA(e,t){let{scopeElement:o,referenceElement:r,floatingElement:n}=t,i=AA.get(o);i&&i!==e&&kw(i),kw(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=o,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=n,AA.set(o,e),o.style.pointerEvents="none",r.style.pointerEvents="auto",n.style.pointerEvents="auto"}function xw(e){let t=e.context.dataRef.current,o=eo(()=>t.hoverInteractionState??PW.create()).current;return t.hoverInteractionState||(t.hoverInteractionState=o),cw(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function AW(e,t={}){let{enabled:o=!0,closeDelay:r=0,nodeId:n}=t,i="rootStore"in e?e.rootStore:e,s=i.useState("open"),a=i.useState("floatingElement"),l=i.useState("domReferenceElement"),{dataRef:u}=i.context,d=vl(),f=ng(),p=xw(i),m=Fo(),g=de(()=>fA(u.current.openEvent?.type,p.interactedInside)),h=de(()=>yle(u.current.openEvent?.type)),b=de(()=>{kw(p)});le(()=>{s||(p.pointerType=void 0,p.restTimeoutPending=!1,p.interactedInside=!1,b())},[s,p,b]),OW.useEffect(()=>b,[b]),le(()=>{if(o&&s&&p.handleCloseOptions?.blockPointerEvents&&h()&&ct(l)&&a){let v=l,y=a,_=ot(a),w=d?.nodesRef.current.find(C=>C.id===f)?.context?.elements.floating;w&&(w.style.pointerEvents="");let k=p.pointerEventsScopeElement!==y?p.pointerEventsScopeElement:null,x=w!==y?w:null,S=p.handleCloseOptions?.getScope?.()??k??x??v.closest("[data-rootownerid]")??_.body;return MA(p,{scopeElement:S,referenceElement:v,floatingElement:y}),()=>{b()}}},[o,s,l,a,p,h,d,f,b]),OW.useEffect(()=>{if(!o)return;function v(){return!!(d&&f&&yl(d.nodesRef.current,f).length>0)}function y(C){let R=hl(r,"close",p.pointerType),E=()=>{i.setOpen(!1,$e(Te.triggerHover,C)),d?.events.emit("floating.closed",C)};R?p.openChangeTimeout.start(R,E):(p.openChangeTimeout.clear(),E())}function _(C){let R=ko(C);if(!YU(R)){p.interactedInside=!1;return}p.interactedInside=R?.closest("[aria-haspopup]")!=null}function w(){p.openChangeTimeout.clear(),m.clear(),d?.events.off("floating.closed",x),b()}function k(C){if(v()&&d){d.events.on("floating.closed",x);return}if(eg(C.relatedTarget,i.context.triggerElements))return;let R=u.current.floatingContext?.nodeId??n,E=C.relatedTarget;if(!(d&&R&&ct(E)&&yl(d.nodesRef.current,R,!1).some(O=>We(O.context?.elements.floating,E)))){if(p.handler){p.handler(C);return}b(),h()&&!g()&&y(C)}}function x(C){!d||!f||v()||m.start(0,()=>{d.events.off("floating.closed",x),i.setOpen(!1,$e(Te.triggerHover,C)),d.events.emit("floating.closed",C)})}let S=a;return Ai(S&&ut(S,"mouseenter",w),S&&ut(S,"mouseleave",k),S&&ut(S,"pointerdown",_,!0),()=>{d?.events.off("floating.closed",x)})},[o,a,i,u,r,n,h,g,b,p,d,f,m])}var sg=c(re(),1),iue=c(Of(),1);var IGe={current:null};function MW(e,t={}){let{enabled:o=!0,delay:r=0,handleClose:n=null,mouseOnly:i=!1,restMs:s=0,move:a=!0,triggerElementRef:l=IGe,externalTree:u,isActiveTrigger:d=!0,getHandleCloseContext:f,isClosing:p,shouldOpen:m,guardStaleOpen:g=!1}=t,h="rootStore"in e?e.rootStore:e,{dataRef:b,events:v}=h.context,y=vl(u),_=xw(h),w=sg.useRef(!1),k=so(n),x=so(r),S=so(s),C=so(o),R=so(m),E=so(p),I=de(()=>fA(b.current.openEvent?.type,_.interactedInside)),O=de(()=>R.current?.()!==!1),A=de((H,N,M)=>{let V=h.context.triggerElements;if(V.hasElement(N))return!H||!We(H,N);if(!ct(M))return!1;let j=M;return V.hasMatchingElement(D=>We(D,j))&&(!H||!We(H,j))}),P=de(()=>{if(!_.handler)return;ot(h.select("domReferenceElement")).removeEventListener("mousemove",_.handler),_.handler=void 0}),L=de(()=>{kw(_)});return d&&(_.handleCloseOptions=k.current?.__options),sg.useEffect(()=>P,[P]),sg.useEffect(()=>{if(!o)return;function H(N){N.open?w.current=!1:(w.current=N.reason===Te.triggerHover,P(),_.openChangeTimeout.clear(),_.restTimeout.clear(),_.blockMouseMove=!0,_.restTimeoutPending=!1)}return v.on("openchange",H),()=>{v.off("openchange",H)}},[o,v,_,P]),sg.useEffect(()=>{if(!o)return;function H(z,W=!0){let ee=hl(x.current,"close",_.pointerType);ee?_.openChangeTimeout.start(ee,()=>{h.setOpen(!1,$e(Te.triggerHover,z)),y?.events.emit("floating.closed",z)}):W&&(_.openChangeTimeout.clear(),h.setOpen(!1,$e(Te.triggerHover,z)),y?.events.emit("floating.closed",z))}let N=l.current??(d?h.select("domReferenceElement"):null);if(!ct(N))return;function M(z){if(_.openChangeTimeout.clear(),_.blockMouseMove=!1,i&&!Sa(_.pointerType))return;let W=KU(S.current),ee=hl(x.current,"open",_.pointerType),J=ko(z),U=z.currentTarget??null,Q=h.select("domReferenceElement"),Z=U;if(ct(J)&&!h.context.triggerElements.hasElement(J)){for(let ye of h.context.triggerElements.elements())if(We(ye,J)){Z=ye;break}}ct(U)&&ct(Q)&&!h.context.triggerElements.hasElement(U)&&We(U,Q)&&(Z=Q);let K=Z==null?!1:A(Q,Z,J),X=h.select("open"),oe=E.current?.()??h.select("transitionStatus")==="ending",ie=!X&&oe&&w.current,se=!K&&ct(Z)&&ct(Q)&&We(Q,Z)&&ie,be=W>0&&!ee,pe=K&&(X||ie)||se,ke=!X||K;if(pe){O()&&h.setOpen(!0,$e(Te.triggerHover,z,Z));return}be||(ee?_.openChangeTimeout.start(ee,()=>{ke&&O()&&h.setOpen(!0,$e(Te.triggerHover,z,Z))}):ke&&O()&&h.setOpen(!0,$e(Te.triggerHover,z,Z)))}function V(z){if(I()){L();return}P();let W=h.select("domReferenceElement"),ee=ot(W);_.restTimeout.clear(),_.restTimeoutPending=!1;let J=b.current.floatingContext??f?.();if(eg(z.relatedTarget,h.context.triggerElements))return;if(k.current&&J){h.select("open")||_.openChangeTimeout.clear();let Q=l.current;_.handler=k.current({...J,tree:y,x:z.clientX,y:z.clientY,onClose(){L(),P(),C.current&&!I()&&Q===h.select("domReferenceElement")&&H(z,!0)}}),ee.addEventListener("mousemove",_.handler),_.handler(z);return}(_.pointerType!=="touch"||!We(h.select("floatingElement"),z.relatedTarget))&&H(z)}function j(z){We(N,z.relatedTarget)||(_.openChangeTimeout.clear(),_.restTimeout.clear(),_.restTimeoutPending=!1)}let D=g?ut(N,"mouseout",j):void 0;return a?Ai(ut(N,"mousemove",M,{once:!0}),ut(N,"mouseenter",M),ut(N,"mouseleave",V),D):Ai(ut(N,"mouseenter",M),ut(N,"mouseleave",V),D)},[P,L,b,x,h,o,k,_,d,A,I,i,a,S,l,y,C,f,E,O,g]),sg.useMemo(()=>{if(!o)return;function H(N){_.pointerType=N.pointerType}return{onPointerDown:H,onPointerEnter:H,onMouseMove(N){let{nativeEvent:M}=N,V=N.currentTarget,j=h.select("domReferenceElement"),D=h.select("open"),z=A(j,V,N.target);if(i&&!Sa(_.pointerType))return;if(D&&z&&_.handleCloseOptions?.blockPointerEvents){let J=h.select("floatingElement");if(J){let U=_.handleCloseOptions?.getScope?.()??V.ownerDocument.body;MA(_,{scopeElement:U,referenceElement:V,floatingElement:J})}}let W=KU(S.current);if(D&&!z||W===0||!z&&_.restTimeoutPending&&N.movementX**2+N.movementY**2<2)return;_.restTimeout.clear();function ee(){if(_.restTimeoutPending=!1,I())return;let J=h.select("open");!_.blockMouseMove&&(!J||z)&&O()&&h.setOpen(!0,$e(Te.triggerHover,M,V))}_.pointerType==="touch"?iue.flushSync(()=>{ee()}):z&&D?ee():(_.restTimeoutPending=!0,_.restTimeout.start(W,ee))}}},[o,_,I,A,i,h,S,O])}var fi=c(re(),1);var PGe="Escape";function sue(e){return mo.engine.webkit&&e.movementX===0&&e.movementY===0}function LA(e,t,o){switch(e){case"vertical":return t;case"horizontal":return o;default:return t||o}}function NA(e,t){return LA(t,e===$U||e===uA,e===x1||e===S1)}function NW(e,t,o){return LA(t,e===uA,o?e===x1:e===S1)||e==="Enter"||e===" "||e===""}function OGe(e,t,o){return LA(t,o?e===x1:e===S1,e===uA)}function AGe(e,t,o,r){let n=o?e===S1:e===x1,i=e===$U;return t==="both"||t==="horizontal"&&r?e===PGe:LA(t,n,i)}function LW(e,t){let{listRef:o,activeIndex:r,onNavigate:n=()=>{},enabled:i=!0,selectedIndex:s=null,allowEscape:a=!1,loopFocus:l=!1,nested:u=!1,rtl:d=!1,virtual:f=!1,focusItemOnOpen:p="auto",focusItemOnHover:m=!0,openOnArrowKeyDown:g=!0,disabledIndices:h=void 0,orientation:b="vertical",parentOrientation:v,id:y,resetOnPointerLeave:_=!0,externalTree:w,grid:k}=t,x=k!=null,S="rootStore"in e?e.rootStore:e,C=S.useState("open"),R=S.useState("floatingElement"),E=S.useState("domReferenceElement"),I=S.context.dataRef,O=ey(R),A=C1(E),P=so(O),L=ng(),H=vl(w),N=fi.useRef(p),M=fi.useRef(s??-1),V=fi.useRef(null),j=fi.useRef(!0),D=de(ne=>{n(M.current===-1?null:M.current,ne)}),z=fi.useRef(!!R),W=fi.useRef(C),ee=fi.useRef(!1),J=fi.useRef(!1),U=fi.useRef(null),Q=so(h),Z=so(C),K=so(s),X=so(_),oe=ss(),ie=ss(),se=de(()=>{function ne(Ae){f?H?.events.emit("virtualfocus",Ae):U.current=vw(Ae,{sync:ee.current,preventScroll:!0})}let ae=o.current[M.current],Ee=J.current;ae&&ne(ae),(ee.current?Ae=>Ae():Ae=>oe.request(Ae))(()=>{let Ae=o.current[M.current]||ae;if(!Ae)return;ae||ne(Ae),_e&&(Ee||!j.current)&&Ae.scrollIntoView?.({block:"nearest",inline:"nearest"})})});le(()=>{I.current.orientation=b},[I,b]),le(()=>{i&&(C&&R?(M.current=s??-1,N.current&&s!=null&&(J.current=!0,D())):z.current&&(M.current=-1,D()))},[i,C,R,s,D]),le(()=>{if(i){if(!C){ee.current=!1;return}if(R)if(r==null){if(ee.current=!1,K.current!=null)return;if(z.current&&(M.current=-1,se()),(!W.current||!z.current)&&N.current&&(V.current!=null||N.current===!0&&V.current==null)){let ne=0,ae=()=>{o.current[0]==null?(ne<2&&(ne?he=>ie.request(he):queueMicrotask)(ae),ne+=1):(M.current=V.current==null||NW(V.current,b,d)||u?ty(o):yw(o),V.current=null,D())};ae()}}else rg(o.current,r)||(M.current=r,se(),J.current=!1)}},[i,C,R,r,K,u,o,b,d,D,se,ie]),le(()=>{if(!i||R||!H||f||!z.current)return;let ne=H.nodesRef.current,ae=ne.find(Ae=>Ae.id===L)?.context?.elements.floating,Ee=_r(ot(E??ae??null)),he=ne.some(Ae=>Ae.context&&We(Ae.context.elements.floating,Ee));ae&&!he&&j.current&&ae.focus({preventScroll:!0})},[i,R,E,H,L,f]),le(()=>{W.current=C,z.current=!!R}),le(()=>{C||(V.current=null,N.current=p)},[C,p]);let be=r!=null,pe=de(ne=>{if(!Z.current)return;let ae=o.current.indexOf(ne.currentTarget);ae!==-1&&(M.current!==ae||r!==ae)&&(M.current=ae,D(ne))}),ke=de(()=>v??H?.nodesRef.current.find(ne=>ne.id===L)?.context?.dataRef?.current.orientation),ye=de(()=>ty(o,Q.current)),Pe=de(ne=>{if(j.current=!1,ee.current=!0,ne.which===229||!Z.current&&ne.currentTarget===P.current)return;if(u&&AGe(ne.key,b,d,x)){NA(ne.key,ke())||zs(ne),S.setOpen(!1,$e(Te.listNavigation,ne.nativeEvent)),Ct(E)&&(f?H?.events.emit("virtualfocus",E):E.focus());return}let ae=M.current,Ee=ty(o,h),he=yw(o,h);if(A||(ne.key==="Home"&&(zs(ne),M.current=Ee,D(ne)),ne.key==="End"&&(zs(ne),M.current=he,D(ne))),k!=null){let Ae=k(ne,M.current,o,b,l,d,h,Ee,he);if(Ae!=null&&(M.current=Ae,D(ne)),b==="both")return}if(NA(ne.key,b)){if(zs(ne),C&&!f&&_r(ne.currentTarget.ownerDocument)===ne.currentTarget){M.current=NW(ne.key,b,d)?Ee:he,D(ne);return}NW(ne.key,b,d)?l?ae>=he?a&&ae!==o.current.length?M.current=-1:(ee.current=!1,M.current=Ee):M.current=bl(o.current,{startingIndex:ae,disabledIndices:h}):M.current=Math.min(he,bl(o.current,{startingIndex:ae,disabledIndices:h})):l?ae<=Ee?a&&ae!==-1?M.current=o.current.length:(ee.current=!1,M.current=he):M.current=bl(o.current,{startingIndex:ae,decrement:!0,disabledIndices:h}):M.current=Math.max(Ee,bl(o.current,{startingIndex:ae,decrement:!0,disabledIndices:h})),rg(o.current,M.current)&&(M.current=-1),D(ne)}}),_e=fi.useMemo(()=>({onFocus(ae){ee.current=!0,pe(ae)},onClick:({currentTarget:ae})=>ae.focus({preventScroll:!0}),onMouseMove(ae){sue(ae)||(ee.current=!0,J.current=!1,m&&pe(ae))},onPointerLeave(ae){if(!Z.current||!j.current||ae.pointerType==="touch")return;ee.current=!0;let Ee=ae.relatedTarget;if(!(!m||o.current.includes(Ee))&&X.current&&(U.current?.(),U.current=null,M.current=-1,D(ae),!f)){let he=P.current,Ae=_r(ot(he));he&&We(he,Ae)&&he.focus({preventScroll:!0})}}}),[pe,Z,P,m,o,D,X,f]),ve=fi.useMemo(()=>f&&C&&be&&{"aria-activedescendant":`${y}-${r}`},[f,C,be,y,r]),Se=fi.useMemo(()=>({"aria-orientation":b==="both"?void 0:b,...A?{}:ve,onKeyDown(ne){if(ne.key==="Tab"&&ne.shiftKey&&C&&!f){let ae=ko(ne.nativeEvent);if(ae&&!We(P.current,ae))return;zs(ne),S.setOpen(!1,$e(Te.focusOut,ne.nativeEvent)),Ct(E)&&E.focus();return}Pe(ne)},onPointerMove(ne){sue(ne)||(j.current=!0)}}),[ve,Pe,P,b,A,S,C,f,E]),fe=fi.useMemo(()=>{function ne(he){S.setOpen(!0,$e(Te.listNavigation,he.nativeEvent,he.currentTarget))}function ae(he){p==="auto"&&gw(he.nativeEvent)&&(N.current=!f)}function Ee(he){N.current=p,p==="auto"&&hw(he.nativeEvent)&&(N.current=!0)}return{onKeyDown(he){let Ae=S.select("open");j.current=!1;let et=he.key.startsWith("Arrow"),Je=OGe(he.key,ke(),d),_t=NA(he.key,b),Et=(u?Je:_t)||he.key==="Enter"||he.key.trim()==="";if(f&&Ae)return Pe(he);if(!(!Ae&&!g&&et)){if(Et){let mt=NA(he.key,ke());V.current=u&&mt?null:he.key}if(u){Je&&(zs(he),Ae?(M.current=ye(),D(he)):ne(he));return}_t&&(K.current!=null&&(M.current=K.current),zs(he),!Ae&&g?ne(he):Pe(he),Ae&&D(he))}},onFocus(he){S.select("open")&&!f&&(M.current=-1,D(he))},onPointerDown:Ee,onPointerEnter:Ee,onMouseDown:ae,onClick:ae}},[Pe,p,ye,u,D,S,g,b,ke,d,K,f]),Ce=fi.useMemo(()=>({...ve,...fe}),[ve,fe]);return fi.useMemo(()=>i?{reference:Ce,floating:Se,item:_e,trigger:fe}:{},[i,Ce,Se,fe,_e])}var uy=c(re(),1);function DW(e,t){let{listRef:o,elementsRef:r,activeIndex:n,onMatch:i,disabledIndices:s,onTyping:a,enabled:l=!0,resetMs:u=750,selectedIndex:d=null}=t,f="rootStore"in e?e.rootStore:e,p=f.useState("open"),m=Fo(),g=uy.useRef(""),h=uy.useRef(d??n??-1),b=uy.useRef(null),v=de(w=>{function k(P){return r?.current[P]}function x(P){let L=k(P);return L&&!ry(L)||L?.matches(":disabled")?!1:s==null||!oy(gl,P,s)}function S(P,L,H=0){if(P.length===0)return-1;let N=(H%P.length+P.length)%P.length,M=L.toLowerCase();for(let V=0;V<P.length;V+=1){let j=(N+V)%P.length;if(!(!P[j]?.toLowerCase().startsWith(M)||!x(j)))return j}return-1}let C=o.current;if(g.current.length>0&&w.key===" "&&(zs(w),a?.(!0)),g.current.length>0&&g.current[0]!==" "&&S(C,g.current)===-1&&w.key!==" "&&a?.(!1),C==null||w.key.length!==1||w.ctrlKey||w.metaKey||w.altKey)return;p&&w.key!==" "&&(zs(w),a?.(!0));let R=g.current==="";R&&(h.current=d??n??-1),C.every((P,L)=>P&&x(L)?P[0]?.toLowerCase()!==P[1]?.toLowerCase():!0)&&g.current===w.key&&(g.current="",h.current=b.current),g.current+=w.key,m.start(u,()=>{g.current="",h.current=b.current,a?.(!1)});let O=((R?d??n??-1:h.current)??0)+1,A=S(C,g.current,O);A!==-1?(i?.(A),b.current=A):w.key!==" "&&(g.current="",a?.(!1))}),y=de(w=>{let k=w.relatedTarget,x=f.select("domReferenceElement"),S=f.select("floatingElement");We(x,k)||We(S,k)||(m.clear(),g.current="",h.current=b.current,a?.(!1))});le(()=>{!p&&d!==null||(m.clear(),b.current=null,g.current!==""&&(g.current=""))},[p,d,m]);let _=uy.useMemo(()=>({onKeyDown:v,onBlur:y}),[v,y]);return uy.useMemo(()=>l?{reference:_,floating:_}:{},[l,_])}var aue=.1,MGe=aue*aue,Co=.5;function DA(e,t,o,r,n,i){return r>=t!=i>=t&&e<=(n-o)*(t-r)/(i-r)+o}function VA(e,t,o,r,n,i,s,a,l,u){let d=!1;return DA(e,t,o,r,n,i)&&(d=!d),DA(e,t,n,i,s,a)&&(d=!d),DA(e,t,s,a,l,u)&&(d=!d),DA(e,t,l,u,o,r)&&(d=!d),d}function NGe(e,t,o){return e>=o.x&&e<=o.x+o.width&&t>=o.y&&t<=o.y+o.height}function FA(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 VW(e={}){let{blockPointerEvents:t=!1}=e,o=new Oi,r=({x:n,y:i,placement:s,elements:a,onClose:l,nodeId:u,tree:d})=>{let f=s?.split("-")[0],p=!1,m=null,g=null,h=typeof performance<"u"?performance.now():0;function b(y,_){let w=performance.now(),k=w-h;if(m===null||g===null||k===0)return m=y,g=_,h=w,!1;let x=y-m,S=_-g,C=x*x+S*S,R=k*k*MGe;return m=y,g=_,h=w,C<R}function v(){o.clear(),l()}return function(_){o.clear();let w=a.domReference,k=a.floating;if(!w||!k||f==null||n==null||i==null)return;let{clientX:x,clientY:S}=_,C=ko(_),R=_.type==="mouseleave",E=We(k,C),I=We(w,C);if(E&&(p=!0,!R))return;if(I&&(p=!1,!R)){p=!0;return}if(R&&ct(_.relatedTarget)&&We(k,_.relatedTarget))return;function O(){return!!(d&&yl(d.nodesRef.current,u).length>0)}function A(){O()||v()}if(O())return;let P=w.getBoundingClientRect(),L=k.getBoundingClientRect(),H=n>L.right-L.width/2,N=i>L.bottom-L.height/2,M=L.width>P.width,V=L.height>P.height,j=(M?P:L).left,D=(M?P:L).right,z=(V?P:L).top,W=(V?P:L).bottom;if(f==="top"&&i>=P.bottom-1||f==="bottom"&&i<=P.top+1||f==="left"&&n>=P.right-1||f==="right"&&n<=P.left+1){A();return}let ee=!1;switch(f){case"top":ee=FA(x,S,j,P.top+1,D,L.bottom-1);break;case"bottom":ee=FA(x,S,j,L.top+1,D,P.bottom-1);break;case"left":ee=FA(x,S,L.right-1,W,P.left+1,z);break;case"right":ee=FA(x,S,P.right-1,W,L.left+1,z);break;default:}if(ee)return;if(p&&!NGe(x,S,P)){A();return}if(!R&&b(x,S)){A();return}let J=!1;switch(f){case"top":{let U=M?Co/2:Co*4,Q=M||H?n+U:n-U,Z=M?n-U:H?n+U:n-U,K=i+Co+1,X=H||M?L.bottom-Co:L.top,oe=H?M?L.bottom-Co:L.top:L.bottom-Co;J=VA(x,S,Q,K,Z,K,L.left,X,L.right,oe);break}case"bottom":{let U=M?Co/2:Co*4,Q=M||H?n+U:n-U,Z=M?n-U:H?n+U:n-U,K=i-Co,X=H||M?L.top+Co:L.bottom,oe=H?M?L.top+Co:L.bottom:L.top+Co;J=VA(x,S,Q,K,Z,K,L.left,X,L.right,oe);break}case"left":{let U=V?Co/2:Co*4,Q=V||N?i+U:i-U,Z=V?i-U:N?i+U:i-U,K=n+Co+1,X=N||V?L.right-Co:L.left,oe=N?V?L.right-Co:L.left:L.right-Co;J=VA(x,S,X,L.top,oe,L.bottom,K,Q,K,Z);break}case"right":{let U=V?Co/2:Co*4,Q=V||N?i+U:i-U,Z=V?i-U:N?i+U:i-U,K=n-Co,X=N||V?L.left+Co:L.right,oe=N?V?L.left+Co:L.right:L.left+Co;J=VA(x,S,K,Q,K,Z,X,L.top,oe,L.bottom);break}default:}J?p||o.start(40,A):A()}};return r.__options={...e,blockPointerEvents:t},r}var zA=class extends rd{setState(t){}update(t){}set(t,o){}notifyAll(){}};var p2t=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=dw.startingStyle]="startingStyle",e[e.endingStyle=dw.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e.side="data-side",e.align="data-align",e})({});var LGe={"data-popup-open":""},DGe={"data-popup-open":"","data-pressed":""},VGe={"data-open":""},FGe={"data-closed":""},zGe={"data-anchor-hidden":""},jA={open(e){return e?LGe:null}},lue={open(e){return e?DGe:null}},zf={open(e){return e?VGe:FGe},anchorHidden(e){return e?zGe:null}},HA={...zf,...Un};var WA="ArrowUp",GA="ArrowDown",$A="ArrowLeft",YA="ArrowRight",KA="Home",qA="End";var ZA=new Set([WA,GA,$A,YA,KA,qA]),jGe="Shift",uue=[jGe,"Control","Alt","Meta"];function HGe(e){return Ct(e)&&e.tagName==="INPUT"}function FW(e){return!!(HGe(e)&&e.selectionStart!=null||Ct(e)&&e.tagName==="TEXTAREA")}function zW(e,t,o,r){if(!e||!t||!t.scrollTo)return;let n=e.scrollLeft,i=e.scrollTop,s=e.clientWidth<e.scrollWidth,a=e.clientHeight<e.scrollHeight;if(s&&r!=="vertical"){let l=cue(e,t,"left"),u=UA(e),d=UA(t);o==="ltr"&&(l+t.offsetWidth+d.scrollMarginRight>e.scrollLeft+e.clientWidth-u.scrollPaddingRight?n=l+t.offsetWidth+d.scrollMarginRight-e.clientWidth+u.scrollPaddingRight:l-d.scrollMarginLeft<e.scrollLeft+u.scrollPaddingLeft&&(n=l-d.scrollMarginLeft-u.scrollPaddingLeft)),o==="rtl"&&(l-d.scrollMarginLeft<e.scrollLeft+u.scrollPaddingLeft?n=l-d.scrollMarginLeft-u.scrollPaddingLeft:l+t.offsetWidth+d.scrollMarginRight>e.scrollLeft+e.clientWidth-u.scrollPaddingRight&&(n=l+t.offsetWidth+d.scrollMarginRight-e.clientWidth+u.scrollPaddingRight))}if(a&&r!=="horizontal"){let l=cue(e,t,"top"),u=UA(e),d=UA(t);l-d.scrollMarginTop<e.scrollTop+u.scrollPaddingTop?i=l-d.scrollMarginTop-u.scrollPaddingTop:l+t.offsetHeight+d.scrollMarginBottom>e.scrollTop+e.clientHeight-u.scrollPaddingBottom&&(i=l+t.offsetHeight+d.scrollMarginBottom-e.clientHeight+u.scrollPaddingBottom)}e.scrollTo({left:n,top:i,behavior:"auto"})}function cue(e,t,o){let r=o==="left"?"offsetLeft":"offsetTop",n=0;for(;t.offsetParent&&(n+=t[r],t.offsetParent!==e);)t=t.offsetParent;return n}function UA(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}function Sw(e){return lw(19)?e:e?"true":void 0}var due=c(re(),1),fue=c(T(),1),pue=due.forwardRef(function(t,o){let{cutout:r,...n}=t,i;if(r){let s=r.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${s.left}px ${s.top}px,${s.left}px ${s.bottom}px,${s.right}px ${s.bottom}px,${s.right}px ${s.top}px,${s.left}px ${s.top}px)`}return(0,fue.jsx)("div",{ref:o,role:"presentation","data-base-ui-inert":"",...n,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:i}})});var z1=c(re(),1);var F1=c(re(),1);function mue(e){let t=F1.useRef(""),o=F1.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:F1.useCallback(n=>{if(n.detail===0){e(n,"keyboard");return}"pointerType"in n?e(n,n.pointerType):e(n,t.current),t.current=""},[e]),onPointerDown:o}}var gue=c(re(),1);function XA(e,t){let o=gue.useRef(e),r=de(t);le(()=>{o.current!==e&&r(o.current),o.current=e},[e,r])}function UGe(e,t){let o=de((i,s)=>{(typeof e=="function"?e():e)||t(s||(mo.os.ios?"touch":""))}),{onClick:r,onPointerDown:n}=mue(o);return z1.useMemo(()=>({onClick:r,onPointerDown:n}),[r,n])}function hue(e){let[t,o]=z1.useState(null),r=UGe(e,o);return XA(e,n=>{n&&!e&&o(null)}),z1.useMemo(()=>({openMethod:t,triggerProps:r}),[t,r])}var bue=c(re(),1);function yue(e){let t=bue.useRef(!0);t.current&&(t.current=!1,e())}var vue=(e,t)=>Object.is(e,t);function jf(e,t,o){return e==null||t==null?Object.is(e,t):o(e,t)}function Cw(e,t,o){return!e||e.length===0?-1:e.findIndex(r=>r===void 0?!1:jf(r,t,o))}function _ue(e,t,o){return e.filter(r=>!jf(t,r,o))}var wue=c(re(),1);function QA(e){if(e==null)return"";if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}var kue=c(T(),1);function xue(e){return e!=null&&e.length>0&&typeof e[0]=="object"&&e[0]!=null&&"items"in e[0]}function Sue(e){if(!Array.isArray(e))return e!=null&&"null"in e;let t=e;if(xue(t)){for(let o of t)for(let r of o.items)if(r&&r.value==null&&r.label!=null)return!0;return!1}for(let o of t)if(o&&o.value==null&&o.label!=null)return!0;return!1}function jW(e,t){if(t&&e!=null)return t(e)??"";if(e&&typeof e=="object"){if("label"in e&&e.label!=null)return String(e.label);if("value"in e)return String(e.value)}return QA(e)}function ag(e,t){return t&&e!=null?t(e)??"":e&&typeof e=="object"&&"value"in e&&"label"in e?QA(e.value):QA(e)}function HW(e,t,o){function r(){return jW(e,o)}if(o&&e!=null)return o(e);if(e&&typeof e=="object"&&"label"in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return t[e]??r();if(Array.isArray(t)){let n=t,i=xue(n)?n.flatMap(s=>s.items):n;if(e==null||typeof e!="object"){let s=i.find(a=>a.value===e);return s&&s.label!=null?s.label:r()}if("value"in e){let s=i.find(a=>a&&a.value===e.value);if(s&&s.label!=null)return s.label}}return r()}function Cue(e,t,o){return e.reduce((r,n,i)=>(i>0&&r.push(", "),r.push((0,kue.jsx)(wue.Fragment,{children:HW(n,t,o)},i)),r),[])}var JA=c(re(),1);var lg={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},WGe={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},Eue={disabled:!1,...WGe},Di={valid(e){return e===null?null:e?{"data-valid":""}:{"data-invalid":""}}};var GGe={invalid:void 0,name:void 0,validityData:{state:lg,errors:[],error:"",value:"",initialValue:null},setValidityData:At,disabled:void 0,setTouched:At,setDirty:At,setFilled:At,setFocused:At,validationMode:"onSubmit",shouldValidateOnChange:()=>!1,state:Eue,registerFieldControl:At,validation:{getValidationProps:(e,t=Wt)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:At,getInputControl:()=>null,commit:async()=>{},change:At}},UW=JA.createContext(GGe);function gn(e=!0){let t=JA.useContext(UW);if(t.setValidityData===At&&!e)throw new Error(Ut(28));return t}function eM(e,t,o,r,n=!0,i){let{registerFieldControl:s}=gn(),a=eo(()=>Symbol());le(()=>{let l=a.current;if(!n){s(l,void 0);return}s(l,{controlRef:e,getValue:r,id:t,name:i,value:o})},[e,n,r,t,i,s,a,o]),le(()=>{let l=a.current;return()=>{s(l,void 0)}},[s,a])}var tM=c(re(),1);var $Ge=tM.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:At,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});function _l(){return tM.useContext($Ge)}var j1=c(re(),1);var oM=c(re(),1);var WW=oM.createContext({controlId:void 0,registerControlId:At,labelId:void 0,setLabelId:At,messageIds:[],setMessageIds:At,getDescriptionProps:e=>e});function Gn(){return oM.useContext(WW)}function Ew(e={}){let{id:t,implicit:o=!1,controlRef:r}=e,{controlId:n,registerControlId:i}=Gn(),s=pn(t),a=o?n:void 0,l=eo(()=>Symbol()),u=j1.useRef(!1),d=j1.useRef(t!=null),f=de(()=>{!u.current||i===At||(u.current=!1,i(l.current,void 0))});return le(()=>{if(i===At)return;let p;if(o){let m=r?.current;ct(m)&&m.closest("label")!=null?p=t??null:p=a??s}else if(t!=null)d.current=!0,p=t;else if(d.current)p=s;else{f();return}if(p===void 0){f();return}u.current=!0,i(l.current,p)},[t,r,a,i,o,s,l,f]),j1.useEffect(()=>f,[f]),n??s}function Tue(e,t,o=(r,n)=>r===n){return e.length===t.length&&e.every((r,n)=>o(r,t[n]))}var rM=c(re(),1),GW=rM.createContext(void 0);function sd(){return rM.useContext(GW)?.direction??"ltr"}var nM=5;function Rue(e,t){let o=YGe(t);return e.clientX>=o.left-nM&&e.clientX<=o.right+nM&&e.clientY>=o.top-nM&&e.clientY<=o.bottom+nM}function YGe(e){let t=e.getBoundingClientRect(),o=St(e);if(mo.env.jsdom)return t;let r=o.getComputedStyle(e,"::before"),n=o.getComputedStyle(e,"::after");if(!(r.content!=="none"||n.content!=="none"))return t;let s=parseFloat(r.width)||0,a=parseFloat(r.height)||0,l=parseFloat(n.width)||0,u=parseFloat(n.height)||0,d=Math.max(t.width,s,l),f=Math.max(t.height,a,u),p=d-t.width,m=f-t.height;return{left:t.left-p/2,right:t.right+p/2,top:t.top-m/2,bottom:t.bottom+m/2}}function Bue(e){return e==null?void 0:`${e}-label`}function Iue(e,t){return e??t}var Ea=c(re(),1);var KGe=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"}=od(e,t)||{};if(u==null)return{};let p=yA(d),m={x:o,y:r},g=B1(n),h=R1(g),b=await s.getDimensions(u),v=g==="y",y=v?"top":"left",_=v?"bottom":"right",w=v?"clientHeight":"clientWidth",k=i.reference[h]+i.reference[g]-m[g]-i.floating[h],x=m[g]-i.reference[g],S=f==="real"?await s.getOffsetParent?.(u):a.floating,C=a.floating[w]||i.floating[h];(!C||!await s.isElement?.(S))&&(C=a.floating[w]||i.floating[h]);let R=k/2-x/2,E=C/2-b[h]/2-1,I=Math.min(p[y],E),O=Math.min(p[_],E),A=I,P=C-b[h]-O,L=C/2-b[h]/2+R,H=hA(A,L,P),N=!l.arrow&&Nc(n)!=null&&L!==H&&i.reference[h]/2-(L<A?I:O)-b[h]/2<0,M=N?L<A?L-A:L-P:0;return{[g]:m[g]+M,data:{[g]:H,centerOffset:L-H-M,...N&&{alignmentOffset:M}},reset:N}}}),Pue=(e,t)=>({...KGe(e),options:[e,t]});var Oue={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,s=await e.platform.detectOverflow(e,{elementContext:"reference"});return{data:{referenceHidden:s.top-o>=0||s.right-t>=0||s.bottom-o>=0||s.left-t>=0||i}}}};var Tw={sideX:"left",sideY:"top"};var Aue="--available-width",Mue="--available-height";function Due(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 Nue(e,t,o){let{rects:r,placement:n}=e;return{side:Due(t,Mi(n),o),align:Nc(n)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function iM(e){return qGe(e,nue)}function qGe(e,t){let{anchor:o,positionMethod:r="absolute",side:n="bottom",sideOffset:i=0,align:s="center",alignOffset:a=0,collisionBoundary:l,collisionPadding:u=5,sticky:d=!1,arrowPadding:f=5,disableAnchorTracking:p=!1,inline:m,keepMounted:g=!1,floatingRootContext:h,mounted:b,collisionAvoidance:v,shift:y,nodeId:_,adaptiveOrigin:w,lazyFlip:k=!1,externalTree:x}=e,[S,C]=Ea.useState(null);!b&&S!==null&&C(null);let R=v.side||"flip",E=v.align||"flip",I=v.fallbackAxisSide||"end",O=y?.crossAxis??!1,A=y?.rootBoundary,P=typeof o=="function"?o:void 0,L=de(P),H=P?L:o,N=so(o),M=so(b),j=sd()==="rtl",D=S||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":j?"left":"right","inline-start":j?"right":"left"}[n],z=s==="center"?D:`${D}-${s}`,W=u;typeof W=="number"?W={top:W,right:W,bottom:W,left:W}:W&&(W={top:W.top||0,right:W.right||0,bottom:W.bottom||0,left:W.left||0});let ee=1,J=n==="bottom"?ee:0,U=n==="top"?ee:0,Q=n==="right"?ee:0,Z=n==="left"?ee:0,K={boundary:l==="clipping-ancestors"?"clippingAncestors":l,padding:W},X=Ea.useRef(null),oe=so(i),ie=so(a),se=typeof i!="function"?i:0,be=typeof a!="function"?a:0,pe=[];m&&pe.push(m),pe.push(hW(ge=>{let Re=Nue(ge,n,j),Ie=typeof oe.current=="function"?oe.current(Re):oe.current,at=typeof ie.current=="function"?ie.current(Re):ie.current;return{mainAxis:Ie,crossAxis:at,alignmentAxis:at}},[se,be,j,n]));let ke=E==="none"&&R!=="shift",ye=!ke&&(d||O||R==="shift"),Pe=R==="none"?null:vW({...K,padding:{top:W.top+ee+J,right:W.right+ee+Z,bottom:W.bottom+ee+U,left:W.left+ee+Q},mainAxis:!O&&R==="flip",crossAxis:E==="flip"?"alignment":!1,fallbackAxisSideDirection:I}),_e=ke?null:bW({...K,rootBoundary:A,mainAxis:E!=="none",crossAxis:ye,limiter:d||O?void 0:yW(ge=>{if(!X.current)return{};let{width:Re,height:Ie}=X.current.getBoundingClientRect(),at=js(Mi(ge.placement)),Qe=at==="y"?Re:Ie,po=at==="y"?W.left+W.right:W.top+W.bottom;return{offset:Qe/2+po/2}})},[K,d,O,A,W,E]);R==="shift"||E==="shift"||s==="center"?pe.push(_e,Pe):pe.push(Pe,_e),pe.push(_W({...K,apply({elements:{floating:ge},availableWidth:Re,availableHeight:Ie,rects:at}){if(!M.current)return;let Qe=ge.style;Qe.setProperty(Aue,`${Re}px`),Qe.setProperty(Mue,`${Ie}px`);let po=St(ge).devicePixelRatio||1,{x:ro,y:vo,width:Kt,height:_o}=at.reference,Cn=(Math.round((ro+Kt)*po)-Math.round(ro*po))/po,it=(Math.round((vo+_o)*po)-Math.round(vo*po))/po;Qe.setProperty("--anchor-width",`${Cn}px`),Qe.setProperty("--anchor-height",`${it}px`)}}),Pue(ge=>({element:X.current||ot(ge.elements.floating).createElement("div"),padding:f,offsetParent:"floating"}),[f]),{name:"transformOrigin",fn(ge){let{elements:Re,middlewareData:Ie,placement:at,rects:Qe,y:po}=ge,ro=Mi(at),vo=js(ro),Kt=X.current,_o=Ie.arrow?.x||0,Cn=Ie.arrow?.y||0,it=Kt?.clientWidth||0,Dt=Kt?.clientHeight||0,Ir=_o+it/2,mr=Cn+Dt/2,Wr=Math.abs(Ie.shift?.y||0),Pr=Qe.reference.height/2,dn=typeof i=="function"?i(Nue(ge,n,j)):i,Bi=Wr>dn,Be={top:`${Ir}px calc(100% + ${dn}px)`,bottom:`${Ir}px ${-dn}px`,left:`calc(100% + ${dn}px) ${mr}px`,right:`${-dn}px ${mr}px`}[ro],Ht=`${Ir}px ${Qe.reference.y+Pr-po}px`;return Re.floating.style.setProperty("--transform-origin",ye&&vo==="y"&&Bi?Ht:Be),{}}},Oue,w),le(()=>{!b&&h&&h.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[b,h]);let ve=Ea.useMemo(()=>({elementResize:!p&&typeof ResizeObserver<"u",layoutShift:!p&&typeof IntersectionObserver<"u"}),[p]),{refs:Se,elements:fe,x:Ce,y:ne,middlewareData:ae,update:Ee,placement:he,context:Ae,isPositioned:et,floatingStyles:Je}=t({rootContext:h,open:g?b:void 0,placement:z,middleware:pe,strategy:r,whileElementsMounted:g?void 0:(...ge)=>L1(...ge,ve),nodeId:_,externalTree:x}),{sideX:_t,sideY:Et}=ae.adaptiveOrigin||Tw,mt=et?r:"fixed",oo=Ea.useMemo(()=>{let ge;return et?w?ge={position:mt,[_t]:Ce,[Et]:ne}:ge={...Je,position:mt}:ge={position:mt,top:0,left:0},ge[Aue]="100vw",ge[Mue]="100vh",et||(ge.opacity=0),ge},[w,mt,_t,Ce,Et,ne,Je,et]),Tt=Ea.useRef(null);le(()=>{if(!b)return;let ge=N.current,Re=typeof ge=="function"?ge():ge,at=(Lue(Re)?Re.current:Re)||null||null;at!==Tt.current&&(Se.setPositionReference(at),Tt.current=at)},[b,Se,H,N]),Ea.useEffect(()=>{if(!b)return;let ge=N.current;typeof ge!="function"&&Lue(ge)&&ge.current!==Tt.current&&(Se.setPositionReference(ge.current),Tt.current=ge.current)},[b,Se,H,N]),Ea.useEffect(()=>{if(g&&b&&fe.reference&&fe.floating)return L1(fe.reference,fe.floating,Ee,ve)},[g,b,fe,Ee,ve]);let Rt=Mi(he),Bt=Due(n,Rt,j),gt=Nc(he)||"center",He=!!ae.hide?.referenceHidden;le(()=>{k&&b&&et&&Rt!==D&&C(Rt)},[k,b,et,Rt,D]);let we=Ea.useMemo(()=>({position:"absolute",top:ae.arrow?.y,left:ae.arrow?.x}),[ae.arrow]),Me=ae.arrow?.centerOffset!==0;return Ea.useMemo(()=>({positionerStyles:oo,arrowStyles:we,arrowRef:X,arrowUncentered:Me,side:Bt,align:gt,physicalSide:Rt,anchorHidden:He,refs:Se,context:Ae,isPositioned:et,update:Ee}),[oo,we,X,Me,Bt,gt,Rt,He,Se,Ae,et,Ee])}function Lue(e){return e!=null&&"current"in e}function Rw(e){return e==="starting"?Hle:Wt}function sM(e,t,{styles:o,transitionStatus:r,props:n,refs:i,hidden:s,inert:a=!1}){let l={...o};return a&&(l.pointerEvents="none"),De("div",e,{state:t,ref:i,props:[{role:"presentation",hidden:s,style:l},Rw(r),n],stateAttributesMapping:zf})}var Vue=c(re(),1);var ZGe=20;function Fue(e,t,o,r){let[n,i]=Vue.useState(!1);le(()=>{if(!e||!t||o==null){i(!1);return}let s=ot(o).documentElement.clientWidth,a=o.offsetWidth;i(s>0&&a>0&&a>=s-ZGe)},[e,t,o]),ple(e&&(!t||n),r)}var zue=c(re(),1);var jue=zue.forwardRef(function(t,o){let{className:r,render:n,orientation:i="horizontal",style:s,...a}=t;return De("div",t,{state:{orientation:i},ref:o,props:[{role:"presentation"},a]})});var Hue=c(re(),1);var $W=Hue.forwardRef(function(t,o){let{render:r,className:n,disabled:i=!1,focusableWhenDisabled:s=!1,nativeButton:a=!0,style:l,...u}=t,{getButtonProps:d,buttonRef:f}=Oc({disabled:i,focusableWhenDisabled:s,native:a});return De("button",t,{state:{disabled:i},ref:[o,f],props:[u,d]})});var aM=c(re(),1),YW=aM.createContext({disabled:!1});function lM(){return aM.useContext(YW)}var cg=c(re(),1);function dy(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}var KW=Object.keys(lg);function XGe(e,t){return e.matches(":disabled")?!1:!t||e.form===t?!0:e.form===null&&!e.hasAttribute("form")}function Uue(e,t){let o=null;for(let r of e.keys())if(XGe(r,t)){if(!r.validity.valid)return r;o??=r}return o}function Wue(e,t){for(let o of t.keys())o.setCustomValidity("");e?.setCustomValidity("")}function Gue(e){let{elementRef:t,formRef:o}=_l(),{setValidityData:r,validate:n,validityData:i,validationDebounceTime:s,invalid:a,markedDirtyRef:l,state:u,shouldValidateOnChange:d,registeredFieldIdRef:f}=e,{controlId:p,getDescriptionProps:m}=Gn(),g=Fo(),h=cg.useRef(null),b=eo(()=>new Map).current,v=cg.useRef(0),y=cg.useCallback((S,C)=>(b.set(S,C),()=>{b.delete(S)}),[b]),_=de(()=>{let S=Uue(b,t.current);return S&&b.get(S)?.controlRef.current||null}),w=de(async(S,C=!1)=>{v.current+=1;let R=v.current;function E(j,D=a){let z=f.current??p;if(z==null)return;let W=o.current.fields.get(z);if(!W)return;let ee=dy(j,D);o.current.fields.set(z,{...W,validityData:ee})}function I(j,D){let z={value:S,state:{...lg,valid:!0},error:"",errors:[],initialValue:i.initialValue};Wue(j,b),E(z,D),r(z)}let O=b.size>0?Uue(b,t.current):h.current;if(C){if(u.valid!==!1||!O)return;let j=O.validity;if(!j.valueMissing){I(O,!1);return}for(let D of KW)if(D!=="valid"&&D!=="valueMissing"&&D!=="customError"&&j[D])return}function A(j){let D=KW.reduce((W,ee)=>(W[ee]=j.validity[ee],W),{}),z=!1;for(let W of KW)if(W!=="valid"){if(W==="valueMissing"&&D[W])z=!0;else if(D[W])return D}return z&&!l.current&&(D.valid=!0,D.valueMissing=!1),D}g.clear();let P=null,L=[],H=O?A(O):{...lg,valid:!0},N,M=d();if(O&&O.validationMessage&&!M)N=O.validationMessage,L=[O.validationMessage];else{let j=Array.from(o.current.fields.values()).reduce((z,W)=>(W.name&&(z[W.name]=W.getValue()),z),{}),D=n(S,j);if(typeof D=="object"&&D!==null&&"then"in D){if(P=await D,R!==v.current)return}else P=D;P!==null?(H.valid=!1,H.customError=!0,Array.isArray(P)?(L=P,O?.setCustomValidity(P.join(` | |
| 86 | -`))):P&&(L=[P],O?.setCustomValidity(P))):M&&(Wue(O,b),H.customError=!1,O&&O.validationMessage?(N=O.validationMessage,L=[O.validationMessage]):(!O||O.validity.valid)&&!H.valid&&(H.valid=!0))}let V={value:S,state:H,error:N??(Array.isArray(P)?P[0]:P??""),errors:L,initialValue:i.initialValue};E(V),r(V)}),k=de(S=>{g.clear();let C=d();C&&S!==""&&s?(v.current+=1,g.start(s,()=>{w(S)})):w(S,!C)}),x=cg.useCallback((S,C={})=>zt(m(C),u.valid===!1&&!u.disabled&&!S?{"aria-invalid":!0}:Wt),[m,u.disabled,u.valid]);return cg.useMemo(()=>({getValidationProps:x,inputRef:h,registeredInputs:b,registerInput:y,getInputControl:_,commit:w,change:k}),[x,b,y,_,w,k])}var ug={};No(ug,{Panel:()=>Zue,Root:()=>Yue,Trigger:()=>que});var H1=c(re(),1);var cM={...qae,...Un};var $ue=c(T(),1),Yue=H1.forwardRef(function(t,o){let{render:r,className:n,defaultOpen:i=!1,disabled:s=!1,onOpenChange:a,open:l,style:u,...d}=t,f=de(a),p=$ae({open:l,defaultOpen:i,onOpenChange:f,disabled:s}),m=H1.useMemo(()=>({open:p.open,disabled:p.disabled,transitionStatus:p.transitionStatus}),[p.open,p.disabled,p.transitionStatus]),g=H1.useMemo(()=>({...p,onOpenChange:f,state:m}),[p,f,m]),h=De("div",t,{state:m,ref:o,props:d,stateAttributesMapping:cM});return(0,$ue.jsx)(AU.Provider,{value:g,children:h})});var Kue=c(re(),1);var QGe={...Kae,...Un},que=Kue.forwardRef(function(t,o){let{panelId:r,open:n,handleTrigger:i,state:s,disabled:a}=eA(),{className:l,disabled:u=a,render:d,nativeButton:f=!0,style:p,...m}=t,{getButtonProps:g,buttonRef:h}=Oc({disabled:u,focusableWhenDisabled:!0,native:f});return De("button",t,{state:s,ref:[o,h],props:[{"aria-controls":n?r:void 0,"aria-expanded":n,onClick:i},m,g],stateAttributesMapping:QGe})});var ZW=c(re(),1);var qW=(function(e){return e.collapsiblePanelHeight="--collapsible-panel-height",e.collapsiblePanelWidth="--collapsible-panel-width",e})({});var Zue=ZW.forwardRef(function(t,o){let{className:r,hiddenUntilFound:n,keepMounted:i,render:s,id:a,style:l,...u}=t,{defaultPanelId:d,mounted:f,onOpenChange:p,open:m,setMounted:g,setPanelIdState:h,setOpen:b,state:v,transitionStatus:y}=eA(),_=n??!1,w=i??!1,k=a||void 0,x=k??d;le(()=>(h(N=>k??(N===null?void 0:N)),()=>{h(N=>N===k?null:N)}),[k,h]);let{height:S,props:C,ref:R,shouldPreventOpenAnimation:E,shouldRender:I,transitionStatus:O,width:A}=nle({externalRef:o,hiddenUntilFound:_,id:x,keepMounted:w,mounted:f,onOpenChange:p,open:m,setMounted:g,setOpen:b,transitionStatus:y}),P={...v,transitionStatus:O},L=YO(l,P),H=De("div",{...t,style:void 0},{state:P,ref:R,props:[C,{style:{[qW.collapsiblePanelHeight]:S===void 0?"auto":`${S}px`,[qW.collapsiblePanelWidth]:A===void 0?"auto":`${A}px`}},u,L?{style:L}:void 0,E?{style:{animationName:"none"}}:void 0],stateAttributesMapping:cM});return I?H:null});function Xue(e,t){let o=pn(e);return le(()=>(t(o),()=>{t(r=>r===o?void 0:r)}),[o,t]),o}function uM(e={}){let{id:t,fallbackControlId:o,native:r=!1,setLabelId:n,focusControl:i}=e,{controlId:s,setLabelId:a}=Gn(),l=de(m=>{a(m),n?.(m)}),u=Xue(t,l),d=s??o;function f(m){if(i){i(m,d);return}if(!d)return;let g=ot(m.currentTarget).getElementById(d);Ct(g)&&JGe(g)}function p(m){ko(m.nativeEvent)?.closest("button,input,select,textarea")||(!m.defaultPrevented&&m.detail>1&&m.preventDefault(),!r&&f(m))}return r?{id:u,htmlFor:d??void 0,onMouseDown:p}:{id:u,onClick:p,onPointerDown(m){m.preventDefault()}}}function JGe(e){e.focus({focusVisible:!0})}var dM=c(re(),1),e$e=dM.createContext(void 0);function Que(e){let t=dM.useContext(e$e);if(t===void 0&&!e)throw new Error(Ut(69));return t}var Jue=c(re(),1);function ede(e={}){let{highlightItemOnHover:t,highlightedIndex:o,onHighlightedIndexChange:r}=fw(),{ref:n,index:i}=uw(e),s=o===i,a=Jue.useRef(null),l=Fs(n,a);return{compositeProps:{tabIndex:s?0:-1,onFocus(){r(i)},onMouseMove(){let d=a.current;if(!t||!d)return;let f=d.hasAttribute("disabled")||d.ariaDisabled==="true";!s&&!f&&d.focus()}},compositeRef:l,index:i}}var pi=c(re(),1),lde=c(Of(),1);var tde=c(re(),1);function fM(e){let[t,o]=tde.useState({current:e,previous:null});return Object.is(e,t.current)||o({current:e,previous:t.current}),t.previous}var Iw=c(re(),1);function Bw(e){let t=Pn(e),o=parseFloat(t.width)||0,r=parseFloat(t.height)||0,n=Ct(e),i=n?e.offsetWidth:o,s=n?e.offsetHeight:r;return(og(o)!==i||og(r)!==s)&&(o=i,r=s),{width:o,height:r}}function rde(e){let{popupElement:t,positionerElement:o,content:r,mounted:n,onMeasureLayout:i,onMeasureLayoutComplete:s,side:a,direction:l}=e,u=Jm(t,!0),d=ss(),f=Iw.useRef(null),p=Iw.useRef(!0),m=Iw.useRef(At),g=de(i),h=de(s),b=Iw.useMemo(()=>t$e(a,l),[a,l]);le(()=>{if(!n){m.current=At,p.current=!0,f.current=null;return}if(!t||!o)return;m.current=ode(t,b),XW(t,"auto");let v=mM(t,"position","static"),y=mM(t,"transform","none"),_=mM(t,"scale","1"),w=ode(o,{"--available-width":"max-content","--available-height":"max-content"});function k(){v(),y(),w()}function x(){k(),_()}if(g?.(),p.current||f.current===null){pM(o,"max-content");let E=Bw(t);return f.current=E,pM(o,E),x(),h?.(null,E),p.current=!1,()=>{m.current(),m.current=At}}pM(o,"max-content");let S=f.current,C=Bw(t);f.current=C,XW(t,S),x(),h?.(S,C),pM(o,C);let R=new AbortController;return d.request(()=>{XW(t,C),u(()=>{t.style.setProperty("--popup-width","auto"),t.style.setProperty("--popup-height","auto")},R.signal)}),()=>{R.abort(),d.cancel(),m.current(),m.current=At}},[r,t,o,u,d,n,g,h,b])}function t$e(e,t){let o=e==="top",r=e==="left"||e===(t==="rtl"?"inline-end":"inline-start");return!o&&!r?Wt:{position:"absolute",[o?"bottom":"top"]:"0",[r?"right":"left"]:"0"}}function mM(e,t,o){let r=e.style.getPropertyValue(t);return e.style.setProperty(t,o),()=>{e.style.setProperty(t,r)}}function ode(e,t){let o=[];for(let[r,n]of Object.entries(t))o.push(mM(e,r,n));return o.length?()=>{o.forEach(r=>r())}:At}function XW(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 pM(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 nde=c(re(),1);var ide=c(T(),1),gM=function(t){let{direction:o="ltr"}=t,r=nde.useMemo(()=>({direction:o}),[o]);return(0,ide.jsx)(GW.Provider,{value:r,children:t.children})};var sde={name:"adaptiveOrigin",async fn(e){let{x:t,y:o,rects:{floating:r},elements:{floating:n},platform:i,strategy:s,placement:a}=e,l=St(n),u=l.getComputedStyle(n);if(!(u.transitionDuration!=="0s"&&u.transitionDuration!==""))return{x:t,y:o,data:Tw};let f=await i.getOffsetParent?.(n),p={width:0,height:0};if(s==="fixed"&&l?.visualViewport)p={width:l.visualViewport.width,height:l.visualViewport.height};else if(f===l){let y=ot(n);p={width:y.documentElement.clientWidth,height:y.documentElement.clientHeight}}else await i.isElement?.(f)&&(p=await i.getDimensions(f));let m=Mi(a),g=t,h=o;m==="left"&&(g=p.width-(t+r.width)),m==="top"&&(h=p.height-(o+r.height));let b=m==="left"?"right":Tw.sideX,v=m==="top"?"bottom":Tw.sideY;return{x:g,y:h,data:{sideX:b,sideY:v}}}};var Pw=c(T(),1),cde={activationDirection:e=>e?{"data-activation-direction":e}:null};function ude(e){let{store:t,side:o,children:r}=e,n=sd(),i=t.useState("activeTriggerElement"),s=t.useState("activeTriggerId"),a=t.useState("open"),l=t.useState("payload"),u=t.useState("mounted"),d=t.useState("popupElement"),f=t.useState("positionerElement"),p=fM(a?i:null),m=n$e(s,l),g=pi.useRef(null),[h,b]=pi.useState(null),[v,y]=pi.useState(null),_=pi.useRef(null),w=pi.useRef(null),k=Jm(_,!0),x=ss(),S=pi.useRef(null),[C,R]=pi.useState(null),[E,I]=pi.useState(!1);le(()=>(t.set("adaptiveOrigin",sde),()=>{t.set("adaptiveOrigin",void 0)}),[t]);let O=de(()=>{_.current?.style.setProperty("animation","none"),_.current?.style.setProperty("transition","none"),w.current?.style.setProperty("display","none")}),A=de(V=>{_.current?.style.removeProperty("animation"),_.current?.style.removeProperty("transition"),w.current?.style.removeProperty("display"),V&&R(V)}),P=de(()=>{S.current?.abort();let V=new AbortController;S.current=V,k(()=>{b(null),R(null),g.current=null},V.signal)}),L=pi.useRef(null);le(()=>{(!a||!u)&&(L.current=null)},[a,u]),le(()=>{if(i&&p&&i!==p&&L.current!==i&&g.current){b(g.current),I(!0);let V=r$e(p,i);y(V),L.current=i}},[i,p]),le(()=>{h!=null&&(S.current?.abort(),I(!0),x.request(()=>{lde.flushSync(()=>{I(!1)}),P()}))},[m,h,P,x]),le(()=>{let V=_.current;if(!V)return;let j=ot(V).createElement("div");for(let D of Array.from(V.childNodes))j.appendChild(D.cloneNode(!0));g.current=j});let H=h!=null,N;H?N=(0,Pw.jsxs)(pi.Fragment,{children:[(0,Pw.jsx)("div",{"data-previous":!0,inert:Sw(!0),ref:w,style:{...C?{"--popup-width":`${C.width}px`,"--popup-height":`${C.height}px`}:null,position:"absolute"},"data-ending-style":E?void 0:""},"previous"),(0,Pw.jsx)("div",{"data-current":!0,ref:_,"data-starting-style":E?"":void 0,children:r},m)]}):N=(0,Pw.jsx)("div",{"data-current":!0,ref:_,children:r},m),le(()=>{let V=w.current;!V||!h||V.replaceChildren(...Array.from(h.childNodes))},[h]),rde({popupElement:d,positionerElement:f,mounted:u,content:l,onMeasureLayout:O,onMeasureLayoutComplete:A,side:o,direction:n});let M={activationDirection:o$e(v),transitioning:H};return{children:N,state:M}}function o$e(e){if(e)return`${ade(e.horizontal,5,"right","left")} ${ade(e.vertical,5,"down","up")}`}function ade(e,t,o,r){return e>t?o:e<-t?r:""}function r$e(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 n$e(e,t){let[o,r]=pi.useState(0),n=pi.useRef(e),i=pi.useRef(t),s=pi.useRef(!1);return le(()=>{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}`}function hM(e){return e==null||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true"}var bM=c(re(),1),i$e=bM.createContext(void 0),s$e={disableStyleElements:!1};function yM(){return bM.useContext(i$e)??s$e}function fy(e,t=Number.MIN_SAFE_INTEGER,o=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,o))}var Vi={};No(Vi,{Control:()=>vde,Description:()=>yde,Error:()=>hde,Item:()=>kde,Label:()=>gde,Root:()=>mde,Validity:()=>wde});var $n=c(re(),1);var vM=c(re(),1),a$e=vM.createContext(void 0);function dde(e=!1){let t=vM.useContext(a$e);if(!t&&!e)throw new Error(Ut(86));return t}var dg=c(re(),1);var fde=c(T(),1),_M=function(t){let o=pn(),r=t.controlId===void 0?o:t.controlId,[n,i]=dg.useState(r),[s,a]=dg.useState(t.labelId),[l,u]=dg.useState([]),d=eo(()=>new Map),{messageIds:f}=Gn(),p=de((h,b)=>{let v=d.current;if(b===void 0){v.delete(h);return}v.set(h,b),i(y=>{if(v.size===0)return;let _;for(let w of v.values()){if(y!==void 0&&w===y)return y;_===void 0&&(_=w)}return _})}),m=dg.useCallback(h=>{let b=h["aria-describedby"]?h["aria-describedby"].split(" "):[];return b.push(...f,...l),{...h,"aria-describedby":Array.from(new Set(b)).join(" ")||void 0}},[f,l]),g=dg.useMemo(()=>({controlId:n,registerControlId:p,labelId:s,setLabelId:a,messageIds:l,setMessageIds:u,getDescriptionProps:m}),[n,p,s,a,l,u,m]);return(0,fde.jsx)(WW.Provider,{value:g,children:t.children})};var wM=c(re(),1);function pde(e){let{commit:t,invalid:o,markedDirtyRef:r,name:n,setRegisteredFieldName:i,registeredFieldIdRef:s,setValidityData:a,validityData:l}=e,{formRef:u}=_l(),d=wM.useRef(null),f=wM.useRef(null),p=wM.useRef(!1),m=de(()=>{let w=f.current;if(w)return w.getValue?w.getValue():w.value});function g(w){return w.value===void 0?m():w.value}let h=de(()=>{let w=f.current;if(r.current=!0,!w){t(l.value);return}t(g(w))});function b(){let w=f.current;!w||!w.id||u.current.fields.set(w.id,{getValue:m,name:n??w.name,controlRef:w.controlRef,validityData:dy(l,o),validate:h})}function v(w=f.current?.id){w&&u.current.fields.delete(w)}function y(w){if(p.current)return;p.current=!0;let k=g(w);a(x=>x.initialValue===k?x:{...x,initialValue:k})}le(()=>{let w=f.current;!w||!w.id||(i(n?void 0:w.name),u.current.fields.set(w.id,{getValue:m,name:n??w.name,controlRef:w.controlRef,validityData:dy(l,o),validate:h}))},[u,m,o,n,i,h,l]),le(()=>{let w=u.current.fields;return()=>{let k=f.current?.id;k&&w.delete(k)}},[u]);let _=de((w,k)=>{if(!k){d.current===w&&(d.current=null,v(),f.current=null,i(void 0),s.current=void 0);return}let x=f.current?.id;d.current=w,f.current=k,n||i(k.name),s.current=k.id,x&&x!==k.id&&v(x),y(k),b()});return[h,_]}var kM=c(T(),1),l$e=$n.forwardRef(function(t,o){let{errors:r,validationMode:n,submitAttemptedRef:i}=_l(),{render:s,className:a,validate:l,validationDebounceTime:u=0,validationMode:d=n,name:f,disabled:p=!1,invalid:m,dirty:g,touched:h,actionsRef:b,style:v,...y}=t,_=dde(!0)?.disabled,w=de(l||(()=>null)),k=_||p,[x,S]=$n.useState(!1),[C,R]=$n.useState(!1),[E,I]=$n.useState(!1),[O,A]=$n.useState(!1),P=g??C,L=h??x,H=$n.useRef(P),N=$n.useRef(void 0),[M,V]=$n.useState(),j=f??M;le(()=>{g!==void 0&&(H.current=g)},[g]);let D=de(ke=>{g===void 0&&(ke&&(H.current=!0),R(ke))}),z=de(ke=>{h===void 0&&S(ke)}),W=de(()=>d==="onChange"||d==="onSubmit"&&i.current),ee=j&&Object.hasOwn(r,j)?r[j]:null,J=!!(Array.isArray(ee)?ee.length:ee),U=m===!0||J,[Q,Z]=$n.useState({state:lg,error:"",errors:[],value:null,initialValue:null}),K=!U&&(k?null:Q.state.valid),X=$n.useMemo(()=>({disabled:k,touched:L,dirty:P,valid:K,filled:E,focused:O}),[k,L,P,K,E,O]),oe=Gue({setValidityData:Z,validate:w,validityData:Q,validationDebounceTime:u,invalid:U,markedDirtyRef:H,state:X,shouldValidateOnChange:W,registeredFieldIdRef:N}),[ie,se]=pde({commit:oe.commit,invalid:U,markedDirtyRef:H,name:f,setRegisteredFieldName:V,registeredFieldIdRef:N,setValidityData:Z,validityData:Q});$n.useImperativeHandle(b,()=>({validate:ie}),[ie]);let be=$n.useMemo(()=>({invalid:U,name:j,validityData:Q,setValidityData:Z,disabled:k,setTouched:z,setDirty:D,setFilled:I,setFocused:A,validationMode:d,shouldValidateOnChange:W,state:X,registerFieldControl:se,validation:oe}),[U,j,Q,k,z,D,I,A,d,W,X,se,oe]),pe=De("div",t,{ref:o,state:X,props:y,stateAttributesMapping:Di});return(0,kM.jsx)(UW.Provider,{value:be,children:pe})}),mde=$n.forwardRef(function(t,o){return(0,kM.jsx)(_M,{children:(0,kM.jsx)(l$e,{...t,ref:o})})});var U1=c(re(),1);var gde=U1.forwardRef(function(t,o){let{render:r,className:n,style:i,id:s,nativeLabel:a=!0,...l}=t,u=gn(!1),d=lM(),{labelId:f}=Gn(),p={...u.state,disabled:u.disabled||d.disabled},m=U1.useRef(null),g=uM({id:f??s,native:a});return De("label",t,{ref:[o,m],state:p,props:[g,l],stateAttributesMapping:Di})});var py=c(re(),1);var QW=c(T(),1),c$e={...Di,...Un},hde=py.forwardRef(function(t,o){let{render:r,id:n,className:i,match:s,style:a,...l}=t,u=pn(n),{validityData:d,state:f,name:p}=gn(!1),{setMessageIds:m}=Gn(),{errors:g}=_l(),h=p&&Object.hasOwn(g,p)?g[p]:null,b=!!(Array.isArray(h)?h.length:h),v=typeof s=="string",y=!1;s===!0?y=!0:f.disabled?y=!1:v?y=!!d.state[s]:y=b||d.state.valid===!1;let{mounted:_,transitionStatus:w,setMounted:k}=Pi(y);le(()=>{if(!(!y||!u))return m(H=>H.concat(u)),()=>{m(H=>H.filter(N=>N!==u))}},[y,u,m]);let x=py.useRef(null),[S,C]=py.useState(null),[R,E]=py.useState(null),I=d.error;!v&&b?I=h:d.errors.length>1&&(I=d.errors);let O=I;Array.isArray(I)&&(O=I.length>1?(0,QW.jsx)("ul",{children:I.map(H=>(0,QW.jsx)("li",{children:H},H))}):I[0]);let A=Array.isArray(I)?JSON.stringify(I):I;y&&A!==R&&(E(A),C(O)),Wn({open:y,ref:x,onComplete(){y||k(!1)}});let P={...f,transitionStatus:w},L=De("div",t,{ref:[o,x],state:P,props:[{id:u,children:y?O:S},l],stateAttributesMapping:c$e,enabled:_});return _?L:null});var bde=c(re(),1);var yde=bde.forwardRef(function(t,o){let{render:r,id:n,className:i,style:s,...a}=t,l=pn(n),u=gn(!1),d=lM(),{setMessageIds:f}=Gn(),p={...u.state,disabled:u.disabled||d.disabled};return le(()=>{if(l)return f(g=>g.concat(l)),()=>{f(g=>g.filter(h=>h!==l))}},[l,f]),De("p",t,{ref:o,state:p,props:[{id:l},a],stateAttributesMapping:Di})});var xM=c(re(),1);var vde=xM.forwardRef(function(t,o){let{render:r,className:n,id:i,name:s,value:a,disabled:l=!1,onValueChange:u,defaultValue:d,autoFocus:f=!1,style:p,...m}=t,{state:g,name:h,disabled:b,setTouched:v,setDirty:y,validityData:_,setFocused:w,setFilled:k,validationMode:x,validation:S}=gn(),{clearErrors:C}=_l(),R=b||l,E=h??s,I={...g,disabled:R},{labelId:O}=Gn(),A=Ew({id:i});le(()=>{let j=a!=null;S.inputRef.current?.value||j&&a!==""?k(!0):j&&a===""&&k(!1)},[S.inputRef,k,a]);let P=xM.useRef(null);le(()=>{f&&P.current===_r(ot(P.current))&&w(!0)},[f,w]);let[L]=Nf({controlled:a,default:d,name:"FieldControl",state:"value"}),H=a!==void 0,N=H?L:void 0,M=de(()=>S.inputRef.current?.value);return eM(S.inputRef,A,N,M,!R,s),De("input",t,{ref:[o,P],state:I,props:[{id:A,disabled:R,name:E,ref:S.inputRef,"aria-labelledby":O,autoFocus:f,...H?{value:N}:{defaultValue:d},onChange(j){let D=j.currentTarget.value;u?.(D,$e(Te.none,j.nativeEvent)),y(D!==(_.initialValue??"")),k(D!==""),j.nativeEvent.defaultPrevented||(C(E),S.change(D))},onFocus(){w(!0)},onBlur(j){v(!0),w(!1),x==="onBlur"&&S.commit(j.currentTarget.value)},onKeyDown(j){j.currentTarget.tagName==="INPUT"&&j.key==="Enter"&&(v(!0),S.commit(j.currentTarget.value))}},m,j=>S.getValidationProps(R,j)],stateAttributesMapping:Di})});var W1=c(re(),1);var _de=c(T(),1),wde=function(t){let{children:o}=t,{validityData:r,invalid:n}=gn(!1),i=W1.useMemo(()=>dy(r,n),[r,n]),s=i.state.valid===!1,{transitionStatus:a}=Pi(s),l=W1.useMemo(()=>({...i,validity:i.state,transitionStatus:a}),[i,a]);return(0,_de.jsx)(W1.Fragment,{children:o(l)})};var SM=c(re(),1);var JW=c(T(),1),kde=SM.forwardRef(function(t,o){let{render:r,className:n,style:i,disabled:s=!1,...a}=t,{state:l,disabled:u}=gn(!1),d=u||s,f={...l,disabled:d},p=SM.useMemo(()=>({disabled:d}),[d]),m=De("div",t,{ref:o,state:f,props:a,stateAttributesMapping:Di});return(0,JW.jsx)(_M,{children:(0,JW.jsx)(YW.Provider,{value:p,children:m})})});var xde=c(re(),1);var Sde=c(T(),1),eG=xde.forwardRef(function(t,o){return(0,Sde.jsx)(Vi.Control,{ref:o,...t})});var Ede=c(re(),1);var Ow=c(re(),1);var CM="data-composite-item-active";var u$e=[];function Cde(e){let{loopFocus:t=!0,orientation:o="both",grid:r,onLoop:n,direction:i,highlightedIndex:s,onHighlightedIndexChange:a,rootRef:l,enableHomeAndEndKeys:u=!1,stopEventPropagation:d,disabledIndices:f,modifierKeys:p=u$e}=e,[m,g]=Ow.useState(0),h=r!=null,b=Ow.useRef(null),v=Fs(b,l),y=Ow.useRef([]),_=Ow.useRef(!1),w=s??m,k=de((E,I=!1)=>{if((a??g)(E),I){let O=y.current[E];zW(b.current,O,i,o)}}),x=de(E=>{if(E.size===0||_.current)return;_.current=!0;let I=Array.from(E.keys()),O=I.find(P=>P?.hasAttribute(CM))??null,A=O?E.get(O)?.index??-1:-1;if(A!==-1)k(A);else if(oy(I,w,f)){let P=bl(I,{disabledIndices:f});rg(I,P)||k(P)}zW(b.current,O,i,o)});le(()=>{if(f==null||s!=null||!_.current)return;let E=y.current;if(oy(E,w,f)){let I=bl(E,{disabledIndices:f});rg(E,I)||k(I)}},[f,s,w,y,k]);let S=de((E,I,O)=>n?n(E,I,O,y):O),C=de(E=>{let I=E.key===KA||E.key===qA;if(!ZA.has(E.key)||!u&&I||d$e(E,p)||!b.current)return;let A=i==="rtl",P=A?$A:YA,L=A?YA:$A,H=o==="vertical"?GA:P,N=o==="vertical"?WA:L,M=ko(E.nativeEvent);if(M!=null&&FW(M)&&!hM(M)){let ee=M.selectionStart,J=M.selectionEnd,U=M.value;if(ee==null||E.shiftKey||ee!==J||E.key!==N&&ee<U.length||E.key!==H&&ee>0)return}let V=w,j=ty(y,f),D=yw(y,f);r!=null&&(V=r({disabledIndices:f,elementsRef:y,event:E,highlightedIndex:w,loopFocus:t,maxIndex:D,minIndex:j,onLoop:S,orientation:o,rtl:A}));let z=o!=="vertical"&&E.key===P||o!=="horizontal"&&E.key===GA,W=o!=="vertical"&&E.key===L||o!=="horizontal"&&E.key===WA;u&&(E.key===KA?V=j:E.key===qA&&(V=D)),V===w&&(z||W)&&(t&&V===D&&z?(V=j,n&&(V=n(E,w,V,y))):t&&V===j&&W?(V=D,n&&(V=n(E,w,V,y))):V=bl(y.current,{startingIndex:V,decrement:W,disabledIndices:f})),V!==w&&!rg(y.current,V)&&(d&&E.stopPropagation(),(h||I||z||W)&&E.preventDefault(),k(V,!0),queueMicrotask(()=>{y.current[V]?.focus()}))});return{props:{ref:v,onFocus(E){let I=b.current,O=ko(E.nativeEvent);!I||O==null||!FW(O)||O.setSelectionRange(0,O.value.length)},onKeyDown:C},highlightedIndex:w,onHighlightedIndexChange:k,elementsRef:y,onMapChange:x,relayKeyboardEvent:C}}function d$e(e,t){for(let o of uue)if(!t.includes(o)&&e.getModifierState(o))return!0;return!1}var tG=c(T(),1);function Tde(e){let{render:t,className:o,style:r,refs:n=gl,props:i=gl,state:s=Wt,stateAttributesMapping:a,highlightedIndex:l,onHighlightedIndexChange:u,orientation:d,grid:f,loopFocus:p,onLoop:m,enableHomeAndEndKeys:g,onMapChange:h,stopEventPropagation:b=!0,rootRef:v,disabledIndices:y,modifierKeys:_,highlightItemOnHover:w=!1,tag:k="div",...x}=e,S=sd(),{props:C,highlightedIndex:R,onHighlightedIndexChange:E,elementsRef:I,onMapChange:O,relayKeyboardEvent:A}=Cde({grid:f,loopFocus:p,onLoop:m,orientation:d,highlightedIndex:l,onHighlightedIndexChange:u,rootRef:v,stopEventPropagation:b,enableHomeAndEndKeys:g,direction:S,disabledIndices:y,modifierKeys:_}),P=De(k,e,{state:s,ref:n,props:[C,...i,x],stateAttributesMapping:a}),L=Ede.useMemo(()=>({highlightedIndex:R,onHighlightedIndexChange:E,highlightItemOnHover:w,relayKeyboardEvent:A}),[R,E,w,A]);return(0,tG.jsx)(NU.Provider,{value:L,children:(0,tG.jsx)(aw,{elementsRef:I,onMapChange:H=>{h?.(H),O(H)},children:P})})}var EM=c(re(),1),Rde=c(Of(),1);var Bde=c(T(),1),Ide=EM.forwardRef(function(t,o){let{children:r,container:n,className:i,render:s,style:a,...l}=t,{node:u,subtree:d}=xA({container:n,ref:o,componentProps:t,elementProps:l});return!d&&!u?null:(0,Bde.jsxs)(EM.Fragment,{children:[d,u&&Rde.createPortal(r,u)]})});var Pde=c(T(),1),TM="base-ui-disable-scrollbar",G1={className:TM,getElement(e){return(0,Pde.jsx)("style",{nonce:e,href:TM,precedence:"base-ui:low",children:`.${TM}{scrollbar-width:none}.${TM}::-webkit-scrollbar{display:none}`})}};var Ta=1;function Aw(e,t){return Math.max(0,e-t)}function Mw(e,t){if(t<=0)return 0;let o=fy(e,0,t),r=o,n=t-o,i=r<=Ta,s=n<=Ta;return i&&s?r<=n?0:t:i?0:s?t:o}var qr={};No(qr,{Arrow:()=>nfe,Backdrop:()=>Wde,Group:()=>mfe,GroupLabel:()=>hfe,Icon:()=>Fde,Item:()=>Jde,ItemIndicator:()=>tfe,ItemText:()=>ofe,Label:()=>Mde,List:()=>Xde,Popup:()=>qde,Portal:()=>Hde,Positioner:()=>Gde,Root:()=>Ode,ScrollDownArrow:()=>lfe,ScrollUpArrow:()=>dfe,Separator:()=>bfe,Trigger:()=>Nde,Value:()=>Dde});var wr=c(re(),1);var RM=c(re(),1),oG=RM.createContext(null);function zo(){let e=RM.useContext(oG);if(e===null)throw new Error(Ut(60));return e}var ze={id:e=>e.id,labelId:e=>e.labelId,modal:e=>e.modal,items:e=>e.items,itemToStringLabel:e=>e.itemToStringLabel,isItemEqualToValue:e=>e.isItemEqualToValue,value:e=>e.value,hasSelectedValue:e=>{let{value:t,multiple:o,itemToStringValue:r}=e;return t==null?!1:o&&Array.isArray(t)?t.length>0:ag(t,r)!==""},hasNullItemLabel:(e,t)=>t?Sue(e.items):!1,open:e=>e.open,mounted:e=>e.mounted,forceMount:e=>e.forceMount,transitionStatus:e=>e.transitionStatus,openMethod:e=>e.openMethod,activeIndex:e=>e.activeIndex,selectedIndex:e=>e.selectedIndex,isActive:(e,t)=>e.activeIndex===t,isSelected:(e,t)=>{let o=e.isItemEqualToValue,r=e.value;return e.multiple?Array.isArray(r)&&r.some(n=>jf(t,n,o)):jf(t,r,o)},isSelectedByFocus:(e,t)=>e.selectedIndex===t,popupProps:e=>e.popupProps,triggerProps:e=>e.triggerProps,triggerElement:e=>e.triggerElement,positionerElement:e=>e.positionerElement,listElement:e=>e.listElement,popupSide:e=>e.popupSide,scrollUpArrowVisible:e=>e.scrollUpArrowVisible,scrollDownArrowVisible:e=>e.scrollDownArrowVisible,hasScrollArrows:e=>e.hasScrollArrows};var $1=c(T(),1);function Ode(e){let{id:t,value:o,defaultValue:r=null,onValueChange:n,open:i,defaultOpen:s=!1,onOpenChange:a,name:l,form:u,autoComplete:d,disabled:f=!1,readOnly:p=!1,required:m=!1,modal:g=!0,actionsRef:h,inputRef:b,onOpenChangeComplete:v,items:y,multiple:_=!1,itemToStringLabel:w,itemToStringValue:k,isItemEqualToValue:x=vue,highlightItemOnHover:S=!0,children:C}=e,{clearErrors:R}=_l(),{setDirty:E,setTouched:I,setFocused:O,validityData:A,setFilled:P,name:L,disabled:H,validation:N,validationMode:M}=gn(),V=Ew({id:t}),j=H||f,D=L??l,[z,W]=Nf({controlled:o,default:_?r??gl:r,name:"Select",state:"value"}),[ee,J]=Nf({controlled:i,default:s,name:"Select",state:"open"}),U=wr.useRef([]),Q=wr.useRef([]),Z=wr.useRef(null),K=wr.useRef(null),X=wr.useRef(0),oe=wr.useRef(null),ie=wr.useRef([]),se=wr.useRef(!1),be=wr.useRef(null),pe=wr.useRef(null),ke=wr.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),ye=wr.useRef(!1),{mounted:Pe,setMounted:_e,transitionStatus:ve}=Pi(ee),{openMethod:Se,triggerProps:fe}=hue(ee),Ce=eo(()=>new rd({id:V,labelId:void 0,modal:g,multiple:_,itemToStringLabel:w,itemToStringValue:k,isItemEqualToValue:x,value:z,open:ee,mounted:Pe,transitionStatus:ve,items:y,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,ne=Ve(Ce,ze.activeIndex),ae=Ve(Ce,ze.selectedIndex),Ee=Ve(Ce,ze.triggerElement),he=Ve(Ce,ze.positionerElement),Ae=fM(Se),et=Se??Ae,Je=wr.useMemo(()=>_?"":ag(z,k),[_,z,k]),_t=wr.useMemo(()=>_&&Array.isArray(z)?z.map(it=>ag(it,k)):ag(z,k),[_,z,k]),Et=so(Ee),mt=de(()=>_t);eM(Et,V,z,mt,!j,l);let oo=wr.useRef(z),Tt=_?Array.isArray(z)&&z.length>0:z!=null&&Je!=="";le(()=>{P(Tt)},[Tt,P]),le(function(){let Dt=z,Ir=!1;if(_){let Pr=Array.isArray(z)?z:[];Ir=Pr.length===0,Dt=Pr[Pr.length-1]}let mr=Ir?-1:Cw(ie.current,Dt,x),Wr=mr===-1?null:mr;Wr===null&&(pe.current=null),!ee&&Ce.set("selectedIndex",Wr)},[_,ee,z,x,Ce]);function Rt(it){let Dt=A.initialValue;return Array.isArray(it)&&Array.isArray(Dt)?!Tue(it,Dt,(Ir,mr)=>jf(Ir,mr,x)):it!==Dt}XA(z,()=>{R(D),E(Rt(z)),N.change(z)});let Bt=de((it,Dt)=>{a?.(it,Dt),!Dt.isCanceled&&(J(it),!it&&(Dt.reason===Te.focusOut||Dt.reason===Te.outsidePress)&&(I(!0),O(!1),M==="onBlur"&&N.commit(z)))}),gt=de(()=>{_e(!1),Ce.update({activeIndex:null,openMethod:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1}),v?.(!1)});Wn({enabled:!h,open:ee,ref:Z,onComplete(){ee||gt()}}),wr.useImperativeHandle(h,()=>({unmount:gt}),[gt]);let He=de((it,Dt)=>{n?.(it,Dt),!Dt.isCanceled&&W(it)}),we=de(it=>{let Dt=Aw(it.scrollHeight,it.clientHeight),Ir=Mw(it.scrollTop,Dt),mr=Ir>0,Wr=Ir<Dt;Ce.set("scrollUpArrowVisible",mr),Ce.set("scrollDownArrowVisible",Wr)}),Me=RW({open:ee,onOpenChange:Bt,elements:{reference:Ee,floating:he}}),ge=dW(Me,{enabled:!p&&!j,event:"mousedown"}),Re=M1(Me),Ie=LW(Me,{enabled:!p&&!j,listRef:U,activeIndex:ne,selectedIndex:ae,disabledIndices:gl,onNavigate(it){it===null&&!ee||Ce.set("activeIndex",it)},focusItemOnHover:S}),at=DW(Me,{enabled:!p&&!j&&(ee||!_),listRef:Q,activeIndex:ne,selectedIndex:ae,disabledIndices:it=>hM(U.current[it]),onMatch(it){ee?Ce.set("activeIndex",it):He(ie.current[it],$e(Te.none))},onTyping(it){se.current=it}}),Qe=wr.useMemo(()=>zt(at.reference,Ie.reference,Re.reference,ge.reference,fe),[ge.reference,at.reference,Ie.reference,Re.reference,fe]),po=wr.useMemo(()=>zt(OA,at.floating,Ie.floating,Re.floating),[at.floating,Ie.floating,Re.floating]),ro=Ie.item??Wt;yue(()=>{Ce.update({popupProps:po,triggerProps:Qe})}),Ce.useSyncedValues({id:V,modal:g,multiple:_,value:z,open:ee,mounted:Pe,transitionStatus:ve,popupProps:po,triggerProps:Qe,items:y,itemToStringLabel:w,itemToStringValue:k,isItemEqualToValue:x,openMethod:et});let vo=wr.useMemo(()=>({store:Ce,floatingContext:Me,required:m,disabled:j,readOnly:p,multiple:_,highlightItemOnHover:S,setValue:He,setOpen:Bt,listRef:U,popupRef:Z,scrollHandlerRef:K,handleScrollArrowVisibility:we,scrollArrowsMountedCountRef:X,itemProps:ro,valueRef:oe,valuesRef:ie,labelsRef:Q,typingRef:se,selectionRef:ke,firstItemTextRef:be,selectedItemTextRef:pe,validation:N,onOpenChangeComplete:v,alignItemWithTriggerActiveRef:ye,initialValueRef:oo}),[Ce,Me,m,j,p,_,S,He,Bt,ro,N,v,we]),Kt=Fs(b,N.inputRef),_o=_?void 0:D,Cn=wr.useMemo(()=>!_||!Array.isArray(z)||!D?null:z.map(it=>{let Dt=ag(it,k);return(0,$1.jsx)("input",{type:"hidden",form:u,name:D,value:Dt,disabled:j},Dt)}),[_,z,u,D,k,j]);return(0,$1.jsxs)(oG.Provider,{value:vo,children:[C,(0,$1.jsx)("input",{...N.getValidationProps(j,{onFocus(){Ce.state.triggerElement?.focus({focusVisible:!0})},onChange(it){if(it.nativeEvent.defaultPrevented||j||p)return;let Dt=it.currentTarget.value,Ir=$e(Te.none,it.nativeEvent);function mr(){if(_)return;let Wr=Dt.toLowerCase(),Pr=ie.current.findIndex(Bi=>ag(Bi,k).toLowerCase()===Wr||jW(Bi,w).toLowerCase()===Wr);Pr===-1&&(Pr=ie.current.findIndex((Bi,Be)=>{let Ht=Q.current[Be];return Ht!=null&&Ht.toLowerCase()===Wr}));let dn=ie.current[Pr];dn!=null&&He(dn,Ir)}Ce.set("forceMount",!0),queueMicrotask(mr)}}),id:V&&_o==null?`${V}-hidden-input`:void 0,form:u,name:_o,autoComplete:d,value:Je,disabled:j,required:m&&!(_&&Tt),readOnly:p,ref:Kt,style:D?kle:pA,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),Cn]})}var Ade=c(re(),1);var Mde=Ade.forwardRef(function(t,o){let{render:r,className:n,style:i,...s}=t,a=s;delete a.id;let l=gn(),{store:u}=zo(),d=Ve(u,ze.triggerElement),f=Ve(u,ze.id),p=Bue(f),m=uM({id:p,fallbackControlId:d?.id??f,setLabelId(g){let h=typeof g=="function"?g(u.state.labelId):g;u.set("labelId",h)}});return De("div",t,{ref:o,state:l.state,props:[m,s],stateAttributesMapping:Di})});var Nw=c(re(),1);var f$e=400,p$e={...lue,...Di,popupSide:e=>e?{"data-popup-side":e}:null,value:()=>null},Nde=Nw.forwardRef(function(t,o){let{render:r,className:n,id:i,disabled:s=!1,nativeButton:a=!0,style:l,...u}=t,{setTouched:d,setFocused:f,validationMode:p,state:m,disabled:g}=gn(),{labelId:h}=Gn(),{store:b,setOpen:v,selectionRef:y,validation:_,readOnly:w,required:k,alignItemWithTriggerActiveRef:x,disabled:S}=zo(),C=g||S||s,R=Ve(b,ze.open),E=Ve(b,ze.mounted),I=Ve(b,ze.value),O=Ve(b,ze.triggerProps),A=Ve(b,ze.positionerElement),P=Ve(b,ze.listElement),L=Ve(b,ze.popupSide),H=Ve(b,ze.id),N=Ve(b,ze.labelId),M=Ve(b,ze.hasSelectedValue),V=E&&A?L:null,j=i??H,D=Iue(h,N);Ew({id:j});let z=so(A),W=Nw.useRef(null),{getButtonProps:ee,buttonRef:J}=Oc({disabled:C,native:a}),U=b.useStateSetter("triggerElement"),Q=Fo(),Z=Fo(),K=Fo();Nw.useEffect(()=>{if(R)return K.start(f$e,()=>{y.current.allowUnselectedMouseUp=!0,y.current.allowSelectedMouseUp=!0}),()=>{K.clear()};y.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},Z.clear()},[R,y,Z,K]);let X=zt(O,{id:j,role:"combobox","aria-expanded":R,"aria-haspopup":"listbox","aria-controls":R?P?.id??ey(A)?.id:void 0,"aria-labelledby":D,"aria-readonly":w||void 0,"aria-required":k||void 0,tabIndex:C?-1:0,onFocus(se){f(!0),R&&x.current&&v(!1,$e(Te.none,se.nativeEvent)),Q.start(0,()=>{b.set("forceMount",!0)})},onBlur(se){We(A,se.relatedTarget)||(d(!0),f(!1),p==="onBlur"&&_.commit(I))},onMouseDown(se){if(R)return;let be=ot(se.currentTarget);function pe(ke){if(!W.current)return;let ye=ke.target;We(W.current,ye)||We(z.current,ye)||Rue(ke,W.current)||v(!1,$e(Te.cancelOpen,ke))}Z.start(0,()=>{be.addEventListener("mouseup",pe,{once:!0})})}},u,ee),oe=_.getValidationProps(C,X);oe.role="combobox";let ie={...m,open:R,disabled:C,value:I,readOnly:w,popupSide:V,placeholder:!M};return De("button",t,{ref:[o,W,J,U],state:ie,stateAttributesMapping:p$e,props:oe})});var Lde=c(re(),1);var m$e={value:()=>null},Dde=Lde.forwardRef(function(t,o){let{className:r,render:n,children:i,placeholder:s,style:a,...l}=t,{store:u,valueRef:d}=zo(),f=Ve(u,ze.value),p=Ve(u,ze.items),m=Ve(u,ze.itemToStringLabel),g=Ve(u,ze.hasSelectedValue),h=!g&&s!=null&&i==null,b=Ve(u,ze.hasNullItemLabel,h),v={value:f,placeholder:!g},y=null;return typeof i=="function"?y=i(f):i!=null?y=i:h&&!b?y=s:Array.isArray(f)?y=Cue(f,p,m):y=HW(f,p,m),De("span",t,{state:v,ref:[o,d],props:[{children:y},l],stateAttributesMapping:m$e})});var Vde=c(re(),1);var Fde=Vde.forwardRef(function(t,o){let{render:r,className:n,style:i,...s}=t,{store:a}=zo(),u={open:Ve(a,ze.open)};return De("span",t,{state:u,ref:o,props:[{"aria-hidden":!0,children:"\u25BC"},s],stateAttributesMapping:jA})});var zde=c(re(),1);var jde=c(T(),1),Hde=zde.forwardRef(function(t,o){let{store:r}=zo(),n=Ve(r,ze.mounted),i=Ve(r,ze.forceMount);return n||i?(0,jde.jsx)(lW,{ref:o,...t}):null});var Ude=c(re(),1);var g$e={...zf,...Un},Wde=Ude.forwardRef(function(t,o){let{render:r,className:n,style:i,...s}=t,{store:a}=zo(),l=Ve(a,ze.open),u=Ve(a,ze.mounted),d=Ve(a,ze.transitionStatus);return De("div",t,{state:{open:l,transitionStatus:d},ref:o,props:[{role:"presentation",hidden:!u,style:{userSelect:"none",WebkitUserSelect:"none"}},s],stateAttributesMapping:g$e})});var wl=c(re(),1);var BM=c(re(),1),rG=BM.createContext(void 0);function fg(){let e=BM.useContext(rG);if(!e)throw new Error(Ut(59));return e}function Lw(e,t){e&&Object.assign(e.style,t)}var IM={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"};var Y1=c(T(),1),h$e={position:"fixed"},Gde=wl.forwardRef(function(t,o){let{anchor:r,className:n,render:i,positionMethod:s,side:a,align:l,sideOffset:u,alignOffset:d,collisionBoundary:f="clipping-ancestors",collisionPadding:p,arrowPadding:m,sticky:g,disableAnchorTracking:h,alignItemWithTrigger:b=!0,collisionAvoidance:v=Wle,style:y,..._}=t,{store:w,listRef:k,labelsRef:x,alignItemWithTriggerActiveRef:S,selectedItemTextRef:C,valuesRef:R,initialValueRef:E,popupRef:I,setValue:O,floatingContext:A}=zo(),P=Ve(w,ze.open),L=Ve(w,ze.mounted),H=Ve(w,ze.modal),N=Ve(w,ze.value),M=Ve(w,ze.openMethod),V=Ve(w,ze.positionerElement),j=Ve(w,ze.triggerElement),D=Ve(w,ze.isItemEqualToValue),z=Ve(w,ze.transitionStatus),W=wl.useRef(null),ee=wl.useRef(null),[J,U]=wl.useState(b),Q=L&&J&&M!=="touch";!L&&J!==b&&U(b),wl.useImperativeHandle(S,()=>Q),Fue((Q||H)&&P,M==="touch",V,j);let Z=iM({anchor:r,floatingRootContext:A,positionMethod:s,mounted:L,side:a,sideOffset:u,align:l,alignOffset:d,arrowPadding:m,collisionBoundary:f,collisionPadding:p,sticky:g,disableAnchorTracking:h??Q,collisionAvoidance:v,keepMounted:!0}),K=Q?"none":Z.side,X=Q?h$e:Z.positionerStyles,oe={open:P,side:K,align:Z.align,anchorHidden:Z.anchorHidden};le(()=>{w.set("popupSide",Z.side)},[w,Z.side]);let ie=w.useStateSetter("positionerElement"),se=sM(t,oe,{styles:X,transitionStatus:z,props:_,refs:[o,ie],hidden:!L,inert:!P}),be=wl.useRef(0),pe=de(ye=>{if(R.current.length===0)return;let Pe=be.current;if(be.current=ye.size,ye.size===Pe)return;let _e=$e(Te.none);if(Pe!==0&&!w.state.multiple&&N!==null&&Cw(R.current,N,D)===-1){let Se=E.current,Ce=Se!=null&&Cw(R.current,Se,D)!==-1?Se:null;O(Ce,_e),Ce===null&&(w.set("selectedIndex",null),C.current=null)}if(Pe!==0&&w.state.multiple&&Array.isArray(N)){let ve=N.filter(Se=>Cw(R.current,Se,D)!==-1);ve.length!==N.length&&(O(ve,_e),ve.length===0&&(w.set("selectedIndex",null),C.current=null))}if(P&&Q){w.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let ve={height:""};Lw(V,ve),Lw(I.current,ve)}}),ke=wl.useMemo(()=>({...Z,side:K,alignItemWithTriggerActive:Q,setControlledAlignItemWithTrigger:U,scrollUpArrowRef:W,scrollDownArrowRef:ee}),[Z,K,Q,U]);return(0,Y1.jsx)(aw,{elementsRef:k,labelsRef:x,onMapChange:pe,children:(0,Y1.jsxs)(rG.Provider,{value:ke,children:[L&&H&&(0,Y1.jsx)(pue,{inert:Sw(!P),cutout:j}),se]})})});var kl=c(re(),1);var AM=c(T(),1),b$e={...zf,...Un},qde=kl.forwardRef(function(t,o){let{render:r,className:n,style:i,finalFocus:s,...a}=t,{store:l,popupRef:u,onOpenChangeComplete:d,setOpen:f,valueRef:p,firstItemTextRef:m,selectedItemTextRef:g,multiple:h,handleScrollArrowVisibility:b,scrollHandlerRef:v,listRef:y,highlightItemOnHover:_,floatingContext:w}=zo(),{side:k,align:x,alignItemWithTriggerActive:S,isPositioned:C,setControlledAlignItemWithTrigger:R}=fg(),E=Que(!0)!=null,I=sd(),{nonce:O,disableStyleElements:A}=yM(),P=Ve(l,ze.id),L=Ve(l,ze.open),H=Ve(l,ze.openMethod),N=Ve(l,ze.mounted),M=Ve(l,ze.popupProps),V=Ve(l,ze.transitionStatus),j=Ve(l,ze.triggerElement),D=Ve(l,ze.positionerElement),z=Ve(l,ze.listElement),W=kl.useRef(!1),ee=kl.useRef(!1),J=kl.useRef({}),U=ss(),Q=de(oe=>{if(!D||!u.current||!ee.current)return;let ie=D.style.top==="0px",se=D.style.bottom==="0px";if(W.current||!S||!ie&&!se){b(oe);return}let be=Yde(D),pe=K1(D.getBoundingClientRect().height,"y",be),ke=ot(D),ye=St(D),Pe=ye.getComputedStyle(D),_e=parseFloat(Pe.marginTop),ve=parseFloat(Pe.marginBottom),Se=$de(ye.getComputedStyle(u.current)),fe=Math.min(ke.documentElement.clientHeight-_e-ve,Se),Ce=oe.scrollTop,ne=PM(oe),ae=null,Ee=Je=>{D.style.height=`${Je}px`},he=ie?ne-Ce:Ce,Ae=Math.min(pe+he,fe);if(he<=Ta){let Je=fy(he,0,fe-pe);Je>0&&Ee(pe+Je),oe.scrollTop=ie?ne:0,fe-(pe+Je)<=Ta&&(W.current=!0),b(oe);return}if(fe-Ae>Ta)ae=ie?1/0:0;else if(se&&Ce<ne){let Je=pe+he-fe;ae=Ce-(he-Je)}let et=Math.ceil(Ae);if(et!==0&&Ee(et),ae!=null){let Je=fy(ae,0,PM(oe));Math.abs(oe.scrollTop-Je)>Ta&&(oe.scrollTop=Je)}et>=fe-Ta&&(W.current=!0),b(oe)});kl.useImperativeHandle(v,()=>Q,[Q]),Wn({open:L,ref:u,onComplete(){L&&d?.(!0)}});let Z={open:L,transitionStatus:V,side:k,align:x};le(()=>{!D||!u.current||Object.keys(J.current).length||(J.current={top:D.style.top||"0",left:D.style.left||"0",right:D.style.right,height:D.style.height,bottom:D.style.bottom,minHeight:D.style.minHeight,maxHeight:D.style.maxHeight,marginTop:D.style.marginTop,marginBottom:D.style.marginBottom})},[u,D]),le(()=>{L||S||(ee.current=!1,W.current=!1,Lw(D,J.current))},[L,S,D,u]),le(()=>{let oe=u.current;if(!L||!j||!D||!oe||S&&!C||l.state.transitionStatus==="ending")return;if(ee.current=!0,oe.style.removeProperty("--transform-origin"),!S){U.request(()=>b(z||oe));return}let ie=y$e(oe);try{let se=g.current;se?.isConnected||(se=!ze.hasSelectedValue(l.state)&&m.current?.isConnected?m.current:null);let be=p.current,pe=St(D),ke=pe.getComputedStyle(D),ye=pe.getComputedStyle(oe),Pe=ot(j),_e=Yde(j),ve=OM(j.getBoundingClientRect(),_e),Se=OM(D.getBoundingClientRect(),_e),fe=ve.height,Ce=z||oe,ne=Ce.scrollHeight,ae=parseFloat(ye.borderBottomWidth),Ee=parseFloat(ke.marginTop)||10,he=parseFloat(ke.marginBottom)||10,Ae=parseFloat(ke.minHeight)||100,et=$de(ye),Je=5,_t=5,Et=20,mt=Pe.documentElement.clientHeight-Ee-he,oo=Pe.documentElement.clientWidth,Tt=mt-ve.bottom+fe,Rt,Bt=I==="rtl"?ve.right-Se.width:ve.left,gt=0;if(se&&be){let vo=OM(be.getBoundingClientRect(),_e);Rt=OM(se.getBoundingClientRect(),_e),Bt=Se.left+(I==="rtl"?vo.right-Rt.right:vo.left-Rt.left);let Kt=vo.top-ve.top+vo.height/2;gt=Rt.top-Se.top+Rt.height/2-Kt}let He=Tt+gt+he+ae,we=Math.min(mt,He),Me=mt-Ee-he,ge=He-we,Re=oo-_t;D.style.left=`${fy(Bt,Je,Re-Se.width)}px`,D.style.height=`${we}px`,D.style.maxHeight="none",D.style.marginTop=`${Ee}px`,D.style.marginBottom=`${he}px`,oe.style.height="100%";let Ie=PM(Ce),at=ge>=Ie-Ta;at&&(we=Math.min(mt,Se.height)-(ge-Ie));let Qe=ve.top<Et||ve.bottom>mt-Et||Math.ceil(we)+Ta<Math.min(ne,Ae),po=(pe.visualViewport?.scale??1)!==1&&mo.engine.webkit;if(Qe||po){Lw(D,J.current),R(!1);return}let ro=Math.max(Ae,we);if(at){let vo=Math.max(0,mt-He);D.style.top=Se.height>=Me?"0":`${vo}px`,D.style.height=`${we}px`,Ce.scrollTop=PM(Ce)}else D.style.bottom="0",Ce.scrollTop=ge;if(Rt){let vo=Se.top,Kt=Se.height,_o=Rt.top+Rt.height/2,Cn=fy(Kt>0?(_o-vo)/Kt*100:50,0,100);oe.style.setProperty("--transform-origin",`50% ${Cn}%`)}(ro===mt||we>=et)&&(W.current=!0),b(Ce),_&&l.state.selectedIndex===null&&l.state.activeIndex===null&&y.current[0]!=null&&l.set("activeIndex",0)}finally{ie()}},[l,L,D,j,p,m,g,u,b,S,R,U,z,y,_,I,C]),kl.useEffect(()=>{if(!S||!D||!L)return;let oe=St(D);function ie(se){f(!1,$e(Te.windowResize,se))}return ut(oe,"resize",ie)},[f,S,D,L]);let K={...z?{role:"presentation","aria-orientation":void 0}:{role:"listbox","aria-multiselectable":h||void 0,id:`${P}-list`},onKeyDown(oe){E&&ZA.has(oe.key)&&oe.stopPropagation()},onScroll(oe){z||Q(oe.currentTarget)},...S&&{style:z?{height:"100%"}:IM},className:!z&&S?G1.className:void 0},X=De("div",t,{ref:[o,u],state:Z,stateAttributesMapping:b$e,props:[M,K,Rw(V),a]});return(0,AM.jsxs)(kl.Fragment,{children:[!A&&G1.getElement(O),(0,AM.jsx)(uW,{context:w,modal:!1,disabled:!N,openInteractionType:H,returnFocus:s,restoreFocus:!0,children:X})]})});function $de(e){let t=e.maxHeight;return t.endsWith("px")&&parseFloat(t)||1/0}function PM(e){return Aw(e.scrollHeight,e.clientHeight)}function Yde(e){return N1.getScale(e)}function K1(e,t,o){return e/o[t]}function OM(e,t){return Df({x:K1(e.x,"x",t),y:K1(e.y,"y",t),width:K1(e.width,"x",t),height:K1(e.height,"y",t)})}var Kde=[["transform","none"],["scale","1"],["translate","0 0"]];function y$e(e){let{style:t}=e,o={};for(let[r,n]of Kde)o[r]=t.getPropertyValue(r),t.setProperty(r,n,"important");return()=>{for(let[r]of Kde){let n=o[r];n?t.setProperty(r,n):t.removeProperty(r)}}}var Zde=c(re(),1);var Xde=Zde.forwardRef(function(t,o){let{render:r,className:n,style:i,...s}=t,{store:a,scrollHandlerRef:l,multiple:u}=zo(),{alignItemWithTriggerActive:d}=fg(),f=Ve(a,ze.hasScrollArrows),p=Ve(a,ze.openMethod),g={id:`${Ve(a,ze.id)}-list`,role:"listbox","aria-multiselectable":u||void 0,onScroll(b){l.current?.(b.currentTarget)},...d&&{style:IM},className:f&&p!=="touch"?G1.className:void 0},h=a.useStateSetter("listElement");return De("div",t,{ref:[o,h],props:[g,s]})});var Lc=c(re(),1);var MM=c(re(),1),nG=MM.createContext(void 0);function q1(){let e=MM.useContext(nG);if(!e)throw new Error(Ut(57));return e}var Qde=c(T(),1),Jde=Lc.memo(Lc.forwardRef(function(t,o){let{render:r,className:n,style:i,value:s=null,label:a,disabled:l=!1,nativeButton:u=!1,...d}=t,f=Lc.useRef(null),p=uw({guess:!0,label:a,textRef:f}),{store:m,itemProps:g,setOpen:h,setValue:b,selectionRef:v,typingRef:y,valuesRef:_,multiple:w,selectedItemTextRef:k,disabled:x,readOnly:S}=zo(),C=x||l,R=Ve(m,ze.isActive,p.index),E=Ve(m,ze.open),I=Ve(m,ze.isSelected,s),O=Ve(m,ze.isSelectedByFocus,p.index),A=Ve(m,ze.isItemEqualToValue),P=p.index,L=Lc.useRef(null);le(()=>{let U=_.current;return U[P]=s,()=>{delete U[P]}},[P,s,_]),le(()=>{let U=m.state.value,Q=U;w&&Array.isArray(U)&&(Q=U.length>0?U[U.length-1]:void 0),Q!==void 0&&jf(s,Q,A)&&(m.set("selectedIndex",P),f.current&&(k.current=f.current))},[P,w,A,m,s,k]);let H=Lc.useRef("mouse"),N=Lc.useRef(!1),{getButtonProps:M,buttonRef:V}=Oc({disabled:C,focusableWhenDisabled:!0,native:u,composite:!0}),j={disabled:C,selected:I,highlighted:R};function D(U){if(x||S)return;let Q=m.state.value;if(w){let Z=Array.isArray(Q)?Q:[],K=I?_ue(Z,s,A):[...Z,s];b(K,$e(Te.itemPress,U))}else b(s,$e(Te.itemPress,U)),h(!1,$e(Te.itemPress,U))}function z(){v.current.dragY=0}let W={role:"option","aria-selected":I,tabIndex:E&&R?0:-1,onKeyDown(U){m.set("activeIndex",P),U.key===" "&&y.current&&U.preventDefault()},onClick(U){let Q=H.current!=="touch",Z=U.nativeEvent.pointerType,K=Q&&gw(U.nativeEvent)&&(Z!==void 0||R),X=Q&&!K&&!N.current;N.current=!1,!(C||X)&&D(U.nativeEvent)},onPointerEnter(U){H.current=U.pointerType},onPointerMove(U){if(U.pointerType==="mouse"&&U.buttons===1){let Q=v.current;Q.dragY+=U.movementY,Q.dragY**2>=64&&(Q.allowUnselectedMouseUp=!0)}},onPointerDown(U){H.current=U.pointerType,N.current=!0,z()},onMouseUp(){if(z(),C||H.current==="touch"||N.current)return;let U=!v.current.allowSelectedMouseUp&&I,Q=!v.current.allowUnselectedMouseUp&&!I;U||Q||(N.current=!0,L.current?.click(),N.current=!1)}},ee=De("div",t,{ref:[V,o,p.ref,L],state:j,props:[g,W,d,M]}),J=Lc.useMemo(()=>({selected:I,index:P,textRef:f,selectedByFocus:O}),[I,P,f,O]);return(0,Qde.jsx)(nG.Provider,{value:J,children:ee})}));var my=c(re(),1);var efe=c(T(),1),tfe=my.forwardRef(function(t,o){let{selected:r}=q1();return t.keepMounted||r?(0,efe.jsx)(v$e,{...t,ref:o}):null}),v$e=my.memo(my.forwardRef((e,t)=>{let{render:o,className:r,style:n,keepMounted:i,...s}=e,{selected:a}=q1(),l=my.useRef(null),{transitionStatus:u,setMounted:d}=Pi(a),p=De("span",e,{ref:[t,l],state:{selected:a,transitionStatus:u},props:[{"aria-hidden":!0,children:"\u2714\uFE0F"},s],stateAttributesMapping:Un});return Wn({open:a,ref:l,onComplete(){a||d(!1)}}),p}));var Dw=c(re(),1);var ofe=Dw.memo(Dw.forwardRef(function(t,o){let{index:r,textRef:n,selectedByFocus:i}=q1(),{firstItemTextRef:s,selectedItemTextRef:a}=zo(),{render:l,className:u,style:d,...f}=t,p=Dw.useCallback(g=>{g&&(r===0&&(s.current=g),i&&(a.current=g))},[s,a,r,i]);return De("div",t,{ref:[p,o,n],props:f})}));var rfe=c(re(),1);var nfe=rfe.forwardRef(function(t,o){let{render:r,className:n,style:i,...s}=t,{store:a}=zo(),{side:l,align:u,arrowRef:d,arrowStyles:f,arrowUncentered:p,alignItemWithTriggerActive:m}=fg(),h={open:Ve(a,ze.open),side:l,align:u,uncentered:p},b=De("div",t,{state:h,ref:[d,o],props:[{style:f,"aria-hidden":!0},s],stateAttributesMapping:HA});return m?null:b});var sfe=c(re(),1);var ife=c(re(),1);var NM=ife.forwardRef(function(t,o){let{render:r,className:n,style:i,direction:s,keepMounted:a,...l}=t,u=s==="up",{store:d,popupRef:f,listRef:p,handleScrollArrowVisibility:m,scrollArrowsMountedCountRef:g}=zo(),{side:h,scrollDownArrowRef:b,scrollUpArrowRef:v}=fg(),y=u?ze.scrollUpArrowVisible:ze.scrollDownArrowVisible,_=Ve(d,y),w=Ve(d,ze.openMethod),k=_&&w!=="touch",x=Fo(),S=u?v:b,{mounted:C,transitionStatus:R,setMounted:E}=Pi(k);le(()=>(g.current+=1,d.set("hasScrollArrows",!0),()=>{g.current=Math.max(0,g.current-1),g.current===0&&d.set("hasScrollArrows",!1)}),[d,g]),Wn({open:k,ref:S,onComplete(){k||E(!1)}});let A=De("div",t,{ref:[o,S],state:{direction:s,visible:k,side:h,transitionStatus:R},props:[{"aria-hidden":!0,children:u?"\u25B2":"\u25BC",style:{position:"absolute"},onMouseMove(L){if(L.movementX===0&&L.movementY===0||x.isStarted())return;d.set("activeIndex",null);function H(){let N=d.state.listElement??f.current;if(!N)return;d.set("activeIndex",null),m(N);let M=Aw(N.scrollHeight,N.clientHeight),V=Mw(N.scrollTop,M),j=V===(u?0:M),D=p.current;if(V!==N.scrollTop&&(N.scrollTop=V),j){x.clear();return}if(D.length>0){let z=S.current?.offsetHeight||0;N.scrollTop=_$e(D,u,V,N.clientHeight,z,M)}x.start(40,H)}x.start(40,H)},onMouseLeave(){x.clear()}},l],stateAttributesMapping:Un});return C||a?A:null});function _$e(e,t,o,r,n,i){if(t){let d=0,f=o+n-Ta;for(let g=0;g<e.length;g+=1){let h=e[g];if(h&&h.offsetTop>=f){d=g;break}}let p=Math.max(0,d-1),m=e[p];return p<d&&m?Mw(m.offsetTop-n,i):0}let s=e.length-1,a=o+r-n+Ta;for(let d=0;d<e.length;d+=1){let f=e[d];if(f&&f.offsetTop+f.offsetHeight>a){s=Math.max(0,d-1);break}}let l=Math.min(e.length-1,s+1),u=e[l];return l>s&&u?Mw(u.offsetTop+u.offsetHeight-r+n,i):i}var afe=c(T(),1),lfe=sfe.forwardRef(function(t,o){return(0,afe.jsx)(NM,{...t,ref:o,direction:"down"})});var cfe=c(re(),1);var ufe=c(T(),1),dfe=cfe.forwardRef(function(t,o){return(0,ufe.jsx)(NM,{...t,ref:o,direction:"up"})});var Vw=c(re(),1);var LM=c(re(),1),iG=LM.createContext(void 0);function ffe(){let e=LM.useContext(iG);if(e===void 0)throw new Error(Ut(56));return e}var pfe=c(T(),1),mfe=Vw.forwardRef(function(t,o){let{render:r,className:n,style:i,...s}=t,[a,l]=Vw.useState(),u=Vw.useMemo(()=>({labelId:a,setLabelId:l}),[a,l]),d=De("div",t,{ref:o,props:[{role:"group","aria-labelledby":a},s]});return(0,pfe.jsx)(iG.Provider,{value:u,children:d})});var gfe=c(re(),1);var hfe=gfe.forwardRef(function(t,o){let{render:r,className:n,style:i,id:s,...a}=t,{setLabelId:l}=ffe(),u=pn(s);return le(()=>(l(u),()=>{l(f=>f===u?void 0:f)}),[u,l]),De("div",t,{ref:o,props:[{id:u},a]})});var bfe=jue;var yfe=c(D1(),1);function w$e(){return At}function k$e(){return!1}function x$e(){return!0}function vfe(){return(0,yfe.useSyncExternalStore)(w$e,k$e,x$e)}var j3t=c(re(),1);var _fe=c(T(),1);function wfe(e){let{script:t}=e,{nonce:o}=yM();return vfe()?(0,_fe.jsx)("script",{nonce:o,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0}):null}var Vc={};No(Vc,{Indicator:()=>Efe,List:()=>Rfe,Panel:()=>Tfe,Root:()=>xfe,Tab:()=>Sfe});var Zr=c(re(),1);var DM=c(re(),1),sG=DM.createContext(void 0);function pg(){let e=DM.useContext(sG);if(e===void 0)throw new Error(Ut(64));return e}var ad={tabActivationDirection:e=>({"data-activation-direction":e})};var aG=c(T(),1),xfe=Zr.forwardRef(function(t,o){let{className:r,defaultValue:n=0,onValueChange:i,orientation:s="horizontal",render:a,value:l,style:u,...d}=t,f=t.defaultValue!==void 0,p=Zr.useRef([]),[m,g]=Zr.useState(()=>new Map),[h,b]=Nf({controlled:l,default:n,name:"Tabs",state:"value"}),v=l!==void 0,[y,_]=Zr.useState(()=>new Map),w=Zr.useRef(void 0),k=Zr.useCallback(Z=>lG(y,Z),[y]),[x,S]=Zr.useState(()=>({previousValue:h,tabActivationDirection:"none"})),{previousValue:C,tabActivationDirection:R}=x,E=R,I=!1;C!==h&&(E=kfe(C,h,s,y),I=C!=null&&h!=null&&k(h)==null);let O=I?C:h,A=C!==O||R!==E;le(()=>{A&&S({previousValue:O,tabActivationDirection:E})},[O,A,E]);let P=de((Z,K)=>{let X=kfe(h,Z,s,y);K.activationDirection=X,i?.(Z,K),!K.isCanceled&&b(Z)}),L=de((Z,K)=>{i?.(Z,$e(K,void 0,void 0,{activationDirection:"none"}))}),H=de((Z,K)=>(g(X=>{let oe=new Map(X);return oe.set(Z,K),oe}),()=>{g(X=>{if(X.get(Z)!==K)return X;let oe=new Map(X);return oe.delete(Z),oe})})),N=Zr.useCallback(Z=>m.get(Z),[m]),M=Zr.useCallback(Z=>{for(let K of y.values())if(Z===K.value)return K.id},[y]),V=Zr.useMemo(()=>({getTabElementBySelectedValue:k,getTabIdByPanelValue:M,getTabPanelIdByValue:N,onValueChange:P,orientation:s,registerMountedTabPanel:H,setTabMap:_,tabActivationDirection:E,value:h}),[k,M,N,P,s,H,_,E,h]),j=Zr.useMemo(()=>{for(let Z of y.values())if(Z.value===h)return Z},[y,h]),D=Zr.useMemo(()=>{for(let Z of y.values())if(!Z.disabled)return Z.value},[y]),z=Zr.useRef(!f),W=Zr.useRef(n),ee=Zr.useRef(f),J=Zr.useRef(!1);le(()=>{if(v)return;function Z(ie,se){b(ie),S({previousValue:ie,tabActivationDirection:"none"}),L(ie,se),z.current=!1}if(y.size===0){J.current&&h!==null&&!w.current?.isConnected&&Z(null,Te.missing);return}J.current=!0,w.current=y.keys().next().value;let K=j?.disabled,X=j==null&&h!==null;if(!K&&h===W.current&&(ee.current=!1),ee.current&&K&&h===W.current)return;let oe=z.current;if(K||X){let ie=D??null;if(h===ie){z.current=!1;return}let se=Te.missing;oe?se=Te.initial:K&&(se=Te.disabled),Z(ie,se);return}oe&&j!=null&&(L(h,Te.initial),z.current=!1)},[D,v,L,j,b,y,h]);let Q=De("div",t,{state:{orientation:s,tabActivationDirection:E},ref:o,props:d,stateAttributesMapping:ad});return(0,aG.jsx)(sG.Provider,{value:V,children:(0,aG.jsx)(aw,{elementsRef:p,children:Q})})});function lG(e,t){for(let[o,r]of e.entries())if(t===r.value)return o;return null}function kfe(e,t,o,r){if(e==null||t==null)return"none";let[n,i,s]=o==="horizontal"?["left","left","right"]:["top","up","down"],a=lG(r,e),l=lG(r,t);if(a==null||l==null)return a!==l&&(typeof e=="number"||typeof e=="string")&&typeof e==typeof t?t>e?s:i:"none";let u=a.getBoundingClientRect()[n],d=l.getBoundingClientRect()[n];return d<u?i:d>u?s:"none"}var Hf=c(re(),1);var VM=c(re(),1),cG=VM.createContext(void 0);function FM(){let e=VM.useContext(cG);if(e===void 0)throw new Error(Ut(65));return e}var Sfe=Hf.forwardRef(function(t,o){let{className:r,disabled:n=!1,render:i,value:s,id:a,nativeButton:l=!0,style:u,...d}=t,{value:f,getTabPanelIdByValue:p,onValueChange:m,orientation:g,tabActivationDirection:h}=pg(),{activateOnFocus:b,registerTabResizeObserverElement:v,tabsListElement:y}=FM(),{highlightedIndex:_,onHighlightedIndexChange:w}=fw(),k=pn(a),x=Hf.useMemo(()=>({disabled:n,id:k,value:s}),[n,k,s]),{compositeProps:S,compositeRef:C,index:R}=ede({metadata:x}),E=s===f,I=Hf.useRef(!1),O=Hf.useRef(null),A=de(J=>{O.current?.(),O.current=J?v(J):null});le(()=>{if(I.current){I.current=!1;return}if(!(E&&R>-1&&_!==R))return;let J=y;if(J!=null){let U=_r(ot(J));if(U&&We(J,U))return}n||w(R)},[E,R,_,w,n,y]);let{getButtonProps:P,buttonRef:L}=Oc({disabled:n,native:l,focusableWhenDisabled:!0}),H=p(s),N=Hf.useRef(!1),M=Hf.useRef(!1);function V(J){m(s,$e(Te.none,J.nativeEvent,void 0,{activationDirection:"none"}))}function j(J){E||n||V(J)}function D(J){E||n||b&&(!N.current||M.current)&&V(J)}function z(J){if(E||n)return;N.current=!0,M.current=J.button===0;let U=ot(J.currentTarget);function Q(){N.current=!1,M.current=!1,U.removeEventListener("pointerup",Q),U.removeEventListener("pointercancel",Q)}U.addEventListener("pointerup",Q),U.addEventListener("pointercancel",Q)}return De("button",t,{state:{disabled:n,active:E,orientation:g,tabActivationDirection:h},ref:[o,L,C,A],props:[S,{role:"tab","aria-controls":H,"aria-selected":E,id:k,onClick:j,onFocus:D,onPointerDown:z,[CM]:E?"":void 0,onKeyDownCapture(){I.current=!0}},d,P],stateAttributesMapping:ad})});var Fw=c(re(),1);var zM=c(T(),1),Cfe,S$e={...ad,activeTabPosition:()=>null,activeTabSize:()=>null},Efe=Fw.forwardRef(function(t,o){let{className:r,render:n,renderBeforeHydration:i=!1,style:s,...a}=t,{getTabElementBySelectedValue:l,orientation:u,tabActivationDirection:d,value:f}=pg(),{tabsListElement:p,registerIndicatorUpdateListener:m}=FM(),g=Fce();Fw.useEffect(()=>m(g),[m,g]);let h=0,b=0,v=0,y=0,_=0,w=0,k=!1;if(f!=null&&p!=null){let O=l(f);if(O!=null){k=!0;let{width:A,height:P}=Bw(O),{width:L,height:H}=Bw(p),N=O.getBoundingClientRect(),M=p.getBoundingClientRect(),V=L>0?M.width/L:1,j=H>0?M.height/H:1;if(V>Number.EPSILON&&j>Number.EPSILON){let z=N.left-M.left,W=N.top-M.top;h=z/V+p.scrollLeft-p.clientLeft,v=W/j+p.scrollTop-p.clientTop}else h=O.offsetLeft,v=O.offsetTop;_=A,w=P,b=p.scrollWidth-h-_,y=p.scrollHeight-v-w}}let x=k?{left:h,right:b,top:v,bottom:y}:null,S=k?{width:_,height:w}:null,C=k?{"--active-tab-left":`${h}px`,"--active-tab-right":`${b}px`,"--active-tab-top":`${v}px`,"--active-tab-bottom":`${y}px`,"--active-tab-width":`${_}px`,"--active-tab-height":`${w}px`}:void 0,R=k&&_>0&&w>0,I=De("span",t,{state:{orientation:u,activeTabPosition:x,activeTabSize:S,tabActivationDirection:d},ref:o,props:[{role:"presentation",style:C,hidden:!R},a,{suppressHydrationWarning:!0}],stateAttributesMapping:S$e});return f==null?null:(0,zM.jsxs)(Fw.Fragment,{children:[I,i&&(Cfe||(Cfe=(0,zM.jsx)(wfe,{script:""})))]})});var jM=c(re(),1);var C$e={...ad,...Un},Tfe=jM.forwardRef(function(t,o){let{className:r,value:n,render:i,keepMounted:s=!1,style:a,...l}=t,{value:u,getTabIdByPanelValue:d,orientation:f,tabActivationDirection:p,registerMountedTabPanel:m}=pg(),g=pn(),{ref:h,index:b}=uw(),v=n===u,{mounted:y,transitionStatus:_,setMounted:w}=Pi(v),k=!y,x=d(n),S={hidden:k,orientation:f,tabActivationDirection:p,transitionStatus:_},C=jM.useRef(null),R=De("div",t,{state:S,ref:[o,h,C],props:[{"aria-labelledby":x,hidden:k,id:g,role:"tabpanel",tabIndex:v?0:-1,inert:Sw(!v),"data-index":b},l],stateAttributesMapping:C$e});return Wn({open:v,ref:C,onComplete(){v||w(!1)}}),le(()=>{if(!(g==null||k&&!s))return m(n,g)},[k,s,n,g,m]),s||y?R:null});var Dc=c(re(),1);var uG=c(T(),1),Rfe=Dc.forwardRef(function(t,o){let{activateOnFocus:r=!1,className:n,loopFocus:i=!0,render:s,style:a,...l}=t,{orientation:u,setTabMap:d,tabActivationDirection:f}=pg(),[p,m]=Dc.useState(0),[g,h]=Dc.useState(null),b=Dc.useRef(new Set),v=Dc.useRef(new Set),y=Dc.useRef(null);le(()=>{if(typeof ResizeObserver>"u")return;let C=new ResizeObserver(()=>{b.current.forEach(R=>{R()})});return y.current=C,g&&C.observe(g),v.current.forEach(R=>{C.observe(R)}),()=>{C.disconnect(),y.current=null}},[g]);let _=de(C=>(b.current.add(C),()=>{b.current.delete(C)})),w=de(C=>(v.current.add(C),y.current?.observe(C),()=>{v.current.delete(C),y.current?.unobserve(C)})),k={orientation:u,tabActivationDirection:f},x={"aria-orientation":u==="vertical"?"vertical":void 0,role:"tablist"},S=Dc.useMemo(()=>({activateOnFocus:r,registerIndicatorUpdateListener:_,registerTabResizeObserverElement:w,tabsListElement:g}),[r,_,w,g]);return(0,uG.jsx)(cG.Provider,{value:S,children:(0,uG.jsx)(Tde,{render:s,className:n,style:a,state:k,refs:[o,h],props:[x,l],stateAttributesMapping:ad,highlightedIndex:p,enableHomeAndEndKeys:!0,loopFocus:i,orientation:u,onHighlightedIndexChange:m,onMapChange:d,disabledIndices:gl})})});var Us={};No(Us,{Arrow:()=>Yfe,Handle:()=>X1,Popup:()=>Gfe,Portal:()=>jfe,Positioner:()=>Ufe,Provider:()=>qfe,Root:()=>Mfe,Trigger:()=>Vfe,Viewport:()=>Xfe,createHandle:()=>Qfe});var zw=c(re(),1);var HM=c(re(),1),dG=HM.createContext(void 0);function xl(e){let t=HM.useContext(dG);if(t===void 0&&!e)throw new Error(Ut(72));return t}var Bfe=c(re(),1);var Ife={...tue,disabled:e=>e.disabled,instantType:e=>e.instantType,isInstantPhase:e=>e.isInstantPhase,trackCursorAxis:e=>e.trackCursorAxis,disableHoverablePopup:e=>e.disableHoverablePopup,lastOpenChangeReason:e=>e.openChangeReason,closeOnClick:e=>e.closeOnClick,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin},UM=class extends rd{constructor(t,o,r){let n=new Ff;super(Ofe(t,n,o,r),Afe(n),Ife)}setOpen=(t,o)=>{Gce(this,t,o,{extraState:{openChangeReason:o.reason}})};cancelPendingOpen(t){this.state.floatingRootContext.dispatchOpenChange(!1,$e(Te.triggerPress,t))}};function Pfe(){let e=new Ff,t=new zA(Object.freeze(Ofe(void 0,e)),Object.freeze(Afe(e)),Ife);return Object.assign(t,{setOpen:At,cancelPendingOpen:At})}function Ofe(e,t,o,r=!1){let n={...Qce(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...e};return n.floatingRootContext=Jce(t,o,r),n}function Afe(e){return{popupRef:Bfe.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e}}var Z1=c(T(),1),Mfe=SW(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:p=null,children:m}=t,g=Uce((I,O)=>new UM({open:r,openProp:n,activeTriggerId:p,triggerIdProp:f},I,O));g.useControlledProp("openProp",n),g.useControlledProp("triggerIdProp",f),g.useContextCallback("onOpenChange",l),g.useContextCallback("onOpenChangeComplete",u);let h=g.useState("open"),b=!o&&h,v=g.useState("activeTriggerId"),y=g.useState("mounted"),_=g.useState("payload");g.useSyncedValues({trackCursorAxis:s,disableHoverablePopup:i,disabled:o}),Yce(g,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:w,transitionStatus:k}=Kce(b,g),x=g.useState("isInstantPhase"),S=g.useState("instantType"),C=g.useState("lastOpenChangeReason"),R=zw.useRef(null);le(()=>{h&&o&&g.setOpen(!1,$e(Te.disabled))},[h,o,g]),le(()=>{k==="ending"&&C===Te.none||k!=="ending"&&x?(S!=="delay"&&(R.current=S),g.set("instantType","delay")):R.current!==null&&(g.set("instantType",R.current),R.current=null)},[k,x,C,S,g]),le(()=>{b&&v==null&&g.set("payload",void 0)},[g,v,b]),zw.useImperativeHandle(a,()=>({unmount:w,close:()=>g.setOpen(!1,$e(Te.imperativeAction))}),[w,g]);let E=b||y||!o&&s!=="none";return(0,Z1.jsxs)(dG.Provider,{value:g,children:[d&&(0,Z1.jsx)(Wce,{handle:d,store:g}),E&&(0,Z1.jsx)(E$e,{store:g,disabled:o,trackCursorAxis:s}),typeof m=="function"?m({payload:_}):m]})});function E$e({store:e,disabled:t,trackCursorAxis:o}){let r=e.useState("floatingRootContext"),n=M1(r,{enabled:!t,referencePress:()=>e.select("closeOnClick")}),i=fW(r,{enabled:!t&&o!=="none",axis:o==="none"?void 0:o}),s=zw.useMemo(()=>zt(i.reference,n.reference),[i.reference,n.reference]);return qce(e,{activeTriggerProps:s,inactiveTriggerProps:s,popupProps:n.floating??Wt}),null}var GM=c(re(),1);var WM=c(re(),1),fG=WM.createContext(void 0);function Nfe(){return WM.useContext(fG)}var Dfe="data-base-ui-tooltip-trigger";function Lfe(e){if("composedPath"in e){let o=e.composedPath();for(let r=0;r<o.length;r+=1){let n=o[r];if(ct(n))return n}}let t=e.target;return ct(t)?t:null}function R$e(e){let t=e;for(;t;){let o=t.closest(`[${Dfe}]`);if(o)return o;let r=t.getRootNode();t="host"in r&&ct(r.host)?r.host:null}return null}var Vfe=Lce(function(t,o){let{render:r,className:n,style:i,handle:s,payload:a,disabled:l,delay:u,closeOnClick:d=!0,closeDelay:f,id:p,...m}=t,g=xl(!0),b=rue(s)??g;if(!b)throw new Error(Ut(82));let v=pn(p),y=b.useState("isTriggerActive",v),_=b.useState("isOpenedByTrigger",v),w=b.useState("floatingRootContext"),k=GM.useRef(null),x=u??600,S=f??0,{registerTrigger:C,isMountedByThisTrigger:R}=$ce(v,k,b,{payload:a,closeOnClick:d,closeDelay:S}),E=Nfe(),{delayRef:I,isInstantPhase:O,hasProvider:A}=ZU(w,{open:_}),P=xw(w);b.useSyncedValue("isInstantPhase",O);let L=b.useState("disabled"),H=l??L,N=so(H),M=b.useState("trackCursorAxis"),V=b.useState("disableHoverablePopup"),j=GM.useRef(!1),D=Fo(),z=GM.useRef(void 0);function W(){return A?hl(I.current,"open")===0?0:u??E??600:x}function ee(se){let be=k.current;if(!be||!se)return!1;let pe=R$e(se);return pe!==null&&pe!==be&&We(be,pe)}function J(se){let be=ee(se);return j.current=be,be&&(P.openChangeTimeout.clear(),P.restTimeout.clear(),P.restTimeoutPending=!1,D.clear()),be}let U=MW(w,{enabled:!H,mouseOnly:!0,move:!1,handleClose:!V&&M!=="both"?VW():null,restMs:W,delay(){return f==null&&A?{close:hl(I.current,"close")}:{close:S}},triggerElementRef:k,isActiveTrigger:y,isClosing:()=>b.select("transitionStatus")==="ending",shouldOpen(){return!j.current}}),Q=IW(w,{enabled:!H}).reference,Z=se=>{let be=j.current,pe=Lfe(se),ke=J(pe),ye=k.current,Pe=ye&&pe&&We(ye,pe);if(ke&&b.select("open")&&b.select("lastOpenChangeReason")===Te.triggerHover){b.setOpen(!1,$e(Te.triggerHover,se));return}if(be&&!ke&&Pe&&!N.current&&!b.select("open")&&ye&&Sa(z.current)){let _e=()=>{!j.current&&!N.current&&!b.select("open")&&b.setOpen(!0,$e(Te.triggerHover,se,ye))},ve=W();ve===0?(D.clear(),_e()):D.start(ve,_e)}},K=b.useState("triggerProps",R);return De("button",t,{state:{open:_},ref:[o,C,k],props:[U,Q,R||M!=="none"?K:void 0,{onMouseOver(se){Z(se.nativeEvent)},onFocus(se){ee(Lfe(se.nativeEvent))&&se.preventBaseUIHandler()},onMouseLeave(){j.current=!1,D.clear(),z.current=void 0},onPointerEnter(se){z.current=se.pointerType},onPointerDown(se){z.current=se.pointerType,b.set("closeOnClick",d),d&&!b.select("open")&&b.cancelPendingOpen(se.nativeEvent)},onClick(se){d&&!b.select("open")&&b.cancelPendingOpen(se.nativeEvent)},id:v,"data-trigger-disabled":H?"":void 0,[Dfe]:H?void 0:""},m],stateAttributesMapping:jA})});var zfe=c(re(),1);var $M=c(re(),1),pG=$M.createContext(void 0);function Ffe(){let e=$M.useContext(pG);if(e===void 0)throw new Error(Ut(70));return e}var mG=c(T(),1),jfe=zfe.forwardRef(function(t,o){let{keepMounted:r=!1,...n}=t;return xl().useState("mounted")||r?(0,mG.jsx)(pG.Provider,{value:r,children:(0,mG.jsx)(Ide,{ref:o,...n})}):null});var KM=c(re(),1);var YM=c(re(),1),gG=YM.createContext(void 0);function jw(){let e=YM.useContext(gG);if(e===void 0)throw new Error(Ut(71));return e}var Hfe=c(T(),1),Ufe=KM.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:p=5,arrowPadding:m=5,sticky:g=!1,disableAnchorTracking:h=!1,collisionAvoidance:b=Gle,style:v,...y}=t,_=xl(),w=Ffe(),k=_.useState("open"),x=_.useState("mounted"),S=_.useState("trackCursorAxis"),C=_.useState("disableHoverablePopup"),R=_.useState("floatingRootContext"),E=_.useState("instantType"),I=_.useState("transitionStatus"),O=_.useState("adaptiveOrigin"),A=iM({anchor:i,positionMethod:s,floatingRootContext:R,mounted:x,side:a,sideOffset:u,align:l,alignOffset:d,collisionBoundary:f,collisionPadding:p,sticky:g,arrowPadding:m,disableAnchorTracking:h,keepMounted:w,collisionAvoidance:b,adaptiveOrigin:O}),P=KM.useMemo(()=>({open:k,side:A.side,align:A.align,anchorHidden:A.anchorHidden,instant:S!=="none"?"tracking-cursor":E}),[k,A.side,A.align,A.anchorHidden,S,E]),L=sM(t,P,{styles:A.positionerStyles,transitionStatus:I,props:y,refs:[o,_.useStateSetter("positionerElement")],hidden:!x,inert:!k||S==="both"||C});return(0,Hfe.jsx)(gG.Provider,{value:A,children:L})});var Wfe=c(re(),1);var Gfe=Wfe.forwardRef(function(t,o){let{render:r,className:n,style:i,...s}=t,a=xl(),{side:l,align:u}=jw(),d=a.useState("open"),f=a.useState("instantType"),p=a.useState("transitionStatus"),m=a.useState("popupProps"),g=a.useState("floatingRootContext"),h=a.useState("disabled"),b=a.useState("closeDelay");Wn({open:d,ref:a.context.popupRef,onComplete(){d&&a.context.onOpenChangeComplete?.(!0)}}),AW(g,{enabled:!h,closeDelay:b});let v=a.useStateSetter("popupElement");return De("div",t,{state:{open:d,side:l,align:u,instant:f,transitionStatus:p},ref:[o,a.context.popupRef,v],props:[OA,m,Rw(p),s],stateAttributesMapping:HA})});var $fe=c(re(),1);var Yfe=$fe.forwardRef(function(t,o){let{render:r,className:n,style:i,...s}=t,a=xl(),{arrowRef:l,side:u,align:d,arrowUncentered:f,arrowStyles:p}=jw(),m=a.useState("open"),g=a.useState("instantType");return De("div",t,{state:{open:m,side:u,align:d,uncentered:f,instant:g},ref:[o,l],props:[{style:p,"aria-hidden":!0},s],stateAttributesMapping:zf})});var Kfe=c(re(),1);var hG=c(T(),1),qfe=function(t){let{delay:o,closeDelay:r,timeout:n=400}=t,i=Kfe.useMemo(()=>({open:o,close:r}),[o,r]);return(0,hG.jsx)(fG.Provider,{value:o,children:(0,hG.jsx)(qU,{delay:i,timeoutMs:n,children:t.children})})};var Zfe=c(re(),1);var Xfe=Zfe.forwardRef(function(t,o){let{render:r,className:n,style:i,children:s,...a}=t,l=xl(),u=jw(),d=l.useState("instantType"),{children:f,state:p}=ude({store:l,side:u.side,children:s}),m={activationDirection:p.activationDirection,transitioning:p.transitioning,instant:d};return De("div",t,{state:m,ref:o,props:[a,{children:f}],stateAttributesMapping:cde})});var X1=class extends RA{constructor(){super(Pfe(),"Tooltip")}open(t){this.openByTrigger(t)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}};function Qfe(){return new X1}function hn(e){return De(e.defaultTagName??"div",e,e)}var tpe=c(F(),1),bG="data-wp-hash";function yG(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&I$e(document)),e.__wpStyleRuntime}function B$e(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${bG}]`))if(o.getAttribute(bG)===t)return!0;return!1}function ope(e,t,o){if(!e.head)return;let r=yG(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(B$e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(bG,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function I$e(e){let t=yG();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)ope(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 rpe(e,t){let o=yG();o.styles.set(e,t);for(let r of o.documents.keys())ope(r,e,t)}typeof process>"u",rpe("a495f9d138",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer 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-emphasis,600);--_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-emphasis,600)}._3c78b7fa9b4072dd__heading-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_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-emphasis,600);--_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-emphasis,600);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-emphasis,600);--_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-emphasis,600);--_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-emphasis,600);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-default,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-default,400)}.ca1aa3fc2029e958__body-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,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-default,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-default,400)}._0e8d87a42c1f75fa__body-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,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 Jfe={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",rpe("af6d9984a6","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");var epe={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a"},cs=(0,tpe.forwardRef)(function({variant:t="body-md",render:o,className:r,...n},i){return hn({render:o,defaultTagName:"span",ref:i,props:zt(n,{className:$(Jfe.text,epe.heading,epe.p,Jfe[t],r)})})});var ape=c(T(),1),vG="data-wp-hash";function _G(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&O$e(document)),e.__wpStyleRuntime}function P$e(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${vG}]`))if(o.getAttribute(vG)===t)return!0;return!1}function spe(e,t,o){if(!e.head)return;let r=_G(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(P$e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(vG,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function O$e(e){let t=_G();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)spe(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 A$e(e,t){let o=_G();o.styles.set(e,t);for(let r of o.documents.keys())spe(r,e,t)}typeof process>"u",A$e("9db2873e7f","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer 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-background-surface-error,#f6e6e3);color:var(--wpds-color-foreground-content-error,#470000)}.c20ebef2365bc8b7__is-medium-intent{background-color:var(--wpds-color-background-surface-warning,#fde6be);color:var(--wpds-color-foreground-content-warning,#2e1900)}._365e1626c6202e52__is-low-intent{background-color:var(--wpds-color-background-surface-caution,#fee995);color:var(--wpds-color-foreground-content-caution,#281d00)}._33f8198127ddf4ef__is-stable-intent{background-color:var(--wpds-color-background-surface-success,#c6f7cd);color:var(--wpds-color-foreground-content-success,#002900)}._04c1aca8fc449412__is-informational-intent{background-color:var(--wpds-color-background-surface-info,#deebfa);color:var(--wpds-color-foreground-content-info,#001b4f)}._90726e69d495ec19__is-draft-intent{background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}._898f4a544993bd39__is-none-intent{background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);color:var(--wpds-color-foreground-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 npe={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"},wG=(0,ipe.forwardRef)(function({intent:t="none",className:o,...r},n){return(0,ape.jsx)(cs,{ref:n,className:$(npe.badge,npe[`is-${t}-intent`],o),...r,variant:"body-sm"})});var lpe=c(Yo(),1),qM=c(F(),1),cpe=c(q(),1),dpe=c(T(),1),kG="data-wp-hash";function xG(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&N$e(document)),e.__wpStyleRuntime}function M$e(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${kG}]`))if(o.getAttribute(kG)===t)return!0;return!1}function upe(e,t,o){if(!e.head)return;let r=xG(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(M$e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(kG,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function N$e(e){let t=xG();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)upe(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 ZM(e,t){let o=xG();o.styles.set(e,t);for(let r of o.documents.keys())upe(r,e,t)}typeof process>"u",ZM("effc4e3032",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._97b0fc33c028be1a__button,.abbb272e2ce49bd6__is-unstyled{appearance:none;padding:0}._97b0fc33c028be1a__button{--wp-ui-button-font-weight:var(--wpds-typography-font-weight-emphasis,600);--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-brand-strong,#fff);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-brand-strong-active,#fff);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-brand-strong-disabled,#8d8d8d);--wp-ui-button-padding-block:var(--wpds-dimension-padding-xs,4px);--wp-ui-button-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-button-height:var(--wpds-dimension-size-lg,40px);--wp-ui-button-aspect-ratio:auto;--wp-ui-button-font-size:var(--wpds-typography-font-size-md,13px);--wp-ui-button-min-width:calc(4ch + var(--wp-ui-button-padding-inline)*2);--wp-ui-button-icon-margin:calc((var(--wpds-dimension-size-2xs, 16px) - var(--wpds-dimension-size-sm, 24px))/2);--wp-ui-button-border-color:var(--wp-ui-button-background-color);--wp-ui-button-border-color-active:var(--wp-ui-button-background-color-active);--wp-ui-button-border-color-disabled:var(--wp-ui-button-background-color-disabled);--_gcd-button-font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);--_gcd-button-font-size:var(--wp-ui-button-font-size);--_gcd-button-font-weight:var(--wp-ui-button-font-weight);align-items:center;aspect-ratio:var(--wp-ui-button-aspect-ratio);background-clip:border-box;background-color:var(--wp-ui-button-background-color);border-color:var(--wp-ui-button-border-color);border-radius:var(--wpds-border-radius-sm,2px);border-style:solid;border-width:1px;color:var(--wp-ui-button-foreground-color);display:inline-flex;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(--wp-ui-button-font-size);font-weight:var(--wp-ui-button-font-weight);gap:var(--wpds-dimension-gap-sm,8px);justify-content:center;line-height:var(--wpds-typography-line-height-sm,20px);max-width:100%;min-height:var(--wp-ui-button-height);min-width:var(--wp-ui-button-min-width);overflow-wrap:anywhere;padding-block:var(--wp-ui-button-padding-block);padding-inline:var(--wp-ui-button-padding-inline);position:relative;text-align:center;text-decoration:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}@media not (prefers-reduced-motion){transition:color .1s ease-out;*{transition:opacity .1s ease-out}}&[href]{cursor:pointer}[href]{color:inherit;text-decoration:inherit}&:not([data-disabled]):is(:hover,:active,:focus){background-color:var(--wp-ui-button-background-color-active);border-color:var(--wp-ui-button-border-color-active);color:var(--wp-ui-button-foreground-color-active)}&[data-disabled]:not(._914b42f315c0e580__is-loading){background-color:var(--wp-ui-button-background-color-disabled);border-color:var(--wp-ui-button-border-color-disabled);color:var(--wp-ui-button-foreground-color-disabled);@media (forced-colors:active){border-bottom-color:GrayText;border-left-color:GrayText;border-right-color:GrayText;border-top-color:GrayText;color:GrayText}}&:before{aspect-ratio:1;border:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid;border-block-end-color:transparent;border-block-start-color:var(--wp-ui-button-foreground-color);border-inline-end-color:var(--wp-ui-button-foreground-color);border-inline-start-color:transparent;border-radius:50%;box-sizing:border-box;content:"";display:block;height:var(--wp-ui-button-font-size);left:50%;opacity:0;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);@media not (prefers-reduced-motion){transition:opacity .1s ease-out}@media (forced-colors:active){border-block-end-style:none;border-bottom-color:ButtonText;border-inline-start-style:none;border-left-color:ButtonText;border-right-color:ButtonText;border-top-color:ButtonText}}}._908205475f9f2a92__is-small{--wp-ui-button-padding-block:0px;--wp-ui-button-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-button-height:var(--wpds-dimension-size-sm,24px)}._9f6fc6553aeb36fe__icon{margin:var(--wp-ui-button-icon-margin)}.dd460c965226cc77__is-brand{&._62d5a778b7b258ee__is-outline,&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000));--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-brand-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline{--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);--wp-ui-button-border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-border-color-active:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000));--wp-ui-button-border-color-disabled:var(--wpds-color-stroke-interactive-brand-disabled,#dbdbdb)}&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-weak-disabled,#0000)}}.e722a8f96726aa99__is-neutral{&.ad0619a3217c6a5b__is-minimal[aria-pressed=true],&.b50b3358c5fb4d0b__is-solid{--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-strong,#2d2d2d);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-strong-active,#1e1e1e);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-neutral-strong,#f0f0f0);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-neutral-strong-active,#f0f0f0);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-neutral-strong-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline,&.ad0619a3217c6a5b__is-minimal:not([aria-pressed=true]){--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline{--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);--wp-ui-button-border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);--wp-ui-button-border-color-active:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e);--wp-ui-button-border-color-disabled:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb)}&.ad0619a3217c6a5b__is-minimal:not([aria-pressed=true]){--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000)}}.abbb272e2ce49bd6__is-unstyled{background:none;border:none;min-width:unset}.cf59cf1b69629838__is-compact{--wp-ui-button-height:var(--wpds-dimension-size-md,32px)}._914b42f315c0e580__is-loading:not(.abbb272e2ce49bd6__is-unstyled){color:transparent;&:not([data-disabled]):is(:hover,:active,:focus){color:transparent}@media (forced-colors:active){color:ButtonFace}*{opacity:0}&:before{opacity:1;transition-delay:.05s;@media not (prefers-reduced-motion){animation:_5a1d53da6f830c8d__loading-animation 1s linear infinite}}}}@keyframes _5a1d53da6f830c8d__loading-animation{0%{transform:translate(-50%,-50%) rotate(0deg)}to{transform:translate(-50%,-50%) rotate(1turn)}}}');var Q1={button:"_97b0fc33c028be1a__button","is-unstyled":"abbb272e2ce49bd6__is-unstyled","is-loading":"_914b42f315c0e580__is-loading","is-small":"_908205475f9f2a92__is-small",icon:"_9f6fc6553aeb36fe__icon","is-brand":"dd460c965226cc77__is-brand","is-outline":"_62d5a778b7b258ee__is-outline","is-minimal":"ad0619a3217c6a5b__is-minimal","is-neutral":"e722a8f96726aa99__is-neutral","is-solid":"b50b3358c5fb4d0b__is-solid","is-compact":"cf59cf1b69629838__is-compact","loading-animation":"_5a1d53da6f830c8d__loading-animation"};typeof process>"u",ZM("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var L$e={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",ZM("96553466c8","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._64de9947bf305b7a__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.af79fb116edb0dd7__outset-ring--focus:focus,.dfcfdc28396e5d98__outset-ring--focus-visible:focus-visible,.e5cd9ee879f6403a__outset-ring--focus-within:focus-within,:focus-visible ._81935a08e952f267__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within,.abc777e9713fa711__outset-ring--focus-except-active:focus{outline:none}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.abc777e9713fa711__outset-ring--focus-except-active:focus:not(:active){--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");var D$e={"outset-ring--focus":"af79fb116edb0dd7__outset-ring--focus","outset-ring--focus-visible":"dfcfdc28396e5d98__outset-ring--focus-visible","outset-ring--focus-within":"e5cd9ee879f6403a__outset-ring--focus-within","outset-ring--focus-within-visible":"_64de9947bf305b7a__outset-ring--focus-within-visible","outset-ring--focus-parent-visible":"_81935a08e952f267__outset-ring--focus-parent-visible","outset-ring--focus-except-active":"abc777e9713fa711__outset-ring--focus-except-active","outset-ring--focus-within-except-active":"_3c9f5ee9fc9c136d__outset-ring--focus-within-except-active"};typeof process>"u",ZM("af6d9984a6","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");var V$e={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a"},fpe=(0,qM.forwardRef)(function({tone:t="brand",variant:o="solid",size:r="default",className:n,focusableWhenDisabled:i=!0,disabled:s,loading:a,loadingAnnouncement:l=(0,cpe.__)("Loading"),children:u,...d},f){let p=$(V$e.button,L$e["box-sizing"],D$e["outset-ring--focus-except-active"],o!=="unstyled"&&Q1.button,Q1[`is-${t}`],Q1[`is-${o}`],Q1[`is-${r}`],a&&Q1["is-loading"],n);return(0,qM.useEffect)(()=>{a&&l&&(0,lpe.speak)(l)},[a,l]),(0,dpe.jsx)($W,{ref:f,className:p,focusableWhenDisabled:i,disabled:s??a,...d,children:u})});var hpe=c(F(),1);var ppe=c(F(),1),mpe=c(me(),1),gpe=c(T(),1),Xr=(0,ppe.forwardRef)(function({icon:t,size:o=24,...r},n){return(0,gpe.jsx)(mpe.SVG,{ref:n,...t.props,...r,width:o,height:o})});var ype=c(T(),1),SG="data-wp-hash";function CG(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&z$e(document)),e.__wpStyleRuntime}function F$e(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${SG}]`))if(o.getAttribute(SG)===t)return!0;return!1}function bpe(e,t,o){if(!e.head)return;let r=CG(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(F$e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(SG,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function z$e(e){let t=CG();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)bpe(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 j$e(e,t){let o=CG();o.styles.set(e,t);for(let r of o.documents.keys())bpe(r,e,t)}typeof process>"u",j$e("effc4e3032",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._97b0fc33c028be1a__button,.abbb272e2ce49bd6__is-unstyled{appearance:none;padding:0}._97b0fc33c028be1a__button{--wp-ui-button-font-weight:var(--wpds-typography-font-weight-emphasis,600);--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-brand-strong,#fff);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-brand-strong-active,#fff);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-brand-strong-disabled,#8d8d8d);--wp-ui-button-padding-block:var(--wpds-dimension-padding-xs,4px);--wp-ui-button-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-button-height:var(--wpds-dimension-size-lg,40px);--wp-ui-button-aspect-ratio:auto;--wp-ui-button-font-size:var(--wpds-typography-font-size-md,13px);--wp-ui-button-min-width:calc(4ch + var(--wp-ui-button-padding-inline)*2);--wp-ui-button-icon-margin:calc((var(--wpds-dimension-size-2xs, 16px) - var(--wpds-dimension-size-sm, 24px))/2);--wp-ui-button-border-color:var(--wp-ui-button-background-color);--wp-ui-button-border-color-active:var(--wp-ui-button-background-color-active);--wp-ui-button-border-color-disabled:var(--wp-ui-button-background-color-disabled);--_gcd-button-font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);--_gcd-button-font-size:var(--wp-ui-button-font-size);--_gcd-button-font-weight:var(--wp-ui-button-font-weight);align-items:center;aspect-ratio:var(--wp-ui-button-aspect-ratio);background-clip:border-box;background-color:var(--wp-ui-button-background-color);border-color:var(--wp-ui-button-border-color);border-radius:var(--wpds-border-radius-sm,2px);border-style:solid;border-width:1px;color:var(--wp-ui-button-foreground-color);display:inline-flex;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(--wp-ui-button-font-size);font-weight:var(--wp-ui-button-font-weight);gap:var(--wpds-dimension-gap-sm,8px);justify-content:center;line-height:var(--wpds-typography-line-height-sm,20px);max-width:100%;min-height:var(--wp-ui-button-height);min-width:var(--wp-ui-button-min-width);overflow-wrap:anywhere;padding-block:var(--wp-ui-button-padding-block);padding-inline:var(--wp-ui-button-padding-inline);position:relative;text-align:center;text-decoration:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}@media not (prefers-reduced-motion){transition:color .1s ease-out;*{transition:opacity .1s ease-out}}&[href]{cursor:pointer}[href]{color:inherit;text-decoration:inherit}&:not([data-disabled]):is(:hover,:active,:focus){background-color:var(--wp-ui-button-background-color-active);border-color:var(--wp-ui-button-border-color-active);color:var(--wp-ui-button-foreground-color-active)}&[data-disabled]:not(._914b42f315c0e580__is-loading){background-color:var(--wp-ui-button-background-color-disabled);border-color:var(--wp-ui-button-border-color-disabled);color:var(--wp-ui-button-foreground-color-disabled);@media (forced-colors:active){border-bottom-color:GrayText;border-left-color:GrayText;border-right-color:GrayText;border-top-color:GrayText;color:GrayText}}&:before{aspect-ratio:1;border:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid;border-block-end-color:transparent;border-block-start-color:var(--wp-ui-button-foreground-color);border-inline-end-color:var(--wp-ui-button-foreground-color);border-inline-start-color:transparent;border-radius:50%;box-sizing:border-box;content:"";display:block;height:var(--wp-ui-button-font-size);left:50%;opacity:0;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);@media not (prefers-reduced-motion){transition:opacity .1s ease-out}@media (forced-colors:active){border-block-end-style:none;border-bottom-color:ButtonText;border-inline-start-style:none;border-left-color:ButtonText;border-right-color:ButtonText;border-top-color:ButtonText}}}._908205475f9f2a92__is-small{--wp-ui-button-padding-block:0px;--wp-ui-button-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-button-height:var(--wpds-dimension-size-sm,24px)}._9f6fc6553aeb36fe__icon{margin:var(--wp-ui-button-icon-margin)}.dd460c965226cc77__is-brand{&._62d5a778b7b258ee__is-outline,&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000));--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-brand-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline{--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);--wp-ui-button-border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-border-color-active:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000));--wp-ui-button-border-color-disabled:var(--wpds-color-stroke-interactive-brand-disabled,#dbdbdb)}&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-weak-disabled,#0000)}}.e722a8f96726aa99__is-neutral{&.ad0619a3217c6a5b__is-minimal[aria-pressed=true],&.b50b3358c5fb4d0b__is-solid{--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-strong,#2d2d2d);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-strong-active,#1e1e1e);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-neutral-strong,#f0f0f0);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-neutral-strong-active,#f0f0f0);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-neutral-strong-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline,&.ad0619a3217c6a5b__is-minimal:not([aria-pressed=true]){--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline{--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);--wp-ui-button-border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);--wp-ui-button-border-color-active:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e);--wp-ui-button-border-color-disabled:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb)}&.ad0619a3217c6a5b__is-minimal:not([aria-pressed=true]){--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000)}}.abbb272e2ce49bd6__is-unstyled{background:none;border:none;min-width:unset}.cf59cf1b69629838__is-compact{--wp-ui-button-height:var(--wpds-dimension-size-md,32px)}._914b42f315c0e580__is-loading:not(.abbb272e2ce49bd6__is-unstyled){color:transparent;&:not([data-disabled]):is(:hover,:active,:focus){color:transparent}@media (forced-colors:active){color:ButtonFace}*{opacity:0}&:before{opacity:1;transition-delay:.05s;@media not (prefers-reduced-motion){animation:_5a1d53da6f830c8d__loading-animation 1s linear infinite}}}}@keyframes _5a1d53da6f830c8d__loading-animation{0%{transform:translate(-50%,-50%) rotate(0deg)}to{transform:translate(-50%,-50%) rotate(1turn)}}}');var H$e={button:"_97b0fc33c028be1a__button","is-unstyled":"abbb272e2ce49bd6__is-unstyled","is-loading":"_914b42f315c0e580__is-loading","is-small":"_908205475f9f2a92__is-small",icon:"_9f6fc6553aeb36fe__icon","is-brand":"dd460c965226cc77__is-brand","is-outline":"_62d5a778b7b258ee__is-outline","is-minimal":"ad0619a3217c6a5b__is-minimal","is-neutral":"e722a8f96726aa99__is-neutral","is-solid":"b50b3358c5fb4d0b__is-solid","is-compact":"cf59cf1b69629838__is-compact","loading-animation":"_5a1d53da6f830c8d__loading-animation"},EG=(0,hpe.forwardRef)(function({className:t,icon:o,...r},n){return(0,ype.jsx)(Xr,{ref:n,icon:o,className:$(H$e.icon,t),size:24,...r})});EG.displayName="Button.Icon";var XM=Object.assign(fpe,{Icon:EG});function vpe(e,t,o="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:o}).format(t).split(/\s/g).slice(2).join(" ")}var U$e={},J1={};function Fc(e,t){try{let r=(U$e[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];return r in J1?J1[r]:_pe(r,r.split(":"))}catch{if(e in J1)return J1[e];let o=e?.match(W$e);return o?_pe(e,o.slice(1)):NaN}}var W$e=/([+-]\d\d):?(\d\d)?/;function _pe(e,t){let o=+(t[0]||0),r=+(t[1]||0),n=+(t[2]||0)/60;return J1[e]=o*60+r>0?o*60+r+n:o*60-r-n}var mg=class e extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(Fc(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),xpe(this,t)):this.setTime(Date.now())}static tz(t,...o){return o.length?new e(...o,t):new e(Date.now(),t)}withTimeZone(t){return new e(+this,t)}getTimezoneOffset(){let t=-Fc(this.timeZone,this);return t>0?Math.floor(t):Math.ceil(t)}setTime(t){return Date.prototype.setTime.apply(this,arguments),QM(this),+this}[Symbol.for("constructDateFrom")](t){return new e(+new Date(t),this.timeZone)}},wpe=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!wpe.test(e))return;let t=e.replace(wpe,"$1UTC");mg.prototype[t]&&(e.startsWith("get")?mg.prototype[e]=function(){return this.internal[t]()}:(mg.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),G$e(this),+this},mg.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),QM(this),+this}))});function QM(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-Fc(e.timeZone,e)*60))}function G$e(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),xpe(e)}function xpe(e,t){let o=Array.isArray(t)?$$e(t):+e.internal,r=Fc(e.timeZone,e),n=r>0?Math.floor(r):Math.ceil(r),i=new Date(+e);i.setUTCHours(i.getUTCHours()-1);let s=-new Date(+e).getTimezoneOffset(),a=-new Date(+i).getTimezoneOffset(),l=s-a,u=s;if(l&&s!==n){let R=Date.prototype.getHours.apply(e),E=Array.isArray(t)?t[3]||0:e.internal.getUTCHours();if(R!==E){let I=new Date(+e),O=s-n;O&&I.setUTCMinutes(I.getUTCMinutes()+O);let A=Fc(e.timeZone,I);(A>0?Math.floor(A):Math.ceil(A))===n&&(u=a)}}let d=u-n;d&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+d);let f=new Date(+e);f.setUTCSeconds(0);let p=s>0?f.getSeconds():(f.getSeconds()-60)%60,m=Math.round(-(Fc(e.timeZone,e)*60))%60;(m||p)&&Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+m+p);let g=Fc(e.timeZone,e),h=g>0?Math.floor(g):Math.ceil(g),v=-new Date(+e).getTimezoneOffset()-h,y=h!==n,_=v-d,w=h-n,k=o-h*60*1e3,x=w>0&&kpe(e)-o===w*60*1e3&&kpe(e,k)!==o;if(y&&_&&!x){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+_);let R=Fc(e.timeZone,e),E=R>0?Math.floor(R):Math.ceil(R),I=h-E;I&&_<0&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+I)}QM(e);let C=(t?o:o+m*1e3)-+e.internal;C&&Math.abs(C)<1800*1e3&&(Date.prototype.setTime.call(e,+e+C),QM(e))}function $$e(e){return Date.UTC(e[0],e.length>1?e[1]:0,e.length>2?e[2]:1,...e.slice(3))}function kpe(e,t){let o=new Date(t??+e);return o.setUTCSeconds(o.getUTCSeconds()-Math.round(-Fc(e.timeZone,o)*60)),+o}var Qr=class e extends mg{static tz(t,...o){return o.length?new e(...o,t):new e(Date.now(),t)}toISOString(){let[t,o,r]=this.tzComponents(),n=`${t}${o}:${r}`;return this.internal.toISOString().slice(0,-1)+n}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){let[t,o,r,n]=this.internal.toUTCString().split(" ");return`${t?.slice(0,-1)} ${r} ${o} ${n}`}toTimeString(){let t=this.internal.toUTCString().split(" ")[4],[o,r,n]=this.tzComponents();return`${t} GMT${o}${r}${n} (${vpe(this.timeZone,this)})`}toLocaleString(t,o){return Date.prototype.toLocaleString.call(this,t,{...o,timeZone:o?.timeZone||this.timeZone})}toLocaleDateString(t,o){return Date.prototype.toLocaleDateString.call(this,t,{...o,timeZone:o?.timeZone||this.timeZone})}toLocaleTimeString(t,o){return Date.prototype.toLocaleTimeString.call(this,t,{...o,timeZone:o?.timeZone||this.timeZone})}tzComponents(){let t=this.getTimezoneOffset(),o=t>0?"-":"+",r=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),n=String(Math.abs(t)%60).padStart(2,"0");return[o,r,n]}withTimeZone(t){return new e(+this,t)}[Symbol.for("constructDateFrom")](t){return new e(+new Date(t),this.timeZone)}};var Y$e=Math.pow(10,8)*24*60*60*1e3,R8t=-Y$e,JM=6048e5,Spe=864e5,eE=6e4,tE=36e5,Cpe=1e3;var K$e=3600;var Epe=K$e*24,B8t=Epe*7,q$e=Epe*365.2425,Z$e=q$e/12,I8t=Z$e*3,TG=Symbol.for("constructDateFrom");function nt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&TG in e?e[TG](t):e instanceof Date?new e.constructor(t):new Date(t)}function Ne(e,t){return nt(t||e,e)}function ld(e,t,o){let r=Ne(e,o?.in);return isNaN(t)?nt(o?.in||e,NaN):(t&&r.setDate(r.getDate()+t),r)}function Hw(e,t,o){let r=Ne(e,o?.in);if(isNaN(t))return nt(o?.in||e,NaN);if(!t)return r;let n=r.getDate(),i=nt(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 X$e={};function Ws(){return X$e}function Fi(e,t){let o=Ws(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,n=Ne(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 Ra(e,t){return Fi(e,{...t,weekStartsOn:1})}function eN(e,t){let o=Ne(e,t?.in),r=o.getFullYear(),n=nt(o,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);let i=Ra(n),s=nt(o,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);let a=Ra(s);return o.getTime()>=i.getTime()?r+1:o.getTime()>=a.getTime()?r:r-1}function gy(e){let t=Ne(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 Sl(e,...t){let o=nt.bind(null,e||t.find(r=>typeof r=="object"));return t.map(o)}function gg(e,t){let o=Ne(e,t?.in);return o.setHours(0,0,0,0),o}function Uf(e,t,o){let[r,n]=Sl(o?.in,e,t),i=gg(r),s=gg(n),a=+i-gy(i),l=+s-gy(s);return Math.round((a-l)/Spe)}function Tpe(e,t){let o=eN(e,t),r=nt(t?.in||e,0);return r.setFullYear(o,0,4),r.setHours(0,0,0,0),Ra(r)}function tN(e,t,o){return ld(e,t*7,o)}function oN(e,t,o){return Hw(e,t*12,o)}function Rpe(e,t,o){let[r,n]=[+Ne(e.start,o?.in),+Ne(e.end,o?.in)].sort((a,l)=>a-l),[i,s]=[+Ne(t.start,o?.in),+Ne(t.end,o?.in)].sort((a,l)=>a-l);return o?.inclusive?r<=s&&i<=n:r<s&&i<n}function Bpe(e,t){let o,r=t?.in;return e.forEach(n=>{!r&&typeof n=="object"&&(r=nt.bind(null,n));let i=Ne(n,r);(!o||o<i||isNaN(+i))&&(o=i)}),nt(r,o||NaN)}function Ipe(e,t){let o,r=t?.in;return e.forEach(n=>{!r&&typeof n=="object"&&(r=nt.bind(null,n));let i=Ne(n,r);(!o||o>i||isNaN(+i))&&(o=i)}),nt(r,o||NaN)}function Ppe(e,t,o){let[r,n]=Sl(o?.in,e,t);return+gg(r)==+gg(n)}function rN(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function zc(e){return!(!rN(e)&&typeof e!="number"||isNaN(+Ne(e)))}function nN(e,t,o){let[r,n]=Sl(o?.in,e,t),i=r.getFullYear()-n.getFullYear(),s=r.getMonth()-n.getMonth();return i*12+s}function iN(e,t){let o=Ne(e,t?.in),r=o.getMonth();return o.setFullYear(o.getFullYear(),r+1,0),o.setHours(23,59,59,999),o}function sN(e,t){let[o,r]=Sl(e,t.start,t.end);return{start:o,end:r}}function Ope(e,t){let{start:o,end:r}=sN(t?.in,e),n=+o>+r,i=n?+o:+r,s=n?r:o;s.setHours(0,0,0,0),s.setDate(1);let a=t?.step??1;if(!a)return[];a<0&&(a=-a,n=!n);let l=[];for(;+s<=i;)l.push(nt(o,s)),s.setMonth(s.getMonth()+a);return n?l.reverse():l}function oE(e,t){let o=Ne(e,t?.in);return o.setDate(1),o.setHours(0,0,0,0),o}function Ape(e,t){let o=Ne(e,t?.in),r=o.getFullYear();return o.setFullYear(r+1,0,0),o.setHours(23,59,59,999),o}function Uw(e,t){let o=Ne(e,t?.in);return o.setFullYear(o.getFullYear(),0,1),o.setHours(0,0,0,0),o}function Mpe(e,t){let{start:o,end:r}=sN(t?.in,e),n=+o>+r,i=n?+o:+r,s=n?r:o;s.setHours(0,0,0,0),s.setMonth(0,1);let a=t?.step??1;if(!a)return[];a<0&&(a=-a,n=!n);let l=[];for(;+s<=i;)l.push(nt(o,s)),s.setFullYear(s.getFullYear()+a);return n?l.reverse():l}function aN(e,t){let o=Ws(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,n=Ne(e,t?.in),i=n.getDay(),s=(i<r?-7:0)+6-(i-r);return n.setDate(n.getDate()+s),n.setHours(23,59,59,999),n}function Npe(e,t){return aN(e,{...t,weekStartsOn:1})}var Q$e={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"}},Lpe=(e,t,o)=>{let r,n=Q$e[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 lN(e){return(t={})=>{let o=t.width?String(t.width):e.defaultWidth;return e.formats[o]||e.formats[e.defaultWidth]}}var J$e={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},eYe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},tYe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Dpe={date:lN({formats:J$e,defaultWidth:"full"}),time:lN({formats:eYe,defaultWidth:"full"}),dateTime:lN({formats:tYe,defaultWidth:"full"})};var oYe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Vpe=(e,t,o,r)=>oYe[e];function Ww(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 rYe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},nYe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},iYe={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"]},sYe={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"]},aYe={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"}},lYe={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"}},cYe=(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"},Fpe={ordinalNumber:cYe,era:Ww({values:rYe,defaultWidth:"wide"}),quarter:Ww({values:nYe,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ww({values:iYe,defaultWidth:"wide"}),day:Ww({values:sYe,defaultWidth:"wide"}),dayPeriod:Ww({values:aYe,defaultWidth:"wide",formattingValues:lYe,defaultFormattingWidth:"wide"})};function Gw(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)?dYe(a,f=>f.test(s)):uYe(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 uYe(e,t){for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&t(e[o]))return o}function dYe(e,t){for(let o=0;o<e.length;o++)if(t(e[o]))return o}function zpe(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 fYe=/^(\d+)(th|st|nd|rd)?/i,pYe=/\d+/i,mYe={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},gYe={any:[/^b/i,/^(a|c)/i]},hYe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},bYe={any:[/1/i,/2/i,/3/i,/4/i]},yYe={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},vYe={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]},_Ye={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},wYe={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]},kYe={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},xYe={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}},jpe={ordinalNumber:zpe({matchPattern:fYe,parsePattern:pYe,valueCallback:e=>parseInt(e,10)}),era:Gw({matchPatterns:mYe,defaultMatchWidth:"wide",parsePatterns:gYe,defaultParseWidth:"any"}),quarter:Gw({matchPatterns:hYe,defaultMatchWidth:"wide",parsePatterns:bYe,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Gw({matchPatterns:yYe,defaultMatchWidth:"wide",parsePatterns:vYe,defaultParseWidth:"any"}),day:Gw({matchPatterns:_Ye,defaultMatchWidth:"wide",parsePatterns:wYe,defaultParseWidth:"any"}),dayPeriod:Gw({matchPatterns:kYe,defaultMatchWidth:"any",parsePatterns:xYe,defaultParseWidth:"any"})};var Ba={code:"en-US",formatDistance:Lpe,formatLong:Dpe,formatRelative:Vpe,localize:Fpe,match:jpe,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Hpe(e,t){let o=Ne(e,t?.in);return Uf(o,Uw(o))+1}function hg(e,t){let o=Ne(e,t?.in),r=+Ra(o)-+Tpe(o);return Math.round(r/JM)+1}function $w(e,t){let o=Ne(e,t?.in),r=o.getFullYear(),n=Ws(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,s=nt(t?.in||e,0);s.setFullYear(r+1,0,i),s.setHours(0,0,0,0);let a=Fi(s,t),l=nt(t?.in||e,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);let u=Fi(l,t);return+o>=+a?r+1:+o>=+u?r:r-1}function Upe(e,t){let o=Ws(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,n=$w(e,t),i=nt(t?.in||e,0);return i.setFullYear(n,0,r),i.setHours(0,0,0,0),Fi(i,t)}function bg(e,t){let o=Ne(e,t?.in),r=+Fi(o,t)-+Upe(o,t);return Math.round(r/JM)+1}function ao(e,t){let o=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return o+r}var Wf={y(e,t){let o=e.getFullYear(),r=o>0?o:1-o;return ao(t==="yy"?r%100:r,t.length)},M(e,t){let o=e.getMonth();return t==="M"?String(o+1):ao(o+1,2)},d(e,t){return ao(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 ao(e.getHours()%12||12,t.length)},H(e,t){return ao(e.getHours(),t.length)},m(e,t){return ao(e.getMinutes(),t.length)},s(e,t){return ao(e.getSeconds(),t.length)},S(e,t){let o=t.length,r=e.getMilliseconds(),n=Math.trunc(r*Math.pow(10,o-3));return ao(n,t.length)}};var Yw={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},RG={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 Wf.y(e,t)},Y:function(e,t,o,r){let n=$w(e,r),i=n>0?n:1-n;if(t==="YY"){let s=i%100;return ao(s,2)}return t==="Yo"?o.ordinalNumber(i,{unit:"year"}):ao(i,t.length)},R:function(e,t){let o=eN(e);return ao(o,t.length)},u:function(e,t){let o=e.getFullYear();return ao(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 ao(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 ao(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 Wf.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 ao(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=bg(e,r);return t==="wo"?o.ordinalNumber(n,{unit:"week"}):ao(n,t.length)},I:function(e,t,o){let r=hg(e);return t==="Io"?o.ordinalNumber(r,{unit:"week"}):ao(r,t.length)},d:function(e,t,o){return t==="do"?o.ordinalNumber(e.getDate(),{unit:"date"}):Wf.d(e,t)},D:function(e,t,o){let r=Hpe(e);return t==="Do"?o.ordinalNumber(r,{unit:"dayOfYear"}):ao(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 ao(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 ao(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 ao(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=Yw.noon:r===0?n=Yw.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=Yw.evening:r>=12?n=Yw.afternoon:r>=4?n=Yw.morning:n=Yw.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 Wf.h(e,t)},H:function(e,t,o){return t==="Ho"?o.ordinalNumber(e.getHours(),{unit:"hour"}):Wf.H(e,t)},K:function(e,t,o){let r=e.getHours()%12;return t==="Ko"?o.ordinalNumber(r,{unit:"hour"}):ao(r,t.length)},k:function(e,t,o){let r=e.getHours();return r===0&&(r=24),t==="ko"?o.ordinalNumber(r,{unit:"hour"}):ao(r,t.length)},m:function(e,t,o){return t==="mo"?o.ordinalNumber(e.getMinutes(),{unit:"minute"}):Wf.m(e,t)},s:function(e,t,o){return t==="so"?o.ordinalNumber(e.getSeconds(),{unit:"second"}):Wf.s(e,t)},S:function(e,t){return Wf.S(e,t)},X:function(e,t,o){let r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Gpe(r);case"XXXX":case"XX":return hy(r);default:return hy(r,":")}},x:function(e,t,o){let r=e.getTimezoneOffset();switch(t){case"x":return Gpe(r);case"xxxx":case"xx":return hy(r);default:return hy(r,":")}},O:function(e,t,o){let r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Wpe(r,":");default:return"GMT"+hy(r,":")}},z:function(e,t,o){let r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Wpe(r,":");default:return"GMT"+hy(r,":")}},t:function(e,t,o){let r=Math.trunc(+e/1e3);return ao(r,t.length)},T:function(e,t,o){return ao(+e,t.length)}};function Wpe(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+ao(i,2)}function Gpe(e,t){return e%60===0?(e>0?"-":"+")+ao(Math.abs(e)/60,2):hy(e,t)}function hy(e,t=""){let o=e>0?"-":"+",r=Math.abs(e),n=ao(Math.trunc(r/60),2),i=ao(r%60,2);return o+n+t+i}var $pe=(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"})}},Ype=(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"})}},SYe=(e,t)=>{let o=e.match(/(P+)(p+)?/)||[],r=o[1],n=o[2];if(!n)return $pe(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}}",$pe(r,t)).replace("{{time}}",Ype(n,t))},rE={p:Ype,P:SYe};var CYe=/^D+$/,EYe=/^Y+$/,TYe=["D","DD","YY","YYYY"];function cN(e){return CYe.test(e)}function uN(e){return EYe.test(e)}function nE(e,t,o){let r=RYe(e,t,o);if(console.warn(r),TYe.includes(e))throw new RangeError(r)}function RYe(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 BYe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,IYe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,PYe=/^'([^]*?)'?$/,OYe=/''/g,AYe=/[a-zA-Z]/;function Gf(e,t,o){let r=Ws(),n=o?.locale??r.locale??Ba,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=Ne(e,o?.in);if(!zc(a))throw new RangeError("Invalid time value");let l=t.match(IYe).map(d=>{let f=d[0];if(f==="p"||f==="P"){let p=rE[f];return p(d,n.formatLong)}return d}).join("").match(BYe).map(d=>{if(d==="''")return{isToken:!1,value:"'"};let f=d[0];if(f==="'")return{isToken:!1,value:MYe(d)};if(RG[f])return{isToken:!0,value:d};if(f.match(AYe))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&&uN(f)||!o?.useAdditionalDayOfYearTokens&&cN(f))&&nE(f,t,String(e));let p=RG[f[0]];return p(a,f,n.localize,u)}).join("")}function MYe(e){let t=e.match(PYe);return t?t[1].replace(OYe,"'"):e}function Kpe(e,t){let o=Ne(e,t?.in),r=o.getFullYear(),n=o.getMonth(),i=nt(o,0);return i.setFullYear(r,n+1,0),i.setHours(0,0,0,0),i.getDate()}function qpe(){return Object.assign({},Ws())}function Zpe(e,t){let o=Ne(e,t?.in).getDay();return o===0?7:o}function Xpe(e,t){return Ne(e,t?.in).getMonth()}function Qpe(e,t){return Ne(e,t?.in).getFullYear()}function Jpe(e,t){return+Ne(e)>+Ne(t)}function eme(e,t){return+Ne(e)<+Ne(t)}function tme(e,t){let o=NYe(t)?new t(0):nt(t,0);return o.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),o.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),o}function NYe(e){return typeof e=="function"&&e.prototype?.constructor===e}var LYe=10,dN=class{subPriority=0;validate(t,o){return!0}},fN=class extends dN{constructor(t,o,r,n,i){super(),this.value=t,this.validateValue=o,this.setValue=r,this.priority=n,i&&(this.subPriority=i)}validate(t,o){return this.validateValue(t,this.value,o)}set(t,o,r){return this.setValue(t,o,this.value,r)}},pN=class extends dN{priority=LYe;subPriority=-1;constructor(t,o){super(),this.context=t||(r=>nt(o,r))}set(t,o){return o.timestampIsSet?t:nt(t,tme(t,this.context))}};var Ze=class{run(t,o,r,n){let i=this.parse(t,o,r,n);return i?{setter:new fN(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(t,o,r){return!0}};var mN=class extends Ze{priority=140;parse(t,o,r){switch(o){case"G":case"GG":case"GGG":return r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"});case"GGGGG":return r.era(t,{width:"narrow"});default:return r.era(t,{width:"wide"})||r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"})}}set(t,o,r){return o.era=r,t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["R","u","t","T"]};var Gt={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Cl={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function xo(e,t){return e&&{value:t(e.value),rest:e.rest}}function jt(e,t){let o=t.match(e);return o?{value:parseInt(o[0],10),rest:t.slice(o[0].length)}:null}function El(e,t){let o=t.match(e);if(!o)return null;if(o[0]==="Z")return{value:0,rest:t.slice(1)};let r=o[1]==="+"?1:-1,n=o[2]?parseInt(o[2],10):0,i=o[3]?parseInt(o[3],10):0,s=o[5]?parseInt(o[5],10):0;return{value:r*(n*tE+i*eE+s*Cpe),rest:t.slice(o[0].length)}}function gN(e){return jt(Gt.anyDigitsSigned,e)}function ht(e,t){switch(e){case 1:return jt(Gt.singleDigit,t);case 2:return jt(Gt.twoDigits,t);case 3:return jt(Gt.threeDigits,t);case 4:return jt(Gt.fourDigits,t);default:return jt(new RegExp("^\\d{1,"+e+"}"),t)}}function Kw(e,t){switch(e){case 1:return jt(Gt.singleDigitSigned,t);case 2:return jt(Gt.twoDigitsSigned,t);case 3:return jt(Gt.threeDigitsSigned,t);case 4:return jt(Gt.fourDigitsSigned,t);default:return jt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function qw(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function hN(e,t){let o=t>0,r=o?t:1-t,n;if(r<=50)n=e||100;else{let i=r+50,s=Math.trunc(i/100)*100,a=e>=i%100;n=e+s-(a?100:0)}return o?n:1-n}function bN(e){return e%400===0||e%4===0&&e%100!==0}var yN=class extends Ze{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(t,o,r){let n=i=>({year:i,isTwoDigitYear:o==="yy"});switch(o){case"y":return xo(ht(4,t),n);case"yo":return xo(r.ordinalNumber(t,{unit:"year"}),n);default:return xo(ht(o.length,t),n)}}validate(t,o){return o.isTwoDigitYear||o.year>0}set(t,o,r){let n=t.getFullYear();if(r.isTwoDigitYear){let s=hN(r.year,n);return t.setFullYear(s,0,1),t.setHours(0,0,0,0),t}let i=!("era"in o)||o.era===1?r.year:1-r.year;return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}};var vN=class extends Ze{priority=130;parse(t,o,r){let n=i=>({year:i,isTwoDigitYear:o==="YY"});switch(o){case"Y":return xo(ht(4,t),n);case"Yo":return xo(r.ordinalNumber(t,{unit:"year"}),n);default:return xo(ht(o.length,t),n)}}validate(t,o){return o.isTwoDigitYear||o.year>0}set(t,o,r,n){let i=$w(t,n);if(r.isTwoDigitYear){let a=hN(r.year,i);return t.setFullYear(a,0,n.firstWeekContainsDate),t.setHours(0,0,0,0),Fi(t,n)}let s=!("era"in o)||o.era===1?r.year:1-r.year;return t.setFullYear(s,0,n.firstWeekContainsDate),t.setHours(0,0,0,0),Fi(t,n)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]};var _N=class extends Ze{priority=130;parse(t,o){return o==="R"?Kw(4,t):Kw(o.length,t)}set(t,o,r){let n=nt(t,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),Ra(n)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]};var wN=class extends Ze{priority=130;parse(t,o){return o==="u"?Kw(4,t):Kw(o.length,t)}set(t,o,r){return t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]};var kN=class extends Ze{priority=120;parse(t,o,r){switch(o){case"Q":case"QQ":return ht(o.length,t);case"Qo":return r.ordinalNumber(t,{unit:"quarter"});case"QQQ":return r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(t,{width:"narrow",context:"formatting"});default:return r.quarter(t,{width:"wide",context:"formatting"})||r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,o){return o>=1&&o<=4}set(t,o,r){return t.setMonth((r-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]};var xN=class extends Ze{priority=120;parse(t,o,r){switch(o){case"q":case"qq":return ht(o.length,t);case"qo":return r.ordinalNumber(t,{unit:"quarter"});case"qqq":return r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(t,{width:"narrow",context:"standalone"});default:return r.quarter(t,{width:"wide",context:"standalone"})||r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,o){return o>=1&&o<=4}set(t,o,r){return t.setMonth((r-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]};var SN=class extends Ze{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(t,o,r){let n=i=>i-1;switch(o){case"M":return xo(jt(Gt.month,t),n);case"MM":return xo(ht(2,t),n);case"Mo":return xo(r.ordinalNumber(t,{unit:"month"}),n);case"MMM":return r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(t,{width:"narrow",context:"formatting"});default:return r.month(t,{width:"wide",context:"formatting"})||r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"})}}validate(t,o){return o>=0&&o<=11}set(t,o,r){return t.setMonth(r,1),t.setHours(0,0,0,0),t}};var CN=class extends Ze{priority=110;parse(t,o,r){let n=i=>i-1;switch(o){case"L":return xo(jt(Gt.month,t),n);case"LL":return xo(ht(2,t),n);case"Lo":return xo(r.ordinalNumber(t,{unit:"month"}),n);case"LLL":return r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(t,{width:"narrow",context:"standalone"});default:return r.month(t,{width:"wide",context:"standalone"})||r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"})}}validate(t,o){return o>=0&&o<=11}set(t,o,r){return t.setMonth(r,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]};function ome(e,t,o){let r=Ne(e,o?.in),n=bg(r,o)-t;return r.setDate(r.getDate()-n*7),Ne(r,o?.in)}var EN=class extends Ze{priority=100;parse(t,o,r){switch(o){case"w":return jt(Gt.week,t);case"wo":return r.ordinalNumber(t,{unit:"week"});default:return ht(o.length,t)}}validate(t,o){return o>=1&&o<=53}set(t,o,r,n){return Fi(ome(t,r,n),n)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]};function rme(e,t,o){let r=Ne(e,o?.in),n=hg(r,o)-t;return r.setDate(r.getDate()-n*7),r}var TN=class extends Ze{priority=100;parse(t,o,r){switch(o){case"I":return jt(Gt.week,t);case"Io":return r.ordinalNumber(t,{unit:"week"});default:return ht(o.length,t)}}validate(t,o){return o>=1&&o<=53}set(t,o,r){return Ra(rme(t,r))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]};var DYe=[31,28,31,30,31,30,31,31,30,31,30,31],VYe=[31,29,31,30,31,30,31,31,30,31,30,31],RN=class extends Ze{priority=90;subPriority=1;parse(t,o,r){switch(o){case"d":return jt(Gt.date,t);case"do":return r.ordinalNumber(t,{unit:"date"});default:return ht(o.length,t)}}validate(t,o){let r=t.getFullYear(),n=bN(r),i=t.getMonth();return n?o>=1&&o<=VYe[i]:o>=1&&o<=DYe[i]}set(t,o,r){return t.setDate(r),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]};var BN=class extends Ze{priority=90;subpriority=1;parse(t,o,r){switch(o){case"D":case"DD":return jt(Gt.dayOfYear,t);case"Do":return r.ordinalNumber(t,{unit:"date"});default:return ht(o.length,t)}}validate(t,o){let r=t.getFullYear();return bN(r)?o>=1&&o<=366:o>=1&&o<=365}set(t,o,r){return t.setMonth(0,r),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]};function Zw(e,t,o){let r=Ws(),n=o?.weekStartsOn??o?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=Ne(e,o?.in),s=i.getDay(),l=(t%7+7)%7,u=7-n,d=t<0||t>6?t-(s+u)%7:(l+u)%7-(s+u)%7;return ld(i,d,o)}var IN=class extends Ze{priority=90;parse(t,o,r){switch(o){case"E":case"EE":case"EEE":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}validate(t,o){return o>=0&&o<=6}set(t,o,r,n){return t=Zw(t,r,n),t.setHours(0,0,0,0),t}incompatibleTokens=["D","i","e","c","t","T"]};var PN=class extends Ze{priority=90;parse(t,o,r,n){let i=s=>{let a=Math.floor((s-1)/7)*7;return(s+n.weekStartsOn+6)%7+a};switch(o){case"e":case"ee":return xo(ht(o.length,t),i);case"eo":return xo(r.ordinalNumber(t,{unit:"day"}),i);case"eee":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"eeeee":return r.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}validate(t,o){return o>=0&&o<=6}set(t,o,r,n){return t=Zw(t,r,n),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]};var ON=class extends Ze{priority=90;parse(t,o,r,n){let i=s=>{let a=Math.floor((s-1)/7)*7;return(s+n.weekStartsOn+6)%7+a};switch(o){case"c":case"cc":return xo(ht(o.length,t),i);case"co":return xo(r.ordinalNumber(t,{unit:"day"}),i);case"ccc":return r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});case"ccccc":return r.day(t,{width:"narrow",context:"standalone"});case"cccccc":return r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});default:return r.day(t,{width:"wide",context:"standalone"})||r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"})}}validate(t,o){return o>=0&&o<=6}set(t,o,r,n){return t=Zw(t,r,n),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]};function nme(e,t,o){let r=Ne(e,o?.in),n=Zpe(r,o),i=t-n;return ld(r,i,o)}var AN=class extends Ze{priority=90;parse(t,o,r){let n=i=>i===0?7:i;switch(o){case"i":case"ii":return ht(o.length,t);case"io":return r.ordinalNumber(t,{unit:"day"});case"iii":return xo(r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),n);case"iiiii":return xo(r.day(t,{width:"narrow",context:"formatting"}),n);case"iiiiii":return xo(r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),n);default:return xo(r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),n)}}validate(t,o){return o>=1&&o<=7}set(t,o,r){return t=nme(t,r),t.setHours(0,0,0,0),t}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]};var MN=class extends Ze{priority=80;parse(t,o,r){switch(o){case"a":case"aa":case"aaa":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,o,r){return t.setHours(qw(r),0,0,0),t}incompatibleTokens=["b","B","H","k","t","T"]};var NN=class extends Ze{priority=80;parse(t,o,r){switch(o){case"b":case"bb":case"bbb":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,o,r){return t.setHours(qw(r),0,0,0),t}incompatibleTokens=["a","B","H","k","t","T"]};var LN=class extends Ze{priority=80;parse(t,o,r){switch(o){case"B":case"BB":case"BBB":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,o,r){return t.setHours(qw(r),0,0,0),t}incompatibleTokens=["a","b","t","T"]};var DN=class extends Ze{priority=70;parse(t,o,r){switch(o){case"h":return jt(Gt.hour12h,t);case"ho":return r.ordinalNumber(t,{unit:"hour"});default:return ht(o.length,t)}}validate(t,o){return o>=1&&o<=12}set(t,o,r){let n=t.getHours()>=12;return n&&r<12?t.setHours(r+12,0,0,0):!n&&r===12?t.setHours(0,0,0,0):t.setHours(r,0,0,0),t}incompatibleTokens=["H","K","k","t","T"]};var VN=class extends Ze{priority=70;parse(t,o,r){switch(o){case"H":return jt(Gt.hour23h,t);case"Ho":return r.ordinalNumber(t,{unit:"hour"});default:return ht(o.length,t)}}validate(t,o){return o>=0&&o<=23}set(t,o,r){return t.setHours(r,0,0,0),t}incompatibleTokens=["a","b","h","K","k","t","T"]};var FN=class extends Ze{priority=70;parse(t,o,r){switch(o){case"K":return jt(Gt.hour11h,t);case"Ko":return r.ordinalNumber(t,{unit:"hour"});default:return ht(o.length,t)}}validate(t,o){return o>=0&&o<=11}set(t,o,r){return t.getHours()>=12&&r<12?t.setHours(r+12,0,0,0):t.setHours(r,0,0,0),t}incompatibleTokens=["h","H","k","t","T"]};var zN=class extends Ze{priority=70;parse(t,o,r){switch(o){case"k":return jt(Gt.hour24h,t);case"ko":return r.ordinalNumber(t,{unit:"hour"});default:return ht(o.length,t)}}validate(t,o){return o>=1&&o<=24}set(t,o,r){let n=r<=24?r%24:r;return t.setHours(n,0,0,0),t}incompatibleTokens=["a","b","h","H","K","t","T"]};var jN=class extends Ze{priority=60;parse(t,o,r){switch(o){case"m":return jt(Gt.minute,t);case"mo":return r.ordinalNumber(t,{unit:"minute"});default:return ht(o.length,t)}}validate(t,o){return o>=0&&o<=59}set(t,o,r){return t.setMinutes(r,0,0),t}incompatibleTokens=["t","T"]};var HN=class extends Ze{priority=50;parse(t,o,r){switch(o){case"s":return jt(Gt.second,t);case"so":return r.ordinalNumber(t,{unit:"second"});default:return ht(o.length,t)}}validate(t,o){return o>=0&&o<=59}set(t,o,r){return t.setSeconds(r,0),t}incompatibleTokens=["t","T"]};var UN=class extends Ze{priority=30;parse(t,o){let r=n=>Math.trunc(n*Math.pow(10,-o.length+3));return xo(ht(o.length,t),r)}set(t,o,r){return t.setMilliseconds(r),t}incompatibleTokens=["t","T"]};var WN=class extends Ze{priority=10;parse(t,o){switch(o){case"X":return El(Cl.basicOptionalMinutes,t);case"XX":return El(Cl.basic,t);case"XXXX":return El(Cl.basicOptionalSeconds,t);case"XXXXX":return El(Cl.extendedOptionalSeconds,t);default:return El(Cl.extended,t)}}set(t,o,r){return o.timestampIsSet?t:nt(t,t.getTime()-gy(t)-r)}incompatibleTokens=["t","T","x"]};var GN=class extends Ze{priority=10;parse(t,o){switch(o){case"x":return El(Cl.basicOptionalMinutes,t);case"xx":return El(Cl.basic,t);case"xxxx":return El(Cl.basicOptionalSeconds,t);case"xxxxx":return El(Cl.extendedOptionalSeconds,t);default:return El(Cl.extended,t)}}set(t,o,r){return o.timestampIsSet?t:nt(t,t.getTime()-gy(t)-r)}incompatibleTokens=["t","T","X"]};var $N=class extends Ze{priority=40;parse(t){return gN(t)}set(t,o,r){return[nt(t,r*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"};var YN=class extends Ze{priority=20;parse(t){return gN(t)}set(t,o,r){return[nt(t,r),{timestampIsSet:!0}]}incompatibleTokens="*"};var ime={G:new mN,y:new yN,Y:new vN,R:new _N,u:new wN,Q:new kN,q:new xN,M:new SN,L:new CN,w:new EN,I:new TN,d:new RN,D:new BN,E:new IN,e:new PN,c:new ON,i:new AN,a:new MN,b:new NN,B:new LN,h:new DN,H:new VN,K:new FN,k:new zN,m:new jN,s:new HN,S:new UN,X:new WN,x:new GN,t:new $N,T:new YN};var FYe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,zYe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,jYe=/^'([^]*?)'?$/,HYe=/''/g,UYe=/\S/,WYe=/[a-zA-Z]/;function sme(e,t,o,r){let n=()=>nt(r?.in||o,NaN),i=qpe(),s=r?.locale??i.locale??Ba,a=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,l=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0;if(!t)return e?n():Ne(o,r?.in);let u={firstWeekContainsDate:a,weekStartsOn:l,locale:s},d=[new pN(r?.in,o)],f=t.match(zYe).map(b=>{let v=b[0];if(v in rE){let y=rE[v];return y(b,s.formatLong)}return b}).join("").match(FYe),p=[];for(let b of f){!r?.useAdditionalWeekYearTokens&&uN(b)&&nE(b,t,e),!r?.useAdditionalDayOfYearTokens&&cN(b)&&nE(b,t,e);let v=b[0],y=ime[v];if(y){let{incompatibleTokens:_}=y;if(Array.isArray(_)){let k=p.find(x=>_.includes(x.token)||x.token===v);if(k)throw new RangeError(`The format string mustn't contain \`${k.fullToken}\` and \`${b}\` at the same time`)}else if(y.incompatibleTokens==="*"&&p.length>0)throw new RangeError(`The format string mustn't contain \`${b}\` and any other token at the same time`);p.push({token:v,fullToken:b});let w=y.run(e,b,s.match,u);if(!w)return n();d.push(w.setter),e=w.rest}else{if(v.match(WYe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+v+"`");if(b==="''"?b="'":v==="'"&&(b=GYe(b)),e.indexOf(b)===0)e=e.slice(b.length);else return n()}}if(e.length>0&&UYe.test(e))return n();let m=d.map(b=>b.priority).sort((b,v)=>v-b).filter((b,v,y)=>y.indexOf(b)===v).map(b=>d.filter(v=>v.priority===b).sort((v,y)=>y.subPriority-v.subPriority)).map(b=>b[0]),g=Ne(o,r?.in);if(isNaN(+g))return n();let h={};for(let b of m){if(!b.validate(g,u))return n();let v=b.set(g,h,u);Array.isArray(v)?(g=v[0],Object.assign(h,v[1])):g=v}return g}function GYe(e){return e.match(jYe)[1].replace(HYe,"'")}function by(e,t,o){let[r,n]=Sl(o?.in,e,t);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()}function ame(e,t,o){let[r,n]=Sl(o?.in,e,t);return r.getFullYear()===n.getFullYear()}function yy(e,t,o){return ld(e,-t,o)}function lme(e,t){let o=()=>nt(t?.in,NaN),r=t?.additionalDigits??2,n=qYe(e),i;if(n.date){let u=ZYe(n.date,r);i=XYe(u.restDateString,u.year)}if(!i||isNaN(+i))return o();let s=+i,a=0,l;if(n.time&&(a=QYe(n.time),isNaN(a)))return o();if(n.timezone){if(l=JYe(n.timezone),isNaN(l))return o()}else{let u=new Date(s+a),d=Ne(0,t?.in);return d.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),d.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),d}return Ne(s+a+l,t?.in)}var KN={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},$Ye=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,YYe=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,KYe=/^([+-])(\d{2})(?::?(\d{2}))?$/;function qYe(e){let t={},o=e.split(KN.dateTimeDelimiter),r;if(o.length>2)return t;if(/:/.test(o[0])?r=o[0]:(t.date=o[0],r=o[1],KN.timeZoneDelimiter.test(t.date)&&(t.date=e.split(KN.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){let n=KN.timezone.exec(r);n?(t.time=r.replace(n[1],""),t.timezone=n[1]):t.time=r}return t}function ZYe(e,t){let o=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(o);if(!r)return{year:NaN,restDateString:""};let n=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?n:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function XYe(e,t){if(t===null)return new Date(NaN);let o=e.match($Ye);if(!o)return new Date(NaN);let r=!!o[4],n=iE(o[1]),i=iE(o[2])-1,s=iE(o[3]),a=iE(o[4]),l=iE(o[5])-1;if(r)return nKe(t,a,l)?eKe(t,a,l):new Date(NaN);{let u=new Date(0);return!oKe(t,i,s)||!rKe(t,n)?new Date(NaN):(u.setUTCFullYear(t,i,Math.max(n,s)),u)}}function iE(e){return e?parseInt(e):1}function QYe(e){let t=e.match(YYe);if(!t)return NaN;let o=BG(t[1]),r=BG(t[2]),n=BG(t[3]);return iKe(o,r,n)?o*tE+r*eE+n*1e3:NaN}function BG(e){return e&&parseFloat(e.replace(",","."))||0}function JYe(e){if(e==="Z")return 0;let t=e.match(KYe);if(!t)return 0;let o=t[1]==="+"?-1:1,r=parseInt(t[2]),n=t[3]&&parseInt(t[3])||0;return sKe(r,n)?o*(r*tE+n*eE):NaN}function eKe(e,t,o){let r=new Date(0);r.setUTCFullYear(e,0,4);let n=r.getUTCDay()||7,i=(t-1)*7+o+1-n;return r.setUTCDate(r.getUTCDate()+i),r}var tKe=[31,null,31,30,31,30,31,31,30,31,30,31];function cme(e){return e%400===0||e%4===0&&e%100!==0}function oKe(e,t,o){return t>=0&&t<=11&&o>=1&&o<=(tKe[t]||(cme(e)?29:28))}function rKe(e,t){return t>=1&&t<=(cme(e)?366:365)}function nKe(e,t,o){return t>=1&&t<=53&&o>=0&&o<=6}function iKe(e,t,o){return e===24?t===0&&o===0:o>=0&&o<60&&t>=0&&t<60&&e>=0&&e<25}function sKe(e,t){return t>=0&&t<=59}function ume(e,t,o){let r=Ne(e,o?.in),n=r.getFullYear(),i=r.getDate(),s=nt(o?.in||e,0);s.setFullYear(n,t,15),s.setHours(0,0,0,0);let a=Kpe(s);return r.setMonth(t,Math.min(i,a)),r}function dme(e,t,o){let r=Ne(e,o?.in);return isNaN(+r)?nt(o?.in||e,NaN):(r.setFullYear(t),r)}function qN(e,t,o){return Hw(e,-t,o)}function fme(e,t,o){return tN(e,-t,o)}function ZN(e,t,o){return oN(e,-t,o)}function pme(e,t){let o=t.startOfMonth(e),r=o.getDay()>0?o.getDay():7,n=t.addDays(e,-r+1),i=t.addDays(n,34);return t.getMonth(e)===t.getMonth(i)?5:4}function XN(e,t){let o=t.startOfMonth(e),r=o.getDay();return r===1?o:r===0?t.addDays(o,-6):t.addDays(o,-1*(r-1))}function mme(e,t){let o=XN(e,t),r=pme(e,t);return t.addDays(o,r*7-1)}var sE={...Ba,labels:{labelDayButton:(e,t,o,r)=>{let n;r&&typeof r.format=="function"?n=r.format.bind(r):n=(s,a)=>Gf(s,a,{locale:Ba,...o});let i=n(e,"PPPP");return t.today&&(i=`Today, ${i}`),t.selected&&(i=`${i}, selected`),i},labelMonthDropdown:"Choose the Month",labelNext:"Go to the Next Month",labelPrevious:"Go to the Previous Month",labelWeekNumber:e=>`Week ${e}`,labelYearDropdown:"Choose the Year",labelGrid:(e,t,o)=>{let r;return o&&typeof o.format=="function"?r=o.format.bind(o):r=(n,i)=>Gf(n,i,{locale:Ba,...t}),r(e,"LLLL yyyy")},labelGridcell:(e,t,o,r)=>{let n;r&&typeof r.format=="function"?n=r.format.bind(r):n=(s,a)=>Gf(s,a,{locale:Ba,...o});let i=n(e,"PPPP");return t?.today&&(i=`Today, ${i}`),i},labelNav:"Navigation bar",labelWeekNumberHeader:"Week Number",labelWeekday:(e,t,o)=>{let r;return o&&typeof o.format=="function"?r=o.format.bind(o):r=(n,i)=>Gf(n,i,{locale:Ba,...t}),r(e,"cccc")}}};var bn=class e{constructor(t,o){this.today=()=>{if(this.overrides?.today)return this.overrides.today();if(this.options.timeZone)return Qr.tz(this.options.timeZone);let r=this.options.Date??Date;return new r},this.newDate=(r,n,i)=>this.overrides?.newDate?this.overrides.newDate(r,n,i):this.options.timeZone?new Qr(r,n,i,this.options.timeZone):new Date(r,n,i),this.addDays=(r,n)=>this.overrides?.addDays?this.overrides.addDays(r,n):ld(r,n),this.addMonths=(r,n)=>this.overrides?.addMonths?this.overrides.addMonths(r,n):Hw(r,n),this.addWeeks=(r,n)=>this.overrides?.addWeeks?this.overrides.addWeeks(r,n):tN(r,n),this.addYears=(r,n)=>this.overrides?.addYears?this.overrides.addYears(r,n):oN(r,n),this.differenceInCalendarDays=(r,n)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(r,n):Uf(r,n),this.differenceInCalendarMonths=(r,n)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(r,n):nN(r,n),this.eachMonthOfInterval=r=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(r):Ope(r),this.eachYearOfInterval=r=>{let n=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(r):Mpe(r),i=new Set(n.map(a=>this.getYear(a)));if(i.size===n.length)return n;let s=[];return i.forEach(a=>{s.push(new Date(a,0,1))}),s},this.endOfBroadcastWeek=r=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(r):mme(r,this),this.endOfISOWeek=r=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(r):Npe(r),this.endOfMonth=r=>this.overrides?.endOfMonth?this.overrides.endOfMonth(r):iN(r),this.endOfWeek=(r,n)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(r,n):aN(r,this.options),this.endOfYear=r=>this.overrides?.endOfYear?this.overrides.endOfYear(r):Ape(r),this.format=(r,n,i)=>{let s=this.overrides?.format?this.overrides.format(r,n,this.options):Gf(r,n,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(s):s},this.getISOWeek=r=>this.overrides?.getISOWeek?this.overrides.getISOWeek(r):hg(r),this.getMonth=(r,n)=>this.overrides?.getMonth?this.overrides.getMonth(r,this.options):Xpe(r,this.options),this.getYear=(r,n)=>this.overrides?.getYear?this.overrides.getYear(r,this.options):Qpe(r,this.options),this.getWeek=(r,n)=>this.overrides?.getWeek?this.overrides.getWeek(r,this.options):bg(r,this.options),this.isAfter=(r,n)=>this.overrides?.isAfter?this.overrides.isAfter(r,n):Jpe(r,n),this.isBefore=(r,n)=>this.overrides?.isBefore?this.overrides.isBefore(r,n):eme(r,n),this.isDate=r=>this.overrides?.isDate?this.overrides.isDate(r):rN(r),this.isSameDay=(r,n)=>this.overrides?.isSameDay?this.overrides.isSameDay(r,n):Ppe(r,n),this.isSameMonth=(r,n)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(r,n):by(r,n),this.isSameYear=(r,n)=>this.overrides?.isSameYear?this.overrides.isSameYear(r,n):ame(r,n),this.max=r=>this.overrides?.max?this.overrides.max(r):Bpe(r),this.min=r=>this.overrides?.min?this.overrides.min(r):Ipe(r),this.setMonth=(r,n)=>this.overrides?.setMonth?this.overrides.setMonth(r,n):ume(r,n),this.setYear=(r,n)=>this.overrides?.setYear?this.overrides.setYear(r,n):dme(r,n),this.startOfBroadcastWeek=(r,n)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(r,this):XN(r,this),this.startOfDay=r=>this.overrides?.startOfDay?this.overrides.startOfDay(r):gg(r),this.startOfISOWeek=r=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(r):Ra(r),this.startOfMonth=r=>this.overrides?.startOfMonth?this.overrides.startOfMonth(r):oE(r),this.startOfWeek=(r,n)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(r,this.options):Fi(r,this.options),this.startOfYear=r=>this.overrides?.startOfYear?this.overrides.startOfYear(r):Uw(r),this.options={locale:sE,...t},this.overrides=o}getDigitMap(){let{numerals:t="latn"}=this.options,o=new Intl.NumberFormat("en-US",{numberingSystem:t}),r={};for(let n=0;n<10;n++)r[n.toString()]=o.format(n);return r}replaceDigits(t){let o=this.getDigitMap();return t.replace(/\d/g,r=>o[r]||r)}formatNumber(t){return this.replaceDigits(t.toString())}getMonthYearOrder(){let t=this.options.locale?.code;return t&&e.yearFirstLocales.has(t)?"year-first":"month-first"}formatMonthYear(t){let{locale:o,timeZone:r,numerals:n}=this.options,i=o?.code;if(i&&e.yearFirstLocales.has(i))try{return new Intl.DateTimeFormat(i,{month:"long",year:"numeric",timeZone:r,numberingSystem:n}).format(t)}catch{}let s=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(t,s)}};bn.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);var yn=new bn;var Xw=class{constructor(t,o,r=yn){this.date=t,this.displayMonth=o,this.outside=!!(o&&!r.isSameMonth(t,o)),this.dateLib=r,this.isoDate=r.format(t,"yyyy-MM-dd"),this.displayMonthId=r.format(o,"yyyy-MM"),this.dateMonthId=r.format(t,"yyyy-MM")}isEqualTo(t){return this.dateLib.isSameDay(t.date,this.date)&&this.dateLib.isSameMonth(t.displayMonth,this.displayMonth)}};var QN=class{constructor(t,o){this.date=t,this.weeks=o}};var JN=class{constructor(t,o){this.days=o,this.weekNumber=t}};var OG={};No(OG,{CaptionLabel:()=>aKe,Chevron:()=>lKe,Day:()=>cKe,DayButton:()=>uKe,Dropdown:()=>dKe,DropdownNav:()=>fKe,Footer:()=>pKe,Month:()=>mKe,MonthCaption:()=>gKe,MonthGrid:()=>hKe,Months:()=>bKe,MonthsDropdown:()=>yKe,Nav:()=>vKe,NextMonthButton:()=>_Ke,Option:()=>wKe,PreviousMonthButton:()=>kKe,Root:()=>xKe,Select:()=>SKe,Week:()=>CKe,WeekNumber:()=>RKe,WeekNumberHeader:()=>BKe,Weekday:()=>EKe,Weekdays:()=>TKe,Weeks:()=>IKe,YearsDropdown:()=>PKe});var gme=c(re(),1);function aKe(e){return gme.default.createElement("span",{...e})}var Qw=c(re(),1);function lKe(e){let{size:t=24,orientation:o="left",className:r,style:n}=e;return Qw.default.createElement("svg",{className:r,style:n,width:t,height:t,viewBox:"0 0 24 24"},o==="up"&&Qw.default.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),o==="down"&&Qw.default.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),o==="left"&&Qw.default.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),o==="right"&&Qw.default.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}var hme=c(re(),1);function cKe(e){let{day:t,modifiers:o,...r}=e;return hme.default.createElement("td",{...r})}var eL=c(re(),1);function uKe(e){let{day:t,modifiers:o,...r}=e,n=eL.default.useRef(null);return eL.default.useEffect(()=>{o.focused&&n.current?.focus()},[o.focused]),eL.default.createElement("button",{ref:n,...r})}var Jw=c(re(),1);var Le;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(Le||(Le={}));var Eo;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(Eo||(Eo={}));var Gs;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(Gs||(Gs={}));var us;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})(us||(us={}));var tL=c(re(),1),IG=(0,tL.createContext)(void 0);function cd(){let e=(0,tL.useContext)(IG);if(e===void 0)throw new Error("useDayPicker() must be used within a custom component.");return e}function dKe(e){let{options:t,className:o,...r}=e,{classNames:n,components:i,styles:s}=cd(),a=[n[Le.Dropdown],o].join(" "),l=t?.find(({value:u})=>u===r.value);return Jw.default.createElement("span",{"data-disabled":r.disabled,className:n[Le.DropdownRoot],style:s?.[Le.DropdownRoot]},Jw.default.createElement(i.Select,{className:a,...r},t?.map(({value:u,label:d,disabled:f})=>Jw.default.createElement(i.Option,{key:u,value:u,disabled:f},d))),Jw.default.createElement("span",{className:n[Le.CaptionLabel],style:s?.[Le.CaptionLabel],"aria-hidden":!0},l?.label,Jw.default.createElement(i.Chevron,{orientation:"down",size:18,className:n[Le.Chevron],style:s?.[Le.Chevron]})))}var bme=c(re(),1);function fKe(e){return bme.default.createElement("div",{...e})}var yme=c(re(),1);function pKe(e){return yme.default.createElement("div",{...e})}var vme=c(re(),1);function mKe(e){let{calendarMonth:t,displayIndex:o,...r}=e;return vme.default.createElement("div",{...r},e.children)}var _me=c(re(),1);function gKe(e){let{calendarMonth:t,displayIndex:o,...r}=e;return _me.default.createElement("div",{...r})}var wme=c(re(),1);function hKe(e){return wme.default.createElement("table",{...e})}var kme=c(re(),1);function bKe(e){return kme.default.createElement("div",{...e})}var xme=c(re(),1);function yKe(e){let{components:t}=cd();return xme.default.createElement(t.Dropdown,{...e})}var $f=c(re(),1);function vKe(e){let{onPreviousClick:t,onNextClick:o,previousMonth:r,nextMonth:n,...i}=e,{components:s,classNames:a,styles:l,labels:{labelPrevious:u,labelNext:d}}=cd(),f=(0,$f.useCallback)(m=>{n&&o?.(m)},[n,o]),p=(0,$f.useCallback)(m=>{r&&t?.(m)},[r,t]);return $f.default.createElement("nav",{...i},$f.default.createElement(s.PreviousMonthButton,{type:"button",className:a[Le.PreviousMonthButton],style:l?.[Le.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":r?void 0:!0,"aria-label":u(r),onClick:p},$f.default.createElement(s.Chevron,{disabled:r?void 0:!0,className:a[Le.Chevron],style:l?.[Le.Chevron],orientation:"left"})),$f.default.createElement(s.NextMonthButton,{type:"button",className:a[Le.NextMonthButton],style:l?.[Le.NextMonthButton],tabIndex:n?void 0:-1,"aria-disabled":n?void 0:!0,"aria-label":d(n),onClick:f},$f.default.createElement(s.Chevron,{disabled:n?void 0:!0,orientation:"right",className:a[Le.Chevron],style:l?.[Le.Chevron]})))}var Sme=c(re(),1);function _Ke(e){return Sme.default.createElement("button",{...e})}var Cme=c(re(),1);function wKe(e){return Cme.default.createElement("option",{...e})}var Eme=c(re(),1);function kKe(e){return Eme.default.createElement("button",{...e})}var Tme=c(re(),1);function xKe(e){let{rootRef:t,...o}=e;return Tme.default.createElement("div",{...o,ref:t})}var Rme=c(re(),1);function SKe(e){return Rme.default.createElement("select",{...e})}var Bme=c(re(),1);function CKe(e){let{week:t,...o}=e;return Bme.default.createElement("tr",{...o})}var Ime=c(re(),1);function EKe(e){return Ime.default.createElement("th",{...e})}var PG=c(re(),1);function TKe(e){return PG.default.createElement("thead",{"aria-hidden":!0},PG.default.createElement("tr",{...e}))}var Pme=c(re(),1);function RKe(e){let{week:t,...o}=e;return Pme.default.createElement("th",{...o})}var Ome=c(re(),1);function BKe(e){return Ome.default.createElement("th",{...e})}var Ame=c(re(),1);function IKe(e){return Ame.default.createElement("tbody",{...e})}var Mme=c(re(),1);function PKe(e){let{components:t}=cd();return Mme.default.createElement(t.Dropdown,{...e})}var pt=c(re(),1);function $s(e,t,o=!1,r=yn){let{from:n,to:i}=e,{differenceInCalendarDays:s,isSameDay:a}=r;return n&&i?(s(i,n)<0&&([n,i]=[i,n]),s(t,n)>=(o?1:0)&&s(i,t)>=(o?1:0)):!o&&i?a(i,t):!o&&n?a(n,t):!1}function ek(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function yg(e){return!!(e&&typeof e=="object"&&"from"in e)}function tk(e){return!!(e&&typeof e=="object"&&"after"in e)}function ok(e){return!!(e&&typeof e=="object"&&"before"in e)}function oL(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function rL(e,t){return Array.isArray(e)&&e.every(t.isDate)}function Tl(e,t,o=yn){let r=Array.isArray(t)?t:[t],{isSameDay:n,differenceInCalendarDays:i,isAfter:s}=o;return r.some(a=>{if(typeof a=="boolean")return a;if(o.isDate(a))return n(e,a);if(rL(a,o))return a.some(l=>n(e,l));if(yg(a))return $s(a,e,!1,o);if(oL(a))return Array.isArray(a.dayOfWeek)?a.dayOfWeek.includes(e.getDay()):a.dayOfWeek===e.getDay();if(ek(a)){let l=i(a.before,e),u=i(a.after,e),d=l>0,f=u<0;return s(a.before,a.after)?f&&d:d||f}return tk(a)?i(e,a.after)>0:ok(a)?i(a.before,e)>0:typeof a=="function"?a(e):!1})}function Nme(e,t,o,r,n){let{disabled:i,hidden:s,modifiers:a,showOutsideDays:l,broadcastCalendar:u,today:d=n.today()}=t,{isSameDay:f,isSameMonth:p,startOfMonth:m,isBefore:g,endOfMonth:h,isAfter:b}=n,v=o&&m(o),y=r&&h(r),_={[Eo.focused]:[],[Eo.outside]:[],[Eo.disabled]:[],[Eo.hidden]:[],[Eo.today]:[]},w={};for(let k of e){let{date:x,displayMonth:S}=k,C=!!(S&&!p(x,S)),R=!!(v&&g(x,v)),E=!!(y&&b(x,y)),I=!!(i&&Tl(x,i,n)),O=!!(s&&Tl(x,s,n))||R||E||!u&&!l&&C||u&&l===!1&&C,A=f(x,d);C&&_.outside.push(k),I&&_.disabled.push(k),O&&_.hidden.push(k),A&&_.today.push(k),a&&Object.keys(a).forEach(P=>{let L=a?.[P];L&&Tl(x,L,n)&&(w[P]?w[P].push(k):w[P]=[k])})}return k=>{let x={[Eo.focused]:!1,[Eo.disabled]:!1,[Eo.hidden]:!1,[Eo.outside]:!1,[Eo.today]:!1},S={};for(let C in _){let R=_[C];x[C]=R.some(E=>E===k)}for(let C in w)S[C]=w[C].some(R=>R===k);return{...x,...S}}}function Lme(e,t,o={}){return Object.entries(e).filter(([,n])=>n===!0).reduce((n,[i])=>(o[i]?n.push(o[i]):t[Eo[i]]?n.push(t[Eo[i]]):t[Gs[i]]&&n.push(t[Gs[i]]),n),[t[Le.Day]])}function Dme(e){return{...OG,...e}}function Vme(e){let t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([o,r])=>{o.startsWith("data-")&&(t[o]=r)}),t}function Fme(){let e={};for(let t in Le)e[Le[t]]=`rdp-${Le[t]}`;for(let t in Eo)e[Eo[t]]=`rdp-${Eo[t]}`;for(let t in Gs)e[Gs[t]]=`rdp-${Gs[t]}`;for(let t in us)e[us[t]]=`rdp-${us[t]}`;return e}var AG={};No(AG,{formatCaption:()=>OKe,formatDay:()=>AKe,formatMonthDropdown:()=>MKe,formatWeekNumber:()=>LKe,formatWeekNumberHeader:()=>DKe,formatWeekdayName:()=>NKe,formatYearDropdown:()=>VKe});function OKe(e,t,o){return(o??new bn(t)).formatMonthYear(e)}function AKe(e,t,o){return(o??new bn(t)).format(e,"d")}function MKe(e,t=yn){return t.format(e,"LLLL")}function NKe(e,t,o){return(o??new bn(t)).format(e,"cccccc")}function LKe(e,t=yn){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function DKe(){return""}function VKe(e,t=yn){return t.format(e,"yyyy")}function zme(e){return{...AG,...e}}var GG={};No(GG,{labelDayButton:()=>MG,labelGrid:()=>NG,labelGridcell:()=>LG,labelMonthDropdown:()=>DG,labelNav:()=>VG,labelNext:()=>FG,labelPrevious:()=>zG,labelWeekNumber:()=>HG,labelWeekNumberHeader:()=>UG,labelWeekday:()=>jG,labelYearDropdown:()=>WG});function MG(e,t,o,r){let n=(r??new bn(o)).format(e,"PPPP");return t.today&&(n=`Today, ${n}`),t.selected&&(n=`${n}, selected`),n}function NG(e,t,o){return(o??new bn(t)).formatMonthYear(e)}function LG(e,t,o,r){let n=(r??new bn(o)).format(e,"PPPP");return t?.today&&(n=`Today, ${n}`),n}function DG(e){return"Choose the Month"}function VG(){return""}var FKe="Go to the Next Month";function FG(e,t){return FKe}function zG(e){return"Go to the Previous Month"}function jG(e,t,o){return(o??new bn(t)).format(e,"cccc")}function HG(e,t){return`Week ${e}`}function UG(e){return"Week Number"}function WG(e){return"Choose the Year"}var jc=(e,t,o)=>t||(o?typeof o=="function"?o:(...r)=>o:e);function jme(e,t){let o=t.locale?.labels??{};return{...GG,...e??{},labelDayButton:jc(MG,e?.labelDayButton,o.labelDayButton),labelMonthDropdown:jc(DG,e?.labelMonthDropdown,o.labelMonthDropdown),labelNext:jc(FG,e?.labelNext,o.labelNext),labelPrevious:jc(zG,e?.labelPrevious,o.labelPrevious),labelWeekNumber:jc(HG,e?.labelWeekNumber,o.labelWeekNumber),labelYearDropdown:jc(WG,e?.labelYearDropdown,o.labelYearDropdown),labelGrid:jc(NG,e?.labelGrid,o.labelGrid),labelGridcell:jc(LG,e?.labelGridcell,o.labelGridcell),labelNav:jc(VG,e?.labelNav,o.labelNav),labelWeekNumberHeader:jc(UG,e?.labelWeekNumberHeader,o.labelWeekNumberHeader),labelWeekday:jc(jG,e?.labelWeekday,o.labelWeekday)}}function Hme(e,t,o,r,n){let{startOfMonth:i,startOfYear:s,endOfYear:a,eachMonthOfInterval:l,getMonth:u}=n;return l({start:s(e),end:a(e)}).map(p=>{let m=r.formatMonthDropdown(p,n),g=u(p),h=t&&p<i(t)||o&&p>i(o)||!1;return{value:g,label:m,disabled:h}})}function Ume(e,t={},o={}){let r={...t?.[Le.Day]};return Object.entries(e).filter(([,n])=>n===!0).forEach(([n])=>{r={...r,...o?.[n]}}),r}function Wme(e,t,o,r){let n=r??e.today(),i=o?e.startOfBroadcastWeek(n,e):t?e.startOfISOWeek(n):e.startOfWeek(n),s=[];for(let a=0;a<7;a++){let l=e.addDays(i,a);s.push(l)}return s}function Gme(e,t,o,r,n=!1){if(!e||!t)return;let{startOfYear:i,endOfYear:s,eachYearOfInterval:a,getYear:l}=r,u=i(e),d=s(t),f=a({start:u,end:d});return n&&f.reverse(),f.map(p=>{let m=o.formatYearDropdown(p,r);return{value:l(p),label:m,disabled:!1}})}function $me(e,t={}){let{weekStartsOn:o,locale:r}=t,n=o??r?.options?.weekStartsOn??0,i=a=>{let l=typeof a=="number"||typeof a=="string"?new Date(a):a;return new Qr(l.getFullYear(),l.getMonth(),l.getDate(),12,0,0,e)},s=a=>{let l=i(a);return new Date(l.getFullYear(),l.getMonth(),l.getDate(),0,0,0,0)};return{today:()=>i(Qr.tz(e)),newDate:(a,l,u)=>new Qr(a,l,u,12,0,0,e),startOfDay:a=>i(a),startOfWeek:(a,l)=>{let u=i(a),d=l?.weekStartsOn??n,f=(u.getDay()-d+7)%7;return u.setDate(u.getDate()-f),u},startOfISOWeek:a=>{let l=i(a),u=(l.getDay()-1+7)%7;return l.setDate(l.getDate()-u),l},startOfMonth:a=>{let l=i(a);return l.setDate(1),l},startOfYear:a=>{let l=i(a);return l.setMonth(0,1),l},endOfWeek:(a,l)=>{let u=i(a),p=(((l?.weekStartsOn??n)+6)%7-u.getDay()+7)%7;return u.setDate(u.getDate()+p),u},endOfISOWeek:a=>{let l=i(a),u=(7-l.getDay())%7;return l.setDate(l.getDate()+u),l},endOfMonth:a=>{let l=i(a);return l.setMonth(l.getMonth()+1,0),l},endOfYear:a=>{let l=i(a);return l.setMonth(11,31),l},eachMonthOfInterval:a=>{let l=i(a.start),u=i(a.end),d=[],f=new Qr(l.getFullYear(),l.getMonth(),1,12,0,0,e),p=u.getFullYear()*12+u.getMonth();for(;f.getFullYear()*12+f.getMonth()<=p;)d.push(new Qr(f,e)),f.setMonth(f.getMonth()+1,1);return d},addDays:(a,l)=>{let u=i(a);return u.setDate(u.getDate()+l),u},addWeeks:(a,l)=>{let u=i(a);return u.setDate(u.getDate()+l*7),u},addMonths:(a,l)=>{let u=i(a);return u.setMonth(u.getMonth()+l),u},addYears:(a,l)=>{let u=i(a);return u.setFullYear(u.getFullYear()+l),u},eachYearOfInterval:a=>{let l=i(a.start),u=i(a.end),d=[],f=new Qr(l.getFullYear(),0,1,12,0,0,e);for(;f.getFullYear()<=u.getFullYear();)d.push(new Qr(f,e)),f.setFullYear(f.getFullYear()+1,0,1);return d},getWeek:(a,l)=>{let u=s(a);return bg(u,{weekStartsOn:l?.weekStartsOn??n,firstWeekContainsDate:l?.firstWeekContainsDate??r?.options?.firstWeekContainsDate??1})},getISOWeek:a=>{let l=s(a);return hg(l)},differenceInCalendarDays:(a,l)=>{let u=s(a),d=s(l);return Uf(u,d)},differenceInCalendarMonths:(a,l)=>{let u=s(a),d=s(l);return nN(u,d)}}}var rk=c(re(),1);var aE=e=>e instanceof HTMLElement?e:null,$G=e=>[...e.querySelectorAll("[data-animated-month]")??[]],zKe=e=>aE(e.querySelector("[data-animated-month]")),YG=e=>aE(e.querySelector("[data-animated-caption]")),KG=e=>aE(e.querySelector("[data-animated-weeks]")),jKe=e=>aE(e.querySelector("[data-animated-nav]")),HKe=e=>aE(e.querySelector("[data-animated-weekdays]"));function Yme(e,t,{classNames:o,months:r,focused:n,dateLib:i}){let s=(0,rk.useRef)(null),a=(0,rk.useRef)(r),l=(0,rk.useRef)(!1);(0,rk.useLayoutEffect)(()=>{let u=a.current;if(a.current=r,!t||!e.current||!(e.current instanceof HTMLElement)||r.length===0||u.length===0||r.length!==u.length)return;let d=i.isSameMonth(r[0].date,u[0].date),f=i.isAfter(r[0].date,u[0].date),p=f?o[us.caption_after_enter]:o[us.caption_before_enter],m=f?o[us.weeks_after_enter]:o[us.weeks_before_enter],g=s.current,h=e.current.cloneNode(!0);if(h instanceof HTMLElement?($G(h).forEach(_=>{if(!(_ instanceof HTMLElement))return;let w=zKe(_);w&&_.contains(w)&&_.removeChild(w);let k=YG(_);k&&k.classList.remove(p);let x=KG(_);x&&x.classList.remove(m)}),s.current=h):s.current=null,l.current||d||n)return;let b=g instanceof HTMLElement?$G(g):[],v=$G(e.current);if(v?.every(y=>y instanceof HTMLElement)&&b?.every(y=>y instanceof HTMLElement)){l.current=!0;let y=[];e.current.style.isolation="isolate";let _=jKe(e.current);_&&(_.style.zIndex="1"),v.forEach((w,k)=>{let x=b[k];if(!x)return;w.style.position="relative",w.style.overflow="hidden";let S=YG(w);S&&S.classList.add(p);let C=KG(w);C&&C.classList.add(m);let R=()=>{l.current=!1,e.current&&(e.current.style.isolation=""),_&&(_.style.zIndex=""),S&&S.classList.remove(p),C&&C.classList.remove(m),w.style.position="",w.style.overflow="",w.contains(x)&&w.removeChild(x)};y.push(R),x.style.pointerEvents="none",x.style.position="absolute",x.style.overflow="hidden",x.setAttribute("aria-hidden","true");let E=HKe(x);E&&(E.style.opacity="0");let I=YG(x);I&&(I.classList.add(f?o[us.caption_before_exit]:o[us.caption_after_exit]),I.addEventListener("animationend",R));let O=KG(x);O&&O.classList.add(f?o[us.weeks_before_exit]:o[us.weeks_after_exit]),w.insertBefore(x,w.firstChild)})}})}var nL=c(re(),1);function Kme(e,t,o,r){let n=e[0],i=e[e.length-1],{ISOWeek:s,fixedWeeks:a,broadcastCalendar:l}=o??{},{addDays:u,differenceInCalendarDays:d,differenceInCalendarMonths:f,endOfBroadcastWeek:p,endOfISOWeek:m,endOfMonth:g,endOfWeek:h,isAfter:b,startOfBroadcastWeek:v,startOfISOWeek:y,startOfWeek:_}=r,w=l?v(n,r):s?y(n):_(n),k=l?p(i):s?m(g(i)):h(g(i)),x=t&&(l?p(t):s?m(t):h(t)),S=x&&b(k,x)?x:k,C=d(S,w),R=f(i,n)+1,E=[];for(let A=0;A<=C;A++){let P=u(w,A);E.push(P)}let O=(l?35:42)*R;if(a&&E.length<O){let A=O-E.length;for(let P=0;P<A;P++){let L=u(E[E.length-1],1);E.push(L)}}return E}function qme(e){let t=[];return e.reduce((o,r)=>{let n=r.weeks.reduce((i,s)=>i.concat(s.days.slice()),t.slice());return o.concat(n.slice())},t.slice())}function Zme(e,t,o,r){let{numberOfMonths:n=1}=o,i=[];for(let s=0;s<n;s++){let a=r.addMonths(e,s);if(t&&a>t)break;i.push(a)}return i}function qG(e,t,o,r){let{month:n,defaultMonth:i,today:s=r.today(),numberOfMonths:a=1}=e,l=n||i||s,{differenceInCalendarMonths:u,addMonths:d,startOfMonth:f}=r;if(o&&u(o,l)<a-1){let p=-1*(a-1);l=d(o,p)}return t&&u(l,t)<0&&(l=t),f(l)}function Xme(e,t,o,r){let{addDays:n,endOfBroadcastWeek:i,endOfISOWeek:s,endOfMonth:a,endOfWeek:l,getISOWeek:u,getWeek:d,startOfBroadcastWeek:f,startOfISOWeek:p,startOfWeek:m}=r,g=e.reduce((h,b)=>{let v=o.broadcastCalendar?f(b,r):o.ISOWeek?p(b):m(b),y=o.broadcastCalendar?i(b):o.ISOWeek?s(a(b)):l(a(b)),_=t.filter(S=>S>=v&&S<=y),w=o.broadcastCalendar?35:42;if(o.fixedWeeks&&_.length<w){let S=t.filter(C=>{let R=w-_.length;return C>y&&C<=n(y,R)});_.push(...S)}let k=_.reduce((S,C)=>{let R=o.ISOWeek?u(C):d(C),E=S.find(O=>O.weekNumber===R),I=new Xw(C,b,r);return E?E.days.push(I):S.push(new JN(R,[I])),S},[]),x=new QN(b,k);return h.push(x),h},[]);return o.reverseMonths?g.reverse():g}function Qme(e,t){let{startMonth:o,endMonth:r}=e,{startOfYear:n,startOfDay:i,startOfMonth:s,endOfMonth:a,addYears:l,endOfYear:u,today:d}=t,f=e.captionLayout==="dropdown"||e.captionLayout==="dropdown-years";return o?o=s(o):!o&&f&&(o=n(l(e.today??d(),-100))),r?r=a(r):!r&&f&&(r=u(e.today??d())),[o&&i(o),r&&i(r)]}function Jme(e,t,o,r){if(o.disableNavigation)return;let{pagedNavigation:n,numberOfMonths:i=1}=o,{startOfMonth:s,addMonths:a,differenceInCalendarMonths:l}=r,u=n?i:1,d=s(e);if(!t)return a(d,u);if(!(l(t,e)<i))return a(d,u)}function ege(e,t,o,r){if(o.disableNavigation)return;let{pagedNavigation:n,numberOfMonths:i}=o,{startOfMonth:s,addMonths:a,differenceInCalendarMonths:l}=r,u=n?i??1:1,d=s(e);if(!t)return a(d,-u);if(!(l(d,t)<=0))return a(d,-u)}function tge(e){let t=[];return e.reduce((o,r)=>o.concat(r.weeks.slice()),t.slice())}var oge=c(re(),1);function vg(e,t){let[o,r]=(0,oge.useState)(e);return[t===void 0?o:t,r]}function rge(e,t){let[o,r]=Qme(e,t),{startOfMonth:n,endOfMonth:i}=t,s=qG(e,o,r,t),[a,l]=vg(s,e.month?s:void 0);(0,nL.useEffect)(()=>{let w=qG(e,o,r,t);l(w)},[e.timeZone]);let{months:u,weeks:d,days:f,previousMonth:p,nextMonth:m}=(0,nL.useMemo)(()=>{let w=Zme(a,r,{numberOfMonths:e.numberOfMonths},t),k=Kme(w,e.endMonth?i(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},t),x=Xme(w,k,{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},t),S=tge(x),C=qme(x),R=ege(a,o,e,t),E=Jme(a,r,e,t);return{months:x,weeks:S,days:C,previousMonth:R,nextMonth:E}},[t,a.getTime(),r?.getTime(),o?.getTime(),e.disableNavigation,e.broadcastCalendar,e.endMonth?.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:g,onMonthChange:h}=e,b=w=>d.some(k=>k.days.some(x=>x.isEqualTo(w))),v=w=>{if(g)return;let k=n(w);o&&k<n(o)&&(k=n(o)),r&&k>n(r)&&(k=n(r)),l(k),h?.(k)};return{months:u,weeks:d,days:f,navStart:o,navEnd:r,previousMonth:p,nextMonth:m,goToMonth:v,goToDay:w=>{b(w)||v(w.date)}}}var XG=c(re(),1);var ud;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(ud||(ud={}));function nge(e){return!e[Eo.disabled]&&!e[Eo.hidden]&&!e[Eo.outside]}function ige(e,t,o,r){let n,i=-1;for(let s of e){let a=t(s);nge(a)&&(a[Eo.focused]&&i<ud.FocusedModifier?(n=s,i=ud.FocusedModifier):r?.isEqualTo(s)&&i<ud.LastFocused?(n=s,i=ud.LastFocused):o(s.date)&&i<ud.Selected?(n=s,i=ud.Selected):a[Eo.today]&&i<ud.Today&&(n=s,i=ud.Today))}return n||(n=e.find(s=>nge(t(s)))),n}function sge(e,t,o,r,n,i,s){let{ISOWeek:a,broadcastCalendar:l}=i,{addDays:u,addMonths:d,addWeeks:f,addYears:p,endOfBroadcastWeek:m,endOfISOWeek:g,endOfWeek:h,max:b,min:v,startOfBroadcastWeek:y,startOfISOWeek:_,startOfWeek:w}=s,x={day:u,week:f,month:d,year:p,startOfWeek:S=>l?y(S,s):a?_(S):w(S),endOfWeek:S=>l?m(S):a?g(S):h(S)}[e](o,t==="after"?1:-1);return t==="before"&&r?x=b([r,x]):t==="after"&&n&&(x=v([n,x])),x}function ZG(e,t,o,r,n,i,s,a=0){if(a>365)return;let l=sge(e,t,o.date,r,n,i,s),u=!!(i.disabled&&Tl(l,i.disabled,s)),d=!!(i.hidden&&Tl(l,i.hidden,s)),f=l,p=new Xw(l,f,s);return!u&&!d?p:ZG(e,t,p,r,n,i,s,a+1)}function age(e,t,o,r,n){let{autoFocus:i}=e,[s,a]=(0,XG.useState)(),l=ige(t.days,o,r||(()=>!1),s),[u,d]=(0,XG.useState)(i?l:void 0);return{isFocusTarget:h=>!!l?.isEqualTo(h),setFocused:d,focused:u,blur:()=>{a(u),d(void 0)},moveFocus:(h,b)=>{if(!u)return;let v=ZG(h,b,u,t.navStart,t.navEnd,e,n);v&&(e.disableNavigation&&!t.days.some(_=>_.isEqualTo(v))||(t.goToDay(v),d(v)))}}}function lge(e,t){let{selected:o,required:r,onSelect:n}=e,[i,s]=vg(o,n?o:void 0),a=n?o:i,{isSameDay:l}=t,u=m=>a?.some(g=>l(g,m))??!1,{min:d,max:f}=e;return{selected:a,select:(m,g,h)=>{let b=[...a??[]];if(u(m)){if(a?.length===d||r&&a?.length===1)return;b=a?.filter(v=>!l(v,m))}else a?.length===f?b=[m]:b=[...b,m];return n||s(b),n?.(b,m,g,h),b},isSelected:u}}function cge(e,t,o=0,r=0,n=!1,i=yn){let{from:s,to:a}=t||{},{isSameDay:l,isAfter:u,isBefore:d}=i,f;if(!s&&!a)f={from:e,to:o>0?void 0:e};else if(s&&!a)l(s,e)?o===0?f={from:s,to:e}:n?f={from:s,to:void 0}:f=void 0:d(e,s)?f={from:e,to:s}:f={from:s,to:e};else if(s&&a)if(l(s,e)&&l(a,e))n?f={from:s,to:a}:f=void 0;else if(l(s,e))f={from:s,to:o>0?void 0:e};else if(l(a,e))f={from:e,to:o>0?void 0:e};else if(d(e,s))f={from:e,to:a};else if(u(e,s))f={from:s,to:e};else if(u(e,a))f={from:s,to:e};else throw new Error("Invalid range");if(f?.from&&f?.to){let p=i.differenceInCalendarDays(f.to,f.from);r>0&&p>r?f={from:e,to:void 0}:o>1&&p<o&&(f={from:e,to:void 0})}return f}function uge(e,t,o=yn){let r=Array.isArray(t)?t:[t],n=e.from,i=o.differenceInCalendarDays(e.to,e.from),s=Math.min(i,6);for(let a=0;a<=s;a++){if(r.includes(n.getDay()))return!0;n=o.addDays(n,1)}return!1}function QG(e,t,o=yn){return $s(e,t.from,!1,o)||$s(e,t.to,!1,o)||$s(t,e.from,!1,o)||$s(t,e.to,!1,o)}function iL(e,t,o=yn){let r=Array.isArray(t)?t:[t];if(r.filter(a=>typeof a!="function").some(a=>typeof a=="boolean"?a:o.isDate(a)?$s(e,a,!1,o):rL(a,o)?a.some(l=>$s(e,l,!1,o)):yg(a)?a.from&&a.to?QG(e,{from:a.from,to:a.to},o):!1:oL(a)?uge(e,a.dayOfWeek,o):ek(a)?o.isAfter(a.before,a.after)?QG(e,{from:o.addDays(a.after,1),to:o.addDays(a.before,-1)},o):Tl(e.from,a,o)||Tl(e.to,a,o):tk(a)||ok(a)?Tl(e.from,a,o)||Tl(e.to,a,o):!1))return!0;let s=r.filter(a=>typeof a=="function");if(s.length){let a=e.from,l=o.differenceInCalendarDays(e.to,e.from);for(let u=0;u<=l;u++){if(s.some(d=>d(a)))return!0;a=o.addDays(a,1)}}return!1}function dge(e,t){let{disabled:o,excludeDisabled:r,resetOnSelect:n,selected:i,required:s,onSelect:a}=e,[l,u]=vg(i,a?i:void 0),d=a?i:l;return{selected:d,select:(m,g,h)=>{let{min:b,max:v}=e,y;if(m){let _=d?.from,w=d?.to,k=!!_&&!!w,x=!!_&&!!w&&t.isSameDay(_,w)&&t.isSameDay(m,_);n&&(k||!d?.from)?!s&&x?y=void 0:y={from:m,to:void 0}:y=cge(m,d,b,v,s,t)}return r&&o&&y?.from&&y.to&&iL({from:y.from,to:y.to},o,t)&&(y.from=m,y.to=void 0),a||u(y),a?.(y,m,g,h),y},isSelected:m=>d&&$s(d,m,!1,t)}}function fge(e,t){let{selected:o,required:r,onSelect:n}=e,[i,s]=vg(o,n?o:void 0),a=n?o:i,{isSameDay:l}=t;return{selected:a,select:(f,p,m)=>{let g=f;return!r&&a&&a&&l(f,a)&&(g=void 0),n||s(g),n?.(g,f,p,m),g},isSelected:f=>a?l(a,f):!1}}function pge(e,t){let o=fge(e,t),r=lge(e,t),n=dge(e,t);switch(e.mode){case"single":return o;case"multiple":return r;case"range":return n;default:return}}function ds(e,t){return e instanceof Qr&&e.timeZone===t?e:new Qr(e,t)}function nk(e,t,o){if(!o)return ds(e,t);let r=ds(e,t),n=new Qr(r.getFullYear(),r.getMonth(),r.getDate(),12,0,0,t);return new Date(n.getTime())}function mge(e,t,o){return typeof e=="boolean"||typeof e=="function"?e:e instanceof Date?nk(e,t,o):Array.isArray(e)?e.map(r=>r instanceof Date?nk(r,t,o):r):yg(e)?{...e,from:e.from?ds(e.from,t):e.from,to:e.to?ds(e.to,t):e.to}:ek(e)?{before:nk(e.before,t,o),after:nk(e.after,t,o)}:tk(e)?{after:nk(e.after,t,o)}:ok(e)?{before:nk(e.before,t,o)}:e}function sL(e,t,o){return e&&(Array.isArray(e)?e.map(r=>mge(r,t,o)):mge(e,t,o))}function aL(e){let t=e,o=t.timeZone;if(o&&(t={...e,timeZone:o},t.today&&(t.today=ds(t.today,o)),t.month&&(t.month=ds(t.month,o)),t.defaultMonth&&(t.defaultMonth=ds(t.defaultMonth,o)),t.startMonth&&(t.startMonth=ds(t.startMonth,o)),t.endMonth&&(t.endMonth=ds(t.endMonth,o)),t.mode==="single"&&t.selected?t.selected=ds(t.selected,o):t.mode==="multiple"&&t.selected?t.selected=t.selected?.map(we=>ds(we,o)):t.mode==="range"&&t.selected&&(t.selected={from:t.selected.from?ds(t.selected.from,o):t.selected.from,to:t.selected.to?ds(t.selected.to,o):t.selected.to}),t.disabled!==void 0&&(t.disabled=sL(t.disabled,o)),t.hidden!==void 0&&(t.hidden=sL(t.hidden,o)),t.modifiers)){let we={};Object.keys(t.modifiers).forEach(Me=>{we[Me]=sL(t.modifiers?.[Me],o)}),t.modifiers=we}let{components:r,formatters:n,labels:i,dateLib:s,locale:a,classNames:l}=(0,pt.useMemo)(()=>{let we={...sE,...t.locale},Me=t.broadcastCalendar?1:t.weekStartsOn,ge=t.noonSafe&&t.timeZone?$me(t.timeZone,{weekStartsOn:Me,locale:we}):void 0,Re=t.dateLib&&ge?{...ge,...t.dateLib}:t.dateLib??ge,Ie=new bn({locale:we,weekStartsOn:Me,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},Re);return{dateLib:Ie,components:Dme(t.components),formatters:zme(t.formatters),labels:jme(t.labels,Ie.options),locale:we,classNames:{...Fme(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.noonSafe,t.components,t.formatters,t.labels,t.classNames]);t.today||(t={...t,today:s.today()});let{captionLayout:u,mode:d,navLayout:f,numberOfMonths:p=1,onDayBlur:m,onDayClick:g,onDayFocus:h,onDayKeyDown:b,onDayMouseEnter:v,onDayMouseLeave:y,onNextClick:_,onPrevClick:w,showWeekNumber:k,styles:x}=t,{formatCaption:S,formatDay:C,formatMonthDropdown:R,formatWeekNumber:E,formatWeekNumberHeader:I,formatWeekdayName:O,formatYearDropdown:A}=n,P=rge(t,s),{days:L,months:H,navStart:N,navEnd:M,previousMonth:V,nextMonth:j,goToMonth:D}=P,z=Nme(L,t,N,M,s),{isSelected:W,select:ee,selected:J}=pge(t,s)??{},{blur:U,focused:Q,isFocusTarget:Z,moveFocus:K,setFocused:X}=age(t,P,z,W??(()=>!1),s),{labelDayButton:oe,labelGridcell:ie,labelGrid:se,labelMonthDropdown:be,labelNav:pe,labelPrevious:ke,labelNext:ye,labelWeekday:Pe,labelWeekNumber:_e,labelWeekNumberHeader:ve,labelYearDropdown:Se}=i,fe=(0,pt.useMemo)(()=>Wme(s,t.ISOWeek,t.broadcastCalendar,t.today),[s,t.ISOWeek,t.broadcastCalendar,t.today]),Ce=d!==void 0||g!==void 0,ne=(0,pt.useCallback)(()=>{V&&(D(V),w?.(V))},[V,D,w]),ae=(0,pt.useCallback)(()=>{j&&(D(j),_?.(j))},[D,j,_]),Ee=(0,pt.useCallback)((we,Me)=>ge=>{ge.preventDefault(),ge.stopPropagation(),X(we),!Me.disabled&&(ee?.(we.date,Me,ge),g?.(we.date,Me,ge))},[ee,g,X]),he=(0,pt.useCallback)((we,Me)=>ge=>{X(we),h?.(we.date,Me,ge)},[h,X]),Ae=(0,pt.useCallback)((we,Me)=>ge=>{U(),m?.(we.date,Me,ge)},[U,m]),et=(0,pt.useCallback)((we,Me)=>ge=>{let Re={ArrowLeft:[ge.shiftKey?"month":"day",t.dir==="rtl"?"after":"before"],ArrowRight:[ge.shiftKey?"month":"day",t.dir==="rtl"?"before":"after"],ArrowDown:[ge.shiftKey?"year":"week","after"],ArrowUp:[ge.shiftKey?"year":"week","before"],PageUp:[ge.shiftKey?"year":"month","before"],PageDown:[ge.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(Re[ge.key]){ge.preventDefault(),ge.stopPropagation();let[Ie,at]=Re[ge.key];K(Ie,at)}b?.(we.date,Me,ge)},[K,b,t.dir]),Je=(0,pt.useCallback)((we,Me)=>ge=>{v?.(we.date,Me,ge)},[v]),_t=(0,pt.useCallback)((we,Me)=>ge=>{y?.(we.date,Me,ge)},[y]),Et=(0,pt.useCallback)((we,Me)=>ge=>{let Re=Number(ge.target.value),Ie=s.setMonth(s.startOfMonth(we),Re);D(s.addMonths(Ie,-Me))},[s,D]),mt=(0,pt.useCallback)((we,Me)=>ge=>{let Re=Number(ge.target.value),Ie=s.setYear(s.startOfMonth(we),Re);D(s.addMonths(Ie,-Me))},[s,D]),{className:oo,style:Tt}=(0,pt.useMemo)(()=>({className:[l[Le.Root],t.className].filter(Boolean).join(" "),style:{...x?.[Le.Root],...t.style}}),[l,t.className,t.style,x]),Rt=Vme(t),Bt=we=>{let Me=x?.[Le.Dropdown],ge=x?.[we];if(!(!Me&&!ge))return{...Me,...ge}},gt=(0,pt.useRef)(null);Yme(gt,!!t.animate,{classNames:l,months:H,focused:Q,dateLib:s});let He={dayPickerProps:t,selected:J,select:ee,isSelected:W,months:H,nextMonth:j,previousMonth:V,goToMonth:D,getModifiers:z,components:r,classNames:l,styles:x,labels:i,formatters:n};return pt.default.createElement(IG.Provider,{value:He},pt.default.createElement(r.Root,{rootRef:t.animate?gt:void 0,className:oo,style:Tt,dir:t.dir,id:t.id,lang:t.lang??a.code,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t["aria-label"],"aria-labelledby":t["aria-labelledby"],...Rt},pt.default.createElement(r.Months,{className:l[Le.Months],style:x?.[Le.Months]},!t.hideNavigation&&!f&&pt.default.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:l[Le.Nav],style:x?.[Le.Nav],"aria-label":pe(),onPreviousClick:ne,onNextClick:ae,previousMonth:V,nextMonth:j}),H.map((we,Me)=>{let ge=t.reverseMonths?H.length-1-Me:Me;return pt.default.createElement(r.Month,{"data-animated-month":t.animate?"true":void 0,className:l[Le.Month],style:x?.[Le.Month],key:Me,displayIndex:Me,calendarMonth:we},f==="around"&&!t.hideNavigation&&Me===0&&pt.default.createElement(r.PreviousMonthButton,{type:"button",className:l[Le.PreviousMonthButton],style:x?.[Le.PreviousMonthButton],tabIndex:V?void 0:-1,"aria-disabled":V?void 0:!0,"aria-label":ke(V),onClick:ne,"data-animated-button":t.animate?"true":void 0},pt.default.createElement(r.Chevron,{disabled:V?void 0:!0,className:l[Le.Chevron],style:x?.[Le.Chevron],orientation:t.dir==="rtl"?"right":"left"})),pt.default.createElement(r.MonthCaption,{"data-animated-caption":t.animate?"true":void 0,className:l[Le.MonthCaption],style:x?.[Le.MonthCaption],calendarMonth:we,displayIndex:Me},u?.startsWith("dropdown")?pt.default.createElement(r.DropdownNav,{className:l[Le.Dropdowns],style:x?.[Le.Dropdowns]},(()=>{let Re=u==="dropdown"||u==="dropdown-months"?pt.default.createElement(r.MonthsDropdown,{key:"month",className:l[Le.MonthsDropdown],"aria-label":be(),disabled:!!t.disableNavigation,onChange:Et(we.date,ge),options:Hme(we.date,N,M,n,s),style:Bt(Le.MonthsDropdown),value:s.getMonth(we.date)}):pt.default.createElement("span",{key:"month"},R(we.date,s)),Ie=u==="dropdown"||u==="dropdown-years"?pt.default.createElement(r.YearsDropdown,{key:"year",className:l[Le.YearsDropdown],"aria-label":Se(s.options),disabled:!!t.disableNavigation,onChange:mt(we.date,ge),options:Gme(N,M,n,s,!!t.reverseYears),style:Bt(Le.YearsDropdown),value:s.getYear(we.date)}):pt.default.createElement("span",{key:"year"},A(we.date,s));return s.getMonthYearOrder()==="year-first"?[Ie,Re]:[Re,Ie]})(),pt.default.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},S(we.date,s.options,s))):pt.default.createElement(r.CaptionLabel,{className:l[Le.CaptionLabel],style:x?.[Le.CaptionLabel],role:"status","aria-live":"polite"},S(we.date,s.options,s))),f==="around"&&!t.hideNavigation&&Me===p-1&&pt.default.createElement(r.NextMonthButton,{type:"button",className:l[Le.NextMonthButton],style:x?.[Le.NextMonthButton],tabIndex:j?void 0:-1,"aria-disabled":j?void 0:!0,"aria-label":ye(j),onClick:ae,"data-animated-button":t.animate?"true":void 0},pt.default.createElement(r.Chevron,{disabled:j?void 0:!0,className:l[Le.Chevron],style:x?.[Le.Chevron],orientation:t.dir==="rtl"?"left":"right"})),Me===p-1&&f==="after"&&!t.hideNavigation&&pt.default.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:l[Le.Nav],style:x?.[Le.Nav],"aria-label":pe(),onPreviousClick:ne,onNextClick:ae,previousMonth:V,nextMonth:j}),pt.default.createElement(r.MonthGrid,{role:"grid","aria-multiselectable":d==="multiple"||d==="range","aria-label":se(we.date,s.options,s)||void 0,className:l[Le.MonthGrid],style:x?.[Le.MonthGrid]},!t.hideWeekdays&&pt.default.createElement(r.Weekdays,{"data-animated-weekdays":t.animate?"true":void 0,className:l[Le.Weekdays],style:x?.[Le.Weekdays]},k&&pt.default.createElement(r.WeekNumberHeader,{"aria-label":ve(s.options),className:l[Le.WeekNumberHeader],style:x?.[Le.WeekNumberHeader],scope:"col"},I()),fe.map(Re=>pt.default.createElement(r.Weekday,{"aria-label":Pe(Re,s.options,s),className:l[Le.Weekday],key:String(Re),style:x?.[Le.Weekday],scope:"col"},O(Re,s.options,s)))),pt.default.createElement(r.Weeks,{"data-animated-weeks":t.animate?"true":void 0,className:l[Le.Weeks],style:x?.[Le.Weeks]},we.weeks.map(Re=>pt.default.createElement(r.Week,{className:l[Le.Week],key:Re.weekNumber,style:x?.[Le.Week],week:Re},k&&pt.default.createElement(r.WeekNumber,{week:Re,style:x?.[Le.WeekNumber],"aria-label":_e(Re.weekNumber,{locale:a}),className:l[Le.WeekNumber],scope:"row",role:"rowheader"},E(Re.weekNumber,s)),Re.days.map(Ie=>{let{date:at}=Ie,Qe=z(Ie);if(Qe[Eo.focused]=!Qe.hidden&&!!Q?.isEqualTo(Ie),Qe[Gs.selected]=W?.(at)||Qe.selected,yg(J)){let{from:Kt,to:_o}=J;Qe[Gs.range_start]=!!(Kt&&_o&&s.isSameDay(at,Kt)),Qe[Gs.range_end]=!!(Kt&&_o&&s.isSameDay(at,_o)),Qe[Gs.range_middle]=$s(J,at,!0,s)}let po=Ume(Qe,x,t.modifiersStyles),ro=Lme(Qe,l,t.modifiersClassNames),vo=!Ce&&!Qe.hidden?ie(at,Qe,s.options,s):void 0;return pt.default.createElement(r.Day,{key:`${Ie.isoDate}_${Ie.displayMonthId}`,day:Ie,modifiers:Qe,className:ro.join(" "),style:po,role:"gridcell","aria-selected":Qe.selected||void 0,"aria-label":vo,"data-day":Ie.isoDate,"data-month":Ie.outside?Ie.dateMonthId:void 0,"data-selected":Qe.selected||void 0,"data-disabled":Qe.disabled||void 0,"data-hidden":Qe.hidden||void 0,"data-outside":Ie.outside||void 0,"data-focused":Qe.focused||void 0,"data-today":Qe.today||void 0},!Qe.hidden&&Ce?pt.default.createElement(r.DayButton,{className:l[Le.DayButton],style:x?.[Le.DayButton],type:"button",day:Ie,modifiers:Qe,disabled:!Qe.focused&&Qe.disabled||void 0,"aria-disabled":Qe.focused&&Qe.disabled||void 0,tabIndex:Z(Ie)?0:-1,"aria-label":oe(at,Qe,s.options,s),onClick:Ee(Ie,Qe),onBlur:Ae(Ie,Qe),onFocus:he(Ie,Qe),onKeyDown:et(Ie,Qe),onMouseEnter:Je(Ie,Qe),onMouseLeave:_t(Ie,Qe)},C(at,s.options,s)):!Qe.hidden&&C(Ie.date,s.options,s))}))))))})),t.footer&&pt.default.createElement(r.Footer,{className:l[Le.Footer],style:x?.[Le.Footer],role:"status","aria-live":"polite"},t.footer)))}var vy=c(F(),1);var $ge=c(F(),1),Yge=c(ue(),1);var bL=c(q(),1);var Uge=c(F(),1);var lo={};No(lo,{Popup:()=>fL,Portal:()=>cL,Positioner:()=>uL,Provider:()=>Lge,Root:()=>mL,Trigger:()=>pL});var Bge=c(F(),1);var yge=c(F(),1);var e$="data-wp-hash";function t$(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&WKe(document)),e.__wpStyleRuntime}function UKe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${e$}]`))if(o.getAttribute(e$)===t)return!0;return!1}function hge(e,t,o){if(!e.head)return;let r=t$(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(UKe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(e$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function WKe(e){let t=t$();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)hge(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 GKe(e,t){let o=t$();o.styles.set(e,t);for(let r of o.documents.keys())hge(r,e,t)}typeof process>"u",GKe("be37f31c1e","._11fc52b637ff8a7e__slot{inset:0;isolation:isolate;pointer-events:none;position:fixed;z-index:1000000003}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._11fc52b637ff8a7e__slot>*{pointer-events:auto}}}");var gge={slot:"_11fc52b637ff8a7e__slot"},bge="data-wp-compat-overlay-slot";function $Ke(){return typeof document>"u"?null:document}function YKe(){let e;try{e=window.top?.wp}catch{}let t=e??window.wp;return typeof t?.components=="object"&&t.components!==null}var dd=null;function JG(e){return e.setAttribute("aria-hidden","false"),e}function KKe(e){let t=e.createElement("div");return t.setAttribute(bge,""),gge.slot&&t.classList.add(gge.slot),e.body.appendChild(t),t}function lL(){if(typeof window>"u"||!YKe()&&window.__wpUiCompatOverlaySlotEnabled!==!0)return;let e=$Ke();if(!e||!e.body)return;if(dd&&dd.ownerDocument===e&&dd.isConnected)return JG(dd);let t=e.querySelector(`[${bge}]`);return t instanceof HTMLDivElement?(dd=JG(t),dd):(dd?.isConnected&&dd.remove(),dd=JG(KKe(e)),dd)}var vge=c(T(),1),cL=(0,yge.forwardRef)(function({container:t,...o},r){return(0,vge.jsx)(Us.Portal,{container:t??lL(),...o,ref:r})});var _ge=c(F(),1),xge=c(T(),1),o$="data-wp-hash";function r$(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&ZKe(document)),e.__wpStyleRuntime}function qKe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${o$}]`))if(o.getAttribute(o$)===t)return!0;return!1}function wge(e,t,o){if(!e.head)return;let r=r$(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(qKe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(o$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function ZKe(e){let t=r$();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)wge(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 kge(e,t){let o=r$();o.styles.set(e,t);for(let r of o.documents.keys())wge(r,e,t)}typeof process>"u",kge("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var XKe={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",kge("19fcc06039",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._480b748dd3510e64__positioner{z-index:var(--wp-ui-tooltip-z-index,initial)}._50096b232db7709d__popup{--_wp-ui-elevation-sm:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-sm);color:var(--wpds-color-foreground-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 QKe={positioner:"_480b748dd3510e64__positioner",popup:"_50096b232db7709d__popup"},uL=(0,_ge.forwardRef)(function({align:t="center",className:o,side:r="top",sideOffset:n=4,...i},s){return(0,xge.jsx)(Us.Positioner,{ref:s,align:t,side:r,sideOffset:n,...i,className:$(XKe["box-sizing"],QKe.positioner,o)})});var Sge=c(F(),1);function ik(e,t,o){return(0,Sge.cloneElement)(e??t,{children:o})}var JKe=c(Ege(),1);var Tge=c(OB(),1),{lock:rqt,unlock:Rge}=(0,Tge.__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");function eqe(){let e=JKe;if(e.ThemeProvider)return e.ThemeProvider;if(!e.privateApis)throw new Error("@wordpress/ui: @wordpress/theme must expose `ThemeProvider` or `privateApis.ThemeProvider`.");return Rge(e.privateApis).ThemeProvider}var dL=eqe();var lE=c(T(),1),n$="data-wp-hash";function i$(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&oqe(document)),e.__wpStyleRuntime}function tqe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${n$}]`))if(o.getAttribute(n$)===t)return!0;return!1}function Ige(e,t,o){if(!e.head)return;let r=i$(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(tqe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(n$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function oqe(e){let t=i$();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Ige(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 rqe(e,t){let o=i$();o.styles.set(e,t);for(let r of o.documents.keys())Ige(r,e,t)}typeof process>"u",rqe("19fcc06039",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._480b748dd3510e64__positioner{z-index:var(--wp-ui-tooltip-z-index,initial)}._50096b232db7709d__popup{--_wp-ui-elevation-sm:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-sm);color:var(--wpds-color-foreground-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 nqe={positioner:"_480b748dd3510e64__positioner",popup:"_50096b232db7709d__popup"},iqe={background:"#1e1e1e"},fL=(0,Bge.forwardRef)(function({portal:t,positioner:o,children:r,className:n,...i},s){let a=(0,lE.jsx)(dL,{color:iqe,children:(0,lE.jsx)(Us.Popup,{ref:s,className:$(nqe.popup,n),...i,children:r})}),l=ik(o,(0,lE.jsx)(uL,{}),a);return ik(t,(0,lE.jsx)(cL,{}),l)});var Pge=c(F(),1),Oge=c(T(),1),pL=(0,Pge.forwardRef)(function(t,o){return(0,Oge.jsx)(Us.Trigger,{ref:o,...t})});var Age=c(q(),1),Mge=c(T(),1);function sk({children:e}){return(0,Mge.jsx)(gM,{direction:(0,Age.isRTL)()?"rtl":"ltr",children:e})}var s$=c(T(),1);function mL(e){return(0,s$.jsx)(sk,{children:(0,s$.jsx)(Us.Root,{...e})})}var Nge=c(T(),1);function Lge({...e}){return(0,Nge.jsx)(Us.Provider,{...e})}var cE=c(F(),1),hL=c(q(),1);var Dge=c(F(),1),a$="data-wp-hash";function l$(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&aqe(document)),e.__wpStyleRuntime}function sqe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${a$}]`))if(o.getAttribute(a$)===t)return!0;return!1}function Vge(e,t,o){if(!e.head)return;let r=l$(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(sqe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(a$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function aqe(e){let t=l$();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Vge(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 lqe(e,t){let o=l$();o.styles.set(e,t);for(let r of o.documents.keys())Vge(r,e,t)}typeof process>"u",lqe("fa606a57ae","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.f37b9e2e191ebd66__visually-hidden{word-wrap:normal;border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-break:normal}}}");var cqe={"visually-hidden":"f37b9e2e191ebd66__visually-hidden"},bt=(0,Dge.forwardRef)(function({render:t,...o},r){return hn({render:t,ref:r,props:zt({className:cqe["visually-hidden"]},o,{"data-visually-hidden":""})})});var gL=c(T(),1);function Fge({"aria-describedby":e,"aria-keyshortcuts":t,shortcut:o}){let r=(0,cE.useId)(),n=o?r:void 0,i=[e,n].filter(Boolean).join(" ");return{descriptionId:n,targetProps:{"aria-describedby":i||void 0,"aria-keyshortcuts":o?.ariaKeyShortcut??t}}}var zge=(0,cE.forwardRef)(function({descriptionId:t,shortcut:o},r){return(0,gL.jsx)(bt,{id:t,"aria-hidden":"true",render:(0,gL.jsx)("span",{ref:r}),children:(0,hL.sprintf)((0,hL.__)("Keyboard shortcut: %s"),o.label??o.ariaKeyShortcut)})}),jge=(0,cE.forwardRef)(function({className:t,shortcut:o},r){return(0,gL.jsx)("span",{ref:r,"aria-hidden":"true",className:t,dir:"ltr",children:o.displayShortcut})});var Rl=c(T(),1),c$="data-wp-hash";function u$(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&dqe(document)),e.__wpStyleRuntime}function uqe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${c$}]`))if(o.getAttribute(c$)===t)return!0;return!1}function Wge(e,t,o){if(!e.head)return;let r=u$(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(uqe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(c$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function dqe(e){let t=u$();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Wge(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 fqe(e,t){let o=u$();o.styles.set(e,t);for(let r of o.documents.keys())Wge(r,e,t)}typeof process>"u",fqe("c5cdafb1bc","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer compositions{._28cfdc260e755391__icon-button{--wp-ui-button-aspect-ratio:1;--wp-ui-button-padding-inline:0px;--wp-ui-button-min-width:unset}.f1c70d719989a85a__icon{margin:-1px}}}");var Hge={"icon-button":"_28cfdc260e755391__icon-button",icon:"f1c70d719989a85a__icon"},d$=(0,Uge.forwardRef)(function({label:t,className:o,children:r,disabled:n,focusableWhenDisabled:i=!0,icon:s,size:a,shortcut:l,positioner:u,"aria-describedby":d,"aria-keyshortcuts":f,...p},m){let g=$(Hge["icon-button"],o),{descriptionId:h,targetProps:b}=Fge({"aria-describedby":d,"aria-keyshortcuts":f,shortcut:l});return(0,Rl.jsxs)(mL,{children:[(0,Rl.jsxs)(pL,{ref:m,...b,disabled:n&&!i,render:(0,Rl.jsx)(XM,{...p,size:a,"aria-label":t,disabled:n,focusableWhenDisabled:i}),className:g,children:[(0,Rl.jsx)(Xr,{icon:s,size:24,className:Hge.icon}),l&&h&&(0,Rl.jsx)(zge,{descriptionId:h,shortcut:l})]}),(0,Rl.jsxs)(fL,{positioner:u,children:[t,l&&(0,Rl.jsxs)(Rl.Fragment,{children:[" ",(0,Rl.jsx)(jge,{shortcut:l})]})]})]})});var Gge=c(F(),1),ak=(0,Gge.createContext)({});var zi=c(T(),1),pqe=()=>(0,zi.jsx)("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeDasharray:"3.7677",strokeDashoffset:"3.2",strokeWidth:"1",children:(0,zi.jsx)("path",{d:"M29.5,0.5 h-27 a2,2 0 0 0 -2,2 v27 a2,2 0 0 0 2,2 h27 a2,2 0 0 0 2,-2 v-27 a2,2 0 0 0 -2,-2"})}),mqe=()=>(0,zi.jsx)("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeDasharray:"3.84516",strokeDashoffset:"1.9226",strokeWidth:"1",children:(0,zi.jsx)("path",{d:"M32,0.5 h-29.5 a2,2 0 0 0 -2,2 v27 a2,2 0 0 0 2,2 h30"})}),gqe=()=>(0,zi.jsxs)("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeDasharray:"3.9 4",strokeDashoffset:"2",strokeWidth:"1",children:[(0,zi.jsx)("line",{x1:"0",y1:"0.5",x2:"100",y2:"0.5"}),(0,zi.jsx)("line",{x1:"0",y1:"31.5",x2:"100",y2:"31.5"})]}),hqe=()=>(0,zi.jsx)("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeDasharray:"3.84516",strokeDashoffset:"1.9226",strokeWidth:"1",children:(0,zi.jsx)("path",{d:"M0,0.5 h29.5 a2,2 0 0 1 2,2 v27 a2,2 0 0 1 -2,2 h-29.5"})});function Kge(e){let{day:t,modifiers:o,children:r,...n}=e,i;return o.preview_start&&o.preview_end?i=pqe:o.preview_start?i=mqe:o.preview_end?i=hqe:o.preview&&(i=gqe),(0,zi.jsxs)("td",{...n,children:[i&&(0,zi.jsx)(i,{}),r]})}function qge({rootRef:e,...t}){let{render:o,ref:r,role:n,defaultAriaLabel:i}=(0,$ge.useContext)(ak),{months:s,labels:a}=cd(),l=t["aria-label"]!==void 0||t["aria-labelledby"]!==void 0,u=t["aria-label"];if(!l&&i&&n==="application"){let f=s[0];u=f?(0,bL.sprintf)((0,bL.__)("%1$s, %2$s"),i,a.labelGrid(f.date)):i}let d=(0,Yge.useMergeRefs)([e??null,r??null]);return hn({render:o,defaultTagName:"div",ref:d,props:{...t,role:n,"aria-label":u}})}function Zge({icon:e,className:t,children:o,"aria-label":r,"aria-disabled":n,...i}){return(0,zi.jsx)(d$,{...i,className:t,label:r,icon:e,variant:"minimal",tone:"neutral",size:"compact",disabled:n===!0||n==="true",focusableWhenDisabled:!0})}function Xge(e){return(0,zi.jsx)(Zge,{...e,icon:ai})}function Qge(e){return(0,zi.jsx)(Zge,{...e,icon:hr})}var f$="data-wp-hash";function p$(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&yqe(document)),e.__wpStyleRuntime}function bqe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${f$}]`))if(o.getAttribute(f$)===t)return!0;return!1}function Jge(e,t,o){if(!e.head)return;let r=p$(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(bqe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(f$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function yqe(e){let t=p$();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Jge(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 yL(e,t){let o=p$();o.styles.set(e,t);for(let r of o.documents.keys())Jge(r,e,t)}typeof process>"u",yL("9d2212290a",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._2c7ac60ba97b3411__root{--wp-ui-calendar-cell-size:var(--wpds-dimension-size-md,32px);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:inline-block;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);font-weight:var(--wpds-typography-font-weight-default,400);position:relative;z-index:0}._172c492625235710__day{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);padding:0;position:relative;&:has(._1b64226e315835f8__day-button:disabled){color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}&:has(._1b64226e315835f8__day-button:focus-visible),&:has(._1b64226e315835f8__day-button:hover:not(:disabled)){color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}}._1b64226e315835f8__day-button{align-items:center;background:none;border:none;border-radius:var(--wpds-border-radius-sm,2px);color:inherit;cursor:var(--wpds-cursor-control,pointer);display:flex;font:inherit;font-variant-numeric:tabular-nums;height:var(--wp-ui-calendar-cell-size);justify-content:center;margin:0;padding:0;position:relative;width:var(--wp-ui-calendar-cell-size);&:before{background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);border:none;border-radius:var(--wpds-border-radius-sm,2px);z-index:-1}&:after,&:before{content:"";inset:0;position:absolute}&:after{pointer-events:none;z-index:1}&:disabled{cursor:revert;&:before{background-color:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000)}@media (forced-colors:active){text-decoration:line-through}}&:focus-visible:before,&:hover:not(:disabled):before{background-color:var(--wpds-color-background-interactive-neutral-weak-active,#ededed)}}._66b9a8120581fd4b__caption-label{align-items:center;border:0;display:inline-flex;position:relative;text-transform:capitalize;white-space:nowrap;z-index:1}._2c7ac60ba97b3411__root[dir=rtl] ._395a75bb1930f57e__nav-button{transform:rotate(180deg);transform-origin:50%}._337e5337d49b7f3d__month-caption{align-content:center;display:flex;height:var(--wp-ui-calendar-cell-size);justify-content:center;margin-bottom:var(--wpds-dimension-gap-md,12px)}._110e46230c68e498__months{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-lg,16px);justify-content:center;max-width:fit-content;position:relative}._92915239fedb1fea__month-grid{border-collapse:separate;border-spacing:0 var(--wpds-dimension-gap-xs,4px)}._66b1d4a7b488b496__nav{align-items:center;display:flex;height:var(--wp-ui-calendar-cell-size);inset-block-start:0;inset-inline-end:0;inset-inline-start:0;justify-content:space-between;position:absolute}._7207199709ca5776__weekday{color:var(--wpds-color-foreground-content-neutral-weak,#707070);font-weight:var(--wpds-typography-font-weight-default,400);height:var(--wp-ui-calendar-cell-size);padding:0;text-align:center;text-transform:uppercase;width:var(--wp-ui-calendar-cell-size)}._058175f0f9c495e0__today:after{border:2px solid;border-radius:50%;content:"";height:0;inset-block-start:2px;inset-inline-end:2px;position:absolute;width:0;z-index:1}.acb642920fb0bef5__selected:not(._165d91a726feca9c__range-middle){&:has(._1b64226e315835f8__day-button,._1b64226e315835f8__day-button:hover:not(:disabled)){color:var(--wpds-color-foreground-interactive-neutral-strong,#f0f0f0)}&:has(._1b64226e315835f8__day-button:disabled){color:var(--wpds-color-foreground-interactive-neutral-strong-disabled,#8d8d8d)}._1b64226e315835f8__day-button{&:before{background-color:var(--wpds-color-background-interactive-neutral-strong,#2d2d2d);border:1px solid transparent}&:disabled:before{background-color:var(--wpds-color-background-interactive-neutral-strong-disabled,#e6e6e6)}&:hover:not(:disabled):before{background-color:var(--wpds-color-background-interactive-neutral-strong-active,#1e1e1e)}}}.c259c5c255fda10f__outside{color:var(--wpds-color-foreground-interactive-neutral-weak,#707070)}._4d8957a0ca4ec8f0__hidden{visibility:hidden}.f2523033db055ffe__range-start:not(.c04a453de7b11520__range-end) ._1b64226e315835f8__day-button{&,&:before{border-end-end-radius:0;border-start-end-radius:0}}._165d91a726feca9c__range-middle ._1b64226e315835f8__day-button{&:before{background-color:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);border-color:transparent;border-radius:0;border-style:solid;border-width:1px 0}}.c04a453de7b11520__range-end:not(.f2523033db055ffe__range-start) ._1b64226e315835f8__day-button{&,&:before{border-end-start-radius:0;border-start-start-radius:0}}._81b244e7c541d95e__preview svg{color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);inset:0;pointer-events:none;position:absolute;@media (forced-colors:active){color:inherit}}._81b244e7c541d95e__preview.acb642920fb0bef5__selected:not(._165d91a726feca9c__range-middle) svg{display:none}._2c7ac60ba97b3411__root[dir=rtl] ._81b244e7c541d95e__preview svg{transform:scaleX(-1)}._81b244e7c541d95e__preview._165d91a726feca9c__range-middle ._1b64226e315835f8__day-button:before{border:none}@keyframes _255a1a462a5377db__slide-in-left{0%{transform:translateX(-100%)}to{transform:translateX(0)}}@keyframes c21e45f616d6db39__slide-in-right{0%{transform:translateX(100%)}to{transform:translateX(0)}}@keyframes aed80001de9ae226__slide-out-left{0%{transform:translateX(0)}to{transform:translateX(-100%)}}@keyframes _7d4779a7f29408f2__slide-out-right{0%{transform:translateX(0)}to{transform:translateX(100%)}}@keyframes _83ba6321b055d687__fade-in{0%{opacity:0}to{opacity:1}}@keyframes _96fbead71248d210__fade-out{0%{opacity:1}to{opacity:0}}._1563bccb09e39c30__caption-after-enter,._60ac2a7fc3208801__weeks-before-exit,._735dacf9052adecd__caption-before-exit,._7f73a6ab85101202__weeks-after-exit,._805d698b56ba4a29__weeks-after-enter,._9721326fbc23a5fb__weeks-before-enter,.c7a3082839155d29__caption-after-exit,.cb8a5ec82ad0885e__caption-before-enter{animation-duration:0s;animation-fill-mode:forwards;animation-timing-function:var(--wpds-motion-easing-balanced,cubic-bezier(.4,0,.2,1));@media not (prefers-reduced-motion){animation-duration:var(--wpds-motion-duration-lg,.3s)}}._2c7ac60ba97b3411__root[dir=rtl] ._805d698b56ba4a29__weeks-after-enter,._9721326fbc23a5fb__weeks-before-enter{animation-name:_255a1a462a5377db__slide-in-left}._2c7ac60ba97b3411__root[dir=rtl] ._7f73a6ab85101202__weeks-after-exit,._60ac2a7fc3208801__weeks-before-exit{animation-name:aed80001de9ae226__slide-out-left}._2c7ac60ba97b3411__root[dir=rtl] ._9721326fbc23a5fb__weeks-before-enter,._805d698b56ba4a29__weeks-after-enter{animation-name:c21e45f616d6db39__slide-in-right}._2c7ac60ba97b3411__root[dir=rtl] ._60ac2a7fc3208801__weeks-before-exit,._7f73a6ab85101202__weeks-after-exit{animation-name:_7d4779a7f29408f2__slide-out-right}._1563bccb09e39c30__caption-after-enter,.cb8a5ec82ad0885e__caption-before-enter{animation-name:_83ba6321b055d687__fade-in}._735dacf9052adecd__caption-before-exit,.c7a3082839155d29__caption-after-exit{animation-name:_96fbead71248d210__fade-out}}}');var Oo={root:"_2c7ac60ba97b3411__root",day:"_172c492625235710__day","day-button":"_1b64226e315835f8__day-button","caption-label":"_66b9a8120581fd4b__caption-label","nav-button":"_395a75bb1930f57e__nav-button","month-caption":"_337e5337d49b7f3d__month-caption",months:"_110e46230c68e498__months","month-grid":"_92915239fedb1fea__month-grid",nav:"_66b1d4a7b488b496__nav",weekday:"_7207199709ca5776__weekday",today:"_058175f0f9c495e0__today",selected:"acb642920fb0bef5__selected","range-middle":"_165d91a726feca9c__range-middle",outside:"c259c5c255fda10f__outside",hidden:"_4d8957a0ca4ec8f0__hidden","range-start":"f2523033db055ffe__range-start","range-end":"c04a453de7b11520__range-end",preview:"_81b244e7c541d95e__preview","weeks-before-enter":"_9721326fbc23a5fb__weeks-before-enter","weeks-before-exit":"_60ac2a7fc3208801__weeks-before-exit","weeks-after-enter":"_805d698b56ba4a29__weeks-after-enter","weeks-after-exit":"_7f73a6ab85101202__weeks-after-exit","caption-after-enter":"_1563bccb09e39c30__caption-after-enter","caption-after-exit":"c7a3082839155d29__caption-after-exit","caption-before-enter":"cb8a5ec82ad0885e__caption-before-enter","caption-before-exit":"_735dacf9052adecd__caption-before-exit","slide-in-left":"_255a1a462a5377db__slide-in-left","slide-out-left":"aed80001de9ae226__slide-out-left","slide-in-right":"c21e45f616d6db39__slide-in-right","slide-out-right":"_7d4779a7f29408f2__slide-out-right","fade-in":"_83ba6321b055d687__fade-in","fade-out":"_96fbead71248d210__fade-out"};typeof process>"u",yL("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var vqe={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",yL("96553466c8","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._64de9947bf305b7a__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.af79fb116edb0dd7__outset-ring--focus:focus,.dfcfdc28396e5d98__outset-ring--focus-visible:focus-visible,.e5cd9ee879f6403a__outset-ring--focus-within:focus-within,:focus-visible ._81935a08e952f267__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within,.abc777e9713fa711__outset-ring--focus-except-active:focus{outline:none}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.abc777e9713fa711__outset-ring--focus-except-active:focus:not(:active){--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");var _qe={"outset-ring--focus":"af79fb116edb0dd7__outset-ring--focus","outset-ring--focus-visible":"dfcfdc28396e5d98__outset-ring--focus-visible","outset-ring--focus-within":"e5cd9ee879f6403a__outset-ring--focus-within","outset-ring--focus-within-visible":"_64de9947bf305b7a__outset-ring--focus-within-visible","outset-ring--focus-parent-visible":"_81935a08e952f267__outset-ring--focus-parent-visible","outset-ring--focus-except-active":"abc777e9713fa711__outset-ring--focus-except-active","outset-ring--focus-within-except-active":"_3c9f5ee9fc9c136d__outset-ring--focus-within-except-active"};typeof process>"u",yL("af6d9984a6","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");var wqe={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a"},kqe={root:$(Oo.root,vqe["box-sizing"]),day:Oo.day,day_button:$(Oo["day-button"],wqe.button,_qe["outset-ring--focus-visible"]),outside:Oo.outside,caption_label:Oo["caption-label"],button_next:Oo["nav-button"],button_previous:Oo["nav-button"],nav:Oo.nav,month_caption:Oo["month-caption"],months:Oo.months,month_grid:Oo["month-grid"],weekday:Oo.weekday,today:Oo.today,selected:Oo.selected,disabled:void 0,hidden:Oo.hidden,range_start:Oo["range-start"],range_end:Oo["range-end"],range_middle:Oo["range-middle"],weeks_before_enter:Oo["weeks-before-enter"],weeks_before_exit:Oo["weeks-before-exit"],weeks_after_enter:Oo["weeks-after-enter"],weeks_after_exit:Oo["weeks-after-exit"],caption_after_enter:Oo["caption-after-enter"],caption_after_exit:Oo["caption-after-exit"],caption_before_enter:Oo["caption-before-enter"],caption_before_exit:Oo["caption-before-exit"]},ehe={preview:Oo.preview},vL={animate:!0,showOutsideDays:!1,showWeekNumber:!1,hideWeekdays:!1,captionLayout:"label",fixedWeeks:!1,hideNavigation:!1,classNames:kqe,components:{Day:Kge,Root:qge,PreviousMonthButton:Xge,NextMonthButton:Qge}};function _L(e){return Math.min(3,Math.max(1,e))}var wL=c(F(),1);function kL({defaultValue:e,onChange:t,value:o}){let r=typeof o<"u",n=r?o:e,[i,s]=(0,wL.useState)(n),a=r?o:i,l=(0,wL.useCallback)((d,...f)=>{s(d),t?.(d,...f)},[t]),u;return r&&typeof t=="function"?u=t:!r&&typeof t=="function"?u=l:u=s,[a,u]}var mi=c(q(),1),the=c(F(),1);function xqe(e){let t=(e.getTextInfo?.()??e.textInfo)?.direction;return t?t==="rtl":["ar","he","fa","ur","ps","syr","dv","ku","ckb","ug","yi"].includes(e.language)}function Sqe(e){if(!e)return;let t;try{t=Intl.DateTimeFormat.supportedLocalesOf([e])[0]}catch{}return t}function Cqe(e){let t=(e.getWeekInfo?.()??e.weekInfo)?.firstDay;if(!(t===void 0||t<1||t>7))return t%7}var xL=({locale:e,timeZone:t,mode:o})=>(0,the.useMemo)(()=>{let r=typeof e=="string",n=r||e===void 0?Ba:e,i=Sqe(r?e:e?.code),s=i??"en-US",a=new Intl.Locale(s),l=i!==void 0?xqe(a):(0,mi.isRTL)(),u=r||i!==void 0?Cqe(a):void 0,d=new Intl.DateTimeFormat(s,{calendar:"gregory",year:"numeric",month:"long",timeZone:t}),f=new Intl.DateTimeFormat(s,{calendar:"gregory",weekday:"narrow",timeZone:t}),p=new Intl.DateTimeFormat(s,{calendar:"gregory",weekday:"long",timeZone:t}),m=new Intl.DateTimeFormat(s,{calendar:"gregory",weekday:"long",year:"numeric",month:"long",day:"numeric",timeZone:t}),g=new Intl.DateTimeFormat(s,{calendar:"gregory",day:"numeric",timeZone:t});return{"aria-label":o==="single"?(0,mi.__)("Date calendar"):(0,mi.__)("Date range calendar"),labels:{labelNav:()=>(0,mi.__)("Navigation bar"),labelGrid:d.format,labelGridcell:(h,b)=>{let v=m.format(h),y=v;return b?.today&&(y=(0,mi.sprintf)((0,mi.__)("Today, %s"),v)),y},labelNext:()=>(0,mi.__)("Next month"),labelPrevious:()=>(0,mi.__)("Previous month"),labelDayButton:(h,b)=>{let v=m.format(h),y=v;return b?.today&&b?.selected?(0,mi.sprintf)((0,mi.__)("Today, %s, selected"),v):(b?.today&&(y=(0,mi.sprintf)((0,mi.__)("Today, %s"),v)),b?.selected&&(y=(0,mi.sprintf)((0,mi.__)("%s, selected"),v)),y)},labelWeekday:p.format},locale:n,lang:s,dir:l?"rtl":"ltr",...u===void 0?{}:{weekStartsOn:u},formatters:{formatDay:g.format,formatWeekdayName:f.format,formatCaption:d.format},timeZone:t}},[e,t,o]);var ohe=c(ue(),1),_g=c(F(),1);function SL(e,t){let o=(0,_g.useRef)(null),r=(0,_g.useRef)(!1),n=(0,ohe.useMergeRefs)([o,e]),i=t?t.getFullYear()*12+t.getMonth():void 0,s=(0,_g.useCallback)(()=>{r.current=!0},[]),a=(0,_g.useCallback)(()=>{r.current=!1},[]);return(0,_g.useEffect)(()=>{if(!r.current)return;let l=o.current;if(!l)return;let{activeElement:u,body:d}=l.ownerDocument;if(u!==d){let g=u?.closest('[role="grid"]');r.current=!!g&&l.contains(g);return}r.current=!1;let f=l.querySelector('[role="grid"] button[tabindex="0"]:not(:disabled)'),p=l.querySelector('button:not(:disabled):not([aria-disabled="true"])'),m=l.querySelector("button:not(:disabled)");(f??p??m)?.focus()},[i]),{ref:n,onDayFocus:s,onDayBlur:a}}var m$=c(T(),1),uE=(0,vy.forwardRef)(function({defaultValue:t,value:o,onValueChange:r,numberOfMonths:n=1,locale:i,timeZone:s,month:a,render:l,role:u="application","aria-label":d,labels:f,...p},m){let{"aria-label":g,...h}=xL({locale:i,timeZone:s,mode:"single"}),b=(0,vy.useMemo)(()=>f?{...h.labels,...f}:h.labels,[h.labels,f]),v=(0,vy.useCallback)((x,S,C,R)=>{r?.(x??null,S,C,R)},[r]),[y,_]=kL({defaultValue:t,value:o,onChange:v}),w=SL(m,a),k=(0,vy.useMemo)(()=>({render:l,ref:w.ref,role:u,defaultAriaLabel:g}),[l,w.ref,u,g]);return(0,m$.jsx)(ak.Provider,{value:k,children:(0,m$.jsx)(aL,{...vL,...h,...p,"aria-label":d,mode:"single",month:a,numberOfMonths:_L(n),labels:b,selected:y??void 0,onSelect:_,onDayFocus:w.onDayFocus,onDayBlur:w.onDayBlur})})});var Hc=c(F(),1);var g$=c(T(),1);function Eqe({value:e,hoveredDate:t,excludeDisabled:o,min:r,max:n,disabled:i}){return(0,Hc.useMemo)(()=>{if(!t||!e?.from)return;let s,a;return t<e.from?(s={from:t,to:e.from},a={from:t,to:e.to??e.from}):e.to&&t>e.from&&t<e.to?(s={from:e.from,to:t},a={from:e.from,to:t}):t>e.from&&(s={from:e.to??e.from,to:t},a={from:e.from,to:t}),r!==void 0&&r>0&&a&&Uf(a.to,a.from)<r&&(s={from:t,to:t}),n!==void 0&&n>0&&a&&Uf(a.to,a.from)>n&&(s={from:t,to:t}),o&&i&&a&&iL(a,i)&&(s={from:t,to:t}),s},[e,t,o,r,n,i])}var h$=(0,Hc.forwardRef)(function({defaultValue:t,value:o,onValueChange:r,numberOfMonths:n=1,excludeDisabled:i,min:s,max:a,disabled:l,locale:u,timeZone:d,month:f,render:p,role:m="application","aria-label":g,labels:h,...b},v){let{"aria-label":y,..._}=xL({locale:u,timeZone:d,mode:"range"}),w=(0,Hc.useMemo)(()=>h?{..._.labels,...h}:_.labels,[_.labels,h]),k=(0,Hc.useCallback)((P,L,H,N)=>{r?.(P??null,L,H,N)},[r]),[x,S]=kL({defaultValue:t,value:o,onChange:k}),C=SL(v,f),[R,E]=(0,Hc.useState)(void 0),I=Eqe({value:x,hoveredDate:R,excludeDisabled:i,min:s,max:a,disabled:l}),O=(0,Hc.useMemo)(()=>({preview:I,preview_start:I?.from,preview_end:I?.to}),[I]),A=(0,Hc.useMemo)(()=>({render:p,ref:C.ref,role:m,defaultAriaLabel:y}),[p,C.ref,m,y]);return(0,g$.jsx)(ak.Provider,{value:A,children:(0,g$.jsx)(aL,{...vL,..._,...b,"aria-label":g,mode:"range",month:f,numberOfMonths:_L(n),disabled:l,excludeDisabled:i,min:s,max:a,labels:w,selected:x??void 0,onSelect:S,onDayFocus:C.onDayFocus,onDayBlur:C.onDayBlur,onDayMouseEnter:P=>E(P),onDayMouseLeave:()=>E(void 0),modifiers:O,modifiersClassNames:ehe})})});var fd={};No(fd,{Content:()=>TL,FullBleed:()=>fhe,Header:()=>EL,Root:()=>CL,Title:()=>mhe});var rhe=c(F(),1),b$="data-wp-hash";function y$(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Rqe(document)),e.__wpStyleRuntime}function Tqe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${b$}]`))if(o.getAttribute(b$)===t)return!0;return!1}function nhe(e,t,o){if(!e.head)return;let r=y$(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Tqe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(b$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Rqe(e){let t=y$();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)nhe(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 ihe(e,t){let o=y$();o.styles.set(e,t);for(let r of o.documents.keys())nhe(r,e,t)}typeof process>"u",ihe("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var Bqe={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",ihe("cb866dcef6","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer 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-background-surface-neutral-strong,#fff);border:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-lg,8px);color:var(--wpds-color-foreground-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 Iqe={root:"_02872bf298eadc43__root",header:"bbccc92e6ba5662d__header",content:"_5dffdaf2a6e669ac__content",fullbleed:"c1fa192587e1b4a6__fullbleed"},CL=(0,rhe.forwardRef)(function({render:t,...o},r){let n=$(Iqe.root,Bqe["box-sizing"]);return hn({defaultTagName:"div",render:t,ref:r,props:zt({className:n},o)})});var she=c(F(),1),v$="data-wp-hash";function _$(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Oqe(document)),e.__wpStyleRuntime}function Pqe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${v$}]`))if(o.getAttribute(v$)===t)return!0;return!1}function ahe(e,t,o){if(!e.head)return;let r=_$(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Pqe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(v$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Oqe(e){let t=_$();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)ahe(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 Aqe(e,t){let o=_$();o.styles.set(e,t);for(let r of o.documents.keys())ahe(r,e,t)}typeof process>"u",Aqe("cb866dcef6","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer 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-background-surface-neutral-strong,#fff);border:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-lg,8px);color:var(--wpds-color-foreground-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 Mqe={root:"_02872bf298eadc43__root",header:"bbccc92e6ba5662d__header",content:"_5dffdaf2a6e669ac__content",fullbleed:"c1fa192587e1b4a6__fullbleed"},EL=(0,she.forwardRef)(function({render:t,...o},r){return hn({defaultTagName:"div",render:t,ref:r,props:zt({className:Mqe.header},o)})});var lhe=c(F(),1),w$="data-wp-hash";function k$(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Lqe(document)),e.__wpStyleRuntime}function Nqe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${w$}]`))if(o.getAttribute(w$)===t)return!0;return!1}function che(e,t,o){if(!e.head)return;let r=k$(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Nqe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(w$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Lqe(e){let t=k$();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)che(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 Dqe(e,t){let o=k$();o.styles.set(e,t);for(let r of o.documents.keys())che(r,e,t)}typeof process>"u",Dqe("cb866dcef6","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer 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-background-surface-neutral-strong,#fff);border:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-lg,8px);color:var(--wpds-color-foreground-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 Vqe={root:"_02872bf298eadc43__root",header:"bbccc92e6ba5662d__header",content:"_5dffdaf2a6e669ac__content",fullbleed:"c1fa192587e1b4a6__fullbleed"},TL=(0,lhe.forwardRef)(function({render:t,...o},r){return hn({defaultTagName:"div",render:t,ref:r,props:zt({className:Vqe.content},o)})});var uhe=c(F(),1),x$="data-wp-hash";function S$(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&zqe(document)),e.__wpStyleRuntime}function Fqe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${x$}]`))if(o.getAttribute(x$)===t)return!0;return!1}function dhe(e,t,o){if(!e.head)return;let r=S$(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Fqe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(x$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function zqe(e){let t=S$();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)dhe(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 jqe(e,t){let o=S$();o.styles.set(e,t);for(let r of o.documents.keys())dhe(r,e,t)}typeof process>"u",jqe("cb866dcef6","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer 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-background-surface-neutral-strong,#fff);border:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-lg,8px);color:var(--wpds-color-foreground-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 Hqe={root:"_02872bf298eadc43__root",header:"bbccc92e6ba5662d__header",content:"_5dffdaf2a6e669ac__content",fullbleed:"c1fa192587e1b4a6__fullbleed"},fhe=(0,uhe.forwardRef)(function({render:t,...o},r){return hn({defaultTagName:"div",render:t,ref:r,props:zt({className:Hqe.fullbleed},o)})});var phe=c(F(),1);var C$=c(T(),1),Uqe=(0,C$.jsx)("div",{}),mhe=(0,phe.forwardRef)(function({render:t=Uqe,children:o,...r},n){return(0,C$.jsx)(cs,{ref:n,variant:"heading-lg",render:t,...r,children:o})});var ghe=c(F(),1),hhe=c(T(),1),E$=(0,ghe.forwardRef)(function(t,o){return(0,hhe.jsx)(ug.Panel,{ref:o,...t})});var bhe=c(F(),1),yhe=c(T(),1),T$=(0,bhe.forwardRef)(function(t,o){return(0,yhe.jsx)(ug.Root,{ref:o,...t})});var vhe=c(F(),1),_he=c(T(),1),R$=(0,vhe.forwardRef)(function(t,o){return(0,_he.jsx)(ug.Trigger,{ref:o,...t})});var _y={};No(_y,{Content:()=>Ohe,Header:()=>The,HeaderDescription:()=>Bhe,Root:()=>khe});var whe=c(F(),1);var I$=c(T(),1),khe=(0,whe.forwardRef)(function({render:t,...o},r){return(0,I$.jsx)(T$,{ref:r,render:(0,I$.jsx)(CL,{render:t}),...o})});var Che=c(ue(),1),Uc=c(F(),1);var xhe=c(F(),1),RL=(0,xhe.createContext)(null);var Yf=c(T(),1),P$="data-wp-hash";function O$(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Gqe(document)),e.__wpStyleRuntime}function Wqe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${P$}]`))if(o.getAttribute(P$)===t)return!0;return!1}function Ehe(e,t,o){if(!e.head)return;let r=O$(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Wqe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(P$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Gqe(e){let t=O$();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Ehe(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 A$(e,t){let o=O$();o.styles.set(e,t);for(let r of o.documents.keys())Ehe(r,e,t)}typeof process>"u",A$("64bdb4d46e","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer 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}._92ebbaa30c8a1d05__header-description{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}.dd89d27c4f15912d__header-trigger-positioner{align-self:flex-start;flex-shrink:0;margin-block-start:calc(var(--wpds-typography-line-height-sm, 20px)/2);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-foreground-interactive-neutral-disabled,#8d8d8d)}.e34cf37ccd0d81e0__content{height:var(--collapsible-panel-height);margin-block-start:var(--wp-ui-card-header-content-margin);overflow:hidden;&._03cfdbcd710393c9__overflow-visible{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 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 lk={"heading-wrapper":"_626190151275d6d3__heading-wrapper","header-content":"cab17c7a373cb60d__header-content","header-description":"_92ebbaa30c8a1d05__header-description","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","overflow-visible":"_03cfdbcd710393c9__overflow-visible","content-inner":"_41bfdbf7b6c087c2__content-inner"};typeof process>"u",A$("af6d9984a6","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");var She={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a"};typeof process>"u",A$("96553466c8","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._64de9947bf305b7a__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.af79fb116edb0dd7__outset-ring--focus:focus,.dfcfdc28396e5d98__outset-ring--focus-visible:focus-visible,.e5cd9ee879f6403a__outset-ring--focus-within:focus-within,:focus-visible ._81935a08e952f267__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within,.abc777e9713fa711__outset-ring--focus-except-active:focus{outline:none}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.abc777e9713fa711__outset-ring--focus-except-active:focus:not(:active){--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");var $qe={"outset-ring--focus":"af79fb116edb0dd7__outset-ring--focus","outset-ring--focus-visible":"dfcfdc28396e5d98__outset-ring--focus-visible","outset-ring--focus-within":"e5cd9ee879f6403a__outset-ring--focus-within","outset-ring--focus-within-visible":"_64de9947bf305b7a__outset-ring--focus-within-visible","outset-ring--focus-parent-visible":"_81935a08e952f267__outset-ring--focus-parent-visible","outset-ring--focus-except-active":"abc777e9713fa711__outset-ring--focus-except-active","outset-ring--focus-within-except-active":"_3c9f5ee9fc9c136d__outset-ring--focus-within-except-active"},The=(0,Uc.forwardRef)(function({children:t,className:o,render:r,"aria-describedby":n,...i},s){let[a,l]=(0,Uc.useState)([]),[u,d]=(0,Uc.useState)([]),f=(0,Uc.useRef)(null),p=(0,Uc.useCallback)(h=>(l(b=>b.includes(h)?b:[...b,h]),()=>{l(b=>b.filter(v=>v!==h))}),[]),m=(0,Uc.useMemo)(()=>({registerDescriptionId:p}),[p]);(0,Che.useIsomorphicLayoutEffect)(()=>{let h=new Set(a),b=Array.from(f.current?.querySelectorAll("[id]")??[]).map(v=>v.id).filter(v=>h.has(v));d(v=>v.length===b.length&&v.every((y,_)=>y===b[_])?v:b)});let g=Array.from(new Set([...n?.split(/\s+/).filter(Boolean)??[],...u])).join(" ")||void 0;return hn({defaultTagName:"div",render:r,ref:s,props:zt(i,{className:$(She.heading,lk["heading-wrapper"],o),children:(0,Yf.jsx)(RL.Provider,{value:m,children:(0,Yf.jsxs)(R$,{className:lk.header,render:(0,Yf.jsx)(EL,{}),nativeButton:!1,"aria-describedby":g,children:[(0,Yf.jsx)("div",{ref:f,className:lk["header-content"],children:t}),(0,Yf.jsx)("div",{className:$(lk["header-trigger-positioner"]),children:(0,Yf.jsx)("div",{className:$(lk["header-trigger-wrapper"],She.div,$qe["outset-ring--focus-parent-visible"]),children:(0,Yf.jsx)(Xr,{icon:Rn,className:lk["header-trigger"]})})})]})})})})});var wg=c(F(),1);var L$=c(T(),1),M$="data-wp-hash";function N$(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Kqe(document)),e.__wpStyleRuntime}function Yqe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${M$}]`))if(o.getAttribute(M$)===t)return!0;return!1}function Rhe(e,t,o){if(!e.head)return;let r=N$(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Yqe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(M$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Kqe(e){let t=N$();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Rhe(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 qqe(e,t){let o=N$();o.styles.set(e,t);for(let r of o.documents.keys())Rhe(r,e,t)}typeof process>"u",qqe("64bdb4d46e","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer 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}._92ebbaa30c8a1d05__header-description{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}.dd89d27c4f15912d__header-trigger-positioner{align-self:flex-start;flex-shrink:0;margin-block-start:calc(var(--wpds-typography-line-height-sm, 20px)/2);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-foreground-interactive-neutral-disabled,#8d8d8d)}.e34cf37ccd0d81e0__content{height:var(--collapsible-panel-height);margin-block-start:var(--wp-ui-card-header-content-margin);overflow:hidden;&._03cfdbcd710393c9__overflow-visible{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 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 Zqe={"heading-wrapper":"_626190151275d6d3__heading-wrapper","header-content":"cab17c7a373cb60d__header-content","header-description":"_92ebbaa30c8a1d05__header-description","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","overflow-visible":"_03cfdbcd710393c9__overflow-visible","content-inner":"_41bfdbf7b6c087c2__content-inner"},Xqe=(0,L$.jsx)("div",{}),Bhe=(0,wg.forwardRef)(function({children:t,className:o,id:r,render:n=Xqe,...i},s){let a=(0,wg.useId)(),l=r??a,u=(0,wg.useContext)(RL);return(0,wg.useEffect)(()=>u?.registerDescriptionId(l),[u,l]),(0,L$.jsx)(cs,{ref:s,variant:"body-md",render:n,id:l,"aria-hidden":"true",className:$(Zqe["header-description"],o),...i,children:t})});var Ihe=c(F(),1);var F$=c(T(),1),V$="data-wp-hash";function z$(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Jqe(document)),e.__wpStyleRuntime}function Qqe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${V$}]`))if(o.getAttribute(V$)===t)return!0;return!1}function Phe(e,t,o){if(!e.head)return;let r=z$(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Qqe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(V$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Jqe(e){let t=z$();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Phe(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 eZe(e,t){let o=z$();o.styles.set(e,t);for(let r of o.documents.keys())Phe(r,e,t)}typeof process>"u",eZe("64bdb4d46e","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer 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}._92ebbaa30c8a1d05__header-description{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}.dd89d27c4f15912d__header-trigger-positioner{align-self:flex-start;flex-shrink:0;margin-block-start:calc(var(--wpds-typography-line-height-sm, 20px)/2);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-foreground-interactive-neutral-disabled,#8d8d8d)}.e34cf37ccd0d81e0__content{height:var(--collapsible-panel-height);margin-block-start:var(--wp-ui-card-header-content-margin);overflow:hidden;&._03cfdbcd710393c9__overflow-visible{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 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 D$={"heading-wrapper":"_626190151275d6d3__heading-wrapper","header-content":"cab17c7a373cb60d__header-content","header-description":"_92ebbaa30c8a1d05__header-description","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","overflow-visible":"_03cfdbcd710393c9__overflow-visible","content-inner":"_41bfdbf7b6c087c2__content-inner"},Ohe=(0,Ihe.forwardRef)(function({className:t,render:o,children:r,hiddenUntilFound:n=!0,...i},s){return(0,F$.jsx)(E$,{ref:s,className:a=>$(D$.content,a.open&&a.transitionStatus==="idle"&&D$["overflow-visible"],t),hiddenUntilFound:n,...i,children:(0,F$.jsx)(TL,{className:D$["content-inner"],render:o,children:r})})});var Ahe=c(F(),1),j$="data-wp-hash";function H$(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&oZe(document)),e.__wpStyleRuntime}function tZe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${j$}]`))if(o.getAttribute(j$)===t)return!0;return!1}function Mhe(e,t,o){if(!e.head)return;let r=H$(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(tZe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(j$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function oZe(e){let t=H$();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Mhe(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 rZe(e,t){let o=H$();o.styles.set(e,t);for(let r of o.documents.keys())Mhe(r,e,t)}typeof process>"u",rZe("32aba35fe1","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._19ce0419607e1896__stack{display:flex}}}");var nZe={stack:"_19ce0419607e1896__stack"},iZe={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)"},Ke=(0,Ahe.forwardRef)(function({direction:t,gap:o,align:r,justify:n,wrap:i,render:s,...a},l){let u={gap:o&&iZe[o],alignItems:r,justifyContent:n,flexDirection:t,flexWrap:i};return hn({render:s,ref:l,props:zt(a,{style:u,className:nZe.stack})})});var kg=c(F(),1);function Nhe(e){let t=(0,kg.useRef)(e);t.current=e;let o=(0,kg.useRef)(null),r=(0,kg.useRef)(!1),n=(0,kg.useCallback)(()=>{r.current||(o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{t.current(),o.current=null},0))},[]);return(0,kg.useEffect)(()=>(r.current=!1,()=>{r.current=!0,o.current&&clearTimeout(o.current)}),[]),n}var Hhe=c(F(),1);var dE=c(F(),1),fE=c(T(),1),U$="data-wp-hash";function W$(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&aZe(document)),e.__wpStyleRuntime}function sZe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${U$}]`))if(o.getAttribute(U$)===t)return!0;return!1}function Lhe(e,t,o){if(!e.head)return;let r=W$(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(sZe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(U$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function aZe(e){let t=W$();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Lhe(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 G$(e,t){let o=W$();o.styles.set(e,t);for(let r of o.documents.keys())Lhe(r,e,t)}typeof process>"u",G$("af6d9984a6","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");var lZe={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a"};typeof process>"u",G$("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var cZe={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",G$("4767ce195b",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.cb2baafdc08746bb__input-layout{--wp-ui-input-layout-padding-inline:var(--wpds-dimension-padding-md,12px);background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);border-radius:var(--wpds-border-radius-sm,2px);border-style:solid;border-width:var(--wpds-border-width-xs,1px);color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:flex;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:max(var(--wpds-typography-font-size-md,13px),16px);height:var(--wpds-dimension-size-lg,40px);line-height:1;@media (min-width:600px){font-size:var(--wpds-typography-font-size-md,13px)}&._0c807a84cbb94e0c__is-size-compact{height:var(--wpds-dimension-size-md,32px)}&._0c807a84cbb94e0c__is-size-compact,&.ed67cda122dc1e7b__is-size-small{--wp-ui-input-layout-padding-inline:var(--wpds-dimension-padding-sm,8px)}&.ed67cda122dc1e7b__is-size-small{height:var(--wpds-dimension-size-sm,24px)}&._6fb7104732387680__is-disabled,&:has([data-can-disable-input-layout][data-disabled]){background-color:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);border-color:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){border-bottom-color:GrayText;border-left-color:GrayText;border-right-color:GrayText;border-top-color:GrayText;color:GrayText}}&._8097270636ca6100__is-borderless{border-color:transparent}&:has(._0d7afad74a057888__input-layout-slot:focus-within){outline:none}&:hover:not(._6fb7104732387680__is-disabled,:has([data-can-disable-input-layout][data-disabled]),._8097270636ca6100__is-borderless){border-color:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e)}&:has(:invalid[data-validity-visible]){--focus-color:var(--wpds-color-stroke-interactive-error,#cc1818);border-color:var(--wpds-color-stroke-interactive-error,#cc1818);&:hover{border-color:var(--wpds-color-stroke-interactive-error-active,#9d0000)}}}.c192b41a12b4387b__slot-wrapper{display:contents}._0d7afad74a057888__input-layout-slot{align-items:center;display:flex;&._0c952682762ca288__is-padding-minimal{--wp-ui-input-layout-prefix-padding-start:calc(var(--wp-ui-input-layout-padding-inline) - var(--wpds-dimension-padding-xs, 4px));--wp-ui-input-layout-suffix-padding-end:calc(var(--wp-ui-input-layout-padding-inline) - var(--wpds-dimension-padding-xs, 4px))}[data-slot-type=prefix] &{padding-inline-start:var(--wp-ui-input-layout-prefix-padding-start,var(--wp-ui-input-layout-padding-inline))}[data-slot-type=suffix] &{padding-inline-end:var(--wp-ui-input-layout-suffix-padding-end,var(--wp-ui-input-layout-padding-inline))}}}}');var ck={"input-layout":"cb2baafdc08746bb__input-layout","is-size-compact":"_0c807a84cbb94e0c__is-size-compact","is-size-small":"ed67cda122dc1e7b__is-size-small","is-disabled":"_6fb7104732387680__is-disabled","is-borderless":"_8097270636ca6100__is-borderless","input-layout-slot":"_0d7afad74a057888__input-layout-slot","slot-wrapper":"c192b41a12b4387b__slot-wrapper","is-padding-minimal":"_0c952682762ca288__is-padding-minimal"},Dhe=(0,dE.forwardRef)(function({className:t,children:o,visuallyDisabled:r,size:n="default",isBorderless:i,prefix:s,suffix:a,...l},u){return(0,fE.jsxs)("div",{ref:u,className:$(lZe.div,cZe["box-sizing"],ck["input-layout"],ck[`is-size-${n}`],r&&ck["is-disabled"],i&&ck["is-borderless"],t),...l,children:[dE.Children.count(s)>0&&(0,fE.jsx)("div",{className:ck["slot-wrapper"],"data-slot-type":"prefix",children:s}),o,dE.Children.count(a)>0&&(0,fE.jsx)("div",{className:ck["slot-wrapper"],"data-slot-type":"suffix",children:a})]})});var Fhe=c(F(),1),jhe=c(T(),1),$$="data-wp-hash";function Y$(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&dZe(document)),e.__wpStyleRuntime}function uZe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${$$}]`))if(o.getAttribute($$)===t)return!0;return!1}function zhe(e,t,o){if(!e.head)return;let r=Y$(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(uZe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute($$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function dZe(e){let t=Y$();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)zhe(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 fZe(e,t){let o=Y$();o.styles.set(e,t);for(let r of o.documents.keys())zhe(r,e,t)}typeof process>"u",fZe("4767ce195b",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.cb2baafdc08746bb__input-layout{--wp-ui-input-layout-padding-inline:var(--wpds-dimension-padding-md,12px);background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);border-radius:var(--wpds-border-radius-sm,2px);border-style:solid;border-width:var(--wpds-border-width-xs,1px);color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:flex;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:max(var(--wpds-typography-font-size-md,13px),16px);height:var(--wpds-dimension-size-lg,40px);line-height:1;@media (min-width:600px){font-size:var(--wpds-typography-font-size-md,13px)}&._0c807a84cbb94e0c__is-size-compact{height:var(--wpds-dimension-size-md,32px)}&._0c807a84cbb94e0c__is-size-compact,&.ed67cda122dc1e7b__is-size-small{--wp-ui-input-layout-padding-inline:var(--wpds-dimension-padding-sm,8px)}&.ed67cda122dc1e7b__is-size-small{height:var(--wpds-dimension-size-sm,24px)}&._6fb7104732387680__is-disabled,&:has([data-can-disable-input-layout][data-disabled]){background-color:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);border-color:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){border-bottom-color:GrayText;border-left-color:GrayText;border-right-color:GrayText;border-top-color:GrayText;color:GrayText}}&._8097270636ca6100__is-borderless{border-color:transparent}&:has(._0d7afad74a057888__input-layout-slot:focus-within){outline:none}&:hover:not(._6fb7104732387680__is-disabled,:has([data-can-disable-input-layout][data-disabled]),._8097270636ca6100__is-borderless){border-color:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e)}&:has(:invalid[data-validity-visible]){--focus-color:var(--wpds-color-stroke-interactive-error,#cc1818);border-color:var(--wpds-color-stroke-interactive-error,#cc1818);&:hover{border-color:var(--wpds-color-stroke-interactive-error-active,#9d0000)}}}.c192b41a12b4387b__slot-wrapper{display:contents}._0d7afad74a057888__input-layout-slot{align-items:center;display:flex;&._0c952682762ca288__is-padding-minimal{--wp-ui-input-layout-prefix-padding-start:calc(var(--wp-ui-input-layout-padding-inline) - var(--wpds-dimension-padding-xs, 4px));--wp-ui-input-layout-suffix-padding-end:calc(var(--wp-ui-input-layout-padding-inline) - var(--wpds-dimension-padding-xs, 4px))}[data-slot-type=prefix] &{padding-inline-start:var(--wp-ui-input-layout-prefix-padding-start,var(--wp-ui-input-layout-padding-inline))}[data-slot-type=suffix] &{padding-inline-end:var(--wp-ui-input-layout-suffix-padding-end,var(--wp-ui-input-layout-padding-inline))}}}}');var Vhe={"input-layout":"cb2baafdc08746bb__input-layout","is-size-compact":"_0c807a84cbb94e0c__is-size-compact","is-size-small":"ed67cda122dc1e7b__is-size-small","is-disabled":"_6fb7104732387680__is-disabled","is-borderless":"_8097270636ca6100__is-borderless","input-layout-slot":"_0d7afad74a057888__input-layout-slot","slot-wrapper":"c192b41a12b4387b__slot-wrapper","is-padding-minimal":"_0c952682762ca288__is-padding-minimal"},K$=(0,Fhe.forwardRef)(function({padding:t="default",className:o,...r},n){return(0,jhe.jsx)("div",{ref:n,className:$(Vhe["input-layout-slot"],Vhe[`is-padding-${t}`],o),...r})});K$.displayName="InputLayout.Slot";var fs=Object.assign(Dhe,{Slot:K$});var Z$=c(T(),1),q$="data-wp-hash";function X$(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&mZe(document)),e.__wpStyleRuntime}function pZe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${q$}]`))if(o.getAttribute(q$)===t)return!0;return!1}function Uhe(e,t,o){if(!e.head)return;let r=X$(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(pZe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(q$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function mZe(e){let t=X$();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Uhe(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 Q$(e,t){let o=X$();o.styles.set(e,t);for(let r of o.documents.keys())Uhe(r,e,t)}typeof process>"u",Q$("af6d9984a6","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");var gZe={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a"};typeof process>"u",Q$("96553466c8","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._64de9947bf305b7a__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.af79fb116edb0dd7__outset-ring--focus:focus,.dfcfdc28396e5d98__outset-ring--focus-visible:focus-visible,.e5cd9ee879f6403a__outset-ring--focus-within:focus-within,:focus-visible ._81935a08e952f267__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within,.abc777e9713fa711__outset-ring--focus-except-active:focus{outline:none}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.abc777e9713fa711__outset-ring--focus-except-active:focus:not(:active){--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");var hZe={"outset-ring--focus":"af79fb116edb0dd7__outset-ring--focus","outset-ring--focus-visible":"dfcfdc28396e5d98__outset-ring--focus-visible","outset-ring--focus-within":"e5cd9ee879f6403a__outset-ring--focus-within","outset-ring--focus-within-visible":"_64de9947bf305b7a__outset-ring--focus-within-visible","outset-ring--focus-parent-visible":"_81935a08e952f267__outset-ring--focus-parent-visible","outset-ring--focus-except-active":"abc777e9713fa711__outset-ring--focus-except-active","outset-ring--focus-within-except-active":"_3c9f5ee9fc9c136d__outset-ring--focus-within-except-active"};typeof process>"u",Q$("41fce05ee0","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._2ae7be2fc1bb17a3__input{--_gcd-input-padding:var(--wp-ui-input-padding-block,0px) var(--wp-ui-input-layout-padding-inline,0px);background:transparent;border:none;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);font-family:inherit;font-size:inherit;line-height:inherit;outline:none;padding-block:var(--wp-ui-input-padding-block,0);padding-inline:var(--wp-ui-input-layout-padding-inline,0);width:100%;&::placeholder{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}&:disabled,&[aria-disabled=true]{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}&[type=email],&[type=url]{direction:ltr}&[type=number]{appearance:textfield;&::-webkit-inner-spin-button,&::-webkit-outer-spin-button{appearance:none;margin:0}}}}}");var bZe={input:"_2ae7be2fc1bb17a3__input"},uk=(0,Hhe.forwardRef)(function({className:t,size:o="default",prefix:r,suffix:n,style:i,...s},a){return(0,Z$.jsx)(fs,{className:$(hZe["outset-ring--focus-within"],t),style:i,size:o,visuallyDisabled:s.disabled,prefix:r,suffix:n,children:(0,Z$.jsx)(eG,{ref:a,className:$(gZe.input,bZe.input),...s})})});var Whe={align:"start",sideOffset:8,collisionPadding:12};var iY=c(q(),1),On=c(F(),1);var Ghe=c(F(),1),pE=c(T(),1),eY="data-wp-hash";function tY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&vZe(document)),e.__wpStyleRuntime}function yZe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${eY}]`))if(o.getAttribute(eY)===t)return!0;return!1}function $he(e,t,o){if(!e.head)return;let r=tY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(yZe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(eY,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function vZe(e){let t=tY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)$he(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 _Ze(e,t){let o=tY();o.styles.set(e,t);for(let r of o.documents.keys())$he(r,e,t)}typeof process>"u",_Ze("bbbecfe373","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.ab4d64c07c0ba587__spinner{background-color:transparent;display:inline-block;height:var(--wpds-dimension-size-2xs,16px);opacity:1;overflow:visible;position:relative;width:var(--wpds-dimension-size-2xs,16px)}.a7654e10245bb7d2__indicator,.dc51f80c84b35fe2__track{fill:transparent;stroke-width:1.5px}.dc51f80c84b35fe2__track{stroke:var(--wpds-color-background-track-neutral,#dbdbdb)}.a7654e10245bb7d2__indicator{stroke:var(--wpds-color-background-thumb-brand,var(--wp-admin-theme-color,#3858e9));stroke-linecap:round;animation:_02322d973909703c__spinner-spin 1.4s linear infinite both;transform-origin:50% 50%}@keyframes _02322d973909703c__spinner-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}}}");var J$={spinner:"ab4d64c07c0ba587__spinner",track:"dc51f80c84b35fe2__track",indicator:"a7654e10245bb7d2__indicator","spinner-spin":"_02322d973909703c__spinner-spin"},oY=(0,Ghe.forwardRef)(function({className:t,...o},r){return(0,pE.jsxs)("svg",{className:$(J$.spinner,t),viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",role:"presentation",focusable:"false",...o,ref:r,children:[(0,pE.jsx)("circle",{className:J$.track,cx:"50",cy:"50",r:"50",vectorEffect:"non-scaling-stroke"}),(0,pE.jsx)("path",{className:J$.indicator,d:"m 50 0 a 50 50 0 0 1 50 50",vectorEffect:"non-scaling-stroke"})]})});var mE=c(T(),1),rY="data-wp-hash";function nY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&kZe(document)),e.__wpStyleRuntime}function wZe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${rY}]`))if(o.getAttribute(rY)===t)return!0;return!1}function Yhe(e,t,o){if(!e.head)return;let r=nY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(wZe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(rY,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function kZe(e){let t=nY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Yhe(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 Khe(e,t){let o=nY();o.styles.set(e,t);for(let r of o.documents.keys())Yhe(r,e,t)}typeof process>"u",Khe("af6d9984a6","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");var xZe={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a"};typeof process>"u",Khe("d7b0469ef4",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._7a7ac88e306348e7__indicator{--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);--_gcd-p-margin:var(--wpds-dimension-gap-sm,8px) 0 0;align-items:flex-start;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;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);gap:var(--wpds-dimension-gap-xs,4px);line-height:var(--wpds-typography-line-height-xs,16px);margin-block:var(--wpds-dimension-gap-sm,8px) 0;margin-inline:0;@media not (prefers-reduced-motion){animation:_48722cc5dd090ce4__indicator-jump var(--wpds-motion-duration-md,.2s) cubic-bezier(.68,-.55,.27,1.55)}}._57a3bbbfbe38a5c6__is-invalid{color:var(--wpds-color-foreground-content-error-weak,#cc1818)}._9e944dc198aac10b__is-valid{color:var(--wpds-color-foreground-content-success-weak,#008030)}.e482806667437c6a__indicator-icon{flex-shrink:0}._6e46434cc23019d2__indicator-spinner{height:var(--wpds-dimension-size-3xs,12px);margin:2px;width:var(--wpds-dimension-size-3xs,12px)}@keyframes _48722cc5dd090ce4__indicator-jump{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}}}');var BL={indicator:"_7a7ac88e306348e7__indicator","indicator-jump":"_48722cc5dd090ce4__indicator-jump","is-invalid":"_57a3bbbfbe38a5c6__is-invalid","is-valid":"_9e944dc198aac10b__is-valid","indicator-icon":"e482806667437c6a__indicator-icon","indicator-spinner":"_6e46434cc23019d2__indicator-spinner"},SZe={valid:x9,invalid:z0};function wy({id:e,type:t,message:o}){return(0,mE.jsxs)("p",{id:e,className:$(xZe.p,BL.indicator,BL[`is-${t}`]),children:[t==="validating"?(0,mE.jsx)(oY,{className:BL["indicator-spinner"]}):(0,mE.jsx)(Xr,{className:BL["indicator-icon"],icon:SZe[t],size:16,fill:"currentColor"}),o]})}var Kf=c(T(),1);function CZe(e,t,o){let r;return t&&!o?r=`(${(0,iY.__)("Required")})`:!t&&o&&(r=`(${(0,iY.__)("Optional")})`),r?typeof e=="string"?`${e} ${r}`:(0,Kf.jsxs)(Kf.Fragment,{children:[e," ",r]}):e}var qhe="data-validity-visible",Lr=(0,On.forwardRef)(function({required:t,markWhenOptional:o,customValidity:r,getValidityTarget:n,children:i,render:s,...a},l){let[u,d]=(0,On.useState)(),[f,p]=(0,On.useState)(),[m,g]=(0,On.useState)(!1),[h,b]=(0,On.useState)(!1),v=(0,On.useRef)(null);(0,On.useEffect)(()=>{let x=n(),S=()=>{r?.type!=="validating"&&d(x?.validationMessage),g(!0),x?.setAttribute(qhe,"")};return x?.addEventListener("invalid",S),()=>x?.removeEventListener("invalid",S)},[r?.type,n]),(0,On.useEffect)(()=>{let x=n(),S=R=>{if(R.preventDefault(),!R.isTrusted)return;let E=R.target,I=Array.from(E.form?.elements??[]).find(O=>!O.validity.valid);(!E.form||I===E)&&E.focus()},C=x?.type==="radio"&&x?.name?Array.from(v.current?.querySelectorAll(`input[type="radio"][name="${x?.name}"]`)??[]).filter(R=>R!==x):[];return x?.addEventListener("invalid",S),C.forEach(R=>R.addEventListener("invalid",S)),()=>{x?.removeEventListener("invalid",S),C.forEach(R=>R.removeEventListener("invalid",S))}},[n]),(0,On.useEffect)(()=>{let x=n();if(!r?.type){x?.setCustomValidity(""),d(x?.validationMessage),p(void 0);return}switch(r.type){case"validating":{x?.setCustomValidity(""),d(void 0),p({type:"validating",message:r.message});break}case"valid":{x?.setCustomValidity(""),d(x?.validationMessage),p({type:"valid",message:r.message});break}case"invalid":{x?.setCustomValidity(r.message??""),d(x?.validationMessage),p(void 0);break}}},[r,n]),(0,On.useEffect)(()=>{if(!(!h||m)){if(r?.type==="validating"){let x=setTimeout(()=>{g(!0)},1e3);return()=>clearTimeout(x)}g(!0)}},[h,r?.type,m]);let y=x=>{h||(!x.relatedTarget||!x.currentTarget.contains(x.relatedTarget))&&(b(!0),n()?.setAttribute(qhe,""))},_=(0,On.useId)(),w=u?(0,Kf.jsx)(wy,{id:_,type:"invalid",message:u}):f?.type?(0,Kf.jsx)(wy,{id:_,type:f.type,message:f.message}):null,k=m?w:null;return(0,On.useEffect)(()=>{let x=n();if(!x)return;function S(C,R){let E=(C.getAttribute("aria-describedby")??"").split(" ").filter(I=>I&&I!==_);R&&E.push(_),E.length?C.setAttribute("aria-describedby",E.join(" ")):C.removeAttribute("aria-describedby")}return S(x,!!k),()=>S(x,!1)},[k,_,n]),hn({render:s,defaultTagName:"div",ref:[l,v],props:zt(a,{onBlur:y,children:(0,Kf.jsxs)(Kf.Fragment,{children:[(0,On.cloneElement)(i,{label:CZe(i.props.label,t,o),required:t}),k]})})})});var gi={};No(gi,{Control:()=>bbe,Description:()=>ube,Details:()=>mbe,Item:()=>tbe,Label:()=>ibe,Root:()=>Qhe});var Zhe=c(F(),1);var lY=c(T(),1),sY="data-wp-hash";function aY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&TZe(document)),e.__wpStyleRuntime}function EZe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${sY}]`))if(o.getAttribute(sY)===t)return!0;return!1}function Xhe(e,t,o){if(!e.head)return;let r=aY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(EZe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(sY,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function TZe(e){let t=aY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Xhe(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 RZe(e,t){let o=aY();o.styles.set(e,t);for(let r of o.documents.keys())Xhe(r,e,t)}typeof process>"u",RZe("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var BZe={"box-sizing":"_336cd3e4e743482f__box-sizing"},IZe=e=>(0,lY.jsx)(Ke,{...e,direction:"column",gap:"sm"}),Qhe=(0,Zhe.forwardRef)(function({className:t,render:o=IZe,...r},n){return(0,lY.jsx)(Vi.Root,{ref:n,className:$(BZe["box-sizing"],t),render:o,...r})});var Jhe=c(F(),1),ebe=c(T(),1),tbe=(0,Jhe.forwardRef)(function(t,o){return(0,ebe.jsx)(Vi.Item,{ref:o,...t})});var rbe=c(F(),1);var uY=c(T(),1),cY="data-wp-hash";function dY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&OZe(document)),e.__wpStyleRuntime}function PZe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${cY}]`))if(o.getAttribute(cY)===t)return!0;return!1}function nbe(e,t,o){if(!e.head)return;let r=dY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(PZe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(cY,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function OZe(e){let t=dY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)nbe(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 AZe(e,t){let o=dY();o.styles.set(e,t);for(let r of o.documents.keys())nbe(r,e,t)}typeof process>"u",AZe("e08ffbfdae",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._2d5ad850b2f90964__label{--wp-ui-field-label-line-height:var(--wpds-typography-line-height-xs,16px);color:var(--wpds-color-foreground-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-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wp-ui-field-label-line-height);text-transform:uppercase;&._17c4214649230bea__is-plain{font-size:var(--wpds-typography-font-size-md,13px);text-transform:none}}._08a3750500e0233f__description{--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);--_gcd-p-margin:0;text-wrap:pretty;color:var(--wpds-color-foreground-content-neutral-weak,#707070);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:var(--wpds-typography-line-height-xs,16px)}}}');var obe={label:"_2d5ad850b2f90964__label","is-plain":"_17c4214649230bea__is-plain",description:"_08a3750500e0233f__description"},ibe=(0,rbe.forwardRef)(function({className:t,hideFromVision:o,variant:r,...n},i){let s=(0,uY.jsx)(Vi.Label,{ref:i,className:$(obe.label,r&&obe[`is-${r}`],t),...n});return o?(0,uY.jsx)(bt,{render:s}):s});var sbe=c(F(),1),cbe=c(T(),1),fY="data-wp-hash";function pY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&NZe(document)),e.__wpStyleRuntime}function MZe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${fY}]`))if(o.getAttribute(fY)===t)return!0;return!1}function abe(e,t,o){if(!e.head)return;let r=pY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(MZe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(fY,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function NZe(e){let t=pY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)abe(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 lbe(e,t){let o=pY();o.styles.set(e,t);for(let r of o.documents.keys())abe(r,e,t)}typeof process>"u",lbe("af6d9984a6","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");var LZe={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a"};typeof process>"u",lbe("e08ffbfdae",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._2d5ad850b2f90964__label{--wp-ui-field-label-line-height:var(--wpds-typography-line-height-xs,16px);color:var(--wpds-color-foreground-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-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wp-ui-field-label-line-height);text-transform:uppercase;&._17c4214649230bea__is-plain{font-size:var(--wpds-typography-font-size-md,13px);text-transform:none}}._08a3750500e0233f__description{--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);--_gcd-p-margin:0;text-wrap:pretty;color:var(--wpds-color-foreground-content-neutral-weak,#707070);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:var(--wpds-typography-line-height-xs,16px)}}}');var DZe={label:"_2d5ad850b2f90964__label","is-plain":"_17c4214649230bea__is-plain",description:"_08a3750500e0233f__description"},ube=(0,sbe.forwardRef)(function({className:t,...o},r){return(0,cbe.jsx)(Vi.Description,{ref:r,className:$(LZe.p,DZe.description,t),...o})});var dbe=c(F(),1),fbe=c(q(),1);var xg=c(T(),1),mY="data-wp-hash";function gY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&FZe(document)),e.__wpStyleRuntime}function VZe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${mY}]`))if(o.getAttribute(mY)===t)return!0;return!1}function pbe(e,t,o){if(!e.head)return;let r=gY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(VZe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(mY,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function FZe(e){let t=gY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)pbe(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 zZe(e,t){let o=gY();o.styles.set(e,t);for(let r of o.documents.keys())pbe(r,e,t)}typeof process>"u",zZe("e08ffbfdae",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._2d5ad850b2f90964__label{--wp-ui-field-label-line-height:var(--wpds-typography-line-height-xs,16px);color:var(--wpds-color-foreground-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-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wp-ui-field-label-line-height);text-transform:uppercase;&._17c4214649230bea__is-plain{font-size:var(--wpds-typography-font-size-md,13px);text-transform:none}}._08a3750500e0233f__description{--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);--_gcd-p-margin:0;text-wrap:pretty;color:var(--wpds-color-foreground-content-neutral-weak,#707070);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:var(--wpds-typography-line-height-xs,16px)}}}');var jZe={label:"_2d5ad850b2f90964__label","is-plain":"_17c4214649230bea__is-plain",description:"_08a3750500e0233f__description"},mbe=(0,dbe.forwardRef)(function({className:t,...o},r){return(0,xg.jsxs)(xg.Fragment,{children:[(0,xg.jsx)(bt,{render:(0,xg.jsx)(Vi.Description,{}),children:(0,fbe.__)("More details follow the field.")}),(0,xg.jsx)("div",{ref:r,className:$(jZe.description,t),...o})]})});var gbe=c(F(),1),hbe=c(T(),1),bbe=(0,gbe.forwardRef)(function(t,o){return(0,hbe.jsx)(Vi.Control,{ref:o,...t})});var Sg={};No(Sg,{Group:()=>gE,GroupLabel:()=>hE,Item:()=>Ebe,Popup:()=>Nbe,Portal:()=>PL,Positioner:()=>OL,Root:()=>Lbe,Trigger:()=>jbe});var ybe=c(F(),1),_be=c(T(),1),hY="data-wp-hash";function bY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&UZe(document)),e.__wpStyleRuntime}function HZe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${hY}]`))if(o.getAttribute(hY)===t)return!0;return!1}function vbe(e,t,o){if(!e.head)return;let r=bY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(HZe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(hY,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function UZe(e){let t=bY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)vbe(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 WZe(e,t){let o=bY();o.styles.set(e,t);for(let r of o.documents.keys())vbe(r,e,t)}typeof process>"u",WZe("0e090e3995",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._380b81b8f79fb10f__dropdown-motion,._7f344b94e270e039__dropdown-motion--fade-only{--wp-ui-dropdown-slide-distance:4px;--wp-ui-dropdown-slide-duration:var(--wpds-motion-duration-md,200ms);--wp-ui-dropdown-slide-easing:var(--wpds-motion-easing-expressive,cubic-bezier(0.25,0,0,1));--wp-ui-dropdown-fade-duration:var(--wpds-motion-duration-sm,100ms);--wp-ui-dropdown-fade-easing:linear;@media not (prefers-reduced-motion){transition-duration:var(--wp-ui-dropdown-slide-duration),var(--wp-ui-dropdown-fade-duration);transition-property:transform,opacity;transition-timing-function:var(--wp-ui-dropdown-slide-easing),var(--wp-ui-dropdown-fade-easing);will-change:transform,opacity}opacity:1;&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}}._380b81b8f79fb10f__dropdown-motion{transform:translate(0);&[data-side=bottom][data-ending-style],&[data-side=bottom][data-starting-style]{transform:translateY(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=top][data-ending-style],&[data-side=top][data-starting-style]{transform:translateY(var(--wp-ui-dropdown-slide-distance))}&[data-side=left][data-ending-style],&[data-side=left][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=right][data-ending-style],&[data-side=right][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=inline-start][data-ending-style],&[data-side=inline-start][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=inline-end][data-ending-style],&[data-side=inline-end][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-start][data-ending-style],&:dir(rtl)[data-side=inline-start][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-end][data-ending-style],&:dir(rtl)[data-side=inline-end][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._234b520016b4e56f__popup{--wp-ui-popup-padding:var(--wpds-dimension-padding-xs,4px);--_wp-ui-elevation-md:0 2px 3px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.04),0 12px 12px rgba(0,0,0,.03),0 16px 16px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-md);display:grid;grid-template-areas:"header" "main";grid-template-rows:auto minmax(0,1fr);max-height:min(var(--available-height),480px,60dvh);max-width:var(--available-width);min-width:var(--anchor-width)}.f43dc7c768d7b622__list{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:grid;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);grid-area:main;grid-template-areas:"scrollable" "footer";grid-template-rows:minmax(0,1fr) auto;line-height:var(--wpds-typography-line-height-sm,20px)}._233cd60cdb84a2ef__list-scrollable-container{grid-area:scrollable;overflow-block:auto;overscroll-behavior:contain;scroll-padding-block:var(--wp-ui-popup-padding);&:not(:empty){padding-block:var(--wp-ui-popup-padding)}}.ec4db6f0122263e7__list-footer{grid-area:footer;padding-block:var(--wp-ui-popup-padding);._233cd60cdb84a2ef__list-scrollable-container:not(:empty)+&{border-block-start:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}}.b3c0d7f103fb10a2__group:not(:first-child){margin-block-start:var(--wpds-dimension-gap-sm,8px)}._21b59380477c306c__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;min-height:var(--wpds-dimension-size-md,32px);padding-inline:var(--wpds-dimension-padding-md,12px)}._684ccb7988365b4f__item{--wp-ui-popup-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-popup-item-padding-block:var(--wpds-dimension-padding-xs,4px);align-items:center;border-radius:var(--wpds-border-radius-sm,2px);display:flex;gap:var(--wpds-dimension-gap-xs,4px);justify-content:flex-start;margin-inline:var(--wp-ui-popup-padding);min-height:var(--wp-ui-popup-item-height);padding-block:var(--wp-ui-popup-item-padding-block);padding-inline-end:var(--wp-ui-popup-item-padding-inline);padding-inline-start:calc(var(--wp-ui-popup-item-padding-inline) - var(--wpds-dimension-padding-xs, 4px));user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&._38f7faff93c61958__is-size-small{--wp-ui-popup-item-height:var(--wpds-dimension-size-sm,24px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-popup-item-padding-block:2px}&:not([data-selected]){._92fbe4765dfad5ee__item-indicator-icon{opacity:0}}&[data-highlighted]:not([aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:none;@media (forced-colors:active){outline:1px solid Highlight}}&[aria-disabled=true]{background-color:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}}.a3adcfd0b73ffd40__item-icon{flex-shrink:0}._06c7ff39d2f685b9__empty:not(:empty){--wp-ui-popup-empty-min-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-empty-padding-inline:var(--wpds-dimension-padding-md,12px);align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);grid-area:main;line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wp-ui-popup-empty-min-height);padding-inline:var(--wp-ui-popup-empty-padding-inline)}}}');var GZe={popup:"_234b520016b4e56f__popup _380b81b8f79fb10f__dropdown-motion",list:"f43dc7c768d7b622__list","list-scrollable-container":"_233cd60cdb84a2ef__list-scrollable-container","list-footer":"ec4db6f0122263e7__list-footer",group:"b3c0d7f103fb10a2__group","group-label":"_21b59380477c306c__group-label",item:"_684ccb7988365b4f__item","is-size-small":"_38f7faff93c61958__is-size-small","item-indicator-icon":"_92fbe4765dfad5ee__item-indicator-icon","item-icon":"a3adcfd0b73ffd40__item-icon",empty:"_06c7ff39d2f685b9__empty"},gE=(0,ybe.forwardRef)(function({className:t,children:o,...r},n){return(0,_be.jsx)(qr.Group,{className:$(GZe.group,t),ref:n,...r,children:o})});var wbe=c(F(),1);var vY=c(T(),1),yY="data-wp-hash";function _Y(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&YZe(document)),e.__wpStyleRuntime}function $Ze(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${yY}]`))if(o.getAttribute(yY)===t)return!0;return!1}function kbe(e,t,o){if(!e.head)return;let r=_Y(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if($Ze(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(yY,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function YZe(e){let t=_Y();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)kbe(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 KZe(e,t){let o=_Y();o.styles.set(e,t);for(let r of o.documents.keys())kbe(r,e,t)}typeof process>"u",KZe("0e090e3995",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._380b81b8f79fb10f__dropdown-motion,._7f344b94e270e039__dropdown-motion--fade-only{--wp-ui-dropdown-slide-distance:4px;--wp-ui-dropdown-slide-duration:var(--wpds-motion-duration-md,200ms);--wp-ui-dropdown-slide-easing:var(--wpds-motion-easing-expressive,cubic-bezier(0.25,0,0,1));--wp-ui-dropdown-fade-duration:var(--wpds-motion-duration-sm,100ms);--wp-ui-dropdown-fade-easing:linear;@media not (prefers-reduced-motion){transition-duration:var(--wp-ui-dropdown-slide-duration),var(--wp-ui-dropdown-fade-duration);transition-property:transform,opacity;transition-timing-function:var(--wp-ui-dropdown-slide-easing),var(--wp-ui-dropdown-fade-easing);will-change:transform,opacity}opacity:1;&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}}._380b81b8f79fb10f__dropdown-motion{transform:translate(0);&[data-side=bottom][data-ending-style],&[data-side=bottom][data-starting-style]{transform:translateY(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=top][data-ending-style],&[data-side=top][data-starting-style]{transform:translateY(var(--wp-ui-dropdown-slide-distance))}&[data-side=left][data-ending-style],&[data-side=left][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=right][data-ending-style],&[data-side=right][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=inline-start][data-ending-style],&[data-side=inline-start][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=inline-end][data-ending-style],&[data-side=inline-end][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-start][data-ending-style],&:dir(rtl)[data-side=inline-start][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-end][data-ending-style],&:dir(rtl)[data-side=inline-end][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._234b520016b4e56f__popup{--wp-ui-popup-padding:var(--wpds-dimension-padding-xs,4px);--_wp-ui-elevation-md:0 2px 3px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.04),0 12px 12px rgba(0,0,0,.03),0 16px 16px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-md);display:grid;grid-template-areas:"header" "main";grid-template-rows:auto minmax(0,1fr);max-height:min(var(--available-height),480px,60dvh);max-width:var(--available-width);min-width:var(--anchor-width)}.f43dc7c768d7b622__list{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:grid;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);grid-area:main;grid-template-areas:"scrollable" "footer";grid-template-rows:minmax(0,1fr) auto;line-height:var(--wpds-typography-line-height-sm,20px)}._233cd60cdb84a2ef__list-scrollable-container{grid-area:scrollable;overflow-block:auto;overscroll-behavior:contain;scroll-padding-block:var(--wp-ui-popup-padding);&:not(:empty){padding-block:var(--wp-ui-popup-padding)}}.ec4db6f0122263e7__list-footer{grid-area:footer;padding-block:var(--wp-ui-popup-padding);._233cd60cdb84a2ef__list-scrollable-container:not(:empty)+&{border-block-start:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}}.b3c0d7f103fb10a2__group:not(:first-child){margin-block-start:var(--wpds-dimension-gap-sm,8px)}._21b59380477c306c__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;min-height:var(--wpds-dimension-size-md,32px);padding-inline:var(--wpds-dimension-padding-md,12px)}._684ccb7988365b4f__item{--wp-ui-popup-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-popup-item-padding-block:var(--wpds-dimension-padding-xs,4px);align-items:center;border-radius:var(--wpds-border-radius-sm,2px);display:flex;gap:var(--wpds-dimension-gap-xs,4px);justify-content:flex-start;margin-inline:var(--wp-ui-popup-padding);min-height:var(--wp-ui-popup-item-height);padding-block:var(--wp-ui-popup-item-padding-block);padding-inline-end:var(--wp-ui-popup-item-padding-inline);padding-inline-start:calc(var(--wp-ui-popup-item-padding-inline) - var(--wpds-dimension-padding-xs, 4px));user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&._38f7faff93c61958__is-size-small{--wp-ui-popup-item-height:var(--wpds-dimension-size-sm,24px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-popup-item-padding-block:2px}&:not([data-selected]){._92fbe4765dfad5ee__item-indicator-icon{opacity:0}}&[data-highlighted]:not([aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:none;@media (forced-colors:active){outline:1px solid Highlight}}&[aria-disabled=true]{background-color:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}}.a3adcfd0b73ffd40__item-icon{flex-shrink:0}._06c7ff39d2f685b9__empty:not(:empty){--wp-ui-popup-empty-min-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-empty-padding-inline:var(--wpds-dimension-padding-md,12px);align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);grid-area:main;line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wp-ui-popup-empty-min-height);padding-inline:var(--wp-ui-popup-empty-padding-inline)}}}');var qZe={popup:"_234b520016b4e56f__popup _380b81b8f79fb10f__dropdown-motion",list:"f43dc7c768d7b622__list","list-scrollable-container":"_233cd60cdb84a2ef__list-scrollable-container","list-footer":"ec4db6f0122263e7__list-footer",group:"b3c0d7f103fb10a2__group","group-label":"_21b59380477c306c__group-label",item:"_684ccb7988365b4f__item","is-size-small":"_38f7faff93c61958__is-size-small","item-indicator-icon":"_92fbe4765dfad5ee__item-indicator-icon","item-icon":"a3adcfd0b73ffd40__item-icon",empty:"_06c7ff39d2f685b9__empty"},hE=(0,wbe.forwardRef)(function({className:t,children:o,...r},n){return(0,vY.jsx)(cs,{variant:"heading-sm",className:$(qZe["group-label"],t),render:(0,vY.jsx)(qr.GroupLabel,{ref:n,...r}),children:o})});var xbe=c(F(),1);var bE=c(T(),1),wY="data-wp-hash";function kY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&XZe(document)),e.__wpStyleRuntime}function ZZe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${wY}]`))if(o.getAttribute(wY)===t)return!0;return!1}function Sbe(e,t,o){if(!e.head)return;let r=kY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(ZZe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(wY,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function XZe(e){let t=kY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Sbe(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 Cbe(e,t){let o=kY();o.styles.set(e,t);for(let r of o.documents.keys())Sbe(r,e,t)}typeof process>"u",Cbe("0e090e3995",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._380b81b8f79fb10f__dropdown-motion,._7f344b94e270e039__dropdown-motion--fade-only{--wp-ui-dropdown-slide-distance:4px;--wp-ui-dropdown-slide-duration:var(--wpds-motion-duration-md,200ms);--wp-ui-dropdown-slide-easing:var(--wpds-motion-easing-expressive,cubic-bezier(0.25,0,0,1));--wp-ui-dropdown-fade-duration:var(--wpds-motion-duration-sm,100ms);--wp-ui-dropdown-fade-easing:linear;@media not (prefers-reduced-motion){transition-duration:var(--wp-ui-dropdown-slide-duration),var(--wp-ui-dropdown-fade-duration);transition-property:transform,opacity;transition-timing-function:var(--wp-ui-dropdown-slide-easing),var(--wp-ui-dropdown-fade-easing);will-change:transform,opacity}opacity:1;&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}}._380b81b8f79fb10f__dropdown-motion{transform:translate(0);&[data-side=bottom][data-ending-style],&[data-side=bottom][data-starting-style]{transform:translateY(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=top][data-ending-style],&[data-side=top][data-starting-style]{transform:translateY(var(--wp-ui-dropdown-slide-distance))}&[data-side=left][data-ending-style],&[data-side=left][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=right][data-ending-style],&[data-side=right][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=inline-start][data-ending-style],&[data-side=inline-start][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=inline-end][data-ending-style],&[data-side=inline-end][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-start][data-ending-style],&:dir(rtl)[data-side=inline-start][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-end][data-ending-style],&:dir(rtl)[data-side=inline-end][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._234b520016b4e56f__popup{--wp-ui-popup-padding:var(--wpds-dimension-padding-xs,4px);--_wp-ui-elevation-md:0 2px 3px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.04),0 12px 12px rgba(0,0,0,.03),0 16px 16px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-md);display:grid;grid-template-areas:"header" "main";grid-template-rows:auto minmax(0,1fr);max-height:min(var(--available-height),480px,60dvh);max-width:var(--available-width);min-width:var(--anchor-width)}.f43dc7c768d7b622__list{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:grid;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);grid-area:main;grid-template-areas:"scrollable" "footer";grid-template-rows:minmax(0,1fr) auto;line-height:var(--wpds-typography-line-height-sm,20px)}._233cd60cdb84a2ef__list-scrollable-container{grid-area:scrollable;overflow-block:auto;overscroll-behavior:contain;scroll-padding-block:var(--wp-ui-popup-padding);&:not(:empty){padding-block:var(--wp-ui-popup-padding)}}.ec4db6f0122263e7__list-footer{grid-area:footer;padding-block:var(--wp-ui-popup-padding);._233cd60cdb84a2ef__list-scrollable-container:not(:empty)+&{border-block-start:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}}.b3c0d7f103fb10a2__group:not(:first-child){margin-block-start:var(--wpds-dimension-gap-sm,8px)}._21b59380477c306c__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;min-height:var(--wpds-dimension-size-md,32px);padding-inline:var(--wpds-dimension-padding-md,12px)}._684ccb7988365b4f__item{--wp-ui-popup-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-popup-item-padding-block:var(--wpds-dimension-padding-xs,4px);align-items:center;border-radius:var(--wpds-border-radius-sm,2px);display:flex;gap:var(--wpds-dimension-gap-xs,4px);justify-content:flex-start;margin-inline:var(--wp-ui-popup-padding);min-height:var(--wp-ui-popup-item-height);padding-block:var(--wp-ui-popup-item-padding-block);padding-inline-end:var(--wp-ui-popup-item-padding-inline);padding-inline-start:calc(var(--wp-ui-popup-item-padding-inline) - var(--wpds-dimension-padding-xs, 4px));user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&._38f7faff93c61958__is-size-small{--wp-ui-popup-item-height:var(--wpds-dimension-size-sm,24px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-popup-item-padding-block:2px}&:not([data-selected]){._92fbe4765dfad5ee__item-indicator-icon{opacity:0}}&[data-highlighted]:not([aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:none;@media (forced-colors:active){outline:1px solid Highlight}}&[aria-disabled=true]{background-color:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}}.a3adcfd0b73ffd40__item-icon{flex-shrink:0}._06c7ff39d2f685b9__empty:not(:empty){--wp-ui-popup-empty-min-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-empty-padding-inline:var(--wpds-dimension-padding-md,12px);align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);grid-area:main;line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wp-ui-popup-empty-min-height);padding-inline:var(--wp-ui-popup-empty-padding-inline)}}}');var IL={popup:"_234b520016b4e56f__popup _380b81b8f79fb10f__dropdown-motion",list:"f43dc7c768d7b622__list","list-scrollable-container":"_233cd60cdb84a2ef__list-scrollable-container","list-footer":"ec4db6f0122263e7__list-footer",group:"b3c0d7f103fb10a2__group","group-label":"_21b59380477c306c__group-label",item:"_684ccb7988365b4f__item","is-size-small":"_38f7faff93c61958__is-size-small","item-indicator-icon":"_92fbe4765dfad5ee__item-indicator-icon","item-icon":"a3adcfd0b73ffd40__item-icon",empty:"_06c7ff39d2f685b9__empty"};typeof process>"u",Cbe("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var QZe={"box-sizing":"_336cd3e4e743482f__box-sizing"},Ebe=(0,xbe.forwardRef)(function({className:t,value:o,size:r="default",children:n,...i},s){return(0,bE.jsxs)(qr.Item,{className:$(QZe["box-sizing"],IL.item,r==="small"&&IL["is-size-small"],t),value:o,ref:s,...i,children:[(0,bE.jsx)(Xr,{icon:Os,className:$(IL["item-icon"],IL["item-indicator-icon"]),size:r==="small"?20:24}),(0,bE.jsx)(qr.ItemText,{children:n})]})});var Abe=c(F(),1);var Tbe=c(F(),1);var Rbe=c(T(),1),PL=(0,Tbe.forwardRef)(function({container:t,...o},r){return(0,Rbe.jsx)(qr.Portal,{container:t??lL(),...o,ref:r})});var Bbe=c(F(),1);var Obe=c(T(),1),xY="data-wp-hash";function SY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&eXe(document)),e.__wpStyleRuntime}function JZe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${xY}]`))if(o.getAttribute(xY)===t)return!0;return!1}function Ibe(e,t,o){if(!e.head)return;let r=SY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(JZe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(xY,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function eXe(e){let t=SY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Ibe(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 Pbe(e,t){let o=SY();o.styles.set(e,t);for(let r of o.documents.keys())Ibe(r,e,t)}typeof process>"u",Pbe("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var tXe={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",Pbe("8c70612dd7","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._0ab863136fb95530__positioner{z-index:var(--wp-ui-select-z-index,initial)}}}");var oXe={positioner:"_0ab863136fb95530__positioner"},OL=(0,Bbe.forwardRef)(function({className:t,...o},r){return(0,Obe.jsx)(qr.Positioner,{...Whe,alignItemWithTrigger:!1,...o,ref:r,className:$(tXe["box-sizing"],oXe.positioner,t)})});var ky=c(T(),1),EY="data-wp-hash";function TY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&nXe(document)),e.__wpStyleRuntime}function rXe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${EY}]`))if(o.getAttribute(EY)===t)return!0;return!1}function Mbe(e,t,o){if(!e.head)return;let r=TY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(rXe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(EY,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function nXe(e){let t=TY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Mbe(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 iXe(e,t){let o=TY();o.styles.set(e,t);for(let r of o.documents.keys())Mbe(r,e,t)}typeof process>"u",iXe("0e090e3995",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._380b81b8f79fb10f__dropdown-motion,._7f344b94e270e039__dropdown-motion--fade-only{--wp-ui-dropdown-slide-distance:4px;--wp-ui-dropdown-slide-duration:var(--wpds-motion-duration-md,200ms);--wp-ui-dropdown-slide-easing:var(--wpds-motion-easing-expressive,cubic-bezier(0.25,0,0,1));--wp-ui-dropdown-fade-duration:var(--wpds-motion-duration-sm,100ms);--wp-ui-dropdown-fade-easing:linear;@media not (prefers-reduced-motion){transition-duration:var(--wp-ui-dropdown-slide-duration),var(--wp-ui-dropdown-fade-duration);transition-property:transform,opacity;transition-timing-function:var(--wp-ui-dropdown-slide-easing),var(--wp-ui-dropdown-fade-easing);will-change:transform,opacity}opacity:1;&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}}._380b81b8f79fb10f__dropdown-motion{transform:translate(0);&[data-side=bottom][data-ending-style],&[data-side=bottom][data-starting-style]{transform:translateY(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=top][data-ending-style],&[data-side=top][data-starting-style]{transform:translateY(var(--wp-ui-dropdown-slide-distance))}&[data-side=left][data-ending-style],&[data-side=left][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=right][data-ending-style],&[data-side=right][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=inline-start][data-ending-style],&[data-side=inline-start][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=inline-end][data-ending-style],&[data-side=inline-end][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-start][data-ending-style],&:dir(rtl)[data-side=inline-start][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-end][data-ending-style],&:dir(rtl)[data-side=inline-end][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._234b520016b4e56f__popup{--wp-ui-popup-padding:var(--wpds-dimension-padding-xs,4px);--_wp-ui-elevation-md:0 2px 3px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.04),0 12px 12px rgba(0,0,0,.03),0 16px 16px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-md);display:grid;grid-template-areas:"header" "main";grid-template-rows:auto minmax(0,1fr);max-height:min(var(--available-height),480px,60dvh);max-width:var(--available-width);min-width:var(--anchor-width)}.f43dc7c768d7b622__list{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:grid;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);grid-area:main;grid-template-areas:"scrollable" "footer";grid-template-rows:minmax(0,1fr) auto;line-height:var(--wpds-typography-line-height-sm,20px)}._233cd60cdb84a2ef__list-scrollable-container{grid-area:scrollable;overflow-block:auto;overscroll-behavior:contain;scroll-padding-block:var(--wp-ui-popup-padding);&:not(:empty){padding-block:var(--wp-ui-popup-padding)}}.ec4db6f0122263e7__list-footer{grid-area:footer;padding-block:var(--wp-ui-popup-padding);._233cd60cdb84a2ef__list-scrollable-container:not(:empty)+&{border-block-start:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}}.b3c0d7f103fb10a2__group:not(:first-child){margin-block-start:var(--wpds-dimension-gap-sm,8px)}._21b59380477c306c__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;min-height:var(--wpds-dimension-size-md,32px);padding-inline:var(--wpds-dimension-padding-md,12px)}._684ccb7988365b4f__item{--wp-ui-popup-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-popup-item-padding-block:var(--wpds-dimension-padding-xs,4px);align-items:center;border-radius:var(--wpds-border-radius-sm,2px);display:flex;gap:var(--wpds-dimension-gap-xs,4px);justify-content:flex-start;margin-inline:var(--wp-ui-popup-padding);min-height:var(--wp-ui-popup-item-height);padding-block:var(--wp-ui-popup-item-padding-block);padding-inline-end:var(--wp-ui-popup-item-padding-inline);padding-inline-start:calc(var(--wp-ui-popup-item-padding-inline) - var(--wpds-dimension-padding-xs, 4px));user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&._38f7faff93c61958__is-size-small{--wp-ui-popup-item-height:var(--wpds-dimension-size-sm,24px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-popup-item-padding-block:2px}&:not([data-selected]){._92fbe4765dfad5ee__item-indicator-icon{opacity:0}}&[data-highlighted]:not([aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:none;@media (forced-colors:active){outline:1px solid Highlight}}&[aria-disabled=true]{background-color:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}}.a3adcfd0b73ffd40__item-icon{flex-shrink:0}._06c7ff39d2f685b9__empty:not(:empty){--wp-ui-popup-empty-min-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-empty-padding-inline:var(--wpds-dimension-padding-md,12px);align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);grid-area:main;line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wp-ui-popup-empty-min-height);padding-inline:var(--wp-ui-popup-empty-padding-inline)}}}');var CY={popup:"_234b520016b4e56f__popup _380b81b8f79fb10f__dropdown-motion",list:"f43dc7c768d7b622__list","list-scrollable-container":"_233cd60cdb84a2ef__list-scrollable-container","list-footer":"ec4db6f0122263e7__list-footer",group:"b3c0d7f103fb10a2__group","group-label":"_21b59380477c306c__group-label",item:"_684ccb7988365b4f__item","is-size-small":"_38f7faff93c61958__is-size-small","item-indicator-icon":"_92fbe4765dfad5ee__item-indicator-icon","item-icon":"a3adcfd0b73ffd40__item-icon",empty:"_06c7ff39d2f685b9__empty"},Nbe=(0,Abe.forwardRef)(function({className:t,portal:o,positioner:r,children:n,...i},s){let a=(0,ky.jsx)(dL,{children:(0,ky.jsx)(qr.Popup,{ref:s,className:$(CY.popup,t),...i,children:(0,ky.jsx)(qr.List,{className:CY.list,children:(0,ky.jsx)("div",{className:CY["list-scrollable-container"],children:n})})})}),l=ik(r,(0,ky.jsx)(OL,{}),a);return ik(o,(0,ky.jsx)(PL,{}),l)});var RY=c(T(),1);function Lbe(e){return(0,RY.jsx)(sk,{children:(0,RY.jsx)(qr.Root,{...e})})}var Dbe=c(F(),1);var Vbe=c(q(),1);var fk=c(T(),1),BY="data-wp-hash";function IY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&aXe(document)),e.__wpStyleRuntime}function sXe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${BY}]`))if(o.getAttribute(BY)===t)return!0;return!1}function Fbe(e,t,o){if(!e.head)return;let r=IY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(sXe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(BY,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function aXe(e){let t=IY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Fbe(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 zbe(e,t){let o=IY();o.styles.set(e,t);for(let r of o.documents.keys())Fbe(r,e,t)}typeof process>"u",zbe("96553466c8","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._64de9947bf305b7a__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.af79fb116edb0dd7__outset-ring--focus:focus,.dfcfdc28396e5d98__outset-ring--focus-visible:focus-visible,.e5cd9ee879f6403a__outset-ring--focus-within:focus-within,:focus-visible ._81935a08e952f267__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within,.abc777e9713fa711__outset-ring--focus-except-active:focus{outline:none}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.abc777e9713fa711__outset-ring--focus-except-active:focus:not(:active){--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");var lXe={"outset-ring--focus":"af79fb116edb0dd7__outset-ring--focus","outset-ring--focus-visible":"dfcfdc28396e5d98__outset-ring--focus-visible","outset-ring--focus-within":"e5cd9ee879f6403a__outset-ring--focus-within","outset-ring--focus-within-visible":"_64de9947bf305b7a__outset-ring--focus-within-visible","outset-ring--focus-parent-visible":"_81935a08e952f267__outset-ring--focus-parent-visible","outset-ring--focus-except-active":"abc777e9713fa711__outset-ring--focus-except-active","outset-ring--focus-within-except-active":"_3c9f5ee9fc9c136d__outset-ring--focus-within-except-active"};typeof process>"u",zbe("8fc4b25e27","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._6e4e0445ef20426b__trigger-wrapper{&.fa98c865fb77e675__is-minimal{width:fit-content}}._7893295e3f6d1af7__trigger{align-items:center;background-color:transparent;border:none;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:flex;font-family:inherit;font-size:inherit;gap:var(--wpds-dimension-gap-xs,4px);justify-content:space-between;line-height:1.4;padding-block:4px;padding-inline-end:calc(var(--wp-ui-input-layout-padding-inline) - 4px);padding-inline-start:var(--wp-ui-input-layout-padding-inline);text-align:start;user-select:none;width:100%;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&.fa98c865fb77e675__is-minimal{width:auto}&:focus{outline:none}&[data-disabled]{background-color:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}}.e760c9339965ce84__trigger-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;._7893295e3f6d1af7__trigger[data-placeholder]:not([data-disabled]) &{color:var(--wpds-color-foreground-interactive-neutral-weak,#707070)}}._308bc63e43681f99__trigger-caret{flex:0 0 auto}}}");var dk={"trigger-wrapper":"_6e4e0445ef20426b__trigger-wrapper","is-minimal":"fa98c865fb77e675__is-minimal",trigger:"_7893295e3f6d1af7__trigger","trigger-value":"e760c9339965ce84__trigger-value","trigger-caret":"_308bc63e43681f99__trigger-caret"},jbe=(0,Dbe.forwardRef)(function({className:t,size:o,variant:r,children:n,placeholder:i=(0,Vbe.__)("Select"),...s},a){return(0,fk.jsx)(fs,{className:$(lXe["outset-ring--focus-within-except-active"],dk["trigger-wrapper"],r==="minimal"&&dk["is-minimal"],t),size:o,isBorderless:r==="minimal",children:(0,fk.jsxs)(qr.Trigger,{...s,className:$(dk.trigger,r==="minimal"&&dk["is-minimal"]),"data-can-disable-input-layout":!0,ref:a,children:[(0,fk.jsx)(qr.Value,{placeholder:i,className:dk["trigger-value"],children:n}),(0,fk.jsx)(Xr,{className:dk["trigger-caret"],icon:Rn,size:18})]})})});var AL=c(F(),1);var OY=c(T(),1),PY="data-wp-hash";function AY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&uXe(document)),e.__wpStyleRuntime}function cXe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${PY}]`))if(o.getAttribute(PY)===t)return!0;return!1}function Ube(e,t,o){if(!e.head)return;let r=AY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(cXe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(PY,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function uXe(e){let t=AY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Ube(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 Wbe(e,t){let o=AY();o.styles.set(e,t);for(let r of o.documents.keys())Ube(r,e,t)}typeof process>"u",Wbe("1540cbc709","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._1e441c22c9dc5d28__wrapper{--wp-ui-textarea-min-height:var(--wpds-dimension-size-lg,40px)}._414844876c32ecee__textarea{min-height:calc(var(--wp-ui-textarea-min-height) - 2px);resize:block}}@layer compositions{._1e441c22c9dc5d28__wrapper{--wp-ui-input-padding-block:9.9px;height:auto;line-height:1.4}}}");var Hbe={wrapper:"_1e441c22c9dc5d28__wrapper",textarea:"_414844876c32ecee__textarea"};typeof process>"u",Wbe("af6d9984a6","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");var dXe={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a"},fXe=(e,t)=>function(r){return typeof e=="function"?e(zt(r,t)):(0,AL.cloneElement)(e,zt(r,t))},ML=(0,AL.forwardRef)(function({className:t,defaultValue:o,disabled:r,onValueChange:n,render:i,rows:s=4,style:a,value:l,...u},d){return(0,OY.jsx)(uk,{className:$(Hbe.wrapper,t),style:a,render:fXe(i||(f=>(0,OY.jsx)("textarea",{...f})),{className:$(dXe.textarea,Hbe.textarea),ref:d,rows:s,...u}),value:l,defaultValue:o,onValueChange:n,disabled:r})});var Gbe=c(F(),1);var xy=c(T(),1),MY="data-wp-hash";function NY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&mXe(document)),e.__wpStyleRuntime}function pXe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${MY}]`))if(o.getAttribute(MY)===t)return!0;return!1}function $be(e,t,o){if(!e.head)return;let r=NY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(pXe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(MY,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function mXe(e){let t=NY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)$be(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 gXe(e,t){let o=NY();o.styles.set(e,t);for(let r of o.documents.keys())$be(r,e,t)}typeof process>"u",gXe("0c752c3d08","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer compositions{@supports (-webkit-hyphens:none) and (not (-moz-appearance:none)){.a9211a7e6af24bed__root input[type=date]:not([data-filled]):not(:focus),.a9211a7e6af24bed__root input[type=datetime-local]:not([data-filled]):not(:focus),.a9211a7e6af24bed__root input[type=time]:not([data-filled]):not(:focus){--_gcd-input-color:transparent;--_gcd-input-color-disabled:transparent;color:transparent;&:disabled::-webkit-datetime-edit-text{color:transparent}}}}}");var hXe={root:"a9211a7e6af24bed__root"},LY=(0,Gbe.forwardRef)(function({className:t,label:o,description:r,details:n,hideLabelFromVision:i,...s},a){return(0,xy.jsxs)(gi.Root,{className:$(hXe.root,t),children:[(0,xy.jsx)(gi.Label,{hideFromVision:i,children:o}),(0,xy.jsx)(uk,{ref:a,...s}),r&&(0,xy.jsx)(gi.Description,{children:r}),n&&(0,xy.jsx)(gi.Details,{children:n})]})});var qbe=c(F(),1);var Ybe=c(F(),1);var Kbe=c(T(),1),yE=(0,Ybe.forwardRef)(function(t,o){return(0,Kbe.jsx)(Sg.Item,{ref:o,...t})});var pd=c(T(),1),Zbe=(0,qbe.forwardRef)(function({className:t,children:o,items:r,label:n,description:i,details:s,hideLabelFromVision:a,placeholder:l,size:u="default",triggerContent:d,...f},p){return(0,pd.jsxs)(gi.Root,{className:t,children:[(0,pd.jsx)(gi.Label,{hideFromVision:a,children:n}),(0,pd.jsxs)(Sg.Root,{items:r,...f,children:[(0,pd.jsx)(Sg.Trigger,{ref:p,placeholder:l,size:u,children:d}),(0,pd.jsx)(Sg.Popup,{children:o!==void 0?o:r?.map(m=>(0,pd.jsx)(yE,{value:m,label:m.label,disabled:m.disabled,children:m.label},m.value??"null"))})]}),i&&(0,pd.jsx)(gi.Description,{children:i}),s&&(0,pd.jsx)(gi.Details,{children:s})]})});gE.displayName="SelectControl.Group";hE.displayName="SelectControl.GroupLabel";yE.displayName="SelectControl.Item";var DY=Object.assign(Zbe,{Group:gE,GroupLabel:hE,Item:yE});var Xbe=c(F(),1);var Sy=c(T(),1),VY=(0,Xbe.forwardRef)(function({className:t,label:o,description:r,details:n,hideLabelFromVision:i,...s},a){return(0,Sy.jsxs)(gi.Root,{className:t,children:[(0,Sy.jsx)(gi.Label,{hideFromVision:i,children:o}),(0,Sy.jsx)(ML,{ref:a,...s}),r&&(0,Sy.jsx)(gi.Description,{children:r}),n&&(0,Sy.jsx)(gi.Details,{children:n})]})});var NL=c(F(),1),Qbe=c(ue(),1);var FY=c(T(),1),Wc=(0,NL.forwardRef)(function({required:t,markWhenOptional:o,customValidity:r,...n},i){let s=(0,NL.useRef)(null),a=(0,Qbe.useMergeRefs)([i,s]);return(0,FY.jsx)(Lr,{required:t,markWhenOptional:o,customValidity:r,getValidityTarget:()=>s.current,children:(0,FY.jsx)(LY,{ref:a,...n})})});var LL=c(F(),1),Jbe=c(ue(),1);var zY=c(T(),1),jY=(0,LL.forwardRef)(function({required:t,markWhenOptional:o,customValidity:r,...n},i){let s=(0,LL.useRef)(null),a=(0,Jbe.useMergeRefs)([i,s]);return(0,zY.jsx)(Lr,{required:t,markWhenOptional:o,customValidity:r,getValidityTarget:()=>s.current,children:(0,zY.jsx)(VY,{ref:a,...n})})});var Cg={};No(Cg,{List:()=>rye,Panel:()=>dye,Root:()=>pye,Tab:()=>hye});var Cy=c(F(),1);var tye=c(ue(),1),DL=c(T(),1),HY="data-wp-hash";function UY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&yXe(document)),e.__wpStyleRuntime}function bXe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${HY}]`))if(o.getAttribute(HY)===t)return!0;return!1}function oye(e,t,o){if(!e.head)return;let r=UY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(bXe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(HY,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function yXe(e){let t=UY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)oye(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 vXe(e,t){let o=UY();o.styles.set(e,t);for(let r of o.documents.keys())oye(r,e,t)}typeof process>"u",vXe("54ae3f4680",`@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._7313adbc8a112e90__tablist{--direction-start:left;--direction-end:right;align-items:stretch;display:flex;overflow-inline:auto;overscroll-behavior-inline:none;position:relative;&:dir(rtl){--direction-start:right;--direction-end:left}&[data-orientation=horizontal]{--fade-width:4rem;--fade-gradient-base:transparent 0%,#000 var(--fade-width);--fade-gradient-composed:var(--fade-gradient-base),#000 60%,transparent 50%;width:fit-content;&._9f2ac729c68a735a__is-overflowing-first{mask-image:linear-gradient(to var(--direction-end),var(--fade-gradient-base))}&._81c799c1f3cdd261__is-overflowing-last{mask-image:linear-gradient(to var(--direction-start),var(--fade-gradient-base))}&._9f2ac729c68a735a__is-overflowing-first._81c799c1f3cdd261__is-overflowing-last{mask-image:linear-gradient(to right,var(--fade-gradient-composed)),linear-gradient(to left,var(--fade-gradient-composed))}&._59228b5227f38a99__is-minimal-variant{gap:1rem}}&[data-orientation=vertical]{flex-direction:column}}._1c37dcfaa1ad8cda__indicator{@media not (prefers-reduced-motion){transition-duration:.2s;transition-property:translate,width,height,border-radius,border-block;transition-timing-function:ease-out}outline:2px solid transparent;outline-offset:-1px;pointer-events:none;position:absolute;&[data-orientation=horizontal]{background-color:var(--wpds-color-stroke-interactive-neutral-strong,#6e6e6e);bottom:0;height:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px));left:0;translate:var(--active-tab-left) 0;width:var(--active-tab-width);z-index:1}&[data-orientation=vertical]{background-color:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);border-radius:var(--wpds-border-radius-sm,2px);height:var(--active-tab-height);left:50%;top:0;translate:-50% var(--active-tab-top);width:100%;z-index:0}._7313adbc8a112e90__tablist[data-select-on-move=true]:has(:focus-visible) | |
| 85 | + `}}),s&&h&&v&&(B+=ug(t,a,"constrained",v)),B},getOrientation(){return"vertical"},getAlignments(e){let t=B9(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}},U$e={placement:"bottom-start"};function W$e({layout:e,onChange:t}){let{justifyContent:o="center"}=e;return(0,Ar.jsx)(Gw,{allowedControls:["left","center","right"],value:o,onChange:i=>{t({...e,justifyContent:i})},popoverProps:U$e})}var Yr=c(X(),1),Jt=c(Q(),1),L9=c(D(),1);var jt=c(T(),1),G$e={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},$$e=[{value:"px",label:"px",default:0},{value:"rem",label:"rem",default:0},{value:"em",label:"em",default:0}],Fae={name:"grid",label:(0,Yr.__)("Grid"),hasInspectorControls(){return!0},inspectorControls:function({layout:t={},onChange:o,layoutBlockSupport:r={},resetLayout:n={},clientId:i}){let{allowSizingOnChildren:s=!1}=r,a=!0,l=!t?.isManualPlacement||window.__experimentalEnableGridInteractivity,d=!t?.isManualPlacement,u=t.isManualPlacement?3:void 0,f=(w,x)=>(t?.[w]??x)!==(n?.[w]??x),p=()=>f("isManualPlacement",!1),m=()=>f("columnCount",u)||f("rowCount"),g=()=>f("minimumColumnWidth"),h=()=>f("autoFit",!1),b=()=>o(Qe({...t,isManualPlacement:n?.isManualPlacement,rowCount:n?.rowCount,minimumColumnWidth:n?.minimumColumnWidth})),v=()=>o(Qe({...t,columnCount:n?.columnCount??u,rowCount:n?.rowCount})),_=()=>o(Qe({...t,minimumColumnWidth:n?.minimumColumnWidth})),y=()=>o(Qe({...t,autoFit:n?.autoFit}));return(0,jt.jsxs)(jt.Fragment,{children:[window.__experimentalEnableGridInteractivity&&(0,jt.jsx)(Jt.__experimentalToolsPanelItem,{label:(0,Yr.__)("Grid item position"),hasValue:p,onDeselect:b,isShownByDefault:!0,panelId:i,children:(0,jt.jsx)(X$e,{layout:t,onChange:o})}),a&&(0,jt.jsx)(Jt.__experimentalToolsPanelItem,{label:(0,Yr.__)("Columns and rows"),hasValue:m,onDeselect:v,isShownByDefault:!0,panelId:i,children:(0,jt.jsx)(K$e,{layout:t,onChange:o,allowSizingOnChildren:s})}),l&&(0,jt.jsx)(Jt.__experimentalToolsPanelItem,{label:(0,Yr.__)("Min. column width"),hasValue:g,onDeselect:_,isShownByDefault:!0,panelId:i,children:(0,jt.jsx)(Y$e,{layout:t,onChange:o})}),d&&(0,jt.jsx)(Jt.__experimentalToolsPanelItem,{label:(0,Yr.__)("Fill available space"),hasValue:h,onDeselect:y,panelId:i,children:(0,jt.jsx)(q$e,{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=Ia}){let d=r!==void 0,u=d?{...o,...r}:o,f=S=>Object.hasOwn(r||{},S),{minimumColumnWidth:p=null,columnCount:m=null,rowCount:g=null,autoFit:h=!1}=u,b=h?"auto-fit":"auto-fill",v="1.2rem";if(a){let S=Ww(a);v=vl(S?.left)||vl(S?.top)||"1.2rem"}let _=n?.spacing?.blockGap&&!Qt(i,"spacing","blockGap")?Pa(n?.spacing?.blockGap,v):void 0,y=!d||Object.hasOwn(n?.spacing||{},"blockGap"),w="",x=[],k=!d||f("minimumColumnWidth")||f("columnCount")||f("autoFit")||y&&p&&m>0,C=(!d||f("rowCount"))&&m&&g;if(k&&p&&m>0){let S=_?Ww(n.spacing.blockGap):void 0,R=vl(S?.left)||v;(R==="0"||R===0)&&(R="0px");let E=`max(min( ${p}, 100%), ( 100% - (${R}*${m-1}) ) / ${m})`;x.push(`grid-template-columns: repeat(${b}, minmax(${E}, 1fr))`)}else k&&m?x.push(`grid-template-columns: repeat(${m}, minmax(0, 1fr))`):k&&x.push(`grid-template-columns: repeat(${b}, minmax(min(${p||"12rem"}, 100%), 1fr))`);if(k){let S=!o?.columnCount||o?.columnCount&&o?.minimumColumnWidth;(!m||p)&&(!d||!S)&&x.push("container-type: inline-size")}return C&&x.push(`grid-template-rows: repeat(${g}, minmax(1rem, auto))`),x.length&&(w=`${qs(t)} { ${x.join("; ")}; }`),s&&y&&_&&(w+=ug(t,l,"grid",_)),w},getOrientation(){return"horizontal"},getAlignments(){return[]}};function Y$e({layout:e,onChange:t}){let{minimumColumnWidth:o,columnCount:r,isManualPlacement:n}=e,s=o||(n||r?null:"12rem"),[a,l="rem"]=(0,Jt.__experimentalParseQuantityAndUnitFromRawValue)(s),d=f=>{t({...e,minimumColumnWidth:[f,l].join("")})},u=f=>{let p;["em","rem"].includes(f)&&l==="px"?p=(a/16).toFixed(2)+f:["em","rem"].includes(l)&&f==="px"&&(p=Math.round(a*16)+f),t({...e,minimumColumnWidth:p})};return(0,jt.jsxs)("fieldset",{className:"block-editor-hooks__grid-layout-minimum-width-control",children:[(0,jt.jsx)(Jt.BaseControl.VisualLabel,{as:"legend",children:(0,Yr.__)("Min. column width")}),(0,jt.jsxs)(Jt.Flex,{gap:4,children:[(0,jt.jsx)(Jt.FlexItem,{isBlock:!0,children:(0,jt.jsx)(Jt.__experimentalUnitControl,{onChange:f=>{t({...e,minimumColumnWidth:f===""?void 0:f})},onUnitChange:u,value:s,units:$$e,min:0,label:(0,Yr.__)("Minimum column width"),hideLabelFromVision:!0})}),(0,jt.jsx)(Jt.FlexItem,{isBlock:!0,children:(0,jt.jsx)(Jt.RangeControl,{onChange:d,value:a||0,min:0,max:G$e[l]||600,withInputField:!1,label:(0,Yr.__)("Minimum column width"),hideLabelFromVision:!0})})]}),(0,jt.jsx)("p",{className:"components-base-control__help",children:(0,Yr.__)("Columns will wrap to fewer per row when they can no longer maintain the minimum width.")})]})}function K$e({layout:e,onChange:t,allowSizingOnChildren:o}){let{columnCount:n=void 0,rowCount:i,isManualPlacement:s}=e;return(0,jt.jsx)(jt.Fragment,{children:(0,jt.jsxs)("fieldset",{className:"block-editor-hooks__grid-layout-columns-and-rows-controls",children:[!s&&(0,jt.jsx)(Jt.BaseControl.VisualLabel,{as:"legend",children:(0,Yr.__)("Max. columns")}),(0,jt.jsxs)(Jt.Flex,{gap:4,children:[(0,jt.jsx)(Jt.FlexItem,{isBlock:!0,children:(0,jt.jsx)(Jt.__experimentalNumberControl,{onChange:a=>{let d=a===""||a==="0"?s?1:void 0:parseInt(a,10);t({...e,columnCount:d})},value:n??"",min:1,label:(0,Yr.__)("Columns"),hideLabelFromVision:!s})}),(0,jt.jsx)(Jt.FlexItem,{isBlock:!0,children:o&&s?(0,jt.jsx)(Jt.__experimentalNumberControl,{onChange:a=>{let l=a===""||a==="0"?1:parseInt(a,10);t({...e,rowCount:l})},value:i,min:1,label:(0,Yr.__)("Rows")}):(0,jt.jsx)(Jt.RangeControl,{value:n??1,onChange:a=>t({...e,columnCount:a===""||a==="0"?1:a}),min:1,max:16,withInputField:!1,label:(0,Yr.__)("Columns"),hideLabelFromVision:!0})})]})]})})}function q$e({layout:e,onChange:t}){let{autoFit:o=!1}=e;return(0,jt.jsx)(Jt.ToggleControl,{label:(0,Yr.__)("Fill available space"),help:(0,Yr.__)("Stretch columns to fill the available space, instead of leaving gaps when there are too few items to fill a row."),checked:o,onChange:r=>t({...e,autoFit:r})})}function X$e({layout:e,onChange:t}){let{columnCount:o,rowCount:r,minimumColumnWidth:n,isManualPlacement:i}=e,[s,a]=(0,L9.useState)(o||3),[l,d]=(0,L9.useState)(r),[u,f]=(0,L9.useState)(n||"12rem"),p=i?"manual":"auto",m=h=>{h==="manual"?f(n||"12rem"):(a(o||3),d(r)),t({...e,columnCount:s,rowCount:h==="manual"?l:void 0,isManualPlacement:h==="manual"?!0:void 0,minimumColumnWidth:h==="auto"?u:null})},g=p==="manual"?(0,Yr.__)("Grid items can be manually placed in any position on the grid."):(0,Yr.__)("Grid items are placed automatically depending on their order.");return(0,jt.jsxs)(Jt.__experimentalToggleGroupControl,{label:(0,Yr.__)("Grid item position"),value:p,onChange:m,isBlock:!0,help:g,children:[(0,jt.jsx)(Jt.__experimentalToggleGroupControlOption,{value:"auto",label:(0,Yr.__)("Auto")},"auto"),(0,jt.jsx)(Jt.__experimentalToggleGroupControlOption,{value:"manual",label:(0,Yr.__)("Manual")},"manual")]})}var zae=[Lae,Mae,Vae,Fae];function wl(e="default"){return zae.find(t=>t.name===e)}function jae(){return zae}var JU=c(T(),1),eW={type:"default"},tW=(0,D9.createContext)(eW);tW.displayName="BlockLayoutContext";var V9=tW.Provider;function mg(){return(0,D9.useContext)(tW)}function Hae({layout:e={},css:t,...o}){let r=wl(e.type),[n]=Fe("spacing.blockGap"),i=n!=null;if(r){if(t)return(0,JU.jsx)("style",{children:t});let s=r.getLayoutStyle?.({hasBlockGapSupport:i,layout:e,...o});if(s)return(0,JU.jsx)("style",{children:s})}return null}var p_=[],nT=["none","left","center","right","wide","full"],Wae=["wide","full"];function Gae(e){return(0,Uae.useSelect)(t=>{if(e)return{wideControlsEnabled:!1,themeSupportsLayout:!1,isBlockBasedTheme:!1};let o=t(P).getSettings();return{wideControlsEnabled:o.alignWide??!1,themeSupportsLayout:o.supportsLayout,isBlockBasedTheme:o.__unstableIsBlockBasedTheme}},[e])}function $ae(e=nT){e.includes("none")||(e=["none",...e]);let t=e.length===1&&e[0]==="none",o=Gae(t),r=mg();return t?p_:F9(e,r,o)}function F9(e,t,{wideControlsEnabled:o,themeSupportsLayout:r,isBlockBasedTheme:n}){let i=wl(t?.type);if(r){let l=i.getAlignments(t,n).filter(d=>e.includes(d.name));return l.length===1&&l[0].name==="none"?p_:l}if(i.name!=="default"&&i.name!=="constrained")return p_;let s=e.filter(a=>t.alignments?t.alignments.includes(a):!o&&Wae.includes(a)?!1:nT.includes(a)).map(a=>({name:a}));return s.length===1&&s[0].name==="none"?p_:s}function z9(e=nT){e.includes("none")||(e=["none",...e]);let t=e.length===1&&e[0]==="none",o=Gae(t),r=mg(),[n]=Fe("layout");if(t)return{enabled:p_,unavailable:p_};let i=F9(e,r,o);if(!!!F9(nT,r,o).length)return{enabled:i,unavailable:p_};let a=F9(nT,{...n,type:"constrained"},o).map(({name:u})=>u),l=i.map(({name:u})=>u),d=e.filter(u=>Wae.includes(u)&&a.includes(u)&&!l.includes(u));return{enabled:i,unavailable:d}}var gg=c(X(),1);var iT={none:{icon:Kb,title:(0,gg._x)("None","Alignment option")},left:{icon:xH,title:(0,gg.__)("Align left")},center:{icon:wH,title:(0,gg.__)("Align center")},right:{icon:kH,title:(0,gg.__)("Align right")},wide:{icon:n_,title:(0,gg.__)("Wide width")},full:{icon:SE,title:(0,gg.__)("Full width")}},Yae="none";var m_=c(T(),1);function Z$e({value:e,onChange:t,controls:o,isToolbar:r,isCollapsed:n=!0,label:i=(0,oW.__)("Align block"),description:s}){let{enabled:a,unavailable:l}=z9(o);if(!a.length)return null;let d=[...a],u=d.map(({name:v})=>v);d.splice(u.indexOf("none")+1,0,...l.map(v=>({name:v,isUnavailable:!0})));function f(v){t([e,"none"].includes(v)?void 0:v)}let p=iT[e],m=iT[Yae],g=r?hg.ToolbarGroup:hg.ToolbarDropdownMenu,h={icon:p?p.icon:m.icon,label:i},b=r?{isCollapsed:n,controls:a.map(({name:v})=>({...iT[v],isActive:e===v||!e&&v==="none",role:n?"menuitemradio":void 0,onClick:()=>f(v)}))}:{toggleProps:s?{description:s}:{},children:({onClose:v})=>(0,m_.jsx)(m_.Fragment,{children:(0,m_.jsx)(hg.MenuGroup,{className:"block-editor-block-alignment-control__menu-group",children:d.map(({name:_,info:y,isUnavailable:w})=>{let{icon:x,title:k}=iT[_],C=_===e||!e&&_==="none";return(0,m_.jsx)(hg.MenuItem,{icon:x,iconPosition:"left",className:U("components-dropdown-menu__menu-item",{"is-active":C}),isSelected:C,disabled:w,onClick:()=>{f(_),v()},role:"menuitemradio",info:w?(0,oW.__)("Not available"):y,children:k},_)})})})};return(0,m_.jsx)(g,{...h,...b})}var rW=Z$e;var nW=c(T(),1),j9=e=>(0,nW.jsx)(rW,{...e,isToolbar:!1}),Kae=e=>(0,nW.jsx)(rW,{...e,isToolbar:!0});var Zwe=c($b(),1),PO=c(X(),1),BO=c(ce(),1),wp=c(Q(),1),lX=c(oe(),1),Qwe=c(D(),1),Jwe=c(ue(),1);var jme=c(D(),1);var g_=c(te(),1);function Ba({controlled:e,default:t,name:o,state:r="value"}){let{current:n}=g_.useRef(e!==void 0),[i,s]=g_.useState(t),a=n&&e!==void 0?e:i,l=g_.useCallback(d=>{n||s(d)},[]);return[a,l]}var Q$e=c(te(),1),sT={...Q$e};var Zae=c(te(),1),Xae={};function Dt(e,t){let o=Zae.useRef(Xae);return o.current===Xae&&(o.current=e(t)),o}var iW=sT.useInsertionEffect,J$e=iW&&iW!==sT.useLayoutEffect?iW:e=>e();function le(e){let t=Dt(eYe).current;return t.next=e,J$e(t.effect),t.trampoline}function eYe(){let e={next:void 0,callback:tYe,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function tYe(){}function pt(){}var In=Object.freeze([]),gt=Object.freeze({});var Qf=c(te(),1);var Qae=c(te(),1),oYe=()=>{},se=typeof document<"u"?Qae.useLayoutEffect:oYe;var H9=c(te(),1),sW=H9.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function Jae(){return H9.useContext(sW)}var ele=c(T(),1);function bg(e){let{children:t,elementsRef:o,labelsRef:r,onMapChange:n}=e,i=le(n),[,s]=Qf.useState(!1),a=Dt(nYe).current,l=Dt(rYe).current,d=Qf.useRef(0),u=Qf.useRef(!0),f=Qf.useRef(null),p=Qf.useRef(null),m=le(()=>{u.current||(u.current=!0,s(x=>!x))}),g=le((x,k)=>{l.set(x,k),m()}),h=le(x=>{l.delete(x),m()}),b=le(x=>{let k=new Map;return o.current.length=0,r&&(r.current.length=0),x.forEach(C=>{k.set(C.element,{...C.registration.metadata??{},index:C.index}),o.current[C.index]=C.element,r&&(r.current[C.index]=C.registration.label!==void 0?C.registration.label:C.registration.textRef?.current?.textContent??C.element.textContent)}),d.current=o.current.length,k});function v(x){if(p.current?.disconnect(),p.current=null,typeof MutationObserver!="function"||x.length<2)return;let k=new MutationObserver(S=>{if(!aYe(S))return;let R=null;for(let E of x)if(E.isConnected){if(R&&tle(R,E)>0){k.disconnect(),m();return}R=E}});p.current=k;let C=new Set;for(let S=1;S<x.length;S+=1){let R=sYe(x[S-1],x[S]);R&&C.add(R)}C.forEach(S=>k.observe(S,{childList:!0}))}let _=le(()=>{let[x,k]=iYe(l),C=b(x),S=f.current,R=!S||S.length!==x.length||x.some((E,I)=>{let B=S[I];return E.index!==B.index||E.element!==B.element||E.registration.index!==B.registration.index||E.registration.metadata!==B.registration.metadata});v(k),f.current=x,u.current=!1,R&&(a.forEach(E=>E(C)),i(C))});se(()=>(!u.current&&f.current&&b(f.current),()=>{o.current=[],r&&(r.current=[])}),[o,r,b]),se(()=>{u.current&&_()}),se(()=>()=>{p.current?.disconnect(),u.current=!0},[]);let y=le(x=>(a.add(x),()=>{a.delete(x)})),w=Qf.useMemo(()=>({register:g,unregister:h,subscribeMapChange:y,nextIndexRef:d}),[g,h,y,d]);return(0,ele.jsx)(sW.Provider,{value:w,children:t})}function rYe(){return new Map}function nYe(){return new Set}function iYe(e){let t=new Set,o=[],r=[];e.forEach((i,s)=>{if(!s.isConnected)return;let a=i.index,l={index:a??-1,element:s,registration:i};a===null?r.push(l):a>=0&&(t.add(a),o.push(l))});let n=0;return r.sort((i,s)=>tle(i.element,s.element)),r.forEach(i=>{for(;t.has(n);)n+=1;i.index=n,o.push(i),n+=1}),t.size>0&&o.sort((i,s)=>i.index-s.index),[o,r.map(i=>i.element)]}function sYe(e,t){let o=e.parentElement;for(;o&&!o.contains(t);)o=o.parentElement;return o}function aYe(e){for(let t of e)for(let o=0;o<t.removedNodes.length;o+=1)if(t.removedNodes[o].isConnected)return!0;return!1}function tle(e,t){return e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}function lYe(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 cYe=lYe("https://base-ui.com/production-error","Base UI"),ot=cYe;var _g=c(te(),1);function Ai(e,t,o,r){let n=Dt(rle).current;return dYe(n,e,t,o,r)&&nle(n,[e,t,o,r]),n.callback}function ole(e){let t=Dt(rle).current;return uYe(t,e)&&nle(t,e),t.callback}function rle(){return{callback:null,cleanup:null,refs:[]}}function dYe(e,t,o,r,n){return e.refs[0]!==t||e.refs[1]!==o||e.refs[2]!==r||e.refs[3]!==n}function uYe(e,t){return e.refs.length!==t.length||e.refs.some((o,r)=>o!==t[r])}function nle(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 sle=c(te(),1);var ile=c(te(),1),fYe=parseInt(ile.version,10);function $w(e){return fYe>=e}function aW(e){if(!sle.isValidElement(e))return null;let t=e,o=t.props;return($w(19)?o?.ref:t.ref)??null}function aT(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function ale(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 lle(e,t){return typeof e=="function"?e(t):e}function U9(e,t){return typeof e=="function"?e(t):e}var lW={};function st(e,t,o,r,n){if(!o&&!r&&!n&&!e)return W9(t);let i=W9(e);return t&&(i=lT(i,t)),o&&(i=lT(i,o)),r&&(i=lT(i,r)),n&&(i=lT(i,n)),i}function cle(e){if(e.length===0)return lW;if(e.length===1)return W9(e[0]);let t=W9(e[0]);for(let o=1;o<e.length;o+=1)t=lT(t,e[o]);return t}function W9(e){return cW(e)?{...ule(e,lW)}:pYe(e)}function lT(e,t){return cW(t)?ule(t,e):mYe(e,t)}function pYe(e){let t={...e};for(let o in t){let r=t[o];dle(o,r)&&(t[o]=fle(r))}return t}function mYe(e,t){if(!t)return e;for(let o in t){let r=t[o];switch(o){case"style":{e[o]=aT(e.style,r);break}case"className":{e[o]=dW(e.className,r);break}default:dle(o,r)?e[o]=gYe(e[o],r):e[o]=r}}return e}function dle(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 cW(e){return typeof e=="function"}function ule(e,t){return cW(e)?e(t):e??lW}function gYe(e,t){return t?e?(...o)=>{let r=o[0];if(ple(r)){let i=r;cT(i);let s=t(...o);return i.baseUIHandlerPrevented||e?.(...o),s}let n=t(...o);return e?.(...o),n}:fle(t):e}function fle(e){return e&&((...t)=>{let o=t[0];return ple(o)&&cT(o),e(...t)})}function cT(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function dW(e,t){return t?e?t+" "+e:t:e}function ple(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}var uW=c(te(),1);function ke(e,t,o={}){let r=t.render;o.enabled!==!1&&(r=vYe(r));let n=hYe(t,o,r);if(o.enabled===!1)return null;let i=o.state??gt;return yYe(e,r,n,i)}function hYe(e,t,o){let{className:r,style:n}=e,{state:i=gt,ref:s,props:a,stateAttributesMapping:l,enabled:d=!0}=t,u=d?lle(r,i):void 0,f=d?U9(n,i):void 0,p=d?ale(i,l):gt,m=d&&a?bYe(a):void 0,g=d?aT(p,m)??{}:gt;return typeof document<"u"&&(d?Array.isArray(s)?g.ref=ole([g.ref,aW(o),...s]):g.ref=Ai(g.ref,aW(o),s):Ai(null,null)),d?(u!==void 0&&(g.className=dW(g.className,u)),f!==void 0&&(g.style=aT(g.style,f)),g):gt}function bYe(e){return Array.isArray(e)?cle(e):st(void 0,e)}var _Ye=Symbol.for("react.lazy");function vYe(e){if(e?.$$typeof!==_Ye)return e;let t=_g.Children.toArray(e)[0];return _g.isValidElement(t)?t:e}function yYe(e,t,o,r){if(t){if(typeof t=="function")return t(o,r);let n=st(o,t.props);return n.ref=o.ref,_g.cloneElement(t,n)}if(e&&typeof e=="string")return wYe(e,o);throw new Error(ot(8))}function wYe(e,t){return e==="button"?(0,uW.createElement)("button",{type:"button",...t,key:t.key}):e==="img"?(0,uW.createElement)("img",{alt:"",...t,key:t.key}):_g.createElement(e,t)}var G9=c(te(),1);var mle=0;function xYe(e,t="mui"){let[o,r]=G9.useState(e),n=e||o;return G9.useEffect(()=>{o==null&&(mle+=1,r(`${t}-${mle}`))},[o,t]),n}var gle=sT.useId;function Oa(e,t){if(gle!==void 0){let o=gle();return e??(t?`${t}-${o}`:o)}return xYe(e,t)}function Yt(e){return Oa(e,"base-ui")}var K9=c(te(),1);var ge={};ro(ge,{cancelOpen:()=>XYe,chipRemovePress:()=>OYe,clearPress:()=>BYe,closePress:()=>IYe,closeWatcher:()=>UYe,decrementPress:()=>NYe,disabled:()=>QYe,drag:()=>YYe,escapeKey:()=>HYe,focusOut:()=>jYe,imperativeAction:()=>tKe,incrementPress:()=>AYe,initial:()=>eKe,inputBlur:()=>VYe,inputChange:()=>LYe,inputClear:()=>DYe,inputPaste:()=>FYe,inputPress:()=>zYe,itemPress:()=>RYe,keyboard:()=>GYe,linkPress:()=>PYe,listNavigation:()=>WYe,missing:()=>JYe,none:()=>kYe,outsidePress:()=>TYe,pointer:()=>$Ye,scrub:()=>qYe,siblingOpen:()=>ZYe,swipe:()=>oKe,trackPress:()=>MYe,triggerFocus:()=>EYe,triggerHover:()=>CYe,triggerPress:()=>SYe,wheel:()=>KYe,windowResize:()=>rKe});var kYe="none",SYe="trigger-press",CYe="trigger-hover",EYe="trigger-focus",TYe="outside-press",RYe="item-press",IYe="close-press",PYe="link-press",BYe="clear-press",OYe="chip-remove-press",MYe="track-press",AYe="increment-press",NYe="decrement-press",LYe="input-change",DYe="input-clear",VYe="input-blur",FYe="input-paste",zYe="input-press",jYe="focus-out",HYe="escape-key",UYe="close-watcher",WYe="list-navigation",GYe="keyboard",$Ye="pointer",YYe="drag",KYe="wheel",qYe="scrub",XYe="cancel-open",ZYe="sibling-open",QYe="disabled",JYe="missing",eKe="initial",tKe="imperative-action",oKe="swipe",rKe="window-resize";function Ae(e,t,o,r){let n=!1,i=!1,s=r??gt;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 pW=c(te(),1);var hle=c(te(),1);function Yw(e){hle.useEffect(e,In)}var $9=null,q5t=globalThis.requestAnimationFrame,fW=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.callbacks[o]=null,this.callbacksCount-=1)}},Y9=new fW;var ci=class e{static create(){return new e}static request(t){return Y9.request(t)}static cancel(t){return Y9.cancel(t)}currentId=$9;request(t){this.cancel(),this.currentId=Y9.request(()=>{this.currentId=$9,t()})}cancel=()=>{this.currentId!==$9&&(Y9.cancel(this.currentId),this.currentId=$9)};disposeEffect=()=>this.cancel};function ps(){let e=Dt(ci.create).current;return Yw(e.disposeEffect),e}function gn(e,t=!1,o=!1,r=!1){let[n,i]=pW.useState(e&&t?"idle":void 0),[s,a]=pW.useState(e&&!r);return e&&!s&&(a(!0),i("starting")),!e&&s&&n!=="ending"&&!o&&i("ending"),!e&&!s&&n==="ending"&&i(void 0),se(()=>{if(!e&&s&&n!=="ending"&&o){let l=ci.request(()=>{i("ending")});return()=>{ci.cancel(l)}}},[e,s,n,o]),se(()=>{if(!e||t)return;let l=ci.request(()=>{i(void 0)});return()=>{ci.cancel(l)}},[t,e]),se(()=>{if(!e||!t)return;e&&s&&n!=="idle"&&i("starting");let l=ci.request(()=>{i("idle")});return()=>{ci.cancel(l)}},[t,e,s,n]),{mounted:s,setMounted:a,transitionStatus:n}}function ble(e){let{open:t,defaultOpen:o=!1,onOpenChange:r,disabled:n}=e,[i,s]=Ba({controlled:t,default:o,name:"Collapsible",state:"open"}),{mounted:a,setMounted:l,transitionStatus:d}=gn(i,!0,!0),u=Yt(),[f,p]=K9.useState(),m=f===null?void 0:f??u,g=le(h=>{let b=!i,v=Ae(ge.triggerPress,h.nativeEvent);r(b,v),!v.isCanceled&&s(b)});return K9.useMemo(()=>({defaultPanelId:u,disabled:n,handleTrigger:g,mounted:a,open:i,panelId:m,setMounted:l,setOpen:s,setPanelIdState:p,transitionStatus:d}),[u,n,g,a,i,m,l,s,p,d])}var q9=c(te(),1),mW=q9.createContext(void 0);function X9(){let e=q9.useContext(mW);if(e===void 0)throw new Error(ot(15));return e}var h_=c(te(),1);function Ni(e={}){let{guess:t,label:o,metadata:r,textRef:n,index:i}=e,{register:s,unregister:a,subscribeMapChange:l,nextIndexRef:d}=Jae(),u=h_.useRef(-1),[f,p]=h_.useState(i==null&&t?()=>{if(u.current===-1){let b=d.current;d.current+=1,u.current=b}return u.current}:-1),m=i??f,g=h_.useRef(null),h=h_.useCallback(b=>{let v=g.current;v&&a(v),g.current=b,b&&s(b,{metadata:r??null,index:i??null,label:o,textRef:n})},[i,s,a,r,o,n]);return se(()=>{if(i==null)return l(b=>{let v=g.current?b.get(g.current)?.index:null;v!=null&&p(v)})},[i,l]),{ref:h,index:m}}var Jf={};ro(Jf,{endingStyle:()=>gW,startingStyle:()=>dT});var dT="data-starting-style",gW="data-ending-style";var nKe={[dT]:""},iKe={[gW]:""},hn={transitionStatus(e){return e==="starting"?nKe:e==="ending"?iKe:null}};var _le="data-open",vle="data-closed",yle=Jf.startingStyle,m2t=Jf.endingStyle;var xle="data-panel-open";var aKe={[_le]:""},lKe={[vle]:""},kle={open(e){return e?{[xle]:""}:null}},Sle={open(e){return e?aKe:lKe}};var qw=c(te(),1);function Z9(){return typeof window<"u"}function Kr(e){return Q9(e)?(e.nodeName||"").toLowerCase():"#document"}function wt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function hu(e){var t;return(t=(Q9(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Q9(e){return Z9()?e instanceof Node||e instanceof wt(e).Node:!1}function mt(e){return Z9()?e instanceof Element||e instanceof wt(e).Element:!1}function xt(e){return Z9()?e instanceof HTMLElement||e instanceof wt(e).HTMLElement:!1}function gu(e){return!Z9()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof wt(e).ShadowRoot}function __(e){let{overflow:t,overflowX:o,overflowY:r,display:n}=Pn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+o)&&n!=="inline"&&n!=="contents"}function Cle(e){return/^(table|td|th)$/.test(Kr(e))}function uT(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var cKe=/transform|translate|scale|rotate|perspective|filter/,dKe=/paint|layout|strict|content/,b_=e=>!!e&&e!=="none",hW;function J9(e){let t=mt(e)?Pn(e):e;return b_(t.transform)||b_(t.translate)||b_(t.scale)||b_(t.rotate)||b_(t.perspective)||!eP()&&(b_(t.backdropFilter)||b_(t.filter))||cKe.test(t.willChange||"")||dKe.test(t.contain||"")}function Ele(e){let t=ms(e);for(;xt(t)&&!Xs(t);){if(J9(t))return t;if(uT(t))return null;t=ms(t)}return null}function eP(){return hW==null&&(hW=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),hW}function Xs(e){return/^(html|body|#document)$/.test(Kr(e))}function Pn(e){return wt(e).getComputedStyle(e)}function fT(e){return mt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ms(e){if(Kr(e)==="html")return e;let t=e.assignedSlot||e.parentNode||gu(e)&&e.host||hu(e);return gu(t)?t.host:t}function Tle(e){let t=ms(e);return Xs(t)?(e.ownerDocument||e).body:xt(t)&&__(t)?t:Tle(t)}function vg(e,t,o){var r;t===void 0&&(t=[]),o===void 0&&(o=!0);let n=Tle(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),s=wt(n);if(i){let a=tP(s);return t.concat(s,s.visualViewport||[],__(n)?n:[],a&&o?vg(a):[])}else return t.concat(n,vg(n,[],o))}function tP(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var oP=c(te(),1),bW=oP.createContext(void 0);function yg(e=!1){let t=oP.useContext(bW);if(t===void 0&&!e)throw new Error(ot(16));return t}var Rle=c(te(),1);function Ile(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:Rle.useMemo(()=>{let d={onKeyDown(u){o&&t&&u.key!=="Tab"&&u.preventDefault()}};return r||(d.tabIndex=n,!i&&o&&(d.tabIndex=t?n:-1)),(i&&(t||s)||!i&&o)&&(d["aria-disabled"]=o),i&&(!t||a)&&(d.disabled=o),d},[r,o,t,s,a,i,n])}}function Je(e){return e?.ownerDocument||document}function Kw(e,t,{detail:o=0}={}){e.dispatchEvent(new(wt(e)).PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:o,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function di(e={}){let{disabled:t=!1,focusableWhenDisabled:o,tabIndex:r=0,native:n=!0,composite:i}=e,s=qw.useRef(null),a=yg(!0),l=i??a!==void 0,{props:d}=Ile({focusableWhenDisabled:o,disabled:t,composite:l,tabIndex:r,isNativeButton:n}),u=qw.useCallback(()=>{let m=s.current;_W(m)&&l&&t&&d.disabled===void 0&&m.disabled&&(m.disabled=!1)},[t,d.disabled,l]);se(u,[u]);let f=qw.useCallback((m={})=>{let{onClick:g,onMouseDown:h,onKeyUp:b,onKeyDown:v,onPointerDown:_,...y}=m;return st({onClick(w){if(t){w.preventDefault();return}g?.(w)},onMouseDown(w){t||h?.(w)},onKeyDown(w){if(t||(cT(w),v?.(w),w.baseUIHandlerPrevented))return;let x=w.target===w.currentTarget,k=w.currentTarget,C=_W(k),S=!n&&uKe(k),R=x&&(n?C:!S),E=w.key==="Enter",I=w.key===" ",B=k.getAttribute("role"),O=B?.startsWith("menuitem")||B==="option"||B==="gridcell";if(x&&l&&I){if(w.defaultPrevented&&O)return;w.preventDefault(),(!n||C)&&(w.preventBaseUIHandler(),Kw(k,w));return}if(!R||n||!I&&!E){x&&S&&I&&w.preventDefault();return}w.defaultPrevented||(w.preventDefault(),E&&(w.preventBaseUIHandler(),Kw(k,w)))},onKeyUp(w){if(!t){if(cT(w),b?.(w),w.target===w.currentTarget&&n&&l&&_W(w.currentTarget)&&w.key===" "){w.preventDefault();return}w.baseUIHandlerPrevented||w.target===w.currentTarget&&!n&&!l&&!w.defaultPrevented&&w.key===" "&&(w.preventBaseUIHandler(),Kw(w.currentTarget,w))}},onPointerDown(w){if(t){w.preventDefault();return}_?.(w)}},n?{type:"button"}:{role:"button"},d,y)},[t,d,l,n]),p=le(m=>{s.current=m,u()});return{getButtonProps:f,buttonRef:p}}function _W(e){return xt(e)&&e.tagName==="BUTTON"}function uKe(e){return xt(e)&&e.tagName==="A"&&!!e.href}var gs=c(te(),1);function ut(e,t,o,r){return e.addEventListener(t,o,r),()=>{e.removeEventListener(t,o,r)}}function co(e){let t=Dt(fKe,e).current;return t.next=e,se(t.effect),t}function fKe(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var Ble=c(te(),1);var vW=c(bu(),1);function Yc(e){return e==null?e:"current"in e?e.current:e}var rP=null;function pKe(e){if(!rP){let t=[];rP=t,queueMicrotask(()=>{rP=null,vW.flushSync(()=>{for(let o of t)o()})})}rP.push(e)}function xl(e,t=!1,o=!1){let r=ps();return le((n,i=null)=>{r.cancel();let s=Yc(e);if(s==null)return;let a=s,l=()=>{if(!o){vW.flushSync(n);return}pKe(()=>{i?.aborted||n()})};if(typeof a.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){n();return}function d(){Promise.all(a.getAnimations().map(u=>u.finished)).then(()=>{i?.aborted||l()},()=>{if(i?.aborted)return;if(a.getAnimations().some(f=>f.pending||f.playState!=="finished")){d();return}l()})}if(t){let u=dT;if(!a.hasAttribute(u)){r.request(d);return}let f=new MutationObserver(()=>{a.hasAttribute(u)||(f.disconnect(),d())});f.observe(a,{attributes:!0,attributeFilter:[u]}),i?.addEventListener("abort",()=>f.disconnect(),{once:!0});return}r.request(d)})}function cr(e){let{enabled:t=!0,open:o,ref:r,batch:n=!1,onComplete:i}=e,s=le(i),a=xl(r,o,n);Ble.useEffect(()=>{if(!t)return;let l=new AbortController;return a(s,l.signal),()=>{l.abort()}},[t,o,s,a])}var pT={height:void 0,width:void 0};function Mle(e){let{externalRef:t,hiddenUntilFound:o,id:r,keepMounted:n,mounted:i,onOpenChange:s,open:a,setMounted:l,setOpen:d,transitionStatus:u}=e,f=gs.useRef(null),p=gs.useRef(null),[m,g]=gs.useState(pT),h=gs.useRef(pT),b=gs.useRef(!1),v=gs.useRef(a),_=gs.useRef(!1),[y,w]=gs.useState(!1),x=gs.useRef(null),k=Ai(t,f),C=co(a),S=xl(f),R=!a&&!i,E=y?"idle":u,I=a&&(v.current||_.current),B=!a&&i&&p.current==="css-animation"&&m.height===void 0&&m.width===void 0?h.current:m,O=o&&R&&p.current!=="css-animation",M=le((L,z=!0)=>{z&&(h.current=L),g(L)}),N=le(()=>{x.current?.(),x.current=null}),j=le(L=>{N(),x.current=()=>{x.current=null,L()}}),V=le(()=>{a&&i&&p.current==="css-animation"&&(_.current=!0)});se(()=>{!y||u==="starting"||w(!1)},[y,u]),gs.useEffect(()=>()=>{V(),N()},[V,N]),se(()=>{let L=f.current;if(!L)return;!a&&x.current&&N();let z=mKe(L,I);if(p.current=z,a&&u==="idle"&&v.current&&z==="css-animation"){h.current=Xw(L);return}if(a&&u==="starting"){let $=b.current;if(b.current=!1,z==="none"){M(Xw(L)),w(!0);return}if(z==="css-transition"){let H=gKe(L);if(M(Xw(L)),!$)return H;let J=nP(L,"transition-duration","0s");return j(J),w(!0),H}M(Xw(L));let K=nP(L,"animation-name","none");if(!$){K();return}let q=nP(L,"animation-duration","0s");K(),j(q),w(!0);return}if(!a&&i&&(u==="idle"||u==="starting")){if(v.current=!1,_.current=!1,z==="none"){M(pT,!1),l(!1);return}M(Xw(L));return}if(u!=="ending")return;if(z==="none"){l(!1);return}let F=Xw(L);if(!(F.height>0||F.width>0)){l(!1);return}M(F),z==="css-animation"&&nP(L,"animation-name","none")()},[i,a,N,M,l,j,I,u]),cr({enabled:a&&i&&E==="idle",open:!0,ref:f,onComplete(){a&&M(pT,!1)}}),gs.useEffect(()=>{if(a||!i||E!=="ending"||!f.current)return;let z=new AbortController,F=-1;function G(){C.current||(l(!1),M(pT,!1))}return F=ci.request(()=>{S(G,z.signal)}),()=>{ci.cancel(F),z.abort()}},[C,i,a,E,S,M,l]),se(()=>{let L=f.current;!L||!o||!R||L.setAttribute("hidden","until-found")},[R,o]),gs.useEffect(function(){let z=f.current;if(!z)return;function F(G){let $=Ae(ge.none,G);s(!0,$),!$.isCanceled&&(b.current=!0,d(!0))}return ut(z,"beforematch",F)},[s,d]);let A=n||o||i||a;return{height:B.height,props:{...O?{[yle]:""}:void 0,hidden:R,id:r},ref:k,shouldPreventOpenAnimation:I,shouldRender:A,transitionStatus:E,width:B.width}}function Xw(e){return{height:e.scrollHeight,width:e.scrollWidth}}function mKe(e,t){let o=wt(e).getComputedStyle(e),r=(o.animationName.split(",").map(i=>i.trim()).some(i=>i!==""&&i!=="none")||t)&&Ole(o.animationDuration),n=Ole(o.transitionDuration);return r&&n||n?"css-transition":r?"css-animation":"none"}function Ole(e){return e.split(",").map(t=>t.trim()).some(t=>t!==""&&Number.parseFloat(t)>0)}function nP(e,t,o){let r=e.style.getPropertyValue(t),n=e.style.getPropertyPriority(t);return e.style.setProperty(t,o),()=>{if(r===""){e.style.removeProperty(t);return}e.style.setProperty(t,r,n)}}function gKe(e){let t={"justify-content":e.style.justifyContent,"align-items":e.style.alignItems,"align-content":e.style.alignContent,"justify-items":e.style.justifyItems};Object.keys(t).forEach(n=>{e.style.setProperty(n,"initial","important")});function o(){Object.entries(t).forEach(([n,i])=>{if(i===""){e.style.removeProperty(n);return}e.style.setProperty(n,i)})}let r=ci.request(o);return()=>{ci.cancel(r),o()}}var Kt={};ro(Kt,{engine:()=>SW,env:()=>EW,mediaQuery:()=>TW,os:()=>xW,screenReader:()=>CW});var xW={};ro(xW,{android:()=>Lle,apple:()=>wW,ios:()=>yW,linux:()=>yKe,mac:()=>Dle,windows:()=>vKe});function hKe(){return typeof navigator>"u"?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:bKe,platform:_Ke,maxTouchPoints:Ale}=hKe(),v_=bKe.toLowerCase(),y_=_Ke.toLowerCase();var yW=/^i(os$|p)/.test(y_)||y_==="macintel"&&Ale>1,Nle="android",Lle=y_===Nle||v_.includes(Nle),Dle=!yW&&y_.startsWith("mac"),vKe=y_.startsWith("win"),yKe=!Lle&&/^(linux|chrome os)/.test(y_),wW=Dle||yW;var SW={};ro(SW,{blink:()=>xKe,gecko:()=>wKe,webkit:()=>kW});var kW=typeof CSS<"u"&&!!CSS.supports?.("-webkit-backdrop-filter:none"),wKe=!kW&&v_.includes("firefox"),xKe=!kW&&v_.includes("chrom");var CW={};ro(CW,{voiceOver:()=>kKe});var kKe=wW;var EW={};ro(EW,{jsdom:()=>SKe});var SKe=/jsdom|happydom/.test(v_);var TW={};ro(TW,{iOS:()=>CKe});var CKe="@supports (-webkit-touch-callout: none)";var mT=0,Li=class e{static create(){return new e}currentId=mT;start(t,o){this.clear(),this.currentId=setTimeout(()=>{this.currentId=mT,o()},t)}isStarted(){return this.currentId!==mT}clear=()=>{this.currentId!==mT&&(clearTimeout(this.currentId),this.currentId=mT)};disposeEffect=()=>this.clear};function Ft(){let e=Dt(Li.create).current;return Yw(e.disposeEffect),e}var Vle={},Fle={},zle="";function iP(e,t){return __(e)?e:t}function jle(e,t,o){return/hidden|clip/.test(e.getComputedStyle(iP(t,o)).overflowY)}function EKe(e){if(typeof document>"u")return!1;let t=Je(e);return wt(t).innerWidth-t.documentElement.clientWidth>0}function TKe(e){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;let o=Je(e),r=o.documentElement,n=o.body,i=iP(r,n),s=i.style.overflowY,a=r.style.scrollbarGutter;r.style.scrollbarGutter="stable",i.style.overflowY="scroll";let l=i.offsetWidth;i.style.overflowY="hidden";let d=i.offsetWidth;return i.style.overflowY=s,r.style.scrollbarGutter=a,l===d}function RKe(e){let t=Je(e),o=t.documentElement,r=t.body,n=iP(o,r),i={overflowY:n.style.overflowY,overflowX:n.style.overflowX};return Object.assign(n.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(n.style,i)}}function IKe(e){let t=Je(e),o=t.documentElement,r=t.body,n=wt(o),i=0,s=0,a=!1,l=ci.create();if(Kt.engine.webkit&&(n.visualViewport?.scale??1)!==1)return()=>{};function d(){let m=n.getComputedStyle(o),g=n.getComputedStyle(r),v=(m.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";i=o.scrollTop,s=o.scrollLeft,Vle={scrollbarGutter:o.style.scrollbarGutter,overflowY:o.style.overflowY,overflowX:o.style.overflowX},zle=o.style.scrollBehavior,Fle={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let _=o.scrollHeight>o.clientHeight,y=o.scrollWidth>o.clientWidth,w=m.overflowY==="scroll"||g.overflowY==="scroll",x=m.overflowX==="scroll"||g.overflowX==="scroll",k=Math.max(0,n.innerWidth-r.clientWidth),C=Math.max(0,n.innerHeight-r.clientHeight),S=parseFloat(g.marginTop)+parseFloat(g.marginBottom),R=parseFloat(g.marginLeft)+parseFloat(g.marginRight),E=iP(o,r);if(a=TKe(e),a){o.style.scrollbarGutter=v,E.style.overflowY="hidden",E.style.overflowX="hidden";return}Object.assign(o.style,{scrollbarGutter:v,overflowY:"hidden",overflowX:"hidden"}),(_||w)&&(o.style.overflowY="scroll"),(y||x)&&(o.style.overflowX="scroll"),Object.assign(r.style,{position:"relative",height:S||C?`calc(100dvh - ${S+C}px)`:"100dvh",width:R||k?`calc(100vw - ${R+k}px)`:"100vw",boxSizing:"border-box",overflowY:"hidden",overflowX:"hidden",scrollBehavior:"unset"}),r.scrollTop=i,r.scrollLeft=s,o.setAttribute("data-base-ui-scroll-locked",""),o.style.scrollBehavior="unset"}function u(){Object.assign(o.style,Vle),Object.assign(r.style,Fle),a||(o.scrollTop=i,o.scrollLeft=s,o.removeAttribute("data-base-ui-scroll-locked"),o.style.scrollBehavior=zle)}function f(){u(),l.request(d)}d();let p=ut(n,"resize",f);return()=>{l.cancel(),u(),typeof n.removeEventListener=="function"&&p()}}var RW=class{lockCount=0;restore=null;timeoutLock=Li.create();timeoutUnlock=Li.create();acquire(t){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(t)),this.release}release=()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(t){if(this.lockCount===0||this.restore!==null)return;let o=Je(t),r=o.documentElement,n=o.body,i=wt(r);if(jle(i,r,n)){let a=new i.MutationObserver(()=>{jle(i,r,n)||(a.disconnect(),this.restore=null,this.lock(t))}),l={attributes:!0};a.observe(r,l),a.observe(n,l),this.restore=()=>a.disconnect();return}let s=Kt.os.ios||!EKe(t);this.restore=s?RKe(t):IKe(t)}},PKe=new RW;function Hle(e=!0,t=null){se(()=>{if(e)return PKe.acquire(t)},[e,t])}var hs=c(te(),1);function Zs(e){e.preventDefault(),e.stopPropagation()}function Ule(e){return"nativeEvent"in e}function wg(e){return e.pointerType===""&&e.isTrusted?!0:Kt.os.android&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Zw(e){return Kt.env.jsdom?!1:!Kt.os.android&&e.width===0&&e.height===0||Kt.os.android&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function Ma(e,t){let o=["mouse","pen"];return t||o.push("",void 0),o.includes(e)}function Wle(e){let t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}function Sr(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function He(e,t){if(!e||!t)return!1;let o=t.getRootNode?.();if(e.contains(t))return!0;if(o&&gu(o)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function So(e){return"composedPath"in e?e.composedPath()[0]??e.target:e.target}var gT="data-base-ui-focusable";var IW="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",hT="ArrowLeft",bT="ArrowRight",PW="ArrowUp",sP="ArrowDown";var Gle="data-open",$le="data-closed";var Yle="data-anchor-hidden";var w_={};ro(w_,{popupOpen:()=>aP,pressed:()=>BW});var aP="data-popup-open",BW="data-pressed";var OKe={[aP]:""},MKe={[aP]:"",[BW]:""},AKe={[Gle]:""},NKe={[$le]:""},LKe={[Yle]:""},Qw={open(e){return e?OKe:null}},_T={open(e){return e?MKe:null}},Kc={open(e){return e?AKe:NKe},anchorHidden(e){return e?LKe:null}},xg={...Kc,...hn};var PIt=w_.popupOpen,vT="data-trigger-disabled";function kg(e,t){if(!mt(e))return!1;let o=e;if(t.hasElement(o))return!o.hasAttribute(vT);for(let[,r]of t.entries())if(He(r,o))return!r.hasAttribute(vT);return!1}function lP(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 qle(e){return e.matches("html,body")}function x_(e){return xt(e)&&e.matches(IW)}function OW(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${IW}`)!=null}function yT(e){return e?e.getAttribute("role")==="combobox"&&x_(e):!1}function Xle(e){if(!e||Kt.env.jsdom)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function k_(e){return e?e.hasAttribute(gT)?e:e.querySelector(`[${gT}]`)||e:null}function DKe(e,t){return t!=null&&!Ma(t)?0:typeof e=="function"?e():e}function qc(e,t,o){let r=DKe(e,o);return typeof r=="number"?r:r?.[t]}function MW(e){return typeof e=="function"?e():e}function cP(e,t){return t||e==="click"||e==="mousedown"}function Zle(e){return e?.includes("mouse")&&e!=="mousedown"}var Qle=c(T(),1),Jle=hs.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Li,currentIdRef:{current:null},currentContextRef:{current:null}});function VKe(e,t){e.current=t.current}function AW(e){let{children:t,delay:o,timeoutMs:r=0}=e,n=hs.useRef(o),i=hs.useRef(o),s=hs.useRef(null),a=hs.useRef(null),l=Ft();return se(()=>{if(i.current=o,!s.current){n.current=o;return}n.current={open:qc(n.current,"open"),close:qc(o,"close")}},[o,s,n,i]),(0,Qle.jsx)(Jle.Provider,{value:hs.useMemo(()=>({hasProvider:!0,delayRef:n,initialDelayRef:i,currentIdRef:s,timeoutMs:r,currentContextRef:a,timeout:l}),[r,l]),children:t})}function NW(e,t={open:!1}){let{open:o}=t,r="rootStore"in e?e.rootStore:e,n=r.useState("floatingId"),i=hs.useContext(Jle),{currentIdRef:s,delayRef:a,timeoutMs:l,initialDelayRef:d,currentContextRef:u,hasProvider:f,timeout:p}=i,[m,g]=hs.useState(!1),h=hs.useRef(o);return se(()=>{h.current=o},[o]),se(()=>{function b(){u.current?.setIsInstantPhase(!1),s.current=null,u.current=null,a.current=d.current,p.clear()}if(s.current&&!o&&s.current===n){if(g(!1),l){let v=n;return p.start(l,()=>{r.select("open")||s.current&&s.current!==v||b()}),()=>{(h.current||s.current!==v)&&p.clear()}}b()}},[o,n,s,a,l,d,u,p,r]),se(()=>{if(!o)return;let b=u.current,v=s.current;p.clear(),u.current={onOpenChange:r.setOpen,setIsInstantPhase:g},s.current=n,a.current={open:0,close:qc(d.current,"close")},v!==null&&v!==n?(g(!0),b?.setIsInstantPhase(!0),b?.onOpenChange(!1,Ae(ge.none))):(g(!1),b?.setIsInstantPhase(!1))},[o,n,r,s,a,d,u,p]),se(()=>()=>{if(s.current===n){if(u.current=null,!h.current)return;s.current=null,VKe(a,d),p.clear()}},[u,s,a,n,d,p]),hs.useMemo(()=>({activeIdRef:s,hasProvider:f,delayRef:a,isInstantPhase:m}),[s,f,a,m])}var zi=c(te(),1);function Di(...e){return()=>{for(let t=0;t<e.length;t+=1){let o=e[t];o&&o()}}}var uP=c(te(),1);var ece={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},dP={...ece,position:"fixed",top:0,left:0},tce={...ece,position:"absolute"};var oce=c(T(),1),ep=uP.forwardRef(function(t,o){let[r,n]=uP.useState();return se(()=>{Kt.screenReader.voiceOver&&Kt.engine.webkit&&n("button")},[]),(0,oce.jsx)("span",{...t,ref:o,style:dP,"aria-hidden":r?void 0:!0,...{tabIndex:0,role:r},"data-base-ui-focus-guard":""})});var Sg=Math.min,Xc=Math.max,Cg=Math.round,xT=Math.floor,_u=e=>({x:e,y:e}),FKe={left:"right",right:"left",bottom:"top",top:"bottom"};function pP(e,t,o){return Xc(e,Sg(t,o))}function vu(e,t){return typeof e=="function"?e(t):e}function Vi(e){return e.split("-")[0]}function kl(e){return e.split("-")[1]}function mP(e){return e==="x"?"y":"x"}function kT(e){return e==="y"?"height":"width"}function Qs(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function ST(e){return mP(Qs(e))}function ice(e,t,o){o===void 0&&(o=!1);let r=kl(e),n=ST(e),i=kT(n),s=n==="x"?r===(o?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=wT(s)),[s,wT(s)]}function sce(e){let t=wT(e);return[fP(e),t,fP(t)]}function fP(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var rce=["left","right"],nce=["right","left"],zKe=["top","bottom"],jKe=["bottom","top"];function HKe(e,t,o){switch(e){case"top":case"bottom":return o?t?nce:rce:t?rce:nce;case"left":case"right":return t?zKe:jKe;default:return[]}}function ace(e,t,o,r){let n=kl(e),i=HKe(Vi(e),o==="start",r);return n&&(i=i.map(s=>s+"-"+n),t&&(i=i.concat(i.map(fP)))),i}function wT(e){let t=Vi(e);return FKe[t]+e.slice(t.length)}function UKe(e){var t,o,r,n;return{top:(t=e.top)!=null?t:0,right:(o=e.right)!=null?o:0,bottom:(r=e.bottom)!=null?r:0,left:(n=e.left)!=null?n:0}}function gP(e){return typeof e!="number"?UKe(e):{top:e,right:e,bottom:e,left:e}}function tp(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 Eg(e,t){return t<0||t>=e.length}function S_(e,t){return Sl(e.current,{disabledIndices:t})}function Jw(e,t){return Sl(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Sl(e,{startingIndex:t=-1,decrement:o=!1,disabledIndices:r,amount:n=1}={}){let i=t;do i+=o?-n:n;while(i>=0&&i<=e.length-1&&op(e,i,r));return i}function op(e,t,o){if(typeof o=="function"?o(t):o?.includes(t)??!1)return!0;let n=e[t];return n?!C_(n)||n.matches(":disabled")?!0:!o&&(n.hasAttribute("disabled")||n.getAttribute("aria-disabled")==="true"):!1}function WKe(e){return e.visibility==="hidden"||e.visibility==="collapse"}function C_(e,t=e?Pn(e):null){return!e||!e.isConnected||!t||WKe(t)?!1:typeof e.checkVisibility=="function"?e.checkVisibility():t.display!=="none"&&t.display!=="contents"}var GKe='a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';function $Ke(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let o=e.getRootNode();return gu(o)?o.host:null}function DW(e){for(let t of Array.from(e.children))if(Kr(t)==="summary")return t;return null}function YKe(e,t){let o=DW(t);return!!o&&(e===o||He(o,e))}function lce(e){let t=e?Kr(e):"";return e!=null&&e.matches(GKe)&&(t!=="summary"||e.parentElement!=null&&Kr(e.parentElement)==="details"&&DW(e.parentElement)===e)&&(t!=="details"||DW(e)==null)&&(t!=="input"||e.type!=="hidden")}function cce(e){if(!lce(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=$Ke(t)){let o=t!==e,r=Kr(t)==="slot";if(t.hasAttribute("inert")||o&&Kr(t)==="details"&&!t.open&&!YKe(e,t)||t.hasAttribute("hidden")||!r&&!KKe(t,o))return!1}return!0}function KKe(e,t){let o=Pn(e);return t?o.display!=="none":C_(e,o)}function dce(e){let t=e.tabIndex;if(t<0){let o=Kr(e);if(o==="details"||o==="audio"||o==="video"||xt(e)&&e.isContentEditable)return 0}return t}function LW(e){if(Kr(e)!=="input")return null;let t=e;return t.type==="radio"&&t.name!==""?t:null}function qKe(e,t){let o=LW(e);if(!o)return!0;let r=t.find(n=>{let i=LW(n);return i?.name===o.name&&i.form===o.form&&i.checked});return r?r===o:t.find(n=>{let i=LW(n);return i?.name===o.name&&i.form===o.form})===o}function uce(e){if(xt(e)&&Kr(e)==="slot"){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return xt(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function fce(e,t){uce(e).forEach(o=>{lce(o)&&t.push(o),fce(o,t)})}function pce(e,t,o){uce(e).forEach(r=>{xt(r)&&r.matches(t)&&o.push(r),pce(r,t,o)})}function hP(e){return cce(e)&&dce(e)>=0}function VW(e){let t=[];return fce(e,t),t.filter(cce)}function e0(e){let t=VW(e);return t.filter(o=>dce(o)>=0&&qKe(o,t))}function mce(e,t){let o=e0(e),r=o.length;if(r===0)return;let n=Sr(Je(e)),i=o.indexOf(n),s=i===-1?t===1?0:r-1:i+t;return o[s]}function t0(e){return mce(Je(e).body,1)||e}function bP(e){return mce(Je(e).body,-1)||e}function gce(e,t){if(!e)return null;let o=e0(Je(e).body),r=o.length;if(r===0)return null;let n=o.indexOf(e);if(n===-1)return null;let i=(n+t+r)%r;return o[i]}function hce(e){return gce(e,1)}function bce(e){return gce(e,-1)}function rp(e,t){let o=t||e.currentTarget,r=e.relatedTarget;return!r||!He(o,r)}function _ce(e){e0(e).forEach(o=>{o.dataset.tabindex=o.getAttribute("tabindex")||"",o.setAttribute("tabindex","-1")})}function FW(e){let t=[];pce(e,"[data-tabindex]",t),t.forEach(o=>{let r=o.dataset.tabindex;delete o.dataset.tabindex,r?o.setAttribute("tabindex",r):o.removeAttribute("tabindex")})}function Cl(e,t,o=!0){return e.filter(n=>n.parentId===t).flatMap(n=>[...!o||n.context?.open?[n]:[],...Cl(e,n.id,o)])}function zW(e,t){let o=[],r=e.find(n=>n.id===t)?.parentId;for(;r;){let n=e.find(i=>i.id===r);r=n?.parentId,n&&(o=o.concat(n))}return o}function np(e){return`data-base-ui-${e}`}var _P=0;function o0(e,t={}){let{preventScroll:o=!1,sync:r=!1,shouldFocus:n}=t;cancelAnimationFrame(_P);function i(){n&&!n()||e?.focus({preventScroll:o})}if(r)return i(),pt;let s=requestAnimationFrame(i);return _P=s,()=>{_P===s&&(cancelAnimationFrame(s),_P=0)}}var jW={inert:new WeakMap,"aria-hidden":new WeakMap},vce="data-base-ui-inert",UW={inert:new WeakSet,"aria-hidden":new WeakSet},CT=new WeakMap,HW=0;function XKe(e){return UW[e]}function kce(e){return e?gu(e)?e.host:kce(e.parentNode):null}var yce=(e,t)=>t.map(o=>{if(e.contains(o))return o;let r=kce(o);return e.contains(r)?r:null}).filter(o=>o!=null),wce=e=>{let t=new Set;return e.forEach(o=>{let r=o;for(;r&&!t.has(r);)t.add(r),r=r.parentNode}),t},xce=(e,t,o)=>{let r=[],n=i=>{!i||o.has(i)||Array.from(i.children).forEach(s=>{Kr(s)!=="script"&&(t.has(s)?n(s):r.push(s))})};return n(e),r};function ZKe(e,t,o,r,{mark:n=!0}){let i=null;r?i="inert":o&&(i="aria-hidden");let s=null,a=null,l=yce(t,e),d=n?xce(t,wce(l),new Set(l)):[],u=[],f=[];if(i){let p=jW[i],m=XKe(i);a=m,s=p;let g=yce(t,Array.from(t.querySelectorAll("[aria-live]"))),h=l.concat(g);xce(t,wce(h),new Set(h)).forEach(v=>{let _=v.getAttribute(i),y=_!==null&&_!=="false",w=(p.get(v)||0)+1;p.set(v,w),u.push(v),w===1&&y&&m.add(v),y||v.setAttribute(i,i==="inert"?"":"true")})}return n&&d.forEach(p=>{let m=(CT.get(p)||0)+1;CT.set(p,m),f.push(p),m===1&&p.setAttribute(vce,"")}),HW+=1,()=>{s&&u.forEach(p=>{let g=(s.get(p)||0)-1;s.set(p,g),g||(!a?.has(p)&&i&&p.removeAttribute(i),a?.delete(p))}),n&&f.forEach(p=>{let m=(CT.get(p)||0)-1;CT.set(p,m),m||p.removeAttribute(vce)}),HW-=1,HW||(jW.inert=new WeakMap,jW["aria-hidden"]=new WeakMap,UW.inert=new WeakSet,UW["aria-hidden"]=new WeakSet,CT=new WeakMap)}}function WW(e,t={}){let{ariaHidden:o=!1,inert:r=!1,mark:n=!0}=t,i=Je(e[0]).body;return ZKe(e,i,o,r,{mark:n})}var er=c(te(),1),GW=c(bu(),1);var Sce={style:{transition:"none"}},Cce="data-base-ui-click-trigger",QKe="data-base-ui-swipe-ignore",JKe="data-swipe-ignore",f3t=`[${QKe}]`,p3t=`[${JKe}]`,vP={fallbackAxisSide:"none"},yP={fallbackAxisSide:"end"},Ece={clipPath:"inset(50%)",position:"fixed",top:0,left:0};var E_=c(T(),1),Tce=er.createContext(null),$W=()=>er.useContext(Tce),eqe=np("portal");function wP(e={}){let{ref:t,container:o,componentProps:r=gt,elementProps:n}=e,i=Oa(),a=$W()?.portalNode,[l,d]=er.useState(null),[u,f]=er.useState(null),p=le(b=>{b!==null&&f(b)}),m=er.useRef(null);se(()=>{if(o===null){m.current&&(m.current=null,f(null),d(null));return}let b=(o&&(Q9(o)?o:o.current))??a??document.body;if(b==null){m.current&&(m.current=null,f(null),d(null));return}m.current!==b&&(m.current=b,f(null),d(b))},[o,a]);let g=ke("div",r,{ref:[t,p],props:[{id:i,[eqe]:""},n]}),h=l&&g?GW.createPortal(g,l):null;return{node:u,nodeId:er.isValidElement(g)?g.props.id:void 0,subtree:h}}var ET=er.forwardRef(function(t,o){let{render:r,className:n,style:i,children:s,container:a,portalOwnerRole:l,...d}=t,{node:u,nodeId:f,subtree:p}=wP({container:a,ref:o,componentProps:t,elementProps:d}),m=er.useRef(null),g=er.useRef(null),h=er.useRef(null),b=er.useRef(null),[v,_]=er.useState(null),y=er.useRef(!1),w=v?.modal,x=v?.open,k=!!v&&!v.modal&&v.open&&!!u;er.useEffect(()=>{if(!u||w)return;function S(R){u&&R.relatedTarget&&rp(R)&&(R.type==="focusin"?y.current&&(FW(u),y.current=!1):(_ce(u),y.current=!0))}return Di(ut(u,"focusin",S,!0),ut(u,"focusout",S,!0))},[u,w]),se(()=>{!u||x!==!0||!y.current||(FW(u),y.current=!1)},[x,u]);let C=er.useMemo(()=>({beforeOutsideRef:m,afterOutsideRef:g,beforeInsideRef:h,afterInsideRef:b,portalNode:u,setFocusManagerState:_}),[u]);return(0,E_.jsxs)(er.Fragment,{children:[p,(0,E_.jsxs)(Tce.Provider,{value:C,children:[k&&u&&(0,E_.jsx)(ep,{"data-type":"outside",ref:m,onFocus:S=>{if(rp(S,u))h.current?.focus();else{let R=v?v.domReference:null;bP(R)?.focus()}}}),k&&u&&(0,E_.jsx)("span",{role:l,"aria-owns":f,style:Ece}),u&&GW.createPortal(s,u),k&&u&&(0,E_.jsx)(ep,{"data-type":"outside",ref:g,onFocus:S=>{if(rp(S,u))b.current?.focus();else{let R=v?v.domReference:null;t0(R)?.focus(),v?.closeOnFocusOut&&v?.onOpenChange(!1,Ae(ge.focusOut,S.nativeEvent))}}})]})]})});var Rg=c(te(),1);function xP(){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 Tg=class{nodesRef={current:[]};events=xP();addNode(t){this.nodesRef.current.push(t)}removeNode(t){let o=this.nodesRef.current.findIndex(r=>r===t);o!==-1&&this.nodesRef.current.splice(o,1)}};var YW=c(T(),1),Rce=Rg.createContext(null),Ice=Rg.createContext(null),bs=()=>Rg.useContext(Rce)?.id||null,Fi=e=>{let t=Rg.useContext(Ice);return e??t};function TT(e){let t=Oa(),o=Fi(e),r=bs();return se(()=>{if(!t)return;let n={id:t,parentId:r};return o?.addNode(n),()=>{o?.removeNode(n)}},[o,t,r]),t}function KW(e){let{children:t,id:o}=e,r=bs();return(0,YW.jsx)(Rce.Provider,{value:Rg.useMemo(()=>({id:o,parentId:r}),[o,r]),children:t})}function qW(e){let{children:t,externalTree:o}=e,r=Dt(()=>o??new Tg).current;return(0,YW.jsx)(Ice.Provider,{value:r,children:t})}var RT=c(T(),1);function tqe(e,t){let o=wt(So(e));return e instanceof o.KeyboardEvent?"keyboard":e instanceof o.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof o.MouseEvent?t||(e.detail===0?"keyboard":"mouse"):""}var Pce=20,Ig=[];function XW(){Ig=Ig.filter(e=>e.deref()?.isConnected)}function Bce(e){XW(),e&&Kr(e)!=="body"&&(Ig.push(new WeakRef(e)),Ig.length>Pce&&(Ig=Ig.slice(-Pce)))}function Oce(){return XW(),Ig[Ig.length-1]?.deref()}function oqe(e){return e?hP(e)?e:e0(e)[0]||e:null}function Mce(e){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!e.getAttribute("role")?.includes("dialog"))return;let o=VW(e).filter(n=>{let i=n.getAttribute("data-tabindex")||"";return hP(n)||n.hasAttribute("data-tabindex")&&!i.startsWith("-")}),r=e.getAttribute("tabindex");o.length===0?r!=="0"&&(e.setAttribute("tabindex","0"),e.setAttribute("data-tabindex","0")):(r!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function IT(e){let{context:t,children:o,disabled:r=!1,initialFocus:n=!0,returnFocus:i=!0,restoreFocus:s=!1,modal:a=!0,closeOnFocusOut:l=!0,openInteractionType:d="",nextFocusableElement:u,previousFocusableElement:f,beforeContentFocusGuardRef:p,externalTree:m,getInsideElements:g}=e,h="rootStore"in t?t.rootStore:t,b=h.useState("open"),v=h.useState("domReferenceElement"),_=h.useState("floatingElement"),{events:y,dataRef:w}=h.context,x=le(()=>w.current.floatingContext?.nodeId),k=n===!1,C=yT(v)&&k,S=co(n),R=co(i),E=co(d),I=co(b),B=Fi(m),O=$W(),M=zi.useRef(!1),N=zi.useRef(!1),j=zi.useRef(!1),V=zi.useRef(null),A=zi.useRef(""),L=zi.useRef(""),z=zi.useRef(null),F=zi.useRef(null),G=Ai(z,p,O?.beforeInsideRef),$=Ai(F,O?.afterInsideRef),K=Ft(),q=Ft(),H=ps(),J=O!=null,W=k_(_),Y=le((ne=W)=>ne?e0(ne):[]),ee=le(()=>g?.().filter(ne=>ne!=null)??[]);zi.useEffect(()=>{if(r||!a)return;function ne(be){be.key==="Tab"&&He(W,Sr(Je(W)))&&Y().length===0&&!C&&Zs(be)}let ie=Je(W);return ut(ie,"keydown",ne)},[r,W,a,C,Y]),zi.useEffect(()=>{if(r||!b)return;let ne=Je(W);function ie(){j.current=!1}function be(Ee){let ye=So(Ee),Oe=ee(),we=He(_,ye)||He(v,ye)||He(O?.portalNode,ye)||Oe.some(_e=>_e===ye||He(_e,ye));j.current=!we,L.current=Ee.pointerType||"keyboard",ye?.closest(`[${Cce}]`)&&(N.current=!0,q.start(0,()=>{N.current=!1}))}function pe(){L.current="keyboard"}return Di(ut(ne,"pointerdown",be,!0),ut(ne,"pointerup",ie,!0),ut(ne,"pointercancel",ie,!0),ut(ne,"keydown",pe,!0),ie)},[r,_,v,W,b,O,q,ee]),zi.useEffect(()=>{if(r||!l)return;let ne=Je(W);function ie(){N.current=!0,q.start(0,()=>{N.current=!1})}function be(Oe){let we=So(Oe);hP(we)&&(V.current=we)}function pe(Oe){let we=Oe.relatedTarget,_e=Oe.currentTarget,xe=So(Oe);a&&we==null&&xe!=null&&He(_,xe)&&Bce(xe),queueMicrotask(()=>{let he=x(),Ze=h.context.triggerElements,fe=ee(),Ce=we?.hasAttribute(np("focus-guard"))&&[z.current,F.current,O?.beforeInsideRef.current,O?.afterInsideRef.current,O?.beforeOutsideRef.current,O?.afterOutsideRef.current,Yc(f),Yc(u)].includes(we),de=!(He(v,we)||He(_,we)||He(we,_)||He(O?.portalNode,we)||fe.some(ae=>ae===we||He(ae,we))||Ze.hasMatchingElement(ae=>He(ae,we))||Ce||B&&(Cl(B.nodesRef.current,he).find(ae=>He(ae.context?.elements.floating,we)||He(ae.context?.elements.domReference,we))||zW(B.nodesRef.current,he).find(ae=>[ae.context?.elements.floating,k_(ae.context?.elements.floating)].includes(we)||ae.context?.elements.domReference===we)));if(_e===v&&W&&Mce(W),s&&_e!==v&&!C_(xe)&&Sr(ne)===ne.body){if(xt(W)&&(W.focus(),s==="popup")){H.request(()=>{W.focus()});return}let ae=Y(),Re=V.current,$e=(Re&&ae.includes(Re)?Re:null)||ae[ae.length-1]||W;xt($e)&&$e.focus()}if(w.current.insideReactTree){w.current.insideReactTree=!1;return}(C||!a)&&we&&de&&!N.current&&(C||we!==Oce())&&(M.current=!0,h.setOpen(!1,Ae(ge.focusOut,Oe)))})}function Ee(){j.current||(w.current.insideReactTree=!0,K.start(0,()=>{w.current.insideReactTree=!1}))}let ye=xt(v)?v:null;if(!(!_&&!ye))return Di(ye&&ut(ye,"focusout",pe),ye&&ut(ye,"pointerdown",ie),_&&ut(_,"focusin",be),_&&ut(_,"focusout",pe),_&&O&&ut(_,"focusout",Ee,!0))},[r,v,_,W,a,B,O,h,l,s,Y,C,x,w,K,q,H,u,f,ee]),zi.useEffect(()=>{if(r||!_||!b)return;let ne=Array.from(O?.portalNode?.querySelectorAll(`[${np("portal")}]`)||[]),be=(B?zW(B.nodesRef.current,x()):[]).find(_e=>yT(_e.context?.elements.domReference||null))?.context?.elements.domReference,Ee=[...[_,...ne,z.current,F.current,O?.beforeOutsideRef.current,O?.afterOutsideRef.current,...ee()],be,Yc(f),Yc(u),C?v:null].filter(_e=>_e!=null),ye=WW(Ee,{ariaHidden:a||C,mark:!1}),Oe=[_,...ne].filter(_e=>_e!=null),we=WW(Oe);return()=>{we(),ye()}},[b,r,v,_,a,O,C,B,x,u,f,ee]),se(()=>{if(!b||r||!xt(W))return;A.current="",L.current="";let ne=Je(W),ie=Sr(ne);queueMicrotask(()=>{let be=S.current,pe=typeof be=="function"?be(E.current||""):be;if(pe===void 0||pe===!1||He(W,ie))return;let ye=null,Oe=()=>(ye==null&&(ye=Y(W)),ye[0]||W),we;pe===!0||pe===null?we=Oe():we=Yc(pe),we=we||Oe();let _e=He(W,Sr(ne));o0(we,{preventScroll:we===W,shouldFocus(){if(!I.current)return!1;if(_e)return!0;let xe=Sr(ne);return!(xe!==we&&He(W,xe))}})})},[r,b,W,Y,S,E,I]),se(()=>{if(r||!W)return;let ne=Je(W),ie=Sr(ne),be=E.current==null;Bce(ie);function pe(ye){if(ye.open||(A.current=tqe(ye.nativeEvent,L.current)),ye.reason===ge.triggerHover&&ye.nativeEvent.type==="mouseleave"&&(M.current=!0),ye.reason===ge.outsidePress)if(ye.nested)M.current=!1;else if(wg(ye.nativeEvent)||Zw(ye.nativeEvent))M.current=!1;else{let Oe=!1;Je(W).createElement("div").focus({get preventScroll(){return Oe=!0,!1}}),Oe?M.current=!1:M.current=!0}}y.on("openchange",pe);function Ee(ye){let Oe=R.current,we=typeof Oe=="function"?Oe(ye):Oe;if(we===void 0||we===!1)return null;we===null&&(we=!0);let _e=v?.isConnected?v:null,xe=ie?.isConnected&&Kr(ie)!=="body"?ie:null,he=be?xe||_e:_e||xe;return he||(he=Oce()||null),typeof we=="boolean"?he:Yc(we)||he||null}return()=>{y.off("openchange",pe);let ye=Sr(ne),Oe=ee(),we=He(_,ye)||Oe.some(Ze=>Ze===ye||He(Ze,ye))||B&&Cl(B.nodesRef.current,x(),!1).some(Ze=>He(Ze.context?.elements.floating,ye)),_e=R.current,xe=A.current,he=Ee(xe);queueMicrotask(()=>{let Ze=oqe(he),fe=typeof _e!="boolean";if(_e&&!M.current&&xt(Ze)&&(!(!fe&&Ze!==ye&&ye!==ne.body)||we)){let Ce={preventScroll:!0};xe==="keyboard"&&(Ce.focusVisible=!0),Ze.focus(Ce)}M.current=!1})}},[r,_,W,R,E,y,B,v,x,ee]),se(()=>{if(!Kt.engine.webkit||b||!_)return;let ne=Sr(Je(_));!xt(ne)||!x_(ne)||He(_,ne)&&ne.blur()},[b,_]),se(()=>{if(!(r||!O))return O.setFocusManagerState({modal:a,closeOnFocusOut:l,open:b,onOpenChange:h.setOpen,domReference:v}),()=>{O.setFocusManagerState(null)}},[r,O,a,b,h,l,v]),se(()=>{if(!(r||!W))return Mce(W),()=>{queueMicrotask(XW)}},[r,W]);let re=!r&&(a?!C:!0)&&(J||a);return(0,RT.jsxs)(zi.Fragment,{children:[re&&(0,RT.jsx)(ep,{"data-type":"inside",ref:G,onFocus:ne=>{if(a){let ie=Y();o0(ie[ie.length-1])}else O?.portalNode&&(M.current=!1,rp(ne,O.portalNode)?t0(v)?.focus():Yc(f??O.beforeOutsideRef)?.focus())}}),o,re&&(0,RT.jsx)(ep,{"data-type":"inside",ref:$,onFocus:ne=>{a?o0(Y()[0]):O?.portalNode&&(l&&(M.current=!0),rp(ne,O.portalNode)?bP(v)?.focus():Yc(u??O.afterOutsideRef)?.focus())}})]})}var PT=c(te(),1);function T_(e,t={}){let{enabled:o=!0,event:r="click",toggle:n=!0,ignoreMouse:i=!1,stickIfOpen:s=!0,touchOpenDelay:a=0,reason:l=ge.triggerPress}=t,d="rootStore"in e?e.rootStore:e,u=d.context.dataRef,f=PT.useRef(void 0),p=ps(),m=Ft(),g=PT.useMemo(()=>{function h(v,_,y,w){let x=Ae(l,_,y);v&&w==="touch"&&a>0?m.start(a,()=>{d.setOpen(!0,x)}):d.setOpen(v,x)}function b(v,_,y){let w=u.current.openEvent,x=d.select("domReferenceElement")!==_;return v&&x||!v||!n?!0:w&&s?!y(w.type):!1}return{onPointerDown(v){f.current=Ma(v.pointerType,!0)&&Zw(v.nativeEvent)?"virtual":v.pointerType},onMouseDown(v){let _=f.current,y=v.nativeEvent,w=d.select("open");if(v.button!==0||r==="click"||Ma(_,!0)&&i)return;let x=b(w,v.currentTarget,S=>S==="click"||S==="mousedown"),k=So(y);if(x_(k)){h(x,y,k,_);return}let C=v.currentTarget;p.request(()=>{h(x,y,C,_)})},onClick(v){if(r==="mousedown-only")return;let _=f.current;if(r==="mousedown"&&_){f.current=void 0;return}if(Ma(_,!0)&&i)return;let y=d.select("open"),w=b(y,v.currentTarget,x=>x==="click"||x==="mousedown"||x==="keydown"||x==="keyup");h(w,v.nativeEvent,v.currentTarget,_)},onKeyDown(){f.current=void 0}}},[u,r,i,l,d,s,n,p,m,a]);return PT.useMemo(()=>o?{reference:g}:gt,[o,g])}var Js=c(te(),1);function rqe(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",d=i.width,u=i.height,f=i.x,p=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,p-=r||0,d=0,u=0,!n||l?(d=t.axis==="y"?i.width:0,u=t.axis==="x"?i.height:0,f=s&&t.x!=null?t.x:f,p=a&&t.y!=null?t.y:p):n&&!l&&(u=t.axis==="x"?i.height:u,d=t.axis==="y"?i.width:d),n=!0,{width:d,height:u,x:f,y:p,top:p,right:f+d,bottom:p+u,left:f}}}}function Ace(e){return e!=null&&e.clientX!=null}function ZW(e,t={}){let{enabled:o=!0,axis:r="both"}=t,n="rootStore"in e?e.rootStore:e,i=n.useState("open"),s=n.useState("floatingElement"),a=n.useState("domReferenceElement"),l=n.context.dataRef,d=Js.useRef(!1),u=Js.useRef(null),[f,p]=Js.useState(),[m,g]=Js.useState([]),h=le(w=>{n.set("positionReference",w)}),b=le((w,x,k)=>{d.current||l.current.openEvent&&!Ace(l.current.openEvent)||n.set("positionReference",rqe(k??a,{x:w,y:x,axis:r,dataRef:l,pointerType:f}))}),v=le(w=>{i?u.current||(b(w.clientX,w.clientY,w.currentTarget),g([])):b(w.clientX,w.clientY,w.currentTarget)}),_=Ma(f)?s:i;Js.useEffect(()=>{if(!o){h(a);return}if(!_)return;function w(){u.current?.(),u.current=null}let x=wt(s);function k(C){let S=So(C);He(s,S)?w():b(C.clientX,C.clientY)}return!l.current.openEvent||Ace(l.current.openEvent)?u.current=ut(x,"mousemove",k):h(a),w},[_,o,s,l,a,n,b,h,m]),Js.useEffect(()=>()=>{n.set("positionReference",null)},[n]),Js.useEffect(()=>{o&&!s&&(d.current=!1)},[o,s]),Js.useEffect(()=>{!o&&i&&(d.current=!0)},[o,i]);let y=Js.useMemo(()=>{function w(x){p(x.pointerType)}return{onPointerDown:w,onPointerEnter:w,onMouseMove:v,onMouseEnter:v}},[v]);return Js.useMemo(()=>o?{reference:y,trigger:y}:{},[o,y])}var _s=c(te(),1);function nqe(){return!1}function iqe(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function R_(e,t={}){let{enabled:o=!0,escapeKey:r=!0,outsidePress:n=!0,outsidePressEvent:i="sloppy",referencePress:s=nqe,bubbles:a,externalTree:l}=t,d="rootStore"in e?e.rootStore:e,u=d.useState("open"),f=d.useState("floatingElement"),{dataRef:p,events:m}=d.context,g=Fi(l),h=le(typeof n=="function"?n:()=>!1),b=typeof n=="function"?h:n,v=b!==!1,_=le(()=>i),{escapeKey:y,outsidePress:w}=iqe(a),x=_s.useRef(!1),k=_s.useRef(!1),C=_s.useRef(!1),S=_s.useRef(!1),R=_s.useRef(!1),E=_s.useRef(""),I=_s.useRef(null),B=Ft(),O=Ft(),M=le(()=>{O.clear(),p.current.insideReactTree=!1}),N=le(K=>{let q=p.current.floatingContext?.nodeId;return(g?Cl(g.nodesRef.current,q):[]).some(J=>J.context?.open&&!J.context.dataRef.current[K])}),j=le(K=>lP(K,d.select("floatingElement"))||lP(K,d.select("domReferenceElement"))),V=le(K=>{s()&&d.setOpen(!1,Ae(ge.triggerPress,K.nativeEvent))}),A=le(K=>{if(!u||!o||!r||K.key!=="Escape"||R.current||!y&&N("__escapeKeyBubbles"))return;let q=Ule(K)?K.nativeEvent:K,H=Ae(ge.escapeKey,q);d.setOpen(!1,H),H.isCanceled||K.preventDefault(),!y&&!H.isPropagationAllowed&&K.stopPropagation()}),L=le(()=>{p.current.insideReactTree=!0,O.start(0,M)}),z=le(K=>{if(!u||!o||K.button!==0)return;let q=So(K.nativeEvent);He(d.select("floatingElement"),q)&&(x.current||(x.current=!0,k.current=!1))}),F=le(K=>{!u||!o||(K.defaultPrevented||K.nativeEvent.defaultPrevented)&&x.current&&(k.current=!0)});_s.useEffect(()=>{function K(q){q.open||(S.current=!1)}return m.on("openchange",K),()=>{m.off("openchange",K)}},[m]),_s.useEffect(()=>{if(!u||!o)return u||(S.current=!1),M;p.current.__escapeKeyBubbles=y,p.current.__outsidePressBubbles=w;let K=new Li,q=new Li,H=Je(f);function J(){K.clear(),R.current=!0}function W(){K.start(Kt.engine.webkit?5:0,()=>{R.current=!1})}function Y(){C.current=!0,q.start(0,()=>{C.current=!1})}function ee(){x.current=!1,k.current=!1}function re(){let de=E.current,ae=de==="pen"||!de?"mouse":de,Re=_(),$e=typeof Re=="function"?Re():Re;return typeof $e=="string"?$e:$e[ae]}function ne(de){let ae=re();return ae==="intentional"&&de.type!=="click"||ae==="sloppy"&&de.type==="click"}function ie(de){let ae=p.current.floatingContext?.nodeId,Re=g&&Cl(g.nodesRef.current,ae).some($e=>lP(de,$e.context?.elements.floating));return j(de)||Re}function be(de){if(ne(de)){de.type!=="click"&&!j(de)&&(q.clear(),C.current=!1),M();return}if(p.current.insideReactTree){M();return}let ae=So(de),Re=`[${np("inert")}]`,$e=mt(ae)?ae.getRootNode():null,ct=Array.from((gu($e)?$e:Je(d.select("floatingElement"))).querySelectorAll(Re)),Pt=d.context.triggerElements;if(ae&&(Pt.hasElement(ae)||Pt.hasMatchingElement(Be=>He(Be,ae))))return;let at=mt(ae)?ae:null;for(;at&&!Xs(at);){let Be=ms(at);if(Xs(Be)||!mt(Be))break;at=Be}if(!(ct.length&&mt(ae)&&!qle(ae)&&!He(ae,d.select("floatingElement"))&&ct.every(Be=>!He(at,Be)))){if(xt(ae)&&!("touches"in de)){let Be=Xs(ae),qe=Pn(ae),vt=/auto|scroll/,Vt=Be||vt.test(qe.overflowX),kt=Be||vt.test(qe.overflowY),yt=Vt&&ae.clientWidth>0&&ae.scrollWidth>ae.clientWidth,Ye=kt&&ae.clientHeight>0&&ae.scrollHeight>ae.clientHeight,Se=qe.direction==="rtl",Ie=Ye&&(Se?de.offsetX<=ae.offsetWidth-ae.clientWidth:de.offsetX>ae.clientWidth),me=yt&&de.offsetY>ae.clientHeight;if(Ie||me)return}if(!ie(de)){if(re()==="intentional"){if(de.detail!==0&&!wg(de)&&!S.current)return;if(C.current){q.clear(),C.current=!1;return}}typeof b=="function"&&!b(de)||N("__outsidePressBubbles")||(d.setOpen(!1,Ae(ge.outsidePress,de)),M())}}}function pe(de){re()!=="sloppy"||de.pointerType==="touch"||!d.select("open")||!o||j(de)||be(de)}function Ee(de){if(re()!=="sloppy"||!d.select("open")||!o||j(de))return;let ae=de.touches[0];ae&&(I.current={startTime:Date.now(),startX:ae.clientX,startY:ae.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},B.start(1e3,()=>{I.current&&(I.current.dismissOnTouchEnd=!1,I.current.dismissOnMouseDown=!1)}))}function ye(de,ae){let Re=So(de);if(!Re)return;let $e=ut(Re,de.type,()=>{ae(de),$e()})}function Oe(de){E.current="touch",ye(de,Ee)}function we(de){B.clear(),de.type==="pointerdown"&&(de.button===0&&(S.current=!0),E.current=de.pointerType),!(de.type==="mousedown"&&I.current&&!I.current.dismissOnMouseDown)&&ye(de,ae=>{ae.type==="pointerdown"?pe(ae):be(ae)})}function _e(de){if(de.type==="pointercancel"&&(S.current=!1),!x.current)return;let ae=k.current;if(ee(),re()==="intentional"){if(de.type==="pointercancel"){ae&&Y();return}if(!ie(de)){if(ae){Y();return}typeof b=="function"&&!b(de)||(q.clear(),C.current=!0,M())}}}function xe(de){if(re()!=="sloppy"||!I.current||j(de))return;let ae=de.touches[0];if(!ae)return;let Re=Math.abs(ae.clientX-I.current.startX),$e=Math.abs(ae.clientY-I.current.startY),ct=Math.sqrt(Re*Re+$e*$e);ct>5&&(I.current.dismissOnTouchEnd=!0),ct>10&&(be(de),B.clear(),I.current=null)}function he(de){ye(de,xe)}function Ze(de){re()!=="sloppy"||!I.current||j(de)||(I.current.dismissOnTouchEnd&&be(de),B.clear(),I.current=null)}function fe(de){ye(de,Ze)}let Ce=Di(r&&Di(ut(H,"keydown",A),ut(H,"compositionstart",J),ut(H,"compositionend",W)),v&&Di(ut(H,"click",we,!0),ut(H,"pointerdown",we,!0),ut(H,"pointerup",_e,!0),ut(H,"pointercancel",_e,!0),ut(H,"mousedown",we,!0),ut(H,"mouseup",_e,!0),ut(H,"touchstart",Oe,{capture:!0,passive:!0}),ut(H,"touchmove",he,{capture:!0,passive:!0}),ut(H,"touchend",fe,{capture:!0,passive:!0})));return()=>{Ce(),K.clear(),q.clear(),ee(),C.current=!1,M()}},[p,f,r,v,b,u,o,y,w,A,M,_,N,j,g,d,B]);let G=_s.useMemo(()=>({onKeyDown:A,onPointerDown:V,onClick:V}),[A,V]),$=_s.useMemo(()=>({onKeyDown:A,onPointerDown:F,onMouseDown:F,onClickCapture:L,onMouseDownCapture(K){L(),z(K)},onPointerDownCapture(K){L(),z(K)},onMouseUpCapture:L,onTouchEndCapture:L,onTouchMoveCapture:L}),[A,L,z,F]);return _s.useMemo(()=>o?{reference:G,floating:$,trigger:G}:{},[o,G,$])}var ji=c(te(),1);function Nce(e,t,o){let{reference:r,floating:n}=e,i=Qs(t),s=ST(t),a=kT(s),l=Vi(t),d=i==="y",u=r.x+r.width/2-n.width/2,f=r.y+r.height/2-n.height/2,p=r[a]/2-n[a]/2,m;switch(l){case"top":m={x:u,y:r.y-n.height};break;case"bottom":m={x:u,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-n.width,y:f};break;default:m={x:r.x,y:r.y}}let g=kl(t);return g&&(m[s]+=p*(g==="end"?1:-1)*(o&&d?-1:1)),m}async function Lce(e,t){var o;t===void 0&&(t={});let{x:r,y:n,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=vu(t,e),g=gP(m),b=a[p?f==="floating"?"reference":"floating":f],v=tp(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:d,rootBoundary:u,strategy:l})),_=f==="floating"?{x:r,y:n,width:s.floating.width,height:s.floating.height}:s.reference,y=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),w=await(i.isElement==null?void 0:i.isElement(y))&&await(i.getScale==null?void 0:i.getScale(y))||{x:1,y:1},x=tp(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:_,offsetParent:y,strategy:l}):_);return{top:(v.top-x.top+g.top)/w.y,bottom:(x.bottom-v.bottom+g.bottom)/w.y,left:(v.left-x.left+g.left)/w.x,right:(x.right-v.right+g.right)/w.x}}var sqe=50,Dce=async(e,t,o)=>{let{placement:r="bottom",strategy:n="absolute",middleware:i=[],platform:s}=o,a=s.detectOverflow?s:{...s,detectOverflow:Lce},l=await(s.isRTL==null?void 0:s.isRTL(t)),d=await s.getElementRects({reference:e,floating:t,strategy:n}),{x:u,y:f}=Nce(d,r,l),p=r,m=0,g={};for(let h=0;h<i.length;h++){let b=i[h];if(!b)continue;let{name:v,fn:_}=b,{x:y,y:w,data:x,reset:k}=await _({x:u,y:f,initialPlacement:r,placement:p,strategy:n,middlewareData:g,rects:d,platform:a,elements:{reference:e,floating:t}});u=y??u,f=w??f,g[v]={...g[v],...x},k&&m<sqe&&(m++,typeof k=="object"&&(k.placement&&(p=k.placement),k.rects&&(d=k.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:n}):k.rects),{x:u,y:f}=Nce(d,p,l)),h=-1)}return{x:u,y:f,placement:p,strategy:n,middlewareData:g}};var Vce=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:d}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...b}=vu(e,t);if((o=i.arrow)!=null&&o.alignmentOffset)return{};let v=Vi(n),_=Qs(a),y=Vi(a)===a,w=await(l.isRTL==null?void 0:l.isRTL(d.floating)),x=p||(y||!h?[wT(a)]:sce(a)),k=g!=="none";!p&&k&&x.push(...ace(a,h,g,w));let C=[a,...x],S=await l.detectOverflow(t,b),R=[],E=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&R.push(S[v]),f){let M=ice(n,s,w);R.push(S[M[0]],S[M[1]])}if(E=[...E,{placement:n,overflows:R}],!R.every(M=>M<=0)){var I,B;let M=(((I=i.flip)==null?void 0:I.index)||0)+1,N=C[M];if(N&&(!(f==="alignment"?_!==Qs(N):!1)||E.every(A=>Qs(A.placement)===_?A.overflows[0]>0:!0)))return{data:{index:M,overflows:E},reset:{placement:N}};let j=(B=E.filter(V=>V.overflows[0]<=0).sort((V,A)=>V.overflows[1]-A.overflows[1])[0])==null?void 0:B.placement;if(!j)switch(m){case"bestFit":{var O;let V=(O=E.filter(A=>{if(k){let L=Qs(A.placement);return L===_||L==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(L=>L>0).reduce((L,z)=>L+z,0)]).sort((A,L)=>A[1]-L[1])[0])==null?void 0:O[0];V&&(j=V);break}case"initialPlacement":j=a;break}if(n!==j)return{reset:{placement:j}}}return{}}}};var Fce=new Set(["left","top"]);async function aqe(e,t){let{placement:o,platform:r,elements:n}=e,i=await(r.isRTL==null?void 0:r.isRTL(n.floating)),s=Vi(o),a=kl(o),l=Qs(o)==="y",d=Fce.has(s)?-1:1,u=i&&l?-1:1,f=vu(t,e),{mainAxis:p,crossAxis:m,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof g=="number"&&(m=a==="end"?g*-1:g),l?{x:m*u,y:p*d}:{x:p*d,y:m*u}}var zce=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 aqe(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}}}}},jce=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:_=>{let{x:y,y:w}=_;return{x:y,y:w}}},...d}=vu(e,t),u={x:o,y:r},f=await i.detectOverflow(t,d),p=Qs(n),m=mP(p),g=u[m],h=u[p],b=(_,y)=>pP(y+f[_==="y"?"top":"left"],y,y-f[_==="y"?"bottom":"right"]);s&&(g=b(m,g)),a&&(h=b(p,h));let v=l.fn({...t,[m]:g,[p]:h});return{...v,data:{x:v.x-o,y:v.y-r,enabled:{[m]:s,[p]:a}}}}}},Hce=function(e){return e===void 0&&(e={}),{options:e,fn(t){var o,r;let{x:n,y:i,placement:s,rects:a,middlewareData:l}=t,{offset:d=0,mainAxis:u=!0,crossAxis:f=!0}=vu(e,t),p={x:n,y:i},m=Qs(s),g=mP(m),h=p[g],b=p[m],v=vu(d,t),_=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:(o=v.mainAxis)!=null?o:0,crossAxis:(r=v.crossAxis)!=null?r:0};if(u){let x=g==="y"?"height":"width",k=a.reference[g]-a.floating[x]+_.mainAxis,C=a.reference[g]+a.reference[x]-_.mainAxis;h<k?h=k:h>C&&(h=C)}if(f){var y,w;let x=g==="y"?"width":"height",k=Fce.has(Vi(s)),C=a.reference[m]-a.floating[x]+(k&&((y=l.offset)==null?void 0:y[m])||0)+(k?0:_.crossAxis),S=a.reference[m]+a.reference[x]+(k?0:((w=l.offset)==null?void 0:w[m])||0)-(k?_.crossAxis:0);b<C?b=C:b>S&&(b=S)}return{[g]:h,[m]:b}}}},Uce=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){let{placement:o,rects:r,platform:n,elements:i}=t,{apply:s=()=>{},...a}=vu(e,t),l=await n.detectOverflow(t,a),d=Vi(o),u=kl(o),f=Qs(o)==="y",{width:p,height:m}=r.floating,g,h;d==="top"||d==="bottom"?(g=d,h=u===(await(n.isRTL==null?void 0:n.isRTL(i.floating))?"start":"end")?"left":"right"):(h=d,g=u==="end"?"top":"bottom");let b=m-l.top-l.bottom,v=p-l.left-l.right,_=Sg(m-l[g],b),y=Sg(p-l[h],v),w=t.middlewareData.shift,x=!w,k=_,C=y;w!=null&&w.enabled.x&&(C=v),w!=null&&w.enabled.y&&(k=b),x&&!u&&(f?C=p-2*Xc(l.left,l.right):k=m-2*Xc(l.top,l.bottom)),await s({...t,availableWidth:C,availableHeight:k});let S=await n.getDimensions(i.floating);return p!==S.width||m!==S.height?{reset:{rects:!0}}:{}}}};function $ce(e){let t=Pn(e),o=parseFloat(t.width)||0,r=parseFloat(t.height)||0,n=xt(e),i=n?e.offsetWidth:o,s=n?e.offsetHeight:r,a=Cg(o)!==i||Cg(r)!==s;return a&&(o=i,r=s),{width:o,height:r,$:a}}function JW(e){return mt(e)?e:e.contextElement}function r0(e){let t=JW(e);if(!xt(t))return _u(1);let o=t.getBoundingClientRect(),{width:r,height:n,$:i}=$ce(t),s=(i?Cg(o.width):o.width)/r,a=(i?Cg(o.height):o.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var lqe=_u(0);function Yce(e){let t=wt(e);return!eP()||!t.visualViewport?lqe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function cqe(e,t,o){return t===void 0&&(t=!1),!!o&&t&&o===wt(e)}function I_(e,t,o,r){t===void 0&&(t=!1),o===void 0&&(o=!1);let n=e.getBoundingClientRect(),i=JW(e),s=_u(1);t&&(r?mt(r)&&(s=r0(r)):s=r0(e));let a=cqe(i,o,r)?Yce(i):_u(0),l=(n.left+a.x)/s.x,d=(n.top+a.y)/s.y,u=n.width/s.x,f=n.height/s.y;if(i&&r){let p=wt(i),m=mt(r)?wt(r):r,g=p,h=tP(g);for(;h&&m!==g;){let b=r0(h),v=h.getBoundingClientRect(),_=Pn(h),y=v.left+(h.clientLeft+parseFloat(_.paddingLeft))*b.x,w=v.top+(h.clientTop+parseFloat(_.paddingTop))*b.y;l*=b.x,d*=b.y,u*=b.x,f*=b.y,l+=y,d+=w,g=wt(h),h=tP(g)}}return tp({width:u,height:f,x:l,y:d})}function kP(e,t){let o=fT(e).scrollLeft;return t?t.left+o:I_(hu(e)).left+o}function Kce(e,t){let o=e.getBoundingClientRect(),r=o.left+t.scrollLeft-kP(e,o),n=o.top+t.scrollTop;return{x:r,y:n}}function dqe(e){let{elements:t,rect:o,offsetParent:r,strategy:n}=e,i=n==="fixed",s=hu(r),a=t?uT(t.floating):!1;if(r===s||a&&i)return o;let l={scrollLeft:0,scrollTop:0},d=_u(1),u=_u(0),f=xt(r);if((f||!i)&&((Kr(r)!=="body"||__(s))&&(l=fT(r)),f)){let m=I_(r);d=r0(r),u.x=m.x+r.clientLeft,u.y=m.y+r.clientTop}let p=s&&!f&&!i?Kce(s,l):_u(0);return{width:o.width*d.x,height:o.height*d.y,x:o.x*d.x-l.scrollLeft*d.x+u.x+p.x,y:o.y*d.y-l.scrollTop*d.y+u.y+p.y}}function uqe(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function fqe(e){let t=fT(e),o=e.ownerDocument.body,r=Xc(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),n=Xc(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight),i=-t.scrollLeft+kP(e),s=-t.scrollTop;return Pn(o).direction==="rtl"&&(i+=Xc(e.clientWidth,o.clientWidth)-r),{width:r,height:n,x:i,y:s}}var pqe=25;function mqe(e,t,o){o===void 0&&(o="viewport");let r=o==="layoutViewport",n=wt(e),i=hu(e),s=n.visualViewport,a=i.clientWidth,l=i.clientHeight,d=0,u=0;if(s){let p=!eP()||t==="fixed";r?p||(d=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,p&&(d=s.offsetLeft,u=s.offsetTop))}if(kP(i)<=0){let p=i.ownerDocument,m=p.body,g=getComputedStyle(m),h=p.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,b=Math.abs(i.clientWidth-m.clientWidth-h),v=getComputedStyle(i).scrollbarGutter==="stable both-edges"?b/2:b;v<=pqe&&(a-=v)}return{width:a,height:l,x:d,y:u}}function gqe(e,t){let o=I_(e,!0,t==="fixed"),r=o.top+e.clientTop,n=o.left+e.clientLeft,i=r0(e),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=n*i.x,d=r*i.y;return{width:s,height:a,x:l,y:d}}function Wce(e,t,o){let r;if(t==="viewport"||t==="layoutViewport")r=mqe(e,o,t);else if(t==="document")r=fqe(hu(e));else if(mt(t))r=gqe(t,o);else{let n=Yce(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return tp(r)}function hqe(e,t){let o=t.get(e);if(o)return o;let r=vg(e,[],!1).filter(a=>mt(a)&&Kr(a)!=="body"),n=null,i=Pn(e).position==="fixed",s=i?ms(e):e;for(;mt(s)&&!Xs(s);){let a=Pn(s),l=J9(s),d=n?n.position:i?"fixed":"";!l&&(d==="fixed"||d==="absolute"&&a.position==="static")?r=r.filter(f=>f!==s):n=a,s=ms(s)}return t.set(e,r),r}function bqe(e){let{element:t,boundary:o,rootBoundary:r,strategy:n}=e,s=[...o==="clippingAncestors"?uT(t)?[]:hqe(t,this._c):[].concat(o),r],a=Wce(t,s[0],n),l=a.top,d=a.right,u=a.bottom,f=a.left;for(let p=1;p<s.length;p++){let m=Wce(t,s[p],n);l=Xc(m.top,l),d=Sg(m.right,d),u=Sg(m.bottom,u),f=Xc(m.left,f)}return{width:d-f,height:u-l,x:f,y:l}}function _qe(e){let{width:t,height:o}=$ce(e);return{width:t,height:o}}function vqe(e,t,o){let r=xt(t),n=hu(t),i=o==="fixed",s=I_(e,!0,i,t),a={scrollLeft:0,scrollTop:0},l=_u(0);if((r||!i)&&((Kr(t)!=="body"||__(n))&&(a=fT(t)),r)){let p=I_(t,!0,i,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}!r&&n&&(l.x=kP(n));let d=n&&!r&&!i?Kce(n,a):_u(0),u=s.left+a.scrollLeft-l.x-d.x,f=s.top+a.scrollTop-l.y-d.y;return{x:u,y:f,width:s.width,height:s.height}}function QW(e){return Pn(e).position==="static"}function Gce(e,t){if(!xt(e)||Pn(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return hu(e)===o&&(o=o.ownerDocument.body),o}function qce(e,t){let o=wt(e);if(uT(e))return o;if(!xt(e)){let n=ms(e);for(;n&&!Xs(n);){if(mt(n)&&!QW(n))return n;n=ms(n)}return o}let r=Gce(e,t);for(;r&&Cle(r)&&QW(r);)r=Gce(r,t);return r&&Xs(r)&&QW(r)&&!J9(r)?o:r||Ele(e)||o}var yqe=async function(e){let t=this.getOffsetParent||qce,o=this.getDimensions,r=await o(e.floating);return{reference:vqe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function wqe(e){return Pn(e).direction==="rtl"}var BT={convertOffsetParentRelativeRectToViewportRelativeRect:dqe,getDocumentElement:hu,getClippingRect:bqe,getOffsetParent:qce,getElementRects:yqe,getClientRects:uqe,getDimensions:_qe,getScale:r0,isElement:mt,isRTL:wqe};function Xce(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function xqe(e,t,o){let r=null,n,i=hu(e);function s(){var u;clearTimeout(n),(u=r)==null||u.disconnect(),r=null}function a(u,f){u===void 0&&(u=!1),f===void 0&&(f=1),s();let p=e.getBoundingClientRect(),{left:m,top:g,width:h,height:b}=p;if(u||t(),!h||!b)return;let v=xT(g),_=xT(i.clientWidth-(m+h)),y=xT(i.clientHeight-(g+b)),w=xT(m),k={rootMargin:-v+"px "+-_+"px "+-y+"px "+-w+"px",threshold:Xc(0,Sg(1,f))||1},C=!0;function S(R){let E=R[0].intersectionRatio;if(!Xce(p,e.getBoundingClientRect()))return a();if(E!==f){if(!C)return a();E?a(!1,E):n=setTimeout(()=>{a(!1,1e-7)},1e3)}C=!1}try{r=new IntersectionObserver(S,{...k,root:i.ownerDocument})}catch{r=new IntersectionObserver(S,k)}r.observe(e)}let l=wt(e),d=()=>a(o);return l.addEventListener("resize",d),a(!0),()=>{l.removeEventListener("resize",d),s()}}function OT(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,d=JW(e),u=n||i?[...d?vg(d):[],...t?vg(t):[]]:[];u.forEach(v=>{n&&v.addEventListener("scroll",o),i&&v.addEventListener("resize",o)});let f=d&&a?xqe(d,o,i):null,p=-1,m=null;s&&(m=new ResizeObserver(v=>{let[_]=v;_&&_.target===d&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var y;(y=m)==null||y.observe(t)})),o()}),d&&!l&&m.observe(d),t&&m.observe(t));let g,h=l?I_(e):null;l&&b();function b(){let v=I_(e);h&&!Xce(h,v)&&o(),h=v,g=requestAnimationFrame(b)}return o(),()=>{var v;u.forEach(_=>{n&&_.removeEventListener("scroll",o),i&&_.removeEventListener("resize",o)}),f?.(),(v=m)==null||v.disconnect(),m=null,l&&cancelAnimationFrame(g)}}var Zce=zce;var Qce=jce,Jce=Vce,ede=Uce;var tde=Hce,SP=(e,t,o)=>{let r=new Map,n=o??{},i={...BT,...n.platform,_c:r};return Dce(e,t,{...n,platform:i})};var bn=c(te(),1),rde=c(te(),1),nde=c(bu(),1),Sqe=typeof document<"u",Cqe=function(){},CP=Sqe?rde.useLayoutEffect:Cqe;function EP(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(!EP(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)&&!EP(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function ide(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ode(e,t){let o=ide(e);return Math.round(t*o)/o}function eG(e){let t=bn.useRef(e);return CP(()=>{t.current=e}),t}function sde(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:d}=e,[u,f]=bn.useState({x:0,y:0,strategy:o,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=bn.useState(r);EP(p,r)||m(r);let[g,h]=bn.useState(null),[b,v]=bn.useState(null),_=bn.useCallback(A=>{A!==k.current&&(k.current=A,h(A))},[]),y=bn.useCallback(A=>{A!==C.current&&(C.current=A,v(A))},[]),w=i||g,x=s||b,k=bn.useRef(null),C=bn.useRef(null),S=bn.useRef(u),R=l!=null,E=eG(l),I=eG(n),B=eG(d),O=bn.useCallback(()=>{if(!k.current||!C.current)return;let A={placement:t,strategy:o,middleware:p};I.current&&(A.platform=I.current),SP(k.current,C.current,A).then(L=>{let z={...L,isPositioned:B.current!==!1};M.current&&!EP(S.current,z)&&(S.current=z,nde.flushSync(()=>{f(z)}))})},[p,t,o,I,B]);CP(()=>{d===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,f(A=>({...A,isPositioned:!1})))},[d]);let M=bn.useRef(!1);CP(()=>(M.current=!0,()=>{M.current=!1}),[]),CP(()=>{if(w&&(k.current=w),x&&(C.current=x),w&&x){if(E.current)return E.current(w,x,O);O()}},[w,x,O,E,R]);let N=bn.useMemo(()=>({reference:k,floating:C,setReference:_,setFloating:y}),[_,y]),j=bn.useMemo(()=>({reference:w,floating:x}),[w,x]),V=bn.useMemo(()=>{let A={position:o,left:0,top:0};if(!j.floating)return A;let L=ode(j.floating,u.x),z=ode(j.floating,u.y);return a?{...A,transform:"translate("+L+"px, "+z+"px)",...ide(j.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:L,top:z}},[o,a,j.floating,u.x,u.y]);return bn.useMemo(()=>({...u,update:O,refs:N,elements:j,floatingStyles:V}),[u,O,N,j,V])}var tG=(e,t)=>{let o=Zce(e);return{name:o.name,fn:o.fn,options:[e,t]}},oG=(e,t)=>{let o=Qce(e);return{name:o.name,fn:o.fn,options:[e,t]}},rG=(e,t)=>({fn:tde(e).fn,options:[e,t]}),nG=(e,t)=>{let o=Jce(e);return{name:o.name,fn:o.fn,options:[e,t]}},iG=(e,t)=>{let o=ede(e);return{name:o.name,fn:o.fn,options:[e,t]}};var n0=class{attachedStores=[];attachedStoreValue=null;storeListeners=new Set;constructor(t,o,r=!0){this.fallbackStore=t,this.componentName=o,this.throwOnMissingTrigger=r}get attachedStore(){return this.attachedStoreValue}get store(){return this.attachedStoreValue??this.fallbackStore}get serverStore(){return this.fallbackStore}subscribeStore(t){return this.storeListeners.add(t),()=>{this.storeListeners.delete(t)}}attachStore(t){return this.attachedStores.push(t),this.setActiveStore(t),()=>{let o=this.attachedStores.lastIndexOf(t);o!==-1&&this.attachedStores.splice(o,1),this.setActiveStore(this.attachedStores[this.attachedStores.length-1]??null)}}setActiveStore(t){this.attachedStoreValue!==t&&(this.attachedStoreValue=t,this.storeListeners.forEach(o=>{o()}))}openByTrigger(t){let o=this.attachedStore;if(o===null)return;let r;if(t){for(let n=this.attachedStores.length-1;n>=0&&!r;n-=1)r=this.attachedStores[n].context.triggerElements.getById(t);r??=this.fallbackStore.context.triggerElements.getById(t)}if(t&&!r&&this.throwOnMissingTrigger)throw new Error(ot(99,this.componentName,t,this.componentName));o.setOpen(!0,Ae(ge.imperativeAction,void 0,r))}closePopup(){let t=this.attachedStore;t!==null&&t.setOpen(!1,Ae(ge.imperativeAction))}};var dG=c(te(),1),xde=c(bu(),1);var yde=c(te(),1);var bde=c(te(),1),cG=c(MT(),1),_de=c(pde(),1);var mde=c(te(),1);var aG=[],lG;function gde(){return lG}function hde(e){aG.push(e)}function AT(e){let t=(o,r)=>{let n=Dt(Uqe).current,i;try{lG=n;for(let s of aG)s.before(n);i=e(o,r);for(let s of aG)s.after(n);n.didInitialize=!0}finally{lG=void 0}return i};return t.displayName=e.displayName||e.name,t}function RP(e){return mde.forwardRef(AT(e))}function Uqe(){return{didInitialize:!1}}var Wqe=$w(19),Gqe=Wqe?Yqe:Kqe;function IP(e,t,o,r,n){return Gqe(e,t,o,r,n)}function $qe(e,t,o,r,n){let i=bde.useCallback(()=>t(e.getSnapshot(),o,r,n),[e,t,o,r,n]);return(0,cG.useSyncExternalStore)(e.subscribe,i,i)}hde({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);Object.is(r.value,n)||(t=!0,r.value=n)}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,cG.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Yqe(e,t,o,r,n){let i=gde();if(!i)return $qe(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.value=t(e.getSnapshot(),o,r,n))):(a={store:e,selector:t,a1:o,a2:r,a3:n,value:t(e.getSnapshot(),o,r,n)},i.syncHooks.push(a)),a.value}function Kqe(e,t,o,r,n){return(0,_de.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,i=>t(i,o,r,n))}var PP=class{static create(t){return new this(t)}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 IP(this,t,o,r,n)}};var P_=c(te(),1);var El=class extends PP{constructor(t,o={},r){super(t),this.context=o,this.selectors=r}useSyncedValue(t,o){P_.useDebugValue(t);let r=this;se(()=>{r.state[t]!==o&&r.set(t,o)},[r,t,o])}useSyncedValueWithCleanup(t,o){let r=this;se(()=>(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);se(()=>{o.update(t)},[o,...r])}useControlledProp(t,o){P_.useDebugValue(t);let r=this,n=o!==void 0;se(()=>{n&&!Object.is(r.state[t],o)&&r.setState({...r.state,[t]:o})},[r,t,o,n])}select(t,o,r,n){let i=this.selectors[t];return i(this.state,o,r,n)}useState(t,o,r,n){return P_.useDebugValue(t),IP(this,this.selectors[t],o,r,n)}useContextCallback(t,o){P_.useDebugValue(t);let r=le(o??pt);this.context[t]=r}useStateSetter(t){let o=P_.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 BP=c(te(),1);function vde(){let[,e]=BP.useState({});return BP.useCallback(()=>{e({})},[])}var qqe={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId},Pg=class extends El{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:xP(),nested:r,triggerElements:i},qqe),this.syncOnly=o}syncOpenEvent=(t,o)=>{(!t||!this.state.open||o!=null&&Wle(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)}};function NT(e){let{popupStore:t,treatPopupAsFloatingElement:o=!1,floatingRootContext:r,floatingId:n,nested:i,onOpenChange:s}=e,a=t.useState("open"),l=t.useState("activeTriggerElement"),d=t.useState(o?"popupElement":"positionerElement"),u=t.context.triggerElements,f=s,p=yde.useRef(null);r===void 0&&p.current===null&&(p.current=new Pg({open:a,transitionStatus:void 0,referenceElement:l,floatingElement:d,triggerElements:u,onOpenChange:f,floatingId:n,syncOnly:!0,nested:i}));let m=r??p.current;return t.useSyncedValue("floatingId",n),se(()=>{let g={open:a,floatingId:n,referenceElement:l,floatingElement:d};mt(l)&&(g.domReferenceElement=l),m.state.positionReference===m.state.referenceElement&&(g.positionReference=l),m.update(g)},[a,n,l,d,m]),m.context.onOpenChange=f,m.context.nested=i,m}var s0={tabIndex:-1,[gT]:""};function kde(e,t=!1){let o=Oa(),r=bs()!=null,n=Dt(()=>e(o,r)).current;return NT({popupStore:n,treatPopupAsFloatingElement:t,floatingRootContext:n.state.floatingRootContext,floatingId:o,nested:r,onOpenChange:n.setOpen}),n}function OP({handle:e,store:t}){return se(()=>e.attachStore(t),[e,t]),null}function wde(e){let t=e.context.triggerElements.size;e.select("open")&&e.state.triggerCount!==t&&e.set("triggerCount",t)}function uG(e,t){let o=dG.useRef(null);return le(r=>{let n=o.current;if(n!==null){if(n.element===r&&n.store===t&&n.id===e)return;o.current=null;let i=n.store;i.context.triggerElements.getById(n.id)===n.element&&(i.context.triggerElements.delete(n.id),wde(i))}r!==null&&e!==void 0&&(o.current={store:t,id:e,element:r},t.context.triggerElements.add(e,r),wde(t))})}function fG(e,t,o,r=!1){let n=e.preventUnmountingOnClose;t?n=!1:r&&(n=!0);let i=o?.id??null,s=e.activeTriggerId,a=e.activeTriggerElement;return(i||t)&&(s=i,a=o??null),{open:t,preventUnmountingOnClose:n,activeTriggerId:s,activeTriggerElement:a}}function pG(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function Sde(e,t,o,r={}){let n=o.reason,i=n===ge.triggerHover,s=t&&n===ge.triggerFocus,a=!t&&(n===ge.triggerPress||n===ge.escapeKey),l=pG(o);if(e.context.onOpenChange?.(t,o),o.isCanceled)return;r.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,o);let d=()=>{let u=fG(e.state,t,o.trigger,l()),f={...r.extraState,...u};s?f.instantType="focus":a?f.instantType="dismiss":i&&(f.instantType=void 0),e.update(f)};i?xde.flushSync(d):d()}function MP(e,t,o,r){let n=o.useState("isMountedByTrigger",e),i=uG(e,o),s=le(l=>{let d=o.select("open"),u=o.select("activeTriggerId");if(u===e){let f={activeTriggerElement:l,...d?r:null};o.update(f);return}if(u==null&&d){let f={activeTriggerId:e??null,activeTriggerElement:l,...r};o.update(f)}}),a=le(l=>{i(l),l&&s(l)});return se(()=>(a(t.current),()=>a(null)),[a,t,o,e]),se(()=>{if(n){let l={activeTriggerElement:t.current,...r};o.update(l)}},[n,o,t,...Object.values(r)]),{registerTrigger:a,isMountedByThisTrigger:n}}function AP(e,t={}){let{closeOnActiveTriggerUnmount:o=!1}=t,r=dG.useRef(null),n=e.useState("open"),i=e.useState("triggerCount"),s=e.useState("activeTriggerId"),a=e.useState("activeTriggerElement");se(()=>{if(!n){r.current=null,e.state.triggerCount!==0&&e.set("triggerCount",0);return}let l=e.context.triggerElements.size,d={};e.state.triggerCount!==l&&(d.triggerCount=l);let u=e.select("activeTriggerId"),f=null;if(u){let p=e.context.triggerElements.getById(u);if(p)r.current=u,p!==e.state.activeTriggerElement&&(d.activeTriggerElement=p);else{for(let[m,g]of e.context.triggerElements.entries())if(g===e.state.activeTriggerElement){d.activeTriggerId=m,d.activeTriggerElement=g,r.current=m;break}d.activeTriggerId===void 0&&(r.current===u?f=u:r.current=null)}}else r.current=null;if(!f&&!u&&l===1){let p=e.context.triggerElements.entries().next();if(!p.done){let[m,g]=p.value;d.activeTriggerId=m,d.activeTriggerElement=g,r.current=m}}(d.triggerCount!==void 0||d.activeTriggerId!==void 0||d.activeTriggerElement!==void 0)&&e.update(d),f&&o&&queueMicrotask(()=>{if(e.select("open")&&e.select("activeTriggerId")===f&&!e.context.triggerElements.getById(f)){let p=Ae(ge.none);e.setOpen(!1,p),p.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[n,e,i,s,a,o])}function NP(e,t,o,r){let{mounted:n,setMounted:i,transitionStatus:s}=gn(e,!1,!1,r),a=t.useState("preventUnmountingOnClose"),l=e?!1:a;t.useSyncedValues({mounted:n,transitionStatus:s,preventUnmountingOnClose:l});let d=le(()=>{i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),o?.(),t.context.onOpenChangeComplete?.(!1)});return cr({enabled:n&&!e&&!l,open:e,ref:t.context.popupRef,onComplete(){e||d()}}),{forceUnmount:d,transitionStatus:s}}function LP(e,t){e.useSyncedValues(t),se(()=>()=>{e.update({activeTriggerProps:gt,inactiveTriggerProps:gt,popupProps:gt})},[e])}var yu=class{constructor(){this.idMap=new Map}add(t,o){this.idMap.set(t,o)}delete(t){this.idMap.delete(t)}hasElement(t){for(let o of this.idMap.values())if(o===t)return!0;return!1}hasMatchingElement(t){for(let o of this.idMap.values())if(t(o))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}};function DP(e,t,o=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new Pg({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:o,onOpenChange:void 0}),floatingId:t,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:gt,inactiveTriggerProps:gt,popupProps:gt}}var LT=e=>e.triggerIdProp??e.activeTriggerId,mG=e=>e.openProp??e.open,Cde=e=>(e.popupElement?.id??e.floatingId)||void 0;function Ede(e,t){return t!==void 0&&mG(e)&<(e)===t}function Xqe(e,t){return Ede(e,t)?!0:t!==void 0&&mG(e)&<(e)==null&&e.triggerCount===1}var VP={open:mG,mounted:e=>e.mounted,transitionStatus:e=>e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:LT,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:Cde,isTriggerActive:(e,t)=>t!==void 0&<(e)===t,isOpenedByTrigger:(e,t)=>Ede(e,t),isMountedByTrigger:(e,t)=>t!==void 0&<(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>Xqe(e,t)?Cde(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement};var gG=c(te(),1),Tde=c(MT(),1);function FP(e){let t=gG.useCallback(r=>e===void 0?pt:e.subscribeStore(r),[e]),o=gG.useCallback(()=>e===void 0?void 0:e.store,[e]);return(0,Tde.useSyncExternalStore)(t,o,()=>e?.serverStore)}function hG(e){let{open:t=!1,onOpenChange:o,elements:r={}}=e,n=Oa(),i=bs()!=null,s=Dt(()=>new Pg({open:t,transitionStatus:void 0,onOpenChange:o,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new yu,floatingId:n,syncOnly:!1,nested:i})).current;return se(()=>{let a={open:t,floatingId:n};r.reference!==void 0&&(a.referenceElement=r.reference,a.domReferenceElement=mt(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 Rde(e){return Zqe(e,e.rootContext)}function Zqe(e,t){let{nodeId:o,externalTree:r}=e,n=t.useState("referenceElement"),i=t.useState("floatingElement"),s=t.useState("domReferenceElement"),a=t.useState("open"),l=t.useState("floatingId"),[d,u]=ji.useState(null),[f,p]=ji.useState(void 0),[m,g]=ji.useState(void 0),h=ji.useRef(null),b=Fi(r),v=ji.useMemo(()=>({reference:n,floating:i,domReference:s}),[n,i,s]),_=sde({...e,elements:{...v,...d&&{reference:d}}}),y=mt(f)?f:null,w=m===void 0?t.state.floatingElement:m;t.useSyncedValue("referenceElement",f??null),t.useSyncedValue("domReferenceElement",f===void 0?s:y),t.useSyncedValue("floatingElement",w);let x=ji.useCallback(I=>{let B=mt(I)?{getBoundingClientRect:()=>I.getBoundingClientRect(),getClientRects:()=>I.getClientRects(),contextElement:I}:I;u(B),_.refs.setReference(B)},[_.refs]),k=ji.useCallback(I=>{(mt(I)||I===null)&&(h.current=I,p(I)),(mt(_.refs.reference.current)||_.refs.reference.current===null||I!==null&&!mt(I))&&_.refs.setReference(I)},[_.refs,p]),C=ji.useCallback(I=>{g(I),_.refs.setFloating(I)},[_.refs]),S=ji.useMemo(()=>({..._.refs,setReference:k,setFloating:C,setPositionReference:x,domReference:h}),[_.refs,k,C,x]),R=ji.useMemo(()=>({..._.elements,domReference:s}),[_.elements,s]),E=ji.useMemo(()=>({..._,dataRef:t.context.dataRef,open:a,onOpenChange:t.setOpen,events:t.context.events,floatingId:l,refs:S,elements:R,nodeId:o,rootStore:t}),[_,S,R,o,t,a,l]);return se(()=>{s&&(h.current=s)},[s]),se(()=>{t.context.dataRef.current.floatingContext=E;let I=b?.nodesRef.current.find(B=>B.id===o);I&&(I.context=E)}),ji.useMemo(()=>({..._,context:E,refs:S,elements:R,rootStore:t}),[_,S,R,E,t])}var wu=c(te(),1);var bG=Kt.os.mac&&Kt.engine.webkit;function DT(e,t={}){let{enabled:o=!0,delay:r}=t,n="rootStore"in e?e.rootStore:e,{events:i,dataRef:s}=n.context,a=wu.useRef(!1),l=wu.useRef(null),d=wu.useRef(!0),u=Ft();wu.useEffect(()=>{let p=n.select("domReferenceElement");if(!o)return;let m=wt(p);function g(){let v=n.select("domReferenceElement");!n.select("open")&&xt(v)&&v===Sr(Je(v))&&(a.current=!0,l.current=v)}function h(){d.current=!0}function b(){d.current=!1}return Di(ut(m,"blur",g),bG&&ut(m,"keydown",h,!0),bG&&ut(m,"pointerdown",b,!0))},[n,o]),wu.useEffect(()=>{if(!o)return;function p(m){if(m.reason===ge.triggerPress||m.reason===ge.escapeKey){let g=n.select("domReferenceElement");mt(g)&&(l.current=g,a.current=!0)}}return i.on("openchange",p),()=>{i.off("openchange",p)}},[i,o,n]);let f=wu.useMemo(()=>{function p(){a.current=!1,l.current=null}return{onMouseLeave(){p()},onFocus(m){let g=m.currentTarget;if(a.current){if(l.current===g)return;p()}let h=So(m.nativeEvent);if(mt(h)){if(bG&&!m.relatedTarget){if(!d.current&&!x_(h))return}else if(!Xle(h))return}let b=kg(m.relatedTarget,n.context.triggerElements),{nativeEvent:v,currentTarget:_}=m,y=typeof r=="function"?r():r;if(n.select("open")&&b||y===0||y===void 0){n.setOpen(!0,Ae(ge.triggerFocus,v,_));return}u.start(y,()=>{a.current||n.setOpen(!0,Ae(ge.triggerFocus,v,_))})},onBlur(m){p();let g=m.relatedTarget,h=m.nativeEvent,b=mt(g)&&g.hasAttribute(np("focus-guard"))&&g.getAttribute("data-type")==="outside";u.start(0,()=>{let v=n.select("domReferenceElement"),_=Sr(Je(v));!g&&_===v||He(s.current.floatingContext?.refs.floating.current,_)||He(v,_)||b||kg(g??_,n.context.triggerElements)||n.setOpen(!1,Ae(ge.triggerFocus,h))})}}},[s,r,n,u]);return wu.useMemo(()=>o?{reference:f,trigger:f}:{},[o,f])}var vG=c(te(),1);var _G=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 Li,this.restTimeout=new Li,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},zP=new WeakMap;function a0(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&zP.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty("pointer-events"),e.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),e.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),zP.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function jP(e,t){let{scopeElement:o,referenceElement:r,floatingElement:n}=t,i=zP.get(o);i&&i!==e&&a0(i),a0(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=o,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=n,zP.set(o,e),o.style.pointerEvents="none",r.style.pointerEvents="auto",n.style.pointerEvents="auto"}function l0(e){let t=e.context.dataRef.current,o=Dt(()=>t.hoverInteractionState??_G.create()).current;return t.hoverInteractionState||(t.hoverInteractionState=o),Yw(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function VT(e,t={}){let{enabled:o=!0,closeDelay:r=0,nodeId:n}=t,i="rootStore"in e?e.rootStore:e,s=i.useState("open"),a=i.useState("floatingElement"),l=i.useState("domReferenceElement"),{dataRef:d}=i.context,u=Fi(),f=bs(),p=l0(i),m=Ft(),g=le(()=>cP(d.current.openEvent?.type,p.interactedInside)),h=le(()=>Zle(d.current.openEvent?.type)),b=le(()=>{a0(p)});se(()=>{s||(p.pointerType=void 0,p.restTimeoutPending=!1,p.interactedInside=!1,b())},[s,p,b]),vG.useEffect(()=>b,[b]),se(()=>{if(o&&s&&p.handleCloseOptions?.blockPointerEvents&&h()&&mt(l)&&a){let v=l,_=a,y=Je(a),w=u?.nodesRef.current.find(S=>S.id===f)?.context?.elements.floating;w&&(w.style.pointerEvents="");let x=p.pointerEventsScopeElement!==_?p.pointerEventsScopeElement:null,k=w!==_?w:null,C=p.handleCloseOptions?.getScope?.()??x??k??v.closest("[data-rootownerid]")??y.body;return jP(p,{scopeElement:C,referenceElement:v,floatingElement:_}),()=>{b()}}},[o,s,l,a,p,h,u,f,b]),vG.useEffect(()=>{if(!o)return;function v(){return!!(u&&f&&Cl(u.nodesRef.current,f).length>0)}function _(S){let R=qc(r,"close",p.pointerType),E=()=>{i.setOpen(!1,Ae(ge.triggerHover,S)),u?.events.emit("floating.closed",S)};R?p.openChangeTimeout.start(R,E):(p.openChangeTimeout.clear(),E())}function y(S){let R=So(S);if(!OW(R)){p.interactedInside=!1;return}p.interactedInside=R?.closest("[aria-haspopup]")!=null}function w(){p.openChangeTimeout.clear(),m.clear(),u?.events.off("floating.closed",k),b()}function x(S){if(v()&&u){u.events.on("floating.closed",k);return}if(kg(S.relatedTarget,i.context.triggerElements))return;let R=d.current.floatingContext?.nodeId??n,E=S.relatedTarget;if(!(u&&R&&mt(E)&&Cl(u.nodesRef.current,R,!1).some(B=>He(B.context?.elements.floating,E)))){if(p.handler){p.handler(S);return}b(),h()&&!g()&&_(S)}}function k(S){!u||!f||v()||m.start(0,()=>{u.events.off("floating.closed",k),i.setOpen(!1,Ae(ge.triggerHover,S)),u.events.emit("floating.closed",S)})}let C=a;return Di(C&&ut(C,"mouseenter",w),C&&ut(C,"mouseleave",x),C&&ut(C,"pointerdown",y,!0),()=>{u?.events.off("floating.closed",k)})},[o,a,i,d,r,n,h,g,b,p,u,f,m])}var Bg=c(te(),1),Ide=c(bu(),1);var Qqe={current:null};function B_(e,t={}){let{enabled:o=!0,delay:r=0,handleClose:n=null,mouseOnly:i=!1,restMs:s=0,move:a=!0,triggerElementRef:l=Qqe,externalTree:d,isActiveTrigger:u=!0,getHandleCloseContext:f,isClosing:p,shouldOpen:m,guardStaleOpen:g=!1}=t,h="rootStore"in e?e.rootStore:e,{dataRef:b,events:v}=h.context,_=Fi(d),y=l0(h),w=Bg.useRef(!1),x=co(n),k=co(r),C=co(s),S=co(o),R=co(m),E=co(p),I=le(()=>cP(b.current.openEvent?.type,y.interactedInside)),B=le(()=>R.current?.()!==!1),O=le((j,V,A)=>{let L=h.context.triggerElements;if(L.hasElement(V))return!j||!He(j,V);if(!mt(A))return!1;let z=A;return L.hasMatchingElement(F=>He(F,z))&&(!j||!He(j,z))}),M=le(()=>{if(!y.handler)return;Je(h.select("domReferenceElement")).removeEventListener("mousemove",y.handler),y.handler=void 0}),N=le(()=>{a0(y)});return u&&(y.handleCloseOptions=n?.__options),Bg.useEffect(()=>M,[M]),Bg.useEffect(()=>{if(!o)return;function j(V){V.open?w.current=!1:(w.current=V.reason===ge.triggerHover,M(),y.openChangeTimeout.clear(),y.restTimeout.clear(),y.blockMouseMove=!0,y.restTimeoutPending=!1)}return v.on("openchange",j),()=>{v.off("openchange",j)}},[o,v,y,M]),Bg.useEffect(()=>{if(!o)return;function j(G,$=!0){let K=qc(k.current,"close",y.pointerType);K?y.openChangeTimeout.start(K,()=>{h.setOpen(!1,Ae(ge.triggerHover,G)),_?.events.emit("floating.closed",G)}):$&&(y.openChangeTimeout.clear(),h.setOpen(!1,Ae(ge.triggerHover,G)),_?.events.emit("floating.closed",G))}let V=l.current??(u?h.select("domReferenceElement"):null);if(!mt(V))return;function A(G){if(y.openChangeTimeout.clear(),y.blockMouseMove=!1,i&&!Ma(y.pointerType))return;let $=MW(C.current),K=qc(k.current,"open",y.pointerType),q=So(G),H=G.currentTarget??null,J=h.select("domReferenceElement"),W=H;if(mt(q)&&!h.context.triggerElements.hasElement(q)){for(let ye of h.context.triggerElements.elements())if(He(ye,q)){W=ye;break}}mt(H)&&mt(J)&&!h.context.triggerElements.hasElement(H)&&He(H,J)&&(W=J);let Y=W==null?!1:O(J,W,q),ee=h.select("open"),re=E.current?.()??h.select("transitionStatus")==="ending",ne=!ee&&re&&w.current,ie=!Y&&mt(W)&&mt(J)&&He(J,W)&&ne,be=$>0&&!K,pe=Y&&(ee||ne)||ie,Ee=!ee||Y;if(pe){B()&&h.setOpen(!0,Ae(ge.triggerHover,G,W));return}be||(K?y.openChangeTimeout.start(K,()=>{Ee&&B()&&h.setOpen(!0,Ae(ge.triggerHover,G,W))}):Ee&&B()&&h.setOpen(!0,Ae(ge.triggerHover,G,W)))}function L(G){if(I()){N();return}M();let $=h.select("domReferenceElement"),K=Je($);y.restTimeout.clear(),y.restTimeoutPending=!1;let q=b.current.floatingContext??f?.();if(kg(G.relatedTarget,h.context.triggerElements))return;if(x.current&&q){h.select("open")||y.openChangeTimeout.clear();let J=l.current;y.handler=x.current({...q,tree:_,x:G.clientX,y:G.clientY,onClose(){N(),M(),S.current&&!I()&&J===h.select("domReferenceElement")&&j(G,!0)}}),K.addEventListener("mousemove",y.handler),y.handler(G);return}(y.pointerType!=="touch"||!He(h.select("floatingElement"),G.relatedTarget))&&j(G)}function z(G){He(V,G.relatedTarget)||(y.openChangeTimeout.clear(),y.restTimeout.clear(),y.restTimeoutPending=!1)}let F=g?ut(V,"mouseout",z):void 0;return a?Di(ut(V,"mousemove",A,{once:!0}),ut(V,"mouseenter",A),ut(V,"mouseleave",L),F):Di(ut(V,"mouseenter",A),ut(V,"mouseleave",L),F)},[M,N,b,k,h,o,x,y,u,O,I,i,a,C,l,_,S,f,E,B,g]),Bg.useMemo(()=>{if(!o)return;function j(V){y.pointerType=V.pointerType}return{onPointerDown:j,onPointerEnter:j,onMouseMove(V){let{nativeEvent:A}=V,L=V.currentTarget,z=h.select("domReferenceElement"),F=h.select("open"),G=O(z,L,V.target);if(i&&!Ma(y.pointerType))return;if(F&&G&&y.handleCloseOptions?.blockPointerEvents){let q=h.select("floatingElement");if(q){let H=y.handleCloseOptions?.getScope?.()??L.ownerDocument.body;jP(y,{scopeElement:H,referenceElement:L,floatingElement:q})}}let $=MW(C.current);if(F&&!G||$===0||!G&&y.restTimeoutPending&&V.movementX**2+V.movementY**2<2)return;y.restTimeout.clear();function K(){if(y.restTimeoutPending=!1,I())return;let q=h.select("open");!y.blockMouseMove&&(!q||G)&&B()&&h.setOpen(!0,Ae(ge.triggerHover,A,L))}y.pointerType==="touch"?Ide.flushSync(()=>{K()}):G&&F?K():(y.restTimeoutPending=!0,y.restTimeout.start($,K))}}},[o,y,I,O,i,h,C,B])}var ui=c(te(),1);var Jqe="Escape";function Pde(e){return Kt.engine.webkit&&e.movementX===0&&e.movementY===0}function UP(e,t,o){switch(e){case"vertical":return t;case"horizontal":return o;default:return t||o}}function HP(e,t){return UP(t,e===PW||e===sP,e===hT||e===bT)}function yG(e,t,o){return UP(t,e===sP,o?e===hT:e===bT)||e==="Enter"||e===" "||e===""}function eXe(e,t,o){return UP(t,o?e===hT:e===bT,e===sP)}function tXe(e,t,o,r){let n=o?e===bT:e===hT,i=e===PW;return t==="both"||t==="horizontal"&&r?e===Jqe:UP(t,n,i)}function FT(e,t){let{listRef:o,activeIndex:r,onNavigate:n=()=>{},enabled:i=!0,selectedIndex:s=null,allowEscape:a=!1,loopFocus:l=!1,nested:d=!1,rtl:u=!1,virtual:f=!1,focusItemOnOpen:p="auto",focusItemOnHover:m=!0,openOnArrowKeyDown:g=!0,disabledIndices:h=void 0,orientation:b="vertical",parentOrientation:v,id:_,resetOnPointerLeave:y=!0,externalTree:w,grid:x}=t,k=x!=null,C="rootStore"in e?e.rootStore:e,S=C.useState("open"),R=C.useState("floatingElement"),E=C.useState("domReferenceElement"),I=C.context.dataRef,B=k_(R),O=yT(E),M=co(B),N=bs(),j=Fi(w),V=ui.useRef(p),A=ui.useRef(s??-1),L=ui.useRef(null),z=ui.useRef(!0),F=le(fe=>{n(A.current===-1?null:A.current,fe)}),G=ui.useRef(!!R),$=ui.useRef(S),K=ui.useRef(!1),q=ui.useRef(!1),H=ui.useRef(null),J=co(h),W=co(S),Y=co(s),ee=co(y),re=ps(),ne=ps(),ie=le(()=>{function fe(Re){f?j?.events.emit("virtualfocus",Re):H.current=o0(Re,{sync:K.current,preventScroll:!0})}let Ce=o.current[A.current],de=q.current;Ce&&fe(Ce),(K.current?Re=>Re():Re=>re.request(Re))(()=>{let Re=o.current[A.current]||Ce;if(!Re)return;Ce||fe(Re),we&&(de||!z.current)&&Re.scrollIntoView?.({block:"nearest",inline:"nearest"})})});se(()=>{I.current.orientation=b},[I,b]),se(()=>{i&&(S&&R?(A.current=s??-1,V.current&&s!=null&&(q.current=!0,F())):G.current&&(A.current=-1,F()))},[i,S,R,s,F]),se(()=>{if(i){if(!S){K.current=!1;return}if(R)if(r==null){if(K.current=!1,Y.current!=null)return;if(G.current&&(A.current=-1,ie()),(!$.current||!G.current)&&V.current&&(L.current!=null||V.current===!0&&L.current==null)){let fe=0,Ce=()=>{o.current[0]==null?(fe<2&&(fe?ae=>ne.request(ae):queueMicrotask)(Ce),fe+=1):(A.current=L.current==null||yG(L.current,b,u)||d?S_(o):Jw(o),L.current=null,F())};Ce()}}else Eg(o.current,r)||(A.current=r,ie(),q.current=!1)}},[i,S,R,r,Y,d,o,b,u,F,ie,ne]),se(()=>{if(!i||R||!j||f||!G.current)return;let fe=j.nodesRef.current,Ce=fe.find(Re=>Re.id===N)?.context?.elements.floating,de=Sr(Je(E??Ce??null)),ae=fe.some(Re=>Re.context&&He(Re.context.elements.floating,de));Ce&&!ae&&z.current&&Ce.focus({preventScroll:!0})},[i,R,E,j,N,f]),se(()=>{$.current=S,G.current=!!R}),se(()=>{S||(L.current=null,V.current=p)},[S,p]);let be=r!=null,pe=le(fe=>{if(!W.current)return;let Ce=o.current.indexOf(fe.currentTarget);Ce!==-1&&(A.current!==Ce||r!==Ce)&&(A.current=Ce,F(fe))}),Ee=le(()=>v??j?.nodesRef.current.find(fe=>fe.id===N)?.context?.dataRef?.current.orientation),ye=le(()=>S_(o,J.current)),Oe=le(fe=>{if(z.current=!1,K.current=!0,fe.which===229||!W.current&&fe.currentTarget===M.current)return;if(d&&tXe(fe.key,b,u,k)){HP(fe.key,Ee())||Zs(fe),C.setOpen(!1,Ae(ge.listNavigation,fe.nativeEvent)),xt(E)&&(f?j?.events.emit("virtualfocus",E):E.focus());return}let Ce=A.current,de=S_(o,h),ae=Jw(o,h);if(O||(fe.key==="Home"&&(Zs(fe),A.current=de,F(fe)),fe.key==="End"&&(Zs(fe),A.current=ae,F(fe))),x!=null){let Re=x(fe,A.current,o,b,l,u,h,de,ae);if(Re!=null&&(A.current=Re,F(fe)),b==="both")return}if(HP(fe.key,b)){if(Zs(fe),S&&!f&&Sr(fe.currentTarget.ownerDocument)===fe.currentTarget){A.current=yG(fe.key,b,u)?de:ae,F(fe);return}yG(fe.key,b,u)?l?Ce>=ae?a&&Ce!==o.current.length?A.current=-1:(K.current=!1,A.current=de):A.current=Sl(o.current,{startingIndex:Ce,disabledIndices:h}):A.current=Math.min(ae,Sl(o.current,{startingIndex:Ce,disabledIndices:h})):l?Ce<=de?a&&Ce!==-1?A.current=o.current.length:(K.current=!1,A.current=ae):A.current=Sl(o.current,{startingIndex:Ce,decrement:!0,disabledIndices:h}):A.current=Math.max(de,Sl(o.current,{startingIndex:Ce,decrement:!0,disabledIndices:h})),Eg(o.current,A.current)&&(A.current=-1),F(fe)}}),we=ui.useMemo(()=>({onFocus(Ce){K.current=!0,pe(Ce)},onClick:({currentTarget:Ce})=>Ce.focus({preventScroll:!0}),onMouseMove(Ce){Pde(Ce)||(K.current=!0,q.current=!1,m&&pe(Ce))},onPointerLeave(Ce){if(!W.current||!z.current||Ce.pointerType==="touch")return;K.current=!0;let de=Ce.relatedTarget;if(!(!m||o.current.includes(de))&&ee.current&&(H.current?.(),H.current=null,A.current=-1,F(Ce),!f)){let ae=M.current,Re=Sr(Je(ae));ae&&He(ae,Re)&&ae.focus({preventScroll:!0})}}}),[pe,W,M,m,o,F,ee,f]),_e=ui.useMemo(()=>f&&S&&be&&{"aria-activedescendant":`${_}-${r}`},[f,S,be,_,r]),xe=ui.useMemo(()=>({...O?{}:_e,onKeyDown(fe){if(fe.key==="Tab"&&fe.shiftKey&&S&&!f){let Ce=So(fe.nativeEvent);if(Ce&&!He(M.current,Ce))return;Zs(fe),C.setOpen(!1,Ae(ge.focusOut,fe.nativeEvent)),xt(E)&&E.focus();return}Oe(fe)},onPointerMove(fe){Pde(fe)||(z.current=!0)}}),[_e,Oe,M,O,C,S,f,E]),he=ui.useMemo(()=>{function fe(ae){C.setOpen(!0,Ae(ge.listNavigation,ae.nativeEvent,ae.currentTarget))}function Ce(ae){p==="auto"&&wg(ae.nativeEvent)&&(V.current=!f)}function de(ae){V.current=p,p==="auto"&&Zw(ae.nativeEvent)&&(V.current=!0)}return{onKeyDown(ae){let Re=C.select("open");z.current=!1;let $e=ae.key.startsWith("Arrow"),ct=eXe(ae.key,Ee(),u),Pt=HP(ae.key,b),at=(d?ct:Pt)||ae.key==="Enter"||ae.key.trim()==="";if(f&&Re)return Oe(ae);if(!(!Re&&!g&&$e)){if(at){let Be=HP(ae.key,Ee());L.current=d&&Be?null:ae.key}if(d){ct&&(Zs(ae),Re?(A.current=ye(),F(ae)):fe(ae));return}Pt&&(Y.current!=null&&(A.current=Y.current),Zs(ae),!Re&&g?fe(ae):Oe(ae),Re&&F(ae))}},onFocus(ae){C.select("open")&&!f&&(A.current=-1,F(ae))},onPointerDown:de,onPointerEnter:de,onMouseDown:Ce,onClick:Ce}},[Oe,p,ye,d,F,C,g,b,Ee,u,Y,f]),Ze=ui.useMemo(()=>({..._e,...he}),[_e,he]);return ui.useMemo(()=>i?{reference:Ze,floating:xe,item:we,trigger:he}:{},[i,Ze,xe,he,we])}var O_=c(te(),1);function zT(e,t){let{listRef:o,elementsRef:r,activeIndex:n,onMatch:i,disabledIndices:s,onTyping:a,enabled:l=!0,resetMs:d=750,selectedIndex:u=null}=t,f="rootStore"in e?e.rootStore:e,p=f.useState("open"),m=Ft(),g=O_.useRef(""),h=O_.useRef(u??n??-1),b=O_.useRef(null),v=le(w=>{function x(M){return r?.current[M]}function k(M){let N=x(M);return N&&!C_(N)||N?.matches(":disabled")?!1:s==null||!op(In,M,s)}function C(M,N,j=0){if(M.length===0)return-1;let V=(j%M.length+M.length)%M.length,A=N.toLowerCase();for(let L=0;L<M.length;L+=1){let z=(V+L)%M.length;if(!(!M[z]?.toLowerCase().startsWith(A)||!k(z)))return z}return-1}let S=o.current;if(g.current.length>0&&w.key===" "&&(Zs(w),a?.(!0)),g.current.length>0&&g.current[0]!==" "&&C(S,g.current)===-1&&w.key!==" "&&a?.(!1),S==null||w.key.length!==1||w.ctrlKey||w.metaKey||w.altKey)return;p&&w.key!==" "&&(Zs(w),a?.(!0));let R=g.current==="";R&&(h.current=u??n??-1),S.every((M,N)=>M&&k(N)?M[0]?.toLowerCase()!==M[1]?.toLowerCase():!0)&&g.current===w.key&&(g.current="",h.current=b.current),g.current+=w.key,m.start(d,()=>{g.current="",h.current=b.current,a?.(!1)});let B=((R?u??n??-1:h.current)??0)+1,O=C(S,g.current,B);O!==-1?(i?.(O),b.current=O):w.key!==" "&&(g.current="",a?.(!1))}),_=le(w=>{let x=w.relatedTarget,k=f.select("domReferenceElement"),C=f.select("floatingElement");He(k,x)||He(C,x)||(m.clear(),g.current="",h.current=b.current,a?.(!1))});se(()=>{!p&&u!==null||(m.clear(),b.current=null,g.current!==""&&(g.current=""))},[p,u,m]);let y=O_.useMemo(()=>({onKeyDown:v,onBlur:_}),[v,_]);return O_.useMemo(()=>l?{reference:y,floating:y}:{},[l,y])}var Bde=.1,oXe=Bde*Bde,Io=.5;function WP(e,t,o,r,n,i){return r>=t!=i>=t&&e<=(n-o)*(t-r)/(i-r)+o}function GP(e,t,o,r,n,i,s,a,l,d){let u=!1;return WP(e,t,o,r,n,i)&&(u=!u),WP(e,t,n,i,s,a)&&(u=!u),WP(e,t,s,a,l,d)&&(u=!u),WP(e,t,l,d,o,r)&&(u=!u),u}function rXe(e,t,o){return e>=o.x&&e<=o.x+o.width&&t>=o.y&&t<=o.y+o.height}function $P(e,t,o,r,n,i){let s=Math.min(o,n),a=Math.max(o,n),l=Math.min(r,i),d=Math.max(r,i);return e>=s&&e<=a&&t>=l&&t<=d}function M_(e={}){let{blockPointerEvents:t=!1}=e,o=new Li,r=({x:n,y:i,placement:s,elements:a,onClose:l,nodeId:d,tree:u})=>{let f=s?.split("-")[0],p=!1,m=null,g=null,h=typeof performance<"u"?performance.now():0;function b(_,y){let w=performance.now(),x=w-h;if(m===null||g===null||x===0)return m=_,g=y,h=w,!1;let k=_-m,C=y-g,S=k*k+C*C,R=x*x*oXe;return m=_,g=y,h=w,S<R}function v(){o.clear(),l()}return function(y){o.clear();let w=a.domReference,x=a.floating;if(!w||!x||f==null||n==null||i==null)return;let{clientX:k,clientY:C}=y,S=So(y),R=y.type==="mouseleave",E=He(x,S),I=He(w,S);if(E&&(p=!0,!R))return;if(I&&(p=!1,!R)){p=!0;return}if(R&&mt(y.relatedTarget)&&He(x,y.relatedTarget))return;function B(){return!!(u&&Cl(u.nodesRef.current,d).length>0)}function O(){B()||v()}if(B())return;let M=w.getBoundingClientRect(),N=x.getBoundingClientRect(),j=n>N.right-N.width/2,V=i>N.bottom-N.height/2,A=N.width>M.width,L=N.height>M.height,z=(A?M:N).left,F=(A?M:N).right,G=(L?M:N).top,$=(L?M:N).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){O();return}let K=!1;switch(f){case"top":K=$P(k,C,z,M.top+1,F,N.bottom-1);break;case"bottom":K=$P(k,C,z,N.top+1,F,M.bottom-1);break;case"left":K=$P(k,C,N.right-1,$,M.left+1,G);break;case"right":K=$P(k,C,M.right-1,$,N.left+1,G);break;default:}if(K)return;if(p&&!rXe(k,C,M)){O();return}if(!R&&b(k,C)){O();return}let q=!1;switch(f){case"top":{let H=A?Io/2:Io*4,J=A||j?n+H:n-H,W=A?n-H:j?n+H:n-H,Y=i+Io+1,ee=j||A?N.bottom-Io:N.top,re=j?A?N.bottom-Io:N.top:N.bottom-Io;q=GP(k,C,J,Y,W,Y,N.left,ee,N.right,re);break}case"bottom":{let H=A?Io/2:Io*4,J=A||j?n+H:n-H,W=A?n-H:j?n+H:n-H,Y=i-Io,ee=j||A?N.top+Io:N.bottom,re=j?A?N.top+Io:N.bottom:N.top+Io;q=GP(k,C,J,Y,W,Y,N.left,ee,N.right,re);break}case"left":{let H=L?Io/2:Io*4,J=L||V?i+H:i-H,W=L?i-H:V?i+H:i-H,Y=n+Io+1,ee=V||L?N.right-Io:N.left,re=V?L?N.right-Io:N.left:N.right-Io;q=GP(k,C,ee,N.top,re,N.bottom,Y,J,Y,W);break}case"right":{let H=L?Io/2:Io*4,J=L||V?i+H:i-H,W=L?i-H:V?i+H:i-H,Y=n-Io,ee=V||L?N.left+Io:N.right,re=V?L?N.left+Io:N.right:N.left+Io;q=GP(k,C,Y,J,Y,W,ee,N.top,re,N.bottom);break}default:}q?p||o.start(40,O):O()}};return r.__options={...e,blockPointerEvents:t},r}var c0=class extends El{setState(t){}update(t){}set(t,o){}notifyAll(){}};var KP="ArrowUp",qP="ArrowDown",XP="ArrowLeft",ZP="ArrowRight",QP="Home",JP="End";var d0=new Set([KP,qP,XP,ZP,QP,JP]),nXe="Shift",Mde=[nXe,"Control","Alt","Meta"];function iXe(e){return xt(e)&&e.tagName==="INPUT"}function wG(e){return!!(iXe(e)&&e.selectionStart!=null||xt(e)&&e.tagName==="TEXTAREA")}function xG(e,t,o,r){if(!e||!t||!t.scrollTo)return;let n=e.scrollLeft,i=e.scrollTop,s=e.clientWidth<e.scrollWidth,a=e.clientHeight<e.scrollHeight;if(s&&r!=="vertical"){let l=Ode(e,t,"left"),d=YP(e),u=YP(t);o==="ltr"&&(l+t.offsetWidth+u.scrollMarginRight>e.scrollLeft+e.clientWidth-d.scrollPaddingRight?n=l+t.offsetWidth+u.scrollMarginRight-e.clientWidth+d.scrollPaddingRight:l-u.scrollMarginLeft<e.scrollLeft+d.scrollPaddingLeft&&(n=l-u.scrollMarginLeft-d.scrollPaddingLeft)),o==="rtl"&&(l-u.scrollMarginLeft<e.scrollLeft+d.scrollPaddingLeft?n=l-u.scrollMarginLeft-d.scrollPaddingLeft:l+t.offsetWidth+u.scrollMarginRight>e.scrollLeft+e.clientWidth-d.scrollPaddingRight&&(n=l+t.offsetWidth+u.scrollMarginRight-e.clientWidth+d.scrollPaddingRight))}if(a&&r!=="horizontal"){let l=Ode(e,t,"top"),d=YP(e),u=YP(t);l-u.scrollMarginTop<e.scrollTop+d.scrollPaddingTop?i=l-u.scrollMarginTop-d.scrollPaddingTop:l+t.offsetHeight+u.scrollMarginBottom>e.scrollTop+e.clientHeight-d.scrollPaddingBottom&&(i=l+t.offsetHeight+u.scrollMarginBottom-e.clientHeight+d.scrollPaddingBottom)}e.scrollTo({left:n,top:i,behavior:"auto"})}function Ode(e,t,o){let r=o==="left"?"offsetLeft":"offsetTop",n=0;for(;t.offsetParent&&(n+=t[r],t.offsetParent!==e);)t=t.offsetParent;return n}function YP(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}function Og(e){return $w(19)?e:e?"true":void 0}var Ade=c(te(),1),Nde=c(T(),1),eB=Ade.forwardRef(function(t,o){let{cutout:r,...n}=t,i;if(r){let s=r.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${s.left}px ${s.top}px,${s.left}px ${s.bottom}px,${s.right}px ${s.bottom}px,${s.right}px ${s.top}px,${s.left}px ${s.top}px)`}return(0,Nde.jsx)("div",{ref:o,role:"presentation","data-base-ui-inert":"",...n,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:i}})});var HT=c(te(),1);var jT=c(te(),1);function Lde(e){let t=jT.useRef(""),o=jT.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:jT.useCallback(n=>{if(n.detail===0){e(n,"keyboard");return}"pointerType"in n?e(n,n.pointerType):e(n,t.current),t.current=""},[e]),onPointerDown:o}}var Dde=c(te(),1);function u0(e,t){let o=Dde.useRef(e),r=le(t);se(()=>{o.current!==e&&r(o.current),o.current=e},[e,r])}function sXe(e,t){let o=le((i,s)=>{(typeof e=="function"?e():e)||t(s||(Kt.os.ios?"touch":""))}),{onClick:r,onPointerDown:n}=Lde(o);return HT.useMemo(()=>({onClick:r,onPointerDown:n}),[r,n])}function tB(e){let[t,o]=HT.useState(null),r=sXe(e,o);return u0(e,n=>{n&&!e&&o(null)}),HT.useMemo(()=>({openMethod:t,triggerProps:r}),[t,r])}var Vde=c(te(),1);function Fde(e){let t=Vde.useRef(!0);t.current&&(t.current=!1,e())}function zde(e,t,o=Object.is){let{length:r}=e;if(r!==t.length)return!1;for(let n=0;n<r;n+=1)if(!o(e[n],t[n]))return!1;return!0}var SG=(e,t)=>Object.is(e,t);function ip(e,t,o){return e==null||t==null?Object.is(e,t):o(e,t)}function jde(e,t,o){return Array.isArray(e)&&Array.isArray(t)?!zde(e,t,(r,n)=>ip(r,n,o)):e!==t}function kG(e,t,o){return e?e.some(r=>r===void 0?!1:ip(t,r,o)):!1}function UT(e,t,o){return e?e.findIndex(r=>r===void 0?!1:ip(r,t,o)):-1}function aXe(e,t){if(t!==SG)return r=>kG(e,r,t);let o=new Set(e);return o.delete(void 0),r=>o.has(r)&&(r!==0||e.some(n=>Object.is(r,n)))}function CG(e,t,o,r){let n=r&&Array.isArray(t)?e.findIndex(aXe(t,o)):UT(e,t,o);return n===-1?null:n}function Hde(e,t,o,r,n,i){return kG(r,t,n)?i!=null&&e>i&&kG(r,o[i],n)?i:e:e===i?CG(o,r,n,!0):i}function Ude(e,t,o){return e.filter(r=>!ip(t,r,o))}var Wde=c(te(),1);function oB(e){if(e==null)return"";if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}var Gde=c(T(),1);function lXe(e){return typeof e=="object"&&e!=null&&Array.isArray(e.items)}function $de(e){return lXe(e?.[0])}function cXe(e){return $de(e)?e.flatMap(t=>t.items):e}function Yde(e){if(!Array.isArray(e))return e!=null&&"null"in e;let t=e;if($de(t)){for(let o of t)for(let r of o.items)if(r&&r.value==null&&r.label!=null)return!0;return!1}for(let o of t)if(o&&o.value==null&&o.label!=null)return!0;return!1}function EG(e,t){if(t&&e!=null)return t(e)??"";if(e&&typeof e=="object"){if("label"in e&&e.label!=null)return String(e.label);if("value"in e)return String(e.value)}return oB(e)}function Mg(e,t){return t&&e!=null?t(e)??"":e&&typeof e=="object"&&"value"in e&&"label"in e?oB(e.value):oB(e)}function TG(e,t,o){function r(){return EG(e,o)}if(o&&e!=null)return o(e);if(e&&typeof e=="object"&&"label"in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return(Object.hasOwn(t,e)?t[e]:void 0)??r();if(Array.isArray(t)){let i=cXe(t);if(e==null||typeof e!="object"){let s=i.find(a=>a.value===e);return s&&s.label!=null?s.label:r()}if("value"in e){let s=i.find(a=>a&&a.value===e.value);if(s&&s.label!=null)return s.label}}return r()}function Kde(e,t,o){return e.reduce((r,n,i)=>(i>0&&r.push(", "),r.push((0,Gde.jsx)(Wde.Fragment,{children:TG(n,t,o)},i)),r),[])}var rB=c(te(),1);var qde="data-valid",Xde="data-invalid";var A_={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},uXe={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},Zde={disabled:!1,...uXe},Hi={valid(e){return e===null?null:e?{[qde]:""}:{[Xde]:""}}};var fXe={invalid:void 0,name:void 0,validityData:{state:A_,errors:[],error:"",value:"",initialValue:null},setValidityData:pt,disabled:void 0,setTouched:pt,setDirty:pt,setFilled:pt,setFocused:pt,validationMode:"onSubmit",shouldValidateOnChange:()=>!1,state:Zde,registerFieldControl:pt,validation:{getValidationProps:(e,t=gt)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:pt,getInputControl:()=>null,commit:async()=>{},change:pt}},RG=rB.createContext(fXe);function _n(e=!0){let t=rB.useContext(RG);if(t.setValidityData===pt&&!e)throw new Error(ot(28));return t}function nB(e,t,o,r,n=!0,i){let{registerFieldControl:s}=_n(),a=Dt(()=>Symbol());se(()=>{let l=a.current;if(!n){s(l,void 0);return}s(l,{controlRef:e,getValue:r,id:t,name:i,value:o})},[e,n,r,t,i,s,a,o]),se(()=>{let l=a.current;return()=>{s(l,void 0)}},[s,a])}var iB=c(te(),1);var pXe=iB.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:pt,validationMode:"onSubmit",submitCountRef:{current:0}});function Tl(){return iB.useContext(pXe)}var PG=c(te(),1);var sB=c(te(),1);var IG=sB.createContext({controlId:void 0,registerControlId:pt,resetControlId:pt,labelId:void 0,setLabelId:pt,messageIds:[],setMessageIds:pt,getDescriptionProps:e=>e});function Un(){return sB.useContext(IG)}function f0(e={}){let{id:t,enabled:o=!0}=e,{controlId:r,registerControlId:n,resetControlId:i}=Un(),s=Yt(),a=Dt(()=>Symbol()),l=PG.useRef(!1),d=PG.useRef(!1),u=le(()=>{!l.current||n===pt||(l.current=!1,n(a.current,void 0))});return se(()=>{if(!o||n===pt){u();return}let f;if(t!==void 0)d.current=!0,f=t;else if(d.current)f=s;else{i();return}if(f===void 0){u();return}l.current=!0,n(a.current,f)},[t,o,n,i,s,a,u]),se(()=>u,[u]),(o?r:void 0)??t??s}var aB=c(te(),1),BG=aB.createContext(void 0);function Rl(){return aB.useContext(BG)?.direction??"ltr"}var lB=5;function cB(e,t){let o=mXe(t);return e.clientX>=o.left-lB&&e.clientX<=o.right+lB&&e.clientY>=o.top-lB&&e.clientY<=o.bottom+lB}function mXe(e){let t=e.getBoundingClientRect(),o=wt(e);if(Kt.env.jsdom)return t;let r=o.getComputedStyle(e,"::before"),n=o.getComputedStyle(e,"::after");if(!(r.content!=="none"||n.content!=="none"))return t;let s=parseFloat(r.width)||0,a=parseFloat(r.height)||0,l=parseFloat(n.width)||0,d=parseFloat(n.height)||0,u=Math.max(t.width,s,l),f=Math.max(t.height,a,d),p=u-t.width,m=f-t.height;return{left:t.left-p/2,right:t.right+p/2,top:t.top-m/2,bottom:t.bottom+m/2}}function Qde(e){return e==null?void 0:`${e}-label`}function Jde(e,t){return e??t}var Aa=c(te(),1);var gXe=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:d,padding:u=0,offsetParent:f="real"}=vu(e,t)||{};if(d==null)return{};let p=gP(u),m={x:o,y:r},g=ST(n),h=kT(g),b=await s.getDimensions(d),v=g==="y",_=v?"top":"left",y=v?"bottom":"right",w=v?"clientHeight":"clientWidth",x=i.reference[h]+i.reference[g]-m[g]-i.floating[h],k=m[g]-i.reference[g],C=f==="real"?await s.getOffsetParent?.(d):a.floating,S=a.floating[w]||i.floating[h];(!S||!await s.isElement?.(C))&&(S=a.floating[w]||i.floating[h]);let R=x/2-k/2,E=S/2-b[h]/2-1,I=Math.min(p[_],E),B=Math.min(p[y],E),O=I,M=S-b[h]-B,N=S/2-b[h]/2+R,j=pP(O,N,M),V=!l.arrow&&kl(n)!=null&&N!==j&&i.reference[h]/2-(N<O?I:B)-b[h]/2<0,A=V?N<O?N-O:N-M:0;return{[g]:m[g]+A,data:{[g]:j,centerOffset:N-j-A,...V&&{alignmentOffset:A}},reset:V}}}),eue=(e,t)=>{let{name:o,fn:r}=gXe(e);return{name:o,fn:r,options:[e,t]}};var tue={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,s=await e.platform.detectOverflow(e,{elementContext:"reference"});return{data:{referenceHidden:s.top-o>=0||s.right-t>=0||s.bottom-o>=0||s.left-t>=0||i}}}};var p0={sideX:"left",sideY:"top"};var dB="--available-width",uB="--available-height",oue="--anchor-width",rue="--anchor-height",nue="--transform-origin",iue="--positioner-width",sue="--positioner-height";var lue=dB,cue=uB;function fue(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 due(e,t,o){let{rects:r,placement:n}=e;return{side:fue(t,Vi(n),o),align:kl(n)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function m0(e){return hXe(e,Rde)}function hXe(e,t){let{anchor:o,positionMethod:r="absolute",side:n="bottom",sideOffset:i=0,align:s="center",alignOffset:a=0,collisionBoundary:l,collisionPadding:d=5,sticky:u=!1,arrowPadding:f=5,disableAnchorTracking:p=!1,inline:m,keepMounted:g=!1,floatingRootContext:h,mounted:b,collisionAvoidance:v,shift:_,nodeId:y,adaptiveOrigin:w,lazyFlip:x=!1,externalTree:k}=e,[C,S]=Aa.useState(null);!b&&C!==null&&S(null);let R=v.side||"flip",E=v.align||"flip",I=v.fallbackAxisSide||"end",B=_?.crossAxis??!1,O=_?.rootBoundary,M=typeof o=="function"?o:void 0,N=le(M),j=M?N:o,V=co(o),A=co(b),z=Rl()==="rtl",F=C||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":z?"left":"right","inline-start":z?"right":"left"}[n],G=s==="center"?F:`${F}-${s}`,$=d;typeof $=="number"?$={top:$,right:$,bottom:$,left:$}:$&&($={top:$.top||0,right:$.right||0,bottom:$.bottom||0,left:$.left||0});let K=1,q=n==="bottom"?K:0,H=n==="top"?K:0,J=n==="right"?K:0,W=n==="left"?K:0,Y={boundary:l==="clipping-ancestors"?"clippingAncestors":l,padding:$},ee=Aa.useRef(null),re=co(i),ne=co(a),ie=typeof i!="function"?i:0,be=typeof a!="function"?a:0,pe=[];m&&pe.push(m),pe.push(tG(me=>{let Te=due(me,n,z),Me=typeof re.current=="function"?re.current(Te):re.current,lt=typeof ne.current=="function"?ne.current(Te):ne.current;return{mainAxis:Me,crossAxis:lt,alignmentAxis:lt}},[ie,be,z,n]));let Ee=E==="none"&&R!=="shift",ye=!Ee&&(u||B||R==="shift"),Oe=R==="none"?null:nG({...Y,padding:{top:$.top+K+q,right:$.right+K+W,bottom:$.bottom+K+H,left:$.left+K+J},mainAxis:!B&&R==="flip",crossAxis:E==="flip"?"alignment":!1,fallbackAxisSideDirection:I}),we=Ee?null:oG({...Y,rootBoundary:O,mainAxis:E!=="none",crossAxis:ye,limiter:u||B?void 0:rG(me=>{if(!ee.current)return{};let{width:Te,height:Me}=ee.current.getBoundingClientRect(),lt=Qs(Vi(me.placement)),et=lt==="y"?Te:Me,ao=lt==="y"?$.left+$.right:$.top+$.bottom;return{offset:et/2+ao/2}})},[Y,u,B,O,$,E]);R==="shift"||E==="shift"||s==="center"?pe.push(we,Oe):pe.push(Oe,we),pe.push(iG({...Y,apply({elements:{floating:me},availableWidth:Te,availableHeight:Me,rects:lt}){if(!A.current)return;let et=me.style;et.setProperty(lue,`${Te}px`),et.setProperty(cue,`${Me}px`);let ao=wt(me).devicePixelRatio||1,{x:Lo,y:$r,width:xo,height:_o}=lt.reference,ht=(Math.round((Lo+xo)*ao)-Math.round(Lo*ao))/ao,Ot=(Math.round(($r+_o)*ao)-Math.round($r*ao))/ao;et.setProperty(oue,`${ht}px`),et.setProperty(rue,`${Ot}px`)}}),eue(me=>({element:ee.current||Je(me.elements.floating).createElement("div"),padding:ee.current?f:0,offsetParent:"floating"}),[f]),{name:"transformOrigin",fn(me){let{elements:{floating:Te},middlewareData:Me,placement:lt,platform:et,rects:ao,y:Lo}=me,$r=Vi(lt),xo=kl(lt),_o=Qs($r)==="y",ht=ee.current,Ot=typeof i=="function"?i(due(me,n,z)):i,fn;if(!ht&&xo&&Math.abs(_o?Me.shift?.x||0:Me.shift?.y||0)<=1)fn=xo==="start"===(_o&&et.isRTL?.(Te)===!0)?"100%":"0%";else{let Cn=_o?Me.arrow?.x||0:Me.arrow?.y||0,Pi=_o?ht?.clientWidth||0:ht?.clientHeight||0;fn=`${Cn+Pi/2}px`}let Ii=$r==="top"||$r==="left"?`calc(100% + ${Ot}px)`:`${-Ot}px`;return ye&&_o&&Math.abs(Me.shift?.y||0)>Ot&&(Ii=`${ao.reference.y+ao.reference.height/2-Lo}px`),Te.style.setProperty(nue,_o?`${fn} ${Ii}`:`${Ii} ${fn}`),{}}},tue,w),se(()=>{!b&&h&&h.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[b,h]);let _e=Aa.useMemo(()=>({ancestorScroll:!p,elementResize:!p&&typeof ResizeObserver<"u",layoutShift:!p&&typeof IntersectionObserver<"u"}),[p]),{refs:xe,elements:he,x:Ze,y:fe,middlewareData:Ce,update:de,placement:ae,context:Re,isPositioned:$e,floatingStyles:ct}=t({rootContext:h,open:g?b:void 0,placement:G,middleware:pe,strategy:r,whileElementsMounted:g?void 0:(...me)=>OT(...me,_e),nodeId:y,externalTree:k}),{sideX:Pt,sideY:at}=Ce.adaptiveOrigin||p0,Be=$e?r:"fixed",qe=Aa.useMemo(()=>{let me;return $e?w?me={position:Be,[Pt]:Ze,[at]:fe}:me={...ct,position:Be}:me={position:Be,top:0,left:0},me[lue]="100vw",me[cue]="100vh",$e||(me.opacity=0),me},[w,Be,Pt,Ze,at,fe,ct,$e]),vt=Aa.useRef(null);se(()=>{if(!b)return;let me=V.current,Te=typeof me=="function"?me():me,lt=(uue(Te)?Te.current:Te)||null||null;lt!==vt.current&&(xe.setPositionReference(lt),vt.current=lt)},[b,xe,j,V]),Aa.useEffect(()=>{if(!b)return;let me=V.current;typeof me!="function"&&uue(me)&&me.current!==vt.current&&(xe.setPositionReference(me.current),vt.current=me.current)},[b,xe,j,V]),Aa.useEffect(()=>{if(g&&b&&he.reference&&he.floating)return OT(he.reference,he.floating,de,_e)},[g,b,he,de,_e]);let Vt=Vi(ae),kt=fue(n,Vt,z),yt=kl(ae)||"center",Ye=!!Ce.hide?.referenceHidden;se(()=>{x&&b&&$e&&Vt!==F&&S(Vt)},[x,b,$e,Vt,F]);let Se=Aa.useMemo(()=>({position:"absolute",top:Ce.arrow?.y,left:Ce.arrow?.x}),[Ce.arrow]),Ie=Ce.arrow?.centerOffset!==0;return Aa.useMemo(()=>({positionerStyles:qe,arrowStyles:Se,arrowRef:ee,arrowUncentered:Ie,side:kt,align:yt,physicalSide:Vt,anchorHidden:Ye,refs:xe,context:Re,isPositioned:$e,update:de}),[qe,Se,ee,Ie,kt,yt,Vt,Ye,xe,Re,$e,de])}function uue(e){return e!=null&&"current"in e}function Ag(e){return e==="starting"?Sce:gt}function g0(e,t,{styles:o,transitionStatus:r,props:n,refs:i,hidden:s,inert:a=!1}){let l={...o};return a&&(l.pointerEvents="none"),ke("div",e,{state:t,ref:i,props:[{role:"presentation",hidden:s,style:l},Ag(r),n],stateAttributesMapping:Kc})}var pue=c(te(),1);var bXe=20;function fB(e,t,o,r){let[n,i]=pue.useState(!1);se(()=>{if(!e||!t||o==null){i(!1);return}let s=Je(o).documentElement.clientWidth,a=o.offsetWidth;i(s>0&&a>0&&a>=s-bXe)},[e,t,o]),Hle(e&&(!t||n),r)}var mue=c(te(),1);var gue=mue.forwardRef(function(t,o){let{className:r,render:n,orientation:i="horizontal",style:s,...a}=t;return ke("div",t,{state:{orientation:i},ref:o,props:[{role:"presentation"},a]})});var hue=c(te(),1);var OG=hue.forwardRef(function(t,o){let{render:r,className:n,disabled:i=!1,focusableWhenDisabled:s=!1,nativeButton:a=!0,style:l,...d}=t,{getButtonProps:u,buttonRef:f}=di({disabled:i,focusableWhenDisabled:s,native:a});return ke("button",t,{state:{disabled:i},ref:[o,f],props:[d,u]})});var pB=c(te(),1),MG=pB.createContext({disabled:!1});function mB(){return pB.useContext(MG)}var sp=c(te(),1);function N_(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}var AG=Object.keys(A_);function _Xe(e,t){return e.matches(":disabled")?!1:!t||e.form===t?!0:e.form===null&&!e.hasAttribute("form")}function bue(e,t){let o=null;for(let r of e.keys())if(_Xe(r,t)){if(!r.validity.valid)return r;o??=r}return o}function _ue(e){return{...A_,valid:!e,customError:e}}function NG(e){return e&&e.validationMessage?[e.validationMessage]:[]}function vue(e){let{elementRef:t,formRef:o}=Tl(),{setValidityData:r,validate:n,validityData:i,validationDebounceTime:s,invalid:a,markedDirtyRef:l,state:d,shouldValidateOnChange:u,validationMode:f,registeredFieldIdRef:p}=e,{controlId:m,getDescriptionProps:g}=Un(),h=Ft(),b=sp.useRef(null),v=Dt(()=>new Map).current,_=sp.useRef(0),y=sp.useRef(null),w=sp.useCallback((R,E)=>(v.set(R,E),()=>{v.delete(R)}),[v]),x=le(()=>{let R=bue(v,t.current);return R&&v.get(R)?.controlRef.current||null}),k=le(async(R,E=!1)=>{_.current+=1;let I=_.current;function B(K,q=a){let H=p.current??m;if(H==null)return;let J=o.current.fields.get(H);if(!J)return;let W=N_(K,q);o.current.fields.set(H,{...J,validityData:W})}function O(K,q){let H=K.valid===!1?q:[];return{value:R,state:K,error:H[0]??"",errors:H,initialValue:i.initialValue}}function M(K,q){let H=K.validity.customError?K.validationMessage:"",J=q.replace(/\r\n?/g,` | |
| 86 | +`);K.setCustomValidity(J),y.current=[K,J,H]}function N(){let K=y.current;y.current=null,K&&(!K[0].willValidate||K[0].validationMessage===K[1])&&K[0].setCustomValidity(K[2])}function j(K,q,H){let J=O(K,q);B(J,H),r(J)}function V(K){let q=AG.reduce((J,W)=>(J[W]=K.validity[W],J),{}),H=!1;for(let J of AG)if(J!=="valid"){if(J==="valueMissing"&&q[J])H=!0;else if(q[J])return q}return H&&!l.current&&(q.valid=!0,q.valueMissing=!1),q}function A(){return v.size>0?bue(v,t.current):b.current}let L=A();function z(){return L=A(),L?.willValidate?V(L):_ue(!1)}if(E){if(d.valid!==!1||!L)return;if(!L.validity.valueMissing){N();let K=A(),q=K?.validity.customError?NG(K):[];j(_ue(q.length>0),q,!1);return}for(let K of AG)if(K!=="valid"&&K!=="valueMissing"&&K!=="customError"&&L.validity[K])return}h.clear(),N();let F=z(),G=NG(L),$=u();if(G.length===0||$){let K=Array.from(o.current.fields.values()).reduce((J,W)=>(W.name&&(J[W.name]=W.getValue()),J),{}),q=n(R,K),H;if(typeof q=="object"&&q!==null&&"then"in q){if(F.valid===!1?j(F,G):(f==="onSubmit"||!i.state.customError)&&(F.valid=null,j(F,G)),H=await q,I!==_.current)return;F=z()}else H=q;G=H?[].concat(H).filter(Boolean):[],G.length>0?(F.valid=!1,F.customError=!0,L?.willValidate&&M(L,G.join(` | |
| 87 | +`))):G=NG(L)}j(F,G)}),C=le((R,E=!1)=>{if(h.clear(),_.current+=1,E)return;let I=u();I&&R!==""&&s?h.start(s,()=>{k(R)}):k(R,!I)}),S=sp.useCallback((R,E={})=>st(g(E),d.valid===!1&&!d.disabled&&!R?{"aria-invalid":!0}:gt),[g,d.disabled,d.valid]);return sp.useMemo(()=>({getValidationProps:S,inputRef:b,registeredInputs:v,registerInput:w,getInputControl:x,commit:k,change:C}),[S,v,w,x,k,C])}var Ng={};ro(Ng,{Panel:()=>Eue,Root:()=>wue,Trigger:()=>kue});var WT=c(te(),1);var gB={...Sle,...hn};var yue=c(T(),1),wue=WT.forwardRef(function(t,o){let{render:r,className:n,defaultOpen:i=!1,disabled:s=!1,onOpenChange:a,open:l,style:d,...u}=t,f=le(a),p=ble({open:l,defaultOpen:i,onOpenChange:f,disabled:s}),m=WT.useMemo(()=>({open:p.open,disabled:p.disabled,transitionStatus:p.transitionStatus}),[p.open,p.disabled,p.transitionStatus]),g=WT.useMemo(()=>({...p,onOpenChange:f,state:m}),[p,f,m]),h=ke("div",t,{state:m,ref:o,props:u,stateAttributesMapping:gB});return(0,yue.jsx)(mW.Provider,{value:g,children:h})});var xue=c(te(),1);var vXe={...kle,...hn},kue=xue.forwardRef(function(t,o){let{panelId:r,open:n,handleTrigger:i,state:s,disabled:a}=X9(),{className:l,disabled:d=a,render:u,nativeButton:f=!0,style:p,...m}=t,{getButtonProps:g,buttonRef:h}=di({disabled:d,focusableWhenDisabled:!0,native:f});return ke("button",t,{state:s,ref:[o,h],props:[{"aria-controls":n?r:void 0,"aria-expanded":n,onClick:i},m,g],stateAttributesMapping:vXe})});var LG=c(te(),1);var Sue="--collapsible-panel-height",Cue="--collapsible-panel-width";var Eue=LG.forwardRef(function(t,o){let{className:r,hiddenUntilFound:n,keepMounted:i,render:s,id:a,style:l,...d}=t,{defaultPanelId:u,mounted:f,onOpenChange:p,open:m,setMounted:g,setPanelIdState:h,setOpen:b,state:v,transitionStatus:_}=X9(),y=n??!1,w=i??!1,x=a||void 0,k=x??u;se(()=>(h(V=>x??(V===null?void 0:V)),()=>{h(V=>V===x?null:V)}),[x,h]);let{height:C,props:S,ref:R,shouldPreventOpenAnimation:E,shouldRender:I,transitionStatus:B,width:O}=Mle({externalRef:o,hiddenUntilFound:y,id:k,keepMounted:w,mounted:f,onOpenChange:p,open:m,setMounted:g,setOpen:b,transitionStatus:_}),M={...v,transitionStatus:B},N=U9(l,M),j=ke("div",{...t,style:void 0},{state:M,ref:R,props:[S,{style:{[Sue]:C===void 0?"auto":`${C}px`,[Cue]:O===void 0?"auto":`${O}px`}},d,N?{style:N}:void 0,E?{style:{animationName:"none"}}:void 0],stateAttributesMapping:gB});return I?j:null});function Tue(e,t){let o=Yt(e);return se(()=>(t(o),()=>{t(r=>r===o?void 0:r)}),[o,t]),o}function hB(e={}){let{id:t,fallbackControlId:o,native:r=!1,setLabelId:n,focusControl:i}=e,{controlId:s,setLabelId:a}=Un(),l=le(m=>{a(m),n?.(m)}),d=Tue(t,l),u=s??o;function f(m){if(i){i(m,u);return}if(!u)return;let g=Je(m.currentTarget).getElementById(u);xt(g)&&wXe(g)}function p(m){So(m.nativeEvent)?.closest("button,input,select,textarea")||(!m.defaultPrevented&&m.detail>1&&m.preventDefault(),!r&&f(m))}return r?{id:d,htmlFor:u,onMouseDown:p}:{id:d,onClick:p,onPointerDown(m){m.preventDefault()}}}function wXe(e){e.focus({focusVisible:!0})}var bB=c(te(),1),xXe=bB.createContext(void 0);function Lg(e=!0){let t=bB.useContext(xXe);if(t===void 0&&!e)throw new Error(ot(25));return t}var qt={};ro(qt,{Arrow:()=>Iue,Backdrop:()=>Bue,CheckboxItem:()=>Due,CheckboxItemIndicator:()=>Vue,Group:()=>jue,GroupLabel:()=>Uue,Handle:()=>XT,Item:()=>Gue,LinkItem:()=>$ue,Popup:()=>Kue,Portal:()=>Zue,Positioner:()=>Que,RadioGroup:()=>efe,RadioItem:()=>rfe,RadioItemIndicator:()=>nfe,Root:()=>zB,Separator:()=>Pfe,SubmenuRoot:()=>dfe,SubmenuTrigger:()=>Bfe,Trigger:()=>hfe,Viewport:()=>Rfe,createHandle:()=>Ofe});var Rue=c(te(),1);var _B=c(te(),1),DG=_B.createContext(void 0);function Ui(e){let t=_B.useContext(DG);if(t===void 0&&!e)throw new Error(ot(33));return t}var vB=c(te(),1),VG=vB.createContext(void 0);function Po(e){let t=vB.useContext(VG);if(t===void 0&&!e)throw new Error(ot(36));return t}var Iue=Rue.forwardRef(function(t,o){let{render:r,className:n,style:i,...s}=t,{store:a}=Po(),{arrowRef:l,side:d,align:u,arrowUncentered:f,arrowStyles:p}=Ui(),g={open:a.useState("open"),side:d,align:u,uncentered:f};return ke("div",t,{ref:[l,o],stateAttributesMapping:Kc,state:g,props:{style:p,"aria-hidden":!0,...s}})});var Pue=c(te(),1);var Bue=Pue.forwardRef(function(t,o){let{render:r,className:n,style:i,...s}=t,{store:a}=Po(),l=a.useState("open"),d=a.useState("mounted"),u=a.useState("transitionStatus"),f=a.useState("lastOpenChangeReason"),p=Lg(),m={open:l,transitionStatus:u};return ke("div",t,{ref:p?.backdropRef?[o,p.backdropRef]:o,state:m,stateAttributesMapping:xg,props:[{role:"presentation",hidden:!d,style:{pointerEvents:f===ge.triggerHover?"none":void 0,userSelect:"none",WebkitUserSelect:"none"}},s]})});var xB=c(te(),1);var yB=c(te(),1),FG=yB.createContext(void 0);function Oue(){let e=yB.useContext(FG);if(e===void 0)throw new Error(ot(30));return e}var h0=c(te(),1);var Mue=c(te(),1);function wB(e){let{closeOnClick:t,highlighted:o,id:r,nodeId:n,store:i,typingRef:s,itemRef:a,itemMetadata:l}=e,{events:d}=i.useState("floatingTreeRoot"),u=i.useState("open"),f=Lg(!0),p=f!==void 0;return Mue.useMemo(()=>({id:r,role:"menuitem",tabIndex:u&&o?0:-1,onKeyDown(m){m.key===" "&&s?.current&&m.preventDefault()},onMouseMove(m){n&&d.emit("itemhover",{nodeId:n,target:m.currentTarget})},onClick(m){t&&d.emit("close",{domEvent:m,reason:ge.itemPress})},onMouseUp(m){if(f){let g=f.initialCursorPointRef.current;if(f.initialCursorPointRef.current=null,p&&g&&Math.abs(m.clientX-g.x)<=1&&Math.abs(m.clientY-g.y)<=1||p&&!Kt.os.mac&&m.button===2)return}a.current&&i.context.allowMouseUpTriggerRef.current&&(!p||m.button===2)&&l.type==="regular-item"&&Kw(a.current,m,{detail:1})}}),[t,o,r,d,n,u,i,s,a,f,p,l])}var Dg={type:"regular-item"};function Vg(e){let{closeOnClick:t,disabled:o,highlighted:r,id:n,store:i,typingRef:s=i.context.typingRef,nativeButton:a,itemMetadata:l,nodeId:d}=e,u=h0.useRef(null),{getButtonProps:f,buttonRef:p}=di({disabled:o,focusableWhenDisabled:!0,native:a,composite:!0}),m=wB({closeOnClick:t,highlighted:r,id:n,nodeId:d,store:i,typingRef:s,itemRef:u,itemMetadata:l}),g=h0.useCallback(b=>st(m,{onMouseEnter(){l.type==="submenu-trigger"&&l.setActive()}},b,f),[m,f,l]),h=Ai(u,p);return h0.useMemo(()=>({getItemProps:g,itemRef:h}),[g,h])}var Aue="data-checked",Nue="data-unchecked";var Fg={checked(e){return e?{[Aue]:""}:{[Nue]:""}},...hn};var Lue=c(T(),1),Due=xB.forwardRef(function(t,o){let{render:r,className:n,id:i,label:s,nativeButton:a=!1,disabled:l=!1,closeOnClick:d=!1,checked:u,defaultChecked:f,onCheckedChange:p,style:m,...g}=t,h=Ni({guess:!0,label:s}),b=Ui(!0),v=Yt(i),{store:_}=Po(),y=_.useState("disabled"),w=l||y,x=_.useState("isActive",h.index),k=_.useState("itemProps"),[C,S]=Ba({controlled:u,default:f??!1,name:"MenuCheckboxItem",state:"checked"}),{getItemProps:R,itemRef:E}=Vg({closeOnClick:d,disabled:w,highlighted:x,id:v,store:_,nativeButton:a,nodeId:b?.context.nodeId,itemMetadata:Dg}),I=xB.useMemo(()=>({disabled:w,highlighted:x,checked:C}),[w,x,C]);function B(M){let N=Ae(ge.itemPress,M.nativeEvent,void 0,{preventUnmountOnClose:pt});p?.(!C,N),!N.isCanceled&&S(j=>!j)}let O=ke("div",t,{state:I,stateAttributesMapping:Fg,props:[k,{role:"menuitemcheckbox","aria-checked":C,onClick:B},g,R],ref:[E,o,h.ref]});return(0,Lue.jsx)(FG.Provider,{value:I,children:O})});var kB=c(te(),1);var Vue=kB.forwardRef(function(t,o){let{render:r,className:n,style:i,keepMounted:s=!1,...a}=t,l=Oue(),d=kB.useRef(null),{transitionStatus:u,mounted:f,setMounted:p}=gn(l.checked);cr({batch:!0,enabled:!l.checked,open:l.checked,ref:d,onComplete(){l.checked||p(!1)}});let m={checked:l.checked,disabled:l.disabled,highlighted:l.highlighted,transitionStatus:u};return ke("span",t,{state:m,ref:[o,d],stateAttributesMapping:Fg,props:{"aria-hidden":!0,...a},enabled:s||f})});var CB=c(te(),1);var SB=c(te(),1),GT=SB.createContext(void 0);function Fue(){let e=SB.useContext(GT);if(e===void 0)throw new Error(ot(31));return e}var zue=c(T(),1),jue=CB.forwardRef(function(t,o){let{render:r,className:n,style:i,...s}=t,[a,l]=CB.useState(void 0),d=ke("div",t,{ref:o,props:{role:"group","aria-labelledby":a,...s}});return(0,zue.jsx)(GT.Provider,{value:l,children:d})});var Hue=c(te(),1);var Uue=Hue.forwardRef(function(t,o){let{render:r,className:n,style:i,id:s,...a}=t,l=Yt(s),d=Fue();return se(()=>(d(l),()=>{d(u=>u===l?void 0:u)}),[d,l]),ke("div",t,{ref:o,props:{id:l,"aria-hidden":!0,...a}})});var Wue=c(te(),1);var Gue=Wue.forwardRef(function(t,o){let{render:r,className:n,id:i,label:s,nativeButton:a=!1,disabled:l=!1,closeOnClick:d=!0,style:u,...f}=t,p=Ni({guess:!0,label:s}),m=Ui(!0),g=Yt(i),{store:h}=Po(),b=h.useState("disabled"),v=l||b,_=h.useState("isActive",p.index),y=h.useState("itemProps"),{getItemProps:w,itemRef:x}=Vg({closeOnClick:d,disabled:v,highlighted:_,id:g,store:h,nativeButton:a,nodeId:m?.context.nodeId,itemMetadata:Dg});return ke("div",t,{state:{disabled:v,highlighted:_},props:[y,f,w],ref:[x,o,p.ref]})});var EB=c(te(),1);var $ue=EB.forwardRef(function(t,o){let{render:r,className:n,id:i,label:s,closeOnClick:a=!1,style:l,...d}=t,u=EB.useRef(null),f=Ni({guess:!0,label:s}),m=Ui(!0)?.context.nodeId,g=Yt(i),{store:h}=Po(),b=h.useState("isActive",f.index),v=h.useState("itemProps"),_=h.context.typingRef,{getButtonProps:y,buttonRef:w}=di({native:!1,composite:!0}),x=wB({closeOnClick:a,highlighted:b,id:g,nodeId:m,store:h,typingRef:_,itemRef:u,itemMetadata:Dg});function k(S){return st(x,S,y)}return ke("a",t,{state:{highlighted:b},props:[v,d,k],ref:[u,w,o,f.ref]})});var IB=c(te(),1);var TB=c(te(),1),SXe=TB.createContext(void 0);function RB(e){let t=TB.useContext(SXe);if(t===void 0&&!e)throw new Error(ot(69));return t}var Yue=c(T(),1),Kue=IB.forwardRef(function(t,o){let{render:r,className:n,style:i,finalFocus:s,...a}=t,{store:l}=Po(),{side:d,align:u}=Ui(),f=RB(!0)!=null,p=l.useState("open"),m=l.useState("transitionStatus"),g=l.useState("popupProps"),h=l.useState("mounted"),b=l.useState("instantType"),v=l.useState("activeTriggerElement"),_=l.useState("parent"),y=l.useState("lastOpenChangeReason"),w=l.useState("rootId"),x=l.useState("floatingRootContext"),k=l.useState("floatingTreeRoot"),C=l.useState("closeDelay"),S=l.useState("hoverEnabled"),R=l.useState("disabled"),E=l.useState("openMethod"),I=_.type==="context-menu";cr({open:p,ref:l.context.popupRef,onComplete(){p&&l.context.onOpenChangeComplete?.(!0)}}),IB.useEffect(()=>{function j(V){l.setOpen(!1,Ae(V.reason,V.domEvent))}return k.events.on("close",j),()=>{k.events.off("close",j)}},[k.events,l]),VT(x,{enabled:S&&!R&&!I&&_.type!=="menubar",closeDelay:C});let B=l.useStateSetter("popupElement"),O={transitionStatus:m,side:d,align:u,open:p,nested:_.type==="menu",instant:b},M=ke("div",t,{state:O,ref:[o,l.context.popupRef,B],stateAttributesMapping:xg,props:[g,{onKeyDown(j){f&&d0.has(j.key)&&j.stopPropagation()}},Ag(m),a,{"data-rootownerid":w}]}),N=_.type===void 0||I;return(v||_.type==="menubar"&&y!==ge.outsidePress)&&(N=!0),(0,Yue.jsx)(IT,{context:x,openInteractionType:E,modal:I,disabled:!h,returnFocus:s===void 0?N:s,initialFocus:_.type!=="menu",restoreFocus:!0,externalTree:_.type!=="menubar"?k:void 0,previousFocusableElement:v,nextFocusableElement:_.type===void 0?l.context.triggerFocusTargetRef:void 0,beforeContentFocusGuardRef:_.type===void 0?l.context.beforeContentFocusGuardRef:void 0,children:M})});var Xue=c(te(),1);var PB=c(te(),1),zG=PB.createContext(void 0);function que(){let e=PB.useContext(zG);if(e===void 0)throw new Error(ot(32));return e}var jG=c(T(),1),Zue=Xue.forwardRef(function(t,o){let{keepMounted:r=!1,...n}=t,{store:i,parent:s}=Po();if(!(i.useState("mounted")||r))return null;let d=s.type==="menu"||s.type==="menubar"?"group":void 0;return(0,jG.jsx)(zG.Provider,{value:r,children:(0,jG.jsx)(ET,{ref:o,...n,portalOwnerRole:d})})});var xu=c(te(),1);var b0=c(T(),1),Que=xu.forwardRef(function(t,o){let{anchor:r,positionMethod:n="absolute",className:i,render:s,side:a,align:l,sideOffset:d=0,alignOffset:u=0,collisionBoundary:f="clipping-ancestors",collisionPadding:p=5,arrowPadding:m=5,sticky:g=!1,disableAnchorTracking:h=!1,collisionAvoidance:b=vP,style:v,..._}=t,{store:y}=Po(),w=que(),x=Lg(!0),k=y.useState("parent"),C=y.useState("floatingRootContext"),S=y.useState("floatingTreeRoot"),R=y.useState("mounted"),E=y.useState("open"),I=y.useState("modal"),B=y.useState("openMethod"),O=y.useState("activeTriggerElement"),M=y.useState("transitionStatus"),N=y.useState("positionerElement"),j=y.useState("instantType"),V=y.useState("adaptiveOrigin"),A=y.useState("lastOpenChangeReason"),L=y.useState("floatingNodeId"),z=y.useState("floatingParentNodeId"),F=C.useState("domReferenceElement"),G=xu.useRef(null),$=xl(N),K=r,q=d,H=u,J=l,W=b;k.type==="context-menu"&&(K=r??k.context?.anchor,J=J??"start",!a&&J!=="center"&&(H=t.alignOffset??2,q=t.sideOffset??-5));let Y=a,ee=J;k.type==="menu"?(Y=Y??"inline-end",ee=ee??"start",W=t.collisionAvoidance??yP):k.type==="menubar"&&(Y=Y??(k.context.orientation==="vertical"?"inline-end":"bottom"),ee=ee??"start");let re=k.type==="context-menu",ne=m0({anchor:K,floatingRootContext:C,positionMethod:x?"fixed":n,mounted:R,side:Y,sideOffset:q,align:ee,alignOffset:H,arrowPadding:re?0:m,collisionBoundary:f,collisionPadding:p,sticky:g,nodeId:L,keepMounted:w,disableAnchorTracking:h,collisionAvoidance:W,shift:re?{crossAxis:!("side"in W&&W.side==="flip"),rootBoundary:"layoutViewport"}:void 0,externalTree:S,adaptiveOrigin:V});xu.useEffect(()=>{function _e(xe){xe.open&&(xe.parentNodeId===L&&y.set("hoverEnabled",!1),xe.nodeId!==L&&xe.parentNodeId===y.select("floatingParentNodeId")&&y.setOpen(!1,Ae(ge.siblingOpen)))}return S.events.on("menuopenchange",_e),()=>{S.events.off("menuopenchange",_e)}},[y,S.events,L]),xu.useEffect(()=>{if(y.select("floatingParentNodeId")==null)return;function _e(xe){if(xe.open||xe.nodeId!==y.select("floatingParentNodeId"))return;let he=xe.reason??ge.siblingOpen;y.setOpen(!1,Ae(he))}return S.events.on("menuopenchange",_e),()=>{S.events.off("menuopenchange",_e)}},[S.events,y]);let ie=Ft();xu.useEffect(()=>{E||ie.clear()},[E,ie]),xu.useEffect(()=>{function _e(xe){if(!(!E||xe.nodeId!==y.select("floatingParentNodeId")))if(xe.target&&O&&O!==xe.target){let he=y.select("closeDelay");he>0?ie.isStarted()||ie.start(he,()=>{y.setOpen(!1,Ae(ge.siblingOpen))}):y.setOpen(!1,Ae(ge.siblingOpen))}else ie.clear()}return S.events.on("itemhover",_e),()=>{S.events.off("itemhover",_e)}},[S.events,E,O,y,ie]),xu.useEffect(()=>{let _e={open:E,nodeId:L,parentNodeId:z,reason:y.select("lastOpenChangeReason")};S.events.emit("menuopenchange",_e)},[S.events,E,y,L,z]),se(()=>{let _e=F,xe=G.current;if(_e&&(G.current=_e),xe&&_e&&_e!==xe){y.set("instantType",void 0);let he=new AbortController;return $(()=>{y.set("instantType","trigger-change")},he.signal),()=>{he.abort()}}},[F,$,y]);let be={open:E,side:ne.side,align:ne.align,anchorHidden:ne.anchorHidden,nested:k.type==="menu",instant:j},pe=k.type==="menubar"&&k.context.modal,Ee=I&&A!==ge.triggerHover;fB(E&&(pe||Ee),B==="touch",N,O);let ye=g0(t,be,{styles:ne.positionerStyles,transitionStatus:M,props:_,refs:[o,y.useStateSetter("positionerElement")],hidden:!R,inert:!E}),Oe=R&&k.type!=="menu"&&(k.type!=="menubar"&&I&&A!==ge.triggerHover||k.type==="menubar"&&k.context.modal),we=null;return k.type==="menubar"?we=k.context.contentElement:k.type===void 0&&(we=O),(0,b0.jsxs)(DG.Provider,{value:ne,children:[Oe&&(0,b0.jsx)(eB,{ref:k.type==="context-menu"||k.type==="nested-context-menu"?k.context.internalBackdropRef:null,inert:Og(!E),cutout:we}),(0,b0.jsx)(KW,{id:L,children:(0,b0.jsx)(bg,{elementsRef:y.context.itemDomElements,labelsRef:y.context.itemLabels,children:ye})})]})});var zg=c(te(),1);var BB=c(te(),1),HG=BB.createContext(void 0);function Jue(){let e=BB.useContext(HG);if(e===void 0)throw new Error(ot(34));return e}var UG=c(T(),1),efe=zg.memo(zg.forwardRef(function(t,o){let{render:r,className:n,value:i,defaultValue:s,onValueChange:a,disabled:l=!1,style:d,"aria-labelledby":u,...f}=t,[p,m]=zg.useState(void 0),[g,h]=Ba({controlled:i,default:s,name:"MenuRadioGroup"}),b=le((w,x)=>{a?.(w,x),!x.isCanceled&&h(w)}),_=ke("div",t,{state:{disabled:l},ref:o,props:{role:"group","aria-labelledby":u??p,"aria-disabled":l||void 0,...f}}),y=zg.useMemo(()=>({value:g,setValue:b,disabled:l}),[g,b,l]);return(0,UG.jsx)(GT.Provider,{value:m,children:(0,UG.jsx)(HG.Provider,{value:y,children:_})})}));var MB=c(te(),1);var OB=c(te(),1),WG=OB.createContext(void 0);function tfe(){let e=OB.useContext(WG);if(e===void 0)throw new Error(ot(35));return e}var ofe=c(T(),1),rfe=MB.forwardRef(function(t,o){let{render:r,className:n,id:i,label:s,nativeButton:a=!1,disabled:l=!1,closeOnClick:d=!1,value:u,style:f,...p}=t,m=Ni({guess:!0,label:s}),g=Ui(!0),h=Yt(i),{store:b}=Po(),v=b.useState("isActive",m.index),_=b.useState("itemProps"),{value:y,setValue:w,disabled:x}=Jue(),k=b.useState("disabled"),C=l||x||k,S=y===u,{getItemProps:R,itemRef:E}=Vg({closeOnClick:d,disabled:C,highlighted:v,id:h,store:b,nativeButton:a,nodeId:g?.context.nodeId,itemMetadata:Dg}),I=MB.useMemo(()=>({disabled:C,highlighted:v,checked:S}),[C,v,S]);function B(M){let N=Ae(ge.itemPress,M.nativeEvent,void 0,{preventUnmountOnClose:pt});w(u,N)}let O=ke("div",t,{state:I,stateAttributesMapping:Fg,props:[_,{role:"menuitemradio","aria-checked":S,onClick:B},p,R],ref:[E,o,m.ref]});return(0,ofe.jsx)(WG.Provider,{value:I,children:O})});var AB=c(te(),1);var nfe=AB.forwardRef(function(t,o){let{render:r,className:n,style:i,keepMounted:s=!1,...a}=t,l=tfe(),d=AB.useRef(null),{transitionStatus:u,mounted:f,setMounted:p}=gn(l.checked);cr({batch:!0,enabled:!l.checked,open:l.checked,ref:d,onComplete(){l.checked||p(!1)}});let m={checked:l.checked,disabled:l.disabled,highlighted:l.highlighted,transitionStatus:u};return ke("span",t,{state:m,stateAttributesMapping:Fg,ref:[o,d],props:{"aria-hidden":!0,...a},enabled:s||f})});var qr=c(te(),1);var NB=c(te(),1),CXe=NB.createContext(null);function LB(e){let t=NB.useContext(CXe);if(t===null&&!e)throw new Error(ot(5));return t}var $T=c(te(),1);var ife={...VP,disabled:e=>e.parent.type==="menubar"&&e.parent.context.disabled||e.disabled,modal:e=>(e.parent.type===void 0||e.parent.type==="context-menu")&&(e.modal??!0),openMethod:e=>e.openMethod,allowMouseEnter:e=>e.allowMouseEnter,highlightItemOnHover:e=>e.highlightItemOnHover,parent:e=>e.parent,rootId:e=>e.parent.type==="menu"?e.parent.store.select("rootId"):e.parent.type!==void 0?e.parent.context.rootId:e.rootId,activeIndex:e=>e.activeIndex,isActive:(e,t)=>e.activeIndex===t,hoverEnabled:e=>e.hoverEnabled,instantType:e=>e.instantType,lastOpenChangeReason:e=>e.openChangeReason,floatingTreeRoot:e=>e.parent.type==="menu"?e.parent.store.select("floatingTreeRoot"):e.floatingTreeRoot,floatingNodeId:e=>e.floatingNodeId,floatingParentNodeId:e=>e.floatingParentNodeId,itemProps:e=>e.itemProps,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin,keyboardEventRelay:e=>{if(e.keyboardEventRelay)return e.keyboardEventRelay;if(e.parent.type==="menu")return e.parent.store.select("keyboardEventRelay")}},DB=class extends El{constructor(t,o,r=!1){let n=new yu,i=lfe(n,o,r,t);super(i,afe(n),ife),this.unsubscribeParentListener=this.observe("parent",s=>{if(this.unsubscribeParentListener?.(),s.type==="menu"){let a=s.store.select("rootId"),l=s.store.select("floatingTreeRoot"),d=s.store.select("keyboardEventRelay");this.unsubscribeParentListener=s.store.subscribe(()=>{let u=s.store.select("rootId"),f=s.store.select("floatingTreeRoot"),p=s.store.select("keyboardEventRelay");a===u&&l===f&&d===p||(a=u,l=f,d=p,this.notifyAll())}),this.context.allowMouseUpTriggerRef=s.store.context.allowMouseUpTriggerRef;return}s.type!==void 0&&(this.context.allowMouseUpTriggerRef=s.context.allowMouseUpTriggerRef),this.unsubscribeParentListener=null})}setOpen(t,o){this.state.floatingRootContext.context.events.emit("setOpen",{open:t,eventDetails:o})}unsubscribeParentListener=null};function sfe(){let e=new yu,t=new c0(Object.freeze(lfe(e)),Object.freeze(afe(e)),ife);return Object.assign(t,{setOpen:pt})}function afe(e){return{positionerRef:$T.createRef(),popupRef:$T.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},allowMouseUpTriggerRef:{current:!1},triggerFocusTargetRef:$T.createRef(),beforeContentFocusGuardRef:$T.createRef(),onOpenChangeComplete:void 0,triggerElements:e}}function lfe(e,t,o=!1,r){return{...DP(e,t,o),disabled:!1,modal:!0,openMethod:null,allowMouseEnter:!1,highlightItemOnHover:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new Tg,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:gt,keyboardEventRelay:void 0,closeDelay:0,adaptiveOrigin:void 0,...r}}var VB=c(te(),1),GG=VB.createContext(void 0);function FB(){return VB.useContext(GG)}var YT=c(T(),1),zB=AT(function(t){let{children:o,open:r,onOpenChange:n,onOpenChangeComplete:i,defaultOpen:s=!1,disabled:a=!1,modal:l,loopFocus:d=!0,orientation:u="vertical",actionsRef:f,closeParentOnEsc:p=!1,handle:m,triggerId:g,defaultTriggerId:h=null,highlightItemOnHover:b=!0}=t,v=Lg(!0),_=Po(!0),y=LB(!0),w=FB(),x=qr.useMemo(()=>w&&_?{type:"menu",store:_.store}:y?{type:"menubar",context:y}:v&&!_?{type:"context-menu",context:v}:{type:void 0},[v,_,y,w]),k=Oa(),C=Oa(),S=bs(),R=x.type==="menu"?x.store:void 0,E=(r??s)&&R?.state.transitionStatus==="starting",I=Dt(()=>E?R?.state.instantType:void 0).current,B=EXe({open:s,openProp:r,activeTriggerId:h,triggerIdProp:g,parent:x,disabled:a,highlightItemOnHover:b,modal:x.type===void 0?l:void 0,rootId:k,instantType:I},C,S!=null);B.useControlledProp("openProp",r),B.useControlledProp("triggerIdProp",g),B.useContextCallback("onOpenChangeComplete",i);let O=B.useState("floatingTreeRoot"),M=TT(O),N=B.useState("open"),j=B.useState("activeTriggerElement"),V=B.useState("positionerElement"),A=B.useState("hoverEnabled"),L=B.useState("disabled"),z=B.useState("lastOpenChangeReason"),F=B.useState("parent"),G=B.useState("activeIndex"),$=B.useState("payload"),K=B.useState("floatingParentNodeId"),q=qr.useRef(null),H=qr.useRef(F.type!=="context-menu"),J=Ft(),W=qr.useRef(!0),Y=Ft(),ee=K!=null,{openMethod:re,triggerProps:ne}=tB(N);B.useSyncedValues({disabled:a,highlightItemOnHover:b,modal:F.type===void 0?l:void 0,openMethod:re,rootId:k}),AP(B);let{forceUnmount:ie,transitionStatus:be}=NP(N,B,()=>{B.set("allowMouseEnter",!1)},E),pe=xl(B.context.popupRef);qr.useEffect(()=>{if(I===void 0)return;let Be=()=>{B.state.instantType===I&&B.set("instantType",void 0)};if(!N){Be();return}if(be!==void 0)return;if(B.context.popupRef.current==null){Be();return}let qe=new AbortController;return pe(Be,qe.signal),()=>{qe.abort()}},[I,N,be,pe,B]),se(()=>{v&&!_?B.update({parent:{type:"context-menu",context:v},floatingNodeId:M,floatingParentNodeId:S}):_&&B.update({floatingNodeId:M,floatingParentNodeId:S})},[v,_,M,S,B]),qr.useEffect(()=>{if(N||(q.current=null),F.type==="context-menu"){if(!N){J.clear(),H.current=!1;return}J.start(500,()=>{H.current=!0})}},[J,N,F.type]),se(()=>{!N&&!A&&B.set("hoverEnabled",!0)},[N,A,B]);let Ee=le((Be,qe)=>{let vt=qe.reason;if(!Be&&!B.select("open")||N===Be&&qe.trigger===j&&z===vt)return;let Vt=pG(qe);if(!Be&&qe.trigger==null&&(qe.trigger=j??void 0),n?.(Be,qe),qe.isCanceled)return;B.state.floatingRootContext.dispatchOpenChange(Be,qe);let kt=qe.event;if(Be===!1&&kt?.type==="click"&&kt.pointerType==="touch"&&!W.current)return;Be&&vt===ge.triggerFocus?(W.current=!1,Y.start(300,()=>{W.current=!0})):(W.current=!0,Y.clear());let yt=(vt===ge.triggerPress||vt===ge.itemPress)&&kt.detail===0,Ye=!Be&&(vt===ge.escapeKey||vt==null);q.current=qe.event;let Se=fG(B.state,Be,qe.trigger,Vt());Se.openChangeReason=vt,F.type==="menubar"&&(vt===ge.triggerFocus||vt===ge.focusOut||vt===ge.triggerHover||vt===ge.listNavigation||vt===ge.siblingOpen)?Se.instantType="group":yt||Ye?Se.instantType=yt?"click":"dismiss":Se.instantType=void 0,B.update(Se)}),ye=NT({popupStore:B,floatingRootContext:B.state.floatingRootContext,floatingId:C,nested:S!=null,onOpenChange:Ee}),Oe=ye.context.events;se(()=>{let Be=({open:qe,eventDetails:vt})=>Ee(qe,vt);return Oe.on("setOpen",Be),()=>{Oe?.off("setOpen",Be)}},[Oe,Ee]);let we=qr.useCallback(()=>{B.setOpen(!1,Ae(ge.imperativeAction))},[B]);qr.useImperativeHandle(f,()=>({unmount:ie,close:we}),[ie,we]);let _e;F.type==="context-menu"&&(_e=F.context),qr.useImperativeHandle(_e?.positionerRef,()=>V,[V]),qr.useImperativeHandle(_e?.actionsRef,()=>({setOpen:Ee}),[Ee]);let xe=R_(ye,{enabled:!L,bubbles:{escapeKey:p&&F.type==="menu"},outsidePress(){return F.type!=="context-menu"||q.current?.type==="contextmenu"?!0:H.current},externalTree:ee?O:void 0}),he=Rl(),Ze=qr.useCallback(Be=>{B.select("activeIndex")!==Be&&B.set("activeIndex",Be)},[B]),fe=FT(ye,{enabled:!L,listRef:B.context.itemDomElements,activeIndex:G,nested:F.type!==void 0,loopFocus:d,orientation:u,parentOrientation:F.type==="menubar"?F.context.orientation:void 0,rtl:he==="rtl",disabledIndices:In,onNavigate:Ze,openOnArrowKeyDown:F.type!=="context-menu",externalTree:ee?O:void 0,focusItemOnHover:b}),Ce=qr.useCallback(Be=>{B.context.typingRef.current=Be},[B]),de=zT(ye,{enabled:!L,listRef:B.context.itemLabels,elementsRef:B.context.itemDomElements,activeIndex:G,resetMs:500,onMatch:Be=>{N&&Be!==G&&B.set("activeIndex",Be)},onTyping:Ce}),ae=qr.useMemo(()=>{let Be=st(de.reference,fe.reference,xe.reference,{onMouseMove(){B.set("allowMouseEnter",!0)}},ne);return Be["aria-haspopup"]="menu",Be["aria-expanded"]=N,Be},[B,de.reference,fe.reference,xe.reference,ne,N]),Re=qr.useMemo(()=>{let Be=st(fe.trigger,xe.trigger,ne);return Be["aria-haspopup"]="menu",Be["aria-expanded"]=!1,Be},[fe.trigger,xe.trigger,ne]);Dt(()=>(B.update({inactiveTriggerProps:Re}),null));let $e=qr.useMemo(()=>st(s0,{id:C,role:"menu","aria-orientation":u==="horizontal"?"horizontal":void 0,"aria-labelledby":j?.id,onMouseMove(){B.set("allowMouseEnter",!0),F.type==="menu"&&B.set("hoverEnabled",!1)},onClick(){B.select("hoverEnabled")&&B.set("hoverEnabled",!1)},onKeyDown(Be){let qe=B.select("keyboardEventRelay");qe&&!Be.isPropagationStopped()&&qe(Be)}},de.floating,fe.floating,xe.floating),[j,C,u,F.type,B,de.floating,fe.floating,xe.floating]),ct=fe.item??gt;LP(B,{floatingRootContext:ye,activeTriggerProps:ae,inactiveTriggerProps:Re,popupProps:$e,itemProps:ct});let Pt=qr.useMemo(()=>({store:B,parent:x}),[B,x]),at=(0,YT.jsxs)(VG.Provider,{value:Pt,children:[m&&(0,YT.jsx)(OP,{handle:m,store:B}),typeof o=="function"?o({payload:$}):o]});return F.type===void 0||F.type==="context-menu"?(0,YT.jsx)(qW,{externalTree:O,children:at}):at});function EXe(e,t,o){return Dt(()=>new DB(e,t,o)).current}var cfe=c(te(),1);var $G=c(T(),1);function dfe(e){let t=Po().store,o=cfe.useMemo(()=>({parentMenu:t}),[t]);return(0,$G.jsx)(GG.Provider,{value:o,children:(0,$G.jsx)(zB,{...e})})}var Wi=c(te(),1);var ufe=c(te(),1);function jB(e={}){let{highlightItemOnHover:t,highlightedIndex:o,onHighlightedIndexChange:r}=yg(),{ref:n,index:i}=Ni(e),s=o===i,a=ufe.useRef(null),l=Ai(n,a);return{compositeProps:{tabIndex:s?0:-1,onFocus(){r(i)},onMouseMove(){let u=a.current;if(!t||!u)return;let f=u.hasAttribute("disabled")||u.ariaDisabled==="true";!s&&!f&&u.focus()}},compositeRef:l,index:i}}function ffe(e){let{render:t,className:o,style:r,state:n=gt,props:i=In,refs:s=In,metadata:a,stateAttributesMapping:l,tag:d="div",...u}=e,{compositeProps:f,compositeRef:p}=jB({metadata:a});return ke(d,e,{state:n,ref:[p,...s],props:[f,...i,u],stateAttributesMapping:l})}function YG(e){if(xt(e)&&e.hasAttribute("data-rootownerid"))return e.getAttribute("data-rootownerid");if(!Xs(e))return YG(ms(e))}var pfe=c(te(),1),KG=c(bu(),1);function mfe(e,t){let o=pfe.useRef(null);function r(i){KG.flushSync(()=>{e.setOpen(!1,Ae(ge.focusOut,i.nativeEvent,i.currentTarget))}),bce(o.current)?.focus()}function n(i){let s=e.select("positionerElement");if(s&&rp(i,s))e.context.beforeContentFocusGuardRef.current?.focus();else{KG.flushSync(()=>{e.setOpen(!1,Ae(ge.focusOut,i.nativeEvent,i.currentTarget))});let a=hce(e.context.triggerFocusTargetRef.current||t.current);for(;a!==null&&He(s,a);){let l=a;if(a=t0(a),a===l)break}a?.focus()}}return{preFocusGuardRef:o,handlePreFocusGuardFocus:r,handleFocusTargetFocus:n}}var HB=c(te(),1);function gfe(e){let{enabled:t=!0,mouseDownAction:o,open:r}=e,n=HB.useRef(!1);return HB.useMemo(()=>t?{onMouseDown:i=>{(o==="open"&&!r||o==="close"&&r)&&(n.current=!0,Je(i.currentTarget).addEventListener("click",()=>{n.current=!1},{once:!0}))},onClick:i=>{n.current&&(n.current=!1,i.preventBaseUIHandler())}}:gt,[t,o,r])}var jg=c(T(),1),hfe=RP(function(t,o){let{render:r,className:n,style:i,disabled:s=!1,nativeButton:a=!0,id:l,openOnHover:d,delay:u=100,closeDelay:f=0,handle:p,payload:m,...g}=t,h=Po(!0),v=FP(p)??h?.store;if(!v)throw new Error(ot(85));let _=Yt(l),y=v.useState("isTriggerActive",_),w=v.useState("floatingRootContext"),x=v.useState("isOpenedByTrigger",_),k=v.useState("triggerPopupId",_),C=Wi.useRef(null),S=RXe(),R=yg(!0),E=Fi(),I=Wi.useMemo(()=>E??new Tg,[E]),B=TT(I),O=bs(),{registerTrigger:M,isMountedByThisTrigger:N}=MP(_,C,v,{payload:m,closeDelay:f,parent:S,floatingTreeRoot:I,floatingNodeId:B,floatingParentNodeId:O,keyboardEventRelay:R?.relayKeyboardEvent}),j=S.type==="menubar",V=v.useState("disabled"),A=s||V||j&&S.context.disabled,{getButtonProps:L,buttonRef:z}=di({disabled:A,native:a});Wi.useEffect(()=>{!x&&S.type===void 0&&(v.context.allowMouseUpTriggerRef.current=!1)},[v,x,S.type]);let F=Wi.useRef(null),G=Ft(),$=le(_e=>{if(!F.current)return;G.clear(),v.context.allowMouseUpTriggerRef.current=!1;let xe=_e.target;He(F.current,xe)||He(v.select("positionerElement"),xe)||xe===F.current||xe!=null&&YG(xe)===v.select("rootId")||cB(_e,F.current)||I.events.emit("close",{domEvent:_e,reason:ge.cancelOpen})});Wi.useEffect(()=>{x&&v.select("lastOpenChangeReason")===ge.triggerHover&&Je(F.current).addEventListener("mouseup",$,{once:!0})},[x,$,v]);let K=j&&S.context.hasSubmenuOpen,H=B_(w,{enabled:(d??K)&&!A&&(!j||K&&!N),handleClose:M_({blockPointerEvents:!j}),mouseOnly:!0,move:!1,restMs:S.type===void 0?u:void 0,delay:{close:f},triggerElementRef:C,externalTree:I,isActiveTrigger:y,isClosing:()=>v.select("transitionStatus")==="ending"}),J=TXe(x,v.select("lastOpenChangeReason")),W=T_(w,{enabled:!A,event:x&&j?"click":"mousedown",toggle:!0,ignoreMouse:!1,stickIfOpen:S.type===void 0?J:!1}),Y=DT(w,{enabled:!A&&K}),ee=gfe({open:x,enabled:j,mouseDownAction:"open"}),re=Wi.useMemo(()=>st(Y.reference,W.reference),[Y.reference,W.reference]),ne=v.useState("triggerProps",N),{preFocusGuardRef:ie,handlePreFocusGuardFocus:be,handleFocusTargetFocus:pe}=mfe(v,C),Ee={disabled:A,open:x},ye=[F,o,z,M,C],Oe=[re,H??gt,ne,{"aria-haspopup":"menu","aria-controls":k,id:_,onMouseDown:_e=>{if(v.select("open"))return;G.start(200,()=>{v.context.allowMouseUpTriggerRef.current=!0}),Je(_e.currentTarget).addEventListener("mouseup",$,{once:!0})}},j?{role:"menuitem"}:{},ee,g,L],we=ke("button",t,{enabled:!j,stateAttributesMapping:_T,state:Ee,ref:ye,props:Oe});return j?(0,jg.jsx)(ffe,{tag:"button",render:r,className:n,style:i,state:Ee,refs:ye,props:Oe,stateAttributesMapping:_T}):x?(0,jg.jsxs)(Wi.Fragment,{children:[(0,jg.jsx)(ep,{ref:ie,onFocus:be},`${_}-pre-focus-guard`),(0,jg.jsx)(Wi.Fragment,{children:we},_),(0,jg.jsx)(ep,{ref:v.context.triggerFocusTargetRef,onFocus:pe},`${_}-post-focus-guard`)]}):(0,jg.jsx)(Wi.Fragment,{children:we},_)});function TXe(e,t){let o=Ft(),[r,n]=Wi.useState(!1);return se(()=>{e&&t===ge.triggerHover?(n(!0),o.start(500,()=>{n(!1)})):e||(o.clear(),n(!1))},[e,t,o]),r}function RXe(){let e=LB(!0);return Wi.useMemo(()=>e?{type:"menubar",context:e}:{type:void 0},[e])}var Tfe=c(te(),1);var fi=c(te(),1),Efe=c(bu(),1);var bfe=c(te(),1);function UB(e){let[t,o]=bfe.useState({current:e,previous:null});return Object.is(e,t.current)||o({current:e,previous:t.current}),t.previous}var v0=c(te(),1);function _0(e){let t=Pn(e),o=parseFloat(t.width)||0,r=parseFloat(t.height)||0,n=xt(e),i=n?e.offsetWidth:o,s=n?e.offsetHeight:r;return(Cg(o)!==i||Cg(r)!==s)&&(o=i,r=s),{width:o,height:r}}var KT="--popup-width",qT="--popup-height";function yfe(e){let{popupElement:t,positionerElement:o,content:r,mounted:n,onMeasureLayout:i,onMeasureLayoutComplete:s,side:a,direction:l}=e,d=xl(t,!0),u=ps(),f=v0.useRef(null),p=v0.useRef(!0),m=v0.useRef(pt),g=le(i),h=le(s),b=v0.useMemo(()=>IXe(a,l),[a,l]);se(()=>{if(!n){m.current=pt,p.current=!0,f.current=null;return}if(!t||!o)return;m.current=vfe(t,b),qG(t,"auto");let v=GB(t,"position","static"),_=GB(t,"transform","none"),y=GB(t,"scale","1"),w=vfe(o,{[dB]:"max-content",[uB]:"max-content"});function x(){v(),_(),w()}function k(){x(),y()}if(g?.(),p.current||f.current===null){WB(o,"max-content");let E=_0(t);return f.current=E,WB(o,E),k(),h?.(null,E),p.current=!1,()=>{m.current(),m.current=pt}}WB(o,"max-content");let C=f.current,S=_0(t);f.current=S,qG(t,C),k(),h?.(C,S),WB(o,S);let R=new AbortController;return u.request(()=>{qG(t,S),d(()=>{t.style.setProperty(KT,"auto"),t.style.setProperty(qT,"auto")},R.signal)}),()=>{R.abort(),u.cancel(),m.current(),m.current=pt}},[r,t,o,d,u,n,g,h,b])}function IXe(e,t){let o=e==="top",r=e==="left"||e===(t==="rtl"?"inline-end":"inline-start");return!o&&!r?gt:{position:"absolute",[o?"bottom":"top"]:"0",[r?"right":"left"]:"0"}}function GB(e,t,o){let r=e.style.getPropertyValue(t);return e.style.setProperty(t,o),()=>{e.style.setProperty(t,r)}}function vfe(e,t){let o=[];for(let[r,n]of Object.entries(t))o.push(GB(e,r,n));return o.length?()=>{o.forEach(r=>r())}:pt}function qG(e,t){let o=t==="auto"?"auto":`${t.width}px`,r=t==="auto"?"auto":`${t.height}px`;e.style.setProperty(KT,o),e.style.setProperty(qT,r)}function WB(e,t){let o=t==="max-content"?"max-content":`${t.width}px`,r=t==="max-content"?"max-content":`${t.height}px`;e.style.setProperty(iue,o),e.style.setProperty(sue,r)}var wfe=c(te(),1);var xfe=c(T(),1),$B=function(t){let{direction:o="ltr"}=t,r=wfe.useMemo(()=>({direction:o}),[o]);return(0,xfe.jsx)(BG.Provider,{value:r,children:t.children})};var kfe={name:"adaptiveOrigin",async fn(e){let{x:t,y:o,rects:{floating:r},elements:{floating:n},platform:i,strategy:s,placement:a}=e,l=wt(n),d=l.getComputedStyle(n);if(!(d.transitionDuration!=="0s"&&d.transitionDuration!==""))return{x:t,y:o,data:p0};let f=await i.getOffsetParent?.(n),p={width:0,height:0};if(s==="fixed"&&l?.visualViewport)p={width:l.visualViewport.width,height:l.visualViewport.height};else if(f===l){let _=Je(n);p={width:_.documentElement.clientWidth,height:_.documentElement.clientHeight}}else await i.isElement?.(f)&&(p=await i.getDimensions(f));let m=Vi(a),g=t,h=o;m==="left"&&(g=p.width-(t+r.width)),m==="top"&&(h=p.height-(o+r.height));let b=m==="left"?"right":p0.sideX,v=m==="top"?"bottom":p0.sideY;return{x:g,y:h,data:{sideX:b,sideY:v}}}};var Sfe="data-activation-direction";var y0=c(T(),1),YB={activationDirection:e=>e?{[Sfe]:e}:null};function KB(e){let{store:t,side:o,children:r}=e,n=Rl(),i=t.useState("activeTriggerElement"),s=t.useState("activeTriggerId"),a=t.useState("open"),l=t.useState("payload"),d=t.useState("mounted"),u=t.useState("popupElement"),f=t.useState("positionerElement"),p=UB(a?i:null),m=MXe(s,l),g=fi.useRef(null),[h,b]=fi.useState(null),[v,_]=fi.useState(null),y=fi.useRef(null),w=fi.useRef(null),x=xl(y,!0),k=ps(),C=fi.useRef(null),[S,R]=fi.useState(null),[E,I]=fi.useState(!1);se(()=>(t.set("adaptiveOrigin",kfe),()=>{t.set("adaptiveOrigin",void 0)}),[t]);let B=le(()=>{y.current?.style.setProperty("animation","none"),y.current?.style.setProperty("transition","none"),w.current?.style.setProperty("display","none")}),O=le(L=>{y.current?.style.removeProperty("animation"),y.current?.style.removeProperty("transition"),w.current?.style.removeProperty("display"),L&&R(L)}),M=le(()=>{C.current?.abort();let L=new AbortController;C.current=L,x(()=>{b(null),R(null),g.current=null},L.signal)}),N=fi.useRef(null);se(()=>{(!a||!d)&&(N.current=null)},[a,d]),se(()=>{if(i&&p&&i!==p&&N.current!==i&&g.current){b(g.current),I(!0);let L=OXe(p,i);_(L),N.current=i}},[i,p]),se(()=>{h!=null&&(C.current?.abort(),I(!0),k.request(()=>{Efe.flushSync(()=>{I(!1)}),M()}))},[m,h,M,k]),se(()=>{let L=y.current;if(!L)return;let z=Je(L).createElement("div");for(let F of Array.from(L.childNodes))z.appendChild(F.cloneNode(!0));g.current=z});let j=h!=null,V;j?V=(0,y0.jsxs)(fi.Fragment,{children:[(0,y0.jsx)("div",{"data-previous":!0,inert:Og(!0),ref:w,style:{...S?{[KT]:`${S.width}px`,[qT]:`${S.height}px`}:null,position:"absolute"},"data-ending-style":E?void 0:""},"previous"),(0,y0.jsx)("div",{"data-current":!0,ref:y,"data-starting-style":E?"":void 0,children:r},m)]}):V=(0,y0.jsx)("div",{"data-current":!0,ref:y,children:r},m),se(()=>{let L=w.current;!L||!h||L.replaceChildren(...Array.from(h.childNodes))},[h]),yfe({popupElement:u,positionerElement:f,mounted:d,content:l,onMeasureLayout:B,onMeasureLayoutComplete:O,side:o,direction:n});let A={activationDirection:BXe(v),transitioning:j};return{children:V,state:A}}function BXe(e){if(e)return`${Cfe(e.horizontal,5,"right","left")} ${Cfe(e.vertical,5,"down","up")}`}function Cfe(e,t,o,r){return e>t?o:e<-t?r:""}function OXe(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 MXe(e,t){let[o,r]=fi.useState(0),n=fi.useRef(e),i=fi.useRef(t),s=fi.useRef(!1);return se(()=>{let a=n.current,l=i.current,d=e!==a,u=t!==l;d?(r(f=>f+1),s.current=!u):s.current&&u&&(r(f=>f+1),s.current=!1),n.current=e,i.current=t},[e,t]),`${e??"current"}-${o}`}var Rfe=Tfe.forwardRef(function(t,o){let{render:r,className:n,style:i,children:s,...a}=t,{store:l}=Po(),{side:d}=Ui(),u=l.useState("instantType"),{children:f,state:p}=KB({store:l,side:d,children:s}),m={activationDirection:p.activationDirection,transitioning:p.transitioning,instant:u};return ke("div",t,{state:m,ref:o,props:[a,{children:f}],stateAttributesMapping:YB})});var Ife=c(te(),1);var Pfe=Ife.forwardRef(function(t,o){let{className:r,render:n,orientation:i="horizontal",style:s,...a}=t;return ke("div",t,{state:{orientation:i},ref:o,props:[{role:"separator","aria-orientation":i},a]})});var ap=c(te(),1);function qB(e){return e==null||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true"}var AXe={"aria-expanded":void 0},Bfe=ap.forwardRef(function(t,o){let{render:r,className:n,style:i,label:s,id:a,nativeButton:l=!1,openOnHover:d=!0,delay:u=100,closeDelay:f=0,disabled:p=!1,...m}=t,g=FB();if(!g?.parentMenu)throw new Error(ot(37));let h=Ni({guess:!0,label:s}),b=Ui(),{store:v}=Po(),_=Yt(a),y=v.useState("open"),w=v.useState("floatingRootContext"),x=v.useState("floatingTreeRoot"),k=v.useState("triggerPopupId",_),C=uG(_,v),S=le(re=>{C(re),re!==null&&v.select("open")&&v.select("activeTriggerId")==null&&v.update({activeTriggerId:_??null,activeTriggerElement:re,closeDelay:f})}),R=ap.useRef(null),E=ap.useCallback(re=>{R.current=re,v.set("activeTriggerElement",re)},[v]);se(()=>(S(R.current),()=>S(null)),[S,_,v]),v.useSyncedValue("closeDelay",f);let I=g.parentMenu,B=v.useState("disabled"),O=I.useState("disabled"),M=p||B||O,N=I.useState("itemProps"),j=I.useState("isActive",h.index),V=ap.useMemo(()=>({type:"submenu-trigger",setActive(){I.select("highlightItemOnHover")&&I.set("activeIndex",h.index)}}),[I,h.index]),{getItemProps:A,itemRef:L}=Vg({closeOnClick:!1,disabled:M,highlighted:j,id:_,store:v,typingRef:I.context.typingRef,nativeButton:l,itemMetadata:V,nodeId:b?.context.nodeId}),z=v.useState("hoverEnabled"),F=B_(w,{enabled:z&&d&&!M,handleClose:M_({blockPointerEvents:!0}),mouseOnly:!0,move:!0,restMs:u,delay:{open:u,close:f},shouldOpen:u>0?()=>I.select("allowMouseEnter"):void 0,triggerElementRef:R,externalTree:x,isClosing:()=>v.select("transitionStatus")==="ending",guardStaleOpen:!0}),$=T_(w,{enabled:!M,event:"mousedown",toggle:!d,ignoreMouse:d,stickIfOpen:!1}).reference??gt,K=v.useState("triggerProps",!0);delete K.id;let q={disabled:M,highlighted:j,open:y},H=v.useState("openMethod"),W=v.useState("lastOpenChangeReason")===ge.listNavigation||H==="keyboard",Y=y&&W&&Kt.screenReader.voiceOver;return ke("div",t,{state:q,stateAttributesMapping:Qw,props:[$,F,K,N,Y?AXe:void 0,{"aria-controls":k,tabIndex:y||j?0:-1,onBlur(){j&&I.set("activeIndex",null)}},m,A],ref:[o,h.ref,L,S,E]})});var XT=class extends n0{constructor(){super(sfe(),"Menu")}open(t){this.openByTrigger(t)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}};function Ofe(){return new XT}var XB=c(te(),1),NXe=XB.createContext(void 0),LXe={disableStyleElements:!1};function ZB(){return XB.useContext(NXe)??LXe}function L_(e,t=Number.MIN_SAFE_INTEGER,o=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,o))}function Mfe(e,t){let o=(t??wt(e).getComputedStyle(e)).transform,r=0,n=0,i=1;if(o&&o!=="none"){let s=o.match(/matrix(?:3d)?\(([^)]+)\)/);if(s){let a=s[1].split(", ").map(parseFloat);a.length===6?(r=a[4],n=a[5],i=Math.sqrt(a[0]*a[0]+a[1]*a[1])):a.length===16&&(r=a[12],n=a[13],i=a[0])}}return{x:r,y:n,scale:i}}var Gi={};ro(Gi,{Control:()=>Hfe,Description:()=>jfe,Error:()=>Ffe,Item:()=>Gfe,Label:()=>Vfe,Root:()=>Dfe,Validity:()=>Wfe});var Wn=c(te(),1);var QB=c(te(),1),DXe=QB.createContext(void 0);function Afe(e=!1){let t=QB.useContext(DXe);if(!t&&!e)throw new Error(ot(86));return t}var Hg=c(te(),1);var Nfe=c(T(),1),JB=function(t){let o=Yt(),[r,n]=Hg.useState(o),[i,s]=Hg.useState(),[a,l]=Hg.useState([]),d=r===void 0?o:r,u=Dt(()=>new Map),{messageIds:f}=Un(),p=le((b,v)=>{let _=u.current;v===void 0?_.delete(b):_.set(b,v),n(y=>{if(_.size===0)return y;let w;for(let x of _.values()){if(x===y)return y;w===void 0&&(w=x)}return w})}),m=le(()=>{u.current.size===0&&n(o)}),g=Hg.useCallback(b=>{let v=b["aria-describedby"]?b["aria-describedby"].split(" "):[];return v.push(...f,...a),{...b,"aria-describedby":Array.from(new Set(v)).join(" ")||void 0}},[f,a]),h=Hg.useMemo(()=>({controlId:d,registerControlId:p,resetControlId:m,labelId:i,setLabelId:s,messageIds:a,setMessageIds:l,getDescriptionProps:g}),[d,p,m,i,s,a,l,g]);return(0,Nfe.jsx)(IG.Provider,{value:h,children:t.children})};var e7=c(te(),1);function Lfe(e){let{change:t,commit:o,invalid:r,markedDirtyRef:n,name:i,setRegisteredFieldName:s,registeredFieldIdRef:a,setValidityData:l,validityData:d}=e,{formRef:u}=Tl(),f=e7.useRef(null),p=e7.useRef(null),m=e7.useRef(!1),g=le(()=>{let x=p.current;if(x)return x.getValue?x.getValue():x.value});function h(x){return x.value===void 0?g():x.value}let b=le(()=>{let x=p.current;if(n.current=!0,!x){o(d.value);return}o(h(x))});function v(){let x=p.current;!x||!x.id||u.current.fields.set(x.id,{getValue:g,name:i??x.name,controlRef:x.controlRef,validityData:N_(d,r),validate:b})}function _(x=p.current?.id){x&&u.current.fields.delete(x)}function y(x){if(m.current)return;m.current=!0;let k=h(x);l(C=>C.initialValue===k?C:{...C,initialValue:k})}se(()=>{let x=p.current;!x||!x.id||(s(i?void 0:x.name),u.current.fields.set(x.id,{getValue:g,name:i??x.name,controlRef:x.controlRef,validityData:N_(d,r),validate:b}))},[u,g,r,i,s,b,d]),se(()=>{let x=u.current.fields;return()=>{let k=p.current?.id;k&&x.delete(k)}},[u]);let w=le((x,k)=>{if(!k){f.current===x&&(f.current=null,t(void 0,!0),_(),p.current=null,s(void 0),a.current=void 0);return}let C=p.current?.id,S=f.current;S&&S!==x&&t(void 0,!0),f.current=x,p.current=k,i||s(k.name),a.current=k.id,C&&C!==k.id&&_(C),y(k),v()});return[b,w]}var t7=c(T(),1),VXe=Wn.forwardRef(function(t,o){let{errors:r,validationMode:n,submitCountRef:i}=Tl(),{render:s,className:a,validate:l,validationDebounceTime:d=0,validationMode:u=n,name:f,disabled:p=!1,invalid:m,dirty:g,touched:h,actionsRef:b,style:v,..._}=t,y=Afe(!0)?.disabled,w=le(l||(()=>null)),x=y||p,[k,C]=Wn.useState(!1),[S,R]=Wn.useState(!1),[E,I]=Wn.useState(!1),[B,O]=Wn.useState(!1),M=g??S,N=h??k,j=Wn.useRef(M),V=Wn.useRef(void 0),[A,L]=Wn.useState(),z=f??A;se(()=>{g!==void 0&&(j.current=g)},[g]);let F=le(Ee=>{g===void 0&&(Ee&&(j.current=!0),R(Ee))}),G=le(Ee=>{h===void 0&&C(Ee)}),$=le(()=>u==="onChange"||u==="onSubmit"&&i.current>0),K=z&&Object.hasOwn(r,z)?r[z]:null,q=!!(Array.isArray(K)?K.length:K),H=m===!0||q,[J,W]=Wn.useState({state:A_,error:"",errors:[],value:null,initialValue:null}),Y=!H&&(x?null:J.state.valid),ee=Wn.useMemo(()=>({disabled:x,touched:N,dirty:M,valid:Y,filled:E,focused:B}),[x,N,M,Y,E,B]),re=vue({setValidityData:W,validate:w,validityData:J,validationDebounceTime:d,invalid:H,markedDirtyRef:j,state:ee,shouldValidateOnChange:$,validationMode:u,registeredFieldIdRef:V}),[ne,ie]=Lfe({change:re.change,commit:re.commit,invalid:H,markedDirtyRef:j,name:f,setRegisteredFieldName:L,registeredFieldIdRef:V,setValidityData:W,validityData:J});Wn.useImperativeHandle(b,()=>({validate:ne}),[ne]);let be=Wn.useMemo(()=>({invalid:H,name:z,validityData:J,setValidityData:W,disabled:x,setTouched:G,setDirty:F,setFilled:I,setFocused:O,validationMode:u,shouldValidateOnChange:$,state:ee,registerFieldControl:ie,validation:re}),[H,z,J,x,G,F,I,O,u,$,ee,ie,re]),pe=ke("div",t,{ref:o,state:ee,props:_,stateAttributesMapping:Hi});return(0,t7.jsx)(RG.Provider,{value:be,children:pe})}),Dfe=Wn.forwardRef(function(t,o){return(0,t7.jsx)(JB,{children:(0,t7.jsx)(VXe,{...t,ref:o})})});var ZT=c(te(),1);var Vfe=ZT.forwardRef(function(t,o){let{render:r,className:n,style:i,id:s,nativeLabel:a=!0,...l}=t,d=_n(!1),u=mB(),{labelId:f}=Un(),p={...d.state,disabled:d.disabled||u.disabled},m=ZT.useRef(null),g=hB({id:f??s,native:a});return ke("label",t,{ref:[o,m],state:p,props:[g,l],stateAttributesMapping:Hi})});var D_=c(te(),1);var XG=c(T(),1),FXe={...Hi,...hn},Ffe=D_.forwardRef(function(t,o){let{render:r,id:n,className:i,match:s,style:a,...l}=t,d=Yt(n),{validityData:u,state:f,name:p}=_n(!1),{setMessageIds:m}=Un(),{errors:g}=Tl(),h=p&&Object.hasOwn(g,p)?g[p]:null,b=!!(Array.isArray(h)?h.length:h),v=typeof s=="string",_=!1;s===!0?_=!0:f.disabled?_=!1:v?_=!!u.state[s]:_=b||u.state.valid===!1;let{mounted:y,transitionStatus:w,setMounted:x}=gn(_);se(()=>{if(!(!_||!d))return m(j=>j.concat(d)),()=>{m(j=>j.filter(V=>V!==d))}},[_,d,m]);let k=D_.useRef(null),[C,S]=D_.useState(null),[R,E]=D_.useState(null),I=u.error;!v&&b?I=h:u.errors.length>1&&(I=u.errors);let B=I;Array.isArray(I)&&(B=I.length>1?(0,XG.jsx)("ul",{children:I.map(j=>(0,XG.jsx)("li",{children:j},j))}):I[0]);let O=Array.isArray(I)?JSON.stringify(I):I;_&&O!==R&&(E(O),S(B)),cr({open:_,ref:k,onComplete(){_||x(!1)}});let M={...f,transitionStatus:w},N=ke("div",t,{ref:[o,k],state:M,props:[{id:d,children:_?B:C},l],stateAttributesMapping:FXe,enabled:y});return y?N:null});var zfe=c(te(),1);var jfe=zfe.forwardRef(function(t,o){let{render:r,id:n,className:i,style:s,...a}=t,l=Yt(n),d=_n(!1),u=mB(),{setMessageIds:f}=Un(),p={...d.state,disabled:d.disabled||u.disabled};return se(()=>{if(l)return f(g=>g.concat(l)),()=>{f(g=>g.filter(h=>h!==l))}},[l,f]),ke("p",t,{ref:o,state:p,props:[{id:l},a],stateAttributesMapping:Hi})});var o7=c(te(),1);var Hfe=o7.forwardRef(function(t,o){let{render:r,className:n,id:i,name:s,value:a,disabled:l=!1,onValueChange:d,defaultValue:u,autoFocus:f=!1,style:p,...m}=t,{state:g,name:h,disabled:b,setTouched:v,setDirty:_,validityData:y,setFocused:w,setFilled:x,validationMode:k,validation:C}=_n(),{clearErrors:S,elementRef:R,submitCountRef:E}=Tl(),I=b||l,B=h??s,O={...g,disabled:I},{labelId:M}=Un(),N=f0({id:i}),[j]=Ba({controlled:a,default:u,name:"FieldControl",state:"value"}),V=a!==void 0,A=V?j:void 0,L=A==null?void 0:String(A),z=le(()=>C.inputRef.current?.value);nB(C.inputRef,N,L,z,!I,s),se(()=>{let K=L??C.inputRef.current?.value;K!==void 0&&x(K!=="")},[L,C.inputRef,x]),u0(L,()=>{L!==void 0&&(S(B),_(L!==(y.initialValue??"")),C.change(L))});let F=o7.useRef(null),G=Ft();return se(()=>{f&&F.current===Sr(Je(F.current))&&w(!0)},[f,w]),ke("input",t,{ref:[o,F],state:O,props:[{id:N,disabled:I,name:B,ref:C.inputRef,"aria-labelledby":M,autoFocus:f,...V?{value:A}:{defaultValue:u},onChange(K){let q=K.currentTarget.value,H=Ae(ge.none,K.nativeEvent);d?.(q,H),!V&&(_(q!==(y.initialValue??"")),x(q!==""),!K.nativeEvent.defaultPrevented&&!H.isCanceled&&(S(B),C.change(q)))},onFocus(){w(!0)},onBlur(K){if(v(!0),w(!1),k==="onBlur"){let q=K.currentTarget.value;C.commit(q),V&&queueMicrotask(()=>{let H=C.inputRef.current?.value;H!==void 0&&H!==q&&H!==(y.initialValue??"")&&C.commit(H)})}},onKeyDown(K){if(K.currentTarget.tagName==="INPUT"&&K.key==="Enter"){v(!0);let q=K.currentTarget.value,H=K.currentTarget.form;if(H&&H===R.current&&!K.defaultPrevented){let J=K.currentTarget,W=E.current;G.start(0,()=>{E.current===W&&C.commit(J.value)})}else C.commit(q)}}},m,K=>C.getValidationProps(I,K)],stateAttributesMapping:Hi})});var QT=c(te(),1);var Ufe=c(T(),1),Wfe=function(t){let{children:o}=t,{validityData:r,invalid:n}=_n(!1),i=QT.useMemo(()=>N_(r,n),[r,n]),s=i.state.valid===!1,{transitionStatus:a}=gn(s),l=QT.useMemo(()=>({...i,validity:i.state,transitionStatus:a}),[i,a]);return(0,Ufe.jsx)(QT.Fragment,{children:o(l)})};var r7=c(te(),1);var ZG=c(T(),1),Gfe=r7.forwardRef(function(t,o){let{render:r,className:n,style:i,disabled:s=!1,...a}=t,{state:l,disabled:d}=_n(!1),u=d||s,f={...l,disabled:u},p=r7.useMemo(()=>({disabled:u}),[u]),m=ke("div",t,{ref:o,state:f,props:a,stateAttributesMapping:Hi});return(0,ZG.jsx)(JB,{children:(0,ZG.jsx)(MG.Provider,{value:p,children:m})})});var $fe=c(te(),1);var Yfe=c(T(),1),QG=$fe.forwardRef(function(t,o){return(0,Yfe.jsx)(Gi.Control,{ref:o,...t})});var qfe=c(te(),1);var V_=c(te(),1);var JT="data-composite-item-active";function Kfe(e){let{loopFocus:t=!0,orientation:o="both",grid:r,onLoop:n,direction:i,highlightedIndex:s,onHighlightedIndexChange:a,rootRef:l,enableHomeAndEndKeys:d=!1,stopEventPropagation:u,disabledIndices:f,modifierKeys:p=In}=e,[m,g]=V_.useState(0),h=r!=null,b=V_.useRef(null),v=Ai(b,l),_=V_.useRef([]),y=V_.useRef(!1),w=V_.useRef(null),x=s??m,k=le((I,B=!1)=>{if(w.current=_.current[I]??null,(a??g)(I),B){let O=_.current[I];xG(b.current,O,i,o)}}),C=le(I=>{if(I.size===0)return;if(y.current){let N=_.current,j=N.indexOf(w.current);if(j===-1){let V=N[x];!V||op(N,x,f)?k(zXe(N,f)):w.current=V}else j!==x&&k(j);return}y.current=!0;let B=Array.from(I.keys()),O=B.find(N=>N?.hasAttribute(JT))??null,M=O?I.get(O)?.index??-1:-1;if(M!==-1)k(M);else if(op(B,x,f)){let N=Sl(B,{disabledIndices:f});Eg(B,N)||k(N)}xG(b.current,O,i,o)});se(()=>{if(f==null||s!=null||!y.current)return;let I=_.current;if(op(I,x,f)){let B=Sl(I,{disabledIndices:f});Eg(I,B)||k(B)}},[f,s,x,_,k]);let S=le((I,B,O)=>n?n(I,B,O,_):O),R=le(I=>{let B=I.key===QP||I.key===JP;if(!d0.has(I.key)||!d&&B||jXe(I,p)||!b.current)return;let M=i==="rtl",N=M?XP:ZP,j=M?ZP:XP,V=o==="vertical"?qP:N,A=o==="vertical"?KP:j,L=So(I.nativeEvent);if(L!=null&&wG(L)&&!qB(L)){let q=L.selectionStart,H=L.selectionEnd,J=L.value;if(q==null||I.shiftKey||q!==H||I.key!==A&&q<J.length||I.key!==V&&q>0)return}let z=x,F=S_(_,f),G=Jw(_,f);r!=null&&(z=r({disabledIndices:f,elementsRef:_,event:I,highlightedIndex:x,loopFocus:t,maxIndex:G,minIndex:F,onLoop:S,orientation:o,rtl:M}));let $=o!=="vertical"&&I.key===N||o!=="horizontal"&&I.key===qP,K=o!=="vertical"&&I.key===j||o!=="horizontal"&&I.key===KP;d&&(I.key===QP?z=F:I.key===JP&&(z=G)),z===x&&($||K)&&(t&&z===G&&$?(z=F,n&&(z=n(I,x,z,_))):t&&z===F&&K?(z=G,n&&(z=n(I,x,z,_))):z=Sl(_.current,{startingIndex:z,decrement:K,disabledIndices:f})),z!==x&&!Eg(_.current,z)&&(u&&I.stopPropagation(),(h||B||$||K)&&I.preventDefault(),k(z,!0),queueMicrotask(()=>{_.current[z]?.focus()}))});return{props:{ref:v,onFocus(I){let B=b.current,O=So(I.nativeEvent);!B||O==null||!wG(O)||O.setSelectionRange(0,O.value.length)},onKeyDown:R},highlightedIndex:x,onHighlightedIndexChange:k,elementsRef:_,onMapChange:C,relayKeyboardEvent:R}}function zXe(e,t){let o=-1;for(let r=0;r<e.length;r+=1){let n=e[r];if(!(!n||op(e,r,t))){if(n.hasAttribute(JT))return r;o===-1&&(o=r)}}return Math.max(o,0)}function jXe(e,t){for(let o of Mde)if(!t.includes(o)&&e.getModifierState(o))return!0;return!1}var JG=c(T(),1);function Xfe(e){let{render:t,className:o,style:r,refs:n=In,props:i=In,state:s=gt,stateAttributesMapping:a,highlightedIndex:l,onHighlightedIndexChange:d,orientation:u,grid:f,loopFocus:p,onLoop:m,enableHomeAndEndKeys:g,onMapChange:h,stopEventPropagation:b=!0,rootRef:v,disabledIndices:_,modifierKeys:y,highlightItemOnHover:w=!1,tag:x="div",...k}=e,C=Rl(),{props:S,highlightedIndex:R,onHighlightedIndexChange:E,elementsRef:I,onMapChange:B,relayKeyboardEvent:O}=Kfe({grid:f,loopFocus:p,onLoop:m,orientation:u,highlightedIndex:l,onHighlightedIndexChange:d,rootRef:v,stopEventPropagation:b,enableHomeAndEndKeys:g,direction:C,disabledIndices:_,modifierKeys:y}),M=ke(x,e,{state:s,ref:n,props:[S,...i,k],stateAttributesMapping:a}),N=qfe.useMemo(()=>({highlightedIndex:R,onHighlightedIndexChange:E,highlightItemOnHover:w,relayKeyboardEvent:O}),[R,E,w,O]);return(0,JG.jsx)(bW.Provider,{value:N,children:(0,JG.jsx)(bg,{elementsRef:I,onMapChange:j=>{h?.(j),B(j)},children:M})})}var n7=c(te(),1),Zfe=c(bu(),1);var Qfe=c(T(),1),Jfe=n7.forwardRef(function(t,o){let{children:r,container:n,className:i,render:s,style:a,...l}=t,{node:d,subtree:u}=wP({container:n,ref:o,componentProps:t,elementProps:l});return!u&&!d?null:(0,Qfe.jsxs)(n7.Fragment,{children:[u,d&&Zfe.createPortal(r,d)]})});var epe=c(T(),1),i7="base-ui-disable-scrollbar",eR={className:i7,getElement(e){return(0,epe.jsx)("style",{nonce:e,href:i7,precedence:"base-ui:low",children:`.${i7}{scrollbar-width:none}.${i7}::-webkit-scrollbar{display:none}`})}};var Na=1;function w0(e,t){return Math.max(0,e-t)}function x0(e,t){if(t<=0)return 0;let o=L_(e,0,t),r=o,n=t-o,i=r<=Na,s=n<=Na;return i&&s?r<=n?0:t:i?0:s?t:o}var Nr={};ro(Nr,{Arrow:()=>Ipe,Backdrop:()=>gpe,Group:()=>Fpe,GroupLabel:()=>jpe,Icon:()=>dpe,Item:()=>Spe,ItemIndicator:()=>Epe,ItemText:()=>Tpe,Label:()=>npe,List:()=>xpe,Popup:()=>ype,Portal:()=>ppe,Positioner:()=>hpe,Root:()=>ope,ScrollDownArrow:()=>Mpe,ScrollUpArrow:()=>Lpe,Separator:()=>Hpe,Trigger:()=>spe,Value:()=>lpe});var Cr=c(te(),1);var Ug=c(te(),1),e$=Ug.createContext(void 0),t$=Ug.createContext(void 0),o$=Ug.createContext(void 0);function jo(){let e=Ug.useContext(e$);if(e===void 0)throw new Error(ot(60));return e}function Wg(){let e=Ug.useContext(t$);if(e===void 0)throw new Error(ot(101));return e}function s7(){let e=Ug.useContext(o$);if(e===void 0)throw new Error(ot(61));return e}var tpe={id:e=>e.id,labelId:e=>e.labelId,modal:e=>e.modal,items:e=>e.items,itemToStringLabel:e=>e.itemToStringLabel,isItemEqualToValue:e=>e.isItemEqualToValue,value:e=>e.value,hasSelectedValue:e=>{let{value:t,multiple:o,itemToStringValue:r}=e;return t==null?!1:o&&Array.isArray(t)?t.length>0:Mg(t,r)!==""},hasNullItemLabel:(e,t)=>t?Yde(e.items):!1,open:e=>e.open,mounted:e=>e.mounted,forceMount:e=>e.forceMount,transitionStatus:e=>e.transitionStatus,openMethod:e=>e.openMethod,activeIndex:e=>e.activeIndex,selectedIndex:e=>e.selectedIndex,isActive:(e,t)=>e.activeIndex===t,isSelected:(e,t)=>{let o=e.isItemEqualToValue,r=e.value;return e.multiple?Array.isArray(r)&&r.some(n=>ip(t,n,o)):ip(t,r,o)},isSelectedByFocus:(e,t)=>e.selectedIndex===t,popupProps:e=>e.popupProps,triggerProps:e=>e.triggerProps,triggerElement:e=>e.triggerElement,positionerElement:e=>e.positionerElement,listElement:e=>e.listElement,popupSide:e=>e.popupSide,scrollUpArrowVisible:e=>e.scrollUpArrowVisible,scrollDownArrowVisible:e=>e.scrollDownArrowVisible,hasScrollArrows:e=>e.hasScrollArrows};var F_=c(T(),1);function ope(e){let{id:t,value:o,defaultValue:r=null,onValueChange:n,open:i,defaultOpen:s=!1,onOpenChange:a,name:l,form:d,autoComplete:u,disabled:f=!1,readOnly:p=!1,required:m=!1,modal:g=!0,actionsRef:h,inputRef:b,onOpenChangeComplete:v,items:_,multiple:y=!1,itemToStringLabel:w,itemToStringValue:x,isItemEqualToValue:k=SG,highlightItemOnHover:C=!0,children:S}=e,{clearErrors:R}=Tl(),{setDirty:E,setTouched:I,setFocused:B,validityData:O,setFilled:M,name:N,disabled:j,validation:V,validationMode:A}=_n(),L=f0({id:t}),z=j||f,F=N??l,[G,$]=Ba({controlled:o,default:y?r??In:r,name:"Select",state:"value"}),[K,q]=Ba({controlled:i,default:s,name:"Select",state:"open"}),H=Cr.useRef([]),J=Cr.useRef([]),W=Cr.useRef(null),Y=Cr.useRef(null),ee=Cr.useRef(0),re=Cr.useRef(null),ne=Cr.useRef([]),ie=Cr.useRef(!1),be=Cr.useRef(null),pe=Cr.useRef(null),Ee=Cr.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),ye=Cr.useRef(!1),Oe=Cr.useRef(G),{mounted:we,setMounted:_e,transitionStatus:xe}=gn(K),{openMethod:he,triggerProps:Ze}=tB(K),fe=Dt(()=>new El({id:L,labelId:void 0,modal:g,multiple:y,itemToStringLabel:w,itemToStringValue:x,isItemEqualToValue:k,value:G,open:K,mounted:we,transitionStatus:xe,items:_,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:gt,triggerProps:gt,triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1},{setValue:pt,setOpen:pt,handleScrollArrowVisibility:pt,onOpenChangeComplete:pt,listRef:H,popupRef:W,scrollHandlerRef:Y,scrollArrowsMountedCountRef:ee,valueRef:re,valuesRef:ne,labelsRef:J,typingRef:ie,selectionRef:Ee,firstItemTextRef:be,selectedItemTextRef:pe,alignItemWithTriggerActiveRef:ye,initialValueRef:Oe},tpe)).current,Ce=fe.useState("activeIndex"),de=fe.useState("selectedIndex"),ae=fe.useState("triggerElement"),Re=fe.useState("positionerElement"),$e=UB(he),ct=he??$e,Pt=Cr.useMemo(()=>y?"":Mg(G,x),[y,G,x]),at=Cr.useMemo(()=>y&&Array.isArray(G)?G.map(ht=>Mg(ht,x)):Mg(G,x),[y,G,x]),Be=co(ae),qe=le(()=>at);nB(Be,L,G,qe,!z,l);let vt=y?Array.isArray(G)&&G.length>0:G!=null&&Pt!=="";se(()=>{M(vt)},[vt,M]),se(function(){let Ot=CG(ne.current,G,k,y);Ot===null&&(pe.current=null),!K&&fe.set("selectedIndex",Ot)},[y,K,G,k,fe]),u0(G,()=>{R(F),E(jde(G,O.initialValue,k)),V.change(G)});let Vt=le((ht,Ot)=>{a?.(ht,Ot),!Ot.isCanceled&&(q(ht),!ht&&(Ot.reason===ge.focusOut||Ot.reason===ge.outsidePress)&&(I(!0),B(!1),A==="onBlur"&&V.commit(G)))}),kt=le(()=>{_e(!1),fe.update({activeIndex:null,openMethod:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1}),v?.(!1)});cr({enabled:!h,open:K,ref:W,onComplete(){K||kt()}}),Cr.useImperativeHandle(h,()=>({unmount:kt}),[kt]);let yt=le((ht,Ot)=>{n?.(ht,Ot),!Ot.isCanceled&&$(ht)}),Ye=le(ht=>{let Ot=w0(ht.scrollHeight,ht.clientHeight),fn=x0(ht.scrollTop,Ot),Ii=fn>0,Cn=fn<Ot;fe.set("scrollUpArrowVisible",Ii),fe.set("scrollDownArrowVisible",Cn)}),Se=hG({open:K,onOpenChange:Vt,elements:{reference:ae,floating:Re}}),Ie=T_(Se,{enabled:!z,event:"mousedown"}),me=R_(Se),Te=FT(Se,{enabled:!z,listRef:H,activeIndex:Ce,selectedIndex:de,disabledIndices:In,onNavigate(ht){ht===null&&!K||fe.set("activeIndex",ht)},focusItemOnHover:C}),Me=zT(Se,{enabled:!z&&(K||!p&&!y),listRef:J,activeIndex:Ce,selectedIndex:de,disabledIndices:ht=>qB(H.current[ht]),onMatch(ht){K?fe.set("activeIndex",ht):yt(ne.current[ht],Ae(ge.none))},onTyping(ht){ie.current=ht}}),lt=Cr.useMemo(()=>st(Me.reference,Te.reference,me.reference,Ie.reference,Ze),[Ie.reference,Me.reference,Te.reference,me.reference,Ze]),et=Cr.useMemo(()=>st(s0,Me.floating,Te.floating,me.floating),[Me.floating,Te.floating,me.floating]),ao=Te.item??gt;fe.useContextCallback("setValue",yt),fe.useContextCallback("setOpen",Vt),fe.useContextCallback("handleScrollArrowVisibility",Ye),fe.useContextCallback("onOpenChangeComplete",v),Fde(()=>{fe.update({popupProps:et,triggerProps:lt})}),fe.useSyncedValues({id:L,modal:g,multiple:y,value:G,open:K,mounted:we,transitionStatus:xe,popupProps:et,triggerProps:lt,items:_,itemToStringLabel:w,itemToStringValue:x,isItemEqualToValue:k,openMethod:ct});let Lo=Cr.useMemo(()=>({disabled:z,readOnly:p,required:m,multiple:y,highlightItemOnHover:C,itemProps:ao}),[z,p,m,y,C,ao]),$r=Ai(b,V.inputRef),xo=y?void 0:F,_o=Cr.useMemo(()=>!y||!Array.isArray(G)||!F?null:G.map(ht=>{let Ot=Mg(ht,x);return(0,F_.jsx)("input",{type:"hidden",form:d,name:F,value:Ot,disabled:z},Ot)}),[y,G,d,F,x,z]);return(0,F_.jsxs)(e$.Provider,{value:fe,children:[(0,F_.jsx)(t$.Provider,{value:Lo,children:(0,F_.jsx)(o$.Provider,{value:Se,children:S})}),(0,F_.jsx)("input",{...V.getValidationProps(z,{onFocus(){fe.state.triggerElement?.focus({focusVisible:!0})},onChange(ht){if(ht.nativeEvent.defaultPrevented||z||p)return;let Ot=ht.currentTarget.value,fn=Ae(ge.none,ht.nativeEvent);function Ii(){if(y)return;let Cn=Ot.toLowerCase(),Pi=ne.current.findIndex(ls=>Mg(ls,x).toLowerCase()===Cn||EG(ls,w).toLowerCase()===Cn);Pi===-1&&(Pi=ne.current.findIndex((ls,ul)=>{let Ne=J.current[ul];return Ne!=null&&Ne.toLowerCase()===Cn}));let as=ne.current[Pi];as!=null&&yt(as,fn)}fe.set("forceMount",!0),queueMicrotask(Ii)}}),id:L&&xo==null?`${L}-hidden-input`:void 0,form:d,name:xo,autoComplete:u,value:Pt,disabled:z,required:m&&!(y&&vt),readOnly:p,ref:$r,style:F?tce:dP,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),_o]})}var rpe=c(te(),1);var npe=rpe.forwardRef(function(t,o){let{render:r,className:n,style:i,...s}=t,a=s;delete a.id;let l=_n(),d=jo(),u=d.useState("triggerElement"),f=d.useState("id"),p=Qde(f),m=hB({id:p,fallbackControlId:u?.id??f,setLabelId(g){let h=typeof g=="function"?g(d.state.labelId):g;d.set("labelId",h)}});return ke("div",t,{ref:o,state:l.state,props:[m,s],stateAttributesMapping:Hi})});var k0=c(te(),1);var azt=w_.popupOpen,lzt=w_.pressed;var ipe="data-popup-side";var UXe=400,WXe={..._T,...Hi,popupSide:e=>e?{[ipe]:e}:null,value:()=>null},spe=k0.forwardRef(function(t,o){let{render:r,className:n,id:i,disabled:s=!1,nativeButton:a=!0,style:l,...d}=t,{setTouched:u,setFocused:f,validationMode:p,validation:m,state:g,disabled:h}=_n(),{labelId:b}=Un(),v=jo(),{readOnly:_,required:y,disabled:w}=Wg(),x=h||w||s,k=v.useState("open"),C=v.useState("mounted"),S=v.useState("value"),R=v.useState("triggerProps"),E=v.useState("positionerElement"),I=v.useState("listElement"),B=v.useState("popupSide"),O=v.useState("id"),M=v.useState("labelId"),N=v.useState("hasSelectedValue"),j=C&&E?B:null,V=i??O,A=Jde(b,M);f0({id:i});let L=co(E),z=k0.useRef(null),{getButtonProps:F,buttonRef:G}=di({disabled:x,native:a}),$=v.useStateSetter("triggerElement"),K=Ft(),q=Ft(),H=Ft();k0.useEffect(()=>{if(k)return H.start(UXe,()=>{v.context.selectionRef.current.allowUnselectedMouseUp=!0,v.context.selectionRef.current.allowSelectedMouseUp=!0}),()=>{H.clear()};v.context.selectionRef.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},q.clear()},[k,v,q,H]);let J=st(R,{id:V,role:"combobox","aria-expanded":k,"aria-haspopup":"listbox","aria-controls":k?I?.id??k_(E)?.id:void 0,"aria-labelledby":A,"aria-readonly":_||void 0,"aria-required":y||void 0,tabIndex:x?-1:0,onFocus(ee){f(!0),k&&v.context.alignItemWithTriggerActiveRef.current&&v.context.setOpen(!1,Ae(ge.none,ee.nativeEvent)),K.start(0,()=>{v.set("forceMount",!0)})},onBlur(ee){He(E,ee.relatedTarget)||(u(!0),f(!1),p==="onBlur"&&m.commit(S))},onMouseDown(ee){if(k)return;let re=Je(ee.currentTarget);function ne(ie){if(!z.current)return;let be=ie.target;He(z.current,be)||He(L.current,be)||cB(ie,z.current)||v.context.setOpen(!1,Ae(ge.cancelOpen,ie))}q.start(0,()=>{re.addEventListener("mouseup",ne,{once:!0})})}},d,F),W=m.getValidationProps(x,J);W.role="combobox";let Y={...g,open:k,disabled:x,value:S,readOnly:_,popupSide:j,placeholder:!N};return ke("button",t,{ref:[o,z,G,$],state:Y,stateAttributesMapping:WXe,props:W})});var ape=c(te(),1);var GXe={value:()=>null},lpe=ape.forwardRef(function(t,o){let{className:r,render:n,children:i,placeholder:s,style:a,...l}=t,d=jo(),u=d.useState("value"),f=d.useState("items"),p=d.useState("itemToStringLabel"),m=d.useState("hasSelectedValue"),g=!m&&s!=null&&i==null,h=d.useState("hasNullItemLabel",g),b={value:u,placeholder:!m},v=null;return typeof i=="function"?v=i(u):i!=null?v=i:g&&!h?v=s:Array.isArray(u)?v=Kde(u,f,p):v=TG(u,f,p),ke("span",t,{state:b,ref:[o,d.context.valueRef],props:[{children:v},l],stateAttributesMapping:GXe})});var cpe=c(te(),1);var dpe=cpe.forwardRef(function(t,o){let{render:r,className:n,style:i,...s}=t,d={open:jo().useState("open")};return ke("span",t,{state:d,ref:o,props:[{"aria-hidden":!0,children:"\u25BC"},s],stateAttributesMapping:Qw})});var upe=c(te(),1);var fpe=c(T(),1),ppe=upe.forwardRef(function(t,o){let r=jo(),n=r.useState("mounted"),i=r.useState("forceMount");return n||i?(0,fpe.jsx)(ET,{ref:o,...t}):null});var mpe=c(te(),1);var $Xe={...Kc,...hn},gpe=mpe.forwardRef(function(t,o){let{render:r,className:n,style:i,...s}=t,a=jo(),l=a.useState("open"),d=a.useState("mounted"),u=a.useState("transitionStatus");return ke("div",t,{state:{open:l,transitionStatus:u},ref:o,props:[{role:"presentation",hidden:!d,style:{userSelect:"none",WebkitUserSelect:"none"}},s],stateAttributesMapping:$Xe})});var Il=c(te(),1);var a7=c(te(),1),r$=a7.createContext(void 0);function Gg(){let e=a7.useContext(r$);if(!e)throw new Error(ot(59));return e}function S0(e,t){e&&Object.assign(e.style,t)}var l7={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"};var tR=c(T(),1),YXe={position:"fixed"},hpe=Il.forwardRef(function(t,o){let{anchor:r,className:n,render:i,positionMethod:s,side:a,align:l,sideOffset:d,alignOffset:u,collisionBoundary:f="clipping-ancestors",collisionPadding:p,arrowPadding:m,sticky:g,disableAnchorTracking:h,alignItemWithTrigger:b=!0,collisionAvoidance:v=vP,style:_,...y}=t,w=jo(),x=s7(),k=w.useState("open"),C=w.useState("mounted"),S=w.useState("modal"),R=w.useState("value"),E=w.useState("openMethod"),I=w.useState("positionerElement"),B=w.useState("triggerElement"),O=w.useState("isItemEqualToValue"),M=w.useState("transitionStatus"),N=Il.useRef(null),j=Il.useRef(null),[V,A]=Il.useState(b),L=C&&V&&E!=="touch";!C&&V!==b&&A(b),Il.useImperativeHandle(w.context.alignItemWithTriggerActiveRef,()=>L),fB((L||S)&&k,E==="touch",I,B);let z=m0({anchor:r,floatingRootContext:x,positionMethod:s,mounted:C,side:a,sideOffset:d,align:l,alignOffset:u,arrowPadding:m,collisionBoundary:f,collisionPadding:p,sticky:g,disableAnchorTracking:h??L,collisionAvoidance:v,keepMounted:!0}),F=L?"none":z.side,G=L?YXe:z.positionerStyles,$={open:k,side:F,align:z.align,anchorHidden:z.anchorHidden};se(()=>{w.set("popupSide",z.side)},[w,z.side]);let K=w.useStateSetter("positionerElement"),q=g0(t,$,{styles:G,transitionStatus:M,props:y,refs:[o,K],hidden:!C,inert:!k}),H=Il.useRef(0),J=le(Y=>{if(w.context.valuesRef.current.length===0)return;let ee=H.current;H.current=Y.size;let re=Ae(ge.none);if(ee!==0&&!w.state.multiple&&R!==null&&UT(w.context.valuesRef.current,R,O)===-1){let ie=w.context.initialValueRef.current,pe=ie!=null&&UT(w.context.valuesRef.current,ie,O)!==-1?ie:null;w.context.setValue(pe,re),pe===null&&(w.set("selectedIndex",null),w.context.selectedItemTextRef.current=null)}if(ee!==0&&w.state.multiple&&Array.isArray(R)){let ne=R.filter(ie=>UT(w.context.valuesRef.current,ie,O)!==-1);ne.length!==R.length&&(w.context.setValue(ne,re),ne.length===0&&(w.set("selectedIndex",null),w.context.selectedItemTextRef.current=null))}if(k&&L){w.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let ne={height:""};S0(I,ne),S0(w.context.popupRef.current,ne)}}),W=Il.useMemo(()=>({...z,side:F,alignItemWithTriggerActive:L,setControlledAlignItemWithTrigger:A,scrollUpArrowRef:N,scrollDownArrowRef:j}),[z,F,L,A]);return(0,tR.jsx)(bg,{elementsRef:w.context.listRef,labelsRef:w.context.labelsRef,onMapChange:J,children:(0,tR.jsxs)(r$.Provider,{value:W,children:[C&&S&&(0,tR.jsx)(eB,{inert:Og(!k),cutout:B}),q]})})});var Pl=c(te(),1);var n$="--transform-origin";var u7=c(T(),1),qXe={...Kc,...hn},ype=Pl.forwardRef(function(t,o){let{render:r,className:n,style:i,finalFocus:s,...a}=t,l=jo(),{multiple:d,readOnly:u,highlightItemOnHover:f}=Wg(),p=s7(),{side:m,align:g,alignItemWithTriggerActive:h,isPositioned:b,setControlledAlignItemWithTrigger:v}=Gg(),_=RB(!0)!=null,y=Rl(),{nonce:w,disableStyleElements:x}=ZB(),k=l.useState("id"),C=l.useState("open"),S=l.useState("openMethod"),R=l.useState("mounted"),E=l.useState("popupProps"),I=l.useState("transitionStatus"),B=l.useState("triggerElement"),O=l.useState("positionerElement"),M=l.useState("listElement"),N=Pl.useRef(!1),j=Pl.useRef(!1),V=Pl.useRef({}),A=ps(),L=le($=>{if(!O||!l.context.popupRef.current||!j.current)return;let K=O.style.top==="0px",q=O.style.bottom==="0px";if(N.current||!h||!K&&!q){l.context.handleScrollArrowVisibility($);return}let H=_pe(O),J=oR(O.getBoundingClientRect().height,"y",H),W=Je(O),Y=wt(O),ee=Y.getComputedStyle(O),re=parseFloat(ee.marginTop),ne=parseFloat(ee.marginBottom),ie=bpe(Y.getComputedStyle(l.context.popupRef.current)),be=Math.min(W.documentElement.clientHeight-re-ne,ie),pe=$.scrollTop,Ee=c7($),ye=null,Oe=he=>{O.style.height=`${he}px`},we=K?Ee-pe:pe,_e=Math.min(J+we,be);if(we<=Na){let he=L_(we,0,be-J);he>0&&Oe(J+he),$.scrollTop=K?Ee:0,be-(J+he)<=Na&&(N.current=!0),l.context.handleScrollArrowVisibility($);return}if(be-_e>Na)ye=K?1/0:0;else if(q&&pe<Ee){let he=J+we-be;ye=pe-(we-he)}let xe=Math.ceil(_e);if(xe!==0&&Oe(xe),ye!=null){let he=L_(ye,0,c7($));Math.abs($.scrollTop-he)>Na&&($.scrollTop=he)}xe>=be-Na&&(N.current=!0),l.context.handleScrollArrowVisibility($)});Pl.useImperativeHandle(l.context.scrollHandlerRef,()=>L,[L]),cr({open:C,ref:l.context.popupRef,onComplete(){C&&l.context.onOpenChangeComplete(!0)}});let z={open:C,transitionStatus:I,side:m,align:g};se(()=>{!O||!l.context.popupRef.current||Object.keys(V.current).length||(V.current={top:O.style.top||"0",left:O.style.left||"0",right:O.style.right,height:O.style.height,bottom:O.style.bottom,minHeight:O.style.minHeight,maxHeight:O.style.maxHeight,marginTop:O.style.marginTop,marginBottom:O.style.marginBottom})},[l,O]),se(()=>{C||h||(j.current=!1,N.current=!1,S0(O,V.current))},[C,h,O]),se(()=>{let $=l.context.popupRef.current;if(!C||!B||!O||!$||h&&!b||l.state.transitionStatus==="ending")return;if(j.current=!0,$.style.removeProperty(n$),!h){A.request(()=>l.context.handleScrollArrowVisibility(M||$));return}let K=XXe($);try{let q=l.context.selectedItemTextRef.current;q?.isConnected||(q=!l.select("hasSelectedValue")&&l.context.firstItemTextRef.current?.isConnected?l.context.firstItemTextRef.current:null);let H=l.context.valueRef.current,J=wt(O),W=J.getComputedStyle(O),Y=J.getComputedStyle($),ee=Je(B),re=_pe(B),ne=d7(B.getBoundingClientRect(),re),ie=d7(O.getBoundingClientRect(),re),be=ne.height,pe=M||$,Ee=pe.scrollHeight,ye=parseFloat(Y.borderBottomWidth),Oe=parseFloat(W.marginTop)||10,we=parseFloat(W.marginBottom)||10,_e=parseFloat(W.minHeight)||100,xe=bpe(Y),he=5,Ze=5,fe=20,Ce=ee.documentElement.clientHeight-Oe-we,de=ee.documentElement.clientWidth,ae=Ce-ne.bottom+be,Re,$e=y==="rtl"?ne.right-ie.width:ne.left,ct=0;if(q&&H){let Ie=d7(H.getBoundingClientRect(),re);Re=d7(q.getBoundingClientRect(),re),$e=ie.left+(y==="rtl"?Ie.right-Re.right:Ie.left-Re.left);let me=Ie.top-ne.top+Ie.height/2;ct=Re.top-ie.top+Re.height/2-me}let Pt=ae+ct+we+ye,at=Math.min(Ce,Pt),Be=Ce-Oe-we,qe=Pt-at,vt=de-Ze;O.style.left=`${L_($e,he,vt-ie.width)}px`,O.style.height=`${at}px`,O.style.maxHeight="none",O.style.marginTop=`${Oe}px`,O.style.marginBottom=`${we}px`,$.style.height="100%";let Vt=c7(pe),kt=qe>=Vt-Na;kt&&(at=Math.min(Ce,ie.height)-(qe-Vt));let yt=ne.top<fe||ne.bottom>Ce-fe||Math.ceil(at)+Na<Math.min(Ee,_e),Ye=(J.visualViewport?.scale??1)!==1&&Kt.engine.webkit;if(yt||Ye){S0(O,V.current),v(!1);return}let Se=Math.max(_e,at);if(kt){let Ie=Math.max(0,Ce-Pt);O.style.top=ie.height>=Be?"0":`${Ie}px`,O.style.height=`${at}px`,pe.scrollTop=c7(pe)}else O.style.bottom="0",pe.scrollTop=qe;if(Re){let Ie=ie.top,me=ie.height,Te=Re.top+Re.height/2,Me=L_(me>0?(Te-Ie)/me*100:50,0,100);$.style.setProperty(n$,`50% ${Me}%`)}(Se===Ce||at>=xe)&&(N.current=!0),l.context.handleScrollArrowVisibility(pe),f&&l.state.selectedIndex===null&&l.state.activeIndex===null&&l.context.listRef.current[0]!=null&&l.set("activeIndex",0)}finally{K()}},[l,C,O,B,h,v,A,M,f,y,b]),Pl.useEffect(()=>{if(!h||!O||!C)return;let $=wt(O);function K(q){l.context.setOpen(!1,Ae(ge.windowResize,q))}return ut($,"resize",K)},[l,h,O,C]);let F={...M?{role:"presentation"}:{role:"listbox","aria-multiselectable":d||void 0,"aria-readonly":u||void 0,id:`${k}-list`},onKeyDown($){_&&d0.has($.key)&&$.stopPropagation()},onScroll($){M||L($.currentTarget)},...h&&{style:M?{height:"100%"}:l7},className:!M&&h?eR.className:void 0},G=ke("div",t,{ref:[o,l.context.popupRef],state:z,stateAttributesMapping:qXe,props:[E,F,Ag(I),a]});return(0,u7.jsxs)(Pl.Fragment,{children:[!x&&eR.getElement(w),(0,u7.jsx)(IT,{context:p,modal:!1,disabled:!R,openInteractionType:S,returnFocus:s,restoreFocus:!0,children:G})]})});function bpe(e){let t=e.maxHeight;return t.endsWith("px")&&parseFloat(t)||1/0}function c7(e){return w0(e.scrollHeight,e.clientHeight)}function _pe(e){return BT.getScale(e)}function oR(e,t,o){return e/o[t]}function d7(e,t){return tp({x:oR(e.x,"x",t),y:oR(e.y,"y",t),width:oR(e.width,"x",t),height:oR(e.height,"y",t)})}var vpe=[["transform","none"],["scale","1"],["translate","0 0"]];function XXe(e){let{style:t}=e,o={};for(let[r,n]of vpe)o[r]=t.getPropertyValue(r),t.setProperty(r,n,"important");return()=>{for(let[r]of vpe){let n=o[r];n?t.setProperty(r,n):t.removeProperty(r)}}}var wpe=c(te(),1);var xpe=wpe.forwardRef(function(t,o){let{render:r,className:n,style:i,...s}=t,a=jo(),{multiple:l,readOnly:d}=Wg(),{alignItemWithTriggerActive:u}=Gg(),f=a.useState("hasScrollArrows"),p=a.useState("openMethod"),g={id:`${a.useState("id")}-list`,role:"listbox","aria-multiselectable":l||void 0,"aria-readonly":d||void 0,onScroll(b){a.context.scrollHandlerRef.current?.(b.currentTarget)},...u&&{style:l7},className:f&&p!=="touch"?eR.className:void 0},h=a.useStateSetter("listElement");return ke("div",t,{ref:[o,h],props:[g,s]})});var Zc=c(te(),1);var f7=c(te(),1),i$=f7.createContext(void 0);function rR(){let e=f7.useContext(i$);if(!e)throw new Error(ot(57));return e}var kpe=c(T(),1),Spe=Zc.memo(Zc.forwardRef(function(t,o){let{render:r,className:n,style:i,value:s=null,label:a,disabled:l=!1,nativeButton:d=!1,...u}=t,f=Zc.useRef(null),p=Ni({guess:!0,label:a,textRef:f}),m=jo(),{itemProps:g,multiple:h,disabled:b,readOnly:v}=Wg(),_=b||l,y=m.useState("isActive",p.index),w=m.useState("open"),x=m.useState("isSelected",s),k=m.useState("isSelectedByFocus",p.index),C=m.useState("isItemEqualToValue"),S=p.index,R=Zc.useRef(null);se(()=>{let z=m.context.valuesRef.current;return z[S]=s,()=>{delete z[S]}},[S,s,m]),se(()=>{let z=m.state.value,F=m.state.selectedIndex,G=F,$;h&&Array.isArray(z)?(G=Hde(S,s,m.context.valuesRef.current,z,C,F),$=G===S,S===F&&!$&&(m.context.selectedItemTextRef.current=null)):($=z!==void 0&&ip(s,z,C),$&&(G=S)),m.set("selectedIndex",G),$&&f.current&&(m.context.selectedItemTextRef.current=f.current)},[S,h,C,m,s]);let E=Zc.useRef("mouse"),I=Zc.useRef(!1),{getButtonProps:B,buttonRef:O}=di({disabled:_,focusableWhenDisabled:!0,native:d,composite:!0}),M={disabled:_,selected:x,highlighted:y};function N(z){if(b||v)return;let F=m.state.value;if(h){let G=Array.isArray(F)?F:[],$=x?Ude(G,s,C):[...G,s];m.context.setValue($,Ae(ge.itemPress,z))}else m.context.setValue(s,Ae(ge.itemPress,z)),m.context.setOpen(!1,Ae(ge.itemPress,z))}function j(){m.context.selectionRef.current.dragY=0}let V={role:"option","aria-selected":x,tabIndex:w&&y?0:-1,onKeyDown(z){m.set("activeIndex",S),z.key===" "&&m.context.typingRef.current&&z.preventDefault()},onClick(z){let F=E.current!=="touch",G=z.nativeEvent.pointerType,$=F&&wg(z.nativeEvent)&&(G!==void 0||y),K=F&&!$&&!I.current;I.current=!1,!(_||K)&&N(z.nativeEvent)},onPointerEnter(z){E.current=z.pointerType},onPointerMove(z){if(z.pointerType==="mouse"&&z.buttons===1){let F=m.context.selectionRef.current;F.dragY+=z.movementY,F.dragY**2>=64&&(F.allowUnselectedMouseUp=!0)}},onPointerDown(z){E.current=z.pointerType,I.current=!0,j()},onMouseUp(){if(j(),_||E.current==="touch"||I.current)return;let z=!m.context.selectionRef.current.allowSelectedMouseUp&&x,F=!m.context.selectionRef.current.allowUnselectedMouseUp&&!x;z||F||(I.current=!0,R.current?.click(),I.current=!1)}},A=ke("div",t,{ref:[O,o,p.ref,R],state:M,props:[g,V,u,B]}),L=Zc.useMemo(()=>({selected:x,index:S,textRef:f,selectedByFocus:k}),[x,S,f,k]);return(0,kpe.jsx)(i$.Provider,{value:L,children:A})}));var z_=c(te(),1);var Cpe=c(T(),1),Epe=z_.forwardRef(function(t,o){let{selected:r}=rR();return t.keepMounted||r?(0,Cpe.jsx)(ZXe,{...t,ref:o}):null}),ZXe=z_.memo(z_.forwardRef((e,t)=>{let{render:o,className:r,style:n,keepMounted:i,...s}=e,{selected:a}=rR(),l=z_.useRef(null),{transitionStatus:d,setMounted:u}=gn(a),p=ke("span",e,{ref:[t,l],state:{selected:a,transitionStatus:d},props:[{"aria-hidden":!0,children:"\u2714\uFE0F"},s],stateAttributesMapping:hn});return cr({batch:!0,enabled:!a,open:a,ref:l,onComplete(){a||u(!1)}}),p}));var C0=c(te(),1);var Tpe=C0.memo(C0.forwardRef(function(t,o){let{index:r,textRef:n,selectedByFocus:i}=rR(),s=jo(),{render:a,className:l,style:d,...u}=t,f=C0.useCallback(m=>{m&&(r===0&&(s.context.firstItemTextRef.current=m),i&&(s.context.selectedItemTextRef.current=m))},[s,r,i]);return ke("div",t,{ref:[f,o,n],props:u})}));var Rpe=c(te(),1);var Ipe=Rpe.forwardRef(function(t,o){let{render:r,className:n,style:i,...s}=t,a=jo(),{side:l,align:d,arrowRef:u,arrowStyles:f,arrowUncentered:p,alignItemWithTriggerActive:m}=Gg(),h={open:a.useState("open"),side:l,align:d,uncentered:p},b=ke("div",t,{state:h,ref:[u,o],props:[{style:f,"aria-hidden":!0},s],stateAttributesMapping:xg});return m?null:b});var Bpe=c(te(),1);var Ppe=c(te(),1);var p7=Ppe.forwardRef(function(t,o){let{render:r,className:n,style:i,direction:s,keepMounted:a,...l}=t,d=s==="up",u=jo(),{side:f,scrollDownArrowRef:p,scrollUpArrowRef:m}=Gg(),g=d?"scrollUpArrowVisible":"scrollDownArrowVisible",h=u.useState(g),b=u.useState("openMethod"),v=h&&b!=="touch",_=Ft(),y=d?m:p,{mounted:w,transitionStatus:x,setMounted:k}=gn(v);se(()=>(u.context.scrollArrowsMountedCountRef.current+=1,u.set("hasScrollArrows",!0),()=>{u.context.scrollArrowsMountedCountRef.current=Math.max(0,u.context.scrollArrowsMountedCountRef.current-1),u.context.scrollArrowsMountedCountRef.current===0&&u.set("hasScrollArrows",!1)}),[u]),cr({open:v,ref:y,onComplete(){v||k(!1)}});let R=ke("div",t,{ref:[o,y],state:{direction:s,visible:v,side:f,transitionStatus:x},props:[{"aria-hidden":!0,children:d?"\u25B2":"\u25BC",style:{position:"absolute"},onMouseMove(I){if(I.movementX===0&&I.movementY===0||_.isStarted())return;u.set("activeIndex",null);function B(){let O=u.state.listElement??u.context.popupRef.current;if(!O)return;u.set("activeIndex",null),u.context.handleScrollArrowVisibility(O);let M=w0(O.scrollHeight,O.clientHeight),N=x0(O.scrollTop,M),j=N===(d?0:M),V=u.context.listRef.current;if(N!==O.scrollTop&&(O.scrollTop=N),j){_.clear();return}if(V.length>0){let A=y.current?.offsetHeight||0;O.scrollTop=QXe(V,d,N,O.clientHeight,A,M)}_.start(40,B)}_.start(40,B)},onMouseLeave(){_.clear()}},l],stateAttributesMapping:hn});return w||a?R:null});function QXe(e,t,o,r,n,i){if(t){let u=0,f=o+n-Na;for(let g=0;g<e.length;g+=1){let h=e[g];if(h&&h.offsetTop>=f){u=g;break}}let p=Math.max(0,u-1),m=e[p];return p<u&&m?x0(m.offsetTop-n,i):0}let s=e.length-1,a=o+r-n+Na;for(let u=0;u<e.length;u+=1){let f=e[u];if(f&&f.offsetTop+f.offsetHeight>a){s=Math.max(0,u-1);break}}let l=Math.min(e.length-1,s+1),d=e[l];return l>s&&d?x0(d.offsetTop+d.offsetHeight-r+n,i):i}var Ope=c(T(),1),Mpe=Bpe.forwardRef(function(t,o){return(0,Ope.jsx)(p7,{...t,ref:o,direction:"down"})});var Ape=c(te(),1);var Npe=c(T(),1),Lpe=Ape.forwardRef(function(t,o){return(0,Npe.jsx)(p7,{...t,ref:o,direction:"up"})});var E0=c(te(),1);var m7=c(te(),1),s$=m7.createContext(void 0);function Dpe(){let e=m7.useContext(s$);if(e===void 0)throw new Error(ot(56));return e}var Vpe=c(T(),1),Fpe=E0.forwardRef(function(t,o){let{render:r,className:n,style:i,...s}=t,[a,l]=E0.useState(),d=E0.useMemo(()=>({labelId:a,setLabelId:l}),[a,l]),u=ke("div",t,{ref:o,props:[{role:"group","aria-labelledby":a},s]});return(0,Vpe.jsx)(s$.Provider,{value:d,children:u})});var zpe=c(te(),1);var jpe=zpe.forwardRef(function(t,o){let{render:r,className:n,style:i,id:s,...a}=t,{setLabelId:l}=Dpe(),d=Yt(s);return se(()=>(l(d),()=>{l(f=>f===d?void 0:f)}),[d,l]),ke("div",t,{ref:o,props:[{id:d,"aria-hidden":!0},a]})});var Hpe=gue;var Upe=c(MT(),1);function JXe(){return pt}function eZe(){return!1}function tZe(){return!0}function Wpe(){return(0,Upe.useSyncExternalStore)(JXe,eZe,tZe)}var lUt=c(te(),1);var Gpe=c(T(),1);function $pe(e){let{script:t}=e,{nonce:o}=ZB();return Wpe()?(0,Gpe.jsx)("script",{nonce:o,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0}):null}var Jc={};ro(Jc,{Indicator:()=>ame,List:()=>dme,Panel:()=>cme,Root:()=>qpe,Tab:()=>Xpe});var Xr=c(te(),1);var g7=c(te(),1),a$=g7.createContext(void 0);function $g(){let e=g7.useContext(a$);if(e===void 0)throw new Error(ot(64));return e}var Ype="data-activation-direction";var ku={tabActivationDirection:e=>({[Ype]:e})};var l$=c(T(),1),qpe=Xr.forwardRef(function(t,o){let{className:r,defaultValue:n=0,onValueChange:i,orientation:s="horizontal",render:a,value:l,style:d,...u}=t,f=t.defaultValue!==void 0,p=Xr.useRef([]),[m,g]=Xr.useState(()=>new Map),[h,b]=Ba({controlled:l,default:n,name:"Tabs",state:"value"}),v=l!==void 0,[_,y]=Xr.useState(()=>new Map),w=Xr.useRef(void 0),x=Xr.useCallback(W=>c$(_,W),[_]),[k,C]=Xr.useState(()=>({previousValue:h,tabActivationDirection:"none"})),{previousValue:S,tabActivationDirection:R}=k,E=R,I=!1;S!==h&&(E=Kpe(S,h,s,_),I=S!=null&&h!=null&&x(h)==null);let B=I?S:h,O=S!==B||R!==E;se(()=>{O&&C({previousValue:B,tabActivationDirection:E})},[B,O,E]);let M=le((W,Y)=>{let ee=Kpe(h,W,s,_);Y.activationDirection=ee,i?.(W,Y),!Y.isCanceled&&b(W)}),N=le((W,Y)=>{i?.(W,Ae(Y,void 0,void 0,{activationDirection:"none"}))}),j=le((W,Y)=>(g(ee=>{let re=new Map(ee);return re.set(W,Y),re}),()=>{g(ee=>{if(ee.get(W)!==Y)return ee;let re=new Map(ee);return re.delete(W),re})})),V=Xr.useCallback(W=>m.get(W),[m]),A=Xr.useCallback(W=>{for(let Y of _.values())if(W===Y.value)return Y.id},[_]),L=Xr.useMemo(()=>({getTabElementBySelectedValue:x,getTabIdByPanelValue:A,getTabPanelIdByValue:V,onValueChange:M,orientation:s,registerMountedTabPanel:j,setTabMap:y,tabActivationDirection:E,value:h}),[x,A,V,M,s,j,y,E,h]),z=Xr.useMemo(()=>{for(let W of _.values())if(W.value===h)return W},[_,h]),F=Xr.useMemo(()=>{for(let W of _.values())if(!W.disabled)return W.value},[_]),G=Xr.useRef(!f),$=Xr.useRef(n),K=Xr.useRef(f),q=Xr.useRef(!1);se(()=>{if(v)return;function W(ne,ie){b(ne),C({previousValue:ne,tabActivationDirection:"none"}),N(ne,ie),G.current=!1}if(_.size===0){q.current&&h!==null&&!w.current?.isConnected&&W(null,ge.missing);return}q.current=!0,w.current=_.keys().next().value;let Y=z?.disabled,ee=z==null&&h!==null;if(!Y&&h===$.current&&(K.current=!1),K.current&&Y&&h===$.current)return;let re=G.current;if(Y||ee){let ne=F??null;if(h===ne){G.current=!1;return}let ie=ge.missing;re?ie=ge.initial:Y&&(ie=ge.disabled),W(ne,ie);return}re&&z!=null&&(N(h,ge.initial),G.current=!1)},[F,v,N,z,b,_,h]);let J=ke("div",t,{state:{orientation:s,tabActivationDirection:E},ref:o,props:u,stateAttributesMapping:ku});return(0,l$.jsx)(a$.Provider,{value:L,children:(0,l$.jsx)(bg,{elementsRef:p,children:J})})});function c$(e,t){for(let[o,r]of e.entries())if(t===r.value)return o;return null}function Kpe(e,t,o,r){if(e==null||t==null)return"none";let[n,i,s]=o==="horizontal"?["left","left","right"]:["top","up","down"],a=c$(r,e),l=c$(r,t);if(a==null||l==null)return a!==l&&(typeof e=="number"||typeof e=="string")&&typeof e==typeof t?t>e?s:i:"none";let d=a.getBoundingClientRect()[n],u=l.getBoundingClientRect()[n];return u<d?i:u>d?s:"none"}var lp=c(te(),1);var h7=c(te(),1),d$=h7.createContext(void 0);function b7(){let e=h7.useContext(d$);if(e===void 0)throw new Error(ot(65));return e}var Xpe=lp.forwardRef(function(t,o){let{className:r,disabled:n=!1,render:i,value:s,id:a,nativeButton:l=!0,style:d,...u}=t,{value:f,getTabPanelIdByValue:p,onValueChange:m,orientation:g,tabActivationDirection:h}=$g(),{activateOnFocus:b,registerTabResizeObserverElement:v,tabsListElement:_}=b7(),{highlightedIndex:y,onHighlightedIndexChange:w}=yg(),x=Yt(a),k=lp.useMemo(()=>({disabled:n,id:x,value:s}),[n,x,s]),{compositeProps:C,compositeRef:S,index:R}=jB({metadata:k}),E=s===f,I=lp.useRef(!1),B=lp.useRef(null),O=le(q=>{B.current?.(),B.current=q?v(q):null});se(()=>{if(I.current){I.current=!1;return}if(!(E&&R>-1&&y!==R))return;let q=_;if(q!=null){let H=Sr(Je(q));if(H&&He(q,H))return}n||w(R)},[E,R,y,w,n,_]);let{getButtonProps:M,buttonRef:N}=di({disabled:n,native:l,focusableWhenDisabled:!0}),j=p(s),V=lp.useRef(!1),A=lp.useRef(!1);function L(q){m(s,Ae(ge.none,q.nativeEvent,void 0,{activationDirection:"none"}))}function z(q){E||n||L(q)}function F(q){E||n||b&&(!V.current||A.current)&&L(q)}function G(q){if(E||n)return;V.current=!0,A.current=q.button===0;let H=Je(q.currentTarget);function J(){V.current=!1,A.current=!1,H.removeEventListener("pointerup",J),H.removeEventListener("pointercancel",J)}H.addEventListener("pointerup",J),H.addEventListener("pointercancel",J)}return ke("button",t,{state:{disabled:n,active:E,orientation:g,tabActivationDirection:h},ref:[o,N,S,O],props:[C,{role:"tab","aria-controls":j,"aria-selected":E,id:x,onClick:z,onFocus:F,onPointerDown:G,[JT]:E?"":void 0,onKeyDownCapture(){I.current=!0}},u,M],stateAttributesMapping:ku})});var T0=c(te(),1);var Zpe="--active-tab-left",Qpe="--active-tab-right",Jpe="--active-tab-top",eme="--active-tab-bottom",tme="--active-tab-width",ome="--active-tab-height";var _7=c(T(),1),rme,nZe={...ku,activeTabPosition:()=>null,activeTabSize:()=>null},nme=2,ame=T0.forwardRef(function(t,o){let{className:r,render:n,renderBeforeHydration:i=!1,style:s,...a}=t,{getTabElementBySelectedValue:l,orientation:d,tabActivationDirection:u,value:f}=$g(),{tabsListElement:p,registerIndicatorUpdateListener:m}=b7(),g=vde();T0.useEffect(()=>m(g),[m,g]);let h=0,b=0,v=0,_=0,y=0,w=0,x=!1;if(f!=null&&p!=null){let B=l(f);if(B!=null){x=!0;let{width:O,height:M}=_0(B),{width:N,height:j}=_0(p),V=B.getBoundingClientRect(),A=p.getBoundingClientRect(),L=N>0?A.width/N:1,z=j>0?A.height/j:1,F=iZe(B,p);h=F.left,v=F.top;let G=(V.left-A.left)/L+p.scrollLeft-p.clientLeft,$=(V.top-A.top)/z+p.scrollTop-p.clientTop,K=sZe(B);Math.abs(G-K.x-h)<=nme&&Math.abs($-K.y-v)<=nme&&(h=G,v=$),y=O,w=M,b=p.scrollWidth-h-y,_=p.scrollHeight-v-w}}let k=x?{left:h,right:b,top:v,bottom:_}:null,C=x?{width:y,height:w}:null,S=x?{[Zpe]:`${h}px`,[Qpe]:`${b}px`,[Jpe]:`${v}px`,[eme]:`${_}px`,[tme]:`${y}px`,[ome]:`${w}px`}:void 0,R=x&&y>0&&w>0,I=ke("span",t,{state:{orientation:d,activeTabPosition:k,activeTabSize:C,tabActivationDirection:u},ref:o,props:[{role:"presentation",style:S,hidden:!R},a,{suppressHydrationWarning:!0}],stateAttributesMapping:nZe});return f==null?null:(0,_7.jsxs)(T0.Fragment,{children:[I,i&&(rme||(rme=(0,_7.jsx)($pe,{script:""})))]})});function iZe(e,t){let o=ime(e),r=ime(t),n=o.left-r.left-t.clientLeft,i=o.top-r.top-t.clientTop,s=ms(e);for(;xt(s)&&s!==t&&!Xs(s);)n-=s.scrollLeft,i-=s.scrollTop,s=ms(s);return{left:n,top:i}}function ime(e){let t=0,o=0,r=e;for(;r!=null;){t+=r.offsetLeft,o+=r.offsetTop;let n=r.offsetParent;n!=null&&(t+=n.clientLeft,o+=n.clientTop),r=n}return{left:t,top:o}}function sZe(e){let t=wt(e).getComputedStyle(e),{x:o,y:r}=Mfe(e,t),n=o,i=r,{translate:s}=t;if(s&&s!=="none"){let a=s.split(" ");n+=sme(a[0],e.offsetWidth),i+=sme(a[1],e.offsetHeight)}return{x:n,y:i}}function sme(e,t){if(!e)return 0;let o=parseFloat(e);return Number.isFinite(o)?e.endsWith("%")?o/100*t:o:0}var v7=c(te(),1);var lme="data-index";var oWt=Jf.startingStyle,rWt=Jf.endingStyle;var lZe={...ku,...hn},cme=v7.forwardRef(function(t,o){let{className:r,value:n,render:i,keepMounted:s=!1,style:a,...l}=t,{value:d,getTabIdByPanelValue:u,orientation:f,tabActivationDirection:p,registerMountedTabPanel:m}=$g(),g=Yt(),{ref:h,index:b}=Ni(),v=n===d,{mounted:_,transitionStatus:y,setMounted:w}=gn(v),x=!_,k=u(n),C={hidden:x,orientation:f,tabActivationDirection:p,transitionStatus:y},S=v7.useRef(null),R=ke("div",t,{state:C,ref:[o,h,S],props:[{"aria-labelledby":k,hidden:x,id:g,role:"tabpanel",tabIndex:v?0:-1,inert:Og(!v),[lme]:b},l],stateAttributesMapping:lZe});return cr({open:v,ref:S,onComplete(){v||w(!1)}}),se(()=>{if(!(g==null||x&&!s))return m(n,g)},[x,s,n,g,m]),s||_?R:null});var Qc=c(te(),1);var u$=c(T(),1),dme=Qc.forwardRef(function(t,o){let{activateOnFocus:r=!1,className:n,loopFocus:i=!0,render:s,style:a,...l}=t,{orientation:d,setTabMap:u,tabActivationDirection:f}=$g(),[p,m]=Qc.useState(0),[g,h]=Qc.useState(null),b=Qc.useRef(new Set),v=Qc.useRef(new Set),_=Qc.useRef(null);se(()=>{if(typeof ResizeObserver>"u")return;let S=new ResizeObserver(()=>{b.current.forEach(R=>{R()})});return _.current=S,g&&S.observe(g),v.current.forEach(R=>{S.observe(R)}),()=>{S.disconnect(),_.current=null}},[g]);let y=le(S=>(b.current.add(S),()=>{b.current.delete(S)})),w=le(S=>(v.current.add(S),_.current?.observe(S),()=>{v.current.delete(S),_.current?.unobserve(S)})),x={orientation:d,tabActivationDirection:f},k={"aria-orientation":d==="vertical"?"vertical":void 0,role:"tablist"},C=Qc.useMemo(()=>({activateOnFocus:r,registerIndicatorUpdateListener:y,registerTabResizeObserverElement:w,tabsListElement:g}),[r,y,w,g]);return(0,u$.jsx)(d$.Provider,{value:C,children:(0,u$.jsx)(Xfe,{render:s,className:n,style:a,state:x,refs:[o,h],props:[k,l],stateAttributesMapping:ku,highlightedIndex:p,enableHomeAndEndKeys:!0,loopFocus:i,orientation:d,onHighlightedIndexChange:m,onMapChange:u,disabledIndices:In})})});var ea={};ro(ea,{Arrow:()=>Ime,Handle:()=>iR,Popup:()=>Tme,Portal:()=>kme,Positioner:()=>Cme,Provider:()=>Bme,Root:()=>hme,Trigger:()=>yme,Viewport:()=>Mme,createHandle:()=>Ame});var R0=c(te(),1);var y7=c(te(),1),f$=y7.createContext(void 0);function Bl(e){let t=y7.useContext(f$);if(t===void 0&&!e)throw new Error(ot(72));return t}var ume=c(te(),1);var fme={...VP,disabled:e=>e.disabled,instantType:e=>e.instantType,isInstantPhase:e=>e.isInstantPhase,trackCursorAxis:e=>e.trackCursorAxis,disableHoverablePopup:e=>e.disableHoverablePopup,lastOpenChangeReason:e=>e.openChangeReason,closeOnClick:e=>e.closeOnClick,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin},w7=class extends El{constructor(t,o,r){let n=new yu;super(mme(t,n,o,r),gme(n),fme)}setOpen=(t,o)=>{Sde(this,t,o,{extraState:{openChangeReason:o.reason}})};cancelPendingOpen(t){this.state.floatingRootContext.dispatchOpenChange(!1,Ae(ge.triggerPress,t))}};function pme(){let e=new yu,t=new c0(Object.freeze(mme(void 0,e)),Object.freeze(gme(e)),fme);return Object.assign(t,{setOpen:pt,cancelPendingOpen:pt})}function mme(e,t,o,r=!1){return{...DP(t,o,r),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...e}}function gme(e){return{popupRef:ume.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e}}var nR=c(T(),1),hme=AT(function(t){let{disabled:o=!1,defaultOpen:r=!1,open:n,disableHoverablePopup:i=!1,trackCursorAxis:s="none",actionsRef:a,onOpenChange:l,onOpenChangeComplete:d,handle:u,triggerId:f,defaultTriggerId:p=null,children:m}=t,g=kde((I,B)=>new w7({open:r,openProp:n,activeTriggerId:p,triggerIdProp:f},I,B));g.useControlledProp("openProp",n),g.useControlledProp("triggerIdProp",f),g.useContextCallback("onOpenChange",l),g.useContextCallback("onOpenChangeComplete",d);let h=g.useState("open"),b=!o&&h,v=g.useState("activeTriggerId"),_=g.useState("mounted"),y=g.useState("payload");g.useSyncedValues({trackCursorAxis:s,disableHoverablePopup:i,disabled:o}),AP(g,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:w,transitionStatus:x}=NP(b,g),k=g.useState("isInstantPhase"),C=g.useState("instantType"),S=g.useState("lastOpenChangeReason"),R=R0.useRef(null);se(()=>{h&&o&&g.setOpen(!1,Ae(ge.disabled))},[h,o,g]),se(()=>{x==="ending"&&S===ge.none||x!=="ending"&&k?(C!=="delay"&&(R.current=C),g.set("instantType","delay")):R.current!==null&&(g.set("instantType",R.current),R.current=null)},[x,k,S,C,g]),se(()=>{b&&v==null&&g.set("payload",void 0)},[g,v,b]),R0.useImperativeHandle(a,()=>({unmount:w,close:()=>g.setOpen(!1,Ae(ge.imperativeAction))}),[w,g]);let E=b||_||!o&&s!=="none";return(0,nR.jsxs)(f$.Provider,{value:g,children:[u&&(0,nR.jsx)(OP,{handle:u,store:g}),E&&(0,nR.jsx)(cZe,{store:g,disabled:o,trackCursorAxis:s}),typeof m=="function"?m({payload:y}):m]})});function cZe({store:e,disabled:t,trackCursorAxis:o}){let r=e.useState("floatingRootContext"),n=R_(r,{enabled:!t,referencePress:()=>e.select("closeOnClick")}),i=ZW(r,{enabled:!t&&o!=="none",axis:o==="none"?void 0:o}),s=R0.useMemo(()=>st(i.reference,n.reference),[i.reference,n.reference]);return LP(e,{activeTriggerProps:s,inactiveTriggerProps:s,popupProps:n.floating??gt}),null}var k7=c(te(),1);var x7=c(te(),1),p$=x7.createContext(void 0);function bme(){return x7.useContext(p$)}var vme="data-base-ui-tooltip-trigger";function _me(e){if("composedPath"in e){let o=e.composedPath();for(let r=0;r<o.length;r+=1){let n=o[r];if(mt(n))return n}}let t=e.target;return mt(t)?t:null}function dZe(e){let t=e;for(;t;){let o=t.closest(`[${vme}]`);if(o)return o;let r=t.getRootNode();t="host"in r&&mt(r.host)?r.host:null}return null}var yme=RP(function(t,o){let{render:r,className:n,style:i,handle:s,payload:a,disabled:l,delay:d,closeOnClick:u=!0,closeDelay:f,id:p,...m}=t,g=Bl(!0),b=FP(s)??g;if(!b)throw new Error(ot(82));let v=Yt(p),_=b.useState("isTriggerActive",v),y=b.useState("isOpenedByTrigger",v),w=b.useState("floatingRootContext"),x=k7.useRef(null),k=f??0,{registerTrigger:C,isMountedByThisTrigger:S}=MP(v,x,b,{payload:a,closeOnClick:u,closeDelay:k}),R=bme(),{activeIdRef:E,delayRef:I,isInstantPhase:B,hasProvider:O}=NW(w,{open:y}),M=l0(w);b.useSyncedValue("isInstantPhase",B);let N=b.useState("disabled"),j=l??N,V=co(j),A=b.useState("trackCursorAxis"),L=b.useState("disableHoverablePopup"),z=k7.useRef(!1),F=Ft(),G=k7.useRef(void 0);function $(){return O&&E.current!=null?0:d??R??600}function K(ie){let be=x.current;if(!be||!ie)return!1;let pe=dZe(ie);return pe!==null&&pe!==be&&He(be,pe)}function q(ie){let be=K(ie);return z.current=be,be&&(M.openChangeTimeout.clear(),M.restTimeout.clear(),M.restTimeoutPending=!1,F.clear()),be}let H=B_(w,{enabled:!j,mouseOnly:!0,move:!1,handleClose:!L&&A!=="both"?M_():null,restMs:$,delay(){return f==null&&O?{close:qc(I.current,"close")}:{close:k}},triggerElementRef:x,isActiveTrigger:_,isClosing:()=>b.select("transitionStatus")==="ending",shouldOpen(){return!z.current}}),J=DT(w,{enabled:!j}).reference,W=ie=>{let be=z.current,pe=_me(ie),Ee=q(pe),ye=x.current,Oe=ye&&pe&&He(ye,pe);if(Ee&&b.select("open")&&b.select("lastOpenChangeReason")===ge.triggerHover){b.setOpen(!1,Ae(ge.triggerHover,ie));return}if(be&&!Ee&&Oe&&!V.current&&!b.select("open")&&ye&&Ma(G.current)){let we=()=>{!z.current&&!V.current&&!b.select("open")&&b.setOpen(!0,Ae(ge.triggerHover,ie,ye))},_e=$();_e===0?(F.clear(),we()):F.start(_e,we)}},Y=b.useState("triggerProps",S);return ke("button",t,{state:{open:y},ref:[o,C,x],props:[H,J,S||A!=="none"?Y:void 0,{onMouseOver(ie){W(ie.nativeEvent)},onFocus(ie){K(_me(ie.nativeEvent))&&ie.preventBaseUIHandler()},onMouseLeave(){z.current=!1,F.clear(),G.current=void 0},onPointerEnter(ie){G.current=ie.pointerType},onPointerDown(ie){G.current=ie.pointerType,b.set("closeOnClick",u),u&&!b.select("open")&&b.cancelPendingOpen(ie.nativeEvent)},onClick(ie){u&&!b.select("open")&&b.cancelPendingOpen(ie.nativeEvent)},id:v,[vT]:j?"":void 0,[vme]:j?void 0:""},m],stateAttributesMapping:Qw})});var xme=c(te(),1);var S7=c(te(),1),m$=S7.createContext(void 0);function wme(){let e=S7.useContext(m$);if(e===void 0)throw new Error(ot(70));return e}var g$=c(T(),1),kme=xme.forwardRef(function(t,o){let{keepMounted:r=!1,...n}=t;return Bl().useState("mounted")||r?(0,g$.jsx)(m$.Provider,{value:r,children:(0,g$.jsx)(Jfe,{ref:o,...n})}):null});var E7=c(te(),1);var C7=c(te(),1),h$=C7.createContext(void 0);function I0(){let e=C7.useContext(h$);if(e===void 0)throw new Error(ot(71));return e}var Sme=c(T(),1),Cme=E7.forwardRef(function(t,o){let{render:r,className:n,anchor:i,positionMethod:s="absolute",side:a="top",align:l="center",sideOffset:d=0,alignOffset:u=0,collisionBoundary:f="clipping-ancestors",collisionPadding:p=5,arrowPadding:m=5,sticky:g=!1,disableAnchorTracking:h=!1,collisionAvoidance:b=yP,style:v,..._}=t,y=Bl(),w=wme(),x=y.useState("open"),k=y.useState("mounted"),C=y.useState("trackCursorAxis"),S=y.useState("disableHoverablePopup"),R=y.useState("floatingRootContext"),E=y.useState("instantType"),I=y.useState("transitionStatus"),B=y.useState("adaptiveOrigin"),O=m0({anchor:i,positionMethod:s,floatingRootContext:R,mounted:k,side:a,sideOffset:d,align:l,alignOffset:u,collisionBoundary:f,collisionPadding:p,sticky:g,arrowPadding:m,disableAnchorTracking:h,keepMounted:w,collisionAvoidance:b,adaptiveOrigin:B}),M=E7.useMemo(()=>({open:x,side:O.side,align:O.align,anchorHidden:O.anchorHidden,instant:C!=="none"?"tracking-cursor":E}),[x,O.side,O.align,O.anchorHidden,C,E]),N=g0(t,M,{styles:O.positionerStyles,transitionStatus:I,props:_,refs:[o,y.useStateSetter("positionerElement")],hidden:!k,inert:!x||C==="both"||S});return(0,Sme.jsx)(h$.Provider,{value:O,children:N})});var Eme=c(te(),1);var Tme=Eme.forwardRef(function(t,o){let{render:r,className:n,style:i,...s}=t,a=Bl(),{side:l,align:d}=I0(),u=a.useState("open"),f=a.useState("instantType"),p=a.useState("transitionStatus"),m=a.useState("popupProps"),g=a.useState("floatingRootContext"),h=a.useState("disabled"),b=a.useState("closeDelay");cr({open:u,ref:a.context.popupRef,onComplete(){u&&a.context.onOpenChangeComplete?.(!0)}}),VT(g,{enabled:!h,closeDelay:b});let v=a.useStateSetter("popupElement");return ke("div",t,{state:{open:u,side:l,align:d,instant:f,transitionStatus:p},ref:[o,a.context.popupRef,v],props:[s0,m,Ag(p),s],stateAttributesMapping:xg})});var Rme=c(te(),1);var Ime=Rme.forwardRef(function(t,o){let{render:r,className:n,style:i,...s}=t,a=Bl(),{arrowRef:l,side:d,align:u,arrowUncentered:f,arrowStyles:p}=I0(),m=a.useState("open"),g=a.useState("instantType");return ke("div",t,{state:{open:m,side:d,align:u,uncentered:f,instant:g},ref:[o,l],props:[{style:p,"aria-hidden":!0},s],stateAttributesMapping:Kc})});var Pme=c(te(),1);var b$=c(T(),1),Bme=function(t){let{delay:o,closeDelay:r,timeout:n=400}=t,i=Pme.useMemo(()=>({open:o,close:r}),[o,r]);return(0,b$.jsx)(p$.Provider,{value:o,children:(0,b$.jsx)(AW,{delay:i,timeoutMs:n,children:t.children})})};var Ome=c(te(),1);var Mme=Ome.forwardRef(function(t,o){let{render:r,className:n,style:i,children:s,...a}=t,l=Bl(),d=I0(),u=l.useState("instantType"),{children:f,state:p}=KB({store:l,side:d.side,children:s}),m={activationDirection:p.activationDirection,transitioning:p.transitioning,instant:u};return ke("div",t,{state:m,ref:o,props:[a,{children:f}],stateAttributesMapping:YB})});var iR=class extends n0{constructor(){super(pme(),"Tooltip")}open(t){this.openByTrigger(t)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}};function Ame(){return new iR}function Bo(e){return ke(e.defaultTagName??"div",e,e)}var Dme=c(D(),1),_$="data-wp-hash";function v$(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&fZe(document)),e.__wpStyleRuntime}function uZe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${_$}]`))if(o.getAttribute(_$)===t)return!0;return!1}function Vme(e,t,o){if(!e.head)return;let r=v$(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(uZe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(_$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function fZe(e){let t=v$();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Vme(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 Fme(e,t){let o=v$();o.styles.set(e,t);for(let r of o.documents.keys())Vme(r,e,t)}typeof process>"u",Fme("3167e7d116",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._83ed8a8da5dd50ea__text{text-wrap:pretty;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-emphasis,600);--_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-emphasis,600)}._3c78b7fa9b4072dd__heading-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_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-emphasis,600);--_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-emphasis,600);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-emphasis,600);--_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-emphasis,600);--_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-emphasis,600);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-default,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-default,400)}.ca1aa3fc2029e958__body-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,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-default,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-default,400)}._0e8d87a42c1f75fa__body-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,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 Nme={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",Fme("e8e31009f5","._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);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var Lme={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"},Ct=(0,Dme.forwardRef)(function({variant:t="body-md",render:o,className:r,...n},i){return Bo({render:o,defaultTagName:"span",ref:i,props:st(n,{className:U(Nme.text,Lme.heading,Lme.p,Nme[t],r)})})});var Ume=c(T(),1),y$="data-wp-hash";function w$(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&mZe(document)),e.__wpStyleRuntime}function pZe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${y$}]`))if(o.getAttribute(y$)===t)return!0;return!1}function Hme(e,t,o){if(!e.head)return;let r=w$(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(pZe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(y$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function mZe(e){let t=w$();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Hme(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 gZe(e,t){let o=w$();o.styles.set(e,t);for(let r of o.documents.keys())Hme(r,e,t)}typeof process>"u",gZe("40ea4a6382","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer 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-background-surface-error,#fae5e1);color:var(--wpds-color-foreground-content-error,#470000)}.c20ebef2365bc8b7__is-medium-intent{background-color:var(--wpds-color-background-surface-warning,#fde6be);color:var(--wpds-color-foreground-content-warning,#2e1900)}._365e1626c6202e52__is-low-intent{background-color:var(--wpds-color-background-surface-caution,#fee995);color:var(--wpds-color-foreground-content-caution,#281d00)}._33f8198127ddf4ef__is-stable-intent{background-color:var(--wpds-color-background-surface-success,#c2f8ca);color:var(--wpds-color-foreground-content-success,#002900)}._04c1aca8fc449412__is-informational-intent{background-color:var(--wpds-color-background-surface-info,#deebfa);color:var(--wpds-color-foreground-content-info,#001b4f)}._90726e69d495ec19__is-draft-intent{background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}._898f4a544993bd39__is-none-intent{background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);color:var(--wpds-color-foreground-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 zme={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"},cp=(0,jme.forwardRef)(function({intent:t="none",className:o,...r},n){return(0,Ume.jsx)(Ct,{ref:n,className:U(zme.badge,zme[`is-${t}-intent`],o),...r,variant:"body-sm"})});var uo={};ro(uo,{Popup:()=>I7,Portal:()=>T7,Positioner:()=>R7,Provider:()=>fge,Root:()=>B7,Trigger:()=>P7});var ige=c(D(),1);var Yme=c(D(),1);var k$="data-wp-hash";function S$(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&bZe(document)),e.__wpStyleRuntime}function hZe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${k$}]`))if(o.getAttribute(k$)===t)return!0;return!1}function Gme(e,t,o){if(!e.head)return;let r=S$(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(hZe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(k$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function bZe(e){let t=S$();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Gme(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 _Ze(e,t){let o=S$();o.styles.set(e,t);for(let r of o.documents.keys())Gme(r,e,t)}typeof process>"u",_Ze("be37f31c1e","._11fc52b637ff8a7e__slot{inset:0;isolation:isolate;pointer-events:none;position:fixed;z-index:1000000003}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._11fc52b637ff8a7e__slot>*{pointer-events:auto}}}");var Wme={slot:"_11fc52b637ff8a7e__slot"},$me="data-wp-compat-overlay-slot";function vZe(){return typeof document>"u"?null:document}function yZe(){let e;try{e=window.top?.wp}catch{}let t=e??window.wp;return typeof t?.components=="object"&&t.components!==null}var Su=null;function x$(e){return e.setAttribute("aria-hidden","false"),e}function wZe(e){let t=e.createElement("div");return t.setAttribute($me,""),Wme.slot&&t.classList.add(Wme.slot),e.body.appendChild(t),t}function P0(){if(typeof window>"u"||!yZe()&&window.__wpUiCompatOverlaySlotEnabled!==!0)return;let e=vZe();if(!e||!e.body)return;if(Su&&Su.ownerDocument===e&&Su.isConnected)return x$(Su);let t=e.querySelector(`[${$me}]`);return t instanceof HTMLDivElement?(Su=x$(t),Su):(Su?.isConnected&&Su.remove(),Su=x$(wZe(e)),Su)}var Kme=c(T(),1),T7=(0,Yme.forwardRef)(function({container:t,...o},r){return(0,Kme.jsx)(ea.Portal,{container:t??P0(),...o,ref:r})});var qme=c(D(),1),Qme=c(T(),1),C$="data-wp-hash";function E$(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&kZe(document)),e.__wpStyleRuntime}function xZe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${C$}]`))if(o.getAttribute(C$)===t)return!0;return!1}function Xme(e,t,o){if(!e.head)return;let r=E$(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(xZe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(C$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function kZe(e){let t=E$();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Xme(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 Zme(e,t){let o=E$();o.styles.set(e,t);for(let r of o.documents.keys())Xme(r,e,t)}typeof process>"u",Zme("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var SZe={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",Zme("19fcc06039",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._480b748dd3510e64__positioner{z-index:var(--wp-ui-tooltip-z-index,initial)}._50096b232db7709d__popup{--_wp-ui-elevation-sm:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-sm);color:var(--wpds-color-foreground-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 CZe={positioner:"_480b748dd3510e64__positioner",popup:"_50096b232db7709d__popup"},R7=(0,qme.forwardRef)(function({align:t="center",className:o,side:r="top",sideOffset:n=4,...i},s){return(0,Qme.jsx)(ea.Positioner,{ref:s,align:t,side:r,sideOffset:n,...i,className:U(SZe["box-sizing"],CZe.positioner,o)})});var Jme=c(D(),1);function dp(e,t,o){return(0,Jme.cloneElement)(e??t,{children:o})}var EZe=c(tge(),1);var oge=c(S3(),1),{lock:M$t,unlock:rge}=(0,oge.__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");function TZe(){let e=EZe;if(e.ThemeProvider)return e.ThemeProvider;if(!e.privateApis)throw new Error("@wordpress/ui: @wordpress/theme must expose `ThemeProvider` or `privateApis.ThemeProvider`.");return rge(e.privateApis).ThemeProvider}var nge=TZe();var sR=c(T(),1),T$="data-wp-hash";function R$(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&IZe(document)),e.__wpStyleRuntime}function RZe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${T$}]`))if(o.getAttribute(T$)===t)return!0;return!1}function sge(e,t,o){if(!e.head)return;let r=R$(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(RZe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(T$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function IZe(e){let t=R$();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)sge(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 PZe(e,t){let o=R$();o.styles.set(e,t);for(let r of o.documents.keys())sge(r,e,t)}typeof process>"u",PZe("19fcc06039",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._480b748dd3510e64__positioner{z-index:var(--wp-ui-tooltip-z-index,initial)}._50096b232db7709d__popup{--_wp-ui-elevation-sm:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-sm);color:var(--wpds-color-foreground-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 BZe={positioner:"_480b748dd3510e64__positioner",popup:"_50096b232db7709d__popup"},OZe={background:"#1e1e1e"},I7=(0,ige.forwardRef)(function({portal:t,positioner:o,children:r,className:n,...i},s){let a=(0,sR.jsx)(nge,{color:OZe,children:(0,sR.jsx)(ea.Popup,{ref:s,className:U(BZe.popup,n),...i,children:r})}),l=dp(o,(0,sR.jsx)(R7,{}),a);return dp(t,(0,sR.jsx)(T7,{}),l)});var age=c(D(),1),lge=c(T(),1),P7=(0,age.forwardRef)(function(t,o){return(0,lge.jsx)(ea.Trigger,{ref:o,...t})});var cge=c(X(),1),dge=c(T(),1);function Yg({children:e}){return(0,dge.jsx)($B,{direction:(0,cge.isRTL)()?"rtl":"ltr",children:e})}var I$=c(T(),1);function B7(e){return(0,I$.jsx)(Yg,{children:(0,I$.jsx)(ea.Root,{...e})})}var uge=c(T(),1);function fge({...e}){return(0,uge.jsx)(ea.Provider,{...e})}var pge=c(D(),1),mge=c(X(),1),B0=c(T(),1),P$="data-wp-hash";function B$(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&AZe(document)),e.__wpStyleRuntime}function MZe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${P$}]`))if(o.getAttribute(P$)===t)return!0;return!1}function gge(e,t,o){if(!e.head)return;let r=B$(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(MZe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(P$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function AZe(e){let t=B$();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)gge(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 M7(e,t){let o=B$();o.styles.set(e,t);for(let r of o.documents.keys())gge(r,e,t)}typeof process>"u",M7("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var NZe={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",M7("08122b3d53","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.af79fb116edb0dd7__outset-ring--focus:focus,.dfcfdc28396e5d98__outset-ring--focus-visible:focus-visible,.e5cd9ee879f6403a__outset-ring--focus-within:focus-within,:focus-visible ._81935a08e952f267__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within,.abc777e9713fa711__outset-ring--focus-except-active:focus{outline:none}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.abc777e9713fa711__outset-ring--focus-except-active:focus:not(:active){--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");var LZe={"outset-ring--focus":"af79fb116edb0dd7__outset-ring--focus","outset-ring--focus-visible":"dfcfdc28396e5d98__outset-ring--focus-visible","outset-ring--focus-within":"e5cd9ee879f6403a__outset-ring--focus-within","outset-ring--focus-parent-visible":"_81935a08e952f267__outset-ring--focus-parent-visible","outset-ring--focus-except-active":"abc777e9713fa711__outset-ring--focus-except-active","outset-ring--focus-within-except-active":"_3c9f5ee9fc9c136d__outset-ring--focus-within-except-active"};typeof process>"u",M7("e8e6a9be37",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.d4250949359b05ce__link{text-decoration-thickness:from-font;text-underline-offset:.2em}.c6055659b8e2cd2c__is-brand,.c6055659b8e2cd2c__is-brand:visited{--_gcd-a-color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.c6055659b8e2cd2c__is-brand:active,.c6055659b8e2cd2c__is-brand:hover{--_gcd-a-color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000));color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000))}._92e0dfcaeee15b88__is-neutral,._92e0dfcaeee15b88__is-neutral:visited{--_gcd-a-color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);text-decoration-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d)}._92e0dfcaeee15b88__is-neutral:active,._92e0dfcaeee15b88__is-neutral:hover{--_gcd-a-color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.cf122a9bf1035d42__is-unstyled{--_gcd-a-color:inherit;color:inherit;text-decoration:none}._0cb411afac4c86c7__link-icon{display:inline-block;font-weight:var(--wpds-typography-font-weight-default,400);line-height:1;margin-inline-start:var(--wpds-dimension-padding-xs,4px);text-decoration:none}._0cb411afac4c86c7__link-icon:after{content:"\\2197"}._0cb411afac4c86c7__link-icon:dir(rtl):after{content:"\\2196"}}}');var O7={link:"d4250949359b05ce__link","is-brand":"c6055659b8e2cd2c__is-brand","is-neutral":"_92e0dfcaeee15b88__is-neutral","is-unstyled":"cf122a9bf1035d42__is-unstyled","link-icon":"_0cb411afac4c86c7__link-icon"};typeof process>"u",M7("e8e31009f5","._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);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var DZe={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"},O$=(0,pge.forwardRef)(function({children:t,variant:o="default",tone:r="brand",openInNewTab:n=!1,target:i,render:s,className:a,...l},d){let u=n||/^_blank$/i.test(i??"");return Bo({render:s,defaultTagName:"a",ref:d,props:st(l,{className:U(DZe.a,NZe["box-sizing"],LZe["outset-ring--focus-except-active"],o!=="unstyled"&&O7.link,o!=="unstyled"&&O7[`is-${r}`],o==="unstyled"&&O7["is-unstyled"],a),target:i??(n?"_blank":void 0),children:(0,B0.jsxs)(B0.Fragment,{children:[t,u&&(0,B0.jsx)("span",{className:O7["link-icon"],role:"img","aria-label":(0,mge.__)("(opens in a new tab)")})]})})})});var Ho={};ro(Ho,{CheckboxItem:()=>Age,Group:()=>Vge,GroupLabel:()=>Hge,Item:()=>Bge,ItemDescription:()=>z7,ItemLabel:()=>j7,LinkItem:()=>Yge,Popup:()=>ohe,Portal:()=>H7,Positioner:()=>W7,PrefixIcon:()=>iY,RadioGroup:()=>che,RadioItem:()=>fhe,Root:()=>ghe,Separator:()=>vhe,SubmenuRoot:()=>yhe,SubmenuTrigger:()=>She,Trigger:()=>The});var Oge=c(D(),1);var hge=c(D(),1),bge=c(ve(),1),_ge=c(T(),1),fo=(0,hge.forwardRef)(function({icon:t,size:o=24,style:r,...n},i){let s=t.props.style||r?{...t.props.style,...r}:void 0;return(0,_ge.jsx)(bge.SVG,{ref:i,...t.props,...n,...s?{style:s}:{},width:o,height:o})});var O0=c(D(),1),aR=(0,O0.createContext)({isSubmenu:!1}),A7=()=>(0,O0.useContext)(aR),ed=(0,O0.createContext)(null),vge=()=>(0,O0.useContext)(ed);var M0=c(D(),1);var lR=c(D(),1),L7=c(X(),1);var yge=c(D(),1),M$="data-wp-hash";function A$(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&FZe(document)),e.__wpStyleRuntime}function VZe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${M$}]`))if(o.getAttribute(M$)===t)return!0;return!1}function wge(e,t,o){if(!e.head)return;let r=A$(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(VZe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(M$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function FZe(e){let t=A$();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)wge(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 zZe(e,t){let o=A$();o.styles.set(e,t);for(let r of o.documents.keys())wge(r,e,t)}typeof process>"u",zZe("f4df7461e9","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.f37b9e2e191ebd66__visually-hidden{border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;overflow-wrap:normal;padding:0;position:absolute;width:1px;word-break:normal}}}");var jZe={"visually-hidden":"f37b9e2e191ebd66__visually-hidden"},Et=(0,yge.forwardRef)(function({render:t,...o},r){return Bo({render:t,ref:r,props:st({className:jZe["visually-hidden"]},o,{"data-visually-hidden":""})})});var N7=c(T(),1);function D7({"aria-describedby":e,"aria-keyshortcuts":t,shortcut:o}){let r=(0,lR.useId)(),n=o?r:void 0,i=[e,n].filter(Boolean).join(" ");return{descriptionId:n,targetProps:{"aria-describedby":i||void 0,"aria-keyshortcuts":o?.ariaKeyShortcut??t}}}var V7=(0,lR.forwardRef)(function({descriptionId:t,shortcut:o},r){return(0,N7.jsx)(Et,{id:t,"aria-hidden":"true",render:(0,N7.jsx)("span",{ref:r}),children:(0,L7.sprintf)((0,L7.__)("Keyboard shortcut: %s"),o.label??o.ariaKeyShortcut)})}),F7=(0,lR.forwardRef)(function({className:t,shortcut:o},r){return(0,N7.jsx)("span",{ref:r,"aria-hidden":"true",className:t,dir:"ltr",children:o.displayShortcut})});var La=c(D(),1),HZe=!1;function xge(e,{Label:t,Description:o,validationMessage:r}){let n=La.Children.toArray(e),[i,...s]=n,a=(0,La.isValidElement)(i)&&i.type===t,l=s.filter(d=>(0,La.isValidElement)(d)&&d.type===o);if(HZe&&(!a||l.length!==s.length))throw new Error(r);return{descriptionIds:l.map(d=>d.props.id),hasLabel:a,labelId:a?i.props.id:void 0}}function cR(e,t,{"aria-describedby":o,"aria-label":r,"aria-labelledby":n}={}){let i=(0,La.useId)(),s=(0,La.useId)(),{descriptionIds:a,hasLabel:l,labelId:d}=xge(e,t),u=l?d??i:void 0,f=a.map((y,w)=>y??`${s}-${w}`),p=Array.from(new Set([...o?.split(/\s+/).filter(Boolean)??[],...f])).join(" "),m=0,{Label:g,Description:h,descriptionValidationToken:b}=t;return{contentChildren:La.Children.map(e,y=>{if(!(0,La.isValidElement)(y))return y;if(y.type===g)return y.props.id===u?y:(0,La.cloneElement)(y,{id:u});if(y.type!==h)return y;let w=f[m++];return!b&&y.props.id===w?y:(0,La.cloneElement)(y,{id:w,...b&&{validationToken:b}})}),resolvedLabelId:u,itemAriaProps:{"aria-describedby":p||void 0,"aria-label":r,"aria-labelledby":n??(r?void 0:u)}}}var kge=c(D(),1);var Cge=c(T(),1),N$="data-wp-hash";function L$(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&WZe(document)),e.__wpStyleRuntime}function UZe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${N$}]`))if(o.getAttribute(N$)===t)return!0;return!1}function Sge(e,t,o){if(!e.head)return;let r=L$(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(UZe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(N$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function WZe(e){let t=L$();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Sge(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 GZe(e,t){let o=L$();o.styles.set(e,t);for(let r of o.documents.keys())Sge(r,e,t)}typeof process>"u",GZe("3be1f8dffe",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._380b81b8f79fb10f__dropdown-motion,._7f344b94e270e039__dropdown-motion--fade-only{--wp-ui-dropdown-slide-distance:4px;--wp-ui-dropdown-slide-duration:var(--wpds-motion-duration-md,200ms);--wp-ui-dropdown-slide-easing:var(--wpds-motion-easing-expressive,cubic-bezier(0.25,0,0,1));--wp-ui-dropdown-fade-duration:var(--wpds-motion-duration-sm,100ms);--wp-ui-dropdown-fade-easing:linear;@media not (prefers-reduced-motion){transition-duration:var(--wp-ui-dropdown-slide-duration),var(--wp-ui-dropdown-fade-duration);transition-property:transform,opacity;transition-timing-function:var(--wp-ui-dropdown-slide-easing),var(--wp-ui-dropdown-fade-easing);will-change:transform,opacity}opacity:1;&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}}._380b81b8f79fb10f__dropdown-motion{transform:translate(0);&[data-side=bottom][data-ending-style],&[data-side=bottom][data-starting-style]{transform:translateY(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=top][data-ending-style],&[data-side=top][data-starting-style]{transform:translateY(var(--wp-ui-dropdown-slide-distance))}&[data-side=left][data-ending-style],&[data-side=left][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=right][data-ending-style],&[data-side=right][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=inline-start][data-ending-style],&[data-side=inline-start][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=inline-end][data-ending-style],&[data-side=inline-end][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-start][data-ending-style],&:dir(rtl)[data-side=inline-start][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-end][data-ending-style],&:dir(rtl)[data-side=inline-end][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.d61e2d85c0ee0699__positioner{z-index:var(--wp-ui-menu-z-index,initial)}._34e81249f419a5a5__popup{--wp-ui-menu-popup-padding:var(--wpds-dimension-padding-xs,4px);--wp-ui-menu-min-width:160px;--wp-ui-menu-max-width:var(--wpds-dimension-surface-width-md,400px);--wp-ui-menu-item-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-menu-group-head-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-menu-selection-indicator-track-size:0px;--wp-ui-menu-selection-indicator-size:var(--wpds-dimension-size-sm,24px);--wp-ui-menu-selection-indicator-gap:0px;--_wp-ui-menu-elevation-md:0px 2px 3px 0px #0000000d,0px 4px 5px 0px #0000000a,0px 12px 12px 0px #00000008,0px 16px 16px 0px #00000005;background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-menu-elevation-md);max-height:min(var(--available-height),480px,60dvh);max-width:min(var(--available-width),var(--wp-ui-menu-max-width));min-width:min(var(--available-width),var(--wp-ui-menu-min-width));outline:none;overflow-block:auto;overscroll-behavior:none;padding:var(--wp-ui-menu-popup-padding);scroll-padding:var(--wp-ui-menu-popup-padding);&:has(._42313b48c5459be3__item-selection-indicator){--wp-ui-menu-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-menu-selection-indicator-track-size:var(--wpds-dimension-size-2xs,16px);--wp-ui-menu-selection-indicator-gap:var(--wpds-dimension-gap-sm,8px)}}._33f07ab17005471d__list{--_wp-ui-menu-item-label-line-height:var(--wpds-typography-line-height-sm,20px);color:var(--wpds-color-foreground-interactive-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-md,13px);line-height:var(--_wp-ui-menu-item-label-line-height)}._33f07ab17005471d__list,.e05914e1005d7c2e__radio-group,.f11085533c0056b0__group{--wp-ui-menu-group-prefix-gap:0px;display:grid;grid-template-columns:[item-padding-start] var(--wp-ui-menu-item-padding-inline) [selection-start] var(--wp-ui-menu-selection-indicator-track-size) [selection-end] var(--wp-ui-menu-selection-indicator-gap) [prefix-start] max-content [prefix-end] var(--wp-ui-menu-group-prefix-gap) [content-start] minmax(0,1fr) [content-end] var(--wp-ui-menu-item-padding-inline) [item-padding-end];min-width:0}.e05914e1005d7c2e__radio-group,.f11085533c0056b0__group{grid-column:1/-1}._33f07ab17005471d__list:has(>._5c913bce0d8bb0d6__item>._64924ecabf65a5d6__item-prefix),.e05914e1005d7c2e__radio-group:has(>._5c913bce0d8bb0d6__item>._64924ecabf65a5d6__item-prefix),.f11085533c0056b0__group:has(>._5c913bce0d8bb0d6__item>._64924ecabf65a5d6__item-prefix){--wp-ui-menu-group-prefix-gap:var(--wpds-dimension-gap-xs,4px)}._4a0fd085d76fd23c__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;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-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);grid-column:1/-1;line-height:var(--wpds-typography-line-height-xs,16px);min-height:var(--wpds-dimension-size-md,32px);padding-block:var(--wpds-dimension-padding-xs,4px);padding-inline:var(--wp-ui-menu-group-head-padding-inline);text-transform:uppercase}.bfc11368eadf3b39__separator{background-color:var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);grid-column:1/-1;height:var(--wpds-border-width-xs,1px);margin-block:var(--wpds-dimension-gap-xs,4px);margin-inline:var(--wp-ui-menu-group-head-padding-inline);@media (forced-colors:active){background-color:CanvasText}}._5c913bce0d8bb0d6__item{--wp-ui-menu-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-menu-item-padding-block:var(--wpds-dimension-padding-xs,4px);--_gcd-a-border-radius:var(--wpds-border-radius-sm,2px);align-content:center;align-items:start;border-radius:var(--wpds-border-radius-sm,2px);display:grid;gap:0;grid-column:1/-1;grid-template-columns:[item-padding-start] var(--wp-ui-menu-item-padding-inline) [selection-start] var(--wp-ui-menu-selection-indicator-track-size) [selection-end] var(--wp-ui-menu-selection-indicator-gap) [prefix-start] max-content [prefix-end] var(--wp-ui-menu-group-prefix-gap) [content-start] minmax(0,1fr) [content-end] var(--wp-ui-menu-item-padding-inline) [item-padding-end];justify-content:stretch;min-height:var(--wp-ui-menu-item-height);min-width:0;padding-block:var(--wp-ui-menu-item-padding-block);scroll-margin:var(--wp-ui-menu-popup-padding);text-decoration:none;user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&[href]{cursor:pointer}@supports (grid-template-columns:subgrid){grid-template-columns:subgrid}&[data-highlighted]:not([aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:none;@media (forced-colors:active){--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid Highlight;--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid Highlight}}&[aria-disabled=true]{background-color:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}}._42313b48c5459be3__item-selection-indicator,._64924ecabf65a5d6__item-prefix,.af879698ede76757__item-content{grid-row:1}._42313b48c5459be3__item-selection-indicator{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;grid-column:selection-start/selection-end;height:var(--_wp-ui-menu-item-label-line-height);justify-content:center;justify-self:center;pointer-events:none;width:var(--wp-ui-menu-selection-indicator-size);&[data-unchecked]{opacity:0}}._99c5bd141cbf516f__checkbox-selection-icon{translate:0 1px}._59aa9b3b3a651148__radio-selection-icon{fill:currentColor;height:var(--wpds-dimension-size-xs,20px);width:var(--wpds-dimension-size-xs,20px)}._64924ecabf65a5d6__item-prefix{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;gap:var(--wpds-dimension-gap-xs,4px);grid-column:prefix-start/prefix-end;justify-content:center;min-width:0}.a836378335a4cbf1__prefix-icon{align-self:flex-start;flex-shrink:0;margin-block-start:calc((var(--_wp-ui-menu-item-label-line-height) - var(--_wp-ui-menu-prefix-icon-size))/2)}.af879698ede76757__item-content{align-items:center;align-self:stretch;box-sizing:border-box;display:grid;grid-column:content-start/content-end;grid-template-columns:[label-start] minmax(0,1fr) [label-end suffix-start] auto [suffix-end shortcut-start] auto [shortcut-end trailing-start] auto [trailing-end];min-width:0;pointer-events:none}._943a932d9f81c78c__item-children{display:inline-flex;flex-direction:column;gap:2px;grid-column:label-start/label-end;min-width:0}._5ed41da4abcf8958__item-label{--_gcd-heading-color:currentColor;--_gcd-p-line-height:var(--_wp-ui-menu-item-label-line-height);color:inherit;line-height:var(--_wp-ui-menu-item-label-line-height);min-width:0;overflow-wrap:anywhere}.fa88c9f1a96a4c5a__item-description{--_gcd-heading-color:var(--wpds-color-foreground-content-neutral-weak,#707070);color:var(--wpds-color-foreground-content-neutral-weak,#707070);overflow-wrap:anywhere;padding-block-end:var(--wpds-dimension-padding-xs,4px)}._091406749ed93e6e__item-suffix{align-items:center;display:flex;gap:var(--wpds-dimension-gap-xs,4px);grid-column:suffix-start/suffix-end}._091406749ed93e6e__item-suffix,._23630f40071a29ff__item-shortcut{color:var(--wpds-color-foreground-content-neutral-weak,#707070);margin-inline-start:var(--wpds-dimension-gap-md,12px)}._23630f40071a29ff__item-shortcut{grid-column:shortcut-start/shortcut-end}._06be17a91bf434a0__item-trailing{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;grid-column:trailing-start/trailing-end;margin-inline-start:var(--wpds-dimension-gap-md,12px)}._943a932d9f81c78c__item-children+:is(._091406749ed93e6e__item-suffix,._23630f40071a29ff__item-shortcut,._06be17a91bf434a0__item-trailing){margin-inline-start:var(--wpds-dimension-gap-xl,24px)}._23630f40071a29ff__item-shortcut+._06be17a91bf434a0__item-trailing{margin-inline-start:var(--wpds-dimension-gap-xs,4px)}.b78aec79bf93eba0__submenu-chevron{margin-inline-end:calc(var(--wpds-dimension-gap-sm, 8px)*-1)}.b78aec79bf93eba0__submenu-chevron:dir(rtl){transform:rotate(180deg)}._60da3b6f9718cf76__external-link-indicator{display:inline-block;font-weight:var(--wpds-typography-font-weight-default,400);line-height:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px);text-decoration:none}._60da3b6f9718cf76__external-link-indicator:after{content:"\\2197"}._60da3b6f9718cf76__external-link-indicator:dir(rtl):after{content:"\\2196"}._5c913bce0d8bb0d6__item[aria-disabled=true] ._06be17a91bf434a0__item-trailing,._5c913bce0d8bb0d6__item[aria-disabled=true] ._091406749ed93e6e__item-suffix,._5c913bce0d8bb0d6__item[aria-disabled=true] ._23630f40071a29ff__item-shortcut,._5c913bce0d8bb0d6__item[aria-disabled=true] ._42313b48c5459be3__item-selection-indicator,._5c913bce0d8bb0d6__item[aria-disabled=true] ._64924ecabf65a5d6__item-prefix,._5c913bce0d8bb0d6__item[aria-disabled=true] .fa88c9f1a96a4c5a__item-description,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._06be17a91bf434a0__item-trailing,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._091406749ed93e6e__item-suffix,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._23630f40071a29ff__item-shortcut,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._42313b48c5459be3__item-selection-indicator,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._64924ecabf65a5d6__item-prefix,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) .fa88c9f1a96a4c5a__item-description{--_gcd-heading-color:currentColor;color:inherit}}}');var $Ze={positioner:"d61e2d85c0ee0699__positioner",popup:"_34e81249f419a5a5__popup","item-selection-indicator":"_42313b48c5459be3__item-selection-indicator","is-root":"_087a537b24fee6a1__is-root _380b81b8f79fb10f__dropdown-motion","is-submenu":"_6d3b567f6289bdc2__is-submenu _7f344b94e270e039__dropdown-motion--fade-only",list:"_33f07ab17005471d__list",group:"f11085533c0056b0__group","radio-group":"e05914e1005d7c2e__radio-group",item:"_5c913bce0d8bb0d6__item","item-prefix":"_64924ecabf65a5d6__item-prefix","group-label":"_4a0fd085d76fd23c__group-label",separator:"bfc11368eadf3b39__separator","item-content":"af879698ede76757__item-content","checkbox-selection-icon":"_99c5bd141cbf516f__checkbox-selection-icon","radio-selection-icon":"_59aa9b3b3a651148__radio-selection-icon","prefix-icon":"a836378335a4cbf1__prefix-icon","item-children":"_943a932d9f81c78c__item-children","item-label":"_5ed41da4abcf8958__item-label","item-description":"fa88c9f1a96a4c5a__item-description","item-suffix":"_091406749ed93e6e__item-suffix","item-shortcut":"_23630f40071a29ff__item-shortcut","item-trailing":"_06be17a91bf434a0__item-trailing","submenu-chevron":"b78aec79bf93eba0__submenu-chevron","external-link-indicator":"_60da3b6f9718cf76__external-link-indicator"},Ege=Symbol(),z7=(0,kge.forwardRef)(function(t,o){let{className:r,id:n,validationToken:i,...s}=t;return(0,Cge.jsx)(Ct,{ref:o,variant:"body-sm",...s,id:n,className:U($Ze["item-description"],r)})});var Tge=c(D(),1);var Ige=c(T(),1),D$="data-wp-hash";function V$(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&KZe(document)),e.__wpStyleRuntime}function YZe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${D$}]`))if(o.getAttribute(D$)===t)return!0;return!1}function Rge(e,t,o){if(!e.head)return;let r=V$(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(YZe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(D$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function KZe(e){let t=V$();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Rge(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 qZe(e,t){let o=V$();o.styles.set(e,t);for(let r of o.documents.keys())Rge(r,e,t)}typeof process>"u",qZe("3be1f8dffe",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._380b81b8f79fb10f__dropdown-motion,._7f344b94e270e039__dropdown-motion--fade-only{--wp-ui-dropdown-slide-distance:4px;--wp-ui-dropdown-slide-duration:var(--wpds-motion-duration-md,200ms);--wp-ui-dropdown-slide-easing:var(--wpds-motion-easing-expressive,cubic-bezier(0.25,0,0,1));--wp-ui-dropdown-fade-duration:var(--wpds-motion-duration-sm,100ms);--wp-ui-dropdown-fade-easing:linear;@media not (prefers-reduced-motion){transition-duration:var(--wp-ui-dropdown-slide-duration),var(--wp-ui-dropdown-fade-duration);transition-property:transform,opacity;transition-timing-function:var(--wp-ui-dropdown-slide-easing),var(--wp-ui-dropdown-fade-easing);will-change:transform,opacity}opacity:1;&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}}._380b81b8f79fb10f__dropdown-motion{transform:translate(0);&[data-side=bottom][data-ending-style],&[data-side=bottom][data-starting-style]{transform:translateY(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=top][data-ending-style],&[data-side=top][data-starting-style]{transform:translateY(var(--wp-ui-dropdown-slide-distance))}&[data-side=left][data-ending-style],&[data-side=left][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=right][data-ending-style],&[data-side=right][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=inline-start][data-ending-style],&[data-side=inline-start][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=inline-end][data-ending-style],&[data-side=inline-end][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-start][data-ending-style],&:dir(rtl)[data-side=inline-start][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-end][data-ending-style],&:dir(rtl)[data-side=inline-end][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.d61e2d85c0ee0699__positioner{z-index:var(--wp-ui-menu-z-index,initial)}._34e81249f419a5a5__popup{--wp-ui-menu-popup-padding:var(--wpds-dimension-padding-xs,4px);--wp-ui-menu-min-width:160px;--wp-ui-menu-max-width:var(--wpds-dimension-surface-width-md,400px);--wp-ui-menu-item-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-menu-group-head-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-menu-selection-indicator-track-size:0px;--wp-ui-menu-selection-indicator-size:var(--wpds-dimension-size-sm,24px);--wp-ui-menu-selection-indicator-gap:0px;--_wp-ui-menu-elevation-md:0px 2px 3px 0px #0000000d,0px 4px 5px 0px #0000000a,0px 12px 12px 0px #00000008,0px 16px 16px 0px #00000005;background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-menu-elevation-md);max-height:min(var(--available-height),480px,60dvh);max-width:min(var(--available-width),var(--wp-ui-menu-max-width));min-width:min(var(--available-width),var(--wp-ui-menu-min-width));outline:none;overflow-block:auto;overscroll-behavior:none;padding:var(--wp-ui-menu-popup-padding);scroll-padding:var(--wp-ui-menu-popup-padding);&:has(._42313b48c5459be3__item-selection-indicator){--wp-ui-menu-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-menu-selection-indicator-track-size:var(--wpds-dimension-size-2xs,16px);--wp-ui-menu-selection-indicator-gap:var(--wpds-dimension-gap-sm,8px)}}._33f07ab17005471d__list{--_wp-ui-menu-item-label-line-height:var(--wpds-typography-line-height-sm,20px);color:var(--wpds-color-foreground-interactive-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-md,13px);line-height:var(--_wp-ui-menu-item-label-line-height)}._33f07ab17005471d__list,.e05914e1005d7c2e__radio-group,.f11085533c0056b0__group{--wp-ui-menu-group-prefix-gap:0px;display:grid;grid-template-columns:[item-padding-start] var(--wp-ui-menu-item-padding-inline) [selection-start] var(--wp-ui-menu-selection-indicator-track-size) [selection-end] var(--wp-ui-menu-selection-indicator-gap) [prefix-start] max-content [prefix-end] var(--wp-ui-menu-group-prefix-gap) [content-start] minmax(0,1fr) [content-end] var(--wp-ui-menu-item-padding-inline) [item-padding-end];min-width:0}.e05914e1005d7c2e__radio-group,.f11085533c0056b0__group{grid-column:1/-1}._33f07ab17005471d__list:has(>._5c913bce0d8bb0d6__item>._64924ecabf65a5d6__item-prefix),.e05914e1005d7c2e__radio-group:has(>._5c913bce0d8bb0d6__item>._64924ecabf65a5d6__item-prefix),.f11085533c0056b0__group:has(>._5c913bce0d8bb0d6__item>._64924ecabf65a5d6__item-prefix){--wp-ui-menu-group-prefix-gap:var(--wpds-dimension-gap-xs,4px)}._4a0fd085d76fd23c__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;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-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);grid-column:1/-1;line-height:var(--wpds-typography-line-height-xs,16px);min-height:var(--wpds-dimension-size-md,32px);padding-block:var(--wpds-dimension-padding-xs,4px);padding-inline:var(--wp-ui-menu-group-head-padding-inline);text-transform:uppercase}.bfc11368eadf3b39__separator{background-color:var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);grid-column:1/-1;height:var(--wpds-border-width-xs,1px);margin-block:var(--wpds-dimension-gap-xs,4px);margin-inline:var(--wp-ui-menu-group-head-padding-inline);@media (forced-colors:active){background-color:CanvasText}}._5c913bce0d8bb0d6__item{--wp-ui-menu-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-menu-item-padding-block:var(--wpds-dimension-padding-xs,4px);--_gcd-a-border-radius:var(--wpds-border-radius-sm,2px);align-content:center;align-items:start;border-radius:var(--wpds-border-radius-sm,2px);display:grid;gap:0;grid-column:1/-1;grid-template-columns:[item-padding-start] var(--wp-ui-menu-item-padding-inline) [selection-start] var(--wp-ui-menu-selection-indicator-track-size) [selection-end] var(--wp-ui-menu-selection-indicator-gap) [prefix-start] max-content [prefix-end] var(--wp-ui-menu-group-prefix-gap) [content-start] minmax(0,1fr) [content-end] var(--wp-ui-menu-item-padding-inline) [item-padding-end];justify-content:stretch;min-height:var(--wp-ui-menu-item-height);min-width:0;padding-block:var(--wp-ui-menu-item-padding-block);scroll-margin:var(--wp-ui-menu-popup-padding);text-decoration:none;user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&[href]{cursor:pointer}@supports (grid-template-columns:subgrid){grid-template-columns:subgrid}&[data-highlighted]:not([aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:none;@media (forced-colors:active){--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid Highlight;--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid Highlight}}&[aria-disabled=true]{background-color:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}}._42313b48c5459be3__item-selection-indicator,._64924ecabf65a5d6__item-prefix,.af879698ede76757__item-content{grid-row:1}._42313b48c5459be3__item-selection-indicator{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;grid-column:selection-start/selection-end;height:var(--_wp-ui-menu-item-label-line-height);justify-content:center;justify-self:center;pointer-events:none;width:var(--wp-ui-menu-selection-indicator-size);&[data-unchecked]{opacity:0}}._99c5bd141cbf516f__checkbox-selection-icon{translate:0 1px}._59aa9b3b3a651148__radio-selection-icon{fill:currentColor;height:var(--wpds-dimension-size-xs,20px);width:var(--wpds-dimension-size-xs,20px)}._64924ecabf65a5d6__item-prefix{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;gap:var(--wpds-dimension-gap-xs,4px);grid-column:prefix-start/prefix-end;justify-content:center;min-width:0}.a836378335a4cbf1__prefix-icon{align-self:flex-start;flex-shrink:0;margin-block-start:calc((var(--_wp-ui-menu-item-label-line-height) - var(--_wp-ui-menu-prefix-icon-size))/2)}.af879698ede76757__item-content{align-items:center;align-self:stretch;box-sizing:border-box;display:grid;grid-column:content-start/content-end;grid-template-columns:[label-start] minmax(0,1fr) [label-end suffix-start] auto [suffix-end shortcut-start] auto [shortcut-end trailing-start] auto [trailing-end];min-width:0;pointer-events:none}._943a932d9f81c78c__item-children{display:inline-flex;flex-direction:column;gap:2px;grid-column:label-start/label-end;min-width:0}._5ed41da4abcf8958__item-label{--_gcd-heading-color:currentColor;--_gcd-p-line-height:var(--_wp-ui-menu-item-label-line-height);color:inherit;line-height:var(--_wp-ui-menu-item-label-line-height);min-width:0;overflow-wrap:anywhere}.fa88c9f1a96a4c5a__item-description{--_gcd-heading-color:var(--wpds-color-foreground-content-neutral-weak,#707070);color:var(--wpds-color-foreground-content-neutral-weak,#707070);overflow-wrap:anywhere;padding-block-end:var(--wpds-dimension-padding-xs,4px)}._091406749ed93e6e__item-suffix{align-items:center;display:flex;gap:var(--wpds-dimension-gap-xs,4px);grid-column:suffix-start/suffix-end}._091406749ed93e6e__item-suffix,._23630f40071a29ff__item-shortcut{color:var(--wpds-color-foreground-content-neutral-weak,#707070);margin-inline-start:var(--wpds-dimension-gap-md,12px)}._23630f40071a29ff__item-shortcut{grid-column:shortcut-start/shortcut-end}._06be17a91bf434a0__item-trailing{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;grid-column:trailing-start/trailing-end;margin-inline-start:var(--wpds-dimension-gap-md,12px)}._943a932d9f81c78c__item-children+:is(._091406749ed93e6e__item-suffix,._23630f40071a29ff__item-shortcut,._06be17a91bf434a0__item-trailing){margin-inline-start:var(--wpds-dimension-gap-xl,24px)}._23630f40071a29ff__item-shortcut+._06be17a91bf434a0__item-trailing{margin-inline-start:var(--wpds-dimension-gap-xs,4px)}.b78aec79bf93eba0__submenu-chevron{margin-inline-end:calc(var(--wpds-dimension-gap-sm, 8px)*-1)}.b78aec79bf93eba0__submenu-chevron:dir(rtl){transform:rotate(180deg)}._60da3b6f9718cf76__external-link-indicator{display:inline-block;font-weight:var(--wpds-typography-font-weight-default,400);line-height:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px);text-decoration:none}._60da3b6f9718cf76__external-link-indicator:after{content:"\\2197"}._60da3b6f9718cf76__external-link-indicator:dir(rtl):after{content:"\\2196"}._5c913bce0d8bb0d6__item[aria-disabled=true] ._06be17a91bf434a0__item-trailing,._5c913bce0d8bb0d6__item[aria-disabled=true] ._091406749ed93e6e__item-suffix,._5c913bce0d8bb0d6__item[aria-disabled=true] ._23630f40071a29ff__item-shortcut,._5c913bce0d8bb0d6__item[aria-disabled=true] ._42313b48c5459be3__item-selection-indicator,._5c913bce0d8bb0d6__item[aria-disabled=true] ._64924ecabf65a5d6__item-prefix,._5c913bce0d8bb0d6__item[aria-disabled=true] .fa88c9f1a96a4c5a__item-description,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._06be17a91bf434a0__item-trailing,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._091406749ed93e6e__item-suffix,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._23630f40071a29ff__item-shortcut,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._42313b48c5459be3__item-selection-indicator,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._64924ecabf65a5d6__item-prefix,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) .fa88c9f1a96a4c5a__item-description{--_gcd-heading-color:currentColor;color:inherit}}}');var XZe={positioner:"d61e2d85c0ee0699__positioner",popup:"_34e81249f419a5a5__popup","item-selection-indicator":"_42313b48c5459be3__item-selection-indicator","is-root":"_087a537b24fee6a1__is-root _380b81b8f79fb10f__dropdown-motion","is-submenu":"_6d3b567f6289bdc2__is-submenu _7f344b94e270e039__dropdown-motion--fade-only",list:"_33f07ab17005471d__list",group:"f11085533c0056b0__group","radio-group":"e05914e1005d7c2e__radio-group",item:"_5c913bce0d8bb0d6__item","item-prefix":"_64924ecabf65a5d6__item-prefix","group-label":"_4a0fd085d76fd23c__group-label",separator:"bfc11368eadf3b39__separator","item-content":"af879698ede76757__item-content","checkbox-selection-icon":"_99c5bd141cbf516f__checkbox-selection-icon","radio-selection-icon":"_59aa9b3b3a651148__radio-selection-icon","prefix-icon":"a836378335a4cbf1__prefix-icon","item-children":"_943a932d9f81c78c__item-children","item-label":"_5ed41da4abcf8958__item-label","item-description":"fa88c9f1a96a4c5a__item-description","item-suffix":"_091406749ed93e6e__item-suffix","item-shortcut":"_23630f40071a29ff__item-shortcut","item-trailing":"_06be17a91bf434a0__item-trailing","submenu-chevron":"b78aec79bf93eba0__submenu-chevron","external-link-indicator":"_60da3b6f9718cf76__external-link-indicator"},j7=(0,Tge.forwardRef)(function({children:t,className:o,id:r,...n},i){let s=vge();return(0,Ige.jsxs)(Ct,{ref:i,variant:"body-md",...n,id:r??s?.labelId,className:U(XZe["item-label"],o),children:[t,s?.labelTrailing]})});var $i=c(T(),1),F$="data-wp-hash";function z$(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&QZe(document)),e.__wpStyleRuntime}function ZZe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${F$}]`))if(o.getAttribute(F$)===t)return!0;return!1}function Pge(e,t,o){if(!e.head)return;let r=z$(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(ZZe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(F$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function QZe(e){let t=z$();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Pge(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 j$(e,t){let o=z$();o.styles.set(e,t);for(let r of o.documents.keys())Pge(r,e,t)}typeof process>"u",j$("e8e31009f5","._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);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var JZe={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"};typeof process>"u",j$("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var eQe={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",j$("3be1f8dffe",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._380b81b8f79fb10f__dropdown-motion,._7f344b94e270e039__dropdown-motion--fade-only{--wp-ui-dropdown-slide-distance:4px;--wp-ui-dropdown-slide-duration:var(--wpds-motion-duration-md,200ms);--wp-ui-dropdown-slide-easing:var(--wpds-motion-easing-expressive,cubic-bezier(0.25,0,0,1));--wp-ui-dropdown-fade-duration:var(--wpds-motion-duration-sm,100ms);--wp-ui-dropdown-fade-easing:linear;@media not (prefers-reduced-motion){transition-duration:var(--wp-ui-dropdown-slide-duration),var(--wp-ui-dropdown-fade-duration);transition-property:transform,opacity;transition-timing-function:var(--wp-ui-dropdown-slide-easing),var(--wp-ui-dropdown-fade-easing);will-change:transform,opacity}opacity:1;&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}}._380b81b8f79fb10f__dropdown-motion{transform:translate(0);&[data-side=bottom][data-ending-style],&[data-side=bottom][data-starting-style]{transform:translateY(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=top][data-ending-style],&[data-side=top][data-starting-style]{transform:translateY(var(--wp-ui-dropdown-slide-distance))}&[data-side=left][data-ending-style],&[data-side=left][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=right][data-ending-style],&[data-side=right][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=inline-start][data-ending-style],&[data-side=inline-start][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=inline-end][data-ending-style],&[data-side=inline-end][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-start][data-ending-style],&:dir(rtl)[data-side=inline-start][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-end][data-ending-style],&:dir(rtl)[data-side=inline-end][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.d61e2d85c0ee0699__positioner{z-index:var(--wp-ui-menu-z-index,initial)}._34e81249f419a5a5__popup{--wp-ui-menu-popup-padding:var(--wpds-dimension-padding-xs,4px);--wp-ui-menu-min-width:160px;--wp-ui-menu-max-width:var(--wpds-dimension-surface-width-md,400px);--wp-ui-menu-item-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-menu-group-head-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-menu-selection-indicator-track-size:0px;--wp-ui-menu-selection-indicator-size:var(--wpds-dimension-size-sm,24px);--wp-ui-menu-selection-indicator-gap:0px;--_wp-ui-menu-elevation-md:0px 2px 3px 0px #0000000d,0px 4px 5px 0px #0000000a,0px 12px 12px 0px #00000008,0px 16px 16px 0px #00000005;background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-menu-elevation-md);max-height:min(var(--available-height),480px,60dvh);max-width:min(var(--available-width),var(--wp-ui-menu-max-width));min-width:min(var(--available-width),var(--wp-ui-menu-min-width));outline:none;overflow-block:auto;overscroll-behavior:none;padding:var(--wp-ui-menu-popup-padding);scroll-padding:var(--wp-ui-menu-popup-padding);&:has(._42313b48c5459be3__item-selection-indicator){--wp-ui-menu-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-menu-selection-indicator-track-size:var(--wpds-dimension-size-2xs,16px);--wp-ui-menu-selection-indicator-gap:var(--wpds-dimension-gap-sm,8px)}}._33f07ab17005471d__list{--_wp-ui-menu-item-label-line-height:var(--wpds-typography-line-height-sm,20px);color:var(--wpds-color-foreground-interactive-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-md,13px);line-height:var(--_wp-ui-menu-item-label-line-height)}._33f07ab17005471d__list,.e05914e1005d7c2e__radio-group,.f11085533c0056b0__group{--wp-ui-menu-group-prefix-gap:0px;display:grid;grid-template-columns:[item-padding-start] var(--wp-ui-menu-item-padding-inline) [selection-start] var(--wp-ui-menu-selection-indicator-track-size) [selection-end] var(--wp-ui-menu-selection-indicator-gap) [prefix-start] max-content [prefix-end] var(--wp-ui-menu-group-prefix-gap) [content-start] minmax(0,1fr) [content-end] var(--wp-ui-menu-item-padding-inline) [item-padding-end];min-width:0}.e05914e1005d7c2e__radio-group,.f11085533c0056b0__group{grid-column:1/-1}._33f07ab17005471d__list:has(>._5c913bce0d8bb0d6__item>._64924ecabf65a5d6__item-prefix),.e05914e1005d7c2e__radio-group:has(>._5c913bce0d8bb0d6__item>._64924ecabf65a5d6__item-prefix),.f11085533c0056b0__group:has(>._5c913bce0d8bb0d6__item>._64924ecabf65a5d6__item-prefix){--wp-ui-menu-group-prefix-gap:var(--wpds-dimension-gap-xs,4px)}._4a0fd085d76fd23c__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;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-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);grid-column:1/-1;line-height:var(--wpds-typography-line-height-xs,16px);min-height:var(--wpds-dimension-size-md,32px);padding-block:var(--wpds-dimension-padding-xs,4px);padding-inline:var(--wp-ui-menu-group-head-padding-inline);text-transform:uppercase}.bfc11368eadf3b39__separator{background-color:var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);grid-column:1/-1;height:var(--wpds-border-width-xs,1px);margin-block:var(--wpds-dimension-gap-xs,4px);margin-inline:var(--wp-ui-menu-group-head-padding-inline);@media (forced-colors:active){background-color:CanvasText}}._5c913bce0d8bb0d6__item{--wp-ui-menu-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-menu-item-padding-block:var(--wpds-dimension-padding-xs,4px);--_gcd-a-border-radius:var(--wpds-border-radius-sm,2px);align-content:center;align-items:start;border-radius:var(--wpds-border-radius-sm,2px);display:grid;gap:0;grid-column:1/-1;grid-template-columns:[item-padding-start] var(--wp-ui-menu-item-padding-inline) [selection-start] var(--wp-ui-menu-selection-indicator-track-size) [selection-end] var(--wp-ui-menu-selection-indicator-gap) [prefix-start] max-content [prefix-end] var(--wp-ui-menu-group-prefix-gap) [content-start] minmax(0,1fr) [content-end] var(--wp-ui-menu-item-padding-inline) [item-padding-end];justify-content:stretch;min-height:var(--wp-ui-menu-item-height);min-width:0;padding-block:var(--wp-ui-menu-item-padding-block);scroll-margin:var(--wp-ui-menu-popup-padding);text-decoration:none;user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&[href]{cursor:pointer}@supports (grid-template-columns:subgrid){grid-template-columns:subgrid}&[data-highlighted]:not([aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:none;@media (forced-colors:active){--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid Highlight;--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid Highlight}}&[aria-disabled=true]{background-color:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}}._42313b48c5459be3__item-selection-indicator,._64924ecabf65a5d6__item-prefix,.af879698ede76757__item-content{grid-row:1}._42313b48c5459be3__item-selection-indicator{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;grid-column:selection-start/selection-end;height:var(--_wp-ui-menu-item-label-line-height);justify-content:center;justify-self:center;pointer-events:none;width:var(--wp-ui-menu-selection-indicator-size);&[data-unchecked]{opacity:0}}._99c5bd141cbf516f__checkbox-selection-icon{translate:0 1px}._59aa9b3b3a651148__radio-selection-icon{fill:currentColor;height:var(--wpds-dimension-size-xs,20px);width:var(--wpds-dimension-size-xs,20px)}._64924ecabf65a5d6__item-prefix{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;gap:var(--wpds-dimension-gap-xs,4px);grid-column:prefix-start/prefix-end;justify-content:center;min-width:0}.a836378335a4cbf1__prefix-icon{align-self:flex-start;flex-shrink:0;margin-block-start:calc((var(--_wp-ui-menu-item-label-line-height) - var(--_wp-ui-menu-prefix-icon-size))/2)}.af879698ede76757__item-content{align-items:center;align-self:stretch;box-sizing:border-box;display:grid;grid-column:content-start/content-end;grid-template-columns:[label-start] minmax(0,1fr) [label-end suffix-start] auto [suffix-end shortcut-start] auto [shortcut-end trailing-start] auto [trailing-end];min-width:0;pointer-events:none}._943a932d9f81c78c__item-children{display:inline-flex;flex-direction:column;gap:2px;grid-column:label-start/label-end;min-width:0}._5ed41da4abcf8958__item-label{--_gcd-heading-color:currentColor;--_gcd-p-line-height:var(--_wp-ui-menu-item-label-line-height);color:inherit;line-height:var(--_wp-ui-menu-item-label-line-height);min-width:0;overflow-wrap:anywhere}.fa88c9f1a96a4c5a__item-description{--_gcd-heading-color:var(--wpds-color-foreground-content-neutral-weak,#707070);color:var(--wpds-color-foreground-content-neutral-weak,#707070);overflow-wrap:anywhere;padding-block-end:var(--wpds-dimension-padding-xs,4px)}._091406749ed93e6e__item-suffix{align-items:center;display:flex;gap:var(--wpds-dimension-gap-xs,4px);grid-column:suffix-start/suffix-end}._091406749ed93e6e__item-suffix,._23630f40071a29ff__item-shortcut{color:var(--wpds-color-foreground-content-neutral-weak,#707070);margin-inline-start:var(--wpds-dimension-gap-md,12px)}._23630f40071a29ff__item-shortcut{grid-column:shortcut-start/shortcut-end}._06be17a91bf434a0__item-trailing{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;grid-column:trailing-start/trailing-end;margin-inline-start:var(--wpds-dimension-gap-md,12px)}._943a932d9f81c78c__item-children+:is(._091406749ed93e6e__item-suffix,._23630f40071a29ff__item-shortcut,._06be17a91bf434a0__item-trailing){margin-inline-start:var(--wpds-dimension-gap-xl,24px)}._23630f40071a29ff__item-shortcut+._06be17a91bf434a0__item-trailing{margin-inline-start:var(--wpds-dimension-gap-xs,4px)}.b78aec79bf93eba0__submenu-chevron{margin-inline-end:calc(var(--wpds-dimension-gap-sm, 8px)*-1)}.b78aec79bf93eba0__submenu-chevron:dir(rtl){transform:rotate(180deg)}._60da3b6f9718cf76__external-link-indicator{display:inline-block;font-weight:var(--wpds-typography-font-weight-default,400);line-height:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px);text-decoration:none}._60da3b6f9718cf76__external-link-indicator:after{content:"\\2197"}._60da3b6f9718cf76__external-link-indicator:dir(rtl):after{content:"\\2196"}._5c913bce0d8bb0d6__item[aria-disabled=true] ._06be17a91bf434a0__item-trailing,._5c913bce0d8bb0d6__item[aria-disabled=true] ._091406749ed93e6e__item-suffix,._5c913bce0d8bb0d6__item[aria-disabled=true] ._23630f40071a29ff__item-shortcut,._5c913bce0d8bb0d6__item[aria-disabled=true] ._42313b48c5459be3__item-selection-indicator,._5c913bce0d8bb0d6__item[aria-disabled=true] ._64924ecabf65a5d6__item-prefix,._5c913bce0d8bb0d6__item[aria-disabled=true] .fa88c9f1a96a4c5a__item-description,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._06be17a91bf434a0__item-trailing,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._091406749ed93e6e__item-suffix,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._23630f40071a29ff__item-shortcut,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._42313b48c5459be3__item-selection-indicator,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._64924ecabf65a5d6__item-prefix,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) .fa88c9f1a96a4c5a__item-description{--_gcd-heading-color:currentColor;color:inherit}}}');var j_={positioner:"d61e2d85c0ee0699__positioner",popup:"_34e81249f419a5a5__popup","item-selection-indicator":"_42313b48c5459be3__item-selection-indicator","is-root":"_087a537b24fee6a1__is-root _380b81b8f79fb10f__dropdown-motion","is-submenu":"_6d3b567f6289bdc2__is-submenu _7f344b94e270e039__dropdown-motion--fade-only",list:"_33f07ab17005471d__list",group:"f11085533c0056b0__group","radio-group":"e05914e1005d7c2e__radio-group",item:"_5c913bce0d8bb0d6__item","item-prefix":"_64924ecabf65a5d6__item-prefix","group-label":"_4a0fd085d76fd23c__group-label",separator:"bfc11368eadf3b39__separator","item-content":"af879698ede76757__item-content","checkbox-selection-icon":"_99c5bd141cbf516f__checkbox-selection-icon","radio-selection-icon":"_59aa9b3b3a651148__radio-selection-icon","prefix-icon":"a836378335a4cbf1__prefix-icon","item-children":"_943a932d9f81c78c__item-children","item-label":"_5ed41da4abcf8958__item-label","item-description":"fa88c9f1a96a4c5a__item-description","item-suffix":"_091406749ed93e6e__item-suffix","item-shortcut":"_23630f40071a29ff__item-shortcut","item-trailing":"_06be17a91bf434a0__item-trailing","submenu-chevron":"b78aec79bf93eba0__submenu-chevron","external-link-indicator":"_60da3b6f9718cf76__external-link-indicator"},tQe={Label:j7,Description:z7,validationMessage:"Menu.ItemLabel must be the first direct child of every menu item, followed only by Menu.ItemDescription components.",descriptionValidationToken:Ege};function up(e,{"aria-describedby":t,"aria-keyshortcuts":o,"aria-label":r,"aria-labelledby":n,labelTrailing:i,shortcut:s}){let{contentChildren:a,resolvedLabelId:l,itemAriaProps:d}=cR(e,tQe,{"aria-describedby":t,"aria-label":r,"aria-labelledby":n}),{descriptionId:u,targetProps:f}=D7({"aria-describedby":d["aria-describedby"],"aria-keyshortcuts":o,shortcut:s});return{contentChildren:a,contentContextValue:{labelId:l,labelTrailing:i},itemAriaProps:{...f,"aria-label":d["aria-label"],"aria-labelledby":d["aria-labelledby"]},shortcutDescriptionId:u}}function fp({children:e,prefix:t,shortcut:o,shortcutDescriptionId:r,suffix:n,trailing:i}){let s=M0.Children.toArray(t).some(d=>d!==""),a=M0.Children.toArray(n).some(d=>d!==""),l=M0.Children.toArray(i).some(d=>d!=="");return(0,$i.jsxs)($i.Fragment,{children:[(0,$i.jsxs)("span",{className:j_["item-content"],children:[(0,$i.jsx)("span",{className:j_["item-children"],children:e}),a&&(0,$i.jsx)("span",{className:j_["item-suffix"],children:n}),o&&(0,$i.jsx)("span",{className:j_["item-shortcut"],children:(0,$i.jsx)(F7,{shortcut:o})}),l&&(0,$i.jsx)("span",{className:j_["item-trailing"],children:i})]}),s&&(0,$i.jsx)("span",{"aria-hidden":"true",className:j_["item-prefix"],children:t}),o&&r&&(0,$i.jsx)(V7,{descriptionId:r,shortcut:o})]})}var Bge=(0,M0.forwardRef)(function({children:t,className:o,prefix:r,shortcut:n,suffix:i,"aria-describedby":s,"aria-keyshortcuts":a,"aria-label":l,"aria-labelledby":d,...u},f){let{contentChildren:p,contentContextValue:m,itemAriaProps:g,shortcutDescriptionId:h}=up(t,{"aria-describedby":s,"aria-keyshortcuts":a,"aria-label":l,"aria-labelledby":d,shortcut:n});return(0,$i.jsx)(qt.Item,{ref:f,...g,className:U(JZe.div,eQe["box-sizing"],j_.item,o),...u,children:(0,$i.jsx)(ed.Provider,{value:m,children:(0,$i.jsx)(fp,{prefix:r,shortcut:n,shortcutDescriptionId:h,suffix:i,children:p})})})});var H_=c(T(),1),U$="data-wp-hash";function W$(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&rQe(document)),e.__wpStyleRuntime}function oQe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${U$}]`))if(o.getAttribute(U$)===t)return!0;return!1}function Mge(e,t,o){if(!e.head)return;let r=W$(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(oQe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(U$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function rQe(e){let t=W$();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Mge(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 G$(e,t){let o=W$();o.styles.set(e,t);for(let r of o.documents.keys())Mge(r,e,t)}typeof process>"u",G$("e8e31009f5","._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);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var nQe={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"};typeof process>"u",G$("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var iQe={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",G$("3be1f8dffe",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._380b81b8f79fb10f__dropdown-motion,._7f344b94e270e039__dropdown-motion--fade-only{--wp-ui-dropdown-slide-distance:4px;--wp-ui-dropdown-slide-duration:var(--wpds-motion-duration-md,200ms);--wp-ui-dropdown-slide-easing:var(--wpds-motion-easing-expressive,cubic-bezier(0.25,0,0,1));--wp-ui-dropdown-fade-duration:var(--wpds-motion-duration-sm,100ms);--wp-ui-dropdown-fade-easing:linear;@media not (prefers-reduced-motion){transition-duration:var(--wp-ui-dropdown-slide-duration),var(--wp-ui-dropdown-fade-duration);transition-property:transform,opacity;transition-timing-function:var(--wp-ui-dropdown-slide-easing),var(--wp-ui-dropdown-fade-easing);will-change:transform,opacity}opacity:1;&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}}._380b81b8f79fb10f__dropdown-motion{transform:translate(0);&[data-side=bottom][data-ending-style],&[data-side=bottom][data-starting-style]{transform:translateY(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=top][data-ending-style],&[data-side=top][data-starting-style]{transform:translateY(var(--wp-ui-dropdown-slide-distance))}&[data-side=left][data-ending-style],&[data-side=left][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=right][data-ending-style],&[data-side=right][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=inline-start][data-ending-style],&[data-side=inline-start][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=inline-end][data-ending-style],&[data-side=inline-end][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-start][data-ending-style],&:dir(rtl)[data-side=inline-start][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-end][data-ending-style],&:dir(rtl)[data-side=inline-end][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.d61e2d85c0ee0699__positioner{z-index:var(--wp-ui-menu-z-index,initial)}._34e81249f419a5a5__popup{--wp-ui-menu-popup-padding:var(--wpds-dimension-padding-xs,4px);--wp-ui-menu-min-width:160px;--wp-ui-menu-max-width:var(--wpds-dimension-surface-width-md,400px);--wp-ui-menu-item-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-menu-group-head-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-menu-selection-indicator-track-size:0px;--wp-ui-menu-selection-indicator-size:var(--wpds-dimension-size-sm,24px);--wp-ui-menu-selection-indicator-gap:0px;--_wp-ui-menu-elevation-md:0px 2px 3px 0px #0000000d,0px 4px 5px 0px #0000000a,0px 12px 12px 0px #00000008,0px 16px 16px 0px #00000005;background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-menu-elevation-md);max-height:min(var(--available-height),480px,60dvh);max-width:min(var(--available-width),var(--wp-ui-menu-max-width));min-width:min(var(--available-width),var(--wp-ui-menu-min-width));outline:none;overflow-block:auto;overscroll-behavior:none;padding:var(--wp-ui-menu-popup-padding);scroll-padding:var(--wp-ui-menu-popup-padding);&:has(._42313b48c5459be3__item-selection-indicator){--wp-ui-menu-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-menu-selection-indicator-track-size:var(--wpds-dimension-size-2xs,16px);--wp-ui-menu-selection-indicator-gap:var(--wpds-dimension-gap-sm,8px)}}._33f07ab17005471d__list{--_wp-ui-menu-item-label-line-height:var(--wpds-typography-line-height-sm,20px);color:var(--wpds-color-foreground-interactive-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-md,13px);line-height:var(--_wp-ui-menu-item-label-line-height)}._33f07ab17005471d__list,.e05914e1005d7c2e__radio-group,.f11085533c0056b0__group{--wp-ui-menu-group-prefix-gap:0px;display:grid;grid-template-columns:[item-padding-start] var(--wp-ui-menu-item-padding-inline) [selection-start] var(--wp-ui-menu-selection-indicator-track-size) [selection-end] var(--wp-ui-menu-selection-indicator-gap) [prefix-start] max-content [prefix-end] var(--wp-ui-menu-group-prefix-gap) [content-start] minmax(0,1fr) [content-end] var(--wp-ui-menu-item-padding-inline) [item-padding-end];min-width:0}.e05914e1005d7c2e__radio-group,.f11085533c0056b0__group{grid-column:1/-1}._33f07ab17005471d__list:has(>._5c913bce0d8bb0d6__item>._64924ecabf65a5d6__item-prefix),.e05914e1005d7c2e__radio-group:has(>._5c913bce0d8bb0d6__item>._64924ecabf65a5d6__item-prefix),.f11085533c0056b0__group:has(>._5c913bce0d8bb0d6__item>._64924ecabf65a5d6__item-prefix){--wp-ui-menu-group-prefix-gap:var(--wpds-dimension-gap-xs,4px)}._4a0fd085d76fd23c__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;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-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);grid-column:1/-1;line-height:var(--wpds-typography-line-height-xs,16px);min-height:var(--wpds-dimension-size-md,32px);padding-block:var(--wpds-dimension-padding-xs,4px);padding-inline:var(--wp-ui-menu-group-head-padding-inline);text-transform:uppercase}.bfc11368eadf3b39__separator{background-color:var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);grid-column:1/-1;height:var(--wpds-border-width-xs,1px);margin-block:var(--wpds-dimension-gap-xs,4px);margin-inline:var(--wp-ui-menu-group-head-padding-inline);@media (forced-colors:active){background-color:CanvasText}}._5c913bce0d8bb0d6__item{--wp-ui-menu-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-menu-item-padding-block:var(--wpds-dimension-padding-xs,4px);--_gcd-a-border-radius:var(--wpds-border-radius-sm,2px);align-content:center;align-items:start;border-radius:var(--wpds-border-radius-sm,2px);display:grid;gap:0;grid-column:1/-1;grid-template-columns:[item-padding-start] var(--wp-ui-menu-item-padding-inline) [selection-start] var(--wp-ui-menu-selection-indicator-track-size) [selection-end] var(--wp-ui-menu-selection-indicator-gap) [prefix-start] max-content [prefix-end] var(--wp-ui-menu-group-prefix-gap) [content-start] minmax(0,1fr) [content-end] var(--wp-ui-menu-item-padding-inline) [item-padding-end];justify-content:stretch;min-height:var(--wp-ui-menu-item-height);min-width:0;padding-block:var(--wp-ui-menu-item-padding-block);scroll-margin:var(--wp-ui-menu-popup-padding);text-decoration:none;user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&[href]{cursor:pointer}@supports (grid-template-columns:subgrid){grid-template-columns:subgrid}&[data-highlighted]:not([aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:none;@media (forced-colors:active){--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid Highlight;--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid Highlight}}&[aria-disabled=true]{background-color:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}}._42313b48c5459be3__item-selection-indicator,._64924ecabf65a5d6__item-prefix,.af879698ede76757__item-content{grid-row:1}._42313b48c5459be3__item-selection-indicator{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;grid-column:selection-start/selection-end;height:var(--_wp-ui-menu-item-label-line-height);justify-content:center;justify-self:center;pointer-events:none;width:var(--wp-ui-menu-selection-indicator-size);&[data-unchecked]{opacity:0}}._99c5bd141cbf516f__checkbox-selection-icon{translate:0 1px}._59aa9b3b3a651148__radio-selection-icon{fill:currentColor;height:var(--wpds-dimension-size-xs,20px);width:var(--wpds-dimension-size-xs,20px)}._64924ecabf65a5d6__item-prefix{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;gap:var(--wpds-dimension-gap-xs,4px);grid-column:prefix-start/prefix-end;justify-content:center;min-width:0}.a836378335a4cbf1__prefix-icon{align-self:flex-start;flex-shrink:0;margin-block-start:calc((var(--_wp-ui-menu-item-label-line-height) - var(--_wp-ui-menu-prefix-icon-size))/2)}.af879698ede76757__item-content{align-items:center;align-self:stretch;box-sizing:border-box;display:grid;grid-column:content-start/content-end;grid-template-columns:[label-start] minmax(0,1fr) [label-end suffix-start] auto [suffix-end shortcut-start] auto [shortcut-end trailing-start] auto [trailing-end];min-width:0;pointer-events:none}._943a932d9f81c78c__item-children{display:inline-flex;flex-direction:column;gap:2px;grid-column:label-start/label-end;min-width:0}._5ed41da4abcf8958__item-label{--_gcd-heading-color:currentColor;--_gcd-p-line-height:var(--_wp-ui-menu-item-label-line-height);color:inherit;line-height:var(--_wp-ui-menu-item-label-line-height);min-width:0;overflow-wrap:anywhere}.fa88c9f1a96a4c5a__item-description{--_gcd-heading-color:var(--wpds-color-foreground-content-neutral-weak,#707070);color:var(--wpds-color-foreground-content-neutral-weak,#707070);overflow-wrap:anywhere;padding-block-end:var(--wpds-dimension-padding-xs,4px)}._091406749ed93e6e__item-suffix{align-items:center;display:flex;gap:var(--wpds-dimension-gap-xs,4px);grid-column:suffix-start/suffix-end}._091406749ed93e6e__item-suffix,._23630f40071a29ff__item-shortcut{color:var(--wpds-color-foreground-content-neutral-weak,#707070);margin-inline-start:var(--wpds-dimension-gap-md,12px)}._23630f40071a29ff__item-shortcut{grid-column:shortcut-start/shortcut-end}._06be17a91bf434a0__item-trailing{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;grid-column:trailing-start/trailing-end;margin-inline-start:var(--wpds-dimension-gap-md,12px)}._943a932d9f81c78c__item-children+:is(._091406749ed93e6e__item-suffix,._23630f40071a29ff__item-shortcut,._06be17a91bf434a0__item-trailing){margin-inline-start:var(--wpds-dimension-gap-xl,24px)}._23630f40071a29ff__item-shortcut+._06be17a91bf434a0__item-trailing{margin-inline-start:var(--wpds-dimension-gap-xs,4px)}.b78aec79bf93eba0__submenu-chevron{margin-inline-end:calc(var(--wpds-dimension-gap-sm, 8px)*-1)}.b78aec79bf93eba0__submenu-chevron:dir(rtl){transform:rotate(180deg)}._60da3b6f9718cf76__external-link-indicator{display:inline-block;font-weight:var(--wpds-typography-font-weight-default,400);line-height:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px);text-decoration:none}._60da3b6f9718cf76__external-link-indicator:after{content:"\\2197"}._60da3b6f9718cf76__external-link-indicator:dir(rtl):after{content:"\\2196"}._5c913bce0d8bb0d6__item[aria-disabled=true] ._06be17a91bf434a0__item-trailing,._5c913bce0d8bb0d6__item[aria-disabled=true] ._091406749ed93e6e__item-suffix,._5c913bce0d8bb0d6__item[aria-disabled=true] ._23630f40071a29ff__item-shortcut,._5c913bce0d8bb0d6__item[aria-disabled=true] ._42313b48c5459be3__item-selection-indicator,._5c913bce0d8bb0d6__item[aria-disabled=true] ._64924ecabf65a5d6__item-prefix,._5c913bce0d8bb0d6__item[aria-disabled=true] .fa88c9f1a96a4c5a__item-description,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._06be17a91bf434a0__item-trailing,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._091406749ed93e6e__item-suffix,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._23630f40071a29ff__item-shortcut,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._42313b48c5459be3__item-selection-indicator,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._64924ecabf65a5d6__item-prefix,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) .fa88c9f1a96a4c5a__item-description{--_gcd-heading-color:currentColor;color:inherit}}}');var H$={positioner:"d61e2d85c0ee0699__positioner",popup:"_34e81249f419a5a5__popup","item-selection-indicator":"_42313b48c5459be3__item-selection-indicator","is-root":"_087a537b24fee6a1__is-root _380b81b8f79fb10f__dropdown-motion","is-submenu":"_6d3b567f6289bdc2__is-submenu _7f344b94e270e039__dropdown-motion--fade-only",list:"_33f07ab17005471d__list",group:"f11085533c0056b0__group","radio-group":"e05914e1005d7c2e__radio-group",item:"_5c913bce0d8bb0d6__item","item-prefix":"_64924ecabf65a5d6__item-prefix","group-label":"_4a0fd085d76fd23c__group-label",separator:"bfc11368eadf3b39__separator","item-content":"af879698ede76757__item-content","checkbox-selection-icon":"_99c5bd141cbf516f__checkbox-selection-icon","radio-selection-icon":"_59aa9b3b3a651148__radio-selection-icon","prefix-icon":"a836378335a4cbf1__prefix-icon","item-children":"_943a932d9f81c78c__item-children","item-label":"_5ed41da4abcf8958__item-label","item-description":"fa88c9f1a96a4c5a__item-description","item-suffix":"_091406749ed93e6e__item-suffix","item-shortcut":"_23630f40071a29ff__item-shortcut","item-trailing":"_06be17a91bf434a0__item-trailing","submenu-chevron":"b78aec79bf93eba0__submenu-chevron","external-link-indicator":"_60da3b6f9718cf76__external-link-indicator"},Age=(0,Oge.forwardRef)(function({children:t,className:o,prefix:r,shortcut:n,suffix:i,"aria-describedby":s,"aria-keyshortcuts":a,"aria-label":l,"aria-labelledby":d,...u},f){let{contentChildren:p,contentContextValue:m,itemAriaProps:g,shortcutDescriptionId:h}=up(t,{"aria-describedby":s,"aria-keyshortcuts":a,"aria-label":l,"aria-labelledby":d,shortcut:n});return(0,H_.jsxs)(qt.CheckboxItem,{ref:f,...g,className:U(nQe.div,iQe["box-sizing"],H$.item,o),...u,children:[(0,H_.jsx)(qt.CheckboxItemIndicator,{keepMounted:!0,className:H$["item-selection-indicator"],children:(0,H_.jsx)(fo,{icon:Vn,size:24,className:H$["checkbox-selection-icon"],"aria-hidden":"true"})}),(0,H_.jsx)(ed.Provider,{value:m,children:(0,H_.jsx)(fp,{prefix:r,shortcut:n,shortcutDescriptionId:h,suffix:i,children:p})})]})});var Nge=c(D(),1),Dge=c(T(),1),$$="data-wp-hash";function Y$(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&aQe(document)),e.__wpStyleRuntime}function sQe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${$$}]`))if(o.getAttribute($$)===t)return!0;return!1}function Lge(e,t,o){if(!e.head)return;let r=Y$(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(sQe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute($$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function aQe(e){let t=Y$();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Lge(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 lQe(e,t){let o=Y$();o.styles.set(e,t);for(let r of o.documents.keys())Lge(r,e,t)}typeof process>"u",lQe("3be1f8dffe",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._380b81b8f79fb10f__dropdown-motion,._7f344b94e270e039__dropdown-motion--fade-only{--wp-ui-dropdown-slide-distance:4px;--wp-ui-dropdown-slide-duration:var(--wpds-motion-duration-md,200ms);--wp-ui-dropdown-slide-easing:var(--wpds-motion-easing-expressive,cubic-bezier(0.25,0,0,1));--wp-ui-dropdown-fade-duration:var(--wpds-motion-duration-sm,100ms);--wp-ui-dropdown-fade-easing:linear;@media not (prefers-reduced-motion){transition-duration:var(--wp-ui-dropdown-slide-duration),var(--wp-ui-dropdown-fade-duration);transition-property:transform,opacity;transition-timing-function:var(--wp-ui-dropdown-slide-easing),var(--wp-ui-dropdown-fade-easing);will-change:transform,opacity}opacity:1;&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}}._380b81b8f79fb10f__dropdown-motion{transform:translate(0);&[data-side=bottom][data-ending-style],&[data-side=bottom][data-starting-style]{transform:translateY(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=top][data-ending-style],&[data-side=top][data-starting-style]{transform:translateY(var(--wp-ui-dropdown-slide-distance))}&[data-side=left][data-ending-style],&[data-side=left][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=right][data-ending-style],&[data-side=right][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=inline-start][data-ending-style],&[data-side=inline-start][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=inline-end][data-ending-style],&[data-side=inline-end][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-start][data-ending-style],&:dir(rtl)[data-side=inline-start][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-end][data-ending-style],&:dir(rtl)[data-side=inline-end][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.d61e2d85c0ee0699__positioner{z-index:var(--wp-ui-menu-z-index,initial)}._34e81249f419a5a5__popup{--wp-ui-menu-popup-padding:var(--wpds-dimension-padding-xs,4px);--wp-ui-menu-min-width:160px;--wp-ui-menu-max-width:var(--wpds-dimension-surface-width-md,400px);--wp-ui-menu-item-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-menu-group-head-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-menu-selection-indicator-track-size:0px;--wp-ui-menu-selection-indicator-size:var(--wpds-dimension-size-sm,24px);--wp-ui-menu-selection-indicator-gap:0px;--_wp-ui-menu-elevation-md:0px 2px 3px 0px #0000000d,0px 4px 5px 0px #0000000a,0px 12px 12px 0px #00000008,0px 16px 16px 0px #00000005;background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-menu-elevation-md);max-height:min(var(--available-height),480px,60dvh);max-width:min(var(--available-width),var(--wp-ui-menu-max-width));min-width:min(var(--available-width),var(--wp-ui-menu-min-width));outline:none;overflow-block:auto;overscroll-behavior:none;padding:var(--wp-ui-menu-popup-padding);scroll-padding:var(--wp-ui-menu-popup-padding);&:has(._42313b48c5459be3__item-selection-indicator){--wp-ui-menu-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-menu-selection-indicator-track-size:var(--wpds-dimension-size-2xs,16px);--wp-ui-menu-selection-indicator-gap:var(--wpds-dimension-gap-sm,8px)}}._33f07ab17005471d__list{--_wp-ui-menu-item-label-line-height:var(--wpds-typography-line-height-sm,20px);color:var(--wpds-color-foreground-interactive-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-md,13px);line-height:var(--_wp-ui-menu-item-label-line-height)}._33f07ab17005471d__list,.e05914e1005d7c2e__radio-group,.f11085533c0056b0__group{--wp-ui-menu-group-prefix-gap:0px;display:grid;grid-template-columns:[item-padding-start] var(--wp-ui-menu-item-padding-inline) [selection-start] var(--wp-ui-menu-selection-indicator-track-size) [selection-end] var(--wp-ui-menu-selection-indicator-gap) [prefix-start] max-content [prefix-end] var(--wp-ui-menu-group-prefix-gap) [content-start] minmax(0,1fr) [content-end] var(--wp-ui-menu-item-padding-inline) [item-padding-end];min-width:0}.e05914e1005d7c2e__radio-group,.f11085533c0056b0__group{grid-column:1/-1}._33f07ab17005471d__list:has(>._5c913bce0d8bb0d6__item>._64924ecabf65a5d6__item-prefix),.e05914e1005d7c2e__radio-group:has(>._5c913bce0d8bb0d6__item>._64924ecabf65a5d6__item-prefix),.f11085533c0056b0__group:has(>._5c913bce0d8bb0d6__item>._64924ecabf65a5d6__item-prefix){--wp-ui-menu-group-prefix-gap:var(--wpds-dimension-gap-xs,4px)}._4a0fd085d76fd23c__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;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-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);grid-column:1/-1;line-height:var(--wpds-typography-line-height-xs,16px);min-height:var(--wpds-dimension-size-md,32px);padding-block:var(--wpds-dimension-padding-xs,4px);padding-inline:var(--wp-ui-menu-group-head-padding-inline);text-transform:uppercase}.bfc11368eadf3b39__separator{background-color:var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);grid-column:1/-1;height:var(--wpds-border-width-xs,1px);margin-block:var(--wpds-dimension-gap-xs,4px);margin-inline:var(--wp-ui-menu-group-head-padding-inline);@media (forced-colors:active){background-color:CanvasText}}._5c913bce0d8bb0d6__item{--wp-ui-menu-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-menu-item-padding-block:var(--wpds-dimension-padding-xs,4px);--_gcd-a-border-radius:var(--wpds-border-radius-sm,2px);align-content:center;align-items:start;border-radius:var(--wpds-border-radius-sm,2px);display:grid;gap:0;grid-column:1/-1;grid-template-columns:[item-padding-start] var(--wp-ui-menu-item-padding-inline) [selection-start] var(--wp-ui-menu-selection-indicator-track-size) [selection-end] var(--wp-ui-menu-selection-indicator-gap) [prefix-start] max-content [prefix-end] var(--wp-ui-menu-group-prefix-gap) [content-start] minmax(0,1fr) [content-end] var(--wp-ui-menu-item-padding-inline) [item-padding-end];justify-content:stretch;min-height:var(--wp-ui-menu-item-height);min-width:0;padding-block:var(--wp-ui-menu-item-padding-block);scroll-margin:var(--wp-ui-menu-popup-padding);text-decoration:none;user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&[href]{cursor:pointer}@supports (grid-template-columns:subgrid){grid-template-columns:subgrid}&[data-highlighted]:not([aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:none;@media (forced-colors:active){--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid Highlight;--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid Highlight}}&[aria-disabled=true]{background-color:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}}._42313b48c5459be3__item-selection-indicator,._64924ecabf65a5d6__item-prefix,.af879698ede76757__item-content{grid-row:1}._42313b48c5459be3__item-selection-indicator{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;grid-column:selection-start/selection-end;height:var(--_wp-ui-menu-item-label-line-height);justify-content:center;justify-self:center;pointer-events:none;width:var(--wp-ui-menu-selection-indicator-size);&[data-unchecked]{opacity:0}}._99c5bd141cbf516f__checkbox-selection-icon{translate:0 1px}._59aa9b3b3a651148__radio-selection-icon{fill:currentColor;height:var(--wpds-dimension-size-xs,20px);width:var(--wpds-dimension-size-xs,20px)}._64924ecabf65a5d6__item-prefix{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;gap:var(--wpds-dimension-gap-xs,4px);grid-column:prefix-start/prefix-end;justify-content:center;min-width:0}.a836378335a4cbf1__prefix-icon{align-self:flex-start;flex-shrink:0;margin-block-start:calc((var(--_wp-ui-menu-item-label-line-height) - var(--_wp-ui-menu-prefix-icon-size))/2)}.af879698ede76757__item-content{align-items:center;align-self:stretch;box-sizing:border-box;display:grid;grid-column:content-start/content-end;grid-template-columns:[label-start] minmax(0,1fr) [label-end suffix-start] auto [suffix-end shortcut-start] auto [shortcut-end trailing-start] auto [trailing-end];min-width:0;pointer-events:none}._943a932d9f81c78c__item-children{display:inline-flex;flex-direction:column;gap:2px;grid-column:label-start/label-end;min-width:0}._5ed41da4abcf8958__item-label{--_gcd-heading-color:currentColor;--_gcd-p-line-height:var(--_wp-ui-menu-item-label-line-height);color:inherit;line-height:var(--_wp-ui-menu-item-label-line-height);min-width:0;overflow-wrap:anywhere}.fa88c9f1a96a4c5a__item-description{--_gcd-heading-color:var(--wpds-color-foreground-content-neutral-weak,#707070);color:var(--wpds-color-foreground-content-neutral-weak,#707070);overflow-wrap:anywhere;padding-block-end:var(--wpds-dimension-padding-xs,4px)}._091406749ed93e6e__item-suffix{align-items:center;display:flex;gap:var(--wpds-dimension-gap-xs,4px);grid-column:suffix-start/suffix-end}._091406749ed93e6e__item-suffix,._23630f40071a29ff__item-shortcut{color:var(--wpds-color-foreground-content-neutral-weak,#707070);margin-inline-start:var(--wpds-dimension-gap-md,12px)}._23630f40071a29ff__item-shortcut{grid-column:shortcut-start/shortcut-end}._06be17a91bf434a0__item-trailing{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;grid-column:trailing-start/trailing-end;margin-inline-start:var(--wpds-dimension-gap-md,12px)}._943a932d9f81c78c__item-children+:is(._091406749ed93e6e__item-suffix,._23630f40071a29ff__item-shortcut,._06be17a91bf434a0__item-trailing){margin-inline-start:var(--wpds-dimension-gap-xl,24px)}._23630f40071a29ff__item-shortcut+._06be17a91bf434a0__item-trailing{margin-inline-start:var(--wpds-dimension-gap-xs,4px)}.b78aec79bf93eba0__submenu-chevron{margin-inline-end:calc(var(--wpds-dimension-gap-sm, 8px)*-1)}.b78aec79bf93eba0__submenu-chevron:dir(rtl){transform:rotate(180deg)}._60da3b6f9718cf76__external-link-indicator{display:inline-block;font-weight:var(--wpds-typography-font-weight-default,400);line-height:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px);text-decoration:none}._60da3b6f9718cf76__external-link-indicator:after{content:"\\2197"}._60da3b6f9718cf76__external-link-indicator:dir(rtl):after{content:"\\2196"}._5c913bce0d8bb0d6__item[aria-disabled=true] ._06be17a91bf434a0__item-trailing,._5c913bce0d8bb0d6__item[aria-disabled=true] ._091406749ed93e6e__item-suffix,._5c913bce0d8bb0d6__item[aria-disabled=true] ._23630f40071a29ff__item-shortcut,._5c913bce0d8bb0d6__item[aria-disabled=true] ._42313b48c5459be3__item-selection-indicator,._5c913bce0d8bb0d6__item[aria-disabled=true] ._64924ecabf65a5d6__item-prefix,._5c913bce0d8bb0d6__item[aria-disabled=true] .fa88c9f1a96a4c5a__item-description,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._06be17a91bf434a0__item-trailing,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._091406749ed93e6e__item-suffix,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._23630f40071a29ff__item-shortcut,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._42313b48c5459be3__item-selection-indicator,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._64924ecabf65a5d6__item-prefix,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) .fa88c9f1a96a4c5a__item-description{--_gcd-heading-color:currentColor;color:inherit}}}');var cQe={positioner:"d61e2d85c0ee0699__positioner",popup:"_34e81249f419a5a5__popup","item-selection-indicator":"_42313b48c5459be3__item-selection-indicator","is-root":"_087a537b24fee6a1__is-root _380b81b8f79fb10f__dropdown-motion","is-submenu":"_6d3b567f6289bdc2__is-submenu _7f344b94e270e039__dropdown-motion--fade-only",list:"_33f07ab17005471d__list",group:"f11085533c0056b0__group","radio-group":"e05914e1005d7c2e__radio-group",item:"_5c913bce0d8bb0d6__item","item-prefix":"_64924ecabf65a5d6__item-prefix","group-label":"_4a0fd085d76fd23c__group-label",separator:"bfc11368eadf3b39__separator","item-content":"af879698ede76757__item-content","checkbox-selection-icon":"_99c5bd141cbf516f__checkbox-selection-icon","radio-selection-icon":"_59aa9b3b3a651148__radio-selection-icon","prefix-icon":"a836378335a4cbf1__prefix-icon","item-children":"_943a932d9f81c78c__item-children","item-label":"_5ed41da4abcf8958__item-label","item-description":"fa88c9f1a96a4c5a__item-description","item-suffix":"_091406749ed93e6e__item-suffix","item-shortcut":"_23630f40071a29ff__item-shortcut","item-trailing":"_06be17a91bf434a0__item-trailing","submenu-chevron":"b78aec79bf93eba0__submenu-chevron","external-link-indicator":"_60da3b6f9718cf76__external-link-indicator"},Vge=(0,Nge.forwardRef)(function({className:t,...o},r){return(0,Dge.jsx)(qt.Group,{ref:r,className:U(cQe.group,t),...o})});var Fge=c(D(),1),jge=c(T(),1),K$="data-wp-hash";function q$(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&uQe(document)),e.__wpStyleRuntime}function dQe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${K$}]`))if(o.getAttribute(K$)===t)return!0;return!1}function zge(e,t,o){if(!e.head)return;let r=q$(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(dQe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(K$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function uQe(e){let t=q$();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)zge(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 fQe(e,t){let o=q$();o.styles.set(e,t);for(let r of o.documents.keys())zge(r,e,t)}typeof process>"u",fQe("3be1f8dffe",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._380b81b8f79fb10f__dropdown-motion,._7f344b94e270e039__dropdown-motion--fade-only{--wp-ui-dropdown-slide-distance:4px;--wp-ui-dropdown-slide-duration:var(--wpds-motion-duration-md,200ms);--wp-ui-dropdown-slide-easing:var(--wpds-motion-easing-expressive,cubic-bezier(0.25,0,0,1));--wp-ui-dropdown-fade-duration:var(--wpds-motion-duration-sm,100ms);--wp-ui-dropdown-fade-easing:linear;@media not (prefers-reduced-motion){transition-duration:var(--wp-ui-dropdown-slide-duration),var(--wp-ui-dropdown-fade-duration);transition-property:transform,opacity;transition-timing-function:var(--wp-ui-dropdown-slide-easing),var(--wp-ui-dropdown-fade-easing);will-change:transform,opacity}opacity:1;&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}}._380b81b8f79fb10f__dropdown-motion{transform:translate(0);&[data-side=bottom][data-ending-style],&[data-side=bottom][data-starting-style]{transform:translateY(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=top][data-ending-style],&[data-side=top][data-starting-style]{transform:translateY(var(--wp-ui-dropdown-slide-distance))}&[data-side=left][data-ending-style],&[data-side=left][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=right][data-ending-style],&[data-side=right][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=inline-start][data-ending-style],&[data-side=inline-start][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=inline-end][data-ending-style],&[data-side=inline-end][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-start][data-ending-style],&:dir(rtl)[data-side=inline-start][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-end][data-ending-style],&:dir(rtl)[data-side=inline-end][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.d61e2d85c0ee0699__positioner{z-index:var(--wp-ui-menu-z-index,initial)}._34e81249f419a5a5__popup{--wp-ui-menu-popup-padding:var(--wpds-dimension-padding-xs,4px);--wp-ui-menu-min-width:160px;--wp-ui-menu-max-width:var(--wpds-dimension-surface-width-md,400px);--wp-ui-menu-item-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-menu-group-head-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-menu-selection-indicator-track-size:0px;--wp-ui-menu-selection-indicator-size:var(--wpds-dimension-size-sm,24px);--wp-ui-menu-selection-indicator-gap:0px;--_wp-ui-menu-elevation-md:0px 2px 3px 0px #0000000d,0px 4px 5px 0px #0000000a,0px 12px 12px 0px #00000008,0px 16px 16px 0px #00000005;background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-menu-elevation-md);max-height:min(var(--available-height),480px,60dvh);max-width:min(var(--available-width),var(--wp-ui-menu-max-width));min-width:min(var(--available-width),var(--wp-ui-menu-min-width));outline:none;overflow-block:auto;overscroll-behavior:none;padding:var(--wp-ui-menu-popup-padding);scroll-padding:var(--wp-ui-menu-popup-padding);&:has(._42313b48c5459be3__item-selection-indicator){--wp-ui-menu-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-menu-selection-indicator-track-size:var(--wpds-dimension-size-2xs,16px);--wp-ui-menu-selection-indicator-gap:var(--wpds-dimension-gap-sm,8px)}}._33f07ab17005471d__list{--_wp-ui-menu-item-label-line-height:var(--wpds-typography-line-height-sm,20px);color:var(--wpds-color-foreground-interactive-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-md,13px);line-height:var(--_wp-ui-menu-item-label-line-height)}._33f07ab17005471d__list,.e05914e1005d7c2e__radio-group,.f11085533c0056b0__group{--wp-ui-menu-group-prefix-gap:0px;display:grid;grid-template-columns:[item-padding-start] var(--wp-ui-menu-item-padding-inline) [selection-start] var(--wp-ui-menu-selection-indicator-track-size) [selection-end] var(--wp-ui-menu-selection-indicator-gap) [prefix-start] max-content [prefix-end] var(--wp-ui-menu-group-prefix-gap) [content-start] minmax(0,1fr) [content-end] var(--wp-ui-menu-item-padding-inline) [item-padding-end];min-width:0}.e05914e1005d7c2e__radio-group,.f11085533c0056b0__group{grid-column:1/-1}._33f07ab17005471d__list:has(>._5c913bce0d8bb0d6__item>._64924ecabf65a5d6__item-prefix),.e05914e1005d7c2e__radio-group:has(>._5c913bce0d8bb0d6__item>._64924ecabf65a5d6__item-prefix),.f11085533c0056b0__group:has(>._5c913bce0d8bb0d6__item>._64924ecabf65a5d6__item-prefix){--wp-ui-menu-group-prefix-gap:var(--wpds-dimension-gap-xs,4px)}._4a0fd085d76fd23c__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;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-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);grid-column:1/-1;line-height:var(--wpds-typography-line-height-xs,16px);min-height:var(--wpds-dimension-size-md,32px);padding-block:var(--wpds-dimension-padding-xs,4px);padding-inline:var(--wp-ui-menu-group-head-padding-inline);text-transform:uppercase}.bfc11368eadf3b39__separator{background-color:var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);grid-column:1/-1;height:var(--wpds-border-width-xs,1px);margin-block:var(--wpds-dimension-gap-xs,4px);margin-inline:var(--wp-ui-menu-group-head-padding-inline);@media (forced-colors:active){background-color:CanvasText}}._5c913bce0d8bb0d6__item{--wp-ui-menu-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-menu-item-padding-block:var(--wpds-dimension-padding-xs,4px);--_gcd-a-border-radius:var(--wpds-border-radius-sm,2px);align-content:center;align-items:start;border-radius:var(--wpds-border-radius-sm,2px);display:grid;gap:0;grid-column:1/-1;grid-template-columns:[item-padding-start] var(--wp-ui-menu-item-padding-inline) [selection-start] var(--wp-ui-menu-selection-indicator-track-size) [selection-end] var(--wp-ui-menu-selection-indicator-gap) [prefix-start] max-content [prefix-end] var(--wp-ui-menu-group-prefix-gap) [content-start] minmax(0,1fr) [content-end] var(--wp-ui-menu-item-padding-inline) [item-padding-end];justify-content:stretch;min-height:var(--wp-ui-menu-item-height);min-width:0;padding-block:var(--wp-ui-menu-item-padding-block);scroll-margin:var(--wp-ui-menu-popup-padding);text-decoration:none;user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&[href]{cursor:pointer}@supports (grid-template-columns:subgrid){grid-template-columns:subgrid}&[data-highlighted]:not([aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:none;@media (forced-colors:active){--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid Highlight;--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid Highlight}}&[aria-disabled=true]{background-color:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}}._42313b48c5459be3__item-selection-indicator,._64924ecabf65a5d6__item-prefix,.af879698ede76757__item-content{grid-row:1}._42313b48c5459be3__item-selection-indicator{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;grid-column:selection-start/selection-end;height:var(--_wp-ui-menu-item-label-line-height);justify-content:center;justify-self:center;pointer-events:none;width:var(--wp-ui-menu-selection-indicator-size);&[data-unchecked]{opacity:0}}._99c5bd141cbf516f__checkbox-selection-icon{translate:0 1px}._59aa9b3b3a651148__radio-selection-icon{fill:currentColor;height:var(--wpds-dimension-size-xs,20px);width:var(--wpds-dimension-size-xs,20px)}._64924ecabf65a5d6__item-prefix{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;gap:var(--wpds-dimension-gap-xs,4px);grid-column:prefix-start/prefix-end;justify-content:center;min-width:0}.a836378335a4cbf1__prefix-icon{align-self:flex-start;flex-shrink:0;margin-block-start:calc((var(--_wp-ui-menu-item-label-line-height) - var(--_wp-ui-menu-prefix-icon-size))/2)}.af879698ede76757__item-content{align-items:center;align-self:stretch;box-sizing:border-box;display:grid;grid-column:content-start/content-end;grid-template-columns:[label-start] minmax(0,1fr) [label-end suffix-start] auto [suffix-end shortcut-start] auto [shortcut-end trailing-start] auto [trailing-end];min-width:0;pointer-events:none}._943a932d9f81c78c__item-children{display:inline-flex;flex-direction:column;gap:2px;grid-column:label-start/label-end;min-width:0}._5ed41da4abcf8958__item-label{--_gcd-heading-color:currentColor;--_gcd-p-line-height:var(--_wp-ui-menu-item-label-line-height);color:inherit;line-height:var(--_wp-ui-menu-item-label-line-height);min-width:0;overflow-wrap:anywhere}.fa88c9f1a96a4c5a__item-description{--_gcd-heading-color:var(--wpds-color-foreground-content-neutral-weak,#707070);color:var(--wpds-color-foreground-content-neutral-weak,#707070);overflow-wrap:anywhere;padding-block-end:var(--wpds-dimension-padding-xs,4px)}._091406749ed93e6e__item-suffix{align-items:center;display:flex;gap:var(--wpds-dimension-gap-xs,4px);grid-column:suffix-start/suffix-end}._091406749ed93e6e__item-suffix,._23630f40071a29ff__item-shortcut{color:var(--wpds-color-foreground-content-neutral-weak,#707070);margin-inline-start:var(--wpds-dimension-gap-md,12px)}._23630f40071a29ff__item-shortcut{grid-column:shortcut-start/shortcut-end}._06be17a91bf434a0__item-trailing{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;grid-column:trailing-start/trailing-end;margin-inline-start:var(--wpds-dimension-gap-md,12px)}._943a932d9f81c78c__item-children+:is(._091406749ed93e6e__item-suffix,._23630f40071a29ff__item-shortcut,._06be17a91bf434a0__item-trailing){margin-inline-start:var(--wpds-dimension-gap-xl,24px)}._23630f40071a29ff__item-shortcut+._06be17a91bf434a0__item-trailing{margin-inline-start:var(--wpds-dimension-gap-xs,4px)}.b78aec79bf93eba0__submenu-chevron{margin-inline-end:calc(var(--wpds-dimension-gap-sm, 8px)*-1)}.b78aec79bf93eba0__submenu-chevron:dir(rtl){transform:rotate(180deg)}._60da3b6f9718cf76__external-link-indicator{display:inline-block;font-weight:var(--wpds-typography-font-weight-default,400);line-height:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px);text-decoration:none}._60da3b6f9718cf76__external-link-indicator:after{content:"\\2197"}._60da3b6f9718cf76__external-link-indicator:dir(rtl):after{content:"\\2196"}._5c913bce0d8bb0d6__item[aria-disabled=true] ._06be17a91bf434a0__item-trailing,._5c913bce0d8bb0d6__item[aria-disabled=true] ._091406749ed93e6e__item-suffix,._5c913bce0d8bb0d6__item[aria-disabled=true] ._23630f40071a29ff__item-shortcut,._5c913bce0d8bb0d6__item[aria-disabled=true] ._42313b48c5459be3__item-selection-indicator,._5c913bce0d8bb0d6__item[aria-disabled=true] ._64924ecabf65a5d6__item-prefix,._5c913bce0d8bb0d6__item[aria-disabled=true] .fa88c9f1a96a4c5a__item-description,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._06be17a91bf434a0__item-trailing,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._091406749ed93e6e__item-suffix,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._23630f40071a29ff__item-shortcut,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._42313b48c5459be3__item-selection-indicator,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._64924ecabf65a5d6__item-prefix,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) .fa88c9f1a96a4c5a__item-description{--_gcd-heading-color:currentColor;color:inherit}}}');var pQe={positioner:"d61e2d85c0ee0699__positioner",popup:"_34e81249f419a5a5__popup","item-selection-indicator":"_42313b48c5459be3__item-selection-indicator","is-root":"_087a537b24fee6a1__is-root _380b81b8f79fb10f__dropdown-motion","is-submenu":"_6d3b567f6289bdc2__is-submenu _7f344b94e270e039__dropdown-motion--fade-only",list:"_33f07ab17005471d__list",group:"f11085533c0056b0__group","radio-group":"e05914e1005d7c2e__radio-group",item:"_5c913bce0d8bb0d6__item","item-prefix":"_64924ecabf65a5d6__item-prefix","group-label":"_4a0fd085d76fd23c__group-label",separator:"bfc11368eadf3b39__separator","item-content":"af879698ede76757__item-content","checkbox-selection-icon":"_99c5bd141cbf516f__checkbox-selection-icon","radio-selection-icon":"_59aa9b3b3a651148__radio-selection-icon","prefix-icon":"a836378335a4cbf1__prefix-icon","item-children":"_943a932d9f81c78c__item-children","item-label":"_5ed41da4abcf8958__item-label","item-description":"fa88c9f1a96a4c5a__item-description","item-suffix":"_091406749ed93e6e__item-suffix","item-shortcut":"_23630f40071a29ff__item-shortcut","item-trailing":"_06be17a91bf434a0__item-trailing","submenu-chevron":"b78aec79bf93eba0__submenu-chevron","external-link-indicator":"_60da3b6f9718cf76__external-link-indicator"},Hge=(0,Fge.forwardRef)(function({className:t,...o},r){return(0,jge.jsx)(qt.GroupLabel,{ref:r,className:U(pQe["group-label"],t),...o})});var Wge=c(D(),1),Gge=c(X(),1);var dR=c(T(),1),X$="data-wp-hash";function Z$(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&gQe(document)),e.__wpStyleRuntime}function mQe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${X$}]`))if(o.getAttribute(X$)===t)return!0;return!1}function $ge(e,t,o){if(!e.head)return;let r=Z$(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(mQe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(X$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function gQe(e){let t=Z$();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)$ge(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 Q$(e,t){let o=Z$();o.styles.set(e,t);for(let r of o.documents.keys())$ge(r,e,t)}typeof process>"u",Q$("e8e31009f5","._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);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var hQe={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"};typeof process>"u",Q$("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var bQe={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",Q$("3be1f8dffe",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._380b81b8f79fb10f__dropdown-motion,._7f344b94e270e039__dropdown-motion--fade-only{--wp-ui-dropdown-slide-distance:4px;--wp-ui-dropdown-slide-duration:var(--wpds-motion-duration-md,200ms);--wp-ui-dropdown-slide-easing:var(--wpds-motion-easing-expressive,cubic-bezier(0.25,0,0,1));--wp-ui-dropdown-fade-duration:var(--wpds-motion-duration-sm,100ms);--wp-ui-dropdown-fade-easing:linear;@media not (prefers-reduced-motion){transition-duration:var(--wp-ui-dropdown-slide-duration),var(--wp-ui-dropdown-fade-duration);transition-property:transform,opacity;transition-timing-function:var(--wp-ui-dropdown-slide-easing),var(--wp-ui-dropdown-fade-easing);will-change:transform,opacity}opacity:1;&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}}._380b81b8f79fb10f__dropdown-motion{transform:translate(0);&[data-side=bottom][data-ending-style],&[data-side=bottom][data-starting-style]{transform:translateY(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=top][data-ending-style],&[data-side=top][data-starting-style]{transform:translateY(var(--wp-ui-dropdown-slide-distance))}&[data-side=left][data-ending-style],&[data-side=left][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=right][data-ending-style],&[data-side=right][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=inline-start][data-ending-style],&[data-side=inline-start][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=inline-end][data-ending-style],&[data-side=inline-end][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-start][data-ending-style],&:dir(rtl)[data-side=inline-start][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-end][data-ending-style],&:dir(rtl)[data-side=inline-end][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.d61e2d85c0ee0699__positioner{z-index:var(--wp-ui-menu-z-index,initial)}._34e81249f419a5a5__popup{--wp-ui-menu-popup-padding:var(--wpds-dimension-padding-xs,4px);--wp-ui-menu-min-width:160px;--wp-ui-menu-max-width:var(--wpds-dimension-surface-width-md,400px);--wp-ui-menu-item-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-menu-group-head-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-menu-selection-indicator-track-size:0px;--wp-ui-menu-selection-indicator-size:var(--wpds-dimension-size-sm,24px);--wp-ui-menu-selection-indicator-gap:0px;--_wp-ui-menu-elevation-md:0px 2px 3px 0px #0000000d,0px 4px 5px 0px #0000000a,0px 12px 12px 0px #00000008,0px 16px 16px 0px #00000005;background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-menu-elevation-md);max-height:min(var(--available-height),480px,60dvh);max-width:min(var(--available-width),var(--wp-ui-menu-max-width));min-width:min(var(--available-width),var(--wp-ui-menu-min-width));outline:none;overflow-block:auto;overscroll-behavior:none;padding:var(--wp-ui-menu-popup-padding);scroll-padding:var(--wp-ui-menu-popup-padding);&:has(._42313b48c5459be3__item-selection-indicator){--wp-ui-menu-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-menu-selection-indicator-track-size:var(--wpds-dimension-size-2xs,16px);--wp-ui-menu-selection-indicator-gap:var(--wpds-dimension-gap-sm,8px)}}._33f07ab17005471d__list{--_wp-ui-menu-item-label-line-height:var(--wpds-typography-line-height-sm,20px);color:var(--wpds-color-foreground-interactive-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-md,13px);line-height:var(--_wp-ui-menu-item-label-line-height)}._33f07ab17005471d__list,.e05914e1005d7c2e__radio-group,.f11085533c0056b0__group{--wp-ui-menu-group-prefix-gap:0px;display:grid;grid-template-columns:[item-padding-start] var(--wp-ui-menu-item-padding-inline) [selection-start] var(--wp-ui-menu-selection-indicator-track-size) [selection-end] var(--wp-ui-menu-selection-indicator-gap) [prefix-start] max-content [prefix-end] var(--wp-ui-menu-group-prefix-gap) [content-start] minmax(0,1fr) [content-end] var(--wp-ui-menu-item-padding-inline) [item-padding-end];min-width:0}.e05914e1005d7c2e__radio-group,.f11085533c0056b0__group{grid-column:1/-1}._33f07ab17005471d__list:has(>._5c913bce0d8bb0d6__item>._64924ecabf65a5d6__item-prefix),.e05914e1005d7c2e__radio-group:has(>._5c913bce0d8bb0d6__item>._64924ecabf65a5d6__item-prefix),.f11085533c0056b0__group:has(>._5c913bce0d8bb0d6__item>._64924ecabf65a5d6__item-prefix){--wp-ui-menu-group-prefix-gap:var(--wpds-dimension-gap-xs,4px)}._4a0fd085d76fd23c__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;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-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);grid-column:1/-1;line-height:var(--wpds-typography-line-height-xs,16px);min-height:var(--wpds-dimension-size-md,32px);padding-block:var(--wpds-dimension-padding-xs,4px);padding-inline:var(--wp-ui-menu-group-head-padding-inline);text-transform:uppercase}.bfc11368eadf3b39__separator{background-color:var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);grid-column:1/-1;height:var(--wpds-border-width-xs,1px);margin-block:var(--wpds-dimension-gap-xs,4px);margin-inline:var(--wp-ui-menu-group-head-padding-inline);@media (forced-colors:active){background-color:CanvasText}}._5c913bce0d8bb0d6__item{--wp-ui-menu-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-menu-item-padding-block:var(--wpds-dimension-padding-xs,4px);--_gcd-a-border-radius:var(--wpds-border-radius-sm,2px);align-content:center;align-items:start;border-radius:var(--wpds-border-radius-sm,2px);display:grid;gap:0;grid-column:1/-1;grid-template-columns:[item-padding-start] var(--wp-ui-menu-item-padding-inline) [selection-start] var(--wp-ui-menu-selection-indicator-track-size) [selection-end] var(--wp-ui-menu-selection-indicator-gap) [prefix-start] max-content [prefix-end] var(--wp-ui-menu-group-prefix-gap) [content-start] minmax(0,1fr) [content-end] var(--wp-ui-menu-item-padding-inline) [item-padding-end];justify-content:stretch;min-height:var(--wp-ui-menu-item-height);min-width:0;padding-block:var(--wp-ui-menu-item-padding-block);scroll-margin:var(--wp-ui-menu-popup-padding);text-decoration:none;user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&[href]{cursor:pointer}@supports (grid-template-columns:subgrid){grid-template-columns:subgrid}&[data-highlighted]:not([aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:none;@media (forced-colors:active){--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid Highlight;--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid Highlight}}&[aria-disabled=true]{background-color:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}}._42313b48c5459be3__item-selection-indicator,._64924ecabf65a5d6__item-prefix,.af879698ede76757__item-content{grid-row:1}._42313b48c5459be3__item-selection-indicator{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;grid-column:selection-start/selection-end;height:var(--_wp-ui-menu-item-label-line-height);justify-content:center;justify-self:center;pointer-events:none;width:var(--wp-ui-menu-selection-indicator-size);&[data-unchecked]{opacity:0}}._99c5bd141cbf516f__checkbox-selection-icon{translate:0 1px}._59aa9b3b3a651148__radio-selection-icon{fill:currentColor;height:var(--wpds-dimension-size-xs,20px);width:var(--wpds-dimension-size-xs,20px)}._64924ecabf65a5d6__item-prefix{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;gap:var(--wpds-dimension-gap-xs,4px);grid-column:prefix-start/prefix-end;justify-content:center;min-width:0}.a836378335a4cbf1__prefix-icon{align-self:flex-start;flex-shrink:0;margin-block-start:calc((var(--_wp-ui-menu-item-label-line-height) - var(--_wp-ui-menu-prefix-icon-size))/2)}.af879698ede76757__item-content{align-items:center;align-self:stretch;box-sizing:border-box;display:grid;grid-column:content-start/content-end;grid-template-columns:[label-start] minmax(0,1fr) [label-end suffix-start] auto [suffix-end shortcut-start] auto [shortcut-end trailing-start] auto [trailing-end];min-width:0;pointer-events:none}._943a932d9f81c78c__item-children{display:inline-flex;flex-direction:column;gap:2px;grid-column:label-start/label-end;min-width:0}._5ed41da4abcf8958__item-label{--_gcd-heading-color:currentColor;--_gcd-p-line-height:var(--_wp-ui-menu-item-label-line-height);color:inherit;line-height:var(--_wp-ui-menu-item-label-line-height);min-width:0;overflow-wrap:anywhere}.fa88c9f1a96a4c5a__item-description{--_gcd-heading-color:var(--wpds-color-foreground-content-neutral-weak,#707070);color:var(--wpds-color-foreground-content-neutral-weak,#707070);overflow-wrap:anywhere;padding-block-end:var(--wpds-dimension-padding-xs,4px)}._091406749ed93e6e__item-suffix{align-items:center;display:flex;gap:var(--wpds-dimension-gap-xs,4px);grid-column:suffix-start/suffix-end}._091406749ed93e6e__item-suffix,._23630f40071a29ff__item-shortcut{color:var(--wpds-color-foreground-content-neutral-weak,#707070);margin-inline-start:var(--wpds-dimension-gap-md,12px)}._23630f40071a29ff__item-shortcut{grid-column:shortcut-start/shortcut-end}._06be17a91bf434a0__item-trailing{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;grid-column:trailing-start/trailing-end;margin-inline-start:var(--wpds-dimension-gap-md,12px)}._943a932d9f81c78c__item-children+:is(._091406749ed93e6e__item-suffix,._23630f40071a29ff__item-shortcut,._06be17a91bf434a0__item-trailing){margin-inline-start:var(--wpds-dimension-gap-xl,24px)}._23630f40071a29ff__item-shortcut+._06be17a91bf434a0__item-trailing{margin-inline-start:var(--wpds-dimension-gap-xs,4px)}.b78aec79bf93eba0__submenu-chevron{margin-inline-end:calc(var(--wpds-dimension-gap-sm, 8px)*-1)}.b78aec79bf93eba0__submenu-chevron:dir(rtl){transform:rotate(180deg)}._60da3b6f9718cf76__external-link-indicator{display:inline-block;font-weight:var(--wpds-typography-font-weight-default,400);line-height:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px);text-decoration:none}._60da3b6f9718cf76__external-link-indicator:after{content:"\\2197"}._60da3b6f9718cf76__external-link-indicator:dir(rtl):after{content:"\\2196"}._5c913bce0d8bb0d6__item[aria-disabled=true] ._06be17a91bf434a0__item-trailing,._5c913bce0d8bb0d6__item[aria-disabled=true] ._091406749ed93e6e__item-suffix,._5c913bce0d8bb0d6__item[aria-disabled=true] ._23630f40071a29ff__item-shortcut,._5c913bce0d8bb0d6__item[aria-disabled=true] ._42313b48c5459be3__item-selection-indicator,._5c913bce0d8bb0d6__item[aria-disabled=true] ._64924ecabf65a5d6__item-prefix,._5c913bce0d8bb0d6__item[aria-disabled=true] .fa88c9f1a96a4c5a__item-description,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._06be17a91bf434a0__item-trailing,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._091406749ed93e6e__item-suffix,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._23630f40071a29ff__item-shortcut,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._42313b48c5459be3__item-selection-indicator,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._64924ecabf65a5d6__item-prefix,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) .fa88c9f1a96a4c5a__item-description{--_gcd-heading-color:currentColor;color:inherit}}}');var Uge={positioner:"d61e2d85c0ee0699__positioner",popup:"_34e81249f419a5a5__popup","item-selection-indicator":"_42313b48c5459be3__item-selection-indicator","is-root":"_087a537b24fee6a1__is-root _380b81b8f79fb10f__dropdown-motion","is-submenu":"_6d3b567f6289bdc2__is-submenu _7f344b94e270e039__dropdown-motion--fade-only",list:"_33f07ab17005471d__list",group:"f11085533c0056b0__group","radio-group":"e05914e1005d7c2e__radio-group",item:"_5c913bce0d8bb0d6__item","item-prefix":"_64924ecabf65a5d6__item-prefix","group-label":"_4a0fd085d76fd23c__group-label",separator:"bfc11368eadf3b39__separator","item-content":"af879698ede76757__item-content","checkbox-selection-icon":"_99c5bd141cbf516f__checkbox-selection-icon","radio-selection-icon":"_59aa9b3b3a651148__radio-selection-icon","prefix-icon":"a836378335a4cbf1__prefix-icon","item-children":"_943a932d9f81c78c__item-children","item-label":"_5ed41da4abcf8958__item-label","item-description":"fa88c9f1a96a4c5a__item-description","item-suffix":"_091406749ed93e6e__item-suffix","item-shortcut":"_23630f40071a29ff__item-shortcut","item-trailing":"_06be17a91bf434a0__item-trailing","submenu-chevron":"b78aec79bf93eba0__submenu-chevron","external-link-indicator":"_60da3b6f9718cf76__external-link-indicator"},Yge=(0,Wge.forwardRef)(function({children:t,className:o,openInNewTab:r=!1,target:n,prefix:i,shortcut:s,suffix:a,"aria-describedby":l,"aria-keyshortcuts":d,"aria-label":u,"aria-labelledby":f,rel:p,...m},g){let b=r||/^_blank$/i.test(n??"")?(0,dR.jsx)("span",{className:Uge["external-link-indicator"],role:"img","aria-label":(0,Gge.__)("(opens in a new tab)")}):null,{contentChildren:v,contentContextValue:_,itemAriaProps:y,shortcutDescriptionId:w}=up(t,{"aria-describedby":l,"aria-keyshortcuts":d,"aria-label":u,"aria-labelledby":f,labelTrailing:b,shortcut:s});return(0,dR.jsx)(qt.LinkItem,{ref:g,...m,...y,rel:p,target:n??(r?"_blank":void 0),className:U(hQe.a,bQe["box-sizing"],Uge.item,o),children:(0,dR.jsx)(ed.Provider,{value:_,children:(0,dR.jsx)(fp,{prefix:i,shortcut:s,shortcutDescriptionId:w,suffix:a,children:v})})})});var ehe=c(D(),1);var Kge=c(D(),1);var qge=c(T(),1),H7=(0,Kge.forwardRef)(function({container:t,...o},r){return(0,qge.jsx)(qt.Portal,{ref:r,container:t??P0(),...o})});var Xge=c(D(),1);var U7={align:"start",sideOffset:8,collisionPadding:12};var Jge=c(T(),1),J$="data-wp-hash";function eY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&vQe(document)),e.__wpStyleRuntime}function _Qe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${J$}]`))if(o.getAttribute(J$)===t)return!0;return!1}function Zge(e,t,o){if(!e.head)return;let r=eY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(_Qe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(J$,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function vQe(e){let t=eY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Zge(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 Qge(e,t){let o=eY();o.styles.set(e,t);for(let r of o.documents.keys())Zge(r,e,t)}typeof process>"u",Qge("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var yQe={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",Qge("3be1f8dffe",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._380b81b8f79fb10f__dropdown-motion,._7f344b94e270e039__dropdown-motion--fade-only{--wp-ui-dropdown-slide-distance:4px;--wp-ui-dropdown-slide-duration:var(--wpds-motion-duration-md,200ms);--wp-ui-dropdown-slide-easing:var(--wpds-motion-easing-expressive,cubic-bezier(0.25,0,0,1));--wp-ui-dropdown-fade-duration:var(--wpds-motion-duration-sm,100ms);--wp-ui-dropdown-fade-easing:linear;@media not (prefers-reduced-motion){transition-duration:var(--wp-ui-dropdown-slide-duration),var(--wp-ui-dropdown-fade-duration);transition-property:transform,opacity;transition-timing-function:var(--wp-ui-dropdown-slide-easing),var(--wp-ui-dropdown-fade-easing);will-change:transform,opacity}opacity:1;&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}}._380b81b8f79fb10f__dropdown-motion{transform:translate(0);&[data-side=bottom][data-ending-style],&[data-side=bottom][data-starting-style]{transform:translateY(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=top][data-ending-style],&[data-side=top][data-starting-style]{transform:translateY(var(--wp-ui-dropdown-slide-distance))}&[data-side=left][data-ending-style],&[data-side=left][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=right][data-ending-style],&[data-side=right][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=inline-start][data-ending-style],&[data-side=inline-start][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=inline-end][data-ending-style],&[data-side=inline-end][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-start][data-ending-style],&:dir(rtl)[data-side=inline-start][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-end][data-ending-style],&:dir(rtl)[data-side=inline-end][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.d61e2d85c0ee0699__positioner{z-index:var(--wp-ui-menu-z-index,initial)}._34e81249f419a5a5__popup{--wp-ui-menu-popup-padding:var(--wpds-dimension-padding-xs,4px);--wp-ui-menu-min-width:160px;--wp-ui-menu-max-width:var(--wpds-dimension-surface-width-md,400px);--wp-ui-menu-item-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-menu-group-head-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-menu-selection-indicator-track-size:0px;--wp-ui-menu-selection-indicator-size:var(--wpds-dimension-size-sm,24px);--wp-ui-menu-selection-indicator-gap:0px;--_wp-ui-menu-elevation-md:0px 2px 3px 0px #0000000d,0px 4px 5px 0px #0000000a,0px 12px 12px 0px #00000008,0px 16px 16px 0px #00000005;background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-menu-elevation-md);max-height:min(var(--available-height),480px,60dvh);max-width:min(var(--available-width),var(--wp-ui-menu-max-width));min-width:min(var(--available-width),var(--wp-ui-menu-min-width));outline:none;overflow-block:auto;overscroll-behavior:none;padding:var(--wp-ui-menu-popup-padding);scroll-padding:var(--wp-ui-menu-popup-padding);&:has(._42313b48c5459be3__item-selection-indicator){--wp-ui-menu-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-menu-selection-indicator-track-size:var(--wpds-dimension-size-2xs,16px);--wp-ui-menu-selection-indicator-gap:var(--wpds-dimension-gap-sm,8px)}}._33f07ab17005471d__list{--_wp-ui-menu-item-label-line-height:var(--wpds-typography-line-height-sm,20px);color:var(--wpds-color-foreground-interactive-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-md,13px);line-height:var(--_wp-ui-menu-item-label-line-height)}._33f07ab17005471d__list,.e05914e1005d7c2e__radio-group,.f11085533c0056b0__group{--wp-ui-menu-group-prefix-gap:0px;display:grid;grid-template-columns:[item-padding-start] var(--wp-ui-menu-item-padding-inline) [selection-start] var(--wp-ui-menu-selection-indicator-track-size) [selection-end] var(--wp-ui-menu-selection-indicator-gap) [prefix-start] max-content [prefix-end] var(--wp-ui-menu-group-prefix-gap) [content-start] minmax(0,1fr) [content-end] var(--wp-ui-menu-item-padding-inline) [item-padding-end];min-width:0}.e05914e1005d7c2e__radio-group,.f11085533c0056b0__group{grid-column:1/-1}._33f07ab17005471d__list:has(>._5c913bce0d8bb0d6__item>._64924ecabf65a5d6__item-prefix),.e05914e1005d7c2e__radio-group:has(>._5c913bce0d8bb0d6__item>._64924ecabf65a5d6__item-prefix),.f11085533c0056b0__group:has(>._5c913bce0d8bb0d6__item>._64924ecabf65a5d6__item-prefix){--wp-ui-menu-group-prefix-gap:var(--wpds-dimension-gap-xs,4px)}._4a0fd085d76fd23c__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;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-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);grid-column:1/-1;line-height:var(--wpds-typography-line-height-xs,16px);min-height:var(--wpds-dimension-size-md,32px);padding-block:var(--wpds-dimension-padding-xs,4px);padding-inline:var(--wp-ui-menu-group-head-padding-inline);text-transform:uppercase}.bfc11368eadf3b39__separator{background-color:var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);grid-column:1/-1;height:var(--wpds-border-width-xs,1px);margin-block:var(--wpds-dimension-gap-xs,4px);margin-inline:var(--wp-ui-menu-group-head-padding-inline);@media (forced-colors:active){background-color:CanvasText}}._5c913bce0d8bb0d6__item{--wp-ui-menu-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-menu-item-padding-block:var(--wpds-dimension-padding-xs,4px);--_gcd-a-border-radius:var(--wpds-border-radius-sm,2px);align-content:center;align-items:start;border-radius:var(--wpds-border-radius-sm,2px);display:grid;gap:0;grid-column:1/-1;grid-template-columns:[item-padding-start] var(--wp-ui-menu-item-padding-inline) [selection-start] var(--wp-ui-menu-selection-indicator-track-size) [selection-end] var(--wp-ui-menu-selection-indicator-gap) [prefix-start] max-content [prefix-end] var(--wp-ui-menu-group-prefix-gap) [content-start] minmax(0,1fr) [content-end] var(--wp-ui-menu-item-padding-inline) [item-padding-end];justify-content:stretch;min-height:var(--wp-ui-menu-item-height);min-width:0;padding-block:var(--wp-ui-menu-item-padding-block);scroll-margin:var(--wp-ui-menu-popup-padding);text-decoration:none;user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&[href]{cursor:pointer}@supports (grid-template-columns:subgrid){grid-template-columns:subgrid}&[data-highlighted]:not([aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:none;@media (forced-colors:active){--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid Highlight;--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid Highlight}}&[aria-disabled=true]{background-color:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}}._42313b48c5459be3__item-selection-indicator,._64924ecabf65a5d6__item-prefix,.af879698ede76757__item-content{grid-row:1}._42313b48c5459be3__item-selection-indicator{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;grid-column:selection-start/selection-end;height:var(--_wp-ui-menu-item-label-line-height);justify-content:center;justify-self:center;pointer-events:none;width:var(--wp-ui-menu-selection-indicator-size);&[data-unchecked]{opacity:0}}._99c5bd141cbf516f__checkbox-selection-icon{translate:0 1px}._59aa9b3b3a651148__radio-selection-icon{fill:currentColor;height:var(--wpds-dimension-size-xs,20px);width:var(--wpds-dimension-size-xs,20px)}._64924ecabf65a5d6__item-prefix{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;gap:var(--wpds-dimension-gap-xs,4px);grid-column:prefix-start/prefix-end;justify-content:center;min-width:0}.a836378335a4cbf1__prefix-icon{align-self:flex-start;flex-shrink:0;margin-block-start:calc((var(--_wp-ui-menu-item-label-line-height) - var(--_wp-ui-menu-prefix-icon-size))/2)}.af879698ede76757__item-content{align-items:center;align-self:stretch;box-sizing:border-box;display:grid;grid-column:content-start/content-end;grid-template-columns:[label-start] minmax(0,1fr) [label-end suffix-start] auto [suffix-end shortcut-start] auto [shortcut-end trailing-start] auto [trailing-end];min-width:0;pointer-events:none}._943a932d9f81c78c__item-children{display:inline-flex;flex-direction:column;gap:2px;grid-column:label-start/label-end;min-width:0}._5ed41da4abcf8958__item-label{--_gcd-heading-color:currentColor;--_gcd-p-line-height:var(--_wp-ui-menu-item-label-line-height);color:inherit;line-height:var(--_wp-ui-menu-item-label-line-height);min-width:0;overflow-wrap:anywhere}.fa88c9f1a96a4c5a__item-description{--_gcd-heading-color:var(--wpds-color-foreground-content-neutral-weak,#707070);color:var(--wpds-color-foreground-content-neutral-weak,#707070);overflow-wrap:anywhere;padding-block-end:var(--wpds-dimension-padding-xs,4px)}._091406749ed93e6e__item-suffix{align-items:center;display:flex;gap:var(--wpds-dimension-gap-xs,4px);grid-column:suffix-start/suffix-end}._091406749ed93e6e__item-suffix,._23630f40071a29ff__item-shortcut{color:var(--wpds-color-foreground-content-neutral-weak,#707070);margin-inline-start:var(--wpds-dimension-gap-md,12px)}._23630f40071a29ff__item-shortcut{grid-column:shortcut-start/shortcut-end}._06be17a91bf434a0__item-trailing{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;grid-column:trailing-start/trailing-end;margin-inline-start:var(--wpds-dimension-gap-md,12px)}._943a932d9f81c78c__item-children+:is(._091406749ed93e6e__item-suffix,._23630f40071a29ff__item-shortcut,._06be17a91bf434a0__item-trailing){margin-inline-start:var(--wpds-dimension-gap-xl,24px)}._23630f40071a29ff__item-shortcut+._06be17a91bf434a0__item-trailing{margin-inline-start:var(--wpds-dimension-gap-xs,4px)}.b78aec79bf93eba0__submenu-chevron{margin-inline-end:calc(var(--wpds-dimension-gap-sm, 8px)*-1)}.b78aec79bf93eba0__submenu-chevron:dir(rtl){transform:rotate(180deg)}._60da3b6f9718cf76__external-link-indicator{display:inline-block;font-weight:var(--wpds-typography-font-weight-default,400);line-height:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px);text-decoration:none}._60da3b6f9718cf76__external-link-indicator:after{content:"\\2197"}._60da3b6f9718cf76__external-link-indicator:dir(rtl):after{content:"\\2196"}._5c913bce0d8bb0d6__item[aria-disabled=true] ._06be17a91bf434a0__item-trailing,._5c913bce0d8bb0d6__item[aria-disabled=true] ._091406749ed93e6e__item-suffix,._5c913bce0d8bb0d6__item[aria-disabled=true] ._23630f40071a29ff__item-shortcut,._5c913bce0d8bb0d6__item[aria-disabled=true] ._42313b48c5459be3__item-selection-indicator,._5c913bce0d8bb0d6__item[aria-disabled=true] ._64924ecabf65a5d6__item-prefix,._5c913bce0d8bb0d6__item[aria-disabled=true] .fa88c9f1a96a4c5a__item-description,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._06be17a91bf434a0__item-trailing,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._091406749ed93e6e__item-suffix,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._23630f40071a29ff__item-shortcut,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._42313b48c5459be3__item-selection-indicator,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._64924ecabf65a5d6__item-prefix,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) .fa88c9f1a96a4c5a__item-description{--_gcd-heading-color:currentColor;color:inherit}}}');var wQe={positioner:"d61e2d85c0ee0699__positioner",popup:"_34e81249f419a5a5__popup","item-selection-indicator":"_42313b48c5459be3__item-selection-indicator","is-root":"_087a537b24fee6a1__is-root _380b81b8f79fb10f__dropdown-motion","is-submenu":"_6d3b567f6289bdc2__is-submenu _7f344b94e270e039__dropdown-motion--fade-only",list:"_33f07ab17005471d__list",group:"f11085533c0056b0__group","radio-group":"e05914e1005d7c2e__radio-group",item:"_5c913bce0d8bb0d6__item","item-prefix":"_64924ecabf65a5d6__item-prefix","group-label":"_4a0fd085d76fd23c__group-label",separator:"bfc11368eadf3b39__separator","item-content":"af879698ede76757__item-content","checkbox-selection-icon":"_99c5bd141cbf516f__checkbox-selection-icon","radio-selection-icon":"_59aa9b3b3a651148__radio-selection-icon","prefix-icon":"a836378335a4cbf1__prefix-icon","item-children":"_943a932d9f81c78c__item-children","item-label":"_5ed41da4abcf8958__item-label","item-description":"fa88c9f1a96a4c5a__item-description","item-suffix":"_091406749ed93e6e__item-suffix","item-shortcut":"_23630f40071a29ff__item-shortcut","item-trailing":"_06be17a91bf434a0__item-trailing","submenu-chevron":"b78aec79bf93eba0__submenu-chevron","external-link-indicator":"_60da3b6f9718cf76__external-link-indicator"},xQe={side:"inline-end",align:"start",sideOffset:-4,collisionPadding:12},W7=(0,Xge.forwardRef)(function({className:t,...o},r){let{isSubmenu:n}=A7(),i=n?xQe:U7;return(0,Jge.jsx)(qt.Positioner,{...i,...o,ref:r,className:U(yQe["box-sizing"],wQe.positioner,t)})});var uR=c(T(),1),tY="data-wp-hash";function oY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&SQe(document)),e.__wpStyleRuntime}function kQe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${tY}]`))if(o.getAttribute(tY)===t)return!0;return!1}function the(e,t,o){if(!e.head)return;let r=oY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(kQe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(tY,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function SQe(e){let t=oY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)the(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 CQe(e,t){let o=oY();o.styles.set(e,t);for(let r of o.documents.keys())the(r,e,t)}typeof process>"u",CQe("3be1f8dffe",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._380b81b8f79fb10f__dropdown-motion,._7f344b94e270e039__dropdown-motion--fade-only{--wp-ui-dropdown-slide-distance:4px;--wp-ui-dropdown-slide-duration:var(--wpds-motion-duration-md,200ms);--wp-ui-dropdown-slide-easing:var(--wpds-motion-easing-expressive,cubic-bezier(0.25,0,0,1));--wp-ui-dropdown-fade-duration:var(--wpds-motion-duration-sm,100ms);--wp-ui-dropdown-fade-easing:linear;@media not (prefers-reduced-motion){transition-duration:var(--wp-ui-dropdown-slide-duration),var(--wp-ui-dropdown-fade-duration);transition-property:transform,opacity;transition-timing-function:var(--wp-ui-dropdown-slide-easing),var(--wp-ui-dropdown-fade-easing);will-change:transform,opacity}opacity:1;&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}}._380b81b8f79fb10f__dropdown-motion{transform:translate(0);&[data-side=bottom][data-ending-style],&[data-side=bottom][data-starting-style]{transform:translateY(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=top][data-ending-style],&[data-side=top][data-starting-style]{transform:translateY(var(--wp-ui-dropdown-slide-distance))}&[data-side=left][data-ending-style],&[data-side=left][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=right][data-ending-style],&[data-side=right][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=inline-start][data-ending-style],&[data-side=inline-start][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=inline-end][data-ending-style],&[data-side=inline-end][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-start][data-ending-style],&:dir(rtl)[data-side=inline-start][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-end][data-ending-style],&:dir(rtl)[data-side=inline-end][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.d61e2d85c0ee0699__positioner{z-index:var(--wp-ui-menu-z-index,initial)}._34e81249f419a5a5__popup{--wp-ui-menu-popup-padding:var(--wpds-dimension-padding-xs,4px);--wp-ui-menu-min-width:160px;--wp-ui-menu-max-width:var(--wpds-dimension-surface-width-md,400px);--wp-ui-menu-item-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-menu-group-head-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-menu-selection-indicator-track-size:0px;--wp-ui-menu-selection-indicator-size:var(--wpds-dimension-size-sm,24px);--wp-ui-menu-selection-indicator-gap:0px;--_wp-ui-menu-elevation-md:0px 2px 3px 0px #0000000d,0px 4px 5px 0px #0000000a,0px 12px 12px 0px #00000008,0px 16px 16px 0px #00000005;background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-menu-elevation-md);max-height:min(var(--available-height),480px,60dvh);max-width:min(var(--available-width),var(--wp-ui-menu-max-width));min-width:min(var(--available-width),var(--wp-ui-menu-min-width));outline:none;overflow-block:auto;overscroll-behavior:none;padding:var(--wp-ui-menu-popup-padding);scroll-padding:var(--wp-ui-menu-popup-padding);&:has(._42313b48c5459be3__item-selection-indicator){--wp-ui-menu-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-menu-selection-indicator-track-size:var(--wpds-dimension-size-2xs,16px);--wp-ui-menu-selection-indicator-gap:var(--wpds-dimension-gap-sm,8px)}}._33f07ab17005471d__list{--_wp-ui-menu-item-label-line-height:var(--wpds-typography-line-height-sm,20px);color:var(--wpds-color-foreground-interactive-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-md,13px);line-height:var(--_wp-ui-menu-item-label-line-height)}._33f07ab17005471d__list,.e05914e1005d7c2e__radio-group,.f11085533c0056b0__group{--wp-ui-menu-group-prefix-gap:0px;display:grid;grid-template-columns:[item-padding-start] var(--wp-ui-menu-item-padding-inline) [selection-start] var(--wp-ui-menu-selection-indicator-track-size) [selection-end] var(--wp-ui-menu-selection-indicator-gap) [prefix-start] max-content [prefix-end] var(--wp-ui-menu-group-prefix-gap) [content-start] minmax(0,1fr) [content-end] var(--wp-ui-menu-item-padding-inline) [item-padding-end];min-width:0}.e05914e1005d7c2e__radio-group,.f11085533c0056b0__group{grid-column:1/-1}._33f07ab17005471d__list:has(>._5c913bce0d8bb0d6__item>._64924ecabf65a5d6__item-prefix),.e05914e1005d7c2e__radio-group:has(>._5c913bce0d8bb0d6__item>._64924ecabf65a5d6__item-prefix),.f11085533c0056b0__group:has(>._5c913bce0d8bb0d6__item>._64924ecabf65a5d6__item-prefix){--wp-ui-menu-group-prefix-gap:var(--wpds-dimension-gap-xs,4px)}._4a0fd085d76fd23c__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;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-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);grid-column:1/-1;line-height:var(--wpds-typography-line-height-xs,16px);min-height:var(--wpds-dimension-size-md,32px);padding-block:var(--wpds-dimension-padding-xs,4px);padding-inline:var(--wp-ui-menu-group-head-padding-inline);text-transform:uppercase}.bfc11368eadf3b39__separator{background-color:var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);grid-column:1/-1;height:var(--wpds-border-width-xs,1px);margin-block:var(--wpds-dimension-gap-xs,4px);margin-inline:var(--wp-ui-menu-group-head-padding-inline);@media (forced-colors:active){background-color:CanvasText}}._5c913bce0d8bb0d6__item{--wp-ui-menu-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-menu-item-padding-block:var(--wpds-dimension-padding-xs,4px);--_gcd-a-border-radius:var(--wpds-border-radius-sm,2px);align-content:center;align-items:start;border-radius:var(--wpds-border-radius-sm,2px);display:grid;gap:0;grid-column:1/-1;grid-template-columns:[item-padding-start] var(--wp-ui-menu-item-padding-inline) [selection-start] var(--wp-ui-menu-selection-indicator-track-size) [selection-end] var(--wp-ui-menu-selection-indicator-gap) [prefix-start] max-content [prefix-end] var(--wp-ui-menu-group-prefix-gap) [content-start] minmax(0,1fr) [content-end] var(--wp-ui-menu-item-padding-inline) [item-padding-end];justify-content:stretch;min-height:var(--wp-ui-menu-item-height);min-width:0;padding-block:var(--wp-ui-menu-item-padding-block);scroll-margin:var(--wp-ui-menu-popup-padding);text-decoration:none;user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&[href]{cursor:pointer}@supports (grid-template-columns:subgrid){grid-template-columns:subgrid}&[data-highlighted]:not([aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:none;@media (forced-colors:active){--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid Highlight;--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid Highlight}}&[aria-disabled=true]{background-color:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}}._42313b48c5459be3__item-selection-indicator,._64924ecabf65a5d6__item-prefix,.af879698ede76757__item-content{grid-row:1}._42313b48c5459be3__item-selection-indicator{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;grid-column:selection-start/selection-end;height:var(--_wp-ui-menu-item-label-line-height);justify-content:center;justify-self:center;pointer-events:none;width:var(--wp-ui-menu-selection-indicator-size);&[data-unchecked]{opacity:0}}._99c5bd141cbf516f__checkbox-selection-icon{translate:0 1px}._59aa9b3b3a651148__radio-selection-icon{fill:currentColor;height:var(--wpds-dimension-size-xs,20px);width:var(--wpds-dimension-size-xs,20px)}._64924ecabf65a5d6__item-prefix{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;gap:var(--wpds-dimension-gap-xs,4px);grid-column:prefix-start/prefix-end;justify-content:center;min-width:0}.a836378335a4cbf1__prefix-icon{align-self:flex-start;flex-shrink:0;margin-block-start:calc((var(--_wp-ui-menu-item-label-line-height) - var(--_wp-ui-menu-prefix-icon-size))/2)}.af879698ede76757__item-content{align-items:center;align-self:stretch;box-sizing:border-box;display:grid;grid-column:content-start/content-end;grid-template-columns:[label-start] minmax(0,1fr) [label-end suffix-start] auto [suffix-end shortcut-start] auto [shortcut-end trailing-start] auto [trailing-end];min-width:0;pointer-events:none}._943a932d9f81c78c__item-children{display:inline-flex;flex-direction:column;gap:2px;grid-column:label-start/label-end;min-width:0}._5ed41da4abcf8958__item-label{--_gcd-heading-color:currentColor;--_gcd-p-line-height:var(--_wp-ui-menu-item-label-line-height);color:inherit;line-height:var(--_wp-ui-menu-item-label-line-height);min-width:0;overflow-wrap:anywhere}.fa88c9f1a96a4c5a__item-description{--_gcd-heading-color:var(--wpds-color-foreground-content-neutral-weak,#707070);color:var(--wpds-color-foreground-content-neutral-weak,#707070);overflow-wrap:anywhere;padding-block-end:var(--wpds-dimension-padding-xs,4px)}._091406749ed93e6e__item-suffix{align-items:center;display:flex;gap:var(--wpds-dimension-gap-xs,4px);grid-column:suffix-start/suffix-end}._091406749ed93e6e__item-suffix,._23630f40071a29ff__item-shortcut{color:var(--wpds-color-foreground-content-neutral-weak,#707070);margin-inline-start:var(--wpds-dimension-gap-md,12px)}._23630f40071a29ff__item-shortcut{grid-column:shortcut-start/shortcut-end}._06be17a91bf434a0__item-trailing{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;grid-column:trailing-start/trailing-end;margin-inline-start:var(--wpds-dimension-gap-md,12px)}._943a932d9f81c78c__item-children+:is(._091406749ed93e6e__item-suffix,._23630f40071a29ff__item-shortcut,._06be17a91bf434a0__item-trailing){margin-inline-start:var(--wpds-dimension-gap-xl,24px)}._23630f40071a29ff__item-shortcut+._06be17a91bf434a0__item-trailing{margin-inline-start:var(--wpds-dimension-gap-xs,4px)}.b78aec79bf93eba0__submenu-chevron{margin-inline-end:calc(var(--wpds-dimension-gap-sm, 8px)*-1)}.b78aec79bf93eba0__submenu-chevron:dir(rtl){transform:rotate(180deg)}._60da3b6f9718cf76__external-link-indicator{display:inline-block;font-weight:var(--wpds-typography-font-weight-default,400);line-height:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px);text-decoration:none}._60da3b6f9718cf76__external-link-indicator:after{content:"\\2197"}._60da3b6f9718cf76__external-link-indicator:dir(rtl):after{content:"\\2196"}._5c913bce0d8bb0d6__item[aria-disabled=true] ._06be17a91bf434a0__item-trailing,._5c913bce0d8bb0d6__item[aria-disabled=true] ._091406749ed93e6e__item-suffix,._5c913bce0d8bb0d6__item[aria-disabled=true] ._23630f40071a29ff__item-shortcut,._5c913bce0d8bb0d6__item[aria-disabled=true] ._42313b48c5459be3__item-selection-indicator,._5c913bce0d8bb0d6__item[aria-disabled=true] ._64924ecabf65a5d6__item-prefix,._5c913bce0d8bb0d6__item[aria-disabled=true] .fa88c9f1a96a4c5a__item-description,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._06be17a91bf434a0__item-trailing,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._091406749ed93e6e__item-suffix,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._23630f40071a29ff__item-shortcut,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._42313b48c5459be3__item-selection-indicator,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._64924ecabf65a5d6__item-prefix,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) .fa88c9f1a96a4c5a__item-description{--_gcd-heading-color:currentColor;color:inherit}}}');var G7={positioner:"d61e2d85c0ee0699__positioner",popup:"_34e81249f419a5a5__popup","item-selection-indicator":"_42313b48c5459be3__item-selection-indicator","is-root":"_087a537b24fee6a1__is-root _380b81b8f79fb10f__dropdown-motion","is-submenu":"_6d3b567f6289bdc2__is-submenu _7f344b94e270e039__dropdown-motion--fade-only",list:"_33f07ab17005471d__list",group:"f11085533c0056b0__group","radio-group":"e05914e1005d7c2e__radio-group",item:"_5c913bce0d8bb0d6__item","item-prefix":"_64924ecabf65a5d6__item-prefix","group-label":"_4a0fd085d76fd23c__group-label",separator:"bfc11368eadf3b39__separator","item-content":"af879698ede76757__item-content","checkbox-selection-icon":"_99c5bd141cbf516f__checkbox-selection-icon","radio-selection-icon":"_59aa9b3b3a651148__radio-selection-icon","prefix-icon":"a836378335a4cbf1__prefix-icon","item-children":"_943a932d9f81c78c__item-children","item-label":"_5ed41da4abcf8958__item-label","item-description":"fa88c9f1a96a4c5a__item-description","item-suffix":"_091406749ed93e6e__item-suffix","item-shortcut":"_23630f40071a29ff__item-shortcut","item-trailing":"_06be17a91bf434a0__item-trailing","submenu-chevron":"b78aec79bf93eba0__submenu-chevron","external-link-indicator":"_60da3b6f9718cf76__external-link-indicator"},ohe=(0,ehe.forwardRef)(function({children:t,className:o,portal:r,positioner:n,...i},s){let{isSubmenu:a}=A7(),l=(0,uR.jsx)(qt.Popup,{ref:s,className:U(G7.popup,a?G7["is-submenu"]:G7["is-root"],o),...i,children:(0,uR.jsx)("div",{className:G7.list,children:t})}),d=dp(n,(0,uR.jsx)(W7,{}),l);return dp(r,(0,uR.jsx)(H7,{}),d)});var rhe=c(D(),1);var ihe=c(T(),1),rY="data-wp-hash";function nY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&TQe(document)),e.__wpStyleRuntime}function EQe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${rY}]`))if(o.getAttribute(rY)===t)return!0;return!1}function nhe(e,t,o){if(!e.head)return;let r=nY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(EQe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(rY,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function TQe(e){let t=nY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)nhe(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 RQe(e,t){let o=nY();o.styles.set(e,t);for(let r of o.documents.keys())nhe(r,e,t)}typeof process>"u",RQe("3be1f8dffe",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._380b81b8f79fb10f__dropdown-motion,._7f344b94e270e039__dropdown-motion--fade-only{--wp-ui-dropdown-slide-distance:4px;--wp-ui-dropdown-slide-duration:var(--wpds-motion-duration-md,200ms);--wp-ui-dropdown-slide-easing:var(--wpds-motion-easing-expressive,cubic-bezier(0.25,0,0,1));--wp-ui-dropdown-fade-duration:var(--wpds-motion-duration-sm,100ms);--wp-ui-dropdown-fade-easing:linear;@media not (prefers-reduced-motion){transition-duration:var(--wp-ui-dropdown-slide-duration),var(--wp-ui-dropdown-fade-duration);transition-property:transform,opacity;transition-timing-function:var(--wp-ui-dropdown-slide-easing),var(--wp-ui-dropdown-fade-easing);will-change:transform,opacity}opacity:1;&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}}._380b81b8f79fb10f__dropdown-motion{transform:translate(0);&[data-side=bottom][data-ending-style],&[data-side=bottom][data-starting-style]{transform:translateY(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=top][data-ending-style],&[data-side=top][data-starting-style]{transform:translateY(var(--wp-ui-dropdown-slide-distance))}&[data-side=left][data-ending-style],&[data-side=left][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=right][data-ending-style],&[data-side=right][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=inline-start][data-ending-style],&[data-side=inline-start][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=inline-end][data-ending-style],&[data-side=inline-end][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-start][data-ending-style],&:dir(rtl)[data-side=inline-start][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-end][data-ending-style],&:dir(rtl)[data-side=inline-end][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.d61e2d85c0ee0699__positioner{z-index:var(--wp-ui-menu-z-index,initial)}._34e81249f419a5a5__popup{--wp-ui-menu-popup-padding:var(--wpds-dimension-padding-xs,4px);--wp-ui-menu-min-width:160px;--wp-ui-menu-max-width:var(--wpds-dimension-surface-width-md,400px);--wp-ui-menu-item-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-menu-group-head-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-menu-selection-indicator-track-size:0px;--wp-ui-menu-selection-indicator-size:var(--wpds-dimension-size-sm,24px);--wp-ui-menu-selection-indicator-gap:0px;--_wp-ui-menu-elevation-md:0px 2px 3px 0px #0000000d,0px 4px 5px 0px #0000000a,0px 12px 12px 0px #00000008,0px 16px 16px 0px #00000005;background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-menu-elevation-md);max-height:min(var(--available-height),480px,60dvh);max-width:min(var(--available-width),var(--wp-ui-menu-max-width));min-width:min(var(--available-width),var(--wp-ui-menu-min-width));outline:none;overflow-block:auto;overscroll-behavior:none;padding:var(--wp-ui-menu-popup-padding);scroll-padding:var(--wp-ui-menu-popup-padding);&:has(._42313b48c5459be3__item-selection-indicator){--wp-ui-menu-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-menu-selection-indicator-track-size:var(--wpds-dimension-size-2xs,16px);--wp-ui-menu-selection-indicator-gap:var(--wpds-dimension-gap-sm,8px)}}._33f07ab17005471d__list{--_wp-ui-menu-item-label-line-height:var(--wpds-typography-line-height-sm,20px);color:var(--wpds-color-foreground-interactive-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-md,13px);line-height:var(--_wp-ui-menu-item-label-line-height)}._33f07ab17005471d__list,.e05914e1005d7c2e__radio-group,.f11085533c0056b0__group{--wp-ui-menu-group-prefix-gap:0px;display:grid;grid-template-columns:[item-padding-start] var(--wp-ui-menu-item-padding-inline) [selection-start] var(--wp-ui-menu-selection-indicator-track-size) [selection-end] var(--wp-ui-menu-selection-indicator-gap) [prefix-start] max-content [prefix-end] var(--wp-ui-menu-group-prefix-gap) [content-start] minmax(0,1fr) [content-end] var(--wp-ui-menu-item-padding-inline) [item-padding-end];min-width:0}.e05914e1005d7c2e__radio-group,.f11085533c0056b0__group{grid-column:1/-1}._33f07ab17005471d__list:has(>._5c913bce0d8bb0d6__item>._64924ecabf65a5d6__item-prefix),.e05914e1005d7c2e__radio-group:has(>._5c913bce0d8bb0d6__item>._64924ecabf65a5d6__item-prefix),.f11085533c0056b0__group:has(>._5c913bce0d8bb0d6__item>._64924ecabf65a5d6__item-prefix){--wp-ui-menu-group-prefix-gap:var(--wpds-dimension-gap-xs,4px)}._4a0fd085d76fd23c__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;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-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);grid-column:1/-1;line-height:var(--wpds-typography-line-height-xs,16px);min-height:var(--wpds-dimension-size-md,32px);padding-block:var(--wpds-dimension-padding-xs,4px);padding-inline:var(--wp-ui-menu-group-head-padding-inline);text-transform:uppercase}.bfc11368eadf3b39__separator{background-color:var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);grid-column:1/-1;height:var(--wpds-border-width-xs,1px);margin-block:var(--wpds-dimension-gap-xs,4px);margin-inline:var(--wp-ui-menu-group-head-padding-inline);@media (forced-colors:active){background-color:CanvasText}}._5c913bce0d8bb0d6__item{--wp-ui-menu-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-menu-item-padding-block:var(--wpds-dimension-padding-xs,4px);--_gcd-a-border-radius:var(--wpds-border-radius-sm,2px);align-content:center;align-items:start;border-radius:var(--wpds-border-radius-sm,2px);display:grid;gap:0;grid-column:1/-1;grid-template-columns:[item-padding-start] var(--wp-ui-menu-item-padding-inline) [selection-start] var(--wp-ui-menu-selection-indicator-track-size) [selection-end] var(--wp-ui-menu-selection-indicator-gap) [prefix-start] max-content [prefix-end] var(--wp-ui-menu-group-prefix-gap) [content-start] minmax(0,1fr) [content-end] var(--wp-ui-menu-item-padding-inline) [item-padding-end];justify-content:stretch;min-height:var(--wp-ui-menu-item-height);min-width:0;padding-block:var(--wp-ui-menu-item-padding-block);scroll-margin:var(--wp-ui-menu-popup-padding);text-decoration:none;user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&[href]{cursor:pointer}@supports (grid-template-columns:subgrid){grid-template-columns:subgrid}&[data-highlighted]:not([aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:none;@media (forced-colors:active){--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid Highlight;--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid Highlight}}&[aria-disabled=true]{background-color:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}}._42313b48c5459be3__item-selection-indicator,._64924ecabf65a5d6__item-prefix,.af879698ede76757__item-content{grid-row:1}._42313b48c5459be3__item-selection-indicator{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;grid-column:selection-start/selection-end;height:var(--_wp-ui-menu-item-label-line-height);justify-content:center;justify-self:center;pointer-events:none;width:var(--wp-ui-menu-selection-indicator-size);&[data-unchecked]{opacity:0}}._99c5bd141cbf516f__checkbox-selection-icon{translate:0 1px}._59aa9b3b3a651148__radio-selection-icon{fill:currentColor;height:var(--wpds-dimension-size-xs,20px);width:var(--wpds-dimension-size-xs,20px)}._64924ecabf65a5d6__item-prefix{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;gap:var(--wpds-dimension-gap-xs,4px);grid-column:prefix-start/prefix-end;justify-content:center;min-width:0}.a836378335a4cbf1__prefix-icon{align-self:flex-start;flex-shrink:0;margin-block-start:calc((var(--_wp-ui-menu-item-label-line-height) - var(--_wp-ui-menu-prefix-icon-size))/2)}.af879698ede76757__item-content{align-items:center;align-self:stretch;box-sizing:border-box;display:grid;grid-column:content-start/content-end;grid-template-columns:[label-start] minmax(0,1fr) [label-end suffix-start] auto [suffix-end shortcut-start] auto [shortcut-end trailing-start] auto [trailing-end];min-width:0;pointer-events:none}._943a932d9f81c78c__item-children{display:inline-flex;flex-direction:column;gap:2px;grid-column:label-start/label-end;min-width:0}._5ed41da4abcf8958__item-label{--_gcd-heading-color:currentColor;--_gcd-p-line-height:var(--_wp-ui-menu-item-label-line-height);color:inherit;line-height:var(--_wp-ui-menu-item-label-line-height);min-width:0;overflow-wrap:anywhere}.fa88c9f1a96a4c5a__item-description{--_gcd-heading-color:var(--wpds-color-foreground-content-neutral-weak,#707070);color:var(--wpds-color-foreground-content-neutral-weak,#707070);overflow-wrap:anywhere;padding-block-end:var(--wpds-dimension-padding-xs,4px)}._091406749ed93e6e__item-suffix{align-items:center;display:flex;gap:var(--wpds-dimension-gap-xs,4px);grid-column:suffix-start/suffix-end}._091406749ed93e6e__item-suffix,._23630f40071a29ff__item-shortcut{color:var(--wpds-color-foreground-content-neutral-weak,#707070);margin-inline-start:var(--wpds-dimension-gap-md,12px)}._23630f40071a29ff__item-shortcut{grid-column:shortcut-start/shortcut-end}._06be17a91bf434a0__item-trailing{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;grid-column:trailing-start/trailing-end;margin-inline-start:var(--wpds-dimension-gap-md,12px)}._943a932d9f81c78c__item-children+:is(._091406749ed93e6e__item-suffix,._23630f40071a29ff__item-shortcut,._06be17a91bf434a0__item-trailing){margin-inline-start:var(--wpds-dimension-gap-xl,24px)}._23630f40071a29ff__item-shortcut+._06be17a91bf434a0__item-trailing{margin-inline-start:var(--wpds-dimension-gap-xs,4px)}.b78aec79bf93eba0__submenu-chevron{margin-inline-end:calc(var(--wpds-dimension-gap-sm, 8px)*-1)}.b78aec79bf93eba0__submenu-chevron:dir(rtl){transform:rotate(180deg)}._60da3b6f9718cf76__external-link-indicator{display:inline-block;font-weight:var(--wpds-typography-font-weight-default,400);line-height:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px);text-decoration:none}._60da3b6f9718cf76__external-link-indicator:after{content:"\\2197"}._60da3b6f9718cf76__external-link-indicator:dir(rtl):after{content:"\\2196"}._5c913bce0d8bb0d6__item[aria-disabled=true] ._06be17a91bf434a0__item-trailing,._5c913bce0d8bb0d6__item[aria-disabled=true] ._091406749ed93e6e__item-suffix,._5c913bce0d8bb0d6__item[aria-disabled=true] ._23630f40071a29ff__item-shortcut,._5c913bce0d8bb0d6__item[aria-disabled=true] ._42313b48c5459be3__item-selection-indicator,._5c913bce0d8bb0d6__item[aria-disabled=true] ._64924ecabf65a5d6__item-prefix,._5c913bce0d8bb0d6__item[aria-disabled=true] .fa88c9f1a96a4c5a__item-description,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._06be17a91bf434a0__item-trailing,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._091406749ed93e6e__item-suffix,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._23630f40071a29ff__item-shortcut,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._42313b48c5459be3__item-selection-indicator,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._64924ecabf65a5d6__item-prefix,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) .fa88c9f1a96a4c5a__item-description{--_gcd-heading-color:currentColor;color:inherit}}}');var IQe={positioner:"d61e2d85c0ee0699__positioner",popup:"_34e81249f419a5a5__popup","item-selection-indicator":"_42313b48c5459be3__item-selection-indicator","is-root":"_087a537b24fee6a1__is-root _380b81b8f79fb10f__dropdown-motion","is-submenu":"_6d3b567f6289bdc2__is-submenu _7f344b94e270e039__dropdown-motion--fade-only",list:"_33f07ab17005471d__list",group:"f11085533c0056b0__group","radio-group":"e05914e1005d7c2e__radio-group",item:"_5c913bce0d8bb0d6__item","item-prefix":"_64924ecabf65a5d6__item-prefix","group-label":"_4a0fd085d76fd23c__group-label",separator:"bfc11368eadf3b39__separator","item-content":"af879698ede76757__item-content","checkbox-selection-icon":"_99c5bd141cbf516f__checkbox-selection-icon","radio-selection-icon":"_59aa9b3b3a651148__radio-selection-icon","prefix-icon":"a836378335a4cbf1__prefix-icon","item-children":"_943a932d9f81c78c__item-children","item-label":"_5ed41da4abcf8958__item-label","item-description":"fa88c9f1a96a4c5a__item-description","item-suffix":"_091406749ed93e6e__item-suffix","item-shortcut":"_23630f40071a29ff__item-shortcut","item-trailing":"_06be17a91bf434a0__item-trailing","submenu-chevron":"b78aec79bf93eba0__submenu-chevron","external-link-indicator":"_60da3b6f9718cf76__external-link-indicator"},iY=(0,rhe.forwardRef)(function({className:t,size:o=24,style:r,...n},i){return(0,ihe.jsx)(fo,{...n,ref:i,size:o,className:U(IQe["prefix-icon"],t),style:{...r,"--_wp-ui-menu-prefix-icon-size":`${o}px`}})});iY.displayName="Menu.PrefixIcon";var she=c(D(),1),lhe=c(T(),1),sY="data-wp-hash";function aY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&BQe(document)),e.__wpStyleRuntime}function PQe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${sY}]`))if(o.getAttribute(sY)===t)return!0;return!1}function ahe(e,t,o){if(!e.head)return;let r=aY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(PQe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(sY,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function BQe(e){let t=aY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)ahe(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 OQe(e,t){let o=aY();o.styles.set(e,t);for(let r of o.documents.keys())ahe(r,e,t)}typeof process>"u",OQe("3be1f8dffe",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._380b81b8f79fb10f__dropdown-motion,._7f344b94e270e039__dropdown-motion--fade-only{--wp-ui-dropdown-slide-distance:4px;--wp-ui-dropdown-slide-duration:var(--wpds-motion-duration-md,200ms);--wp-ui-dropdown-slide-easing:var(--wpds-motion-easing-expressive,cubic-bezier(0.25,0,0,1));--wp-ui-dropdown-fade-duration:var(--wpds-motion-duration-sm,100ms);--wp-ui-dropdown-fade-easing:linear;@media not (prefers-reduced-motion){transition-duration:var(--wp-ui-dropdown-slide-duration),var(--wp-ui-dropdown-fade-duration);transition-property:transform,opacity;transition-timing-function:var(--wp-ui-dropdown-slide-easing),var(--wp-ui-dropdown-fade-easing);will-change:transform,opacity}opacity:1;&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}}._380b81b8f79fb10f__dropdown-motion{transform:translate(0);&[data-side=bottom][data-ending-style],&[data-side=bottom][data-starting-style]{transform:translateY(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=top][data-ending-style],&[data-side=top][data-starting-style]{transform:translateY(var(--wp-ui-dropdown-slide-distance))}&[data-side=left][data-ending-style],&[data-side=left][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=right][data-ending-style],&[data-side=right][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=inline-start][data-ending-style],&[data-side=inline-start][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=inline-end][data-ending-style],&[data-side=inline-end][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-start][data-ending-style],&:dir(rtl)[data-side=inline-start][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-end][data-ending-style],&:dir(rtl)[data-side=inline-end][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.d61e2d85c0ee0699__positioner{z-index:var(--wp-ui-menu-z-index,initial)}._34e81249f419a5a5__popup{--wp-ui-menu-popup-padding:var(--wpds-dimension-padding-xs,4px);--wp-ui-menu-min-width:160px;--wp-ui-menu-max-width:var(--wpds-dimension-surface-width-md,400px);--wp-ui-menu-item-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-menu-group-head-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-menu-selection-indicator-track-size:0px;--wp-ui-menu-selection-indicator-size:var(--wpds-dimension-size-sm,24px);--wp-ui-menu-selection-indicator-gap:0px;--_wp-ui-menu-elevation-md:0px 2px 3px 0px #0000000d,0px 4px 5px 0px #0000000a,0px 12px 12px 0px #00000008,0px 16px 16px 0px #00000005;background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-menu-elevation-md);max-height:min(var(--available-height),480px,60dvh);max-width:min(var(--available-width),var(--wp-ui-menu-max-width));min-width:min(var(--available-width),var(--wp-ui-menu-min-width));outline:none;overflow-block:auto;overscroll-behavior:none;padding:var(--wp-ui-menu-popup-padding);scroll-padding:var(--wp-ui-menu-popup-padding);&:has(._42313b48c5459be3__item-selection-indicator){--wp-ui-menu-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-menu-selection-indicator-track-size:var(--wpds-dimension-size-2xs,16px);--wp-ui-menu-selection-indicator-gap:var(--wpds-dimension-gap-sm,8px)}}._33f07ab17005471d__list{--_wp-ui-menu-item-label-line-height:var(--wpds-typography-line-height-sm,20px);color:var(--wpds-color-foreground-interactive-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-md,13px);line-height:var(--_wp-ui-menu-item-label-line-height)}._33f07ab17005471d__list,.e05914e1005d7c2e__radio-group,.f11085533c0056b0__group{--wp-ui-menu-group-prefix-gap:0px;display:grid;grid-template-columns:[item-padding-start] var(--wp-ui-menu-item-padding-inline) [selection-start] var(--wp-ui-menu-selection-indicator-track-size) [selection-end] var(--wp-ui-menu-selection-indicator-gap) [prefix-start] max-content [prefix-end] var(--wp-ui-menu-group-prefix-gap) [content-start] minmax(0,1fr) [content-end] var(--wp-ui-menu-item-padding-inline) [item-padding-end];min-width:0}.e05914e1005d7c2e__radio-group,.f11085533c0056b0__group{grid-column:1/-1}._33f07ab17005471d__list:has(>._5c913bce0d8bb0d6__item>._64924ecabf65a5d6__item-prefix),.e05914e1005d7c2e__radio-group:has(>._5c913bce0d8bb0d6__item>._64924ecabf65a5d6__item-prefix),.f11085533c0056b0__group:has(>._5c913bce0d8bb0d6__item>._64924ecabf65a5d6__item-prefix){--wp-ui-menu-group-prefix-gap:var(--wpds-dimension-gap-xs,4px)}._4a0fd085d76fd23c__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;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-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);grid-column:1/-1;line-height:var(--wpds-typography-line-height-xs,16px);min-height:var(--wpds-dimension-size-md,32px);padding-block:var(--wpds-dimension-padding-xs,4px);padding-inline:var(--wp-ui-menu-group-head-padding-inline);text-transform:uppercase}.bfc11368eadf3b39__separator{background-color:var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);grid-column:1/-1;height:var(--wpds-border-width-xs,1px);margin-block:var(--wpds-dimension-gap-xs,4px);margin-inline:var(--wp-ui-menu-group-head-padding-inline);@media (forced-colors:active){background-color:CanvasText}}._5c913bce0d8bb0d6__item{--wp-ui-menu-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-menu-item-padding-block:var(--wpds-dimension-padding-xs,4px);--_gcd-a-border-radius:var(--wpds-border-radius-sm,2px);align-content:center;align-items:start;border-radius:var(--wpds-border-radius-sm,2px);display:grid;gap:0;grid-column:1/-1;grid-template-columns:[item-padding-start] var(--wp-ui-menu-item-padding-inline) [selection-start] var(--wp-ui-menu-selection-indicator-track-size) [selection-end] var(--wp-ui-menu-selection-indicator-gap) [prefix-start] max-content [prefix-end] var(--wp-ui-menu-group-prefix-gap) [content-start] minmax(0,1fr) [content-end] var(--wp-ui-menu-item-padding-inline) [item-padding-end];justify-content:stretch;min-height:var(--wp-ui-menu-item-height);min-width:0;padding-block:var(--wp-ui-menu-item-padding-block);scroll-margin:var(--wp-ui-menu-popup-padding);text-decoration:none;user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&[href]{cursor:pointer}@supports (grid-template-columns:subgrid){grid-template-columns:subgrid}&[data-highlighted]:not([aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:none;@media (forced-colors:active){--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid Highlight;--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid Highlight}}&[aria-disabled=true]{background-color:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}}._42313b48c5459be3__item-selection-indicator,._64924ecabf65a5d6__item-prefix,.af879698ede76757__item-content{grid-row:1}._42313b48c5459be3__item-selection-indicator{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;grid-column:selection-start/selection-end;height:var(--_wp-ui-menu-item-label-line-height);justify-content:center;justify-self:center;pointer-events:none;width:var(--wp-ui-menu-selection-indicator-size);&[data-unchecked]{opacity:0}}._99c5bd141cbf516f__checkbox-selection-icon{translate:0 1px}._59aa9b3b3a651148__radio-selection-icon{fill:currentColor;height:var(--wpds-dimension-size-xs,20px);width:var(--wpds-dimension-size-xs,20px)}._64924ecabf65a5d6__item-prefix{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;gap:var(--wpds-dimension-gap-xs,4px);grid-column:prefix-start/prefix-end;justify-content:center;min-width:0}.a836378335a4cbf1__prefix-icon{align-self:flex-start;flex-shrink:0;margin-block-start:calc((var(--_wp-ui-menu-item-label-line-height) - var(--_wp-ui-menu-prefix-icon-size))/2)}.af879698ede76757__item-content{align-items:center;align-self:stretch;box-sizing:border-box;display:grid;grid-column:content-start/content-end;grid-template-columns:[label-start] minmax(0,1fr) [label-end suffix-start] auto [suffix-end shortcut-start] auto [shortcut-end trailing-start] auto [trailing-end];min-width:0;pointer-events:none}._943a932d9f81c78c__item-children{display:inline-flex;flex-direction:column;gap:2px;grid-column:label-start/label-end;min-width:0}._5ed41da4abcf8958__item-label{--_gcd-heading-color:currentColor;--_gcd-p-line-height:var(--_wp-ui-menu-item-label-line-height);color:inherit;line-height:var(--_wp-ui-menu-item-label-line-height);min-width:0;overflow-wrap:anywhere}.fa88c9f1a96a4c5a__item-description{--_gcd-heading-color:var(--wpds-color-foreground-content-neutral-weak,#707070);color:var(--wpds-color-foreground-content-neutral-weak,#707070);overflow-wrap:anywhere;padding-block-end:var(--wpds-dimension-padding-xs,4px)}._091406749ed93e6e__item-suffix{align-items:center;display:flex;gap:var(--wpds-dimension-gap-xs,4px);grid-column:suffix-start/suffix-end}._091406749ed93e6e__item-suffix,._23630f40071a29ff__item-shortcut{color:var(--wpds-color-foreground-content-neutral-weak,#707070);margin-inline-start:var(--wpds-dimension-gap-md,12px)}._23630f40071a29ff__item-shortcut{grid-column:shortcut-start/shortcut-end}._06be17a91bf434a0__item-trailing{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;grid-column:trailing-start/trailing-end;margin-inline-start:var(--wpds-dimension-gap-md,12px)}._943a932d9f81c78c__item-children+:is(._091406749ed93e6e__item-suffix,._23630f40071a29ff__item-shortcut,._06be17a91bf434a0__item-trailing){margin-inline-start:var(--wpds-dimension-gap-xl,24px)}._23630f40071a29ff__item-shortcut+._06be17a91bf434a0__item-trailing{margin-inline-start:var(--wpds-dimension-gap-xs,4px)}.b78aec79bf93eba0__submenu-chevron{margin-inline-end:calc(var(--wpds-dimension-gap-sm, 8px)*-1)}.b78aec79bf93eba0__submenu-chevron:dir(rtl){transform:rotate(180deg)}._60da3b6f9718cf76__external-link-indicator{display:inline-block;font-weight:var(--wpds-typography-font-weight-default,400);line-height:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px);text-decoration:none}._60da3b6f9718cf76__external-link-indicator:after{content:"\\2197"}._60da3b6f9718cf76__external-link-indicator:dir(rtl):after{content:"\\2196"}._5c913bce0d8bb0d6__item[aria-disabled=true] ._06be17a91bf434a0__item-trailing,._5c913bce0d8bb0d6__item[aria-disabled=true] ._091406749ed93e6e__item-suffix,._5c913bce0d8bb0d6__item[aria-disabled=true] ._23630f40071a29ff__item-shortcut,._5c913bce0d8bb0d6__item[aria-disabled=true] ._42313b48c5459be3__item-selection-indicator,._5c913bce0d8bb0d6__item[aria-disabled=true] ._64924ecabf65a5d6__item-prefix,._5c913bce0d8bb0d6__item[aria-disabled=true] .fa88c9f1a96a4c5a__item-description,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._06be17a91bf434a0__item-trailing,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._091406749ed93e6e__item-suffix,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._23630f40071a29ff__item-shortcut,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._42313b48c5459be3__item-selection-indicator,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._64924ecabf65a5d6__item-prefix,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) .fa88c9f1a96a4c5a__item-description{--_gcd-heading-color:currentColor;color:inherit}}}');var MQe={positioner:"d61e2d85c0ee0699__positioner",popup:"_34e81249f419a5a5__popup","item-selection-indicator":"_42313b48c5459be3__item-selection-indicator","is-root":"_087a537b24fee6a1__is-root _380b81b8f79fb10f__dropdown-motion","is-submenu":"_6d3b567f6289bdc2__is-submenu _7f344b94e270e039__dropdown-motion--fade-only",list:"_33f07ab17005471d__list",group:"f11085533c0056b0__group","radio-group":"e05914e1005d7c2e__radio-group",item:"_5c913bce0d8bb0d6__item","item-prefix":"_64924ecabf65a5d6__item-prefix","group-label":"_4a0fd085d76fd23c__group-label",separator:"bfc11368eadf3b39__separator","item-content":"af879698ede76757__item-content","checkbox-selection-icon":"_99c5bd141cbf516f__checkbox-selection-icon","radio-selection-icon":"_59aa9b3b3a651148__radio-selection-icon","prefix-icon":"a836378335a4cbf1__prefix-icon","item-children":"_943a932d9f81c78c__item-children","item-label":"_5ed41da4abcf8958__item-label","item-description":"fa88c9f1a96a4c5a__item-description","item-suffix":"_091406749ed93e6e__item-suffix","item-shortcut":"_23630f40071a29ff__item-shortcut","item-trailing":"_06be17a91bf434a0__item-trailing","submenu-chevron":"b78aec79bf93eba0__submenu-chevron","external-link-indicator":"_60da3b6f9718cf76__external-link-indicator"},che=(0,she.forwardRef)(function({className:t,...o},r){return(0,lhe.jsx)(qt.RadioGroup,{ref:r,className:U(MQe["radio-group"],t),...o})});var dhe=c(D(),1),$7=c(ve(),1);var pp=c(T(),1),cY="data-wp-hash";function dY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&NQe(document)),e.__wpStyleRuntime}function AQe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${cY}]`))if(o.getAttribute(cY)===t)return!0;return!1}function uhe(e,t,o){if(!e.head)return;let r=dY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(AQe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(cY,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function NQe(e){let t=dY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)uhe(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 uY(e,t){let o=dY();o.styles.set(e,t);for(let r of o.documents.keys())uhe(r,e,t)}typeof process>"u",uY("e8e31009f5","._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);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var LQe={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"};typeof process>"u",uY("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var DQe={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",uY("3be1f8dffe",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._380b81b8f79fb10f__dropdown-motion,._7f344b94e270e039__dropdown-motion--fade-only{--wp-ui-dropdown-slide-distance:4px;--wp-ui-dropdown-slide-duration:var(--wpds-motion-duration-md,200ms);--wp-ui-dropdown-slide-easing:var(--wpds-motion-easing-expressive,cubic-bezier(0.25,0,0,1));--wp-ui-dropdown-fade-duration:var(--wpds-motion-duration-sm,100ms);--wp-ui-dropdown-fade-easing:linear;@media not (prefers-reduced-motion){transition-duration:var(--wp-ui-dropdown-slide-duration),var(--wp-ui-dropdown-fade-duration);transition-property:transform,opacity;transition-timing-function:var(--wp-ui-dropdown-slide-easing),var(--wp-ui-dropdown-fade-easing);will-change:transform,opacity}opacity:1;&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}}._380b81b8f79fb10f__dropdown-motion{transform:translate(0);&[data-side=bottom][data-ending-style],&[data-side=bottom][data-starting-style]{transform:translateY(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=top][data-ending-style],&[data-side=top][data-starting-style]{transform:translateY(var(--wp-ui-dropdown-slide-distance))}&[data-side=left][data-ending-style],&[data-side=left][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=right][data-ending-style],&[data-side=right][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=inline-start][data-ending-style],&[data-side=inline-start][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=inline-end][data-ending-style],&[data-side=inline-end][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-start][data-ending-style],&:dir(rtl)[data-side=inline-start][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-end][data-ending-style],&:dir(rtl)[data-side=inline-end][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.d61e2d85c0ee0699__positioner{z-index:var(--wp-ui-menu-z-index,initial)}._34e81249f419a5a5__popup{--wp-ui-menu-popup-padding:var(--wpds-dimension-padding-xs,4px);--wp-ui-menu-min-width:160px;--wp-ui-menu-max-width:var(--wpds-dimension-surface-width-md,400px);--wp-ui-menu-item-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-menu-group-head-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-menu-selection-indicator-track-size:0px;--wp-ui-menu-selection-indicator-size:var(--wpds-dimension-size-sm,24px);--wp-ui-menu-selection-indicator-gap:0px;--_wp-ui-menu-elevation-md:0px 2px 3px 0px #0000000d,0px 4px 5px 0px #0000000a,0px 12px 12px 0px #00000008,0px 16px 16px 0px #00000005;background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-menu-elevation-md);max-height:min(var(--available-height),480px,60dvh);max-width:min(var(--available-width),var(--wp-ui-menu-max-width));min-width:min(var(--available-width),var(--wp-ui-menu-min-width));outline:none;overflow-block:auto;overscroll-behavior:none;padding:var(--wp-ui-menu-popup-padding);scroll-padding:var(--wp-ui-menu-popup-padding);&:has(._42313b48c5459be3__item-selection-indicator){--wp-ui-menu-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-menu-selection-indicator-track-size:var(--wpds-dimension-size-2xs,16px);--wp-ui-menu-selection-indicator-gap:var(--wpds-dimension-gap-sm,8px)}}._33f07ab17005471d__list{--_wp-ui-menu-item-label-line-height:var(--wpds-typography-line-height-sm,20px);color:var(--wpds-color-foreground-interactive-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-md,13px);line-height:var(--_wp-ui-menu-item-label-line-height)}._33f07ab17005471d__list,.e05914e1005d7c2e__radio-group,.f11085533c0056b0__group{--wp-ui-menu-group-prefix-gap:0px;display:grid;grid-template-columns:[item-padding-start] var(--wp-ui-menu-item-padding-inline) [selection-start] var(--wp-ui-menu-selection-indicator-track-size) [selection-end] var(--wp-ui-menu-selection-indicator-gap) [prefix-start] max-content [prefix-end] var(--wp-ui-menu-group-prefix-gap) [content-start] minmax(0,1fr) [content-end] var(--wp-ui-menu-item-padding-inline) [item-padding-end];min-width:0}.e05914e1005d7c2e__radio-group,.f11085533c0056b0__group{grid-column:1/-1}._33f07ab17005471d__list:has(>._5c913bce0d8bb0d6__item>._64924ecabf65a5d6__item-prefix),.e05914e1005d7c2e__radio-group:has(>._5c913bce0d8bb0d6__item>._64924ecabf65a5d6__item-prefix),.f11085533c0056b0__group:has(>._5c913bce0d8bb0d6__item>._64924ecabf65a5d6__item-prefix){--wp-ui-menu-group-prefix-gap:var(--wpds-dimension-gap-xs,4px)}._4a0fd085d76fd23c__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;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-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);grid-column:1/-1;line-height:var(--wpds-typography-line-height-xs,16px);min-height:var(--wpds-dimension-size-md,32px);padding-block:var(--wpds-dimension-padding-xs,4px);padding-inline:var(--wp-ui-menu-group-head-padding-inline);text-transform:uppercase}.bfc11368eadf3b39__separator{background-color:var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);grid-column:1/-1;height:var(--wpds-border-width-xs,1px);margin-block:var(--wpds-dimension-gap-xs,4px);margin-inline:var(--wp-ui-menu-group-head-padding-inline);@media (forced-colors:active){background-color:CanvasText}}._5c913bce0d8bb0d6__item{--wp-ui-menu-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-menu-item-padding-block:var(--wpds-dimension-padding-xs,4px);--_gcd-a-border-radius:var(--wpds-border-radius-sm,2px);align-content:center;align-items:start;border-radius:var(--wpds-border-radius-sm,2px);display:grid;gap:0;grid-column:1/-1;grid-template-columns:[item-padding-start] var(--wp-ui-menu-item-padding-inline) [selection-start] var(--wp-ui-menu-selection-indicator-track-size) [selection-end] var(--wp-ui-menu-selection-indicator-gap) [prefix-start] max-content [prefix-end] var(--wp-ui-menu-group-prefix-gap) [content-start] minmax(0,1fr) [content-end] var(--wp-ui-menu-item-padding-inline) [item-padding-end];justify-content:stretch;min-height:var(--wp-ui-menu-item-height);min-width:0;padding-block:var(--wp-ui-menu-item-padding-block);scroll-margin:var(--wp-ui-menu-popup-padding);text-decoration:none;user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&[href]{cursor:pointer}@supports (grid-template-columns:subgrid){grid-template-columns:subgrid}&[data-highlighted]:not([aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:none;@media (forced-colors:active){--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid Highlight;--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid Highlight}}&[aria-disabled=true]{background-color:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}}._42313b48c5459be3__item-selection-indicator,._64924ecabf65a5d6__item-prefix,.af879698ede76757__item-content{grid-row:1}._42313b48c5459be3__item-selection-indicator{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;grid-column:selection-start/selection-end;height:var(--_wp-ui-menu-item-label-line-height);justify-content:center;justify-self:center;pointer-events:none;width:var(--wp-ui-menu-selection-indicator-size);&[data-unchecked]{opacity:0}}._99c5bd141cbf516f__checkbox-selection-icon{translate:0 1px}._59aa9b3b3a651148__radio-selection-icon{fill:currentColor;height:var(--wpds-dimension-size-xs,20px);width:var(--wpds-dimension-size-xs,20px)}._64924ecabf65a5d6__item-prefix{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;gap:var(--wpds-dimension-gap-xs,4px);grid-column:prefix-start/prefix-end;justify-content:center;min-width:0}.a836378335a4cbf1__prefix-icon{align-self:flex-start;flex-shrink:0;margin-block-start:calc((var(--_wp-ui-menu-item-label-line-height) - var(--_wp-ui-menu-prefix-icon-size))/2)}.af879698ede76757__item-content{align-items:center;align-self:stretch;box-sizing:border-box;display:grid;grid-column:content-start/content-end;grid-template-columns:[label-start] minmax(0,1fr) [label-end suffix-start] auto [suffix-end shortcut-start] auto [shortcut-end trailing-start] auto [trailing-end];min-width:0;pointer-events:none}._943a932d9f81c78c__item-children{display:inline-flex;flex-direction:column;gap:2px;grid-column:label-start/label-end;min-width:0}._5ed41da4abcf8958__item-label{--_gcd-heading-color:currentColor;--_gcd-p-line-height:var(--_wp-ui-menu-item-label-line-height);color:inherit;line-height:var(--_wp-ui-menu-item-label-line-height);min-width:0;overflow-wrap:anywhere}.fa88c9f1a96a4c5a__item-description{--_gcd-heading-color:var(--wpds-color-foreground-content-neutral-weak,#707070);color:var(--wpds-color-foreground-content-neutral-weak,#707070);overflow-wrap:anywhere;padding-block-end:var(--wpds-dimension-padding-xs,4px)}._091406749ed93e6e__item-suffix{align-items:center;display:flex;gap:var(--wpds-dimension-gap-xs,4px);grid-column:suffix-start/suffix-end}._091406749ed93e6e__item-suffix,._23630f40071a29ff__item-shortcut{color:var(--wpds-color-foreground-content-neutral-weak,#707070);margin-inline-start:var(--wpds-dimension-gap-md,12px)}._23630f40071a29ff__item-shortcut{grid-column:shortcut-start/shortcut-end}._06be17a91bf434a0__item-trailing{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;grid-column:trailing-start/trailing-end;margin-inline-start:var(--wpds-dimension-gap-md,12px)}._943a932d9f81c78c__item-children+:is(._091406749ed93e6e__item-suffix,._23630f40071a29ff__item-shortcut,._06be17a91bf434a0__item-trailing){margin-inline-start:var(--wpds-dimension-gap-xl,24px)}._23630f40071a29ff__item-shortcut+._06be17a91bf434a0__item-trailing{margin-inline-start:var(--wpds-dimension-gap-xs,4px)}.b78aec79bf93eba0__submenu-chevron{margin-inline-end:calc(var(--wpds-dimension-gap-sm, 8px)*-1)}.b78aec79bf93eba0__submenu-chevron:dir(rtl){transform:rotate(180deg)}._60da3b6f9718cf76__external-link-indicator{display:inline-block;font-weight:var(--wpds-typography-font-weight-default,400);line-height:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px);text-decoration:none}._60da3b6f9718cf76__external-link-indicator:after{content:"\\2197"}._60da3b6f9718cf76__external-link-indicator:dir(rtl):after{content:"\\2196"}._5c913bce0d8bb0d6__item[aria-disabled=true] ._06be17a91bf434a0__item-trailing,._5c913bce0d8bb0d6__item[aria-disabled=true] ._091406749ed93e6e__item-suffix,._5c913bce0d8bb0d6__item[aria-disabled=true] ._23630f40071a29ff__item-shortcut,._5c913bce0d8bb0d6__item[aria-disabled=true] ._42313b48c5459be3__item-selection-indicator,._5c913bce0d8bb0d6__item[aria-disabled=true] ._64924ecabf65a5d6__item-prefix,._5c913bce0d8bb0d6__item[aria-disabled=true] .fa88c9f1a96a4c5a__item-description,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._06be17a91bf434a0__item-trailing,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._091406749ed93e6e__item-suffix,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._23630f40071a29ff__item-shortcut,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._42313b48c5459be3__item-selection-indicator,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._64924ecabf65a5d6__item-prefix,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) .fa88c9f1a96a4c5a__item-description{--_gcd-heading-color:currentColor;color:inherit}}}');var lY={positioner:"d61e2d85c0ee0699__positioner",popup:"_34e81249f419a5a5__popup","item-selection-indicator":"_42313b48c5459be3__item-selection-indicator","is-root":"_087a537b24fee6a1__is-root _380b81b8f79fb10f__dropdown-motion","is-submenu":"_6d3b567f6289bdc2__is-submenu _7f344b94e270e039__dropdown-motion--fade-only",list:"_33f07ab17005471d__list",group:"f11085533c0056b0__group","radio-group":"e05914e1005d7c2e__radio-group",item:"_5c913bce0d8bb0d6__item","item-prefix":"_64924ecabf65a5d6__item-prefix","group-label":"_4a0fd085d76fd23c__group-label",separator:"bfc11368eadf3b39__separator","item-content":"af879698ede76757__item-content","checkbox-selection-icon":"_99c5bd141cbf516f__checkbox-selection-icon","radio-selection-icon":"_59aa9b3b3a651148__radio-selection-icon","prefix-icon":"a836378335a4cbf1__prefix-icon","item-children":"_943a932d9f81c78c__item-children","item-label":"_5ed41da4abcf8958__item-label","item-description":"fa88c9f1a96a4c5a__item-description","item-suffix":"_091406749ed93e6e__item-suffix","item-shortcut":"_23630f40071a29ff__item-shortcut","item-trailing":"_06be17a91bf434a0__item-trailing","submenu-chevron":"b78aec79bf93eba0__submenu-chevron","external-link-indicator":"_60da3b6f9718cf76__external-link-indicator"},VQe=(0,pp.jsx)($7.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,pp.jsx)($7.Circle,{cx:12,cy:12,r:3})}),fhe=(0,dhe.forwardRef)(function({children:t,className:o,prefix:r,shortcut:n,suffix:i,"aria-describedby":s,"aria-keyshortcuts":a,"aria-label":l,"aria-labelledby":d,...u},f){let{contentChildren:p,contentContextValue:m,itemAriaProps:g,shortcutDescriptionId:h}=up(t,{"aria-describedby":s,"aria-keyshortcuts":a,"aria-label":l,"aria-labelledby":d,shortcut:n});return(0,pp.jsxs)(qt.RadioItem,{ref:f,...g,className:U(LQe.div,DQe["box-sizing"],lY.item,o),...u,children:[(0,pp.jsx)(qt.RadioItemIndicator,{keepMounted:!0,className:lY["item-selection-indicator"],children:(0,pp.jsx)(fo,{icon:VQe,className:lY["radio-selection-icon"],"aria-hidden":"true"})}),(0,pp.jsx)(ed.Provider,{value:m,children:(0,pp.jsx)(fp,{prefix:r,shortcut:n,shortcutDescriptionId:h,suffix:i,children:p})})]})});var mp=c(D(),1);function FQe(e){try{return e.contentDocument}catch{return null}}function phe(e,t){if(e.nodeType!==Node.ELEMENT_NODE)return;let o=e;o.tagName==="IFRAME"&&t(o),o.querySelectorAll("iframe").forEach(t)}function zQe(e,t){let o=e.target,r=o?.nodeType===Node.ELEMENT_NODE?o:o?.parentElement,n=t.getAttribute("aria-controls");if(!r||!n)return!1;let i=r.ownerDocument.getElementById(n);if(!i)return!1;let s=i.getAttribute("data-rootownerid");return s?r.closest("[data-rootownerid]")?.getAttribute("data-rootownerid")===s:i.contains(r)}function jQe({enabled:e,onPointerDown:t,ownerDocument:o}){(0,mp.useEffect)(()=>{if(!e||!o)return;let r=(n,i)=>{i&&n.addEventListener("pointerdown",t,!0);let s=new Map,a=f=>{if(s.has(f))return;let p=null,m,g=()=>{let h=FQe(f);h!==p&&(m?.(),p=h,m=p?r(p,!0):void 0)};f.addEventListener("load",g),g(),s.set(f,()=>{f.removeEventListener("load",g),m?.()})},l=f=>{s.get(f)?.(),s.delete(f)};n.querySelectorAll("iframe").forEach(a);let d=n.defaultView?.MutationObserver,u=d?new d(f=>{f.forEach(p=>{p.removedNodes.forEach(m=>phe(m,l)),p.addedNodes.forEach(m=>phe(m,a))})}):null;return u?.observe(n.documentElement,{childList:!0,subtree:!0}),()=>{u?.disconnect(),s.forEach(f=>f()),i&&n.removeEventListener("pointerdown",t,!0)}};return r(o,!1)},[e,t,o])}function mhe({actionsRef:e,defaultOpen:t,disabled:o,modal:r,onOpenChange:n,open:i}){let s=(0,mp.useRef)(null),a=e??s,[l,d]=(0,mp.useState)(t??!1),[u,f]=(0,mp.useState)(null),p=i??l,m=(0,mp.useCallback)(h=>{u&&!zQe(h,u)&&a.current?.close()},[a,u]);return jQe({enabled:p&&r===!1&&!o&&u!==null,onPointerDown:m,ownerDocument:u?.ownerDocument??null}),{actionsRef:a,onOpenChange:(h,b)=>{n(h,b),!b.isCanceled&&(d(h),f(h?b.trigger??null:null))}}}var Y7=c(T(),1);function ghe(e){let{onOpenChange:t}=e,o=(n,i)=>{let s=i.trigger,a=s?.ownerDocument.defaultView?.HTMLElement,l=s?.ownerDocument.defaultView?.Element,d=s?.ownerDocument.activeElement,u=i.event.target,f=l&&u instanceof l?u.closest('[role="menu"]'):null;t?.(n,i),!n&&i.reason==="item-press"&&!i.isCanceled&&a&&s instanceof a&&f?.contains(d??null)&&s.ownerDocument.activeElement===d&&s.focus()},r=mhe({actionsRef:e.actionsRef,defaultOpen:e.defaultOpen,disabled:e.disabled,modal:e.modal,onOpenChange:o,open:e.open});return(0,Y7.jsx)(Yg,{children:(0,Y7.jsx)(aR.Provider,{value:{isSubmenu:!1},children:(0,Y7.jsx)(qt.Root,{...e,...r})})})}var hhe=c(D(),1),_he=c(T(),1),fY="data-wp-hash";function pY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&UQe(document)),e.__wpStyleRuntime}function HQe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${fY}]`))if(o.getAttribute(fY)===t)return!0;return!1}function bhe(e,t,o){if(!e.head)return;let r=pY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(HQe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(fY,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function UQe(e){let t=pY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)bhe(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 WQe(e,t){let o=pY();o.styles.set(e,t);for(let r of o.documents.keys())bhe(r,e,t)}typeof process>"u",WQe("3be1f8dffe",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._380b81b8f79fb10f__dropdown-motion,._7f344b94e270e039__dropdown-motion--fade-only{--wp-ui-dropdown-slide-distance:4px;--wp-ui-dropdown-slide-duration:var(--wpds-motion-duration-md,200ms);--wp-ui-dropdown-slide-easing:var(--wpds-motion-easing-expressive,cubic-bezier(0.25,0,0,1));--wp-ui-dropdown-fade-duration:var(--wpds-motion-duration-sm,100ms);--wp-ui-dropdown-fade-easing:linear;@media not (prefers-reduced-motion){transition-duration:var(--wp-ui-dropdown-slide-duration),var(--wp-ui-dropdown-fade-duration);transition-property:transform,opacity;transition-timing-function:var(--wp-ui-dropdown-slide-easing),var(--wp-ui-dropdown-fade-easing);will-change:transform,opacity}opacity:1;&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}}._380b81b8f79fb10f__dropdown-motion{transform:translate(0);&[data-side=bottom][data-ending-style],&[data-side=bottom][data-starting-style]{transform:translateY(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=top][data-ending-style],&[data-side=top][data-starting-style]{transform:translateY(var(--wp-ui-dropdown-slide-distance))}&[data-side=left][data-ending-style],&[data-side=left][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=right][data-ending-style],&[data-side=right][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=inline-start][data-ending-style],&[data-side=inline-start][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=inline-end][data-ending-style],&[data-side=inline-end][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-start][data-ending-style],&:dir(rtl)[data-side=inline-start][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-end][data-ending-style],&:dir(rtl)[data-side=inline-end][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.d61e2d85c0ee0699__positioner{z-index:var(--wp-ui-menu-z-index,initial)}._34e81249f419a5a5__popup{--wp-ui-menu-popup-padding:var(--wpds-dimension-padding-xs,4px);--wp-ui-menu-min-width:160px;--wp-ui-menu-max-width:var(--wpds-dimension-surface-width-md,400px);--wp-ui-menu-item-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-menu-group-head-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-menu-selection-indicator-track-size:0px;--wp-ui-menu-selection-indicator-size:var(--wpds-dimension-size-sm,24px);--wp-ui-menu-selection-indicator-gap:0px;--_wp-ui-menu-elevation-md:0px 2px 3px 0px #0000000d,0px 4px 5px 0px #0000000a,0px 12px 12px 0px #00000008,0px 16px 16px 0px #00000005;background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-menu-elevation-md);max-height:min(var(--available-height),480px,60dvh);max-width:min(var(--available-width),var(--wp-ui-menu-max-width));min-width:min(var(--available-width),var(--wp-ui-menu-min-width));outline:none;overflow-block:auto;overscroll-behavior:none;padding:var(--wp-ui-menu-popup-padding);scroll-padding:var(--wp-ui-menu-popup-padding);&:has(._42313b48c5459be3__item-selection-indicator){--wp-ui-menu-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-menu-selection-indicator-track-size:var(--wpds-dimension-size-2xs,16px);--wp-ui-menu-selection-indicator-gap:var(--wpds-dimension-gap-sm,8px)}}._33f07ab17005471d__list{--_wp-ui-menu-item-label-line-height:var(--wpds-typography-line-height-sm,20px);color:var(--wpds-color-foreground-interactive-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-md,13px);line-height:var(--_wp-ui-menu-item-label-line-height)}._33f07ab17005471d__list,.e05914e1005d7c2e__radio-group,.f11085533c0056b0__group{--wp-ui-menu-group-prefix-gap:0px;display:grid;grid-template-columns:[item-padding-start] var(--wp-ui-menu-item-padding-inline) [selection-start] var(--wp-ui-menu-selection-indicator-track-size) [selection-end] var(--wp-ui-menu-selection-indicator-gap) [prefix-start] max-content [prefix-end] var(--wp-ui-menu-group-prefix-gap) [content-start] minmax(0,1fr) [content-end] var(--wp-ui-menu-item-padding-inline) [item-padding-end];min-width:0}.e05914e1005d7c2e__radio-group,.f11085533c0056b0__group{grid-column:1/-1}._33f07ab17005471d__list:has(>._5c913bce0d8bb0d6__item>._64924ecabf65a5d6__item-prefix),.e05914e1005d7c2e__radio-group:has(>._5c913bce0d8bb0d6__item>._64924ecabf65a5d6__item-prefix),.f11085533c0056b0__group:has(>._5c913bce0d8bb0d6__item>._64924ecabf65a5d6__item-prefix){--wp-ui-menu-group-prefix-gap:var(--wpds-dimension-gap-xs,4px)}._4a0fd085d76fd23c__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;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-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);grid-column:1/-1;line-height:var(--wpds-typography-line-height-xs,16px);min-height:var(--wpds-dimension-size-md,32px);padding-block:var(--wpds-dimension-padding-xs,4px);padding-inline:var(--wp-ui-menu-group-head-padding-inline);text-transform:uppercase}.bfc11368eadf3b39__separator{background-color:var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);grid-column:1/-1;height:var(--wpds-border-width-xs,1px);margin-block:var(--wpds-dimension-gap-xs,4px);margin-inline:var(--wp-ui-menu-group-head-padding-inline);@media (forced-colors:active){background-color:CanvasText}}._5c913bce0d8bb0d6__item{--wp-ui-menu-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-menu-item-padding-block:var(--wpds-dimension-padding-xs,4px);--_gcd-a-border-radius:var(--wpds-border-radius-sm,2px);align-content:center;align-items:start;border-radius:var(--wpds-border-radius-sm,2px);display:grid;gap:0;grid-column:1/-1;grid-template-columns:[item-padding-start] var(--wp-ui-menu-item-padding-inline) [selection-start] var(--wp-ui-menu-selection-indicator-track-size) [selection-end] var(--wp-ui-menu-selection-indicator-gap) [prefix-start] max-content [prefix-end] var(--wp-ui-menu-group-prefix-gap) [content-start] minmax(0,1fr) [content-end] var(--wp-ui-menu-item-padding-inline) [item-padding-end];justify-content:stretch;min-height:var(--wp-ui-menu-item-height);min-width:0;padding-block:var(--wp-ui-menu-item-padding-block);scroll-margin:var(--wp-ui-menu-popup-padding);text-decoration:none;user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&[href]{cursor:pointer}@supports (grid-template-columns:subgrid){grid-template-columns:subgrid}&[data-highlighted]:not([aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:none;@media (forced-colors:active){--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid Highlight;--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid Highlight}}&[aria-disabled=true]{background-color:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}}._42313b48c5459be3__item-selection-indicator,._64924ecabf65a5d6__item-prefix,.af879698ede76757__item-content{grid-row:1}._42313b48c5459be3__item-selection-indicator{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;grid-column:selection-start/selection-end;height:var(--_wp-ui-menu-item-label-line-height);justify-content:center;justify-self:center;pointer-events:none;width:var(--wp-ui-menu-selection-indicator-size);&[data-unchecked]{opacity:0}}._99c5bd141cbf516f__checkbox-selection-icon{translate:0 1px}._59aa9b3b3a651148__radio-selection-icon{fill:currentColor;height:var(--wpds-dimension-size-xs,20px);width:var(--wpds-dimension-size-xs,20px)}._64924ecabf65a5d6__item-prefix{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;gap:var(--wpds-dimension-gap-xs,4px);grid-column:prefix-start/prefix-end;justify-content:center;min-width:0}.a836378335a4cbf1__prefix-icon{align-self:flex-start;flex-shrink:0;margin-block-start:calc((var(--_wp-ui-menu-item-label-line-height) - var(--_wp-ui-menu-prefix-icon-size))/2)}.af879698ede76757__item-content{align-items:center;align-self:stretch;box-sizing:border-box;display:grid;grid-column:content-start/content-end;grid-template-columns:[label-start] minmax(0,1fr) [label-end suffix-start] auto [suffix-end shortcut-start] auto [shortcut-end trailing-start] auto [trailing-end];min-width:0;pointer-events:none}._943a932d9f81c78c__item-children{display:inline-flex;flex-direction:column;gap:2px;grid-column:label-start/label-end;min-width:0}._5ed41da4abcf8958__item-label{--_gcd-heading-color:currentColor;--_gcd-p-line-height:var(--_wp-ui-menu-item-label-line-height);color:inherit;line-height:var(--_wp-ui-menu-item-label-line-height);min-width:0;overflow-wrap:anywhere}.fa88c9f1a96a4c5a__item-description{--_gcd-heading-color:var(--wpds-color-foreground-content-neutral-weak,#707070);color:var(--wpds-color-foreground-content-neutral-weak,#707070);overflow-wrap:anywhere;padding-block-end:var(--wpds-dimension-padding-xs,4px)}._091406749ed93e6e__item-suffix{align-items:center;display:flex;gap:var(--wpds-dimension-gap-xs,4px);grid-column:suffix-start/suffix-end}._091406749ed93e6e__item-suffix,._23630f40071a29ff__item-shortcut{color:var(--wpds-color-foreground-content-neutral-weak,#707070);margin-inline-start:var(--wpds-dimension-gap-md,12px)}._23630f40071a29ff__item-shortcut{grid-column:shortcut-start/shortcut-end}._06be17a91bf434a0__item-trailing{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;grid-column:trailing-start/trailing-end;margin-inline-start:var(--wpds-dimension-gap-md,12px)}._943a932d9f81c78c__item-children+:is(._091406749ed93e6e__item-suffix,._23630f40071a29ff__item-shortcut,._06be17a91bf434a0__item-trailing){margin-inline-start:var(--wpds-dimension-gap-xl,24px)}._23630f40071a29ff__item-shortcut+._06be17a91bf434a0__item-trailing{margin-inline-start:var(--wpds-dimension-gap-xs,4px)}.b78aec79bf93eba0__submenu-chevron{margin-inline-end:calc(var(--wpds-dimension-gap-sm, 8px)*-1)}.b78aec79bf93eba0__submenu-chevron:dir(rtl){transform:rotate(180deg)}._60da3b6f9718cf76__external-link-indicator{display:inline-block;font-weight:var(--wpds-typography-font-weight-default,400);line-height:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px);text-decoration:none}._60da3b6f9718cf76__external-link-indicator:after{content:"\\2197"}._60da3b6f9718cf76__external-link-indicator:dir(rtl):after{content:"\\2196"}._5c913bce0d8bb0d6__item[aria-disabled=true] ._06be17a91bf434a0__item-trailing,._5c913bce0d8bb0d6__item[aria-disabled=true] ._091406749ed93e6e__item-suffix,._5c913bce0d8bb0d6__item[aria-disabled=true] ._23630f40071a29ff__item-shortcut,._5c913bce0d8bb0d6__item[aria-disabled=true] ._42313b48c5459be3__item-selection-indicator,._5c913bce0d8bb0d6__item[aria-disabled=true] ._64924ecabf65a5d6__item-prefix,._5c913bce0d8bb0d6__item[aria-disabled=true] .fa88c9f1a96a4c5a__item-description,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._06be17a91bf434a0__item-trailing,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._091406749ed93e6e__item-suffix,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._23630f40071a29ff__item-shortcut,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._42313b48c5459be3__item-selection-indicator,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._64924ecabf65a5d6__item-prefix,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) .fa88c9f1a96a4c5a__item-description{--_gcd-heading-color:currentColor;color:inherit}}}');var GQe={positioner:"d61e2d85c0ee0699__positioner",popup:"_34e81249f419a5a5__popup","item-selection-indicator":"_42313b48c5459be3__item-selection-indicator","is-root":"_087a537b24fee6a1__is-root _380b81b8f79fb10f__dropdown-motion","is-submenu":"_6d3b567f6289bdc2__is-submenu _7f344b94e270e039__dropdown-motion--fade-only",list:"_33f07ab17005471d__list",group:"f11085533c0056b0__group","radio-group":"e05914e1005d7c2e__radio-group",item:"_5c913bce0d8bb0d6__item","item-prefix":"_64924ecabf65a5d6__item-prefix","group-label":"_4a0fd085d76fd23c__group-label",separator:"bfc11368eadf3b39__separator","item-content":"af879698ede76757__item-content","checkbox-selection-icon":"_99c5bd141cbf516f__checkbox-selection-icon","radio-selection-icon":"_59aa9b3b3a651148__radio-selection-icon","prefix-icon":"a836378335a4cbf1__prefix-icon","item-children":"_943a932d9f81c78c__item-children","item-label":"_5ed41da4abcf8958__item-label","item-description":"fa88c9f1a96a4c5a__item-description","item-suffix":"_091406749ed93e6e__item-suffix","item-shortcut":"_23630f40071a29ff__item-shortcut","item-trailing":"_06be17a91bf434a0__item-trailing","submenu-chevron":"b78aec79bf93eba0__submenu-chevron","external-link-indicator":"_60da3b6f9718cf76__external-link-indicator"},vhe=(0,hhe.forwardRef)(function({className:t,...o},r){return(0,_he.jsx)(qt.Separator,{ref:r,className:U(GQe.separator,t),...o})});var mY=c(T(),1);function yhe(e){return(0,mY.jsx)(aR.Provider,{value:{isSubmenu:!0},children:(0,mY.jsx)(qt.SubmenuRoot,{...e})})}var xhe=c(D(),1);var fR=c(T(),1),gY="data-wp-hash";function hY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&YQe(document)),e.__wpStyleRuntime}function $Qe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${gY}]`))if(o.getAttribute(gY)===t)return!0;return!1}function khe(e,t,o){if(!e.head)return;let r=hY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if($Qe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(gY,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function YQe(e){let t=hY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)khe(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 bY(e,t){let o=hY();o.styles.set(e,t);for(let r of o.documents.keys())khe(r,e,t)}typeof process>"u",bY("e8e31009f5","._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);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var KQe={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"};typeof process>"u",bY("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var qQe={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",bY("3be1f8dffe",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._380b81b8f79fb10f__dropdown-motion,._7f344b94e270e039__dropdown-motion--fade-only{--wp-ui-dropdown-slide-distance:4px;--wp-ui-dropdown-slide-duration:var(--wpds-motion-duration-md,200ms);--wp-ui-dropdown-slide-easing:var(--wpds-motion-easing-expressive,cubic-bezier(0.25,0,0,1));--wp-ui-dropdown-fade-duration:var(--wpds-motion-duration-sm,100ms);--wp-ui-dropdown-fade-easing:linear;@media not (prefers-reduced-motion){transition-duration:var(--wp-ui-dropdown-slide-duration),var(--wp-ui-dropdown-fade-duration);transition-property:transform,opacity;transition-timing-function:var(--wp-ui-dropdown-slide-easing),var(--wp-ui-dropdown-fade-easing);will-change:transform,opacity}opacity:1;&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}}._380b81b8f79fb10f__dropdown-motion{transform:translate(0);&[data-side=bottom][data-ending-style],&[data-side=bottom][data-starting-style]{transform:translateY(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=top][data-ending-style],&[data-side=top][data-starting-style]{transform:translateY(var(--wp-ui-dropdown-slide-distance))}&[data-side=left][data-ending-style],&[data-side=left][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=right][data-ending-style],&[data-side=right][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=inline-start][data-ending-style],&[data-side=inline-start][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=inline-end][data-ending-style],&[data-side=inline-end][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-start][data-ending-style],&:dir(rtl)[data-side=inline-start][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-end][data-ending-style],&:dir(rtl)[data-side=inline-end][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.d61e2d85c0ee0699__positioner{z-index:var(--wp-ui-menu-z-index,initial)}._34e81249f419a5a5__popup{--wp-ui-menu-popup-padding:var(--wpds-dimension-padding-xs,4px);--wp-ui-menu-min-width:160px;--wp-ui-menu-max-width:var(--wpds-dimension-surface-width-md,400px);--wp-ui-menu-item-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-menu-group-head-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-menu-selection-indicator-track-size:0px;--wp-ui-menu-selection-indicator-size:var(--wpds-dimension-size-sm,24px);--wp-ui-menu-selection-indicator-gap:0px;--_wp-ui-menu-elevation-md:0px 2px 3px 0px #0000000d,0px 4px 5px 0px #0000000a,0px 12px 12px 0px #00000008,0px 16px 16px 0px #00000005;background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-menu-elevation-md);max-height:min(var(--available-height),480px,60dvh);max-width:min(var(--available-width),var(--wp-ui-menu-max-width));min-width:min(var(--available-width),var(--wp-ui-menu-min-width));outline:none;overflow-block:auto;overscroll-behavior:none;padding:var(--wp-ui-menu-popup-padding);scroll-padding:var(--wp-ui-menu-popup-padding);&:has(._42313b48c5459be3__item-selection-indicator){--wp-ui-menu-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-menu-selection-indicator-track-size:var(--wpds-dimension-size-2xs,16px);--wp-ui-menu-selection-indicator-gap:var(--wpds-dimension-gap-sm,8px)}}._33f07ab17005471d__list{--_wp-ui-menu-item-label-line-height:var(--wpds-typography-line-height-sm,20px);color:var(--wpds-color-foreground-interactive-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-md,13px);line-height:var(--_wp-ui-menu-item-label-line-height)}._33f07ab17005471d__list,.e05914e1005d7c2e__radio-group,.f11085533c0056b0__group{--wp-ui-menu-group-prefix-gap:0px;display:grid;grid-template-columns:[item-padding-start] var(--wp-ui-menu-item-padding-inline) [selection-start] var(--wp-ui-menu-selection-indicator-track-size) [selection-end] var(--wp-ui-menu-selection-indicator-gap) [prefix-start] max-content [prefix-end] var(--wp-ui-menu-group-prefix-gap) [content-start] minmax(0,1fr) [content-end] var(--wp-ui-menu-item-padding-inline) [item-padding-end];min-width:0}.e05914e1005d7c2e__radio-group,.f11085533c0056b0__group{grid-column:1/-1}._33f07ab17005471d__list:has(>._5c913bce0d8bb0d6__item>._64924ecabf65a5d6__item-prefix),.e05914e1005d7c2e__radio-group:has(>._5c913bce0d8bb0d6__item>._64924ecabf65a5d6__item-prefix),.f11085533c0056b0__group:has(>._5c913bce0d8bb0d6__item>._64924ecabf65a5d6__item-prefix){--wp-ui-menu-group-prefix-gap:var(--wpds-dimension-gap-xs,4px)}._4a0fd085d76fd23c__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;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-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);grid-column:1/-1;line-height:var(--wpds-typography-line-height-xs,16px);min-height:var(--wpds-dimension-size-md,32px);padding-block:var(--wpds-dimension-padding-xs,4px);padding-inline:var(--wp-ui-menu-group-head-padding-inline);text-transform:uppercase}.bfc11368eadf3b39__separator{background-color:var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);grid-column:1/-1;height:var(--wpds-border-width-xs,1px);margin-block:var(--wpds-dimension-gap-xs,4px);margin-inline:var(--wp-ui-menu-group-head-padding-inline);@media (forced-colors:active){background-color:CanvasText}}._5c913bce0d8bb0d6__item{--wp-ui-menu-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-menu-item-padding-block:var(--wpds-dimension-padding-xs,4px);--_gcd-a-border-radius:var(--wpds-border-radius-sm,2px);align-content:center;align-items:start;border-radius:var(--wpds-border-radius-sm,2px);display:grid;gap:0;grid-column:1/-1;grid-template-columns:[item-padding-start] var(--wp-ui-menu-item-padding-inline) [selection-start] var(--wp-ui-menu-selection-indicator-track-size) [selection-end] var(--wp-ui-menu-selection-indicator-gap) [prefix-start] max-content [prefix-end] var(--wp-ui-menu-group-prefix-gap) [content-start] minmax(0,1fr) [content-end] var(--wp-ui-menu-item-padding-inline) [item-padding-end];justify-content:stretch;min-height:var(--wp-ui-menu-item-height);min-width:0;padding-block:var(--wp-ui-menu-item-padding-block);scroll-margin:var(--wp-ui-menu-popup-padding);text-decoration:none;user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&[href]{cursor:pointer}@supports (grid-template-columns:subgrid){grid-template-columns:subgrid}&[data-highlighted]:not([aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:none;@media (forced-colors:active){--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid Highlight;--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid Highlight}}&[aria-disabled=true]{background-color:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}}._42313b48c5459be3__item-selection-indicator,._64924ecabf65a5d6__item-prefix,.af879698ede76757__item-content{grid-row:1}._42313b48c5459be3__item-selection-indicator{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;grid-column:selection-start/selection-end;height:var(--_wp-ui-menu-item-label-line-height);justify-content:center;justify-self:center;pointer-events:none;width:var(--wp-ui-menu-selection-indicator-size);&[data-unchecked]{opacity:0}}._99c5bd141cbf516f__checkbox-selection-icon{translate:0 1px}._59aa9b3b3a651148__radio-selection-icon{fill:currentColor;height:var(--wpds-dimension-size-xs,20px);width:var(--wpds-dimension-size-xs,20px)}._64924ecabf65a5d6__item-prefix{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;gap:var(--wpds-dimension-gap-xs,4px);grid-column:prefix-start/prefix-end;justify-content:center;min-width:0}.a836378335a4cbf1__prefix-icon{align-self:flex-start;flex-shrink:0;margin-block-start:calc((var(--_wp-ui-menu-item-label-line-height) - var(--_wp-ui-menu-prefix-icon-size))/2)}.af879698ede76757__item-content{align-items:center;align-self:stretch;box-sizing:border-box;display:grid;grid-column:content-start/content-end;grid-template-columns:[label-start] minmax(0,1fr) [label-end suffix-start] auto [suffix-end shortcut-start] auto [shortcut-end trailing-start] auto [trailing-end];min-width:0;pointer-events:none}._943a932d9f81c78c__item-children{display:inline-flex;flex-direction:column;gap:2px;grid-column:label-start/label-end;min-width:0}._5ed41da4abcf8958__item-label{--_gcd-heading-color:currentColor;--_gcd-p-line-height:var(--_wp-ui-menu-item-label-line-height);color:inherit;line-height:var(--_wp-ui-menu-item-label-line-height);min-width:0;overflow-wrap:anywhere}.fa88c9f1a96a4c5a__item-description{--_gcd-heading-color:var(--wpds-color-foreground-content-neutral-weak,#707070);color:var(--wpds-color-foreground-content-neutral-weak,#707070);overflow-wrap:anywhere;padding-block-end:var(--wpds-dimension-padding-xs,4px)}._091406749ed93e6e__item-suffix{align-items:center;display:flex;gap:var(--wpds-dimension-gap-xs,4px);grid-column:suffix-start/suffix-end}._091406749ed93e6e__item-suffix,._23630f40071a29ff__item-shortcut{color:var(--wpds-color-foreground-content-neutral-weak,#707070);margin-inline-start:var(--wpds-dimension-gap-md,12px)}._23630f40071a29ff__item-shortcut{grid-column:shortcut-start/shortcut-end}._06be17a91bf434a0__item-trailing{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;grid-column:trailing-start/trailing-end;margin-inline-start:var(--wpds-dimension-gap-md,12px)}._943a932d9f81c78c__item-children+:is(._091406749ed93e6e__item-suffix,._23630f40071a29ff__item-shortcut,._06be17a91bf434a0__item-trailing){margin-inline-start:var(--wpds-dimension-gap-xl,24px)}._23630f40071a29ff__item-shortcut+._06be17a91bf434a0__item-trailing{margin-inline-start:var(--wpds-dimension-gap-xs,4px)}.b78aec79bf93eba0__submenu-chevron{margin-inline-end:calc(var(--wpds-dimension-gap-sm, 8px)*-1)}.b78aec79bf93eba0__submenu-chevron:dir(rtl){transform:rotate(180deg)}._60da3b6f9718cf76__external-link-indicator{display:inline-block;font-weight:var(--wpds-typography-font-weight-default,400);line-height:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px);text-decoration:none}._60da3b6f9718cf76__external-link-indicator:after{content:"\\2197"}._60da3b6f9718cf76__external-link-indicator:dir(rtl):after{content:"\\2196"}._5c913bce0d8bb0d6__item[aria-disabled=true] ._06be17a91bf434a0__item-trailing,._5c913bce0d8bb0d6__item[aria-disabled=true] ._091406749ed93e6e__item-suffix,._5c913bce0d8bb0d6__item[aria-disabled=true] ._23630f40071a29ff__item-shortcut,._5c913bce0d8bb0d6__item[aria-disabled=true] ._42313b48c5459be3__item-selection-indicator,._5c913bce0d8bb0d6__item[aria-disabled=true] ._64924ecabf65a5d6__item-prefix,._5c913bce0d8bb0d6__item[aria-disabled=true] .fa88c9f1a96a4c5a__item-description,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._06be17a91bf434a0__item-trailing,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._091406749ed93e6e__item-suffix,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._23630f40071a29ff__item-shortcut,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._42313b48c5459be3__item-selection-indicator,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) ._64924ecabf65a5d6__item-prefix,._5c913bce0d8bb0d6__item[data-highlighted]:not([aria-disabled=true]) .fa88c9f1a96a4c5a__item-description{--_gcd-heading-color:currentColor;color:inherit}}}');var whe={positioner:"d61e2d85c0ee0699__positioner",popup:"_34e81249f419a5a5__popup","item-selection-indicator":"_42313b48c5459be3__item-selection-indicator","is-root":"_087a537b24fee6a1__is-root _380b81b8f79fb10f__dropdown-motion","is-submenu":"_6d3b567f6289bdc2__is-submenu _7f344b94e270e039__dropdown-motion--fade-only",list:"_33f07ab17005471d__list",group:"f11085533c0056b0__group","radio-group":"e05914e1005d7c2e__radio-group",item:"_5c913bce0d8bb0d6__item","item-prefix":"_64924ecabf65a5d6__item-prefix","group-label":"_4a0fd085d76fd23c__group-label",separator:"bfc11368eadf3b39__separator","item-content":"af879698ede76757__item-content","checkbox-selection-icon":"_99c5bd141cbf516f__checkbox-selection-icon","radio-selection-icon":"_59aa9b3b3a651148__radio-selection-icon","prefix-icon":"a836378335a4cbf1__prefix-icon","item-children":"_943a932d9f81c78c__item-children","item-label":"_5ed41da4abcf8958__item-label","item-description":"fa88c9f1a96a4c5a__item-description","item-suffix":"_091406749ed93e6e__item-suffix","item-shortcut":"_23630f40071a29ff__item-shortcut","item-trailing":"_06be17a91bf434a0__item-trailing","submenu-chevron":"b78aec79bf93eba0__submenu-chevron","external-link-indicator":"_60da3b6f9718cf76__external-link-indicator"},She=(0,xhe.forwardRef)(function({children:t,className:o,prefix:r,shortcut:n,suffix:i,"aria-describedby":s,"aria-keyshortcuts":a,"aria-label":l,"aria-labelledby":d,...u},f){let{contentChildren:p,contentContextValue:m,itemAriaProps:g,shortcutDescriptionId:h}=up(t,{"aria-describedby":s,"aria-keyshortcuts":a,"aria-label":l,"aria-labelledby":d,shortcut:n});return(0,fR.jsx)(qt.SubmenuTrigger,{ref:f,...g,className:U(KQe.div,qQe["box-sizing"],whe.item,o),...u,children:(0,fR.jsx)(ed.Provider,{value:m,children:(0,fR.jsx)(fp,{prefix:r,shortcut:n,shortcutDescriptionId:h,suffix:i,trailing:(0,fR.jsx)(fo,{className:whe["submenu-chevron"],icon:nu,size:24,"aria-hidden":"true"}),children:p})})})});var Che=c(D(),1),Ehe=c(T(),1),The=(0,Che.forwardRef)(function(t,o){return(0,Ehe.jsx)(qt.Trigger,{ref:o,...t})});var Rhe=c(zo(),1),K7=c(D(),1),Ihe=c(X(),1),Bhe=c(T(),1),_Y="data-wp-hash";function vY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&ZQe(document)),e.__wpStyleRuntime}function XQe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${_Y}]`))if(o.getAttribute(_Y)===t)return!0;return!1}function Phe(e,t,o){if(!e.head)return;let r=vY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(XQe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(_Y,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function ZQe(e){let t=vY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Phe(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 q7(e,t){let o=vY();o.styles.set(e,t);for(let r of o.documents.keys())Phe(r,e,t)}typeof process>"u",q7("effc4e3032",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._97b0fc33c028be1a__button,.abbb272e2ce49bd6__is-unstyled{appearance:none;padding:0}._97b0fc33c028be1a__button{--wp-ui-button-font-weight:var(--wpds-typography-font-weight-emphasis,600);--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-brand-strong,#fff);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-brand-strong-active,#fff);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-brand-strong-disabled,#8d8d8d);--wp-ui-button-padding-block:var(--wpds-dimension-padding-xs,4px);--wp-ui-button-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-button-height:var(--wpds-dimension-size-lg,40px);--wp-ui-button-aspect-ratio:auto;--wp-ui-button-font-size:var(--wpds-typography-font-size-md,13px);--wp-ui-button-min-width:calc(4ch + var(--wp-ui-button-padding-inline)*2);--wp-ui-button-icon-margin:calc((var(--wpds-dimension-size-2xs, 16px) - var(--wpds-dimension-size-sm, 24px))/2);--wp-ui-button-border-color:var(--wp-ui-button-background-color);--wp-ui-button-border-color-active:var(--wp-ui-button-background-color-active);--wp-ui-button-border-color-disabled:var(--wp-ui-button-background-color-disabled);--_gcd-button-font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);--_gcd-button-font-size:var(--wp-ui-button-font-size);--_gcd-button-font-weight:var(--wp-ui-button-font-weight);align-items:center;aspect-ratio:var(--wp-ui-button-aspect-ratio);background-clip:border-box;background-color:var(--wp-ui-button-background-color);border-color:var(--wp-ui-button-border-color);border-radius:var(--wpds-border-radius-sm,2px);border-style:solid;border-width:1px;color:var(--wp-ui-button-foreground-color);display:inline-flex;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(--wp-ui-button-font-size);font-weight:var(--wp-ui-button-font-weight);gap:var(--wpds-dimension-gap-sm,8px);justify-content:center;line-height:var(--wpds-typography-line-height-sm,20px);max-width:100%;min-height:var(--wp-ui-button-height);min-width:var(--wp-ui-button-min-width);overflow-wrap:anywhere;padding-block:var(--wp-ui-button-padding-block);padding-inline:var(--wp-ui-button-padding-inline);position:relative;text-align:center;text-decoration:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}@media not (prefers-reduced-motion){transition:color .1s ease-out;*{transition:opacity .1s ease-out}}&[href]{cursor:pointer}[href]{color:inherit;text-decoration:inherit}&:not([data-disabled]):is(:hover,:active,:focus){background-color:var(--wp-ui-button-background-color-active);border-color:var(--wp-ui-button-border-color-active);color:var(--wp-ui-button-foreground-color-active)}&[data-disabled]:not(._914b42f315c0e580__is-loading){background-color:var(--wp-ui-button-background-color-disabled);border-color:var(--wp-ui-button-border-color-disabled);color:var(--wp-ui-button-foreground-color-disabled);@media (forced-colors:active){border-bottom-color:GrayText;border-left-color:GrayText;border-right-color:GrayText;border-top-color:GrayText;color:GrayText}}&:before{aspect-ratio:1;border:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid;border-block-end-color:transparent;border-block-start-color:var(--wp-ui-button-foreground-color);border-inline-end-color:var(--wp-ui-button-foreground-color);border-inline-start-color:transparent;border-radius:50%;box-sizing:border-box;content:"";display:block;height:var(--wp-ui-button-font-size);left:50%;opacity:0;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);@media not (prefers-reduced-motion){transition:opacity .1s ease-out}@media (forced-colors:active){border-block-end-style:none;border-bottom-color:ButtonText;border-inline-start-style:none;border-left-color:ButtonText;border-right-color:ButtonText;border-top-color:ButtonText}}}._908205475f9f2a92__is-small{--wp-ui-button-padding-block:0px;--wp-ui-button-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-button-height:var(--wpds-dimension-size-sm,24px)}._9f6fc6553aeb36fe__icon{margin:var(--wp-ui-button-icon-margin)}.dd460c965226cc77__is-brand{&._62d5a778b7b258ee__is-outline,&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000));--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-brand-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline{--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);--wp-ui-button-border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-border-color-active:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000));--wp-ui-button-border-color-disabled:var(--wpds-color-stroke-interactive-brand-disabled,#dbdbdb)}&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-weak-disabled,#0000)}}.e722a8f96726aa99__is-neutral{&.ad0619a3217c6a5b__is-minimal[aria-pressed=true],&.b50b3358c5fb4d0b__is-solid{--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-strong,#2d2d2d);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-strong-active,#1e1e1e);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-neutral-strong,#f0f0f0);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-neutral-strong-active,#f0f0f0);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-neutral-strong-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline,&.ad0619a3217c6a5b__is-minimal:not([aria-pressed=true]){--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline{--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);--wp-ui-button-border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);--wp-ui-button-border-color-active:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e);--wp-ui-button-border-color-disabled:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb)}&.ad0619a3217c6a5b__is-minimal:not([aria-pressed=true]){--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000)}}.abbb272e2ce49bd6__is-unstyled{background:none;border:none;min-width:unset}.cf59cf1b69629838__is-compact{--wp-ui-button-height:var(--wpds-dimension-size-md,32px)}._914b42f315c0e580__is-loading:not(.abbb272e2ce49bd6__is-unstyled){color:transparent;&:not([data-disabled]):is(:hover,:active,:focus){color:transparent}@media (forced-colors:active){color:ButtonFace}*{opacity:0}&:before{opacity:1;transition-delay:.05s;@media not (prefers-reduced-motion){animation:_5a1d53da6f830c8d__loading-animation 1s linear infinite}}}}@keyframes _5a1d53da6f830c8d__loading-animation{0%{transform:translate(-50%,-50%) rotate(0deg)}to{transform:translate(-50%,-50%) rotate(1turn)}}}');var pR={button:"_97b0fc33c028be1a__button","is-unstyled":"abbb272e2ce49bd6__is-unstyled","is-loading":"_914b42f315c0e580__is-loading","is-small":"_908205475f9f2a92__is-small",icon:"_9f6fc6553aeb36fe__icon","is-brand":"dd460c965226cc77__is-brand","is-outline":"_62d5a778b7b258ee__is-outline","is-minimal":"ad0619a3217c6a5b__is-minimal","is-neutral":"e722a8f96726aa99__is-neutral","is-solid":"b50b3358c5fb4d0b__is-solid","is-compact":"cf59cf1b69629838__is-compact","loading-animation":"_5a1d53da6f830c8d__loading-animation"};typeof process>"u",q7("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var QQe={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",q7("08122b3d53","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.af79fb116edb0dd7__outset-ring--focus:focus,.dfcfdc28396e5d98__outset-ring--focus-visible:focus-visible,.e5cd9ee879f6403a__outset-ring--focus-within:focus-within,:focus-visible ._81935a08e952f267__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within,.abc777e9713fa711__outset-ring--focus-except-active:focus{outline:none}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.abc777e9713fa711__outset-ring--focus-except-active:focus:not(:active){--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");var JQe={"outset-ring--focus":"af79fb116edb0dd7__outset-ring--focus","outset-ring--focus-visible":"dfcfdc28396e5d98__outset-ring--focus-visible","outset-ring--focus-within":"e5cd9ee879f6403a__outset-ring--focus-within","outset-ring--focus-parent-visible":"_81935a08e952f267__outset-ring--focus-parent-visible","outset-ring--focus-except-active":"abc777e9713fa711__outset-ring--focus-except-active","outset-ring--focus-within-except-active":"_3c9f5ee9fc9c136d__outset-ring--focus-within-except-active"};typeof process>"u",q7("e8e31009f5","._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);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var eJe={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"},Ohe=(0,K7.forwardRef)(function({tone:t="brand",variant:o="solid",size:r="default",className:n,focusableWhenDisabled:i=!0,disabled:s,loading:a,loadingAnnouncement:l=(0,Ihe.__)("Loading"),children:d,...u},f){let p=U(eJe.button,QQe["box-sizing"],JQe["outset-ring--focus-except-active"],o!=="unstyled"&&pR.button,pR[`is-${t}`],pR[`is-${o}`],pR[`is-${r}`],a&&pR["is-loading"],n);return(0,K7.useEffect)(()=>{a&&l&&(0,Rhe.speak)(l)},[a,l]),(0,Bhe.jsx)(OG,{ref:f,className:p,focusableWhenDisabled:i,disabled:s??a,...u,children:d})});var Mhe=c(D(),1);var Nhe=c(T(),1),yY="data-wp-hash";function wY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&oJe(document)),e.__wpStyleRuntime}function tJe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${yY}]`))if(o.getAttribute(yY)===t)return!0;return!1}function Ahe(e,t,o){if(!e.head)return;let r=wY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(tJe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(yY,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function oJe(e){let t=wY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Ahe(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 rJe(e,t){let o=wY();o.styles.set(e,t);for(let r of o.documents.keys())Ahe(r,e,t)}typeof process>"u",rJe("effc4e3032",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._97b0fc33c028be1a__button,.abbb272e2ce49bd6__is-unstyled{appearance:none;padding:0}._97b0fc33c028be1a__button{--wp-ui-button-font-weight:var(--wpds-typography-font-weight-emphasis,600);--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-brand-strong,#fff);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-brand-strong-active,#fff);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-brand-strong-disabled,#8d8d8d);--wp-ui-button-padding-block:var(--wpds-dimension-padding-xs,4px);--wp-ui-button-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-button-height:var(--wpds-dimension-size-lg,40px);--wp-ui-button-aspect-ratio:auto;--wp-ui-button-font-size:var(--wpds-typography-font-size-md,13px);--wp-ui-button-min-width:calc(4ch + var(--wp-ui-button-padding-inline)*2);--wp-ui-button-icon-margin:calc((var(--wpds-dimension-size-2xs, 16px) - var(--wpds-dimension-size-sm, 24px))/2);--wp-ui-button-border-color:var(--wp-ui-button-background-color);--wp-ui-button-border-color-active:var(--wp-ui-button-background-color-active);--wp-ui-button-border-color-disabled:var(--wp-ui-button-background-color-disabled);--_gcd-button-font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);--_gcd-button-font-size:var(--wp-ui-button-font-size);--_gcd-button-font-weight:var(--wp-ui-button-font-weight);align-items:center;aspect-ratio:var(--wp-ui-button-aspect-ratio);background-clip:border-box;background-color:var(--wp-ui-button-background-color);border-color:var(--wp-ui-button-border-color);border-radius:var(--wpds-border-radius-sm,2px);border-style:solid;border-width:1px;color:var(--wp-ui-button-foreground-color);display:inline-flex;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(--wp-ui-button-font-size);font-weight:var(--wp-ui-button-font-weight);gap:var(--wpds-dimension-gap-sm,8px);justify-content:center;line-height:var(--wpds-typography-line-height-sm,20px);max-width:100%;min-height:var(--wp-ui-button-height);min-width:var(--wp-ui-button-min-width);overflow-wrap:anywhere;padding-block:var(--wp-ui-button-padding-block);padding-inline:var(--wp-ui-button-padding-inline);position:relative;text-align:center;text-decoration:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}@media not (prefers-reduced-motion){transition:color .1s ease-out;*{transition:opacity .1s ease-out}}&[href]{cursor:pointer}[href]{color:inherit;text-decoration:inherit}&:not([data-disabled]):is(:hover,:active,:focus){background-color:var(--wp-ui-button-background-color-active);border-color:var(--wp-ui-button-border-color-active);color:var(--wp-ui-button-foreground-color-active)}&[data-disabled]:not(._914b42f315c0e580__is-loading){background-color:var(--wp-ui-button-background-color-disabled);border-color:var(--wp-ui-button-border-color-disabled);color:var(--wp-ui-button-foreground-color-disabled);@media (forced-colors:active){border-bottom-color:GrayText;border-left-color:GrayText;border-right-color:GrayText;border-top-color:GrayText;color:GrayText}}&:before{aspect-ratio:1;border:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid;border-block-end-color:transparent;border-block-start-color:var(--wp-ui-button-foreground-color);border-inline-end-color:var(--wp-ui-button-foreground-color);border-inline-start-color:transparent;border-radius:50%;box-sizing:border-box;content:"";display:block;height:var(--wp-ui-button-font-size);left:50%;opacity:0;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);@media not (prefers-reduced-motion){transition:opacity .1s ease-out}@media (forced-colors:active){border-block-end-style:none;border-bottom-color:ButtonText;border-inline-start-style:none;border-left-color:ButtonText;border-right-color:ButtonText;border-top-color:ButtonText}}}._908205475f9f2a92__is-small{--wp-ui-button-padding-block:0px;--wp-ui-button-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-button-height:var(--wpds-dimension-size-sm,24px)}._9f6fc6553aeb36fe__icon{margin:var(--wp-ui-button-icon-margin)}.dd460c965226cc77__is-brand{&._62d5a778b7b258ee__is-outline,&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000));--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-brand-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline{--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);--wp-ui-button-border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-border-color-active:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000));--wp-ui-button-border-color-disabled:var(--wpds-color-stroke-interactive-brand-disabled,#dbdbdb)}&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-weak-disabled,#0000)}}.e722a8f96726aa99__is-neutral{&.ad0619a3217c6a5b__is-minimal[aria-pressed=true],&.b50b3358c5fb4d0b__is-solid{--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-strong,#2d2d2d);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-strong-active,#1e1e1e);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-neutral-strong,#f0f0f0);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-neutral-strong-active,#f0f0f0);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-neutral-strong-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline,&.ad0619a3217c6a5b__is-minimal:not([aria-pressed=true]){--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline{--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);--wp-ui-button-border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);--wp-ui-button-border-color-active:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e);--wp-ui-button-border-color-disabled:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb)}&.ad0619a3217c6a5b__is-minimal:not([aria-pressed=true]){--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000)}}.abbb272e2ce49bd6__is-unstyled{background:none;border:none;min-width:unset}.cf59cf1b69629838__is-compact{--wp-ui-button-height:var(--wpds-dimension-size-md,32px)}._914b42f315c0e580__is-loading:not(.abbb272e2ce49bd6__is-unstyled){color:transparent;&:not([data-disabled]):is(:hover,:active,:focus){color:transparent}@media (forced-colors:active){color:ButtonFace}*{opacity:0}&:before{opacity:1;transition-delay:.05s;@media not (prefers-reduced-motion){animation:_5a1d53da6f830c8d__loading-animation 1s linear infinite}}}}@keyframes _5a1d53da6f830c8d__loading-animation{0%{transform:translate(-50%,-50%) rotate(0deg)}to{transform:translate(-50%,-50%) rotate(1turn)}}}');var nJe={button:"_97b0fc33c028be1a__button","is-unstyled":"abbb272e2ce49bd6__is-unstyled","is-loading":"_914b42f315c0e580__is-loading","is-small":"_908205475f9f2a92__is-small",icon:"_9f6fc6553aeb36fe__icon","is-brand":"dd460c965226cc77__is-brand","is-outline":"_62d5a778b7b258ee__is-outline","is-minimal":"ad0619a3217c6a5b__is-minimal","is-neutral":"e722a8f96726aa99__is-neutral","is-solid":"b50b3358c5fb4d0b__is-solid","is-compact":"cf59cf1b69629838__is-compact","loading-animation":"_5a1d53da6f830c8d__loading-animation"},xY=(0,Mhe.forwardRef)(function({className:t,icon:o,...r},n){return(0,Nhe.jsx)(fo,{ref:n,icon:o,className:U(nJe.icon,t),size:24,...r})});xY.displayName="Button.Icon";var A0=Object.assign(Ohe,{Icon:xY});function Lhe(e,t,o="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:o}).format(t).split(/\s/g).slice(2).join(" ")}var iJe={},mR={};function td(e,t){try{let r=(iJe[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];return r in mR?mR[r]:Dhe(r,r.split(":"))}catch{if(e in mR)return mR[e];let o=e?.match(sJe);return o?Dhe(e,o.slice(1)):NaN}}var sJe=/([+-]\d\d):?(\d\d)?/;function Dhe(e,t){let o=+(t[0]||0),r=+(t[1]||0),n=+(t[2]||0)/60;return mR[e]=o*60+r>0?o*60+r+n:o*60-r-n}var Kg=class e extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(td(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),zhe(this,t)):this.setTime(Date.now())}static tz(t,...o){return o.length?new e(...o,t):new e(Date.now(),t)}withTimeZone(t){return new e(+this,t)}getTimezoneOffset(){let t=-td(this.timeZone,this);return t>0?Math.floor(t):Math.ceil(t)}setTime(t){return Date.prototype.setTime.apply(this,arguments),X7(this),+this}[Symbol.for("constructDateFrom")](t){return new e(+new Date(t),this.timeZone)}},Vhe=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!Vhe.test(e))return;let t=e.replace(Vhe,"$1UTC");Kg.prototype[t]&&(e.startsWith("get")?Kg.prototype[e]=function(){return this.internal[t]()}:(Kg.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),aJe(this),+this},Kg.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),X7(this),+this}))});function X7(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-td(e.timeZone,e)*60))}function aJe(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),zhe(e)}function zhe(e,t){let o=Array.isArray(t)?lJe(t):+e.internal,r=td(e.timeZone,e),n=r>0?Math.floor(r):Math.ceil(r),i=new Date(+e);i.setUTCHours(i.getUTCHours()-1);let s=-new Date(+e).getTimezoneOffset(),a=-new Date(+i).getTimezoneOffset(),l=s-a,d=s;if(l&&s!==n){let R=Date.prototype.getHours.apply(e),E=Array.isArray(t)?t[3]||0:e.internal.getUTCHours();if(R!==E){let I=new Date(+e),B=s-n;B&&I.setUTCMinutes(I.getUTCMinutes()+B);let O=td(e.timeZone,I);(O>0?Math.floor(O):Math.ceil(O))===n&&(d=a)}}let u=d-n;u&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+u);let f=new Date(+e);f.setUTCSeconds(0);let p=s>0?f.getSeconds():(f.getSeconds()-60)%60,m=Math.round(-(td(e.timeZone,e)*60))%60;(m||p)&&Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+m+p);let g=td(e.timeZone,e),h=g>0?Math.floor(g):Math.ceil(g),v=-new Date(+e).getTimezoneOffset()-h,_=h!==n,y=v-u,w=h-n,x=o-h*60*1e3,k=w>0&&Fhe(e)-o===w*60*1e3&&Fhe(e,x)!==o;if(_&&y&&!k){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+y);let R=td(e.timeZone,e),E=R>0?Math.floor(R):Math.ceil(R),I=h-E;I&&y<0&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+I)}X7(e);let S=(t?o:o+m*1e3)-+e.internal;S&&Math.abs(S)<1800*1e3&&(Date.prototype.setTime.call(e,+e+S),X7(e))}function lJe(e){return Date.UTC(e[0],e.length>1?e[1]:0,e.length>2?e[2]:1,...e.slice(3))}function Fhe(e,t){let o=new Date(t??+e);return o.setUTCSeconds(o.getUTCSeconds()-Math.round(-td(e.timeZone,o)*60)),+o}var Zr=class e extends Kg{static tz(t,...o){return o.length?new e(...o,t):new e(Date.now(),t)}toISOString(){let[t,o,r]=this.tzComponents(),n=`${t}${o}:${r}`;return this.internal.toISOString().slice(0,-1)+n}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){let[t,o,r,n]=this.internal.toUTCString().split(" ");return`${t?.slice(0,-1)} ${r} ${o} ${n}`}toTimeString(){let t=this.internal.toUTCString().split(" ")[4],[o,r,n]=this.tzComponents();return`${t} GMT${o}${r}${n} (${Lhe(this.timeZone,this)})`}toLocaleString(t,o){return Date.prototype.toLocaleString.call(this,t,{...o,timeZone:o?.timeZone||this.timeZone})}toLocaleDateString(t,o){return Date.prototype.toLocaleDateString.call(this,t,{...o,timeZone:o?.timeZone||this.timeZone})}toLocaleTimeString(t,o){return Date.prototype.toLocaleTimeString.call(this,t,{...o,timeZone:o?.timeZone||this.timeZone})}tzComponents(){let t=this.getTimezoneOffset(),o=t>0?"-":"+",r=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),n=String(Math.abs(t)%60).padStart(2,"0");return[o,r,n]}withTimeZone(t){return new e(+this,t)}[Symbol.for("constructDateFrom")](t){return new e(+new Date(t),this.timeZone)}};var cJe=Math.pow(10,8)*24*60*60*1e3,Wqt=-cJe,Z7=6048e5,jhe=864e5,gR=6e4,hR=36e5,Hhe=1e3;var dJe=3600;var Uhe=dJe*24,Gqt=Uhe*7,uJe=Uhe*365.2425,fJe=uJe/12,$qt=fJe*3,kY=Symbol.for("constructDateFrom");function it(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&kY in e?e[kY](t):e instanceof Date?new e.constructor(t):new Date(t)}function Ve(e,t){return it(t||e,e)}function Cu(e,t,o){let r=Ve(e,o?.in);return isNaN(t)?it(o?.in||e,NaN):(t&&r.setDate(r.getDate()+t),r)}function N0(e,t,o){let r=Ve(e,o?.in);if(isNaN(t))return it(o?.in||e,NaN);if(!t)return r;let n=r.getDate(),i=it(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 pJe={};function ta(){return pJe}function Yi(e,t){let o=ta(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,n=Ve(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 Da(e,t){return Yi(e,{...t,weekStartsOn:1})}function Q7(e,t){let o=Ve(e,t?.in),r=o.getFullYear(),n=it(o,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);let i=Da(n),s=it(o,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);let a=Da(s);return o.getTime()>=i.getTime()?r+1:o.getTime()>=a.getTime()?r:r-1}function U_(e){let t=Ve(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 Ol(e,...t){let o=it.bind(null,e||t.find(r=>typeof r=="object"));return t.map(o)}function qg(e,t){let o=Ve(e,t?.in);return o.setHours(0,0,0,0),o}function gp(e,t,o){let[r,n]=Ol(o?.in,e,t),i=qg(r),s=qg(n),a=+i-U_(i),l=+s-U_(s);return Math.round((a-l)/jhe)}function Whe(e,t){let o=Q7(e,t),r=it(t?.in||e,0);return r.setFullYear(o,0,4),r.setHours(0,0,0,0),Da(r)}function J7(e,t,o){return Cu(e,t*7,o)}function e6(e,t,o){return N0(e,t*12,o)}function Ghe(e,t,o){let[r,n]=[+Ve(e.start,o?.in),+Ve(e.end,o?.in)].sort((a,l)=>a-l),[i,s]=[+Ve(t.start,o?.in),+Ve(t.end,o?.in)].sort((a,l)=>a-l);return o?.inclusive?r<=s&&i<=n:r<s&&i<n}function $he(e,t){let o,r=t?.in;return e.forEach(n=>{!r&&typeof n=="object"&&(r=it.bind(null,n));let i=Ve(n,r);(!o||o<i||isNaN(+i))&&(o=i)}),it(r,o||NaN)}function Yhe(e,t){let o,r=t?.in;return e.forEach(n=>{!r&&typeof n=="object"&&(r=it.bind(null,n));let i=Ve(n,r);(!o||o>i||isNaN(+i))&&(o=i)}),it(r,o||NaN)}function Khe(e,t,o){let[r,n]=Ol(o?.in,e,t);return+qg(r)==+qg(n)}function t6(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function od(e){return!(!t6(e)&&typeof e!="number"||isNaN(+Ve(e)))}function o6(e,t,o){let[r,n]=Ol(o?.in,e,t),i=r.getFullYear()-n.getFullYear(),s=r.getMonth()-n.getMonth();return i*12+s}function r6(e,t){let o=Ve(e,t?.in),r=o.getMonth();return o.setFullYear(o.getFullYear(),r+1,0),o.setHours(23,59,59,999),o}function n6(e,t){let[o,r]=Ol(e,t.start,t.end);return{start:o,end:r}}function qhe(e,t){let{start:o,end:r}=n6(t?.in,e),n=+o>+r,i=n?+o:+r,s=n?r:o;s.setHours(0,0,0,0),s.setDate(1);let a=t?.step??1;if(!a)return[];a<0&&(a=-a,n=!n);let l=[];for(;+s<=i;)l.push(it(o,s)),s.setMonth(s.getMonth()+a);return n?l.reverse():l}function bR(e,t){let o=Ve(e,t?.in);return o.setDate(1),o.setHours(0,0,0,0),o}function Xhe(e,t){let o=Ve(e,t?.in),r=o.getFullYear();return o.setFullYear(r+1,0,0),o.setHours(23,59,59,999),o}function L0(e,t){let o=Ve(e,t?.in);return o.setFullYear(o.getFullYear(),0,1),o.setHours(0,0,0,0),o}function Zhe(e,t){let{start:o,end:r}=n6(t?.in,e),n=+o>+r,i=n?+o:+r,s=n?r:o;s.setHours(0,0,0,0),s.setMonth(0,1);let a=t?.step??1;if(!a)return[];a<0&&(a=-a,n=!n);let l=[];for(;+s<=i;)l.push(it(o,s)),s.setFullYear(s.getFullYear()+a);return n?l.reverse():l}function i6(e,t){let o=ta(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,n=Ve(e,t?.in),i=n.getDay(),s=(i<r?-7:0)+6-(i-r);return n.setDate(n.getDate()+s),n.setHours(23,59,59,999),n}function Qhe(e,t){return i6(e,{...t,weekStartsOn:1})}var mJe={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"}},Jhe=(e,t,o)=>{let r,n=mJe[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 s6(e){return(t={})=>{let o=t.width?String(t.width):e.defaultWidth;return e.formats[o]||e.formats[e.defaultWidth]}}var gJe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},hJe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},bJe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ebe={date:s6({formats:gJe,defaultWidth:"full"}),time:s6({formats:hJe,defaultWidth:"full"}),dateTime:s6({formats:bJe,defaultWidth:"full"})};var _Je={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},tbe=(e,t,o,r)=>_Je[e];function D0(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 vJe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},yJe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},wJe={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"]},xJe={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"]},kJe={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"}},SJe={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"}},CJe=(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"},obe={ordinalNumber:CJe,era:D0({values:vJe,defaultWidth:"wide"}),quarter:D0({values:yJe,defaultWidth:"wide",argumentCallback:e=>e-1}),month:D0({values:wJe,defaultWidth:"wide"}),day:D0({values:xJe,defaultWidth:"wide"}),dayPeriod:D0({values:kJe,defaultWidth:"wide",formattingValues:SJe,defaultFormattingWidth:"wide"})};function V0(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)?TJe(a,f=>f.test(s)):EJe(a,f=>f.test(s)),d;d=e.valueCallback?e.valueCallback(l):l,d=o.valueCallback?o.valueCallback(d):d;let u=t.slice(s.length);return{value:d,rest:u}}}function EJe(e,t){for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&t(e[o]))return o}function TJe(e,t){for(let o=0;o<e.length;o++)if(t(e[o]))return o}function rbe(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 RJe=/^(\d+)(th|st|nd|rd)?/i,IJe=/\d+/i,PJe={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},BJe={any:[/^b/i,/^(a|c)/i]},OJe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},MJe={any:[/1/i,/2/i,/3/i,/4/i]},AJe={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},NJe={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]},LJe={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},DJe={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]},VJe={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},FJe={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}},nbe={ordinalNumber:rbe({matchPattern:RJe,parsePattern:IJe,valueCallback:e=>parseInt(e,10)}),era:V0({matchPatterns:PJe,defaultMatchWidth:"wide",parsePatterns:BJe,defaultParseWidth:"any"}),quarter:V0({matchPatterns:OJe,defaultMatchWidth:"wide",parsePatterns:MJe,defaultParseWidth:"any",valueCallback:e=>e+1}),month:V0({matchPatterns:AJe,defaultMatchWidth:"wide",parsePatterns:NJe,defaultParseWidth:"any"}),day:V0({matchPatterns:LJe,defaultMatchWidth:"wide",parsePatterns:DJe,defaultParseWidth:"any"}),dayPeriod:V0({matchPatterns:VJe,defaultMatchWidth:"any",parsePatterns:FJe,defaultParseWidth:"any"})};var Va={code:"en-US",formatDistance:Jhe,formatLong:ebe,formatRelative:tbe,localize:obe,match:nbe,options:{weekStartsOn:0,firstWeekContainsDate:1}};function ibe(e,t){let o=Ve(e,t?.in);return gp(o,L0(o))+1}function Xg(e,t){let o=Ve(e,t?.in),r=+Da(o)-+Whe(o);return Math.round(r/Z7)+1}function F0(e,t){let o=Ve(e,t?.in),r=o.getFullYear(),n=ta(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,s=it(t?.in||e,0);s.setFullYear(r+1,0,i),s.setHours(0,0,0,0);let a=Yi(s,t),l=it(t?.in||e,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);let d=Yi(l,t);return+o>=+a?r+1:+o>=+d?r:r-1}function sbe(e,t){let o=ta(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,n=F0(e,t),i=it(t?.in||e,0);return i.setFullYear(n,0,r),i.setHours(0,0,0,0),Yi(i,t)}function Zg(e,t){let o=Ve(e,t?.in),r=+Yi(o,t)-+sbe(o,t);return Math.round(r/Z7)+1}function po(e,t){let o=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return o+r}var hp={y(e,t){let o=e.getFullYear(),r=o>0?o:1-o;return po(t==="yy"?r%100:r,t.length)},M(e,t){let o=e.getMonth();return t==="M"?String(o+1):po(o+1,2)},d(e,t){return po(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 po(e.getHours()%12||12,t.length)},H(e,t){return po(e.getHours(),t.length)},m(e,t){return po(e.getMinutes(),t.length)},s(e,t){return po(e.getSeconds(),t.length)},S(e,t){let o=t.length,r=e.getMilliseconds(),n=Math.trunc(r*Math.pow(10,o-3));return po(n,t.length)}};var z0={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},SY={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 hp.y(e,t)},Y:function(e,t,o,r){let n=F0(e,r),i=n>0?n:1-n;if(t==="YY"){let s=i%100;return po(s,2)}return t==="Yo"?o.ordinalNumber(i,{unit:"year"}):po(i,t.length)},R:function(e,t){let o=Q7(e);return po(o,t.length)},u:function(e,t){let o=e.getFullYear();return po(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 po(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 po(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 hp.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 po(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=Zg(e,r);return t==="wo"?o.ordinalNumber(n,{unit:"week"}):po(n,t.length)},I:function(e,t,o){let r=Xg(e);return t==="Io"?o.ordinalNumber(r,{unit:"week"}):po(r,t.length)},d:function(e,t,o){return t==="do"?o.ordinalNumber(e.getDate(),{unit:"date"}):hp.d(e,t)},D:function(e,t,o){let r=ibe(e);return t==="Do"?o.ordinalNumber(r,{unit:"dayOfYear"}):po(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 po(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 po(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 po(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=z0.noon:r===0?n=z0.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=z0.evening:r>=12?n=z0.afternoon:r>=4?n=z0.morning:n=z0.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 hp.h(e,t)},H:function(e,t,o){return t==="Ho"?o.ordinalNumber(e.getHours(),{unit:"hour"}):hp.H(e,t)},K:function(e,t,o){let r=e.getHours()%12;return t==="Ko"?o.ordinalNumber(r,{unit:"hour"}):po(r,t.length)},k:function(e,t,o){let r=e.getHours();return r===0&&(r=24),t==="ko"?o.ordinalNumber(r,{unit:"hour"}):po(r,t.length)},m:function(e,t,o){return t==="mo"?o.ordinalNumber(e.getMinutes(),{unit:"minute"}):hp.m(e,t)},s:function(e,t,o){return t==="so"?o.ordinalNumber(e.getSeconds(),{unit:"second"}):hp.s(e,t)},S:function(e,t){return hp.S(e,t)},X:function(e,t,o){let r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return lbe(r);case"XXXX":case"XX":return W_(r);default:return W_(r,":")}},x:function(e,t,o){let r=e.getTimezoneOffset();switch(t){case"x":return lbe(r);case"xxxx":case"xx":return W_(r);default:return W_(r,":")}},O:function(e,t,o){let r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+abe(r,":");default:return"GMT"+W_(r,":")}},z:function(e,t,o){let r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+abe(r,":");default:return"GMT"+W_(r,":")}},t:function(e,t,o){let r=Math.trunc(+e/1e3);return po(r,t.length)},T:function(e,t,o){return po(+e,t.length)}};function abe(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+po(i,2)}function lbe(e,t){return e%60===0?(e>0?"-":"+")+po(Math.abs(e)/60,2):W_(e,t)}function W_(e,t=""){let o=e>0?"-":"+",r=Math.abs(e),n=po(Math.trunc(r/60),2),i=po(r%60,2);return o+n+t+i}var cbe=(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"})}},dbe=(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"})}},zJe=(e,t)=>{let o=e.match(/(P+)(p+)?/)||[],r=o[1],n=o[2];if(!n)return cbe(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}}",cbe(r,t)).replace("{{time}}",dbe(n,t))},_R={p:dbe,P:zJe};var jJe=/^D+$/,HJe=/^Y+$/,UJe=["D","DD","YY","YYYY"];function a6(e){return jJe.test(e)}function l6(e){return HJe.test(e)}function vR(e,t,o){let r=WJe(e,t,o);if(console.warn(r),UJe.includes(e))throw new RangeError(r)}function WJe(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 GJe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,$Je=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,YJe=/^'([^]*?)'?$/,KJe=/''/g,qJe=/[a-zA-Z]/;function bp(e,t,o){let r=ta(),n=o?.locale??r.locale??Va,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=Ve(e,o?.in);if(!od(a))throw new RangeError("Invalid time value");let l=t.match($Je).map(u=>{let f=u[0];if(f==="p"||f==="P"){let p=_R[f];return p(u,n.formatLong)}return u}).join("").match(GJe).map(u=>{if(u==="''")return{isToken:!1,value:"'"};let f=u[0];if(f==="'")return{isToken:!1,value:XJe(u)};if(SY[f])return{isToken:!0,value:u};if(f.match(qJe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+f+"`");return{isToken:!1,value:u}});n.localize.preprocessor&&(l=n.localize.preprocessor(a,l));let d={firstWeekContainsDate:i,weekStartsOn:s,locale:n};return l.map(u=>{if(!u.isToken)return u.value;let f=u.value;(!o?.useAdditionalWeekYearTokens&&l6(f)||!o?.useAdditionalDayOfYearTokens&&a6(f))&&vR(f,t,String(e));let p=SY[f[0]];return p(a,f,n.localize,d)}).join("")}function XJe(e){let t=e.match(YJe);return t?t[1].replace(KJe,"'"):e}function ube(e,t){let o=Ve(e,t?.in),r=o.getFullYear(),n=o.getMonth(),i=it(o,0);return i.setFullYear(r,n+1,0),i.setHours(0,0,0,0),i.getDate()}function fbe(){return Object.assign({},ta())}function pbe(e,t){let o=Ve(e,t?.in).getDay();return o===0?7:o}function mbe(e,t){return Ve(e,t?.in).getMonth()}function gbe(e,t){return Ve(e,t?.in).getFullYear()}function hbe(e,t){return+Ve(e)>+Ve(t)}function bbe(e,t){return+Ve(e)<+Ve(t)}function _be(e,t){let o=ZJe(t)?new t(0):it(t,0);return o.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),o.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),o}function ZJe(e){return typeof e=="function"&&e.prototype?.constructor===e}var QJe=10,c6=class{subPriority=0;validate(t,o){return!0}},d6=class extends c6{constructor(t,o,r,n,i){super(),this.value=t,this.validateValue=o,this.setValue=r,this.priority=n,i&&(this.subPriority=i)}validate(t,o){return this.validateValue(t,this.value,o)}set(t,o,r){return this.setValue(t,o,this.value,r)}},u6=class extends c6{priority=QJe;subPriority=-1;constructor(t,o){super(),this.context=t||(r=>it(o,r))}set(t,o){return o.timestampIsSet?t:it(t,_be(t,this.context))}};var Xe=class{run(t,o,r,n){let i=this.parse(t,o,r,n);return i?{setter:new d6(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(t,o,r){return!0}};var f6=class extends Xe{priority=140;parse(t,o,r){switch(o){case"G":case"GG":case"GGG":return r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"});case"GGGGG":return r.era(t,{width:"narrow"});default:return r.era(t,{width:"wide"})||r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"})}}set(t,o,r){return o.era=r,t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["R","u","t","T"]};var Xt={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Ml={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Co(e,t){return e&&{value:t(e.value),rest:e.rest}}function Ht(e,t){let o=t.match(e);return o?{value:parseInt(o[0],10),rest:t.slice(o[0].length)}:null}function Al(e,t){let o=t.match(e);if(!o)return null;if(o[0]==="Z")return{value:0,rest:t.slice(1)};let r=o[1]==="+"?1:-1,n=o[2]?parseInt(o[2],10):0,i=o[3]?parseInt(o[3],10):0,s=o[5]?parseInt(o[5],10):0;return{value:r*(n*hR+i*gR+s*Hhe),rest:t.slice(o[0].length)}}function p6(e){return Ht(Xt.anyDigitsSigned,e)}function Tt(e,t){switch(e){case 1:return Ht(Xt.singleDigit,t);case 2:return Ht(Xt.twoDigits,t);case 3:return Ht(Xt.threeDigits,t);case 4:return Ht(Xt.fourDigits,t);default:return Ht(new RegExp("^\\d{1,"+e+"}"),t)}}function j0(e,t){switch(e){case 1:return Ht(Xt.singleDigitSigned,t);case 2:return Ht(Xt.twoDigitsSigned,t);case 3:return Ht(Xt.threeDigitsSigned,t);case 4:return Ht(Xt.fourDigitsSigned,t);default:return Ht(new RegExp("^-?\\d{1,"+e+"}"),t)}}function H0(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function m6(e,t){let o=t>0,r=o?t:1-t,n;if(r<=50)n=e||100;else{let i=r+50,s=Math.trunc(i/100)*100,a=e>=i%100;n=e+s-(a?100:0)}return o?n:1-n}function g6(e){return e%400===0||e%4===0&&e%100!==0}var h6=class extends Xe{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(t,o,r){let n=i=>({year:i,isTwoDigitYear:o==="yy"});switch(o){case"y":return Co(Tt(4,t),n);case"yo":return Co(r.ordinalNumber(t,{unit:"year"}),n);default:return Co(Tt(o.length,t),n)}}validate(t,o){return o.isTwoDigitYear||o.year>0}set(t,o,r){let n=t.getFullYear();if(r.isTwoDigitYear){let s=m6(r.year,n);return t.setFullYear(s,0,1),t.setHours(0,0,0,0),t}let i=!("era"in o)||o.era===1?r.year:1-r.year;return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}};var b6=class extends Xe{priority=130;parse(t,o,r){let n=i=>({year:i,isTwoDigitYear:o==="YY"});switch(o){case"Y":return Co(Tt(4,t),n);case"Yo":return Co(r.ordinalNumber(t,{unit:"year"}),n);default:return Co(Tt(o.length,t),n)}}validate(t,o){return o.isTwoDigitYear||o.year>0}set(t,o,r,n){let i=F0(t,n);if(r.isTwoDigitYear){let a=m6(r.year,i);return t.setFullYear(a,0,n.firstWeekContainsDate),t.setHours(0,0,0,0),Yi(t,n)}let s=!("era"in o)||o.era===1?r.year:1-r.year;return t.setFullYear(s,0,n.firstWeekContainsDate),t.setHours(0,0,0,0),Yi(t,n)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]};var _6=class extends Xe{priority=130;parse(t,o){return o==="R"?j0(4,t):j0(o.length,t)}set(t,o,r){let n=it(t,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),Da(n)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]};var v6=class extends Xe{priority=130;parse(t,o){return o==="u"?j0(4,t):j0(o.length,t)}set(t,o,r){return t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]};var y6=class extends Xe{priority=120;parse(t,o,r){switch(o){case"Q":case"QQ":return Tt(o.length,t);case"Qo":return r.ordinalNumber(t,{unit:"quarter"});case"QQQ":return r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(t,{width:"narrow",context:"formatting"});default:return r.quarter(t,{width:"wide",context:"formatting"})||r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,o){return o>=1&&o<=4}set(t,o,r){return t.setMonth((r-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]};var w6=class extends Xe{priority=120;parse(t,o,r){switch(o){case"q":case"qq":return Tt(o.length,t);case"qo":return r.ordinalNumber(t,{unit:"quarter"});case"qqq":return r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(t,{width:"narrow",context:"standalone"});default:return r.quarter(t,{width:"wide",context:"standalone"})||r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,o){return o>=1&&o<=4}set(t,o,r){return t.setMonth((r-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]};var x6=class extends Xe{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(t,o,r){let n=i=>i-1;switch(o){case"M":return Co(Ht(Xt.month,t),n);case"MM":return Co(Tt(2,t),n);case"Mo":return Co(r.ordinalNumber(t,{unit:"month"}),n);case"MMM":return r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(t,{width:"narrow",context:"formatting"});default:return r.month(t,{width:"wide",context:"formatting"})||r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"})}}validate(t,o){return o>=0&&o<=11}set(t,o,r){return t.setMonth(r,1),t.setHours(0,0,0,0),t}};var k6=class extends Xe{priority=110;parse(t,o,r){let n=i=>i-1;switch(o){case"L":return Co(Ht(Xt.month,t),n);case"LL":return Co(Tt(2,t),n);case"Lo":return Co(r.ordinalNumber(t,{unit:"month"}),n);case"LLL":return r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(t,{width:"narrow",context:"standalone"});default:return r.month(t,{width:"wide",context:"standalone"})||r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"})}}validate(t,o){return o>=0&&o<=11}set(t,o,r){return t.setMonth(r,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]};function vbe(e,t,o){let r=Ve(e,o?.in),n=Zg(r,o)-t;return r.setDate(r.getDate()-n*7),Ve(r,o?.in)}var S6=class extends Xe{priority=100;parse(t,o,r){switch(o){case"w":return Ht(Xt.week,t);case"wo":return r.ordinalNumber(t,{unit:"week"});default:return Tt(o.length,t)}}validate(t,o){return o>=1&&o<=53}set(t,o,r,n){return Yi(vbe(t,r,n),n)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]};function ybe(e,t,o){let r=Ve(e,o?.in),n=Xg(r,o)-t;return r.setDate(r.getDate()-n*7),r}var C6=class extends Xe{priority=100;parse(t,o,r){switch(o){case"I":return Ht(Xt.week,t);case"Io":return r.ordinalNumber(t,{unit:"week"});default:return Tt(o.length,t)}}validate(t,o){return o>=1&&o<=53}set(t,o,r){return Da(ybe(t,r))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]};var JJe=[31,28,31,30,31,30,31,31,30,31,30,31],eet=[31,29,31,30,31,30,31,31,30,31,30,31],E6=class extends Xe{priority=90;subPriority=1;parse(t,o,r){switch(o){case"d":return Ht(Xt.date,t);case"do":return r.ordinalNumber(t,{unit:"date"});default:return Tt(o.length,t)}}validate(t,o){let r=t.getFullYear(),n=g6(r),i=t.getMonth();return n?o>=1&&o<=eet[i]:o>=1&&o<=JJe[i]}set(t,o,r){return t.setDate(r),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]};var T6=class extends Xe{priority=90;subpriority=1;parse(t,o,r){switch(o){case"D":case"DD":return Ht(Xt.dayOfYear,t);case"Do":return r.ordinalNumber(t,{unit:"date"});default:return Tt(o.length,t)}}validate(t,o){let r=t.getFullYear();return g6(r)?o>=1&&o<=366:o>=1&&o<=365}set(t,o,r){return t.setMonth(0,r),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]};function U0(e,t,o){let r=ta(),n=o?.weekStartsOn??o?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=Ve(e,o?.in),s=i.getDay(),l=(t%7+7)%7,d=7-n,u=t<0||t>6?t-(s+d)%7:(l+d)%7-(s+d)%7;return Cu(i,u,o)}var R6=class extends Xe{priority=90;parse(t,o,r){switch(o){case"E":case"EE":case"EEE":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}validate(t,o){return o>=0&&o<=6}set(t,o,r,n){return t=U0(t,r,n),t.setHours(0,0,0,0),t}incompatibleTokens=["D","i","e","c","t","T"]};var I6=class extends Xe{priority=90;parse(t,o,r,n){let i=s=>{let a=Math.floor((s-1)/7)*7;return(s+n.weekStartsOn+6)%7+a};switch(o){case"e":case"ee":return Co(Tt(o.length,t),i);case"eo":return Co(r.ordinalNumber(t,{unit:"day"}),i);case"eee":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"eeeee":return r.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}validate(t,o){return o>=0&&o<=6}set(t,o,r,n){return t=U0(t,r,n),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]};var P6=class extends Xe{priority=90;parse(t,o,r,n){let i=s=>{let a=Math.floor((s-1)/7)*7;return(s+n.weekStartsOn+6)%7+a};switch(o){case"c":case"cc":return Co(Tt(o.length,t),i);case"co":return Co(r.ordinalNumber(t,{unit:"day"}),i);case"ccc":return r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});case"ccccc":return r.day(t,{width:"narrow",context:"standalone"});case"cccccc":return r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});default:return r.day(t,{width:"wide",context:"standalone"})||r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"})}}validate(t,o){return o>=0&&o<=6}set(t,o,r,n){return t=U0(t,r,n),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]};function wbe(e,t,o){let r=Ve(e,o?.in),n=pbe(r,o),i=t-n;return Cu(r,i,o)}var B6=class extends Xe{priority=90;parse(t,o,r){let n=i=>i===0?7:i;switch(o){case"i":case"ii":return Tt(o.length,t);case"io":return r.ordinalNumber(t,{unit:"day"});case"iii":return Co(r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),n);case"iiiii":return Co(r.day(t,{width:"narrow",context:"formatting"}),n);case"iiiiii":return Co(r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),n);default:return Co(r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),n)}}validate(t,o){return o>=1&&o<=7}set(t,o,r){return t=wbe(t,r),t.setHours(0,0,0,0),t}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]};var O6=class extends Xe{priority=80;parse(t,o,r){switch(o){case"a":case"aa":case"aaa":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,o,r){return t.setHours(H0(r),0,0,0),t}incompatibleTokens=["b","B","H","k","t","T"]};var M6=class extends Xe{priority=80;parse(t,o,r){switch(o){case"b":case"bb":case"bbb":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,o,r){return t.setHours(H0(r),0,0,0),t}incompatibleTokens=["a","B","H","k","t","T"]};var A6=class extends Xe{priority=80;parse(t,o,r){switch(o){case"B":case"BB":case"BBB":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,o,r){return t.setHours(H0(r),0,0,0),t}incompatibleTokens=["a","b","t","T"]};var N6=class extends Xe{priority=70;parse(t,o,r){switch(o){case"h":return Ht(Xt.hour12h,t);case"ho":return r.ordinalNumber(t,{unit:"hour"});default:return Tt(o.length,t)}}validate(t,o){return o>=1&&o<=12}set(t,o,r){let n=t.getHours()>=12;return n&&r<12?t.setHours(r+12,0,0,0):!n&&r===12?t.setHours(0,0,0,0):t.setHours(r,0,0,0),t}incompatibleTokens=["H","K","k","t","T"]};var L6=class extends Xe{priority=70;parse(t,o,r){switch(o){case"H":return Ht(Xt.hour23h,t);case"Ho":return r.ordinalNumber(t,{unit:"hour"});default:return Tt(o.length,t)}}validate(t,o){return o>=0&&o<=23}set(t,o,r){return t.setHours(r,0,0,0),t}incompatibleTokens=["a","b","h","K","k","t","T"]};var D6=class extends Xe{priority=70;parse(t,o,r){switch(o){case"K":return Ht(Xt.hour11h,t);case"Ko":return r.ordinalNumber(t,{unit:"hour"});default:return Tt(o.length,t)}}validate(t,o){return o>=0&&o<=11}set(t,o,r){return t.getHours()>=12&&r<12?t.setHours(r+12,0,0,0):t.setHours(r,0,0,0),t}incompatibleTokens=["h","H","k","t","T"]};var V6=class extends Xe{priority=70;parse(t,o,r){switch(o){case"k":return Ht(Xt.hour24h,t);case"ko":return r.ordinalNumber(t,{unit:"hour"});default:return Tt(o.length,t)}}validate(t,o){return o>=1&&o<=24}set(t,o,r){let n=r<=24?r%24:r;return t.setHours(n,0,0,0),t}incompatibleTokens=["a","b","h","H","K","t","T"]};var F6=class extends Xe{priority=60;parse(t,o,r){switch(o){case"m":return Ht(Xt.minute,t);case"mo":return r.ordinalNumber(t,{unit:"minute"});default:return Tt(o.length,t)}}validate(t,o){return o>=0&&o<=59}set(t,o,r){return t.setMinutes(r,0,0),t}incompatibleTokens=["t","T"]};var z6=class extends Xe{priority=50;parse(t,o,r){switch(o){case"s":return Ht(Xt.second,t);case"so":return r.ordinalNumber(t,{unit:"second"});default:return Tt(o.length,t)}}validate(t,o){return o>=0&&o<=59}set(t,o,r){return t.setSeconds(r,0),t}incompatibleTokens=["t","T"]};var j6=class extends Xe{priority=30;parse(t,o){let r=n=>Math.trunc(n*Math.pow(10,-o.length+3));return Co(Tt(o.length,t),r)}set(t,o,r){return t.setMilliseconds(r),t}incompatibleTokens=["t","T"]};var H6=class extends Xe{priority=10;parse(t,o){switch(o){case"X":return Al(Ml.basicOptionalMinutes,t);case"XX":return Al(Ml.basic,t);case"XXXX":return Al(Ml.basicOptionalSeconds,t);case"XXXXX":return Al(Ml.extendedOptionalSeconds,t);default:return Al(Ml.extended,t)}}set(t,o,r){return o.timestampIsSet?t:it(t,t.getTime()-U_(t)-r)}incompatibleTokens=["t","T","x"]};var U6=class extends Xe{priority=10;parse(t,o){switch(o){case"x":return Al(Ml.basicOptionalMinutes,t);case"xx":return Al(Ml.basic,t);case"xxxx":return Al(Ml.basicOptionalSeconds,t);case"xxxxx":return Al(Ml.extendedOptionalSeconds,t);default:return Al(Ml.extended,t)}}set(t,o,r){return o.timestampIsSet?t:it(t,t.getTime()-U_(t)-r)}incompatibleTokens=["t","T","X"]};var W6=class extends Xe{priority=40;parse(t){return p6(t)}set(t,o,r){return[it(t,r*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"};var G6=class extends Xe{priority=20;parse(t){return p6(t)}set(t,o,r){return[it(t,r),{timestampIsSet:!0}]}incompatibleTokens="*"};var xbe={G:new f6,y:new h6,Y:new b6,R:new _6,u:new v6,Q:new y6,q:new w6,M:new x6,L:new k6,w:new S6,I:new C6,d:new E6,D:new T6,E:new R6,e:new I6,c:new P6,i:new B6,a:new O6,b:new M6,B:new A6,h:new N6,H:new L6,K:new D6,k:new V6,m:new F6,s:new z6,S:new j6,X:new H6,x:new U6,t:new W6,T:new G6};var tet=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,oet=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ret=/^'([^]*?)'?$/,net=/''/g,iet=/\S/,set=/[a-zA-Z]/;function kbe(e,t,o,r){let n=()=>it(r?.in||o,NaN),i=fbe(),s=r?.locale??i.locale??Va,a=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,l=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0;if(!t)return e?n():Ve(o,r?.in);let d={firstWeekContainsDate:a,weekStartsOn:l,locale:s},u=[new u6(r?.in,o)],f=t.match(oet).map(b=>{let v=b[0];if(v in _R){let _=_R[v];return _(b,s.formatLong)}return b}).join("").match(tet),p=[];for(let b of f){!r?.useAdditionalWeekYearTokens&&l6(b)&&vR(b,t,e),!r?.useAdditionalDayOfYearTokens&&a6(b)&&vR(b,t,e);let v=b[0],_=xbe[v];if(_){let{incompatibleTokens:y}=_;if(Array.isArray(y)){let x=p.find(k=>y.includes(k.token)||k.token===v);if(x)throw new RangeError(`The format string mustn't contain \`${x.fullToken}\` and \`${b}\` at the same time`)}else if(_.incompatibleTokens==="*"&&p.length>0)throw new RangeError(`The format string mustn't contain \`${b}\` and any other token at the same time`);p.push({token:v,fullToken:b});let w=_.run(e,b,s.match,d);if(!w)return n();u.push(w.setter),e=w.rest}else{if(v.match(set))throw new RangeError("Format string contains an unescaped latin alphabet character `"+v+"`");if(b==="''"?b="'":v==="'"&&(b=aet(b)),e.indexOf(b)===0)e=e.slice(b.length);else return n()}}if(e.length>0&&iet.test(e))return n();let m=u.map(b=>b.priority).sort((b,v)=>v-b).filter((b,v,_)=>_.indexOf(b)===v).map(b=>u.filter(v=>v.priority===b).sort((v,_)=>_.subPriority-v.subPriority)).map(b=>b[0]),g=Ve(o,r?.in);if(isNaN(+g))return n();let h={};for(let b of m){if(!b.validate(g,d))return n();let v=b.set(g,h,d);Array.isArray(v)?(g=v[0],Object.assign(h,v[1])):g=v}return g}function aet(e){return e.match(ret)[1].replace(net,"'")}function G_(e,t,o){let[r,n]=Ol(o?.in,e,t);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()}function Sbe(e,t,o){let[r,n]=Ol(o?.in,e,t);return r.getFullYear()===n.getFullYear()}function $_(e,t,o){return Cu(e,-t,o)}function Cbe(e,t){let o=()=>it(t?.in,NaN),r=t?.additionalDigits??2,n=fet(e),i;if(n.date){let d=pet(n.date,r);i=met(d.restDateString,d.year)}if(!i||isNaN(+i))return o();let s=+i,a=0,l;if(n.time&&(a=get(n.time),isNaN(a)))return o();if(n.timezone){if(l=het(n.timezone),isNaN(l))return o()}else{let d=new Date(s+a),u=Ve(0,t?.in);return u.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),u.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),u}return Ve(s+a+l,t?.in)}var $6={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},cet=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,det=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,uet=/^([+-])(\d{2})(?::?(\d{2}))?$/;function fet(e){let t={},o=e.split($6.dateTimeDelimiter),r;if(o.length>2)return t;if(/:/.test(o[0])?r=o[0]:(t.date=o[0],r=o[1],$6.timeZoneDelimiter.test(t.date)&&(t.date=e.split($6.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){let n=$6.timezone.exec(r);n?(t.time=r.replace(n[1],""),t.timezone=n[1]):t.time=r}return t}function pet(e,t){let o=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(o);if(!r)return{year:NaN,restDateString:""};let n=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?n:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function met(e,t){if(t===null)return new Date(NaN);let o=e.match(cet);if(!o)return new Date(NaN);let r=!!o[4],n=yR(o[1]),i=yR(o[2])-1,s=yR(o[3]),a=yR(o[4]),l=yR(o[5])-1;if(r)return wet(t,a,l)?bet(t,a,l):new Date(NaN);{let d=new Date(0);return!vet(t,i,s)||!yet(t,n)?new Date(NaN):(d.setUTCFullYear(t,i,Math.max(n,s)),d)}}function yR(e){return e?parseInt(e):1}function get(e){let t=e.match(det);if(!t)return NaN;let o=CY(t[1]),r=CY(t[2]),n=CY(t[3]);return xet(o,r,n)?o*hR+r*gR+n*1e3:NaN}function CY(e){return e&&parseFloat(e.replace(",","."))||0}function het(e){if(e==="Z")return 0;let t=e.match(uet);if(!t)return 0;let o=t[1]==="+"?-1:1,r=parseInt(t[2]),n=t[3]&&parseInt(t[3])||0;return ket(r,n)?o*(r*hR+n*gR):NaN}function bet(e,t,o){let r=new Date(0);r.setUTCFullYear(e,0,4);let n=r.getUTCDay()||7,i=(t-1)*7+o+1-n;return r.setUTCDate(r.getUTCDate()+i),r}var _et=[31,null,31,30,31,30,31,31,30,31,30,31];function Ebe(e){return e%400===0||e%4===0&&e%100!==0}function vet(e,t,o){return t>=0&&t<=11&&o>=1&&o<=(_et[t]||(Ebe(e)?29:28))}function yet(e,t){return t>=1&&t<=(Ebe(e)?366:365)}function wet(e,t,o){return t>=1&&t<=53&&o>=0&&o<=6}function xet(e,t,o){return e===24?t===0&&o===0:o>=0&&o<60&&t>=0&&t<60&&e>=0&&e<25}function ket(e,t){return t>=0&&t<=59}function Tbe(e,t,o){let r=Ve(e,o?.in),n=r.getFullYear(),i=r.getDate(),s=it(o?.in||e,0);s.setFullYear(n,t,15),s.setHours(0,0,0,0);let a=ube(s);return r.setMonth(t,Math.min(i,a)),r}function Rbe(e,t,o){let r=Ve(e,o?.in);return isNaN(+r)?it(o?.in||e,NaN):(r.setFullYear(t),r)}function Y6(e,t,o){return N0(e,-t,o)}function Ibe(e,t,o){return J7(e,-t,o)}function K6(e,t,o){return e6(e,-t,o)}function Pbe(e,t){let o=t.startOfMonth(e),r=o.getDay()>0?o.getDay():7,n=t.addDays(e,-r+1),i=t.addDays(n,34);return t.getMonth(e)===t.getMonth(i)?5:4}function q6(e,t){let o=t.startOfMonth(e),r=o.getDay();return r===1?o:r===0?t.addDays(o,-6):t.addDays(o,-1*(r-1))}function Bbe(e,t){let o=q6(e,t),r=Pbe(e,t);return t.addDays(o,r*7-1)}var wR={...Va,labels:{labelDayButton:(e,t,o,r)=>{let n;r&&typeof r.format=="function"?n=r.format.bind(r):n=(s,a)=>bp(s,a,{locale:Va,...o});let i=n(e,"PPPP");return t.today&&(i=`Today, ${i}`),t.selected&&(i=`${i}, selected`),i},labelMonthDropdown:"Choose the Month",labelNext:"Go to the Next Month",labelPrevious:"Go to the Previous Month",labelWeekNumber:e=>`Week ${e}`,labelYearDropdown:"Choose the Year",labelGrid:(e,t,o)=>{let r;return o&&typeof o.format=="function"?r=o.format.bind(o):r=(n,i)=>bp(n,i,{locale:Va,...t}),r(e,"LLLL yyyy")},labelGridcell:(e,t,o,r)=>{let n;r&&typeof r.format=="function"?n=r.format.bind(r):n=(s,a)=>bp(s,a,{locale:Va,...o});let i=n(e,"PPPP");return t?.today&&(i=`Today, ${i}`),i},labelNav:"Navigation bar",labelWeekNumberHeader:"Week Number",labelWeekday:(e,t,o)=>{let r;return o&&typeof o.format=="function"?r=o.format.bind(o):r=(n,i)=>bp(n,i,{locale:Va,...t}),r(e,"cccc")}}};var vn=class e{constructor(t,o){this.today=()=>{if(this.overrides?.today)return this.overrides.today();if(this.options.timeZone)return Zr.tz(this.options.timeZone);let r=this.options.Date??Date;return new r},this.newDate=(r,n,i)=>this.overrides?.newDate?this.overrides.newDate(r,n,i):this.options.timeZone?new Zr(r,n,i,this.options.timeZone):new Date(r,n,i),this.addDays=(r,n)=>this.overrides?.addDays?this.overrides.addDays(r,n):Cu(r,n),this.addMonths=(r,n)=>this.overrides?.addMonths?this.overrides.addMonths(r,n):N0(r,n),this.addWeeks=(r,n)=>this.overrides?.addWeeks?this.overrides.addWeeks(r,n):J7(r,n),this.addYears=(r,n)=>this.overrides?.addYears?this.overrides.addYears(r,n):e6(r,n),this.differenceInCalendarDays=(r,n)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(r,n):gp(r,n),this.differenceInCalendarMonths=(r,n)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(r,n):o6(r,n),this.eachMonthOfInterval=r=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(r):qhe(r),this.eachYearOfInterval=r=>{let n=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(r):Zhe(r),i=new Set(n.map(a=>this.getYear(a)));if(i.size===n.length)return n;let s=[];return i.forEach(a=>{s.push(new Date(a,0,1))}),s},this.endOfBroadcastWeek=r=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(r):Bbe(r,this),this.endOfISOWeek=r=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(r):Qhe(r),this.endOfMonth=r=>this.overrides?.endOfMonth?this.overrides.endOfMonth(r):r6(r),this.endOfWeek=(r,n)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(r,n):i6(r,this.options),this.endOfYear=r=>this.overrides?.endOfYear?this.overrides.endOfYear(r):Xhe(r),this.format=(r,n,i)=>{let s=this.overrides?.format?this.overrides.format(r,n,this.options):bp(r,n,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(s):s},this.getISOWeek=r=>this.overrides?.getISOWeek?this.overrides.getISOWeek(r):Xg(r),this.getMonth=(r,n)=>this.overrides?.getMonth?this.overrides.getMonth(r,this.options):mbe(r,this.options),this.getYear=(r,n)=>this.overrides?.getYear?this.overrides.getYear(r,this.options):gbe(r,this.options),this.getWeek=(r,n)=>this.overrides?.getWeek?this.overrides.getWeek(r,this.options):Zg(r,this.options),this.isAfter=(r,n)=>this.overrides?.isAfter?this.overrides.isAfter(r,n):hbe(r,n),this.isBefore=(r,n)=>this.overrides?.isBefore?this.overrides.isBefore(r,n):bbe(r,n),this.isDate=r=>this.overrides?.isDate?this.overrides.isDate(r):t6(r),this.isSameDay=(r,n)=>this.overrides?.isSameDay?this.overrides.isSameDay(r,n):Khe(r,n),this.isSameMonth=(r,n)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(r,n):G_(r,n),this.isSameYear=(r,n)=>this.overrides?.isSameYear?this.overrides.isSameYear(r,n):Sbe(r,n),this.max=r=>this.overrides?.max?this.overrides.max(r):$he(r),this.min=r=>this.overrides?.min?this.overrides.min(r):Yhe(r),this.setMonth=(r,n)=>this.overrides?.setMonth?this.overrides.setMonth(r,n):Tbe(r,n),this.setYear=(r,n)=>this.overrides?.setYear?this.overrides.setYear(r,n):Rbe(r,n),this.startOfBroadcastWeek=(r,n)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(r,this):q6(r,this),this.startOfDay=r=>this.overrides?.startOfDay?this.overrides.startOfDay(r):qg(r),this.startOfISOWeek=r=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(r):Da(r),this.startOfMonth=r=>this.overrides?.startOfMonth?this.overrides.startOfMonth(r):bR(r),this.startOfWeek=(r,n)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(r,this.options):Yi(r,this.options),this.startOfYear=r=>this.overrides?.startOfYear?this.overrides.startOfYear(r):L0(r),this.options={locale:wR,...t},this.overrides=o}getDigitMap(){let{numerals:t="latn"}=this.options,o=new Intl.NumberFormat("en-US",{numberingSystem:t}),r={};for(let n=0;n<10;n++)r[n.toString()]=o.format(n);return r}replaceDigits(t){let o=this.getDigitMap();return t.replace(/\d/g,r=>o[r]||r)}formatNumber(t){return this.replaceDigits(t.toString())}getMonthYearOrder(){let t=this.options.locale?.code;return t&&e.yearFirstLocales.has(t)?"year-first":"month-first"}formatMonthYear(t){let{locale:o,timeZone:r,numerals:n}=this.options,i=o?.code;if(i&&e.yearFirstLocales.has(i))try{return new Intl.DateTimeFormat(i,{month:"long",year:"numeric",timeZone:r,numberingSystem:n}).format(t)}catch{}let s=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(t,s)}};vn.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);var yn=new vn;var W0=class{constructor(t,o,r=yn){this.date=t,this.displayMonth=o,this.outside=!!(o&&!r.isSameMonth(t,o)),this.dateLib=r,this.isoDate=r.format(t,"yyyy-MM-dd"),this.displayMonthId=r.format(o,"yyyy-MM"),this.dateMonthId=r.format(t,"yyyy-MM")}isEqualTo(t){return this.dateLib.isSameDay(t.date,this.date)&&this.dateLib.isSameMonth(t.displayMonth,this.displayMonth)}};var X6=class{constructor(t,o){this.date=t,this.weeks=o}};var Z6=class{constructor(t,o){this.days=o,this.weekNumber=t}};var RY={};ro(RY,{CaptionLabel:()=>Cet,Chevron:()=>Eet,Day:()=>Tet,DayButton:()=>Ret,Dropdown:()=>Iet,DropdownNav:()=>Pet,Footer:()=>Bet,Month:()=>Oet,MonthCaption:()=>Met,MonthGrid:()=>Aet,Months:()=>Net,MonthsDropdown:()=>Let,Nav:()=>Det,NextMonthButton:()=>Vet,Option:()=>Fet,PreviousMonthButton:()=>zet,Root:()=>jet,Select:()=>Het,Week:()=>Uet,WeekNumber:()=>$et,WeekNumberHeader:()=>Yet,Weekday:()=>Wet,Weekdays:()=>Get,Weeks:()=>Ket,YearsDropdown:()=>qet});var Obe=c(te(),1);function Cet(e){return Obe.default.createElement("span",{...e})}var G0=c(te(),1);function Eet(e){let{size:t=24,orientation:o="left",className:r,style:n}=e;return G0.default.createElement("svg",{className:r,style:n,width:t,height:t,viewBox:"0 0 24 24"},o==="up"&&G0.default.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),o==="down"&&G0.default.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),o==="left"&&G0.default.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),o==="right"&&G0.default.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}var Mbe=c(te(),1);function Tet(e){let{day:t,modifiers:o,...r}=e;return Mbe.default.createElement("td",{...r})}var Q6=c(te(),1);function Ret(e){let{day:t,modifiers:o,...r}=e,n=Q6.default.useRef(null);return Q6.default.useEffect(()=>{o.focused&&n.current?.focus()},[o.focused]),Q6.default.createElement("button",{ref:n,...r})}var $0=c(te(),1);var ze;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(ze||(ze={}));var Oo;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(Oo||(Oo={}));var oa;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(oa||(oa={}));var vs;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})(vs||(vs={}));var J6=c(te(),1),EY=(0,J6.createContext)(void 0);function Eu(){let e=(0,J6.useContext)(EY);if(e===void 0)throw new Error("useDayPicker() must be used within a custom component.");return e}function Iet(e){let{options:t,className:o,...r}=e,{classNames:n,components:i,styles:s}=Eu(),a=[n[ze.Dropdown],o].join(" "),l=t?.find(({value:d})=>d===r.value);return $0.default.createElement("span",{"data-disabled":r.disabled,className:n[ze.DropdownRoot],style:s?.[ze.DropdownRoot]},$0.default.createElement(i.Select,{className:a,...r},t?.map(({value:d,label:u,disabled:f})=>$0.default.createElement(i.Option,{key:d,value:d,disabled:f},u))),$0.default.createElement("span",{className:n[ze.CaptionLabel],style:s?.[ze.CaptionLabel],"aria-hidden":!0},l?.label,$0.default.createElement(i.Chevron,{orientation:"down",size:18,className:n[ze.Chevron],style:s?.[ze.Chevron]})))}var Abe=c(te(),1);function Pet(e){return Abe.default.createElement("div",{...e})}var Nbe=c(te(),1);function Bet(e){return Nbe.default.createElement("div",{...e})}var Lbe=c(te(),1);function Oet(e){let{calendarMonth:t,displayIndex:o,...r}=e;return Lbe.default.createElement("div",{...r},e.children)}var Dbe=c(te(),1);function Met(e){let{calendarMonth:t,displayIndex:o,...r}=e;return Dbe.default.createElement("div",{...r})}var Vbe=c(te(),1);function Aet(e){return Vbe.default.createElement("table",{...e})}var Fbe=c(te(),1);function Net(e){return Fbe.default.createElement("div",{...e})}var zbe=c(te(),1);function Let(e){let{components:t}=Eu();return zbe.default.createElement(t.Dropdown,{...e})}var _p=c(te(),1);function Det(e){let{onPreviousClick:t,onNextClick:o,previousMonth:r,nextMonth:n,...i}=e,{components:s,classNames:a,styles:l,labels:{labelPrevious:d,labelNext:u}}=Eu(),f=(0,_p.useCallback)(m=>{n&&o?.(m)},[n,o]),p=(0,_p.useCallback)(m=>{r&&t?.(m)},[r,t]);return _p.default.createElement("nav",{...i},_p.default.createElement(s.PreviousMonthButton,{type:"button",className:a[ze.PreviousMonthButton],style:l?.[ze.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":r?void 0:!0,"aria-label":d(r),onClick:p},_p.default.createElement(s.Chevron,{disabled:r?void 0:!0,className:a[ze.Chevron],style:l?.[ze.Chevron],orientation:"left"})),_p.default.createElement(s.NextMonthButton,{type:"button",className:a[ze.NextMonthButton],style:l?.[ze.NextMonthButton],tabIndex:n?void 0:-1,"aria-disabled":n?void 0:!0,"aria-label":u(n),onClick:f},_p.default.createElement(s.Chevron,{disabled:n?void 0:!0,orientation:"right",className:a[ze.Chevron],style:l?.[ze.Chevron]})))}var jbe=c(te(),1);function Vet(e){return jbe.default.createElement("button",{...e})}var Hbe=c(te(),1);function Fet(e){return Hbe.default.createElement("option",{...e})}var Ube=c(te(),1);function zet(e){return Ube.default.createElement("button",{...e})}var Wbe=c(te(),1);function jet(e){let{rootRef:t,...o}=e;return Wbe.default.createElement("div",{...o,ref:t})}var Gbe=c(te(),1);function Het(e){return Gbe.default.createElement("select",{...e})}var $be=c(te(),1);function Uet(e){let{week:t,...o}=e;return $be.default.createElement("tr",{...o})}var Ybe=c(te(),1);function Wet(e){return Ybe.default.createElement("th",{...e})}var TY=c(te(),1);function Get(e){return TY.default.createElement("thead",{"aria-hidden":!0},TY.default.createElement("tr",{...e}))}var Kbe=c(te(),1);function $et(e){let{week:t,...o}=e;return Kbe.default.createElement("th",{...o})}var qbe=c(te(),1);function Yet(e){return qbe.default.createElement("th",{...e})}var Xbe=c(te(),1);function Ket(e){return Xbe.default.createElement("tbody",{...e})}var Zbe=c(te(),1);function qet(e){let{components:t}=Eu();return Zbe.default.createElement(t.Dropdown,{...e})}var _t=c(te(),1);function ra(e,t,o=!1,r=yn){let{from:n,to:i}=e,{differenceInCalendarDays:s,isSameDay:a}=r;return n&&i?(s(i,n)<0&&([n,i]=[i,n]),s(t,n)>=(o?1:0)&&s(i,t)>=(o?1:0)):!o&&i?a(i,t):!o&&n?a(n,t):!1}function Y0(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function Qg(e){return!!(e&&typeof e=="object"&&"from"in e)}function K0(e){return!!(e&&typeof e=="object"&&"after"in e)}function q0(e){return!!(e&&typeof e=="object"&&"before"in e)}function eO(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function tO(e,t){return Array.isArray(e)&&e.every(t.isDate)}function Nl(e,t,o=yn){let r=Array.isArray(t)?t:[t],{isSameDay:n,differenceInCalendarDays:i,isAfter:s}=o;return r.some(a=>{if(typeof a=="boolean")return a;if(o.isDate(a))return n(e,a);if(tO(a,o))return a.some(l=>n(e,l));if(Qg(a))return ra(a,e,!1,o);if(eO(a))return Array.isArray(a.dayOfWeek)?a.dayOfWeek.includes(e.getDay()):a.dayOfWeek===e.getDay();if(Y0(a)){let l=i(a.before,e),d=i(a.after,e),u=l>0,f=d<0;return s(a.before,a.after)?f&&u:u||f}return K0(a)?i(e,a.after)>0:q0(a)?i(a.before,e)>0:typeof a=="function"?a(e):!1})}function Qbe(e,t,o,r,n){let{disabled:i,hidden:s,modifiers:a,showOutsideDays:l,broadcastCalendar:d,today:u=n.today()}=t,{isSameDay:f,isSameMonth:p,startOfMonth:m,isBefore:g,endOfMonth:h,isAfter:b}=n,v=o&&m(o),_=r&&h(r),y={[Oo.focused]:[],[Oo.outside]:[],[Oo.disabled]:[],[Oo.hidden]:[],[Oo.today]:[]},w={};for(let x of e){let{date:k,displayMonth:C}=x,S=!!(C&&!p(k,C)),R=!!(v&&g(k,v)),E=!!(_&&b(k,_)),I=!!(i&&Nl(k,i,n)),B=!!(s&&Nl(k,s,n))||R||E||!d&&!l&&S||d&&l===!1&&S,O=f(k,u);S&&y.outside.push(x),I&&y.disabled.push(x),B&&y.hidden.push(x),O&&y.today.push(x),a&&Object.keys(a).forEach(M=>{let N=a?.[M];N&&Nl(k,N,n)&&(w[M]?w[M].push(x):w[M]=[x])})}return x=>{let k={[Oo.focused]:!1,[Oo.disabled]:!1,[Oo.hidden]:!1,[Oo.outside]:!1,[Oo.today]:!1},C={};for(let S in y){let R=y[S];k[S]=R.some(E=>E===x)}for(let S in w)C[S]=w[S].some(R=>R===x);return{...k,...C}}}function Jbe(e,t,o={}){return Object.entries(e).filter(([,n])=>n===!0).reduce((n,[i])=>(o[i]?n.push(o[i]):t[Oo[i]]?n.push(t[Oo[i]]):t[oa[i]]&&n.push(t[oa[i]]),n),[t[ze.Day]])}function e_e(e){return{...RY,...e}}function t_e(e){let t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([o,r])=>{o.startsWith("data-")&&(t[o]=r)}),t}function o_e(){let e={};for(let t in ze)e[ze[t]]=`rdp-${ze[t]}`;for(let t in Oo)e[Oo[t]]=`rdp-${Oo[t]}`;for(let t in oa)e[oa[t]]=`rdp-${oa[t]}`;for(let t in vs)e[vs[t]]=`rdp-${vs[t]}`;return e}var IY={};ro(IY,{formatCaption:()=>Xet,formatDay:()=>Zet,formatMonthDropdown:()=>Qet,formatWeekNumber:()=>ett,formatWeekNumberHeader:()=>ttt,formatWeekdayName:()=>Jet,formatYearDropdown:()=>ott});function Xet(e,t,o){return(o??new vn(t)).formatMonthYear(e)}function Zet(e,t,o){return(o??new vn(t)).format(e,"d")}function Qet(e,t=yn){return t.format(e,"LLLL")}function Jet(e,t,o){return(o??new vn(t)).format(e,"cccccc")}function ett(e,t=yn){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function ttt(){return""}function ott(e,t=yn){return t.format(e,"yyyy")}function r_e(e){return{...IY,...e}}var jY={};ro(jY,{labelDayButton:()=>PY,labelGrid:()=>BY,labelGridcell:()=>OY,labelMonthDropdown:()=>MY,labelNav:()=>AY,labelNext:()=>NY,labelPrevious:()=>LY,labelWeekNumber:()=>VY,labelWeekNumberHeader:()=>FY,labelWeekday:()=>DY,labelYearDropdown:()=>zY});function PY(e,t,o,r){let n=(r??new vn(o)).format(e,"PPPP");return t.today&&(n=`Today, ${n}`),t.selected&&(n=`${n}, selected`),n}function BY(e,t,o){return(o??new vn(t)).formatMonthYear(e)}function OY(e,t,o,r){let n=(r??new vn(o)).format(e,"PPPP");return t?.today&&(n=`Today, ${n}`),n}function MY(e){return"Choose the Month"}function AY(){return""}var rtt="Go to the Next Month";function NY(e,t){return rtt}function LY(e){return"Go to the Previous Month"}function DY(e,t,o){return(o??new vn(t)).format(e,"cccc")}function VY(e,t){return`Week ${e}`}function FY(e){return"Week Number"}function zY(e){return"Choose the Year"}var rd=(e,t,o)=>t||(o?typeof o=="function"?o:(...r)=>o:e);function n_e(e,t){let o=t.locale?.labels??{};return{...jY,...e??{},labelDayButton:rd(PY,e?.labelDayButton,o.labelDayButton),labelMonthDropdown:rd(MY,e?.labelMonthDropdown,o.labelMonthDropdown),labelNext:rd(NY,e?.labelNext,o.labelNext),labelPrevious:rd(LY,e?.labelPrevious,o.labelPrevious),labelWeekNumber:rd(VY,e?.labelWeekNumber,o.labelWeekNumber),labelYearDropdown:rd(zY,e?.labelYearDropdown,o.labelYearDropdown),labelGrid:rd(BY,e?.labelGrid,o.labelGrid),labelGridcell:rd(OY,e?.labelGridcell,o.labelGridcell),labelNav:rd(AY,e?.labelNav,o.labelNav),labelWeekNumberHeader:rd(FY,e?.labelWeekNumberHeader,o.labelWeekNumberHeader),labelWeekday:rd(DY,e?.labelWeekday,o.labelWeekday)}}function i_e(e,t,o,r,n){let{startOfMonth:i,startOfYear:s,endOfYear:a,eachMonthOfInterval:l,getMonth:d}=n;return l({start:s(e),end:a(e)}).map(p=>{let m=r.formatMonthDropdown(p,n),g=d(p),h=t&&p<i(t)||o&&p>i(o)||!1;return{value:g,label:m,disabled:h}})}function s_e(e,t={},o={}){let r={...t?.[ze.Day]};return Object.entries(e).filter(([,n])=>n===!0).forEach(([n])=>{r={...r,...o?.[n]}}),r}function a_e(e,t,o,r){let n=r??e.today(),i=o?e.startOfBroadcastWeek(n,e):t?e.startOfISOWeek(n):e.startOfWeek(n),s=[];for(let a=0;a<7;a++){let l=e.addDays(i,a);s.push(l)}return s}function l_e(e,t,o,r,n=!1){if(!e||!t)return;let{startOfYear:i,endOfYear:s,eachYearOfInterval:a,getYear:l}=r,d=i(e),u=s(t),f=a({start:d,end:u});return n&&f.reverse(),f.map(p=>{let m=o.formatYearDropdown(p,r);return{value:l(p),label:m,disabled:!1}})}function c_e(e,t={}){let{weekStartsOn:o,locale:r}=t,n=o??r?.options?.weekStartsOn??0,i=a=>{let l=typeof a=="number"||typeof a=="string"?new Date(a):a;return new Zr(l.getFullYear(),l.getMonth(),l.getDate(),12,0,0,e)},s=a=>{let l=i(a);return new Date(l.getFullYear(),l.getMonth(),l.getDate(),0,0,0,0)};return{today:()=>i(Zr.tz(e)),newDate:(a,l,d)=>new Zr(a,l,d,12,0,0,e),startOfDay:a=>i(a),startOfWeek:(a,l)=>{let d=i(a),u=l?.weekStartsOn??n,f=(d.getDay()-u+7)%7;return d.setDate(d.getDate()-f),d},startOfISOWeek:a=>{let l=i(a),d=(l.getDay()-1+7)%7;return l.setDate(l.getDate()-d),l},startOfMonth:a=>{let l=i(a);return l.setDate(1),l},startOfYear:a=>{let l=i(a);return l.setMonth(0,1),l},endOfWeek:(a,l)=>{let d=i(a),p=(((l?.weekStartsOn??n)+6)%7-d.getDay()+7)%7;return d.setDate(d.getDate()+p),d},endOfISOWeek:a=>{let l=i(a),d=(7-l.getDay())%7;return l.setDate(l.getDate()+d),l},endOfMonth:a=>{let l=i(a);return l.setMonth(l.getMonth()+1,0),l},endOfYear:a=>{let l=i(a);return l.setMonth(11,31),l},eachMonthOfInterval:a=>{let l=i(a.start),d=i(a.end),u=[],f=new Zr(l.getFullYear(),l.getMonth(),1,12,0,0,e),p=d.getFullYear()*12+d.getMonth();for(;f.getFullYear()*12+f.getMonth()<=p;)u.push(new Zr(f,e)),f.setMonth(f.getMonth()+1,1);return u},addDays:(a,l)=>{let d=i(a);return d.setDate(d.getDate()+l),d},addWeeks:(a,l)=>{let d=i(a);return d.setDate(d.getDate()+l*7),d},addMonths:(a,l)=>{let d=i(a);return d.setMonth(d.getMonth()+l),d},addYears:(a,l)=>{let d=i(a);return d.setFullYear(d.getFullYear()+l),d},eachYearOfInterval:a=>{let l=i(a.start),d=i(a.end),u=[],f=new Zr(l.getFullYear(),0,1,12,0,0,e);for(;f.getFullYear()<=d.getFullYear();)u.push(new Zr(f,e)),f.setFullYear(f.getFullYear()+1,0,1);return u},getWeek:(a,l)=>{let d=s(a);return Zg(d,{weekStartsOn:l?.weekStartsOn??n,firstWeekContainsDate:l?.firstWeekContainsDate??r?.options?.firstWeekContainsDate??1})},getISOWeek:a=>{let l=s(a);return Xg(l)},differenceInCalendarDays:(a,l)=>{let d=s(a),u=s(l);return gp(d,u)},differenceInCalendarMonths:(a,l)=>{let d=s(a),u=s(l);return o6(d,u)}}}var X0=c(te(),1);var xR=e=>e instanceof HTMLElement?e:null,HY=e=>[...e.querySelectorAll("[data-animated-month]")??[]],ntt=e=>xR(e.querySelector("[data-animated-month]")),UY=e=>xR(e.querySelector("[data-animated-caption]")),WY=e=>xR(e.querySelector("[data-animated-weeks]")),itt=e=>xR(e.querySelector("[data-animated-nav]")),stt=e=>xR(e.querySelector("[data-animated-weekdays]"));function d_e(e,t,{classNames:o,months:r,focused:n,dateLib:i}){let s=(0,X0.useRef)(null),a=(0,X0.useRef)(r),l=(0,X0.useRef)(!1);(0,X0.useLayoutEffect)(()=>{let d=a.current;if(a.current=r,!t||!e.current||!(e.current instanceof HTMLElement)||r.length===0||d.length===0||r.length!==d.length)return;let u=i.isSameMonth(r[0].date,d[0].date),f=i.isAfter(r[0].date,d[0].date),p=f?o[vs.caption_after_enter]:o[vs.caption_before_enter],m=f?o[vs.weeks_after_enter]:o[vs.weeks_before_enter],g=s.current,h=e.current.cloneNode(!0);if(h instanceof HTMLElement?(HY(h).forEach(y=>{if(!(y instanceof HTMLElement))return;let w=ntt(y);w&&y.contains(w)&&y.removeChild(w);let x=UY(y);x&&x.classList.remove(p);let k=WY(y);k&&k.classList.remove(m)}),s.current=h):s.current=null,l.current||u||n)return;let b=g instanceof HTMLElement?HY(g):[],v=HY(e.current);if(v?.every(_=>_ instanceof HTMLElement)&&b?.every(_=>_ instanceof HTMLElement)){l.current=!0;let _=[];e.current.style.isolation="isolate";let y=itt(e.current);y&&(y.style.zIndex="1"),v.forEach((w,x)=>{let k=b[x];if(!k)return;w.style.position="relative",w.style.overflow="hidden";let C=UY(w);C&&C.classList.add(p);let S=WY(w);S&&S.classList.add(m);let R=()=>{l.current=!1,e.current&&(e.current.style.isolation=""),y&&(y.style.zIndex=""),C&&C.classList.remove(p),S&&S.classList.remove(m),w.style.position="",w.style.overflow="",w.contains(k)&&w.removeChild(k)};_.push(R),k.style.pointerEvents="none",k.style.position="absolute",k.style.overflow="hidden",k.setAttribute("aria-hidden","true");let E=stt(k);E&&(E.style.opacity="0");let I=UY(k);I&&(I.classList.add(f?o[vs.caption_before_exit]:o[vs.caption_after_exit]),I.addEventListener("animationend",R));let B=WY(k);B&&B.classList.add(f?o[vs.weeks_before_exit]:o[vs.weeks_after_exit]),w.insertBefore(k,w.firstChild)})}})}var oO=c(te(),1);function u_e(e,t,o,r){let n=e[0],i=e[e.length-1],{ISOWeek:s,fixedWeeks:a,broadcastCalendar:l}=o??{},{addDays:d,differenceInCalendarDays:u,differenceInCalendarMonths:f,endOfBroadcastWeek:p,endOfISOWeek:m,endOfMonth:g,endOfWeek:h,isAfter:b,startOfBroadcastWeek:v,startOfISOWeek:_,startOfWeek:y}=r,w=l?v(n,r):s?_(n):y(n),x=l?p(i):s?m(g(i)):h(g(i)),k=t&&(l?p(t):s?m(t):h(t)),C=k&&b(x,k)?k:x,S=u(C,w),R=f(i,n)+1,E=[];for(let O=0;O<=S;O++){let M=d(w,O);E.push(M)}let B=(l?35:42)*R;if(a&&E.length<B){let O=B-E.length;for(let M=0;M<O;M++){let N=d(E[E.length-1],1);E.push(N)}}return E}function f_e(e){let t=[];return e.reduce((o,r)=>{let n=r.weeks.reduce((i,s)=>i.concat(s.days.slice()),t.slice());return o.concat(n.slice())},t.slice())}function p_e(e,t,o,r){let{numberOfMonths:n=1}=o,i=[];for(let s=0;s<n;s++){let a=r.addMonths(e,s);if(t&&a>t)break;i.push(a)}return i}function GY(e,t,o,r){let{month:n,defaultMonth:i,today:s=r.today(),numberOfMonths:a=1}=e,l=n||i||s,{differenceInCalendarMonths:d,addMonths:u,startOfMonth:f}=r;if(o&&d(o,l)<a-1){let p=-1*(a-1);l=u(o,p)}return t&&d(l,t)<0&&(l=t),f(l)}function m_e(e,t,o,r){let{addDays:n,endOfBroadcastWeek:i,endOfISOWeek:s,endOfMonth:a,endOfWeek:l,getISOWeek:d,getWeek:u,startOfBroadcastWeek:f,startOfISOWeek:p,startOfWeek:m}=r,g=e.reduce((h,b)=>{let v=o.broadcastCalendar?f(b,r):o.ISOWeek?p(b):m(b),_=o.broadcastCalendar?i(b):o.ISOWeek?s(a(b)):l(a(b)),y=t.filter(C=>C>=v&&C<=_),w=o.broadcastCalendar?35:42;if(o.fixedWeeks&&y.length<w){let C=t.filter(S=>{let R=w-y.length;return S>_&&S<=n(_,R)});y.push(...C)}let x=y.reduce((C,S)=>{let R=o.ISOWeek?d(S):u(S),E=C.find(B=>B.weekNumber===R),I=new W0(S,b,r);return E?E.days.push(I):C.push(new Z6(R,[I])),C},[]),k=new X6(b,x);return h.push(k),h},[]);return o.reverseMonths?g.reverse():g}function g_e(e,t){let{startMonth:o,endMonth:r}=e,{startOfYear:n,startOfDay:i,startOfMonth:s,endOfMonth:a,addYears:l,endOfYear:d,today:u}=t,f=e.captionLayout==="dropdown"||e.captionLayout==="dropdown-years";return o?o=s(o):!o&&f&&(o=n(l(e.today??u(),-100))),r?r=a(r):!r&&f&&(r=d(e.today??u())),[o&&i(o),r&&i(r)]}function h_e(e,t,o,r){if(o.disableNavigation)return;let{pagedNavigation:n,numberOfMonths:i=1}=o,{startOfMonth:s,addMonths:a,differenceInCalendarMonths:l}=r,d=n?i:1,u=s(e);if(!t)return a(u,d);if(!(l(t,e)<i))return a(u,d)}function b_e(e,t,o,r){if(o.disableNavigation)return;let{pagedNavigation:n,numberOfMonths:i}=o,{startOfMonth:s,addMonths:a,differenceInCalendarMonths:l}=r,d=n?i??1:1,u=s(e);if(!t)return a(u,-d);if(!(l(u,t)<=0))return a(u,-d)}function __e(e){let t=[];return e.reduce((o,r)=>o.concat(r.weeks.slice()),t.slice())}var v_e=c(te(),1);function Jg(e,t){let[o,r]=(0,v_e.useState)(e);return[t===void 0?o:t,r]}function y_e(e,t){let[o,r]=g_e(e,t),{startOfMonth:n,endOfMonth:i}=t,s=GY(e,o,r,t),[a,l]=Jg(s,e.month?s:void 0);(0,oO.useEffect)(()=>{let w=GY(e,o,r,t);l(w)},[e.timeZone]);let{months:d,weeks:u,days:f,previousMonth:p,nextMonth:m}=(0,oO.useMemo)(()=>{let w=p_e(a,r,{numberOfMonths:e.numberOfMonths},t),x=u_e(w,e.endMonth?i(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},t),k=m_e(w,x,{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},t),C=__e(k),S=f_e(k),R=b_e(a,o,e,t),E=h_e(a,r,e,t);return{months:k,weeks:C,days:S,previousMonth:R,nextMonth:E}},[t,a.getTime(),r?.getTime(),o?.getTime(),e.disableNavigation,e.broadcastCalendar,e.endMonth?.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:g,onMonthChange:h}=e,b=w=>u.some(x=>x.days.some(k=>k.isEqualTo(w))),v=w=>{if(g)return;let x=n(w);o&&x<n(o)&&(x=n(o)),r&&x>n(r)&&(x=n(r)),l(x),h?.(x)};return{months:d,weeks:u,days:f,navStart:o,navEnd:r,previousMonth:p,nextMonth:m,goToMonth:v,goToDay:w=>{b(w)||v(w.date)}}}var YY=c(te(),1);var Tu;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(Tu||(Tu={}));function w_e(e){return!e[Oo.disabled]&&!e[Oo.hidden]&&!e[Oo.outside]}function x_e(e,t,o,r){let n,i=-1;for(let s of e){let a=t(s);w_e(a)&&(a[Oo.focused]&&i<Tu.FocusedModifier?(n=s,i=Tu.FocusedModifier):r?.isEqualTo(s)&&i<Tu.LastFocused?(n=s,i=Tu.LastFocused):o(s.date)&&i<Tu.Selected?(n=s,i=Tu.Selected):a[Oo.today]&&i<Tu.Today&&(n=s,i=Tu.Today))}return n||(n=e.find(s=>w_e(t(s)))),n}function k_e(e,t,o,r,n,i,s){let{ISOWeek:a,broadcastCalendar:l}=i,{addDays:d,addMonths:u,addWeeks:f,addYears:p,endOfBroadcastWeek:m,endOfISOWeek:g,endOfWeek:h,max:b,min:v,startOfBroadcastWeek:_,startOfISOWeek:y,startOfWeek:w}=s,k={day:d,week:f,month:u,year:p,startOfWeek:C=>l?_(C,s):a?y(C):w(C),endOfWeek:C=>l?m(C):a?g(C):h(C)}[e](o,t==="after"?1:-1);return t==="before"&&r?k=b([r,k]):t==="after"&&n&&(k=v([n,k])),k}function $Y(e,t,o,r,n,i,s,a=0){if(a>365)return;let l=k_e(e,t,o.date,r,n,i,s),d=!!(i.disabled&&Nl(l,i.disabled,s)),u=!!(i.hidden&&Nl(l,i.hidden,s)),f=l,p=new W0(l,f,s);return!d&&!u?p:$Y(e,t,p,r,n,i,s,a+1)}function S_e(e,t,o,r,n){let{autoFocus:i}=e,[s,a]=(0,YY.useState)(),l=x_e(t.days,o,r||(()=>!1),s),[d,u]=(0,YY.useState)(i?l:void 0);return{isFocusTarget:h=>!!l?.isEqualTo(h),setFocused:u,focused:d,blur:()=>{a(d),u(void 0)},moveFocus:(h,b)=>{if(!d)return;let v=$Y(h,b,d,t.navStart,t.navEnd,e,n);v&&(e.disableNavigation&&!t.days.some(y=>y.isEqualTo(v))||(t.goToDay(v),u(v)))}}}function C_e(e,t){let{selected:o,required:r,onSelect:n}=e,[i,s]=Jg(o,n?o:void 0),a=n?o:i,{isSameDay:l}=t,d=m=>a?.some(g=>l(g,m))??!1,{min:u,max:f}=e;return{selected:a,select:(m,g,h)=>{let b=[...a??[]];if(d(m)){if(a?.length===u||r&&a?.length===1)return;b=a?.filter(v=>!l(v,m))}else a?.length===f?b=[m]:b=[...b,m];return n||s(b),n?.(b,m,g,h),b},isSelected:d}}function E_e(e,t,o=0,r=0,n=!1,i=yn){let{from:s,to:a}=t||{},{isSameDay:l,isAfter:d,isBefore:u}=i,f;if(!s&&!a)f={from:e,to:o>0?void 0:e};else if(s&&!a)l(s,e)?o===0?f={from:s,to:e}:n?f={from:s,to:void 0}:f=void 0:u(e,s)?f={from:e,to:s}:f={from:s,to:e};else if(s&&a)if(l(s,e)&&l(a,e))n?f={from:s,to:a}:f=void 0;else if(l(s,e))f={from:s,to:o>0?void 0:e};else if(l(a,e))f={from:e,to:o>0?void 0:e};else if(u(e,s))f={from:e,to:a};else if(d(e,s))f={from:s,to:e};else if(d(e,a))f={from:s,to:e};else throw new Error("Invalid range");if(f?.from&&f?.to){let p=i.differenceInCalendarDays(f.to,f.from);r>0&&p>r?f={from:e,to:void 0}:o>1&&p<o&&(f={from:e,to:void 0})}return f}function T_e(e,t,o=yn){let r=Array.isArray(t)?t:[t],n=e.from,i=o.differenceInCalendarDays(e.to,e.from),s=Math.min(i,6);for(let a=0;a<=s;a++){if(r.includes(n.getDay()))return!0;n=o.addDays(n,1)}return!1}function KY(e,t,o=yn){return ra(e,t.from,!1,o)||ra(e,t.to,!1,o)||ra(t,e.from,!1,o)||ra(t,e.to,!1,o)}function rO(e,t,o=yn){let r=Array.isArray(t)?t:[t];if(r.filter(a=>typeof a!="function").some(a=>typeof a=="boolean"?a:o.isDate(a)?ra(e,a,!1,o):tO(a,o)?a.some(l=>ra(e,l,!1,o)):Qg(a)?a.from&&a.to?KY(e,{from:a.from,to:a.to},o):!1:eO(a)?T_e(e,a.dayOfWeek,o):Y0(a)?o.isAfter(a.before,a.after)?KY(e,{from:o.addDays(a.after,1),to:o.addDays(a.before,-1)},o):Nl(e.from,a,o)||Nl(e.to,a,o):K0(a)||q0(a)?Nl(e.from,a,o)||Nl(e.to,a,o):!1))return!0;let s=r.filter(a=>typeof a=="function");if(s.length){let a=e.from,l=o.differenceInCalendarDays(e.to,e.from);for(let d=0;d<=l;d++){if(s.some(u=>u(a)))return!0;a=o.addDays(a,1)}}return!1}function R_e(e,t){let{disabled:o,excludeDisabled:r,resetOnSelect:n,selected:i,required:s,onSelect:a}=e,[l,d]=Jg(i,a?i:void 0),u=a?i:l;return{selected:u,select:(m,g,h)=>{let{min:b,max:v}=e,_;if(m){let y=u?.from,w=u?.to,x=!!y&&!!w,k=!!y&&!!w&&t.isSameDay(y,w)&&t.isSameDay(m,y);n&&(x||!u?.from)?!s&&k?_=void 0:_={from:m,to:void 0}:_=E_e(m,u,b,v,s,t)}return r&&o&&_?.from&&_.to&&rO({from:_.from,to:_.to},o,t)&&(_.from=m,_.to=void 0),a||d(_),a?.(_,m,g,h),_},isSelected:m=>u&&ra(u,m,!1,t)}}function I_e(e,t){let{selected:o,required:r,onSelect:n}=e,[i,s]=Jg(o,n?o:void 0),a=n?o:i,{isSameDay:l}=t;return{selected:a,select:(f,p,m)=>{let g=f;return!r&&a&&a&&l(f,a)&&(g=void 0),n||s(g),n?.(g,f,p,m),g},isSelected:f=>a?l(a,f):!1}}function P_e(e,t){let o=I_e(e,t),r=C_e(e,t),n=R_e(e,t);switch(e.mode){case"single":return o;case"multiple":return r;case"range":return n;default:return}}function ys(e,t){return e instanceof Zr&&e.timeZone===t?e:new Zr(e,t)}function Z0(e,t,o){if(!o)return ys(e,t);let r=ys(e,t),n=new Zr(r.getFullYear(),r.getMonth(),r.getDate(),12,0,0,t);return new Date(n.getTime())}function B_e(e,t,o){return typeof e=="boolean"||typeof e=="function"?e:e instanceof Date?Z0(e,t,o):Array.isArray(e)?e.map(r=>r instanceof Date?Z0(r,t,o):r):Qg(e)?{...e,from:e.from?ys(e.from,t):e.from,to:e.to?ys(e.to,t):e.to}:Y0(e)?{before:Z0(e.before,t,o),after:Z0(e.after,t,o)}:K0(e)?{after:Z0(e.after,t,o)}:q0(e)?{before:Z0(e.before,t,o)}:e}function nO(e,t,o){return e&&(Array.isArray(e)?e.map(r=>B_e(r,t,o)):B_e(e,t,o))}function iO(e){let t=e,o=t.timeZone;if(o&&(t={...e,timeZone:o},t.today&&(t.today=ys(t.today,o)),t.month&&(t.month=ys(t.month,o)),t.defaultMonth&&(t.defaultMonth=ys(t.defaultMonth,o)),t.startMonth&&(t.startMonth=ys(t.startMonth,o)),t.endMonth&&(t.endMonth=ys(t.endMonth,o)),t.mode==="single"&&t.selected?t.selected=ys(t.selected,o):t.mode==="multiple"&&t.selected?t.selected=t.selected?.map(Se=>ys(Se,o)):t.mode==="range"&&t.selected&&(t.selected={from:t.selected.from?ys(t.selected.from,o):t.selected.from,to:t.selected.to?ys(t.selected.to,o):t.selected.to}),t.disabled!==void 0&&(t.disabled=nO(t.disabled,o)),t.hidden!==void 0&&(t.hidden=nO(t.hidden,o)),t.modifiers)){let Se={};Object.keys(t.modifiers).forEach(Ie=>{Se[Ie]=nO(t.modifiers?.[Ie],o)}),t.modifiers=Se}let{components:r,formatters:n,labels:i,dateLib:s,locale:a,classNames:l}=(0,_t.useMemo)(()=>{let Se={...wR,...t.locale},Ie=t.broadcastCalendar?1:t.weekStartsOn,me=t.noonSafe&&t.timeZone?c_e(t.timeZone,{weekStartsOn:Ie,locale:Se}):void 0,Te=t.dateLib&&me?{...me,...t.dateLib}:t.dateLib??me,Me=new vn({locale:Se,weekStartsOn:Ie,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},Te);return{dateLib:Me,components:e_e(t.components),formatters:r_e(t.formatters),labels:n_e(t.labels,Me.options),locale:Se,classNames:{...o_e(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.noonSafe,t.components,t.formatters,t.labels,t.classNames]);t.today||(t={...t,today:s.today()});let{captionLayout:d,mode:u,navLayout:f,numberOfMonths:p=1,onDayBlur:m,onDayClick:g,onDayFocus:h,onDayKeyDown:b,onDayMouseEnter:v,onDayMouseLeave:_,onNextClick:y,onPrevClick:w,showWeekNumber:x,styles:k}=t,{formatCaption:C,formatDay:S,formatMonthDropdown:R,formatWeekNumber:E,formatWeekNumberHeader:I,formatWeekdayName:B,formatYearDropdown:O}=n,M=y_e(t,s),{days:N,months:j,navStart:V,navEnd:A,previousMonth:L,nextMonth:z,goToMonth:F}=M,G=Qbe(N,t,V,A,s),{isSelected:$,select:K,selected:q}=P_e(t,s)??{},{blur:H,focused:J,isFocusTarget:W,moveFocus:Y,setFocused:ee}=S_e(t,M,G,$??(()=>!1),s),{labelDayButton:re,labelGridcell:ne,labelGrid:ie,labelMonthDropdown:be,labelNav:pe,labelPrevious:Ee,labelNext:ye,labelWeekday:Oe,labelWeekNumber:we,labelWeekNumberHeader:_e,labelYearDropdown:xe}=i,he=(0,_t.useMemo)(()=>a_e(s,t.ISOWeek,t.broadcastCalendar,t.today),[s,t.ISOWeek,t.broadcastCalendar,t.today]),Ze=u!==void 0||g!==void 0,fe=(0,_t.useCallback)(()=>{L&&(F(L),w?.(L))},[L,F,w]),Ce=(0,_t.useCallback)(()=>{z&&(F(z),y?.(z))},[F,z,y]),de=(0,_t.useCallback)((Se,Ie)=>me=>{me.preventDefault(),me.stopPropagation(),ee(Se),!Ie.disabled&&(K?.(Se.date,Ie,me),g?.(Se.date,Ie,me))},[K,g,ee]),ae=(0,_t.useCallback)((Se,Ie)=>me=>{ee(Se),h?.(Se.date,Ie,me)},[h,ee]),Re=(0,_t.useCallback)((Se,Ie)=>me=>{H(),m?.(Se.date,Ie,me)},[H,m]),$e=(0,_t.useCallback)((Se,Ie)=>me=>{let Te={ArrowLeft:[me.shiftKey?"month":"day",t.dir==="rtl"?"after":"before"],ArrowRight:[me.shiftKey?"month":"day",t.dir==="rtl"?"before":"after"],ArrowDown:[me.shiftKey?"year":"week","after"],ArrowUp:[me.shiftKey?"year":"week","before"],PageUp:[me.shiftKey?"year":"month","before"],PageDown:[me.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(Te[me.key]){me.preventDefault(),me.stopPropagation();let[Me,lt]=Te[me.key];Y(Me,lt)}b?.(Se.date,Ie,me)},[Y,b,t.dir]),ct=(0,_t.useCallback)((Se,Ie)=>me=>{v?.(Se.date,Ie,me)},[v]),Pt=(0,_t.useCallback)((Se,Ie)=>me=>{_?.(Se.date,Ie,me)},[_]),at=(0,_t.useCallback)((Se,Ie)=>me=>{let Te=Number(me.target.value),Me=s.setMonth(s.startOfMonth(Se),Te);F(s.addMonths(Me,-Ie))},[s,F]),Be=(0,_t.useCallback)((Se,Ie)=>me=>{let Te=Number(me.target.value),Me=s.setYear(s.startOfMonth(Se),Te);F(s.addMonths(Me,-Ie))},[s,F]),{className:qe,style:vt}=(0,_t.useMemo)(()=>({className:[l[ze.Root],t.className].filter(Boolean).join(" "),style:{...k?.[ze.Root],...t.style}}),[l,t.className,t.style,k]),Vt=t_e(t),kt=Se=>{let Ie=k?.[ze.Dropdown],me=k?.[Se];if(!(!Ie&&!me))return{...Ie,...me}},yt=(0,_t.useRef)(null);d_e(yt,!!t.animate,{classNames:l,months:j,focused:J,dateLib:s});let Ye={dayPickerProps:t,selected:q,select:K,isSelected:$,months:j,nextMonth:z,previousMonth:L,goToMonth:F,getModifiers:G,components:r,classNames:l,styles:k,labels:i,formatters:n};return _t.default.createElement(EY.Provider,{value:Ye},_t.default.createElement(r.Root,{rootRef:t.animate?yt:void 0,className:qe,style:vt,dir:t.dir,id:t.id,lang:t.lang??a.code,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t["aria-label"],"aria-labelledby":t["aria-labelledby"],...Vt},_t.default.createElement(r.Months,{className:l[ze.Months],style:k?.[ze.Months]},!t.hideNavigation&&!f&&_t.default.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:l[ze.Nav],style:k?.[ze.Nav],"aria-label":pe(),onPreviousClick:fe,onNextClick:Ce,previousMonth:L,nextMonth:z}),j.map((Se,Ie)=>{let me=t.reverseMonths?j.length-1-Ie:Ie;return _t.default.createElement(r.Month,{"data-animated-month":t.animate?"true":void 0,className:l[ze.Month],style:k?.[ze.Month],key:Ie,displayIndex:Ie,calendarMonth:Se},f==="around"&&!t.hideNavigation&&Ie===0&&_t.default.createElement(r.PreviousMonthButton,{type:"button",className:l[ze.PreviousMonthButton],style:k?.[ze.PreviousMonthButton],tabIndex:L?void 0:-1,"aria-disabled":L?void 0:!0,"aria-label":Ee(L),onClick:fe,"data-animated-button":t.animate?"true":void 0},_t.default.createElement(r.Chevron,{disabled:L?void 0:!0,className:l[ze.Chevron],style:k?.[ze.Chevron],orientation:t.dir==="rtl"?"right":"left"})),_t.default.createElement(r.MonthCaption,{"data-animated-caption":t.animate?"true":void 0,className:l[ze.MonthCaption],style:k?.[ze.MonthCaption],calendarMonth:Se,displayIndex:Ie},d?.startsWith("dropdown")?_t.default.createElement(r.DropdownNav,{className:l[ze.Dropdowns],style:k?.[ze.Dropdowns]},(()=>{let Te=d==="dropdown"||d==="dropdown-months"?_t.default.createElement(r.MonthsDropdown,{key:"month",className:l[ze.MonthsDropdown],"aria-label":be(),disabled:!!t.disableNavigation,onChange:at(Se.date,me),options:i_e(Se.date,V,A,n,s),style:kt(ze.MonthsDropdown),value:s.getMonth(Se.date)}):_t.default.createElement("span",{key:"month"},R(Se.date,s)),Me=d==="dropdown"||d==="dropdown-years"?_t.default.createElement(r.YearsDropdown,{key:"year",className:l[ze.YearsDropdown],"aria-label":xe(s.options),disabled:!!t.disableNavigation,onChange:Be(Se.date,me),options:l_e(V,A,n,s,!!t.reverseYears),style:kt(ze.YearsDropdown),value:s.getYear(Se.date)}):_t.default.createElement("span",{key:"year"},O(Se.date,s));return s.getMonthYearOrder()==="year-first"?[Me,Te]:[Te,Me]})(),_t.default.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},C(Se.date,s.options,s))):_t.default.createElement(r.CaptionLabel,{className:l[ze.CaptionLabel],style:k?.[ze.CaptionLabel],role:"status","aria-live":"polite"},C(Se.date,s.options,s))),f==="around"&&!t.hideNavigation&&Ie===p-1&&_t.default.createElement(r.NextMonthButton,{type:"button",className:l[ze.NextMonthButton],style:k?.[ze.NextMonthButton],tabIndex:z?void 0:-1,"aria-disabled":z?void 0:!0,"aria-label":ye(z),onClick:Ce,"data-animated-button":t.animate?"true":void 0},_t.default.createElement(r.Chevron,{disabled:z?void 0:!0,className:l[ze.Chevron],style:k?.[ze.Chevron],orientation:t.dir==="rtl"?"left":"right"})),Ie===p-1&&f==="after"&&!t.hideNavigation&&_t.default.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:l[ze.Nav],style:k?.[ze.Nav],"aria-label":pe(),onPreviousClick:fe,onNextClick:Ce,previousMonth:L,nextMonth:z}),_t.default.createElement(r.MonthGrid,{role:"grid","aria-multiselectable":u==="multiple"||u==="range","aria-label":ie(Se.date,s.options,s)||void 0,className:l[ze.MonthGrid],style:k?.[ze.MonthGrid]},!t.hideWeekdays&&_t.default.createElement(r.Weekdays,{"data-animated-weekdays":t.animate?"true":void 0,className:l[ze.Weekdays],style:k?.[ze.Weekdays]},x&&_t.default.createElement(r.WeekNumberHeader,{"aria-label":_e(s.options),className:l[ze.WeekNumberHeader],style:k?.[ze.WeekNumberHeader],scope:"col"},I()),he.map(Te=>_t.default.createElement(r.Weekday,{"aria-label":Oe(Te,s.options,s),className:l[ze.Weekday],key:String(Te),style:k?.[ze.Weekday],scope:"col"},B(Te,s.options,s)))),_t.default.createElement(r.Weeks,{"data-animated-weeks":t.animate?"true":void 0,className:l[ze.Weeks],style:k?.[ze.Weeks]},Se.weeks.map(Te=>_t.default.createElement(r.Week,{className:l[ze.Week],key:Te.weekNumber,style:k?.[ze.Week],week:Te},x&&_t.default.createElement(r.WeekNumber,{week:Te,style:k?.[ze.WeekNumber],"aria-label":we(Te.weekNumber,{locale:a}),className:l[ze.WeekNumber],scope:"row",role:"rowheader"},E(Te.weekNumber,s)),Te.days.map(Me=>{let{date:lt}=Me,et=G(Me);if(et[Oo.focused]=!et.hidden&&!!J?.isEqualTo(Me),et[oa.selected]=$?.(lt)||et.selected,Qg(q)){let{from:xo,to:_o}=q;et[oa.range_start]=!!(xo&&_o&&s.isSameDay(lt,xo)),et[oa.range_end]=!!(xo&&_o&&s.isSameDay(lt,_o)),et[oa.range_middle]=ra(q,lt,!0,s)}let ao=s_e(et,k,t.modifiersStyles),Lo=Jbe(et,l,t.modifiersClassNames),$r=!Ze&&!et.hidden?ne(lt,et,s.options,s):void 0;return _t.default.createElement(r.Day,{key:`${Me.isoDate}_${Me.displayMonthId}`,day:Me,modifiers:et,className:Lo.join(" "),style:ao,role:"gridcell","aria-selected":et.selected||void 0,"aria-label":$r,"data-day":Me.isoDate,"data-month":Me.outside?Me.dateMonthId:void 0,"data-selected":et.selected||void 0,"data-disabled":et.disabled||void 0,"data-hidden":et.hidden||void 0,"data-outside":Me.outside||void 0,"data-focused":et.focused||void 0,"data-today":et.today||void 0},!et.hidden&&Ze?_t.default.createElement(r.DayButton,{className:l[ze.DayButton],style:k?.[ze.DayButton],type:"button",day:Me,modifiers:et,disabled:!et.focused&&et.disabled||void 0,"aria-disabled":et.focused&&et.disabled||void 0,tabIndex:W(Me)?0:-1,"aria-label":re(lt,et,s.options,s),onClick:de(Me,et),onBlur:Re(Me,et),onFocus:ae(Me,et),onKeyDown:$e(Me,et),onMouseEnter:ct(Me,et),onMouseLeave:Pt(Me,et)},S(lt,s.options,s)):!et.hidden&&S(Me.date,s.options,s))}))))))})),t.footer&&_t.default.createElement(r.Footer,{className:l[ze.Footer],style:k?.[ze.Footer],role:"status","aria-live":"polite"},t.footer)))}var Y_=c(D(),1);var L_e=c(D(),1),D_e=c(ue(),1);var sO=c(X(),1);var M_e=c(D(),1);var Ll=c(T(),1),qY="data-wp-hash";function XY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&<t(document)),e.__wpStyleRuntime}function att(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${qY}]`))if(o.getAttribute(qY)===t)return!0;return!1}function A_e(e,t,o){if(!e.head)return;let r=XY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(att(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(qY,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function ltt(e){let t=XY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)A_e(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 ctt(e,t){let o=XY();o.styles.set(e,t);for(let r of o.documents.keys())A_e(r,e,t)}typeof process>"u",ctt("c5cdafb1bc","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer compositions{._28cfdc260e755391__icon-button{--wp-ui-button-aspect-ratio:1;--wp-ui-button-padding-inline:0px;--wp-ui-button-min-width:unset}.f1c70d719989a85a__icon{margin:-1px}}}");var O_e={"icon-button":"_28cfdc260e755391__icon-button",icon:"f1c70d719989a85a__icon"},kR=(0,M_e.forwardRef)(function({label:t,className:o,children:r,disabled:n,focusableWhenDisabled:i=!0,icon:s,size:a,shortcut:l,positioner:d,"aria-describedby":u,"aria-keyshortcuts":f,...p},m){let g=U(O_e["icon-button"],o),{descriptionId:h,targetProps:b}=D7({"aria-describedby":u,"aria-keyshortcuts":f,shortcut:l});return(0,Ll.jsxs)(B7,{children:[(0,Ll.jsxs)(P7,{ref:m,...b,disabled:n&&!i,render:(0,Ll.jsx)(A0,{...p,size:a,"aria-label":t,disabled:n,focusableWhenDisabled:i}),className:g,children:[(0,Ll.jsx)(fo,{icon:s,size:24,className:O_e.icon}),l&&h&&(0,Ll.jsx)(V7,{descriptionId:h,shortcut:l})]}),(0,Ll.jsxs)(I7,{positioner:d,children:[t,l&&(0,Ll.jsxs)(Ll.Fragment,{children:[" ",(0,Ll.jsx)(F7,{shortcut:l})]})]})]})});var N_e=c(D(),1),Q0=(0,N_e.createContext)({});var Ki=c(T(),1),dtt=()=>(0,Ki.jsx)("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeDasharray:"3.7677",strokeDashoffset:"3.2",strokeWidth:"1",children:(0,Ki.jsx)("path",{d:"M29.5,0.5 h-27 a2,2 0 0 0 -2,2 v27 a2,2 0 0 0 2,2 h27 a2,2 0 0 0 2,-2 v-27 a2,2 0 0 0 -2,-2"})}),utt=()=>(0,Ki.jsx)("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeDasharray:"3.84516",strokeDashoffset:"1.9226",strokeWidth:"1",children:(0,Ki.jsx)("path",{d:"M32,0.5 h-29.5 a2,2 0 0 0 -2,2 v27 a2,2 0 0 0 2,2 h30"})}),ftt=()=>(0,Ki.jsxs)("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeDasharray:"3.9 4",strokeDashoffset:"2",strokeWidth:"1",children:[(0,Ki.jsx)("line",{x1:"0",y1:"0.5",x2:"100",y2:"0.5"}),(0,Ki.jsx)("line",{x1:"0",y1:"31.5",x2:"100",y2:"31.5"})]}),ptt=()=>(0,Ki.jsx)("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeDasharray:"3.84516",strokeDashoffset:"1.9226",strokeWidth:"1",children:(0,Ki.jsx)("path",{d:"M0,0.5 h29.5 a2,2 0 0 1 2,2 v27 a2,2 0 0 1 -2,2 h-29.5"})});function V_e(e){let{day:t,modifiers:o,children:r,...n}=e,i;return o.preview_start&&o.preview_end?i=dtt:o.preview_start?i=utt:o.preview_end?i=ptt:o.preview&&(i=ftt),(0,Ki.jsxs)("td",{...n,children:[i&&(0,Ki.jsx)(i,{}),r]})}function F_e({rootRef:e,...t}){let{render:o,ref:r,role:n,defaultAriaLabel:i}=(0,L_e.useContext)(Q0),{months:s,labels:a}=Eu(),l=t["aria-label"]!==void 0||t["aria-labelledby"]!==void 0,d=t["aria-label"];if(!l&&i&&n==="application"){let f=s[0];d=f?(0,sO.sprintf)((0,sO.__)("%1$s, %2$s"),i,a.labelGrid(f.date)):i}let u=(0,D_e.useMergeRefs)([e??null,r??null]);return Bo({render:o,defaultTagName:"div",ref:u,props:{...t,role:n,"aria-label":d}})}function z_e({icon:e,className:t,children:o,"aria-label":r,"aria-disabled":n,...i}){return(0,Ki.jsx)(kR,{...i,className:t,label:r,icon:e,variant:"minimal",tone:"neutral",size:"compact",disabled:n===!0||n==="true",focusableWhenDisabled:!0})}function j_e(e){return(0,Ki.jsx)(z_e,{...e,icon:ai})}function H_e(e){return(0,Ki.jsx)(z_e,{...e,icon:yr})}var ZY="data-wp-hash";function QY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&>t(document)),e.__wpStyleRuntime}function mtt(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${ZY}]`))if(o.getAttribute(ZY)===t)return!0;return!1}function U_e(e,t,o){if(!e.head)return;let r=QY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(mtt(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(ZY,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function gtt(e){let t=QY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)U_e(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 aO(e,t){let o=QY();o.styles.set(e,t);for(let r of o.documents.keys())U_e(r,e,t)}typeof process>"u",aO("9d2212290a",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._2c7ac60ba97b3411__root{--wp-ui-calendar-cell-size:var(--wpds-dimension-size-md,32px);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:inline-block;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);font-weight:var(--wpds-typography-font-weight-default,400);position:relative;z-index:0}._172c492625235710__day{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);padding:0;position:relative;&:has(._1b64226e315835f8__day-button:disabled){color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}&:has(._1b64226e315835f8__day-button:focus-visible),&:has(._1b64226e315835f8__day-button:hover:not(:disabled)){color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}}._1b64226e315835f8__day-button{align-items:center;background:none;border:none;border-radius:var(--wpds-border-radius-sm,2px);color:inherit;cursor:var(--wpds-cursor-control,pointer);display:flex;font:inherit;font-variant-numeric:tabular-nums;height:var(--wp-ui-calendar-cell-size);justify-content:center;margin:0;padding:0;position:relative;width:var(--wp-ui-calendar-cell-size);&:before{background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);border:none;border-radius:var(--wpds-border-radius-sm,2px);z-index:-1}&:after,&:before{content:"";inset:0;position:absolute}&:after{pointer-events:none;z-index:1}&:disabled{cursor:revert;&:before{background-color:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000)}@media (forced-colors:active){text-decoration:line-through}}&:focus-visible:before,&:hover:not(:disabled):before{background-color:var(--wpds-color-background-interactive-neutral-weak-active,#ededed)}}._66b9a8120581fd4b__caption-label{align-items:center;border:0;display:inline-flex;position:relative;text-transform:capitalize;white-space:nowrap;z-index:1}._2c7ac60ba97b3411__root[dir=rtl] ._395a75bb1930f57e__nav-button{transform:rotate(180deg);transform-origin:50%}._337e5337d49b7f3d__month-caption{align-content:center;display:flex;height:var(--wp-ui-calendar-cell-size);justify-content:center;margin-bottom:var(--wpds-dimension-gap-md,12px)}._110e46230c68e498__months{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-lg,16px);justify-content:center;max-width:fit-content;position:relative}._92915239fedb1fea__month-grid{border-collapse:separate;border-spacing:0 var(--wpds-dimension-gap-xs,4px)}._66b1d4a7b488b496__nav{align-items:center;display:flex;height:var(--wp-ui-calendar-cell-size);inset-block-start:0;inset-inline-end:0;inset-inline-start:0;justify-content:space-between;position:absolute}._7207199709ca5776__weekday{color:var(--wpds-color-foreground-content-neutral-weak,#707070);font-weight:var(--wpds-typography-font-weight-default,400);height:var(--wp-ui-calendar-cell-size);padding:0;text-align:center;text-transform:uppercase;width:var(--wp-ui-calendar-cell-size)}._058175f0f9c495e0__today:after{border:2px solid;border-radius:50%;content:"";height:0;inset-block-start:2px;inset-inline-end:2px;position:absolute;width:0;z-index:1}.acb642920fb0bef5__selected:not(._165d91a726feca9c__range-middle){&:has(._1b64226e315835f8__day-button,._1b64226e315835f8__day-button:hover:not(:disabled)){color:var(--wpds-color-foreground-interactive-neutral-strong,#f0f0f0)}&:has(._1b64226e315835f8__day-button:disabled){color:var(--wpds-color-foreground-interactive-neutral-strong-disabled,#8d8d8d)}._1b64226e315835f8__day-button{&:before{background-color:var(--wpds-color-background-interactive-neutral-strong,#2d2d2d);border:1px solid transparent}&:disabled:before{background-color:var(--wpds-color-background-interactive-neutral-strong-disabled,#e6e6e6)}&:hover:not(:disabled):before{background-color:var(--wpds-color-background-interactive-neutral-strong-active,#1e1e1e)}}}.c259c5c255fda10f__outside{color:var(--wpds-color-foreground-interactive-neutral-weak,#707070)}._4d8957a0ca4ec8f0__hidden{visibility:hidden}.f2523033db055ffe__range-start:not(.c04a453de7b11520__range-end) ._1b64226e315835f8__day-button{&,&:before{border-end-end-radius:0;border-start-end-radius:0}}._165d91a726feca9c__range-middle ._1b64226e315835f8__day-button{&:before{background-color:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);border-color:transparent;border-radius:0;border-style:solid;border-width:1px 0}}.c04a453de7b11520__range-end:not(.f2523033db055ffe__range-start) ._1b64226e315835f8__day-button{&,&:before{border-end-start-radius:0;border-start-start-radius:0}}._81b244e7c541d95e__preview svg{color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);inset:0;pointer-events:none;position:absolute;@media (forced-colors:active){color:inherit}}._81b244e7c541d95e__preview.acb642920fb0bef5__selected:not(._165d91a726feca9c__range-middle) svg{display:none}._2c7ac60ba97b3411__root[dir=rtl] ._81b244e7c541d95e__preview svg{transform:scaleX(-1)}._81b244e7c541d95e__preview._165d91a726feca9c__range-middle ._1b64226e315835f8__day-button:before{border:none}@keyframes _255a1a462a5377db__slide-in-left{0%{transform:translateX(-100%)}to{transform:translateX(0)}}@keyframes c21e45f616d6db39__slide-in-right{0%{transform:translateX(100%)}to{transform:translateX(0)}}@keyframes aed80001de9ae226__slide-out-left{0%{transform:translateX(0)}to{transform:translateX(-100%)}}@keyframes _7d4779a7f29408f2__slide-out-right{0%{transform:translateX(0)}to{transform:translateX(100%)}}@keyframes _83ba6321b055d687__fade-in{0%{opacity:0}to{opacity:1}}@keyframes _96fbead71248d210__fade-out{0%{opacity:1}to{opacity:0}}._1563bccb09e39c30__caption-after-enter,._60ac2a7fc3208801__weeks-before-exit,._735dacf9052adecd__caption-before-exit,._7f73a6ab85101202__weeks-after-exit,._805d698b56ba4a29__weeks-after-enter,._9721326fbc23a5fb__weeks-before-enter,.c7a3082839155d29__caption-after-exit,.cb8a5ec82ad0885e__caption-before-enter{animation-duration:0s;animation-fill-mode:forwards;animation-timing-function:var(--wpds-motion-easing-balanced,cubic-bezier(.4,0,.2,1));@media not (prefers-reduced-motion){animation-duration:var(--wpds-motion-duration-lg,.3s)}}._2c7ac60ba97b3411__root[dir=rtl] ._805d698b56ba4a29__weeks-after-enter,._9721326fbc23a5fb__weeks-before-enter{animation-name:_255a1a462a5377db__slide-in-left}._2c7ac60ba97b3411__root[dir=rtl] ._7f73a6ab85101202__weeks-after-exit,._60ac2a7fc3208801__weeks-before-exit{animation-name:aed80001de9ae226__slide-out-left}._2c7ac60ba97b3411__root[dir=rtl] ._9721326fbc23a5fb__weeks-before-enter,._805d698b56ba4a29__weeks-after-enter{animation-name:c21e45f616d6db39__slide-in-right}._2c7ac60ba97b3411__root[dir=rtl] ._60ac2a7fc3208801__weeks-before-exit,._7f73a6ab85101202__weeks-after-exit{animation-name:_7d4779a7f29408f2__slide-out-right}._1563bccb09e39c30__caption-after-enter,.cb8a5ec82ad0885e__caption-before-enter{animation-name:_83ba6321b055d687__fade-in}._735dacf9052adecd__caption-before-exit,.c7a3082839155d29__caption-after-exit{animation-name:_96fbead71248d210__fade-out}}}');var Fo={root:"_2c7ac60ba97b3411__root",day:"_172c492625235710__day","day-button":"_1b64226e315835f8__day-button","caption-label":"_66b9a8120581fd4b__caption-label","nav-button":"_395a75bb1930f57e__nav-button","month-caption":"_337e5337d49b7f3d__month-caption",months:"_110e46230c68e498__months","month-grid":"_92915239fedb1fea__month-grid",nav:"_66b1d4a7b488b496__nav",weekday:"_7207199709ca5776__weekday",today:"_058175f0f9c495e0__today",selected:"acb642920fb0bef5__selected","range-middle":"_165d91a726feca9c__range-middle",outside:"c259c5c255fda10f__outside",hidden:"_4d8957a0ca4ec8f0__hidden","range-start":"f2523033db055ffe__range-start","range-end":"c04a453de7b11520__range-end",preview:"_81b244e7c541d95e__preview","weeks-before-enter":"_9721326fbc23a5fb__weeks-before-enter","weeks-before-exit":"_60ac2a7fc3208801__weeks-before-exit","weeks-after-enter":"_805d698b56ba4a29__weeks-after-enter","weeks-after-exit":"_7f73a6ab85101202__weeks-after-exit","caption-after-enter":"_1563bccb09e39c30__caption-after-enter","caption-after-exit":"c7a3082839155d29__caption-after-exit","caption-before-enter":"cb8a5ec82ad0885e__caption-before-enter","caption-before-exit":"_735dacf9052adecd__caption-before-exit","slide-in-left":"_255a1a462a5377db__slide-in-left","slide-out-left":"aed80001de9ae226__slide-out-left","slide-in-right":"c21e45f616d6db39__slide-in-right","slide-out-right":"_7d4779a7f29408f2__slide-out-right","fade-in":"_83ba6321b055d687__fade-in","fade-out":"_96fbead71248d210__fade-out"};typeof process>"u",aO("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var htt={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",aO("08122b3d53","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.af79fb116edb0dd7__outset-ring--focus:focus,.dfcfdc28396e5d98__outset-ring--focus-visible:focus-visible,.e5cd9ee879f6403a__outset-ring--focus-within:focus-within,:focus-visible ._81935a08e952f267__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within,.abc777e9713fa711__outset-ring--focus-except-active:focus{outline:none}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.abc777e9713fa711__outset-ring--focus-except-active:focus:not(:active){--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");var btt={"outset-ring--focus":"af79fb116edb0dd7__outset-ring--focus","outset-ring--focus-visible":"dfcfdc28396e5d98__outset-ring--focus-visible","outset-ring--focus-within":"e5cd9ee879f6403a__outset-ring--focus-within","outset-ring--focus-parent-visible":"_81935a08e952f267__outset-ring--focus-parent-visible","outset-ring--focus-except-active":"abc777e9713fa711__outset-ring--focus-except-active","outset-ring--focus-within-except-active":"_3c9f5ee9fc9c136d__outset-ring--focus-within-except-active"};typeof process>"u",aO("e8e31009f5","._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);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var _tt={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"},vtt={root:U(Fo.root,htt["box-sizing"]),day:Fo.day,day_button:U(Fo["day-button"],_tt.button,btt["outset-ring--focus-visible"]),outside:Fo.outside,caption_label:Fo["caption-label"],button_next:Fo["nav-button"],button_previous:Fo["nav-button"],nav:Fo.nav,month_caption:Fo["month-caption"],months:Fo.months,month_grid:Fo["month-grid"],weekday:Fo.weekday,today:Fo.today,selected:Fo.selected,disabled:void 0,hidden:Fo.hidden,range_start:Fo["range-start"],range_end:Fo["range-end"],range_middle:Fo["range-middle"],weeks_before_enter:Fo["weeks-before-enter"],weeks_before_exit:Fo["weeks-before-exit"],weeks_after_enter:Fo["weeks-after-enter"],weeks_after_exit:Fo["weeks-after-exit"],caption_after_enter:Fo["caption-after-enter"],caption_after_exit:Fo["caption-after-exit"],caption_before_enter:Fo["caption-before-enter"],caption_before_exit:Fo["caption-before-exit"]},W_e={preview:Fo.preview},lO={animate:!0,showOutsideDays:!1,showWeekNumber:!1,hideWeekdays:!1,captionLayout:"label",fixedWeeks:!1,hideNavigation:!1,classNames:vtt,components:{Day:V_e,Root:F_e,PreviousMonthButton:j_e,NextMonthButton:H_e}};function cO(e){return Math.min(3,Math.max(1,e))}var dO=c(D(),1);function uO({defaultValue:e,onChange:t,value:o}){let r=typeof o<"u",n=r?o:e,[i,s]=(0,dO.useState)(n),a=r?o:i,l=(0,dO.useCallback)((u,...f)=>{s(u),t?.(u,...f)},[t]),d;return r&&typeof t=="function"?d=t:!r&&typeof t=="function"?d=l:d=s,[a,d]}var pi=c(X(),1),G_e=c(D(),1);function ytt(e){let t=(e.getTextInfo?.()??e.textInfo)?.direction;return t?t==="rtl":["ar","he","fa","ur","ps","syr","dv","ku","ckb","ug","yi"].includes(e.language)}function wtt(e){if(!e)return;let t;try{t=Intl.DateTimeFormat.supportedLocalesOf([e])[0]}catch{}return t}function xtt(e){let t=(e.getWeekInfo?.()??e.weekInfo)?.firstDay;if(!(t===void 0||t<1||t>7))return t%7}var fO=({locale:e,timeZone:t,mode:o})=>(0,G_e.useMemo)(()=>{let r=typeof e=="string",n=r||e===void 0?Va:e,i=wtt(r?e:e?.code),s=i??"en-US",a=new Intl.Locale(s),l=i!==void 0?ytt(a):(0,pi.isRTL)(),d=r||i!==void 0?xtt(a):void 0,u=new Intl.DateTimeFormat(s,{calendar:"gregory",year:"numeric",month:"long",timeZone:t}),f=new Intl.DateTimeFormat(s,{calendar:"gregory",weekday:"narrow",timeZone:t}),p=new Intl.DateTimeFormat(s,{calendar:"gregory",weekday:"long",timeZone:t}),m=new Intl.DateTimeFormat(s,{calendar:"gregory",weekday:"long",year:"numeric",month:"long",day:"numeric",timeZone:t}),g=new Intl.DateTimeFormat(s,{calendar:"gregory",day:"numeric",timeZone:t});return{"aria-label":o==="single"?(0,pi.__)("Date calendar"):(0,pi.__)("Date range calendar"),labels:{labelNav:()=>(0,pi.__)("Navigation bar"),labelGrid:u.format,labelGridcell:(h,b)=>{let v=m.format(h),_=v;return b?.today&&(_=(0,pi.sprintf)((0,pi.__)("Today, %s"),v)),_},labelNext:()=>(0,pi.__)("Next month"),labelPrevious:()=>(0,pi.__)("Previous month"),labelDayButton:(h,b)=>{let v=m.format(h),_=v;return b?.today&&b?.selected?(0,pi.sprintf)((0,pi.__)("Today, %s, selected"),v):(b?.today&&(_=(0,pi.sprintf)((0,pi.__)("Today, %s"),v)),b?.selected&&(_=(0,pi.sprintf)((0,pi.__)("%s, selected"),v)),_)},labelWeekday:p.format},locale:n,lang:s,dir:l?"rtl":"ltr",...d===void 0?{}:{weekStartsOn:d},formatters:{formatDay:g.format,formatWeekdayName:f.format,formatCaption:u.format},timeZone:t}},[e,t,o]);var $_e=c(ue(),1),eh=c(D(),1);function pO(e,t){let o=(0,eh.useRef)(null),r=(0,eh.useRef)(!1),n=(0,$_e.useMergeRefs)([o,e]),i=t?t.getFullYear()*12+t.getMonth():void 0,s=(0,eh.useCallback)(()=>{r.current=!0},[]),a=(0,eh.useCallback)(()=>{r.current=!1},[]);return(0,eh.useEffect)(()=>{if(!r.current)return;let l=o.current;if(!l)return;let{activeElement:d,body:u}=l.ownerDocument;if(d!==u){let g=d?.closest('[role="grid"]');r.current=!!g&&l.contains(g);return}r.current=!1;let f=l.querySelector('[role="grid"] button[tabindex="0"]:not(:disabled)'),p=l.querySelector('button:not(:disabled):not([aria-disabled="true"])'),m=l.querySelector("button:not(:disabled)");(f??p??m)?.focus()},[i]),{ref:n,onDayFocus:s,onDayBlur:a}}var JY=c(T(),1),SR=(0,Y_.forwardRef)(function({defaultValue:t,value:o,onValueChange:r,numberOfMonths:n=1,locale:i,timeZone:s,month:a,render:l,role:d="application","aria-label":u,labels:f,...p},m){let{"aria-label":g,...h}=fO({locale:i,timeZone:s,mode:"single"}),b=(0,Y_.useMemo)(()=>f?{...h.labels,...f}:h.labels,[h.labels,f]),v=(0,Y_.useCallback)((k,C,S,R)=>{r?.(k??null,C,S,R)},[r]),[_,y]=uO({defaultValue:t,value:o,onChange:v}),w=pO(m,a),x=(0,Y_.useMemo)(()=>({render:l,ref:w.ref,role:d,defaultAriaLabel:g}),[l,w.ref,d,g]);return(0,JY.jsx)(Q0.Provider,{value:x,children:(0,JY.jsx)(iO,{...lO,...h,...p,"aria-label":u,mode:"single",month:a,numberOfMonths:cO(n),labels:b,selected:_??void 0,onSelect:y,onDayFocus:w.onDayFocus,onDayBlur:w.onDayBlur})})});var nd=c(D(),1);var eK=c(T(),1);function ktt({value:e,hoveredDate:t,excludeDisabled:o,resetOnSelect:r,min:n,max:i,disabled:s}){return(0,nd.useMemo)(()=>{if(!t||!e?.from)return;if(r&&e.to)return{from:t,to:t};let a,l;return t<e.from?(a={from:t,to:e.from},l={from:t,to:e.to??e.from}):e.to&&t>e.from&&t<e.to?(a={from:e.from,to:t},l={from:e.from,to:t}):t>e.from&&(a={from:e.to??e.from,to:t},l={from:e.from,to:t}),n!==void 0&&n>0&&l&&gp(l.to,l.from)<n&&(a={from:t,to:t}),i!==void 0&&i>0&&l&&gp(l.to,l.from)>i&&(a={from:t,to:t}),o&&s&&l&&rO(l,s)&&(a={from:t,to:t}),a},[e,t,o,r,n,i,s])}var tK=(0,nd.forwardRef)(function({defaultValue:t,value:o,onValueChange:r,numberOfMonths:n=1,excludeDisabled:i,resetOnSelect:s=!0,min:a,max:l,disabled:d,locale:u,timeZone:f,month:p,render:m,role:g="application","aria-label":h,labels:b,...v},_){let{"aria-label":y,...w}=fO({locale:u,timeZone:f,mode:"range"}),x=(0,nd.useMemo)(()=>b?{...w.labels,...b}:w.labels,[w.labels,b]),k=(0,nd.useCallback)((N,j,V,A)=>{r?.(N??null,j,V,A)},[r]),[C,S]=uO({defaultValue:t,value:o,onChange:k}),R=pO(_,p),[E,I]=(0,nd.useState)(void 0),B=ktt({value:C,hoveredDate:E,excludeDisabled:i,resetOnSelect:s,min:a,max:l,disabled:d}),O=(0,nd.useMemo)(()=>({preview:B,preview_start:B?.from,preview_end:B?.to}),[B]),M=(0,nd.useMemo)(()=>({render:m,ref:R.ref,role:g,defaultAriaLabel:y}),[m,R.ref,g,y]);return(0,eK.jsx)(Q0.Provider,{value:M,children:(0,eK.jsx)(iO,{...lO,...w,...v,"aria-label":h,mode:"range",month:p,numberOfMonths:cO(n),disabled:d,excludeDisabled:i,resetOnSelect:s,min:a,max:l,labels:x,selected:C??void 0,onSelect:S,onDayFocus:R.onDayFocus,onDayBlur:R.onDayBlur,onDayMouseEnter:N=>I(N),onDayMouseLeave:()=>I(void 0),modifiers:O,modifiersClassNames:W_e})})});var Ru={};ro(Ru,{Content:()=>hO,FullBleed:()=>ove,Header:()=>gO,Root:()=>mO,Title:()=>nve});var Y_e=c(D(),1),oK="data-wp-hash";function rK(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Ctt(document)),e.__wpStyleRuntime}function Stt(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${oK}]`))if(o.getAttribute(oK)===t)return!0;return!1}function K_e(e,t,o){if(!e.head)return;let r=rK(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Stt(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(oK,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Ctt(e){let t=rK();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)K_e(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 q_e(e,t){let o=rK();o.styles.set(e,t);for(let r of o.documents.keys())K_e(r,e,t)}typeof process>"u",q_e("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var Ett={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",q_e("cb866dcef6","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer 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-background-surface-neutral-strong,#fff);border:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-lg,8px);color:var(--wpds-color-foreground-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 Ttt={root:"_02872bf298eadc43__root",header:"bbccc92e6ba5662d__header",content:"_5dffdaf2a6e669ac__content",fullbleed:"c1fa192587e1b4a6__fullbleed"},mO=(0,Y_e.forwardRef)(function({render:t,...o},r){let n=U(Ttt.root,Ett["box-sizing"]);return Bo({defaultTagName:"div",render:t,ref:r,props:st({className:n},o)})});var X_e=c(D(),1),nK="data-wp-hash";function iK(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Itt(document)),e.__wpStyleRuntime}function Rtt(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${nK}]`))if(o.getAttribute(nK)===t)return!0;return!1}function Z_e(e,t,o){if(!e.head)return;let r=iK(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Rtt(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(nK,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Itt(e){let t=iK();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Z_e(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 Ptt(e,t){let o=iK();o.styles.set(e,t);for(let r of o.documents.keys())Z_e(r,e,t)}typeof process>"u",Ptt("cb866dcef6","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer 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-background-surface-neutral-strong,#fff);border:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-lg,8px);color:var(--wpds-color-foreground-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 Btt={root:"_02872bf298eadc43__root",header:"bbccc92e6ba5662d__header",content:"_5dffdaf2a6e669ac__content",fullbleed:"c1fa192587e1b4a6__fullbleed"},gO=(0,X_e.forwardRef)(function({render:t,...o},r){return Bo({defaultTagName:"div",render:t,ref:r,props:st({className:Btt.header},o)})});var Q_e=c(D(),1),sK="data-wp-hash";function aK(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Mtt(document)),e.__wpStyleRuntime}function Ott(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${sK}]`))if(o.getAttribute(sK)===t)return!0;return!1}function J_e(e,t,o){if(!e.head)return;let r=aK(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Ott(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(sK,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Mtt(e){let t=aK();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)J_e(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 Att(e,t){let o=aK();o.styles.set(e,t);for(let r of o.documents.keys())J_e(r,e,t)}typeof process>"u",Att("cb866dcef6","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer 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-background-surface-neutral-strong,#fff);border:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-lg,8px);color:var(--wpds-color-foreground-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 Ntt={root:"_02872bf298eadc43__root",header:"bbccc92e6ba5662d__header",content:"_5dffdaf2a6e669ac__content",fullbleed:"c1fa192587e1b4a6__fullbleed"},hO=(0,Q_e.forwardRef)(function({render:t,...o},r){return Bo({defaultTagName:"div",render:t,ref:r,props:st({className:Ntt.content},o)})});var eve=c(D(),1),lK="data-wp-hash";function cK(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Dtt(document)),e.__wpStyleRuntime}function Ltt(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${lK}]`))if(o.getAttribute(lK)===t)return!0;return!1}function tve(e,t,o){if(!e.head)return;let r=cK(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Ltt(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(lK,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Dtt(e){let t=cK();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)tve(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 Vtt(e,t){let o=cK();o.styles.set(e,t);for(let r of o.documents.keys())tve(r,e,t)}typeof process>"u",Vtt("cb866dcef6","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer 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-background-surface-neutral-strong,#fff);border:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-lg,8px);color:var(--wpds-color-foreground-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 Ftt={root:"_02872bf298eadc43__root",header:"bbccc92e6ba5662d__header",content:"_5dffdaf2a6e669ac__content",fullbleed:"c1fa192587e1b4a6__fullbleed"},ove=(0,eve.forwardRef)(function({render:t,...o},r){return Bo({defaultTagName:"div",render:t,ref:r,props:st({className:Ftt.fullbleed},o)})});var rve=c(D(),1);var dK=c(T(),1),ztt=(0,dK.jsx)("div",{}),nve=(0,rve.forwardRef)(function({render:t=ztt,children:o,...r},n){return(0,dK.jsx)(Ct,{ref:n,variant:"heading-lg",render:t,...r,children:o})});var ive=c(D(),1),sve=c(T(),1),uK=(0,ive.forwardRef)(function(t,o){return(0,sve.jsx)(Ng.Panel,{ref:o,...t})});var ave=c(D(),1),lve=c(T(),1),fK=(0,ave.forwardRef)(function(t,o){return(0,lve.jsx)(Ng.Root,{ref:o,...t})});var cve=c(D(),1),dve=c(T(),1),pK=(0,cve.forwardRef)(function(t,o){return(0,dve.jsx)(Ng.Trigger,{ref:o,...t})});var K_={};ro(K_,{Content:()=>xve,Header:()=>bve,HeaderDescription:()=>vve,Root:()=>fve});var uve=c(D(),1);var gK=c(T(),1),fve=(0,uve.forwardRef)(function({render:t,...o},r){return(0,gK.jsx)(fK,{ref:r,render:(0,gK.jsx)(mO,{render:t}),...o})});var gve=c(ue(),1),id=c(D(),1);var pve=c(D(),1),bO=(0,pve.createContext)(null);var vp=c(T(),1),hK="data-wp-hash";function bK(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Htt(document)),e.__wpStyleRuntime}function jtt(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${hK}]`))if(o.getAttribute(hK)===t)return!0;return!1}function hve(e,t,o){if(!e.head)return;let r=bK(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(jtt(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(hK,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Htt(e){let t=bK();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)hve(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 _K(e,t){let o=bK();o.styles.set(e,t);for(let r of o.documents.keys())hve(r,e,t)}typeof process>"u",_K("64bdb4d46e","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer 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}._92ebbaa30c8a1d05__header-description{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}.dd89d27c4f15912d__header-trigger-positioner{align-self:flex-start;flex-shrink:0;margin-block-start:calc(var(--wpds-typography-line-height-sm, 20px)/2);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-foreground-interactive-neutral-disabled,#8d8d8d)}.e34cf37ccd0d81e0__content{height:var(--collapsible-panel-height);margin-block-start:var(--wp-ui-card-header-content-margin);overflow:hidden;&._03cfdbcd710393c9__overflow-visible{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 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 J0={"heading-wrapper":"_626190151275d6d3__heading-wrapper","header-content":"cab17c7a373cb60d__header-content","header-description":"_92ebbaa30c8a1d05__header-description","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","overflow-visible":"_03cfdbcd710393c9__overflow-visible","content-inner":"_41bfdbf7b6c087c2__content-inner"};typeof process>"u",_K("e8e31009f5","._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);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var mve={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"};typeof process>"u",_K("08122b3d53","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.af79fb116edb0dd7__outset-ring--focus:focus,.dfcfdc28396e5d98__outset-ring--focus-visible:focus-visible,.e5cd9ee879f6403a__outset-ring--focus-within:focus-within,:focus-visible ._81935a08e952f267__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within,.abc777e9713fa711__outset-ring--focus-except-active:focus{outline:none}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.abc777e9713fa711__outset-ring--focus-except-active:focus:not(:active){--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");var Utt={"outset-ring--focus":"af79fb116edb0dd7__outset-ring--focus","outset-ring--focus-visible":"dfcfdc28396e5d98__outset-ring--focus-visible","outset-ring--focus-within":"e5cd9ee879f6403a__outset-ring--focus-within","outset-ring--focus-parent-visible":"_81935a08e952f267__outset-ring--focus-parent-visible","outset-ring--focus-except-active":"abc777e9713fa711__outset-ring--focus-except-active","outset-ring--focus-within-except-active":"_3c9f5ee9fc9c136d__outset-ring--focus-within-except-active"},bve=(0,id.forwardRef)(function({children:t,className:o,render:r,"aria-describedby":n,...i},s){let[a,l]=(0,id.useState)([]),[d,u]=(0,id.useState)([]),f=(0,id.useRef)(null),p=(0,id.useCallback)(h=>(l(b=>b.includes(h)?b:[...b,h]),()=>{l(b=>b.filter(v=>v!==h))}),[]),m=(0,id.useMemo)(()=>({registerDescriptionId:p}),[p]);(0,gve.useIsomorphicLayoutEffect)(()=>{let h=new Set(a),b=Array.from(f.current?.querySelectorAll("[id]")??[]).map(v=>v.id).filter(v=>h.has(v));u(v=>v.length===b.length&&v.every((_,y)=>_===b[y])?v:b)});let g=Array.from(new Set([...n?.split(/\s+/).filter(Boolean)??[],...d])).join(" ")||void 0;return Bo({defaultTagName:"div",render:r,ref:s,props:st(i,{className:U(mve.heading,J0["heading-wrapper"],o),children:(0,vp.jsx)(bO.Provider,{value:m,children:(0,vp.jsxs)(pK,{className:J0.header,render:(0,vp.jsx)(gO,{}),nativeButton:!1,"aria-describedby":g,children:[(0,vp.jsx)("div",{ref:f,className:J0["header-content"],children:t}),(0,vp.jsx)("div",{className:U(J0["header-trigger-positioner"]),children:(0,vp.jsx)("div",{className:U(J0["header-trigger-wrapper"],mve.div,Utt["outset-ring--focus-parent-visible"]),children:(0,vp.jsx)(fo,{icon:Tn,className:J0["header-trigger"]})})})]})})})})});var th=c(D(),1);var wK=c(T(),1),vK="data-wp-hash";function yK(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Gtt(document)),e.__wpStyleRuntime}function Wtt(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${vK}]`))if(o.getAttribute(vK)===t)return!0;return!1}function _ve(e,t,o){if(!e.head)return;let r=yK(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Wtt(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(vK,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Gtt(e){let t=yK();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)_ve(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 $tt(e,t){let o=yK();o.styles.set(e,t);for(let r of o.documents.keys())_ve(r,e,t)}typeof process>"u",$tt("64bdb4d46e","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer 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}._92ebbaa30c8a1d05__header-description{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}.dd89d27c4f15912d__header-trigger-positioner{align-self:flex-start;flex-shrink:0;margin-block-start:calc(var(--wpds-typography-line-height-sm, 20px)/2);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-foreground-interactive-neutral-disabled,#8d8d8d)}.e34cf37ccd0d81e0__content{height:var(--collapsible-panel-height);margin-block-start:var(--wp-ui-card-header-content-margin);overflow:hidden;&._03cfdbcd710393c9__overflow-visible{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 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 Ytt={"heading-wrapper":"_626190151275d6d3__heading-wrapper","header-content":"cab17c7a373cb60d__header-content","header-description":"_92ebbaa30c8a1d05__header-description","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","overflow-visible":"_03cfdbcd710393c9__overflow-visible","content-inner":"_41bfdbf7b6c087c2__content-inner"},Ktt=(0,wK.jsx)("div",{}),vve=(0,th.forwardRef)(function({children:t,className:o,id:r,render:n=Ktt,...i},s){let a=(0,th.useId)(),l=r??a,d=(0,th.useContext)(bO);return(0,th.useEffect)(()=>d?.registerDescriptionId(l),[d,l]),(0,wK.jsx)(Ct,{ref:s,variant:"body-md",render:n,id:l,"aria-hidden":"true",className:U(Ytt["header-description"],o),...i,children:t})});var yve=c(D(),1);var SK=c(T(),1),kK="data-wp-hash";function CK(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Xtt(document)),e.__wpStyleRuntime}function qtt(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${kK}]`))if(o.getAttribute(kK)===t)return!0;return!1}function wve(e,t,o){if(!e.head)return;let r=CK(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(qtt(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(kK,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Xtt(e){let t=CK();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)wve(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 Ztt(e,t){let o=CK();o.styles.set(e,t);for(let r of o.documents.keys())wve(r,e,t)}typeof process>"u",Ztt("64bdb4d46e","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer 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}._92ebbaa30c8a1d05__header-description{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}.dd89d27c4f15912d__header-trigger-positioner{align-self:flex-start;flex-shrink:0;margin-block-start:calc(var(--wpds-typography-line-height-sm, 20px)/2);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-foreground-interactive-neutral-disabled,#8d8d8d)}.e34cf37ccd0d81e0__content{height:var(--collapsible-panel-height);margin-block-start:var(--wp-ui-card-header-content-margin);overflow:hidden;&._03cfdbcd710393c9__overflow-visible{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 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 xK={"heading-wrapper":"_626190151275d6d3__heading-wrapper","header-content":"cab17c7a373cb60d__header-content","header-description":"_92ebbaa30c8a1d05__header-description","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","overflow-visible":"_03cfdbcd710393c9__overflow-visible","content-inner":"_41bfdbf7b6c087c2__content-inner"},xve=(0,yve.forwardRef)(function({className:t,render:o,children:r,hiddenUntilFound:n=!0,...i},s){return(0,SK.jsx)(uK,{ref:s,className:a=>U(xK.content,a.open&&a.transitionStatus==="idle"&&xK["overflow-visible"],t),hiddenUntilFound:n,...i,children:(0,SK.jsx)(hO,{className:xK["content-inner"],render:o,children:r})})});var kve=c(D(),1),EK="data-wp-hash";function TK(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Jtt(document)),e.__wpStyleRuntime}function Qtt(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${EK}]`))if(o.getAttribute(EK)===t)return!0;return!1}function Sve(e,t,o){if(!e.head)return;let r=TK(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Qtt(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(EK,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Jtt(e){let t=TK();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Sve(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 eot(e,t){let o=TK();o.styles.set(e,t);for(let r of o.documents.keys())Sve(r,e,t)}typeof process>"u",eot("32aba35fe1","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._19ce0419607e1896__stack{display:flex}}}");var tot={stack:"_19ce0419607e1896__stack"},oot={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)"},De=(0,kve.forwardRef)(function({direction:t,gap:o,align:r,justify:n,wrap:i,render:s,...a},l){let d={gap:o&&oot[o],alignItems:r,justifyContent:n,flexDirection:t,flexWrap:i};return Bo({render:s,ref:l,props:st(a,{style:d,className:tot.stack})})});var Cve=c(ue(),1),q_=c(D(),1);function Eve(e){let t=(0,Cve.useEvent)(e),o=(0,q_.useRef)(null),r=(0,q_.useRef)(!1),n=(0,q_.useCallback)(()=>{r.current||(o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{t(),o.current=null},0))},[t]);return(0,q_.useEffect)(()=>(r.current=!1,()=>{r.current=!0,o.current&&clearTimeout(o.current)}),[]),n}var Mve=c(D(),1);var CR=c(D(),1),ER=c(T(),1),RK="data-wp-hash";function IK(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&¬(document)),e.__wpStyleRuntime}function rot(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${RK}]`))if(o.getAttribute(RK)===t)return!0;return!1}function Tve(e,t,o){if(!e.head)return;let r=IK(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(rot(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(RK,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function not(e){let t=IK();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Tve(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 PK(e,t){let o=IK();o.styles.set(e,t);for(let r of o.documents.keys())Tve(r,e,t)}typeof process>"u",PK("e8e31009f5","._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);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var iot={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"};typeof process>"u",PK("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var sot={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",PK("e4f4f9600b",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.cb2baafdc08746bb__input-layout{--wp-ui-input-layout-padding-inline:var(--wpds-dimension-padding-md,12px);background-color:var(--wpds-color-background-interactive-neutral,var(--wpds-color-background-surface-neutral-strong,#fff));border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);border-radius:var(--wpds-border-radius-sm,2px);border-style:solid;border-width:var(--wpds-border-width-xs,1px);color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:flex;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:max(var(--wpds-typography-font-size-md,13px),16px);height:var(--wpds-dimension-size-lg,40px);line-height:1;@media (min-width:600px){font-size:var(--wpds-typography-font-size-md,13px)}&._0c807a84cbb94e0c__is-size-compact{height:var(--wpds-dimension-size-md,32px)}&._0c807a84cbb94e0c__is-size-compact,&.ed67cda122dc1e7b__is-size-small{--wp-ui-input-layout-padding-inline:var(--wpds-dimension-padding-sm,8px)}&.ed67cda122dc1e7b__is-size-small{height:var(--wpds-dimension-size-sm,24px)}&._6fb7104732387680__is-disabled,&:has([data-can-disable-input-layout][data-disabled]){color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}&:not(._8097270636ca6100__is-borderless){background-color:var(--wpds-color-background-interactive-neutral-disabled,var(--wpds-color-background-surface-neutral-strong,#fff));border-color:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb);@media (forced-colors:active){border-bottom-color:GrayText;border-left-color:GrayText;border-right-color:GrayText;border-top-color:GrayText}}}&._8097270636ca6100__is-borderless{background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);border-color:transparent}&:has(._0d7afad74a057888__input-layout-slot:focus-within){--_gcd-div-outline:none;outline:none}&:hover:not(._6fb7104732387680__is-disabled,:has([data-can-disable-input-layout][data-disabled]),._8097270636ca6100__is-borderless){background-color:var(--wpds-color-background-interactive-neutral-active,var(--wpds-color-background-surface-neutral-strong,#fff));border-color:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e)}&:has(:invalid[data-validity-visible]){--focus-color:var(--wpds-color-stroke-interactive-error,#cc1818);border-color:var(--wpds-color-stroke-interactive-error,#cc1818);&:hover{border-color:var(--wpds-color-stroke-interactive-error-active,#9d0000)}}}.c192b41a12b4387b__slot-wrapper{display:contents}._0d7afad74a057888__input-layout-slot{align-items:center;display:flex;&._0c952682762ca288__is-padding-minimal{--wp-ui-input-layout-prefix-padding-start:calc(var(--wp-ui-input-layout-padding-inline) - var(--wpds-dimension-padding-xs, 4px));--wp-ui-input-layout-suffix-padding-end:calc(var(--wp-ui-input-layout-padding-inline) - var(--wpds-dimension-padding-xs, 4px))}[data-slot-type=prefix] &{padding-inline-start:var(--wp-ui-input-layout-prefix-padding-start,var(--wp-ui-input-layout-padding-inline))}[data-slot-type=suffix] &{padding-inline-end:var(--wp-ui-input-layout-suffix-padding-end,var(--wp-ui-input-layout-padding-inline))}}}}');var ex={"input-layout":"cb2baafdc08746bb__input-layout","is-size-compact":"_0c807a84cbb94e0c__is-size-compact","is-size-small":"ed67cda122dc1e7b__is-size-small","is-disabled":"_6fb7104732387680__is-disabled","is-borderless":"_8097270636ca6100__is-borderless","input-layout-slot":"_0d7afad74a057888__input-layout-slot","slot-wrapper":"c192b41a12b4387b__slot-wrapper","is-padding-minimal":"_0c952682762ca288__is-padding-minimal"},Rve=(0,CR.forwardRef)(function({className:t,children:o,visuallyDisabled:r,size:n="default",isBorderless:i,prefix:s,suffix:a,...l},d){return(0,ER.jsxs)("div",{ref:d,className:U(iot.div,sot["box-sizing"],ex["input-layout"],ex[`is-size-${n}`],r&&ex["is-disabled"],i&&ex["is-borderless"],t),...l,children:[CR.Children.count(s)>0&&(0,ER.jsx)("div",{className:ex["slot-wrapper"],"data-slot-type":"prefix",children:s}),o,CR.Children.count(a)>0&&(0,ER.jsx)("div",{className:ex["slot-wrapper"],"data-slot-type":"suffix",children:a})]})});var Pve=c(D(),1),Ove=c(T(),1),BK="data-wp-hash";function OK(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&lot(document)),e.__wpStyleRuntime}function aot(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${BK}]`))if(o.getAttribute(BK)===t)return!0;return!1}function Bve(e,t,o){if(!e.head)return;let r=OK(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(aot(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(BK,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function lot(e){let t=OK();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Bve(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 cot(e,t){let o=OK();o.styles.set(e,t);for(let r of o.documents.keys())Bve(r,e,t)}typeof process>"u",cot("e4f4f9600b",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.cb2baafdc08746bb__input-layout{--wp-ui-input-layout-padding-inline:var(--wpds-dimension-padding-md,12px);background-color:var(--wpds-color-background-interactive-neutral,var(--wpds-color-background-surface-neutral-strong,#fff));border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);border-radius:var(--wpds-border-radius-sm,2px);border-style:solid;border-width:var(--wpds-border-width-xs,1px);color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:flex;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:max(var(--wpds-typography-font-size-md,13px),16px);height:var(--wpds-dimension-size-lg,40px);line-height:1;@media (min-width:600px){font-size:var(--wpds-typography-font-size-md,13px)}&._0c807a84cbb94e0c__is-size-compact{height:var(--wpds-dimension-size-md,32px)}&._0c807a84cbb94e0c__is-size-compact,&.ed67cda122dc1e7b__is-size-small{--wp-ui-input-layout-padding-inline:var(--wpds-dimension-padding-sm,8px)}&.ed67cda122dc1e7b__is-size-small{height:var(--wpds-dimension-size-sm,24px)}&._6fb7104732387680__is-disabled,&:has([data-can-disable-input-layout][data-disabled]){color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}&:not(._8097270636ca6100__is-borderless){background-color:var(--wpds-color-background-interactive-neutral-disabled,var(--wpds-color-background-surface-neutral-strong,#fff));border-color:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb);@media (forced-colors:active){border-bottom-color:GrayText;border-left-color:GrayText;border-right-color:GrayText;border-top-color:GrayText}}}&._8097270636ca6100__is-borderless{background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);border-color:transparent}&:has(._0d7afad74a057888__input-layout-slot:focus-within){--_gcd-div-outline:none;outline:none}&:hover:not(._6fb7104732387680__is-disabled,:has([data-can-disable-input-layout][data-disabled]),._8097270636ca6100__is-borderless){background-color:var(--wpds-color-background-interactive-neutral-active,var(--wpds-color-background-surface-neutral-strong,#fff));border-color:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e)}&:has(:invalid[data-validity-visible]){--focus-color:var(--wpds-color-stroke-interactive-error,#cc1818);border-color:var(--wpds-color-stroke-interactive-error,#cc1818);&:hover{border-color:var(--wpds-color-stroke-interactive-error-active,#9d0000)}}}.c192b41a12b4387b__slot-wrapper{display:contents}._0d7afad74a057888__input-layout-slot{align-items:center;display:flex;&._0c952682762ca288__is-padding-minimal{--wp-ui-input-layout-prefix-padding-start:calc(var(--wp-ui-input-layout-padding-inline) - var(--wpds-dimension-padding-xs, 4px));--wp-ui-input-layout-suffix-padding-end:calc(var(--wp-ui-input-layout-padding-inline) - var(--wpds-dimension-padding-xs, 4px))}[data-slot-type=prefix] &{padding-inline-start:var(--wp-ui-input-layout-prefix-padding-start,var(--wp-ui-input-layout-padding-inline))}[data-slot-type=suffix] &{padding-inline-end:var(--wp-ui-input-layout-suffix-padding-end,var(--wp-ui-input-layout-padding-inline))}}}}');var Ive={"input-layout":"cb2baafdc08746bb__input-layout","is-size-compact":"_0c807a84cbb94e0c__is-size-compact","is-size-small":"ed67cda122dc1e7b__is-size-small","is-disabled":"_6fb7104732387680__is-disabled","is-borderless":"_8097270636ca6100__is-borderless","input-layout-slot":"_0d7afad74a057888__input-layout-slot","slot-wrapper":"c192b41a12b4387b__slot-wrapper","is-padding-minimal":"_0c952682762ca288__is-padding-minimal"},MK=(0,Pve.forwardRef)(function({padding:t="default",className:o,...r},n){return(0,Ove.jsx)("div",{ref:n,className:U(Ive["input-layout-slot"],Ive[`is-padding-${t}`],o),...r})});MK.displayName="InputLayout.Slot";var ws=Object.assign(Rve,{Slot:MK});var NK=c(T(),1),AK="data-wp-hash";function LK(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&uot(document)),e.__wpStyleRuntime}function dot(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${AK}]`))if(o.getAttribute(AK)===t)return!0;return!1}function Ave(e,t,o){if(!e.head)return;let r=LK(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(dot(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(AK,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function uot(e){let t=LK();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Ave(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 DK(e,t){let o=LK();o.styles.set(e,t);for(let r of o.documents.keys())Ave(r,e,t)}typeof process>"u",DK("e8e31009f5","._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);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var fot={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"};typeof process>"u",DK("08122b3d53","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.af79fb116edb0dd7__outset-ring--focus:focus,.dfcfdc28396e5d98__outset-ring--focus-visible:focus-visible,.e5cd9ee879f6403a__outset-ring--focus-within:focus-within,:focus-visible ._81935a08e952f267__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within,.abc777e9713fa711__outset-ring--focus-except-active:focus{outline:none}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.abc777e9713fa711__outset-ring--focus-except-active:focus:not(:active){--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");var pot={"outset-ring--focus":"af79fb116edb0dd7__outset-ring--focus","outset-ring--focus-visible":"dfcfdc28396e5d98__outset-ring--focus-visible","outset-ring--focus-within":"e5cd9ee879f6403a__outset-ring--focus-within","outset-ring--focus-parent-visible":"_81935a08e952f267__outset-ring--focus-parent-visible","outset-ring--focus-except-active":"abc777e9713fa711__outset-ring--focus-except-active","outset-ring--focus-within-except-active":"_3c9f5ee9fc9c136d__outset-ring--focus-within-except-active"};typeof process>"u",DK("1a25f6a232","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._2ae7be2fc1bb17a3__input{--_gcd-input-padding:var(--wp-ui-input-padding-block,0px) var(--wp-ui-input-layout-padding-inline,0px);background:transparent;border:none;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);font-family:inherit;font-size:inherit;line-height:inherit;outline:none;padding-block:var(--wp-ui-input-padding-block,0);padding-inline:var(--wp-ui-input-layout-padding-inline,0);width:100%;&::placeholder{color:var(--wpds-color-foreground-interactive-neutral-weak,#707070)}&:disabled,&[aria-disabled=true]{--_gcd-input-placeholder-color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);&::placeholder{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}@media (forced-colors:active){color:GrayText}}&[type=email],&[type=url]{direction:ltr}&[type=number]{appearance:textfield;&::-webkit-inner-spin-button,&::-webkit-outer-spin-button{appearance:none;margin:0}}}}}");var mot={input:"_2ae7be2fc1bb17a3__input"},tx=(0,Mve.forwardRef)(function({className:t,size:o="default",prefix:r,suffix:n,style:i,...s},a){return(0,NK.jsx)(ws,{className:U(pot["outset-ring--focus-within"],t),style:i,size:o,visuallyDisabled:s.disabled,prefix:r,suffix:n,children:(0,NK.jsx)(QG,{ref:a,className:U(fot.input,mot.input),...s})})});var VK="data-wp-hash";function FK(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&hot(document)),e.__wpStyleRuntime}function got(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${VK}]`))if(o.getAttribute(VK)===t)return!0;return!1}function Nve(e,t,o){if(!e.head)return;let r=FK(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(got(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(VK,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function hot(e){let t=FK();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Nve(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 bot(e,t){let o=FK();o.styles.set(e,t);for(let r of o.documents.keys())Nve(r,e,t)}typeof process>"u",bot("ff021bf4fe",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._380b81b8f79fb10f__dropdown-motion,._7f344b94e270e039__dropdown-motion--fade-only{--wp-ui-dropdown-slide-distance:4px;--wp-ui-dropdown-slide-duration:var(--wpds-motion-duration-md,200ms);--wp-ui-dropdown-slide-easing:var(--wpds-motion-easing-expressive,cubic-bezier(0.25,0,0,1));--wp-ui-dropdown-fade-duration:var(--wpds-motion-duration-sm,100ms);--wp-ui-dropdown-fade-easing:linear;@media not (prefers-reduced-motion){transition-duration:var(--wp-ui-dropdown-slide-duration),var(--wp-ui-dropdown-fade-duration);transition-property:transform,opacity;transition-timing-function:var(--wp-ui-dropdown-slide-easing),var(--wp-ui-dropdown-fade-easing);will-change:transform,opacity}opacity:1;&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}}._380b81b8f79fb10f__dropdown-motion{transform:translate(0);&[data-side=bottom][data-ending-style],&[data-side=bottom][data-starting-style]{transform:translateY(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=top][data-ending-style],&[data-side=top][data-starting-style]{transform:translateY(var(--wp-ui-dropdown-slide-distance))}&[data-side=left][data-ending-style],&[data-side=left][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=right][data-ending-style],&[data-side=right][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=inline-start][data-ending-style],&[data-side=inline-start][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=inline-end][data-ending-style],&[data-side=inline-end][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-start][data-ending-style],&:dir(rtl)[data-side=inline-start][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-end][data-ending-style],&:dir(rtl)[data-side=inline-end][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._234b520016b4e56f__popup{--wp-ui-popup-padding:var(--wpds-dimension-padding-xs,4px);--_wp-ui-elevation-md:0 2px 3px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.04),0 12px 12px rgba(0,0,0,.03),0 16px 16px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-md);display:grid;grid-template-areas:"header" "status" "main";grid-template-rows:auto auto minmax(0,1fr);max-height:min(var(--available-height),480px,60dvh);max-width:var(--available-width);min-width:var(--anchor-width);&.b9a9946a395ccad8__is-width-anchor{width:var(--anchor-width)}&._7c9f1b268b013f02__is-width-content{width:auto}&._6f31db51d79ec899__is-width-sm{width:min(var(--available-width),var(--wpds-dimension-surface-width-sm,320px))}&.fa45cdb5f45e57fb__is-width-md{width:min(var(--available-width),var(--wpds-dimension-surface-width-md,400px))}&._46a909337f6be21c__is-width-lg{width:min(var(--available-width),var(--wpds-dimension-surface-width-lg,560px))}&._6083938dff06df34__is-width-available{width:var(--available-width)}}._101852fa256bb935__is-align-item-with-trigger ._234b520016b4e56f__popup{max-height:none}._2fff4e9defe85de5__list-chrome{color:var(--wpds-color-foreground-interactive-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-md,13px);grid-area:main;line-height:var(--wpds-typography-line-height-sm,20px)}.f43dc7c768d7b622__list{display:grid;grid-template-areas:"scrollable" "footer";grid-template-rows:minmax(0,1fr) auto}._233cd60cdb84a2ef__list-scrollable-container{grid-area:scrollable;overflow-block:auto;overscroll-behavior:contain;scroll-padding-block:var(--wp-ui-popup-padding);&:not(:empty){padding-block:var(--wp-ui-popup-padding)}}.ec4db6f0122263e7__list-footer{grid-area:footer;padding-block:var(--wp-ui-popup-padding);._233cd60cdb84a2ef__list-scrollable-container:not(:empty)+&{border-block-start:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}}.b3c0d7f103fb10a2__group:not(:first-child){margin-block-start:var(--wpds-dimension-gap-sm,8px)}._21b59380477c306c__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;min-height:var(--wpds-dimension-size-md,32px);padding-inline:var(--wpds-dimension-padding-md,12px)}._684ccb7988365b4f__item{--wp-ui-popup-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-popup-item-padding-block:var(--wpds-dimension-padding-xs,4px);align-items:center;border-radius:var(--wpds-border-radius-sm,2px);display:flex;gap:var(--wpds-dimension-gap-xs,4px);justify-content:flex-start;margin-inline:var(--wp-ui-popup-padding);min-height:var(--wp-ui-popup-item-height);min-width:0;overflow-wrap:anywhere;padding-block:var(--wp-ui-popup-item-padding-block);padding-inline-end:var(--wp-ui-popup-item-padding-inline);padding-inline-start:calc(var(--wp-ui-popup-item-padding-inline) - var(--wpds-dimension-padding-xs, 4px));user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&._38f7faff93c61958__is-size-small{--wp-ui-popup-item-height:var(--wpds-dimension-size-sm,24px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-popup-item-padding-block:2px}&:not([data-selected]){._92fbe4765dfad5ee__item-indicator-icon{opacity:0}}&[data-highlighted]:not([aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:none;@media (forced-colors:active){--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid Highlight}}&[aria-disabled=true]{background-color:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}}.a3adcfd0b73ffd40__item-icon{flex-shrink:0}._41f0dd875c005a48__item-text{display:flex;flex:1;flex-direction:column;gap:2px;min-width:0}._12335b76ada0b1f5__item-label{min-width:0}._160635254c702623__item-description{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}._684ccb7988365b4f__item[aria-disabled=true] ._160635254c702623__item-description,._684ccb7988365b4f__item[data-highlighted]:not([aria-disabled=true]) ._160635254c702623__item-description{color:inherit}._6eb78bc92f8d7795__status{grid-area:status}._06c7ff39d2f685b9__empty:not(:empty){grid-area:main}._06c7ff39d2f685b9__empty:not(:empty),._6eb78bc92f8d7795__status:not(:empty):not(:has([data-visually-hidden])){--wp-ui-popup-empty-min-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-empty-padding-inline:var(--wpds-dimension-padding-md,12px);align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wp-ui-popup-empty-min-height);padding-inline:var(--wp-ui-popup-empty-padding-inline)}}}');var ox={popup:"_234b520016b4e56f__popup _380b81b8f79fb10f__dropdown-motion","is-width-anchor":"b9a9946a395ccad8__is-width-anchor","is-width-content":"_7c9f1b268b013f02__is-width-content","is-width-sm":"_6f31db51d79ec899__is-width-sm","is-width-md":"fa45cdb5f45e57fb__is-width-md","is-width-lg":"_46a909337f6be21c__is-width-lg","is-width-available":"_6083938dff06df34__is-width-available","is-align-item-with-trigger":"_101852fa256bb935__is-align-item-with-trigger","list-chrome":"_2fff4e9defe85de5__list-chrome",list:"f43dc7c768d7b622__list _2fff4e9defe85de5__list-chrome","list-scrollable-container":"_233cd60cdb84a2ef__list-scrollable-container","list-footer":"ec4db6f0122263e7__list-footer",group:"b3c0d7f103fb10a2__group","group-label":"_21b59380477c306c__group-label",item:"_684ccb7988365b4f__item","is-size-small":"_38f7faff93c61958__is-size-small","item-indicator-icon":"_92fbe4765dfad5ee__item-indicator-icon","item-icon":"a3adcfd0b73ffd40__item-icon","item-text":"_41f0dd875c005a48__item-text","item-label":"_12335b76ada0b1f5__item-label","item-description":"_160635254c702623__item-description",status:"_6eb78bc92f8d7795__status",empty:"_06c7ff39d2f685b9__empty"};function Lve(e="anchor"){switch(e){case"available":return ox["is-width-available"];case"content":return ox["is-width-content"];case"lg":return ox["is-width-lg"];case"md":return ox["is-width-md"];case"sm":return ox["is-width-sm"];case"anchor":return ox["is-width-anchor"];default:return!1}}var $K=c(X(),1),Bn=c(D(),1);var Dve=c(D(),1),TR=c(T(),1),jK="data-wp-hash";function HK(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&vot(document)),e.__wpStyleRuntime}function _ot(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${jK}]`))if(o.getAttribute(jK)===t)return!0;return!1}function Vve(e,t,o){if(!e.head)return;let r=HK(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(_ot(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(jK,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function vot(e){let t=HK();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Vve(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 yot(e,t){let o=HK();o.styles.set(e,t);for(let r of o.documents.keys())Vve(r,e,t)}typeof process>"u",yot("bbbecfe373","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.ab4d64c07c0ba587__spinner{background-color:transparent;display:inline-block;height:var(--wpds-dimension-size-2xs,16px);opacity:1;overflow:visible;position:relative;width:var(--wpds-dimension-size-2xs,16px)}.a7654e10245bb7d2__indicator,.dc51f80c84b35fe2__track{fill:transparent;stroke-width:1.5px}.dc51f80c84b35fe2__track{stroke:var(--wpds-color-background-track-neutral,#dbdbdb)}.a7654e10245bb7d2__indicator{stroke:var(--wpds-color-background-thumb-brand,var(--wp-admin-theme-color,#3858e9));stroke-linecap:round;animation:_02322d973909703c__spinner-spin 1.4s linear infinite both;transform-origin:50% 50%}@keyframes _02322d973909703c__spinner-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}}}");var zK={spinner:"ab4d64c07c0ba587__spinner",track:"dc51f80c84b35fe2__track",indicator:"a7654e10245bb7d2__indicator","spinner-spin":"_02322d973909703c__spinner-spin"},UK=(0,Dve.forwardRef)(function({className:t,...o},r){return(0,TR.jsxs)("svg",{className:U(zK.spinner,t),viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",role:"presentation",focusable:"false",...o,ref:r,children:[(0,TR.jsx)("circle",{className:zK.track,cx:"50",cy:"50",r:"50",vectorEffect:"non-scaling-stroke"}),(0,TR.jsx)("path",{className:zK.indicator,d:"m 50 0 a 50 50 0 0 1 50 50",vectorEffect:"non-scaling-stroke"})]})});var RR=c(T(),1),WK="data-wp-hash";function GK(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&xot(document)),e.__wpStyleRuntime}function wot(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${WK}]`))if(o.getAttribute(WK)===t)return!0;return!1}function Fve(e,t,o){if(!e.head)return;let r=GK(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(wot(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(WK,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function xot(e){let t=GK();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Fve(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 zve(e,t){let o=GK();o.styles.set(e,t);for(let r of o.documents.keys())Fve(r,e,t)}typeof process>"u",zve("e8e31009f5","._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);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var kot={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"};typeof process>"u",zve("d11816833c",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._7a7ac88e306348e7__indicator{--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);align-items:flex-start;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;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);gap:var(--wpds-dimension-gap-xs,4px);line-height:var(--wpds-typography-line-height-xs,16px);@media not (prefers-reduced-motion){animation:_48722cc5dd090ce4__indicator-jump var(--wpds-motion-duration-md,.2s) cubic-bezier(.68,-.55,.27,1.55)}}._57a3bbbfbe38a5c6__is-invalid{color:var(--wpds-color-foreground-content-error-weak,#cc1818)}._9e944dc198aac10b__is-valid{color:var(--wpds-color-foreground-content-success-weak,#008030)}.e482806667437c6a__indicator-icon{flex-shrink:0}._6e46434cc23019d2__indicator-spinner{height:var(--wpds-dimension-size-3xs,12px);margin:2px;width:var(--wpds-dimension-size-3xs,12px)}@keyframes _48722cc5dd090ce4__indicator-jump{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}}}');var _O={indicator:"_7a7ac88e306348e7__indicator","indicator-jump":"_48722cc5dd090ce4__indicator-jump","is-invalid":"_57a3bbbfbe38a5c6__is-invalid","is-valid":"_9e944dc198aac10b__is-valid","indicator-icon":"e482806667437c6a__indicator-icon","indicator-spinner":"_6e46434cc23019d2__indicator-spinner"},Sot={valid:sE,invalid:Jb};function X_({id:e,type:t,message:o}){return(0,RR.jsxs)("p",{id:e,className:U(kot.p,_O.indicator,_O[`is-${t}`]),children:[t==="validating"?(0,RR.jsx)(UK,{className:_O["indicator-spinner"]}):(0,RR.jsx)(fo,{className:_O["indicator-icon"],icon:Sot[t],size:16,fill:"currentColor"}),o]})}var Iu=c(T(),1),Cot=e=>(0,Iu.jsx)(De,{...e,direction:"column",gap:"sm"});function Eot(e,t,o){let r;return t&&!o?r=`(${(0,$K.__)("Required")})`:!t&&o&&(r=`(${(0,$K.__)("Optional")})`),r?typeof e=="string"?`${e} ${r}`:(0,Iu.jsxs)(Iu.Fragment,{children:[e," ",r]}):e}var jve="data-validity-visible",Lr=(0,Bn.forwardRef)(function({required:t,markWhenOptional:o,customValidity:r,getValidityTarget:n,children:i,render:s=Cot,...a},l){let[d,u]=(0,Bn.useState)(),[f,p]=(0,Bn.useState)(),[m,g]=(0,Bn.useState)(!1),[h,b]=(0,Bn.useState)(!1),v=(0,Bn.useRef)(null);(0,Bn.useEffect)(()=>{let k=n(),C=()=>{r?.type!=="validating"&&u(k?.validationMessage),g(!0),k?.setAttribute(jve,"")};return k?.addEventListener("invalid",C),()=>k?.removeEventListener("invalid",C)},[r?.type,n]),(0,Bn.useEffect)(()=>{let k=n(),C=R=>{if(R.preventDefault(),!R.isTrusted)return;let E=R.target,I=Array.from(E.form?.elements??[]).find(B=>!B.validity.valid);(!E.form||I===E)&&E.focus()},S=k?.type==="radio"&&k?.name?Array.from(v.current?.querySelectorAll(`input[type="radio"][name="${k?.name}"]`)??[]).filter(R=>R!==k):[];return k?.addEventListener("invalid",C),S.forEach(R=>R.addEventListener("invalid",C)),()=>{k?.removeEventListener("invalid",C),S.forEach(R=>R.removeEventListener("invalid",C))}},[n]),(0,Bn.useEffect)(()=>{let k=n();if(!r?.type){k?.setCustomValidity(""),u(k?.validationMessage),p(void 0);return}switch(r.type){case"validating":{k?.setCustomValidity(""),u(void 0),p({type:"validating",message:r.message});break}case"valid":{k?.setCustomValidity(""),u(k?.validationMessage),p({type:"valid",message:r.message});break}case"invalid":{k?.setCustomValidity(r.message??""),u(k?.validationMessage),p(void 0);break}}},[r,n]),(0,Bn.useEffect)(()=>{if(!(!h||m)){if(r?.type==="validating"){let k=setTimeout(()=>{g(!0)},1e3);return()=>clearTimeout(k)}g(!0)}},[h,r?.type,m]);let _=k=>{if(k.relatedTarget&&k.currentTarget.contains(k.relatedTarget))return;h||(b(!0),n()?.setAttribute(jve,""));let C=n(),S=r?.type==="validating";window.queueMicrotask(()=>{S||u(C?.validationMessage)})},y=(0,Bn.useId)(),w=d?(0,Iu.jsx)(X_,{id:y,type:"invalid",message:d}):f?.type?(0,Iu.jsx)(X_,{id:y,type:f.type,message:f.message}):null,x=m?w:null;return(0,Bn.useEffect)(()=>{let k=n();if(!k)return;function C(S,R){let E=(S.getAttribute("aria-describedby")??"").split(" ").filter(I=>I&&I!==y);R&&E.push(y),E.length?S.setAttribute("aria-describedby",E.join(" ")):S.removeAttribute("aria-describedby")}return C(k,!!x),()=>C(k,!1)},[x,y,n]),Bo({render:s,ref:[l,v],props:st(a,{onBlur:_,children:(0,Iu.jsxs)(Iu.Fragment,{children:[(0,Bn.cloneElement)(i,{label:Eot(i.props.label,t,o),required:t}),x]})})})});var mi={};ro(mi,{Control:()=>cye,Description:()=>oye,Details:()=>sye,Item:()=>Yve,Label:()=>Zve,Root:()=>Wve,VisualLabel:()=>iq});var Hve=c(D(),1);var qK=c(T(),1),YK="data-wp-hash";function KK(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Rot(document)),e.__wpStyleRuntime}function Tot(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${YK}]`))if(o.getAttribute(YK)===t)return!0;return!1}function Uve(e,t,o){if(!e.head)return;let r=KK(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Tot(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(YK,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Rot(e){let t=KK();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Uve(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 Iot(e,t){let o=KK();o.styles.set(e,t);for(let r of o.documents.keys())Uve(r,e,t)}typeof process>"u",Iot("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var Pot={"box-sizing":"_336cd3e4e743482f__box-sizing"},Bot=e=>(0,qK.jsx)(De,{...e,direction:"column",gap:"sm"}),Wve=(0,Hve.forwardRef)(function({className:t,render:o=Bot,...r},n){return(0,qK.jsx)(Gi.Root,{ref:n,className:U(Pot["box-sizing"],t),render:o,...r})});var Gve=c(D(),1),$ve=c(T(),1),Yve=(0,Gve.forwardRef)(function(t,o){return(0,$ve.jsx)(Gi.Item,{ref:o,...t})});var qve=c(D(),1);var ZK=c(T(),1),XK="data-wp-hash";function QK(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Mot(document)),e.__wpStyleRuntime}function Oot(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${XK}]`))if(o.getAttribute(XK)===t)return!0;return!1}function Xve(e,t,o){if(!e.head)return;let r=QK(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Oot(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(XK,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Mot(e){let t=QK();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Xve(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 Aot(e,t){let o=QK();o.styles.set(e,t);for(let r of o.documents.keys())Xve(r,e,t)}typeof process>"u",Aot("df33c48b2d",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._2d5ad850b2f90964__label{--wp-ui-field-label-line-height:var(--wpds-typography-line-height-xs,16px);color:var(--wpds-color-foreground-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-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wp-ui-field-label-line-height);text-transform:uppercase;&._17c4214649230bea__is-plain{font-size:var(--wpds-typography-font-size-md,13px);font-weight:var(--wpds-typography-font-weight-default,400);text-transform:none}}._08a3750500e0233f__description{--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);--_gcd-p-margin:0;text-wrap:pretty;color:var(--wpds-color-foreground-content-neutral-weak,#707070);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:var(--wpds-typography-line-height-xs,16px)}}}');var Kve={label:"_2d5ad850b2f90964__label","is-plain":"_17c4214649230bea__is-plain",description:"_08a3750500e0233f__description"},Zve=(0,qve.forwardRef)(function({className:t,hideFromVision:o,variant:r,...n},i){let s=(0,ZK.jsx)(Gi.Label,{ref:i,className:U(Kve.label,r&&Kve[`is-${r}`],t),...n});return o?(0,ZK.jsx)(Et,{render:s}):s});var Qve=c(D(),1),tye=c(T(),1),JK="data-wp-hash";function eq(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Lot(document)),e.__wpStyleRuntime}function Not(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${JK}]`))if(o.getAttribute(JK)===t)return!0;return!1}function Jve(e,t,o){if(!e.head)return;let r=eq(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Not(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(JK,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Lot(e){let t=eq();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Jve(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 eye(e,t){let o=eq();o.styles.set(e,t);for(let r of o.documents.keys())Jve(r,e,t)}typeof process>"u",eye("e8e31009f5","._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);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var Dot={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"};typeof process>"u",eye("df33c48b2d",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._2d5ad850b2f90964__label{--wp-ui-field-label-line-height:var(--wpds-typography-line-height-xs,16px);color:var(--wpds-color-foreground-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-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wp-ui-field-label-line-height);text-transform:uppercase;&._17c4214649230bea__is-plain{font-size:var(--wpds-typography-font-size-md,13px);font-weight:var(--wpds-typography-font-weight-default,400);text-transform:none}}._08a3750500e0233f__description{--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);--_gcd-p-margin:0;text-wrap:pretty;color:var(--wpds-color-foreground-content-neutral-weak,#707070);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:var(--wpds-typography-line-height-xs,16px)}}}');var Vot={label:"_2d5ad850b2f90964__label","is-plain":"_17c4214649230bea__is-plain",description:"_08a3750500e0233f__description"},oye=(0,Qve.forwardRef)(function({className:t,...o},r){return(0,tye.jsx)(Gi.Description,{ref:r,className:U(Dot.p,Vot.description,t),...o})});var rye=c(D(),1),nye=c(X(),1);var oh=c(T(),1),tq="data-wp-hash";function oq(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&zot(document)),e.__wpStyleRuntime}function Fot(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${tq}]`))if(o.getAttribute(tq)===t)return!0;return!1}function iye(e,t,o){if(!e.head)return;let r=oq(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Fot(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(tq,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function zot(e){let t=oq();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)iye(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 jot(e,t){let o=oq();o.styles.set(e,t);for(let r of o.documents.keys())iye(r,e,t)}typeof process>"u",jot("df33c48b2d",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._2d5ad850b2f90964__label{--wp-ui-field-label-line-height:var(--wpds-typography-line-height-xs,16px);color:var(--wpds-color-foreground-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-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wp-ui-field-label-line-height);text-transform:uppercase;&._17c4214649230bea__is-plain{font-size:var(--wpds-typography-font-size-md,13px);font-weight:var(--wpds-typography-font-weight-default,400);text-transform:none}}._08a3750500e0233f__description{--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);--_gcd-p-margin:0;text-wrap:pretty;color:var(--wpds-color-foreground-content-neutral-weak,#707070);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:var(--wpds-typography-line-height-xs,16px)}}}');var Hot={label:"_2d5ad850b2f90964__label","is-plain":"_17c4214649230bea__is-plain",description:"_08a3750500e0233f__description"},sye=(0,rye.forwardRef)(function({className:t,...o},r){return(0,oh.jsxs)(oh.Fragment,{children:[(0,oh.jsx)(Et,{render:(0,oh.jsx)(Gi.Description,{}),children:(0,nye.__)("More details follow the field.")}),(0,oh.jsx)("div",{ref:r,className:U(Hot.description,t),...o})]})});var aye=c(D(),1),lye=c(T(),1),cye=(0,aye.forwardRef)(function(t,o){return(0,lye.jsx)(Gi.Control,{ref:o,...t})});var uye=c(D(),1),rq="data-wp-hash";function nq(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Wot(document)),e.__wpStyleRuntime}function Uot(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${rq}]`))if(o.getAttribute(rq)===t)return!0;return!1}function fye(e,t,o){if(!e.head)return;let r=nq(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Uot(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(rq,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Wot(e){let t=nq();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)fye(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 Got(e,t){let o=nq();o.styles.set(e,t);for(let r of o.documents.keys())fye(r,e,t)}typeof process>"u",Got("df33c48b2d",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._2d5ad850b2f90964__label{--wp-ui-field-label-line-height:var(--wpds-typography-line-height-xs,16px);color:var(--wpds-color-foreground-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-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wp-ui-field-label-line-height);text-transform:uppercase;&._17c4214649230bea__is-plain{font-size:var(--wpds-typography-font-size-md,13px);font-weight:var(--wpds-typography-font-weight-default,400);text-transform:none}}._08a3750500e0233f__description{--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);--_gcd-p-margin:0;text-wrap:pretty;color:var(--wpds-color-foreground-content-neutral-weak,#707070);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:var(--wpds-typography-line-height-xs,16px)}}}');var dye={label:"_2d5ad850b2f90964__label","is-plain":"_17c4214649230bea__is-plain",description:"_08a3750500e0233f__description"},iq=(0,uye.forwardRef)(function({className:t,render:o,variant:r,...n},i){return Bo({defaultTagName:"span",render:o,ref:i,props:st(n,{className:U(dye.label,r&&dye[`is-${r}`],t)})})});iq.displayName="Field.VisualLabel";var Pu={};ro(Pu,{Group:()=>IR,GroupLabel:()=>PR,Item:()=>Cye,ItemDescription:()=>Z_,ItemLabel:()=>Q_,Popup:()=>Nye,Portal:()=>vO,Positioner:()=>yO,Root:()=>Lye,Trigger:()=>jye});var pye=c(D(),1),gye=c(T(),1),sq="data-wp-hash";function aq(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Yot(document)),e.__wpStyleRuntime}function $ot(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${sq}]`))if(o.getAttribute(sq)===t)return!0;return!1}function mye(e,t,o){if(!e.head)return;let r=aq(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if($ot(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(sq,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Yot(e){let t=aq();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)mye(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 Kot(e,t){let o=aq();o.styles.set(e,t);for(let r of o.documents.keys())mye(r,e,t)}typeof process>"u",Kot("ff021bf4fe",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._380b81b8f79fb10f__dropdown-motion,._7f344b94e270e039__dropdown-motion--fade-only{--wp-ui-dropdown-slide-distance:4px;--wp-ui-dropdown-slide-duration:var(--wpds-motion-duration-md,200ms);--wp-ui-dropdown-slide-easing:var(--wpds-motion-easing-expressive,cubic-bezier(0.25,0,0,1));--wp-ui-dropdown-fade-duration:var(--wpds-motion-duration-sm,100ms);--wp-ui-dropdown-fade-easing:linear;@media not (prefers-reduced-motion){transition-duration:var(--wp-ui-dropdown-slide-duration),var(--wp-ui-dropdown-fade-duration);transition-property:transform,opacity;transition-timing-function:var(--wp-ui-dropdown-slide-easing),var(--wp-ui-dropdown-fade-easing);will-change:transform,opacity}opacity:1;&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}}._380b81b8f79fb10f__dropdown-motion{transform:translate(0);&[data-side=bottom][data-ending-style],&[data-side=bottom][data-starting-style]{transform:translateY(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=top][data-ending-style],&[data-side=top][data-starting-style]{transform:translateY(var(--wp-ui-dropdown-slide-distance))}&[data-side=left][data-ending-style],&[data-side=left][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=right][data-ending-style],&[data-side=right][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=inline-start][data-ending-style],&[data-side=inline-start][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=inline-end][data-ending-style],&[data-side=inline-end][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-start][data-ending-style],&:dir(rtl)[data-side=inline-start][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-end][data-ending-style],&:dir(rtl)[data-side=inline-end][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._234b520016b4e56f__popup{--wp-ui-popup-padding:var(--wpds-dimension-padding-xs,4px);--_wp-ui-elevation-md:0 2px 3px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.04),0 12px 12px rgba(0,0,0,.03),0 16px 16px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-md);display:grid;grid-template-areas:"header" "status" "main";grid-template-rows:auto auto minmax(0,1fr);max-height:min(var(--available-height),480px,60dvh);max-width:var(--available-width);min-width:var(--anchor-width);&.b9a9946a395ccad8__is-width-anchor{width:var(--anchor-width)}&._7c9f1b268b013f02__is-width-content{width:auto}&._6f31db51d79ec899__is-width-sm{width:min(var(--available-width),var(--wpds-dimension-surface-width-sm,320px))}&.fa45cdb5f45e57fb__is-width-md{width:min(var(--available-width),var(--wpds-dimension-surface-width-md,400px))}&._46a909337f6be21c__is-width-lg{width:min(var(--available-width),var(--wpds-dimension-surface-width-lg,560px))}&._6083938dff06df34__is-width-available{width:var(--available-width)}}._101852fa256bb935__is-align-item-with-trigger ._234b520016b4e56f__popup{max-height:none}._2fff4e9defe85de5__list-chrome{color:var(--wpds-color-foreground-interactive-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-md,13px);grid-area:main;line-height:var(--wpds-typography-line-height-sm,20px)}.f43dc7c768d7b622__list{display:grid;grid-template-areas:"scrollable" "footer";grid-template-rows:minmax(0,1fr) auto}._233cd60cdb84a2ef__list-scrollable-container{grid-area:scrollable;overflow-block:auto;overscroll-behavior:contain;scroll-padding-block:var(--wp-ui-popup-padding);&:not(:empty){padding-block:var(--wp-ui-popup-padding)}}.ec4db6f0122263e7__list-footer{grid-area:footer;padding-block:var(--wp-ui-popup-padding);._233cd60cdb84a2ef__list-scrollable-container:not(:empty)+&{border-block-start:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}}.b3c0d7f103fb10a2__group:not(:first-child){margin-block-start:var(--wpds-dimension-gap-sm,8px)}._21b59380477c306c__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;min-height:var(--wpds-dimension-size-md,32px);padding-inline:var(--wpds-dimension-padding-md,12px)}._684ccb7988365b4f__item{--wp-ui-popup-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-popup-item-padding-block:var(--wpds-dimension-padding-xs,4px);align-items:center;border-radius:var(--wpds-border-radius-sm,2px);display:flex;gap:var(--wpds-dimension-gap-xs,4px);justify-content:flex-start;margin-inline:var(--wp-ui-popup-padding);min-height:var(--wp-ui-popup-item-height);min-width:0;overflow-wrap:anywhere;padding-block:var(--wp-ui-popup-item-padding-block);padding-inline-end:var(--wp-ui-popup-item-padding-inline);padding-inline-start:calc(var(--wp-ui-popup-item-padding-inline) - var(--wpds-dimension-padding-xs, 4px));user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&._38f7faff93c61958__is-size-small{--wp-ui-popup-item-height:var(--wpds-dimension-size-sm,24px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-popup-item-padding-block:2px}&:not([data-selected]){._92fbe4765dfad5ee__item-indicator-icon{opacity:0}}&[data-highlighted]:not([aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:none;@media (forced-colors:active){--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid Highlight}}&[aria-disabled=true]{background-color:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}}.a3adcfd0b73ffd40__item-icon{flex-shrink:0}._41f0dd875c005a48__item-text{display:flex;flex:1;flex-direction:column;gap:2px;min-width:0}._12335b76ada0b1f5__item-label{min-width:0}._160635254c702623__item-description{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}._684ccb7988365b4f__item[aria-disabled=true] ._160635254c702623__item-description,._684ccb7988365b4f__item[data-highlighted]:not([aria-disabled=true]) ._160635254c702623__item-description{color:inherit}._6eb78bc92f8d7795__status{grid-area:status}._06c7ff39d2f685b9__empty:not(:empty){grid-area:main}._06c7ff39d2f685b9__empty:not(:empty),._6eb78bc92f8d7795__status:not(:empty):not(:has([data-visually-hidden])){--wp-ui-popup-empty-min-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-empty-padding-inline:var(--wpds-dimension-padding-md,12px);align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wp-ui-popup-empty-min-height);padding-inline:var(--wp-ui-popup-empty-padding-inline)}}}');var qot={popup:"_234b520016b4e56f__popup _380b81b8f79fb10f__dropdown-motion","is-width-anchor":"b9a9946a395ccad8__is-width-anchor","is-width-content":"_7c9f1b268b013f02__is-width-content","is-width-sm":"_6f31db51d79ec899__is-width-sm","is-width-md":"fa45cdb5f45e57fb__is-width-md","is-width-lg":"_46a909337f6be21c__is-width-lg","is-width-available":"_6083938dff06df34__is-width-available","is-align-item-with-trigger":"_101852fa256bb935__is-align-item-with-trigger","list-chrome":"_2fff4e9defe85de5__list-chrome",list:"f43dc7c768d7b622__list _2fff4e9defe85de5__list-chrome","list-scrollable-container":"_233cd60cdb84a2ef__list-scrollable-container","list-footer":"ec4db6f0122263e7__list-footer",group:"b3c0d7f103fb10a2__group","group-label":"_21b59380477c306c__group-label",item:"_684ccb7988365b4f__item","is-size-small":"_38f7faff93c61958__is-size-small","item-indicator-icon":"_92fbe4765dfad5ee__item-indicator-icon","item-icon":"a3adcfd0b73ffd40__item-icon","item-text":"_41f0dd875c005a48__item-text","item-label":"_12335b76ada0b1f5__item-label","item-description":"_160635254c702623__item-description",status:"_6eb78bc92f8d7795__status",empty:"_06c7ff39d2f685b9__empty"},IR=(0,pye.forwardRef)(function({className:t,children:o,...r},n){return(0,gye.jsx)(Nr.Group,{className:U(qot.group,t),ref:n,...r,children:o})});var hye=c(D(),1);var cq=c(T(),1),lq="data-wp-hash";function dq(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Zot(document)),e.__wpStyleRuntime}function Xot(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${lq}]`))if(o.getAttribute(lq)===t)return!0;return!1}function bye(e,t,o){if(!e.head)return;let r=dq(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Xot(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(lq,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Zot(e){let t=dq();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)bye(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 Qot(e,t){let o=dq();o.styles.set(e,t);for(let r of o.documents.keys())bye(r,e,t)}typeof process>"u",Qot("ff021bf4fe",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._380b81b8f79fb10f__dropdown-motion,._7f344b94e270e039__dropdown-motion--fade-only{--wp-ui-dropdown-slide-distance:4px;--wp-ui-dropdown-slide-duration:var(--wpds-motion-duration-md,200ms);--wp-ui-dropdown-slide-easing:var(--wpds-motion-easing-expressive,cubic-bezier(0.25,0,0,1));--wp-ui-dropdown-fade-duration:var(--wpds-motion-duration-sm,100ms);--wp-ui-dropdown-fade-easing:linear;@media not (prefers-reduced-motion){transition-duration:var(--wp-ui-dropdown-slide-duration),var(--wp-ui-dropdown-fade-duration);transition-property:transform,opacity;transition-timing-function:var(--wp-ui-dropdown-slide-easing),var(--wp-ui-dropdown-fade-easing);will-change:transform,opacity}opacity:1;&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}}._380b81b8f79fb10f__dropdown-motion{transform:translate(0);&[data-side=bottom][data-ending-style],&[data-side=bottom][data-starting-style]{transform:translateY(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=top][data-ending-style],&[data-side=top][data-starting-style]{transform:translateY(var(--wp-ui-dropdown-slide-distance))}&[data-side=left][data-ending-style],&[data-side=left][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=right][data-ending-style],&[data-side=right][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=inline-start][data-ending-style],&[data-side=inline-start][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=inline-end][data-ending-style],&[data-side=inline-end][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-start][data-ending-style],&:dir(rtl)[data-side=inline-start][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-end][data-ending-style],&:dir(rtl)[data-side=inline-end][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._234b520016b4e56f__popup{--wp-ui-popup-padding:var(--wpds-dimension-padding-xs,4px);--_wp-ui-elevation-md:0 2px 3px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.04),0 12px 12px rgba(0,0,0,.03),0 16px 16px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-md);display:grid;grid-template-areas:"header" "status" "main";grid-template-rows:auto auto minmax(0,1fr);max-height:min(var(--available-height),480px,60dvh);max-width:var(--available-width);min-width:var(--anchor-width);&.b9a9946a395ccad8__is-width-anchor{width:var(--anchor-width)}&._7c9f1b268b013f02__is-width-content{width:auto}&._6f31db51d79ec899__is-width-sm{width:min(var(--available-width),var(--wpds-dimension-surface-width-sm,320px))}&.fa45cdb5f45e57fb__is-width-md{width:min(var(--available-width),var(--wpds-dimension-surface-width-md,400px))}&._46a909337f6be21c__is-width-lg{width:min(var(--available-width),var(--wpds-dimension-surface-width-lg,560px))}&._6083938dff06df34__is-width-available{width:var(--available-width)}}._101852fa256bb935__is-align-item-with-trigger ._234b520016b4e56f__popup{max-height:none}._2fff4e9defe85de5__list-chrome{color:var(--wpds-color-foreground-interactive-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-md,13px);grid-area:main;line-height:var(--wpds-typography-line-height-sm,20px)}.f43dc7c768d7b622__list{display:grid;grid-template-areas:"scrollable" "footer";grid-template-rows:minmax(0,1fr) auto}._233cd60cdb84a2ef__list-scrollable-container{grid-area:scrollable;overflow-block:auto;overscroll-behavior:contain;scroll-padding-block:var(--wp-ui-popup-padding);&:not(:empty){padding-block:var(--wp-ui-popup-padding)}}.ec4db6f0122263e7__list-footer{grid-area:footer;padding-block:var(--wp-ui-popup-padding);._233cd60cdb84a2ef__list-scrollable-container:not(:empty)+&{border-block-start:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}}.b3c0d7f103fb10a2__group:not(:first-child){margin-block-start:var(--wpds-dimension-gap-sm,8px)}._21b59380477c306c__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;min-height:var(--wpds-dimension-size-md,32px);padding-inline:var(--wpds-dimension-padding-md,12px)}._684ccb7988365b4f__item{--wp-ui-popup-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-popup-item-padding-block:var(--wpds-dimension-padding-xs,4px);align-items:center;border-radius:var(--wpds-border-radius-sm,2px);display:flex;gap:var(--wpds-dimension-gap-xs,4px);justify-content:flex-start;margin-inline:var(--wp-ui-popup-padding);min-height:var(--wp-ui-popup-item-height);min-width:0;overflow-wrap:anywhere;padding-block:var(--wp-ui-popup-item-padding-block);padding-inline-end:var(--wp-ui-popup-item-padding-inline);padding-inline-start:calc(var(--wp-ui-popup-item-padding-inline) - var(--wpds-dimension-padding-xs, 4px));user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&._38f7faff93c61958__is-size-small{--wp-ui-popup-item-height:var(--wpds-dimension-size-sm,24px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-popup-item-padding-block:2px}&:not([data-selected]){._92fbe4765dfad5ee__item-indicator-icon{opacity:0}}&[data-highlighted]:not([aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:none;@media (forced-colors:active){--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid Highlight}}&[aria-disabled=true]{background-color:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}}.a3adcfd0b73ffd40__item-icon{flex-shrink:0}._41f0dd875c005a48__item-text{display:flex;flex:1;flex-direction:column;gap:2px;min-width:0}._12335b76ada0b1f5__item-label{min-width:0}._160635254c702623__item-description{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}._684ccb7988365b4f__item[aria-disabled=true] ._160635254c702623__item-description,._684ccb7988365b4f__item[data-highlighted]:not([aria-disabled=true]) ._160635254c702623__item-description{color:inherit}._6eb78bc92f8d7795__status{grid-area:status}._06c7ff39d2f685b9__empty:not(:empty){grid-area:main}._06c7ff39d2f685b9__empty:not(:empty),._6eb78bc92f8d7795__status:not(:empty):not(:has([data-visually-hidden])){--wp-ui-popup-empty-min-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-empty-padding-inline:var(--wpds-dimension-padding-md,12px);align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wp-ui-popup-empty-min-height);padding-inline:var(--wp-ui-popup-empty-padding-inline)}}}');var Jot={popup:"_234b520016b4e56f__popup _380b81b8f79fb10f__dropdown-motion","is-width-anchor":"b9a9946a395ccad8__is-width-anchor","is-width-content":"_7c9f1b268b013f02__is-width-content","is-width-sm":"_6f31db51d79ec899__is-width-sm","is-width-md":"fa45cdb5f45e57fb__is-width-md","is-width-lg":"_46a909337f6be21c__is-width-lg","is-width-available":"_6083938dff06df34__is-width-available","is-align-item-with-trigger":"_101852fa256bb935__is-align-item-with-trigger","list-chrome":"_2fff4e9defe85de5__list-chrome",list:"f43dc7c768d7b622__list _2fff4e9defe85de5__list-chrome","list-scrollable-container":"_233cd60cdb84a2ef__list-scrollable-container","list-footer":"ec4db6f0122263e7__list-footer",group:"b3c0d7f103fb10a2__group","group-label":"_21b59380477c306c__group-label",item:"_684ccb7988365b4f__item","is-size-small":"_38f7faff93c61958__is-size-small","item-indicator-icon":"_92fbe4765dfad5ee__item-indicator-icon","item-icon":"a3adcfd0b73ffd40__item-icon","item-text":"_41f0dd875c005a48__item-text","item-label":"_12335b76ada0b1f5__item-label","item-description":"_160635254c702623__item-description",status:"_6eb78bc92f8d7795__status",empty:"_06c7ff39d2f685b9__empty"},PR=(0,hye.forwardRef)(function({className:t,children:o,...r},n){return(0,cq.jsx)(Ct,{variant:"heading-sm",className:U(Jot["group-label"],t),render:(0,cq.jsx)(Nr.GroupLabel,{ref:n,...r}),children:o})});var kye=c(D(),1);var _ye=c(D(),1);var yye=c(T(),1),uq="data-wp-hash";function fq(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&trt(document)),e.__wpStyleRuntime}function ert(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${uq}]`))if(o.getAttribute(uq)===t)return!0;return!1}function vye(e,t,o){if(!e.head)return;let r=fq(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(ert(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(uq,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function trt(e){let t=fq();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)vye(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 ort(e,t){let o=fq();o.styles.set(e,t);for(let r of o.documents.keys())vye(r,e,t)}typeof process>"u",ort("ff021bf4fe",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._380b81b8f79fb10f__dropdown-motion,._7f344b94e270e039__dropdown-motion--fade-only{--wp-ui-dropdown-slide-distance:4px;--wp-ui-dropdown-slide-duration:var(--wpds-motion-duration-md,200ms);--wp-ui-dropdown-slide-easing:var(--wpds-motion-easing-expressive,cubic-bezier(0.25,0,0,1));--wp-ui-dropdown-fade-duration:var(--wpds-motion-duration-sm,100ms);--wp-ui-dropdown-fade-easing:linear;@media not (prefers-reduced-motion){transition-duration:var(--wp-ui-dropdown-slide-duration),var(--wp-ui-dropdown-fade-duration);transition-property:transform,opacity;transition-timing-function:var(--wp-ui-dropdown-slide-easing),var(--wp-ui-dropdown-fade-easing);will-change:transform,opacity}opacity:1;&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}}._380b81b8f79fb10f__dropdown-motion{transform:translate(0);&[data-side=bottom][data-ending-style],&[data-side=bottom][data-starting-style]{transform:translateY(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=top][data-ending-style],&[data-side=top][data-starting-style]{transform:translateY(var(--wp-ui-dropdown-slide-distance))}&[data-side=left][data-ending-style],&[data-side=left][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=right][data-ending-style],&[data-side=right][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=inline-start][data-ending-style],&[data-side=inline-start][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=inline-end][data-ending-style],&[data-side=inline-end][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-start][data-ending-style],&:dir(rtl)[data-side=inline-start][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-end][data-ending-style],&:dir(rtl)[data-side=inline-end][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._234b520016b4e56f__popup{--wp-ui-popup-padding:var(--wpds-dimension-padding-xs,4px);--_wp-ui-elevation-md:0 2px 3px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.04),0 12px 12px rgba(0,0,0,.03),0 16px 16px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-md);display:grid;grid-template-areas:"header" "status" "main";grid-template-rows:auto auto minmax(0,1fr);max-height:min(var(--available-height),480px,60dvh);max-width:var(--available-width);min-width:var(--anchor-width);&.b9a9946a395ccad8__is-width-anchor{width:var(--anchor-width)}&._7c9f1b268b013f02__is-width-content{width:auto}&._6f31db51d79ec899__is-width-sm{width:min(var(--available-width),var(--wpds-dimension-surface-width-sm,320px))}&.fa45cdb5f45e57fb__is-width-md{width:min(var(--available-width),var(--wpds-dimension-surface-width-md,400px))}&._46a909337f6be21c__is-width-lg{width:min(var(--available-width),var(--wpds-dimension-surface-width-lg,560px))}&._6083938dff06df34__is-width-available{width:var(--available-width)}}._101852fa256bb935__is-align-item-with-trigger ._234b520016b4e56f__popup{max-height:none}._2fff4e9defe85de5__list-chrome{color:var(--wpds-color-foreground-interactive-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-md,13px);grid-area:main;line-height:var(--wpds-typography-line-height-sm,20px)}.f43dc7c768d7b622__list{display:grid;grid-template-areas:"scrollable" "footer";grid-template-rows:minmax(0,1fr) auto}._233cd60cdb84a2ef__list-scrollable-container{grid-area:scrollable;overflow-block:auto;overscroll-behavior:contain;scroll-padding-block:var(--wp-ui-popup-padding);&:not(:empty){padding-block:var(--wp-ui-popup-padding)}}.ec4db6f0122263e7__list-footer{grid-area:footer;padding-block:var(--wp-ui-popup-padding);._233cd60cdb84a2ef__list-scrollable-container:not(:empty)+&{border-block-start:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}}.b3c0d7f103fb10a2__group:not(:first-child){margin-block-start:var(--wpds-dimension-gap-sm,8px)}._21b59380477c306c__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;min-height:var(--wpds-dimension-size-md,32px);padding-inline:var(--wpds-dimension-padding-md,12px)}._684ccb7988365b4f__item{--wp-ui-popup-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-popup-item-padding-block:var(--wpds-dimension-padding-xs,4px);align-items:center;border-radius:var(--wpds-border-radius-sm,2px);display:flex;gap:var(--wpds-dimension-gap-xs,4px);justify-content:flex-start;margin-inline:var(--wp-ui-popup-padding);min-height:var(--wp-ui-popup-item-height);min-width:0;overflow-wrap:anywhere;padding-block:var(--wp-ui-popup-item-padding-block);padding-inline-end:var(--wp-ui-popup-item-padding-inline);padding-inline-start:calc(var(--wp-ui-popup-item-padding-inline) - var(--wpds-dimension-padding-xs, 4px));user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&._38f7faff93c61958__is-size-small{--wp-ui-popup-item-height:var(--wpds-dimension-size-sm,24px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-popup-item-padding-block:2px}&:not([data-selected]){._92fbe4765dfad5ee__item-indicator-icon{opacity:0}}&[data-highlighted]:not([aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:none;@media (forced-colors:active){--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid Highlight}}&[aria-disabled=true]{background-color:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}}.a3adcfd0b73ffd40__item-icon{flex-shrink:0}._41f0dd875c005a48__item-text{display:flex;flex:1;flex-direction:column;gap:2px;min-width:0}._12335b76ada0b1f5__item-label{min-width:0}._160635254c702623__item-description{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}._684ccb7988365b4f__item[aria-disabled=true] ._160635254c702623__item-description,._684ccb7988365b4f__item[data-highlighted]:not([aria-disabled=true]) ._160635254c702623__item-description{color:inherit}._6eb78bc92f8d7795__status{grid-area:status}._06c7ff39d2f685b9__empty:not(:empty){grid-area:main}._06c7ff39d2f685b9__empty:not(:empty),._6eb78bc92f8d7795__status:not(:empty):not(:has([data-visually-hidden])){--wp-ui-popup-empty-min-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-empty-padding-inline:var(--wpds-dimension-padding-md,12px);align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wp-ui-popup-empty-min-height);padding-inline:var(--wp-ui-popup-empty-padding-inline)}}}');var rrt={popup:"_234b520016b4e56f__popup _380b81b8f79fb10f__dropdown-motion","is-width-anchor":"b9a9946a395ccad8__is-width-anchor","is-width-content":"_7c9f1b268b013f02__is-width-content","is-width-sm":"_6f31db51d79ec899__is-width-sm","is-width-md":"fa45cdb5f45e57fb__is-width-md","is-width-lg":"_46a909337f6be21c__is-width-lg","is-width-available":"_6083938dff06df34__is-width-available","is-align-item-with-trigger":"_101852fa256bb935__is-align-item-with-trigger","list-chrome":"_2fff4e9defe85de5__list-chrome",list:"f43dc7c768d7b622__list _2fff4e9defe85de5__list-chrome","list-scrollable-container":"_233cd60cdb84a2ef__list-scrollable-container","list-footer":"ec4db6f0122263e7__list-footer",group:"b3c0d7f103fb10a2__group","group-label":"_21b59380477c306c__group-label",item:"_684ccb7988365b4f__item","is-size-small":"_38f7faff93c61958__is-size-small","item-indicator-icon":"_92fbe4765dfad5ee__item-indicator-icon","item-icon":"a3adcfd0b73ffd40__item-icon","item-text":"_41f0dd875c005a48__item-text","item-label":"_12335b76ada0b1f5__item-label","item-description":"_160635254c702623__item-description",status:"_6eb78bc92f8d7795__status",empty:"_06c7ff39d2f685b9__empty"},Z_=(0,_ye.forwardRef)(function({className:t,...o},r){return(0,yye.jsx)(Ct,{ref:r,variant:"body-sm",className:U(rrt["item-description"],t),...o})});var wye=c(D(),1);var mq=c(T(),1),pq="data-wp-hash";function gq(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&irt(document)),e.__wpStyleRuntime}function nrt(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${pq}]`))if(o.getAttribute(pq)===t)return!0;return!1}function xye(e,t,o){if(!e.head)return;let r=gq(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(nrt(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(pq,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function irt(e){let t=gq();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)xye(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 srt(e,t){let o=gq();o.styles.set(e,t);for(let r of o.documents.keys())xye(r,e,t)}typeof process>"u",srt("ff021bf4fe",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._380b81b8f79fb10f__dropdown-motion,._7f344b94e270e039__dropdown-motion--fade-only{--wp-ui-dropdown-slide-distance:4px;--wp-ui-dropdown-slide-duration:var(--wpds-motion-duration-md,200ms);--wp-ui-dropdown-slide-easing:var(--wpds-motion-easing-expressive,cubic-bezier(0.25,0,0,1));--wp-ui-dropdown-fade-duration:var(--wpds-motion-duration-sm,100ms);--wp-ui-dropdown-fade-easing:linear;@media not (prefers-reduced-motion){transition-duration:var(--wp-ui-dropdown-slide-duration),var(--wp-ui-dropdown-fade-duration);transition-property:transform,opacity;transition-timing-function:var(--wp-ui-dropdown-slide-easing),var(--wp-ui-dropdown-fade-easing);will-change:transform,opacity}opacity:1;&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}}._380b81b8f79fb10f__dropdown-motion{transform:translate(0);&[data-side=bottom][data-ending-style],&[data-side=bottom][data-starting-style]{transform:translateY(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=top][data-ending-style],&[data-side=top][data-starting-style]{transform:translateY(var(--wp-ui-dropdown-slide-distance))}&[data-side=left][data-ending-style],&[data-side=left][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=right][data-ending-style],&[data-side=right][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=inline-start][data-ending-style],&[data-side=inline-start][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=inline-end][data-ending-style],&[data-side=inline-end][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-start][data-ending-style],&:dir(rtl)[data-side=inline-start][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-end][data-ending-style],&:dir(rtl)[data-side=inline-end][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._234b520016b4e56f__popup{--wp-ui-popup-padding:var(--wpds-dimension-padding-xs,4px);--_wp-ui-elevation-md:0 2px 3px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.04),0 12px 12px rgba(0,0,0,.03),0 16px 16px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-md);display:grid;grid-template-areas:"header" "status" "main";grid-template-rows:auto auto minmax(0,1fr);max-height:min(var(--available-height),480px,60dvh);max-width:var(--available-width);min-width:var(--anchor-width);&.b9a9946a395ccad8__is-width-anchor{width:var(--anchor-width)}&._7c9f1b268b013f02__is-width-content{width:auto}&._6f31db51d79ec899__is-width-sm{width:min(var(--available-width),var(--wpds-dimension-surface-width-sm,320px))}&.fa45cdb5f45e57fb__is-width-md{width:min(var(--available-width),var(--wpds-dimension-surface-width-md,400px))}&._46a909337f6be21c__is-width-lg{width:min(var(--available-width),var(--wpds-dimension-surface-width-lg,560px))}&._6083938dff06df34__is-width-available{width:var(--available-width)}}._101852fa256bb935__is-align-item-with-trigger ._234b520016b4e56f__popup{max-height:none}._2fff4e9defe85de5__list-chrome{color:var(--wpds-color-foreground-interactive-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-md,13px);grid-area:main;line-height:var(--wpds-typography-line-height-sm,20px)}.f43dc7c768d7b622__list{display:grid;grid-template-areas:"scrollable" "footer";grid-template-rows:minmax(0,1fr) auto}._233cd60cdb84a2ef__list-scrollable-container{grid-area:scrollable;overflow-block:auto;overscroll-behavior:contain;scroll-padding-block:var(--wp-ui-popup-padding);&:not(:empty){padding-block:var(--wp-ui-popup-padding)}}.ec4db6f0122263e7__list-footer{grid-area:footer;padding-block:var(--wp-ui-popup-padding);._233cd60cdb84a2ef__list-scrollable-container:not(:empty)+&{border-block-start:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}}.b3c0d7f103fb10a2__group:not(:first-child){margin-block-start:var(--wpds-dimension-gap-sm,8px)}._21b59380477c306c__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;min-height:var(--wpds-dimension-size-md,32px);padding-inline:var(--wpds-dimension-padding-md,12px)}._684ccb7988365b4f__item{--wp-ui-popup-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-popup-item-padding-block:var(--wpds-dimension-padding-xs,4px);align-items:center;border-radius:var(--wpds-border-radius-sm,2px);display:flex;gap:var(--wpds-dimension-gap-xs,4px);justify-content:flex-start;margin-inline:var(--wp-ui-popup-padding);min-height:var(--wp-ui-popup-item-height);min-width:0;overflow-wrap:anywhere;padding-block:var(--wp-ui-popup-item-padding-block);padding-inline-end:var(--wp-ui-popup-item-padding-inline);padding-inline-start:calc(var(--wp-ui-popup-item-padding-inline) - var(--wpds-dimension-padding-xs, 4px));user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&._38f7faff93c61958__is-size-small{--wp-ui-popup-item-height:var(--wpds-dimension-size-sm,24px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-popup-item-padding-block:2px}&:not([data-selected]){._92fbe4765dfad5ee__item-indicator-icon{opacity:0}}&[data-highlighted]:not([aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:none;@media (forced-colors:active){--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid Highlight}}&[aria-disabled=true]{background-color:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}}.a3adcfd0b73ffd40__item-icon{flex-shrink:0}._41f0dd875c005a48__item-text{display:flex;flex:1;flex-direction:column;gap:2px;min-width:0}._12335b76ada0b1f5__item-label{min-width:0}._160635254c702623__item-description{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}._684ccb7988365b4f__item[aria-disabled=true] ._160635254c702623__item-description,._684ccb7988365b4f__item[data-highlighted]:not([aria-disabled=true]) ._160635254c702623__item-description{color:inherit}._6eb78bc92f8d7795__status{grid-area:status}._06c7ff39d2f685b9__empty:not(:empty){grid-area:main}._06c7ff39d2f685b9__empty:not(:empty),._6eb78bc92f8d7795__status:not(:empty):not(:has([data-visually-hidden])){--wp-ui-popup-empty-min-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-empty-padding-inline:var(--wpds-dimension-padding-md,12px);align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wp-ui-popup-empty-min-height);padding-inline:var(--wp-ui-popup-empty-padding-inline)}}}');var art={popup:"_234b520016b4e56f__popup _380b81b8f79fb10f__dropdown-motion","is-width-anchor":"b9a9946a395ccad8__is-width-anchor","is-width-content":"_7c9f1b268b013f02__is-width-content","is-width-sm":"_6f31db51d79ec899__is-width-sm","is-width-md":"fa45cdb5f45e57fb__is-width-md","is-width-lg":"_46a909337f6be21c__is-width-lg","is-width-available":"_6083938dff06df34__is-width-available","is-align-item-with-trigger":"_101852fa256bb935__is-align-item-with-trigger","list-chrome":"_2fff4e9defe85de5__list-chrome",list:"f43dc7c768d7b622__list _2fff4e9defe85de5__list-chrome","list-scrollable-container":"_233cd60cdb84a2ef__list-scrollable-container","list-footer":"ec4db6f0122263e7__list-footer",group:"b3c0d7f103fb10a2__group","group-label":"_21b59380477c306c__group-label",item:"_684ccb7988365b4f__item","is-size-small":"_38f7faff93c61958__is-size-small","item-indicator-icon":"_92fbe4765dfad5ee__item-indicator-icon","item-icon":"a3adcfd0b73ffd40__item-icon","item-text":"_41f0dd875c005a48__item-text","item-label":"_12335b76ada0b1f5__item-label","item-description":"_160635254c702623__item-description",status:"_6eb78bc92f8d7795__status",empty:"_06c7ff39d2f685b9__empty"},Q_=(0,wye.forwardRef)(function({children:t,className:o,render:r,...n},i){return(0,mq.jsx)(Ct,{ref:i,variant:"body-md",render:(0,mq.jsx)(Nr.ItemText,{render:r}),className:U(art["item-label"],o),...n,children:t})});var OR=c(T(),1),hq="data-wp-hash";function bq(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&crt(document)),e.__wpStyleRuntime}function lrt(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${hq}]`))if(o.getAttribute(hq)===t)return!0;return!1}function Sye(e,t,o){if(!e.head)return;let r=bq(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(lrt(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(hq,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function crt(e){let t=bq();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Sye(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 _q(e,t){let o=bq();o.styles.set(e,t);for(let r of o.documents.keys())Sye(r,e,t)}typeof process>"u",_q("e8e31009f5","._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);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var drt={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"};typeof process>"u",_q("ff021bf4fe",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._380b81b8f79fb10f__dropdown-motion,._7f344b94e270e039__dropdown-motion--fade-only{--wp-ui-dropdown-slide-distance:4px;--wp-ui-dropdown-slide-duration:var(--wpds-motion-duration-md,200ms);--wp-ui-dropdown-slide-easing:var(--wpds-motion-easing-expressive,cubic-bezier(0.25,0,0,1));--wp-ui-dropdown-fade-duration:var(--wpds-motion-duration-sm,100ms);--wp-ui-dropdown-fade-easing:linear;@media not (prefers-reduced-motion){transition-duration:var(--wp-ui-dropdown-slide-duration),var(--wp-ui-dropdown-fade-duration);transition-property:transform,opacity;transition-timing-function:var(--wp-ui-dropdown-slide-easing),var(--wp-ui-dropdown-fade-easing);will-change:transform,opacity}opacity:1;&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}}._380b81b8f79fb10f__dropdown-motion{transform:translate(0);&[data-side=bottom][data-ending-style],&[data-side=bottom][data-starting-style]{transform:translateY(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=top][data-ending-style],&[data-side=top][data-starting-style]{transform:translateY(var(--wp-ui-dropdown-slide-distance))}&[data-side=left][data-ending-style],&[data-side=left][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=right][data-ending-style],&[data-side=right][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=inline-start][data-ending-style],&[data-side=inline-start][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=inline-end][data-ending-style],&[data-side=inline-end][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-start][data-ending-style],&:dir(rtl)[data-side=inline-start][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-end][data-ending-style],&:dir(rtl)[data-side=inline-end][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._234b520016b4e56f__popup{--wp-ui-popup-padding:var(--wpds-dimension-padding-xs,4px);--_wp-ui-elevation-md:0 2px 3px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.04),0 12px 12px rgba(0,0,0,.03),0 16px 16px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-md);display:grid;grid-template-areas:"header" "status" "main";grid-template-rows:auto auto minmax(0,1fr);max-height:min(var(--available-height),480px,60dvh);max-width:var(--available-width);min-width:var(--anchor-width);&.b9a9946a395ccad8__is-width-anchor{width:var(--anchor-width)}&._7c9f1b268b013f02__is-width-content{width:auto}&._6f31db51d79ec899__is-width-sm{width:min(var(--available-width),var(--wpds-dimension-surface-width-sm,320px))}&.fa45cdb5f45e57fb__is-width-md{width:min(var(--available-width),var(--wpds-dimension-surface-width-md,400px))}&._46a909337f6be21c__is-width-lg{width:min(var(--available-width),var(--wpds-dimension-surface-width-lg,560px))}&._6083938dff06df34__is-width-available{width:var(--available-width)}}._101852fa256bb935__is-align-item-with-trigger ._234b520016b4e56f__popup{max-height:none}._2fff4e9defe85de5__list-chrome{color:var(--wpds-color-foreground-interactive-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-md,13px);grid-area:main;line-height:var(--wpds-typography-line-height-sm,20px)}.f43dc7c768d7b622__list{display:grid;grid-template-areas:"scrollable" "footer";grid-template-rows:minmax(0,1fr) auto}._233cd60cdb84a2ef__list-scrollable-container{grid-area:scrollable;overflow-block:auto;overscroll-behavior:contain;scroll-padding-block:var(--wp-ui-popup-padding);&:not(:empty){padding-block:var(--wp-ui-popup-padding)}}.ec4db6f0122263e7__list-footer{grid-area:footer;padding-block:var(--wp-ui-popup-padding);._233cd60cdb84a2ef__list-scrollable-container:not(:empty)+&{border-block-start:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}}.b3c0d7f103fb10a2__group:not(:first-child){margin-block-start:var(--wpds-dimension-gap-sm,8px)}._21b59380477c306c__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;min-height:var(--wpds-dimension-size-md,32px);padding-inline:var(--wpds-dimension-padding-md,12px)}._684ccb7988365b4f__item{--wp-ui-popup-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-popup-item-padding-block:var(--wpds-dimension-padding-xs,4px);align-items:center;border-radius:var(--wpds-border-radius-sm,2px);display:flex;gap:var(--wpds-dimension-gap-xs,4px);justify-content:flex-start;margin-inline:var(--wp-ui-popup-padding);min-height:var(--wp-ui-popup-item-height);min-width:0;overflow-wrap:anywhere;padding-block:var(--wp-ui-popup-item-padding-block);padding-inline-end:var(--wp-ui-popup-item-padding-inline);padding-inline-start:calc(var(--wp-ui-popup-item-padding-inline) - var(--wpds-dimension-padding-xs, 4px));user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&._38f7faff93c61958__is-size-small{--wp-ui-popup-item-height:var(--wpds-dimension-size-sm,24px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-popup-item-padding-block:2px}&:not([data-selected]){._92fbe4765dfad5ee__item-indicator-icon{opacity:0}}&[data-highlighted]:not([aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:none;@media (forced-colors:active){--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid Highlight}}&[aria-disabled=true]{background-color:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}}.a3adcfd0b73ffd40__item-icon{flex-shrink:0}._41f0dd875c005a48__item-text{display:flex;flex:1;flex-direction:column;gap:2px;min-width:0}._12335b76ada0b1f5__item-label{min-width:0}._160635254c702623__item-description{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}._684ccb7988365b4f__item[aria-disabled=true] ._160635254c702623__item-description,._684ccb7988365b4f__item[data-highlighted]:not([aria-disabled=true]) ._160635254c702623__item-description{color:inherit}._6eb78bc92f8d7795__status{grid-area:status}._06c7ff39d2f685b9__empty:not(:empty){grid-area:main}._06c7ff39d2f685b9__empty:not(:empty),._6eb78bc92f8d7795__status:not(:empty):not(:has([data-visually-hidden])){--wp-ui-popup-empty-min-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-empty-padding-inline:var(--wpds-dimension-padding-md,12px);align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wp-ui-popup-empty-min-height);padding-inline:var(--wp-ui-popup-empty-padding-inline)}}}');var BR={popup:"_234b520016b4e56f__popup _380b81b8f79fb10f__dropdown-motion","is-width-anchor":"b9a9946a395ccad8__is-width-anchor","is-width-content":"_7c9f1b268b013f02__is-width-content","is-width-sm":"_6f31db51d79ec899__is-width-sm","is-width-md":"fa45cdb5f45e57fb__is-width-md","is-width-lg":"_46a909337f6be21c__is-width-lg","is-width-available":"_6083938dff06df34__is-width-available","is-align-item-with-trigger":"_101852fa256bb935__is-align-item-with-trigger","list-chrome":"_2fff4e9defe85de5__list-chrome",list:"f43dc7c768d7b622__list _2fff4e9defe85de5__list-chrome","list-scrollable-container":"_233cd60cdb84a2ef__list-scrollable-container","list-footer":"ec4db6f0122263e7__list-footer",group:"b3c0d7f103fb10a2__group","group-label":"_21b59380477c306c__group-label",item:"_684ccb7988365b4f__item","is-size-small":"_38f7faff93c61958__is-size-small","item-indicator-icon":"_92fbe4765dfad5ee__item-indicator-icon","item-icon":"a3adcfd0b73ffd40__item-icon","item-text":"_41f0dd875c005a48__item-text","item-label":"_12335b76ada0b1f5__item-label","item-description":"_160635254c702623__item-description",status:"_6eb78bc92f8d7795__status",empty:"_06c7ff39d2f685b9__empty"};typeof process>"u",_q("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var urt={"box-sizing":"_336cd3e4e743482f__box-sizing"},frt={Label:Q_,Description:Z_,validationMessage:"Select.ItemLabel must be the first direct child of every select item, followed only by Select.ItemDescription components."},Cye=(0,kye.forwardRef)(function({className:t,value:o,size:r="default",children:n,"aria-describedby":i,"aria-label":s,"aria-labelledby":a,...l},d){let{contentChildren:u,itemAriaProps:f}=cR(n,frt,{"aria-describedby":i,"aria-label":s,"aria-labelledby":a});return(0,OR.jsxs)(Nr.Item,{className:U(drt.div,urt["box-sizing"],BR.item,r==="small"&&BR["is-size-small"],t),value:o,ref:d,...f,...l,children:[(0,OR.jsx)(fo,{icon:Vn,className:U(BR["item-icon"],BR["item-indicator-icon"]),size:r==="small"?20:24}),(0,OR.jsx)("div",{className:BR["item-text"],children:u})]})});var Oye=c(D(),1);var Eye=c(D(),1);var Tye=c(T(),1),vO=(0,Eye.forwardRef)(function({container:t,...o},r){return(0,Tye.jsx)(Nr.Portal,{container:t??P0(),...o,ref:r})});var Rye=c(D(),1);var Pye=c(T(),1),vq="data-wp-hash";function yq(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&mrt(document)),e.__wpStyleRuntime}function prt(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${vq}]`))if(o.getAttribute(vq)===t)return!0;return!1}function Iye(e,t,o){if(!e.head)return;let r=yq(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(prt(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(vq,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function mrt(e){let t=yq();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Iye(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 wq(e,t){let o=yq();o.styles.set(e,t);for(let r of o.documents.keys())Iye(r,e,t)}typeof process>"u",wq("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var grt={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",wq("ff021bf4fe",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._380b81b8f79fb10f__dropdown-motion,._7f344b94e270e039__dropdown-motion--fade-only{--wp-ui-dropdown-slide-distance:4px;--wp-ui-dropdown-slide-duration:var(--wpds-motion-duration-md,200ms);--wp-ui-dropdown-slide-easing:var(--wpds-motion-easing-expressive,cubic-bezier(0.25,0,0,1));--wp-ui-dropdown-fade-duration:var(--wpds-motion-duration-sm,100ms);--wp-ui-dropdown-fade-easing:linear;@media not (prefers-reduced-motion){transition-duration:var(--wp-ui-dropdown-slide-duration),var(--wp-ui-dropdown-fade-duration);transition-property:transform,opacity;transition-timing-function:var(--wp-ui-dropdown-slide-easing),var(--wp-ui-dropdown-fade-easing);will-change:transform,opacity}opacity:1;&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}}._380b81b8f79fb10f__dropdown-motion{transform:translate(0);&[data-side=bottom][data-ending-style],&[data-side=bottom][data-starting-style]{transform:translateY(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=top][data-ending-style],&[data-side=top][data-starting-style]{transform:translateY(var(--wp-ui-dropdown-slide-distance))}&[data-side=left][data-ending-style],&[data-side=left][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=right][data-ending-style],&[data-side=right][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=inline-start][data-ending-style],&[data-side=inline-start][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=inline-end][data-ending-style],&[data-side=inline-end][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-start][data-ending-style],&:dir(rtl)[data-side=inline-start][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-end][data-ending-style],&:dir(rtl)[data-side=inline-end][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._234b520016b4e56f__popup{--wp-ui-popup-padding:var(--wpds-dimension-padding-xs,4px);--_wp-ui-elevation-md:0 2px 3px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.04),0 12px 12px rgba(0,0,0,.03),0 16px 16px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-md);display:grid;grid-template-areas:"header" "status" "main";grid-template-rows:auto auto minmax(0,1fr);max-height:min(var(--available-height),480px,60dvh);max-width:var(--available-width);min-width:var(--anchor-width);&.b9a9946a395ccad8__is-width-anchor{width:var(--anchor-width)}&._7c9f1b268b013f02__is-width-content{width:auto}&._6f31db51d79ec899__is-width-sm{width:min(var(--available-width),var(--wpds-dimension-surface-width-sm,320px))}&.fa45cdb5f45e57fb__is-width-md{width:min(var(--available-width),var(--wpds-dimension-surface-width-md,400px))}&._46a909337f6be21c__is-width-lg{width:min(var(--available-width),var(--wpds-dimension-surface-width-lg,560px))}&._6083938dff06df34__is-width-available{width:var(--available-width)}}._101852fa256bb935__is-align-item-with-trigger ._234b520016b4e56f__popup{max-height:none}._2fff4e9defe85de5__list-chrome{color:var(--wpds-color-foreground-interactive-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-md,13px);grid-area:main;line-height:var(--wpds-typography-line-height-sm,20px)}.f43dc7c768d7b622__list{display:grid;grid-template-areas:"scrollable" "footer";grid-template-rows:minmax(0,1fr) auto}._233cd60cdb84a2ef__list-scrollable-container{grid-area:scrollable;overflow-block:auto;overscroll-behavior:contain;scroll-padding-block:var(--wp-ui-popup-padding);&:not(:empty){padding-block:var(--wp-ui-popup-padding)}}.ec4db6f0122263e7__list-footer{grid-area:footer;padding-block:var(--wp-ui-popup-padding);._233cd60cdb84a2ef__list-scrollable-container:not(:empty)+&{border-block-start:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}}.b3c0d7f103fb10a2__group:not(:first-child){margin-block-start:var(--wpds-dimension-gap-sm,8px)}._21b59380477c306c__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;min-height:var(--wpds-dimension-size-md,32px);padding-inline:var(--wpds-dimension-padding-md,12px)}._684ccb7988365b4f__item{--wp-ui-popup-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-popup-item-padding-block:var(--wpds-dimension-padding-xs,4px);align-items:center;border-radius:var(--wpds-border-radius-sm,2px);display:flex;gap:var(--wpds-dimension-gap-xs,4px);justify-content:flex-start;margin-inline:var(--wp-ui-popup-padding);min-height:var(--wp-ui-popup-item-height);min-width:0;overflow-wrap:anywhere;padding-block:var(--wp-ui-popup-item-padding-block);padding-inline-end:var(--wp-ui-popup-item-padding-inline);padding-inline-start:calc(var(--wp-ui-popup-item-padding-inline) - var(--wpds-dimension-padding-xs, 4px));user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&._38f7faff93c61958__is-size-small{--wp-ui-popup-item-height:var(--wpds-dimension-size-sm,24px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-popup-item-padding-block:2px}&:not([data-selected]){._92fbe4765dfad5ee__item-indicator-icon{opacity:0}}&[data-highlighted]:not([aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:none;@media (forced-colors:active){--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid Highlight}}&[aria-disabled=true]{background-color:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}}.a3adcfd0b73ffd40__item-icon{flex-shrink:0}._41f0dd875c005a48__item-text{display:flex;flex:1;flex-direction:column;gap:2px;min-width:0}._12335b76ada0b1f5__item-label{min-width:0}._160635254c702623__item-description{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}._684ccb7988365b4f__item[aria-disabled=true] ._160635254c702623__item-description,._684ccb7988365b4f__item[data-highlighted]:not([aria-disabled=true]) ._160635254c702623__item-description{color:inherit}._6eb78bc92f8d7795__status{grid-area:status}._06c7ff39d2f685b9__empty:not(:empty){grid-area:main}._06c7ff39d2f685b9__empty:not(:empty),._6eb78bc92f8d7795__status:not(:empty):not(:has([data-visually-hidden])){--wp-ui-popup-empty-min-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-empty-padding-inline:var(--wpds-dimension-padding-md,12px);align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wp-ui-popup-empty-min-height);padding-inline:var(--wp-ui-popup-empty-padding-inline)}}}');var hrt={popup:"_234b520016b4e56f__popup _380b81b8f79fb10f__dropdown-motion","is-width-anchor":"b9a9946a395ccad8__is-width-anchor","is-width-content":"_7c9f1b268b013f02__is-width-content","is-width-sm":"_6f31db51d79ec899__is-width-sm","is-width-md":"fa45cdb5f45e57fb__is-width-md","is-width-lg":"_46a909337f6be21c__is-width-lg","is-width-available":"_6083938dff06df34__is-width-available","is-align-item-with-trigger":"_101852fa256bb935__is-align-item-with-trigger","list-chrome":"_2fff4e9defe85de5__list-chrome",list:"f43dc7c768d7b622__list _2fff4e9defe85de5__list-chrome","list-scrollable-container":"_233cd60cdb84a2ef__list-scrollable-container","list-footer":"ec4db6f0122263e7__list-footer",group:"b3c0d7f103fb10a2__group","group-label":"_21b59380477c306c__group-label",item:"_684ccb7988365b4f__item","is-size-small":"_38f7faff93c61958__is-size-small","item-indicator-icon":"_92fbe4765dfad5ee__item-indicator-icon","item-icon":"a3adcfd0b73ffd40__item-icon","item-text":"_41f0dd875c005a48__item-text","item-label":"_12335b76ada0b1f5__item-label","item-description":"_160635254c702623__item-description",status:"_6eb78bc92f8d7795__status",empty:"_06c7ff39d2f685b9__empty"};typeof process>"u",wq("aaac8c315e","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._0ab863136fb95530__positioner{z-index:var(--wp-ui-select-z-index,initial)}.a9ab07efb9ef413f__list{display:block;min-block-size:0;overflow-block:auto;overscroll-behavior:contain;scroll-padding-block:var(--wp-ui-popup-padding);&:not(:empty){padding-block:var(--wp-ui-popup-padding)}}}}");var brt={positioner:"_0ab863136fb95530__positioner",list:"a9ab07efb9ef413f__list"},yO=(0,Rye.forwardRef)(function({className:t,alignItemWithTrigger:o=!0,...r},n){return(0,Pye.jsx)(Nr.Positioner,{...U7,...r,alignItemWithTrigger:o,ref:n,className:U(grt["box-sizing"],brt.positioner,o&&hrt["is-align-item-with-trigger"],t)})});var MR=c(T(),1),xq="data-wp-hash";function kq(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&vrt(document)),e.__wpStyleRuntime}function _rt(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${xq}]`))if(o.getAttribute(xq)===t)return!0;return!1}function Mye(e,t,o){if(!e.head)return;let r=kq(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(_rt(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(xq,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function vrt(e){let t=kq();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Mye(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 Aye(e,t){let o=kq();o.styles.set(e,t);for(let r of o.documents.keys())Mye(r,e,t)}typeof process>"u",Aye("ff021bf4fe",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._380b81b8f79fb10f__dropdown-motion,._7f344b94e270e039__dropdown-motion--fade-only{--wp-ui-dropdown-slide-distance:4px;--wp-ui-dropdown-slide-duration:var(--wpds-motion-duration-md,200ms);--wp-ui-dropdown-slide-easing:var(--wpds-motion-easing-expressive,cubic-bezier(0.25,0,0,1));--wp-ui-dropdown-fade-duration:var(--wpds-motion-duration-sm,100ms);--wp-ui-dropdown-fade-easing:linear;@media not (prefers-reduced-motion){transition-duration:var(--wp-ui-dropdown-slide-duration),var(--wp-ui-dropdown-fade-duration);transition-property:transform,opacity;transition-timing-function:var(--wp-ui-dropdown-slide-easing),var(--wp-ui-dropdown-fade-easing);will-change:transform,opacity}opacity:1;&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}}._380b81b8f79fb10f__dropdown-motion{transform:translate(0);&[data-side=bottom][data-ending-style],&[data-side=bottom][data-starting-style]{transform:translateY(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=top][data-ending-style],&[data-side=top][data-starting-style]{transform:translateY(var(--wp-ui-dropdown-slide-distance))}&[data-side=left][data-ending-style],&[data-side=left][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=right][data-ending-style],&[data-side=right][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=inline-start][data-ending-style],&[data-side=inline-start][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=inline-end][data-ending-style],&[data-side=inline-end][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-start][data-ending-style],&:dir(rtl)[data-side=inline-start][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-end][data-ending-style],&:dir(rtl)[data-side=inline-end][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._234b520016b4e56f__popup{--wp-ui-popup-padding:var(--wpds-dimension-padding-xs,4px);--_wp-ui-elevation-md:0 2px 3px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.04),0 12px 12px rgba(0,0,0,.03),0 16px 16px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-md);display:grid;grid-template-areas:"header" "status" "main";grid-template-rows:auto auto minmax(0,1fr);max-height:min(var(--available-height),480px,60dvh);max-width:var(--available-width);min-width:var(--anchor-width);&.b9a9946a395ccad8__is-width-anchor{width:var(--anchor-width)}&._7c9f1b268b013f02__is-width-content{width:auto}&._6f31db51d79ec899__is-width-sm{width:min(var(--available-width),var(--wpds-dimension-surface-width-sm,320px))}&.fa45cdb5f45e57fb__is-width-md{width:min(var(--available-width),var(--wpds-dimension-surface-width-md,400px))}&._46a909337f6be21c__is-width-lg{width:min(var(--available-width),var(--wpds-dimension-surface-width-lg,560px))}&._6083938dff06df34__is-width-available{width:var(--available-width)}}._101852fa256bb935__is-align-item-with-trigger ._234b520016b4e56f__popup{max-height:none}._2fff4e9defe85de5__list-chrome{color:var(--wpds-color-foreground-interactive-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-md,13px);grid-area:main;line-height:var(--wpds-typography-line-height-sm,20px)}.f43dc7c768d7b622__list{display:grid;grid-template-areas:"scrollable" "footer";grid-template-rows:minmax(0,1fr) auto}._233cd60cdb84a2ef__list-scrollable-container{grid-area:scrollable;overflow-block:auto;overscroll-behavior:contain;scroll-padding-block:var(--wp-ui-popup-padding);&:not(:empty){padding-block:var(--wp-ui-popup-padding)}}.ec4db6f0122263e7__list-footer{grid-area:footer;padding-block:var(--wp-ui-popup-padding);._233cd60cdb84a2ef__list-scrollable-container:not(:empty)+&{border-block-start:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}}.b3c0d7f103fb10a2__group:not(:first-child){margin-block-start:var(--wpds-dimension-gap-sm,8px)}._21b59380477c306c__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;min-height:var(--wpds-dimension-size-md,32px);padding-inline:var(--wpds-dimension-padding-md,12px)}._684ccb7988365b4f__item{--wp-ui-popup-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-popup-item-padding-block:var(--wpds-dimension-padding-xs,4px);align-items:center;border-radius:var(--wpds-border-radius-sm,2px);display:flex;gap:var(--wpds-dimension-gap-xs,4px);justify-content:flex-start;margin-inline:var(--wp-ui-popup-padding);min-height:var(--wp-ui-popup-item-height);min-width:0;overflow-wrap:anywhere;padding-block:var(--wp-ui-popup-item-padding-block);padding-inline-end:var(--wp-ui-popup-item-padding-inline);padding-inline-start:calc(var(--wp-ui-popup-item-padding-inline) - var(--wpds-dimension-padding-xs, 4px));user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&._38f7faff93c61958__is-size-small{--wp-ui-popup-item-height:var(--wpds-dimension-size-sm,24px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-popup-item-padding-block:2px}&:not([data-selected]){._92fbe4765dfad5ee__item-indicator-icon{opacity:0}}&[data-highlighted]:not([aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:none;@media (forced-colors:active){--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid Highlight}}&[aria-disabled=true]{background-color:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}}.a3adcfd0b73ffd40__item-icon{flex-shrink:0}._41f0dd875c005a48__item-text{display:flex;flex:1;flex-direction:column;gap:2px;min-width:0}._12335b76ada0b1f5__item-label{min-width:0}._160635254c702623__item-description{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}._684ccb7988365b4f__item[aria-disabled=true] ._160635254c702623__item-description,._684ccb7988365b4f__item[data-highlighted]:not([aria-disabled=true]) ._160635254c702623__item-description{color:inherit}._6eb78bc92f8d7795__status{grid-area:status}._06c7ff39d2f685b9__empty:not(:empty){grid-area:main}._06c7ff39d2f685b9__empty:not(:empty),._6eb78bc92f8d7795__status:not(:empty):not(:has([data-visually-hidden])){--wp-ui-popup-empty-min-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-empty-padding-inline:var(--wpds-dimension-padding-md,12px);align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wp-ui-popup-empty-min-height);padding-inline:var(--wp-ui-popup-empty-padding-inline)}}}');var Bye={popup:"_234b520016b4e56f__popup _380b81b8f79fb10f__dropdown-motion","is-width-anchor":"b9a9946a395ccad8__is-width-anchor","is-width-content":"_7c9f1b268b013f02__is-width-content","is-width-sm":"_6f31db51d79ec899__is-width-sm","is-width-md":"fa45cdb5f45e57fb__is-width-md","is-width-lg":"_46a909337f6be21c__is-width-lg","is-width-available":"_6083938dff06df34__is-width-available","is-align-item-with-trigger":"_101852fa256bb935__is-align-item-with-trigger","list-chrome":"_2fff4e9defe85de5__list-chrome",list:"f43dc7c768d7b622__list _2fff4e9defe85de5__list-chrome","list-scrollable-container":"_233cd60cdb84a2ef__list-scrollable-container","list-footer":"ec4db6f0122263e7__list-footer",group:"b3c0d7f103fb10a2__group","group-label":"_21b59380477c306c__group-label",item:"_684ccb7988365b4f__item","is-size-small":"_38f7faff93c61958__is-size-small","item-indicator-icon":"_92fbe4765dfad5ee__item-indicator-icon","item-icon":"a3adcfd0b73ffd40__item-icon","item-text":"_41f0dd875c005a48__item-text","item-label":"_12335b76ada0b1f5__item-label","item-description":"_160635254c702623__item-description",status:"_6eb78bc92f8d7795__status",empty:"_06c7ff39d2f685b9__empty"};typeof process>"u",Aye("aaac8c315e","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._0ab863136fb95530__positioner{z-index:var(--wp-ui-select-z-index,initial)}.a9ab07efb9ef413f__list{display:block;min-block-size:0;overflow-block:auto;overscroll-behavior:contain;scroll-padding-block:var(--wp-ui-popup-padding);&:not(:empty){padding-block:var(--wp-ui-popup-padding)}}}}");var yrt={positioner:"_0ab863136fb95530__positioner",list:"a9ab07efb9ef413f__list"},Nye=(0,Oye.forwardRef)(function({className:t,portal:o,positioner:r,width:n,children:i,...s},a){let l=(0,MR.jsx)(Nr.Popup,{ref:a,className:U(Bye.popup,Lve(n),t),...s,children:(0,MR.jsx)(Nr.List,{className:U(Bye["list-chrome"],yrt.list),children:i})}),d=dp(r,(0,MR.jsx)(yO,{}),l);return dp(o,(0,MR.jsx)(vO,{}),d)});var Sq=c(T(),1);function Lye(e){return(0,Sq.jsx)(Yg,{children:(0,Sq.jsx)(Nr.Root,{...e})})}var Dye=c(D(),1);var Vye=c(X(),1);var nx=c(T(),1),Cq="data-wp-hash";function Eq(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&xrt(document)),e.__wpStyleRuntime}function wrt(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${Cq}]`))if(o.getAttribute(Cq)===t)return!0;return!1}function Fye(e,t,o){if(!e.head)return;let r=Eq(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(wrt(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(Cq,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function xrt(e){let t=Eq();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Fye(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 zye(e,t){let o=Eq();o.styles.set(e,t);for(let r of o.documents.keys())Fye(r,e,t)}typeof process>"u",zye("08122b3d53","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.af79fb116edb0dd7__outset-ring--focus:focus,.dfcfdc28396e5d98__outset-ring--focus-visible:focus-visible,.e5cd9ee879f6403a__outset-ring--focus-within:focus-within,:focus-visible ._81935a08e952f267__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within,.abc777e9713fa711__outset-ring--focus-except-active:focus{outline:none}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.abc777e9713fa711__outset-ring--focus-except-active:focus:not(:active){--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");var krt={"outset-ring--focus":"af79fb116edb0dd7__outset-ring--focus","outset-ring--focus-visible":"dfcfdc28396e5d98__outset-ring--focus-visible","outset-ring--focus-within":"e5cd9ee879f6403a__outset-ring--focus-within","outset-ring--focus-parent-visible":"_81935a08e952f267__outset-ring--focus-parent-visible","outset-ring--focus-except-active":"abc777e9713fa711__outset-ring--focus-except-active","outset-ring--focus-within-except-active":"_3c9f5ee9fc9c136d__outset-ring--focus-within-except-active"};typeof process>"u",zye("8fc4b25e27","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._6e4e0445ef20426b__trigger-wrapper{&.fa98c865fb77e675__is-minimal{width:fit-content}}._7893295e3f6d1af7__trigger{align-items:center;background-color:transparent;border:none;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:flex;font-family:inherit;font-size:inherit;gap:var(--wpds-dimension-gap-xs,4px);justify-content:space-between;line-height:1.4;padding-block:4px;padding-inline-end:calc(var(--wp-ui-input-layout-padding-inline) - 4px);padding-inline-start:var(--wp-ui-input-layout-padding-inline);text-align:start;user-select:none;width:100%;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&.fa98c865fb77e675__is-minimal{width:auto}&:focus{outline:none}&[data-disabled]{background-color:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}}.e760c9339965ce84__trigger-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;._7893295e3f6d1af7__trigger[data-placeholder]:not([data-disabled]) &{color:var(--wpds-color-foreground-interactive-neutral-weak,#707070)}}._308bc63e43681f99__trigger-caret{flex:0 0 auto}}}");var rx={"trigger-wrapper":"_6e4e0445ef20426b__trigger-wrapper","is-minimal":"fa98c865fb77e675__is-minimal",trigger:"_7893295e3f6d1af7__trigger","trigger-value":"e760c9339965ce84__trigger-value","trigger-caret":"_308bc63e43681f99__trigger-caret"},jye=(0,Dye.forwardRef)(function({className:t,size:o,variant:r,children:n,placeholder:i=(0,Vye.__)("Select"),...s},a){return(0,nx.jsx)(ws,{className:U(krt["outset-ring--focus-within-except-active"],rx["trigger-wrapper"],r==="minimal"&&rx["is-minimal"],t),size:o,isBorderless:r==="minimal",children:(0,nx.jsxs)(Nr.Trigger,{...s,className:U(rx.trigger,r==="minimal"&&rx["is-minimal"]),"data-can-disable-input-layout":!0,ref:a,children:[(0,nx.jsx)(Nr.Value,{placeholder:i,className:rx["trigger-value"],children:n}),(0,nx.jsx)(fo,{className:rx["trigger-caret"],icon:Tn,size:18})]})})});var wO=c(D(),1);var Rq=c(T(),1),Tq="data-wp-hash";function Iq(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Crt(document)),e.__wpStyleRuntime}function Srt(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${Tq}]`))if(o.getAttribute(Tq)===t)return!0;return!1}function Wye(e,t,o){if(!e.head)return;let r=Iq(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Srt(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(Tq,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Crt(e){let t=Iq();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Wye(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 Gye(e,t){let o=Iq();o.styles.set(e,t);for(let r of o.documents.keys())Wye(r,e,t)}typeof process>"u",Gye("1540cbc709","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._1e441c22c9dc5d28__wrapper{--wp-ui-textarea-min-height:var(--wpds-dimension-size-lg,40px)}._414844876c32ecee__textarea{min-height:calc(var(--wp-ui-textarea-min-height) - 2px);resize:block}}@layer compositions{._1e441c22c9dc5d28__wrapper{--wp-ui-input-padding-block:9.9px;height:auto;line-height:1.4}}}");var Uye={wrapper:"_1e441c22c9dc5d28__wrapper",textarea:"_414844876c32ecee__textarea"};typeof process>"u",Gye("e8e31009f5","._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);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var Ert={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"},Trt=(e,t)=>function(r){return typeof e=="function"?e(st(r,t)):(0,wO.cloneElement)(e,st(r,t))},xO=(0,wO.forwardRef)(function({className:t,defaultValue:o,disabled:r,onValueChange:n,render:i,rows:s=4,style:a,value:l,...d},u){return(0,Rq.jsx)(tx,{className:U(Uye.wrapper,t),style:a,render:Trt(i||(f=>(0,Rq.jsx)("textarea",{...f})),{className:U(Ert.textarea,Uye.textarea),ref:u,rows:s,...d}),value:l,defaultValue:o,onValueChange:n,disabled:r})});var $ye=c(D(),1);var J_=c(T(),1),Pq="data-wp-hash";function Bq(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Irt(document)),e.__wpStyleRuntime}function Rrt(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${Pq}]`))if(o.getAttribute(Pq)===t)return!0;return!1}function Yye(e,t,o){if(!e.head)return;let r=Bq(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Rrt(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(Pq,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Irt(e){let t=Bq();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Yye(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 Prt(e,t){let o=Bq();o.styles.set(e,t);for(let r of o.documents.keys())Yye(r,e,t)}typeof process>"u",Prt("0c752c3d08","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer compositions{@supports (-webkit-hyphens:none) and (not (-moz-appearance:none)){.a9211a7e6af24bed__root input[type=date]:not([data-filled]):not(:focus),.a9211a7e6af24bed__root input[type=datetime-local]:not([data-filled]):not(:focus),.a9211a7e6af24bed__root input[type=time]:not([data-filled]):not(:focus){--_gcd-input-color:transparent;--_gcd-input-color-disabled:transparent;color:transparent;&:disabled::-webkit-datetime-edit-text{color:transparent}}}}}");var Brt={root:"a9211a7e6af24bed__root"},Oq=(0,$ye.forwardRef)(function({className:t,label:o,description:r,details:n,hideLabelFromVision:i,...s},a){return(0,J_.jsxs)(mi.Root,{className:U(Brt.root,t),children:[(0,J_.jsx)(mi.Label,{hideFromVision:i,children:o}),(0,J_.jsx)(tx,{ref:a,...s}),r&&(0,J_.jsx)(mi.Description,{children:r}),n&&(0,J_.jsx)(mi.Details,{children:n})]})});var Xye=c(D(),1);var Kye=c(D(),1);var qye=c(T(),1),AR=(0,Kye.forwardRef)(function(t,o){return(0,qye.jsx)(Pu.Item,{ref:o,...t})});var Dl=c(T(),1),Zye=(0,Xye.forwardRef)(function({className:t,children:o,items:r,label:n,description:i,details:s,hideLabelFromVision:a,placeholder:l,popupWidth:d="content",size:u="default",triggerContent:f,...p},m){return(0,Dl.jsxs)(mi.Root,{className:t,children:[(0,Dl.jsx)(mi.Label,{hideFromVision:a,children:n}),(0,Dl.jsxs)(Pu.Root,{items:r,...p,children:[(0,Dl.jsx)(Pu.Trigger,{ref:m,placeholder:l,size:u,children:f}),(0,Dl.jsx)(Pu.Popup,{width:d,children:o!==void 0?o:r?.map(g=>(0,Dl.jsxs)(AR,{value:g,label:g.label,disabled:g.disabled,children:[(0,Dl.jsx)(Pu.ItemLabel,{children:g.label}),g.description?(0,Dl.jsx)(Pu.ItemDescription,{children:g.description}):null]},g.value??"null"))})]}),i&&(0,Dl.jsx)(mi.Description,{children:i}),s&&(0,Dl.jsx)(mi.Details,{children:s})]})});IR.displayName="SelectControl.Group";PR.displayName="SelectControl.GroupLabel";AR.displayName="SelectControl.Item";Q_.displayName="SelectControl.ItemLabel";Z_.displayName="SelectControl.ItemDescription";var Qye=Object.assign(Zye,{Group:IR,GroupLabel:PR,Item:AR,ItemLabel:Q_,ItemDescription:Z_});var Jye=c(D(),1);var ev=c(T(),1),Mq=(0,Jye.forwardRef)(function({className:t,label:o,description:r,details:n,hideLabelFromVision:i,...s},a){return(0,ev.jsxs)(mi.Root,{className:t,children:[(0,ev.jsx)(mi.Label,{hideFromVision:i,children:o}),(0,ev.jsx)(xO,{ref:a,...s}),r&&(0,ev.jsx)(mi.Description,{children:r}),n&&(0,ev.jsx)(mi.Details,{children:n})]})});var kO=c(D(),1),ewe=c(ue(),1);var Aq=c(T(),1),sd=(0,kO.forwardRef)(function({required:t,markWhenOptional:o,customValidity:r,...n},i){let s=(0,kO.useRef)(null),a=(0,ewe.useMergeRefs)([i,s]);return(0,Aq.jsx)(Lr,{required:t,markWhenOptional:o,customValidity:r,getValidityTarget:()=>s.current,children:(0,Aq.jsx)(Oq,{ref:a,...n})})});var SO=c(D(),1),twe=c(ue(),1);var Nq=c(T(),1),Lq=(0,SO.forwardRef)(function({required:t,markWhenOptional:o,customValidity:r,...n},i){let s=(0,SO.useRef)(null),a=(0,twe.useMergeRefs)([i,s]);return(0,Nq.jsx)(Lr,{required:t,markWhenOptional:o,customValidity:r,getValidityTarget:()=>s.current,children:(0,Nq.jsx)(Mq,{ref:a,...n})})});var NR={};ro(NR,{ActionButton:()=>Ewe,ActionLink:()=>Iwe,Actions:()=>hwe,CloseIcon:()=>wwe,Description:()=>pwe,Root:()=>iwe,Title:()=>cwe});var owe=c(zo(),1),sx=c(D(),1);var ax=c(T(),1),Vq="data-wp-hash";function Fq(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Mrt(document)),e.__wpStyleRuntime}function Ort(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${Vq}]`))if(o.getAttribute(Vq)===t)return!0;return!1}function rwe(e,t,o){if(!e.head)return;let r=Fq(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Ort(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(Vq,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Mrt(e){let t=Fq();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)rwe(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 nwe(e,t){let o=Fq();o.styles.set(e,t);for(let r of o.documents.keys())rwe(r,e,t)}typeof process>"u",nwe("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var Art={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",nwe("2e53930a41","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#adc6e2);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bd7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#936300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#92d39d);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#e0afa7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");var Dq={notice:"_4145abab73d17514__notice",icon:"d0a25570cb528528__icon",title:"b5397fb9d05389e3__title",description:"_1904b570a89bb815__description",actions:"_0a1270dcdd79c031__actions","action-button":"_983740ab855c4e09__action-button","action-link":"d329e7416d368d31__action-link","close-icon":"_487e6a5c1375f7dc__close-icon","is-info":"_531c140826094795__is-info","is-warning":"ae2e1004697cce95__is-warning","is-success":"_2e614a76af494837__is-success","is-error":"af00331ae17a0065__is-error","is-action-button-outline":"_8ddb8fb33fbf3d38__is-action-button-outline","is-action-button-minimal":"_77bbde495a8a0af3__is-action-button-minimal"},Nrt={neutral:null,info:OC,warning:GS,success:sE,error:Jb};function Lrt(e){return e==="error"?"assertive":"polite"}function Drt(e){if(e){if(typeof e=="string")return e;try{return(0,sx.renderToString)(e)}catch{return}}}function Vrt(e,t){let o=Drt(e);(0,sx.useEffect)(()=>{o&&(0,owe.speak)(o,t)},[o,t])}var iwe=(0,sx.forwardRef)(function({intent:t="neutral",children:o,icon:r,spokenMessage:n=o,politeness:i=Lrt(t),render:s,...a},l){Vrt(n,i);let d=r===null?null:r??Nrt[t],u=U(Dq.notice,Dq[`is-${t}`],Art["box-sizing"]);return Bo({defaultTagName:"div",render:s,ref:l,props:st({className:u,children:(0,ax.jsxs)(ax.Fragment,{children:[o,d&&(0,ax.jsx)(fo,{className:Dq.icon,icon:d})]})},a)})});var swe=c(D(),1);var lwe=c(T(),1),zq="data-wp-hash";function jq(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&zrt(document)),e.__wpStyleRuntime}function Frt(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${zq}]`))if(o.getAttribute(zq)===t)return!0;return!1}function awe(e,t,o){if(!e.head)return;let r=jq(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Frt(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(zq,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function zrt(e){let t=jq();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)awe(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 jrt(e,t){let o=jq();o.styles.set(e,t);for(let r of o.documents.keys())awe(r,e,t)}typeof process>"u",jrt("2e53930a41","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#adc6e2);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bd7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#936300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#92d39d);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#e0afa7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");var Hrt={notice:"_4145abab73d17514__notice",icon:"d0a25570cb528528__icon",title:"b5397fb9d05389e3__title",description:"_1904b570a89bb815__description",actions:"_0a1270dcdd79c031__actions","action-button":"_983740ab855c4e09__action-button","action-link":"d329e7416d368d31__action-link","close-icon":"_487e6a5c1375f7dc__close-icon","is-info":"_531c140826094795__is-info","is-warning":"ae2e1004697cce95__is-warning","is-success":"_2e614a76af494837__is-success","is-error":"af00331ae17a0065__is-error","is-action-button-outline":"_8ddb8fb33fbf3d38__is-action-button-outline","is-action-button-minimal":"_77bbde495a8a0af3__is-action-button-minimal"},cwe=(0,swe.forwardRef)(function({className:t,...o},r){return(0,lwe.jsx)(Ct,{ref:r,variant:"heading-md",className:U(Hrt.title,t),...o})});var dwe=c(D(),1);var fwe=c(T(),1),Hq="data-wp-hash";function Uq(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Wrt(document)),e.__wpStyleRuntime}function Urt(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${Hq}]`))if(o.getAttribute(Hq)===t)return!0;return!1}function uwe(e,t,o){if(!e.head)return;let r=Uq(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Urt(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(Hq,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Wrt(e){let t=Uq();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)uwe(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 Grt(e,t){let o=Uq();o.styles.set(e,t);for(let r of o.documents.keys())uwe(r,e,t)}typeof process>"u",Grt("2e53930a41","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#adc6e2);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bd7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#936300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#92d39d);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#e0afa7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");var $rt={notice:"_4145abab73d17514__notice",icon:"d0a25570cb528528__icon",title:"b5397fb9d05389e3__title",description:"_1904b570a89bb815__description",actions:"_0a1270dcdd79c031__actions","action-button":"_983740ab855c4e09__action-button","action-link":"d329e7416d368d31__action-link","close-icon":"_487e6a5c1375f7dc__close-icon","is-info":"_531c140826094795__is-info","is-warning":"ae2e1004697cce95__is-warning","is-success":"_2e614a76af494837__is-success","is-error":"af00331ae17a0065__is-error","is-action-button-outline":"_8ddb8fb33fbf3d38__is-action-button-outline","is-action-button-minimal":"_77bbde495a8a0af3__is-action-button-minimal"},pwe=(0,dwe.forwardRef)(function({className:t,...o},r){return(0,fwe.jsx)(Ct,{ref:r,variant:"body-md",className:U($rt.description,t),...o})});var mwe=c(D(),1);var Wq="data-wp-hash";function Gq(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Krt(document)),e.__wpStyleRuntime}function Yrt(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${Wq}]`))if(o.getAttribute(Wq)===t)return!0;return!1}function gwe(e,t,o){if(!e.head)return;let r=Gq(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Yrt(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(Wq,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Krt(e){let t=Gq();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)gwe(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 qrt(e,t){let o=Gq();o.styles.set(e,t);for(let r of o.documents.keys())gwe(r,e,t)}typeof process>"u",qrt("2e53930a41","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#adc6e2);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bd7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#936300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#92d39d);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#e0afa7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");var Xrt={notice:"_4145abab73d17514__notice",icon:"d0a25570cb528528__icon",title:"b5397fb9d05389e3__title",description:"_1904b570a89bb815__description",actions:"_0a1270dcdd79c031__actions","action-button":"_983740ab855c4e09__action-button","action-link":"d329e7416d368d31__action-link","close-icon":"_487e6a5c1375f7dc__close-icon","is-info":"_531c140826094795__is-info","is-warning":"ae2e1004697cce95__is-warning","is-success":"_2e614a76af494837__is-success","is-error":"af00331ae17a0065__is-error","is-action-button-outline":"_8ddb8fb33fbf3d38__is-action-button-outline","is-action-button-minimal":"_77bbde495a8a0af3__is-action-button-minimal"},hwe=(0,mwe.forwardRef)(function({render:t,...o},r){return Bo({defaultTagName:"div",render:t,ref:r,props:st({className:Xrt.actions},o)})});var bwe=c(D(),1),_we=c(X(),1);var ywe=c(T(),1),$q="data-wp-hash";function Yq(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Qrt(document)),e.__wpStyleRuntime}function Zrt(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${$q}]`))if(o.getAttribute($q)===t)return!0;return!1}function vwe(e,t,o){if(!e.head)return;let r=Yq(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Zrt(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute($q,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function Qrt(e){let t=Yq();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)vwe(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 Jrt(e,t){let o=Yq();o.styles.set(e,t);for(let r of o.documents.keys())vwe(r,e,t)}typeof process>"u",Jrt("2e53930a41","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#adc6e2);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bd7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#936300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#92d39d);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#e0afa7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");var ent={notice:"_4145abab73d17514__notice",icon:"d0a25570cb528528__icon",title:"b5397fb9d05389e3__title",description:"_1904b570a89bb815__description",actions:"_0a1270dcdd79c031__actions","action-button":"_983740ab855c4e09__action-button","action-link":"d329e7416d368d31__action-link","close-icon":"_487e6a5c1375f7dc__close-icon","is-info":"_531c140826094795__is-info","is-warning":"ae2e1004697cce95__is-warning","is-success":"_2e614a76af494837__is-success","is-error":"af00331ae17a0065__is-error","is-action-button-outline":"_8ddb8fb33fbf3d38__is-action-button-outline","is-action-button-minimal":"_77bbde495a8a0af3__is-action-button-minimal"},wwe=(0,bwe.forwardRef)(function({className:t,icon:o=Lf,label:r=(0,_we.__)("Dismiss"),...n},i){return(0,ywe.jsx)(kR,{...n,ref:i,className:U(ent["close-icon"],t),variant:"minimal",size:"small",tone:"neutral",icon:o,label:r})});var kwe=c(D(),1);var Cwe=c(T(),1),Kq="data-wp-hash";function qq(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&ont(document)),e.__wpStyleRuntime}function tnt(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${Kq}]`))if(o.getAttribute(Kq)===t)return!0;return!1}function Swe(e,t,o){if(!e.head)return;let r=qq(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(tnt(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(Kq,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function ont(e){let t=qq();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Swe(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 rnt(e,t){let o=qq();o.styles.set(e,t);for(let r of o.documents.keys())Swe(r,e,t)}typeof process>"u",rnt("2e53930a41","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#adc6e2);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bd7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#936300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#92d39d);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#e0afa7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");var xwe={notice:"_4145abab73d17514__notice",icon:"d0a25570cb528528__icon",title:"b5397fb9d05389e3__title",description:"_1904b570a89bb815__description",actions:"_0a1270dcdd79c031__actions","action-button":"_983740ab855c4e09__action-button","action-link":"d329e7416d368d31__action-link","close-icon":"_487e6a5c1375f7dc__close-icon","is-info":"_531c140826094795__is-info","is-warning":"ae2e1004697cce95__is-warning","is-success":"_2e614a76af494837__is-success","is-error":"af00331ae17a0065__is-error","is-action-button-outline":"_8ddb8fb33fbf3d38__is-action-button-outline","is-action-button-minimal":"_77bbde495a8a0af3__is-action-button-minimal"},Ewe=(0,kwe.forwardRef)(function({className:t,loading:o,loadingAnnouncement:r,variant:n,...i},s){return(0,Cwe.jsx)(A0,{...i,...o!==void 0?{loading:o,loadingAnnouncement:r??""}:{},ref:s,size:"compact",tone:"neutral",variant:n,className:U(xwe["action-button"],xwe[`is-action-button-${n}`],t)})});var Twe=c(D(),1);var Zq=c(T(),1),Xq="data-wp-hash";function Qq(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&int(document)),e.__wpStyleRuntime}function nnt(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${Xq}]`))if(o.getAttribute(Xq)===t)return!0;return!1}function Rwe(e,t,o){if(!e.head)return;let r=Qq(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(nnt(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(Xq,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function int(e){let t=Qq();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Rwe(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 snt(e,t){let o=Qq();o.styles.set(e,t);for(let r of o.documents.keys())Rwe(r,e,t)}typeof process>"u",snt("2e53930a41","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#adc6e2);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bd7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#936300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#92d39d);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#e0afa7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");var ant={notice:"_4145abab73d17514__notice",icon:"d0a25570cb528528__icon",title:"b5397fb9d05389e3__title",description:"_1904b570a89bb815__description",actions:"_0a1270dcdd79c031__actions","action-button":"_983740ab855c4e09__action-button","action-link":"d329e7416d368d31__action-link","close-icon":"_487e6a5c1375f7dc__close-icon","is-info":"_531c140826094795__is-info","is-warning":"ae2e1004697cce95__is-warning","is-success":"_2e614a76af494837__is-success","is-error":"af00331ae17a0065__is-error","is-action-button-outline":"_8ddb8fb33fbf3d38__is-action-button-outline","is-action-button-minimal":"_77bbde495a8a0af3__is-action-button-minimal"},Iwe=(0,Twe.forwardRef)(function({className:t,render:o,...r},n){return(0,Zq.jsx)(Ct,{ref:n,className:U(ant["action-link"],t),...r,variant:"body-md",render:(0,Zq.jsx)(O$,{tone:"neutral",variant:"default",render:o})})});var Fa={};ro(Fa,{List:()=>Mwe,Panel:()=>jwe,Root:()=>Uwe,Tab:()=>$we});var tv=c(D(),1);var Bwe=c(ue(),1),CO=c(T(),1),Jq="data-wp-hash";function eX(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&cnt(document)),e.__wpStyleRuntime}function lnt(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${Jq}]`))if(o.getAttribute(Jq)===t)return!0;return!1}function Owe(e,t,o){if(!e.head)return;let r=eX(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(lnt(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(Jq,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function cnt(e){let t=eX();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Owe(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 dnt(e,t){let o=eX();o.styles.set(e,t);for(let r of o.documents.keys())Owe(r,e,t)}typeof process>"u",dnt("54ae3f4680",`@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._7313adbc8a112e90__tablist{--direction-start:left;--direction-end:right;align-items:stretch;display:flex;overflow-inline:auto;overscroll-behavior-inline:none;position:relative;&:dir(rtl){--direction-start:right;--direction-end:left}&[data-orientation=horizontal]{--fade-width:4rem;--fade-gradient-base:transparent 0%,#000 var(--fade-width);--fade-gradient-composed:var(--fade-gradient-base),#000 60%,transparent 50%;width:fit-content;&._9f2ac729c68a735a__is-overflowing-first{mask-image:linear-gradient(to var(--direction-end),var(--fade-gradient-base))}&._81c799c1f3cdd261__is-overflowing-last{mask-image:linear-gradient(to var(--direction-start),var(--fade-gradient-base))}&._9f2ac729c68a735a__is-overflowing-first._81c799c1f3cdd261__is-overflowing-last{mask-image:linear-gradient(to right,var(--fade-gradient-composed)),linear-gradient(to left,var(--fade-gradient-composed))}&._59228b5227f38a99__is-minimal-variant{gap:1rem}}&[data-orientation=vertical]{flex-direction:column}}._1c37dcfaa1ad8cda__indicator{@media not (prefers-reduced-motion){transition-duration:.2s;transition-property:translate,width,height,border-radius,border-block;transition-timing-function:ease-out}outline:2px solid transparent;outline-offset:-1px;pointer-events:none;position:absolute;&[data-orientation=horizontal]{background-color:var(--wpds-color-stroke-interactive-neutral-strong,#6e6e6e);bottom:0;height:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px));left:0;translate:var(--active-tab-left) 0;width:var(--active-tab-width);z-index:1}&[data-orientation=vertical]{background-color:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);border-radius:var(--wpds-border-radius-sm,2px);height:var(--active-tab-height);left:50%;top:0;translate:-50% var(--active-tab-top);width:100%;z-index:0}._7313adbc8a112e90__tablist[data-select-on-move=true]:has(:focus-visible) | |
| 87 | 88 | &[data-orientation=vertical]{border:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));box-sizing:border-box}}.a5fd8814f195aa5e__tab{align-items:center;background:transparent;border:none;border-radius:0;box-shadow:none;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:var(--wpds-cursor-control,pointer);display:flex;flex:1 0 auto;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);font-weight:400;line-height:1.2;outline:none;padding:0;position:relative;white-space:nowrap;z-index:1;&[data-disabled]{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);cursor:default;@media (forced-colors:active){color:GrayText}}&:not([data-disabled]):is(:hover,:focus-visible){color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}&:after{border-radius:var(--wpds-border-radius-sm,2px);opacity:0;outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));pointer-events:none;position:absolute;z-index:-1;@media not (prefers-reduced-motion){transition:opacity .1s linear}}&:focus-visible:after{opacity:1}[data-orientation=horizontal] &{height:48px;padding-inline:var(--wpds-dimension-padding-lg,16px);scroll-margin:24px;&:after{content:"";inset:var(--wpds-dimension-padding-md,12px)}}._59228b5227f38a99__is-minimal-variant[data-orientation=horizontal] &{padding-inline:0;&:after{inset-inline:round(up,var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)),1px)}}[data-orientation=vertical] &{min-height:var(--wpds-dimension-size-lg,40px);padding:var(--wpds-dimension-padding-sm,8px) var(--wpds-dimension-padding-md,12px)}[data-orientation=vertical][data-select-on-move=false] &:after{content:"";inset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}._5dfc77e6edd345d4__tab-children{align-items:center;display:flex;flex-grow:1;[data-orientation=horizontal] &{justify-content:center}[data-orientation=vertical] &{justify-content:start}}._4a20e969d15e5ac1__tab-chevron{flex-shrink:0;margin-inline-end:calc(var(--wpds-dimension-gap-xs, 4px)*-1);opacity:0;[data-orientation=horizontal] &{display:none}[role=tab]:is([aria-selected=true],:focus-visible,:hover) &{opacity:1}@media not (prefers-reduced-motion){[data-select-on-move=true] |
| 88 | 89 | [role=tab]:is([aria-selected=true]) |
| 89 | - &{transition:opacity .15s linear .15s}}&:dir(rtl){rotate:180deg}}}}`);var vE={tablist:"_7313adbc8a112e90__tablist","is-overflowing-first":"_9f2ac729c68a735a__is-overflowing-first","is-overflowing-last":"_81c799c1f3cdd261__is-overflowing-last","is-minimal-variant":"_59228b5227f38a99__is-minimal-variant",indicator:"_1c37dcfaa1ad8cda__indicator",tab:"a5fd8814f195aa5e__tab","tab-children":"_5dfc77e6edd345d4__tab-children","tab-chevron":"_4a20e969d15e5ac1__tab-chevron"},eye=1,rye=(0,Cy.forwardRef)(function({children:t,variant:o="default",className:r,activateOnFocus:n,...i},s){let[a,l]=(0,Cy.useState)(null),[u,d]=(0,Cy.useState)({first:!1,last:!1,isScrolling:!1});(0,Cy.useEffect)(()=>{if(!a)return;let p=()=>{let{scrollWidth:y,clientWidth:_,scrollLeft:w}=a,k=Math.max(y-_,0),S=(a.dir||(typeof window<"u"?window.getComputedStyle(a).direction:"ltr"))==="rtl"&&w<0?-w:w,C={first:S>eye,last:S<k-eye,isScrolling:y>_};d(R=>R.first===C.first&&R.last===C.last&&R.isScrolling===C.isScrolling?R:C)},m=new ResizeObserver(p),g=()=>{m.disconnect(),m.observe(a),a.querySelectorAll('[role="tab"]').forEach(y=>m.observe(y))},h=new MutationObserver(g);h.observe(a,{childList:!0,subtree:!0});let b=!1,v=()=>{b||(requestAnimationFrame(()=>{p(),b=!1}),b=!0)};return a.addEventListener("scroll",v,{passive:!0}),g(),p(),()=>{a.removeEventListener("scroll",v),m.disconnect(),h.disconnect()}},[a]);let f=(0,tye.useMergeRefs)([s,p=>l(p)]);return(0,DL.jsxs)(Vc.List,{ref:f,activateOnFocus:n,"data-select-on-move":n?"true":"false",className:$(vE.tablist,u.first&&vE["is-overflowing-first"],u.last&&vE["is-overflowing-last"],vE[`is-${o}-variant`],r),...i,tabIndex:i.tabIndex??(u.isScrolling?-1:void 0),children:[t,(0,DL.jsx)(Vc.Indicator,{className:vE.indicator})]})});var aye=c(F(),1);var ji=c(F(),1);var _E=c(T(),1),VL=!1,WY=VL?(0,ji.createContext)(null):null;function _Xe(){let e=(0,ji.useContext)(WY);(0,ji.useEffect)(()=>{if(e)return e.registerTab()},[e])}function wXe(){}var nye=VL?_Xe:wXe;function kXe(){let e=(0,ji.useContext)(WY);(0,ji.useEffect)(()=>{if(e)return e.registerPanel()},[e])}function xXe(){}var iye=VL?kXe:xXe;function SXe({children:e}){let t=(0,ji.useRef)(0),o=(0,ji.useRef)(0),r=Nhe(()=>{let a=t.current,l=o.current;if(a!==l)throw new Error(`Tabs: Tab/Panel count mismatch (${a} Tabs, ${l} Panels). Each Tab must be associated with exactly one Panel. Mismatched or missing associations can break screen reader navigation and violate WAI-ARIA Tabs pattern requirements.`)}),n=(0,ji.useCallback)(()=>(t.current+=1,r(),()=>{t.current-=1,r()}),[r]),i=(0,ji.useCallback)(()=>(o.current+=1,r(),()=>{o.current-=1,r()}),[r]),s=(0,ji.useMemo)(()=>({registerTab:n,registerPanel:i}),[n,i]);return(0,_E.jsx)(WY.Provider,{value:s,children:e})}function CXe({children:e}){return(0,_E.jsx)(_E.Fragment,{children:e})}var sye=VL?SXe:CXe;var uye=c(T(),1),GY="data-wp-hash";function $Y(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&TXe(document)),e.__wpStyleRuntime}function EXe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${GY}]`))if(o.getAttribute(GY)===t)return!0;return!1}function lye(e,t,o){if(!e.head)return;let r=$Y(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(EXe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(GY,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function TXe(e){let t=$Y();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)lye(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 cye(e,t){let o=$Y();o.styles.set(e,t);for(let r of o.documents.keys())lye(r,e,t)}typeof process>"u",cye("af6d9984a6","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");var RXe={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a"};typeof process>"u",cye("96553466c8","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._64de9947bf305b7a__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.af79fb116edb0dd7__outset-ring--focus:focus,.dfcfdc28396e5d98__outset-ring--focus-visible:focus-visible,.e5cd9ee879f6403a__outset-ring--focus-within:focus-within,:focus-visible ._81935a08e952f267__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within,.abc777e9713fa711__outset-ring--focus-except-active:focus{outline:none}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.abc777e9713fa711__outset-ring--focus-except-active:focus:not(:active){--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");var BXe={"outset-ring--focus":"af79fb116edb0dd7__outset-ring--focus","outset-ring--focus-visible":"dfcfdc28396e5d98__outset-ring--focus-visible","outset-ring--focus-within":"e5cd9ee879f6403a__outset-ring--focus-within","outset-ring--focus-within-visible":"_64de9947bf305b7a__outset-ring--focus-within-visible","outset-ring--focus-parent-visible":"_81935a08e952f267__outset-ring--focus-parent-visible","outset-ring--focus-except-active":"abc777e9713fa711__outset-ring--focus-except-active","outset-ring--focus-within-except-active":"_3c9f5ee9fc9c136d__outset-ring--focus-within-except-active"},dye=(0,aye.forwardRef)(function({className:t,...o},r){return iye(),(0,uye.jsx)(Vc.Panel,{ref:r,className:$(RXe.div,BXe["outset-ring--focus-visible"],t),...o})});var fye=c(F(),1);var FL=c(T(),1),pye=(0,fye.forwardRef)(function({...t},o){return(0,FL.jsx)(sk,{children:(0,FL.jsx)(sye,{children:(0,FL.jsx)(Vc.Root,{ref:o,...t})})})});var mye=c(F(),1);var wE=c(T(),1),KY="data-wp-hash";function qY(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&PXe(document)),e.__wpStyleRuntime}function IXe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${KY}]`))if(o.getAttribute(KY)===t)return!0;return!1}function gye(e,t,o){if(!e.head)return;let r=qY(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(IXe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(KY,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function PXe(e){let t=qY();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)gye(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 OXe(e,t){let o=qY();o.styles.set(e,t);for(let r of o.documents.keys())gye(r,e,t)}typeof process>"u",OXe("54ae3f4680",`@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._7313adbc8a112e90__tablist{--direction-start:left;--direction-end:right;align-items:stretch;display:flex;overflow-inline:auto;overscroll-behavior-inline:none;position:relative;&:dir(rtl){--direction-start:right;--direction-end:left}&[data-orientation=horizontal]{--fade-width:4rem;--fade-gradient-base:transparent 0%,#000 var(--fade-width);--fade-gradient-composed:var(--fade-gradient-base),#000 60%,transparent 50%;width:fit-content;&._9f2ac729c68a735a__is-overflowing-first{mask-image:linear-gradient(to var(--direction-end),var(--fade-gradient-base))}&._81c799c1f3cdd261__is-overflowing-last{mask-image:linear-gradient(to var(--direction-start),var(--fade-gradient-base))}&._9f2ac729c68a735a__is-overflowing-first._81c799c1f3cdd261__is-overflowing-last{mask-image:linear-gradient(to right,var(--fade-gradient-composed)),linear-gradient(to left,var(--fade-gradient-composed))}&._59228b5227f38a99__is-minimal-variant{gap:1rem}}&[data-orientation=vertical]{flex-direction:column}}._1c37dcfaa1ad8cda__indicator{@media not (prefers-reduced-motion){transition-duration:.2s;transition-property:translate,width,height,border-radius,border-block;transition-timing-function:ease-out}outline:2px solid transparent;outline-offset:-1px;pointer-events:none;position:absolute;&[data-orientation=horizontal]{background-color:var(--wpds-color-stroke-interactive-neutral-strong,#6e6e6e);bottom:0;height:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px));left:0;translate:var(--active-tab-left) 0;width:var(--active-tab-width);z-index:1}&[data-orientation=vertical]{background-color:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);border-radius:var(--wpds-border-radius-sm,2px);height:var(--active-tab-height);left:50%;top:0;translate:-50% var(--active-tab-top);width:100%;z-index:0}._7313adbc8a112e90__tablist[data-select-on-move=true]:has(:focus-visible) | |
| 90 | + &{transition:opacity .15s linear .15s}}&:dir(rtl){rotate:180deg}}}}`);var LR={tablist:"_7313adbc8a112e90__tablist","is-overflowing-first":"_9f2ac729c68a735a__is-overflowing-first","is-overflowing-last":"_81c799c1f3cdd261__is-overflowing-last","is-minimal-variant":"_59228b5227f38a99__is-minimal-variant",indicator:"_1c37dcfaa1ad8cda__indicator",tab:"a5fd8814f195aa5e__tab","tab-children":"_5dfc77e6edd345d4__tab-children","tab-chevron":"_4a20e969d15e5ac1__tab-chevron"},Pwe=1,Mwe=(0,tv.forwardRef)(function({children:t,variant:o="default",className:r,activateOnFocus:n,...i},s){let[a,l]=(0,tv.useState)(null),[d,u]=(0,tv.useState)({first:!1,last:!1,isScrolling:!1});(0,tv.useEffect)(()=>{if(!a)return;let p=()=>{let{scrollWidth:_,clientWidth:y,scrollLeft:w}=a,x=Math.max(_-y,0),C=(a.dir||(typeof window<"u"?window.getComputedStyle(a).direction:"ltr"))==="rtl"&&w<0?-w:w,S={first:C>Pwe,last:C<x-Pwe,isScrolling:_>y};u(R=>R.first===S.first&&R.last===S.last&&R.isScrolling===S.isScrolling?R:S)},m=new ResizeObserver(p),g=()=>{m.disconnect(),m.observe(a),a.querySelectorAll('[role="tab"]').forEach(_=>m.observe(_))},h=new MutationObserver(g);h.observe(a,{childList:!0,subtree:!0});let b=!1,v=()=>{b||(requestAnimationFrame(()=>{p(),b=!1}),b=!0)};return a.addEventListener("scroll",v,{passive:!0}),g(),p(),()=>{a.removeEventListener("scroll",v),m.disconnect(),h.disconnect()}},[a]);let f=(0,Bwe.useMergeRefs)([s,p=>l(p)]);return(0,CO.jsxs)(Jc.List,{ref:f,activateOnFocus:n,"data-select-on-move":n?"true":"false",className:U(LR.tablist,d.first&&LR["is-overflowing-first"],d.last&&LR["is-overflowing-last"],LR[`is-${o}-variant`],r),...i,tabIndex:i.tabIndex??(d.isScrolling?-1:void 0),children:[t,(0,CO.jsx)(Jc.Indicator,{className:LR.indicator})]})});var Dwe=c(D(),1);var qi=c(D(),1);var DR=c(T(),1),EO=!1,tX=EO?(0,qi.createContext)(null):null;function unt(){let e=(0,qi.useContext)(tX);(0,qi.useEffect)(()=>{if(e)return e.registerTab()},[e])}function fnt(){}var Awe=EO?unt:fnt;function pnt(){let e=(0,qi.useContext)(tX);(0,qi.useEffect)(()=>{if(e)return e.registerPanel()},[e])}function mnt(){}var Nwe=EO?pnt:mnt;function gnt({children:e}){let t=(0,qi.useRef)(0),o=(0,qi.useRef)(0),r=Eve(()=>{let a=t.current,l=o.current;if(a!==l)throw new Error(`Tabs: Tab/Panel count mismatch (${a} Tabs, ${l} Panels). Each Tab must be associated with exactly one Panel. Mismatched or missing associations can break screen reader navigation and violate WAI-ARIA Tabs pattern requirements.`)}),n=(0,qi.useCallback)(()=>(t.current+=1,r(),()=>{t.current-=1,r()}),[r]),i=(0,qi.useCallback)(()=>(o.current+=1,r(),()=>{o.current-=1,r()}),[r]),s=(0,qi.useMemo)(()=>({registerTab:n,registerPanel:i}),[n,i]);return(0,DR.jsx)(tX.Provider,{value:s,children:e})}function hnt({children:e}){return(0,DR.jsx)(DR.Fragment,{children:e})}var Lwe=EO?gnt:hnt;var zwe=c(T(),1),oX="data-wp-hash";function rX(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&_nt(document)),e.__wpStyleRuntime}function bnt(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${oX}]`))if(o.getAttribute(oX)===t)return!0;return!1}function Vwe(e,t,o){if(!e.head)return;let r=rX(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(bnt(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(oX,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function _nt(e){let t=rX();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Vwe(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 Fwe(e,t){let o=rX();o.styles.set(e,t);for(let r of o.documents.keys())Vwe(r,e,t)}typeof process>"u",Fwe("e8e31009f5","._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);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var vnt={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"};typeof process>"u",Fwe("08122b3d53","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.af79fb116edb0dd7__outset-ring--focus:focus,.dfcfdc28396e5d98__outset-ring--focus-visible:focus-visible,.e5cd9ee879f6403a__outset-ring--focus-within:focus-within,:focus-visible ._81935a08e952f267__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within,.abc777e9713fa711__outset-ring--focus-except-active:focus{outline:none}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.abc777e9713fa711__outset-ring--focus-except-active:focus:not(:active){--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");var ynt={"outset-ring--focus":"af79fb116edb0dd7__outset-ring--focus","outset-ring--focus-visible":"dfcfdc28396e5d98__outset-ring--focus-visible","outset-ring--focus-within":"e5cd9ee879f6403a__outset-ring--focus-within","outset-ring--focus-parent-visible":"_81935a08e952f267__outset-ring--focus-parent-visible","outset-ring--focus-except-active":"abc777e9713fa711__outset-ring--focus-except-active","outset-ring--focus-within-except-active":"_3c9f5ee9fc9c136d__outset-ring--focus-within-except-active"},jwe=(0,Dwe.forwardRef)(function({className:t,...o},r){return Nwe(),(0,zwe.jsx)(Jc.Panel,{ref:r,className:U(vnt.div,ynt["outset-ring--focus-visible"],t),...o})});var Hwe=c(D(),1);var TO=c(T(),1),Uwe=(0,Hwe.forwardRef)(function({...t},o){return(0,TO.jsx)(Yg,{children:(0,TO.jsx)(Lwe,{children:(0,TO.jsx)(Jc.Root,{ref:o,...t})})})});var Wwe=c(D(),1);var VR=c(T(),1),iX="data-wp-hash";function sX(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&xnt(document)),e.__wpStyleRuntime}function wnt(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${iX}]`))if(o.getAttribute(iX)===t)return!0;return!1}function Gwe(e,t,o){if(!e.head)return;let r=sX(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(wnt(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(iX,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function xnt(e){let t=sX();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Gwe(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 knt(e,t){let o=sX();o.styles.set(e,t);for(let r of o.documents.keys())Gwe(r,e,t)}typeof process>"u",knt("54ae3f4680",`@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._7313adbc8a112e90__tablist{--direction-start:left;--direction-end:right;align-items:stretch;display:flex;overflow-inline:auto;overscroll-behavior-inline:none;position:relative;&:dir(rtl){--direction-start:right;--direction-end:left}&[data-orientation=horizontal]{--fade-width:4rem;--fade-gradient-base:transparent 0%,#000 var(--fade-width);--fade-gradient-composed:var(--fade-gradient-base),#000 60%,transparent 50%;width:fit-content;&._9f2ac729c68a735a__is-overflowing-first{mask-image:linear-gradient(to var(--direction-end),var(--fade-gradient-base))}&._81c799c1f3cdd261__is-overflowing-last{mask-image:linear-gradient(to var(--direction-start),var(--fade-gradient-base))}&._9f2ac729c68a735a__is-overflowing-first._81c799c1f3cdd261__is-overflowing-last{mask-image:linear-gradient(to right,var(--fade-gradient-composed)),linear-gradient(to left,var(--fade-gradient-composed))}&._59228b5227f38a99__is-minimal-variant{gap:1rem}}&[data-orientation=vertical]{flex-direction:column}}._1c37dcfaa1ad8cda__indicator{@media not (prefers-reduced-motion){transition-duration:.2s;transition-property:translate,width,height,border-radius,border-block;transition-timing-function:ease-out}outline:2px solid transparent;outline-offset:-1px;pointer-events:none;position:absolute;&[data-orientation=horizontal]{background-color:var(--wpds-color-stroke-interactive-neutral-strong,#6e6e6e);bottom:0;height:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px));left:0;translate:var(--active-tab-left) 0;width:var(--active-tab-width);z-index:1}&[data-orientation=vertical]{background-color:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);border-radius:var(--wpds-border-radius-sm,2px);height:var(--active-tab-height);left:50%;top:0;translate:-50% var(--active-tab-top);width:100%;z-index:0}._7313adbc8a112e90__tablist[data-select-on-move=true]:has(:focus-visible) | |
| 90 | 91 | &[data-orientation=vertical]{border:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));box-sizing:border-box}}.a5fd8814f195aa5e__tab{align-items:center;background:transparent;border:none;border-radius:0;box-shadow:none;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:var(--wpds-cursor-control,pointer);display:flex;flex:1 0 auto;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);font-weight:400;line-height:1.2;outline:none;padding:0;position:relative;white-space:nowrap;z-index:1;&[data-disabled]{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);cursor:default;@media (forced-colors:active){color:GrayText}}&:not([data-disabled]):is(:hover,:focus-visible){color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}&:after{border-radius:var(--wpds-border-radius-sm,2px);opacity:0;outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));pointer-events:none;position:absolute;z-index:-1;@media not (prefers-reduced-motion){transition:opacity .1s linear}}&:focus-visible:after{opacity:1}[data-orientation=horizontal] &{height:48px;padding-inline:var(--wpds-dimension-padding-lg,16px);scroll-margin:24px;&:after{content:"";inset:var(--wpds-dimension-padding-md,12px)}}._59228b5227f38a99__is-minimal-variant[data-orientation=horizontal] &{padding-inline:0;&:after{inset-inline:round(up,var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)),1px)}}[data-orientation=vertical] &{min-height:var(--wpds-dimension-size-lg,40px);padding:var(--wpds-dimension-padding-sm,8px) var(--wpds-dimension-padding-md,12px)}[data-orientation=vertical][data-select-on-move=false] &:after{content:"";inset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}._5dfc77e6edd345d4__tab-children{align-items:center;display:flex;flex-grow:1;[data-orientation=horizontal] &{justify-content:center}[data-orientation=vertical] &{justify-content:start}}._4a20e969d15e5ac1__tab-chevron{flex-shrink:0;margin-inline-end:calc(var(--wpds-dimension-gap-xs, 4px)*-1);opacity:0;[data-orientation=horizontal] &{display:none}[role=tab]:is([aria-selected=true],:focus-visible,:hover) &{opacity:1}@media not (prefers-reduced-motion){[data-select-on-move=true] |
| 91 | 92 | [role=tab]:is([aria-selected=true]) |
| 92 | - &{transition:opacity .15s linear .15s}}&:dir(rtl){rotate:180deg}}}}`);var YY={tablist:"_7313adbc8a112e90__tablist","is-overflowing-first":"_9f2ac729c68a735a__is-overflowing-first","is-overflowing-last":"_81c799c1f3cdd261__is-overflowing-last","is-minimal-variant":"_59228b5227f38a99__is-minimal-variant",indicator:"_1c37dcfaa1ad8cda__indicator",tab:"a5fd8814f195aa5e__tab","tab-children":"_5dfc77e6edd345d4__tab-children","tab-chevron":"_4a20e969d15e5ac1__tab-chevron"},hye=(0,mye.forwardRef)(function({className:t,children:o,...r},n){return nye(),(0,wE.jsxs)(Vc.Tab,{ref:n,className:$(YY.tab,t),...r,children:[(0,wE.jsx)("span",{className:YY["tab-children"],children:o}),(0,wE.jsx)(Xr,{icon:hr,className:YY["tab-chevron"]})]})});var zg=c(q(),1),JE=c(ue(),1),t5=c(te(),1);var pk=c(q(),1),mk=c(F(),1),yye=c(Y(),1),kE=c(T(),1),bye=[(0,mk.createInterpolateElement)((0,pk.__)("While writing, you can press <kbd>/</kbd> to quickly insert new blocks."),{kbd:(0,kE.jsx)("kbd",{})}),(0,mk.createInterpolateElement)((0,pk.__)("Indent a list by pressing <kbd>space</kbd> at the beginning of a line."),{kbd:(0,kE.jsx)("kbd",{})}),(0,mk.createInterpolateElement)((0,pk.__)("Outdent a list by pressing <kbd>backspace</kbd> at the beginning of a line."),{kbd:(0,kE.jsx)("kbd",{})}),(0,pk.__)("Drag files into the editor to automatically insert media blocks."),(0,pk.__)("Change a block's type by pressing the block icon on the toolbar.")];function AXe(){let[e]=(0,mk.useState)(()=>Math.floor(Math.random()*bye.length));return(0,kE.jsx)(yye.Tip,{children:bye[e]})}var vye=AXe;var Vk=c(ce(),1),Xwe=c(F(),1),Qwe=c(q(),1);var Ey=c(Y(),1);var zL=c(te(),1),_ye=c(Mt(),1),Eg=c(q(),1);var wye=c(ce(),1);var hi=c(T(),1),{Badge:MXe}=G(Ey.privateApis);function NXe({children:e,onClick:t}){return t?(0,hi.jsx)(Ey.Button,{__next40pxDefaultSize:!0,className:"block-editor-block-card__parent-select-button",onClick:t,children:e}):e}function LXe({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,_ye.default)("`blockType` property in `BlockCard component`",{since:"5.7",alternative:"`title, icon and description` properties"}),{title:e,icon:t,description:o}=r);let{parentBlockClientId:p,parentBlockName:m}=(0,zL.useSelect)(b=>{if(a||l||!s)return{};let{getBlockParents:v,getBlockName:y,shouldRenderBlockListView:_}=G(b(B)),k=v(d,!1).find(x=>_(x));return{parentBlockClientId:k,parentBlockName:k?y(k):null}},[d,s,l,a]),{selectBlock:g}=(0,zL.useDispatch)(B),h=a?"div":"h2";return(0,hi.jsx)("div",{className:$("block-editor-block-card",{"is-parent":a,"is-child":l},n),children:(0,hi.jsxs)(Ke,{direction:"column",gap:"sm",children:[(0,hi.jsxs)(Ke,{direction:"row",align:"center",justify:"space-between",children:[(0,hi.jsxs)(Ke,{direction:"row",align:"center",justify:"flex-start",children:[p&&(0,hi.jsx)(Ey.Button,{onClick:()=>g(p),label:m?(0,Eg.sprintf)((0,Eg.__)('Go to "%s" block'),(0,wye.getBlockType)(m)?.title):(0,Eg.__)("Go to parent block"),style:{minWidth:24,padding:0},icon:(0,Eg.isRTL)()?hr:ai,size:"small"}),l&&(0,hi.jsx)("span",{className:"block-editor-block-card__child-indicator-icon",children:(0,hi.jsx)(Ey.Icon,{icon:(0,Eg.isRTL)()?N0:L0})}),(0,hi.jsxs)(NXe,{onClick:a?()=>{g(a)}:void 0,children:[(0,hi.jsx)(Nt,{icon:t,showColors:!0}),(0,hi.jsxs)(Ke,{direction:"column",gap:"xs",children:[(0,hi.jsxs)(h,{className:"block-editor-block-card__title",children:[(0,hi.jsx)("span",{className:"block-editor-block-card__name",children:i?.length?i:e}),!a&&!l&&!!i?.length&&(0,hi.jsx)(MXe,{children:e})]}),u]})]})]}),f]}),!a&&!l&&o&&(0,hi.jsx)(cs,{className:"block-editor-block-card__description",children:o})]})})}var xE=LXe;var TD=c(ue(),1),zK=c(te(),1),Oy=c(F(),1),FK=c(Mt(),1);var Uye=c(te(),1),Tg=c(F(),1),Wye=c(Y(),1),Gc=c(xye(),1);var Sye=c(F(),1),gk=c(te(),1),Cye=c(ue(),1);var jL=c(T(),1);function DXe(e,t,o){if(!o)return t;let r=e.get(t);return r||(r=(0,gk.createRegistry)({},t),r.registerStore(br,O_),e.set(t,r)),r}var VXe=(0,Cye.createHigherOrderComponent)(e=>function({useSubRegistry:o=!0,...r}){let n=(0,gk.useRegistry)(),[i]=(0,Sye.useState)(()=>new WeakMap),s=DXe(i,n,o);return s===n?(0,jL.jsx)(e,{registry:n,...r}):(0,jL.jsx)(gk.RegistryProvider,{value:s,children:(0,jL.jsx)(e,{registry:s,...r})})},"withRegistryProvider"),Eye=VXe;var ps=c(F(),1),Iye=c(te(),1),Pye=c(ce(),1);var Tye=c(F(),1),FXe=()=>{},HL=(0,Tye.createContext)({getSelection:()=>{},onChangeSelection:FXe});var Rye=()=>{};function Oye(e,t){let o=(0,Pye.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=>Oye(r,t))),o}function Aye(e,t){return e.map(o=>{let r=t.internalToExternal.get(o.clientId);return{...o,clientId:r??o.clientId,innerBlocks:Aye(o.innerBlocks,t)}})}function Bye(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 UL({clientId:e=null,value:t,onChange:o=Rye,onInput:r=Rye}){let n=(0,Iye.useRegistry)(),{getSelection:i,onChangeSelection:s}=(0,ps.useContext)(HL),{resetBlocks:a,resetSelection:l,replaceInnerBlocks:u,setHasControlledInnerBlocks:d,__unstableMarkNextChangeAsNotPersistent:f}=n.dispatch(B),{getBlockName:p,getBlocks:m,getSelectionStart:g,getSelectionEnd:h}=n.select(B),b=(0,ps.useRef)({incoming:null,outgoing:[]}),v=(0,ps.useRef)(!1),y=(0,ps.useRef)({externalToInternal:new Map,internalToExternal:new Map}),_=(0,ps.useRef)(null),w=(0,ps.useRef)(!1),k=()=>{let E=i();if(!E?.selectionStart?.clientId||E===_.current)return;let I=E.selectionStart.clientId;if(e?y.current.externalToInternal.has(I):!!p(I)){_.current=E;let A=P=>!P?.clientId||!e?P:{...P,clientId:y.current.externalToInternal.get(P.clientId)??P.clientId};w.current=!0,l(A(E.selectionStart),A(E.selectionEnd),E.initialPosition),w.current=!1}},x=()=>{t&&(e?n.batch(()=>{y.current.externalToInternal.clear(),y.current.internalToExternal.clear();let E=t.map(I=>Oye(I,y.current));f({history:"ignore"}),d(e,!0),v.current&&(b.current.incoming=E),f({history:"ignore"}),u(e,E),_.current=null}):(v.current&&(b.current.incoming=t),f({history:"ignore"}),a(t)))},S=()=>{e?(f({history:"ignore"}),d(e,!1),f({history:"ignore"}),u(e,[])):(f({history:"ignore"}),a([]))},C=(0,ps.useRef)(r),R=(0,ps.useRef)(o);(0,ps.useEffect)(()=>{C.current=r,R.current=o},[r,o]),(0,ps.useEffect)(()=>{let E=b.current.outgoing.includes(t),I=m(e)===t;E?b.current.outgoing[b.current.outgoing.length-1]===t&&(b.current.outgoing=[]):I||(b.current.outgoing=[],x(),k())},[t,e]),(0,ps.useEffect)(()=>{let{getSelectedBlocksInitialCaretPosition:E,isLastBlockChangePersistent:I,__unstableGetLastBlockChangeHistoryMode:O,__unstableIsLastBlockChangeIgnored:A,areInnerBlocksControlled:P,getBlockParents:L}=n.select(B),H=m(e),N=I(),M=O(),V=!1,j=g(),D=h();v.current=!0;let z=n.subscribe(()=>{if(e!==null&&p(e)===null)return;let W=I(),ee=O(),J=m(e),U=J!==H;if(H=J,U&&(b.current.incoming||A())){b.current.incoming=null,N=W,M=ee;return}let Z=U||V&&!U&&W&&!N,K=g(),X=h(),oe=K!==j||X!==D;oe&&(j=K,D=X),(Z||oe)&&n.batch(()=>{if(Z){N=W,M=ee;let ie=e?Aye(H,y.current):H,se={selectionStart:K,selectionEnd:X,initialPosition:E()},be=e?Bye(se,y.current):se;b.current.outgoing.push(ie);let pe=N?R.current:C.current,ke={selection:be};M==="ignore"&&(ke.undoIgnore=!0),pe(ie,ke)}if(oe&&!Z&&K?.clientId&&!w.current&&(e?y.current.internalToExternal.has(K.clientId):!L(K.clientId).some(se=>P(se)))){let se={selectionStart:K,selectionEnd:X,initialPosition:E()};s(e?Bye(se,y.current):se)}}),V=U},B);return()=>{v.current=!1,z()}},[n,e]),(0,ps.useEffect)(()=>()=>{S()},[])}var Mye=c(F(),1),Nye=c(te(),1),Lye=c(pl(),1),Jr=c(q(),1);function Dye(){return null}function zXe(){let{registerShortcut:e,unregisterShortcut:t}=(0,Nye.useDispatch)(Lye.store),[o]=je("blockVisibility.allowEditing");return(0,Mye.useEffect)(()=>{e({name:"core/block-editor/copy",category:"block",description:(0,Jr.__)("Copy the selected block(s)."),keyCombination:{modifier:"primary",character:"c"}}),e({name:"core/block-editor/cut",category:"block",description:(0,Jr.__)("Cut the selected block(s)."),keyCombination:{modifier:"primary",character:"x"}}),e({name:"core/block-editor/paste",category:"block",description:(0,Jr.__)("Paste the selected block(s)."),keyCombination:{modifier:"primary",character:"v"}}),e({name:"core/block-editor/duplicate",category:"block",description:(0,Jr.__)("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:(0,Jr.__)("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/paste-styles",category:"block",description:(0,Jr.__)("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,Jr.__)("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,Jr.__)("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,Jr.__)("Delete selection."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/stop-editing-as-blocks",category:"block",description:(0,Jr.__)("Finish editing a design."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/select-all",category:"selection",description:(0,Jr.__)("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,Jr.__)("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/multi-text-selection",category:"selection",description:(0,Jr.__)("Select text across multiple blocks."),keyCombination:{modifier:"shift",character:"arrow"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:(0,Jr.__)("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}}),e({name:"core/block-editor/move-up",category:"block",description:(0,Jr.__)("Move the selected block(s) up."),keyCombination:{modifier:"secondary",character:"t"}}),e({name:"core/block-editor/move-down",category:"block",description:(0,Jr.__)("Move the selected block(s) down."),keyCombination:{modifier:"secondary",character:"y"}}),e({name:"core/block-editor/collapse-list-view",category:"list-view",description:(0,Jr.__)("Collapse all other items."),keyCombination:{modifier:"alt",character:"l"}}),e({name:"core/block-editor/group",category:"block",description:(0,Jr.__)("Create a group block from the selected multiple blocks."),keyCombination:{modifier:"primary",character:"g"}}),o===!1?t("core/block-editor/toggle-block-visibility"):e({name:"core/block-editor/toggle-block-visibility",category:"block",description:(0,Jr.__)("Show or hide the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"h"}}),e({name:"core/block-editor/rename",category:"block",description:(0,Jr.__)("Rename the selected block."),keyCombination:{modifier:"primaryAlt",character:"r"}})},[e,t,o]),null}Dye.Register=zXe;var WL=Dye;var bk=c(F(),1),Ty=c(te(),1),GL=c(pl(),1),hk=c(ce(),1),ZY=c(Y_(),1);var Ry=c(T(),1);function jXe(){return(0,Ty.useSelect)(e=>G(e(hk.store)).getBlockKeyboardShortcuts(),[])}function HXe(){let{getBlock:e,getBlockName:t,getBlockAttributes:o,getBlockEditingMode:r,getSelectedBlockClientId:n}=(0,Ty.useSelect)(B),{getBlockVariations:i,getActiveBlockVariation:s}=(0,Ty.useSelect)(hk.store),{replaceBlocks:a,updateBlockAttributes:l}=(0,Ty.useDispatch)(B);return(0,bk.useCallback)(({targetBlockName:u,blockNames:d,variationName:f})=>{let p=n();if(!p||r(p)!=="default")return!1;let m=t(p);if(!d.includes(m))return!1;let g=f?i(u)?.find(({name:v})=>v===f):void 0;if(m===u)return g?.attributes?(s(u,o(p))?.name!==f&&l(p,g.attributes),!0):!1;let h=e(p);if(!h)return!1;let b=g?(0,hk.switchToBlockType)(h,u,g.name):null;return b||(b=(0,hk.switchToBlockType)(h,u),b&&g?.attributes&&(b=b.map(v=>v.name===u?{...v,attributes:{...v.attributes,...g.attributes}}:v))),b?(a(p,b),!0):!1},[e,t,o,r,n,i,s,a,l])}function UXe({entry:e,apply:t}){return(0,GL.useShortcut)(e.name,o=>{o.defaultPrevented||t(e)&&o.preventDefault()}),null}function WXe({shortcuts:e}){let{registerShortcut:t,unregisterShortcut:o}=(0,Ty.useDispatch)(GL.store),r=(0,bk.useRef)(new Map);return(0,bk.useEffect)(()=>{let n=new Map,i=new Map;for(let s of e){let a={name:s.name,category:"block",description:s.description,keyCombination:s.keyCombination,aliases:s.aliases},l=JSON.stringify(a),u=n.get(s.name);if(u!==void 0){u!==l&&(0,ZY.default)(`Block keyboard shortcut "${s.name}" is declared more than once with different settings.`);continue}let{modifier:d,character:f}=s.keyCombination,p=`${d??""}+${f}`;i.has(p)&&(0,ZY.default)(`Block keyboard shortcut "${s.name}" uses the same key combination as "${i.get(p)}".`),i.set(p,s.name),t(a),n.set(s.name,l)}for(let s of r.current.keys())n.has(s)||o(s);r.current=n},[e,t,o]),null}function Vye(){let e=jXe(),t=HXe();return(0,Ry.jsxs)(Ry.Fragment,{children:[(0,Ry.jsx)(WXe,{shortcuts:e}),e.map((o,r)=>(0,Ry.jsx)(UXe,{entry:o,apply:t},`${o.name}-${r}`))]})}var Fye=c(F(),1);function GXe(e={}){return(0,Fye.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,imageStripMeta:e.imageStripMeta,imageMaxBitDepth:e.imageMaxBitDepth}),[e])}var zye=GXe;var Ia=c(T(),1),$L=()=>{},jye=!1,yk=null,vk=null,Hye=["image/heic","image/heif"];function Gye(){if(yk!==null)return yk;if(!window.__clientSideMediaProcessing||typeof Gc.detectClientSideMediaSupport!="function")return yk=!1,!1;let e=(0,Gc.detectClientSideMediaSupport)();return!e||!e.supported?(jye||(console.info(`Client-side media processing unavailable: ${e.reason}. Using server-side processing.`),jye=!0),yk=!1,!1):(yk=!0,!0)}function $Xe(){return vk!==null?vk:Gye()||!window.__clientSideMediaProcessing||typeof Gc.isHeicCanvasSupported!="function"||!(0,Gc.isHeicCanvasSupported)()?(vk=!1,!1):(vk=!0,!0)}function YXe(e,t,{allowedTypes:o,additionalData:r={},filesList:n,onError:i=$L,onFileChange:s,onSuccess:a,onBatchSuccess:l}){e.dispatch(Gc.store).addItems({files:Array.from(n),onChange:s,onSuccess:u=>{t?.[O0]?.(u),a?.(u)},onBatchSuccess:l,onError:u=>i(typeof u=="string"?u:u?.message??""),additionalData:r,allowedTypes:o})}function KXe(e,t,{allowedTypes:o,additionalData:r={},filesList:n,onError:i=$L,onFileChange:s,onSuccess:a,onBatchSuccess:l}){let u=Array.from(n),d=u.filter(h=>Hye.includes(h.type)),f=u.filter(h=>!Hye.includes(h.type)),p=d.length>0&&f.length>0&&t?.mediaUpload,m=p?2:1,g=p?()=>{m--,m<=0&&l?.()}:l;d.length>0&&e.dispatch(Gc.store).addItems({files:d,onChange:s,onSuccess:h=>{t?.[O0]?.(h),a?.(h)},onBatchSuccess:g,onError:h=>i(typeof h=="string"?h:h?.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:g})}function qXe(e){return UL(e),null}var _k=Eye(e=>{let{settings:t,registry:o,stripExperimentalSettings:r=!1}=e,n=zye(t),i=Gye(),s=$Xe(),a=i||s,l=!!t?.mediaUpload?.__isMediaUploadInterceptor,u=(0,Tg.useMemo)(()=>{if(a&&t?.mediaUpload&&!l){let v=(i?YXe:KXe).bind(null,o,t);return v.__isMediaUploadInterceptor=!0,{...t,mediaUpload:v}}return t},[t,o,a,i,l]),{__experimentalUpdateSettings:d}=G((0,Uye.useDispatch)(B));(0,Tg.useEffect)(()=>{d({...u,__internalIsInitialized:!0},{stripExperimentalSettings:r,reset:!0})},[u,r,d]);let f=(0,Tg.useRef)(e.selection);f.current=e.selection;let p=(0,Tg.useRef)(e.onChangeSelection??$L);p.current=e.onChangeSelection??$L;let m=(0,Tg.useMemo)(()=>({getSelection:()=>f.current,onChangeSelection:(...b)=>p.current(...b)}),[]),g=(0,Ia.jsxs)(Wye.SlotFillProvider,{passthrough:!0,children:[!u?.isPreviewMode&&(0,Ia.jsxs)(Ia.Fragment,{children:[(0,Ia.jsx)(WL.Register,{}),(0,Ia.jsx)(Vye,{})]}),(0,Ia.jsx)(Fne,{children:e.children})]}),h=(0,Ia.jsxs)(HL.Provider,{value:m,children:[(0,Ia.jsx)(qXe,{clientId:e.clientId,value:e.value,onChange:e.onChange,onInput:e.onInput}),g]});return a&&!l?(0,Ia.jsx)(Gc.MediaUploadProvider,{settings:n,useSubRegistry:!1,children:h}):h}),ZXe=e=>(0,Ia.jsx)(_k,{...e,stripExperimentalSettings:!0,children:e.children}),$ye=ZXe;var UE=c(ue(),1),jwe=c(te(),1),ED=c(F(),1),Hwe=c(Y(),1);var Fve=c(re(),1),By=c(F(),1),zve=c(q(),1),Zf=c(ue(),1),jve=c(Y(),1),rK=c(te(),1);var Pve=c(te(),1),tK=c(q(),1),RE=c(ue(),1),Ove=c(F(),1);var KL=c(te(),1),Xye=c(ue(),1);var Kye=c(q(),1),qye=c(Lt(),1),Bl=c(ce(),1);var Yye=c(Lt(),1);function XXe(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 QXe(e){let t="<meta charset='utf-8'>";return e.startsWith(t)?e.slice(t.length):e}function wk({clipboardData:e}){let t="",o="";try{t=e.getData("text/plain"),o=e.getData("text/html")}catch{return}o=XXe(o),o=QXe(o);let r=(0,Yye.getFilesFromDataTransfer)(e);return r.length&&!JXe(r,o)?{files:r}:{html:o,plainText:t,files:[]}}function JXe(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 XY=Symbol("requiresWrapperOnCopy");function YL(e,t,o){let r=t,[n]=t;if(n&&o.select(Bl.store).getBlockType(n.name)[XY]){let{getBlockRootClientId:a,getBlockName:l,getBlockAttributes:u}=o.select(B),d=a(n.clientId),f=l(d);f&&(r=(0,Bl.createBlock)(f,u(d),r))}let i=(0,Bl.serialize)(r);e.clipboardData.setData("text/plain",eQe(i)),e.clipboardData.setData("text/html",i)}function Zye(e,t){let{plainText:o,html:r,files:n}=wk(e),i=[];if(n.length){let s=(0,Bl.getBlockTransforms)("from");i=n.reduce((a,l)=>{let u=(0,Bl.findTransform)(s,d=>d.type==="files"&&d.isMatch([l]));return u&&a.push(u.transform([l])),a},[]).flat()}else i=(0,Bl.pasteHandler)({HTML:r,plainText:o,mode:"BLOCKS",canUserUseUnfilteredHTML:t});return i}function eQe(e){return e=e.replace(/<br>/g,` | |
| 93 | -`),(0,qye.__unstableStripHTML)(e).trim().replace(/\n\n+/g,` | |
| 93 | + &{transition:opacity .15s linear .15s}}&:dir(rtl){rotate:180deg}}}}`);var nX={tablist:"_7313adbc8a112e90__tablist","is-overflowing-first":"_9f2ac729c68a735a__is-overflowing-first","is-overflowing-last":"_81c799c1f3cdd261__is-overflowing-last","is-minimal-variant":"_59228b5227f38a99__is-minimal-variant",indicator:"_1c37dcfaa1ad8cda__indicator",tab:"a5fd8814f195aa5e__tab","tab-children":"_5dfc77e6edd345d4__tab-children","tab-chevron":"_4a20e969d15e5ac1__tab-chevron"},$we=(0,Wwe.forwardRef)(function({className:t,children:o,...r},n){return Awe(),(0,VR.jsxs)(Jc.Tab,{ref:n,className:U(nX.tab,t),...r,children:[(0,VR.jsx)("span",{className:nX["tab-children"],children:o}),(0,VR.jsx)(fo,{icon:yr,className:nX["tab-chevron"]})]})});var Ywe=c($b(),1),Kwe=c(ce(),1),qwe=c(oe(),1),IO=c(D(),1),Xwe=c(ue(),1);var RO=c(oe(),1);function aX(e){return!e||Object.keys(e).length===0}function yp(e){let{clientId:t}=Mt(),o=e||t,{updateBlockAttributes:r}=(0,RO.useDispatch)(P),{getBlockAttributes:n}=(0,RO.useRegistry)().select(P);return{updateBlockBindings:a=>{let{metadata:{bindings:l,...d}={}}=n(o),u={...l};Object.entries(a).forEach(([p,m])=>{if(!m&&u[p]){delete u[p];return}u[p]=m});let f={...d,bindings:u};aX(f.bindings)&&delete f.bindings,r(o,{metadata:aX(f)?void 0:f})},removeAllBlockBindings:()=>{let{metadata:{bindings:a,...l}={}}=n(o);r(o,{metadata:aX(l)?void 0:l})}}}var Vl=c(T(),1);function Snt({args:e,attribute:t,field:o,source:r,sourceKey:n}){let i=(0,IO.useMemo)(()=>({source:n,args:o.args||{key:o.key}}),[o.args,o.key,n]),s=(0,IO.useContext)(Oi),a=(0,qwe.useSelect)(d=>r.getValues({select:d,context:s,bindings:{[t]:i}}),[t,s,i,r]),{updateBlockBindings:l}=yp();return(0,Vl.jsxs)(Ho.CheckboxItem,{onCheckedChange:d=>{l({[t]:d?i:void 0})},checked:(0,Ywe.default)(e,o.args)??o.key===e?.key,children:[(0,Vl.jsx)(Ho.ItemLabel,{children:o.label}),(0,Vl.jsx)(Ho.ItemDescription,{children:a[t]})]})}function FR({args:e,attribute:t,sourceKey:o,fields:r}){let n=(0,Xwe.useViewportMatch)("medium","<");if(!r||r.length===0)return null;let i=(0,Kwe.getBlockBindingsSource)(o);return(0,Vl.jsxs)(Ho.SubmenuRoot,{children:[(0,Vl.jsx)(Ho.SubmenuTrigger,{children:(0,Vl.jsx)(Ho.ItemLabel,{children:i.label})}),(0,Vl.jsx)(Ho.Popup,{positioner:(0,Vl.jsx)(Ho.Positioner,{side:n?"bottom":"inline-start",align:"start",sideOffset:8,alignOffset:-4}),children:(0,Vl.jsx)(Ho.Group,{children:r.map(s=>(0,Vl.jsx)(Snt,{args:e,attribute:t,field:s,source:i,sourceKey:o},o+JSON.stringify(s.args)||s.key))})})]},o)}var Fl=c(T(),1);function zR({attribute:e,binding:t,blockName:o}){let{updateBlockBindings:r}=yp(),n=(0,Jwe.useViewportMatch)("medium","<"),i=(0,Qwe.useContext)(Oi),s=(0,lX.useSelect)(h=>{let{getAllBlockBindingsSources:b,getBlockBindingsSourceFieldsList:v,getBlockType:_}=Z(h(BO.store)),y=_(o).attributes?.[e];if(y?.enum)return{};let w=y?.type==="rich-text"?"string":y?.type,x={};return Object.entries(b()).forEach(([k,C])=>{let S=v(C,i);if(!S?.length)return;let R=S.filter(E=>E.type===w);R.length&&(x[k]=R)}),x},[e,o,i]),{canUpdateBlockBindings:a}=(0,lX.useSelect)(h=>({canUpdateBlockBindings:h(P).getSettings().canUpdateBlockBindings})),l=Object.keys(s).length>0,d=!a||!l,{source:u,args:f}=t||{},p=(0,BO.getBlockBindingsSource)(u),m,g=!0;return t===void 0?(l?m=(0,PO.__)("Not connected"):m=(0,PO.__)("No sources available"),g=!0):p?m=s?.[u]?.find(h=>(0,Zwe.default)(h.args,f))?.label||p?.label||u:(g=!1,m=(0,PO.__)("Source not registered")),(0,Fl.jsx)(wp.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:e,onDeselect:!!l&&(()=>{r({[e]:void 0})}),children:(0,Fl.jsxs)(Ho.Root,{disabled:!l,children:[(0,Fl.jsx)(Ho.Trigger,{render:(0,Fl.jsx)(wp.__experimentalItem,{}),children:(0,Fl.jsxs)(wp.__experimentalVStack,{className:"block-editor-bindings__item",spacing:0,children:[(0,Fl.jsx)(wp.__experimentalText,{truncate:!0,children:e}),(0,Fl.jsx)(wp.__experimentalText,{truncate:!0,variant:g?"muted":void 0,isDestructive:!g,children:m})]})}),!d&&(0,Fl.jsx)(Ho.Popup,{positioner:(0,Fl.jsx)(Ho.Positioner,{side:n?"bottom":"inline-start",align:"start",sideOffset:n?8:36}),children:Object.entries(s).map(([h,b])=>(0,Fl.jsx)(FR,{args:t?.args,attribute:e,sourceKey:h,fields:b},h))})]})})}var e0e=c(X(),1),t0e=c(Q(),1);var o0e=c(T(),1);function Cnt({isActive:e,label:t=(0,e0e.__)("Full height"),onToggle:o,isDisabled:r}){return(0,o0e.jsx)(t0e.ToolbarButton,{isActive:e,icon:Uj,label:t,onClick:()=>o(!e),disabled:r})}var r0e=Cnt;var i0e=c(X(),1),s0e=c(Mo(),1),ov=c(Q(),1),jR=c(T(),1),Ent=()=>{};function Tnt(e){let{label:t=(0,i0e.__)("Change matrix alignment"),onChange:o=Ent,value:r="center",isDisabled:n}=e,i=(0,jR.jsx)(ov.AlignmentMatrixControl.Icon,{value:r});return(0,jR.jsx)(ov.Dropdown,{popoverProps:{placement:"bottom-start"},renderToggle:({onToggle:s,isOpen:a})=>(0,jR.jsx)(ov.ToolbarButton,{onClick:s,"aria-haspopup":"true","aria-expanded":a,onKeyDown:d=>{!a&&d.keyCode===s0e.DOWN&&(d.preventDefault(),s())},label:t,icon:i,showTooltip:!0,disabled:n}),renderContent:()=>(0,jR.jsx)(ov.AlignmentMatrixControl,{onChange:o,value:r})})}var a0e=Tnt;var uX=c(Q(),1),AO=c(oe(),1),NO=c(X(),1);var m0e=c(D(),1);var l0e=c(oe(),1),OO=c(ce(),1);function xs({clientId:e,maximumLength:t,context:o}){let r=(0,l0e.useSelect)(n=>{if(!e)return null;let{getBlockName:i,getBlockAttributes:s,getBlock:a}=n(P),{getBlockType:l,getActiveBlockVariation:d}=n(OO.store),u=i(e),f=l(u);if(!f)return null;let p=s(e),m=(0,OO.__experimentalGetBlockLabel)(f,p,o);return m!==f.title?m:d(u,p,void 0,a?.(e)?.innerContent)?.title||f.title},[e,o]);return r?t&&t>0&&r.length>t?r.slice(0,t-3)+"...":r:null}function HR({clientId:e,maximumLength:t,context:o}){return xs({clientId:e,maximumLength:t,context:o})}var rv=c(D(),1),u0e=c(ue(),1);var MO=c(D(),1),cX=c(ue(),1),c0e=c(T(),1),za=(0,MO.createContext)({refsMap:(0,cX.observableMap)(),eventHandlers:new Map});za.displayName="BlockRefsContext";function d0e({children:e}){let t=(0,MO.useMemo)(()=>({refsMap:(0,cX.observableMap)(),eventHandlers:new Map}),[]);return(0,c0e.jsx)(za.Provider,{value:t,children:e})}function f0e(e){let{refsMap:t}=(0,rv.useContext)(za);return(0,u0e.useRefEffect)(o=>(t.set(e,o),()=>t.delete(e)),[e])}function dX(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function nv(e,t){let{refsMap:o}=(0,rv.useContext)(za);(0,rv.useLayoutEffect)(()=>{dX(t,o.get(e));let r=o.subscribe(e,()=>dX(t,o.get(e)));return()=>{r(),dX(t,null)}},[o,e,t])}function eo(e){let[t,o]=(0,rv.useState)(null);return nv(e,o),t}function p0e(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 ja=c(T(),1);function Rnt({rootLabelText:e}){let{selectBlock:t,clearSelectedBlock:o}=(0,AO.useDispatch)(P),{clientId:r,parents:n,hasSelection:i}=(0,AO.useSelect)(l=>{let{getSelectionStart:d,getSelectedBlockClientId:u,getEnabledBlockParents:f}=Z(l(P)),p=u();return{parents:f(p),clientId:p,hasSelection:!!d().clientId}},[]),s=e||(0,NO._x)("Document","noun, breadcrumb"),a=(0,m0e.useRef)();return nv(r,a),(0,ja.jsxs)("ul",{className:"block-editor-block-breadcrumb",role:"list","aria-label":(0,NO.__)("Block breadcrumb"),children:[(0,ja.jsxs)("li",{className:i?void 0:"block-editor-block-breadcrumb__current","aria-current":i?void 0:"true",children:[i&&(0,ja.jsx)(uX.Button,{size:"small",className:"block-editor-block-breadcrumb__button",onClick:()=>{let l=a.current?.closest(".editor-styles-wrapper");o(),p0e(l)?.focus()},children:s}),!i&&(0,ja.jsx)("span",{children:s}),!!r&&(0,ja.jsx)(St,{icon:nu,className:"block-editor-block-breadcrumb__separator"})]}),n.map(l=>(0,ja.jsxs)("li",{children:[(0,ja.jsx)(uX.Button,{size:"small",className:"block-editor-block-breadcrumb__button",onClick:()=>t(l),children:(0,ja.jsx)(HR,{clientId:l,maximumLength:35,context:"breadcrumb"})}),(0,ja.jsx)(St,{icon:nu,className:"block-editor-block-breadcrumb__separator"})]},l)),!!r&&(0,ja.jsx)("li",{className:"block-editor-block-breadcrumb__current","aria-current":"true",children:(0,ja.jsx)(HR,{clientId:r,maximumLength:35,context:"breadcrumb"})})]})}var g0e=Rnt;var h0e=c(oe(),1);function b0e(e){return(0,h0e.useSelect)(t=>{let{__unstableHasActiveBlockOverlayActive:o}=t(P);return o(e)},[e])}var FN=c(ue(),1),m3e=c(D(),1),g3e=c(oe(),1),h3e=c(Q(),1);var Ql=c(oe(),1),gA=c(ue(),1),Fp=c(D(),1),J5=c(ce(),1);var Cp=c(D(),1),to=c(ce(),1),Cke=c(Q(),1),S8=c(oe(),1),C8=c(ue(),1),Eke=c(Ut(),1);var rh=c(X(),1),DO=c(Q(),1),iv=c(D(),1),WR=c(ce(),1),VO=c(oe(),1);var UR=class{diff(t,o,r={}){let n;typeof r=="function"?(n=r,r={}):"callback"in r&&(n=r.callback);let i=this.castInput(t,r),s=this.castInput(o,r),a=this.removeEmpty(this.tokenize(i,r)),l=this.removeEmpty(this.tokenize(s,r));return this.diffWithOptionsObj(a,l,r,n)}diffWithOptionsObj(t,o,r,n){var i;let s=_=>{if(_=this.postProcess(_,r),n){setTimeout(function(){n(_)},0);return}else return _},a=o.length,l=t.length,d=1,u=a+l;r.maxEditLength!=null&&(u=Math.min(u,r.maxEditLength));let f=(i=r.timeout)!==null&&i!==void 0?i:1/0,p=Date.now()+f,m=[{oldPos:-1,lastComponent:void 0}],g=this.extractCommon(m[0],o,t,0,r);if(m[0].oldPos+1>=l&&g+1>=a)return s(this.buildValues(m[0].lastComponent,o,t));let h=-1/0,b=1/0,v=()=>{for(let _=Math.max(h,-d);_<=Math.min(b,d);_+=2){let y,w=m[_-1],x=m[_+1];w&&(m[_-1]=void 0);let k=!1;if(x){let S=x.oldPos-_;k=x&&0<=S&&S<a}let C=w&&w.oldPos+1<l;if(!k&&!C){m[_]=void 0;continue}if(!C||k&&w.oldPos<x.oldPos?y=this.addToPath(x,!0,!1,0,r):y=this.addToPath(w,!1,!0,1,r),g=this.extractCommon(y,o,t,_,r),y.oldPos+1>=l&&g+1>=a)return s(this.buildValues(y.lastComponent,o,t))||!0;m[_]=y,y.oldPos+1>=l&&(b=Math.min(b,_-1)),g+1>=a&&(h=Math.max(h,_+1))}d++};if(n)(function _(){setTimeout(function(){if(d>u||Date.now()>p)return n(void 0);v()||_()},0)})();else for(;d<=u&&Date.now()<=p;){let _=v();if(_)return _}}addToPath(t,o,r,n,i){let s=t.lastComponent;return s&&!i.oneChangePerToken&&s.added===o&&s.removed===r?{oldPos:t.oldPos+n,lastComponent:{count:s.count+1,added:o,removed:r,previousComponent:s.previousComponent}}:{oldPos:t.oldPos+n,lastComponent:{count:1,added:o,removed:r,previousComponent:s}}}extractCommon(t,o,r,n,i){let s=o.length,a=r.length,l=t.oldPos,d=l-n,u=0;for(;d+1<s&&l+1<a&&this.equals(r[l+1],o[d+1],i);)d++,l++,u++,i.oneChangePerToken&&(t.lastComponent={count:1,previousComponent:t.lastComponent,added:!1,removed:!1});return u&&!i.oneChangePerToken&&(t.lastComponent={count:u,previousComponent:t.lastComponent,added:!1,removed:!1}),t.oldPos=l,d}equals(t,o,r){return r.comparator?r.comparator(t,o):t===o||!!r.ignoreCase&&t.toLowerCase()===o.toLowerCase()}removeEmpty(t){let o=[];for(let r=0;r<t.length;r++)t[r]&&o.push(t[r]);return o}castInput(t,o){return t}tokenize(t,o){return Array.from(t)}join(t){return t.join("")}postProcess(t,o){return t}get useLongestToken(){return!1}buildValues(t,o,r){let n=[],i;for(;t;)n.push(t),i=t.previousComponent,delete t.previousComponent,t=i;n.reverse();let s=n.length,a=0,l=0,d=0;for(;a<s;a++){let u=n[a];if(u.removed)u.value=this.join(r.slice(d,d+u.count)),d+=u.count;else{if(!u.added&&this.useLongestToken){let f=o.slice(l,l+u.count);f=f.map(function(p,m){let g=r[d+m];return g.length>p.length?g:p}),u.value=this.join(f)}else u.value=this.join(o.slice(l,l+u.count));l+=u.count,u.added||(d+=u.count)}}return n}};var fX=class extends UR{},v0e=new fX;function pX(e,t,o){return v0e.diff(e,t,o)}var LO=c(X(),1),k0e=c(ce(),1);var y0e=c(Q(),1),w0e=c(D(),1),x0e=c(Ut(),1),Bu=c(T(),1);function mX({title:e,rawContent:t,renderedContent:o,action:r,actionText:n,className:i}){return(0,Bu.jsxs)("div",{className:i,children:[(0,Bu.jsxs)("div",{className:"block-editor-block-compare__content",children:[(0,Bu.jsx)("h2",{className:"block-editor-block-compare__heading",children:e}),(0,Bu.jsx)("div",{className:"block-editor-block-compare__html",children:t}),(0,Bu.jsx)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor",children:(0,Bu.jsx)(w0e.RawHTML,{children:(0,x0e.safeHTML)(o)})})]}),(0,Bu.jsx)("div",{className:"block-editor-block-compare__action",children:(0,Bu.jsx)(y0e.Button,{__next40pxDefaultSize:!0,variant:"secondary",tabIndex:"0",onClick:r,children:n})})]})}var lx=c(T(),1);function Int({block:e,onKeep:t,onConvert:o,convertor:r,convertButtonText:n}){function i(d,u){return pX(d,u).map((p,m)=>{let g=U({"block-editor-block-compare__added":p.added,"block-editor-block-compare__removed":p.removed});return(0,lx.jsx)("span",{className:g,children:p.value},m)})}function s(d){return(Array.isArray(d)?d:[d]).map(p=>(0,k0e.getSaveContent)(p.name,p.attributes,p.innerBlocks)).join("")}let a=s(r(e)),l=i(e.originalContent,a);return(0,lx.jsxs)("div",{className:"block-editor-block-compare__wrapper",children:[(0,lx.jsx)(mX,{title:(0,LO.__)("Current"),className:"block-editor-block-compare__current",action:t,actionText:(0,LO.__)("Convert to HTML"),rawContent:e.originalContent,renderedContent:e.originalContent}),(0,lx.jsx)(mX,{title:(0,LO.__)("After Conversion"),className:"block-editor-block-compare__converted",action:o,actionText:n,rawContent:l,renderedContent:a})]})}var S0e=Int;var xp=c(T(),1),C0e=e=>(0,WR.rawHandler)({HTML:e.originalContent});function E0e({clientId:e}){let{block:t,canInsertHTMLBlock:o}=(0,VO.useSelect)(d=>{let{canInsertBlockType:u,getBlock:f,getBlockRootClientId:p}=d(P),m=p(e);return{block:f(e),canInsertHTMLBlock:u("core/html",m)}},[e]),{replaceBlock:r}=(0,VO.useDispatch)(P),[n,i]=(0,iv.useState)(!1),s=(0,iv.useCallback)(()=>i(!1),[]),a=(0,iv.useMemo)(()=>({toHTML(){let d=(0,WR.createBlock)("core/html",{},[],[t.originalContent]);return r(t.clientId,d)},toBlocks(){let d=C0e(t);return r(t.clientId,d)},toRecoveredBlock(){let d=(0,WR.createBlock)(t.name,t.attributes,t.innerBlocks);return r(t.clientId,d)}}),[t,r]),l=(0,iv.useMemo)(()=>[{title:(0,rh._x)("Resolve","imperative verb"),onClick:()=>i(!0)},o&&{title:(0,rh.__)("Convert to HTML"),onClick:a.toHTML}].filter(Boolean),[o,a]);return(0,xp.jsxs)(xp.Fragment,{children:[(0,xp.jsx)(ig,{actions:[(0,xp.jsx)(DO.Button,{__next40pxDefaultSize:!0,onClick:a.toRecoveredBlock,variant:"primary",children:(0,rh.__)("Attempt recovery")},"recover")],secondaryActions:l,children:(0,rh.__)("Block contains unexpected or invalid content.")}),n&&(0,xp.jsx)(DO.Modal,{title:(0,rh.__)("Resolve Block"),onRequestClose:s,className:"block-editor-block-compare",children:(0,xp.jsx)(S0e,{block:t,onKeep:a.toHTML,onConvert:a.toBlocks,convertor:C0e,convertButtonText:(0,rh.__)("Convert to Blocks")})})]})}var T0e=c(X(),1);var R0e=c(T(),1),Pnt=(0,R0e.jsx)(ig,{className:"block-editor-block-list__block-crash-warning",children:(0,T0e.__)("This block has encountered an error and cannot be previewed.")});function I0e(){return Pnt}var P0e=c(D(),1),Bnt=class extends P0e.Component{constructor(){super(...arguments),this.state={hasError:!1}}componentDidCatch(){this.setState({hasError:!0})}render(){return this.state.hasError?this.props.fallback:this.props.children}},B0e=Bnt;var dx=c(D(),1),FO=c(oe(),1),Ou=c(ce(),1);var O0e=c(ue(),1),gX=new WeakSet;function cx(){return(0,O0e.useRefEffect)(e=>(gX.add(e),()=>{gX.delete(e)}),[])}function M0e(e){let{target:t}=e;for(t?.nodeName==="IFRAME"&&(t=t.contentDocument?.activeElement);t;){if(gX.has(t))return!0;t=t.parentElement}return!1}var A0e=c(T(),1);function Ont({clientId:e}){let[t,o]=(0,dx.useState)(""),r=cx(),n=(0,FO.useSelect)(l=>l(P).getBlock(e),[e]),{updateBlock:i}=(0,FO.useDispatch)(P),s=(0,dx.useMemo)(()=>n?(0,Ou.getBlockContent)(n):"",[n]),a=()=>{let l=(0,Ou.getBlockType)(n.name);if(!l)return;let d=(0,Ou.getBlockAttributes)(l,t,n.attributes),u=t||(0,Ou.getSaveContent)(l,d),[f]=t?(0,Ou.validateBlock)({...n,attributes:d,originalContent:u}):[!0];i(e,{attributes:d,originalContent:u,isValid:f}),t||o(u)};return(0,dx.useEffect)(()=>{o(s)},[s]),(0,A0e.jsx)("textarea",{className:"block-editor-block-list__block-html-textarea",value:t,onBlur:a,onChange:l=>o(l.target.value),ref:r})}var N0e=Ont;var wke=c(D(),1),d5=c(X(),1),xke=c(ce(),1),gv=c(ue(),1),kke=c(oe(),1),Ske=c(ix(),1);var bX=$R(),bt=e=>GR(e,bX),_X=$R();bt.write=e=>GR(e,_X);var zO=$R();bt.onStart=e=>GR(e,zO);var vX=$R();bt.onFrame=e=>GR(e,vX);var yX=$R();bt.onFinish=e=>GR(e,yX);var ux=[];bt.setTimeout=(e,t)=>{let o=bt.now()+t,r=()=>{let i=ux.findIndex(s=>s.cancel==r);~i&&ux.splice(i,1),ih-=~i?1:0},n={time:o,handler:e,cancel:r};return ux.splice(L0e(o),0,n),ih+=1,D0e(),n};var L0e=e=>~(~ux.findIndex(t=>t.time>e)||~ux.length);bt.cancel=e=>{zO.delete(e),vX.delete(e),yX.delete(e),bX.delete(e),_X.delete(e)};bt.sync=e=>{hX=!0,bt.batchedUpdates(e),hX=!1};bt.throttle=e=>{let t;function o(){try{e(...t)}finally{t=null}}function r(...n){t=n,bt.onStart(o)}return r.handler=e,r.cancel=()=>{zO.delete(o),t=null},r};var wX=typeof window<"u"?window.requestAnimationFrame:()=>{};bt.use=e=>wX=e;bt.now=typeof performance<"u"?()=>performance.now():Date.now;bt.batchedUpdates=e=>e();bt.catch=console.error;bt.frameLoop="always";bt.advance=()=>{bt.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):F0e()};var nh=-1,ih=0,hX=!1;function GR(e,t){hX?(t.delete(e),e(0)):(t.add(e),D0e())}function D0e(){nh<0&&(nh=0,bt.frameLoop!=="demand"&&wX(V0e))}function Mnt(){nh=-1}function V0e(){~nh&&(wX(V0e),bt.batchedUpdates(F0e))}function F0e(){let e=nh;nh=bt.now();let t=L0e(nh);if(t&&(z0e(ux.splice(0,t),o=>o.handler()),ih-=t),!ih){Mnt();return}zO.flush(),bX.flush(e?Math.min(64,nh-e):16.667),vX.flush(),_X.flush(),yX.flush()}function $R(){let e=new Set,t=e;return{add(o){ih+=t==e&&!e.has(o)?1:0,e.add(o)},delete(o){return ih-=t==e&&e.has(o)?1:0,e.delete(o)},flush(o){t.size&&(e=new Set,ih-=t.size,z0e(t,r=>r(o)&&e.add(r)),ih+=e.size,t=e)}}}function z0e(e,t){e.forEach(o=>{try{t(o)}catch(r){bt.catch(r)}})}var jl=c(te());function GO(){}var $0e=(e,t,o)=>Object.defineProperty(e,t,{value:o,writable:!0,configurable:!0}),Le={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 Mu(e,t){if(Le.arr(e)){if(!Le.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 Uo=(e,t)=>e.forEach(t);function Hl(e,t,o){if(Le.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 na=e=>Le.und(e)?[]:Le.arr(e)?e:[e];function gx(e,t){if(e.size){let o=Array.from(e);e.clear(),Uo(o,t)}}var hx=(e,...t)=>gx(e,o=>o(...t)),TX=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),RX,Y0e,sh=null,K0e=!1,IX=GO,Ant=e=>{e.to&&(Y0e=e.to),e.now&&(bt.now=e.now),e.colors!==void 0&&(sh=e.colors),e.skipAnimation!=null&&(K0e=e.skipAnimation),e.createStringInterpolator&&(RX=e.createStringInterpolator),e.requestAnimationFrame&&bt.use(e.requestAnimationFrame),e.batchedUpdates&&(bt.batchedUpdates=e.batchedUpdates),e.willAdvance&&(IX=e.willAdvance),e.frameLoop&&(bt.frameLoop=e.frameLoop)},Ha=Object.freeze({__proto__:null,get createStringInterpolator(){return RX},get to(){return Y0e},get colors(){return sh},get skipAnimation(){return K0e},get willAdvance(){return IX},assign:Ant}),YR=new Set,zl=[],xX=[],UO=0,bx={get idle(){return!YR.size&&!zl.length},start(e){UO>e.priority?(YR.add(e),bt.onStart(Nnt)):(q0e(e),bt(CX))},advance:CX,sort(e){if(UO)bt.onFrame(()=>bx.sort(e));else{let t=zl.indexOf(e);~t&&(zl.splice(t,1),X0e(e))}},clear(){zl=[],YR.clear()}};function Nnt(){YR.forEach(q0e),YR.clear(),bt(CX)}function q0e(e){zl.includes(e)||X0e(e)}function X0e(e){zl.splice(Lnt(zl,t=>t.priority>e.priority),0,e)}function CX(e){let t=xX;for(let o=0;o<zl.length;o++){let r=zl[o];UO=r.priority,r.idle||(IX(r),r.advance(e),r.idle||t.push(r))}return UO=0,xX=zl,xX.length=0,zl=t,zl.length>0}function Lnt(e,t){let o=e.findIndex(t);return o<0?e.length:o}var Z0e={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},ad="[-+]?\\d*\\.?\\d+",WO=ad+"%";function $O(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var Dnt=new RegExp("rgb"+$O(ad,ad,ad)),Vnt=new RegExp("rgba"+$O(ad,ad,ad,ad)),Fnt=new RegExp("hsl"+$O(ad,WO,WO)),znt=new RegExp("hsla"+$O(ad,WO,WO,ad)),jnt=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Hnt=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Unt=/^#([0-9a-fA-F]{6})$/,Wnt=/^#([0-9a-fA-F]{8})$/;function Gnt(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Unt.exec(e))?parseInt(t[1]+"ff",16)>>>0:sh&&sh[e]!==void 0?sh[e]:(t=Dnt.exec(e))?(fx(t[1])<<24|fx(t[2])<<16|fx(t[3])<<8|255)>>>0:(t=Vnt.exec(e))?(fx(t[1])<<24|fx(t[2])<<16|fx(t[3])<<8|U0e(t[4]))>>>0:(t=jnt.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Wnt.exec(e))?parseInt(t[1],16)>>>0:(t=Hnt.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Fnt.exec(e))?(j0e(H0e(t[1]),jO(t[2]),jO(t[3]))|255)>>>0:(t=znt.exec(e))?(j0e(H0e(t[1]),jO(t[2]),jO(t[3]))|U0e(t[4]))>>>0:null}function kX(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 j0e(e,t,o){let r=o<.5?o*(1+t):o+t-o*t,n=2*o-r,i=kX(n,r,e+1/3),s=kX(n,r,e),a=kX(n,r,e-1/3);return Math.round(i*255)<<24|Math.round(s*255)<<16|Math.round(a*255)<<8}function fx(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function H0e(e){return(parseFloat(e)%360+360)%360/360}function U0e(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function jO(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function W0e(e){let t=Gnt(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 ah=(e,t,o)=>{if(Le.fun(e))return e;if(Le.arr(e))return ah({range:e,output:t,extrapolate:o});if(Le.str(e.output[0]))return RX(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||(d=>d);return d=>{let u=Ynt(d,i);return $nt(d,i[u],i[u+1],n[u],n[u+1],l,s,a,r.map)}};function $nt(e,t,o,r,n,i,s,a,l){let d=l?l(e):e;if(d<t){if(s==="identity")return d;s==="clamp"&&(d=t)}if(d>o){if(a==="identity")return d;a==="clamp"&&(d=o)}return r===n?r:t===o?e<=t?r:n:(t===-1/0?d=-d:o===1/0?d=d-t:d=(d-t)/(o-t),d=i(d),r===-1/0?d=-d:n===1/0?d=d+r:d=d*(n-r)+r,d)}function Ynt(e,t){for(var o=1;o<t.length-1&&!(t[o]>=e);++o);return o-1}function EX(){return EX=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},EX.apply(this,arguments)}var px=Symbol.for("FluidValue.get"),sv=Symbol.for("FluidValue.observers"),ks=e=>!!(e&&e[px]),gi=e=>e&&e[px]?e[px]():e,PX=e=>e[sv]||null;function Knt(e,t){e.eventObserved?e.eventObserved(t):e(t)}function av(e,t){let o=e[sv];o&&o.forEach(r=>{Knt(r,t)})}var mx=class{constructor(t){if(this[px]=void 0,this[sv]=void 0,!t&&!(t=this.get))throw Error("Unknown getter");qnt(this,t)}},qnt=(e,t)=>Q0e(e,px,t);function lh(e,t){if(e[px]){let o=e[sv];o||Q0e(e,sv,o=new Set),o.has(t)||(o.add(t),e.observerAdded&&e.observerAdded(o.size,t))}return t}function ch(e,t){let o=e[sv];if(o&&o.has(t)){let r=o.size-1;r?o.delete(t):e[sv]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var Q0e=(e,t,o)=>Object.defineProperty(e,t,{value:o,writable:!0,configurable:!0}),HO=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Xnt=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,G0e=new RegExp(`(${HO.source})(%|[a-z]+)`,"i"),Znt=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,YO=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,J0e=e=>{let[t,o]=Qnt(e);if(!t||TX())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&&YO.test(o))return J0e(o);if(o)return o}return e},Qnt=e=>{let t=YO.exec(e);if(!t)return[,];let[,o,r]=t;return[o,r]},SX,Jnt=(e,t,o,r,n)=>`rgba(${Math.round(t)}, ${Math.round(o)}, ${Math.round(r)}, ${n})`,KO=e=>{SX||(SX=sh?new RegExp(`(${Object.keys(sh).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(i=>gi(i).replace(YO,J0e).replace(Xnt,W0e).replace(SX,W0e)),o=t.map(i=>i.match(HO).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=>ah(EX({},e,{output:i})));return i=>{var s;let a=!G0e.test(t[0])&&((s=t.find(d=>G0e.test(d)))==null?void 0:s.replace(HO,"")),l=0;return t[0].replace(HO,()=>`${n[l++](i)}${a||""}`).replace(Znt,Jnt)}},exe="react-spring: ",txe=e=>{let t=e,o=!1;if(typeof t!="function")throw new TypeError(`${exe}once requires a function parameter`);return(...r)=>{o||(t(...r),o=!0)}},eit=txe(console.warn);function oxe(){eit(`${exe}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var pmo=txe(console.warn);function _x(e){return Le.str(e)&&(e[0]=="#"||/\d/.test(e)||!TX()&&YO.test(e)||e in(sh||{}))}var KR=TX()?jl.useEffect:jl.useLayoutEffect,tit=()=>{let e=(0,jl.useRef)(!1);return KR(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function BX(){let e=(0,jl.useState)()[1],t=tit();return()=>{t.current&&e(Math.random())}}function rxe(e,t){let[o]=(0,jl.useState)(()=>({inputs:t,result:e()})),r=(0,jl.useRef)(),n=r.current,i=n;return i?t&&i.inputs&&oit(t,i.inputs)||(i={inputs:t,result:e()}):i=o,(0,jl.useEffect)(()=>{r.current=i,n==o&&(o.inputs=o.result=void 0)},[i]),i.result}function oit(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 OX=e=>(0,jl.useEffect)(e,rit),rit=[];var n5=c(te()),i5=c(te());var axe=c(te()),kp=c(te()),qR=Symbol.for("Animated:node"),nit=e=>!!e&&e[qR]===e,ld=e=>e&&e[qR],QO=(e,t)=>$0e(e,qR,t),XR=e=>e&&e[qR]&&e[qR].getPayload(),qO=class{constructor(){this.payload=void 0,QO(this,this)}getPayload(){return this.payload||[]}},lv=class e extends qO{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,Le.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 Le.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,Le.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}},cv=class e extends lv{constructor(t){super(0),this._string=null,this._toString=void 0,this._toString=ah({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(Le.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=ah({output:[this.getValue(),t]})),this._value=0,super.reset()}},XO={dependencies:null},dv=class extends qO{constructor(t){super(),this.source=t,this.setValue(t)}getValue(t){let o={};return Hl(this.source,(r,n)=>{nit(r)?o[n]=r.getValue(t):ks(r)?o[n]=gi(r):t||(o[n]=r)}),o}setValue(t){this.source=t,this.payload=this._makePayload(t)}reset(){this.payload&&Uo(this.payload,t=>t.reset())}_makePayload(t){if(t){let o=new Set;return Hl(t,this._addToPayload,o),Array.from(o)}}_addToPayload(t){XO.dependencies&&ks(t)&&XO.dependencies.add(t);let o=XR(t);o&&Uo(o,r=>this.add(r))}},MX=class e extends dv{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(iit)),!0)}};function iit(e){return(_x(e)?cv:lv).create(e)}function JO(e){let t=ld(e);return t?t.constructor:Le.arr(e)?MX:_x(e)?cv:lv}function ZO(){return ZO=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},ZO.apply(this,arguments)}var nxe=(e,t)=>{let o=!Le.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,kp.forwardRef)((r,n)=>{let i=(0,kp.useRef)(null),s=o&&(0,kp.useCallback)(g=>{i.current=ait(n,g)},[n]),[a,l]=sit(r,t),d=BX(),u=()=>{let g=i.current;if(o&&!g)return;(g?t.applyAnimatedValues(g,a.getValue(!0)):!1)===!1&&d()},f=new AX(u,l),p=(0,kp.useRef)();KR(()=>(p.current=f,Uo(l,g=>lh(g,f)),()=>{p.current&&(Uo(p.current.deps,g=>ch(g,p.current)),bt.cancel(p.current.update))})),(0,kp.useEffect)(u,[]),OX(()=>()=>{let g=p.current;Uo(g.deps,h=>ch(h,g))});let m=t.getComponentProps(a.getValue());return axe.createElement(e,ZO({},m,{ref:s}))})},AX=class{constructor(t,o){this.update=t,this.deps=o}eventObserved(t){t.type=="change"&&bt.write(this.update)}};function sit(e,t){let o=new Set;return XO.dependencies=o,e.style&&(e=ZO({},e,{style:t.createAnimatedStyle(e.style)})),e=new dv(e),XO.dependencies=null,[e,o]}function ait(e,t){return e&&(Le.fun(e)?e(t):e.current=t),t}var ixe=Symbol.for("AnimatedComponent"),lxe=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:o=n=>new dv(n),getComponentProps:r=n=>n}={})=>{let n={applyAnimatedValues:t,createAnimatedStyle:o,getComponentProps:r},i=s=>{let a=sxe(s)||"Anonymous";return Le.str(s)?s=i[s]||(i[s]=nxe(s,n)):s=s[ixe]||(s[ixe]=nxe(s,n)),s.displayName=`Animated(${a})`,s};return Hl(e,(s,a)=>{Le.arr(e)&&(a=sxe(s)),i[a]=i(s)}),{animated:i}},sxe=e=>Le.str(e)?e:e&&Le.str(e.displayName)?e.displayName:Le.fun(e)&&e.name||null;function Ss(){return Ss=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},Ss.apply(this,arguments)}function uv(e,...t){return Le.fun(e)?e(...t):e}var e5=(e,t)=>e===!0||!!(t&&e&&(Le.fun(e)?e(t):na(e).includes(t))),yxe=(e,t)=>Le.obj(e)?t&&e[t]:e,wxe=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,lit=e=>e,xxe=(e,t=lit)=>{let o=cit;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);Le.und(i)||(r[n]=i)}return r},cit=["config","onProps","onStart","onChange","onPause","onResume","onRest"],dit={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 uit(e){let t={},o=0;if(Hl(e,(r,n)=>{dit[n]||(t[n]=r,o++)}),o)return t}function kxe(e){let t=uit(e);if(t){let o={to:t};return Hl(e,(r,n)=>n in t||(o[n]=r)),o}return Ss({},e)}function t5(e){return e=gi(e),Le.arr(e)?e.map(t5):_x(e)?Ha.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function DX(e){return Le.fun(e)||Le.arr(e)&&Le.obj(e[0])}var fit={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}},o8=1.70158,e8=o8*1.525,cxe=o8+1,dxe=2*Math.PI/3,uxe=2*Math.PI/4.5,t8=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,pit={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=>cxe*e*e*e-o8*e*e,easeOutBack:e=>1+cxe*Math.pow(e-1,3)+o8*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((e8+1)*2*e-e8)/2:(Math.pow(2*e-2,2)*((e8+1)*(e*2-2)+e8)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*dxe),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*dxe)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*uxe))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*uxe)/2+1,easeInBounce:e=>1-t8(1-e),easeOutBounce:t8,easeInOutBounce:e=>e<.5?(1-t8(1-2*e))/2:(1+t8(2*e-1))/2},VX=Ss({},fit.default,{mass:1,damping:1,easing:pit.linear,clamp:!1}),FX=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,VX)}};function mit(e,t,o){o&&(o=Ss({},o),fxe(o,t),t=Ss({},o,t)),fxe(e,t),Object.assign(e,t);for(let s in VX)e[s]==null&&(e[s]=VX[s]);let{mass:r,frequency:n,damping:i}=e;return Le.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 fxe(e,t){if(!Le.und(t.decay))e.duration=void 0;else{let o=!Le.und(t.tension)||!Le.und(t.friction);(o||!Le.und(t.frequency)||!Le.und(t.damping)||!Le.und(t.mass))&&(e.duration=void 0,e.decay=void 0),o&&(e.frequency=void 0)}}var pxe=[],zX=class{constructor(){this.changed=!1,this.values=pxe,this.toValues=null,this.fromValues=pxe,this.to=void 0,this.from=void 0,this.config=new FX,this.immediate=!1}};function Sxe(e,{key:t,props:o,defaultProps:r,state:n,actions:i}){return new Promise((s,a)=>{var l;let d,u,f=e5((l=o.cancel)!=null?l:r?.cancel,t);if(f)g();else{Le.und(o.pause)||(n.paused=e5(o.pause,t));let h=r?.pause;h!==!0&&(h=n.paused||e5(h,t)),d=uv(o.delay||0,t),h?(n.resumeQueue.add(m),i.pause()):(i.resume(),m())}function p(){n.resumeQueue.add(m),n.timeouts.delete(u),u.cancel(),d=u.time-bt.now()}function m(){d>0&&!Ha.skipAnimation?(n.delayed=!0,u=bt.setTimeout(g,d),n.pauseQueue.add(p),n.timeouts.add(u)):g()}function g(){n.delayed&&(n.delayed=!1),n.pauseQueue.delete(p),n.timeouts.delete(u),e<=(n.cancelId||0)&&(f=!0);try{i.start(Ss({},o,{callId:e,cancel:f}),s)}catch(h){a(h)}}})}var YX=(e,t)=>t.length==1?t[0]:t.some(o=>o.cancelled)?vx(e.get()):t.every(o=>o.noop)?Cxe(e.get()):cd(e.get(),t.every(o=>o.finished)),Cxe=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),cd=(e,t,o=!1)=>({value:e,finished:t,cancelled:o}),vx=e=>({value:e,cancelled:!0,finished:!1});function Exe(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 d=xxe(t,(b,v)=>v==="onRest"?void 0:b),u,f,p=new Promise((b,v)=>(u=b,f=v)),m=b=>{let v=n<=(o.cancelId||0)&&vx(r)||n!==o.asyncId&&cd(r,!1);if(v)throw b.result=v,f(b),b},g=(b,v)=>{let _=new r8,y=new n8;return(async()=>{if(Ha.skipAnimation)throw o5(o),y.result=cd(r,!1),f(y),y;m(_);let w=Le.obj(b)?Ss({},b):Ss({},v,{to:b});w.parentId=n,Hl(d,(k,C)=>{Le.und(w[C])&&(w[C]=k)});let x=await r.start(w);return m(_),o.paused&&await new Promise(k=>{o.resumeQueue.add(k)}),x})()},h;if(Ha.skipAnimation)return o5(o),cd(r,!1);try{let b;Le.arr(e)?b=(async v=>{for(let _ of v)await g(_)})(e):b=Promise.resolve(e(g,r.stop.bind(r))),await Promise.all([b.then(u),p]),h=cd(r.get(),!0,!1)}catch(b){if(b instanceof r8)h=b.result;else if(b instanceof n8)h=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 Le.fun(s)&&bt.batchedUpdates(()=>{s(h,r,r.item)}),h})()}function o5(e,t){gx(e.timeouts,o=>o.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var r8=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}},n8=class extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}},jX=e=>e instanceof r5,git=1,r5=class extends mx{constructor(...t){super(...t),this.id=git++,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=ld(this);return t&&t.getValue()}to(...t){return Ha.to(this,t)}interpolate(...t){return oxe(),Ha.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){av(this,{type:"change",parent:this,value:t,idle:o})}_onPriorityChange(t){this.idle||bx.sort(this),av(this,{type:"priority",parent:this,priority:t})}},fv=Symbol.for("SpringPhase"),Txe=1,HX=2,UX=4,NX=e=>(e[fv]&Txe)>0,dh=e=>(e[fv]&HX)>0,ZR=e=>(e[fv]&UX)>0,mxe=(e,t)=>t?e[fv]|=HX|Txe:e[fv]&=~HX,gxe=(e,t)=>t?e[fv]|=UX:e[fv]&=~UX,WX=class extends r5{constructor(t,o){if(super(),this.key=void 0,this.animation=new zX,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,!Le.und(t)||!Le.und(o)){let r=Le.obj(t)?Ss({},t):Ss({},o,{from:t});Le.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(dh(this)||this._state.asyncTo)||ZR(this)}get goal(){return gi(this.animation.to)}get velocity(){let t=ld(this);return t instanceof lv?t.lastVelocity||0:t.getPayload().map(o=>o.lastVelocity||0)}get hasAnimated(){return NX(this)}get isAnimating(){return dh(this)}get isPaused(){return ZR(this)}get isDelayed(){return this._state.delayed}advance(t){let o=!0,r=!1,n=this.animation,{config:i,toValues:s}=n,a=XR(n.to);!a&&ks(n.to)&&(s=na(gi(n.to))),n.values.forEach((u,f)=>{if(u.done)return;let p=u.constructor==cv?1:a?a[f].lastPosition:s[f],m=n.immediate,g=p;if(!m){if(g=u.lastPosition,i.tension<=0){u.done=!0;return}let h=u.elapsedTime+=t,b=n.fromValues[f],v=u.v0!=null?u.v0:u.v0=Le.arr(i.velocity)?i.velocity[f]:i.velocity,_,y=i.precision||(b==p?.005:Math.min(1,Math.abs(p-b)*.001));if(Le.und(i.duration))if(i.decay){let w=i.decay===!0?.998:i.decay,x=Math.exp(-(1-w)*h);g=b+v/(1-w)*(1-x),m=Math.abs(u.lastPosition-g)<=y,_=v*x}else{_=u.lastVelocity==null?v:u.lastVelocity;let w=i.restVelocity||y/10,x=i.clamp?0:i.bounce,k=!Le.und(x),C=b==p?u.v0>0:b<p,S,R=!1,E=1,I=Math.ceil(t/E);for(let B=0;B<I&&(S=Math.abs(_)>w,!(!S&&(m=Math.abs(p-g)<=y,m)));++B){k&&(R=g==p||g>p==C,R&&(_=-_*x,g=p));let O=-i.tension*1e-6*(g-p),M=-i.friction*.001*_,N=(O+M)/i.mass;_=_+N*E,g=g+_*E}}else{let w=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,u.durationProgress>0&&(u.elapsedTime=i.duration*u.durationProgress,h=u.elapsedTime+=t)),w=(i.progress||0)+h/this._memoizedDuration,w=w>1?1:w<0?0:w,u.durationProgress=w),g=b+i.easing(w)*(p-b),_=(g-u.lastPosition)/t,m=w==1}u.lastVelocity=_,Number.isNaN(g)&&(console.warn("Got NaN while animating:",this),m=!0)}a&&!a[f].done&&(m=!1),m?u.done=!0:o=!1,u.setValue(g,i.round)&&(r=!0)});let l=ld(this),d=l.getValue();if(o){let u=gi(n.to);(d!==u||r)&&!i.decay?(l.setValue(u),this._onChange(u)):r&&i.decay&&this._onChange(d),this._stop()}else r&&this._onChange(d)}set(t){return bt.batchedUpdates(()=>{this._stop(),this._focus(t),this._set(t)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(dh(this)){let{to:t,config:o}=this.animation;bt.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 Le.und(t)?(r=this.queue||[],this.queue=[]):r=[Le.obj(t)?t:Ss({},o,{to:t})],Promise.all(r.map(n=>this._update(n))).then(n=>YX(this,n))}stop(t){let{to:o}=this.animation;return this._focus(this.get()),o5(this._state,t&&this._lastCallId),bt.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=Le.obj(r)?r[o]:r,(r==null||DX(r))&&(r=void 0),n=Le.obj(n)?n[o]:n,n==null&&(n=void 0);let i={to:r,from:n};return NX(this)||(t.reverse&&([r,n]=[n,r]),n=gi(n),Le.und(n)?ld(this)||this._set(r):this._set(n)),i}_update(t,o){let r=Ss({},t),{key:n,defaultProps:i}=this;r.default&&Object.assign(i,xxe(r,(l,d)=>/^on/.test(d)?yxe(l,n):l)),bxe(this,r,"onProps"),JR(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 Sxe(++this._lastCallId,{key:n,props:r,defaultProps:i,state:a,actions:{pause:()=>{ZR(this)||(gxe(this,!0),hx(a.pauseQueue),JR(this,"onPause",cd(this,QR(this,this.animation.to)),this))},resume:()=>{ZR(this)&&(gxe(this,!1),dh(this)&&this._resume(),hx(a.resumeQueue),JR(this,"onResume",cd(this,QR(this,this.animation.to)),this))},start:this._merge.bind(this,s)}}).then(l=>{if(r.loop&&l.finished&&!(o&&l.noop)){let d=Rxe(r);if(d)return this._update(d,!0)}return l})}_merge(t,o,r){if(o.cancel)return this.stop(!0),r(vx(this));let n=!Le.und(t.to),i=!Le.und(t.from);if(n||i)if(o.callId>this._lastToId)this._lastToId=o.callId;else return r(vx(this));let{key:s,defaultProps:a,animation:l}=this,{to:d,from:u}=l,{to:f=d,from:p=u}=t;i&&!n&&(!o.default||Le.und(f))&&(f=p),o.reverse&&([f,p]=[p,f]);let m=!Mu(p,u);m&&(l.from=p),p=gi(p);let g=!Mu(f,d);g&&this._focus(f);let h=DX(o.to),{config:b}=l,{decay:v,velocity:_}=b;(n||i)&&(b.velocity=0),o.config&&!h&&mit(b,uv(o.config,s),o.config!==a.config?uv(a.config,s):void 0);let y=ld(this);if(!y||Le.und(f))return r(cd(this,!0));let w=Le.und(o.reset)?i&&!o.default:!Le.und(p)&&e5(o.reset,s),x=w?p:this.get(),k=t5(f),C=Le.num(k)||Le.arr(k)||_x(k),S=!h&&(!C||e5(a.immediate||o.immediate,s));if(g){let B=JO(f);if(B!==y.constructor)if(S)y=this._set(k);else throw Error(`Cannot animate between ${y.constructor.name} and ${B.name}, as the "to" prop suggests`)}let R=y.constructor,E=ks(f),I=!1;if(!E){let B=w||!NX(this)&&m;(g||B)&&(I=Mu(t5(x),k),E=!I),(!Mu(l.immediate,S)&&!S||!Mu(b.decay,v)||!Mu(b.velocity,_))&&(E=!0)}if(I&&dh(this)&&(l.changed&&!w?E=!0:E||this._stop(d)),!h&&((E||ks(d))&&(l.values=y.getPayload(),l.toValues=ks(f)?null:R==cv?[1]:na(k)),l.immediate!=S&&(l.immediate=S,!S&&!w&&this._set(d)),E)){let{onRest:B}=l;Uo(hit,M=>bxe(this,o,M));let O=cd(this,QR(this,d));hx(this._pendingCalls,O),this._pendingCalls.add(r),l.changed&&bt.batchedUpdates(()=>{l.changed=!w,B?.(O,this),w?uv(a.onRest,O):l.onStart==null||l.onStart(O,this)})}w&&this._set(x),h?r(Exe(o.to,o,this._state,this)):E?this._start():dh(this)&&!g?this._pendingCalls.add(r):r(Cxe(x))}_focus(t){let o=this.animation;t!==o.to&&(PX(this)&&this._detach(),o.to=t,PX(this)&&this._attach())}_attach(){let t=0,{to:o}=this.animation;ks(o)&&(lh(o,this),jX(o)&&(t=o.priority+1)),this.priority=t}_detach(){let{to:t}=this.animation;ks(t)&&ch(t,this)}_set(t,o=!0){let r=gi(t);if(!Le.und(r)){let n=ld(this);if(!n||!Mu(r,n.getValue())){let i=JO(r);!n||n.constructor!=i?QO(this,i.create(r)):n.setValue(r),n&&bt.batchedUpdates(()=>{this._onChange(r,o)})}}return ld(this)}_onStart(){let t=this.animation;t.changed||(t.changed=!0,JR(this,"onStart",cd(this,QR(this,t.to)),this))}_onChange(t,o){o||(this._onStart(),uv(this.animation.onChange,t,this)),uv(this.defaultProps.onChange,t,this),super._onChange(t,o)}_start(){let t=this.animation;ld(this).reset(gi(t.to)),t.immediate||(t.fromValues=t.values.map(o=>o.lastPosition)),dh(this)||(mxe(this,!0),ZR(this)||this._resume())}_resume(){Ha.skipAnimation?this.finish():bx.start(this)}_stop(t,o){if(dh(this)){mxe(this,!1);let r=this.animation;Uo(r.values,i=>{i.done=!0}),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),av(this,{type:"idle",parent:this});let n=o?vx(this.get()):cd(this.get(),QR(this,t??r.to));hx(this._pendingCalls,n),r.changed&&(r.changed=!1,JR(this,"onRest",n,this))}}};function QR(e,t){let o=t5(t),r=t5(e.get());return Mu(r,o)}function Rxe(e,t=e.loop,o=e.to){let r=uv(t);if(r){let n=r!==!0&&kxe(r),i=(n||e).reverse,s=!n||n.reset;return GX(Ss({},e,{loop:t,default:!1,pause:void 0,to:!i||DX(o)?o:void 0,from:s?e.from:void 0,reset:s},n))}}function GX(e){let{to:t,from:o}=e=kxe(e),r=new Set;return Le.obj(t)&&hxe(t,r),Le.obj(o)&&hxe(o,r),e.keys=r.size?Array.from(r):null,e}function hxe(e,t){Hl(e,(o,r)=>o!=null&&t.add(r))}var hit=["onStart","onRest","onChange","onPause","onResume"];function bxe(e,t,o){e.animation[o]=t[o]!==wxe(t,o)?yxe(t[o],e.key):void 0}function JR(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 bit=["onStart","onChange","onRest"],_it=1,i8=class{constructor(t,o){this.id=_it++,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(Ss({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];Le.und(r)||this.springs[o].set(r)}}update(t){return t&&this.queue.push(GX(t)),this}start(t){let{queue:o}=this;return t?o=na(t).map(GX):this.queue=[],this._flush?this._flush(this,o):(Pxe(this,o),vit(this,o))}stop(t,o){if(t!==!!t&&(o=t),o){let r=this.springs;Uo(na(o),n=>r[n].stop(!!t))}else o5(this._state,this._lastAsyncId),this.each(r=>r.stop(!!t));return this}pause(t){if(Le.und(t))this.start({pause:!0});else{let o=this.springs;Uo(na(t),r=>o[r].pause())}return this}resume(t){if(Le.und(t))this.start({pause:!1});else{let o=this.springs;Uo(na(t),r=>o[r].resume())}return this}each(t){Hl(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,gx(t,([l,d])=>{d.value=this.get(),l(d,this,this._item)}));let s=!n&&this._started,a=i||s&&r.size?this.get():null;i&&o.size&&gx(o,([l,d])=>{d.value=a,l(d,this,this._item)}),s&&(this._started=!1,gx(r,([l,d])=>{d.value=a,l(d,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;bt.onFrame(this._onFrame)}};function vit(e,t){return Promise.all(t.map(o=>Ixe(e,o))).then(o=>YX(e,o))}async function Ixe(e,t,o){let{keys:r,to:n,from:i,loop:s,onRest:a,onResolve:l}=t,d=Le.obj(t.default)&&t.default;s&&(t.loop=!1),n===!1&&(t.to=null),i===!1&&(t.from=null);let u=Le.arr(n)||Le.fun(n)?n:void 0;u?(t.to=void 0,t.onRest=void 0,d&&(d.onRest=void 0)):Uo(bit,h=>{let b=t[h];if(Le.fun(b)){let v=e._events[h];t[h]=({finished:_,cancelled:y})=>{let w=v.get(b);w?(_||(w.finished=!1),y&&(w.cancelled=!0)):v.set(b,{value:null,finished:_||!1,cancelled:y||!1})},d&&(d[h]=t[h])}});let f=e._state;t.pause===!f.paused?(f.paused=t.pause,hx(t.pause?f.pauseQueue:f.resumeQueue)):f.paused&&(t.pause=!0);let p=(r||Object.keys(e.springs)).map(h=>e.springs[h].start(t)),m=t.cancel===!0||wxe(t,"cancel")===!0;(u||m&&f.asyncId)&&p.push(Sxe(++e._lastAsyncId,{props:t,state:f,actions:{pause:GO,resume:GO,start(h,b){m?(o5(f,e._lastAsyncId),b(vx(e))):(h.onRest=a,b(Exe(u,h,f,e)))}}})),f.paused&&await new Promise(h=>{f.resumeQueue.add(h)});let g=YX(e,await Promise.all(p));if(s&&g.finished&&!(o&&g.noop)){let h=Rxe(t,s,n);if(h)return Pxe(e,[h]),Ixe(e,h,!0)}return l&&bt.batchedUpdates(()=>l(g,e,e.item)),g}function yit(e,t){let o=new WX;return o.key=e,t&&lh(o,t),o}function wit(e,t,o){t.keys&&Uo(t.keys,r=>{(e[r]||(e[r]=o(r)))._prepareNode(t)})}function Pxe(e,t){Uo(t,o=>{wit(e.springs,o,r=>yit(r,e))})}function xit(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 kit=["children"],KX=e=>{let{children:t}=e,o=xit(e,kit),r=(0,i5.useContext)(s8),n=o.pause||!!r.pause,i=o.immediate||!!r.immediate;o=rxe(()=>({pause:n,immediate:i}),[n,i]);let{Provider:s}=s8;return n5.createElement(s,{value:o},t)},s8=Sit(KX,{});KX.Provider=s8.Provider;KX.Consumer=s8.Consumer;function Sit(e,t){return Object.assign(e,n5.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var _xe;(function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"})(_xe||(_xe={}));var $X=class extends r5{constructor(t,o){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=t,this.calc=ah(...o);let r=this._get(),n=JO(r);QO(this,n.create(r))}advance(t){let o=this._get(),r=this.get();Mu(o,r)||(ld(this).setValue(o),this._onChange(o,this.idle)),!this.idle&&vxe(this._active)&&LX(this)}_get(){let t=Le.arr(this.source)?this.source.map(gi):na(gi(this.source));return this.calc(...t)}_start(){this.idle&&!vxe(this._active)&&(this.idle=!1,Uo(XR(this),t=>{t.done=!1}),Ha.skipAnimation?(bt.batchedUpdates(()=>this.advance()),LX(this)):bx.start(this))}_attach(){let t=1;Uo(na(this.source),o=>{ks(o)&&lh(o,this),jX(o)&&(o.idle||this._active.add(o),t=Math.max(t,o.priority+1))}),this.priority=t,this._start()}_detach(){Uo(na(this.source),t=>{ks(t)&&ch(t,this)}),this._active.clear(),LX(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=na(this.source).reduce((o,r)=>Math.max(o,(jX(r)?r.priority:0)+1),0))}};function Cit(e){return e.idle!==!1}function vxe(e){return!e.size||Array.from(e).every(Cit)}function LX(e){e.idle||(e.idle=!0,Uo(XR(e),t=>{t.done=!0}),av(e,{type:"idle",parent:e}))}Ha.assign({createStringInterpolator:KO,to:(e,t)=>new $X(e,t)});var kmo=bx.advance;var Oxe=c(bu());function QX(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 Eit=["style","children","scrollTop","scrollLeft"],Mxe=/^--/;function Tit(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!Mxe.test(e)&&!(s5.hasOwnProperty(e)&&s5[e])?t+"px":(""+t).trim()}var Bxe={};function Rit(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=QX(r,Eit),d=Object.values(l),u=Object.keys(l).map(f=>o||e.hasAttribute(f)?f:Bxe[f]||(Bxe[f]=f.replace(/([A-Z])/g,p=>"-"+p.toLowerCase())));i!==void 0&&(e.textContent=i);for(let f in n)if(n.hasOwnProperty(f)){let p=Tit(f,n[f]);Mxe.test(f)?e.style.setProperty(f,p):e.style[f]=p}u.forEach((f,p)=>{e.setAttribute(f,d[p])}),s!==void 0&&(e.scrollTop=s),a!==void 0&&(e.scrollLeft=a)}var s5={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},Iit=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),Pit=["Webkit","Ms","Moz","O"];s5=Object.keys(s5).reduce((e,t)=>(Pit.forEach(o=>e[Iit(o,t)]=e[t]),e),s5);var Bit=["x","y","z"],Oit=/^(matrix|translate|scale|rotate|skew)/,Mit=/^(translate)/,Ait=/^(rotate|skew)/,qX=(e,t)=>Le.num(e)&&e!==0?e+t:e,a8=(e,t)=>Le.arr(e)?e.every(o=>a8(o,t)):Le.num(e)?e===t:parseFloat(e)===t,XX=class extends dv{constructor(t){let{x:o,y:r,z:n}=t,i=QX(t,Bit),s=[],a=[];(o||r||n)&&(s.push([o||0,r||0,n||0]),a.push(l=>[`translate3d(${l.map(d=>qX(d,"px")).join(",")})`,a8(l,0)])),Hl(i,(l,d)=>{if(d==="transform")s.push([l||""]),a.push(u=>[u,u===""]);else if(Oit.test(d)){if(delete i[d],Le.und(l))return;let u=Mit.test(d)?"px":Ait.test(d)?"deg":"";s.push(na(l)),a.push(d==="rotate3d"?([f,p,m,g])=>[`rotate3d(${f},${p},${m},${qX(g,u)})`,a8(g,0)]:f=>[`${d}(${f.map(p=>qX(p,u)).join(",")})`,a8(f,d.startsWith("scale")?1:0)])}}),s.length&&(i.transform=new ZX(s,a)),super(i)}},ZX=class extends mx{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 Uo(this.inputs,(r,n)=>{let i=gi(r[0]),[s,a]=this.transforms[n](Le.arr(i)?i:r.map(gi));t+=" "+s,o=o&&a}),o?"none":t}observerAdded(t){t==1&&Uo(this.inputs,o=>Uo(o,r=>ks(r)&&lh(r,this)))}observerRemoved(t){t==0&&Uo(this.inputs,o=>Uo(o,r=>ks(r)&&ch(r,this)))}eventObserved(t){t.type=="change"&&(this._value=null),av(this,t)}},Nit=["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"],Lit=["scrollTop","scrollLeft"];Ha.assign({batchedUpdates:Oxe.unstable_batchedUpdates,createStringInterpolator:KO,colors:Z0e});var Dit=lxe(Nit,{applyAnimatedValues:Rit,createAnimatedStyle:e=>new XX(e),getComponentProps:e=>QX(e,Lit)}),Axe=Dit.animated;var yx=c(D(),1),Lxe=c(Ut(),1),Dxe=c(oe(),1);var Vit=200;function Nxe(e){return{top:e.offsetTop,left:e.offsetLeft}}function Fit({triggerAnimationOnChange:e,clientId:t}){let o=(0,yx.useRef)(),{isTyping:r,getGlobalBlockCount:n,isBlockSelected:i,isFirstMultiSelectedBlock:s,isBlockMultiSelected:a,isAncestorMultiSelected:l,isDraggingBlocks:d}=(0,Dxe.useSelect)(P),{previous:u,prevRect:f}=(0,yx.useMemo)(()=>({previous:o.current&&Nxe(o.current),prevRect:o.current&&o.current.getBoundingClientRect()}),[e]);return(0,yx.useLayoutEffect)(()=>{if(!u||!o.current)return;let p=(0,Lxe.getScrollContainer)(o.current),m=i(t),g=m||s(t),h=d();function b(){if(!h&&g&&f){let R=o.current.getBoundingClientRect().top-f.top;R&&(p.scrollTop+=R)}}if(window.matchMedia("(prefers-reduced-motion: reduce)").matches||r()||n()>Vit){b();return}let _=m||a(t)||l(t);if(_&&h)return;let y=_?"20":"",w=new i8({x:0,y:0,config:{mass:5,tension:2e3,friction:200},onChange({value:S}){if(!o.current)return;let{x:R,y:E}=S;R=Math.round(R),E=Math.round(E);let I=R===0&&E===0;o.current.style.transformOrigin="center center",o.current.style.transform=I?null:`translate3d(${R}px,${E}px,0)`,o.current.style.zIndex=I?null:y,b()}});o.current.style.transform=void 0;let x=Nxe(o.current),k=Math.round(u.left-x.left),C=Math.round(u.top-x.top);return w.start({x:0,y:0,from:{x:k,y:C}}),()=>{w.stop(),w.set({x:0,y:0})}},[u,f,t,r,n,i,s,a,l,d]),o}var l8=Fit;var u8=c(D(),1),Sp=c(Ut(),1),Vxe=c(oe(),1);var c8=".block-editor-block-list__block",zit=".block-list-appender",jit=".block-editor-button-block-appender";function d8(e,t){return e.closest(c8)===t.closest(c8)}function Au(e,t){return t.closest([c8,zit,jit].join(","))===e}function Ul(e,t){let{anchorNode:o,focusNode:r}=e;if(!o||!r)return;let i=(o.nodeType===o.ELEMENT_NODE?o:o.parentElement)?.closest('[contenteditable="true"]');if(!(!i||i===t||!i.contains(r)))return i}function Wo(e){for(;e&&e.nodeType!==e.ELEMENT_NODE;)e=e.parentNode;if(!e)return;let o=e.closest(c8);if(o)return o.id.slice(6)}function JX(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 eZ(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 Hit(e){let t=window.getComputedStyle(e);return t.overflowX==="auto"||t.overflowX==="scroll"||t.overflowY==="auto"||t.overflowY==="scroll"}var Uit=["core/navigation"];function wx(e){let t=e.ownerDocument.defaultView;if(!t)return new window.DOMRectReadOnly;let o=e.getBoundingClientRect(),r=e.getAttribute("data-type");if(r&&Uit.includes(r)){let s=[e],a;for(;a=s.pop();)if(!Hit(a)){for(let l of a.children)if(eZ(l)){let d=l.getBoundingClientRect();o=JX(o,d),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 Fxe({clientId:e,initialPosition:t}){let o=(0,u8.useRef)(),{isBlockSelected:r,isMultiSelecting:n,isZoomOut:i,getSelectionStart:s}=Z((0,Vxe.useSelect)(P));return(0,u8.useEffect)(()=>{if(!r(e)||n()||i()||t==null||!o.current)return;let{ownerDocument:a}=o.current;if(Au(o.current,a.activeElement))return;if(t===!0){o.current.focus();return}let l=Sp.focus.tabbable.find(o.current).filter(v=>(0,Sp.isTextField)(v)),d=t===-1,u=l[d?l.length-1:0]||o.current;if(!Au(o.current,u)){o.current.focus();return}if(!o.current.getAttribute("contenteditable")){let v=Sp.focus.tabbable.findNext(o.current);if(v&&Au(o.current,v)&&(0,Sp.isFormElement)(v)){v.focus();return}}let{activeElement:f}=a,p=a.defaultView.getSelection(),{clientId:m,offset:g}=s();f?.isContentEditable&&f.contains(u)&&p.anchorNode&&u.contains(p.anchorNode)&&(t===0||g!==void 0&&m===e)||(0,Sp.placeCaretAtHorizontalEdge)(u,d)},[t,e]),o}var f8=c(ue(),1);var{subscribeDelegatedListener:zxe}=Z(f8.privateApis);function jxe({isEnabled:e=!0}={}){return(0,f8.useRefEffect)(t=>{if(!e)return;let o;function r(s){if(s.defaultPrevented)return;s.preventDefault();let a=s.type==="mouseover";if(t.classList.toggle("is-hovered",a),clearTimeout(o),!a){t.classList.remove("is-hovered-draggable");return}let{target:l}=s;o=setTimeout(()=>{t.classList.toggle("is-hovered-draggable",!l.isContentEditable)},100)}let n=zxe(t,"mouseout",r),i=zxe(t,"mouseover",r);return()=>{n(),i(),clearTimeout(o),t.classList.remove("is-hovered"),t.classList.remove("is-hovered-draggable")}},[e])}var p8=c(oe(),1),m8=c(ue(),1);var{subscribeDelegatedListener:Wit}=Z(m8.privateApis);function Hxe(e){let{isBlockSelected:t,isBlockMultiSelected:o,isMultiSelecting:r}=(0,p8.useSelect)(P),{selectBlock:n,selectionChange:i}=(0,p8.useDispatch)(P);return(0,m8.useRefEffect)(s=>{function a(l){if(t(e)){l.target.isContentEditable||i(e);return}if(!r()&&!o(e)&&Au(s,l.target)){if(l.target.isContentEditable){n(e,null);return}n(e)}}return Wit(s,"focusin",a)},[t,n])}var uh=c(D(),1);var Wxe=c(oe(),1),Gxe=c(ue(),1),$xe=c(D(),1);var tZ={onKeyDown:"keydown",onKeyUp:"keyup",onBeforeInput:"beforeinput",onInput:"input",onCompositionStart:"compositionstart",onCompositionUpdate:"compositionupdate",onCompositionEnd:"compositionend"},Git=Object.values(tZ);function Yxe(e){let t;for(let o in tZ)typeof e[o]=="function"&&(t=t||{},t[tZ[o]]=e[o]);return t}var Kxe=["eventPhase","bubbles","cancelable","timeStamp","defaultPrevented","isTrusted"],Uxe=[...Kxe,"view","detail","key","code","location","ctrlKey","shiftKey","altKey","metaKey","repeat","locale","getModifierState","charCode","keyCode","which"],a5=[...Kxe,"data"],$it={keydown:Uxe,keyup:Uxe,beforeinput:a5,input:a5,compositionstart:a5,compositionupdate:a5,compositionend:a5};function Yit(e,t){let o=!1,r={nativeEvent:e,type:e.type,target:t,currentTarget:null,preventDefault(){e.preventDefault(),r.defaultPrevented=!0},isDefaultPrevented(){return r.defaultPrevented},stopPropagation(){e.stopPropagation(),o=!0},isPropagationStopped(){return o},persist(){},isPersistent(){return!0}};for(let n of $it[e.type]){let i=e[n];r[n]=typeof i=="function"?i.bind(e):i}return r}function qxe(){let{hasMultiSelection:e,getBlockParents:t}=(0,Wxe.useSelect)(P),{refsMap:o,eventHandlers:r}=(0,$xe.useContext)(za);return(0,Gxe.useRefEffect)(n=>{function i(l){if(!r.size||l.target!==n||!l.isTrusted||n.contentEditable!=="true"||e())return;let d=n.ownerDocument.defaultView.getSelection();if(!d.rangeCount)return;let u=Ul(d,n),f=Wo(u);if(!f)return;let p=[f,...t(f,!0)],m;for(let g of p){let h=r.get(g)?.current?.[l.type],b=h&&o.get(g);if(b&&(m||(m=Yit(l,u)),m.currentTarget=b,h(m),m.isPropagationStopped()))break}}let s=n.ownerDocument.documentElement,a=Git.map(l=>(s.addEventListener(l,i),()=>s.removeEventListener(l,i)));return()=>a.forEach(l=>l())},[e,t,o,r])}function Xxe(e,t){let{eventHandlers:o}=(0,uh.useContext)(za),r=Yxe(t),n=(0,uh.useRef)();(0,uh.useInsertionEffect)(()=>{n.current=r});let i=!!r;(0,uh.useEffect)(()=>{if(i)return o.set(e,n),()=>o.delete(e)},[o,e,i])}var xx=c(ce(),1),Qxe=c(Ut(),1),pv=c(Mo(),1),g8=c(oe(),1),Jxe=c(ue(),1);function Zxe(e){return!e||e==="transparent"||e==="rgba(0, 0, 0, 0)"}function eke({clientId:e,isSelected:t}){let{getBlockRootClientId:o,isZoomOut:r,hasMultiSelection:n,isSectionBlock:i,editedContentOnlySection:s,getBlock:a}=Z((0,g8.useSelect)(P)),{removeBlock:l,resetZoomLevel:d,startDraggingBlocks:u,stopDraggingBlocks:f,editContentOnlySection:p}=Z((0,g8.useDispatch)(P));return(0,Jxe.useRefEffect)(m=>{if(!t)return;function g(v){let{keyCode:_,target:y}=v;_!==pv.ENTER&&_!==pv.BACKSPACE&&_!==pv.DELETE||y!==m||(0,Qxe.isTextField)(y)||(_===pv.ENTER?r()&&(v.preventDefault(),d()):(v.preventDefault(),l(e)))}function h(v){let{target:_}=v;if(m.isContentEditable||m.ownerDocument.activeElement!==m||n()||_.nodeType!==_.ELEMENT_NODE||_.closest('[draggable="true"]')!==m){v.preventDefault();return}let y=JSON.stringify({type:"block",srcClientIds:[e],srcRootClientId:o(e)});v.dataTransfer.effectAllowed="move",v.dataTransfer.clearData(),v.dataTransfer.setData("wp-blocks",y);let{ownerDocument:w}=m,{defaultView:x}=w;x.getSelection().removeAllRanges();let C=w.createElement("div");C.style.width="1px",C.style.height="1px",C.style.position="fixed",C.style.visibility="hidden",w.body.appendChild(C),v.dataTransfer.setDragImage(C,0,0);let S=m.getBoundingClientRect(),R=m.id,E=m.cloneNode();E.style.display="none",m.id=null,m.after(E);let I=1;{let J=m;for(;J=J.parentElement;){let{scale:W}=x.getComputedStyle(J);if(W&&W!=="none"){I=parseFloat(W);break}}}let B=1/I,O={};for(let J of["transform","transformOrigin","transition","zIndex","position","top","left","pointerEvents","opacity","backgroundColor"])O[J]=m.style[J];let M=x.scrollY,N=x.scrollX,j=v.clientX,V=v.clientY;m.style.position="relative",m.style.top="0px",m.style.left="0px";let A=v.clientX-S.left,L=v.clientY-S.top,z=S.height>200?200/S.height:1;if(m.style.zIndex="1000",m.style.transformOrigin=`${A*B}px ${L*B}px`,m.style.transition="transform 0.2s ease-out",m.style.transform=`scale(${z})`,m.style.opacity="0.9",Zxe(x.getComputedStyle(m).backgroundColor)){let J="transparent",W=m;for(;W=W.parentElement;){let{backgroundColor:Y}=x.getComputedStyle(W);if(!Zxe(Y)){J=Y;break}}m.style.backgroundColor=J}let F=!1,G=j,$=V;function K(J){J.clientX===G&&J.clientY===$||(G=J.clientX,$=J.clientY,q())}function q(){F||(F=!0,m.style.pointerEvents="none");let J=$-V,W=G-j,Y=x.scrollY,ee=x.scrollX,re=Y-M,ne=ee-N,ie=J+re,be=W+ne;m.style.top=`${ie*B}px`,m.style.left=`${be*B}px`}function H(){w.removeEventListener("dragover",K),w.removeEventListener("dragend",H),w.removeEventListener("drop",H),w.removeEventListener("scroll",q);for(let[J,W]of Object.entries(O))m.style[J]=W;E.remove(),m.id=R,C.remove(),f(),document.body.classList.remove("is-dragging-components-draggable"),w.documentElement.classList.remove("is-dragging")}w.addEventListener("dragover",K),w.addEventListener("dragend",H),w.addEventListener("drop",H),w.addEventListener("scroll",q),u([e]),document.body.classList.add("is-dragging-components-draggable"),w.documentElement.classList.add("is-dragging")}m.addEventListener("keydown",g),m.addEventListener("dragstart",h);function b(v){let _=i(e),y=a(e),w=(0,xx.isReusableBlock)(y),x=(0,xx.isTemplatePart)(y);!_||s===e||w||x||(v.preventDefault(),p(e))}return m.addEventListener("dblclick",b),()=>{m.removeEventListener("keydown",g),m.removeEventListener("dragstart",h),m.removeEventListener("dblclick",b)}},[e,t,o,a,xx.isReusableBlock,xx.isTemplatePart,l,r,d,n,u,f,i,s,p])}var tke=c(ue(),1),oke=c(D(),1);function rke(){let e=(0,oke.useContext)(h8);return(0,tke.useRefEffect)(t=>{if(e)return e.observe(t),()=>{e.unobserve(t)}},[e])}var b8=c(ue(),1);function nke({isSelected:e}){let t=(0,b8.useReducedMotion)();return(0,b8.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 ike=c(ue(),1),ske=c(oe(),1);function _8({clientId:e="",isEnabled:t=!0}={}){let{getEnabledClientIdsTree:o}=Z((0,ske.useSelect)(P));return(0,ike.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 ake=c(ue(),1),l5=new Map;function Kit(e,t){let o=l5.get(e);o||(o=new Set,l5.set(e,o),e.addEventListener("pointerdown",cke)),o.add(t)}function qit(e,t){let o=l5.get(e);o&&(o.delete(t),lke(t),o.size===0&&(l5.delete(e),e.removeEventListener("pointerdown",cke)))}function lke(e){let t=e.getAttribute("data-draggable");t&&(e.removeAttribute("data-draggable"),t==="true"&&!e.getAttribute("draggable")&&e.setAttribute("draggable","true"))}function cke(e){let{target:t}=e,{ownerDocument:o,isContentEditable:r,tagName:n}=t,i=["INPUT","TEXTAREA"].includes(n),s=l5.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)lke(a)}function dke(){return(0,ake.useRefEffect)(e=>(Kit(e.ownerDocument,e),()=>{qit(e.ownerDocument,e)}),[])}var Qr=c(X(),1),Cs=c(D(),1),Es=c(Q(),1),mv=c(oe(),1),mke=c(Wl(),1),gke=c(Ks(),1);var c5=c(X(),1);var{getViewportBreakpoints:Xit}=Z(Ro);function oZ(e){let t=Xit(e);return hU.filter(([o])=>(o!==mn.tablet.key||t.tablet!==void 0)&&(o!==mn.mobile.key||t.mobile!==void 0))}function Zit(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"||!hU.some(([,{key:n}])=>n===t)?!1:r[t]===!1}function fke(e,t){if(!e?.length)return!1;let o=e.filter(r=>Zit(r,t)).length;return o===0?!1:o===e.length?!0:null}function pke(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 rZ(e,t){if(!e&&e!==!1)return null;if(e===!1)return(0,c5.__)("Block is hidden");if(e?.viewport){let o=oZ(t).filter(([r])=>e.viewport?.[r]===!1).map(([,r])=>r.label);if(o.length>0)return(0,c5.sprintf)((0,c5.__)("Block is hidden on %s"),o.join(", "))}return null}var Dr=c(T(),1),Qit={[mn.mobile.key]:!1,[mn.tablet.key]:!1,[mn.desktop.key]:!1},Jit=[];function nZ({clientIds:e,onClose:t}){let{createSuccessNotice:o}=(0,mv.useDispatch)(gke.store),{updateBlockAttributes:r}=(0,mv.useDispatch)(P),n=(0,mv.useSelect)(w=>w(P).getBlocksByClientId(e)??Jit,[e]),i=(0,mv.useSelect)(w=>w(mke.store).getShortcutRepresentation("core/editor/toggle-list-view"),[]),s=(0,mv.useSelect)(w=>w(P).getSettings().__experimentalFeatures?.viewport,[]),a=(0,Cs.useMemo)(()=>oZ(s),[s]),l=(0,Cs.useMemo)(()=>{if(n?.length===0)return{hideEverywhere:!1,viewportChecked:{}};let w={};return a.forEach(([,{key:x}])=>{w[x]=fke(n,x)}),{hideEverywhere:pke(n),viewportChecked:w}},[n,a]),[d,u]=(0,Cs.useState)(l?.viewportChecked??{}),[f,p]=(0,Cs.useState)(l?.hideEverywhere??!1),m=(0,Cs.useCallback)((w,x)=>{u({...d,[w]:x})},[d]),g=(0,Cs.useMemo)(()=>{if(!f)return(0,Qr.sprintf)((0,Qr.__)("Block visibility settings updated. You can access them via the List View (%s)."),i);let w=n?.length>1?(0,Qr.__)("Blocks hidden. You can access them via the List View (%s)."):(0,Qr.__)("Block hidden. You can access it via the List View (%s).");return(0,Qr.sprintf)(w,i)},[f,n?.length,i]),h=(0,Cs.useMemo)(()=>Object.values(d).some(w=>w===!0||w===null),[d]),b=(0,Cs.useMemo)(()=>f!==l.hideEverywhere?!0:a.some(([,{key:w}])=>d[w]!==l.viewportChecked[w]),[f,d,l,a]),v=(0,Cs.useMemo)(()=>f===null?!0:Object.values(d).some(w=>w===null),[f,d]),_=(0,Cs.useCallback)(w=>{w.preventDefault();let x=f?!1:{viewport:a.reduce((C,[,{key:S}])=>(d[S]&&(C[S]=!1),C),{})},k=Object.fromEntries(n.map(({clientId:C,attributes:S})=>[C,{metadata:Qe({...S?.metadata,blockVisibility:x})}]));r(e,k,{uniqueByBlock:!0}),o(g,{id:f?"block-visibility-hidden":"block-visibility-viewports-updated",type:"snackbar"}),t()},[n,e,o,f,g,t,r,a,d]),y=n?.length>1;return(0,Dr.jsx)(Es.Modal,{title:e?.length>1?(0,Qr.__)("Hide blocks"):(0,Qr.__)("Hide block"),onRequestClose:t,overlayClassName:"block-editor-block-visibility-modal",size:"small",children:(0,Dr.jsxs)("form",{onSubmit:_,children:[(0,Dr.jsxs)("fieldset",{children:[(0,Dr.jsx)("legend",{children:y?(0,Qr.__)("Select the viewport sizes for which you want to hide the blocks. Changes will apply to all selected blocks."):(0,Qr.__)("Select the viewport size for which you want to hide the block.")}),(0,Dr.jsx)("ul",{className:"block-editor-block-visibility-modal__options",children:(0,Dr.jsxs)("li",{className:"block-editor-block-visibility-modal__options-item block-editor-block-visibility-modal__options-item--everywhere",children:[(0,Dr.jsx)(Es.CheckboxControl,{className:"block-editor-block-visibility-modal__options-checkbox--everywhere",label:(0,Qr.__)("Omit from published content"),checked:f===!0,indeterminate:f===null,onChange:w=>{p(w),u(Qit)}}),f!==!0&&(0,Dr.jsx)("ul",{className:"block-editor-block-visibility-modal__sub-options",children:a.map(([,{label:w,icon:x,key:k}])=>(0,Dr.jsxs)("li",{className:"block-editor-block-visibility-modal__options-item",children:[(0,Dr.jsx)(Es.CheckboxControl,{label:(0,Qr.sprintf)((0,Qr.__)("Hide on %s"),w),checked:d[k]??!1,indeterminate:d[k]===null,onChange:C=>m(k,C)}),(0,Dr.jsx)(Es.Icon,{icon:x,className:U({"block-editor-block-visibility-modal__options-icon--checked":d[k]})})]},k))})]})}),y&&v&&(0,Dr.jsx)("p",{className:"block-editor-block-visibility-modal__description",children:(0,Qr.__)("Selected blocks have different visibility settings. The checkboxes show an indeterminate state when settings differ.")}),!y&&f===!0&&(0,Dr.jsx)("p",{className:"block-editor-block-visibility-modal__description",children:(0,Qr.sprintf)((0,Qr.__)("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)}),!y&&!f&&h&&(0,Dr.jsx)("p",{className:"block-editor-block-visibility-modal__description",children:(0,Cs.createInterpolateElement)((0,Qr.sprintf)((0,Qr.__)("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,Dr.jsx)("strong",{})})})]}),(0,Dr.jsxs)(Es.Flex,{className:"block-editor-block-visibility-modal__actions",justify:"flex-end",expanded:!1,children:[(0,Dr.jsx)(Es.FlexItem,{children:(0,Dr.jsx)(Es.Button,{variant:"tertiary",onClick:t,__next40pxDefaultSize:!0,children:(0,Qr.__)("Cancel")})}),(0,Dr.jsx)(Es.FlexItem,{children:(0,Dr.jsx)(Es.Button,{variant:"primary",type:"submit",disabled:!b,accessibleWhenDisabled:!0,__next40pxDefaultSize:!0,children:(0,Qr.__)("Apply")})})]})]})})}var iZ=c(ue(),1);var{getViewportBreakpoints:est}=Z(Ro);function Gl({blockVisibility:e,deviceType:t="desktop",viewportSettings:o,view:r=window}={}){let n=est(o),i=n.mobile?`(width <= ${n.mobile})`:void 0,s=(0,iZ.useMediaQuery)(i,r),a;n.tablet&&(a=n.mobile?`(${n.mobile} < width <= ${n.tablet})`:`(width <= ${n.tablet})`);let l=(0,iZ.useMediaQuery)(a,r),d;return t==="mobile"&&n.mobile?d="mobile":t==="tablet"&&n.tablet?d="tablet":s?d="mobile":l&&n.tablet?d="tablet":d="desktop",{isBlockCurrentlyHidden:e===!1||typeof e=="object"&&e?.viewport?.[d]===!1,currentViewport:d}}var sZ=c(X(),1),v8=c(Q(),1),y8=c(D(),1);var hke=c(ce(),1),w8=c(oe(),1);var aZ=c(T(),1);function lZ({clientIds:e}){let t=(0,y8.useRef)(!1),[o]=Fe("blockVisibility.allowEditing"),{canToggleBlockVisibility:r,areBlocksHiddenAnywhere:n}=(0,w8.useSelect)(a=>{let{getBlocksByClientId:l,getBlockName:d,isBlockHiddenAnywhere:u}=Z(a(P));return{canToggleBlockVisibility:l(e).every(({clientId:p})=>(0,hke.hasBlockSupport)(d(p),"visibility",!0)),areBlocksHiddenAnywhere:e?.every(p=>u(p))}},[e]),i=(0,w8.useDispatch)(P);if((0,y8.useEffect)(()=>{n&&(t.current=!0)},[n]),o===!1||!n&&!t.current)return null;let{showViewportModal:s}=Z(i);return(0,aZ.jsx)(v8.ToolbarGroup,{className:"block-editor-block-visibility-toolbar",children:(0,aZ.jsx)(v8.ToolbarButton,{disabled:!r,icon:n?Uc:r_,label:n?(0,sZ.__)("Hidden"):(0,sZ.__)("Visible"),onClick:()=>s(e),"aria-haspopup":"dialog"})})}var cZ=c(X(),1),bke=c(Q(),1),x8=c(oe(),1),_ke=c(Wl(),1);var vke=c(T(),1);function dZ({clientIds:e}){let[t]=Fe("blockVisibility.allowEditing"),{areBlocksHiddenAnywhere:o,shortcut:r}=(0,x8.useSelect)(s=>{let{isBlockHiddenAnywhere:a}=Z(s(P));return{areBlocksHiddenAnywhere:e?.every(l=>a(l)),shortcut:s(_ke.store).getShortcutRepresentation("core/block-editor/toggle-block-visibility")}},[e]),n=(0,x8.useDispatch)(P);if(t===!1)return null;let{showViewportModal:i}=Z(n);return(0,vke.jsx)(bke.MenuItem,{onClick:()=>i(e),shortcut:r,children:o?(0,cZ.__)("Show"):(0,cZ.__)("Hide")})}var uZ=c(oe(),1),fh=c(X(),1);var fZ=c(T(),1),tst={currentBlockVisibility:void 0,hasParentHiddenEverywhere:!1,selectedDeviceType:mn.desktop.key};function yke({clientId:e}){let{currentBlockVisibility:t,selectedDeviceType:o,viewportSettings:r,hasParentHiddenEverywhere:n}=(0,uZ.useSelect)(p=>{if(!e)return tst;let{getBlockAttributes:m,isBlockParentHiddenEverywhere:g,getSettings:h}=Z(p(P)),b=h();return{currentBlockVisibility:m(e)?.metadata?.blockVisibility,selectedDeviceType:b?.[gl]?.toLowerCase()||mn.desktop.key,viewportSettings:b?.__experimentalFeatures?.viewport,hasParentHiddenEverywhere:g(e)}},[e]),s=eo(e)?.ownerDocument?.defaultView,a=s===null?void 0:s,{isBlockCurrentlyHidden:l,currentViewport:d}=Gl({blockVisibility:t,deviceType:o,viewportSettings:r,view:a}),u=(0,uZ.useSelect)(p=>!e||!d?!1:Z(p(P)).isBlockParentHiddenAtViewport(e,d),[e,d]);if(!(l||n||u))return null;let f;if(l)if(t===!1)f=(0,fh.__)("Hidden");else{let p=mn[d]?.label||d;f=(0,fh.sprintf)((0,fh.__)("Hidden on %s"),p)}if(n)f=(0,fh.__)("Parent hidden");else if(u){let p=mn[d]?.label||d;f=(0,fh.sprintf)((0,fh.__)("Parent hidden on %s"),p)}return(0,fZ.jsx)(NR.Root,{className:"block-editor-block-visibility-info",icon:Uc,intent:"info",children:(0,fZ.jsx)(NR.Description,{children:f})})}function ost(e,t){let{insertBlocks:o}=(0,kke.useDispatch)(P);return(0,gv.useRefEffect)(r=>{if(!t)return;function n(){r.removeEventListener("pointerdown",i,!0),r.removeEventListener("focusin",i,!0)}function i(){n(),o([t],void 0,e,!0,0)}return r.addEventListener("pointerdown",i,!0),r.addEventListener("focusin",i,!0),n},[t,e,o])}function u5(e={},{__unstableIsHtml:t}={}){let{clientId:o,className:r,wrapperProps:n={},isAligned:i,index:s,mode:a,name:l,blockApiVersion:d,blockTitle:u,isSelected:f,isSubtreeDisabled:p,hasOverlay:m,initialPosition:g,blockEditingMode:h,isHighlighted:b,isMultiSelected:v,isPartiallySelected:_,isReusable:y,isDragging:w,hasChildSelected:x,isEditingDisabled:k,hasEditableOutline:C,isEditingContentOnlySection:S,defaultClassName:R,isSectionBlock:E,isWithinSectionBlock:I,canMove:B,blockVisibility:O,deviceType:M,viewportSettings:N,ariaLabel:j,ghostBlock:V,rootClientId:A}=(0,wke.useContext)(si),L=ost(A,V);Xxe(o,n);let z=(0,gv.useRefEffect)(re=>{if(re){let{ownerDocument:ne}=re,{defaultView:ie}=ne;z.current=ie}},[]),F=(0,d5.sprintf)((0,d5.__)("Block: %s"),u),G=a==="html"&&!t?"-visual":"",$=dke(),K=!I,q=(0,gv.useMergeRefs)([e.ref,L,z,Fxe({clientId:o,initialPosition:g}),f0e(o),Hxe(o),eke({clientId:o,isSelected:f}),jxe({isEnabled:K}),rke(),l8({triggerAnimationOnChange:s,clientId:o}),(0,gv.useDisabled)({isDisabled:!m}),_8({clientId:o,isEnabled:E}),nke({isSelected:f}),B?$:void 0]),H=Mt(),W=!!H[Ky]?{"--wp-admin-theme-color":"var(--wp-block-synced-color)","--wp-admin-theme-color--rgb":"var(--wp-block-synced-color--rgb)"}:{},{isBlockCurrentlyHidden:Y}=Gl({blockVisibility:O,deviceType:M,viewportSettings:N,view:z.current});d<2&&o===H.clientId&&(0,Ske.default)(`Block type "${l}" must support API version 2 or higher to work correctly with "useBlockProps" method.`);let ee=!1;return(n?.style?.marginTop?.charAt(0)==="-"||n?.style?.marginBottom?.charAt(0)==="-"||n?.style?.marginLeft?.charAt(0)==="-"||n?.style?.marginRight?.charAt(0)==="-")&&(ee=!0),{tabIndex:h==="disabled"?-1:0,draggable:B&&!x?!0:void 0,...n,...e,ref:q,id:`block-${o}${G}`,role:"document","aria-label":j??(o===V?.clientId?(0,d5.__)("Add default block"):void 0)??e["aria-label"]??F,"data-block":o,"data-type":l,"data-title":u,inert:p?"true":void 0,className:U("block-editor-block-list__block",{"wp-block":!i,"has-block-overlay":m,"is-selected":f,"is-highlighted":b,"is-multi-selected":v,"is-partially-selected":_,"is-reusable":y,"is-dragging":w,"has-child-selected":x,"is-editing-disabled":k,"has-editable-outline":C,"has-negative-margin":ee,"is-editing-content-only-section":S,"is-block-hidden":Y},r,e.className,n.className,R),style:{...n.style,...e.style,...W}}}u5.save=xke.__unstableGetBlockProps;var Jr=c(T(),1);function rst(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 k8({children:e,isHtml:t,...o}){return(0,Jr.jsx)("div",{...u5(o,{__unstableIsHtml:t}),children:e})}function pZ({block:{__unstableBlockSource:e},mode:t,isLocked:o,canRemove:r,clientId:n,isSelected:i,isSelectionEnabled:s,className:a,__unstableLayoutClassNames:l,name:d,isValid:u,attributes:f,wrapperProps:p,setAttributes:m,onReplace:g,onRemove:h,onInsertBlocksAfter:b,onMerge:v,toggleSelection:_}){let{mayDisplayControls:y,mayDisplayParentControls:w,isSelectionWithinCurrentSection:x,themeSupportsLayout:k,...C}=(0,Cp.useContext)(si),S=mg()||{},R=(0,Jr.jsx)(g9,{name:d,isSelected:i,attributes:f,setAttributes:m,insertBlocksAfter:o?void 0:b,onReplace:r?g:void 0,onRemove:r?h:void 0,mergeBlocks:r?v:void 0,clientId:n,isSelectionEnabled:s,toggleSelection:_,__unstableLayoutClassNames:l,__unstableParentLayout:Object.keys(S).length?S:void 0,mayDisplayControls:y,mayDisplayParentControls:w,mayDisplayPatternEditingControls:x,blockEditingMode:C.blockEditingMode,isPreviewMode:C.isPreviewMode}),E=(0,to.getBlockType)(d);E?.getEditWrapperProps&&(p=rst(p,E.getEditWrapperProps(f)));let I=p&&!!p["data-align"]&&!k,B=a?.includes("is-position-sticky");I&&(R=(0,Jr.jsx)("div",{className:U("wp-block",B&&a),"data-align":p["data-align"],children:R}));let O;if(u)t==="html"?O=(0,Jr.jsxs)(Jr.Fragment,{children:[(0,Jr.jsx)("div",{style:{display:"none"},children:R}),(0,Jr.jsx)(k8,{isHtml:!0,children:(0,Jr.jsx)(N0e,{clientId:n})})]}):E?.apiVersion>1?O=R:O=(0,Jr.jsx)(k8,{children:R});else{let V=e?(0,to.serializeRawBlock)(e):(0,to.getSaveContent)(E,f);O=(0,Jr.jsxs)(k8,{className:"has-warning",children:[(0,Jr.jsx)(E0e,{clientId:n}),(0,Jr.jsx)(Cp.RawHTML,{children:(0,Eke.safeHTML)(V)})]})}let{"data-align":M,...N}=p??{},j={...N,className:U(N.className,M&&k&&`align${M}`,!(M&&B)&&a)};return(0,Jr.jsx)(si.Provider,{value:{wrapperProps:j,isAligned:I,isSelectionWithinCurrentSection:x,...C},children:(0,Jr.jsx)(B0e,{fallback:(0,Jr.jsx)(k8,{className:"has-warning",children:(0,Jr.jsx)(I0e,{})}),children:O})})}var nst=(0,S8.withDispatch)((e,t,o)=>{let{updateBlockAttributes:r,insertBlocks:n,mergeBlocks:i,replaceBlocks:s,toggleSelection:a,__unstableMarkLastChangeAsPersistent:l,moveBlocksToPosition:d,removeBlock:u,selectBlock:f}=e(P);return{setAttributes(p){let{getMultiSelectedBlockClientIds:m}=o.select(P),g=m(),{clientId:h,attributes:b}=t,v=g.length?g:[h],_=typeof p=="function"?p(b):p;r(v,_)},onInsertBlocks(p,m){let{rootClientId:g}=t;n(p,m,g)},onInsertBlocksAfter(p){let{clientId:m,rootClientId:g}=t,{getBlockIndex:h}=o.select(P),b=h(m);n(p,b+1,g)},onMerge(p){let{clientId:m,rootClientId:g}=t,{getPreviousBlockClientId:h,getNextBlockClientId:b,getBlock:v,getBlockAttributes:_,getBlockName:y,getBlockOrder:w,getBlockIndex:x,getBlockRootClientId:k,canInsertBlockType:C}=o.select(P);function S(){let E=v(m),I=(0,to.getDefaultBlockName)(),B=(0,to.getBlockType)(I);if(y(m)!==I){let O=(0,to.switchToBlockType)(E,I);O&&O.length&&s(m,O)}else if((0,to.isUnmodifiedDefaultBlock)(E)){let O=b(m);O&&o.batch(()=>{u(m),f(O)})}else if(B.merge){let O=B.merge({},E.attributes);s([m],[(0,to.createBlock)(I,O)])}}function R(E,I=!0){let B=y(E),M=(0,to.getBlockType)(B).category==="text",N=k(E),j=w(E),[V]=j;j.length===1&&(0,to.isUnmodifiedBlock)(v(V),"content")?u(E):M?o.batch(()=>{if(C(y(V),N))d([V],E,N,x(E));else{let L=(0,to.switchToBlockType)(v(V),(0,to.getDefaultBlockName)());L&&L.length&&L.every(z=>C(z.name,N))?(n(L,x(E),N,I),u(V,!1)):S()}let A=v(E);A&&!w(E).length&&(0,to.isUnmodifiedBlock)(A,"content")&&u(E,!1)}):S()}if(p){if(g){let I=b(g);if(I)if(y(g)===y(I)){let B=_(g),O=_(I);if(Object.keys(B).every(M=>B[M]===O[M])){o.batch(()=>{d(w(I),I,g),u(I,!1)});return}}else{i(g,I);return}}let E=b(m);if(!E)return;if((0,to.isUnmodifiedDefaultBlock)(v(m))){let I=E;for(;w(I).length;)I=w(I)[0];o.batch(()=>{u(m),f(I)})}else w(E).length?R(E,!1):i(m,E)}else{let E=h(m);if(E)i(E,m);else if(g){let I=h(g);if(I&&y(g)===y(I)){let B=_(g),O=_(I);if(Object.keys(B).every(M=>B[M]===O[M])){o.batch(()=>{d(w(g),g,I),u(g,!1)});return}}R(g)}else S()}},onReplace(p,m,g){p.length&&!(0,to.isUnmodifiedDefaultBlock)(p[p.length-1])&&l();let h=p?.length===1&&Array.isArray(p[0])?p[0]:p;s([t.clientId],h,m,g)},onRemove(){u(t.clientId)},toggleSelection(p){a(p)}}});pZ=(0,C8.compose)(nst,(0,Cke.withFilters)("editor.BlockListBlock"))(pZ);function ist(e){let{clientId:t,rootClientId:o,ghostBlock:r}=e,n=(0,Cp.useMemo)(()=>r?{clientId:r.clientId,name:r.name,isValid:!0}:void 0,[r]),i=(0,S8.useSelect)(pe=>{let{isBlockSelected:Ee,getBlockMode:ye,isSelectionEnabled:Oe,getTemplateLock:we,isSectionBlock:_e,getParentSectionBlock:xe,getBlockWithoutAttributes:he,getBlockAttributes:Ze,canRemoveBlock:fe,canMoveBlock:Ce,getSettings:de,getEditedContentOnlySection:ae,getBlockEditingMode:Re,getBlockName:$e,isFirstMultiSelectedBlock:ct,getMultiSelectedBlockClientIds:Pt,hasSelectedInnerBlock:at,getBlocksByName:Be,getBlockIndex:qe,isBlockMultiSelected:vt,isBlockSubtreeDisabled:Vt,isBlockHighlighted:kt,__unstableIsFullySelected:yt,__unstableSelectionHasUnmergeableBlock:Ye,isBlockBeingDragged:Se,isDragging:Ie,__unstableHasActiveBlockOverlayActive:me,getSelectedBlocksInitialCaretPosition:Te}=Z(pe(P)),Me=he(t)??(t===n?.clientId?n:void 0);if(!Me)return;let{hasBlockSupport:lt,getActiveBlockVariation:et}=pe(to.store),ao=Ze(t)??r?.attributes,{name:Lo,isValid:$r}=Me,xo=(0,to.getBlockType)(Lo),_o=de(),{supportsLayout:ht,isPreviewMode:Ot,__experimentalBlockBindingsSupportedAttributes:fn}=_o,Ii=fn?.[Lo],Cn=ao?.metadata?.blockVisibility,Pi=_o?.[gl]?.toLowerCase()||"desktop",as=_o?.__experimentalFeatures?.viewport,ls=xo?.apiVersion>1,ul=vt(t),Ne=Re(t),ko={isPreviewMode:Ot,blockWithoutAttributes:Me,name:Lo,attributes:ao,isValid:$r,themeSupportsLayout:ht,index:qe(t),isReusable:(0,to.isReusableBlock)(xo),className:ls?ao.className:void 0,defaultClassName:ls?(0,to.getBlockDefaultClassName)(Lo):void 0,blockTitle:xo?.title,bindableAttributes:Ii,blockVisibility:Cn,deviceType:Pi,viewportSettings:as,isMultiSelected:ul,blockEditingMode:Ne,isEditingDisabled:Ne==="disabled"};if(Ot)return ko;let dt=Ee(t),lo=fe(t),Mr=Ce(t),ar=et(Lo,ao),ri=!0,Bf=at(t,ri),fl=_e(t),Lc=fl?t:xe(t),IS=Ee(Lc)||!!Lc&&at(Lc,ri),Fb=(0,to.hasBlockSupport)(Lo,"multiple",!0)?[]:Be(Lo),Wy=Fb.length&&Fb[0]!==t;return{...ko,mode:ye(t),isSelectionEnabled:Oe(),isLocked:!!we(o),isSectionBlock:fl,isWithinSectionBlock:!!Lc,isSelectionWithinCurrentSection:IS,blockType:xo,canRemove:lo,canMove:Mr,isSelected:dt,isEditingContentOnlySection:ae()===t,blockEditingMode:Ne,mayDisplayControls:dt||ct(t)&&Pt().every(zb=>$e(zb)===Lo),mayDisplayParentControls:lt($e(t),"__experimentalExposeControlsToChildren",!1)&&at(t),blockApiVersion:xo?.apiVersion||1,blockTitle:ar?.title||xo?.title,isSubtreeDisabled:Ne==="disabled"&&Vt(t),hasOverlay:me(t)&&!Ie(),initialPosition:dt?Te():void 0,isHighlighted:kt(t),isMultiSelected:ul,isPartiallySelected:ul&&!yt()&&!Ye(),isDragging:Se(t),hasChildSelected:Bf,isEditingDisabled:Ne==="disabled",hasEditableOutline:Ne!=="disabled"&&Re(o)==="disabled",originalBlockClientId:Wy?Fb[0]:!1,blockVisibility:Cn,deviceType:Pi,viewportSettings:as,supportsSplitting:(0,to.hasBlockSupport)(Lo,"splitting",!1)}},[t,o,r,n]),s=(0,C8.useRefEffect)(pe=>{if(pe){let{ownerDocument:Ee}=pe,{defaultView:ye}=Ee;s.current=ye}},[]),{isBlockCurrentlyHidden:a}=Gl({blockVisibility:i?.blockVisibility,deviceType:i?.deviceType,viewportSettings:i?.viewportSettings,view:s.current}),l=(0,Cp.useMemo)(()=>({...i?.blockWithoutAttributes,attributes:i?.attributes}),[i?.blockWithoutAttributes,i?.attributes]);if(!i)return null;let{isPreviewMode:d,mode:u="visual",isSelectionEnabled:f=!1,isLocked:p=!1,canRemove:m=!1,canMove:g=!1,name:h,attributes:b,isValid:v,isSelected:_=!1,themeSupportsLayout:y,isEditingContentOnlySection:w,blockEditingMode:x,mayDisplayControls:k,mayDisplayParentControls:C,index:S,blockApiVersion:R,blockType:E,blockTitle:I,isSubtreeDisabled:B,hasOverlay:O,initialPosition:M,isHighlighted:N,isMultiSelected:j,isPartiallySelected:V,isReusable:A,isDragging:L,hasChildSelected:z,isSectionBlock:F,isWithinSectionBlock:G,isSelectionWithinCurrentSection:$,isEditingDisabled:K,hasEditableOutline:q,className:H,defaultClassName:J,originalBlockClientId:W,bindableAttributes:Y,blockVisibility:ee,deviceType:re,viewportSettings:ne,supportsSplitting:ie}=i,be={isPreviewMode:d,ghostBlock:r,rootClientId:o,clientId:t,className:H,index:S,mode:u,name:h,blockApiVersion:R,blockType:E,blockTitle:I,isSelected:_,isSubtreeDisabled:B,hasOverlay:O,initialPosition:M,blockEditingMode:x,isHighlighted:N,isMultiSelected:j,isPartiallySelected:V,isReusable:A,isDragging:L,hasChildSelected:z,isSectionBlock:F,isWithinSectionBlock:G,isSelectionWithinCurrentSection:$,isEditingDisabled:K,hasEditableOutline:q,isEditingContentOnlySection:w,defaultClassName:J,mayDisplayControls:k,mayDisplayParentControls:C,originalBlockClientId:W,themeSupportsLayout:y,canMove:g,isBlockCurrentlyHidden:a,bindableAttributes:Y,blockVisibility:ee,deviceType:re,viewportSettings:ne,supportsSplitting:ie};return a&&!_&&!j&&!z?null:(0,Jr.jsx)(si.Provider,{value:be,children:(0,Jr.jsx)(pZ,{...e,mode:u,isSelectionEnabled:f,isLocked:p,canRemove:m,canMove:g,block:l,name:h,attributes:b,isValid:v,isSelected:_})})}var E8=(0,Cp.memo)(ist);var RQ=c(oe(),1),WTe=c(ce(),1);var EQ=c(X(),1),FTe=c(Rke(),1),XM=c(oe(),1),ZM=c(Mo(),1);var VTe=c(zo(),1),Ap=c(X(),1),qM=c(Q(),1),pk=c(oe(),1),Ev=c(ce(),1),CQ=c(D(),1);var vo=c(D(),1),WM=c(Q(),1);var Th=c(X(),1),W5=c(ue(),1),GM=c(oe(),1);var kx=c(X(),1),Sx=c(D(),1),Pke=c(Q(),1),f5=c(T(),1),Ike=[(0,Sx.createInterpolateElement)((0,kx.__)("While writing, you can press <kbd>/</kbd> to quickly insert new blocks."),{kbd:(0,f5.jsx)("kbd",{})}),(0,Sx.createInterpolateElement)((0,kx.__)("Indent a list by pressing <kbd>space</kbd> at the beginning of a line."),{kbd:(0,f5.jsx)("kbd",{})}),(0,Sx.createInterpolateElement)((0,kx.__)("Outdent a list by pressing <kbd>backspace</kbd> at the beginning of a line."),{kbd:(0,f5.jsx)("kbd",{})}),(0,kx.__)("Drag files into the editor to automatically insert media blocks."),(0,kx.__)("Change a block's type by pressing the block icon on the toolbar.")];function sst(){let[e]=(0,Sx.useState)(()=>Math.floor(Math.random()*Ike.length));return(0,f5.jsx)(Pke.Tip,{children:Ike[e]})}var Bke=sst;var qx=c(ce(),1),pEe=c(D(),1),mEe=c(X(),1);var p5=c(Q(),1);var T8=c(oe(),1),Oke=c(Gt(),1),ph=c(X(),1);var Mke=c(ce(),1);var hi=c(T(),1);function ast({children:e,onClick:t}){return t?(0,hi.jsx)(p5.Button,{__next40pxDefaultSize:!0,className:"block-editor-block-card__parent-select-button",onClick:t,children:e}):e}function lst({title:e,icon:t,description:o,blockType:r,className:n,name:i,allowParentNavigation:s,parentClientId:a,isChild:l,children:d,clientId:u,controls:f}){r&&((0,Oke.default)("`blockType` property in `BlockCard component`",{since:"5.7",alternative:"`title, icon and description` properties"}),{title:e,icon:t,description:o}=r);let{parentBlockClientId:p,parentBlockName:m}=(0,T8.useSelect)(b=>{if(a||l||!s)return{};let{getBlockParents:v,getBlockName:_,shouldRenderBlockListView:y}=Z(b(P)),x=v(u,!1).find(k=>y(k));return{parentBlockClientId:x,parentBlockName:x?_(x):null}},[u,s,l,a]),{selectBlock:g}=(0,T8.useDispatch)(P),h=a?"div":"h2";return(0,hi.jsx)("div",{className:U("block-editor-block-card",{"is-parent":a,"is-child":l},n),children:(0,hi.jsxs)(De,{direction:"column",gap:"sm",children:[(0,hi.jsxs)(De,{direction:"row",align:"center",justify:"space-between",children:[(0,hi.jsxs)(De,{direction:"row",align:"center",justify:"flex-start",children:[p&&(0,hi.jsx)(p5.Button,{onClick:()=>g(p),label:m?(0,ph.sprintf)((0,ph.__)('Go to "%s" block'),(0,Mke.getBlockType)(m)?.title):(0,ph.__)("Go to parent block"),style:{minWidth:24,padding:0},icon:(0,ph.isRTL)()?yr:ai,size:"small"}),l&&(0,hi.jsx)("span",{className:"block-editor-block-card__child-indicator-icon",children:(0,hi.jsx)(p5.Icon,{icon:(0,ph.isRTL)()?zS:jS})}),(0,hi.jsxs)(ast,{onClick:a?()=>{g(a)}:void 0,children:[(0,hi.jsx)($t,{icon:t,showColors:!0}),(0,hi.jsxs)(De,{direction:"column",gap:"xs",children:[(0,hi.jsxs)(h,{className:"block-editor-block-card__title",children:[(0,hi.jsx)("span",{className:"block-editor-block-card__name",children:i?.length?i:e}),!a&&!l&&!!i?.length&&(0,hi.jsx)(cp,{children:e})]}),d]})]})]}),f]}),!a&&!l&&o&&(0,hi.jsx)(Ct,{className:"block-editor-block-card__description",children:o})]})})}var m5=lst;var hM=c(ue(),1),nQ=c(oe(),1),wv=c(D(),1),rQ=c(Gt(),1);var e1e=c(oe(),1),mh=c(D(),1),t1e=c(Q(),1),o1e=c(X(),1),Wa=c(Nke(),1);var Lke=c(D(),1),Cx=c(oe(),1),Dke=c(ue(),1);var R8=c(T(),1);function cst(e,t,o){if(!o)return t;let r=e.get(t);return r||(r=(0,Cx.createRegistry)({},t),r.registerStore(wr,Aw),e.set(t,r)),r}var dst=(0,Dke.createHigherOrderComponent)(e=>function({useSubRegistry:o=!0,...r}){let n=(0,Cx.useRegistry)(),[i]=(0,Lke.useState)(()=>new WeakMap),s=cst(i,n,o);return s===n?(0,R8.jsx)(e,{registry:n,...r}):(0,R8.jsx)(Cx.RegistryProvider,{value:s,children:(0,R8.jsx)(e,{registry:s,...r})})},"withRegistryProvider"),Vke=dst;var Ts=c(D(),1),Hke=c(oe(),1),Uke=c(ce(),1);var Fke=c(D(),1),ust=()=>{},I8=(0,Fke.createContext)({getSelection:()=>{},onChangeSelection:ust});var zke=()=>{};function Wke(e,t){let o=(0,Uke.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=>Wke(r,t))),o}function Gke(e,t){return e.map(o=>{let r=t.internalToExternal.get(o.clientId);return{...o,clientId:r??o.clientId,innerBlocks:Gke(o.innerBlocks,t)}})}function jke(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 P8({clientId:e=null,value:t,onChange:o=zke,onInput:r=zke}){let n=(0,Hke.useRegistry)(),{getSelection:i,onChangeSelection:s}=(0,Ts.useContext)(I8),{resetBlocks:a,resetSelection:l,replaceInnerBlocks:d,setHasControlledInnerBlocks:u,__unstableMarkNextChangeAsNotPersistent:f}=n.dispatch(P),{getBlockName:p,getBlocks:m,getSelectionStart:g,getSelectionEnd:h}=n.select(P),b=(0,Ts.useRef)({incoming:null,outgoing:[]}),v=(0,Ts.useRef)(!1),_=(0,Ts.useRef)({externalToInternal:new Map,internalToExternal:new Map}),y=(0,Ts.useRef)(null),w=(0,Ts.useRef)(!1),x=()=>{let E=i();if(!E?.selectionStart?.clientId||E===y.current)return;let I=E.selectionStart.clientId;if(e?_.current.externalToInternal.has(I):!!p(I)){y.current=E;let O=M=>!M?.clientId||!e?M:{...M,clientId:_.current.externalToInternal.get(M.clientId)??M.clientId};w.current=!0,l(O(E.selectionStart),O(E.selectionEnd),E.initialPosition),w.current=!1}},k=()=>{t&&(e?n.batch(()=>{_.current.externalToInternal.clear(),_.current.internalToExternal.clear();let E=t.map(I=>Wke(I,_.current));f({history:"ignore"}),u(e,!0),v.current&&(b.current.incoming=E),f({history:"ignore"}),d(e,E),y.current=null}):(v.current&&(b.current.incoming=t),f({history:"ignore"}),a(t)))},C=()=>{e?(f({history:"ignore"}),u(e,!1),f({history:"ignore"}),d(e,[])):(f({history:"ignore"}),a([]))},S=(0,Ts.useRef)(r),R=(0,Ts.useRef)(o);(0,Ts.useEffect)(()=>{S.current=r,R.current=o},[r,o]),(0,Ts.useEffect)(()=>{let E=b.current.outgoing.includes(t),I=m(e)===t;E?b.current.outgoing[b.current.outgoing.length-1]===t&&(b.current.outgoing=[]):I||(b.current.outgoing=[],k(),x())},[t,e]),(0,Ts.useEffect)(()=>{let{getSelectedBlocksInitialCaretPosition:E,isLastBlockChangePersistent:I,__unstableGetLastBlockChangeHistoryMode:B,__unstableIsLastBlockChangeIgnored:O,areInnerBlocksControlled:M,getBlockParents:N}=n.select(P),j=m(e),V=I(),A=B(),L=!1,z=g(),F=h();v.current=!0;let G=n.subscribe(()=>{if(e!==null&&p(e)===null)return;let $=I(),K=B(),q=m(e),H=q!==j;if(j=q,H&&(b.current.incoming||O())){b.current.incoming=null,V=$,A=K;return}let W=H||L&&!H&&$&&!V,Y=g(),ee=h(),re=Y!==z||ee!==F;re&&(z=Y,F=ee),(W||re)&&n.batch(()=>{if(W){V=$,A=K;let ne=e?Gke(j,_.current):j,ie={selectionStart:Y,selectionEnd:ee,initialPosition:E()},be=e?jke(ie,_.current):ie;b.current.outgoing.push(ne);let pe=V?R.current:S.current,Ee={selection:be};A==="ignore"&&(Ee.undoIgnore=!0),pe(ne,Ee)}if(re&&!W&&Y?.clientId&&!w.current&&(e?_.current.internalToExternal.has(Y.clientId):!N(Y.clientId).some(ie=>M(ie)))){let ie={selectionStart:Y,selectionEnd:ee,initialPosition:E()};s(e?jke(ie,_.current):ie)}}),L=H},P);return()=>{v.current=!1,G()}},[n,e]),(0,Ts.useEffect)(()=>()=>{C()},[])}var $ke=c(D(),1),Yke=c(oe(),1),Kke=c(Wl(),1),en=c(X(),1);function qke(){return null}function fst(){let{registerShortcut:e,unregisterShortcut:t}=(0,Yke.useDispatch)(Kke.store),[o]=Fe("blockVisibility.allowEditing");return(0,$ke.useEffect)(()=>{e({name:"core/block-editor/copy",category:"block",description:(0,en.__)("Copy the selected block(s)."),keyCombination:{modifier:"primary",character:"c"}}),e({name:"core/block-editor/cut",category:"block",description:(0,en.__)("Cut the selected block(s)."),keyCombination:{modifier:"primary",character:"x"}}),e({name:"core/block-editor/paste",category:"block",description:(0,en.__)("Paste the selected block(s)."),keyCombination:{modifier:"primary",character:"v"}}),e({name:"core/block-editor/duplicate",category:"block",description:(0,en.__)("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:(0,en.__)("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/paste-styles",category:"block",description:(0,en.__)("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,en.__)("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,en.__)("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,en.__)("Delete selection."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/stop-editing-as-blocks",category:"block",description:(0,en.__)("Finish editing a design."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/select-all",category:"selection",description:(0,en.__)("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,en.__)("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/multi-text-selection",category:"selection",description:(0,en.__)("Select text across multiple blocks."),keyCombination:{modifier:"shift",character:"arrow"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:(0,en.__)("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}}),e({name:"core/block-editor/move-up",category:"block",description:(0,en.__)("Move the selected block(s) up."),keyCombination:{modifier:"secondary",character:"t"}}),e({name:"core/block-editor/move-down",category:"block",description:(0,en.__)("Move the selected block(s) down."),keyCombination:{modifier:"secondary",character:"y"}}),e({name:"core/block-editor/collapse-list-view",category:"list-view",description:(0,en.__)("Collapse all other items."),keyCombination:{modifier:"alt",character:"l"}}),e({name:"core/block-editor/group",category:"block",description:(0,en.__)("Create a group block from the selected multiple blocks."),keyCombination:{modifier:"primary",character:"g"}}),o===!1?t("core/block-editor/toggle-block-visibility"):e({name:"core/block-editor/toggle-block-visibility",category:"block",description:(0,en.__)("Show or hide the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"h"}}),e({name:"core/block-editor/rename",category:"block",description:(0,en.__)("Rename the selected block."),keyCombination:{modifier:"primaryAlt",character:"r"}})},[e,t,o]),null}qke.Register=fst;var B8=qke;var Tx=c(D(),1),hv=c(oe(),1),O8=c(Wl(),1),Ex=c(ce(),1),mZ=c(ix(),1);var bv=c(T(),1);function pst(){return(0,hv.useSelect)(e=>Z(e(Ex.store)).getBlockKeyboardShortcuts(),[])}function mst(){let{getBlock:e,getBlockName:t,getBlockAttributes:o,getBlockEditingMode:r,getSelectedBlockClientId:n}=(0,hv.useSelect)(P),{getBlockVariations:i,getActiveBlockVariation:s}=(0,hv.useSelect)(Ex.store),{replaceBlocks:a,updateBlockAttributes:l}=(0,hv.useDispatch)(P);return(0,Tx.useCallback)(({targetBlockName:d,blockNames:u,variationName:f})=>{let p=n();if(!p||r(p)!=="default")return!1;let m=t(p);if(!u.includes(m))return!1;let g=f?i(d)?.find(({name:v})=>v===f):void 0;if(m===d)return g?.attributes?(s(d,o(p))?.name!==f&&l(p,g.attributes),!0):!1;let h=e(p);if(!h)return!1;let b=g?(0,Ex.switchToBlockType)(h,d,g.name):null;return b||(b=(0,Ex.switchToBlockType)(h,d),b&&g?.attributes&&(b=b.map(v=>v.name===d?{...v,attributes:{...v.attributes,...g.attributes}}:v))),b?(a(p,b),!0):!1},[e,t,o,r,n,i,s,a,l])}function gst({entry:e,apply:t}){return(0,O8.useShortcut)(e.name,o=>{o.defaultPrevented||t(e)&&o.preventDefault()}),null}function hst({shortcuts:e}){let{registerShortcut:t,unregisterShortcut:o}=(0,hv.useDispatch)(O8.store),r=(0,Tx.useRef)(new Map);return(0,Tx.useEffect)(()=>{let n=new Map,i=new Map;for(let s of e){let a={name:s.name,category:"block",description:s.description,keyCombination:s.keyCombination,aliases:s.aliases},l=JSON.stringify(a),d=n.get(s.name);if(d!==void 0){d!==l&&(0,mZ.default)(`Block keyboard shortcut "${s.name}" is declared more than once with different settings.`);continue}let{modifier:u,character:f}=s.keyCombination,p=`${u??""}+${f}`;i.has(p)&&(0,mZ.default)(`Block keyboard shortcut "${s.name}" uses the same key combination as "${i.get(p)}".`),i.set(p,s.name),t(a),n.set(s.name,l)}for(let s of r.current.keys())n.has(s)||o(s);r.current=n},[e,t,o]),null}function Xke(){let e=pst(),t=mst();return(0,bv.jsxs)(bv.Fragment,{children:[(0,bv.jsx)(hst,{shortcuts:e}),e.map((o,r)=>(0,bv.jsx)(gst,{entry:o,apply:t},`${o.name}-${r}`))]})}var Zke=c(D(),1);function bst(e={}){return(0,Zke.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,imageStripMeta:e.imageStripMeta,imageMaxBitDepth:e.imageMaxBitDepth}),[e])}var Qke=bst;var Ua=c(T(),1),M8=()=>{},Jke=!1,Rx=null,Ix=null;function r1e(e,t,o){return!t&&e.length>1?(o((0,o1e.__)("Only one file can be used here.")),!0):!1}function n1e(){if(Rx!==null)return Rx;if(!window.__clientSideMediaProcessing||typeof Wa.detectClientSideMediaSupport!="function")return Rx=!1,!1;let e=(0,Wa.detectClientSideMediaSupport)();return!e||!e.supported?(Jke||(console.info(`Client-side media processing unavailable: ${e.reason}. Using server-side processing.`),Jke=!0),Rx=!1,!1):(Rx=!0,!0)}function _st(){return Ix!==null?Ix:n1e()||!window.__clientSideMediaProcessing||typeof Wa.isHeicCanvasSupported!="function"||!(0,Wa.isHeicCanvasSupported)()?(Ix=!1,!1):(Ix=!0,!0)}function vst(e,t,{allowedTypes:o,additionalData:r={},filesList:n,onError:i=M8,onFileChange:s,onSuccess:a,onBatchSuccess:l,multiple:d=!0}){r1e(n,d,i)||e.dispatch(Wa.store).addItems({files:Array.from(n),onChange:s,onSuccess:u=>{t?.[LS]?.(u),a?.(u)},onBatchSuccess:l,onError:u=>i(typeof u=="string"?u:u?.message??""),additionalData:r,allowedTypes:o})}async function yst(e,t,{allowedTypes:o,additionalData:r={},filesList:n,onError:i=M8,onFileChange:s,onSuccess:a,onBatchSuccess:l,multiple:d=!0}){if(r1e(n,d,i))return;let u=Array.from(n),f=[],p=[];for(let b of u)(await(0,Wa.isHeicFile)(b)?f:p).push(b);let m=f.length>0&&p.length>0&&t?.mediaUpload,g=m?2:1,h=m?()=>{g--,g<=0&&l?.()}:l;f.length>0&&e.dispatch(Wa.store).addItems({files:f,onChange:s,onSuccess:b=>{t?.[LS]?.(b),a?.(b)},onBatchSuccess:h,onError:b=>i(typeof b=="string"?b:b?.message??""),additionalData:r,allowedTypes:o}),p.length>0&&t?.mediaUpload&&t.mediaUpload({allowedTypes:o,additionalData:r,filesList:p,onError:i,onFileChange:s,onSuccess:a,onBatchSuccess:h,multiple:d})}function wst(e){return P8(e),null}var Px=Vke(e=>{let{settings:t,registry:o,stripExperimentalSettings:r=!1}=e,n=Qke(t),i=n1e(),s=_st(),a=i||s,l=!!t?.mediaUpload?.__isMediaUploadInterceptor,d=(0,mh.useMemo)(()=>{if(a&&t?.mediaUpload&&!l){let v=(i?vst:yst).bind(null,o,t);return v.__isMediaUploadInterceptor=!0,{...t,mediaUpload:v}}return t},[t,o,a,i,l]),{__experimentalUpdateSettings:u}=Z((0,e1e.useDispatch)(P));(0,mh.useEffect)(()=>{u({...d,__internalIsInitialized:!0},{stripExperimentalSettings:r,reset:!0})},[d,r,u]);let f=(0,mh.useRef)(e.selection);f.current=e.selection;let p=(0,mh.useRef)(e.onChangeSelection??M8);p.current=e.onChangeSelection??M8;let m=(0,mh.useMemo)(()=>({getSelection:()=>f.current,onChangeSelection:(...b)=>p.current(...b)}),[]),g=(0,Ua.jsxs)(t1e.SlotFillProvider,{passthrough:!0,children:[!d?.isPreviewMode&&(0,Ua.jsxs)(Ua.Fragment,{children:[(0,Ua.jsx)(B8.Register,{}),(0,Ua.jsx)(Xke,{})]}),(0,Ua.jsx)(d0e,{children:e.children})]}),h=(0,Ua.jsxs)(I8.Provider,{value:m,children:[(0,Ua.jsx)(wst,{clientId:e.clientId,value:e.value,onChange:e.onChange,onInput:e.onInput}),g]});return a&&!l?(0,Ua.jsx)(Wa.MediaUploadProvider,{settings:n,useSubRegistry:!1,children:h}):h}),xst=e=>(0,Ua.jsx)(Px,{...e,stripExperimentalSettings:!0,children:e.children}),i1e=xst;var A5=c(ue(),1),rEe=c(oe(),1),gM=c(D(),1),nEe=c(Q(),1);var tSe=c(te(),1),_v=c(D(),1),oSe=c(X(),1),Tp=c(ue(),1),rSe=c(Q(),1),wZ=c(oe(),1);var Y1e=c(oe(),1),vZ=c(X(),1),v5=c(ue(),1),K1e=c(D(),1);var N8=c(oe(),1),d1e=c(ue(),1);var a1e=c(X(),1),l1e=c(Ut(),1),$l=c(ce(),1);var s1e=c(Ut(),1);function kst(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 Sst(e){let t="<meta charset='utf-8'>";return e.startsWith(t)?e.slice(t.length):e}function Bx({clipboardData:e}){let t="",o="";try{t=e.getData("text/plain"),o=e.getData("text/html")}catch{return}o=kst(o),o=Sst(o);let r=(0,s1e.getFilesFromDataTransfer)(e);return r.length&&!Cst(r,o)?{files:r}:{html:o,plainText:t,files:[]}}function Cst(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 gZ=Symbol("requiresWrapperOnCopy");function A8(e,t,o){let r=t,[n]=t;if(n&&o.select($l.store).getBlockType(n.name)[gZ]){let{getBlockRootClientId:a,getBlockName:l,getBlockAttributes:d}=o.select(P),u=a(n.clientId),f=l(u);f&&(r=(0,$l.createBlock)(f,d(u),r))}let i=(0,$l.serialize)(r);e.clipboardData.setData("text/plain",Est(i)),e.clipboardData.setData("text/html",i)}function c1e(e,t){let{plainText:o,html:r,files:n}=Bx(e),i=[];if(n.length){let s=(0,$l.getBlockTransforms)("from");i=n.reduce((a,l)=>{let d=(0,$l.findTransform)(s,u=>u.type==="files"&&u.isMatch([l]));return d&&a.push(d.transform([l])),a},[]).flat()}else i=(0,$l.pasteHandler)({HTML:r,plainText:o,mode:"BLOCKS",canUserUseUnfilteredHTML:t});return i}function Est(e){return e=e.replace(/<br>/g,` | |
| 94 | +`),(0,l1e.__unstableStripHTML)(e).trim().replace(/\n\n+/g,` | |
| 94 | 95 | |
| 95 | -`)}function kr(e,t,{focus:o=!0}={}){return e.contentEditable===String(t)?t:(e.contentEditable=t,t?e.isContentEditable?(e.setAttribute("role","textbox"),e.setAttribute("aria-multiline","true"),e.setAttribute("aria-label",(0,Kye.__)("Editor canvas")),o&&e.focus({preventScroll:!0}),!0):(e.removeAttribute("contenteditable"),!1):(e.removeAttribute("role"),e.removeAttribute("aria-multiline"),e.removeAttribute("aria-label"),!1))}function Qye(){let e=(0,KL.useRegistry)(),t=(0,KL.useSelect)(o=>{let{getSelectedBlockClientId:r,canHostEditableRoot:n,isZoomOut:i}=G(o(B));return!i()&&n(r())},[]);return(0,Xye.useRefEffect)(o=>{if(!t)return;let{getSelectedBlockClientId:r,hasMultiSelection:n,isMultiSelecting:i}=e.select(B);if(!kr(o,!0,{focus:!1}))return;let{activeElement:s}=o.ownerDocument,a=o.ownerDocument.defaultView.getSelection();return s!==o&&s?.isContentEditable&&o.contains(s)&&Vo(s)===r()&&a.anchorNode&&s.contains(a.anchorNode)&&o.focus(),()=>{if(!(n()||i())&&(kr(o,!1),o.ownerDocument.activeElement===o)){let l=fl(o.ownerDocument.defaultView.getSelection(),o);l&&Vo(l)===r()&&l.focus()}}},[t,e])}var SE=c(wo(),1),Jye=c(te(),1),eve=c(ue(),1);function tve(){let{hasMultiSelection:e}=(0,Jye.useSelect)(B);return(0,eve.useRefEffect)(t=>{function o(r){if(r.defaultPrevented||r.keyCode!==SE.HOME&&r.keyCode!==SE.END||r.metaKey||r.ctrlKey||r.altKey||!r.target.isContentEditable||e())return;let n=t.ownerDocument.defaultView.getSelection();fl(n,t)&&(r.preventDefault(),n.modify(r.shiftKey?"extend":"move",r.keyCode===SE.HOME?"backward":"forward","lineboundary"))}return t.addEventListener("keydown",o),()=>{t.removeEventListener("keydown",o)}},[])}var ove=c(ue(),1),rve=c(te(),1);function tQe(e){let{isMultiSelecting:t,getMultiSelectedBlockClientIds:o,hasMultiSelection:r,getSelectedBlockClientId:n,getSelectedBlocksInitialCaretPosition:i,__unstableIsFullySelected:s}=e(B);return{isMultiSelecting:t(),multiSelectedBlockClientIds:o(),hasMultiSelection:r(),selectedBlockClientId:n(),initialPosition:i(),isFullSelection:s()}}function nve(){let{initialPosition:e,isMultiSelecting:t,multiSelectedBlockClientIds:o,hasMultiSelection:r,selectedBlockClientId:n,isFullSelection:i}=(0,rve.useSelect)(tQe,[]);return(0,ove.useRefEffect)(s=>{let{ownerDocument:a}=s,{defaultView:l}=a;if(e==null||!r||t)return;let{length:u}=o;u<2||i&&(kr(s,!0),l.getSelection().removeAllRanges())},[r,t,o,n,e,i])}var kk=c(Lt(),1),QY=c(wo(),1),qL=c(te(),1),ZL=c(ue(),1),CE=c(F(),1);var JY=c(T(),1);function ive(){let e=(0,CE.useRef)(),t=(0,CE.useRef)(),o=(0,CE.useRef)(),{hasMultiSelection:r,getSelectedBlockClientId:n,getBlockCount:i,getBlockOrder:s,getLastFocus:a,getSectionRootClientId:l,isZoomOut:u}=G((0,qL.useSelect)(B)),{setLastFocus:d}=G((0,qL.useDispatch)(B)),f=(0,CE.useRef)();function p(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 _=l(),w=s(_);w.length?e.current.querySelector(`[data-block="${w[0]}"]`).focus():_?e.current.querySelector(`[data-block="${_}"]`).focus():y.focus()}else{let _=v.target.compareDocumentPosition(y)&v.target.DOCUMENT_POSITION_FOLLOWING,w=kk.focus.tabbable.find(e.current);w.length&&(_?w[0]:w[w.length-1]).focus()}}let m=(0,JY.jsx)("div",{ref:t,tabIndex:"0",onFocus:p}),g=(0,JY.jsx)("div",{ref:o,tabIndex:"0",onFocus:p}),h=(0,ZL.useRefEffect)(v=>{function y(S){if(S.defaultPrevented||S.keyCode!==QY.TAB||!o.current||!t.current)return;let{target:C,shiftKey:R}=S,E=R?"findPrevious":"findNext",I=kk.focus.tabbable[E](C),O=C.closest("[data-block]"),A=O&&I&&(BO(O,I)||Zu(O,I));if((0,kk.isFormElement)(I)&&A)return;let P=R?t:o;f.current=!0,P.current.focus({preventScroll:!0})}function _(S){v.contains(S.relatedTarget)||d({current:S.target});let{ownerDocument:C}=v;!S.relatedTarget&&S.target.hasAttribute("data-block")&&C.activeElement===C.body&&i()===0&&v.focus()}function w(S){if(S.keyCode!==QY.TAB||S.target?.getAttribute("role")==="region"||e.current===S.target)return;let R=S.shiftKey?"findPrevious":"findNext",E=kk.focus.tabbable[R](S.target);(E===t.current||E===o.current)&&(S.preventDefault(),E.focus({preventScroll:!0}))}let{ownerDocument:k}=v,{defaultView:x}=k;return x.addEventListener("keydown",w),v.addEventListener("keydown",y),v.addEventListener("focusout",_),()=>{x.removeEventListener("keydown",w),v.removeEventListener("keydown",y),v.removeEventListener("focusout",_)}},[]),b=(0,ZL.useMergeRefs)([e,h]);return[m,b,g]}var en=c(Lt(),1),md=c(wo(),1),XL=c(te(),1),sve=c(ue(),1),QL=c(ce(),1);function oQe(e,t,o){let r=t===md.UP||t===md.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 eK(e,t,o,r){let n=en.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.children.length===1&&BO(a,a.firstElementChild)&&a.firstElementChild.getAttribute("contenteditable")==="true")return;let l=(0,QL.getBlockType)(a.getAttribute("data-type"));if(a.contentEditable!=="true"&&Vo(a)&&l&&(l.merge||(0,QL.hasBlockSupport)(l,"__experimentalOnMerge"))&&en.focus.focusable.find(a).filter(u=>!(0,en.isFormElement)(u)).length!==0||!en.focus.tabbable.isTabbableIndex(a)||a.isContentEditable&&a.contentEditable!=="true"&&Vo(a.closest('[contenteditable="true"]')))return!1;if(r){let u=a.getBoundingClientRect();if(u.left>=i.right||u.right<=i.left)return!1}return!0}return n.find(s)}function ave(){let{getMultiSelectedBlocksStartClientId:e,getMultiSelectedBlocksEndClientId:t,getNextBlockClientId:o,getPreviousBlockClientId:r,getSelectedBlockClientId:n,getSelectionStart:i,getSettings:s,hasMultiSelection:a,__unstableIsFullySelected:l}=(0,XL.useSelect)(B),{selectBlock:u,multiSelect:d}=(0,XL.useDispatch)(B);return(0,sve.useRefEffect)(f=>{let p;function m(){p=null}function g(b,v){let y=eK(b,v,f);return y&&Vo(y)}function h(b){if(b.defaultPrevented)return;let{keyCode:v,shiftKey:y,ctrlKey:_,altKey:w,metaKey:k}=b,x=b.target===f&&fl(f.ownerDocument.defaultView.getSelection(),f)||b.target,S=v===md.UP,C=v===md.DOWN,R=v===md.LEFT,E=v===md.RIGHT,I=S||R,O=R||E,A=S||C,P=O||A,L=y||_||w||k,H=A?en.isVerticalEdge:en.isHorizontalEdge,{ownerDocument:N}=f,{defaultView:M}=N;if(!P||s().isPreviewMode)return;if(a()){if(y){let D=M.getSelection();if(l()&&(!D.rangeCount||D.isCollapsed)){let z=e(),W=t(),ee=I?r(W):o(W);ee&&(d(z,ee),b.preventDefault())}return}if(!l())return;b.preventDefault(),I?u(e()):u(t(),-1);return}if(y&&n()&&!i().attributeKey){let D=n(),z=I?r(D):o(D);z&&(d(D,z),b.preventDefault());return}if(!oQe(x,v,L))return;A?p||(p=(0,en.computeCaretRect)(M)):p=null;let V=(0,en.isRTL)(x)?!I:I,{keepCaretInsideBlock:j}=s();if(y)H(x,I)&&(g(x,I)?kr(f,!0):f.contentEditable==="true"&&(M.getSelection().extend(x,I?0:x.childNodes.length),b.preventDefault()));else if(A&&(0,en.isVerticalEdge)(x,I)&&(!w||(0,en.isHorizontalEdge)(x,V))&&!j){let D=eK(x,I,f,!0);D&&((0,en.placeCaretAtVerticalEdge)(D,w?!I:I,w?void 0:p),b.preventDefault())}else if(O&&M.getSelection().isCollapsed&&(0,en.isHorizontalEdge)(x,V)&&!j){let D=eK(x,V,f);(0,en.placeCaretAtHorizontalEdge)(D,I),b.preventDefault()}}return f.addEventListener("mousedown",m),f.addEventListener("keydown",h),()=>{f.removeEventListener("mousedown",m),f.removeEventListener("keydown",h)}},[])}var lve=c(ue(),1),cve=c(te(),1),gd=c(wo(),1);function uve(){let e=(0,cve.useSelect)(t=>t(B).getSettings().isPreviewMode,[]);return(0,lve.useRefEffect)(t=>{if(!e)return;function o(r){let{keyCode:n,shiftKey:i,target:s}=r,a=n===gd.TAB,l=n===gd.UP,u=n===gd.DOWN,d=n===gd.LEFT;if(!a&&!(l||u||d||n===gd.RIGHT))return;let m=a?i:l||d,g=Array.from(t.querySelectorAll("[data-block]"));if(!g.length)return;let h=s.closest("[data-block]"),b=h?g.indexOf(h):-1;if(b===-1||a&&(m&&b===0||!m&&b===g.length-1))return;let v;m?v=b<=0?g.length-1:b-1:v=b===-1||b>=g.length-1?0:b+1,r.preventDefault(),g[v].focus()}return t.addEventListener("keydown",o),()=>{t.removeEventListener("keydown",o)}},[e])}var dve=c(Lt(),1),JL=c(te(),1),fve=c(pl(),1),pve=c(ue(),1);function mve(){let{getBlockOrder:e,getSelectedBlockClientIds:t,getBlockRootClientId:o}=(0,JL.useSelect)(B),{multiSelect:r,selectBlock:n}=(0,JL.useDispatch)(B),i=(0,fve.__unstableUseShortcutEventMatch)();return(0,pve.useRefEffect)(s=>{function a(l){if(!i("core/block-editor/select-all",l))return;let u=t(),{ownerDocument:d}=s,f=d.defaultView.getSelection(),p=l.target===s&&fl(f,s)||l.target;if(u.length<2&&!(0,dve.isEntirelySelected)(p)){if(l.target===s&&p!==s){l.preventDefault();let v=d.createRange();v.selectNodeContents(p),f.removeAllRanges(),f.addRange(v),d.dispatchEvent(new Event("selectionchange"))}return}l.preventDefault();let[m]=u,g=Vo(d.activeElement);if(g&&g!==m&&!Zu(d.getElementById("block-"+m),d.activeElement)){n(g);return}let h=o(m),b=e(h);if(u.length===b.length){h&&(s.ownerDocument.defaultView.getSelection().removeAllRanges(),n(h));return}r(b[0],b[b.length-1])}return s.addEventListener("keydown",a),()=>{s.removeEventListener("keydown",a)}},[])}var eD=c(te(),1),gve=c(ue(),1);function hve(){let{startMultiSelect:e,stopMultiSelect:t}=(0,eD.useDispatch)(B),{getSettings:o,isSelectionEnabled:r,hasSelectedBlock:n,isDraggingBlocks:i,isMultiSelecting:s}=(0,eD.useSelect)(B);return(0,gve.useRefEffect)(a=>{let{ownerDocument:l}=a,{defaultView:u}=l,d,f;function p(){t(),u.removeEventListener("mouseup",p),f=u.requestAnimationFrame(()=>{if(!n())return;kr(a,!1);let b=u.getSelection();if(b.rangeCount){let v=b.getRangeAt(0),{commonAncestorContainer:y}=v,_=v.cloneRange();d.contains(y)&&(d.focus(),b.removeAllRanges(),b.addRange(_))}})}let m;function g({target:b}){m=b}function h({buttons:b,target:v,relatedTarget:y}){v.contains(m)&&(v.contains(y)||i()||b===1&&(s()||a!==v&&(v.getAttribute("contenteditable")!=="true"&&!o().isPreviewMode||r()&&(d=v,e(),u.addEventListener("mouseup",p),kr(a,!0)))))}return a.addEventListener("mouseout",h),a.addEventListener("mousedown",g),()=>{a.removeEventListener("mouseout",h),u.removeEventListener("mouseup",p),u.cancelAnimationFrame(f)}},[e,t,r,n])}var oD=c(te(),1),vve=c(ue(),1),xk=c(Ar(),1),_ve=c(Lt(),1);var{ownsSelection:rQe}=G(xk.privateApis);function bve(e){let{anchorNode:t,anchorOffset:o}=e;return t.nodeType===t.TEXT_NODE||o===0?t:t.childNodes[o-1]}function yve(e,t){let{focusNode:o,focusOffset:r}=e;return o.nodeType===o.TEXT_NODE||r===o.childNodes.length?o:r===0&&(0,_ve.isSelectionForward)(e)&&t?o.previousSibling??o.parentElement:o.childNodes[r]}function nQe(e,t){let o=0;for(;e[o]===t[o];)o++;return o}function tD(e){return(e.nodeType===e.ELEMENT_NODE?e:e.parentElement)?.closest("[data-wp-block-attribute-key]")}function wve(){let{multiSelect:e,selectBlock:t,selectionChange:o,startMultiSelect:r,stopMultiSelect:n}=(0,oD.useDispatch)(B),{getBlockParents:i,getBlockSelectionStart:s,isMultiSelecting:a,getSelectionStart:l,getSelectionEnd:u,getSelectedBlockClientId:d,canHostEditableRoot:f}=G((0,oD.useSelect)(B));return(0,vve.useRefEffect)(p=>{let{ownerDocument:m}=p,{defaultView:g}=m,h=!1;function b(k){h=k.detail===3,k.shiftKey&&r()}function v(){h=!1}function y(k){let x=g.getSelection();if(!x.rangeCount)return;let S=bve(x),C=yve(x,h);if(!p.contains(S)||!p.contains(C))return;let R=k.shiftKey&&k.type==="mouseup";if(x.isCollapsed&&!R){let A=Vo(S);if(!a()&&A&&A===d()&&f(A)){kr(p,!0);let{activeElement:P}=m;P!==p&&P?.isContentEditable&&p.contains(P)&&Vo(P)===A&&p.focus();return}if(p.contentEditable==="true"&&!a()){kr(p,!1);let P=S.nodeType===S.ELEMENT_NODE?S:S.parentElement;P=P?.closest("[contenteditable]"),P?.focus()}return}let E=Vo(S),I=Vo(C);if(R){let A=s(),P=Vo(k.target),L=P!==I;(E===I&&x.isCollapsed||!I||L)&&(I=P),E!==A&&(E=A)}if(E===void 0&&I===void 0){kr(p,!1);return}if(k.type==="mouseup"&&!k.shiftKey&&!a()&&E===I){let A=Vo(k.target);if(A&&A!==E){x.removeAllRanges();return}}if(E===I)if(a())e(E,E);else{let A=!x.isCollapsed&&(tD(S)||tD(C));if(A&&(A.contentEditable!=="true"||m.activeElement!==A&&!rQe(A))){let P=x.getRangeAt(0),L=(0,xk.create)({element:A,range:P,__unstableIsEditableTree:!0}),H={start:{clientId:E,attributeKey:A.dataset.wpBlockAttributeKey,offset:L.start??0},end:{clientId:E,attributeKey:A.dataset.wpBlockAttributeKey,offset:L.end??L.text.length}},{start:N,end:M}=H,V=l(),j=u();(V.clientId!==N.clientId||j.clientId!==M.clientId||V.attributeKey!==N.attributeKey||V.offset!==N.offset||j.offset!==M.offset)&&o(H)}else t(E)}else{let A=[...i(E),E],P=[...i(I),I],L=nQe(A,P);if(!(L>=A.length||L>=P.length)&&(A[L]!==E||P[L]!==I)){e(A[L],P[L]);return}let N=tD(S),M=tD(C);if(N&&M){let V=x.getRangeAt(0),j=(0,xk.create)({element:N,range:V,__unstableIsEditableTree:!0}),D=(0,xk.create)({element:M,range:V,__unstableIsEditableTree:!0}),z=j.start??j.end,W=D.start??D.end;o({start:{clientId:E,attributeKey:N.dataset.wpBlockAttributeKey,offset:z},end:{clientId:I,attributeKey:M.dataset.wpBlockAttributeKey,offset:W}})}else e(E,I)}}function _(k){let x=g.getSelection();if(!x.rangeCount||x.isCollapsed)return;let S=Vo(bve(x)),C=Vo(yve(x,h));S!==C&&y(k)}m.addEventListener("selectionchange",y);function w(k){y(k),n()}return g.addEventListener("mouseup",w),p.addEventListener("mousedown",b),p.addEventListener("keydown",v),m.addEventListener("copy",_,!0),m.addEventListener("cut",_,!0),m.addEventListener("paste",_,!0),()=>{m.removeEventListener("selectionchange",y),g.removeEventListener("mouseup",w),p.removeEventListener("mousedown",b),p.removeEventListener("keydown",v),m.removeEventListener("copy",_,!0),m.removeEventListener("cut",_,!0),m.removeEventListener("paste",_,!0)}},[e,t,o,i])}var rD=c(te(),1),kve=c(ue(),1);function xve(){let{selectBlock:e}=(0,rD.useDispatch)(B),{isSelectionEnabled:t,getBlockSelectionStart:o,getSelectionStart:r,hasMultiSelection:n}=(0,rD.useSelect)(B);return(0,kve.useRefEffect)(i=>{function s(a){if(!t()||a.button!==0)return;let l=o(),u=Vo(a.target);if(a.shiftKey){if(l&&l!==u){let{clientId:d,attributeKey:f}=r();kr(i,!0,{focus:!!f});let{ownerDocument:p}=i,m=p.defaultView.getSelection(),g=!f&&p.getElementById(`block-${d}`);if(g&&!(m.anchorNode&&g.contains(m.anchorNode))){let h=g.compareDocumentPosition(a.target)&i.DOCUMENT_POSITION_FOLLOWING;m.setPosition(g,h?0:g.childNodes.length)}}}else n()&&e(u)}return i.addEventListener("mousedown",s),()=>{i.removeEventListener("mousedown",s)}},[e,t,o,r,n])}var nD=c(te(),1),Sve=c(ue(),1),qf=c(wo(),1),Ys=c(ce(),1);function Cve(){let{__unstableIsFullySelected:e,getSelectedBlockClientIds:t,getSelectedBlockClientId:o,__unstableIsSelectionMergeable:r,hasMultiSelection:n,getBlockName:i,canInsertBlockType:s,getBlockRootClientId:a,getSelectionStart:l,getSelectionEnd:u,getBlockAttributes:d,getNextBlockClientId:f,getBlockOrder:p,getBlockEditingMode:m,getBlockListSettings:g}=(0,nD.useSelect)(B),{replaceBlocks:h,__unstableSplitSelection:b,removeBlocks:v,__unstableDeleteSelection:y,__unstableExpandSelection:_,__unstableMarkAutomaticChange:w,insertAfterBlock:k,insertBlock:x,selectBlock:S}=(0,nD.useDispatch)(B);return(0,Sve.useRefEffect)(C=>{function R(O){if(C.contentEditable!=="true")return;if(n()){O.preventDefault();return}let A=C.ownerDocument.defaultView.getSelection();fl(A,C)||O.preventDefault()}function E(O){if(!O.defaultPrevented){if(!n()){if(O.keyCode===qf.ENTER){if(O.shiftKey)return;let P=o(),L=i(P),H=l(),N=u();if(H.attributeKey===N.attributeKey){let j=d(P)[H.attributeKey],D=(0,Ys.getBlockTransforms)("from").filter(({type:W})=>W==="enter"),z=(0,Ys.findTransform)(D,W=>W.regExp.test(j));if(z){h(P,z.transform({content:j})),w();return}}let M=a(P),{activeElement:V}=O.target.ownerDocument;if(!e()&&(s((0,Ys.getDefaultBlockName)(),M)||s(L,M))&&((0,Ys.hasBlockSupport)(L,"splitting",!1)||O.__deprecatedOnSplit))O.preventDefault(),b();else if((V.getAttribute("data-block")===P||V.isContentEditable)&&Vo(V)===P){let{defaultBlock:j}=M&&g(M)||{};if(s(j?.name??(0,Ys.getDefaultBlockName)(),M))O.preventDefault(),k(P);else{let D=function(W){let ee=null;for(;typeof W=="string"&&!(ee=f(W));)W=a(W);return ee};var A=D;if(!p(P).length){let{defaultBlock:W}=g(P)??{},ee=W?.name??(0,Ys.getDefaultBlockName)();if(s(ee,P)){O.preventDefault(),x((0,Ys.createBlock)(ee,W?.attributes),0,P);return}}let z=p(P)[0]??D(P);for(;z&&m(z)==="disabled";)z=D(z);z&&(O.preventDefault(),S(z,!0))}}}return}O.keyCode===qf.ENTER?(kr(C,!1),O.preventDefault(),e()?h(t(),(0,Ys.createBlock)((0,Ys.getDefaultBlockName)())):b()):O.keyCode===qf.BACKSPACE||O.keyCode===qf.DELETE?(kr(C,!1),O.preventDefault(),e()?v(t()):r()?y(O.keyCode===qf.DELETE):_()):O.key.length===1&&!(O.metaKey||O.ctrlKey)&&(kr(C,!1),r()?y(O.keyCode===qf.DELETE):(O.preventDefault(),C.ownerDocument.defaultView.getSelection().removeAllRanges()))}}function I(O){n()&&(kr(C,!1),r()?y():(O.preventDefault(),C.ownerDocument.defaultView.getSelection().removeAllRanges()))}return C.addEventListener("beforeinput",R),C.addEventListener("keydown",E),C.addEventListener("compositionstart",I),()=>{C.removeEventListener("beforeinput",R),C.removeEventListener("keydown",E),C.removeEventListener("compositionstart",I)}},[])}var hd=c(ce(),1),Ck=c(Lt(),1),Ek=c(te(),1),Ive=c(ue(),1);var Eve=c(F(),1),Tve=c(ce(),1),EE=c(te(),1),Il=c(q(),1),Rve=c(Ls(),1);function Sk(){let{getBlockName:e}=(0,EE.useSelect)(B),{getBlockType:t}=(0,EE.useSelect)(Tve.store),{createSuccessNotice:o}=(0,EE.useDispatch)(Rve.store);return(0,Eve.useCallback)((r,n)=>{let i="";if(r==="copyStyles")i=(0,Il.__)("Styles copied to clipboard.");else if(n.length===1){let s=n[0],a=t(e(s))?.title;r==="copy"?i=(0,Il.sprintf)((0,Il.__)('Copied "%s" to clipboard.'),a):i=(0,Il.sprintf)((0,Il.__)('Moved "%s" to clipboard.'),a)}else r==="copy"?i=(0,Il.sprintf)((0,Il._n)("Copied %d block to clipboard.","Copied %d blocks to clipboard.",n.length),n.length):i=(0,Il.sprintf)((0,Il._n)("Moved %d block to clipboard.","Moved %d blocks to clipboard.",n.length),n.length);o(i,{type:"snackbar"})},[o,e,t])}function Bve(e,t){let o=e.defaultView.getSelection();if(Vo(o.anchorNode)!==t)return!1;let r=e.getElementById(`block-${t}`);return!!r?.isContentEditable&&(0,Ck.isEntirelySelected)(r)}function TE(){let e=(0,Ek.useRegistry)(),{getBlocksByClientId:t,getSelectedBlockClientIds:o,hasMultiSelection:r,getSettings:n,getBlockName:i,__unstableIsFullySelected:s,__unstableIsSelectionCollapsed:a,__unstableIsSelectionMergeable:l,__unstableGetSelectedBlocksWithPartialSelection:u,canInsertBlockType:d,getBlockRootClientId:f}=(0,Ek.useSelect)(B),{flashBlock:p,removeBlocks:m,replaceBlocks:g,__unstableDeleteSelection:h,__unstableExpandSelection:b,__unstableSplitSelection:v}=(0,Ek.useDispatch)(B),y=Sk();return(0,Ive.useRefEffect)(_=>{function w(k){if(k.defaultPrevented)return;let x=o();if(x.length===0)return;let S=k.type==="copy"&&!r()&&Bve(k.target.ownerDocument,x[0]);if(!r()){let{ownerDocument:O}=k.target;if((k.type==="copy"||k.type==="cut"?(0,Ck.documentHasUncollapsedSelection)(O):(0,Ck.documentHasSelection)(O)&&!O.activeElement.isContentEditable)&&!S)return}let{activeElement:C}=k.target.ownerDocument;if(!_.contains(C))return;let R=l(),E=a()||s()||S,I=!E&&!R;if(k.type==="copy"||k.type==="cut")if(k.preventDefault(),x.length===1&&p(x[0]),I)b();else{y(k.type,x);let O;if(E)O=t(x);else{let[A,P]=u(),L=t(x.slice(1,x.length-1));O=[A,...L,P]}YL(k,O,e)}if(k.type==="cut")E&&!I?m(x):(kr(k.target.ownerDocument.activeElement,!1),h());else if(k.type==="paste"){let{__experimentalCanUserUseUnfilteredHTML:O,mediaUpload:A}=n();if(k.clipboardData.getData("rich-text")==="true")return;let{plainText:L,html:H,files:N}=wk(k),M=s(),V=[];if(N.length){if(!A){k.preventDefault();return}let W=(0,hd.getBlockTransforms)("from");V=N.reduce((ee,J)=>{let U=(0,hd.findTransform)(W,Q=>Q.type==="files"&&Q.isMatch([J]));return U&&ee.push(U.transform([J])),ee},[]).flat()}else V=(0,hd.pasteHandler)({HTML:H,plainText:L,mode:M?"BLOCKS":"AUTO",canUserUseUnfilteredHTML:O});if(typeof V=="string")return;if(M){g(x,V,V.length-1,-1),k.preventDefault();return}if(!r()&&Bve(k.target.ownerDocument,x[0])){g(x,V,V.length-1,-1),k.preventDefault();return}if(!r()&&!(0,hd.hasBlockSupport)(i(x[0]),"splitting",!1)&&!k.__deprecatedOnSplit)return;let[j]=x,D=f(j),z=[];for(let W of V)if(d(W.name,D))z.push(W);else{let ee=i(D),J=W.name!==ee?(0,hd.switchToBlockType)(W,ee):[W];if(!J)return;for(let U of J)for(let Q of U.innerBlocks)z.push(Q)}v(z),k.preventDefault()}}return _.ownerDocument.addEventListener("copy",w),_.ownerDocument.addEventListener("cut",w),_.ownerDocument.addEventListener("paste",w),()=>{_.ownerDocument.removeEventListener("copy",w),_.ownerDocument.removeEventListener("cut",w),_.ownerDocument.removeEventListener("paste",w)}},[])}var Tk=c(T(),1);function oK(){let[e,t,o]=ive(),r=(0,Pve.useSelect)(n=>n(B).hasMultiSelection(),[]);return[e,(0,RE.useMergeRefs)([t,Gse(),TE(),Cve(),Qye(),tve(),hve(),wve(),xve(),nve(),mve(),ave(),uve(),(0,RE.useRefEffect)(n=>(n.tabIndex=0,n.dataset.hasMultiSelection=r,r?(n.setAttribute("aria-label",(0,tK.__)("Multiple selected blocks")),()=>{delete n.dataset.hasMultiSelection,n.contentEditable==="true"?n.setAttribute("aria-label",(0,tK.__)("Editor canvas")):n.removeAttribute("aria-label")}):()=>{delete n.dataset.hasMultiSelection}),[r])]),o]}function iQe({children:e,...t},o){let[r,n,i]=oK();return(0,Tk.jsxs)(Tk.Fragment,{children:[r,(0,Tk.jsx)("div",{...t,ref:(0,RE.useMergeRefs)([n,o]),className:$(t.className,"block-editor-writing-flow"),children:e}),i]})}var iD=(0,Ove.forwardRef)(iQe);var sD=null;function Ave(){return sD||(sD=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},[]),sD)}var bi=c(F(),1),BE=c(ue(),1);function Mve({frameSize:e,containerWidth:t,maxContainerWidth:o,scaleContainerWidth:r}){return(Math.min(t,o)-e*2)/r}function sQe(e,t){let{scaleValue:o,scrollHeight:r}=e,{frameSize:n,scaleValue:i}=t;return r*(i/o)+n*2}function aQe(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 lQe(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`}]}var Nve={width:null,height:null};function Lve(e){let t=e.at(-1).contentBoxSize[0];return{width:t.inlineSize,height:t.blockSize}}function Dve({frameSize:e,iframeDocument:t,maxContainerWidth:o=750,scale:r}){let[{height:n},i]=(0,bi.useState)(Nve),s=(0,BE.useResizeObserver)(C=>{i(Lve(C))}),[{width:a,height:l},u]=(0,bi.useState)(Nve),d=(0,BE.useResizeObserver)(C=>{u(Lve(C))}),f=(0,bi.useRef)(0),p=r!==1,m=(0,BE.useReducedMotion)(),g=r==="auto-scaled",h=(0,bi.useRef)(!1),b=(0,bi.useRef)(null);(0,bi.useEffect)(()=>{p||(f.current=a)},[a,p]);let v=Math.max(f.current,a),y=g?Mve({frameSize:e,containerWidth:a,maxContainerWidth:o,scaleContainerWidth:v}):r,_=(0,bi.useRef)({scaleValue:y,frameSize:e,containerHeight:0,scrollTop:0,scrollHeight:0}),w=(0,bi.useRef)({scaleValue:y,frameSize:e,containerHeight:0,scrollTop:0,scrollHeight:0}),k=(0,bi.useCallback)(()=>{let{scrollTop:C}=_.current,{scrollTop:R}=w.current;return t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-scroll-top",`${C}px`),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-scroll-top-next",`${R}px`),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-overflow-behavior",_.current.scrollHeight===_.current.containerHeight?"auto":"scroll"),t.documentElement.classList.add("zoom-out-animation"),t.documentElement.animate(lQe(_.current,w.current),{easing:"cubic-bezier(0.46, 0.03, 0.52, 0.96)",duration:400})},[t]),x=(0,bi.useCallback)(()=>{h.current=!1,b.current=null,t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-scale",w.current.scaleValue),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-frame-size",`${w.current.frameSize}px`),t.documentElement.classList.remove("zoom-out-animation"),t.documentElement.scrollTop=w.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"),_.current=w.current},[t]),S=(0,bi.useRef)(!1);return(0,bi.useEffect)(()=>{if(!t)return;let C=S.current!==p;if(S.current=p,!!C&&(h.current=!0,!!p))return t.documentElement.classList.add("is-zoomed-out"),()=>{t.documentElement.classList.remove("is-zoomed-out")}},[t,p]),(0,bi.useEffect)(()=>{if(t&&(g&&_.current.scaleValue!==1&&(_.current.scaleValue=Mve({frameSize:_.current.frameSize,containerWidth:a,maxContainerWidth:o,scaleContainerWidth:a})),y<1&&(h.current||(t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-scale",y),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",`${n}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",`${v}px`)),h.current))if(h.current=!1,b.current){b.current.reverse();let C=_.current,R=w.current;_.current=R,w.current=C}else _.current.scrollTop=t.documentElement.scrollTop,_.current.scrollHeight=t.documentElement.scrollHeight,_.current.containerHeight=l,w.current={scaleValue:y,frameSize:e,containerHeight:t.documentElement.clientHeight},w.current.scrollHeight=sQe(_.current,w.current),w.current.scrollTop=aQe(_.current,w.current),b.current=k(),m?x():b.current.onfinish=x},[k,x,m,g,y,e,t,n,a,l,o,v]),{isZoomedOut:p,scaleContainerWidth:v,contentRef:s,containerRef:d}}var $c=c(T(),1);function Hve(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 cQe(e){return(0,Zf.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];Hve(a,d,o)},r.addEventListener(s,i[s]);return()=>{for(let s of n)r.removeEventListener(s,i[s])}})}var Vve=new WeakMap,uQe=globalThis.FinalizationRegistry?new globalThis.FinalizationRegistry(e=>URL.revokeObjectURL(e)):void 0;function dQe(e){let t=Vve.get(e);if(t)return t;let o="";Fve.version.split(".")[0]==="18"&&(o="<body><script>document.currentScript.parentElement.remove()<\/script></body>");let r=`<!doctype html> | |
| 96 | +`)}function Er(e,t,{focus:o=!0}={}){return e.contentEditable===String(t)?t:(e.contentEditable=t,t?e.isContentEditable?(e.setAttribute("role","textbox"),e.setAttribute("aria-multiline","true"),e.setAttribute("aria-label",(0,a1e.__)("Editor canvas")),o&&e.focus({preventScroll:!0}),!0):(e.removeAttribute("contenteditable"),!1):(e.removeAttribute("role"),e.removeAttribute("aria-multiline"),e.removeAttribute("aria-label"),!1))}function u1e(){let e=(0,N8.useRegistry)(),t=(0,N8.useSelect)(o=>{let{getSelectedBlockClientId:r,canHostEditableRoot:n,isZoomOut:i}=Z(o(P));return!i()&&n(r())},[]);return(0,d1e.useRefEffect)(o=>{if(!t)return;let{getSelectedBlockClientId:r,hasMultiSelection:n,isMultiSelecting:i}=e.select(P);if(!Er(o,!0,{focus:!1}))return;let{activeElement:s}=o.ownerDocument,a=o.ownerDocument.defaultView.getSelection();return s!==o&&s?.isContentEditable&&o.contains(s)&&Wo(s)===r()&&a.anchorNode&&s.contains(a.anchorNode)&&o.focus(),()=>{if(!(n()||i())&&(Er(o,!1),o.ownerDocument.activeElement===o)){let l=Ul(o.ownerDocument.defaultView.getSelection(),o);l&&Wo(l)===r()&&l.focus()}}},[t,e])}var g5=c(Mo(),1),f1e=c(oe(),1),p1e=c(ue(),1);function m1e(){let{hasMultiSelection:e}=(0,f1e.useSelect)(P);return(0,p1e.useRefEffect)(t=>{function o(r){if(r.defaultPrevented||r.keyCode!==g5.HOME&&r.keyCode!==g5.END||r.metaKey||r.ctrlKey||r.altKey||!r.target.isContentEditable||e())return;let n=t.ownerDocument.defaultView.getSelection();Ul(n,t)&&(r.preventDefault(),n.modify(r.shiftKey?"extend":"move",r.keyCode===g5.HOME?"backward":"forward","lineboundary"))}return t.addEventListener("keydown",o),()=>{t.removeEventListener("keydown",o)}},[])}var g1e=c(ue(),1),h1e=c(oe(),1);function Tst(e){let{isMultiSelecting:t,getMultiSelectedBlockClientIds:o,hasMultiSelection:r,getSelectedBlockClientId:n,getSelectedBlocksInitialCaretPosition:i,__unstableIsFullySelected:s}=e(P);return{isMultiSelecting:t(),multiSelectedBlockClientIds:o(),hasMultiSelection:r(),selectedBlockClientId:n(),initialPosition:i(),isFullSelection:s()}}function b1e(){let{initialPosition:e,isMultiSelecting:t,multiSelectedBlockClientIds:o,hasMultiSelection:r,selectedBlockClientId:n,isFullSelection:i}=(0,h1e.useSelect)(Tst,[]);return(0,g1e.useRefEffect)(s=>{let{ownerDocument:a}=s,{defaultView:l}=a;if(e==null||!r||t)return;let{length:d}=o;d<2||i&&(Er(s,!0),l.getSelection().removeAllRanges())},[r,t,o,n,e,i])}var Ox=c(Ut(),1),D8=c(Mo(),1),hZ=c(X(),1),V8=c(oe(),1),Mx=c(ue(),1),h5=c(D(),1);var L8=c(T(),1),_1e={position:"absolute",inset:0,pointerEvents:"none",outline:"none"},Rst=["Enter"," ","F2","Escape"];function bZ(){let e=(0,h5.useRef)(),t=(0,h5.useRef)(),o=(0,h5.useRef)(),r=(0,Mx.useInstanceId)(bZ,"block-editor-writing-flow__canvas-stop-hint"),{hasMultiSelection:n,getSelectedBlockClientId:i,getBlockCount:s,getBlockOrder:a,getLastFocus:l,getSectionRootClientId:d,getEditedContentOnlySection:u,isZoomOut:f}=Z((0,V8.useSelect)(P)),{setLastFocus:p}=Z((0,V8.useDispatch)(P)),m=(0,h5.useRef)();function g(){if(e.current.ownerDocument.defaultView.focus(),n())e.current.focus();else if(i())l()?.current?l().current.focus():e.current.querySelector(`[data-block="${i()}"]`).focus();else if(f()){let k=d(),C=a(k);C.length?e.current.querySelector(`[data-block="${C[0]}"]`).focus():k?e.current.querySelector(`[data-block="${k}"]`).focus():e.current.focus()}else{let k=Ox.focus.tabbable.find(e.current);k.length?k[0].focus():e.current.focus()}}function h(k){if(k.defaultPrevented||k.ctrlKey||k.metaKey||k.altKey)return;let{key:C}=k;if(!k.shiftKey&&Rst.includes(C)){k.preventDefault(),g();return}C==="Tab"&&!k.shiftKey&&(k.preventDefault(),Ox.focus.tabbable.findNext(o.current)?.focus())}function b(){if(m.current){m.current=null;return}g()}let v=(0,L8.jsx)("div",{ref:t,tabIndex:"0",role:"button","aria-label":(0,hZ.__)("Editor canvas"),"aria-describedby":r,className:"block-editor-writing-flow__canvas-stop",style:_1e,onFocus:b,onKeyDown:h,onClick:g,children:(0,L8.jsx)("div",{className:"block-editor-writing-flow__canvas-stop-hint",id:r,children:(0,hZ.__)("Press Enter to edit the document")})});function _(){if(m.current){m.current=null;return}g()}let y=(0,L8.jsx)("div",{ref:o,tabIndex:"0",onFocus:_,style:_1e}),w=(0,Mx.useRefEffect)(k=>{function C(E){if(E.defaultPrevented)return;if(E.key==="Escape"&&!E.shiftKey&&!E.ctrlKey&&!E.metaKey&&!E.altKey){if(u())return;t.current&&(E.preventDefault(),m.current=!0,t.current.focus());return}if(E.keyCode!==D8.TAB||!o.current||!t.current)return;let{target:I,shiftKey:B}=E,O=B?"findPrevious":"findNext",M=Ox.focus.tabbable[O](I),N=I.closest("[data-block]"),j=N&&M&&(d8(N,M)||Au(N,M));if((0,Ox.isFormElement)(M)&&j)return;let V=B?t:o;m.current=!0,V.current.focus()}function S(E){k.contains(E.relatedTarget)||p({current:E.target});let{ownerDocument:I}=k;!E.relatedTarget&&E.target.hasAttribute("data-block")&&I.activeElement===I.body&&s()===0&&k.focus()}let R=(0,D8.withIgnoreIMEEvents)(C);return k.addEventListener("keydown",R),k.addEventListener("focusout",S),()=>{k.removeEventListener("keydown",R),k.removeEventListener("focusout",S)}},[]),x=(0,Mx.useMergeRefs)([e,w]);return[v,x,y]}var F8=c(Mo(),1),v1e=c(oe(),1),y1e=c(ue(),1);function w1e(){let{didAutomaticChange:e,getSettings:t}=(0,v1e.useSelect)(P);function o(r){let{keyCode:n}=r;if(r.defaultPrevented||n!==F8.BACKSPACE&&n!==F8.ESCAPE)return;let{__experimentalUndo:i}=t();i&&e()&&(r.preventDefault(),i())}return(0,y1e.useRefEffect)(r=>(r.addEventListener("keydown",o),()=>{r.removeEventListener("keydown",o)}),[])}var tn=c(Ut(),1),Nu=c(Mo(),1),z8=c(oe(),1),x1e=c(ue(),1),j8=c(ce(),1);function Ist(e,t,o){let r=t===Nu.UP||t===Nu.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 _Z(e,t,o,r){let n=tn.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.children.length===1&&d8(a,a.firstElementChild)&&a.firstElementChild.getAttribute("contenteditable")==="true")return;let l=(0,j8.getBlockType)(a.getAttribute("data-type"));if(a.contentEditable!=="true"&&Wo(a)&&l&&(l.merge||(0,j8.hasBlockSupport)(l,"__experimentalOnMerge"))&&tn.focus.focusable.find(a).filter(d=>!(0,tn.isFormElement)(d)).length!==0||!tn.focus.tabbable.isTabbableIndex(a)||a.isContentEditable&&a.contentEditable!=="true"&&Wo(a.closest('[contenteditable="true"]')))return!1;if(r){let d=a.getBoundingClientRect();if(d.left>=i.right||d.right<=i.left)return!1}return!0}return n.find(s)}function k1e(){let{getMultiSelectedBlocksStartClientId:e,getMultiSelectedBlocksEndClientId:t,getNextBlockClientId:o,getPreviousBlockClientId:r,getSelectedBlockClientId:n,getSelectionStart:i,getSettings:s,hasMultiSelection:a,__unstableIsFullySelected:l}=(0,z8.useSelect)(P),{selectBlock:d,multiSelect:u}=(0,z8.useDispatch)(P);return(0,x1e.useRefEffect)(f=>{let p;function m(){p=null}function g(b,v){let _=_Z(b,v,f);return _&&Wo(_)}function h(b){if(b.defaultPrevented)return;let{keyCode:v,shiftKey:_,ctrlKey:y,altKey:w,metaKey:x}=b,k=b.target===f&&Ul(f.ownerDocument.defaultView.getSelection(),f)||b.target,C=v===Nu.UP,S=v===Nu.DOWN,R=v===Nu.LEFT,E=v===Nu.RIGHT,I=C||R,B=R||E,O=C||S,M=B||O,N=_||y||w||x,j=O?tn.isVerticalEdge:tn.isHorizontalEdge,{ownerDocument:V}=f,{defaultView:A}=V;if(!M||s().isPreviewMode)return;if(a()){if(_){let F=A.getSelection();if(l()&&(!F.rangeCount||F.isCollapsed)){let G=e(),$=t(),K=I?r($):o($);K&&(u(G,K),b.preventDefault())}return}if(!l())return;b.preventDefault(),I?d(e()):d(t(),-1);return}if(_&&n()&&!i().attributeKey){let F=n(),G=I?r(F):o(F);G&&(u(F,G),b.preventDefault());return}if(!Ist(k,v,N))return;O?p||(p=(0,tn.computeCaretRect)(A)):p=null;let L=(0,tn.isRTL)(k)?!I:I,{keepCaretInsideBlock:z}=s();if(_)j(k,I)&&(g(k,I)?Er(f,!0):f.contentEditable==="true"&&(A.getSelection().extend(k,I?0:k.childNodes.length),b.preventDefault()));else if(O&&(0,tn.isVerticalEdge)(k,I)&&(!w||(0,tn.isHorizontalEdge)(k,L))&&!z){let F=_Z(k,I,f,!0);F&&((0,tn.placeCaretAtVerticalEdge)(F,w?!I:I,w?void 0:p),b.preventDefault())}else if(B&&A.getSelection().isCollapsed&&(0,tn.isHorizontalEdge)(k,L)&&!z){let F=_Z(k,L,f);(0,tn.placeCaretAtHorizontalEdge)(F,I),b.preventDefault()}}return f.addEventListener("mousedown",m),f.addEventListener("keydown",h),()=>{f.removeEventListener("mousedown",m),f.removeEventListener("keydown",h)}},[])}var S1e=c(ue(),1),C1e=c(oe(),1),Lu=c(Mo(),1);function E1e(){let e=(0,C1e.useSelect)(t=>t(P).getSettings().isPreviewMode,[]);return(0,S1e.useRefEffect)(t=>{if(!e)return;function o(r){let{keyCode:n,shiftKey:i,target:s}=r,a=n===Lu.TAB,l=n===Lu.UP,d=n===Lu.DOWN,u=n===Lu.LEFT;if(!a&&!(l||d||u||n===Lu.RIGHT))return;let m=a?i:l||u,g=Array.from(t.querySelectorAll("[data-block]"));if(!g.length)return;let h=s.closest("[data-block]"),b=h?g.indexOf(h):-1;if(b===-1||a&&(m&&b===0||!m&&b===g.length-1))return;let v;m?v=b<=0?g.length-1:b-1:v=b===-1||b>=g.length-1?0:b+1,r.preventDefault(),g[v].focus()}return t.addEventListener("keydown",o),()=>{t.removeEventListener("keydown",o)}},[e])}var T1e=c(Ut(),1),H8=c(oe(),1),R1e=c(Wl(),1),I1e=c(ue(),1);function P1e(){let{getBlockOrder:e,getSelectedBlockClientIds:t,getBlockRootClientId:o}=(0,H8.useSelect)(P),{multiSelect:r,selectBlock:n}=(0,H8.useDispatch)(P),i=(0,R1e.__unstableUseShortcutEventMatch)();return(0,I1e.useRefEffect)(s=>{function a(l){if(!i("core/block-editor/select-all",l))return;let d=t(),{ownerDocument:u}=s,f=u.defaultView.getSelection(),p=l.target===s&&Ul(f,s)||l.target;if(d.length<2&&!(0,T1e.isEntirelySelected)(p)){if(l.target===s&&p!==s){l.preventDefault();let v=u.createRange();v.selectNodeContents(p),f.removeAllRanges(),f.addRange(v),u.dispatchEvent(new Event("selectionchange"))}return}l.preventDefault();let[m]=d,g=Wo(u.activeElement);if(g&&g!==m&&!Au(u.getElementById("block-"+m),u.activeElement)){n(g);return}let h=o(m),b=e(h);if(d.length===b.length){h&&(s.ownerDocument.defaultView.getSelection().removeAllRanges(),n(h));return}r(b[0],b[b.length-1])}return s.addEventListener("keydown",a),()=>{s.removeEventListener("keydown",a)}},[])}var U8=c(oe(),1),B1e=c(ue(),1);function O1e(){let{startMultiSelect:e,stopMultiSelect:t}=(0,U8.useDispatch)(P),{getSettings:o,isSelectionEnabled:r,hasSelectedBlock:n,isDraggingBlocks:i,isMultiSelecting:s}=(0,U8.useSelect)(P);return(0,B1e.useRefEffect)(a=>{let{ownerDocument:l}=a,{defaultView:d}=l,u,f;function p(){t(),d.removeEventListener("mouseup",p),f=d.requestAnimationFrame(()=>{if(!n())return;Er(a,!1);let b=d.getSelection();if(b.rangeCount){let v=b.getRangeAt(0),{commonAncestorContainer:_}=v,y=v.cloneRange();u.contains(_)&&(u.focus(),b.removeAllRanges(),b.addRange(y))}})}let m;function g({target:b}){m=b}function h({buttons:b,target:v,relatedTarget:_}){v.contains(m)&&(v.contains(_)||i()||b===1&&(s()||a!==v&&(v.getAttribute("contenteditable")!=="true"&&!o().isPreviewMode||r()&&(u=v,e(),d.addEventListener("mouseup",p),Er(a,!0)))))}return a.addEventListener("mouseout",h),a.addEventListener("mousedown",g),()=>{a.removeEventListener("mouseout",h),d.removeEventListener("mouseup",p),d.cancelAnimationFrame(f)}},[e,t,r,n])}var G8=c(oe(),1),N1e=c(ue(),1),Ax=c(pn(),1),L1e=c(Ut(),1);var{ownsSelection:Pst}=Z(Ax.privateApis);function M1e(e){let{anchorNode:t,anchorOffset:o}=e;return t.nodeType===t.TEXT_NODE||o===0?t:t.childNodes[o-1]}function A1e(e,t){let{focusNode:o,focusOffset:r}=e;return o.nodeType===o.TEXT_NODE||r===o.childNodes.length?o:r===0&&(0,L1e.isSelectionForward)(e)&&t?o.previousSibling??o.parentElement:o.childNodes[r]}function Bst(e,t){let o=0;for(;e[o]===t[o];)o++;return o}function W8(e){return(e.nodeType===e.ELEMENT_NODE?e:e.parentElement)?.closest("[data-wp-block-attribute-key]")}function D1e(){let{multiSelect:e,selectBlock:t,selectionChange:o,startMultiSelect:r,stopMultiSelect:n}=(0,G8.useDispatch)(P),{getBlockParents:i,getBlockSelectionStart:s,isMultiSelecting:a,getSelectionStart:l,getSelectionEnd:d,getSelectedBlockClientId:u,canHostEditableRoot:f}=Z((0,G8.useSelect)(P));return(0,N1e.useRefEffect)(p=>{let{ownerDocument:m}=p,{defaultView:g}=m,h=!1;function b(x){h=x.detail===3,x.shiftKey&&r()}function v(){h=!1}function _(x){let k=g.getSelection();if(!k.rangeCount)return;let C=M1e(k),S=A1e(k,h);if(!p.contains(C)||!p.contains(S))return;let R=x.shiftKey&&x.type==="mouseup";if(k.isCollapsed&&!R){let O=Wo(C);if(!a()&&O&&O===u()&&f(O)){Er(p,!0);let{activeElement:M}=m;M!==p&&M?.isContentEditable&&p.contains(M)&&Wo(M)===O&&p.focus();return}if(p.contentEditable==="true"&&!a()&&(Er(p,!1),m.activeElement===p&&m.hasFocus())){let M=C.nodeType===C.ELEMENT_NODE?C:C.parentElement;M=M?.closest("[contenteditable]"),M?.focus()}return}let E=Wo(C),I=Wo(S);if(R){let O=s(),M=Wo(x.target),N=M!==I;(E===I&&k.isCollapsed||!I||N)&&(I=M),E!==O&&(E=O)}if(E===void 0&&I===void 0){Er(p,!1);return}if(x.type==="mouseup"&&!x.shiftKey&&!a()&&E===I){let O=Wo(x.target);if(O&&O!==E){k.removeAllRanges();return}}if(E===I)if(a())e(E,E);else{let O=!k.isCollapsed&&(W8(C)||W8(S));if(O&&(O.contentEditable!=="true"||m.activeElement!==O&&!Pst(O))){let M=k.getRangeAt(0),N=(0,Ax.create)({element:O,range:M,__unstableIsEditableTree:!0}),j={start:{clientId:E,attributeKey:O.dataset.wpBlockAttributeKey,offset:N.start??0},end:{clientId:E,attributeKey:O.dataset.wpBlockAttributeKey,offset:N.end??N.text.length}},{start:V,end:A}=j,L=l(),z=d();(L.clientId!==V.clientId||z.clientId!==A.clientId||L.attributeKey!==V.attributeKey||L.offset!==V.offset||z.offset!==A.offset)&&o(j)}else t(E)}else{let O=[...i(E),E],M=[...i(I),I],N=Bst(O,M);if(!(N>=O.length||N>=M.length)&&(O[N]!==E||M[N]!==I)){e(O[N],M[N]);return}let V=W8(C),A=W8(S);if(V&&A){let L=k.getRangeAt(0),z=(0,Ax.create)({element:V,range:L,__unstableIsEditableTree:!0}),F=(0,Ax.create)({element:A,range:L,__unstableIsEditableTree:!0}),G=z.start??z.end,$=F.start??F.end;o({start:{clientId:E,attributeKey:V.dataset.wpBlockAttributeKey,offset:G},end:{clientId:I,attributeKey:A.dataset.wpBlockAttributeKey,offset:$}})}else e(E,I)}}function y(x){let k=g.getSelection();if(!k.rangeCount||k.isCollapsed)return;let C=Wo(M1e(k)),S=Wo(A1e(k,h));C!==S&&_(x)}m.addEventListener("selectionchange",_);function w(x){_(x),n()}return g.addEventListener("mouseup",w),p.addEventListener("mousedown",b),p.addEventListener("keydown",v),m.addEventListener("copy",y,!0),m.addEventListener("cut",y,!0),m.addEventListener("paste",y,!0),()=>{m.removeEventListener("selectionchange",_),g.removeEventListener("mouseup",w),p.removeEventListener("mousedown",b),p.removeEventListener("keydown",v),m.removeEventListener("copy",y,!0),m.removeEventListener("cut",y,!0),m.removeEventListener("paste",y,!0)}},[e,t,o,i])}var $8=c(oe(),1),V1e=c(ue(),1);function F1e(){let{selectBlock:e}=(0,$8.useDispatch)(P),{isSelectionEnabled:t,getBlockSelectionStart:o,getSelectionStart:r,hasMultiSelection:n}=(0,$8.useSelect)(P);return(0,V1e.useRefEffect)(i=>{function s(a){if(!t()||a.button!==0)return;let l=o(),d=Wo(a.target);if(a.shiftKey){if(l&&l!==d){let{clientId:u,attributeKey:f}=r();Er(i,!0,{focus:!!f});let{ownerDocument:p}=i,m=p.defaultView.getSelection(),g=!f&&p.getElementById(`block-${u}`);if(g&&!(m.anchorNode&&g.contains(m.anchorNode))){let h=g.compareDocumentPosition(a.target)&i.DOCUMENT_POSITION_FOLLOWING;m.setPosition(g,h?0:g.childNodes.length)}}}else n()&&e(d)}return i.addEventListener("mousedown",s),()=>{i.removeEventListener("mousedown",s)}},[e,t,o,r,n])}var Y8=c(oe(),1),z1e=c(ue(),1),Ep=c(Mo(),1),ia=c(ce(),1);function j1e(){let{__unstableIsFullySelected:e,getSelectedBlockClientIds:t,getSelectedBlockClientId:o,__unstableIsSelectionMergeable:r,hasMultiSelection:n,getBlockName:i,canInsertBlockType:s,getBlockRootClientId:a,getSelectionStart:l,getSelectionEnd:d,getBlockAttributes:u,getNextBlockClientId:f,getBlockOrder:p,getBlockEditingMode:m,getBlockListSettings:g}=(0,Y8.useSelect)(P),{replaceBlocks:h,__unstableSplitSelection:b,removeBlocks:v,__unstableDeleteSelection:_,__unstableExpandSelection:y,__unstableMarkAutomaticChange:w,insertAfterBlock:x,insertBlock:k,selectBlock:C}=(0,Y8.useDispatch)(P);return(0,z1e.useRefEffect)(S=>{function R(B){if(B.inputType==="insertParagraph"&&!B.defaultPrevented&&!n()&&(E(B),B.defaultPrevented)||S.contentEditable!=="true")return;if(n()){B.preventDefault();return}let O=S.ownerDocument.defaultView.getSelection();Ul(O,S)||B.preventDefault()}function E(B){if(!B.defaultPrevented){if(!n()){if(B.keyCode===Ep.ENTER||B.inputType==="insertParagraph"){if(B.shiftKey||B.type==="keydown"&&B.target.ownerDocument.activeElement.isContentEditable)return;let M=o();if(!M)return;let N=i(M),j=l(),V=d();if(j.attributeKey===V.attributeKey){let z=u(M)[j.attributeKey],F=(0,ia.getBlockTransforms)("from").filter(({type:$})=>$==="enter"),G=(0,ia.findTransform)(F,$=>$.regExp.test(z));if(G){h(M,G.transform({content:z})),w();return}}let A=a(M),{activeElement:L}=B.target.ownerDocument;if(!e()&&(s((0,ia.getDefaultBlockName)(),A)||s(N,A))&&((0,ia.hasBlockSupport)(N,"splitting",!1)||B.__deprecatedOnSplit))B.preventDefault(),b();else if((L.getAttribute("data-block")===M||L.isContentEditable)&&Wo(L)===M){let{defaultBlock:z}=A&&g(A)||{};if(s(z?.name??(0,ia.getDefaultBlockName)(),A))B.preventDefault(),x(M);else{let F=function($){let K=null;for(;typeof $=="string"&&!(K=f($));)$=a($);return K};var O=F;if(!p(M).length){let{defaultBlock:$}=g(M)??{},K=$?.name??(0,ia.getDefaultBlockName)();if(s(K,M)){B.preventDefault(),k((0,ia.createBlock)(K,$?.attributes),0,M);return}}let G=p(M)[0]??F(M);for(;G&&m(G)==="disabled";)G=F(G);G&&(B.preventDefault(),C(G,!0))}}}return}B.keyCode===Ep.ENTER?(Er(S,!1),B.preventDefault(),e()?h(t(),(0,ia.createBlock)((0,ia.getDefaultBlockName)())):b()):B.keyCode===Ep.BACKSPACE||B.keyCode===Ep.DELETE?(Er(S,!1),B.preventDefault(),e()?v(t()):r()?_(B.keyCode===Ep.DELETE):y()):B.key.length===1&&!(B.metaKey||B.ctrlKey)&&(Er(S,!1),r()?_(B.keyCode===Ep.DELETE):(B.preventDefault(),S.ownerDocument.defaultView.getSelection().removeAllRanges()))}}function I(B){n()&&(Er(S,!1),r()?_():(B.preventDefault(),S.ownerDocument.defaultView.getSelection().removeAllRanges()))}return S.addEventListener("beforeinput",R),S.addEventListener("keydown",E),S.addEventListener("compositionstart",I),()=>{S.removeEventListener("beforeinput",R),S.removeEventListener("keydown",E),S.removeEventListener("compositionstart",I)}},[])}var Du=c(ce(),1),Lx=c(Ut(),1),Dx=c(oe(),1),$1e=c(ue(),1);var H1e=c(D(),1),U1e=c(ce(),1),b5=c(oe(),1),Yl=c(X(),1),W1e=c(Ks(),1);function Nx(){let{getBlockName:e}=(0,b5.useSelect)(P),{getBlockType:t}=(0,b5.useSelect)(U1e.store),{createSuccessNotice:o}=(0,b5.useDispatch)(W1e.store);return(0,H1e.useCallback)((r,n)=>{let i="";if(r==="copyStyles")i=(0,Yl.__)("Styles copied to clipboard.");else if(n.length===1){let s=n[0],a=t(e(s))?.title;r==="copy"?i=(0,Yl.sprintf)((0,Yl.__)('Copied "%s" to clipboard.'),a):i=(0,Yl.sprintf)((0,Yl.__)('Moved "%s" to clipboard.'),a)}else r==="copy"?i=(0,Yl.sprintf)((0,Yl._n)("Copied %d block to clipboard.","Copied %d blocks to clipboard.",n.length),n.length):i=(0,Yl.sprintf)((0,Yl._n)("Moved %d block to clipboard.","Moved %d blocks to clipboard.",n.length),n.length);o(i,{type:"snackbar"})},[o,e,t])}function G1e(e,t){let o=e.defaultView.getSelection();if(Wo(o.anchorNode)!==t)return!1;let r=e.getElementById(`block-${t}`);return!!r?.isContentEditable&&(0,Lx.isEntirelySelected)(r)}function _5(){let e=(0,Dx.useRegistry)(),{getBlocksByClientId:t,getSelectedBlockClientIds:o,hasMultiSelection:r,getSettings:n,getBlockName:i,__unstableIsFullySelected:s,__unstableIsSelectionCollapsed:a,__unstableIsSelectionMergeable:l,__unstableGetSelectedBlocksWithPartialSelection:d,canInsertBlockType:u,getBlockRootClientId:f}=(0,Dx.useSelect)(P),{flashBlock:p,removeBlocks:m,replaceBlocks:g,__unstableDeleteSelection:h,__unstableExpandSelection:b,__unstableSplitSelection:v}=(0,Dx.useDispatch)(P),_=Nx();return(0,$1e.useRefEffect)(y=>{function w(x){if(x.defaultPrevented)return;let k=o();if(k.length===0)return;let C=x.type==="copy"&&!r()&&G1e(x.target.ownerDocument,k[0]);if(!r()){let{ownerDocument:B}=x.target;if((x.type==="copy"||x.type==="cut"?(0,Lx.documentHasUncollapsedSelection)(B):(0,Lx.documentHasSelection)(B)&&!B.activeElement.isContentEditable)&&!C)return}let{activeElement:S}=x.target.ownerDocument;if(!y.contains(S))return;let R=l(),E=a()||s()||C,I=!E&&!R;if(x.type==="copy"||x.type==="cut")if(x.preventDefault(),k.length===1&&p(k[0]),I)b();else{_(x.type,k);let B;if(E)B=t(k);else{let[O,M]=d(),N=t(k.slice(1,k.length-1));B=[O,...N,M]}A8(x,B,e)}if(x.type==="cut")E&&!I?m(k):(Er(x.target.ownerDocument.activeElement,!1),h());else if(x.type==="paste"){let{__experimentalCanUserUseUnfilteredHTML:B,mediaUpload:O}=n();if(x.clipboardData.getData("rich-text")==="true")return;let{plainText:N,html:j,files:V}=Bx(x),A=s(),L=[];if(V.length){if(!O){x.preventDefault();return}let $=(0,Du.getBlockTransforms)("from");L=V.reduce((K,q)=>{let H=(0,Du.findTransform)($,J=>J.type==="files"&&J.isMatch([q]));return H&&K.push(H.transform([q])),K},[]).flat()}else L=(0,Du.pasteHandler)({HTML:j,plainText:N,mode:A?"BLOCKS":"AUTO",canUserUseUnfilteredHTML:B});if(typeof L=="string")return;if(A){g(k,L,L.length-1,-1),x.preventDefault();return}if(!r()&&G1e(x.target.ownerDocument,k[0])){g(k,L,L.length-1,-1),x.preventDefault();return}if(!r()&&!(0,Du.hasBlockSupport)(i(k[0]),"splitting",!1)&&!x.__deprecatedOnSplit)return;let[z]=k,F=f(z),G=[];for(let $ of L)if(u($.name,F))G.push($);else{let K=i(F),q=$.name!==K?(0,Du.switchToBlockType)($,K):[$];if(!q)return;for(let H of q)for(let J of H.innerBlocks)G.push(J)}v(G),x.preventDefault()}}return y.ownerDocument.addEventListener("copy",w),y.ownerDocument.addEventListener("cut",w),y.ownerDocument.addEventListener("paste",w),()=>{y.ownerDocument.removeEventListener("copy",w),y.ownerDocument.removeEventListener("cut",w),y.ownerDocument.removeEventListener("paste",w)}},[])}var Vx=c(T(),1);function yZ(){let[e,t,o]=bZ(),r=(0,Y1e.useSelect)(n=>n(P).hasMultiSelection(),[]);return[e,(0,v5.useMergeRefs)([w1e(),t,qxe(),_5(),j1e(),u1e(),m1e(),O1e(),D1e(),F1e(),b1e(),P1e(),k1e(),E1e(),(0,v5.useRefEffect)(n=>(n.tabIndex=0,n.dataset.hasMultiSelection=r,n.hasAttribute("contenteditable")||(n.contentEditable=!1),r?(n.setAttribute("aria-label",(0,vZ.__)("Multiple selected blocks")),()=>{delete n.dataset.hasMultiSelection,n.contentEditable==="true"?n.setAttribute("aria-label",(0,vZ.__)("Editor canvas")):n.removeAttribute("aria-label")}):()=>{delete n.dataset.hasMultiSelection}),[r])]),o]}function Ost({children:e,...t},o){let[r,n,i]=yZ();return(0,Vx.jsxs)(Vx.Fragment,{children:[r,(0,Vx.jsx)("div",{...t,ref:(0,v5.useMergeRefs)([n,o]),className:U(t.className,"block-editor-writing-flow"),children:e}),i]})}var K8=(0,K1e.forwardRef)(Ost);var q8=null;function q1e(){return q8||(q8=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},[]),q8)}var bi=c(D(),1),y5=c(ue(),1);function X1e({frameSize:e,containerWidth:t,maxContainerWidth:o,scaleContainerWidth:r}){return(Math.min(t,o)-e*2)/r}function Mst(e,t){let{scaleValue:o,scrollHeight:r}=e,{frameSize:n,scaleValue:i}=t;return r*(i/o)+n*2}function Ast(e,t){let{containerHeight:o,frameSize:r,scaleValue:n,scrollTop:i}=e,{containerHeight:s,frameSize:a,scaleValue:l,scrollHeight:d}=t,u=i;u=(u+o/2-r)/n-o/2,u=(u+s/2)*l+a-s/2,u=i<=r?0:u;let f=d-s;return Math.round(Math.min(Math.max(0,u),Math.max(0,f)))}function Nst(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`}]}var Z1e={width:null,height:null};function Q1e(e){let t=e.at(-1).contentBoxSize[0];return{width:t.inlineSize,height:t.blockSize}}function J1e({frameSize:e,iframeDocument:t,maxContainerWidth:o=750,scale:r}){let[{height:n},i]=(0,bi.useState)(Z1e),s=(0,y5.useResizeObserver)(S=>{i(Q1e(S))}),[{width:a,height:l},d]=(0,bi.useState)(Z1e),u=(0,y5.useResizeObserver)(S=>{d(Q1e(S))}),f=(0,bi.useRef)(0),p=r!==1,m=(0,y5.useReducedMotion)(),g=r==="auto-scaled",h=(0,bi.useRef)(!1),b=(0,bi.useRef)(null);(0,bi.useEffect)(()=>{p||(f.current=a)},[a,p]);let v=Math.max(f.current,a),_=g?X1e({frameSize:e,containerWidth:a,maxContainerWidth:o,scaleContainerWidth:v}):r,y=(0,bi.useRef)({scaleValue:_,frameSize:e,containerHeight:0,scrollTop:0,scrollHeight:0}),w=(0,bi.useRef)({scaleValue:_,frameSize:e,containerHeight:0,scrollTop:0,scrollHeight:0}),x=(0,bi.useCallback)(()=>{let{scrollTop:S}=y.current,{scrollTop:R}=w.current;return t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-scroll-top",`${S}px`),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-scroll-top-next",`${R}px`),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-overflow-behavior",y.current.scrollHeight===y.current.containerHeight?"auto":"scroll"),t.documentElement.classList.add("zoom-out-animation"),t.documentElement.animate(Nst(y.current,w.current),{easing:"cubic-bezier(0.46, 0.03, 0.52, 0.96)",duration:400})},[t]),k=(0,bi.useCallback)(()=>{h.current=!1,b.current=null,t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-scale",w.current.scaleValue),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-frame-size",`${w.current.frameSize}px`),t.documentElement.classList.remove("zoom-out-animation"),t.documentElement.scrollTop=w.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"),y.current=w.current},[t]),C=(0,bi.useRef)(!1);return(0,bi.useEffect)(()=>{if(!t)return;let S=C.current!==p;if(C.current=p,!!S&&(h.current=!0,!!p))return t.documentElement.classList.add("is-zoomed-out"),()=>{t.documentElement.classList.remove("is-zoomed-out")}},[t,p]),(0,bi.useEffect)(()=>{if(t&&(g&&y.current.scaleValue!==1&&(y.current.scaleValue=X1e({frameSize:y.current.frameSize,containerWidth:a,maxContainerWidth:o,scaleContainerWidth:a})),_<1&&(h.current||(t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-scale",_),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",`${n}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",`${v}px`)),h.current))if(h.current=!1,b.current){b.current.reverse();let S=y.current,R=w.current;y.current=R,w.current=S}else y.current.scrollTop=t.documentElement.scrollTop,y.current.scrollHeight=t.documentElement.scrollHeight,y.current.containerHeight=l,w.current={scaleValue:_,frameSize:e,containerHeight:t.documentElement.clientHeight},w.current.scrollHeight=Mst(y.current,w.current),w.current.scrollTop=Ast(y.current,w.current),b.current=x(),m?k():b.current.onfinish=k},[x,k,m,g,_,e,t,n,a,l,o,v]),{isZoomedOut:p,scaleContainerWidth:v,contentRef:s,containerRef:u}}var dd=c(T(),1);function nSe(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 Lst(e){return(0,Tp.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 d=Object.getPrototypeOf(a).constructor.name,u=window[d];nSe(a,u,o)},r.addEventListener(s,i[s]);return()=>{for(let s of n)r.removeEventListener(s,i[s])}})}var eSe=new WeakMap,Dst=globalThis.FinalizationRegistry?new globalThis.FinalizationRegistry(e=>URL.revokeObjectURL(e)):void 0;function Vst(e){let t=eSe.get(e);if(t)return t;let o="";tSe.version.split(".")[0]==="18"&&(o="<body><script>document.currentScript.parentElement.remove()<\/script></body>");let r=`<!doctype html> | |
| 96 | 97 | <html> |
| 97 | 98 | <head> |
| 98 | 99 | <meta charset="utf-8"> |
| 99 | 100 | <base href="${window.location.href}"> |
| @@ -113,10 +114,10 @@ | ||
| 113 | 114 | ${e.styles??""} |
| 114 | 115 | ${e.scripts??""} |
| 115 | 116 | </head> |
| 116 | 117 | ${o} |
| 117 | -</html>`;return t=URL.createObjectURL(new Blob([r],{type:"text/html"})),Vve.set(e,t),uQe?.register(e,t),t}function fQe({contentRef:e,children:t,tabIndex:o=0,scale:r=1,frameSize:n=0,readonly:i,forwardedRef:s,title:a=(0,zve.__)("Editor canvas"),...l}){let{resolvedAssets:u,isPreviewMode:d}=(0,rK.useSelect)(A=>{let P=A(B).getSettings();return{resolvedAssets:P.__unstableResolvedAssets,isPreviewMode:P.isPreviewMode}},[]),[f,p]=(0,By.useState)(),[m,g]=(0,By.useState)([]),[h,b,v]=oK(),y=(0,Zf.useRefEffect)(A=>{let P;function L(V){V.preventDefault()}function H(V){V.target.tagName==="A"&&V.target.getAttribute("href")?.startsWith("#")&&(V.preventDefault(),P.defaultView.location.hash=V.target.getAttribute("href").slice(1))}let{ownerDocument:N}=A;g(Array.from(N.body.classList).filter(V=>V.startsWith("admin-color-")||V.startsWith("post-type-")||V==="wp-embed-responsive"));function M(){let{contentDocument:V}=A,{documentElement:j}=V;P=V,p(V),j.classList.add("block-editor-iframe__html"),V.dir=N.dir;for(let D of Ave())V.getElementById(D.id)||(V.head.appendChild(D.cloneNode(!0)),d||console.warn(`${D.id} was added to the iframe incorrectly. Please use block.json or enqueue_block_assets to add styles to the iframe.`,D));P.addEventListener("dragover",L,!1),P.addEventListener("drop",L,!1),P.addEventListener("click",H)}return A.addEventListener("load",M),()=>{p(void 0),A.removeEventListener("load",M),P?.removeEventListener("dragover",L),P?.removeEventListener("drop",L),P?.removeEventListener("click",H)}},[]),{contentRef:_,containerRef:w,isZoomedOut:k,scaleContainerWidth:x}=Dve({scale:r,frameSize:parseInt(n),iframeDocument:f}),S=(0,Zf.useDisabled)({isDisabled:!i}),C=(0,Zf.useMergeRefs)([cQe(f),e,b,S,_]),R=(0,Zf.useRefEffect)(A=>A.ownerDocument.defaultView?(C(A),()=>C(null)):()=>{},[C]),E=dQe(u),I=o>=0&&!d,O=(0,$c.jsxs)($c.Fragment,{children:[I&&h,(0,$c.jsx)("iframe",{...l,style:{...l.style,height:l.style?.height,border:0},ref:(0,Zf.useMergeRefs)([s,y]),tabIndex:o,src:E,title:a,onKeyDown:A=>{if(l.onKeyDown&&l.onKeyDown(A),A.currentTarget.ownerDocument!==A.target.ownerDocument){let{stopPropagation:P}=A.nativeEvent;A.nativeEvent.stopPropagation=()=>{},A.stopPropagation(),A.nativeEvent.stopPropagation=P,Hve(A,window.KeyboardEvent,A.currentTarget)}},children:f&&(0,By.createPortal)((0,$c.jsx)("body",{ref:R,className:$("block-editor-iframe__body","editor-styles-wrapper",...m),children:(0,$c.jsx)(jve.__experimentalStyleProvider,{document:f,children:t})}),f.documentElement)}),I&&v]});return(0,$c.jsx)("div",{className:"block-editor-iframe__container",ref:w,children:(0,$c.jsx)("div",{className:$("block-editor-iframe__scale-container",k&&"is-zoomed-out"),style:{"--wp-block-editor-iframe-zoom-out-scale-container-width":k&&`${x}px`},children:O})})}function pQe(e,t){return(0,rK.useSelect)(r=>r(B).getSettings().__internalIsInitialized,[])?(0,$c.jsx)(fQe,{...e,forwardedRef:t}):null}var Rk=(0,By.forwardRef)(pQe);var Fwe=c(Y(),1),Nk=c(F(),1),zwe=c(te(),1);var lD={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},mQe=new Set(["combinator","comma"]);var gQe=e=>{switch(e){case"pseudo-element":case"pseudo-class":return new RegExp(lD[e].source.replace("(?<argument>\xB6*)","(?<argument>.*)"),"gu");default:return lD[e]}};function hQe(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 bQe(e,t=lD){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],p=a.slice(0,u+1);p&&d.push(p),d.push({...l.groups,type:n,content:f});let m=a.slice(u+f.length+1);m&&d.push(m),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],mQe.has(n.type)&&(n.content=n.content.trim()||" ");break}return o}var yQe=/(['"])([^\\\n]+?)\1/g,vQe=/\\./g;function nK(e,t=lD){if(e=e.trim(),e==="")return[];let o=[];e=e.replace(vQe,(i,s)=>(o.push({value:i,offset:s}),"\uE000".repeat(i.length))),e=e.replace(yQe,(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=hQe(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=bQe(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=gQe(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*aD(e,t){switch(e.type){case"list":for(let o of e.list)yield*aD(o,e);break;case"complex":yield*aD(e.left,e),yield*aD(e.right,e);break;case"compound":yield*e.list.map(o=>[o,e]);break;default:yield[e,t]}}function Uve(e){let t;return Array.isArray(e)?t=e:t=[...aD(e)].map(([o])=>o),t.map(o=>o.content).join("")}var Mwe=c(pwe(),1),Nwe=c(cD(),1),Lwe=c(hwe(),1),Dwe=c(Owe(),1),Awe=new Map,Vwe=[{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 HJe(e,t){let o=nK(t),r=o.findLastIndex(({content:s,type:a})=>Vwe.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=nK(e);return o.splice(n===-1?o.length:n,0,{type:"combinator",content:" ",pos:[0,0]},...i),Uve(o)}function UJe({css:e,ignoredSelectors:t=[],baseURL:o},r="",n){if(!r&&!o)return e;try{let i=[...t,...n?.ignoredSelectors??[],r];return new Mwe.default([r&&(0,Lwe.default)({prefix:r,transform(s,a,l){return i.some(d=>d instanceof RegExp?a.match(d):a.includes(d))?a:Vwe.some(d=>a.startsWith(d.content))?HJe(s,a):l}}),o&&(0,Dwe.default)({rootUrl:o})].filter(Boolean)).process(e,{}).css}catch(i){return i instanceof Nwe.default?console.warn("wp.blockEditor.transformStyles Failed to transform CSS.",i.message+` | |
| 118 | -`+i.showSourceCode(!1)):console.warn("wp.blockEditor.transformStyles Failed to transform CSS.",i),null}}var WJe=(e,t="",o)=>{let r=Awe.get(t);return r||(r=new WeakMap,Awe.set(t,r)),e.map(n=>{let i=r.get(n);return i||(i=UJe(n,t,o),r.set(n,i)),i})},Mk=WJe;var Og=c(T(),1);lm([cm,s_]);function GJe(e,t){return(0,Nk.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=Go(a);l.luminance()>.5||l.alpha()===0?i.classList.remove("is-dark-theme"):i.classList.add("is-dark-theme")},[e,t])}function $Je({styles:e,scope:t,transformOptions:o}){let r=(0,zwe.useSelect)(s=>G(s(B)).getStyleOverrides(),[]),[n,i]=(0,Nk.useMemo)(()=>{let s=Object.values(e??[]),a=[...r.filter(([,l])=>l?.__unstableType!=="custom-css"),...r.filter(([,l])=>l?.__unstableType==="custom-css")];for(let[l,u]of a){let d=s.findIndex(({id:p})=>l===p),f={...u,id:l};d===-1?s.push(f):s[d]=f}return[Mk(s.filter(l=>l?.css),t,o),s.filter(l=>l.__unstableType==="svgs").map(l=>l.assets).join("")]},[e,r,t,o]);return(0,Og.jsxs)(Og.Fragment,{children:[(0,Og.jsx)("style",{ref:GJe(n,t)}),n.map((s,a)=>(0,Og.jsx)("style",{children:s},a)),(0,Og.jsx)(Fwe.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 Xf=(0,Nk.memo)($Je);var Pl=c(T(),1),YJe=(0,ED.memo)(Lk),VK=2e3,KJe=[];function qJe({viewportWidth:e,containerWidth:t,minHeight:o,additionalStyles:r=KJe}){e||(e=t);let[n,{height:i}]=(0,UE.useResizeObserver)(),{styles:s}=(0,jwe.useSelect)(d=>({styles:d(B).getSettings().styles}),[]),a=(0,ED.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,Pl.jsx)(Hwe.Disabled,{className:"block-editor-block-preview__content",style:{transform:`scale(${l})`,aspectRatio:u,maxHeight:i>VK?VK*l:void 0,minHeight:o},children:(0,Pl.jsxs)(Rk,{contentRef:(0,UE.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:VK,minHeight:l!==0&&l<1&&o?o/l:o},children:[(0,Pl.jsx)(Xf,{styles:a}),n,(0,Pl.jsx)(YJe,{renderAppender:!1})]})})}function Uwe(e){let[t,{width:o}]=(0,UE.useResizeObserver)();return(0,Pl.jsxs)(Pl.Fragment,{children:[(0,Pl.jsx)("div",{style:{position:"relative",width:"100%",height:0},children:t}),(0,Pl.jsx)("div",{className:"block-editor-block-preview__container",children:!!o&&(0,Pl.jsx)(qJe,{...e,containerWidth:o})})]})}var Dk=c(F(),1),Ywe=c(Gwe(),1),$we=(0,Ywe.createQueue)();function Kwe({children:e,placeholder:t}){let[o,r]=(0,Dk.useState)(!1);return(0,Dk.useEffect)(()=>{let n={};return $we.add(n,()=>{(0,Dk.flushSync)(()=>{r(!0)})}),()=>{$we.cancel(n)}},[]),o?e:t}var Ay=c(T(),1),ZJe=[];function XJe({blocks:e,viewportWidth:t=1200,minHeight:o,additionalStyles:r=ZJe,__experimentalMinHeight:n,__experimentalPadding:i}){n&&(o=n,(0,FK.default)("The __experimentalMinHeight prop",{since:"6.2",version:"6.4",alternative:"minHeight"})),i&&(r=[...r,{css:`body { padding: ${i}px; }`}],(0,FK.default)("The __experimentalPadding prop of BlockPreview",{since:"6.2",version:"6.4",alternative:"additionalStyles"}));let s=(0,zK.useSelect)(u=>u(B).getSettings(),[]),a=(0,Oy.useMemo)(()=>({...s,isPreviewMode:!0}),[s]),l=(0,Oy.useMemo)(()=>Array.isArray(e)?e:[e],[e]);return!e||e.length===0?null:(0,Ay.jsx)(_k,{value:l,settings:a,children:(0,Ay.jsx)(Uwe,{viewportWidth:t,minHeight:o,additionalStyles:r})})}var qwe=(0,Oy.memo)(XJe);qwe.Async=Kwe;var Ks=qwe;function Zwe({blocks:e,props:t={},layout:o}){let r=(0,zK.useSelect)(u=>u(B).getSettings(),[]),n=(0,Oy.useMemo)(()=>({...r,styles:void 0,isPreviewMode:!0}),[r]),i=(0,TD.useDisabled)(),s=(0,TD.useMergeRefs)([t.ref,i]),a=(0,Oy.useMemo)(()=>Array.isArray(e)?e:[e],[e]),l=(0,Ay.jsxs)(_k,{value:a,settings:n,children:[(0,Ay.jsx)(Xf,{}),(0,Ay.jsx)(WE,{renderAppender:!1,layout:o})]});return{...t,ref:s,className:$(t.className,"block-editor-block-preview__live-content","components-disabled"),children:e?.length?l:null}}var Ag=c(T(),1);function QJe({item:e}){let{name:t,title:o,icon:r,description:n,initialAttributes:i,example:s}=e,a=(0,Vk.isReusableBlock)(e),l=(0,Xwe.useMemo)(()=>s?(0,Vk.getBlockFromExample)(t,{attributes:{...s.attributes,...i},innerBlocks:s.innerBlocks,innerContent:s.innerContent}):(0,Vk.createBlock)(t,i),[t,s,i]),u=144,d=280,f=s?.viewportWidth??500,p=d/f,m=p!==0&&p<1&&u?u/p:u;return(0,Ag.jsxs)("div",{className:"block-editor-inserter__preview-container",children:[(0,Ag.jsx)("div",{className:"block-editor-inserter__preview",children:a||s?(0,Ag.jsx)("div",{className:"block-editor-inserter__preview-content",children:(0,Ag.jsx)(Ks,{blocks:l,viewportWidth:f,minHeight:u,additionalStyles:[{css:` | |
| 118 | +</html>`;return t=URL.createObjectURL(new Blob([r],{type:"text/html"})),eSe.set(e,t),Dst?.register(e,t),t}function Fst({contentRef:e,children:t,tabIndex:o=0,scale:r=1,frameSize:n=0,readonly:i,forwardedRef:s,title:a=(0,oSe.__)("Editor canvas"),...l}){let{resolvedAssets:d,isPreviewMode:u}=(0,wZ.useSelect)(O=>{let M=O(P).getSettings();return{resolvedAssets:M.__unstableResolvedAssets,isPreviewMode:M.isPreviewMode}},[]),[f,p]=(0,_v.useState)(),[m,g]=(0,_v.useState)([]),[h,b,v]=yZ(),_=(0,Tp.useRefEffect)(O=>{let M;function N(L){L.preventDefault()}function j(L){L.target.tagName==="A"&&L.target.getAttribute("href")?.startsWith("#")&&(L.preventDefault(),M.defaultView.location.hash=L.target.getAttribute("href").slice(1))}let{ownerDocument:V}=O;g(Array.from(V.body.classList).filter(L=>L.startsWith("admin-color-")||L.startsWith("post-type-")||L==="wp-embed-responsive"));function A(){let{contentDocument:L}=O,{documentElement:z}=L;M=L,p(L),z.classList.add("block-editor-iframe__html"),L.dir=V.dir;for(let F of q1e())L.getElementById(F.id)||(L.head.appendChild(F.cloneNode(!0)),u||console.warn(`${F.id} was added to the iframe incorrectly. Please use block.json or enqueue_block_assets to add styles to the iframe.`,F));M.addEventListener("dragover",N,!1),M.addEventListener("drop",N,!1),M.addEventListener("click",j)}return O.addEventListener("load",A),()=>{p(void 0),O.removeEventListener("load",A),M?.removeEventListener("dragover",N),M?.removeEventListener("drop",N),M?.removeEventListener("click",j)}},[]),{contentRef:y,containerRef:w,isZoomedOut:x,scaleContainerWidth:k}=J1e({scale:r,frameSize:parseInt(n),iframeDocument:f}),C=(0,Tp.useDisabled)({isDisabled:!i}),S=(0,Tp.useMergeRefs)([Lst(f),e,b,C,y]),R=(0,Tp.useRefEffect)(O=>O.ownerDocument.defaultView?(S(O),()=>S(null)):()=>{},[S]),E=Vst(d),I=o>=0&&!u,B=(0,dd.jsxs)(dd.Fragment,{children:[I&&h,(0,dd.jsx)("iframe",{...l,style:{...l.style,height:l.style?.height,border:0},ref:(0,Tp.useMergeRefs)([s,_]),tabIndex:o,src:E,title:a,onKeyDown:O=>{if(l.onKeyDown&&l.onKeyDown(O),O.currentTarget.ownerDocument!==O.target.ownerDocument){let{stopPropagation:M}=O.nativeEvent;O.nativeEvent.stopPropagation=()=>{},O.stopPropagation(),O.nativeEvent.stopPropagation=M,nSe(O,window.KeyboardEvent,O.currentTarget)}},children:f&&(0,_v.createPortal)((0,dd.jsx)("body",{ref:R,className:U("block-editor-iframe__body","editor-styles-wrapper",...m),children:(0,dd.jsx)(rSe.__experimentalStyleProvider,{document:f,children:t})}),f.documentElement)}),I&&v]});return(0,dd.jsx)("div",{className:"block-editor-iframe__container",ref:w,children:(0,dd.jsx)("div",{className:U("block-editor-iframe__scale-container",x&&"is-zoomed-out"),style:{"--wp-block-editor-iframe-zoom-out-scale-container-width":x&&`${k}px`},children:B})})}function zst(e,t){return(0,wZ.useSelect)(r=>r(P).getSettings().__internalIsInitialized,[])?(0,dd.jsx)(Fst,{...e,forwardedRef:t}):null}var Fx=(0,_v.forwardRef)(zst);var tEe=c(Q(),1),$x=c(D(),1),oEe=c(oe(),1);var Z8={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},jst=new Set(["combinator","comma"]);var Hst=e=>{switch(e){case"pseudo-element":case"pseudo-class":return new RegExp(Z8[e].source.replace("(?<argument>\xB6*)","(?<argument>.*)"),"gu");default:return Z8[e]}};function Ust(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 Wst(e,t=Z8){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 d=l.index-1,u=[],f=l[0],p=a.slice(0,d+1);p&&u.push(p),u.push({...l.groups,type:n,content:f});let m=a.slice(d+f.length+1);m&&u.push(m),o.splice(s,1,...u)}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],jst.has(n.type)&&(n.content=n.content.trim()||" ");break}return o}var Gst=/(['"])([^\\\n]+?)\1/g,$st=/\\./g;function xZ(e,t=Z8){if(e=e.trim(),e==="")return[];let o=[];e=e.replace($st,(i,s)=>(o.push({value:i,offset:s}),"\uE000".repeat(i.length))),e=e.replace(Gst,(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=Ust(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=Wst(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:d}=s,u=a-s.pos[0];s.content=d.slice(0,u)+l+d.slice(u+l.length),s.content!==d&&n.add(s)}for(let i of n){let s=Hst(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*X8(e,t){switch(e.type){case"list":for(let o of e.list)yield*X8(o,e);break;case"complex":yield*X8(e.left,e),yield*X8(e.right,e);break;case"compound":yield*e.list.map(o=>[o,e]);break;default:yield[e,t]}}function iSe(e){let t;return Array.isArray(e)?t=e:t=[...X8(e)].map(([o])=>o),t.map(o=>o.content).join("")}var XCe=c(ICe(),1),ZCe=c(Q8(),1),QCe=c(OCe(),1),JCe=c(KCe(),1),qCe=new Map,eEe=[{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 glt(e,t){let o=xZ(t),r=o.findLastIndex(({content:s,type:a})=>eEe.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=xZ(e);return o.splice(n===-1?o.length:n,0,{type:"combinator",content:" ",pos:[0,0]},...i),iSe(o)}function hlt({css:e,ignoredSelectors:t=[],baseURL:o},r="",n){if(!r&&!o)return e;try{let i=[...t,...n?.ignoredSelectors??[],r];return new XCe.default([r&&(0,QCe.default)({prefix:r,transform(s,a,l){return i.some(u=>u instanceof RegExp?a.match(u):a.includes(u))?a:eEe.some(u=>a.startsWith(u.content))?glt(s,a):l}}),o&&(0,JCe.default)({rootUrl:o})].filter(Boolean)).process(e,{}).css}catch(i){return i instanceof ZCe.default?console.warn("wp.blockEditor.transformStyles Failed to transform CSS.",i.message+` | |
| 119 | +`+i.showSourceCode(!1)):console.warn("wp.blockEditor.transformStyles Failed to transform CSS.",i),null}}var blt=(e,t="",o)=>{let r=qCe.get(t);return r||(r=new WeakMap,qCe.set(t,r)),e.map(n=>{let i=r.get(n);return i||(i=hlt(n,t,o),r.set(n,i)),i})},Gx=blt;var vh=c(T(),1);Dm([Vm,Xy]);function _lt(e,t){return(0,$x.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 d=r.createElement("div");d.classList.add("editor-styles-wrapper"),i.appendChild(d),a=n?.getComputedStyle(d,null).getPropertyValue("background-color"),i.removeChild(d)}let l=Zo(a);l.luminance()>.5||l.alpha()===0?i.classList.remove("is-dark-theme"):i.classList.add("is-dark-theme")},[e,t])}function vlt({styles:e,scope:t,transformOptions:o}){let r=(0,oEe.useSelect)(s=>Z(s(P)).getStyleOverrides(),[]),[n,i]=(0,$x.useMemo)(()=>{let s=Object.values(e??[]),a=[...r.filter(([,l])=>l?.__unstableType!=="custom-css"),...r.filter(([,l])=>l?.__unstableType==="custom-css")];for(let[l,d]of a){let u=s.findIndex(({id:p})=>l===p),f={...d,id:l};u===-1?s.push(f):s[u]=f}return[Gx(s.filter(l=>l?.css),t,o),s.filter(l=>l.__unstableType==="svgs").map(l=>l.assets).join("")]},[e,r,t,o]);return(0,vh.jsxs)(vh.Fragment,{children:[(0,vh.jsx)("style",{ref:_lt(n,t)}),n.map((s,a)=>(0,vh.jsx)("style",{children:s},a)),(0,vh.jsx)(tEe.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 Rp=(0,$x.memo)(vlt);var Kl=c(T(),1),ylt=(0,gM.memo)(Yx),oQ=2e3,wlt=[];function xlt({viewportWidth:e,containerWidth:t,minHeight:o,additionalStyles:r=wlt}){e||(e=t);let[n,{height:i}]=(0,A5.useResizeObserver)(),{styles:s}=(0,rEe.useSelect)(u=>({styles:u(P).getSettings().styles}),[]),a=(0,gM.useMemo)(()=>s&&[...s,{css:"body{height:auto;overflow:hidden;border:none;padding:0;}",__unstableType:"presets"},...r],[s,r]),l=t/e,d=i?t/(i*l):0;return(0,Kl.jsx)(nEe.Disabled,{className:"block-editor-block-preview__content",style:{transform:`scale(${l})`,aspectRatio:d,maxHeight:i>oQ?oQ*l:void 0,minHeight:o},children:(0,Kl.jsxs)(Fx,{contentRef:(0,A5.useRefEffect)(u=>{let{ownerDocument:{documentElement:f}}=u;f.classList.add("block-editor-block-preview__content-iframe"),f.style.position="absolute",f.style.width="100%",u.style.boxSizing="border-box",u.style.position="absolute",u.style.width="100%"},[]),"aria-hidden":!0,tabIndex:-1,style:{position:"absolute",width:e,height:i,pointerEvents:"none",maxHeight:oQ,minHeight:l!==0&&l<1&&o?o/l:o},children:[(0,Kl.jsx)(Rp,{styles:a}),n,(0,Kl.jsx)(ylt,{renderAppender:!1})]})})}function iEe(e){let[t,{width:o}]=(0,A5.useResizeObserver)();return(0,Kl.jsxs)(Kl.Fragment,{children:[(0,Kl.jsx)("div",{style:{position:"relative",width:"100%",height:0},children:t}),(0,Kl.jsx)("div",{className:"block-editor-block-preview__container",children:!!o&&(0,Kl.jsx)(xlt,{...e,containerWidth:o})})]})}var Kx=c(D(),1),cEe=c(aEe(),1),lEe=(0,cEe.createQueue)();function dEe({children:e,placeholder:t}){let[o,r]=(0,Kx.useState)(!1);return(0,Kx.useEffect)(()=>{let n={};return lEe.add(n,()=>{(0,Kx.flushSync)(()=>{r(!0)})}),()=>{lEe.cancel(n)}},[]),o?e:t}var xv=c(T(),1),klt=[];function Slt({blocks:e,viewportWidth:t=1200,minHeight:o,additionalStyles:r=klt,__experimentalMinHeight:n,__experimentalPadding:i}){n&&(o=n,(0,rQ.default)("The __experimentalMinHeight prop",{since:"6.2",version:"6.4",alternative:"minHeight"})),i&&(r=[...r,{css:`body { padding: ${i}px; }`}],(0,rQ.default)("The __experimentalPadding prop of BlockPreview",{since:"6.2",version:"6.4",alternative:"additionalStyles"}));let s=(0,nQ.useSelect)(d=>d(P).getSettings(),[]),a=(0,wv.useMemo)(()=>({...s,isPreviewMode:!0}),[s]),l=(0,wv.useMemo)(()=>Array.isArray(e)?e:[e],[e]);return!e||e.length===0?null:(0,xv.jsx)(Px,{value:l,settings:a,children:(0,xv.jsx)(iEe,{viewportWidth:t,minHeight:o,additionalStyles:r})})}var uEe=(0,wv.memo)(Slt);uEe.Async=dEe;var sa=uEe;function fEe({blocks:e,props:t={},layout:o}){let r=(0,nQ.useSelect)(d=>d(P).getSettings(),[]),n=(0,wv.useMemo)(()=>({...r,styles:void 0,isPreviewMode:!0}),[r]),i=(0,hM.useDisabled)(),s=(0,hM.useMergeRefs)([t.ref,i]),a=(0,wv.useMemo)(()=>Array.isArray(e)?e:[e],[e]),l=(0,xv.jsxs)(Px,{value:a,settings:n,children:[(0,xv.jsx)(Rp,{}),(0,xv.jsx)(N5,{renderAppender:!1,layout:o})]});return{...t,ref:s,className:U(t.className,"block-editor-block-preview__live-content"),children:e?.length?l:null}}var yh=c(T(),1);function Clt({item:e}){let{name:t,title:o,icon:r,description:n,initialAttributes:i,example:s}=e,a=(0,qx.isReusableBlock)(e),l=(0,pEe.useMemo)(()=>s?(0,qx.getBlockFromExample)(t,{attributes:{...s.attributes,...i},innerBlocks:s.innerBlocks,innerContent:s.innerContent}):(0,qx.createBlock)(t,i),[t,s,i]),d=144,u=280,f=s?.viewportWidth??500,p=u/f,m=p!==0&&p<1&&d?d/p:d;return(0,yh.jsxs)("div",{className:"block-editor-inserter__preview-container",children:[(0,yh.jsx)("div",{className:"block-editor-inserter__preview",children:a||s?(0,yh.jsx)("div",{className:"block-editor-inserter__preview-content",children:(0,yh.jsx)(sa,{blocks:l,viewportWidth:f,minHeight:d,additionalStyles:[{css:` | |
| 119 | 120 | body { |
| 120 | 121 | padding: 24px; |
| 121 | 122 | min-height:${Math.round(m)}px; |
| 122 | 123 | display:flex; |
| @@ -122,9 +123,9 @@ | ||
| 122 | 123 | display:flex; |
| 123 | 124 | align-items:center; |
| 124 | 125 | } |
| 125 | 126 | .is-root-container { width: 100%; } |
| 126 | - `}]})}):(0,Ag.jsx)("div",{className:"block-editor-inserter__preview-content-missing",children:(0,Qwe.__)("No preview available.")})}),!a&&(0,Ag.jsx)(xE,{title:o,icon:r,description:n})]})}var Jwe=QJe;var Wk=c(q(),1),ep=c(F(),1),YK=c(ue(),1);var pke=c(ce(),1),mke=c(ue(),1);var Uk=c(F(),1),Mg=c(ce(),1),dke=c(Y(),1),GE=c(wo(),1);var ake=c(Y(),1),lke=c(F(),1);var Fk=c(F(),1),eke=c(q(),1),tke=c(Yo(),1),oke=c(T(),1);function JJe(e,t){let[o,r]=(0,Fk.useState)(!1);return(0,Fk.useEffect)(()=>{o&&(0,tke.speak)((0,eke.__)("Use left and right arrow keys to move through blocks"))},[o]),(0,oke.jsx)("div",{ref:t,role:"listbox","aria-orientation":"horizontal",onFocus:()=>{r(!0)},onBlur:n=>{!n.currentTarget.contains(n.relatedTarget)&&r(!1)},...e})}var jK=(0,Fk.forwardRef)(JJe);var rke=c(F(),1),nke=c(Y(),1),ike=c(T(),1);function eet(e,t){return(0,ike.jsx)(nke.Composite.Group,{role:"presentation",ref:t,...e})}var HK=(0,rke.forwardRef)(eet);var BD=c(Y(),1),ske=c(F(),1),RD=c(T(),1);function tet({isFirst:e,as:t,children:o,...r},n){return(0,RD.jsx)(BD.Composite.Item,{ref:n,role:"option",accessibleWhenDisabled:!0,...r,render:i=>{let s={...i,tabIndex:e?0:i.tabIndex};return t?(0,RD.jsx)(t,{...s,children:o}):typeof o=="function"?o(s):(0,RD.jsx)(BD.Button,{__next40pxDefaultSize:!0,...s,children:o})}})}var UK=(0,ske.forwardRef)(tet);var WK=c(T(),1);function oet({key:e,children:t}){return(0,WK.jsx)(lke.Fragment,{children:t},e)}function ret({children:e}){return(0,WK.jsx)(ake.Composite,{focusShift:!0,focusWrap:"horizontal",render:oet,children:e})}var ID=ret;var cke=c(Y(),1),OD=c(ce(),1),AD=c(te(),1),uke=c(F(),1);var jk=c(q(),1),zk=c(Y(),1);var qc=c(T(),1);function PD({count:e,icon:t,isPattern:o,fadeWhenDisabled:r}){let n=o&&(0,jk.__)("Pattern");return(0,qc.jsx)("div",{className:"block-editor-block-draggable-chip-wrapper",children:(0,qc.jsx)("div",{className:"block-editor-block-draggable-chip","data-testid":"block-draggable-chip",children:(0,qc.jsxs)(zk.Flex,{justify:"center",className:"block-editor-block-draggable-chip__content",children:[(0,qc.jsx)(zk.FlexItem,{children:t?(0,qc.jsx)(Nt,{icon:t}):n||(0,jk.sprintf)((0,jk._n)("%d block","%d blocks",e),e)}),(0,qc.jsx)(zk.FlexItem,{children:(0,qc.jsx)(Nt,{icon:F0})}),r&&(0,qc.jsx)(zk.FlexItem,{className:"block-editor-block-draggable-chip__disabled",children:(0,qc.jsx)("span",{className:"block-editor-block-draggable-chip__disabled-icon"})})]})})})}var GK=c(T(),1),net=({isEnabled:e,blocks:t,icon:o,children:r,pattern:n})=>{let i=t.length===1?t[0].name:void 0,s=(0,AD.useSelect)(f=>i&&f(OD.store).getBlockType(i)?.icon,[i]),{startDragging:a,stopDragging:l}=G((0,AD.useDispatch)(B)),u=(0,uke.useMemo)(()=>n?.type===nr.user&&n?.syncStatus!=="unsynced"?[(0,OD.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,GK.jsx)(cke.Draggable,{__experimentalTransferDataType:"wp-blocks",transferData:{type:"inserter",blocks:d},onDragStart:f=>{a();let p=new Set;for(let m of d){let g=`wp-block:${m.name}`;p.has(g)||(f.dataTransfer.items.add("",g),p.add(g))}},onDragEnd:()=>{l()},__experimentalDragComponent:(0,GK.jsx)(PD,{count:t.length,icon:o||!n&&s,isPattern:!!n}),children:({onDraggableStart:f,onDraggableEnd:p})=>r({draggable:!0,onDragStart:f,onDragEnd:p})})},Hk=net;var Qf=c(T(),1);function iet({className:e,isFirst:t,item:o,onSelect:r,onHover:n,isDraggable:i,...s}){let a=(0,Uk.useRef)(!1),l=o.icon?{backgroundColor:o.icon.background,color:o.icon.foreground}:{},u=(0,Uk.useMemo)(()=>[(0,Mg.createBlock)(o.name,o.initialAttributes,(0,Mg.createBlocksFromInnerBlocksTemplate)(o.innerBlocks),o.innerContent)],[o.name,o.initialAttributes,o.innerBlocks,o.innerContent]),d=(0,Mg.isReusableBlock)(o)&&o.syncStatus!=="unsynced"||(0,Mg.isTemplatePart)(o);return(0,Qf.jsx)(Hk,{isEnabled:i&&!o.isDisabled,blocks:u,icon:o.icon,children:({draggable:f,onDragStart:p,onDragEnd:m})=>(0,Qf.jsx)("div",{className:$("block-editor-block-types-list__list-item",{"is-synced":d}),draggable:f,onDragStart:g=>{a.current=!0,p&&(n(null),p(g))},onDragEnd:g=>{a.current=!1,m&&m(g)},children:(0,Qf.jsxs)(UK,{isFirst:t,className:$("block-editor-block-types-list__item",e),disabled:o.isDisabled,onClick:g=>{g.preventDefault(),r(o,(0,GE.isAppleOS)()?g.metaKey:g.ctrlKey),n(null)},onKeyDown:g=>{let{keyCode:h}=g;h===GE.ENTER&&(g.preventDefault(),r(o,(0,GE.isAppleOS)()?g.metaKey:g.ctrlKey),n(null))},onMouseEnter:()=>{a.current||n(o)},onMouseLeave:()=>n(null),...s,children:[(0,Qf.jsx)("span",{className:"block-editor-block-types-list__item-icon",style:l,children:(0,Qf.jsx)(Nt,{icon:o.icon,showColors:!0})}),(0,Qf.jsx)("span",{className:"block-editor-block-types-list__item-title",children:(0,Qf.jsx)(dke.__experimentalTruncate,{numberOfLines:3,children:o.title})})]})})})}var fke=(0,Uk.memo)(iet);var $E=c(T(),1);function set(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 gke({items:e=[],onSelect:t,onHover:o=()=>{},children:r,label:n,isDraggable:i=!0}){let s="block-editor-block-types-list",a=(0,mke.useInstanceId)(gke,s);return(0,$E.jsxs)(jK,{className:s,"aria-label":n,children:[set(e,3).map((l,u)=>(0,$E.jsx)(HK,{children:l.map((d,f)=>(0,$E.jsx)(fke,{item:d,className:(0,pke.getBlockMenuDefaultClassName)(d.id),onSelect:t,onHover:o,isDraggable:i&&!d.isDisabled,isFirst:u===0&&f===0,rowId:`${a}-${u}`},d.id))},u)),r]})}var My=gke;var hke=c(Y(),1),Jf=c(T(),1);function aet({title:e,icon:t,children:o}){return(0,Jf.jsxs)(Jf.Fragment,{children:[(0,Jf.jsxs)("div",{className:"block-editor-inserter__panel-header",children:[(0,Jf.jsx)("h2",{className:"block-editor-inserter__panel-title",children:e}),(0,Jf.jsx)(hke.Icon,{icon:t})]}),(0,Jf.jsx)("div",{className:"block-editor-inserter__panel-content",children:o})]})}var Ng=aet;var bke=c(q(),1),$K=c(T(),1);function cet({children:e=(0,bke.__)("No results found.")}){return(0,$K.jsx)("div",{className:"block-editor-inserter__no-results",children:(0,$K.jsx)("p",{children:e})})}var Zc=cet;var An=c(T(),1),uet=e=>e.name.split("/")[0],det=6,fet=[];function yke({items:e,collections:t,categories:o,onSelectItem:r,onHover:n,showMostUsedBlocks:i,className:s}){let a=(0,ep.useMemo)(()=>Hu(e,"frecency","desc").slice(0,det),[e]),l=(0,ep.useMemo)(()=>e.filter(g=>!g.category),[e]),u=(0,ep.useMemo)(()=>{let g={...t};return Object.keys(t).forEach(h=>{g[h]=e.filter(b=>uet(b)===h),g[h].length===0&&delete g[h]}),g},[e,t]);(0,ep.useEffect)(()=>()=>n(null),[]);let d=(0,YK.useAsyncList)(o),f=o.length===d.length,p=(0,ep.useMemo)(()=>Object.entries(t),[t]),m=(0,YK.useAsyncList)(f?p:fet);return(0,An.jsxs)("div",{className:s,children:[i&&e.length>3&&!!a.length&&(0,An.jsx)(Ng,{title:(0,Wk._x)("Most used","blocks"),children:(0,An.jsx)(My,{items:a,onSelect:r,onHover:n,label:(0,Wk._x)("Most used","blocks")})}),d.map(g=>{let h=e.filter(b=>b.category===g.slug);return!h||!h.length?null:(0,An.jsx)(Ng,{title:g.title,icon:g.icon,children:(0,An.jsx)(My,{items:h,onSelect:r,onHover:n,label:g.title})},g.slug)}),f&&l.length>0&&(0,An.jsx)(Ng,{className:"block-editor-inserter__uncategorized-blocks-panel",title:(0,Wk.__)("Uncategorized"),children:(0,An.jsx)(My,{items:l,onSelect:r,onHover:n,label:(0,Wk.__)("Uncategorized")})}),m.map(([g,h])=>{let b=u[g];return!b||!b.length?null:(0,An.jsx)(Ng,{title:h.title,icon:h.icon,children:(0,An.jsx)(My,{items:b,onSelect:r,onHover:n,label:h.title})},g)})]})}function pet({rootClientId:e,onInsert:t,onHover:o,showMostUsedBlocks:r},n){let[i,s,a,l]=Am(e,t);if(!i.length)return(0,An.jsx)(Zc,{});let u=[],d=[];for(let f of i)f.category!=="reusable"&&(f.isSearchOnly||(f.isAllowedInCurrentRoot?u.push(f):d.push(f)));return(0,An.jsx)(ID,{children:(0,An.jsxs)("div",{ref:n,children:[!!u.length&&(0,An.jsx)(An.Fragment,{children:(0,An.jsx)(yke,{items:u,categories:s,collections:a,onSelectItem:l,onHover:o,showMostUsedBlocks:r,className:"block-editor-inserter__insertable-blocks-at-selection"})}),(0,An.jsx)(yke,{items:d,categories:s,collections:a,onSelectItem:l,onHover:o,showMostUsedBlocks:r,className:"block-editor-inserter__all-blocks"})]})})}var vke=(0,ep.forwardRef)(pet);var zke=c(F(),1),jke=c(ue(),1),Hke=c(Y(),1),Uke=c(q(),1);var Mke=c(Y(),1);var JK=c(F(),1),Nke=c(q(),1);var _ke=c(Y(),1);var KK=c(q(),1),Gk=c(T(),1);function met({patternCategories:e,searchValue:t,setSearchValue:o}){return(0,Gk.jsxs)(Ke,{direction:"column",gap:"lg",className:"block-editor-block-patterns-explorer__sidebar",children:[(0,Gk.jsx)(_ke.SearchControl,{onChange:o,value:t,label:(0,KK.__)("Search"),placeholder:(0,KK.__)("Search")}),(0,Gk.jsx)(Cg.List,{children:e.map(({name:r,label:n})=>(0,Gk.jsx)(Cg.Tab,{value:r,children:n},r))})]})}var wke=met;var tp=c(F(),1),Zk=c(q(),1),Ike=c(ue(),1);var Pke=c(Yo(),1);var kke=c(ce(),1),vd=c(F(),1),YE=c(Y(),1);var xke=c(ue(),1),Ske=c(q(),1);var qs=c(Y(),1),Ol=c(q(),1),Hi=c(T(),1);function $k({currentPage:e,numPages:t,changePage:o,totalItems:r}){return(0,Hi.jsxs)(qs.__experimentalVStack,{className:"block-editor-patterns__grid-pagination-wrapper",children:[(0,Hi.jsx)(qs.__experimentalText,{variant:"muted",children:(0,Ol.sprintf)((0,Ol._n)("%s item","%s items",r),r)}),t>1&&(0,Hi.jsxs)(qs.__experimentalHStack,{expanded:!1,spacing:3,justify:"flex-start",className:"block-editor-patterns__grid-pagination",children:[(0,Hi.jsxs)(qs.__experimentalHStack,{expanded:!1,spacing:1,className:"block-editor-patterns__grid-pagination-previous",children:[(0,Hi.jsx)(qs.Button,{variant:"tertiary",onClick:()=>o(1),disabled:e===1,"aria-label":(0,Ol.__)("First page"),size:"compact",accessibleWhenDisabled:!0,className:"block-editor-patterns__grid-pagination-button",children:(0,Hi.jsx)("span",{children:"\xAB"})}),(0,Hi.jsx)(qs.Button,{variant:"tertiary",onClick:()=>o(e-1),disabled:e===1,"aria-label":(0,Ol.__)("Previous page"),size:"compact",accessibleWhenDisabled:!0,className:"block-editor-patterns__grid-pagination-button",children:(0,Hi.jsx)("span",{children:"\u2039"})})]}),(0,Hi.jsx)(qs.__experimentalText,{variant:"muted",children:(0,Ol.sprintf)((0,Ol._x)("%1$s of %2$s","paging"),e,t)}),(0,Hi.jsxs)(qs.__experimentalHStack,{expanded:!1,spacing:1,className:"block-editor-patterns__grid-pagination-next",children:[(0,Hi.jsx)(qs.Button,{variant:"tertiary",onClick:()=>o(e+1),disabled:e===t,"aria-label":(0,Ol.__)("Next page"),size:"compact",accessibleWhenDisabled:!0,className:"block-editor-patterns__grid-pagination-button",children:(0,Hi.jsx)("span",{children:"\u203A"})}),(0,Hi.jsx)(qs.Button,{variant:"tertiary",onClick:()=>o(t),disabled:e===t,"aria-label":(0,Ol.__)("Last page"),size:"compact",accessibleWhenDisabled:!0,className:"block-editor-patterns__grid-pagination-button",children:(0,Hi.jsx)("span",{children:"\xBB"})})]})]})]})}var jo=c(T(),1),get=({showTooltip:e,title:t,children:o})=>e?(0,jo.jsxs)(lo.Root,{children:[(0,jo.jsx)(lo.Trigger,{render:o}),(0,jo.jsx)(lo.Popup,{children:t})]}):(0,jo.jsx)(jo.Fragment,{children:o});function Cke({id:e,isDraggable:t,pattern:o,onClick:r,onHover:n,showTitlesAsTooltip:i,category:s,isSelected:a}){let[l,u]=(0,vd.useState)(!1),{blocks:d,viewportWidth:f}=o,m=`block-editor-block-patterns-list__item-description-${(0,xke.useInstanceId)(Cke)}`,g=o.type===nr.user,h=(0,vd.useMemo)(()=>!s||!t?d:(d??[]).map(b=>{let v=(0,kke.cloneBlock)(b);return v.attributes.metadata?.categories?.includes(s)&&(v.attributes.metadata.categories=[s]),v}),[d,t,s]);return(0,jo.jsx)(Hk,{isEnabled:t,blocks:h,pattern:o,children:({draggable:b,onDragStart:v,onDragEnd:y})=>(0,jo.jsx)("div",{className:"block-editor-block-patterns-list__list-item",draggable:b,onDragStart:_=>{u(!0),v&&(n?.(null),v(_))},onDragEnd:_=>{u(!1),y&&y(_)},children:(0,jo.jsx)(get,{showTooltip:i&&!g,title:o.title,children:(0,jo.jsxs)(YE.Composite.Item,{render:(0,jo.jsx)("div",{role:"option","aria-label":o.title,"aria-describedby":o.description?m:void 0,className:$("block-editor-block-patterns-list__item",{"block-editor-block-patterns-list__list-item-synced":o.type===nr.user&&!o.syncStatus,"is-selected":a})}),id:e,onClick:()=>{r(o,d),n?.(null)},onMouseEnter:()=>{l||n?.(o)},onMouseLeave:()=>n?.(null),children:[(0,jo.jsx)(Ks.Async,{placeholder:(0,jo.jsx)(het,{}),children:(0,jo.jsx)(Ks,{blocks:d,viewportWidth:f})}),(!i||g)&&(0,jo.jsxs)(YE.__experimentalHStack,{className:"block-editor-patterns__pattern-details",spacing:2,children:[g&&!o.syncStatus&&(0,jo.jsx)("div",{className:"block-editor-patterns__pattern-icon-wrapper",children:(0,jo.jsx)(xt,{className:"block-editor-patterns__pattern-icon",icon:ol})}),(0,jo.jsx)(cs,{render:(0,jo.jsx)("div",{}),className:"block-editor-block-patterns-list__item-title",variant:"body-sm",children:o.title})]}),!!o.description&&(0,jo.jsx)(bt,{id:m,children:o.description})]})})})})}function het(){return(0,jo.jsx)("div",{className:"block-editor-block-patterns-list__item is-placeholder"})}function bet({isDraggable:e,blockPatterns:t,onHover:o,onClickPattern:r,orientation:n,category:i,label:s=(0,Ske.__)("Patterns"),showTitlesAsTooltip:a,pagingProps:l},u){let[d,f]=(0,vd.useState)(void 0),[p,m]=(0,vd.useState)(null);(0,vd.useEffect)(()=>{let h=t[0]?.name;f(h)},[t]);let g=(h,b)=>{m(h.name),r(h,b)};return(0,jo.jsxs)(YE.Composite,{orientation:n,activeId:d,setActiveId:f,role:"listbox",className:"block-editor-block-patterns-list","aria-label":s,ref:u,children:[t.map(h=>(0,jo.jsx)(Cke,{id:h.name,pattern:h,onClick:g,onHover:o,isDraggable:e,showTitlesAsTooltip:a,category:i,isSelected:!!p&&p===h.name},h.name)),l&&(0,jo.jsx)($k,{...l})]})}var _d=(0,vd.forwardRef)(bet);var Ny=c(te(),1),Tke=c(ce(),1),MD=c(q(),1),Rke=c(Yo(),1),qK=c(F(),1);function Eke({destinationRootClientId:e,destinationIndex:t,rootClientId:o,registry:r}){if(o===e)return t;let n=["",...r.select(B).getBlockParents(e),e],i=n.indexOf(o);return i!==-1?r.select(B).getBlockIndex(n[i+1])+1:r.select(B).getBlockOrder(o).length}function yet({rootClientId:e="",insertionIndex:t,clientId:o,isAppender:r,onSelect:n,shouldFocusBlock:i=!0,selectBlockOnInsert:s=!0}){let a=(0,Ny.useRegistry)(),{getSelectedBlock:l,getClosestAllowedInsertionPoint:u,getBlockInsertionPoint:d}=G((0,Ny.useSelect)(B)),{destinationRootClientId:f,destinationIndex:p}=(0,Ny.useSelect)(w=>{let{getSelectedBlockClientId:k,getBlockRootClientId:x,getBlockIndex:S,getBlockOrder:C,getInsertionPoint:R}=G(w(B)),E=k(),I=e,O,A=R();return t!==void 0?O=t:A&&A.hasOwnProperty("index")?(I=A?.rootClientId?A.rootClientId:e,O=A.index):o?O=S(o):!r&&E?(I=x(E),O=S(E)+1):O=C(I).length,{destinationRootClientId:I,destinationIndex:O}},[e,t,o,r]),{replaceBlocks:m,insertBlocks:g,showInsertionPoint:h,hideInsertionPoint:b,setLastFocus:v}=G((0,Ny.useDispatch)(B)),y=(0,qK.useCallback)((w,k,x=!1,S)=>{(x||i||s)&&v(null);let C=l();!r&&C&&(0,Tke.isUnmodifiedDefaultBlock)(C,"content")?m(C.clientId,w,null,i||x?0:null,k):g(w,r||S===void 0?p:Eke({destinationRootClientId:f,destinationIndex:p,rootClientId:S,registry:a}),r||S===void 0?f:S,s,i||x?0:null,k);let R=Array.isArray(w)?w.length:1,E=(0,MD.sprintf)((0,MD._n)("%d block added.","%d blocks added.",R),R);(0,Rke.speak)(E),n&&n(w)},[r,l,m,g,f,p,n,i,s,v,a]),_=(0,qK.useCallback)(w=>{if(w){let k=u(w.name,f);k!==null&&h(k,Eke({destinationRootClientId:f,destinationIndex:p,rootClientId:k,registry:a}))}else d()?.__unstableWithInserter||b()},[u,d,h,b,f,p,a]);return[f,y,_]}var Lg=yet;var Yk=c(F(),1),ND=c(ce(),1),Kk=c(te(),1),LD=c(q(),1),Bke=c(Ls(),1);var vet=(e,t,o,r)=>{let n=(0,Yk.useMemo)(()=>({[Tm]:!!r}),[r]),i=(0,Kk.useSelect)(g=>{let{getSettings:h}=G(g(B));return h()[FB]??!1},[]),{patternCategories:s,patterns:a,userPatternCategories:l}=(0,Kk.useSelect)(g=>{let{getSettings:h,__experimentalGetAllowedPatterns:b}=G(g(B)),v=h(),y=v[mf];return{patterns:b(t,n),userPatternCategories:y?y(g):v.__experimentalUserPatternCategories,patternCategories:v.__experimentalBlockPatternCategories}},[t,n]),u=(0,Yk.useMemo)(()=>a.filter(g=>!(g.categories?.includes("navigation")&&!i)),[a,i]),{getClosestAllowedInsertionPointForPattern:d}=G((0,Kk.useSelect)(B)),f=(0,Yk.useMemo)(()=>{let g=[...s];return l?.forEach(h=>{g.find(b=>b.name===h.name)||g.push(h)}),g},[s,l]),{createSuccessNotice:p}=(0,Kk.useDispatch)(Bke.store),m=(0,Yk.useCallback)((g,h)=>{let b=r?t:d(g,t);if(b===null)return;let v=g.type===nr.user&&g.syncStatus!=="unsynced"?[(0,ND.createBlock)("core/block",{ref:g.id})]:h;e((v??[]).map(y=>{let _=(0,ND.cloneBlock)(y);return _.attributes.metadata?.categories?.includes(o)&&(_.attributes.metadata.categories=[o]),_}),g.name,!1,b),p((0,LD.sprintf)((0,LD.__)('Pattern "%s" inserted.'),g.title),{type:"snackbar",id:"inserter-notice"})},[p,e,o,t,d,r]);return[u,f,m]},Dg=vet;var qk=c(F(),1),ZK=c(ue(),1),XK=c(Lt(),1),DD=20;function VD(e,t,o,r=""){let[n,i]=(0,qk.useState)(1),s=(0,ZK.usePrevious)(t),a=(0,ZK.usePrevious)(r);(s!==t||a!==r)&&n!==1&&i(1);let l=e.length,u=n-1,d=(0,qk.useMemo)(()=>e.slice(u*DD,u*DD+DD),[u,e]),f=Math.ceil(e.length/DD),p=m=>{(0,XK.getScrollContainer)(o?.current)?.scrollTo(0,0),i(m)};return(0,qk.useEffect)(function(){(0,XK.getScrollContainer)(o?.current)?.scrollTo(0,0)},[t,o]),{totalItems:l,categoryPatterns:d,numPages:f,changePage:p,currentPage:n}}var wd=c(T(),1);function _et({searchValue:e,selectedCategory:t,patternCategories:o,rootClientId:r,onModalClose:n}){let i=(0,tp.useRef)(),s=(0,Ike.useDebounce)(Pke.speak,500),[a,l]=Lg({rootClientId:r,shouldFocusBlock:!0}),[u,,d]=Dg(l,a,t),f=(0,tp.useMemo)(()=>o.map(v=>v.name),[o]),p=(0,tp.useMemo)(()=>{let v=u.filter(y=>{if(t===Eb.name||t===kf.name&&y.type===nr.user||t===T_.name&&y.blockTypes?.includes("core/post-content"))return!0;if(t==="uncategorized"){let _=y.categories?.some(w=>f.includes(w))??!1;return!y.categories?.length||!_}return y.categories?.includes(t)});return e?LC(v,e):v},[e,u,t,f]);(0,tp.useEffect)(()=>{if(!e)return;let v=p.length,y=(0,Zk.sprintf)((0,Zk._n)("%d result found.","%d results found.",v),v);s(y)},[e,s,p.length]);let m=VD(p,t,i),[g,h]=(0,tp.useState)(e);e!==g&&(h(e),m.changePage(1));let b=!!p?.length;return(0,wd.jsx)("div",{className:"block-editor-block-patterns-explorer__list",ref:i,children:b?(0,wd.jsxs)(wd.Fragment,{children:[(0,wd.jsx)(_d,{blockPatterns:m.categoryPatterns,onClickPattern:(v,y)=>{d(v,y),n()},isDraggable:!1}),(0,wd.jsx)($k,{...m})]}):(0,wd.jsx)(cs,{render:(0,wd.jsx)("p",{}),className:"block-editor-block-patterns-explorer__no-results",children:(0,Zk.__)("No results found.")})})}var Oke=_et;var QK=c(F(),1),Xk=c(q(),1),Ake=c(Yo(),1);function wet(e,t){return!e.categories||!e.categories.length?!1:e.categories.some(o=>t.some(r=>r.name===o))}function Qk(e,t="all"){let[o,r]=Dg(void 0,e),n=(0,QK.useMemo)(()=>t==="all"?o:o.filter(s=>!r2(s,t)),[t,o]);return(0,QK.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=>!wet(a,r))&&!s.find(a=>a.name==="uncategorized")&&s.push({name:"uncategorized",label:(0,Xk._x)("Uncategorized")}),n.some(a=>a.blockTypes?.includes("core/post-content"))&&s.unshift(T_),n.some(a=>a.type===nr.user)&&s.unshift(kf),n.length>0&&s.unshift({name:Eb.name,label:Eb.label}),(0,Ake.speak)((0,Xk.sprintf)((0,Xk._n)("%d category button displayed.","%d category buttons displayed.",s.length),s.length)),s},[r,n])}var Vg=c(T(),1);function ket({initialCategory:e,rootClientId:t,onModalClose:o}){let[r,n]=(0,JK.useState)(""),[i,s]=(0,JK.useState)(e?.name),a=Qk(t);return(0,Vg.jsxs)(Cg.Root,{className:"block-editor-block-patterns-explorer",orientation:"vertical",value:i,onValueChange:s,children:[(0,Vg.jsx)(wke,{patternCategories:a,searchValue:r,setSearchValue:n}),a.map(({name:l})=>(0,Vg.jsx)(Cg.Panel,{value:l,tabIndex:-1,className:"block-editor-block-patterns-explorer__panel",children:(0,Vg.jsx)(Oke,{searchValue:r,selectedCategory:l,patternCategories:a,rootClientId:t,onModalClose:o})},l))]})}function xet({onModalClose:e,...t}){return(0,Vg.jsx)(Mke.Modal,{title:(0,Nke.__)("Patterns"),onRequestClose:e,isFullScreen:!0,children:(0,Vg.jsx)(ket,{onModalClose:e,...t})})}var Lke=xet;var Jk=c(q(),1),ir=c(Y(),1);var Yn=c(T(),1);function Cet({title:e}){return(0,Yn.jsx)(ir.__experimentalVStack,{spacing:0,children:(0,Yn.jsx)(ir.__experimentalView,{children:(0,Yn.jsx)(ir.__experimentalSpacer,{marginBottom:0,paddingX:4,paddingY:3,children:(0,Yn.jsxs)(ir.__experimentalHStack,{spacing:2,children:[(0,Yn.jsx)(ir.Navigator.BackButton,{style:{minWidth:24,padding:0},icon:(0,Jk.isRTL)()?hr:ai,size:"small",label:(0,Jk.__)("Back")}),(0,Yn.jsx)(ir.__experimentalSpacer,{children:(0,Yn.jsx)(ir.__experimentalHeading,{level:5,children:e})})]})})})})}function FD({categories:e,children:t,screenClassName:o}){return(0,Yn.jsxs)(ir.Navigator,{initialPath:"/",className:"block-editor-inserter__mobile-tab-navigation",children:[(0,Yn.jsx)(ir.Navigator.Screen,{path:"/",children:(0,Yn.jsx)(ir.__experimentalItemGroup,{children:e.map(r=>(0,Yn.jsx)(ir.Navigator.Button,{path:`/category/${r.name}`,as:ir.__experimentalItem,isAction:!0,children:(0,Yn.jsxs)(ir.__experimentalHStack,{children:[(0,Yn.jsx)(ir.FlexBlock,{children:r.label}),(0,Yn.jsx)(xt,{icon:(0,Jk.isRTL)()?ai:hr})]})},r.name))})}),e.map(r=>(0,Yn.jsxs)(ir.Navigator.Screen,{className:o,path:`/category/${r.name}`,children:[(0,Yn.jsx)(Cet,{title:(0,Jk.__)("Back")}),t(r)]},r.name))]})}var Al=c(F(),1),eq=c(q(),1),Xc=c(Y(),1);var Xs=c(Y(),1),Zs=c(q(),1);var zD=c(F(),1);var yi=c(T(),1),Dke=e=>e!=="all"&&e!=="user",Eet=e=>e.name===kf.name,Tet=[{value:"all",label:(0,Zs._x)("All","patterns")},{value:nr.directory,label:(0,Zs.__)("Pattern Directory")},{value:nr.theme,label:(0,Zs.__)("Theme & Plugins")},{value:nr.user,label:(0,Zs.__)("User")}];function Vke({setPatternSyncFilter:e,setPatternSourceFilter:t,patternSyncFilter:o,patternSourceFilter:r,scrollContainerRef:n,category:i}){let s=i.name===kf.name?nr.user:r,a=Dke(s),l=Eet(i),u=(0,zD.useMemo)(()=>[{value:"all",label:(0,Zs._x)("All","patterns")},{value:SC.full,label:(0,Zs._x)("Synced","patterns"),disabled:a},{value:SC.unsynced,label:(0,Zs._x)("Not synced","patterns"),disabled:a}],[a]);function d(f){t(f),Dke(f)&&e("all")}return(0,yi.jsx)(yi.Fragment,{children:(0,yi.jsx)(Xs.DropdownMenu,{popoverProps:{placement:"right-end"},label:(0,Zs.__)("Filter patterns"),toggleProps:{size:"compact"},icon:(0,yi.jsx)(xt,{icon:(0,yi.jsx)(Xs.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,yi.jsx)(Xs.Path,{d:"M10 17.5H14V16H10V17.5ZM6 6V7.5H18V6H6ZM8 12.5H16V11H8V12.5Z",fill:"currentColor"})})}),children:()=>(0,yi.jsxs)(yi.Fragment,{children:[!l&&(0,yi.jsx)(Xs.MenuGroup,{label:(0,Zs.__)("Source"),children:(0,yi.jsx)(Xs.MenuItemsChoice,{choices:Tet,onSelect:f=>{d(f),n.current?.scrollTo(0,0)},value:s})}),(0,yi.jsx)(Xs.MenuGroup,{label:(0,Zs.__)("Type"),children:(0,yi.jsx)(Xs.MenuItemsChoice,{choices:u,onSelect:f=>{e(f),n.current?.scrollTo(0,0)},value:o})}),(0,yi.jsx)("div",{className:"block-editor-inserter__patterns-filter-help",children:(0,zD.createInterpolateElement)((0,Zs.__)("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,yi.jsx)(Xs.ExternalLink,{href:(0,Zs.__)("https://wordpress.org/patterns/")})})})]})})})}var ms=c(T(),1),Ret=()=>{};function jD({rootClientId:e,onInsert:t,onHover:o=Ret,category:r,showTitlesAsTooltip:n}){let[i,,s]=Dg(t,e,r?.name),[a,l]=(0,Al.useState)("all"),[u,d]=(0,Al.useState)("all"),f=Qk(e,u),p=(0,Al.useRef)(),m=(0,Al.useMemo)(()=>i.filter(y=>r2(y,u,a)?!1:r.name===Eb.name||r.name===kf.name&&y.type===nr.user||r.name===T_.name&&y.blockTypes?.includes("core/post-content")?!0:r.name==="uncategorized"?y.categories?!y.categories.some(_=>f.some(w=>w.name===_)):!0:y.categories?.includes(r.name)),[i,f,r.name,u,a]),g=VD(m,r,p),{changePage:h}=g;(0,Al.useEffect)(()=>()=>o(null),[]);let b=(0,Al.useCallback)(y=>{l(y),h(1)},[l,h]),v=(0,Al.useCallback)(y=>{d(y),h(1)},[d,h]);return(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsxs)(Xc.__experimentalVStack,{spacing:2,className:"block-editor-inserter__patterns-category-panel-header",children:[(0,ms.jsxs)(Xc.__experimentalHStack,{children:[(0,ms.jsx)(Xc.FlexBlock,{children:(0,ms.jsx)(Xc.__experimentalHeading,{className:"block-editor-inserter__patterns-category-panel-title",size:13,level:4,as:"div",children:r.label})}),(0,ms.jsx)(Vke,{patternSyncFilter:a,patternSourceFilter:u,setPatternSyncFilter:b,setPatternSourceFilter:v,scrollContainerRef:p,category:r})]}),!m.length&&(0,ms.jsx)(Xc.__experimentalText,{variant:"muted",className:"block-editor-inserter__patterns-category-no-results",children:(0,eq.__)("No results found")})]}),m.length>0&&(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)(Xc.__experimentalText,{size:"12",as:"p",className:"block-editor-inserter__help-text",children:(0,eq.__)("Drag and drop patterns into the canvas.")}),(0,ms.jsx)(_d,{ref:p,blockPatterns:g.categoryPatterns,onClickPattern:s,onHover:o,label:r.label,orientation:"vertical",category:r.name,isDraggable:!0,showTitlesAsTooltip:n,patternFilter:u,pagingProps:g})]})]})}var UD=c(ue(),1),WD=c(Y(),1),Fke=c(F(),1);var Ly=c(T(),1),{Tabs:HD}=G(WD.privateApis);function Bet({categories:e,selectedCategory:t,onSelectCategory:o,children:r}){let s={type:"tween",duration:(0,UD.useReducedMotion)()?0:.25,ease:[.6,0,.4,1]},a=(0,UD.usePrevious)(t),l=t?t.name:null,[u,d]=(0,Fke.useState)(),f=e?.[0]?.name;return l===null&&!u&&f&&d(f),(0,Ly.jsxs)(HD,{selectOnMove:!1,selectedTabId:l,orientation:"vertical",onSelect:p=>{o(e.find(m=>m.name===p))},activeTabId:u,onActiveTabIdChange:d,children:[(0,Ly.jsx)(HD.TabList,{className:"block-editor-inserter__category-tablist",children:e.map(p=>(0,Ly.jsx)(HD.Tab,{tabId:p.name,"aria-current":p===t?"true":void 0,children:p.label},p.name))}),e.map(p=>(0,Ly.jsx)(HD.TabPanel,{tabId:p.name,focusable:!1,children:(0,Ly.jsx)(WD.__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})},p.name))]})}var GD=Bet;var Pa=c(T(),1);function Iet({onSelectCategory:e,selectedCategory:t,onInsert:o,rootClientId:r,children:n}){let[i,s]=(0,zke.useState)(!1),a=Qk(r),l=(0,jke.useViewportMatch)("medium","<");return a.length?(0,Pa.jsxs)(Pa.Fragment,{children:[!l&&(0,Pa.jsxs)("div",{className:"block-editor-inserter__block-patterns-tabs-container",children:[(0,Pa.jsx)(GD,{categories:a,selectedCategory:t,onSelectCategory:e,children:n}),(0,Pa.jsx)(Hke.Button,{__next40pxDefaultSize:!0,className:"block-editor-inserter__patterns-explore-button",onClick:()=>s(!0),variant:"secondary",children:(0,Uke.__)("Explore all patterns")})]}),l&&(0,Pa.jsx)(FD,{categories:a,children:u=>(0,Pa.jsx)("div",{className:"block-editor-inserter__category-panel",children:(0,Pa.jsx)(jD,{onInsert:o,rootClientId:r,category:u},u.name)})}),i&&(0,Pa.jsx)(Lke,{initialCategory:t||a[0],patternCategories:a,onModalClose:()=>s(!1),rootClientId:r})]}):(0,Pa.jsx)(Zc,{})}var Wke=Iet;var uxe=c(q(),1),dxe=c(ue(),1),fxe=c(Y(),1),ex=c(F(),1);var Sd=c(Y(),1),Sr=c(q(),1),Wi=c(F(),1),qE=c(ue(),1),axe=c(te(),1),lxe=c(Lt(),1),cxe=c(Ls(),1);var Qke=c(Y(),1),Jke=c(q(),1);var xr=c(Y(),1),Ui=c(q(),1),kd=c(F(),1),oq=c(ce(),1);var KE=c(te(),1),Kke=c(Ls(),1),qke=c(tq(),1),Zke=c(ga(),1);var $ke=c(ce(),1),Yke=c(T(),1),Pet={image:"img",video:"video",audio:"audio"};function $D(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=Pet[t],s=(0,Yke.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,$ke.createBlock)(`core/${t}`,o),s]}var co=c(T(),1),Oet=["image"],Aet={placement:"bottom-end",className:"block-editor-inserter__media-list__item-preview-options__popover"};function Met({category:e,media:t,onDetach:o}){if(!e.getReportUrl&&!o)return null;let r=e.getReportUrl?.(t);return(0,co.jsx)(xr.DropdownMenu,{className:"block-editor-inserter__media-list__item-preview-options",label:(0,Ui.__)("Options"),popoverProps:Aet,icon:ha,children:()=>(0,co.jsxs)(xr.MenuGroup,{children:[r&&(0,co.jsx)(xr.MenuItem,{onClick:()=>window.open(r,"_blank").focus(),icon:Jz,children:(0,Ui.sprintf)((0,Ui.__)("Report %s"),e.mediaType)}),o&&(0,co.jsx)(xr.MenuItem,{onClick:()=>o(t),icon:As,children:e.postTypeLabel?(0,Ui.sprintf)((0,Ui.__)("Detach from %s"),e.postTypeLabel):(0,Ui.__)("Detach from post")})]})})}function Net({onClose:e,onSubmit:t}){return(0,co.jsxs)(xr.Modal,{title:(0,Ui.__)("Insert external image"),onRequestClose:e,className:"block-editor-inserter-media-tab-media-preview-inserter-external-image-modal",children:[(0,co.jsxs)(xr.__experimentalVStack,{spacing:3,children:[(0,co.jsx)("p",{children:(0,Ui.__)("This image cannot be uploaded to your Media Library, but it can still be inserted as an external image.")}),(0,co.jsx)("p",{children:(0,Ui.__)("External images can be removed by the external provider without warning and could even have legal compliance issues related to privacy legislation.")})]}),(0,co.jsxs)(xr.Flex,{className:"block-editor-block-lock-modal__actions",justify:"flex-end",expanded:!1,children:[(0,co.jsx)(xr.FlexItem,{children:(0,co.jsx)(xr.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:e,children:(0,Ui.__)("Cancel")})}),(0,co.jsx)(xr.FlexItem,{children:(0,co.jsx)(xr.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:t,children:(0,Ui.__)("Insert")})})]})]})}function Xke({media:e,onClick:t,onDetach:o,category:r}){let[n,i]=(0,kd.useState)(!1),[s,a]=(0,kd.useState)(!1),[l,u]=(0,kd.useState)(!1),[d,f]=(0,kd.useMemo)(()=>$D(e,r.mediaType),[e,r.mediaType]),{createErrorNotice:p,createSuccessNotice:m}=(0,KE.useDispatch)(Kke.store),{getSettings:g,getBlock:h}=(0,KE.useSelect)(B),{updateBlockAttributes:b}=(0,KE.useDispatch)(B),v=(0,kd.useCallback)(k=>{if(l)return;let x=g(),S=(0,oq.cloneBlock)(k),{id:C,url:R,caption:E}=S.attributes;if(!C&&!x.mediaUpload){i(!0);return}if(C){t(S);return}u(!0),window.fetch(R).then(I=>I.blob()).then(I=>{let O=(0,Zke.getFilename)(R)||"image.jpg",A=new File([I],O,{type:I.type});x.mediaUpload({filesList:[A],additionalData:{caption:E},onFileChange([P]){(0,qke.isBlobURL)(P.url)||(h(S.clientId)?b(S.clientId,{...S.attributes,id:P.id,url:P.url}):(t({...S,attributes:{...S.attributes,id:P.id,url:P.url}}),m((0,Ui.__)("Image uploaded and inserted."),{type:"snackbar",id:"inserter-notice"})),u(!1))},allowedTypes:Oet,onError(P){p(P,{type:"snackbar",id:"inserter-notice"}),u(!1)}})}).catch(()=>{i(!0),u(!1)})},[l,g,t,m,b,p,h]),y=typeof e.title=="string"?e.title:e.title?.rendered||(0,Ui.__)("no title"),_=(0,kd.useCallback)(()=>a(!0),[]),w=(0,kd.useCallback)(()=>a(!1),[]);return(0,co.jsxs)(co.Fragment,{children:[(0,co.jsx)(Hk,{isEnabled:!0,blocks:[d],children:({draggable:k,onDragStart:x,onDragEnd:S})=>(0,co.jsx)("div",{className:$("block-editor-inserter__media-list__list-item",{"is-hovered":s}),draggable:k,onDragStart:x,onDragEnd:S,children:(0,co.jsxs)("div",{onMouseEnter:_,onMouseLeave:w,children:[(0,co.jsxs)(lo.Root,{children:[(0,co.jsx)(lo.Trigger,{render:(0,co.jsx)(xr.Composite.Item,{render:(0,co.jsx)("div",{"aria-label":y,role:"option",className:"block-editor-inserter__media-list__item"}),onClick:()=>v(d),children:(0,co.jsxs)("div",{className:"block-editor-inserter__media-list__item-preview",children:[f,l&&(0,co.jsx)("div",{className:"block-editor-inserter__media-list__item-preview-spinner",children:(0,co.jsx)(xr.Spinner,{})})]})})}),(0,co.jsx)(lo.Popup,{children:y})]}),!l&&(0,co.jsx)(Met,{category:r,media:e,onDetach:o})]})})}),n&&(0,co.jsx)(Net,{onClose:()=>i(!1),onSubmit:()=>{t((0,oq.cloneBlock)(d)),m((0,Ui.__)("Image inserted."),{type:"snackbar",id:"inserter-notice"}),i(!1)}})]})}var rq=c(T(),1);function Let({mediaList:e,category:t,onClick:o,onDetach:r,label:n=(0,Jke.__)("Media List")}){return(0,rq.jsx)(Qke.Composite,{role:"listbox",className:"block-editor-inserter__media-list","aria-label":n,children:e.map((i,s)=>(0,rq.jsx)(Xke,{media:i,category:t,onClick:o,onDetach:r},i.id||i.sourceId||s))})}var exe=Let;var txe=c(Y(),1),Det=()=>null,xd=(0,txe.withFilters)("editor.MediaUpload")(Det);var oxe=c(te(),1);function Vet({fallback:e=null,children:t}){return(0,oxe.useSelect)(r=>{let{getSettings:n}=r(B);return!!n().mediaUpload},[])?t:e}var Oa=Vet;var gs=c(F(),1),nq=c(te(),1);function rxe(e){return Array.isArray(e)?{mediaItems:e}:{mediaItems:e?.mediaItems??[],totalItems:e?.totalItems,totalPages:e?.totalPages}}function nxe(e,t={},o){let[r,n]=(0,gs.useState)(),[i,s]=(0,gs.useState)({}),[a,l]=(0,gs.useState)(!1),u=(0,gs.useRef)(),d=(0,gs.useRef)(),f=(0,gs.useRef)(),p=(0,gs.useRef)();return(0,gs.useEffect)(()=>{(async()=>{let m=JSON.stringify({category:e.name,...t}),g={};u.current=g,l(!0),(d.current!==m||f.current!==e.fetch)&&n([]),(p.current!==e.name||f.current!==e.fetch)&&s({}),d.current=m,f.current=e.fetch,p.current=e.name;let{page:h,...b}=t,v=h>1?t:b,{mediaItems:y,totalItems:_,totalPages:w}=rxe(await e.fetch?.(v));g===u.current&&(n(y),s({totalItems:_,totalPages:w}),l(!1))})()},[e.name,e.fetch,...Object.values(t),o]),{mediaList:r,isLoading:a,totalItems:i.totalItems,totalPages:i.totalPages}}function ixe(e,t=400){let[o,r]=(0,gs.useState)(!1);return(0,gs.useEffect)(()=>{if(!e)return;let n=setTimeout(()=>r(!0),t);return()=>{clearTimeout(n),r(!1)}},[e,t]),o}function sxe(e){let[t,o]=(0,gs.useState)([]),r=(0,nq.useSelect)(a=>G(a(B)).getInserterMediaCategories(),[]),{canInsertImage:n,canInsertVideo:i,canInsertAudio:s}=(0,nq.useSelect)(a=>{let{canInsertBlockType:l}=a(B);return{canInsertImage:l("core/image",e),canInsertVideo:l("core/video",e),canInsertAudio:l("core/audio",e)}},[e]);return(0,gs.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{let{mediaItems:p}=rxe(await d.fetch({per_page:1}));f=p}catch{}return[d.name,!!f.length]}))),u={image:n,video:i,audio:s};r.forEach(d=>{u[d.mediaType]&&(l.get(d.name)||d.emptyMessage)&&a.push(d)}),a.length&&o(a)})()},[n,i,s,r]),t}var vn=c(T(),1),Fet=20,zet=["image"];function jet({onSelect:e}){return(0,vn.jsx)(Oa,{children:(0,vn.jsx)(xd,{multiple:"add",onSelect:e,allowedTypes:zet,title:(0,Sr.__)("Attach images"),render:({open:t})=>(0,vn.jsx)(Sd.Button,{__next40pxDefaultSize:!0,className:"block-editor-inserter__media-panel-attach","data-unstable-ignore-focus-outside-for-relatedtarget":".media-modal",onClick:o=>{o.target.focus(),t()},variant:"secondary",children:(0,Sr.__)("Attach images")})})})}function ZE({rootClientId:e,onInsert:t,category:o}){let[r,n,i]=(0,qE.useDebouncedInput)(),[s,a]=(0,Wi.useState)(1),l=(0,qE.usePrevious)(o.name),u=(0,qE.usePrevious)(i);(l!==o.name||u!==i)&&s!==1&&a(1);let d=(0,Wi.useMemo)(()=>({per_page:Fet,page:s,search:i}),[s,i]),[f,p]=(0,Wi.useState)(0),{mediaList:m,isLoading:g,totalItems:h,totalPages:b}=nxe(o,d,f),v=b||1;typeof b=="number"&&s>v&&a(v);let y=!o.isExternalResource,_=y?o.attach:void 0,w=y?o.detach:void 0,k=y?o.subscribe:void 0,x=v>1,S=x||!!_,C=(0,Wi.useRef)(),R=(0,Wi.useCallback)(z=>{(0,lxe.getScrollContainer)(C.current)?.scrollTo(0,0),a(z)},[]),{createErrorNotice:E,createSuccessNotice:I,createWarningNotice:O}=(0,axe.useDispatch)(cxe.store),A=ixe(g),P=(0,Wi.useCallback)(()=>{y&&o.invalidate?.(d),p(z=>z+1)},[o,d,y]);(0,Wi.useEffect)(()=>{if(k)return k(()=>p(z=>z+1),d)},[k,d]);let L=(0,Wi.useCallback)(async z=>{try{let W=await _(z);if(!W){O((0,Sr.__)("No images were attached."),{type:"snackbar",id:"inserter-notice"});return}P(),I(o.postTypeLabel?(0,Sr.sprintf)((0,Sr._n)("%1$d image attached to %2$s.","%1$d images attached to %2$s.",W),W,o.postTypeLabel):(0,Sr.sprintf)((0,Sr._n)("%d image attached to post.","%d images attached to post.",W),W),{type:"snackbar",id:"inserter-notice"})}catch{E((0,Sr.__)("Could not attach images."),{type:"snackbar",id:"inserter-notice"})}},[_,o,P,E,I,O]),H=(0,Wi.useCallback)(async z=>{try{await w(z),P(),I(o.postTypeLabel?(0,Sr.sprintf)((0,Sr.__)("Image detached from %s."),o.postTypeLabel):(0,Sr.__)("Image detached from post."),{type:"snackbar",id:"inserter-notice"})}catch{E((0,Sr.__)("Could not detach image."),{type:"snackbar",id:"inserter-notice"})}},[w,o,P,E,I]),[N,M]=(0,Wi.useState)(),V=(0,Wi.useCallback)(()=>{let z=N;M(void 0),H(z)},[H,N]),j="block-editor-inserter__media-panel",D=o.labels.search_items||(0,Sr.__)("Search");return(0,vn.jsxs)("div",{ref:C,className:$(j,{"has-footer":S}),children:[(0,vn.jsx)(Sd.SearchControl,{className:`${j}-search`,onChange:n,value:r,label:D,placeholder:D}),g&&!m?.length&&(0,vn.jsx)("div",{className:`${j}-spinner`,children:(0,vn.jsx)(Sd.Spinner,{})}),!g&&!m?.length&&(0,vn.jsx)(Zc,{children:o.emptyMessage&&!i?o.emptyMessage:(0,Sr.__)("No results found.")}),!!m?.length&&(0,vn.jsx)("div",{className:$(`${j}-results`,{"is-loading":A}),"aria-busy":A,children:(0,vn.jsx)(exe,{rootClientId:e,onClick:t,onDetach:w?M:void 0,mediaList:m,category:o})}),S&&(0,vn.jsxs)(Ke,{direction:"column",gap:"sm",className:`${j}-footer`,children:[x&&(0,vn.jsx)($k,{currentPage:s,numPages:v,changePage:R,totalItems:h}),_&&(0,vn.jsx)(jet,{onSelect:L})]}),N&&(0,vn.jsxs)(Sd.Modal,{title:(0,Sr.__)("Detach image"),onRequestClose:()=>M(void 0),overlayClassName:`${j}-detach-modal`,children:[(0,vn.jsx)("p",{children:o.postTypeLabel?(0,Sr.sprintf)((0,Sr.__)("Detach this image from the current %s? The image will remain in the Media Library."),o.postTypeLabel):(0,Sr.__)("Detach this image from the current post? The image will remain in the Media Library.")}),(0,vn.jsxs)("div",{className:`${j}-detach-actions`,children:[(0,vn.jsx)(Sd.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>M(void 0),children:(0,Sr.__)("Cancel")}),(0,vn.jsx)(Sd.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:V,children:(0,Sr.__)("Detach")})]})]})]})}var Aa=c(T(),1),Het=["image","video","audio"];function Uet({rootClientId:e,selectedCategory:t,onSelectCategory:o,onInsert:r,children:n}){let i=sxe(e),s=(0,dxe.useViewportMatch)("medium","<"),a="block-editor-inserter__media-tabs",l=(0,ex.useCallback)(d=>{if(!d?.url)return;let f=window.__experimentalDataViewsMediaModal&&d.mime_type?d.mime_type.split("/")[0]:d.type,[p]=$D(d,f);r(p)},[r]),u=(0,ex.useMemo)(()=>i.map(d=>({...d,label:d.labels.name})),[i]);return(0,ex.useEffect)(()=>{if(!t)return;let d=u.find(f=>f.name===t.name);d&&d!==t?o(d):d||o(null)},[u,o,t]),u.length?(0,Aa.jsxs)(Aa.Fragment,{children:[!s&&(0,Aa.jsxs)("div",{className:`${a}-container`,children:[(0,Aa.jsx)(GD,{categories:u,selectedCategory:t,onSelectCategory:o,children:n}),(0,Aa.jsx)(Oa,{children:(0,Aa.jsx)(xd,{multiple:!1,onSelect:l,allowedTypes:Het,render:({open:d})=>(0,Aa.jsx)(fxe.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,uxe.__)("Open Media Library")})})})]}),s&&(0,Aa.jsx)(FD,{categories:u,screenClassName:"block-editor-inserter__media-mobile-screen",children:d=>(0,Aa.jsx)(ZE,{onInsert:r,rootClientId:e,category:d})})]}):(0,Aa.jsx)(Zc,{})}var iq=Uet;var XE=c(F(),1),Fg=c(q(),1);var KD=c(ue(),1),gxe=c(Yo(),1),hxe=c(te(),1);var pxe=c(Y(),1),{Fill:mxe,Slot:Wet}=(0,pxe.createSlotFill)("__unstableInserterMenuExtension");mxe.Slot=Wet;var YD=mxe;var Qs=c(T(),1),Get=9,$et=[];function Yet({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:p=!0,prioritizePatterns:m,selectBlockOnInsert:g,isQuick:h}){let b=(0,KD.useDebounce)(gxe.speak,500),{prioritizedBlocks:v}=(0,hxe.useSelect)(N=>({prioritizedBlocks:N(B).getBlockListSettings(n)?.prioritizedInserterBlocks||$et}),[n]),[y,_]=Lg({onSelect:t,rootClientId:n,clientId:i,isAppender:s,insertionIndex:a,shouldFocusBlock:p,selectBlockOnInsert:g}),[w,k,x,S]=Am(y,_,h),[C,,R]=Dg(_,y,void 0,h),E=(0,XE.useMemo)(()=>{if(l===0)return[];let N=LC(C,e);return l!==void 0?N.slice(0,l):N},[e,C,l]),I=u;m&&E.length>2&&(I=0);let O=(0,XE.useMemo)(()=>{if(I===0)return[];let N=w.filter(j=>j.name!=="core/block"),M=Hu(N,"frecency","desc");!e&&v.length&&(M=B2(M,v));let V=E2(M,k,x,e);return I!==void 0?V.slice(0,I):V},[e,w,k,x,I,v]);(0,XE.useEffect)(()=>{if(!e)return;let N=O.length+E.length,M=(0,Fg.sprintf)((0,Fg._n)("%d result found.","%d results found.",N),N);b(M)},[e,b,O,E]);let A=(0,KD.useAsyncList)(O,{step:Get}),P=O.length>0||E.length>0,L=!!O.length&&(0,Qs.jsx)(Ng,{title:(0,Qs.jsx)(bt,{children:(0,Fg.__)("Blocks")}),children:(0,Qs.jsx)(My,{items:A,onSelect:S,onHover:o,label:(0,Fg.__)("Blocks"),isDraggable:f})}),H=!!E.length&&(0,Qs.jsx)(Ng,{title:(0,Qs.jsx)(bt,{children:(0,Fg.__)("Patterns")}),children:(0,Qs.jsx)("div",{className:"block-editor-inserter__quick-inserter-patterns",children:(0,Qs.jsx)(_d,{blockPatterns:E,onClickPattern:R,onHover:r,isDraggable:f})})});return(0,Qs.jsxs)(ID,{children:[!d&&!P&&(0,Qs.jsx)(Zc,{}),m?H:L,!!O.length&&!!E.length&&(0,Qs.jsx)("div",{className:"block-editor-inserter__quick-inserter-separator"}),m?L:H,d&&(0,Qs.jsx)(YD.Slot,{fillProps:{onSelect:S,onHover:o,filterValue:e,hasItems:P,rootClientId:y},children:N=>N.length?N:P?null:(0,Qs.jsx)(Zc,{})})]})}var qD=Yet;var XD=c(Y(),1),bxe=c(F(),1);var op=c(T(),1),{Tabs:ZD}=G(XD.privateApis);function Ket({defaultTabId:e,onClose:t,onSelect:o,selectedTab:r,tabs:n,closeButtonLabel:i},s){return(0,op.jsx)("div",{className:"block-editor-tabbed-sidebar",children:(0,op.jsxs)(ZD,{selectOnMove:!1,defaultTabId:e,onSelect:o,selectedTabId:r,children:[(0,op.jsxs)("div",{className:"block-editor-tabbed-sidebar__tablist-and-close-button",children:[(0,op.jsx)(XD.Button,{className:"block-editor-tabbed-sidebar__close-button",icon:fb,label:i,onClick:()=>t(),size:"compact"}),(0,op.jsx)(ZD.TabList,{className:"block-editor-tabbed-sidebar__tablist",ref:s,children:n.map(a=>(0,op.jsx)(ZD.Tab,{tabId:a.name,className:"block-editor-tabbed-sidebar__tab",children:a.title},a.name))})]}),n.map(a=>(0,op.jsx)(ZD.TabPanel,{tabId:a.name,focusable:!1,className:"block-editor-tabbed-sidebar__tabpanel",ref:a.panelRef,children:a.panel},a.name))]})})}var QD=(0,bxe.forwardRef)(Ket);var JD=c(te(),1),tx=c(F(),1);function QE(e=!0){let{setZoomLevel:t,resetZoomLevel:o}=G((0,JD.useDispatch)(B)),{isZoomedOut:r,isZoomOut:n}=(0,JD.useSelect)(a=>{let{isZoomOut:l}=G(a(B));return{isZoomedOut:l(),isZoomOut:l}},[]),i=(0,tx.useRef)(!1),s=(0,tx.useRef)(e);(0,tx.useEffect)(()=>{r!==s.current&&(i.current=!1)},[r]),(0,tx.useEffect)(()=>(s.current=e,e!==n()&&(i.current=!0,e?t("auto-scaled"):o()),()=>{i.current&&n()&&o()}),[e,n,o,t])}var uo=c(T(),1),yxe=()=>{};function qet({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:p},m){let{isZoomOutMode:g,hasSectionRootClientId:h}=(0,t5.useSelect)(ve=>{let{isZoomOut:Se,getSectionRootClientId:fe}=G(ve(B));return{isZoomOutMode:Se(),hasSectionRootClientId:!!fe()}},[]),[b,v,y]=(0,JE.useDebouncedInput)(a),[_,w]=(0,go.useState)(null),[k,x]=(0,go.useState)(p),[S,C]=(0,go.useState)("all"),[R,E]=(0,go.useState)(null),I=(0,JE.useViewportMatch)("large"),A=(0,JE.useViewportMatch)("medium","<")?d:yxe;function P(){return f||(g?"patterns":"blocks")}let[L,H]=(0,go.useState)(P());QE(h&&(L==="patterns"||L==="media")&&I);let[M,V,j]=Lg({rootClientId:e,clientId:t,isAppender:o,insertionIndex:r,shouldFocusBlock:l}),{hideInsertionPoint:D}=(0,t5.useDispatch)(B),z=(0,go.useRef)(),W=(0,go.useCallback)((ve,Se,fe,Ce)=>{D(),V(ve,Se,fe,Ce),n(ve),A(),window.requestAnimationFrame(()=>{!l&&!z.current?.contains(m.current.ownerDocument.activeElement)&&z.current?.querySelector("button").focus()})},[D,V,A,n,m,l]),ee=(0,go.useCallback)((ve,Se,...fe)=>{D(),V(ve,{patternName:Se},...fe),n(),A()},[D,V,A,n]),J=(0,go.useCallback)(ve=>{j(ve),w(ve)},[j,w]),U=(0,go.useCallback)((ve,Se)=>{x(ve),C(Se),u?.()},[x,u]),Q=L==="patterns"&&!y&&!!k,Z=L==="media"&&!!R,[K,X]=(0,go.useState)(!1),oe=(0,go.useRef)(null),ie=(0,go.useRef)(null),se=(0,go.useRef)(null);(0,go.useEffect)(()=>{let ve=fe=>{X(fe.currentTarget.scrollTop>0)},Se=[oe.current,ie.current,se.current].filter(Boolean);return Se.forEach(fe=>fe.addEventListener("scroll",ve)),()=>{Se.forEach(fe=>fe.removeEventListener("scroll",ve))}},[]);let be=(0,go.useMemo)(()=>L==="media"?null:(0,uo.jsxs)(uo.Fragment,{children:[(0,uo.jsx)(e5.SearchControl,{className:$("block-editor-inserter__search",{"is-scrolled":K}),onChange:ve=>{_&&w(null),v(ve)},value:b,label:(0,zg.__)("Search"),placeholder:(0,zg.__)("Search")}),!!y&&(0,uo.jsx)(qD,{filterValue:y,onSelect:n,onHover:J,rootClientId:e,clientId:t,isAppender:o,__experimentalInsertionIndex:r,showBlockDirectory:!0,shouldFocusBlock:l,prioritizePatterns:L==="patterns"})]}),[L,_,w,v,b,y,n,J,l,t,e,r,o,K]),pe=(0,go.useMemo)(()=>(0,uo.jsxs)(uo.Fragment,{children:[(0,uo.jsx)("div",{className:"block-editor-inserter__block-list",children:(0,uo.jsx)(vke,{ref:z,rootClientId:M,onInsert:W,onHover:J,showMostUsedBlocks:s})}),i&&(0,uo.jsxs)("div",{className:"block-editor-inserter__tips",children:[(0,uo.jsx)(bt,{render:(0,uo.jsx)("h2",{}),children:(0,zg.__)("A tip for using the block editor")}),(0,uo.jsx)(vye,{})]})]}),[M,W,J,s,i]),ke=(0,go.useMemo)(()=>(0,uo.jsx)(Wke,{rootClientId:M,onInsert:ee,onSelectCategory:U,selectedCategory:k,children:Q&&(0,uo.jsx)(jD,{rootClientId:M,onInsert:ee,category:k,patternFilter:S,showTitlesAsTooltip:!0})}),[M,ee,U,S,k,Q]),ye=(0,go.useMemo)(()=>(0,uo.jsx)(iq,{rootClientId:M,selectedCategory:R,onSelectCategory:E,onInsert:W,children:Z&&(0,uo.jsx)(ZE,{rootClientId:M,onInsert:W,category:R})}),[M,W,R,E,Z]),Pe=ve=>{ve!=="patterns"&&x(null),H(ve)},_e=(0,go.useRef)();return(0,go.useLayoutEffect)(()=>{if(!_e.current)return;let ve=window.requestAnimationFrame(()=>{_e.current?.querySelector('[role="tab"][aria-selected="true"]')?.focus()});return()=>window.cancelAnimationFrame(ve)},[]),(0,uo.jsxs)("div",{className:$("block-editor-inserter__menu",{"show-panel":Q||Z,"is-zoom-out":g}),ref:m,children:[(0,uo.jsx)("div",{className:"block-editor-inserter__main-area",children:(0,uo.jsx)(QD,{ref:_e,onSelect:Pe,onClose:d,selectedTab:L,closeButtonLabel:(0,zg.__)("Close Block Inserter"),tabs:[{name:"blocks",title:(0,zg.__)("Blocks"),panelRef:oe,panel:(0,uo.jsxs)(uo.Fragment,{children:[be,L==="blocks"&&!y&&pe]})},{name:"patterns",title:(0,zg.__)("Patterns"),panelRef:ie,panel:(0,uo.jsxs)(uo.Fragment,{children:[be,L==="patterns"&&!y&&ke]})},{name:"media",title:(0,zg.__)("Media"),panelRef:se,panel:(0,uo.jsxs)(uo.Fragment,{children:[be,ye]})}]})}),i&&_&&(0,uo.jsx)(e5.Popover,{className:"block-editor-inserter__preview-container__popover",placement:"right-start",offset:16,focusOnMount:!1,animate:!1,children:(0,uo.jsx)(Jwe,{item:_})})]})}var sq=(0,go.forwardRef)(qet);function Zet(e,t){return(0,uo.jsx)(sq,{...e,onPatternCategorySelection:yxe,ref:t})}var vxe=(0,go.forwardRef)(Zet);var o5=c(F(),1),eT=c(q(),1),r5=c(Y(),1),_xe=c(te(),1);var jg=c(T(),1),Xet=6,Qet=6,Jet=2;function n5({onSelect:e,rootClientId:t,clientId:o,isAppender:r,selectBlockOnInsert:n,hasSearch:i=!0}){let[s,a]=(0,o5.useState)(""),[l,u]=Lg({onSelect:e,rootClientId:t,clientId:o,isAppender:r,selectBlockOnInsert:n}),[d]=Am(l,u,!0),{setInserterIsOpened:f,insertionIndex:p}=(0,_xe.useSelect)(h=>{let{getSettings:b,getBlockIndex:v,getBlockCount:y}=h(B),_=b(),w=v(o),k=y();return{setInserterIsOpened:_.__experimentalSetIsInserterOpened,insertionIndex:w===-1?k:w}},[o]),m=i&&d.length>Xet;(0,o5.useEffect)(()=>{f&&f(!1)},[f]);let g=()=>{f({filterValue:s,onSelect:e,rootClientId:t,insertionIndex:p})};return(0,jg.jsxs)("div",{className:$("block-editor-inserter__quick-inserter",{"has-search":m,"has-expand":f}),children:[m&&(0,jg.jsx)(r5.SearchControl,{className:"block-editor-inserter__search",value:s,onChange:h=>{a(h)},label:(0,eT.__)("Search"),placeholder:(0,eT.__)("Search")}),(0,jg.jsxs)("div",{className:"block-editor-inserter__quick-inserter-results",children:[(0,jg.jsx)(qD,{filterValue:s,onSelect:e,rootClientId:t,clientId:o,isAppender:r,maxBlockPatterns:s?Jet:0,maxBlockTypes:Qet,isDraggable:!1,selectBlockOnInsert:n,isQuick:!0}),f&&(0,jg.jsx)("div",{className:"block-editor-inserter__quick-inserter-expand",children:(0,jg.jsx)(r5.Button,{className:"block-editor-inserter__quick-inserter-expand-toggle",__next40pxDefaultSize:!0,variant:"secondary",onClick:g,"aria-label":(0,eT.__)("Browse all. This will open the main inserter panel in the editor toolbar."),children:(0,eT.__)("Browse all")})})]})]})}var ett=50;function wxe(e,t){if(!e||!e.attributes||!t?.__experimentalLabel)return null;let o=t.__experimentalLabel(e.attributes,{context:"appender"});return typeof o=="string"&&o.length<ett&&o.length>0?o:null}var ox=c(T(),1),ttt=({onToggle:e,disabled:t,isOpen:o,blockTitle:r,hasSingleBlockType:n,appenderLabel:i,toggleProps:s={}},a)=>{let{as:l=i5.Button,label:u,onClick:d,...f}=s,p=u;!p&&i?p=i:!p&&n?p=(0,rp.sprintf)((0,rp._x)("Add %s","directly add the only allowed block"),r.toLowerCase()):p||(p=(0,rp._x)("Add block","Generic label for block inserter button"));function m(g){e&&e(g),d&&d(g)}return(0,ox.jsx)(l,{ref:a,__next40pxDefaultSize:s.as?void 0:!0,icon:Ns,label:p,tooltipPosition:"bottom",onClick:m,className:"block-editor-inserter__toggle","aria-haspopup":n?!1:"true","aria-expanded":n?!1:o,isPressed:!n&&o,disabled:t,...f})},ott=(0,aq.forwardRef)(ttt),rtt=({clientId:e,rootClientId:t,disabled:o,isAppender:r,position:n,selectBlockOnInsert:i,shouldDirectInsert:s=!0,showInserterHelpPanel:a,__experimentalIsQuick:l,onSelectOrClose:u,onToggle:d,renderToggle:f,toggleProps:p},m)=>{let{hasItems:g,hasSingleBlockType:h,blockTitle:b,allowedBlockType:v,blockToInsert:y,appenderLabel:_,targetRootClientId:w}=(0,rx.useSelect)(N=>{let{getBlockRootClientId:M,hasInserterItems:V,getAllowedBlocks:j,getDirectInsertBlock:D,getBlockListSettings:z}=N(B),{getBlockVariations:W,getBlockType:ee}=N(Dy.store),J=t||M(e)||void 0,U=j(J),Q=s&&D(J),{defaultBlock:Z}=z(J)??{},K=U?.length===1&&W(U[0].name,"inserter")?.length===0,X=K?U[0]:null,oe=Q||null;!oe&&K&&Z?.name===X.name&&(oe=Z);let ie=Q?ee(Q.name):null;return{hasItems:V(J),hasSingleBlockType:K,blockTitle:X?X.title:"",allowedBlockType:X,blockToInsert:oe,appenderLabel:wxe(Q,ie),targetRootClientId:J}},[t,e,s]),{insertBlock:k}=(0,rx.useDispatch)(B),{getBlock:x,getBlockIndex:S,getBlockOrder:C,getBlockRootClientId:R,getBlockSelectionEnd:E,getPreviousBlockClientId:I}=(0,rx.useSelect)(B),{getActiveBlockVariation:O,getBlockType:A}=(0,rx.useSelect)(Dy.store);if(!g&&(r||w||e))return null;function P(){let N=y?.name??v.name;function M(){let ee;if(e){let J=x(e),U=x(I(e));J?.name===U?.name&&(ee=U?.attributes)}else if(w){let J=x(w)?.innerBlocks?.at(-1);J?.name===N&&(ee=J.attributes)}return I_(N,ee)}function V(){if(e)return S(e);let ee=E();return!r&&ee&&R(ee)===w?S(ee)+1:C(w).length}let j=M(),D=(0,Dy.createBlock)(N,{...y?.attributes,...j});k(D,V(),w,i),u?.(D);let z=A(N),W;if(z&&(W=(0,Dy.__experimentalGetBlockLabel)(z,D.attributes),W===z.title&&(W=O(N,D.attributes)?.title||W)),W){let ee=(0,rp.sprintf)((0,rp.__)("%s block added"),W);(0,kxe.speak)(ee)}}function L({onToggle:N,isOpen:M}){let V={onToggle:N,isOpen:M,disabled:o||!g,blockTitle:b,hasSingleBlockType:h,appenderLabel:_,toggleProps:p};return f?f(V):(0,ox.jsx)(ott,{ref:m,...V})}function H({onClose:N}){return l?(0,ox.jsx)(n5,{onSelect:M=>{let V=Array.isArray(M)&&M?.length?M[0]:M;u&&typeof u=="function"&&u(V),N()},rootClientId:w,clientId:e,isAppender:r,selectBlockOnInsert:i}):(0,ox.jsx)(vxe,{onSelect:()=>{N()},onClose:N,rootClientId:w,clientId:e,isAppender:r,showInserterHelpPanel:a})}return h||y?L({onToggle:P}):(0,ox.jsx)(i5.Dropdown,{className:"block-editor-inserter",contentClassName:$("block-editor-inserter__popover",{"is-quick":l}),popoverProps:{position:n,shift:!0},onToggle:d,expandOnMobile:!0,headerTitle:(0,rp.__)("Add a block"),renderToggle:L,renderContent:H,onClose:u})},ntt=(0,aq.forwardRef)(rtt),Js=ntt;var tT=c(T(),1),itt="\uFEFF";function nx({rootClientId:e}){let{showPrompt:t,isLocked:o,placeholder:r,isManualGrid:n}=(0,s5.useSelect)(u=>{let{getBlockCount:d,getSettings:f,getTemplateLock:p,getBlockAttributes:m}=u(B),g=!d(e),{bodyPlaceholder:h}=f();return{showPrompt:g,isLocked:!!p(e),placeholder:h,isManualGrid:m(e)?.layout?.isManualPlacement}},[e]),{insertDefaultBlock:i,startTyping:s}=(0,s5.useDispatch)(B);if(o||n)return null;let a=(0,xxe.decodeEntities)(r)||(0,lq.__)("Type / to choose a block"),l=()=>{i(void 0,e),s()};return(0,tT.jsxs)("div",{"data-root-client-id":e||"",className:$("block-editor-default-block-appender",{"has-visible-prompt":t}),children:[(0,tT.jsx)("p",{tabIndex:"0",role:"button","aria-label":(0,lq.__)("Add default block"),className:"block-editor-default-block-appender__content",onKeyDown:u=>{(a5.ENTER===u.keyCode||a5.SPACE===u.keyCode)&&l()},onClick:()=>l(),onFocus:()=>{t&&l()},children:t?a:itt}),(0,tT.jsx)(Js,{rootClientId:e,position:"bottom right",isAppender:!0,__experimentalIsQuick:!0})]})}var Sxe=c(Y(),1),cq=c(F(),1),oT=c(q(),1);var Cxe=c(Mt(),1);var l5=c(T(),1);function Exe({rootClientId:e,className:t,onFocus:o,tabIndex:r,onSelect:n},i){return(0,l5.jsx)(Js,{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 p=!d,m;return f?m=f:d?m=(0,oT.sprintf)((0,oT._x)("Add %s","directly add the only allowed block"),u.toLowerCase()):m=(0,oT._x)("Add block","Generic label for block inserter button"),(0,l5.jsx)(Sxe.Button,{__next40pxDefaultSize:!0,ref:i,onFocus:o,tabIndex:r,className:$(t,"block-editor-button-block-appender"),onClick:s,"aria-haspopup":p?"true":void 0,"aria-expanded":p?l:void 0,disabled:a,label:m,showTooltip:!0,children:(0,l5.jsx)(xt,{icon:Ns})})},isAppender:!0})}var Txe=(0,cq.forwardRef)((e,t)=>((0,Cxe.default)("wp.blockEditor.ButtonBlockerAppender",{alternative:"wp.blockEditor.ButtonBlockAppender",since:"5.9"}),Exe(e,t))),Hg=(0,cq.forwardRef)(Exe);var ix=c(T(),1);function stt({rootClientId:e}){return(0,uq.useSelect)(o=>o(B).canInsertBlockType((0,Rxe.getDefaultBlockName)(),e))?(0,ix.jsx)(nx,{rootClientId:e}):(0,ix.jsx)(Hg,{rootClientId:e,className:"block-list-appender__toggle"})}function Bxe({rootClientId:e,CustomAppender:t,className:o,tagName:r="div"}){let n=(0,uq.useSelect)(i=>{let{getBlockInsertionPoint:s,isBlockInsertionPointVisible:a,getBlockCount:l}=i(B),u=s();return a()&&e===u?.rootClientId&&l(e)===0},[e]);return(0,ix.jsx)(r,{tabIndex:-1,className:$("block-list-appender wp-block",o,{"is-drag-over":n}),contentEditable:!1,"data-block":!0,children:t?(0,ix.jsx)(t,{}):(0,ix.jsx)(stt,{rootClientId:e})})}var Wxe=c(ue(),1),nT=c(te(),1),Gxe=c(F(),1),$xe=c(q(),1);var sx=c(te(),1),Wg=c(F(),1),d5=c(Y(),1),Hxe=c(ue(),1);var Oxe=c(te(),1),Ug=c(F(),1),Axe=c(Y(),1),Mxe=c(q(),1);var Pxe=c(ue(),1),dq=c(Lt(),1),Ixe=new WeakMap;function att(e){let t=(0,Pxe.useRefEffect)(o=>{function r(i){let{deltaX:s,deltaY:a,target:l}=i,u=e.current,d=Ixe.get(u);d||(d=(0,dq.getScrollContainer)(u),Ixe.set(u,d));let f=(0,dq.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 Vy=att;var fq=c(T(),1),ltt=Number.MAX_SAFE_INTEGER;function ctt({previousClientId:e,nextClientId:t,children:o,__unstablePopoverSlot:r,__unstableContentRef:n,operation:i="insert",nearestSide:s="right",...a}){let[l,u]=(0,Ug.useReducer)(y=>(y+1)%ltt,0),{orientation:d,rootClientId:f,isVisible:p}=(0,Oxe.useSelect)(y=>{let{getBlockListSettings:_,getBlockRootClientId:w,isBlockVisible:k}=y(B),x=w(e??t);return{orientation:_(x)?.orientation||"vertical",rootClientId:x,isVisible:k(e)&&k(t)}},[e,t]),m=Zt(e),g=Zt(t),h=d==="vertical",b=(0,Ug.useMemo)(()=>l<0||!m&&!g||!p?void 0:{contextElement:i==="group"?g||m:m||g,getBoundingClientRect(){let _=m?m.getBoundingClientRect():null,w=g?g.getBoundingClientRect():null,k=0,x=0,S=0,C=0;if(i==="group"){let R=w||_;x=R.top,S=0,C=R.bottom-R.top,k=s==="left"?R.left-2:R.right-2}else h?(x=_?_.bottom:w.top,S=w&&_?(_.width+w.width)/2:(_||w).width,C=w&&_?w.top-_.bottom:0,k=w&&_?(_.left+w.left)/2:(_||w).left):(x=_?_.top:w.top,C=_?_.height:w.height,(0,Mxe.isRTL)()?(k=w?w.right:_.left,S=_&&w?_.left-w.right:0):(k=_?_.right:w.left,S=_&&w?w.left-_.right:0),S=Math.max(S,0));return new window.DOMRect(k,x,S,C)}},[m,g,l,h,p,i,s]),v=Vy(n);return(0,Ug.useLayoutEffect)(()=>{if(!m)return;let y=new window.MutationObserver(u);return y.observe(m,{attributes:!0}),()=>{y.disconnect()}},[m]),(0,Ug.useLayoutEffect)(()=>{if(!g)return;let y=new window.MutationObserver(u);return y.observe(g,{attributes:!0}),()=>{y.disconnect()}},[g]),(0,Ug.useLayoutEffect)(()=>{if(m)return m.ownerDocument.defaultView.addEventListener("resize",u),()=>{m.ownerDocument.defaultView?.removeEventListener("resize",u)}},[m]),!m&&!g||!p?null:(0,fq.jsx)(Axe.Popover,{ref:v,animate:!1,anchor:b,focusOnMount:!1,__unstableSlotName:r,inline:!r,...a,className:$("block-editor-block-popover","block-editor-block-popover__inbetween",a.className),resize:!1,flip:!1,placement:"overlay",variant:"unstyled",children:(0,fq.jsx)("div",{className:"block-editor-block-popover__inbetween-container",children:o})},t+"--"+f)}var c5=ctt;var Vxe=c(te(),1),Fxe=c(ue(),1),zxe=c(Y(),1);var ip=c(F(),1);var Nxe=c(ue(),1),Lxe=c(Y(),1),np=c(F(),1);var pq=c(T(),1),utt=Number.MAX_SAFE_INTEGER;function dtt({clientId:e,bottomClientId:t,children:o,__unstablePopoverSlot:r,__unstableContentRef:n,shift:i=!0,...s},a){let l=Zt(e),u=Zt(t??e),d=(0,Nxe.useMergeRefs)([a,Vy(n)]),[f,p]=(0,np.useReducer)(g=>(g+1)%utt,0);(0,np.useLayoutEffect)(()=>{if(!l)return;let g,h=new window.MutationObserver(()=>{g||(g=window.requestAnimationFrame(()=>{g=null,p()}))});return h.observe(l,{attributes:!0}),()=>{h.disconnect(),g&&window.cancelAnimationFrame(g)}},[l]);let m=(0,np.useMemo)(()=>{if(!(f<0||!l||t&&!u))return{getBoundingClientRect(){return u?uU(nw(l),nw(u)):nw(l)},contextElement:l}},[f,l,t,u]);return!l||t&&!u?null:(0,pq.jsx)(Lxe.Popover,{ref:d,animate:!1,focusOnMount:!1,anchor:m,__unstableSlotName:r,inline:!r,placement:"top-start",resize:!1,flip:!1,shift:i,...s,className:$("block-editor-block-popover",s.className),variant:"unstyled",children:o})}var Fy=(0,np.forwardRef)(dtt),ftt=({clientId:e,bottomClientId:t,children:o,...r},n)=>(0,pq.jsx)(Fy,{...r,bottomClientId:t,clientId:e,__unstableContentRef:void 0,__unstablePopoverSlot:void 0,ref:n,children:o}),Dxe=(0,np.forwardRef)(ftt);var u5=c(T(),1);function ptt({clientId:e,bottomClientId:t,children:o,shift:r=!1,additionalStyles:n,...i},s){t??=e;let a=Zt(e);return(0,u5.jsx)(Fy,{ref:s,clientId:e,bottomClientId:t,shift:r,...i,children:a&&e===t?(0,u5.jsx)(mtt,{selectedElement:a,additionalStyles:n,children:o}):o})}function mtt({selectedElement:e,additionalStyles:t={},children:o}){let[r,n]=(0,ip.useState)(e.offsetWidth),[i,s]=(0,ip.useState)(e.offsetHeight);(0,ip.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,ip.useMemo)(()=>({position:"absolute",width:r,height:i,...t}),[r,i,t]);return(0,u5.jsx)("div",{style:a,children:o})}var Ml=(0,ip.forwardRef)(ptt);var mq=c(T(),1),rT={hide:{opacity:0,scaleY:.75},show:{opacity:1,scaleY:1},exit:{opacity:0,scaleY:.9}};function gtt({__unstablePopoverSlot:e,__unstableContentRef:t}){let{clientId:o}=(0,Vxe.useSelect)(n=>{let{getBlockOrder:i,getBlockInsertionPoint:s}=n(B),a=s(),l=i(a.rootClientId);return l.length?{clientId:l[a.index]}:{}},[]),r=(0,Fxe.useReducedMotion)();return(0,mq.jsx)(Ml,{clientId:o,__unstablePopoverSlot:e,__unstableContentRef:t,className:"block-editor-block-popover__drop-zone",children:(0,mq.jsx)(zxe.__unstableMotion.div,{"data-testid":"block-popover-drop-zone",initial:r?rT.show:rT.hide,animate:rT.show,exit:r?rT.show:rT.exit,className:"block-editor-block-popover__drop-zone-foreground"})})}var jxe=gtt;var sp=c(T(),1),ax=(0,Wg.createContext)();ax.displayName="InsertionPointOpenRefContext";function htt({__unstablePopoverSlot:e,__unstableContentRef:t,operation:o="insert",nearestSide:r="right"}){let{selectBlock:n,hideInsertionPoint:i}=(0,sx.useDispatch)(B),s=(0,Wg.useContext)(ax),a=(0,Wg.useRef)(),{orientation:l,previousClientId:u,nextClientId:d,rootClientId:f,isInserterShown:p,isDistractionFree:m,isZoomOutMode:g}=(0,sx.useSelect)(R=>{let{getBlockOrder:E,getBlockListSettings:I,getBlockInsertionPoint:O,isBlockBeingDragged:A,getPreviousBlockClientId:P,getNextBlockClientId:L,getSettings:H,isZoomOut:N}=G(R(B)),M=O(),V=E(M.rootClientId);if(!V.length)return{};let j=V[M.index-1],D=V[M.index];for(;A(j);)j=P(j);for(;A(D);)D=L(D);let z=H();return{previousClientId:j,nextClientId:D,orientation:I(M.rootClientId)?.orientation||"vertical",rootClientId:M.rootClientId,isDistractionFree:z.isDistractionFree,isInserterShown:M?.__unstableWithInserter,isZoomOutMode:N()}},[]),{getBlockEditingMode:h}=(0,sx.useSelect)(B),b=(0,Hxe.useReducedMotion)();function v(R){R.target===a.current&&d&&h(d)!=="disabled"&&n(d,-1)}function y(R){R.target===a.current&&!s.current&&i()}function _(R){R.target!==a.current&&(s.current=!0)}let w=(0,Wg.useCallback)(R=>{!R&&s.current&&(s.current=!1)},[s]),k={start:{opacity:0,scale:0},rest:{opacity:1,scale:1,transition:{delay:p?.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(m||g&&o!=="insert")return null;let C=$("block-editor-block-list__insertion-point",l==="horizontal"||o==="group"?"is-horizontal":"is-vertical");return(0,sp.jsx)(c5,{previousClientId:u,nextClientId:d,__unstablePopoverSlot:e,__unstableContentRef:t,operation:o,nearestSide:r,children:(0,sp.jsxs)(d5.__unstableMotion.div,{layout:!b,initial:b?"rest":"start",animate:"rest",whileHover:"hover",whileTap:"pressed",exit:"start",ref:a,tabIndex:-1,onClick:v,onFocus:_,className:$(C,{"is-with-inserter":p}),onHoverEnd:y,children:[(0,sp.jsx)(d5.__unstableMotion.div,{variants:k,className:"block-editor-block-list__insertion-point-indicator","data-testid":"block-list-insertion-point-indicator"}),p&&(0,sp.jsx)(d5.__unstableMotion.div,{variants:x,className:$("block-editor-block-list__insertion-point-inserter"),children:(0,sp.jsx)(Js,{ref:w,position:"bottom center",clientId:d,rootClientId:f,__experimentalIsQuick:!0,onToggle:R=>{s.current=R},onSelectOrClose:()=>{s.current=!1}})})]})})}function Uxe(e){let{insertionPoint:t,isVisible:o,isBlockListEmpty:r}=(0,sx.useSelect)(n=>{let{getBlockInsertionPoint:i,isBlockInsertionPointVisible:s,getBlockCount:a}=n(B),l=i();return{insertionPoint:l,isVisible:s(),isBlockListEmpty:a(l?.rootClientId)===0}},[]);return!o||r?null:t.operation==="replace"?(0,sp.jsx)(jxe,{...e},`${t.rootClientId}-${t.index}`):(0,sp.jsx)(htt,{operation:t.operation,nearestSide:t.nearestSide,...e})}function Yxe(){let e=(0,Gxe.useContext)(ax),t=(0,nT.useSelect)(h=>{let b=h(B).getSettings();return b.isDistractionFree||b.isPreviewMode||G(h(B)).isZoomOut()},[]),{getBlockListSettings:o,getBlockIndex:r,isMultiSelecting:n,getSelectedBlockClientIds:i,getSettings:s,getTemplateLock:a,__unstableIsWithinBlockOverlay:l,getBlockEditingMode:u,getBlockName:d,getBlockAttributes:f,getParentSectionBlock:p}=G((0,nT.useSelect)(B)),{showInsertionPoint:m,hideInsertionPoint:g}=(0,nT.useDispatch)(B);return(0,Wxe.useRefEffect)(h=>{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")){g();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 _=o(y),w=_?.orientation||"vertical",k=!!_?.__experimentalCaptureToolbars,x=v.clientY,S=v.clientX,R=Array.from(v.target.children).find(A=>{let P=A.getBoundingClientRect();return A.classList.contains("wp-block")&&w==="vertical"&&P.top>x||A.classList.contains("wp-block")&&w==="horizontal"&&((0,$xe.isRTL)()?P.right<S:P.left>S)});if(!R){g();return}if(!R.id&&(R=R.firstElementChild,!R)){g();return}let E=R.id.slice(6);if(!E||l(E)||p(E)||i().includes(E)&&w==="vertical"&&!k&&!s().hasFixedToolbar)return;let I=R.getBoundingClientRect();if(w==="horizontal"&&(v.clientY>I.bottom||v.clientY<I.top)||w==="vertical"&&(v.clientX>I.right||v.clientX<I.left)){g();return}let O=r(E);if(O===0){g();return}m(y,O,{__unstableWithInserter:!0})}return h.addEventListener("mousemove",b),()=>{h.removeEventListener("mousemove",b)}},[e,o,r,n,m,g,i,t])}var f5=c(te(),1),Kxe=c(ue(),1);var qxe=c(T(),1);function zy(){let{getSettings:e,hasSelectedBlock:t,hasMultiSelection:o}=(0,f5.useSelect)(B),{clearSelectedBlock:r}=(0,f5.useDispatch)(B),{clearBlockSelection:n}=e();return(0,Kxe.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 Zxe(e){return(0,qxe.jsx)("div",{ref:zy(),...e})}var bSe=c(ue(),1),ux=c(F(),1),ySe=c(te(),1),Wy=c(ce(),1);var Xxe=c(T(),1);function Qxe({showSeparator:e,isFloating:t,onAddBlock:o,isToggle:r}){let{clientId:n}=kt();return(0,Xxe.jsx)(Hg,{className:$({"block-list-appender__toggle":r}),rootClientId:n,showSeparator:e,isFloating:t,onAddBlock:o})}var Jxe=c(T(),1);function eSe(){let{clientId:e}=kt();return(0,Jxe.jsx)(nx,{rootClientId:e})}var m5=c(F(),1),rSe=c(te(),1),p5=c(Mt(),1),nSe=c(lx(),1);var iT=new WeakMap;function btt(){let e;return t=>((e===void 0||!(0,nSe.isShallowEqual)(e,t))&&(e=t),e)}function oSe(e){let[t]=(0,m5.useState)(btt);return t(e)}function iSe(e,t,o,r,n,i,s,a,l,u,d,f){let p=(0,rSe.useRegistry)(),m=oSe(o),g=oSe(r),h=l===void 0||t==="contentOnly"?t:l;(0,m5.useLayoutEffect)(()=>{let b={allowedBlocks:m,prioritizedInserterBlocks:g,templateLock:h};if(u!==void 0&&(b.__experimentalCaptureToolbars=u),d!==void 0)b.orientation=d;else{let v=al(f?.type);b.orientation=v.getOrientation(f)}s!==void 0&&((0,p5.default)("__experimentalDefaultBlock",{alternative:"defaultBlock",since:"6.3",version:"6.4"}),b.defaultBlock=s),n!==void 0&&(b.defaultBlock=n),a!==void 0&&((0,p5.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,p5.default)("Using `Function` as a `directInsert` argument",{alternative:"`boolean` values",since:"6.5"}),iT.get(p)||iT.set(p,{}),iT.get(p)[e]=b,window.queueMicrotask(()=>{let v=iT.get(p);if(Object.keys(v).length){let{updateBlockListSettings:y}=p.dispatch(B);y(v),iT.set(p,{})}})},[e,m,g,h,n,i,s,a,u,d,f,p])}var gq=c(lb(),1),g5=c(F(),1),sSe=c(te(),1),h5=c(ce(),1),hq=c(Mt(),1);function aSe(e,t,o,r){t!==void 0&&(0,hq.default)("The template prop of InnerBlocks and useInnerBlocksProps",{since:"7.2",alternative:"a `template` declared in the block type settings"}),r!==void 0&&(0,hq.default)("The templateInsertUpdatesSelection prop of InnerBlocks and useInnerBlocksProps",{since:"7.2",alternative:"`templateInsertUpdatesSelection` declared in the block type settings"});let n=(0,sSe.useRegistry)(),i=(0,g5.useRef)(null);(0,g5.useLayoutEffect)(()=>{let s=!1,{getBlockName:a,getBlocks:l,getSelectedBlocksInitialCaretPosition:u,isBlockSelected:d}=n.select(B),{replaceInnerBlocks:f,__unstableMarkNextChangeAsNotPersistent:p}=n.dispatch(B);return window.queueMicrotask(()=>{if(s)return;let m=t,g=r;if(t===void 0){let _=(0,h5.getBlockType)(a(e));m=_?.template,g=_?.templateInsertUpdatesSelection}let h=l(e),b=(0,gq.default)(m,i.current);if(!(h.length===0||o==="all"||o==="contentOnly")||b)return;i.current=m;let y=(0,h5.synchronizeBlocksWithTemplate)(h,m);(0,gq.default)(y,h)||(p({history:"ignore"}),f(e,y,h.length===0&&g&&y.length!==0&&d(e),u()))}),()=>{s=!0}},[t,o,e,n,r])}var lSe=c(ce(),1),cSe=c(te(),1);function uSe(e){return(0,cSe.useSelect)(t=>{let o=t(B).getBlock(e);if(!o)return;let r=t(lSe.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 Uy=c(te(),1),v5=c(F(),1),_5=c(ue(),1),mSe=c(q(),1),cx=c(ce(),1);var bq=c(F(),1),ea=c(ce(),1),jy=c(te(),1),dSe=c(Lt(),1);function yq(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 ytt(e,t,o,r,n,i,s,a,l){return u=>{let{srcRootClientId:d,srcClientIds:f,type:p,blocks:m}=yq(u);if(p==="inserter"){s();let g=m.map(h=>(0,ea.cloneBlock)(h));i(g,!0,null)}if(p==="block"){let g=o(f[0]);if(d===e&&g===t||f.includes(e)||r(f).some(y=>y===e))return;if(a==="group"){let y=f.map(_=>l(_));i(y,!0,null,f);return}let h=d===e,b=f.length,v=h&&g<t?t-b:t;n(f,d,v)}}}function vtt(e,t,o,r,n){return i=>{if(!t().mediaUpload)return;let s=(0,ea.findTransform)((0,ea.getBlockTransforms)("from"),a=>a.type==="files"&&r(a.blockName,e)&&a.isMatch(i));if(s){let a=s.transform(i,o);n(a)}}}function _tt(e){return t=>{let o=(0,ea.pasteHandler)({HTML:t,mode:"BLOCKS"});o.length&&e(o)}}function b5(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,jy.useSelect)(B),{getGroupingBlockName:p}=(0,jy.useSelect)(ea.store),{insertBlocks:m,moveBlocksToPosition:g,updateBlockAttributes:h,clearSelectedBlock:b,replaceBlocks:v,removeBlocks:y}=(0,jy.useDispatch)(B),_=(0,jy.useRegistry)(),w=(0,bq.useCallback)((R,E=!0,I=0,O=[])=>{Array.isArray(R)||(R=[R]);let P=l(e)[t];if(r==="replace")v(P,R,void 0,I);else if(r==="group"){let L=f(P);n==="left"?R.push(L):R.unshift(L);let H=R.map(j=>(0,ea.cloneSanitizedBlock)(j)),N=R.every(j=>j.name==="core/image"),M=i("core/gallery",e),V=(0,ea.createBlock)(N&&M?"core/gallery":p(),{layout:{type:"flex",flexWrap:N&&M?null:"nowrap"}},H);v([P,...O],V,void 0,I)}else m(R,t,e,E,I)},[l,e,t,r,v,f,n,i,p,m]),k=(0,bq.useCallback)((R,E,I)=>{if(r==="replace"){let O=u(R),P=l(e)[t];_.batch(()=>{y(R,!1),v(P,O,void 0,0)})}else g(R,E,e,I)},[r,l,u,g,_,y,v,t,e]),x=ytt(e,t,s,a,k,w,b,r,f),S=vtt(e,d,h,i,w),C=_tt(w);return R=>{let E=(0,dSe.getFilesFromDataTransfer)(R.dataTransfer),I=R.dataTransfer.getData("text/html");I?C(I):E.length?S(E):x(R)}}function wtt(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 Hy(e,t,o=["top","bottom","left","right"]){let r,n;return o.forEach(i=>{let s=wtt(e,t,i);(r===void 0||s<r)&&(r=s,n=i)}),[r,n]}function y5(e,t){return t.left<=e.x&&t.right>=e.x&&t.top<=e.y&&t.bottom>=e.y}function fSe(e,t){return t.top<=e.y&&t.bottom>=e.y}var vq=30,ktt=120,xtt=120;function Stt(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:p=0}=r;if(d&&f!=="horizontal"){let v=d.getBoundingClientRect(),[y,_]=Hy(t,v,["top","bottom"]);if(v.height>ktt&&y<vq){if(_==="top")return[p,"before"];if(_==="bottom")return[p+1,"after"]}}let m=(0,mSe.isRTL)();if(d&&f==="horizontal"){let v=d.getBoundingClientRect(),[y,_]=Hy(t,v,["left","right"]);if(v.width>xtt&&y<vq){if(m&&_==="right"||!m&&_==="left")return[p,"before"];if(m&&_==="left"||!m&&_==="right")return[p+1,"after"]}}e.forEach(({isUnmodifiedDefaultBlock:v,getBoundingClientRect:y,blockIndex:_,blockOrientation:w})=>{let k=y();if(!k)return;let[x,S]=Hy(t,k,n),[C,R]=Hy(t,k,["left","right"]),E=y5(t,k);v&&E?x=0:o==="vertical"&&w!=="horizontal"&&(E&&C<vq||!E&&fSe(t,k))&&(l=_,u=R),x<a&&(s=S==="bottom"||!m&&S==="right"||m&&S==="left"?"after":"before",a=x,i=_)});let g=i+(s==="after"?1:-1),h=!!e[i]?.isUnmodifiedDefaultBlock,b=!!e[g]?.isUnmodifiedDefaultBlock;return l!==null?[l,"group",u]:!h&&!b?[s==="after"?i+1:i,"insert"]:[h?i:g,"replace"]}function w5(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 pSe(e,t){let{defaultView:o}=t;return!!(o&&e instanceof o.HTMLElement&&e.closest("[data-is-insertion-point]"))}function gSe({dropZoneElement:e,rootClientId:t="",parentClientId:o="",isDisabled:r=!1}={}){let n=(0,Uy.useRegistry)(),[i,s]=(0,v5.useState)({index:null,operation:"insert"}),{getBlockType:a,getBlockVariations:l,getGroupingBlockName:u}=(0,Uy.useSelect)(cx.store),{canInsertBlockType:d,getBlockListSettings:f,getBlocks:p,getBlockIndex:m,getDraggedBlockClientIds:g,getBlockNamesByClientId:h,getAllowedBlocks:b,isDragging:v,isGroupable:y,isZoomOut:_,getSectionRootClientId:w,getBlockParents:k}=G((0,Uy.useSelect)(B)),{showInsertionPoint:x,hideInsertionPoint:S,startDragging:C,stopDragging:R}=G((0,Uy.useDispatch)(B)),E=b5(i.operation==="before"||i.operation==="after"?o:t,i.index,{operation:i.operation,nearestSide:i.nearestSide}),I=(0,_5.useThrottle)((0,v5.useCallback)((O,A)=>{v()||C();let P=g(),L=[t,...k(t,!0)];if(P.some(K=>L.includes(K)))return;let N=b(t),M=h([t])[0],V=h(P);if(!w5(a,N,V,M))return;let D=w();if(_()&&D!==t)return;let z=p(t).filter(K=>!((0,cx.hasBlockSupport)(K.name,"visibility",!0)&&K.attributes?.metadata?.blockVisibility===!1));if(z.length===0){n.batch(()=>{s({index:0,operation:"insert"}),x(t,0,{operation:"insert"})});return}let W=z.map(K=>{let X=K.clientId;return{isUnmodifiedDefaultBlock:(0,cx.isUnmodifiedDefaultBlock)(K),getBoundingClientRect:()=>{let oe=A.getElementById(`block-${X}`);return oe?oe.getBoundingClientRect():null},blockIndex:m(X),blockOrientation:f(X)?.orientation}}),ee=Stt(W,{x:O.clientX,y:O.clientY},f(t)?.orientation,{dropZoneElement:e,parentBlockClientId:o,parentBlockOrientation:o?f(o)?.orientation:void 0,rootBlockIndex:m(t)}),[J,U,Q]=ee,Z=W[J]?.isUnmodifiedDefaultBlock;if(!(_()&&!Z&&U!=="insert")){if(U==="group"){let K=z[J],X=[K.name,...V].every(pe=>pe==="core/image"),oe=d("core/gallery",t),ie=y([K.clientId,g()]),se=l(u(),"block"),be=se&&se.find(({name:pe})=>pe==="group-row");if(X&&!oe&&(!ie||!be)||!X&&(!ie||!be))return}n.batch(()=>{s({index:J,operation:U,nearestSide:Q});let K=["before","after"].includes(U)?o:t;x(K,J,{operation:U,nearestSide:Q})})}},[v,b,t,h,g,a,w,_,p,f,e,o,m,n,C,x,d,y,l,u]),200);return(0,_5.__experimentalUseDropZone)({dropZoneElement:e,isDisabled:r,onDrop:E,onDragOver(O){I(O,O.currentTarget.ownerDocument)},onDragLeave(O){let{ownerDocument:A}=O.currentTarget;pSe(O.relatedTarget,A)||pSe(O.target,A)||(I.cancel(),S())},onDragEnd(){I.cancel(),R(),S()}})}var ap=c(T(),1),hSe={};function Ctt({children:e,clientId:t}){let o=uSe(t);return(0,ap.jsx)(IB,{value:o,children:e})}var Ett=(0,ux.memo)(WE);function vSe(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:p,__experimentalAppenderTagName:m,renderAppender:g,orientation:h,placeholder:b,layout:v,name:y,blockType:_,parentLock:w,defaultLayout:k}=e;iSe(t,w,o,r,n,i,s,a,u,p,h,v),aSe(t,l,u,f);let x=(0,Wy.getBlockSupport)(y,"layout")||(0,Wy.getBlockSupport)(y,"__experimentalLayout")||hSe,{allowSizingOnChildren:S=!1}=x,C=v||x.default||hSe,R=(0,ux.useMemo)(()=>({...k,...C,...S&&{allowSizingOnChildren:!0}}),[k,C,S]),E=(0,ap.jsx)(Ett,{rootClientId:t,renderAppender:g,__experimentalAppenderTagName:m,layout:R,wrapperRef:d,placeholder:b});return!_?.providesContext||Object.keys(_.providesContext).length===0?E:(0,ap.jsx)(Ctt,{clientId:t,children:E})}function Ttt(e){return UL(e),(0,ap.jsx)(vSe,{...e})}var k5=(0,ux.forwardRef)((e,t)=>{let o=Gy({ref:t},e);return(0,ap.jsx)("div",{className:"block-editor-inner-blocks",children:(0,ap.jsx)("div",{...o})})});function Gy(e={},t={}){let{__unstableDisableLayoutClassNames:o,__unstableDisableDropZone:r,dropZoneElement:n,layout:i}=t,{clientId:s,layout:a=null,__unstableLayoutClassNames:l=""}=kt(),u=i??a,d=(0,ySe.useSelect)(x=>{let{getBlockName:S,isZoomOut:C,getTemplateLock:R,getBlockRootClientId:E,getBlockEditingMode:I,getBlockSettings:O,getSectionRootClientId:A}=G(x(B));if(!s){let D=A();return{isDropZoneDisabled:C()&&D!==""}}let{hasBlockSupport:P,getBlockType:L}=x(Wy.store),H=S(s),N=I(s),M=E(s),[V]=O(s,"layout"),j=N==="disabled";if(C()){let D=A();j=s!==D}return{__experimentalCaptureToolbars:P(H,"__experimentalExposeControlsToChildren",!1),name:H,blockType:L(H),parentLock:R(M),parentClientId:M,isDropZoneDisabled:j,defaultLayout:V}},[s]),{__experimentalCaptureToolbars:f,name:p,blockType:m,parentLock:g,parentClientId:h,isDropZoneDisabled:b,defaultLayout:v}=d,y=gSe({dropZoneElement:n,rootClientId:s,parentClientId:h}),_=(0,bSe.useMergeRefs)([e.ref,r||b||u?.isManualPlacement&&window.__experimentalEnableGridInteractivity?null:y]),w={__experimentalCaptureToolbars:f,layout:u,name:p,blockType:m,parentLock:g,defaultLayout:v,...t},k=w.value&&w.onChange?Ttt:vSe;return{...e,ref:_,className:$(e.className,"block-editor-block-list__layout",o?"":l),children:s?(0,ap.jsx)(k,{...w,clientId:s}):(0,ap.jsx)(WE,{...t})}}Gy.save=Wy.__unstableGetInnerBlocksProps;k5.DefaultBlockAppender=eSe;k5.ButtonBlockAppender=Qxe;k5.Content=()=>Gy.save().children;var sT=k5;var aT=c(Y(),1),_Se=c(ue(),1),wSe=c(te(),1),kSe=c(F(),1),xSe=c(q(),1);var x5=c(T(),1);function _q({clientId:e,rootClientId:t="",position:o="top"}){let[r,n]=(0,kSe.useState)(!1),{sectionRootClientId:i,sectionClientIds:s,insertionPoint:a,blockInsertionPointVisible:l,blockInsertionPoint:u,blocksBeingDragged:d}=(0,wSe.useSelect)(k=>{let{getInsertionPoint:x,getBlockOrder:S,getSectionRootClientId:C,isBlockInsertionPointVisible:R,getBlockInsertionPoint:E,getDraggedBlockClientIds:I}=G(k(B)),O=C(),A=S(O);return{sectionRootClientId:O,sectionClientIds:A,insertionPoint:x(),blockInsertionPoint:E(),blockInsertionPointVisible:R(),blocksBeingDragged:I()}},[]),f=(0,_Se.useReducedMotion)();if(!e)return;let p=!1;if(!(t===i&&s&&s.includes(e)))return null;let g=a?.index===0&&e===s[a.index],h=a&&a.hasOwnProperty("index")&&e===s[a.index-1];o==="top"&&(p=g||l&&u.index===0&&e===s[u.index]),o==="bottom"&&(p=h||l&&e===s[u.index-1]);let b=d[0],v=d.includes(e),y=s.indexOf(b),w=(y>0?s[y-1]:null)===e;return(v||w)&&(p=!1),(0,x5.jsx)(aT.__unstableAnimatePresence,{children:p&&(0,x5.jsx)(aT.__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:$("block-editor-block-list__zoom-out-separator",{"is-dragged-over":r}),"data-is-insertion-point":"true",onDragOver:()=>n(!0),onDragLeave:()=>n(!1),children:(0,x5.jsx)(aT.__unstableMotion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,transition:{delay:-.125}},transition:{ease:"linear",duration:.1,delay:.125},children:(0,xSe.__)("Drop pattern.")})})})}var hs=c(T(),1),NO=(0,lp.createContext)();NO.displayName="IntersectionObserverContext";var S5=new WeakMap,Rtt={trailing:!0};function Btt({className:e,...t}){let{isOutlineMode:o,isFocusMode:r,isPreviewMode:n,editedContentOnlySection:i}=(0,Nl.useSelect)(f=>{let{getSettings:p,isTyping:m,hasBlockSpotlight:g,getEditedContentOnlySection:h}=G(f(B)),{outlineMode:b,focusMode:v,isPreviewMode:y}=p();return{isOutlineMode:b&&!m(),isFocusMode:!y&&(v||g()),isPreviewMode:y,editedContentOnlySection:h()}},[]),s=(0,Nl.useRegistry)(),{setBlockVisibility:a}=(0,Nl.useDispatch)(B),l=(0,C5.useDebounce)((0,lp.useCallback)(()=>{let f={};S5.get(s).forEach(([p,m])=>{f[p]=m}),a(f)},[s]),300,Rtt),u=(0,lp.useMemo)(()=>{let{IntersectionObserver:f}=window;if(f)return new f(p=>{S5.get(s)||S5.set(s,[]);for(let m of p){let g=m.target.getAttribute("data-block");S5.get(s).push([g,m.isIntersecting])}l()})},[]),d=Gy({ref:(0,C5.useMergeRefs)([zy(),Yxe()]),className:$("is-root-container",e,{"is-outline-mode":o,"is-focus-mode":r,"is-preview-mode":n})},t);return(0,hs.jsxs)(NO.Provider,{value:u,children:[(0,hs.jsx)("div",{...d}),!!i&&(0,hs.jsx)(Itt,{clientId:i})]})}function Itt({clientId:e}){let{stopEditingContentOnlySection:t}=G((0,Nl.useDispatch)(B)),o=(0,Nl.useSelect)(r=>{let{isBlockSelected:n,hasSelectedInnerBlock:i,getBlockSelectionStart:s}=r(B);return!s()||n(e)||i(e,!0)},[e]);return(0,lp.useEffect)(()=>{o||t()},[o,t]),null}function Lk(e){return(0,hs.jsx)(CB,{value:Y8,children:(0,hs.jsx)(Btt,{...e})})}var Ptt=[],Ott=new Set;function Att({placeholder:e,rootClientId:t,renderAppender:o,__experimentalAppenderTagName:r,layout:n=uH}){let i=o!==!1,s=!!o,{order:a,isZoomOut:l,selectedBlocks:u,visibleBlocks:d,ghostBlockName:f,ghostBlockAttributes:p,shouldRenderAppender:m}=(0,Nl.useSelect)(v=>{let{getSettings:y,getBlockOrder:_,getSelectedBlockClientIds:w,__unstableGetVisibleBlocks:k,getTemplateLock:x,getBlockEditingMode:S,isSectionBlock:C,isContainerInsertableToInContentOnlyMode:R,getBlockName:E,getBlockListSettings:I,isZoomOut:O,canInsertBlockType:A}=G(v(B)),P=_(t);if(y().isPreviewMode)return{order:P,selectedBlocks:Ptt,visibleBlocks:Ott};let L,H;if(i&&!s&&!P.length){let W=(t?I(t)?.defaultBlock:void 0)??{name:(0,lT.getDefaultBlockName)()};W.name&&A(W.name,t)&&(L=W.name,H=W.attributes)}let N=w(),M=N[0],V=!t&&!M&&(!P.length||!A((0,lT.getDefaultBlockName)(),t)),j=!!(t&&M&&t===M),D=x(t),z=(!C(t)||R(E(M),t))&&S(t)!=="disabled"&&(!D||D==="contentOnly")&&i&&!O();return{order:P,selectedBlocks:N,visibleBlocks:k(),isZoomOut:O(),ghostBlockName:z?L:void 0,ghostBlockAttributes:H,shouldRenderAppender:z&&(s||j||V)}},[t,i,s]),g=(0,lp.useMemo)(()=>f?(0,lT.createBlock)(f,p):null,[f,p]),h=!!g,b=h?[...a,g.clientId]:a;return(0,hs.jsxs)(z2,{value:n,children:[b.map(v=>(0,hs.jsxs)(Nl.AsyncModeProvider,{value:v!==g?.clientId&&!d.has(v)&&!u.includes(v),children:[l&&(0,hs.jsx)(_q,{clientId:v,rootClientId:t,position:"top"}),(0,hs.jsx)(GO,{rootClientId:t,clientId:v,ghostBlock:v===g?.clientId?g:void 0}),l&&(0,hs.jsx)(_q,{clientId:v,rootClientId:t,position:"bottom"})]},v)),a.length<1&&e,m&&!h&&(0,hs.jsx)(Bxe,{tagName:r,rootClientId:t,CustomAppender:o})]})}function WE(e){return(0,hs.jsx)(Nl.AsyncModeProvider,{value:!1,children:(0,hs.jsx)(Att,{...e})})}var Mx=c(te(),1),iZ=c(Lt(),1),sZ=c(Y(),1),G1e=c(pl(),1),WV=c(F(),1),GV=c(ce(),1),aZ=c(Yo(),1),Nx=c(q(),1);var JSe=c(ue(),1),e0e=c(te(),1),t0e=c(Lt(),1),Cd=c(F(),1);var Jc=c(q(),1),Ky=c(ce(),1),YSe=c(ue(),1),KSe=c(te(),1),D5=c(F(),1);var O5=c(Y(),1),PSe=c(Y_(),1),OSe=c(Mt(),1),fx=c(F(),1);var Kn=c(Y(),1),SSe=(0,Kn.createSlotFill)("InspectorControls"),Mtt=(0,Kn.createSlotFill)("InspectorAdvancedControls"),Ntt=(0,Kn.createSlotFill)("InspectorControlsBindings"),Ltt=(0,Kn.createSlotFill)("InspectorControlsBackground"),Dtt=(0,Kn.createSlotFill)("InspectorControlsBorder"),Vtt=(0,Kn.createSlotFill)("InspectorControlsColor"),Ftt=(0,Kn.createSlotFill)("InspectorControlsFilter"),ztt=(0,Kn.createSlotFill)("InspectorControlsDimensions"),jtt=(0,Kn.createSlotFill)("InspectorControlsLayout"),Htt=(0,Kn.createSlotFill)("InspectorControlsElements"),Utt=(0,Kn.createSlotFill)("InspectorControlsPosition"),Wtt=(0,Kn.createSlotFill)("InspectorControlsTypography"),Gtt=(0,Kn.createSlotFill)("InspectorControlsListView"),$tt=(0,Kn.createSlotFill)("InspectorControlsStyles"),Ytt=(0,Kn.createSlotFill)("InspectorControlsEffects"),Ktt=(0,Kn.createSlotFill)("InspectorControlsContent"),qtt={default:SSe,advanced:Mtt,background:Ltt,bindings:Ntt,border:Dtt,color:Vtt,content:Ktt,dimensions:ztt,effects:Ytt,elements:Htt,filter:Ftt,layout:jtt,list:Gtt,position:Utt,settings:SSe,styles:$tt,typography:Wtt},Qc=qtt,cT=(0,Kn.createSlotFill)(Symbol("PrivateInspectorControlsAllowedBlocks"));var E5=c(F(),1);var uT="default",ta={viewport:uT,pseudo:uT},CSe=(0,E5.createContext)(ta),T5=CSe.Provider;function Ll(){return(0,E5.useContext)(CSe)}function vi(e){return!!e?.viewport&&e.viewport!==uT}function Ma(e){return!!e?.pseudo&&e.pseudo!==uT}function qn(e){return!vi(e)&&!Ma(e)}function ESe(e){return qn(e)?[]:[e.viewport,e.pseudo].filter(t=>t&&t!==uT)}function Ao(e,t){let o=ESe(t);return o.length?yf(e,o):e}function _n(e,t,o){let r=ESe(t);return r.length?Xe(Ge(e,r,o)):Xe(o)}function TSe(e,t){return!t||qn(e)?t:o=>{let r=Ao(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:_n(o?.style,e,i)}}}var dx=c(Y(),1),B5=c(F(),1),RSe=c(ue(),1),I5=c(te(),1);var R5=c(T(),1),BSe=Symbol("ListViewContentPopover"),{Fill:ISe,Slot:Ztt}=(0,dx.createSlotFill)(BSe);function Xtt(){return(0,RSe.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:35,resize:!1}}}function P5({listViewRef:e}){let{popoverProps:t}=Xtt(),o=(0,dx.__experimentalUseSlotFills)(BSe),r=!!(o&&o.length),{selectedClientId:n,isOpen:i}=(0,I5.useSelect)(u=>{let{getSelectedBlockClientId:d}=u(B),f=G(u(B));return{selectedClientId:d(),isOpen:f.isListViewContentPanelOpen()}},[]),[s,a]=(0,B5.useState)(null);(0,B5.useLayoutEffect)(()=>{if(!n||!e?.current){a(null);return}let u=e.current.querySelector(`[data-block="${n}"]`);a(u)},[n,e]);let{closeListViewContentPanel:l}=G((0,I5.useDispatch)(B));return!i||!r||!s?null:(0,R5.jsx)(dx.Popover,{...t??{},className:"block-editor-inspector-list-view-content-popover",anchor:s,onClose:l,children:(0,R5.jsx)("div",{style:{width:"280px"},children:(0,R5.jsx)(Ztt,{})})})}var $y=c(T(),1),Qtt=["content","list"];function Yy({children:e,group:t="default",__experimentalGroup:o,resetAllFilter:r}){o&&((0,OSe.default)("`__experimentalGroup` property in `InspectorControlsFill`",{since:"6.2",version:"6.4",alternative:"`group`"}),t=o);let n=kt(),i=n[Lu],s=n[r_],a=n[T0],l=Qc[t]?.Fill;if(!l)return(0,PSe.default)(`Unknown InspectorControls group "${t}" provided.`),null;if(s){let d=n.name==="core/template-part",f=Qtt.includes(t);if(!(d||f))return null}else if(!i)return null;let u=t==="content"&&s&&a;return u&&!i?null:(0,$y.jsx)(O5.__experimentalStyleProvider,{document,children:u?(0,$y.jsx)(ISe,{children:e}):(0,$y.jsx)(l,{children:d=>(0,$y.jsx)(eot,{fillProps:d,resetAllFilter:r,children:e})})})}function Jtt({resetAllFilter:e,children:t}){let{registerResetAllFilter:o,deregisterResetAllFilter:r}=(0,fx.useContext)(O5.__experimentalToolsPanelContext),n=Ll(),i=(0,fx.useMemo)(()=>TSe(n,e),[e,n]);return(0,fx.useEffect)(()=>{if(i&&o&&r)return o(i),()=>{r(i)}},[i,o,r]),t}function eot({children:e,resetAllFilter:t,fillProps:o}){let{forwardedContext:r=[]}=o,n=(0,$y.jsx)(Jtt,{resetAllFilter:t,children:e});return r.reduce((i,[s,a])=>(0,$y.jsx)(s,{...a,children:i}),n)}var zSe=c(Y(),1),jSe=c(F(),1),HSe=c(Y_(),1),USe=c(Mt(),1);var MSe=c(Y(),1),A5=c(te(),1),NSe=c(F(),1);var ASe=c(ue(),1);function Dr(){return(0,ASe.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}}}function px(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(", ")}function dT(e){if(typeof e!="string")return;let[,t]=e.match(/^var:preset\|duotone\|(.+)$/)??[];return t}var LSe=c(T(),1);function DSe({children:e,group:t,label:o}){let{updateBlockAttributes:r}=(0,A5.useDispatch)(B),{getBlockAttributes:n,getBlockName:i,getMultiSelectedBlockClientIds:s,getSelectedBlockClientId:a,hasMultiSelection:l}=(0,A5.useSelect)(B),u=Dr(),d=a(),f=(0,NSe.useCallback)((p=[])=>{let m={},g=l()?s():[d];g.forEach(h=>{let b=n(h)||{},{style:v}=b,y={style:v},_={attributes:b,clientId:h,name:i(h)};p.forEach(w=>{y={...y,...w(y,_)}}),y={...y,style:Xe(y.style)},m[h]=y}),r(g,m,!0)},[n,i,s,l,d,r]);return(0,LSe.jsx)(MSe.__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 wq=c(Y(),1),M5=c(F(),1),VSe=c(T(),1);function FSe({Slot:e,fillProps:t,...o}){let r=(0,M5.useContext)(wq.__experimentalToolsPanelContext),n=(0,M5.useMemo)(()=>({...t??{},forwardedContext:[...t?.forwardedContext??[],[wq.__experimentalToolsPanelContext.Provider,{value:r}]]}),[r,t]);return(0,VSe.jsx)(e,{...o,fillProps:n,bubblesVirtually:!0})}var N5=c(T(),1);function tot({__experimentalGroup:e,group:t="default",label:o,fillProps:r,...n},i){e&&((0,USe.default)("`__experimentalGroup` property in `InspectorControlsSlot`",{since:"6.2",version:"6.4",alternative:"`group`"}),t=e);let s=Qc[t],a=(0,zSe.__experimentalUseSlotFills)(s?.name);if(!s)return(0,HSe.default)(`Unknown InspectorControls group "${t}" provided.`),null;if(!a?.length)return null;let{Slot:l}=s;return o?(0,N5.jsx)(DSe,{group:t,label:o,children:(0,N5.jsx)(FSe,{...n,fillProps:r,Slot:l})}):(0,N5.jsx)(l,{...n,ref:i,fillProps:r,bubblesVirtually:!0})}var kq=(0,jSe.forwardRef)(tot);var xq=c(T(),1),WSe=Yy;WSe.Slot=kq;var Gg=e=>(0,xq.jsx)(Yy,{...e,group:"advanced"});Gg.Slot=function(t){return(0,xq.jsx)(kq,{...t,group:"advanced"})};Gg.slotName="InspectorAdvancedControls";var Fe=WSe;var GSe=c(te(),1),$g=c(ce(),1),fT=c(q(),1);function L5(e){let t=e?.style?.position?.type;return t==="sticky"?(0,fT.__)("Sticky"):t==="fixed"?(0,fT.__)("Fixed"):null}function Mn(e){return(0,GSe.useSelect)(t=>{if(!e)return null;let o=t(B),{getBlockName:r,getBlockAttributes:n,getBlock:i,__experimentalGetParsedPattern:s}=o,{getBlockType:a,getActiveBlockVariation:l}=t($g.store),u=r(e),d=a(u);if(!d)return null;let f=n(e),{isSectionBlock:p}=G(o),m=f?.metadata?.patternName;if(m&&p(e)){let w=s(m),k=L5(f);return{isSynced:!1,title:(0,fT.__)("Pattern"),icon:ol,description:w?.description||(0,fT.__)("A block pattern."),anchor:f?.anchor,positionLabel:k,positionType:f?.style?.position?.type,name:w?.title||f?.metadata?.name}}let g=l(u,f,void 0,i?.(e)?.innerContent),h=(0,$g.isReusableBlock)(d)||(0,$g.isTemplatePart)(d),v=(h?(0,$g.__experimentalGetBlockLabel)(d,f):void 0)||d.title,y=L5(f),_={isSynced:h,title:v,icon:d.icon,description:d.description,anchor:f?.anchor,positionLabel:y,positionType:f?.style?.position?.type,name:f?.metadata?.name};return g?{isSynced:h,title:g.title||d.title,icon:g.icon||d.icon,description:g.description||d.description,anchor:f?.anchor,positionLabel:y,positionType:f?.style?.position?.type,name:f?.metadata?.name}:_},[e])}var Yg=c(T(),1),pT="position",Sq={key:"default",value:"",label:(0,Jc.__)("Default")},Cq={key:"sticky",value:"sticky",label:(0,Jc._x)("Sticky","Name for the value of the CSS position property"),hint:(0,Jc.__)("The block will stick to the top of the window instead of scrolling.")},$Se={key:"fixed",value:"fixed",label:(0,Jc._x)("Fixed","Name for the value of the CSS position property"),hint:(0,Jc.__)("The block will not move when the page is scrolled.")},oot=["top","right","bottom","left"],rot=["sticky","fixed"];function not({selector:e,style:t}){let o="",{type:r}=t?.position||{};return rot.includes(r)&&(o+=`${e} {`,o+=`position: ${r};`,oot.forEach(n=>{t?.position?.[n]!==void 0&&(o+=`${n}: ${t.position[n]};`)}),(r==="sticky"||r==="fixed")&&(o+="z-index: 10"),o+="}"),o}function iot(e){let t=(0,Ky.getBlockSupport)(e,pT);return!!(t===!0||t?.sticky)}function sot(e){let t=(0,Ky.getBlockSupport)(e,pT);return!!(t===!0||t?.fixed)}function aot(e){return!!(0,Ky.getBlockSupport)(e,pT)}function qSe(e){let t=e?.style?.position?.type;return t==="sticky"||t==="fixed"}function ZSe({name:e}={}){let[t,o]=je("position.fixed","position.sticky"),r=!t&&!o;return!aot(e)||r}function lot({style:e={},clientId:t,name:o,setAttributes:r}){let n=sot(o),i=iot(o),s=e?.position?.type,{firstParentClientId:a}=(0,KSe.useSelect)(g=>{let{getBlockParents:h}=g(B),b=h(t);return{firstParentClientId:b[b.length-1]}},[t]),l=Mn(a),u=i&&s===Cq.value&&l?(0,Jc.sprintf)((0,Jc.__)("The block will stick to the scrollable area of the parent %s block."),l.title):null,d=(0,D5.useMemo)(()=>{let g=[Sq];return(i||s===Cq.value)&&g.push(Cq),(n||s===$Se.value)&&g.push($Se),g},[n,i,s]),f=g=>{let b={...e,position:{...e?.position,type:g,top:g==="sticky"||g==="fixed"?"0px":void 0}};r({style:Xe(b)})},p=s&&d.find(g=>g.value===s)||Sq,m=(0,D5.useId)();return d.length>1?(0,Yg.jsx)(Fe,{group:"position",children:(0,Yg.jsx)(DY,{label:(0,Jc.__)("Position"),hideLabelFromVision:!0,description:u,items:d,value:p,onValueChange:g=>{f(g.value)},children:d.map(g=>{let h=g.hint?`${m}-${g.key}`:void 0;return(0,Yg.jsxs)(DY.Item,{value:g,label:g.label,className:"block-editor-hooks__position-control-item","aria-describedby":h,children:[(0,Yg.jsx)("div",{children:g.label}),g.hint&&(0,Yg.jsx)("div",{id:h,className:"block-editor-hooks__position-control-item-hint","aria-hidden":"true",children:g.hint})]},g.key)})})}):null}var Eq={edit:function(t){return ZSe(t)?null:(0,Yg.jsx)(lot,{...t})},useBlockProps:uot,attributeKeys:["style"],hasSupport(e){return(0,Ky.hasBlockSupport)(e,pT)}},cot={};function uot({name:e,style:t}){let o=(0,Ky.hasBlockSupport)(e,pT),r=ZSe({name:e}),n=o&&!r,i=(0,YSe.useInstanceId)(cot),s=`.wp-container-${i}.wp-container-${i}`,a;n&&(a=not({selector:s,style:t})||"");let l=$({[`wp-container-${i}`]:n&&!!a,[`is-position-${t?.position?.type}`]:n&&!!a&&!!t?.position?.type});return Dl({css:a}),{className:l}}var o0e={placement:"top-start"},XSe={...o0e,flip:!1,shift:!0},dot={...o0e,flip:!0,shift:!1};function QSe(e,t,o,r,n){if(!e||!t)return XSe;let i=o?.scrollTop||0,s=nw(t),a=e.getBoundingClientRect(),l=i+a.top,u=e.ownerDocument.documentElement.clientHeight,d=l+r,f=s.top>d,p=s.height>u-r;return!n&&(f||p)?XSe:dot}function V5({contentElement:e,clientId:t}){let o=Zt(t),[r,n]=(0,Cd.useState)(0),{blockIndex:i,isSticky:s}=(0,e0e.useSelect)(p=>{let{getBlockIndex:m,getBlockAttributes:g}=p(B);return{blockIndex:m(t),isSticky:qSe(g(t))}},[t]),a=(0,Cd.useMemo)(()=>{if(e)return(0,t0e.getScrollContainer)(e)},[e]),[l,u]=(0,Cd.useState)(()=>QSe(e,o,a,r,s)),d=(0,JSe.useRefEffect)(p=>{n(p.offsetHeight)},[]),f=(0,Cd.useCallback)(()=>u(QSe(e,o,a,r,s)),[e,o,a,r,s]);return(0,Cd.useLayoutEffect)(f,[i,f]),(0,Cd.useLayoutEffect)(()=>{if(!e||!o)return;let p=e?.ownerDocument?.defaultView;p?.addEventListener?.("resize",f);let m,g=o?.ownerDocument?.defaultView;return g?.ResizeObserver&&(m=new g.ResizeObserver(f),m.observe(o)),()=>{p?.removeEventListener?.("resize",f),m&&m.disconnect()}},[f,e,o]),{...l,ref:d}}var r0e=c(te(),1);function F5(e){return(0,r0e.useSelect)(o=>{let{getBlockRootClientId:r,getBlockParents:n,__experimentalGetBlockListSettingsForBlocks:i,isBlockInsertionPointVisible:s,getBlockInsertionPoint:a,getBlockOrder:l,hasMultiSelection:u,getLastMultiSelectedBlockClientId:d}=o(B),f=n(e),p=i(f),m=f.find(h=>p[h]?.__experimentalCaptureToolbars),g=!1;if(s()){let h=a();g=l(h.rootClientId)[h.index]===e}return{capturingClientId:m,isInsertionPointVisible:g,lastClientId:u()?d():null,rootClientId:r(e)}},[e])}var z5=c(T(),1);function n0e({clientId:e,__unstableContentRef:t}){let{isInsertionPointVisible:o,lastClientId:r,rootClientId:n}=F5(e),i=V5({contentElement:t?.current,clientId:e});return(0,z5.jsx)(Ml,{clientId:e,bottomClientId:r,className:$("block-editor-block-list__block-side-inserter-popover",{"is-insertion-point-visible":o}),__unstableContentRef:t,...i,children:(0,z5.jsx)("div",{className:"block-editor-block-list__empty-block-inserter",children:(0,z5.jsx)(Js,{position:"bottom right",rootClientId:n,clientId:e,__experimentalIsQuick:!0})})})}var M1e=c(te(),1),Ax=c(F(),1),N1e=c(pl(),1);var B1e=c(q(),1),I1e=c(te(),1),tZ=c(F(),1),P1e=c(ue(),1),vp=c(ce(),1),O1e=c(Y(),1);var qy=c(Y(),1),g0e=c(te(),1),h0e=c(q(),1);var c0e=c(ce(),1),u0e=c(Y(),1),mT=c(te(),1),gT=c(F(),1),d0e=c(ue(),1);var s0e=c(Lt(),1),Ed=c(F(),1),j5=50,a0e=25,fot=1e3,i0e=fot*(a0e/1e3);function l0e(){let e=(0,Ed.useRef)(null),t=(0,Ed.useRef)(null),o=(0,Ed.useRef)(null),r=(0,Ed.useRef)(null);(0,Ed.useEffect)(()=>()=>{r.current&&(clearInterval(r.current),r.current=null)},[]);let n=(0,Ed.useCallback)(a=>{e.current=a.clientY,o.current=(0,s0e.getScrollContainer)(a.target),r.current=setInterval(()=>{if(o.current&&t.current){let l=o.current.scrollTop+t.current;o.current.scroll({top:l})}},a0e)},[]),i=(0,Ed.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-j5,0),p=Math.max(d-u-j5,0),m=f===0||p===0?0:p/f;t.current=i0e*m}else if(a.clientY<u){let f=Math.max(u-j5,0),p=Math.max(u-d-j5,0),m=f===0||p===0?0:p/f;t.current=-i0e*m}else t.current=0},[]);return[n,i,()=>{e.current=null,o.current=null,r.current&&(clearInterval(r.current),r.current=null)}]}var Tq=c(T(),1),pot=({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:p,getBlockType:m}=(0,mT.useSelect)(E=>{let{canMoveBlocks:I,getBlockRootClientId:O,getBlockName:A,getBlockAttributes:P,isBlockInsertionPointVisible:L}=E(B),{getBlockType:H,getActiveBlockVariation:N}=E(c0e.store),M=O(o[0]),V=A(o[0]),j=N(V,P(o[0]));return{srcRootClientId:M,isDraggable:I(o),icon:j?.icon||H(V)?.icon,visibleInserter:L(),getBlockType:H}},[o]),g=(0,gT.useRef)(!1),[h,b,v]=l0e(),{getAllowedBlocks:y,getBlockNamesByClientId:_,getBlockRootClientId:w}=(0,mT.useSelect)(B),{startDraggingBlocks:k,stopDraggingBlocks:x}=(0,mT.useDispatch)(B);(0,gT.useEffect)(()=>()=>{g.current&&x()},[]);let C=Zt(o[0])?.closest("body");return(0,gT.useEffect)(()=>{if(!C||!a)return;let I=(0,d0e.throttle)(O=>{if(!O.target.closest("[data-block]"))return;let A=_(o),P=O.target.closest("[data-block]").getAttribute("data-block"),L=y(P),H=_([P])[0],N;if(L?.length===0){let M=w(P),V=_([M])[0],j=y(M);N=w5(m,j,A,V)}else N=w5(m,L,A,H);!N&&!p?window?.document?.body?.classList?.add("block-draggable-invalid-drag-token"):window?.document?.body?.classList?.remove("block-draggable-invalid-drag-token")},200);return C.addEventListener("dragover",I),()=>{C.removeEventListener("dragover",I)}},[o,C,a,y,_,w,m,p]),d?(0,Tq.jsx)(u0e.Draggable,{appendToOwnerDocument:e,cloneClassname:r,__experimentalTransferDataType:"wp-blocks",transferData:{type:"block",srcClientIds:o,srcRootClientId:u},onDragStart:E=>{window.requestAnimationFrame(()=>{k(o),g.current=!0,h(E),i&&i()})},onDragOver:b,onDragEnd:()=>{x(),g.current=!1,v(),s&&s()},__experimentalDragComponent:l!==void 0?l:(0,Tq.jsx)(PD,{count:o.length,icon:f,fadeWhenDisabled:!0}),elementId:n,children:({onDraggableStart:E,onDraggableEnd:I})=>t({draggable:!0,onDragStart:E,onDragEnd:I})}):t({draggable:!1})},H5=pot;var p0e=c(ce(),1),m0e=c(Y(),1);var U5=c(ue(),1),W5=c(te(),1),mx=c(F(),1),bs=c(q(),1),G5=c(wo(),1);var dt=c(q(),1),Kg=(e,t)=>e==="up"?t==="horizontal"?(0,dt.isRTL)()?"right":"left":"up":e==="down"?t==="horizontal"?(0,dt.isRTL)()?"left":"right":"down":null;function f0e(e,t,o,r,n,i,s){let a=o+1;if(e>1)return mot(e,o,r,n,i,s);if(r&&n)return(0,dt.sprintf)((0,dt.__)("Block %s is the only block, and cannot be moved"),t);if(i>0&&!n){let l=Kg("down",s);if(l==="down")return(0,dt.sprintf)((0,dt.__)("Move %1$s block from position %2$d down to position %3$d"),t,a,a+1);if(l==="left")return(0,dt.sprintf)((0,dt.__)("Move %1$s block from position %2$d left to position %3$d"),t,a,a+1);if(l==="right")return(0,dt.sprintf)((0,dt.__)("Move %1$s block from position %2$d right to position %3$d"),t,a,a+1)}if(i>0&&n){let l=Kg("down",s);if(l==="down")return(0,dt.sprintf)((0,dt.__)("Block %1$s is at the end of the content and can\u2019t be moved down"),t);if(l==="left")return(0,dt.sprintf)((0,dt.__)("Block %1$s is at the end of the content and can\u2019t be moved left"),t);if(l==="right")return(0,dt.sprintf)((0,dt.__)("Block %1$s is at the end of the content and can\u2019t be moved right"),t)}if(i<0&&!r){let l=Kg("up",s);if(l==="up")return(0,dt.sprintf)((0,dt.__)("Move %1$s block from position %2$d up to position %3$d"),t,a,a-1);if(l==="left")return(0,dt.sprintf)((0,dt.__)("Move %1$s block from position %2$d left to position %3$d"),t,a,a-1);if(l==="right")return(0,dt.sprintf)((0,dt.__)("Move %1$s block from position %2$d right to position %3$d"),t,a,a-1)}if(i<0&&r){let l=Kg("up",s);if(l==="up")return(0,dt.sprintf)((0,dt.__)("Block %1$s is at the beginning of the content and can\u2019t be moved up"),t);if(l==="left")return(0,dt.sprintf)((0,dt.__)("Block %1$s is at the beginning of the content and can\u2019t be moved left"),t);if(l==="right")return(0,dt.sprintf)((0,dt.__)("Block %1$s is at the beginning of the content and can\u2019t be moved right"),t)}}function mot(e,t,o,r,n,i){let s=t+1;if(o&&r)return(0,dt.__)("All blocks are selected, and cannot be moved");if(n>0&&!r){let a=Kg("down",i);if(a==="down")return(0,dt.sprintf)((0,dt.__)("Move %1$d blocks from position %2$d down by one place"),e,s);if(a==="left")return(0,dt.sprintf)((0,dt.__)("Move %1$d blocks from position %2$d left by one place"),e,s);if(a==="right")return(0,dt.sprintf)((0,dt.__)("Move %1$d blocks from position %2$d right by one place"),e,s)}if(n>0&&r){let a=Kg("down",i);if(a==="down")return(0,dt.__)("Blocks cannot be moved down as they are already at the bottom");if(a==="left")return(0,dt.__)("Blocks cannot be moved left as they are already are at the leftmost position");if(a==="right")return(0,dt.__)("Blocks cannot be moved right as they are already are at the rightmost position")}if(n<0&&!o){let a=Kg("up",i);if(a==="up")return(0,dt.sprintf)((0,dt.__)("Move %1$d blocks from position %2$d up by one place"),e,s);if(a==="left")return(0,dt.sprintf)((0,dt.__)("Move %1$d blocks from position %2$d left by one place"),e,s);if(a==="right")return(0,dt.sprintf)((0,dt.__)("Move %1$d blocks from position %2$d right by one place"),e,s)}if(n<0&&o){let a=Kg("up",i);if(a==="up")return(0,dt.__)("Blocks cannot be moved up as they are already at the top");if(a==="left")return(0,dt.__)("Blocks cannot be moved left as they are already are at the leftmost position");if(a==="right")return(0,dt.__)("Blocks cannot be moved right as they are already are at the rightmost position")}}var cp=c(T(),1),got=(e,t)=>e==="up"?t==="horizontal"?(0,bs.isRTL)()?hr:ai:db:e==="down"?t==="horizontal"?(0,bs.isRTL)()?ai:hr:Rn:null,hot=(e,t)=>e==="up"?t==="horizontal"?(0,bs.isRTL)()?(0,bs.__)("Move right"):(0,bs.__)("Move left"):(0,bs.__)("Move up"):e==="down"?t==="horizontal"?(0,bs.isRTL)()?(0,bs.__)("Move left"):(0,bs.__)("Move right"):(0,bs.__)("Move down"):null,Rq=(0,mx.forwardRef)(({clientIds:e,direction:t,orientation:o,...r},n)=>{let i=(0,U5.useInstanceId)(Rq),s=(0,mx.useMemo)(()=>Array.isArray(e)?e:[e],[e]),a=s.length,l=(0,U5.useViewportMatch)("small","<"),{blockType:u,isDisabled:d,rootClientId:f,isFirst:p,isLast:m,firstIndex:g,orientation:h="vertical"}=(0,W5.useSelect)(x=>{let{getBlockIndex:S,getBlockRootClientId:C,getBlockOrder:R,getBlock:E,getBlockListSettings:I}=x(B),O=s[0],A=C(O),P=S(O),L=S(s[s.length-1]),H=R(A),N=E(O),M=P===0,V=L===H.length-1,{orientation:j}=I(A)||{};return{blockType:N?(0,p0e.getBlockType)(N.name):null,isDisabled:t==="up"?M:V,rootClientId:A,firstIndex:P,isFirst:M,isLast:V,orientation:o||j}},[t,o,s]),{moveBlocksDown:b,moveBlocksUp:v}=(0,W5.useDispatch)(B),y=t==="up"?v:b,_=x=>{y(e,f),r.onClick&&r.onClick(x)},w=`block-editor-block-mover-button__description-${i}`,k=t==="up"?"t":"y";return(0,cp.jsxs)(cp.Fragment,{children:[(0,cp.jsx)(m0e.Button,{__next40pxDefaultSize:!0,ref:n,className:$("block-editor-block-mover-button",`is-${t}-button`),icon:got(t,h),label:hot(t,h),tooltipPosition:!l&&t==="down"&&h==="vertical"?"bottom":"top","aria-describedby":w,...r,onClick:d?null:_,disabled:d,accessibleWhenDisabled:!0,shortcut:G5.displayShortcut.secondary(k)}),(0,cp.jsx)(bt,{id:w,children:(0,bs.sprintf)((0,bs.__)("%1$s (%2$s)"),f0e(a,u&&u.title,g,p,m,t==="up"?-1:1,h),G5.shortcutAriaLabel.secondary(k))})]})}),$5=(0,mx.forwardRef)((e,t)=>(0,cp.jsx)(Rq,{direction:"up",ref:t,...e})),Y5=(0,mx.forwardRef)((e,t)=>(0,cp.jsx)(Rq,{direction:"down",ref:t,...e}));var Td=c(T(),1);function bot({clientIds:e,hideDragHandle:t}){let{canMove:o,rootClientId:r,isFirst:n,isLast:i,orientation:s,isManualGrid:a}=(0,g0e.useSelect)(l=>{let{getBlockIndex:u,getBlockListSettings:d,canMoveBlocks:f,getBlockOrder:p,getBlockRootClientId:m,getBlockAttributes:g}=l(B),h=Array.isArray(e)?e:[e],b=h[0],v=m(b),y=u(b),_=u(h[h.length-1]),w=p(v),{layout:k={}}=g(v)??{};return{canMove:f(e),rootClientId:v,isFirst:y===0,isLast:_===w.length-1,orientation:d(v)?.orientation,isManualGrid:k.type==="grid"&&k.isManualPlacement&&window.__experimentalEnableGridInteractivity}},[e]);return!o||n&&i&&!r||t&&a?null:(0,Td.jsxs)(qy.ToolbarGroup,{className:$("block-editor-block-mover",{"is-horizontal":s==="horizontal"}),children:[!t&&(0,Td.jsx)(H5,{clientIds:e,fadeWhenDisabled:!0,children:l=>(0,Td.jsx)(qy.Button,{__next40pxDefaultSize:!0,icon:F0,className:"block-editor-block-mover__drag-handle",label:(0,h0e.__)("Drag"),tabIndex:"-1",...l})}),!a&&(0,Td.jsxs)("div",{className:"block-editor-block-mover__move-button-container",children:[(0,Td.jsx)(qy.ToolbarItem,{children:l=>(0,Td.jsx)($5,{clientIds:e,...l})}),(0,Td.jsx)(qy.ToolbarItem,{children:l=>(0,Td.jsx)(Y5,{clientIds:e,...l})})]})]})}var K5=bot;var bT=c(Y(),1),q5=c(te(),1),Xg=c(q(),1),v0e=c(F(),1),Z5=c(ce(),1);var hT=c(te(),1),qg=c(F(),1);var{clearTimeout:b0e,setTimeout:yot}=window,y0e=200;function vot({ref:e,isFocused:t,highlightParent:o,debounceTimeout:r=y0e}){let{getSelectedBlockClientId:n,getBlockRootClientId:i}=(0,hT.useSelect)(B),{toggleBlockHighlight:s}=(0,hT.useDispatch)(B),a=(0,qg.useRef)(),l=(0,hT.useSelect)(h=>h(B).getSettings().isDistractionFree,[]),u=h=>{if(h&&l)return;let b=n(),v=o?i(b):b;s(v,h)},d=()=>e?.current&&e.current.matches(":hover"),f=()=>{let h=d();return!t&&!h},p=()=>{let h=a.current;h&&b0e&&b0e(h)},m=h=>{h&&h.stopPropagation(),p(),u(!0)},g=h=>{h&&h.stopPropagation(),p(),a.current=yot(()=>{f()&&u(!1)},r)};return(0,qg.useEffect)(()=>()=>{u(!1),p()},[]),{debouncedShowGestures:m,debouncedHideGestures:g}}function gx({ref:e,highlightParent:t=!1,debounceTimeout:o=y0e}){let[r,n]=(0,qg.useState)(!1),{debouncedShowGestures:i,debouncedHideGestures:s}=vot({ref:e,debounceTimeout:o,isFocused:r,highlightParent:t}),a=(0,qg.useRef)(!1),l=()=>e?.current&&e.current.contains(e.current.ownerDocument.activeElement);return(0,qg.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 Zg=c(T(),1);function _0e(){let{selectBlock:e}=(0,q5.useDispatch)(B),{parentClientId:t,nextSiblingClientId:o,showInserter:r}=(0,q5.useSelect)(l=>{let{getBlockParents:u,getSelectedBlockClientIds:d,getParentSectionBlock:f,getBlockName:p,getNextBlockClientId:m}=G(l(B)),[g]=d(),h=f(g),b=u(g),v=b[b.length-1],y=h??v,_=(0,Z5.getBlockType)(p(y)),w=_?.merge||(0,Z5.hasBlockSupport)(_,"__experimentalOnMerge");return{parentClientId:y,nextSiblingClientId:m(g),showInserter:!!y&&y===v&&!w}},[]),n=Mn(t),i=(0,v0e.useRef)(),s=gx({ref:i,highlightParent:!0}),a=(0,Zg.jsx)(bT.ToolbarButton,{className:"block-editor-block-parent-selector__button",onClick:()=>e(t),label:(0,Xg.sprintf)((0,Xg.__)("Select parent block: %s"),n?.title),showTooltip:!0,icon:(0,Zg.jsx)(Nt,{icon:n?.icon})});return(0,Zg.jsxs)("div",{className:"block-editor-block-parent-selector",ref:i,...s,children:[!r&&a,r&&(0,Zg.jsxs)(bT.ToolbarGroup,{children:[a,(0,Zg.jsx)(Js,{position:"bottom right",rootClientId:t,clientId:o,isAppender:!o,__experimentalIsQuick:!0,renderToggle:({onToggle:l,isOpen:u,disabled:d,blockTitle:f,hasSingleBlockType:p})=>(0,Zg.jsx)(bT.ToolbarButton,{className:"block-editor-block-parent-selector__inserter",onClick:l,"aria-expanded":u,disabled:d,label:p?(0,Xg.sprintf)((0,Xg._x)("Add %s","directly add the only allowed block"),f.toLowerCase()):(0,Xg._x)("Add block","Generic label for block inserter button"),showTooltip:!0,icon:Ns})})]})]},t)}var X5=c(Y(),1);var Zy=c(Y(),1),_ot=(0,Zy.createSlotFill)("BlockControls"),wot=(0,Zy.createSlotFill)("BlockControlsBlock"),kot=(0,Zy.createSlotFill)("BlockFormatControls"),xot=(0,Zy.createSlotFill)("BlockControlsOther"),Sot=(0,Zy.createSlotFill)("BlockControlsParent"),Cot=(0,Zy.createSlotFill)("BlockControlsStyleState"),Eot={default:_ot,block:wot,inline:kot,other:xot,parent:Sot,"style-state":Cot},yT=Eot;function w0e(e,t){let o=kt();return o[Lu]?yT[e]?.Fill:o[o_]&&t?yT.parent.Fill:null}var up=c(T(),1);function Bq({group:e="default",controls:t,children:o,__experimentalShareWithChildBlocks:r=!1}){let n=w0e(e,r);if(!n)return null;let i=(0,up.jsxs)(up.Fragment,{children:[e==="default"&&(0,up.jsx)(X5.ToolbarGroup,{controls:t}),o]});return(0,up.jsx)(X5.__experimentalStyleProvider,{document,children:(0,up.jsx)(n,{children:s=>{let{forwardedContext:a=[]}=s;return a.reduce((l,[u,d])=>(0,up.jsx)(u,{...d,children:l}),i)}})})}var vT=c(F(),1),dp=c(Y(),1),x0e=c(Y_(),1);var Iq=c(T(),1),{ComponentsContext:k0e}=G(dp.privateApis);function Pq({group:e="default",...t}){let o=(0,vT.useContext)(dp.__experimentalToolbarContext),r=(0,vT.useContext)(k0e),n=(0,vT.useMemo)(()=>({forwardedContext:[[dp.__experimentalToolbarContext.Provider,{value:o}],[k0e.Provider,{value:r}]]}),[o,r]),i=yT[e],s=(0,dp.__experimentalUseSlotFills)(i.name);if(!i)return(0,x0e.default)(`Unknown BlockControls group "${e}" provided.`),null;if(!s?.length)return null;let{Slot:a}=i,l=(0,Iq.jsx)(a,{...t,bubblesVirtually:!0,fillProps:n});return e==="default"?l:(0,Iq.jsx)(dp.ToolbarGroup,{children:l})}var Oq=c(T(),1),S0e=Bq;S0e.Slot=Pq;var Aq=e=>(0,Oq.jsx)(Bq,{group:"inline",...e});Aq.Slot=function(t){return(0,Oq.jsx)(Pq,{group:"inline",...t})};var Ko=S0e;var C0e=c(Y(),1),{Fill:E0e,Slot:Tot}=(0,C0e.createSlotFill)("__unstableBlockToolbarLastItem");E0e.Slot=Tot;var Q5=E0e;var bV=c(Y(),1);var kx=c(ce(),1),ys=c(Y(),1),Jg=c(te(),1);var gV=c(F(),1),zl=c(q(),1),TCe=c(pl(),1),gp=c(ue(),1);var yx=c(te(),1),vx=c(ce(),1);var H0e=c(F(),1),wT=c(ce(),1),_T=c(te(),1),U0e=c(Ls(),1),fp=c(q(),1);var Na=c(ce(),1),Rot="align";var T0e="__experimentalBorder",J5="color",Bot="customClassName",R0e="typography.__experimentalFontFamily",B0e="typography.fontSize",Iot="typography.lineHeight",Pot="typography.__experimentalFontStyle",Oot="typography.__experimentalFontWeight",I0e="typography.textAlign",Aot="typography.textColumns",Mot="typography.__experimentalTextDecoration",Not="typography.__experimentalWritingMode",Lot="typography.__experimentalTextTransform",Dot="typography.__experimentalLetterSpacing",Vot="layout",Fot=[Iot,B0e,Pot,Oot,R0e,I0e,Aot,Mot,Lot,Not,Dot],zot=["shadow"],jot="spacing",Hot=[...zot,...Fot,T0e,J5,jot],P0e=e=>(0,Na.hasBlockSupport)(e,Rot);function O0e(e,t="any"){let o=(0,Na.getBlockSupport)(e,T0e);return o===!0?!0:t==="any"?!!(o?.color||o?.radius||o?.width||o?.style):!!o?.[t]}var A0e=e=>{let t=(0,Na.getBlockSupport)(e,J5);return t!==null&&typeof t=="object"&&!!t.gradients},M0e=e=>{let t=(0,Na.getBlockSupport)(e,J5);return t&&t.background!==!1},N0e=e=>(0,Na.hasBlockSupport)(e,I0e);var L0e=e=>{let t=(0,Na.getBlockSupport)(e,J5);return t&&t.text!==!1};var D0e=e=>(0,Na.hasBlockSupport)(e,Bot,!0);var V0e=e=>(0,Na.hasBlockSupport)(e,R0e);var F0e=e=>(0,Na.hasBlockSupport)(e,B0e);var z0e=e=>(0,Na.hasBlockSupport)(e,Vot);var j0e=e=>Hot.some(t=>(0,Na.hasBlockSupport)(e,t));function Uot(e){try{let t=(0,wT.parse)(e,{__unstableSkipMigrationLogs:!0,__unstableSkipAutop:!0});return!(t.length===1&&t[0].name==="core/freeform")}catch{return!1}}var Wot={align:P0e,borderColor:e=>O0e(e,"color"),backgroundColor:M0e,textAlign:N0e,textColor:L0e,gradient:A0e,className:D0e,fontFamily:V0e,fontSize:F0e,layout:z0e,style:j0e};function Got(e,t){return Object.entries(Wot).reduce((o,[r,n])=>(n(e.name)&&n(t.name)&&(o[r]=e.attributes[r]),o),{})}function Mq(e,t,o){for(let r=0;r<Math.min(t.length,e.length);r+=1)o(e[r].clientId,Got(t[r],e[r])),Mq(e[r].innerBlocks,t[r].innerBlocks,o)}function hx(){let e=(0,_T.useRegistry)(),{updateBlockAttributes:t}=(0,_T.useDispatch)(B),{createSuccessNotice:o,createWarningNotice:r,createErrorNotice:n}=(0,_T.useDispatch)(U0e.store);return(0,H0e.useCallback)(async i=>{let s="";try{if(!window.navigator.clipboard){n((0,fp.__)("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,fp.__)("Unable to paste styles. Please allow browser clipboard permissions before continuing."),{type:"snackbar"});return}if(!s||!Uot(s)){r((0,fp.__)("Unable to paste styles. Block styles couldn't be found within the copied content."),{type:"snackbar"});return}let a=(0,wT.parse)(s);if(a.length===1?e.batch(()=>{Mq(i,i.map(()=>a[0]),t)}):e.batch(()=>{Mq(i,a,t)}),i.length===1){let l=(0,wT.getBlockType)(i[0].name)?.title;o((0,fp.sprintf)((0,fp.__)("Pasted styles to %s."),l),{type:"snackbar"})}else o((0,fp.sprintf)((0,fp.__)("Pasted styles to %d blocks."),i.length),{type:"snackbar"})},[e.batch,t,o,r,n])}var bx=c(ce(),1);function Vl(e,t){let o=(0,bx.findTransform)((0,bx.getBlockTransforms)("from",t),r=>r.type==="block"&&r.isMultiBlock&&r.blocks.includes("*"));if(o?.__experimentalConvert){let r=o.__experimentalConvert(e);return Array.isArray(r)?r:[r]}return(0,bx.switchToBlockType)(e,t)}function W0e({clientIds:e,children:t,__experimentalUpdateSelection:o}){let{getDefaultBlockName:r,getGroupingBlockName:n}=(0,yx.useSelect)(vx.store),i=(0,yx.useSelect)(_=>{let{canInsertBlockType:w,getBlockRootClientId:k,getBlocksByClientId:x,getDirectInsertBlock:S,canRemoveBlocks:C}=_(B),R=x(e),E=k(e[0]),I=w(r(),E),O=E?S(E):null;return{canRemove:C(e),canInsertBlock:R.every(A=>(I||!!O)&&w(A.name,E)),canCopyStyles:R.every(A=>!!A&&((0,vx.hasBlockSupport)(A.name,"color")||(0,vx.hasBlockSupport)(A.name,"typography"))),canDuplicate:R.every(A=>!!A&&(0,vx.hasBlockSupport)(A.name,"multiple",!0)&&w(A.name,E))}},[e,r]),{getBlocksByClientId:s,getBlocks:a}=(0,yx.useSelect)(B),{canRemove:l,canInsertBlock:u,canCopyStyles:d,canDuplicate:f}=i,{removeBlocks:p,replaceBlocks:m,duplicateBlocks:g,insertAfterBlock:h,insertBeforeBlock:b,flashBlock:v}=(0,yx.useDispatch)(B),y=hx();return t({canCopyStyles:d,canDuplicate:f,canInsertBlock:u,canRemove:l,onDuplicate(){return g(e,o)},onRemove(){return p(e,o)},onInsertBefore(){b(e[0])},onInsertAfter(){h(e[e.length-1])},onGroup(){if(!e.length)return;let _=n(),w=Vl(s(e),_);w&&m(e,w)},onUngroup(){if(!e.length)return;let _=a(e[0]);_.length&&m(e,_)},onCopy(){e.length===1&&v(e[0])},async onPasteStyles(){await y(s(e))}})}var G0e=c(Y(),1),$ot=(0,G0e.createSlotFill)(Symbol("NoteIconSlotFill")),eV=$ot;var $0e=c(q(),1),Y0e=c(Y(),1),tV=c(ce(),1),oV=c(te(),1);var K0e=c(T(),1);function Yot({clientId:e}){let t=(0,oV.useSelect)(r=>r(B).getBlock(e),[e]),{replaceBlocks:o}=(0,oV.useDispatch)(B);return!t||t.name!=="core/html"?null:(0,K0e.jsx)(Y0e.MenuItem,{onClick:()=>o(e,(0,tV.rawHandler)({HTML:(0,tV.getBlockContent)(t)})),children:(0,$0e.__)("Convert to Blocks")})}var q0e=Yot;var Z0e=c(Y(),1),{Fill:X0e,Slot:Kot}=(0,Z0e.createSlotFill)("__unstableBlockSettingsMenuFirstItem");X0e.Slot=Kot;var rV=X0e;var wx=c(Y(),1),vCe=c(ce(),1),_Ce=c(te(),1);var Lq=c(Y(),1),Dq=c(q(),1),iV=c(te(),1),tCe=c(wo(),1);var Q0e=c(ce(),1),J0e=c(te(),1);function kT(e){return(0,J0e.useSelect)(t=>{let{getBlocksByClientId:o,getSelectedBlockClientIds:r,isUngroupable:n,isGroupable:i}=t(B),{getGroupingBlockName:s,getBlockType:a}=t(Q0e.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 nV=c(te(),1),eCe=c(ce(),1),Xy=c(Y(),1);var xT=c(q(),1);var Qy=c(T(),1),qot={group:{type:"constrained"},row:{type:"flex",flexWrap:"nowrap"},stack:{type:"flex",orientation:"vertical"},grid:{type:"grid"}};function Zot(){let{blocksSelection:e,clientIds:t,groupingBlockName:o,isGroupable:r}=kT(),{replaceBlocks:n}=(0,nV.useDispatch)(B),{canRemove:i,variations:s}=(0,nV.useSelect)(g=>{let{canRemoveBlocks:h}=g(B),{getBlockVariations:b}=g(eCe.store);return{canRemove:h(t),variations:b(o,"transform")}},[t,o]),a=g=>{let h=Vl(e,o);typeof g!="string"&&(g="group"),h&&h.length>0&&(h[0].attributes.layout=qot[g],n(t,h))},l=()=>a("row"),u=()=>a("stack"),d=()=>a("grid");if(!r||!i)return null;let f=!!s.find(({name:g})=>g==="group-row"),p=!!s.find(({name:g})=>g==="group-stack"),m=!!s.find(({name:g})=>g==="group-grid");return(0,Qy.jsxs)(Xy.ToolbarGroup,{children:[(0,Qy.jsx)(Xy.ToolbarButton,{icon:U0,label:(0,xT._x)("Group","action: convert blocks to group"),onClick:a}),f&&(0,Qy.jsx)(Xy.ToolbarButton,{icon:R9,label:(0,xT._x)("Row","action: convert blocks to row"),onClick:l}),p&&(0,Qy.jsx)(Xy.ToolbarButton,{icon:U9,label:(0,xT._x)("Stack","action: convert blocks to stack"),onClick:u}),m&&(0,Qy.jsx)(Xy.ToolbarButton,{icon:H0,label:(0,xT._x)("Grid","action: convert blocks to grid"),onClick:d})]})}var Nq=Zot;var Jy=c(T(),1);function oCe({clientIds:e,isGroupable:t,isUngroupable:o,onUngroup:r,blocksSelection:n,groupingBlockName:i,onClose:s=()=>{}}){let{getSelectedBlockClientIds:a}=(0,iV.useSelect)(B),{replaceBlocks:l}=(0,iV.useDispatch)(B),u=()=>{let p=Vl(n,i);p&&l(e,p)},d=()=>{let p=n[0].innerBlocks;p.length&&(r&&(p=r(n[0].attributes,n[0].innerBlocks)),l(e,p))};if(!t&&!o)return null;let f=a();return(0,Jy.jsxs)(Jy.Fragment,{children:[t&&(0,Jy.jsx)(Lq.MenuItem,{shortcut:f.length>1?tCe.displayShortcut.primary("g"):void 0,onClick:()=>{u(),s()},children:(0,Dq._x)("Group","verb")}),o&&(0,Jy.jsx)(Lq.MenuItem,{onClick:()=>{d(),s()},children:(0,Dq._x)("Ungroup","Ungrouping blocks from within a grouping block back into individual blocks within the Editor")})]})}var Vq=c(q(),1),iCe=c(F(),1),sCe=c(Y(),1);var rCe=c(te(),1);function pp(e){return(0,rCe.useSelect)(t=>{let{canLockBlockType:o,getBlockName:r,isEditLockedBlock:n,isMoveLockedBlock:i,isRemoveLockedBlock:s,isLockedBlock:a}=G(t(B));return{isEditLocked:n(e),isMoveLocked:i(e),isRemoveLocked:s(e),canLock:o(r(e)),isLocked:a(e)}},[e])}var Fl=c(q(),1),ST=c(F(),1),tn=c(Y(),1);var sV=c(te(),1),nCe=c(ce(),1);var Zo=c(T(),1),Xot=["core/navigation"];function Qot(e){return e.remove&&e.move?"all":e.remove&&!e.move?"insert":!1}function aV({clientId:e,onClose:t}){let[o,r]=(0,ST.useState)({move:!1,remove:!1}),{isEditLocked:n,isMoveLocked:i,isRemoveLocked:s}=pp(e),{allowsEditLocking:a,templateLock:l,hasTemplateLock:u}=(0,sV.useSelect)(v=>{let{getBlockName:y,getBlockAttributes:_}=v(B),w=y(e),k=(0,nCe.getBlockType)(w);return{allowsEditLocking:Xot.includes(w),templateLock:_(e)?.templateLock,hasTemplateLock:!!k?.attributes?.templateLock}},[e]),[d,f]=(0,ST.useState)(!!l),{updateBlockAttributes:p}=(0,sV.useDispatch)(B),m=Mn(e);(0,ST.useEffect)(()=>{r({move:i,remove:s,...a?{edit:n}:{}})},[n,i,s,a]);let g=Object.values(o).every(Boolean),h=Object.values(o).some(Boolean)&&!g,b=o.move!==i||o.remove!==s||a&&o.edit!==n||u&&d!==!!l;return(0,Zo.jsx)(tn.Modal,{title:(0,Fl.sprintf)((0,Fl.__)("Lock %s"),m.title),overlayClassName:"block-editor-block-lock-modal",onRequestClose:t,size:"small",children:(0,Zo.jsxs)("form",{onSubmit:v=>{v.preventDefault(),b&&(p([e],{lock:o,templateLock:d?Qot(o):void 0}),t())},children:[(0,Zo.jsxs)("fieldset",{className:"block-editor-block-lock-modal__options",children:[(0,Zo.jsx)("legend",{children:(0,Fl.__)("Select the features you want to lock")}),(0,Zo.jsx)("ul",{role:"list",className:"block-editor-block-lock-modal__checklist",children:(0,Zo.jsxs)("li",{children:[(0,Zo.jsx)(tn.CheckboxControl,{className:"block-editor-block-lock-modal__options-all",label:(0,Fl.__)("Lock all"),checked:g,indeterminate:h,onChange:v=>r({move:v,remove:v,...a?{edit:v}:{}})}),(0,Zo.jsxs)("ul",{role:"list",className:"block-editor-block-lock-modal__checklist",children:[a&&(0,Zo.jsxs)("li",{className:"block-editor-block-lock-modal__checklist-item",children:[(0,Zo.jsx)(tn.CheckboxControl,{label:(0,Fl.__)("Lock editing"),checked:!!o.edit,onChange:v=>r(y=>({...y,edit:v}))}),(0,Zo.jsx)(tn.Icon,{className:"block-editor-block-lock-modal__lock-icon",icon:o.edit?yb:hf})]}),(0,Zo.jsxs)("li",{className:"block-editor-block-lock-modal__checklist-item",children:[(0,Zo.jsx)(tn.CheckboxControl,{label:(0,Fl.__)("Lock movement"),checked:o.move,onChange:v=>r(y=>({...y,move:v}))}),(0,Zo.jsx)(tn.Icon,{className:"block-editor-block-lock-modal__lock-icon",icon:o.move?yb:hf})]}),(0,Zo.jsxs)("li",{className:"block-editor-block-lock-modal__checklist-item",children:[(0,Zo.jsx)(tn.CheckboxControl,{label:(0,Fl.__)("Lock removal"),checked:o.remove,onChange:v=>r(y=>({...y,remove:v}))}),(0,Zo.jsx)(tn.Icon,{className:"block-editor-block-lock-modal__lock-icon",icon:o.remove?yb:hf})]})]})]})}),u&&(0,Zo.jsx)(tn.ToggleControl,{className:"block-editor-block-lock-modal__template-lock",label:(0,Fl.__)("Apply to all blocks inside"),checked:d,disabled:o.move&&!o.remove,onChange:()=>f(!d)})]}),(0,Zo.jsxs)(tn.Flex,{className:"block-editor-block-lock-modal__actions",justify:"flex-end",expanded:!1,children:[(0,Zo.jsx)(tn.FlexItem,{children:(0,Zo.jsx)(tn.Button,{variant:"tertiary",onClick:t,__next40pxDefaultSize:!0,children:(0,Fl.__)("Cancel")})}),(0,Zo.jsx)(tn.FlexItem,{children:(0,Zo.jsx)(tn.Button,{variant:"primary",type:"submit",disabled:!b,accessibleWhenDisabled:!0,__next40pxDefaultSize:!0,children:(0,Fl.__)("Apply")})})]})]})})}var ev=c(T(),1);function Fq({clientId:e}){let{canLock:t,isLocked:o}=pp(e),[r,n]=(0,iCe.useReducer)(s=>!s,!1);if(!t)return null;let i=o?(0,Vq.__)("Unlock"):(0,Vq.__)("Lock");return(0,ev.jsxs)(ev.Fragment,{children:[(0,ev.jsx)(sCe.MenuItem,{icon:o?hf:e9,onClick:n,"aria-expanded":r,"aria-haspopup":"dialog",children:i}),r&&(0,ev.jsx)(aV,{clientId:e,onClose:n})]})}var lV=c(q(),1),cV=c(Y(),1),_x=c(F(),1);var Qg=c(T(),1);function zq({clientId:e}){let{canLock:t,isLocked:o}=pp(e),[r,n]=(0,_x.useReducer)(a=>!a,!1),i=(0,_x.useRef)(!1);if((0,_x.useEffect)(()=>{o&&(i.current=!0)},[o]),!o&&!i.current)return null;let s=o?(0,lV.__)("Unlock"):(0,lV.__)("Lock");return!t&&o&&(s=(0,lV.__)("Locked")),(0,Qg.jsxs)(Qg.Fragment,{children:[(0,Qg.jsx)(cV.ToolbarGroup,{className:"block-editor-block-lock-toolbar",children:(0,Qg.jsx)(cV.ToolbarButton,{disabled:!t,icon:o?yb:hf,label:s,onClick:n,"aria-expanded":r,"aria-haspopup":"dialog"})}),r&&(0,Qg.jsx)(aV,{clientId:e,onClose:n})]})}var jq=c(q(),1),aCe=c(Y(),1),uV=c(ce(),1),dV=c(te(),1);var lCe=c(T(),1),Jot=()=>{};function cCe({clientId:e,onToggle:t=Jot}){let{blockType:o,mode:r,enabled:n}=(0,dV.useSelect)(a=>{let{getBlock:l,getBlockMode:u,getSettings:d}=a(B),f=l(e);return{mode:u(e),blockType:f?(0,uV.getBlockType)(f.name):null,enabled:d().codeEditingEnabled&&!!f?.isValid}},[e]),{toggleBlockMode:i}=(0,dV.useDispatch)(B);if(!o||!(0,uV.hasBlockSupport)(o,"html",!0)||!n)return null;let s=r==="visual"?(0,jq.__)("Edit as HTML"):(0,jq.__)("Edit visually");return(0,lCe.jsx)(aCe.MenuItem,{onClick:()=>{i(e),t()},children:s})}var pCe=c(Y(),1),mCe=c(q(),1),gCe=c(F(),1),hCe=c(te(),1),bCe=c(pl(),1);var tu=c(Y(),1),eu=c(q(),1),dCe=c(F(),1),fCe=c(Yo(),1),fV=c(te(),1);function uCe(e){return e?.trim()?.length===0}var mp=c(T(),1);function tv({clientId:e,onClose:t}){let[o,r]=(0,dCe.useState)(),n=Mn(e),{metadata:i}=(0,fV.useSelect)(b=>{let{getBlockAttributes:v}=b(B);return{metadata:v(e)?.metadata}},[e]),{updateBlockAttributes:s}=(0,fV.useDispatch)(B),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,p=uCe(o),m=d||f,g=b=>b.target.select(),h=()=>{let b=f||p?void 0:o,v=f||p?(0,eu.sprintf)((0,eu.__)('Block name reset to: "%s".'),o):(0,eu.sprintf)((0,eu.__)('Block name changed to: "%s".'),o);(0,fCe.speak)(v,"assertive"),s([e],{metadata:Xe({...i,name:b})}),t()};return(0,mp.jsx)(tu.Modal,{title:(0,eu.__)("Rename"),onRequestClose:t,overlayClassName:"block-editor-block-rename-modal",focusOnMount:"firstContentElement",size:"small",children:(0,mp.jsx)("form",{onSubmit:b=>{b.preventDefault(),m&&h()},children:(0,mp.jsxs)(tu.__experimentalVStack,{spacing:"3",children:[(0,mp.jsx)(tu.TextControl,{value:o??a,label:(0,eu.__)("Name"),help:u?(0,eu.__)("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:g}),(0,mp.jsxs)(tu.__experimentalHStack,{justify:"right",children:[(0,mp.jsx)(tu.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:t,children:(0,eu.__)("Cancel")}),(0,mp.jsx)(tu.Button,{__next40pxDefaultSize:!0,accessibleWhenDisabled:!0,disabled:!m,variant:"primary",type:"submit",children:(0,eu.__)("Save")})]})]})})})}var ov=c(T(),1);function Hq({clientId:e}){let[t,o]=(0,gCe.useState)(!1),r=(0,hCe.useSelect)(n=>n(bCe.store).getShortcutRepresentation("core/block-editor/rename"),[]);return(0,ov.jsxs)(ov.Fragment,{children:[(0,ov.jsx)(pCe.MenuItem,{onClick:()=>{o(!0)},"aria-expanded":t,"aria-haspopup":"dialog",shortcut:r,children:(0,mCe.__)("Rename")}),t&&(0,ov.jsx)(tv,{clientId:e,onClose:()=>o(!1)})]})}var yCe=c(ce(),1);function CT(e){return{canRename:!!e&&(0,yCe.getBlockSupport)(e,"renaming",!0)}}var ou=c(T(),1),{Fill:ert,Slot:trt}=(0,wx.createSlotFill)("BlockSettingsMenuControls"),ort=({fillProps:e,clientIds:t=null})=>{let{selectedBlocks:o,selectedClientIds:r,isContentOnly:n,canToggleSelectedBlocksVisibility:i,canEdit:s}=(0,_Ce.useSelect)(b=>{let{getBlocksByClientId:v,getBlockNamesByClientId:y,getSelectedBlockClientIds:_,getBlockEditingMode:w,canEditBlock:k}=b(B),x=t!==null?t:_();return{selectedBlocks:y(x),selectedClientIds:x,isContentOnly:w(x[0])==="contentOnly",canToggleSelectedBlocksVisibility:v(x).every(S=>(0,vCe.hasBlockSupport)(S.name,"visibility",!0)),canEdit:k(x[0])}},[t]),{canLock:a}=pp(r[0]),{canRename:l}=CT(o[0]),u=r.length===1&&a&&!n,d=r.length===1&&l&&!n,f=i&&!n,p=kT(r),{isGroupable:m,isUngroupable:g}=p,h=(m||g)&&!n;return(0,ou.jsx)(trt,{fillProps:{...e,canEdit:s,selectedBlocks:o,selectedClientIds:r},children:b=>!b?.length>0&&!h&&!u?null:(0,ou.jsxs)(wx.MenuGroup,{children:[h&&(0,ou.jsx)(oCe,{...p,onClose:e?.onClose}),s&&u&&(0,ou.jsx)(Fq,{clientId:r[0]}),s&&d&&(0,ou.jsx)(Hq,{clientId:r[0]}),s&&f&&(0,ou.jsx)(wU,{clientIds:r}),b,s&&e?.count===1&&!n&&(0,ou.jsx)(cCe,{clientId:e?.firstBlockClientId,onToggle:e?.onClose})]})})};function wCe({...e}){return(0,ou.jsx)(wx.__experimentalStyleProvider,{document,children:(0,ou.jsx)(ert,{...e})})}wCe.Slot=ort;var pV=wCe;var kCe=c(F(),1),xCe=c(Y(),1),SCe=c(ue(),1),CCe=c(te(),1),mV=c(q(),1);var Uq=c(T(),1);function ECe({parentClientId:e,parentBlockType:t}){let o=(0,SCe.useViewportMatch)("medium","<"),{selectBlock:r}=(0,CCe.useDispatch)(B),n=(0,kCe.useRef)(),i=gx({ref:n,highlightParent:!0});return o?(0,Uq.jsx)(xCe.MenuItem,{...i,ref:n,icon:(0,Uq.jsx)(Nt,{icon:t.icon}),onClick:()=>r(e),children:(0,mV.sprintf)((0,mV.__)("Select parent block (%s)"),t.title)}):null}var ho=c(T(),1),rrt={className:"block-editor-block-settings-menu__popover",placement:"bottom-start"};function Wq({clientIds:e,onCopy:t,label:o,shortcut:r,eventType:n="copy",__experimentalUpdateSelection:i=!1}){let{getBlocksByClientId:s}=(0,Jg.useSelect)(B),{removeBlocks:a}=(0,Jg.useDispatch)(B),l=Sk(),u=(0,gp.useCopyToClipboard)(()=>(0,kx.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,zl.__)("Copy");return(0,ho.jsx)(ys.MenuItem,{ref:u,shortcut:r,children:d})}function Gq({clientId: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:p,isZoomOut:m,canEdit:g,canMove:h,isFirst:b,isLast:v}=(0,Jg.useSelect)(O=>{let{getBlockName:A,getBlockRootClientId:P,getPreviousBlockClientId:L,getSelectedBlockClientIds:H,getBlockAttributes:N,getBlockEditingMode:M,isZoomOut:V,canEditBlock:j,canMoveBlocks:D,getBlockIndex:z,getBlockCount:W}=G(O(B)),{getActiveBlockVariation:ee}=O(kx.store),J=P(a),U=J&&A(J);return{firstParentClientId:J,parentBlockType:J&&(ee(U,N(J))||(0,kx.getBlockType)(U)),previousBlockClientId:L(a),selectedBlockClientIds:H(),isContentOnly:M(a)==="contentOnly",isZoomOut:V(),canEdit:j(a),canMove:D(t),isFirst:z(a)===0,isLast:z(a)===W(J)-1}},[a,t]),{getBlockOrder:y,getSelectedBlockClientIds:_}=(0,Jg.useSelect)(B),{moveBlocksDown:w,moveBlocksUp:k}=(0,Jg.useDispatch)(B),x=(0,Jg.useSelect)(O=>{let{getShortcutRepresentation:A}=O(TCe.store);return{copy:A("core/block-editor/copy"),cut:A("core/block-editor/cut"),duplicate:A("core/block-editor/duplicate"),remove:A("core/block-editor/remove"),insertAfter:A("core/block-editor/insert-after"),insertBefore:A("core/block-editor/insert-before")}},[]),S=f.length>0;async function C(O){if(!r)return;let A=await O;A&&A[0]&&r(A[0],!1)}function R(){if(!r)return;let O=d||l;O||(O=y()[0]);let A=S&&_().length===0;r(O,A)}let I=!f?.includes(l)&&!!l;return(0,ho.jsx)(W0e,{clientIds:t,__experimentalUpdateSelection:!r,children:({canCopyStyles:O,canDuplicate:A,canInsertBlock:P,canRemove:L,onDuplicate:H,onInsertAfter:N,onInsertBefore:M,onRemove:V,onCopy:j,onPasteStyles:D})=>!L&&!A&&!P&&p?null:(0,ho.jsx)(ys.DropdownMenu,{icon:ha,label:(0,zl.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:rrt,noIcons:!0,...i,children:({onClose:W})=>(0,ho.jsxs)(ho.Fragment,{children:[(0,ho.jsxs)(ys.MenuGroup,{children:[(0,ho.jsx)(rV.Slot,{fillProps:{onClose:W}}),I&&(0,ho.jsx)(ECe,{parentClientId:l,parentBlockType:u}),h&&n&&(0,ho.jsxs)(ho.Fragment,{children:[(0,ho.jsx)(ys.MenuItem,{icon:db,disabled:b,accessibleWhenDisabled:!0,onClick:(0,gp.pipe)(W,()=>{k(t,l)}),children:(0,zl.__)("Move up")}),(0,ho.jsx)(ys.MenuItem,{icon:Rn,disabled:v,accessibleWhenDisabled:!0,onClick:(0,gp.pipe)(W,()=>{w(t,l)}),children:(0,zl.__)("Move down")})]}),g&&s===1&&(0,ho.jsx)(q0e,{clientId:a}),!p&&(0,ho.jsx)(Wq,{clientIds:t,onCopy:j,shortcut:x.copy}),L&&!p&&(0,ho.jsx)(Wq,{clientIds:t,label:(0,zl.__)("Cut"),eventType:"cut",shortcut:x.cut,__experimentalUpdateSelection:!r}),A&&(0,ho.jsx)(ys.MenuItem,{onClick:(0,gp.pipe)(W,H,C),shortcut:x.duplicate,children:(0,zl.__)("Duplicate")}),P&&!m&&(0,ho.jsxs)(ho.Fragment,{children:[(0,ho.jsx)(ys.MenuItem,{onClick:(0,gp.pipe)(W,M),shortcut:x.insertBefore,children:(0,zl.__)("Add before")}),(0,ho.jsx)(ys.MenuItem,{onClick:(0,gp.pipe)(W,N),shortcut:x.insertAfter,children:(0,zl.__)("Add after")})]}),g&&s===1&&(0,ho.jsx)(eV.Slot,{fillProps:{clientId:a,onClose:W}})]}),O&&!p&&(0,ho.jsxs)(ys.MenuGroup,{children:[(0,ho.jsx)(Wq,{clientIds:t,onCopy:j,label:(0,zl.__)("Copy styles"),eventType:"copyStyles"}),g&&(0,ho.jsx)(ys.MenuItem,{onClick:D,children:(0,zl.__)("Paste styles")})]}),!p&&(0,ho.jsx)(pV.Slot,{fillProps:{onClose:W,count:s,firstBlockClientId:a},clientIds:t}),typeof o=="function"?o({onClose:W}):gV.Children.map(ee=>(0,gV.cloneElement)(ee,{onClose:W})),L&&(0,ho.jsx)(ys.MenuGroup,{children:(0,ho.jsx)(ys.MenuItem,{onClick:(0,gp.pipe)(W,V,R),shortcut:x.remove,children:(0,zl.__)("Delete")})})]})})})}var RCe=Gq;var BCe=c(Y(),1),nrt=(0,BCe.createSlotFill)(Symbol("NoteIconToolbarSlotFill")),hV=nrt;var xx=c(T(),1);function irt({clientIds:e,...t}){return(0,xx.jsxs)(bV.ToolbarGroup,{children:[(0,xx.jsx)(hV.Slot,{}),(0,xx.jsx)(bV.ToolbarItem,{children:o=>(0,xx.jsx)(RCe,{clientIds:e,toggleProps:o,...t})})]})}var yV=irt;var vV=c(Y(),1),ICe=c(q(),1),_V=c(te(),1);var $q=c(T(),1);function PCe({clientIds:e}){let t=e.length===1?e[0]:void 0,o=(0,_V.useSelect)(n=>!!t&&n(B).getBlockMode(t)==="html",[t]),{toggleBlockMode:r}=(0,_V.useDispatch)(B);return o?(0,$q.jsx)(vV.ToolbarGroup,{children:(0,$q.jsx)(vV.ToolbarButton,{onClick:()=>{r(t)},children:(0,ICe.__)("Edit visually")})}):null}var wV=c(Y(),1),_i=c(F(),1),MCe=c(te(),1),NCe=c(Mt(),1),Kq=c(Lt(),1),LCe=c(pl(),1),DCe=c(wo(),1);var Yq=c(T(),1);function srt(e){let t="toolbarItem";return!e.some(o=>!(t in o.dataset))}function OCe(e){return Array.from(e.querySelectorAll("[data-toolbar-item]:not([disabled])"))}function ACe(e){return e.contains(e.ownerDocument.activeElement)}function art(e){let[t]=Kq.focus.tabbable.find(e);t&&t.focus({preventScroll:!0})}function lrt(e){let[o,r]=(0,_i.useState)(!0),n=(0,_i.useCallback)(()=>{let i=Kq.focus.tabbable.find(e.current),s=srt(i);s||(0,NCe.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,_i.useLayoutEffect)(()=>{let i=new window.MutationObserver(n);return i.observe(e.current,{childList:!0,subtree:!0}),()=>i.disconnect()},[n,o,e]),o}function crt({toolbarRef:e,focusOnMount:t,isAccessibleToolbar:o,defaultIndex:r,onIndexChange:n,shouldUseKeyboardFocusShortcut:i,focusEditorOnEscape:s}){let[a]=(0,_i.useState)(t),[l]=(0,_i.useState)(r),{getLastFocus:u,getSelectedBlockClientId:d}=G((0,MCe.useSelect)(B)),{refsMap:f}=(0,_i.useContext)(Rc),p=(0,_i.useCallback)(()=>{art(e.current)},[e]);(0,LCe.useShortcut)("core/block-editor/focus-toolbar",()=>{i&&p()}),(0,_i.useEffect)(()=>{a&&p()},[o,a,p]),(0,_i.useEffect)(()=>{let g=e.current,h=0;return!a&&!ACe(g)&&(h=window.requestAnimationFrame(()=>{let b=OCe(g),v=l||0;b[v]&&ACe(g)&&b[v].focus({preventScroll:!0})})),()=>{if(window.cancelAnimationFrame(h),!n||!g)return;let v=OCe(g).findIndex(y=>y.tabIndex===0);n(v)}},[l,a,n,e]),(0,_i.useEffect)(()=>{if(!s)return;let g=e.current,h=b=>{if(b.keyCode!==DCe.ESCAPE)return;let v=u()?.current??f.get(d());v&&(b.preventDefault(),v.focus())};return g.addEventListener("keydown",h),()=>{g.removeEventListener("keydown",h)}},[s,u,d,f,e])}function Sx({children:e,focusOnMount:t,focusEditorOnEscape:o=!1,shouldUseKeyboardFocusShortcut:r=!0,__experimentalInitialIndex:n,__experimentalOnIndexChange:i,orientation:s="horizontal",...a}){let l=(0,_i.useRef)(),u=lrt(l);return crt({toolbarRef:l,focusOnMount:t,defaultIndex:n,onIndexChange:i,isAccessibleToolbar:u,shouldUseKeyboardFocusShortcut:r,focusEditorOnEscape:o}),u?(0,Yq.jsx)(wV.Toolbar,{label:a["aria-label"],ref:l,orientation:s,...a,children:e}):(0,Yq.jsx)(wV.NavigableMenu,{orientation:s,role:"toolbar",ref:l,...a,children:e})}var VCe=c(te(),1),kV=c(ce(),1);function xV(){return(0,VCe.useSelect)(t=>{let{getBlockEditingMode:o,getBlockName:r,getBlockSelectionStart:n}=t(B),i=n(),s=i&&(0,kV.getBlockType)(r(i));return s&&(0,kV.hasBlockSupport)(s,"__experimentalToolbar",!0)&&o(i)!=="disabled"},[])}var eh=c(Y(),1),FCe=c(q(),1),zCe=c(ce(),1),jCe=c(F(),1),SV=c(te(),1);var Cx=c(T(),1),qq=[],urt=6,drt={placement:"bottom-start"};function HCe({clientId:e}){let{categories:t,currentPatternName:o,patterns:r}=(0,SV.useSelect)(a=>{let{getBlockAttributes:l,getBlockRootClientId:u,__experimentalGetAllowedPatterns:d}=a(B),f=l(e),p=f?.metadata?.categories||qq,m=u(e),g=p.length>0?d(m):qq;return{categories:p,currentPatternName:f?.metadata?.patternName,patterns:g}},[e]),{replaceBlocks:n}=(0,SV.useDispatch)(B),i=(0,jCe.useMemo)(()=>t.length===0||!r||r.length===0?qq: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,urt),[t,o,r]);if(i.length<2)return null;let s=a=>{let l=(a.blocks??[]).map(u=>(0,zCe.cloneBlock)(u));l[0].attributes.metadata={...l[0].attributes.metadata,categories:t},n(e,l)};return(0,Cx.jsx)(eh.Dropdown,{popoverProps:drt,renderToggle:({onToggle:a,isOpen:l})=>(0,Cx.jsx)(eh.ToolbarGroup,{children:(0,Cx.jsx)(eh.ToolbarButton,{onClick:()=>a(!l),"aria-expanded":l,children:(0,FCe.__)("Change design")})}),renderContent:()=>(0,Cx.jsx)(eh.__experimentalDropdownContentWrapper,{className:"block-editor-block-toolbar-change-design-content-wrapper",paddingSize:"none",children:(0,Cx.jsx)(_d,{blockPatterns:i,onClickPattern:s,showTitlesAsTooltip:!0})})})}var ru=c(Y(),1),KCe=c(q(),1),RV=c(te(),1);var TV=c(te(),1),oh=c(ce(),1),YCe=c(F(),1);var Zq=c(CV(),1),WCe=c(q(),1);function GCe(e,t){for(let o of new Zq.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 EV(e)}function th(e,t,o){let r=new Zq.default(e);return t&&r.remove("is-style-"+t.name),r.add("is-style-"+o.name),r.value}function $Ce(e){return!e||e.length===0?[]:EV(e)?e:[{name:"default",label:(0,WCe._x)("Default","block style"),isDefault:!0},...e]}function EV(e){return e?.find(t=>t.isDefault)}function frt(e,t){return(0,YCe.useMemo)(()=>{let o=t?.example,r=t?.name;if(o&&r)return(0,oh.getBlockFromExample)(r,{attributes:o.attributes,innerBlocks:o.innerBlocks,innerContent:o.innerContent});if(e)return(0,oh.cloneBlock)(e)},[e,t?.example,t?.name])}function Ex({clientId:e,onSwitch:t}){let o=p=>{let{getBlock:m}=p(B),g=m(e);if(!g)return{};let h=(0,oh.getBlockType)(g.name),{getBlockStyles:b}=p(oh.store);return{block:h?.example?null:g,blockType:h,styles:b(g.name),className:g.attributes.className||""}},{styles:r,block:n,blockType:i,className:s}=(0,TV.useSelect)(o,[e]),{updateBlockAttributes:a}=(0,TV.useDispatch)(B),l=$Ce(r),u=GCe(l,s),d=frt(n,i);return{onSelect:p=>{let m=th(s,u,p);a(e,{className:m}),t()},stylesToRender:l,activeStyle:u,genericPreviewBlock:d,className:s}}var rh=c(T(),1),{getVariationStyle:prt}=G(Lo),mrt=(0,rh.jsxs)(ru.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:[(0,rh.jsx)(ru.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,rh.jsx)(ru.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 grt({clientId:e}){let{stylesToRender:t,activeStyle:o,className:r}=Ex({clientId:e}),{updateBlockAttributes:n}=(0,RV.useDispatch)(B),{globalSettings:i,globalStyles:s,blockName:a}=(0,RV.useSelect)(d=>{let f=d(B).getSettings();return{globalSettings:f.__experimentalFeatures,globalStyles:f[Ps],blockName:d(B).getBlockName(e)}},[e]),l=o?.name?prt({settings:i,styles:s},a,o.name)?.color?.background:void 0;return!t||t.length===0?null:(0,rh.jsx)(ru.ToolbarGroup,{children:(0,rh.jsx)(ru.ToolbarButton,{onClick:()=>{let f=(t.findIndex(g=>g.name===o.name)+1)%t.length,p=t[f],m=th(r,o,p);n(e,{className:m})},label:(0,KCe.__)("Shuffle styles"),children:(0,rh.jsx)(ru.Icon,{icon:mrt,style:{fill:l||"transparent"}})})})}var qCe=grt;var PV=c(Y(),1),Xq=c(q(),1),ZCe=c(te(),1),OV=c(ce(),1);var BV=c(te(),1);function IV(e){let{isSectionBlock:t,isWithinSection:o,isWithinEditedSection:r,isEditingContentOnlySection:n,editedContentOnlySection:i}=(0,BV.useSelect)(u=>{let{isSectionBlock:d,getParentSectionBlock:f,getEditedContentOnlySection:p,isWithinEditedContentOnlySection:m}=G(u(B)),g=p();return{isSectionBlock:d(e),isWithinSection:d(e)||!!f(e),isWithinEditedSection:m(e),isEditingContentOnlySection:g===e,editedContentOnlySection:g}},[e]),s=(0,BV.useDispatch)(B),{editContentOnlySection:a,stopEditingContentOnlySection:l}=G(s);return{isSectionBlock:t,isWithinSection:o,isWithinEditedSection:r,isEditingContentOnlySection:n,editedContentOnlySection:i,editContentOnlySection:a,stopEditingContentOnlySection:l}}var Qq=c(T(),1);function XCe({clientId:e}){let{isSectionBlock:t,isEditingContentOnlySection:o,editContentOnlySection:r,stopEditingContentOnlySection:n}=IV(e),i=(0,ZCe.useSelect)(l=>{if(!e)return null;let{getBlockName:u}=l(B),d=u(e);return d?{name:d}:null},[e]);if(!e||!t&&!o||(0,OV.isReusableBlock)(i)||(0,OV.isTemplatePart)(i))return null;let s=o;return(0,Qq.jsx)(PV.ToolbarGroup,{children:(0,Qq.jsx)(PV.ToolbarButton,{onClick:()=>{s?n():r(e)},children:s?(0,Xq.__)("Exit pattern"):(0,Xq.__)("Edit pattern")})})}var S1e=c(Y(),1),C1e=c(q(),1),E1e=c(te(),1);var IT=c(ce(),1),T1e=c(B_(),1);var Rd=c(q(),1),Bd=c(Y(),1),ih=c(ce(),1),zV=c(te(),1);var n1e=c(q(),1),TT=c(Y(),1),MV=c(ce(),1),NV=c(F(),1);var QCe=c(Y(),1),JCe=c(ue(),1);var ET=c(T(),1);function nh({blocks:e,placement:t="right-start",offset:o=16,anchor:r}){return(0,JCe.useViewportMatch)("medium","<")?null:(0,ET.jsx)("div",{className:"block-editor-block-switcher__popover-preview-container",children:(0,ET.jsx)(QCe.Popover,{className:"block-editor-block-switcher__popover-preview",placement:t,focusOnMount:!1,offset:o,anchor:r,children:(0,ET.jsx)("div",{className:"block-editor-block-switcher__preview",children:(0,ET.jsx)(Ks,{viewportWidth:601,blocks:e})})})})}var e1e=c(Y(),1),Tx=c(ce(),1),t1e=c(te(),1),AV=c(F(),1);var hp=c(T(),1),hrt={};function o1e({clientIds:e,blocks:t}){let{activeBlockVariation:o,blockVariationTransformations:r}=(0,t1e.useSelect)(i=>{let{getBlockAttributes:s,canRemoveBlocks:a}=i(B),{getActiveBlockVariation:l,getBlockVariations:u}=i(Tx.store),d=a(e);if(t.length!==1||!d)return hrt;let[f]=t;return{blockVariationTransformations:u(f.name,"transform"),activeBlockVariation:l(f.name,s(f.clientId))}},[e,t]);return(0,AV.useMemo)(()=>r?.filter(({name:i})=>i!==o?.name),[r,o])}var brt=({transformations:e,onSelect:t,blocks:o})=>{let[r,n]=(0,AV.useState)();return(0,hp.jsxs)(hp.Fragment,{children:[r&&(0,hp.jsx)(nh,{blocks:(0,Tx.cloneBlock)(o[0],e.find(({name:i})=>i===r).attributes)}),e?.map(i=>(0,hp.jsx)(yrt,{item:i,onSelect:t,setHoveredTransformItemName:n},i.name))]})};function yrt({item:e,onSelect:t,setHoveredTransformItemName:o}){let{name:r,icon:n,title:i}=e;return(0,hp.jsxs)(e1e.MenuItem,{className:(0,Tx.getBlockMenuDefaultClassName)(r),onClick:s=>{s.preventDefault(),t(r)},onMouseLeave:()=>o(null),onMouseEnter:()=>o(r),onFocus:()=>o(r),onBlur:()=>o(null),children:[(0,hp.jsx)(Nt,{icon:n,showColors:!0}),i]})}var r1e=brt;var oa=c(T(),1);function vrt(e){let t={"core/paragraph":1,"core/heading":2,"core/list":3,"core/quote":4},o=(0,NV.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 _rt=({className:e,possibleBlockTransformations:t,possibleBlockVariationTransformations:o,onSelect:r,onSelectVariation:n,blocks:i})=>{let[s,a]=(0,NV.useState)(),{priorityTextTransformations:l,restTransformations:u}=vrt(t),d=l.length&&u.length,f=!!u.length&&(0,oa.jsx)(wrt,{restTransformations:u,onSelect:r,setHoveredTransformItem:a});return(0,oa.jsxs)(oa.Fragment,{children:[(0,oa.jsxs)(TT.MenuGroup,{label:(0,n1e.__)("Transform to"),className:e,children:[s&&(0,oa.jsx)(nh,{blocks:(0,MV.switchToBlockType)(i,s.name,s.variationName)}),!!o?.length&&(0,oa.jsx)(r1e,{transformations:o,blocks:i,onSelect:n}),l.map(p=>(0,oa.jsx)(i1e,{item:p,onSelect:r,setHoveredTransformItem:a},p.id||p.name)),!d&&f]}),!!d&&(0,oa.jsx)(TT.MenuGroup,{className:e,children:f})]})};function wrt({restTransformations:e,onSelect:t,setHoveredTransformItem:o}){return e.map(r=>(0,oa.jsx)(i1e,{item:r,onSelect:t,setHoveredTransformItem:o},r.id||r.name))}function i1e({item:e,onSelect:t,setHoveredTransformItem:o}){let{name:r,icon:n,title:i,isDisabled:s}=e;return(0,oa.jsxs)(TT.MenuItem,{className:(0,MV.getBlockMenuDefaultClassName)(r),onClick:a=>{a.preventDefault(),t(r,e.variationName)},disabled:s,onMouseLeave:()=>o(null),onMouseEnter:()=>o(e),onFocus:()=>o(e),onBlur:()=>o(null),children:[(0,oa.jsx)(Nt,{icon:n,showColors:!0}),i]})}var s1e=_rt;var c1e=c(q(),1),u1e=c(Y(),1),DV=c(F(),1);var LV=c(Y(),1);var Rx=c(T(),1),a1e=()=>{};function l1e({stylesToRender:e,activeStyle:t,onSelect:o=a1e,onHoverStyle:r=a1e}){return!e||e.length===0?null:(0,Rx.jsx)(Rx.Fragment,{children:e.map(n=>{let i=n.label||n.name;return(0,Rx.jsx)(LV.MenuItem,{icon:t.name===n.name?Os:null,onClick:()=>o(n),onFocus:()=>r(n),onBlur:()=>r(null),onMouseEnter:()=>r(n),onMouseLeave:()=>r(null),children:(0,Rx.jsx)(LV.__experimentalText,{as:"span",limit:18,ellipsizeMode:"tail",truncate:!0,children:i})},n.name)})})}var RT=c(T(),1);function VV({hoveredBlock:e,onSwitch:t}){let{clientId:o}=e,[r,n]=(0,DV.useState)(null),{onSelect:i,stylesToRender:s,activeStyle:a,genericPreviewBlock:l,className:u}=Ex({clientId:o,onSwitch:t}),d=(0,DV.useMemo)(()=>{if(!r||!l)return null;let f=th(u,a,r);return[{...l,attributes:{...l.attributes||{},className:f}}]},[r,l,u,a]);return!s||s.length===0?null:(0,RT.jsxs)(u1e.MenuGroup,{label:(0,c1e.__)("Styles"),className:"block-editor-block-switcher__styles__menugroup",children:[d&&(0,RT.jsx)(nh,{blocks:d}),(0,RT.jsx)(l1e,{stylesToRender:s,activeStyle:a,onSelect:i,onHoverStyle:n})]})}var eZ=c(q(),1),h1e=c(F(),1),FV=c(ue(),1);var bp=c(Y(),1);var p1e=c(F(),1),m1e=c(ce(),1);var d1e=c(ce(),1),Jq=(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=Jq(s,t,o);if(a)return a}}},f1e=(e,t)=>{let o=(0,d1e.getBlockAttributesNamesByRole)(e,"content");return o?.length?o.reduce((r,n)=>(t[n]&&(r[n]=t[n]),r),{}):t};var krt=(e,t)=>{let o=f1e(t.name,t.attributes);e.attributes={...e.attributes,...o}},xrt=(e,t)=>{let o=t.map(n=>(0,m1e.cloneBlock)(n)),r=new Set;for(let n of e){let i=!1;for(let s of o){let a=Jq(s,n.name,r);if(a){i=!0,r.add(a.clientId),krt(a,n);break}}if(!i)return}return o},Srt=(e,t)=>(0,p1e.useMemo)(()=>e.reduce((o,r)=>{let n=xrt(t,r.blocks);return n&&o.push({...r,transformedBlocks:n}),o},[]),[e,t]),g1e=Srt;var wi=c(T(),1);function Crt({blocks:e,patterns:t,onSelect:o}){let[r,n]=(0,h1e.useState)(!1),i=g1e(t,e);return i.length?(0,wi.jsxs)(bp.MenuGroup,{className:"block-editor-block-switcher__pattern__transforms__menugroup",children:[r&&(0,wi.jsx)(Ert,{patterns:i,onSelect:o}),(0,wi.jsx)(bp.MenuItem,{onClick:s=>{s.preventDefault(),n(!r)},icon:hr,children:(0,eZ.__)("Patterns")})]}):null}function Ert({patterns:e,onSelect:t}){let o=(0,FV.useViewportMatch)("medium","<");return(0,wi.jsx)("div",{className:"block-editor-block-switcher__popover-preview-container",children:(0,wi.jsx)(bp.Popover,{className:"block-editor-block-switcher__popover-preview",placement:o?"bottom":"right-start",offset:16,children:(0,wi.jsx)("div",{className:"block-editor-block-switcher__preview is-pattern-list-preview",children:(0,wi.jsx)(Trt,{patterns:e,onSelect:t})})})})}function Trt({patterns:e,onSelect:t}){return(0,wi.jsx)(bp.Composite,{role:"listbox",className:"block-editor-block-switcher__preview-patterns-container","aria-label":(0,eZ.__)("Patterns list"),children:e.map(o=>(0,wi.jsx)(b1e,{pattern:o,onSelect:t},o.name))})}function b1e({pattern:e,onSelect:t}){let o="block-editor-block-switcher__preview-patterns-container",r=(0,FV.useInstanceId)(b1e,`${o}-list__item-description`);return(0,wi.jsxs)("div",{className:`${o}-list__list-item`,children:[(0,wi.jsxs)(bp.Composite.Item,{render:(0,wi.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,wi.jsx)(Ks,{blocks:e.transformedBlocks,viewportWidth:e.viewportWidth||500}),(0,wi.jsx)("div",{className:`${o}-list__item-title`,children:e.title})]}),!!e.description&&(0,wi.jsx)(bt,{id:r,children:e.description})]})}var y1e=Crt;var La=c(T(),1);function Rrt({onClose:e,clientIds:t}){let{replaceBlocks:o,multiSelect:r,updateBlockAttributes:n}=(0,zV.useDispatch)(B),{possibleBlockTransformations:i,patterns:s,blocks:a,isUsingBindings:l,canRemove:u,hasBlockStyles:d}=(0,zV.useSelect)(C=>{let{getBlockAttributes:R,getBlocksByClientId:E,getBlockRootClientId:I,getBlockTransformItems:O,__experimentalGetPatternTransformItems:A,canRemoveBlocks:P,getBlockName:L}=C(B),{getBlockStyles:H}=C(ih.store),N=I(t[0]),M=E(t),V=t.length===1,j=V&&L(t[0]),D=V&&!!H(j)?.length;return{blocks:M,possibleBlockTransformations:O(M,N),patterns:A(M,N),isUsingBindings:t.every(z=>!!R(z)?.metadata?.bindings),canRemove:P(t),hasBlockStyles:D}},[t]),f=o1e({clientIds:t,blocks:a});function p(C){C.length>1&&r(C[0].clientId,C[C.length-1].clientId)}function m(C,R){let E=(0,ih.switchToBlockType)(a,C,R);o(t,E),p(E)}function g(C){n(a[0].clientId,{...f.find(({name:R})=>R===C).attributes})}function h(C){o(t,C),p(C)}let b=a.length===1,v=b&&((0,ih.isTemplatePart)(a[0])||(0,ih.isReusableBlock)(a[0])),y=!!i?.length&&u&&!v,_=!!f?.length,w=!!s?.length&&u,k=y||_;if(!(d||k||w))return(0,La.jsx)("p",{className:"block-editor-block-switcher__no-transforms",children:(0,Rd.__)("No transforms.")});let S=b?(0,Rd._x)("This block is connected.","block toolbar button label and description"):(0,Rd._x)("These blocks are connected.","block toolbar button label and description");return(0,La.jsxs)("div",{className:"block-editor-block-switcher__container",children:[w&&(0,La.jsx)(y1e,{blocks:a,patterns:s,onSelect:C=>{h(C),e()}}),k&&(0,La.jsx)(s1e,{className:"block-editor-block-switcher__transforms__menugroup",possibleBlockTransformations:i,possibleBlockVariationTransformations:f,blocks:a,onSelect:(C,R)=>{m(C,R),e()},onSelectVariation:C=>{g(C),e()}}),d&&(0,La.jsx)(VV,{hoveredBlock:a[0],onSwitch:e}),l&&(0,La.jsx)(Bd.MenuGroup,{children:(0,La.jsx)(Bd.__experimentalText,{className:"block-editor-block-switcher__binding-indicator",children:S})})]})}var Brt=({children:e,clientIds:t,label:o,text:r})=>{let i=t.length===1?(0,Rd.__)("Change block type or style"):(0,Rd.sprintf)((0,Rd._n)("Change type of %d block","Change type of %d blocks",t.length),t.length);return(0,La.jsx)(Bd.ToolbarGroup,{children:(0,La.jsx)(Bd.ToolbarItem,{children:s=>(0,La.jsx)(Bd.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,La.jsx)(Rrt,{onClose:a,clientIds:t})})})})},v1e=Brt;var _1e=c(q(),1),Ix=c(Y(),1);var Bx=c(T(),1);function w1e({clientIds:e,children:t,label:o,text:r}){return(0,Bx.jsx)(Ix.ToolbarGroup,{children:(0,Bx.jsx)(Ix.ToolbarItem,{children:n=>(0,Bx.jsx)(Ix.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,_1e.__)("Change block style"),...n},menuProps:{orientation:"both"},children:({onClose:i})=>(0,Bx.jsx)("div",{className:"block-editor-block-switcher__container",children:(0,Bx.jsx)(VV,{hoveredBlock:{clientId:e[0]},onSwitch:i})})})})})}var Px=c(Y(),1),BT=c(q(),1),jV=c(F(),1),k1e=c(te(),1);var yp=c(T(),1);function Irt({clientIds:e,blockTitle:t}){let o=(0,k1e.useSelect)(i=>{let{getBlockAttributes:s}=i(B);return s(e?.[0])?.metadata?.name},[e]),r=e.length===1,n;return r&&o?n=(0,BT.sprintf)((0,BT.__)('This %1$s is editable using the "%2$s" override.'),t.toLowerCase(),o):n=(0,BT.__)("These blocks are editable using overrides."),(0,yp.jsx)(Px.__experimentalText,{children:n})}function x1e({icon:e,clientIds:t,blockTitle:o,label:r}){let[n,i]=(0,jV.useState)(!1),s=(0,jV.useRef)();return(0,yp.jsxs)(yp.Fragment,{children:[(0,yp.jsx)(Px.ToolbarButton,{ref:s,className:"block-editor-block-toolbar__pattern-overrides-indicator",icon:e,label:r,onClick:()=>i(!n),"aria-expanded":n}),n&&(0,yp.jsx)(Px.Popover,{anchor:s.current,onClose:()=>i(!1),placement:"bottom-start",offset:16,className:"block-editor-block-toolbar__pattern-overrides-popover",children:(0,yp.jsx)(Irt,{clientIds:t,blockTitle:o})})]})}var Ox=c(T(),1);function Prt({select:e,clientIds:t}){let{getBlockName:o,getBlockAttributes:r,getBlockParentsByBlockName:n,canRemoveBlocks:i,getTemplateLock:s,getBlockEditingMode:a,canEditBlock:l,isSectionBlock:u}=G(e(B)),{getBlockStyles:d}=e(IT.store),f=t.some(E=>s(E)==="contentOnly"),p=t.length===1,m=p&&o(t[0]),g=p&&!!d(m)?.length,h=t.some(E=>!!r(E)?.metadata?.patternName&&u(E)),b=t.every(E=>B0(r(E)?.metadata?.bindings)),v=t.every(E=>n(E,"core/block",!0).length>0),y=i(t),_=t.every(E=>l(E)),w=a(t[0]),k=w==="default",x=w==="contentOnly",C=!h&&k&&(g||y)&&!f&&_,R=b&&v;return C?"switcher":x&&g&&!b&&_?"styles-only":R?"pattern-overrides":"default"}function Ort({select:e,clientIds:t}){let{getBlockName:o,getBlockAttributes:r,getBlock:n,isSectionBlock:i}=G(e(B)),s=t.length===1,a=t[0],l=r(a);if(s&&l?.metadata?.patternName&&i(a))return ol;let u=o(a),d=(0,IT.getBlockType)(u);if(s){let{getActiveBlockVariation:m}=e(IT.store);return m(u,l,void 0,n?.(a)?.innerContent)?.icon||d?.icon}let f=t.map(m=>o(m));return new Set(f).size===1?d?.icon:pb}function R1e({clientIds:e,isSynced:t}){let{icon:o,showIconLabels:r,variant:n}=(0,E1e.useSelect)(f=>({icon:Ort({select:f,clientIds:e}),showIconLabels:f(T1e.store).get("core","showIconLabels"),variant:Prt({select:f,clientIds:e})}),[e]),i=ci({clientId:e?.[0],maximumLength:35}),s=e.length===1,a=s&&t&&!r,l=s?i:(0,C1e.__)("Multiple blocks selected"),u=a&&i?i:void 0,d=(0,Ox.jsx)(Nt,{className:"block-editor-block-toolbar__block-icon",icon:o});return n==="switcher"?(0,Ox.jsx)(v1e,{clientIds:e,label:l,text:u,children:d}):n==="styles-only"?(0,Ox.jsx)(w1e,{clientIds:e,label:l,text:u,children:d}):n==="pattern-overrides"?(0,Ox.jsx)(x1e,{icon:d,clientIds:e,blockTitle:i,label:l}):(0,Ox.jsx)(S1e.ToolbarButton,{disabled:!0,className:"block-editor-block-toolbar__block-icon-button",title:l,icon:d,text:u})}var $t=c(T(),1);function oZ({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:p,isSectionContainer:m,hasContentOnlyLocking:g,showShuffleButton:h,showSlots:b,showGroupButtons:v,showLockButtons:y,showBlockVisibilityButton:_,showSwitchSectionStyleButton:w,areSelectedBlocksHiddenOnViewport:k,showStyleStateSlot:x,canEdit:S}=(0,I1e.useSelect)(N=>{let{canEditBlock:M}=N(B),{getBlockName:V,getBlockMode:j,getBlockParents:D,getSelectedBlockClientIds:z,isBlockValid:W,getBlockEditingMode:ee,getBlockAttributes:J,getSettings:U,getTemplateLock:Q,getParentSectionBlock:Z,isZoomOut:K,isSectionBlock:X,isBlockHiddenAtViewport:oe,getSelectedBlockStyleState:ie,isResponsiveEditing:se}=G(N(B)),be=z(),pe=be[0],ke=D(pe),Pe=Z(pe)??ke[ke.length-1],_e=V(Pe),ve=(0,vp.getBlockType)(_e),Se=ee(pe),fe=Se==="default",Ce=V(pe),ne=be.every(Tt=>W(Tt)),ae=be.every(Tt=>j(Tt)==="visual"),Ee=be.every(Tt=>!!J(Tt)?.metadata?.bindings),he=be.some(Tt=>Q(Tt)==="contentOnly"),Ae=K(),et=X(pe),Je=M(pe),_t=Je&&(Ae||et),Et=U()?.[tl]?.toLowerCase()||"desktop",mt=be.length>0&&be.every(Tt=>oe(Tt,Et)),oo=se()&&vi(ie(pe));return{blockClientId:pe,blockClientIds:be,isDefaultEditingMode:fe,blockType:pe&&(0,vp.getBlockType)(Ce),shouldShowVisualToolbar:ne&&ae,toolbarKey:`${pe}${Pe}`,showParentSelector:!Ae&&ve&&Se!=="contentOnly"&&ee(Pe)!=="disabled"&&(0,vp.hasBlockSupport)(ve,"__experimentalParentSelector",!0)&&be.length===1,isUsingBindings:Ee,isSectionContainer:et,hasContentOnlyLocking:he,showShuffleButton:Ae,showSlots:!Ae&&!oo,showStyleStateSlot:!Ae&&oo,showGroupButtons:!Ae,showLockButtons:!Ae,showBlockVisibilityButton:!Ae,showSwitchSectionStyleButton:_t,areSelectedBlocksHiddenOnViewport:mt,canEdit:Je}},[]),C=(0,tZ.useRef)(null),R=(0,tZ.useRef)(),E=gx({ref:R}),I=!(0,P1e.useViewportMatch)("medium","<");if(!xV())return null;let A=s.length>1,P=(0,vp.isReusableBlock)(l)||(0,vp.isTemplatePart)(l),L=$("block-editor-block-contextual-toolbar",{"has-parent":f}),H=$("block-editor-block-toolbar",{"is-synced":P,"is-connected":p});return(0,$t.jsx)(Sx,{focusEditorOnEscape:!0,className:L,"aria-label":(0,B1e.__)("Block tools"),variant:n==="toolbar"?void 0:n,focusOnMount:t,__experimentalInitialIndex:o,__experimentalOnIndexChange:r,children:(0,$t.jsxs)("div",{ref:C,className:H,children:[f&&!A&&I&&(0,$t.jsx)(_0e,{}),(d||A)&&(0,$t.jsx)("div",{ref:R,...E,children:(0,$t.jsxs)(O1e.ToolbarGroup,{className:"block-editor-block-toolbar__block-controls",children:[(0,$t.jsx)(R1e,{clientIds:s,isSynced:P}),a&&_&&(0,$t.jsx)(vU,{clientIds:s}),!A&&a&&y&&(0,$t.jsx)(zq,{clientId:i}),(0,$t.jsx)(K5,{clientIds:s,hideDragHandle:e})]})}),!k&&!g&&d&&A&&v&&(0,$t.jsx)(Nq,{}),!A&&S&&(0,$t.jsx)(XCe,{clientId:s[0]}),!k&&h&&(0,$t.jsx)(HCe,{clientId:s[0]}),!k&&w&&(0,$t.jsx)(qCe,{clientId:s[0]}),!k&&d&&(0,$t.jsxs)($t.Fragment,{children:[!m&&(0,$t.jsxs)($t.Fragment,{children:[b&&(0,$t.jsxs)($t.Fragment,{children:[(0,$t.jsx)(Ko.Slot,{group:"parent",className:"block-editor-block-toolbar__slot"}),(0,$t.jsx)(Ko.Slot,{group:"block",className:"block-editor-block-toolbar__slot"}),(0,$t.jsx)(Ko.Slot,{className:"block-editor-block-toolbar__slot"}),(0,$t.jsx)(Ko.Slot,{group:"inline",className:"block-editor-block-toolbar__slot"})]}),x&&(0,$t.jsx)(Ko.Slot,{group:"style-state",className:"block-editor-block-toolbar__slot"})]}),b&&(0,$t.jsxs)($t.Fragment,{children:[(0,$t.jsx)(Ko.Slot,{group:"other",className:"block-editor-block-toolbar__slot"}),(0,$t.jsx)(Q5.Slot,{})]})]}),(0,$t.jsx)(PCe,{clientIds:s}),(0,$t.jsx)(yV,{clientIds:s})]})},u)}function A1e({hideDragHandle:e,variant:t}){return(0,$t.jsx)(oZ,{hideDragHandle:e,variant:t,focusOnMount:void 0,__experimentalInitialIndex:void 0,__experimentalOnIndexChange:void 0})}var rZ=c(T(),1);function L1e({clientId:e,isTyping:t,__unstableContentRef:o}){let{capturingClientId:r,isInsertionPointVisible:n,lastClientId:i}=F5(e),s=(0,Ax.useRef)();(0,Ax.useEffect)(()=>{s.current=void 0},[e]);let{stopTyping:a}=(0,M1e.useDispatch)(B),l=(0,Ax.useRef)(!1);(0,N1e.useShortcut)("core/block-editor/focus-toolbar",()=>{l.current=!0,a(!0)}),(0,Ax.useEffect)(()=>{l.current=!1});let u=r||e,d=V5({contentElement:o?.current,clientId:u});return!t&&(0,rZ.jsx)(Fy,{clientId:u,bottomClientId:i,className:$("block-editor-block-list__block-popover",{"is-insertion-point-visible":n}),resize:!1,...d,__unstableContentRef:o,children:(0,rZ.jsx)(oZ,{focusOnMount:l.current,__experimentalInitialIndex:s.current,__experimentalOnIndexChange:f=>{s.current=f},variant:"toolbar"})})}var HV=c(te(),1),UV=c(F(),1);var D1e=c(Y(),1);var V1e=c(q(),1),F1e=c(T(),1);function Art({onClick:e}){return(0,F1e.jsx)(D1e.Button,{variant:"primary",icon:Ns,size:"compact",className:$("block-editor-button-pattern-inserter__button","block-editor-block-tools__zoom-out-mode-inserter-button"),onClick:e,label:(0,V1e._x)("Add pattern","Generic label for pattern inserter button")})}var z1e=Art;var nZ=c(T(),1);function Mrt(){let[e,t]=(0,UV.useState)(!1),{hasSelection:o,blockOrder:r,setInserterIsOpened:n,sectionRootClientId:i,selectedBlockClientId:s,blockInsertionPoint:a,insertionPointVisible:l}=(0,HV.useSelect)(g=>{let{getSettings:h,getBlockOrder:b,getSelectionStart:v,getSelectedBlockClientId:y,getSectionRootClientId:_,getBlockInsertionPoint:w,isBlockInsertionPointVisible:k}=G(g(B)),x=_();return{hasSelection:!!v().clientId,blockOrder:b(x),sectionRootClientId:x,setInserterIsOpened:h().__experimentalSetIsInserterOpened,selectedBlockClientId:y(),blockInsertionPoint:w(),insertionPointVisible:k()}},[]),{showInsertionPoint:u}=G((0,HV.useDispatch)(B));if((0,UV.useEffect)(()=>{let g=setTimeout(()=>{t(!0)},500);return()=>{clearTimeout(g)}},[]),!e||!o)return null;let d=s,p=r.findIndex(g=>s===g)+1,m=r[p];return l&&a?.index===p?null:(0,nZ.jsx)(c5,{previousClientId:d,nextClientId:m,children:(0,nZ.jsx)(z1e,{onClick:()=>{n({rootClientId:i,insertionIndex:p,tab:"patterns",category:"all"}),u(i,p,{operation:"insert"})}})})}var j1e=Mrt;var H1e=c(te(),1),U1e=c(ce(),1);function W1e(){return(0,H1e.useSelect)(e=>{let{getSelectedBlockClientId:t,getFirstMultiSelectedBlockClientId:o,getBlock:r,getBlockMode:n,getSettings:i,isTyping:s,isBlockInterfaceHidden:a}=G(e(B)),l=t()||o(),u=r(l),d=!!l&&!!u,f=d&&(0,U1e.isUnmodifiedDefaultBlock)(u,"content")&&n(l)!=="html",p=l&&!s()&&f,m=!a()&&!i().hasFixedToolbar&&!p&&d&&!f;return{showEmptyBlockSideInserter:p,showBlockToolbarPopover:m}},[])}var jl=c(T(),1);function Nrt(e){let{getSelectedBlockClientId:t,getFirstMultiSelectedBlockClientId:o,getSettings:r,isTyping:n,isDragging:i,isZoomOut:s,getViewportModalClientIds:a}=G(e(B));return{clientId:t()||o(),hasFixedToolbar:r().hasFixedToolbar,isTyping:n(),isZoomOutMode:s(),isDragging:i(),viewportModalClientIds:a(),blockVisibilitySetting:e(B).getSettings().__experimentalFeatures?.blockVisibility?.allowEditing}}function PT({children:e,__unstableContentRef:t,...o}){let{clientId:r,hasFixedToolbar:n,isTyping:i,isZoomOutMode:s,isDragging:a,viewportModalClientIds:l,blockVisibilitySetting:u}=(0,Mx.useSelect)(Nrt,[]),d=(0,G1e.__unstableUseShortcutEventMatch)(),{getBlocksByClientId:f,getSelectedBlockClientIds:p,getBlockRootClientId:m,getBlockEditingMode:g,getBlockName:h,isGroupable:b,getEditedContentOnlySection:v,canEditBlock:y}=G((0,Mx.useSelect)(B)),{getGroupingBlockName:_}=(0,Mx.useSelect)(GV.store),{showEmptyBlockSideInserter:w,showBlockToolbarPopover:k}=W1e(),x=hx(),[S,C]=(0,WV.useState)(null),{canRename:R}=CT(h(p()[0])),{duplicateBlocks:E,removeBlocks:I,replaceBlocks:O,insertAfterBlock:A,insertBeforeBlock:P,selectBlock:L,moveBlocksUp:H,moveBlocksDown:N,expandBlock:M,stopEditingContentOnlySection:V,showViewportModal:j,hideViewportModal:D}=G((0,Mx.useDispatch)(B));function z(J){if(!J.defaultPrevented){if(d("core/block-editor/move-up",J)||d("core/block-editor/move-down",J)){let U=p();if(U.length){J.preventDefault();let Q=m(U[0]);(d("core/block-editor/move-up",J)?"up":"down")==="up"?H(U,Q):N(U,Q);let K=Array.isArray(U)?U.length:1,X=(0,Nx.sprintf)((0,Nx._n)("%d block moved.","%d blocks moved.",U.length),K);(0,aZ.speak)(X)}}else if(d("core/block-editor/duplicate",J)){let U=p();U.length&&(J.preventDefault(),E(U))}else if(d("core/block-editor/remove",J)){let U=p();U.length&&(J.preventDefault(),I(U))}else if(d("core/block-editor/paste-styles",J)){let U=p();if(U.length){J.preventDefault();let Q=f(U);x(Q)}}else if(d("core/block-editor/insert-after",J)){let U=p();U.length&&(J.preventDefault(),A(U[U.length-1]))}else if(d("core/block-editor/insert-before",J)){let U=p();U.length&&(J.preventDefault(),P(U[0]))}else if(d("core/block-editor/unselect",J)){if(J.target.closest("[role=toolbar]"))return;let U=p();U.length>1&&(J.preventDefault(),L(U[0]))}else if(d("core/block-editor/collapse-list-view",J)){if((0,iZ.isTextField)(J.target)||(0,iZ.isTextField)(J.target?.contentWindow?.document?.activeElement))return;J.preventDefault(),M(r)}else if(d("core/block-editor/group",J)){let U=p();if(U.length>1&&b(U)){J.preventDefault();let Q=f(U),Z=_(),K=Vl(Q,Z);O(U,K),(0,aZ.speak)((0,Nx.__)("Selected blocks are grouped."))}}else if(d("core/block-editor/rename",J)){let U=p();if(U.length===1){let Q=g(U[0])==="contentOnly";R&&!Q&&y(U[0])&&(J.preventDefault(),C(U[0]))}}else if(d("core/block-editor/toggle-block-visibility",J)){if(u===!1)return;let U=p();if(U.length){if(J.preventDefault(),!f(U).every(K=>(0,GV.hasBlockSupport)(K.name,"visibility",!0))||U.some(K=>g(K)!=="default"||!y(K)))return;j(U)}}d("core/block-editor/stop-editing-as-blocks",J)&&v()&&V()}}let W=Vy(t),ee=Vy(t);return(0,jl.jsxs)("div",{...o,onKeyDown:z,className:$(o.className,{"block-editor-block-tools--is-dragging":a}),children:[(0,jl.jsxs)(ax.Provider,{value:(0,WV.useRef)(!1),children:[!i&&!s&&(0,jl.jsx)(Uxe,{__unstableContentRef:t}),w&&(0,jl.jsx)(n0e,{__unstableContentRef:t,clientId:r}),k&&(0,jl.jsx)(L1e,{__unstableContentRef:t,clientId:r,isTyping:i}),!s&&!n&&(0,jl.jsx)(sZ.Popover.Slot,{name:"block-toolbar",ref:W}),e,(0,jl.jsx)(sZ.Popover.Slot,{name:"__unstable-block-tools-after",ref:ee}),s&&!a&&(0,jl.jsx)(j1e,{__unstableContentRef:t})]}),S&&(0,jl.jsx)(tv,{clientId:S,onClose:()=>C(null)}),l&&(0,jl.jsx)(gU,{clientIds:l,onClose:D})]})}var OT=c(ue(),1),Lx=c(te(),1),lZ=c(Lt(),1),Gi=c(wo(),1);var $1e=c(T(),1),Lrt=new Set([Gi.UP,Gi.RIGHT,Gi.DOWN,Gi.LEFT,Gi.ENTER,Gi.BACKSPACE]);function Drt(e){let{keyCode:t,shiftKey:o}=e;return!o&&Lrt.has(t)}function AT(){let e=(0,Lx.useSelect)(o=>o(B).isTyping(),[]),{stopTyping:t}=(0,Lx.useDispatch)(B);return(0,OT.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 MT(){let e=(0,Lx.useSelect)(i=>i(B).isTyping(),[]),{startTyping:t,stopTyping:o}=(0,Lx.useDispatch)(B),r=AT(),n=(0,OT.useRefEffect)(i=>{if(e){let d=function(h){let{target:b}=h;m=g.setTimeout(()=>{(0,lZ.isTextField)(b)||o()})},f=function(h){let{keyCode:b}=h;(b===Gi.ESCAPE||b===Gi.TAB)&&o()},p=function(){g.getSelection().isCollapsed||o()};var s=d,a=f,l=p;let m,{defaultView:g}=i.ownerDocument;return i.addEventListener("focus",d),i.addEventListener("keydown",f),i.ownerDocument.addEventListener("selectionchange",p),()=>{g.clearTimeout(m),i.removeEventListener("focus",d),i.removeEventListener("keydown",f),i.ownerDocument.removeEventListener("selectionchange",p)}}function u(d){let{type:f,target:p}=d;!(0,lZ.isTextField)(p)||!i.contains(p)||f==="keydown"&&!Drt(d)||t()}return i.addEventListener("keypress",u),i.addEventListener("keydown",u),()=>{i.removeEventListener("keypress",u),i.removeEventListener("keydown",u)}},[e,t,o]);return(0,OT.useMergeRefs)([r,n])}function Vrt({children:e}){return(0,$1e.jsx)("div",{ref:MT(),children:e})}var Y1e=Vrt;var Hl=c(q(),1),wp=c(ce(),1),_p=c(te(),1),cZ=c(q1e(),1);var Frt=()=>function(){let{replaceBlocks:t,multiSelect:o}=(0,_p.useDispatch)(B),{blocks:r,clientIds:n,canRemove:i,possibleBlockTransformations:s,invalidSelection:a}=(0,_p.useSelect)(m=>{let{getBlockRootClientId:g,getBlockTransformItems:h,getSelectedBlockClientIds:b,getBlocksByClientId:v,canRemoveBlocks:y}=m(B),_=b(),w=v(_);if(w.filter(x=>!x).length>0)return{invalidSelection:!0};let k=g(_[0]);return{blocks:w,clientIds:_,possibleBlockTransformations:h(w,k),canRemove:y(_),invalidSelection:!1}},[]);if(a)return{isLoading:!1,commands:[]};let l=r.length===1&&(0,wp.isTemplatePart)(r[0]);function u(m){m.length>1&&o(m[0].clientId,m[m.length-1].clientId)}function d(m,g){let h=(0,wp.switchToBlockType)(r,m,g);t(n,h),u(h)}let f=!!s.length&&i&&!l;return!n||n.length<1||!f?{isLoading:!1,commands:[]}:{isLoading:!1,commands:s.map(m=>{let{id:g,name:h,title:b,icon:v,variationName:y}=m,_=!v?.src||v?.src==="block-default"?{src:D0}:v;return{name:"core/block-editor/transform-to-"+(g||h).replace(/\//g,"-"),label:(0,Hl.sprintf)((0,Hl.__)("Transform to %s"),b),icon:_?.src,category:"command",callback:({close:w})=>{d(h,y),w()}}})}},zrt=()=>function(){let{clientIds:t,isUngroupable:o,isGroupable:r,blockVisibilitySetting:n}=(0,_p.useSelect)(P=>{let{getSelectedBlockClientIds:L,getSettings:H,isUngroupable:N,isGroupable:M}=P(B);return{clientIds:L(),isUngroupable:N(),isGroupable:M(),blockVisibilitySetting:H().__experimentalFeatures?.blockVisibility?.allowEditing}},[]),{canInsertBlockType:i,getBlockRootClientId:s,getBlocksByClientId:a,canRemoveBlocks:l,isBlockHiddenAnywhere:u}=G((0,_p.useSelect)(B)),{getBlockEditingMode:d}=(0,_p.useSelect)(B),{getDefaultBlockName:f,getGroupingBlockName:p}=(0,_p.useSelect)(wp.store),m=a(t),g=(0,_p.useDispatch)(B),{removeBlocks:h,replaceBlocks:b,duplicateBlocks:v,insertAfterBlock:y,insertBeforeBlock:_}=g,w=()=>{if(!m.length)return;let P=p(),L=Vl(m,P);L&&b(t,L)},k=()=>{if(!m.length)return;let P=m[0].innerBlocks;P.length&&b(t,P)};if(!t||t.length<1)return{isLoading:!1,commands:[]};let{showViewportModal:x}=G(g),S=s(t[0]),C=i(f(),S),R=m.every(P=>!!P&&(0,wp.hasBlockSupport)(P.name,"multiple",!0)&&i(P.name,S)),E=l(t),I=[];R&&I.push({name:"duplicate",label:(0,Hl.__)("Duplicate"),callback:()=>v(t,!0),icon:pb}),C&&I.push({name:"add-before",label:(0,Hl.__)("Add before"),callback:()=>{let P=Array.isArray(t)?t[0]:P;_(P)},icon:Ns},{name:"add-after",label:(0,Hl.__)("Add after"),callback:()=>{let P=Array.isArray(t)?t[t.length-1]:P;y(P)},icon:Ns}),r&&I.push({name:"Group",label:(0,Hl.__)("Group"),callback:w,icon:U0}),o&&I.push({name:"ungroup",label:(0,Hl.__)("Ungroup"),callback:k,icon:sj}),E&&I.push({name:"remove",label:(0,Hl.__)("Delete"),callback:()=>h(t,!0),icon:nj});let O=m.every(P=>!!P&&(0,wp.hasBlockSupport)(P.name,"visibility",!0)),A=t.every(P=>d(P)==="default");if(O&&A&&n!==!1){let P=t.some(L=>u(L));I.push({name:"toggle-visibility",label:P?(0,Hl.__)("Show"):(0,Hl.__)("Hide"),callback:()=>x(t),icon:P?wb:kc})}return{isLoading:!1,commands:I.map(P=>({...P,name:"core/block-editor/action-"+P.name,category:"command",callback:({close:L})=>{P.callback(),L()}}))}},$V=()=>{(0,cZ.useCommandLoader)({name:"core/block-editor/blockTransforms",hook:Frt()}),(0,cZ.useCommandLoader)({name:"core/block-editor/blockQuickActions",hook:zrt(),context:"block-selection-edit"})};var vs=c(T(),1),YV=(0,J1e.createSlotFill)(Symbol("BlockCanvasCover"));function Z1e({children:e}){return(0,vs.jsx)("div",{className:"block-canvas-cover",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none"},children:e})}var jrt={ignoredSelectors:[/\.editor-styles-wrapper/gi]};function uZ({shouldIframe:e=!0,height:t="300px",children:o=(0,vs.jsx)(Lk,{}),styles:r,contentRef:n,iframeProps:i}){$V();let s=(0,KV.useViewportMatch)("medium","<"),a=AT(),l=zy(),u=(0,X1e.useRef)(),d=(0,KV.useMergeRefs)([n,l,u,MT()]),f=(0,Q1e.useSelect)(m=>G(m(B)).getZoomLevel(),[]),p=f!==100&&!s?{scale:f,frameSize:"40px"}:{};return e?(0,vs.jsx)(PT,{__unstableContentRef:u,style:{height:t,display:"flex"},children:(0,vs.jsxs)(Rk,{...i,...p,ref:a,contentRef:d,style:{...i?.style},name:"editor-canvas",children:[(0,vs.jsx)(YV.Slot,{fillProps:{containerRef:u},children:m=>m.map((g,h)=>(0,vs.jsx)(Z1e,{children:g},h))}),(0,vs.jsx)(Xf,{styles:r}),o]})}):(0,vs.jsxs)(PT,{__unstableContentRef:u,style:{height:t,display:"flex"},children:[(0,vs.jsx)(YV.Slot,{fillProps:{containerRef:u},children:m=>m.map((g,h)=>(0,vs.jsx)(Z1e,{children:g},h))}),(0,vs.jsx)(Xf,{styles:r,scope:":where(.editor-styles-wrapper)",transformOptions:jrt}),(0,vs.jsx)(iD,{ref:d,className:"editor-styles-wrapper",tabIndex:-1,style:{height:"100%",width:"100%",overflow:"auto"},children:o})]})}function Hrt({children:e,height:t,styles:o}){return(0,vs.jsx)(uZ,{height:t,styles:o,children:e})}var eEe=Hrt;var Id=c(Y(),1),tEe=c(q(),1),oEe=c(wo(),1),rEe=c(Mt(),1),Ul=c(T(),1),Urt=()=>(0,Ul.jsx)(Id.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:(0,Ul.jsx)(Id.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"})}),Wrt=({style:e,className:t})=>(0,Ul.jsx)("div",{className:"block-library-colors-selector__icon-container",children:(0,Ul.jsx)("div",{className:`${t} block-library-colors-selector__state-selection`,style:e,children:(0,Ul.jsx)(Urt,{})})}),Grt=({TextColor:e,BackgroundColor:t})=>function({onToggle:r,isOpen:n}){let i=s=>{!n&&s.keyCode===oEe.DOWN&&(s.preventDefault(),r())};return(0,Ul.jsx)(Id.ToolbarGroup,{children:(0,Ul.jsx)(Id.ToolbarButton,{className:"components-toolbar__control block-library-colors-selector__toggle",label:(0,tEe.__)("Open Colors Selector"),onClick:r,onKeyDown:i,icon:(0,Ul.jsx)(t,{children:(0,Ul.jsx)(e,{children:(0,Ul.jsx)(Wrt,{})})})})})},$rt=({children:e,...t})=>((0,rEe.default)("wp.blockEditor.BlockColorsStyleSelector",{alternative:"block supports API",since:"6.1",version:"6.3"}),(0,Ul.jsx)(Id.Dropdown,{popoverProps:{placement:"bottom-start"},className:"block-library-colors-selector",contentClassName:"block-library-colors-selector__popover",renderToggle:Grt(t),renderContent:()=>e})),nEe=$rt;var mTe=c(Mt(),1),d3=c(Y(),1),bZ=c(q(),1),gTe=c(te(),1),hTe=c(F(),1);var ah=c(ue(),1),uTe=c(lx(),1),dTe=c(Y(),1);var VT=c(te(),1),fTe=c(Mt(),1),Xn=c(F(),1),hZ=c(q(),1);var i3=c(Y(),1),zEe=c(F(),1),s3=c(te(),1);var aEe=c(ue(),1),lEe=c(Yo(),1),cEe=c(te(),1),e3=c(F(),1),Vx=c(q(),1);var sh=c(F(),1),qV=(0,sh.createContext)({});qV.displayName="ListViewContext";var Dx=()=>(0,sh.useContext)(qV),ZV=(0,sh.createContext)({});ZV.displayName="ListViewTreeStateContext";var iEe=()=>(0,sh.useContext)(ZV),XV=(0,sh.createContext)(null);XV.displayName="ListViewInsertedBlockContext";var QV=()=>(0,sh.useContext)(XV);var sEe=c(re(),1);function JV({children:e,...t}){return(0,sEe.createElement)("div",{hidden:!0,...t,key:e},e)}var NT=c(T(),1),dZ=(0,e3.forwardRef)(({nestingLevel:e,blockCount:t,clientId:o,...r},n)=>{let{setInsertedBlockClientId:i}=Dx(),s=QV(),a=(0,aEe.useInstanceId)(dZ),{directInsert:l,hideInserter:u}=(0,cEe.useSelect)(g=>{let{getBlockListSettings:h,getTemplateLock:b,isZoomOut:v}=G(g(B)),_=h(o)?.directInsert||!1,w=!!b(o)||v();return{directInsert:_,hideInserter:w}},[o]),d=ci({clientId:o,context:"list-view"}),f=ci({clientId:s,context:"list-view"});if((0,e3.useEffect)(()=>{f?.length&&(0,lEe.speak)((0,Vx.sprintf)((0,Vx.__)("%s block inserted"),f),"assertive")},[f]),u)return null;let p=`list-view-appender__${a}`,m=(0,Vx.sprintf)((0,Vx.__)("Append to %1$s block at position %2$d, Level %3$d"),d,t+1,e);return(0,NT.jsxs)("div",{className:"list-view-appender",children:[(0,NT.jsx)(Js,{ref:n,rootClientId:o,position:"bottom right",isAppender:!0,selectBlockOnInsert:!1,shouldDirectInsert:l,__experimentalIsQuick:!0,...r,toggleProps:{"aria-describedby":p},onSelectOrClose:g=>{g?.clientId&&i(g.clientId)}}),(0,NT.jsx)(JV,{id:p,children:m})]})});var nv=c(ce(),1),iv=c(Y(),1),r3=c(ue(),1);var rn=c(F(),1),zx=c(te(),1),mZ=c(q(),1),n3=c(wo(),1),NEe=c(lx(),1),LEe=c(pl(),1),DEe=c(Yo(),1);var uEe=c(Y(),1),dEe=c(ue(),1),fEe=c(F(),1);var pEe=c(T(),1),Yrt=Ise(uEe.__experimentalTreeGridRow),Krt=(0,fEe.forwardRef)(({isDragged:e,isSelected:t,position:o,level:r,rowCount:n,children:i,className:s,path:a,...l},u)=>{let d=TO({clientId:l["data-block"],enableAnimation:!0,triggerAnimationOnChange:a}),f=(0,dEe.useMergeRefs)([u,d]);return(0,pEe.jsx)(Yrt,{ref:f,className:$("block-editor-list-view-leaf",s),level:r,positionInSet:o,setSize:n,isExpanded:void 0,...l,children:i})}),mEe=Krt;var gEe=c(Lt(),1),hEe=c(F(),1);function bEe({isSelected:e,selectedClientIds:t,rowItemRef:o}){let r=t.length===1;(0,hEe.useLayoutEffect)(()=>{if(!e||!r||!o.current)return;let n=(0,gEe.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 TEe=c(F(),1);var kEe=c(Y(),1),xEe=c(F(),1),SEe=c(te(),1),CEe=c(ce(),1);var o3=c(wo(),1);var yEe=c(q(),1),fZ=c(T(),1);function t3({onClick:e}){return(0,fZ.jsx)("span",{className:"block-editor-list-view__expander",onClick:e?t=>e(t,{forceToggle:!0}):void 0,"aria-hidden":"true","data-testid":"list-view-expander",children:(0,fZ.jsx)(xt,{icon:(0,yEe.isRTL)()?V0:bm})})}var vEe=c(F(),1),_Ee=c(te(),1);var qrt=3,pZ={"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?pZ[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>=qrt)return t}return t}};function Zrt(e,t){let o=e?pZ[e.name](e):void 0;return o?Array.isArray(o)?t?[]:o:[o]:[]}function wEe({clientId:e,isExpanded:t}){let{block:o}=(0,_Ee.useSelect)(n=>{let{getBlockName:i,getBlock:s}=n(B);return{block:!!pZ[i(e)]?s(e):void 0}},[e]);return(0,vEe.useMemo)(()=>Zrt(o,t),[o,t])}var on=c(T(),1);function Xrt({className:e,clientId:t,onClick:o,onContextMenu:r,onMouseDown:n,onToggleExpanded:i,tabIndex:s,onFocus:a,onDragStart:l,onDragEnd:u,draggable:d,isExpanded:f,ariaDescribedBy:p,visibilityLabel:m,isDisabled:g=!1},h){let b=ci({clientId:t,context:"list-view"}),{icon:v,anchor:y,isSticky:_,isLocked:w}=(0,SEe.useSelect)(R=>{let{getBlockName:E,getBlockAttributes:I,getBlock:O,isSectionBlock:A,isLockedBlock:P}=G(R(B)),{getBlockType:L,getActiveBlockVariation:H}=R(CEe.store),N=I(t),M=E(t),V=ol;return(!N?.metadata?.patternName||!A(t))&&(V=H(M,N,void 0,O(t)?.innerContent)?.icon||L(M)?.icon),{icon:V,anchor:N?.anchor,isSticky:N?.style?.position?.type==="sticky",isLocked:P(t)}},[t]),k=w,x=wEe({clientId:t,isExpanded:f}),S=R=>{R.dataTransfer.clearData(),l?.(R)};function C(R){(R.keyCode===o3.ENTER||R.keyCode===o3.SPACE)&&o(R)}return(0,on.jsxs)("a",{className:$("block-editor-list-view-block-select-button",e),onClick:o,onContextMenu:r,onKeyDown:C,onMouseDown:n,ref:h,tabIndex:s,onFocus:a,onDragStart:S,onDragEnd:u,draggable:d,href:g?void 0:`#block-${t}`,"aria-disabled":g?!0:void 0,"aria-describedby":p,"aria-expanded":f,children:[(0,on.jsx)(t3,{onClick:i}),(0,on.jsx)(Nt,{icon:v,showColors:!0,context:"list-view"}),(0,on.jsxs)(Ke,{align:"center",className:"block-editor-list-view-block-select-button__label-wrapper",justify:"flex-start",gap:"xs",children:[(0,on.jsx)("span",{className:"block-editor-list-view-block-select-button__title",children:(0,on.jsx)(kEe.__experimentalTruncate,{ellipsizeMode:"auto",children:b})}),!!y&&(0,on.jsx)("span",{className:"block-editor-list-view-block-select-button__anchor-wrapper",children:(0,on.jsx)("span",{className:"block-editor-list-view-block-select-button__anchor",children:y})}),_&&(0,on.jsx)("span",{className:"block-editor-list-view-block-select-button__sticky",children:(0,on.jsx)(xt,{icon:u9})}),x.length?(0,on.jsx)("span",{className:"block-editor-list-view-block-select-button__images","aria-hidden":!0,children:x.map((R,E)=>(0,on.jsx)("span",{className:"block-editor-list-view-block-select-button__image",style:{backgroundImage:`url(${R.url})`,zIndex:x.length-E}},R.clientId))}):null,!!m&&(0,on.jsxs)(lo.Root,{children:[(0,on.jsx)(lo.Trigger,{render:(0,on.jsx)("span",{className:"block-editor-list-view-block-select-button__block-visibility","aria-hidden":"true",children:(0,on.jsx)(xt,{icon:kc})})}),(0,on.jsx)(lo.Popup,{children:m})]}),k&&(0,on.jsx)("span",{className:"block-editor-list-view-block-select-button__lock",children:(0,on.jsx)(xt,{icon:o9})})]})]})}var EEe=(0,xEe.forwardRef)(Xrt);var kp=c(T(),1);function Qrt({clientId:e}){let{AdditionalBlockContent:t,setInsertedBlockClientId:o}=Dx(),r=QV();return!t||r!==e?null:(0,kp.jsx)(t,{insertedBlockClientId:r,setInsertedBlockClientId:o})}var Jrt=(0,TEe.forwardRef)(({onClick:e,onToggleExpanded:t,clientId:o,isExpanded:r,selectedClientIds:n,...i},s)=>{let a=n.includes(o)?n:[o];return(0,kp.jsxs)(kp.Fragment,{children:[(0,kp.jsx)(Qrt,{clientId:o}),(0,kp.jsx)(H5,{appendToOwnerDocument:!0,clientIds:a,cloneClassname:"block-editor-list-view-draggable-chip",children:({draggable:l,onDragStart:u,onDragEnd:d})=>(0,kp.jsx)(EEe,{ref:s,className:"block-editor-list-view-block-contents",clientId:o,onClick:e,onToggleExpanded:t,draggable:l,onDragStart:u,onDragEnd:d,isExpanded:r,...i})})]})}),REe=Jrt;var rv=c(q(),1),BEe=c(Lt(),1),LT=32,IEe=(e,t,o)=>(0,rv.sprintf)((0,rv.__)("Block %1$d of %2$d, Level %3$d."),e,t,o),PEe=(e,t)=>[e?`${(0,rv.sprintf)((0,rv.__)("Position: %s"),e)}.`:void 0,t?(0,rv.__)("This block is locked."):void 0].filter(Boolean).join(" "),OEe=(e,t)=>Array.isArray(t)&&t.length?t.indexOf(e)!==-1:t===e;function AEe(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 Fx(e,t,o){if(!t)return;let r=`[role=row][data-block="${e}"]`;return new Promise(n=>{if(t.querySelector(r))return n(t.querySelector(r));let i=null,s=new window.MutationObserver(()=>{t.querySelector(r)&&(clearTimeout(i),s.disconnect(),n(t.querySelector(r)))});s.observe(t,{childList:!0,subtree:!0}),o?.addEventListener("abort",()=>{clearTimeout(i),s.disconnect(),n(null)},{once:!0}),i=setTimeout(()=>{s.disconnect(),n(null)},3e3)}).then(n=>{o?.aborted||n&&n.isConnected&&BEe.focus.focusable.find(n)?.[0]?.focus()})}function MEe({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 Zn=c(T(),1);function VEe({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:p,path:m,isExpanded:g,selectedClientIds:h,isSyncedBranch:b}){let v=(0,rn.useRef)(null),y=(0,rn.useRef)(null),_=(0,rn.useRef)(null),[w,k]=(0,rn.useState)(!1),[x,S]=(0,rn.useState)(),[C,R]=(0,rn.useState)(!1),E=i&&h[0]===e,I=i&&h[h.length-1]===e,{toggleBlockHighlight:O,duplicateBlocks:A,multiSelect:P,replaceBlocks:L,removeBlocks:H,insertAfterBlock:N,insertBeforeBlock:M,showViewportModal:V,stopEditingContentOnlySection:j}=G((0,zx.useDispatch)(B)),D=(0,r3.useDebounce)(O,50),{canInsertBlockType:z,getSelectedBlockClientIds:W,getPreviousBlockClientId:ee,getBlockRootClientId:J,getBlockOrder:U,getBlockParents:Q,getBlockEditingMode:Z,getBlocksByClientId:K,canEditBlock:X,canMoveBlock:oe,canRemoveBlocks:ie,isGroupable:se}=(0,zx.useSelect)(B),{getGroupingBlockName:be}=(0,zx.useSelect)(nv.store),pe=hx(),{blockName:ke,blockVisibility:ye,blockEditingMode:Pe,allowRightClickOverrides:_e,editedSection:ve,viewportSettings:Se,blockVisibilitySetting:fe,positionLabel:Ce,isSynced:ne,isLocked:ae}=(0,zx.useSelect)(Be=>{let{getBlockName:Ht,getBlockAttributes:lt,getBlockEditingMode:no,getSettings:Or,getEditedContentOnlySection:rr,isSyncedBlock:ii,isLockedBlock:cf}=G(Be(B)),Qa=Or(),vc=lt(e);return{blockName:Ht(e),blockVisibility:vc?.metadata?.blockVisibility,blockEditingMode:no(e),allowRightClickOverrides:Qa.allowRightClickOverrides,editedSection:rr(),viewportSettings:Qa.__experimentalFeatures?.viewport,blockVisibilitySetting:Qa.__experimentalFeatures?.blockVisibility?.allowEditing,positionLabel:L5(vc),isSynced:ii(e),isLocked:cf(e)}},[e]),Ee=Pe==="disabled",he=!!ke&&(0,nv.hasBlockSupport)(ke,"renaming",!0),Ae=(0,nv.hasBlockSupport)(ke,"__experimentalToolbar",!0),Je=`list-view-block-select-button__description-${(0,r3.useInstanceId)(VEe)}`,{BlockSettingsMenu:_t,listViewInstanceId:Et,updateExpansion:mt,setInsertedBlockClientId:oo,treeGridElementRef:Tt,rootClientId:Rt}=Dx(),Bt=(0,LEe.__unstableUseShortcutEventMatch)();function gt(){let Be=W(),Ht=Be.includes(e),lt=Ht?Be[0]:e,no=J(lt);return{blocksToUpdate:Ht?Be:[e],firstBlockClientId:lt,firstBlockRootClientId:no,selectedBlockClientIds:Be}}async function He(Be){if(Be.defaultPrevented||Be.target.closest("[role=dialog]"))return;if(ve&&Bt("core/block-editor/unselect",Be)){Be.stopPropagation(),Be.preventDefault(),j();return}let Ht=[n3.BACKSPACE,n3.DELETE].includes(Be.keyCode);if(Bt("core/block-editor/unselect",Be)&&h.length>0)Be.stopPropagation(),Be.preventDefault(),a(Be,void 0);else if(Ht||Bt("core/block-editor/remove",Be)){let{blocksToUpdate:lt,firstBlockClientId:no,firstBlockRootClientId:Or,selectedBlockClientIds:rr}=gt();if(!ie(lt))return;let ii=ee(no)??Or;H(lt,!1);let cf=rr.length>0&&W().length===0;ii||(ii=U()[0]),Re(ii,cf)}else if(Bt("core/block-editor/paste-styles",Be)){Be.preventDefault();let{blocksToUpdate:lt}=gt(),no=K(lt);pe(no)}else if(Bt("core/block-editor/duplicate",Be)){Be.preventDefault();let{blocksToUpdate:lt,firstBlockRootClientId:no}=gt();if(K(lt).every(rr=>!!rr&&(0,nv.hasBlockSupport)(rr.name,"multiple",!0)&&z(rr.name,no))){let rr=await A(lt,!1);rr?.length&&Re(rr[0],!1)}}else if(Bt("core/block-editor/insert-before",Be)){Be.preventDefault();let{blocksToUpdate:lt}=gt();await M(lt[0]);let no=W();Re(no[0],!1)}else if(Bt("core/block-editor/insert-after",Be)){Be.preventDefault();let{blocksToUpdate:lt}=gt();await N(lt.at(-1));let no=W();Re(no[0],!1)}else if(Bt("core/block-editor/select-all",Be)){Be.preventDefault();let{firstBlockRootClientId:lt,selectedBlockClientIds:no}=gt(),Or=U(lt);if(!Or.length)return;if((0,NEe.isShallowEqual)(no,Or)&<&<!==Rt){Re(lt,!0);return}P(Or[0],Or[Or.length-1],null)}else if(Bt("core/block-editor/collapse-list-view",Be)){Be.preventDefault();let{firstBlockClientId:lt}=gt(),no=Q(lt,!1);mt({type:"replace",clientIds:no})}else if(Bt("core/block-editor/group",Be)){let{blocksToUpdate:lt}=gt();if(lt.length>1&&se(lt)){Be.preventDefault();let no=K(lt),Or=be(),rr=Vl(no,Or);L(lt,rr),(0,DEe.speak)((0,mZ.__)("Selected blocks are grouped."));let ii=W();Re(ii[0],!1)}}else if(Bt("core/block-editor/toggle-block-visibility",Be)){if(fe===!1)return;Be.preventDefault();let{blocksToUpdate:lt}=gt();if(!K(lt).every(rr=>(0,nv.hasBlockSupport)(rr.name,"visibility",!0))||lt.some(rr=>Z(rr)!=="default"))return;V(lt)}else if(Bt("core/block-editor/rename",Be)){let{blocksToUpdate:lt}=gt(),no=Z(lt[0])==="contentOnly";lt.length===1&&he&&!no&&(Be.preventDefault(),R(!0))}}let we=(0,rn.useCallback)(()=>{k(!0),D(e,!0)},[e,k,D]),Me=(0,rn.useCallback)(()=>{k(!1),D(e,!1)},[e,k,D]),ge=(0,rn.useCallback)(Be=>{let Ht=Be?.detail===0;a(Be,e,Ht?-1:null),Be.preventDefault()},[e,a]),Re=(0,rn.useCallback)((Be,Ht)=>{Ht&&a(void 0,Be,null,null),Fx(Be,Tt?.current)},[a,Tt]),Ie=(0,rn.useCallback)(Be=>{Be.preventDefault(),Be.stopPropagation(),g!==void 0&&mt({type:g?"collapse":"expand",clientIds:[e]})},[e,mt,g]),at=(0,rn.useCallback)(Be=>{let{ownerDocument:Ht}=_?.current||{};!Ht||!Ht.hasFocus()||Ae&&_e&&(_.current?.click(),S(new window.DOMRect(Be.clientX,Be.clientY,0,0)),Be.preventDefault())},[_e,_,Ae]),Qe=(0,rn.useCallback)(Be=>{_e&&Be.button===2&&Be.preventDefault()},[_e]),po=(0,rn.useMemo)(()=>{let{ownerDocument:Be}=y?.current||{};if(!(!x||!Be))return{ownerDocument:Be,getBoundingClientRect(){return x}}},[x]),ro=(0,rn.useCallback)(()=>{S(void 0)},[S]);if(bEe({isSelected:i,rowItemRef:y,selectedClientIds:h}),!ke)return null;let vo=IEe(l,f,u),Kt=PEe(Ce,ae),_o=mU(ye,Se),Cn=f>0,it=Ae&&!Ee,Dt=p&&Cn&&!Ee,Ir=$("block-editor-list-view-block__mover-cell",{"is-visible":w||i}),mr=$("block-editor-list-view-block__menu-cell",{"is-visible":w||E}),Wr;Dt?Wr=2:it||(Wr=3);let Pr=$({"is-selected":i,"is-first-selected":E,"is-last-selected":I,"is-branch-selected":s,"is-synced-branch":b,"is-dragging":r,"has-single-cell":!Ae,"is-synced":ne,"is-draggable":oe&&!Ee,"is-displacement-normal":t==="normal","is-displacement-up":t==="up","is-displacement-down":t==="down","is-after-dragged-blocks":o,"is-nesting":n,"is-disabled":Ee}),dn=h.includes(e)?h:[e],Bi=Be=>Ee?-1:i&&h.length===1?0:Be;return(0,Zn.jsxs)(mEe,{className:Pr,isDragged:r,onKeyDown:He,onMouseEnter:Ee?void 0:we,onMouseLeave:Ee?void 0:Me,onFocus:Ee?void 0:we,onBlur:Ee?void 0:Me,level:u,position:l,rowCount:d,path:m,id:`list-view-${Et}-block-${e}`,"data-block":e,"data-expanded":X?g:void 0,ref:y,children:[(0,Zn.jsx)(iv.__experimentalTreeGridCell,{className:"block-editor-list-view-block__contents-cell",colSpan:Wr,ref:v,"aria-selected":!!i,children:({ref:Be,tabIndex:Ht,onFocus:lt})=>(0,Zn.jsxs)("div",{className:"block-editor-list-view-block__contents-container",children:[(0,Zn.jsx)(REe,{clientId:e,onClick:ge,onContextMenu:Ee?void 0:at,onMouseDown:Qe,onToggleExpanded:Ee?void 0:Ie,ref:Be,tabIndex:Bi(Ht),onFocus:lt,isExpanded:X?g:void 0,selectedClientIds:h,ariaDescribedBy:Je,visibilityLabel:_o,isDisabled:Ee}),(0,Zn.jsx)(JV,{id:Je,children:[vo,Kt,_o].filter(Boolean).join(" ")})]})}),Dt&&(0,Zn.jsx)(Zn.Fragment,{children:(0,Zn.jsxs)(iv.__experimentalTreeGridCell,{className:Ir,withoutGridItem:!0,children:[(0,Zn.jsx)(iv.__experimentalTreeGridItem,{children:({ref:Be,tabIndex:Ht,onFocus:lt})=>(0,Zn.jsx)($5,{orientation:"vertical",clientIds:[e],ref:Be,tabIndex:Ht,onFocus:lt})}),(0,Zn.jsx)(iv.__experimentalTreeGridItem,{children:({ref:Be,tabIndex:Ht,onFocus:lt})=>(0,Zn.jsx)(Y5,{orientation:"vertical",clientIds:[e],ref:Be,tabIndex:Ht,onFocus:lt})})]})}),it&&_t&&(0,Zn.jsx)(iv.__experimentalTreeGridCell,{className:mr,"aria-selected":!!i,ref:_,children:({ref:Be,tabIndex:Ht,onFocus:lt})=>(0,Zn.jsx)(_t,{clientId:e,clientIds:dn,icon:ha,label:(0,mZ.__)("Options"),popoverProps:{anchor:po},toggleProps:{ref:Be,className:"block-editor-list-view-block__menu",tabIndex:Ht,onClick:ro,onFocus:lt,size:"small"},disableOpenOnArrowDown:!0,updateExpansion:mt,setInsertedBlockClientId:oo,__experimentalSelectBlock:Re,isContentOnlyListView:!!Rt&&Z(Rt)==="contentOnly"})}),C&&(0,Zn.jsx)(tv,{clientId:e,onClose:()=>R(!1)})]})}var FEe=(0,rn.memo)(VEe);var Da=c(T(),1);function jEe(e,t,o,r){return o?.includes(e.clientId)?0:t[e.clientId]??r?e.innerBlocks.reduce((s,a)=>s+jEe(a,t,o,r),1):1}var ent=()=>{};function HEe(e){let{blocks:t,selectBlock:o=ent,showBlockMovers:r,selectedClientIds:n,level:i=1,path:s="",isBranchSelected:a=!1,listPosition:l=0,fixedListWindow:u,isExpanded:d,parentId:f,isSyncedBranch:p=!1,showAppender:m=!0}=e,{canParentExpand:g,isParentSynced:h}=(0,s3.useSelect)(H=>{if(!f)return{canParentExpand:!0,isParentSynced:!1};let{canEditBlock:N,isSyncedBlock:M}=G(H(B));return{canParentExpand:N(f),isParentSynced:M(f)}},[f]),b=p||h,{blockDropPosition:v,blockDropTargetIndex:y,firstDraggedBlockIndex:_,blockIndexes:w,expansionState:k,draggedClientIds:x}=iEe();if(!g)return null;let S=m&&i===1,C=t.filter(Boolean),R=C.length,E=S?R+1:R,I=l,O=[],A=0,P,L=()=>{A&&(O.push((0,Da.jsx)("tr",{children:(0,Da.jsx)("td",{className:"block-editor-list-view-placeholder",style:{height:A*LT}})},`placeholder-${P}`)),A=0,P=void 0)};return C.forEach((H,N)=>{let{clientId:M,innerBlocks:V}=H,j=I;I+=jEe(H,k,x,d);let D=!!x?.includes(M),{itemInView:z}=u,W=z(j),ee=N+1,J=s.length>0?`${s}_${ee}`:`${ee}`,U=!!V?.length,Q=U?k[M]??d:void 0,Z=OEe(M,n),K=a||Z&&U,X=D||W||Z&&M===n[0]||N===0||N===R-1,oe=U&&Q&&!D;if(!X&&(A+=1,P??=M,!oe))return;L();let{displacement:ie,isAfterDraggedBlocks:se,isNesting:be}=MEe({blockIndexes:w,blockDropTargetIndex:y,blockDropPosition:v,clientId:M,firstDraggedBlockIndex:_,isDragged:D});O.push((0,Da.jsxs)(s3.AsyncModeProvider,{value:!Z,children:[X&&(0,Da.jsx)(FEe,{clientId:M,selectBlock:o,isSelected:Z,isBranchSelected:K,isDragged:D,level:i,position:ee,rowCount:E,siblingBlockCount:R,showBlockMovers:r,path:J,isExpanded:D?!1:Q,selectedClientIds:n,isSyncedBranch:b,displacement:ie,isAfterDraggedBlocks:se,isNesting:be}),oe&&(0,Da.jsx)(HEe,{parentId:M,blocks:V,selectBlock:o,showBlockMovers:r,level:i+1,path:J,listPosition:j+1,fixedListWindow:u,isBranchSelected:K,selectedClientIds:n,isExpanded:d,isSyncedBranch:b})]},M))}),L(),(0,Da.jsxs)(Da.Fragment,{children:[O,S&&(0,Da.jsx)(i3.__experimentalTreeGridRow,{level:i,setSize:E,positionInSet:E,isExpanded:!0,children:(0,Da.jsx)(i3.__experimentalTreeGridCell,{children:H=>(0,Da.jsx)(dZ,{clientId:f,nestingLevel:i,blockCount:R,...H})})})]})}var UEe=(0,zEe.memo)(HEe);var l3=c(Y(),1),a3=c(Lt(),1),xp=c(F(),1),gZ=c(q(),1);var Wl=c(T(),1);function WEe({draggedBlockClientId:e,listViewRef:t,blockDropTarget:o}){let r=Mn(e),n=ci({clientId:e,context:"list-view"}),{rootClientId:i,clientId:s,dropPosition:a}=o||{},[l,u]=(0,xp.useMemo)(()=>{if(!t.current)return[];let y=i?t.current.querySelector(`[data-block="${i}"]`):void 0,_=s?t.current.querySelector(`[data-block="${s}"]`):void 0;return[y,_]},[t,i,s]),d=u||l,f=(0,gZ.isRTL)(),p=(0,xp.useCallback)((y,_)=>{if(!d)return 0;let w=d.offsetWidth,k=(0,a3.getScrollContainer)(d,"horizontal"),x=d.ownerDocument,S=k===x.body||k===x.documentElement;if(k&&!S){let C=k.getBoundingClientRect(),R=(0,gZ.isRTL)()?C.right-y.right:y.left-C.left,E=k.clientWidth;if(E<w+R&&(w=E-R),!f&&y.left+_<C.left)return w-=C.left-y.left,w;if(f&&y.right-_>C.right)return w-=y.right-C.right,w}return w-_},[f,d]),m=(0,xp.useMemo)(()=>{if(!d)return{};let y=d.getBoundingClientRect();return{width:p(y,0)}},[p,d]),g=(0,xp.useMemo)(()=>{if(!d)return{};let y=(0,a3.getScrollContainer)(d),_=d.ownerDocument,w=y===_.body||y===_.documentElement;if(y&&!w){let k=y.getBoundingClientRect(),x=d.getBoundingClientRect(),S=f?k.right-x.right:x.left-k.left;if(!f&&k.left>x.left)return{transform:`translateX( ${S}px )`};if(f&&k.right<x.right)return{transform:`translateX( ${S*-1}px )`}}return{}},[f,d]),h=(0,xp.useMemo)(()=>{if(!l)return 1;let y=parseInt(l.getAttribute("aria-level"),10);return y?y+1:1},[l]),b=(0,xp.useMemo)(()=>d?d.classList.contains("is-branch-selected"):!1,[d]),v=(0,xp.useMemo)(()=>{if(!(!d||!(a==="top"||a==="bottom"||a==="inside")))return{contextElement:d,getBoundingClientRect(){let _=d.getBoundingClientRect(),w=_.left,k=0,x=(0,a3.getScrollContainer)(d,"horizontal"),S=d.ownerDocument,C=x===S.body||x===S.documentElement;if(x&&!C){let I=x.getBoundingClientRect(),O=f?x.offsetWidth-x.clientWidth:0;w<I.left+O&&(w=I.left+O)}a==="top"?k=_.top-_.height*2:k=_.top;let R=p(_,0),E=_.height;return new window.DOMRect(w,k,R,E)}}},[d,a,p,f]);return d?(0,Wl.jsx)(l3.Popover,{animate:!1,anchor:v,focusOnMount:!1,className:"block-editor-list-view-drop-indicator--preview",variant:"unstyled",flip:!1,resize:!0,children:(0,Wl.jsx)("div",{style:m,className:$("block-editor-list-view-drop-indicator__line",{"block-editor-list-view-drop-indicator__line--darker":b}),children:(0,Wl.jsxs)("div",{className:"block-editor-list-view-leaf","aria-level":h,children:[(0,Wl.jsxs)("div",{className:$("block-editor-list-view-block-select-button","block-editor-list-view-block-contents"),style:g,children:[(0,Wl.jsx)(t3,{onClick:()=>{}}),(0,Wl.jsx)(Nt,{icon:r?.icon,showColors:!0,context:"list-view"}),(0,Wl.jsx)(Ke,{align:"center",className:"block-editor-list-view-block-select-button__label-wrapper",justify:"flex-start",gap:"xs",children:(0,Wl.jsx)("span",{className:"block-editor-list-view-block-select-button__title",children:(0,Wl.jsx)(l3.__experimentalTruncate,{ellipsizeMode:"auto",children:n})})})]}),(0,Wl.jsx)("div",{className:"block-editor-list-view-block__menu-cell"})]})})}):null}var GEe=c(Yo(),1),jx=c(q(),1),DT=c(te(),1),$Ee=c(F(),1),Va=c(wo(),1),YEe=c(ce(),1);function KEe(){let{clearSelectedBlock:e,multiSelect:t,selectBlock:o}=(0,DT.useDispatch)(B),{getBlockName:r,getBlockParents:n,getBlockSelectionStart:i,getSelectedBlockClientIds:s,hasMultiSelection:a,hasSelectedBlock:l}=(0,DT.useSelect)(B),{getBlockType:u}=(0,DT.useSelect)(YEe.store);return{updateBlockSelection:(0,$Ee.useCallback)(async(f,p,m,g)=>{if(!f?.shiftKey&&f?.keyCode!==Va.ESCAPE){o(p,g);return}f.preventDefault();let h=f.type==="keydown"&&f.keyCode===Va.ESCAPE,b=f.type==="keydown"&&(f.keyCode===Va.UP||f.keyCode===Va.DOWN||f.keyCode===Va.HOME||f.keyCode===Va.END);if(!b&&!l()&&!a()){o(p,null);return}let v=s(),y=[...n(p),p];if((h||b&&!v.some(x=>y.includes(x)))&&await e(),!h){let x=i(),S=p;b&&(!l()&&!a()&&(x=p),m&&(S=m));let C=n(x),R=n(S),{start:E,end:I}=AEe(x,S,C,R);await t(E,I,null)}let _=s();if((f.keyCode===Va.HOME||f.keyCode===Va.END)&&_.length>1)return;let w=v.filter(x=>!_.includes(x)),k;if(w.length===1){let x=u(r(w[0]))?.title;x&&(k=(0,jx.sprintf)((0,jx.__)("%s deselected."),x))}else w.length>1&&(k=(0,jx.sprintf)((0,jx.__)("%s blocks deselected."),w.length));k&&(0,GEe.speak)(k,"assertive")},[e,r,u,n,i,s,a,l,t,o])}}var qEe=c(F(),1);function ZEe(e){return(0,qEe.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 XEe=c(te(),1);function QEe({blocks:e,rootClientId:t}){return(0,XEe.useSelect)(o=>{let{getDraggedBlockClientIds:r,getSelectedBlockClientIds:n,getListViewClientIdsTree:i}=G(o(B));return{selectedClientIds:n(),draggedClientIds:r(),clientIdsTree:e??i(t)}},[e,t])}var JEe=c(F(),1),eTe=c(te(),1);function tTe({updateExpansion:e}){let{expandedBlock:t,getBlockParents:o}=(0,eTe.useSelect)(r=>{let{getBlockParents:n,getExpandedBlock:i}=G(r(B));return{expandedBlock:i(),getBlockParents:n}},[]);(0,JEe.useEffect)(()=>{if(t){let r=o(t,!1);e({type:"replace",clientIds:r})}},[e,t,o])}var oTe=c(te(),1),sv=c(F(),1),av=c(ue(),1),rTe=c(q(),1);var Sp=24;function tnt(e,t,o=1,r=!1){let n=r?t.right-o*Sp:t.left+o*Sp;return r?e.x>n:e.x<n}function ont(e,t,o=1,r=!1){let n=r?t.right-o*Sp:t.left+o*Sp,i=r?n-e.x:e.x-n,s=Math.round(i/Sp);return Math.abs(s)}function rnt(e,t){let o=[],r=e;for(;r;)o.push({...r}),r=t.find(n=>n.clientId===r.rootClientId);return o}function nTe(e,t){let o=e[t+1];return o&&o.isDraggedBlock?nTe(e,t+1):o}function nnt(e,t,o=1,r=!1){let n=r?t.right-o*Sp:t.left+o*Sp;return(r?e.x<n-Sp:e.x>n+Sp)&&e.y<t.bottom}var int=["top","bottom"];function snt(e,t,o=!1){let r,n,i,s,a;for(let f=0;f<e.length;f++){let p=e[f];if(p.isDraggedBlock)continue;let m=p.element.getBoundingClientRect(),[g,h]=Hy(t,m,int),b=y5(t,m);if(i===void 0||g<i||b){i=g;let v=e.indexOf(p),y=e[v-1];if(h==="top"&&y&&y.rootClientId===p.rootClientId&&!y.isDraggedBlock?(n=y,r="bottom",s=y.element.getBoundingClientRect(),a=v-1):(n=p,r=h,s=m,a=v),b)break}}if(!n)return;let l=rnt(n,e),u=r==="bottom";if(u&&n.canInsertDraggedBlocksAsChild&&(n.innerBlockCount>0&&n.isExpanded||nnt(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&&tnt(t,s,l.length,o)){let f=nTe(e,a),p=n.nestingLevel,m=f?f.nestingLevel:1;if(p&&m){let g=ont(t,s,l.length,o),h=Math.max(Math.min(g,p-m),0);if(l[h]){let b=n.blockIndex;if(l[h].nestingLevel===f?.nestingLevel)b=f?.blockIndex;else for(let v=a;v>=0;v--){let y=e[v];if(y.rootClientId===l[h].rootClientId){b=y.blockIndex+1;break}}return{rootClientId:l[h].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 ant={leading:!1,trailing:!0};function iTe({dropZoneElement:e,updateExpansion:t}){let{getBlockRootClientId:o,getBlockIndex:r,getBlockCount:n,getDraggedBlockClientIds:i,canInsertBlocks:s}=(0,oTe.useSelect)(B),[a,l]=(0,sv.useState)(),{rootClientId:u,blockIndex:d}=a||{},f=b5(u,d),p=(0,rTe.isRTL)(),m=(0,av.usePrevious)(u),g=(0,sv.useCallback)(_=>{let{rootClientId:w}=_||{};w&&_?.dropPosition==="inside"&&t({type:"expand",clientIds:[w]})},[t]),h=(0,av.useThrottle)(g,500,ant);(0,sv.useEffect)(()=>{if(a?.dropPosition!=="inside"||m!==a?.rootClientId){h.cancel();return}h(a)},[m,a,h]);let b=i(),v=(0,av.useThrottle)((0,sv.useCallback)((_,w)=>{let k={x:_.clientX,y:_.clientY},x=!!b?.length,C=Array.from(w.querySelectorAll("[data-block]")).map(E=>{let I=E.dataset.block,O=E.dataset.expanded==="true",A=E.classList.contains("is-dragging"),P=parseInt(E.getAttribute("aria-level"),10),L=o(I);return{clientId:I,isExpanded:O,rootClientId:L,blockIndex:r(I),element:E,nestingLevel:P||void 0,isDraggedBlock:x?A:!1,innerBlockCount:n(I),canInsertDraggedBlocksAsSibling:x?s(b,L):!0,canInsertDraggedBlocksAsChild:x?s(b,I):!0}}),R=snt(C,k,p);R&&l(R)},[s,b,n,r,o,p]),50);return{ref:(0,av.__experimentalUseDropZone)({dropZoneElement:e,onDrop(_){v.cancel(),a&&f(_),l(void 0)},onDragLeave(){v.cancel(),l(null)},onDragOver(_){v(_,_.currentTarget)},onDragEnd(){v.cancel(),l(void 0)}}),target:a}}var c3=c(F(),1),sTe=c(te(),1);function aTe({firstSelectedBlockClientId:e,updateExpansion:t}){let[o,r]=(0,c3.useState)(null),{selectedBlockParentClientIds:n}=(0,sTe.useSelect)(i=>{let{getBlockParents:s}=i(B);return{selectedBlockParentClientIds:s(e,!1)}},[e]);return(0,c3.useEffect)(()=>{o!==e&&n?.length&&t({type:"expand",clientIds:n})},[e,n,o,t]),{setSelectedTreeId:r}}var Hx=c(te(),1),lTe=c(ue(),1);function cTe({selectBlock:e}){let t=(0,Hx.useRegistry)(),{getBlockOrder:o,getBlockRootClientId:r,getBlocksByClientId:n,getPreviousBlockClientId:i,getSelectedBlockClientIds:s,getSettings:a,canInsertBlockType:l,canRemoveBlocks:u}=(0,Hx.useSelect)(B),{flashBlock:d,removeBlocks:f,replaceBlocks:p,insertBlocks:m}=(0,Hx.useDispatch)(B),g=Sk();return(0,lTe.useRefEffect)(h=>{function b(_,w){w&&e(void 0,_,null,null),Fx(_,h)}function v(_){let w=s(),k=w.includes(_),x=k?w[0]:_,S=r(x);return{blocksToUpdate:k?w:[_],firstBlockClientId:x,firstBlockRootClientId:S,originallySelectedBlockClientIds:w}}function y(_){if(_.defaultPrevented||!h.contains(_.target.ownerDocument.activeElement))return;let k=_.target.ownerDocument.activeElement?.closest("[role=row]")?.dataset?.block;if(!k)return;let{blocksToUpdate:x,firstBlockClientId:S,firstBlockRootClientId:C,originallySelectedBlockClientIds:R}=v(k);if(x.length!==0){if(_.preventDefault(),_.type==="copy"||_.type==="cut"){x.length===1&&d(x[0]),g(_.type,x);let E=n(x);YL(_,E,t)}if(_.type==="cut"){if(!u(x))return;let E=i(S)??C;f(x,!1);let I=R.length>0&&s().length===0;E||(E=o()[0]),b(E,I)}else if(_.type==="paste"){let{__experimentalCanUserUseUnfilteredHTML:E}=a(),I=Zye(_,E);if(x.length===1){let[O]=x;if(I.every(A=>l(A.name,O))){m(I,void 0,O),b(I[0]?.clientId,!1);return}}p(x,I,I.length-1,-1),b(I[0]?.clientId,!1)}}}return h.ownerDocument.addEventListener("copy",y),h.ownerDocument.addEventListener("cut",y),h.ownerDocument.addEventListener("paste",y),()=>{h.ownerDocument.removeEventListener("copy",y),h.ownerDocument.removeEventListener("cut",y),h.ownerDocument.removeEventListener("paste",y)}},[])}var nu=c(T(),1),lnt=(e,t)=>{let{type:o,clientIds:r}=t;if(o==="replace"){let s=Object.fromEntries(r.map(a=>[a,!0]));return(0,uTe.isShallowEqual)(e,s)?e:s}if(o!=="expand"&&o!=="collapse")return e;let n=o==="expand",i=r.filter(s=>e[s]!==n);return i.length?{...e,...Object.fromEntries(i.map(s=>[s,n]))}:e};function pTe({id:e,blocks:t,dropZoneElement:o,showBlockMovers:r=!1,isExpanded:n=!1,showAppender:i=!1,focusOnMount:s=!1,blockSettingsMenu:a=Gq,rootClientId:l,description:u,onSelect:d,additionalBlockContent:f},p){t&&(0,fTe.default)("`blocks` property in `wp.blockEditor.__experimentalListView`",{since:"6.3",alternative:"`rootClientId` property"});let m=(0,ah.useInstanceId)(pTe),{clientIdsTree:g,draggedClientIds:h,selectedClientIds:b}=QEe({blocks:t,rootClientId:l}),v=ZEe(g),{getBlock:y,getSelectedBlockClientIds:_}=(0,VT.useSelect)(B),{visibleBlockCount:w}=(0,VT.useSelect)(K=>{let{getGlobalBlockCount:X,getClientIdsOfDescendants:oe}=K(B),ie=h?.length>0?oe(h).length+1:0;return{visibleBlockCount:X()-ie}},[h]),{updateBlockSelection:k}=KEe(),[x,S]=(0,Xn.useReducer)(lnt,{}),[C,R]=(0,Xn.useState)(null),{setSelectedTreeId:E}=aTe({firstSelectedBlockClientId:b[0],updateExpansion:S}),I=(0,Xn.useCallback)((K,X,oe)=>{k(K,X,null,oe),E(X),d&&d(y(X))},[E,k,d,y]),{ref:O,target:A}=iTe({dropZoneElement:o,updateExpansion:S}),P=(0,Xn.useRef)(),L=cTe({selectBlock:I}),H=(0,ah.useRefEffect)(K=>{if(!s)return;let X=new window.AbortController,oe=be=>Fx(be,K,X.signal).then(()=>X.abort());K.ownerDocument.addEventListener("focusin",()=>X.abort(),{once:!0,signal:X.signal});let[ie]=_();if(ie)return oe(ie),()=>X.abort();let se=setTimeout(()=>{let be=K.querySelector("[role=row][data-block]")?.dataset.block;be&&oe(be)},0);return()=>{clearTimeout(se),X.abort()}},[s,_]),N=(0,ah.useMergeRefs)([L,H,P,O,p]),M=(0,Xn.useCallback)(K=>{let X=K?.dataset?.block;X&&S({type:"expand",clientIds:[X]})},[]),V=(0,Xn.useCallback)(K=>{let X=K?.dataset?.block;X&&S({type:"collapse",clientIds:[X]})},[]),j=(0,Xn.useCallback)((K,X,oe)=>{K.shiftKey&&k(K,X?.dataset?.block,oe?.dataset?.block)},[k]);tTe({updateExpansion:S});let D=h?.[0],{blockDropTargetIndex:z,blockDropPosition:W,firstDraggedBlockIndex:ee}=(0,Xn.useMemo)(()=>{let K,X;if(A?.clientId){let oe=v[A.clientId];K=oe===void 0||A?.dropPosition==="top"?oe:oe+1}else A===null&&(K=null);if(D){let oe=v[D];X=oe===void 0||A?.dropPosition==="top"?oe:oe+1}return{blockDropTargetIndex:K,blockDropPosition:A?.dropPosition,firstDraggedBlockIndex:X}},[A,v,D]),J=(0,Xn.useMemo)(()=>({AdditionalBlockContent:f,BlockSettingsMenu:a,listViewInstanceId:m,rootClientId:l,setInsertedBlockClientId:R,treeGridElementRef:P,updateExpansion:S}),[f,a,m,l,R,S]),U=(0,Xn.useMemo)(()=>({blockDropPosition:W,blockDropTargetIndex:z,blockIndexes:v,draggedClientIds:h,expansionState:x,firstDraggedBlockIndex:ee}),[W,z,v,h,x,ee]),[Q]=(0,ah.__experimentalUseFixedWindowList)(P,LT,w,{expandedState:x,useWindowing:!0,windowOverscan:40});if(!g.length&&!i)return null;let Z=u&&`block-editor-list-view-description-${m}`;return(0,nu.jsxs)(VT.AsyncModeProvider,{value:!0,children:[(0,nu.jsx)(WEe,{draggedBlockClientId:D,listViewRef:P,blockDropTarget:A}),u&&(0,nu.jsx)(bt,{id:Z,children:u}),(0,nu.jsx)(dTe.__experimentalTreeGrid,{id:e,className:$("block-editor-list-view-tree",{"is-dragging":h?.length>0&&z!==void 0}),"aria-label":(0,hZ.__)("Block navigation structure"),ref:N,onCollapseRow:V,onExpandRow:M,onFocusRow:j,applicationAriaLabel:(0,hZ.__)("Block navigation structure"),"aria-describedby":Z,style:{"--wp-admin--list-view-dragged-items-height":h?.length?`${LT*(h.length-1)}px`:null},children:(0,nu.jsx)(qV.Provider,{value:J,children:(0,nu.jsx)(XV.Provider,{value:C,children:(0,nu.jsx)(ZV.Provider,{value:U,children:(0,nu.jsx)(UEe,{blocks:g,parentId:l,selectBlock:I,showBlockMovers:r,fixedListWindow:Q,selectedClientIds:b,isExpanded:n,showAppender:i})})})})})]})}var FT=(0,Xn.forwardRef)(pTe),u3=(0,Xn.forwardRef)((e,t)=>(0,nu.jsx)(FT,{ref:t,...e,showAppender:!1,rootClientId:null,onSelect:null,additionalBlockContent:null,blockSettingsMenu:void 0}));var lh=c(T(),1);function cnt({isEnabled:e,onToggle:t,isOpen:o,innerRef:r,...n}){return(0,lh.jsx)(d3.Button,{__next40pxDefaultSize:!0,...n,ref:r,icon:Z0,"aria-expanded":o,"aria-haspopup":"true",onClick:e?t:void 0,label:(0,bZ.__)("List view"),className:"block-editor-block-navigation","aria-disabled":!e})}function unt({isDisabled:e,...t},o){(0,mTe.default)("wp.blockEditor.BlockNavigationDropdown",{since:"6.1",alternative:"wp.components.Dropdown and wp.blockEditor.ListView"});let n=(0,gTe.useSelect)(i=>!!i(B).getBlockCount(),[])&&!e;return(0,lh.jsx)(d3.Dropdown,{contentClassName:"block-editor-block-navigation__popover",popoverProps:{placement:"bottom-start"},renderToggle:({isOpen:i,onToggle:s})=>(0,lh.jsx)(cnt,{...t,innerRef:o,isOpen:i,onToggle:s,isEnabled:n}),renderContent:()=>(0,lh.jsxs)("div",{className:"block-editor-block-navigation__container",children:[(0,lh.jsx)("p",{className:"block-editor-block-navigation__label",children:(0,bZ.__)("List view")}),(0,lh.jsx)(u3,{})]})})}var bTe=(0,hTe.forwardRef)(unt);var Ux=c(F(),1),vTe=c(te(),1),p3=c(ue(),1),Pd=c(Y(),1);var f3=c(q(),1);var iu=c(T(),1),yTe=()=>{},yZ=(e,t)=>`${e}-${t.name}`;function _Te({clientId:e,onSwitch:t=yTe,onHoverClassName:o=yTe}){let r=(0,vTe.useSelect)(C=>C(B).canEditBlock(e),[e]),{onSelect:n,stylesToRender:i,activeStyle:s,genericPreviewBlock:a,className:l}=Ex({clientId:e,onSwitch:t}),[u,d]=(0,Ux.useState)(null),[f,p]=(0,Ux.useState)(null),m=Dr(),g=(0,p3.useInstanceId)(_Te,"block-editor-block-styles"),h=(0,Ux.useMemo)(()=>{let C=[];for(let R=0;R<(i?.length??0);R+=2)C.push(i.slice(R,R+2));return C},[i]),b=(0,Ux.useMemo)(()=>{if(!u||!a)return null;let C=th(l,s,u);return[{...a,attributes:{...a.attributes||{},className:C}}]},[u,a,l,s]);if(!r||!i||i.length===0)return null;let v=(0,p3.debounce)(d,250),y=C=>{n(C),o(null),d(null),v.cancel()},_=C=>{if(u===C){v.cancel();return}v(C),o(C?.name??null)},w=C=>{let R=i.find(E=>yZ(g,E)===C);R&&R.name!==s.name&&y(R)},k=EV(i),x=()=>s?.name!==k?.name,S=()=>{y(k)};return(0,iu.jsx)(Pd.__experimentalToolsPanel,{label:(0,f3.__)("Styles"),resetAll:S,panelId:e,hasInnerWrapper:!0,dropdownMenuProps:m,children:(0,iu.jsx)(Pd.__experimentalToolsPanelItem,{hasValue:x,label:(0,f3.__)("Variation"),onDeselect:S,isShownByDefault:!0,panelId:e,children:(0,iu.jsxs)("div",{ref:p,className:"block-editor-block-styles",children:[(0,iu.jsx)(Pd.Composite,{role:"radiogroup","aria-label":(0,f3.__)("Styles"),className:"block-editor-block-styles__variants",activeId:yZ(g,s),setActiveId:w,focusLoop:!0,focusWrap:!0,focusShift:!0,children:h.map((C,R)=>(0,iu.jsx)(Pd.Composite.Row,{className:"block-editor-block-styles__row",children:C.map(E=>(0,iu.jsx)(Pd.Composite.Item,{id:yZ(g,E),render:(0,iu.jsx)(XM,{className:"block-editor-block-styles__item",tone:"neutral",variant:s.name===E.name?"solid":"outline"}),role:"radio","aria-checked":s.name===E.name,onMouseEnter:()=>_(E),onFocus:()=>_(E),onMouseLeave:()=>_(null),onBlur:()=>_(null),onClick:()=>y(E),children:(0,iu.jsx)(Pd.__experimentalTruncate,{numberOfLines:3,className:"block-editor-block-styles__item-text",children:E.label||E.name})},E.name))},R))}),b&&(0,iu.jsx)(nh,{blocks:b,placement:"left-start",offset:34,anchor:f})]})})})}var Wx=_Te;var CTe=c(Y(),1),Gx=c(q(),1);var kTe=c(Y(),1),xTe=c(T(),1),wTe={0:a9,1:w7,2:x7,3:C7,4:T7,5:B7,6:P7};function vZ({level:e}){return wTe[e]?(0,xTe.jsx)(kTe.Icon,{icon:wTe[e]}):null}var m3=c(T(),1),STe=[1,2,3,4,5,6],dnt={className:"block-library-heading-level-dropdown"};function ETe({options:e=STe,value:t,onChange:o}){let r=e.filter(n=>n===0||STe.includes(n)).sort((n,i)=>n-i);return(0,m3.jsx)(CTe.ToolbarDropdownMenu,{popoverProps:dnt,icon:(0,m3.jsx)(vZ,{level:t}),label:(0,Gx.__)("Change level"),controls:r.map(n=>{let i=n===t;return{icon:(0,m3.jsx)(vZ,{level:n}),title:n===0?(0,Gx.__)("Paragraph"):(0,Gx.sprintf)((0,Gx.__)("Heading %d"),n),isActive:i,onClick(){o(n)},role:"menuitemradio"}})})}var zT=c(q(),1),jT=c(Y(),1);var Cp=c(T(),1);function fnt({icon:e=q7,label:t=(0,zT.__)("Choose variation"),instructions:o=(0,zT.__)("Select a variation to start with:"),variations:r,onSelect:n,allowSkip:i}){let s=$("block-editor-block-variation-picker",{"has-many-variations":r.length>4});return(0,Cp.jsxs)(jT.Placeholder,{icon:e,label:t,instructions:o,className:s,children:[(0,Cp.jsx)("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":(0,zT.__)("Block variations"),children:r.map(a=>(0,Cp.jsxs)("li",{children:[(0,Cp.jsx)(jT.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,Cp.jsx)("span",{className:"block-editor-block-variation-picker__variation-label",children:a.title})]},a.name))}),i&&(0,Cp.jsx)("div",{className:"block-editor-block-variation-picker__skip",children:(0,Cp.jsx)(jT.Button,{__next40pxDefaultSize:!0,variant:"link",onClick:()=>n(),children:(0,zT.__)("Skip")})})]})}var TTe=fnt;var PTe=c(te(),1),OTe=c(ce(),1),wZ=c(Y(),1);var _Z=c(F(),1),kZ=c(ue(),1),ATe=c(q(),1);var Ep=c(q(),1),$x=c(Y(),1);var ch={carousel:"carousel",grid:"grid"};var Fa=c(T(),1),pnt=({onBlockPatternSelect:e})=>(0,Fa.jsx)("div",{className:"block-editor-block-pattern-setup__actions",children:(0,Fa.jsx)($x.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:e,children:(0,Ep.__)("Choose")})}),mnt=({handlePrevious:e,handleNext:t,activeSlide:o,totalSlides:r})=>(0,Fa.jsxs)("div",{className:"block-editor-block-pattern-setup__navigation",children:[(0,Fa.jsx)($x.Button,{size:"compact",icon:(0,Ep.isRTL)()?hr:ai,label:(0,Ep.__)("Previous pattern"),onClick:e,disabled:o===0,accessibleWhenDisabled:!0}),(0,Fa.jsx)($x.Button,{size:"compact",icon:(0,Ep.isRTL)()?ai:hr,label:(0,Ep.__)("Next pattern"),onClick:t,disabled:o===r-1,accessibleWhenDisabled:!0})]}),gnt=({viewMode:e,setViewMode:t,handlePrevious:o,handleNext:r,activeSlide:n,totalSlides:i,onBlockPatternSelect:s})=>{let a=e===ch.carousel,l=(0,Fa.jsxs)("div",{className:"block-editor-block-pattern-setup__display-controls",children:[(0,Fa.jsx)($x.Button,{size:"compact",icon:fC,label:(0,Ep.__)("Carousel view"),onClick:()=>t(ch.carousel),isPressed:a}),(0,Fa.jsx)($x.Button,{size:"compact",icon:H0,label:(0,Ep.__)("Grid view"),onClick:()=>t(ch.grid),isPressed:e===ch.grid})]});return(0,Fa.jsxs)("div",{className:"block-editor-block-pattern-setup__toolbar",children:[a&&(0,Fa.jsx)(mnt,{handlePrevious:o,handleNext:r,activeSlide:n,totalSlides:i}),l,a&&(0,Fa.jsx)(pnt,{onBlockPatternSelect:s})]})},RTe=gnt;var BTe=c(te(),1);function hnt(e,t,o){return(0,BTe.useSelect)(r=>{let{getBlockRootClientId:n,getPatternsByBlockTypes:i,__experimentalGetAllowedPatterns:s}=r(B),a=n(e);return o?s(a).filter(o):i(t,a)},[e,t,o])}var ITe=hnt;var sr=c(T(),1),bnt=({viewMode:e,activeSlide:t,patterns:o,onBlockPatternSelect:r,showTitles:n})=>{let i="block-editor-block-pattern-setup__container";if(e===ch.carousel){let s=new Map([[t,"active-slide"],[t-1,"previous-slide"],[t+1,"next-slide"]]);return(0,sr.jsx)("div",{className:"block-editor-block-pattern-setup__carousel",children:(0,sr.jsx)("div",{className:i,children:(0,sr.jsx)("div",{className:"carousel-container",children:o.map((a,l)=>(0,sr.jsx)(NTe,{active:l===t,className:s.get(l)||"",pattern:a},a.name))})})})}return(0,sr.jsx)("div",{className:"block-editor-block-pattern-setup__grid",children:(0,sr.jsx)(wZ.Composite,{role:"listbox",className:i,"aria-label":(0,ATe.__)("Patterns list"),children:o.map(s=>(0,sr.jsx)(MTe,{pattern:s,onSelect:r,showTitles:n},s.name))})})};function MTe({pattern:e,onSelect:t,showTitles:o}){let r="block-editor-block-pattern-setup-list",{blocks:n,description:i,viewportWidth:s=700}=e,a=(0,kZ.useInstanceId)(MTe,`${r}__item-description`);return(0,sr.jsx)("div",{className:`${r}__list-item`,children:(0,sr.jsxs)(wZ.Composite.Item,{render:(0,sr.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,sr.jsx)(Ks,{blocks:n,viewportWidth:s}),o&&(0,sr.jsx)("div",{className:`${r}__item-title`,children:e.title}),!!i&&(0,sr.jsx)(bt,{id:a,children:i})]})})}function NTe({active:e,className:t,pattern:o,minHeight:r}){let{blocks:n,title:i,description:s}=o,a=(0,kZ.useInstanceId)(NTe,"block-editor-block-pattern-setup-list__item-description");return(0,sr.jsxs)("div",{"aria-hidden":!e,role:"img",className:`pattern-slide ${t}`,"aria-label":i,"aria-describedby":s?a:void 0,children:[(0,sr.jsx)(Ks,{blocks:n,minHeight:r}),!!s&&(0,sr.jsx)(bt,{id:a,children:s})]})}var ynt=({clientId:e,blockName:t,filterPatternsFn:o,onBlockPatternSelect:r,initialViewMode:n=ch.carousel,showTitles:i=!1})=>{let[s,a]=(0,_Z.useState)(n),[l,u]=(0,_Z.useState)(0),{replaceBlock:d}=(0,PTe.useDispatch)(B),f=ITe(e,t,o);if(!f?.length)return null;let m=r||(g=>{let h=g.map(b=>(0,OTe.cloneBlock)(b));d(e,h)});return(0,sr.jsx)(sr.Fragment,{children:(0,sr.jsxs)("div",{className:`block-editor-block-pattern-setup view-mode-${s}`,children:[(0,sr.jsx)(bnt,{viewMode:s,activeSlide:l,patterns:f,onBlockPatternSelect:m,showTitles:i}),(0,sr.jsx)(RTe,{viewMode:s,setViewMode:a,activeSlide:l,totalSlides:f.length,handleNext:()=>{u(g=>Math.min(g+1,f.length-1))},handlePrevious:()=>{u(g=>Math.max(g-1,0))},onBlockPatternSelect:()=>{m(f[l].blocks)}})]})})},LTe=ynt;var xZ=c(ce(),1),Tp=c(q(),1),Rp=c(Y(),1);var g3=c(te(),1),DTe=c(F(),1);var nn=c(T(),1),{Menu:lv}=G(Rp.privateApis);function vnt({className:e,onSelectVariation:t,selectedValue:o,variations:r}){return(0,nn.jsxs)("fieldset",{className:e,children:[(0,nn.jsx)(bt,{render:(0,nn.jsx)("legend",{}),children:(0,Tp.__)("Transform to variation")}),r.map(n=>(0,nn.jsx)(Rp.Button,{__next40pxDefaultSize:!0,size:"compact",icon:(0,nn.jsx)(Nt,{icon:n.icon,showColors:!0}),isPressed:o===n.name,label:o===n.name?n.title:(0,Tp.sprintf)((0,Tp.__)("Transform to %s"),n.title),onClick:()=>t(n.name),"aria-label":n.title,showTooltip:!0},n.name))]})}function _nt({className:e,onSelectVariation:t,selectedValue:o,variations:r}){return(0,nn.jsx)("div",{className:e,children:(0,nn.jsxs)(lv,{children:[(0,nn.jsx)(lv.TriggerButton,{render:(0,nn.jsx)(Rp.Button,{className:"block-editor-block-variation-transforms__button",__next40pxDefaultSize:!0,variant:"secondary",children:(0,Tp.__)("Transform to variation")})}),(0,nn.jsx)(lv.Popover,{position:"bottom",children:(0,nn.jsx)(lv.Group,{children:r.map(n=>(0,nn.jsxs)(lv.RadioItem,{value:n.name,checked:o===n.name,onChange:()=>t(n.name),children:[(0,nn.jsx)(lv.ItemLabel,{children:n.title}),n.description&&(0,nn.jsx)(lv.ItemHelpText,{children:n.description})]},n.name))})})]})})}function wnt({className:e,onSelectVariation:t,selectedValue:o,variations:r}){return(0,nn.jsx)("div",{className:e,children:(0,nn.jsx)(Rp.__experimentalToggleGroupControl,{label:(0,Tp.__)("Transform to variation"),value:o,hideLabelFromVision:!0,onChange:t,children:r.map(n=>(0,nn.jsx)(Rp.__experimentalToggleGroupControlOptionIcon,{icon:(0,nn.jsx)(Nt,{icon:n.icon,showColors:!0}),value:n.name,label:o===n.name?n.title:(0,Tp.sprintf)((0,Tp.__)("Transform to %s"),n.title)},n.name))})})}function knt({blockClientId:e}){let{updateBlockAttributes:t}=(0,g3.useDispatch)(B),{activeBlockVariation:o,variations:r,canEdit:n,isContentOnly:i,isSection:s}=(0,g3.useSelect)(g=>{let{getActiveBlockVariation:h,getBlockVariations:b}=g(xZ.store),{getBlockName:v,getBlockAttributes:y,getBlockEditingMode:_,isSectionBlock:w}=G(g(B)),{canEditBlock:k}=g(B),x=e&&v(e),{hasContentRoleAttribute:S}=G(g(xZ.store)),C=S(x);return{activeBlockVariation:h(x,y(e),"transform"),variations:x&&b(x,"transform"),canEdit:k(e),isContentOnly:_(e)==="contentOnly"&&!C,isSection:w(e)}},[e]),a=o?.name,l=(0,DTe.useMemo)(()=>{let g=new Set;return r?(r.forEach(h=>{h.icon&&g.add(h.icon?.src||h.icon)}),g.size===r.length):!1},[r]),u=g=>{t(e,{...r.find(({name:h})=>h===g).attributes})};if(!r?.length||!n||i||s)return null;let d="block-editor-block-variation-transforms",p=r.length>6?vnt:wnt;return(0,nn.jsx)(l?p:_nt,{className:d,onSelectVariation:u,selectedValue:a,variations:r})}var h3=knt;var uh=c(q(),1),b3=c(Y(),1);var VTe=c(T(),1),SZ={top:{icon:q0,title:(0,uh._x)("Align top","Block vertical alignment setting")},center:{icon:$0,title:(0,uh._x)("Align middle","Block vertical alignment setting")},bottom:{icon:G0,title:(0,uh._x)("Align bottom","Block vertical alignment setting")},stretch:{icon:K0,title:(0,uh._x)("Stretch to fill","Block vertical alignment setting")},"space-between":{icon:Y0,title:(0,uh._x)("Space between","Block vertical alignment setting")}},xnt=["top","center","bottom"],Snt="top";function Cnt({value:e,onChange:t,controls:o=xnt,isCollapsed:r=!0,isToolbar:n,label:i=(0,uh.__)("Align content vertically")}){function s(f){return()=>t(e===f?void 0:f)}let a=SZ[e],l=SZ[Snt],u=n?b3.ToolbarGroup:b3.ToolbarDropdownMenu,d=n?{isCollapsed:r}:{};return(0,VTe.jsx)(u,{icon:a?a.icon:l.icon,label:i,controls:o.map(f=>({...SZ[f],isActive:e===f,role:r?"menuitemradio":void 0,onClick:s(f)})),...d})}var CZ=Cnt;var EZ=c(T(),1),D2=e=>(0,EZ.jsx)(CZ,{...e,isToolbar:!1}),FTe=e=>(0,EZ.jsx)(CZ,{...e,isToolbar:!0});var ra=c(Y(),1),HT=c(F(),1),w3=c(q(),1);var zTe=c(Y(),1);var TZ=c(q(),1),jTe=c(T(),1);function HTe({isLinked:e,...t}){let o=e?(0,TZ.__)("Unlink radii"):(0,TZ.__)("Link radii");return(0,jTe.jsx)(zTe.Button,{...t,className:"components-border-radius-control__linked-button",size:"small",icon:e?Ms:As,iconSize:24,label:o})}var UTe=c(Y(),1);function Ent(e){return[...e].sort((o,r)=>e.filter(n=>n===r).length-e.filter(n=>n===o).length).shift()}function WTe(e={}){if(typeof e=="string")return e;let t=Object.values(e).map(a=>{let l=(0,UTe.__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=Ent(r);return n===0||n?`${n}${i||""}`:void 0}function GTe(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 $Te(e){return e?typeof e=="string"?!0:!!Object.values(e).filter(o=>!!o||o===0).length:!1}var Gl=c(Y(),1),qTe=c(ue(),1),dh=c(q(),1);var cv=c(F(),1);var RZ=24,YTe=8,y3={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 v3=c(Y(),1);var su=c(T(),1);function KTe({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:p,onCustomValueChange:m,onCustomValueSliderChange:g,onUnitChange:h,onMouseOut:b,onMouseOver:v,setMinValue:y}){let _=(0,su.jsx)(v3.__experimentalUnitControl,{className:"preset-input-control__unit-control",disableUnits:a,hideLabelFromVision:!0,label:t,min:r,onChange:m,onUnitChange:h,onBlur:b,onFocus:v,onMouseOut:b,onMouseOver:v,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(p)}}),w=d?(0,su.jsxs)(lo.Root,{children:[(0,su.jsx)(lo.Trigger,{render:(0,su.jsx)("div",{className:"preset-input-control__tooltip-wrapper",children:_})}),(0,su.jsx)(lo.Popup,{children:t})]}):_;return(0,su.jsxs)(su.Fragment,{children:[w,(0,su.jsx)(v3.RangeControl,{className:"preset-input-control__custom-value-range",hideLabelFromVision:!0,initialPosition:0,label:t,max:u,min:0,onBlur:b,onChange:g,onFocus:v,onMouseOut:b,onMouseOver:v,step:l,value:n,withInputField:!1})]})}var fh=c(T(),1);function uv({allowNegativeOnDrag:e=!1,ariaLabel:t,className:o,customValueSettings:r=y3,disableCustomValues:n,icon:i,isMixed:s,value:a,minimumCustomValue:l,onChange:u,onMouseOut:d,onMouseOver:f,onUnitChange:p,placeholder:m,presets:g=[],presetType:h,selectedUnit:b,showTooltip:v,units:y}){let _=(0,cv.useMemo)(()=>Zre(a,g,h),[a,g,h]),w=o??"preset-input-control",k=g.slice(1,g.length-1).map((K,X)=>({value:X+1,label:void 0})),x=k.length>0,S=g.length<=YTe,C=s?(0,dh.__)("Mixed"):m??null,[R,E]=(0,cv.useState)(l),[I,O]=(0,cv.useState)(!n&&_!==void 0&&!Gu(_,h)),A=null,P=(0,qTe.usePrevious)(_);(0,cv.useEffect)(()=>{_&&P!==_&&!Gu(_,h)&&I!==!0&&O(!0)},[_,P,h,I]);let L=!S&&!I&&_!==void 0&&(!Gu(_,h)||Gu(_,h)&&s),H=g;L?(H=[...g,{name:s?(0,dh.__)("Mixed"):(0,dh.sprintf)((0,dh.__)("Custom (%s)"),_),slug:"custom",size:_}],A=H.length-1):s||(A=I?aH(_,g,h):qre(_,g,h));let N=H.map((K,X)=>({key:X,name:K.name})),M=Gu(_,h)?aH(_,g,h):_,[V,j]=(0,Gl.__experimentalParseQuantityAndUnitFromRawValue)(M),D=j||b||"px",z=y?.find(K=>K.value===D),W=z?.step??r[D]?.steps??.1,ee=z?.max??r[D]?.max??10,J=K=>{if(K===void 0||K===""){u(void 0);return}isNaN(parseFloat(K))||u(K)},U=K=>{u([K,D].join(""))},Q=K=>_===void 0?void 0:g[K]?.name,Z=(K,X)=>{let oe=parseInt(K,10);if(X==="selectList"){if(oe===0&&g[0]?.slug==="0")return"0";if(oe===0)return}else if(oe===0)return"0";return`var:preset|${h}|${g[K]?.slug}`};return(0,fh.jsxs)(Gl.__experimentalHStack,{className:`preset-input-control__wrapper ${w}__wrapper`,children:[i&&(0,fh.jsx)(Gl.Icon,{className:"preset-input-control__icon",icon:i,size:RZ}),(!x||I)&&(0,fh.jsx)(KTe,{allowNegativeOnDrag:e,ariaLabel:t,allPlaceholder:C,minValue:R,parsedQuantity:V,computedUnit:D,units:y,isMixed:s,step:W,max:ee,showTooltip:v,value:_,minimumCustomValue:l,onCustomValueChange:J,onCustomValueSliderChange:U,onUnitChange:p,onMouseOut:d,onMouseOver:f,setMinValue:E}),x&&S&&!I&&(0,fh.jsx)(Gl.RangeControl,{"aria-valuenow":A,"aria-valuetext":g[A]?.name,className:"preset-input-control__preset-range",hideLabelFromVision:!0,initialPosition:0,label:t,max:g.length-1,marks:k,min:0,onBlur:d,onChange:K=>u(Z(K)),onFocus:f,onMouseDown:K=>{K?.nativeEvent?.offsetX<35&&_===void 0&&u("0")},onMouseOut:d,onMouseOver:f,renderTooltipContent:Q,step:1,value:A,withInputField:!1}),x&&!S&&!I&&(0,fh.jsx)(Gl.CustomSelectControl,{className:"preset-input-control__custom-select-control",hideLabelFromVision:!0,label:t,onBlur:d,onChange:K=>{L&&K.selectedItem.key===N.length-1?O(!0):u(Z(K.selectedItem.key,"selectList"))},onFocus:f,onMouseOut:d,onMouseOver:f,options:N,value:N.find(K=>K.key===A)||""}),x&&!n&&(0,fh.jsx)(Gl.Button,{className:"preset-input-control__custom-toggle",icon:O9,iconSize:RZ,isPressed:I,label:I?(0,dh.__)("Use preset"):(0,dh.__)("Set custom value"),onClick:()=>{O(!I)},size:"small"})]})}var Yx=c(q(),1);var ZTe=8,_3=[],BZ={all:(0,Yx.__)("Border radius"),topLeft:(0,Yx.__)("Top left"),topRight:(0,Yx.__)("Top right"),bottomLeft:(0,Yx.__)("Bottom left"),bottomRight:(0,Yx.__)("Bottom right")},IZ={all:jz,topLeft:Wz,topRight:Gz,bottomLeft:Hz,bottomRight:Uz},PZ=0;var Bp=c(T(),1);function Tnt(e){let t=e?.default??_3,o=e?.custom??_3,r=e?.theme??_3;return(0,HT.useMemo)(()=>{let n=[{name:(0,w3.__)("None"),slug:"0",size:0},...o,...r,...t];return n.length>ZTe?[{name:(0,w3.__)("Default"),slug:"default",size:void 0},...n]:n},[o,r,t])}function XTe(e,t){return t==="all"?WTe(e):typeof e=="string"?e:e?.[t]}function QTe(e,t){return t==="all"?e.flat:e[t]}function JTe(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 eRe(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 k3({onChange:e,values:t,presets:o}){let[r,n]=(0,HT.useState)(!$Te(t)||!GTe(t)),i=Tnt(o),[s,a]=(0,HT.useState)({flat:typeof t=="string"?(0,ra.__experimentalParseQuantityAndUnitFromRawValue)(t)[1]:void 0,topLeft:(0,ra.__experimentalParseQuantityAndUnitFromRawValue)(t?.topLeft)[1],topRight:(0,ra.__experimentalParseQuantityAndUnitFromRawValue)(t?.topRight)[1],bottomLeft:(0,ra.__experimentalParseQuantityAndUnitFromRawValue)(t?.bottomLeft)[1],bottomRight:(0,ra.__experimentalParseQuantityAndUnitFromRawValue)(t?.bottomRight)[1]}),[l]=je("spacing.units"),u=(0,ra.__experimentalUseCustomUnits)({availableUnits:l||["px","em","rem"]}),d=()=>n(!r);return(0,Bp.jsxs)("fieldset",{className:"components-border-radius-control",children:[(0,Bp.jsxs)(ra.__experimentalHStack,{className:"components-border-radius-control__header",children:[(0,Bp.jsx)(ra.BaseControl.VisualLabel,{as:"legend",children:(0,w3.__)("Radius")}),(0,Bp.jsx)(HTe,{onClick:d,isLinked:r})]}),r?(0,Bp.jsx)(uv,{ariaLabel:BZ.all,className:"components-border-radius-control",icon:IZ.all,minimumCustomValue:PZ,onChange:JTe("all",t,e),onUnitChange:eRe("all",s,a),presets:i,presetType:"border-radius",selectedUnit:QTe(s,"all"),showTooltip:!0,units:u,value:XTe(t,"all")}):(0,Bp.jsx)(ra.__experimentalVStack,{children:["topLeft","topRight","bottomLeft","bottomRight"].map(f=>(0,Bp.jsx)(uv,{ariaLabel:BZ[f],className:"components-border-radius-control",icon:IZ[f],minimumCustomValue:PZ,onChange:JTe(f,t,e),onUnitChange:eRe(f,s,a),presets:i,presetType:"border-radius",selectedUnit:QTe(s,f),showTooltip:!0,units:u,value:XTe(t,f)},f))})]})}var rRe=c(Y(),1);var tRe=c(ue(),1);var oRe=c(T(),1),x3=(0,tRe.createHigherOrderComponent)(e=>function(o){let[r,n,i,s,a]=je("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,oRe.jsx)(e,{...o,colors:u,disableCustomColors:d,hasColorsToChoose:f})},"withColorContext");var nRe=x3(rRe.ColorPalette);var OZ=c(q(),1),za=c(Y(),1);var Xo=c(T(),1),{Tabs:Kx}=G(za.privateApis),Rnt=["colors","disableCustomColors","gradients","disableCustomGradients"],Od={color:"color",gradient:"gradient"};function iRe({colors:e,gradients:t,disableCustomColors:o,disableCustomGradients:r,__experimentalIsRenderedInSidebar:n,className:i,label:s,onColorChange:a,onGradientChange:l,colorValue:u,colorSlug:d,gradientValue:f,gradientSlug:p,clearable:m,showTitle:g=!0,enableAlpha:h,headingLevel:b,noticeProps:v}){let y=a&&(e&&e.length>0||!o),_=l&&(t&&t.length>0||!r);if(!y&&!_)return null;let k=(0,Xo.jsx)(za.ColorPalette,{value:u,selectedSlug:d,onChange:_?(C,R,E)=>{a(C,E),l()}:(C,R,E)=>a(C,E),colors:e,disableCustomColors:o,__experimentalIsRenderedInSidebar:n,clearable:m,enableAlpha:h,headingLevel:b}),x={[Od.color]:(0,Xo.jsxs)(Xo.Fragment,{children:[k,v&&(0,Xo.jsx)(za.Notice,{isDismissible:!1,...v})]}),[Od.gradient]:(0,Xo.jsx)(za.GradientPicker,{value:f,selectedSlug:p,onChange:y?(C,R,E)=>{l(C,E),a()}:(C,R,E)=>l(C,E),gradients:t,disableCustomGradients:r,__experimentalIsRenderedInSidebar:n,clearable:m,headingLevel:b})},S=C=>(0,Xo.jsx)("div",{className:"block-editor-color-gradient-control__panel",children:x[C]});return(0,Xo.jsx)(za.BaseControl,{className:$("block-editor-color-gradient-control",i),children:(0,Xo.jsx)("fieldset",{className:"block-editor-color-gradient-control__fieldset",children:(0,Xo.jsxs)(za.__experimentalVStack,{spacing:1,children:[g&&(0,Xo.jsx)("legend",{children:(0,Xo.jsx)("div",{className:"block-editor-color-gradient-control__color-indicator",children:(0,Xo.jsx)(za.BaseControl.VisualLabel,{children:s})})}),y&&_&&(0,Xo.jsx)("div",{children:(0,Xo.jsxs)(Kx,{defaultTabId:f?Od.gradient:!!y&&Od.color,children:[(0,Xo.jsxs)(Kx.TabList,{children:[(0,Xo.jsx)(Kx.Tab,{tabId:Od.color,children:(0,OZ.__)("Color")}),(0,Xo.jsx)(Kx.Tab,{tabId:Od.gradient,children:(0,OZ.__)("Gradient")})]}),(0,Xo.jsx)(Kx.TabPanel,{tabId:Od.color,className:"block-editor-color-gradient-control__panel",focusable:!1,children:x.color}),(0,Xo.jsx)(Kx.TabPanel,{tabId:Od.gradient,className:"block-editor-color-gradient-control__panel",focusable:!1,children:x.gradient})]})}),!_&&S(Od.color),!y&&S(Od.gradient)]})})})}function Bnt(e){let[t,o,r,n]=je("color.palette","color.gradients","color.custom","color.customGradient");return(0,Xo.jsx)(iRe,{colors:t,gradients:o,disableCustomColors:!r,disableCustomGradients:!n,...e})}function Int(e){return Rnt.every(t=>e.hasOwnProperty(t))?(0,Xo.jsx)(iRe,{...e}):(0,Xo.jsx)(Bnt,{...e})}var ph=Int;var sRe=c(T(),1);function aRe({onChange:e,value:t,...o}){return(0,sRe.jsx)(ph,{...o,onColorChange:e,colorValue:t,gradients:[],disableCustomGradients:!0})}var au=c(q(),1),lRe=c(Y(),1),cRe=c(Yo(),1),AZ=c(T(),1);lm([cm,s_]);function MZ({backgroundColor:e,fallbackBackgroundColor:t,fallbackTextColor:o,fallbackLinkColor:r,fontSize:n,isLargeText:i,textColor:s,linkColor:a,messageOverride:l,enableAlphaChecker:u=!1}){let d=e||t;if(!d)return null;let f=s||o,p=a||r;if(!f&&!p)return null;let m=[{color:f,description:(0,au.__)("text color")},{color:p,description:(0,au.__)("link color")}],g=Go(d),h=g.alpha()<1,b=g.brightness(),v={level:"AA",size:i||i!==!1&&n>=24?"large":"small"},y="",_="";for(let w of m){if(!w.color)continue;let k=Go(w.color),x=k.isReadable(g,v),S=k.alpha()<1;if(!x){if(h||S)continue;if(l){y=l,_=l;break}y=b<k.brightness()?(0,au.sprintf)((0,au.__)("This color combination may be hard for people to read. Try using a darker background color and/or a brighter %s."),w.description):(0,au.sprintf)((0,au.__)("This color combination may be hard for people to read. Try using a brighter background color and/or a darker %s."),w.description),_=(0,au.__)("This color combination may be hard for people to read.");break}S&&u&&(y=(0,au.__)("Transparent text may be hard for people to read."),_=(0,au.__)("Transparent text may be hard for people to read."))}return y?{message:y,speakMessage:_}:null}function Pnt(e){let t=MZ(e);return t?((0,cRe.speak)(t.speakMessage),(0,AZ.jsx)("div",{className:"block-editor-contrast-checker",children:(0,AZ.jsx)(lRe.Notice,{spokenMessage:null,status:"warning",isDismissible:!1,children:t.message})})):null}var uRe=Pnt;var ki=c(q(),1),UT=c(lu(),1),S3=c(F(),1),uu=c(Y(),1);var cu=c(T(),1),mh=new Date;mh.setDate(20);mh.setMonth(mh.getMonth()-3);mh.getMonth()===4&&mh.setMonth(3);function fRe({format:e,defaultFormat:t,onChange:o}){return(0,cu.jsxs)(uu.__experimentalVStack,{as:"fieldset",spacing:4,className:"block-editor-date-format-picker",children:[(0,cu.jsx)(bt,{render:(0,cu.jsx)("legend",{}),children:(0,ki.__)("Date format")}),(0,cu.jsx)(uu.ToggleControl,{label:(0,ki.__)("Default format"),help:`${(0,ki.__)("Example:")} ${(0,UT.dateI18n)(t,mh)}`,checked:!e,onChange:r=>o(r?null:t)}),e&&(0,cu.jsx)(Ont,{format:e,onChange:o})]})}function Ont({format:e,onChange:t}){let r=[...[...new Set(["Y-m-d",(0,ki._x)("n/j/Y","short date format"),(0,ki._x)("n/j/Y g:i A","short date format with time"),(0,ki._x)("M j, Y","medium date format"),(0,ki._x)("M j, Y g:i A","medium date format with time"),(0,ki._x)("F j, Y","long date format"),(0,ki._x)("M j","short date format without the year")])].map((a,l)=>({key:`suggested-${l}`,name:(0,UT.dateI18n)(a,mh),format:a})),{key:"human-diff",name:(0,UT.humanTimeDiff)(mh),format:"human-diff"}],n={key:"custom",name:(0,ki.__)("Custom"),className:"block-editor-date-format-picker__custom-format-select-control__custom-option",hint:(0,ki.__)("Enter your own date format")},[i,s]=(0,S3.useState)(()=>!!e&&!r.some(a=>a.format===e));return(0,cu.jsxs)(uu.__experimentalVStack,{children:[(0,cu.jsx)(uu.CustomSelectControl,{label:(0,ki.__)("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,cu.jsx)(uu.TextControl,{label:(0,ki.__)("Custom format"),hideLabelFromVision:!0,help:(0,S3.createInterpolateElement)((0,ki.__)("Enter a date or time <Link>format string</Link>."),{Link:(0,cu.jsx)(uu.ExternalLink,{href:(0,ki.__)("https://wordpress.org/documentation/article/customize-date-and-time-format/")})}),value:e,onChange:a=>t(a)})]})}var $l=c(Y(),1),WT=c(q(),1),pRe=c(wo(),1);var mRe=c(ue(),1),Ad=c(T(),1);function gRe({id:e,colorPalette:t,duotonePalette:o,disableCustomColors:r,disableCustomDuotone:n,value:i,selectedSlug:s,onChange:a}){let l;i==="unset"?l=(0,Ad.jsx)($l.ColorIndicator,{className:"block-editor-duotone-control__unset-indicator"}):i?l=(0,Ad.jsx)($l.DuotoneSwatch,{values:i}):l=(0,Ad.jsx)(xt,{icon:r7});let u=(0,WT.__)("Apply duotone filter"),f=`${(0,mRe.useInstanceId)(gRe,"duotone-control",e)}__description`;return(0,Ad.jsx)($l.Dropdown,{popoverProps:{className:"block-editor-duotone-control__popover",headerTitle:(0,WT.__)("Duotone")},renderToggle:({isOpen:p,onToggle:m})=>(0,Ad.jsx)($l.ToolbarButton,{showTooltip:!0,onClick:m,"aria-haspopup":"true","aria-expanded":p,onKeyDown:h=>{!p&&h.keyCode===pRe.DOWN&&(h.preventDefault(),m())},label:u,icon:l}),renderContent:()=>(0,Ad.jsxs)($l.MenuGroup,{label:(0,WT.__)("Duotone"),children:[(0,Ad.jsx)("p",{children:(0,WT.__)("Create a two-tone color effect without losing your original image.")}),(0,Ad.jsx)($l.DuotonePicker,{"aria-label":u,"aria-describedby":f,colorPalette:t,duotonePalette:o,disableCustomColors:r,disableCustomDuotone:n,value:i,selectedSlug:s,onChange:a})]})})}var C3=gRe;var vRe=c(Y(),1),_Re=c(F(),1),ja=c(q(),1);var Qn=c(q(),1);var E3=c(q(),1);function hRe(e){if(!e)return{};if(typeof e=="object")return e;let t;switch(e){case"normal":t=(0,E3._x)("Regular","font style");break;case"italic":t=(0,E3._x)("Italic","font style");break;case"oblique":t=(0,E3._x)("Oblique","font style");break;default:t=e;break}return{name:t,value:e}}var du=c(q(),1);function NZ(e){if(!e)return{};if(typeof e=="object")return e;let t;switch(e){case"normal":case"400":t=(0,du._x)("Regular","font weight");break;case"bold":case"700":t=(0,du._x)("Bold","font weight");break;case"100":t=(0,du._x)("Thin","font weight");break;case"200":t=(0,du._x)("Extra Light","font weight");break;case"300":t=(0,du._x)("Light","font weight");break;case"500":t=(0,du._x)("Medium","font weight");break;case"600":t=(0,du._x)("Semi Bold","font weight");break;case"800":t=(0,du._x)("Extra Bold","font weight");break;case"900":t=(0,du._x)("Black","font weight");break;case"1000":t=(0,du._x)("Extra Black","font weight");break;default:t=e;break}return{name:t,value:e}}var bRe=[{name:(0,Qn._x)("Regular","font style"),value:"normal"},{name:(0,Qn._x)("Italic","font style"),value:"italic"}],yRe=[{name:(0,Qn._x)("Thin","font weight"),value:"100"},{name:(0,Qn._x)("Extra Light","font weight"),value:"200"},{name:(0,Qn._x)("Light","font weight"),value:"300"},{name:(0,Qn._x)("Regular","font weight"),value:"400"},{name:(0,Qn._x)("Medium","font weight"),value:"500"},{name:(0,Qn._x)("Semi Bold","font weight"),value:"600"},{name:(0,Qn._x)("Bold","font weight"),value:"700"},{name:(0,Qn._x)("Extra Bold","font weight"),value:"800"},{name:(0,Qn._x)("Black","font weight"),value:"900"},{name:(0,Qn._x)("Extra Black","font weight"),value:"1000"}];function qx(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(" "),f=parseInt(u.slice(0,1)),p=d==="1000"?10:parseInt(d.slice(0,1));for(let m=f;m<=p;m++){let g=`${m.toString()}00`;o.some(h=>h.value===g)||o.push(NZ(g))}}let a=NZ(typeof s.fontWeight=="number"?s.fontWeight.toString():s.fontWeight),l=hRe(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,Qn._x)("Bold","font weight"),value:"700"}),t.some(s=>s.value==="italic")||t.push({name:(0,Qn._x)("Italic","font style"),value:"italic"}),n&&(t=bRe,o=yRe),t=t.length===0?bRe:t,o=o.length===0?yRe:o,t.forEach(({name:s,value:a})=>{o.forEach(({name:l,value:u})=>{let d=a==="normal"?l:(0,Qn.sprintf)((0,Qn._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 wRe=c(T(),1),Ant=(e,t)=>e?t?(0,ja.__)("Appearance"):(0,ja.__)("Font style"):(0,ja.__)("Font weight");function T3(e){let{__next40pxDefaultSize:t,onChange:o,hasFontStyles:r=!0,hasFontWeights:n=!0,fontFamilyFaces:i,value:{fontStyle:s,fontWeight:a},...l}=e,u=r||n,d=Ant(r,n),f={key:"default",name:(0,ja.__)("Default"),style:{fontStyle:void 0,fontWeight:void 0}},{fontStyles:p,fontWeights:m,combinedStyleAndWeightOptions:g}=qx(i),h=()=>{let k=[f];return g&&k.push(...g),k},b=()=>{let k=[f];return p.forEach(({name:x,value:S})=>{k.push({key:S,name:x,style:{fontStyle:S,fontWeight:void 0}})}),k},v=()=>{let k=[f];return m.forEach(({name:x,value:S})=>{k.push({key:S,name:x,style:{fontStyle:void 0,fontWeight:S}})}),k},y=(0,_Re.useMemo)(()=>r&&n?h():r?b():v(),[e.options,p,m,g]),_=y.find(k=>k.style.fontStyle===s&&k.style.fontWeight===a)||y[0];return u&&(0,wRe.jsx)(vRe.CustomSelectControl,{...l,className:"components-font-appearance-control",label:d,describedBy:_?r?n?(0,ja.sprintf)((0,ja.__)("Currently selected font appearance: %s"),_.name):(0,ja.sprintf)((0,ja.__)("Currently selected font style: %s"),_.name):(0,ja.sprintf)((0,ja.__)("Currently selected font weight: %s"),_.name):(0,ja.__)("No selected font appearance"),options:y,value:_,onChange:({selectedItem:k})=>o(k.style)})}var kRe=c(Y(),1),LZ=c(q(),1);var xRe=c(T(),1);function R3({__next40pxDefaultSize:e,value:t="",onChange:o,fontFamilies:r,className:n,...i}){let[s]=je("typography.fontFamilies");if(r||(r=s),!r||r.length===0)return null;let a=[{key:"",name:(0,LZ.__)("Default")},...r.map(({fontFamily:u,name:d})=>({key:u,name:d||u,style:{fontFamily:u}}))],l=a.find(u=>u.key===t)??"";return(0,xRe.jsx)(kRe.CustomSelectControl,{label:(0,LZ.__)("Font"),value:l,onChange:({selectedItem:u})=>o(u.key),options:a,className:$("block-editor-font-family-control",n),...i})}var B3=c(Y(),1),SRe=c(q(),1);var CRe=c(T(),1);function I3({value:e,onChange:t,__unstableInputWidth:o="60px",...r}){let[n]=je("spacing.units"),i=(0,B3.__experimentalUseCustomUnits)({availableUnits:n||["px","em","rem"],defaultValues:{px:2,em:.2,rem:.2}});return(0,CRe.jsx)(B3.__experimentalUnitControl,{...r,label:(0,SRe.__)("Letter spacing"),value:e,__unstableInputWidth:o,units:i,onChange:t})}var GT=c(q(),1),P3=c(Y(),1),DZ=c(T(),1),Mnt=[{label:(0,GT.__)("None"),value:"none",icon:Bn},{label:(0,GT.__)("Underline"),value:"underline",icon:d7},{label:(0,GT.__)("Strikethrough"),value:"line-through",icon:c7}];function O3({value:e,onChange:t,className:o}){return(0,DZ.jsx)(P3.__experimentalToggleGroupControl,{isDeselectable:!0,label:(0,GT.__)("Decoration"),className:$("block-editor-text-decoration-control",o),value:e,onChange:r=>{t(r===e?void 0:r)},children:Mnt.map(r=>(0,DZ.jsx)(P3.__experimentalToggleGroupControlOptionIcon,{value:r.value,icon:r.icon,label:r.label},r.value))})}var Zx=c(q(),1);var A3=c(Y(),1),VZ=c(T(),1),Nnt=[{label:(0,Zx.__)("None"),value:"none",icon:Bn},{label:(0,Zx.__)("Uppercase"),value:"uppercase",icon:p7},{label:(0,Zx.__)("Lowercase"),value:"lowercase",icon:a7},{label:(0,Zx.__)("Capitalize"),value:"capitalize",icon:i7}];function M3({className:e,value:t,onChange:o}){return(0,VZ.jsx)(A3.__experimentalToggleGroupControl,{isDeselectable:!0,label:(0,Zx.__)("Letter case"),className:$("block-editor-text-transform-control",e),value:t,onChange:r=>{o(r===t?void 0:r)},children:Nnt.map(r=>(0,VZ.jsx)(A3.__experimentalToggleGroupControlOptionIcon,{value:r.value,icon:r.icon,label:r.label},r.value))})}var Xx=c(q(),1);var N3=c(Y(),1),FZ=c(T(),1),Lnt=[{label:(0,Xx.__)("Horizontal"),value:"horizontal-tb",icon:ej},{label:(0,Xx.__)("Vertical"),value:(0,Xx.isRTL)()?"vertical-lr":"vertical-rl",icon:oj}];function L3({className:e,value:t,onChange:o}){return(0,FZ.jsx)(N3.__experimentalToggleGroupControl,{isDeselectable:!0,label:(0,Xx.__)("Orientation"),className:$("block-editor-writing-mode-control",e),value:t,onChange:r=>{o(r===t?void 0:r)},children:Lnt.map(r=>(0,FZ.jsx)(N3.__experimentalToggleGroupControlOptionIcon,{value:r.value,icon:r.icon,label:r.label},r.value))})}var _s=c(Y(),1),ERe=c(F(),1),TRe=c(q(),1);var Nn=c(T(),1),Dnt=({setting:e,children:t,panelId:o,...r})=>{let n=()=>{e.colorValue?e.onColorChange():e.gradientValue&&e.onGradientChange()};return(0,Nn.jsx)(_s.__experimentalToolsPanelItem,{hasValue:()=>!!e.colorValue||!!e.gradientValue,label:e.label,onDeselect:n,isShownByDefault:e.isShownByDefault!==void 0?e.isShownByDefault:!0,...r,className:$("block-editor-color-gradient-item","block-editor-tools-panel-color-gradient-settings__item"),panelId:o,resetAllFilter:e.resetAllFilter,children:t})},Vnt=({colorValue:e,label:t})=>(0,Nn.jsxs)(_s.__experimentalHStack,{justify:"flex-start",children:[(0,Nn.jsx)(_s.ColorIndicator,{className:"block-editor-panel-color-gradient-settings__color-indicator",colorValue:e}),(0,Nn.jsx)(_s.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",title:t,children:t})]}),Fnt=e=>function({onToggle:o,isOpen:r}){let{clearable:n,colorValue:i,gradientValue:s,onColorChange:a,onGradientChange:l,label:u}=e,d=(0,ERe.useRef)(void 0),f={onClick:o,className:$("block-editor-panel-color-gradient-settings__dropdown",{"is-open":r}),"aria-expanded":r,ref:d},p=()=>{i?a():s&&l()},m=i??s;return(0,Nn.jsxs)(Nn.Fragment,{children:[(0,Nn.jsx)(_s.Button,{__next40pxDefaultSize:!0,...f,children:(0,Nn.jsx)(Vnt,{colorValue:m,label:u})}),n&&m&&(0,Nn.jsx)(_s.Button,{__next40pxDefaultSize:!0,label:(0,TRe.__)("Reset"),className:"block-editor-panel-color-gradient-settings__reset",size:"small",icon:Bn,onClick:()=>{p(),r&&o(),d.current?.focus()}})]})};function D3({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,Nn.jsx)(Nn.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},p={clearable:u.clearable,label:u.label,colorValue:u.colorValue,gradientValue:u.gradientValue,onColorChange:u.onColorChange,onGradientChange:u.onGradientChange};return u&&(0,Nn.jsx)(Dnt,{setting:u,...a,children:(0,Nn.jsx)(_s.Dropdown,{popoverProps:l,className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:Fnt(p),renderContent:()=>(0,Nn.jsx)(_s.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,Nn.jsx)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:(0,Nn.jsx)(ph,{...f})})})})},d)})})}var V3=c(Y(),1),RRe=c(te(),1),BRe=c(ue(),1);var zZ=c(F(),1),dv=c(q(),1);function gh(){let[e,t,o,r,n,i,s,a,l,u]=je("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,zZ.useMemo)(()=>{let f=[];return o&&o.length&&f.push({name:(0,dv._x)("Theme","Indicates this palette comes from the theme."),slug:"theme",colors:o}),n&&r&&r.length&&f.push({name:(0,dv._x)("Default","Indicates this palette comes from WordPress."),slug:"default",colors:r}),t&&t.length&&f.push({name:(0,dv._x)("Custom","Indicates this palette is created by the user."),slug:"custom",colors:t}),f},[t,o,r,n]),d.gradients=(0,zZ.useMemo)(()=>{let f=[];return a&&a.length&&f.push({name:(0,dv._x)("Theme","Indicates this palette comes from the theme."),slug:"theme",gradients:a}),u&&l&&l.length&&f.push({name:(0,dv._x)("Default","Indicates this palette comes from WordPress."),slug:"default",gradients:l}),s&&s.length&&f.push({name:(0,dv._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 Yl=c(T(),1),znt=["colors","disableCustomColors","gradients","disableCustomGradients"],jZ=({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,BRe.useInstanceId)(jZ),{batch:p}=(0,RRe.useRegistry)();return(!t||t.length===0)&&(!o||o.length===0)&&r&&n&&s?.every(m=>(!m.colors||m.colors.length===0)&&(!m.gradients||m.gradients.length===0)&&(m.disableCustomColors===void 0||m.disableCustomColors)&&(m.disableCustomGradients===void 0||m.disableCustomGradients))?null:(0,Yl.jsx)(V3.__experimentalToolsPanel,{className:$("block-editor-panel-color-gradient-settings",e),hasInnerWrapper:!0,label:l?a:void 0,resetAll:()=>{p(()=>{s.forEach(({colorValue:m,gradientValue:g,onColorChange:h,onGradientChange:b})=>{m?h():g&&b()})})},panelId:f,__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last",children:(0,Yl.jsxs)("div",{className:"block-editor-panel-color-gradient-settings__inner-wrapper",children:[(0,Yl.jsx)(D3,{settings:s,panelId:f,colors:t,gradients:o,disableCustomColors:r,disableCustomGradients:n,__experimentalIsRenderedInSidebar:u,enableAlpha:d}),!!i&&(0,Yl.jsxs)(Yl.Fragment,{children:[(0,Yl.jsx)(V3.__experimentalSpacer,{marginTop:4,marginBottom:0}),i]})]})})},jnt=e=>{let t=gh();return(0,Yl.jsx)(jZ,{...t,...e})},Hnt=e=>znt.every(t=>e.hasOwnProperty(t))?(0,Yl.jsx)(jZ,{...e}):(0,Yl.jsx)(jnt,{...e}),F3=Hnt;var z3=c(F(),1),fv=c(Y(),1),UZ=c(q(),1);var $T=c(T(),1),HZ=[],Unt={...y3,px:{max:1e3,steps:1},em:{max:50,steps:.1},rem:{max:50,steps:.1}};function Wnt(e){let t=e?.default??HZ,o=e?.custom??HZ,r=e?.theme??HZ;return(0,z3.useMemo)(()=>[{name:(0,UZ.__)("None"),slug:"0",size:0},...o,...r,...t],[o,r,t])}function pv({label:e=(0,UZ.__)("Dimension"),onChange:t,value:o,placeholder:r,className:n,dimensionSizes:i}){let[s,a]=je("dimensions.dimensionSizes","spacing.units"),l=i??s,u=(0,fv.__experimentalUseCustomUnits)({availableUnits:a||["%","px","em","rem","vh","vw"]}),d=Wnt(l),[f,p]=(0,z3.useState)(()=>{let[,g]=(0,fv.__experimentalParseQuantityAndUnitFromRawValue)(o);return g||u[0]?.value||"px"}),m=g=>{let[h,b]=(0,fv.__experimentalParseQuantityAndUnitFromRawValue)(o);["em","rem"].includes(g)&&b==="px"?t((h/16).toFixed(2)+g):["em","rem"].includes(b)&&g==="px"?t(Math.round(h*16)+g):["%","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(g)&&h>100&&t(100+g),p(g)};return(0,$T.jsxs)("fieldset",{className:$("block-editor-dimension-control",n),children:[(0,$T.jsx)(fv.BaseControl.VisualLabel,{as:"legend",children:e}),(0,$T.jsx)(uv,{ariaLabel:e,className:"block-editor-dimension-control",customValueSettings:Unt,minimumCustomValue:0,onChange:t,onUnitChange:m,placeholder:r,presets:d,presetType:"dimension",selectedUnit:f,showTooltip:!0,units:u,value:o})]})}var PRe=c(F(),1),Jn=c(Y(),1),ORe=c(q(),1),ARe=c(Mt(),1);var Md=c(T(),1),IRe={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 MRe({label:e=(0,ORe.__)("Height"),onChange:t,value:o}){(0,ARe.default)("wp.blockEditor.HeightControl",{since:"7.0",version:"7.2",alternative:"wp.blockEditor.DimensionControl"});let r=parseFloat(o),[n]=je("spacing.units"),i=(0,Jn.__experimentalUseCustomUnits)({availableUnits:n||["%","px","em","rem","vh","vw"]}),s=(0,PRe.useMemo)(()=>(0,Jn.__experimentalParseQuantityAndUnitFromRawValue)(o),[o])[1]||i[0]?.value||"px",a=u=>{t([u,s].join(""))},l=u=>{let[d,f]=(0,Jn.__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,Md.jsxs)("fieldset",{className:"block-editor-height-control",children:[(0,Md.jsx)(Jn.BaseControl.VisualLabel,{as:"legend",children:e}),(0,Md.jsxs)(Jn.Flex,{children:[(0,Md.jsx)(Jn.FlexItem,{isBlock:!0,children:(0,Md.jsx)(Jn.__experimentalUnitControl,{value:o,units:i,onChange:t,onUnitChange:l,min:0,label:e,hideLabelFromVision:!0})}),(0,Md.jsx)(Jn.FlexItem,{isBlock:!0,children:(0,Md.jsx)(Jn.__experimentalSpacer,{marginX:2,marginBottom:0,children:(0,Md.jsx)(Jn.RangeControl,{value:r,min:0,max:IRe[s]?.max??100,step:IRe[s]?.step??.1,withInputField:!1,onChange:a,label:e,hideLabelFromVision:!0})})})]})]})}var ZT=c(Y(),1),DBe=c(Mt(),1);var Kl=c(re()),sBe=c(tBe());function qnt(e,t,o,r,n,i){i===void 0&&(i=0);var s=Qx(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 Znt(e){return e.width>e.height?e.width/e.naturalWidth:e.height/e.naturalHeight}function YT(e,t,o,r,n){n===void 0&&(n=0);var i=Qx(t.width,t.height,n),s=i.width,a=i.height;return{x:oBe(e.x,s,o.width,r),y:oBe(e.y,a,o.height,r)}}function oBe(e,t,o,r){var n=t*r/2-o/2;return $3(e,-n,n)}function rBe(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function nBe(e,t){return Math.atan2(t.y-e.y,t.x-e.x)*180/Math.PI}function Xnt(e,t,o,r,n,i,s){i===void 0&&(i=0),s===void 0&&(s=!0);var a=s?Qnt:Jnt,l=Qx(t.width,t.height,i),u=Qx(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)),p=Math.round(a(u.height,d.height*u.height/100)),m=u.width>=u.height*r,g=m?{width:Math.round(p*r),height:p}:{width:f,height:Math.round(f/r)},h=gr(gr({},g),{x:Math.round(a(u.width-g.width,d.x*u.width/100)),y:Math.round(a(u.height-g.height,d.y*u.height/100))});return{croppedAreaPercentages:d,croppedAreaPixels:h}}function Qnt(e,t){return Math.min(e,Math.max(0,t))}function Jnt(e,t){return t}function eit(e,t,o,r,n,i){var s=Qx(t.width,t.height,o),a=$3(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 tit(e,t,o){var r=Znt(t);return o.height>o.width?o.height/(e.height*r):o.width/(e.width*r)}function oit(e,t,o,r,n,i){o===void 0&&(o=0);var s=Qx(t.naturalWidth,t.naturalHeight,o),a=$3(tit(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 iBe(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function rit(e){return e*Math.PI/180}function Qx(e,t,o){var r=rit(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 $3(e,t,o){return Math.min(Math.max(e,t),o)}function G3(){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 nit=`.reactEasyCrop_Container { | |
| 127 | + `}]})}):(0,yh.jsx)("div",{className:"block-editor-inserter__preview-content-missing",children:(0,mEe.__)("No preview available.")})}),!a&&(0,yh.jsx)(m5,{title:o,icon:r,description:n})]})}var gEe=Clt;var tk=c(X(),1),Bp=c(D(),1),uQ=c(ue(),1);var IEe=c(ce(),1),PEe=c(ue(),1);var ek=c(D(),1),wh=c(ce(),1),TEe=c(Q(),1),L5=c(Mo(),1);var kEe=c(Q(),1),SEe=c(D(),1);var Xx=c(D(),1),hEe=c(X(),1),bEe=c(zo(),1),_Ee=c(T(),1);function Elt(e,t){let[o,r]=(0,Xx.useState)(!1);return(0,Xx.useEffect)(()=>{o&&(0,bEe.speak)((0,hEe.__)("Use left and right arrow keys to move through blocks"))},[o]),(0,_Ee.jsx)("div",{ref:t,role:"listbox","aria-orientation":"horizontal",onFocus:()=>{r(!0)},onBlur:n=>{!n.currentTarget.contains(n.relatedTarget)&&r(!1)},...e})}var iQ=(0,Xx.forwardRef)(Elt);var vEe=c(D(),1),yEe=c(Q(),1),wEe=c(T(),1);function Tlt(e,t){return(0,wEe.jsx)(yEe.Composite.Group,{role:"presentation",ref:t,...e})}var sQ=(0,vEe.forwardRef)(Tlt);var _M=c(Q(),1),xEe=c(D(),1),bM=c(T(),1);function Rlt({isFirst:e,as:t,children:o,...r},n){return(0,bM.jsx)(_M.Composite.Item,{ref:n,role:"option",accessibleWhenDisabled:!0,...r,render:i=>{let s={...i,tabIndex:e?0:i.tabIndex};return t?(0,bM.jsx)(t,{...s,children:o}):typeof o=="function"?o(s):(0,bM.jsx)(_M.Button,{__next40pxDefaultSize:!0,...s,children:o})}})}var aQ=(0,xEe.forwardRef)(Rlt);var lQ=c(T(),1);function Ilt({key:e,children:t}){return(0,lQ.jsx)(SEe.Fragment,{children:t},e)}function Plt({children:e}){return(0,lQ.jsx)(kEe.Composite,{focusShift:!0,focusWrap:"horizontal",render:Ilt,children:e})}var vM=Plt;var CEe=c(Q(),1),wM=c(ce(),1),xM=c(oe(),1),EEe=c(D(),1);var Qx=c(X(),1),Zx=c(Q(),1);var pd=c(T(),1);function yM({count:e,icon:t,isPattern:o,fadeWhenDisabled:r}){let n=o&&(0,Qx.__)("Pattern");return(0,pd.jsx)("div",{className:"block-editor-block-draggable-chip-wrapper",children:(0,pd.jsx)("div",{className:"block-editor-block-draggable-chip","data-testid":"block-draggable-chip",children:(0,pd.jsxs)(Zx.Flex,{justify:"center",className:"block-editor-block-draggable-chip__content",children:[(0,pd.jsx)(Zx.FlexItem,{children:t?(0,pd.jsx)($t,{icon:t}):n||(0,Qx.sprintf)((0,Qx._n)("%d block","%d blocks",e),e)}),(0,pd.jsx)(Zx.FlexItem,{children:(0,pd.jsx)($t,{icon:nC})}),r&&(0,pd.jsx)(Zx.FlexItem,{className:"block-editor-block-draggable-chip__disabled",children:(0,pd.jsx)("span",{className:"block-editor-block-draggable-chip__disabled-icon"})})]})})})}var cQ=c(T(),1);function Jx({isEnabled:e,blocks:t,icon:o,children:r,pattern:n}){let i=t.length===1?t[0].name:void 0,s=!!n,a=(0,xM.useSelect)(p=>{if(!(o||s||!i))return p(wM.store).getBlockType(i)?.icon},[o,s,i]),{startDragging:l,stopDragging:d}=Z((0,xM.useDispatch)(P)),u=(0,EEe.useMemo)(()=>n?.type===lr.user&&n?.syncStatus!=="unsynced"?[(0,wM.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 f=u??t;return(0,cQ.jsx)(CEe.Draggable,{__experimentalTransferDataType:"wp-blocks",transferData:{type:"inserter",blocks:f},onDragStart:p=>{l();let m=new Set;for(let g of f){let h=`wp-block:${g.name}`;m.has(h)||(p.dataTransfer.items.add("",h),m.add(h))}},onDragEnd:()=>{d()},__experimentalDragComponent:(0,cQ.jsx)(yM,{count:t.length,icon:o||a,isPattern:s}),children:({onDraggableStart:p,onDraggableEnd:m})=>r({draggable:!0,onDragStart:p,onDragEnd:m})})}var Ip=c(T(),1);function Blt({className:e,isFirst:t,item:o,onSelect:r,onHover:n,isDraggable:i,...s}){let a=(0,ek.useRef)(!1),l=o.icon?{backgroundColor:o.icon.background,color:o.icon.foreground}:{},d=(0,ek.useMemo)(()=>[(0,wh.createBlock)(o.name,o.initialAttributes,(0,wh.createBlocksFromInnerBlocksTemplate)(o.innerBlocks),o.innerContent)],[o.name,o.initialAttributes,o.innerBlocks,o.innerContent]),u=(0,wh.isReusableBlock)(o)&&o.syncStatus!=="unsynced"||(0,wh.isTemplatePart)(o);return(0,Ip.jsx)(Jx,{isEnabled:i&&!o.isDisabled,blocks:d,icon:o.icon,children:({draggable:f,onDragStart:p,onDragEnd:m})=>(0,Ip.jsx)("div",{className:U("block-editor-block-types-list__list-item",{"is-synced":u}),draggable:f,onDragStart:g=>{a.current=!0,p&&(n(null),p(g))},onDragEnd:g=>{a.current=!1,m&&m(g)},children:(0,Ip.jsxs)(aQ,{isFirst:t,className:U("block-editor-block-types-list__item",e),disabled:o.isDisabled,onClick:g=>{g.preventDefault(),r(o,(0,L5.isAppleOS)()?g.metaKey:g.ctrlKey),n(null)},onKeyDown:g=>{let{keyCode:h}=g;h===L5.ENTER&&(g.preventDefault(),r(o,(0,L5.isAppleOS)()?g.metaKey:g.ctrlKey),n(null))},onMouseEnter:()=>{a.current||n(o)},onMouseLeave:()=>n(null),...s,children:[(0,Ip.jsx)("span",{className:"block-editor-block-types-list__item-icon",style:l,children:(0,Ip.jsx)($t,{icon:o.icon,showColors:!0})}),(0,Ip.jsx)("span",{className:"block-editor-block-types-list__item-title",children:(0,Ip.jsx)(TEe.__experimentalTruncate,{numberOfLines:3,children:o.title})})]})})})}var REe=(0,ek.memo)(Blt);var D5=c(T(),1);function Olt(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 BEe({items:e=[],onSelect:t,onHover:o=()=>{},children:r,label:n,isDraggable:i=!0}){let s="block-editor-block-types-list",a=(0,PEe.useInstanceId)(BEe,s);return(0,D5.jsxs)(iQ,{className:s,"aria-label":n,children:[Olt(e,3).map((l,d)=>(0,D5.jsx)(sQ,{children:l.map((u,f)=>(0,D5.jsx)(REe,{item:u,className:(0,IEe.getBlockMenuDefaultClassName)(u.id),onSelect:t,onHover:o,isDraggable:i&&!u.isDisabled,isFirst:d===0&&f===0,rowId:`${a}-${d}`},u.id))},d)),r]})}var kv=BEe;var OEe=c(Q(),1),Pp=c(T(),1);function Mlt({title:e,icon:t,children:o}){return(0,Pp.jsxs)(Pp.Fragment,{children:[(0,Pp.jsxs)("div",{className:"block-editor-inserter__panel-header",children:[(0,Pp.jsx)("h2",{className:"block-editor-inserter__panel-title",children:e}),(0,Pp.jsx)(OEe.Icon,{icon:t})]}),(0,Pp.jsx)("div",{className:"block-editor-inserter__panel-content",children:o})]})}var xh=Mlt;var MEe=c(X(),1),dQ=c(T(),1);function Alt({children:e=(0,MEe.__)("No results found.")}){return(0,dQ.jsx)("div",{className:"block-editor-inserter__no-results",children:(0,dQ.jsx)("p",{children:e})})}var md=Alt;var On=c(T(),1),Nlt=e=>e.name.split("/")[0],Llt=6,Dlt=[];function AEe({items:e,collections:t,categories:o,onSelectItem:r,onHover:n,showMostUsedBlocks:i,className:s}){let a=(0,Bp.useMemo)(()=>du(e,"frecency","desc").slice(0,Llt),[e]),l=(0,Bp.useMemo)(()=>e.filter(g=>!g.category),[e]),d=(0,Bp.useMemo)(()=>{let g={...t};return Object.keys(t).forEach(h=>{g[h]=e.filter(b=>Nlt(b)===h),g[h].length===0&&delete g[h]}),g},[e,t]);(0,Bp.useEffect)(()=>()=>n(null),[]);let u=(0,uQ.useAsyncList)(o),f=o.length===u.length,p=(0,Bp.useMemo)(()=>Object.entries(t),[t]),m=(0,uQ.useAsyncList)(f?p:Dlt);return(0,On.jsxs)("div",{className:s,children:[i&&e.length>3&&!!a.length&&(0,On.jsx)(xh,{title:(0,tk._x)("Most used","blocks"),children:(0,On.jsx)(kv,{items:a,onSelect:r,onHover:n,label:(0,tk._x)("Most used","blocks")})}),u.map(g=>{let h=e.filter(b=>b.category===g.slug);return!h||!h.length?null:(0,On.jsx)(xh,{title:g.title,icon:g.icon,children:(0,On.jsx)(kv,{items:h,onSelect:r,onHover:n,label:g.title})},g.slug)}),f&&l.length>0&&(0,On.jsx)(xh,{className:"block-editor-inserter__uncategorized-blocks-panel",title:(0,tk.__)("Uncategorized"),children:(0,On.jsx)(kv,{items:l,onSelect:r,onHover:n,label:(0,tk.__)("Uncategorized")})}),m.map(([g,h])=>{let b=d[g];return!b||!b.length?null:(0,On.jsx)(xh,{title:h.title,icon:h.icon,children:(0,On.jsx)(kv,{items:b,onSelect:r,onHover:n,label:h.title})},g)})]})}function Vlt({rootClientId:e,onInsert:t,onHover:o,showMostUsedBlocks:r},n){let[i,s,a,l]=cg(e,t);if(!i.length)return(0,On.jsx)(md,{});let d=[],u=[];for(let f of i)f.category!=="reusable"&&(f.isSearchOnly||(f.isAllowedInCurrentRoot?d.push(f):u.push(f)));return(0,On.jsx)(vM,{children:(0,On.jsxs)("div",{ref:n,children:[!!d.length&&(0,On.jsx)(On.Fragment,{children:(0,On.jsx)(AEe,{items:d,categories:s,collections:a,onSelectItem:l,onHover:o,showMostUsedBlocks:r,className:"block-editor-inserter__insertable-blocks-at-selection"})}),(0,On.jsx)(AEe,{items:u,categories:s,collections:a,onSelectItem:l,onHover:o,showMostUsedBlocks:r,className:"block-editor-inserter__all-blocks"})]})})}var NEe=(0,Bp.forwardRef)(Vlt);var oTe=c(D(),1),rTe=c(ue(),1),nTe=c(Q(),1),iTe=c(X(),1);var XEe=c(Q(),1);var bQ=c(D(),1),ZEe=c(X(),1);var LEe=c(Q(),1);var fQ=c(X(),1),ok=c(T(),1);function Flt({patternCategories:e,searchValue:t,setSearchValue:o}){return(0,ok.jsxs)(De,{direction:"column",gap:"lg",className:"block-editor-block-patterns-explorer__sidebar",children:[(0,ok.jsx)(LEe.SearchControl,{onChange:o,value:t,label:(0,fQ.__)("Search"),placeholder:(0,fQ.__)("Search")}),(0,ok.jsx)(Fa.List,{children:e.map(({name:r,label:n})=>(0,ok.jsx)(Fa.Tab,{value:r,children:n},r))})]})}var DEe=Flt;var Op=c(D(),1),ak=c(X(),1),$Ee=c(ue(),1);var YEe=c(zo(),1);var VEe=c(ce(),1),zu=c(D(),1),V5=c(Q(),1);var FEe=c(ue(),1),zEe=c(X(),1);var aa=c(Q(),1),ql=c(X(),1),Xi=c(T(),1);function rk({currentPage:e,numPages:t,changePage:o,totalItems:r}){return(0,Xi.jsxs)(aa.__experimentalVStack,{className:"block-editor-patterns__grid-pagination-wrapper",children:[(0,Xi.jsx)(aa.__experimentalText,{variant:"muted",children:(0,ql.sprintf)((0,ql._n)("%s item","%s items",r),r)}),t>1&&(0,Xi.jsxs)(aa.__experimentalHStack,{expanded:!1,spacing:3,justify:"flex-start",className:"block-editor-patterns__grid-pagination",children:[(0,Xi.jsxs)(aa.__experimentalHStack,{expanded:!1,spacing:1,className:"block-editor-patterns__grid-pagination-previous",children:[(0,Xi.jsx)(aa.Button,{variant:"tertiary",onClick:()=>o(1),disabled:e===1,"aria-label":(0,ql.__)("First page"),size:"compact",accessibleWhenDisabled:!0,className:"block-editor-patterns__grid-pagination-button",children:(0,Xi.jsx)("span",{children:"\xAB"})}),(0,Xi.jsx)(aa.Button,{variant:"tertiary",onClick:()=>o(e-1),disabled:e===1,"aria-label":(0,ql.__)("Previous page"),size:"compact",accessibleWhenDisabled:!0,className:"block-editor-patterns__grid-pagination-button",children:(0,Xi.jsx)("span",{children:"\u2039"})})]}),(0,Xi.jsx)(aa.__experimentalText,{variant:"muted",children:(0,ql.sprintf)((0,ql._x)("%1$s of %2$s","paging"),e,t)}),(0,Xi.jsxs)(aa.__experimentalHStack,{expanded:!1,spacing:1,className:"block-editor-patterns__grid-pagination-next",children:[(0,Xi.jsx)(aa.Button,{variant:"tertiary",onClick:()=>o(e+1),disabled:e===t,"aria-label":(0,ql.__)("Next page"),size:"compact",accessibleWhenDisabled:!0,className:"block-editor-patterns__grid-pagination-button",children:(0,Xi.jsx)("span",{children:"\u203A"})}),(0,Xi.jsx)(aa.Button,{variant:"tertiary",onClick:()=>o(t),disabled:e===t,"aria-label":(0,ql.__)("Last page"),size:"compact",accessibleWhenDisabled:!0,className:"block-editor-patterns__grid-pagination-button",children:(0,Xi.jsx)("span",{children:"\xBB"})})]})]})]})}var Go=c(T(),1),zlt=({showTooltip:e,title:t,children:o})=>e?(0,Go.jsxs)(uo.Root,{children:[(0,Go.jsx)(uo.Trigger,{render:o}),(0,Go.jsx)(uo.Popup,{children:t})]}):(0,Go.jsx)(Go.Fragment,{children:o});function jEe({id:e,isDraggable:t,pattern:o,onClick:r,onHover:n,showTitlesAsTooltip:i,category:s,isSelected:a}){let[l,d]=(0,zu.useState)(!1),{blocks:u,viewportWidth:f}=o,m=`block-editor-block-patterns-list__item-description-${(0,FEe.useInstanceId)(jEe)}`,g=o.type===lr.user,h=(0,zu.useMemo)(()=>!s||!t?u:(u??[]).map(b=>{let v=(0,VEe.cloneBlock)(b);return v.attributes.metadata?.categories?.includes(s)&&(v.attributes.metadata.categories=[s]),v}),[u,t,s]);return(0,Go.jsx)(Jx,{isEnabled:t,blocks:h,pattern:o,children:({draggable:b,onDragStart:v,onDragEnd:_})=>(0,Go.jsx)("div",{className:"block-editor-block-patterns-list__list-item",draggable:b,onDragStart:y=>{d(!0),v&&(n?.(null),v(y))},onDragEnd:y=>{d(!1),_&&_(y)},children:(0,Go.jsx)(zlt,{showTooltip:i&&!g,title:o.title,children:(0,Go.jsxs)(V5.Composite.Item,{render:(0,Go.jsx)("div",{role:"option","aria-label":o.title,"aria-describedby":o.description?m:void 0,className:U("block-editor-block-patterns-list__item",{"block-editor-block-patterns-list__list-item-synced":o.type===lr.user&&!o.syncStatus,"is-selected":a})}),id:e,onClick:()=>{r(o,u),n?.(null)},onMouseEnter:()=>{l||n?.(o)},onMouseLeave:()=>n?.(null),children:[(0,Go.jsx)(sa.Async,{placeholder:(0,Go.jsx)(jlt,{}),children:(0,Go.jsx)(sa,{blocks:u,viewportWidth:f})}),(!i||g)&&(0,Go.jsxs)(V5.__experimentalHStack,{className:"block-editor-patterns__pattern-details",spacing:2,children:[g&&!o.syncStatus&&(0,Go.jsx)("div",{className:"block-editor-patterns__pattern-icon-wrapper",children:(0,Go.jsx)(St,{className:"block-editor-patterns__pattern-icon",icon:hl})}),(0,Go.jsx)(Ct,{render:(0,Go.jsx)("div",{}),className:"block-editor-block-patterns-list__item-title",variant:"body-sm",children:o.title})]}),!!o.description&&(0,Go.jsx)(Et,{id:m,children:o.description})]})})})})}function jlt(){return(0,Go.jsx)("div",{className:"block-editor-block-patterns-list__item is-placeholder"})}function Hlt({isDraggable:e,blockPatterns:t,onHover:o,onClickPattern:r,orientation:n,category:i,label:s=(0,zEe.__)("Patterns"),showTitlesAsTooltip:a,pagingProps:l},d){let[u,f]=(0,zu.useState)(void 0),[p,m]=(0,zu.useState)(null);(0,zu.useEffect)(()=>{let h=t[0]?.name;f(h)},[t]);let g=(h,b)=>{m(h.name),r(h,b)};return(0,Go.jsxs)(V5.Composite,{orientation:n,activeId:u,setActiveId:f,role:"listbox",className:"block-editor-block-patterns-list","aria-label":s,ref:d,children:[t.map(h=>(0,Go.jsx)(jEe,{id:h.name,pattern:h,onClick:g,onHover:o,isDraggable:e,showTitlesAsTooltip:a,category:i,isSelected:!!p&&p===h.name},h.name)),l&&(0,Go.jsx)(rk,{...l})]})}var ju=(0,zu.forwardRef)(Hlt);var Sv=c(oe(),1),UEe=c(ce(),1),kM=c(X(),1),WEe=c(zo(),1),pQ=c(D(),1);function HEe({destinationRootClientId:e,destinationIndex:t,rootClientId:o,registry:r}){if(o===e)return t;let n=["",...r.select(P).getBlockParents(e),e],i=n.indexOf(o);return i!==-1?r.select(P).getBlockIndex(n[i+1])+1:r.select(P).getBlockOrder(o).length}function Ult({rootClientId:e="",insertionIndex:t,clientId:o,isAppender:r,onSelect:n,shouldFocusBlock:i=!0,selectBlockOnInsert:s=!0}){let a=(0,Sv.useRegistry)(),{getSelectedBlock:l,getClosestAllowedInsertionPoint:d,getBlockInsertionPoint:u}=Z((0,Sv.useSelect)(P)),{destinationRootClientId:f,destinationIndex:p}=(0,Sv.useSelect)(w=>{let{getSelectedBlockClientId:x,getBlockRootClientId:k,getBlockIndex:C,getBlockOrder:S,getInsertionPoint:R}=Z(w(P)),E=x(),I=e,B,O=R();return t!==void 0?B=t:O&&O.hasOwnProperty("index")?(I=O?.rootClientId?O.rootClientId:e,B=O.index):o?B=C(o):!r&&E?(I=k(E),B=C(E)+1):B=S(I).length,{destinationRootClientId:I,destinationIndex:B}},[e,t,o,r]),{replaceBlocks:m,insertBlocks:g,showInsertionPoint:h,hideInsertionPoint:b,setLastFocus:v}=Z((0,Sv.useDispatch)(P)),_=(0,pQ.useCallback)((w,x,k=!1,C)=>{(k||i||s)&&v(null);let S=l();!r&&S&&(0,UEe.isUnmodifiedDefaultBlock)(S,"content")?m(S.clientId,w,null,i||k?0:null,x):g(w,r||C===void 0?p:HEe({destinationRootClientId:f,destinationIndex:p,rootClientId:C,registry:a}),r||C===void 0?f:C,s,i||k?0:null,x);let R=Array.isArray(w)?w.length:1,E=(0,kM.sprintf)((0,kM._n)("%d block added.","%d blocks added.",R),R);(0,WEe.speak)(E),n&&n(w)},[r,l,m,g,f,p,n,i,s,v,a]),y=(0,pQ.useCallback)(w=>{if(w){let x=d(w.name,f);x!==null&&h(x,HEe({destinationRootClientId:f,destinationIndex:p,rootClientId:x,registry:a}))}else u()?.__unstableWithInserter||b()},[d,u,h,b,f,p,a]);return[f,_,y]}var kh=Ult;var nk=c(D(),1),SM=c(ce(),1),ik=c(oe(),1),CM=c(X(),1),GEe=c(Ks(),1);var Wlt=(e,t,o,r)=>{let n=(0,nk.useMemo)(()=>({[tg]:!!r}),[r]),i=(0,ik.useSelect)(g=>{let{getSettings:h}=Z(g(P));return h()[P3]??!1},[]),{patternCategories:s,patterns:a,userPatternCategories:l}=(0,ik.useSelect)(g=>{let{getSettings:h,__experimentalGetAllowedPatterns:b}=Z(g(P)),v=h(),_=v[Nf];return{patterns:b(t,n),userPatternCategories:_?_(g):v.__experimentalUserPatternCategories,patternCategories:v.__experimentalBlockPatternCategories}},[t,n]),d=(0,nk.useMemo)(()=>a.filter(g=>!(g.categories?.includes("navigation")&&!i)),[a,i]),{getClosestAllowedInsertionPointForPattern:u}=Z((0,ik.useSelect)(P)),f=(0,nk.useMemo)(()=>{let g=[...s];return l?.forEach(h=>{g.find(b=>b.name===h.name)||g.push(h)}),g},[s,l]),{createSuccessNotice:p}=(0,ik.useDispatch)(GEe.store),m=(0,nk.useCallback)((g,h)=>{let b=r?t:u(g,t);if(b===null)return;let v=g.type===lr.user&&g.syncStatus!=="unsynced"?[(0,SM.createBlock)("core/block",{ref:g.id})]:h;e((v??[]).map(_=>{let y=(0,SM.cloneBlock)(_);return y.attributes.metadata?.categories?.includes(o)&&(y.attributes.metadata.categories=[o]),y}),g.name,!1,b),p((0,CM.sprintf)((0,CM.__)('Pattern "%s" inserted.'),g.title),{type:"snackbar",id:"inserter-notice"})},[p,e,o,t,u,r]);return[d,f,m]},Sh=Wlt;var sk=c(D(),1),mQ=c(ue(),1),gQ=c(Ut(),1),EM=20;function TM(e,t,o,r=""){let[n,i]=(0,sk.useState)(1),s=(0,mQ.usePrevious)(t),a=(0,mQ.usePrevious)(r);(s!==t||a!==r)&&n!==1&&i(1);let l=e.length,d=n-1,u=(0,sk.useMemo)(()=>e.slice(d*EM,d*EM+EM),[d,e]),f=Math.ceil(e.length/EM),p=m=>{(0,gQ.getScrollContainer)(o?.current)?.scrollTo(0,0),i(m)};return(0,sk.useEffect)(function(){(0,gQ.getScrollContainer)(o?.current)?.scrollTo(0,0)},[t,o]),{totalItems:l,categoryPatterns:u,numPages:f,changePage:p,currentPage:n}}var Hu=c(T(),1);function Glt({searchValue:e,selectedCategory:t,patternCategories:o,rootClientId:r,onModalClose:n}){let i=(0,Op.useRef)(),s=(0,$Ee.useDebounce)(YEe.speak,500),[a,l]=kh({rootClientId:r,shouldFocusBlock:!0}),[d,,u]=Sh(l,a,t),f=(0,Op.useMemo)(()=>o.map(v=>v.name),[o]),p=(0,Op.useMemo)(()=>{let v=d.filter(_=>{if(t===c_.name||t===Yf.name&&_.type===lr.user||t===Pw.name&&_.blockTypes?.includes("core/post-content"))return!0;if(t==="uncategorized"){let y=_.categories?.some(w=>f.includes(w))??!1;return!_.categories?.length||!y}return _.categories?.includes(t)});return e?lg(v,e):v},[e,d,t,f]);(0,Op.useEffect)(()=>{if(!e)return;let v=p.length,_=(0,ak.sprintf)((0,ak._n)("%d result found.","%d results found.",v),v);s(_)},[e,s,p.length]);let m=TM(p,t,i),[g,h]=(0,Op.useState)(e);e!==g&&(h(e),m.changePage(1));let b=!!p?.length;return(0,Hu.jsx)("div",{className:"block-editor-block-patterns-explorer__list",ref:i,children:b?(0,Hu.jsxs)(Hu.Fragment,{children:[(0,Hu.jsx)(ju,{blockPatterns:m.categoryPatterns,onClickPattern:(v,_)=>{u(v,_),n()},isDraggable:!1}),(0,Hu.jsx)(rk,{...m})]}):(0,Hu.jsx)(Ct,{render:(0,Hu.jsx)("p",{}),className:"block-editor-block-patterns-explorer__no-results",children:(0,ak.__)("No results found.")})})}var KEe=Glt;var hQ=c(D(),1),RM=c(X(),1),qEe=c(zo(),1);function lk(e,t="all"){let[o,r]=Sh(void 0,e),n=(0,hQ.useMemo)(()=>t==="all"?o:o.filter(s=>!o9(s,t)),[t,o]);return(0,hQ.useMemo)(()=>{let s=t9(n,r);return n.some(a=>a.blockTypes?.includes("core/post-content"))&&s.unshift(Pw),n.some(a=>a.type===lr.user)&&s.unshift(Yf),n.length>0&&s.unshift({name:c_.name,label:c_.label}),(0,qEe.speak)((0,RM.sprintf)((0,RM._n)("%d category button displayed.","%d category buttons displayed.",s.length),s.length)),s},[r,n])}var Ch=c(T(),1);function $lt({initialCategory:e,rootClientId:t,onModalClose:o}){let[r,n]=(0,bQ.useState)(""),[i,s]=(0,bQ.useState)(e?.name),a=lk(t);return(0,Ch.jsxs)(Fa.Root,{className:"block-editor-block-patterns-explorer",orientation:"vertical",value:i,onValueChange:s,children:[(0,Ch.jsx)(DEe,{patternCategories:a,searchValue:r,setSearchValue:n}),a.map(({name:l})=>(0,Ch.jsx)(Fa.Panel,{value:l,tabIndex:-1,className:"block-editor-block-patterns-explorer__panel",children:(0,Ch.jsx)(KEe,{searchValue:r,selectedCategory:l,patternCategories:a,rootClientId:t,onModalClose:o})},l))]})}function Ylt({onModalClose:e,...t}){return(0,Ch.jsx)(XEe.Modal,{title:(0,ZEe.__)("Patterns"),onRequestClose:e,isFullScreen:!0,children:(0,Ch.jsx)($lt,{onModalClose:e,...t})})}var QEe=Ylt;var ck=c(X(),1),dr=c(Q(),1);var Gn=c(T(),1);function Klt({title:e}){return(0,Gn.jsx)(dr.__experimentalVStack,{spacing:0,children:(0,Gn.jsx)(dr.__experimentalView,{children:(0,Gn.jsx)(dr.__experimentalSpacer,{marginBottom:0,paddingX:4,paddingY:3,children:(0,Gn.jsxs)(dr.__experimentalHStack,{spacing:2,children:[(0,Gn.jsx)(dr.Navigator.BackButton,{style:{minWidth:24,padding:0},icon:(0,ck.isRTL)()?yr:ai,size:"small",label:(0,ck.__)("Back")}),(0,Gn.jsx)(dr.__experimentalSpacer,{children:(0,Gn.jsx)(dr.__experimentalHeading,{level:5,children:e})})]})})})})}function IM({categories:e,children:t,screenClassName:o}){return(0,Gn.jsxs)(dr.Navigator,{initialPath:"/",className:"block-editor-inserter__mobile-tab-navigation",children:[(0,Gn.jsx)(dr.Navigator.Screen,{path:"/",children:(0,Gn.jsx)(dr.__experimentalItemGroup,{children:e.map(r=>(0,Gn.jsx)(dr.Navigator.Button,{path:`/category/${r.name}`,as:dr.__experimentalItem,isAction:!0,children:(0,Gn.jsxs)(dr.__experimentalHStack,{children:[(0,Gn.jsx)(dr.FlexBlock,{children:r.label}),(0,Gn.jsx)(St,{icon:(0,ck.isRTL)()?ai:yr})]})},r.name))})}),e.map(r=>(0,Gn.jsxs)(dr.Navigator.Screen,{className:o,path:`/category/${r.name}`,children:[(0,Gn.jsx)(Klt,{title:(0,ck.__)("Back")}),t(r)]},r.name))]})}var Xl=c(D(),1),_Q=c(X(),1),gd=c(Q(),1);var ca=c(Q(),1),la=c(X(),1);var PM=c(D(),1);var _i=c(T(),1),JEe=e=>e!=="all"&&e!=="user",qlt=e=>e.name===Yf.name,Xlt=[{value:"all",label:(0,la._x)("All","patterns")},{value:lr.directory,label:(0,la.__)("Pattern Directory")},{value:lr.theme,label:(0,la.__)("Theme & Plugins")},{value:lr.user,label:(0,la.__)("User")}];function eTe({setPatternSyncFilter:e,setPatternSourceFilter:t,patternSyncFilter:o,patternSourceFilter:r,scrollContainerRef:n,category:i}){let s=i.name===Yf.name?lr.user:r,a=JEe(s),l=qlt(i),d=(0,PM.useMemo)(()=>[{value:"all",label:(0,la._x)("All","patterns")},{value:$E.full,label:(0,la._x)("Synced","patterns"),disabled:a},{value:$E.unsynced,label:(0,la._x)("Not synced","patterns"),disabled:a}],[a]);function u(f){t(f),JEe(f)&&e("all")}return(0,_i.jsx)(_i.Fragment,{children:(0,_i.jsx)(ca.DropdownMenu,{popoverProps:{placement:"right-end"},label:(0,la.__)("Filter patterns"),toggleProps:{size:"compact"},icon:(0,_i.jsx)(St,{icon:(0,_i.jsx)(ca.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,_i.jsx)(ca.Path,{d:"M10 17.5H14V16H10V17.5ZM6 6V7.5H18V6H6ZM8 12.5H16V11H8V12.5Z",fill:"currentColor"})})}),children:()=>(0,_i.jsxs)(_i.Fragment,{children:[!l&&(0,_i.jsx)(ca.MenuGroup,{label:(0,la.__)("Source"),children:(0,_i.jsx)(ca.MenuItemsChoice,{choices:Xlt,onSelect:f=>{u(f),n.current?.scrollTo(0,0)},value:s})}),(0,_i.jsx)(ca.MenuGroup,{label:(0,la.__)("Type"),children:(0,_i.jsx)(ca.MenuItemsChoice,{choices:d,onSelect:f=>{e(f),n.current?.scrollTo(0,0)},value:o})}),(0,_i.jsx)("div",{className:"block-editor-inserter__patterns-filter-help",children:(0,PM.createInterpolateElement)((0,la.__)("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,_i.jsx)(ca.ExternalLink,{href:(0,la.__)("https://wordpress.org/patterns/")})})})]})})})}var Rs=c(T(),1),Zlt=()=>{};function BM({rootClientId:e,onInsert:t,onHover:o=Zlt,category:r,showTitlesAsTooltip:n}){let[i,,s]=Sh(t,e,r?.name),[a,l]=(0,Xl.useState)("all"),[d,u]=(0,Xl.useState)("all"),f=lk(e,d),p=(0,Xl.useRef)(),m=(0,Xl.useMemo)(()=>i.filter(_=>o9(_,d,a)?!1:r.name===c_.name||r.name===Yf.name&&_.type===lr.user||r.name===Pw.name&&_.blockTypes?.includes("core/post-content")?!0:r.name==="uncategorized"?_.categories?!_.categories.some(y=>f.some(w=>w.name===y)):!0:_.categories?.includes(r.name)),[i,f,r.name,d,a]),g=TM(m,r,p),{changePage:h}=g;(0,Xl.useEffect)(()=>()=>o(null),[]);let b=(0,Xl.useCallback)(_=>{l(_),h(1)},[l,h]),v=(0,Xl.useCallback)(_=>{u(_),h(1)},[u,h]);return(0,Rs.jsxs)(Rs.Fragment,{children:[(0,Rs.jsxs)(gd.__experimentalVStack,{spacing:2,className:"block-editor-inserter__patterns-category-panel-header",children:[(0,Rs.jsxs)(gd.__experimentalHStack,{children:[(0,Rs.jsx)(gd.FlexBlock,{children:(0,Rs.jsx)(gd.__experimentalHeading,{className:"block-editor-inserter__patterns-category-panel-title",size:13,level:4,as:"div",children:r.label})}),(0,Rs.jsx)(eTe,{patternSyncFilter:a,patternSourceFilter:d,setPatternSyncFilter:b,setPatternSourceFilter:v,scrollContainerRef:p,category:r})]}),!m.length&&(0,Rs.jsx)(gd.__experimentalText,{variant:"muted",className:"block-editor-inserter__patterns-category-no-results",children:(0,_Q.__)("No results found")})]}),m.length>0&&(0,Rs.jsxs)(Rs.Fragment,{children:[(0,Rs.jsx)(gd.__experimentalText,{size:"12",as:"p",className:"block-editor-inserter__help-text",children:(0,_Q.__)("Drag and drop patterns into the canvas.")}),(0,Rs.jsx)(ju,{ref:p,blockPatterns:g.categoryPatterns,onClickPattern:s,onHover:o,label:r.label,orientation:"vertical",category:r.name,isDraggable:!0,showTitlesAsTooltip:n,patternFilter:d,pagingProps:g})]})]})}var MM=c(ue(),1),AM=c(Q(),1),tTe=c(D(),1);var Cv=c(T(),1),{Tabs:OM}=Z(AM.privateApis);function Qlt({categories:e,selectedCategory:t,onSelectCategory:o,children:r}){let s={type:"tween",duration:(0,MM.useReducedMotion)()?0:.25,ease:[.6,0,.4,1]},a=(0,MM.usePrevious)(t),l=t?t.name:null,[d,u]=(0,tTe.useState)(),f=e?.[0]?.name;return l===null&&!d&&f&&u(f),(0,Cv.jsxs)(OM,{selectOnMove:!1,selectedTabId:l,orientation:"vertical",onSelect:p=>{o(e.find(m=>m.name===p))},activeTabId:d,onActiveTabIdChange:u,children:[(0,Cv.jsx)(OM.TabList,{className:"block-editor-inserter__category-tablist",children:e.map(p=>(0,Cv.jsx)(OM.Tab,{tabId:p.name,"aria-current":p===t?"true":void 0,children:p.label},p.name))}),e.map(p=>(0,Cv.jsx)(OM.TabPanel,{tabId:p.name,focusable:!1,children:(0,Cv.jsx)(AM.__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})},p.name))]})}var NM=Qlt;var Ga=c(T(),1);function Jlt({onSelectCategory:e,selectedCategory:t,onInsert:o,rootClientId:r,children:n}){let[i,s]=(0,oTe.useState)(!1),a=lk(r),l=(0,rTe.useViewportMatch)("medium","<");return a.length?(0,Ga.jsxs)(Ga.Fragment,{children:[!l&&(0,Ga.jsxs)("div",{className:"block-editor-inserter__block-patterns-tabs-container",children:[(0,Ga.jsx)(NM,{categories:a,selectedCategory:t,onSelectCategory:e,children:n}),(0,Ga.jsx)(nTe.Button,{__next40pxDefaultSize:!0,className:"block-editor-inserter__patterns-explore-button",onClick:()=>s(!0),variant:"secondary",children:(0,iTe.__)("Explore all patterns")})]}),l&&(0,Ga.jsx)(IM,{categories:a,children:d=>(0,Ga.jsx)("div",{className:"block-editor-inserter__category-panel",children:(0,Ga.jsx)(BM,{onInsert:o,rootClientId:r,category:d},d.name)})}),i&&(0,Ga.jsx)(QEe,{initialCategory:t||a[0],patternCategories:a,onModalClose:()=>s(!1),rootClientId:r})]}):(0,Ga.jsx)(md,{})}var sTe=Jlt;var ETe=c(X(),1),TTe=c(ue(),1),RTe=c(Q(),1),dk=c(D(),1);var Gu=c(Q(),1),Rr=c(X(),1),Qi=c(D(),1),z5=c(ue(),1),kTe=c(oe(),1),STe=c(Ut(),1),CTe=c(Ks(),1);var mTe=c(Q(),1),gTe=c(X(),1);var Tr=c(Q(),1),Zi=c(X(),1),Uu=c(D(),1),yQ=c(ce(),1);var F5=c(oe(),1),dTe=c(Ks(),1),uTe=c(vQ(),1),fTe=c(ml(),1);var lTe=c(ce(),1),cTe=c(T(),1),ect={image:"img",video:"video",audio:"audio"};function LM(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=ect[t],s=(0,cTe.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,lTe.createBlock)(`core/${t}`,o),s]}var mo=c(T(),1),tct=["image"],oct={placement:"bottom-end",className:"block-editor-inserter__media-list__item-preview-options__popover"};function rct({category:e,media:t,onDetach:o}){if(!e.getReportUrl&&!o)return null;let r=e.getReportUrl?.(t);return(0,mo.jsx)(Tr.DropdownMenu,{className:"block-editor-inserter__media-list__item-preview-options",label:(0,Zi.__)("Options"),popoverProps:oct,icon:Hc,children:()=>(0,mo.jsxs)(Tr.MenuGroup,{children:[r&&(0,mo.jsx)(Tr.MenuItem,{onClick:()=>window.open(r,"_blank").focus(),icon:Oj,children:(0,Zi.sprintf)((0,Zi.__)("Report %s"),e.mediaType)}),o&&(0,mo.jsx)(Tr.MenuItem,{onClick:()=>o(t),icon:$s,children:e.postTypeLabel?(0,Zi.sprintf)((0,Zi.__)("Detach from %s"),e.postTypeLabel):(0,Zi.__)("Detach from post")})]})})}function nct({onClose:e,onSubmit:t}){return(0,mo.jsxs)(Tr.Modal,{title:(0,Zi.__)("Insert external image"),onRequestClose:e,className:"block-editor-inserter-media-tab-media-preview-inserter-external-image-modal",children:[(0,mo.jsxs)(Tr.__experimentalVStack,{spacing:3,children:[(0,mo.jsx)("p",{children:(0,Zi.__)("This image cannot be uploaded to your Media Library, but it can still be inserted as an external image.")}),(0,mo.jsx)("p",{children:(0,Zi.__)("External images can be removed by the external provider without warning and could even have legal compliance issues related to privacy legislation.")})]}),(0,mo.jsxs)(Tr.Flex,{className:"block-editor-block-lock-modal__actions",justify:"flex-end",expanded:!1,children:[(0,mo.jsx)(Tr.FlexItem,{children:(0,mo.jsx)(Tr.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:e,children:(0,Zi.__)("Cancel")})}),(0,mo.jsx)(Tr.FlexItem,{children:(0,mo.jsx)(Tr.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:t,children:(0,Zi.__)("Insert")})})]})]})}function pTe({media:e,onClick:t,onDetach:o,category:r}){let[n,i]=(0,Uu.useState)(!1),[s,a]=(0,Uu.useState)(!1),[l,d]=(0,Uu.useState)(!1),[u,f]=(0,Uu.useMemo)(()=>LM(e,r.mediaType),[e,r.mediaType]),{createErrorNotice:p,createSuccessNotice:m}=(0,F5.useDispatch)(dTe.store),{getSettings:g,getBlock:h}=(0,F5.useSelect)(P),{updateBlockAttributes:b}=(0,F5.useDispatch)(P),v=(0,Uu.useCallback)(x=>{if(l)return;let k=g(),C=(0,yQ.cloneBlock)(x),{id:S,url:R,caption:E}=C.attributes;if(!S&&!k.mediaUpload){i(!0);return}if(S){t(C);return}d(!0),window.fetch(R).then(I=>I.blob()).then(I=>{let B=(0,fTe.getFilename)(R)||"image.jpg",O=new File([I],B,{type:I.type});k.mediaUpload({filesList:[O],additionalData:{caption:E},onFileChange([M]){(0,uTe.isBlobURL)(M.url)||(h(C.clientId)?b(C.clientId,{...C.attributes,id:M.id,url:M.url}):(t({...C,attributes:{...C.attributes,id:M.id,url:M.url}}),m((0,Zi.__)("Image uploaded and inserted."),{type:"snackbar",id:"inserter-notice"})),d(!1))},allowedTypes:tct,onError(M){p(M,{type:"snackbar",id:"inserter-notice"}),d(!1)}})}).catch(()=>{i(!0),d(!1)})},[l,g,t,m,b,p,h]),_=typeof e.title=="string"?e.title:e.title?.rendered||(0,Zi.__)("no title"),y=(0,Uu.useCallback)(()=>a(!0),[]),w=(0,Uu.useCallback)(()=>a(!1),[]);return(0,mo.jsxs)(mo.Fragment,{children:[(0,mo.jsx)(Jx,{isEnabled:!0,blocks:[u],children:({draggable:x,onDragStart:k,onDragEnd:C})=>(0,mo.jsx)("div",{className:U("block-editor-inserter__media-list__list-item",{"is-hovered":s}),draggable:x,onDragStart:k,onDragEnd:C,children:(0,mo.jsxs)("div",{onMouseEnter:y,onMouseLeave:w,children:[(0,mo.jsxs)(uo.Root,{children:[(0,mo.jsx)(uo.Trigger,{render:(0,mo.jsx)(Tr.Composite.Item,{render:(0,mo.jsx)("div",{"aria-label":_,role:"option",className:"block-editor-inserter__media-list__item"}),onClick:()=>v(u),children:(0,mo.jsxs)("div",{className:"block-editor-inserter__media-list__item-preview",children:[f,l&&(0,mo.jsx)("div",{className:"block-editor-inserter__media-list__item-preview-spinner",children:(0,mo.jsx)(Tr.Spinner,{})})]})})}),(0,mo.jsx)(uo.Popup,{children:_})]}),!l&&(0,mo.jsx)(rct,{category:r,media:e,onDetach:o})]})})}),n&&(0,mo.jsx)(nct,{onClose:()=>i(!1),onSubmit:()=>{t((0,yQ.cloneBlock)(u)),m((0,Zi.__)("Image inserted."),{type:"snackbar",id:"inserter-notice"}),i(!1)}})]})}var wQ=c(T(),1);function ict({mediaList:e,category:t,onClick:o,onDetach:r,label:n=(0,gTe.__)("Media List")}){return(0,wQ.jsx)(mTe.Composite,{role:"listbox",className:"block-editor-inserter__media-list","aria-label":n,children:e.map((i,s)=>(0,wQ.jsx)(pTe,{media:i,category:t,onClick:o,onDetach:r},i.id||i.sourceId||s))})}var hTe=ict;var bTe=c(Q(),1),sct=()=>null,Wu=(0,bTe.withFilters)("editor.MediaUpload")(sct);var _Te=c(oe(),1);function act({fallback:e=null,children:t}){return(0,_Te.useSelect)(r=>{let{getSettings:n}=r(P);return!!n().mediaUpload},[])?t:e}var hd=act;var Is=c(D(),1),xQ=c(oe(),1);function vTe(e){return Array.isArray(e)?{mediaItems:e}:{mediaItems:e?.mediaItems??[],totalItems:e?.totalItems,totalPages:e?.totalPages}}function yTe(e,t={},o){let[r,n]=(0,Is.useState)(),[i,s]=(0,Is.useState)({}),[a,l]=(0,Is.useState)(!1),d=(0,Is.useRef)(),u=(0,Is.useRef)(),f=(0,Is.useRef)(),p=(0,Is.useRef)();return(0,Is.useEffect)(()=>{(async()=>{let m=JSON.stringify({category:e.name,...t}),g={};d.current=g,l(!0),(u.current!==m||f.current!==e.fetch)&&n([]),(p.current!==e.name||f.current!==e.fetch)&&s({}),u.current=m,f.current=e.fetch,p.current=e.name;let{page:h,...b}=t,v=h>1?t:b,{mediaItems:_,totalItems:y,totalPages:w}=vTe(await e.fetch?.(v));g===d.current&&(n(_),s({totalItems:y,totalPages:w}),l(!1))})()},[e.name,e.fetch,...Object.values(t),o]),{mediaList:r,isLoading:a,totalItems:i.totalItems,totalPages:i.totalPages}}function wTe(e,t=400){let[o,r]=(0,Is.useState)(!1);return(0,Is.useEffect)(()=>{if(!e)return;let n=setTimeout(()=>r(!0),t);return()=>{clearTimeout(n),r(!1)}},[e,t]),o}function xTe(e){let[t,o]=(0,Is.useState)([]),r=(0,xQ.useSelect)(a=>Z(a(P)).getInserterMediaCategories(),[]),{canInsertImage:n,canInsertVideo:i,canInsertAudio:s}=(0,xQ.useSelect)(a=>{let{canInsertBlockType:l}=a(P);return{canInsertImage:l("core/image",e),canInsertVideo:l("core/video",e),canInsertAudio:l("core/audio",e)}},[e]);return(0,Is.useEffect)(()=>{(async()=>{let a=[];if(!r)return;let l=new Map(await Promise.all(r.map(async u=>{if(u.isExternalResource)return[u.name,!0];let f=[];try{let{mediaItems:p}=vTe(await u.fetch({per_page:1}));f=p}catch{}return[u.name,!!f.length]}))),d={image:n,video:i,audio:s};r.forEach(u=>{d[u.mediaType]&&(l.get(u.name)||u.emptyMessage)&&a.push(u)}),a.length&&o(a)})()},[n,i,s,r]),t}var wn=c(T(),1),lct=20,cct=["image"];function dct({onSelect:e}){return(0,wn.jsx)(hd,{children:(0,wn.jsx)(Wu,{multiple:"add",onSelect:e,allowedTypes:cct,title:(0,Rr.__)("Attach images"),render:({open:t})=>(0,wn.jsx)(Gu.Button,{__next40pxDefaultSize:!0,className:"block-editor-inserter__media-panel-attach","data-unstable-ignore-focus-outside-for-relatedtarget":".media-modal",onClick:o=>{o.target.focus(),t()},variant:"secondary",children:(0,Rr.__)("Attach images")})})})}function j5({rootClientId:e,onInsert:t,category:o}){let[r,n,i]=(0,z5.useDebouncedInput)(),[s,a]=(0,Qi.useState)(1),l=(0,z5.usePrevious)(o.name),d=(0,z5.usePrevious)(i);(l!==o.name||d!==i)&&s!==1&&a(1);let u=(0,Qi.useMemo)(()=>({per_page:lct,page:s,search:i}),[s,i]),[f,p]=(0,Qi.useState)(0),{mediaList:m,isLoading:g,totalItems:h,totalPages:b}=yTe(o,u,f),v=b||1;typeof b=="number"&&s>v&&a(v);let _=!o.isExternalResource,y=_?o.attach:void 0,w=_?o.detach:void 0,x=_?o.subscribe:void 0,k=v>1,C=k||!!y,S=(0,Qi.useRef)(),R=(0,Qi.useCallback)(G=>{(0,STe.getScrollContainer)(S.current)?.scrollTo(0,0),a(G)},[]),{createErrorNotice:E,createSuccessNotice:I,createWarningNotice:B}=(0,kTe.useDispatch)(CTe.store),O=wTe(g),M=(0,Qi.useCallback)(()=>{_&&o.invalidate?.(u),p(G=>G+1)},[o,u,_]);(0,Qi.useEffect)(()=>{if(x)return x(()=>p(G=>G+1),u)},[x,u]);let N=(0,Qi.useCallback)(async G=>{try{let $=await y(G);if(!$){B((0,Rr.__)("No images were attached."),{type:"snackbar",id:"inserter-notice"});return}M(),I(o.postTypeLabel?(0,Rr.sprintf)((0,Rr._n)("%1$d image attached to %2$s.","%1$d images attached to %2$s.",$),$,o.postTypeLabel):(0,Rr.sprintf)((0,Rr._n)("%d image attached to post.","%d images attached to post.",$),$),{type:"snackbar",id:"inserter-notice"})}catch{E((0,Rr.__)("Could not attach images."),{type:"snackbar",id:"inserter-notice"})}},[y,o,M,E,I,B]),j=(0,Qi.useCallback)(async G=>{try{await w(G),M(),I(o.postTypeLabel?(0,Rr.sprintf)((0,Rr.__)("Image detached from %s."),o.postTypeLabel):(0,Rr.__)("Image detached from post."),{type:"snackbar",id:"inserter-notice"})}catch{E((0,Rr.__)("Could not detach image."),{type:"snackbar",id:"inserter-notice"})}},[w,o,M,E,I]),[V,A]=(0,Qi.useState)(),L=(0,Qi.useCallback)(()=>{let G=V;A(void 0),j(G)},[j,V]),z="block-editor-inserter__media-panel",F=o.labels.search_items||(0,Rr.__)("Search");return(0,wn.jsxs)("div",{ref:S,className:U(z,{"has-footer":C}),children:[(0,wn.jsx)(Gu.SearchControl,{className:`${z}-search`,onChange:n,value:r,label:F,placeholder:F}),g&&!m?.length&&(0,wn.jsx)("div",{className:`${z}-spinner`,children:(0,wn.jsx)(Gu.Spinner,{})}),!g&&!m?.length&&(0,wn.jsx)(md,{children:o.emptyMessage&&!i?o.emptyMessage:(0,Rr.__)("No results found.")}),!!m?.length&&(0,wn.jsx)("div",{className:U(`${z}-results`,{"is-loading":O}),"aria-busy":O,children:(0,wn.jsx)(hTe,{rootClientId:e,onClick:t,onDetach:w?A:void 0,mediaList:m,category:o})}),C&&(0,wn.jsxs)(De,{direction:"column",gap:"sm",className:`${z}-footer`,children:[k&&(0,wn.jsx)(rk,{currentPage:s,numPages:v,changePage:R,totalItems:h}),y&&(0,wn.jsx)(dct,{onSelect:N})]}),V&&(0,wn.jsxs)(Gu.Modal,{title:(0,Rr.__)("Detach image"),onRequestClose:()=>A(void 0),overlayClassName:`${z}-detach-modal`,children:[(0,wn.jsx)("p",{children:o.postTypeLabel?(0,Rr.sprintf)((0,Rr.__)("Detach this image from the current %s? The image will remain in the Media Library."),o.postTypeLabel):(0,Rr.__)("Detach this image from the current post? The image will remain in the Media Library.")}),(0,wn.jsxs)("div",{className:`${z}-detach-actions`,children:[(0,wn.jsx)(Gu.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>A(void 0),children:(0,Rr.__)("Cancel")}),(0,wn.jsx)(Gu.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:L,children:(0,Rr.__)("Detach")})]})]})]})}var $a=c(T(),1),uct=["image","video","audio"];function fct({rootClientId:e,selectedCategory:t,onSelectCategory:o,onInsert:r,children:n}){let i=xTe(e),s=(0,TTe.useViewportMatch)("medium","<"),a="block-editor-inserter__media-tabs",l=(0,dk.useCallback)(u=>{if(!u?.url)return;let f=window.__experimentalDataViewsMediaModal&&u.mime_type?u.mime_type.split("/")[0]:u.type,[p]=LM(u,f);r(p)},[r]),d=(0,dk.useMemo)(()=>i.map(u=>({...u,label:u.labels.name})),[i]);return(0,dk.useEffect)(()=>{if(!t)return;let u=d.find(f=>f.name===t.name);u&&u!==t?o(u):u||o(null)},[d,o,t]),d.length?(0,$a.jsxs)($a.Fragment,{children:[!s&&(0,$a.jsxs)("div",{className:`${a}-container`,children:[(0,$a.jsx)(NM,{categories:d,selectedCategory:t,onSelectCategory:o,children:n}),(0,$a.jsx)(hd,{children:(0,$a.jsx)(Wu,{multiple:!1,onSelect:l,allowedTypes:uct,render:({open:u})=>(0,$a.jsx)(RTe.Button,{__next40pxDefaultSize:!0,onClick:f=>{f.target.focus(),u()},className:"block-editor-inserter__media-library-button",variant:"secondary","data-unstable-ignore-focus-outside-for-relatedtarget":".media-modal",children:(0,ETe.__)("Open Media Library")})})})]}),s&&(0,$a.jsx)(IM,{categories:d,screenClassName:"block-editor-inserter__media-mobile-screen",children:u=>(0,$a.jsx)(j5,{onInsert:r,rootClientId:e,category:u})})]}):(0,$a.jsx)(md,{})}var kQ=fct;var H5=c(D(),1),Eh=c(X(),1);var VM=c(ue(),1),BTe=c(zo(),1),OTe=c(oe(),1);var ITe=c(Q(),1),{Fill:PTe,Slot:pct}=(0,ITe.createSlotFill)("__unstableInserterMenuExtension");PTe.Slot=pct;var DM=PTe;var da=c(T(),1),mct=9,gct=[];function hct({filterValue:e,onSelect:t,onHover:o,onHoverPattern:r,rootClientId:n,clientId:i,isAppender:s,__experimentalInsertionIndex:a,maxBlockPatterns:l,maxBlockTypes:d,showBlockDirectory:u=!1,isDraggable:f=!0,shouldFocusBlock:p=!0,prioritizePatterns:m,selectBlockOnInsert:g,isQuick:h}){let b=(0,VM.useDebounce)(BTe.speak,500),{prioritizedBlocks:v}=(0,OTe.useSelect)(V=>({prioritizedBlocks:V(P).getBlockListSettings(n)?.prioritizedInserterBlocks||gct}),[n]),[_,y]=kh({onSelect:t,rootClientId:n,clientId:i,isAppender:s,insertionIndex:a,shouldFocusBlock:p,selectBlockOnInsert:g}),[w,x,k,C]=cg(_,y,h),[S,,R]=Sh(y,_,void 0,h),E=(0,H5.useMemo)(()=>{if(l===0)return[];let V=lg(S,e);return l!==void 0?V.slice(0,l):V},[e,S,l]),I=d;m&&E.length>2&&(I=0);let B=(0,H5.useMemo)(()=>{if(I===0)return[];let V=w.filter(z=>z.name!=="core/block"),A=du(V,"frecency","desc");!e&&v.length&&(A=T9(A,v));let L=S9(A,x,k,e);return I!==void 0?L.slice(0,I):L},[e,w,x,k,I,v]);(0,H5.useEffect)(()=>{if(!e)return;let V=B.length+E.length,A=(0,Eh.sprintf)((0,Eh._n)("%d result found.","%d results found.",V),V);b(A)},[e,b,B,E]);let O=(0,VM.useAsyncList)(B,{step:mct}),M=B.length>0||E.length>0,N=!!B.length&&(0,da.jsx)(xh,{title:(0,da.jsx)(Et,{children:(0,Eh.__)("Blocks")}),children:(0,da.jsx)(kv,{items:O,onSelect:C,onHover:o,label:(0,Eh.__)("Blocks"),isDraggable:f})}),j=!!E.length&&(0,da.jsx)(xh,{title:(0,da.jsx)(Et,{children:(0,Eh.__)("Patterns")}),children:(0,da.jsx)("div",{className:"block-editor-inserter__quick-inserter-patterns",children:(0,da.jsx)(ju,{blockPatterns:E,onClickPattern:R,onHover:r,isDraggable:f})})});return(0,da.jsxs)(vM,{children:[!u&&!M&&(0,da.jsx)(md,{}),m?j:N,!!B.length&&!!E.length&&(0,da.jsx)("div",{className:"block-editor-inserter__quick-inserter-separator"}),m?N:j,u&&(0,da.jsx)(DM.Slot,{fillProps:{onSelect:C,onHover:o,filterValue:e,hasItems:M,rootClientId:_},children:V=>V.length?V:M?null:(0,da.jsx)(md,{})})]})}var FM=hct;var jM=c(Q(),1),MTe=c(D(),1);var Mp=c(T(),1),{Tabs:zM}=Z(jM.privateApis);function bct({defaultTabId:e,onClose:t,onSelect:o,selectedTab:r,tabs:n,closeButtonLabel:i},s){return(0,Mp.jsx)("div",{className:"block-editor-tabbed-sidebar",children:(0,Mp.jsxs)(zM,{selectOnMove:!1,defaultTabId:e,onSelect:o,selectedTabId:r,children:[(0,Mp.jsxs)("div",{className:"block-editor-tabbed-sidebar__tablist-and-close-button",children:[(0,Mp.jsx)(jM.Button,{className:"block-editor-tabbed-sidebar__close-button",icon:Lf,label:i,onClick:()=>t(),size:"compact"}),(0,Mp.jsx)(zM.TabList,{className:"block-editor-tabbed-sidebar__tablist",ref:s,children:n.map(a=>(0,Mp.jsx)(zM.Tab,{tabId:a.name,className:"block-editor-tabbed-sidebar__tab",children:a.title},a.name))})]}),n.map(a=>(0,Mp.jsx)(zM.TabPanel,{tabId:a.name,focusable:!1,className:"block-editor-tabbed-sidebar__tabpanel",ref:a.panelRef,children:a.panel},a.name))]})})}var HM=(0,MTe.forwardRef)(bct);var UM=c(oe(),1),uk=c(D(),1);function U5(e=!0){let{setZoomLevel:t,resetZoomLevel:o}=Z((0,UM.useDispatch)(P)),{isZoomedOut:r,isZoomOut:n}=(0,UM.useSelect)(a=>{let{isZoomOut:l}=Z(a(P));return{isZoomedOut:l(),isZoomOut:l}},[]),i=(0,uk.useRef)(!1),s=(0,uk.useRef)(e);(0,uk.useEffect)(()=>{r!==s.current&&(i.current=!1)},[r]),(0,uk.useEffect)(()=>(s.current=e,e!==n()&&(i.current=!0,e?t("auto-scaled"):o()),()=>{i.current&&n()&&o()}),[e,n,o,t])}var go=c(T(),1),ATe=()=>{};function _ct({rootClientId:e,clientId:t,isAppender:o,__experimentalInsertionIndex:r,onSelect:n,showInserterHelpPanel:i,showMostUsedBlocks:s,__experimentalFilterValue:a="",shouldFocusBlock:l=!0,onPatternCategorySelection:d,onClose:u,__experimentalInitialTab:f,__experimentalInitialCategory:p},m){let{isZoomOutMode:g,hasSectionRootClientId:h}=(0,GM.useSelect)(_e=>{let{isZoomOut:xe,getSectionRootClientId:he}=Z(_e(P));return{isZoomOutMode:xe(),hasSectionRootClientId:!!he()}},[]),[b,v,_]=(0,W5.useDebouncedInput)(a),[y,w]=(0,vo.useState)(null),[x,k]=(0,vo.useState)(p),[C,S]=(0,vo.useState)("all"),[R,E]=(0,vo.useState)(null),I=(0,W5.useViewportMatch)("large"),O=(0,W5.useViewportMatch)("medium","<")?u:ATe;function M(){return f||(g?"patterns":"blocks")}let[N,j]=(0,vo.useState)(M());U5(h&&(N==="patterns"||N==="media")&&I);let[A,L,z]=kh({rootClientId:e,clientId:t,isAppender:o,insertionIndex:r,shouldFocusBlock:l}),{hideInsertionPoint:F}=(0,GM.useDispatch)(P),G=(0,vo.useRef)(),$=(0,vo.useCallback)((_e,xe,he,Ze)=>{F(),L(_e,xe,he,Ze),n(_e),O(),window.requestAnimationFrame(()=>{!l&&!G.current?.contains(m.current.ownerDocument.activeElement)&&G.current?.querySelector("button").focus()})},[F,L,O,n,m,l]),K=(0,vo.useCallback)((_e,xe,...he)=>{F(),L(_e,{patternName:xe},...he),n(),O()},[F,L,O,n]),q=(0,vo.useCallback)(_e=>{z(_e),w(_e)},[z,w]),H=(0,vo.useCallback)((_e,xe)=>{k(_e),S(xe),d?.()},[k,d]),J=N==="patterns"&&!_&&!!x,W=N==="media"&&!!R,[Y,ee]=(0,vo.useState)(!1),re=(0,vo.useRef)(null),ne=(0,vo.useRef)(null),ie=(0,vo.useRef)(null);(0,vo.useEffect)(()=>{let _e=he=>{ee(he.currentTarget.scrollTop>0)},xe=[re.current,ne.current,ie.current].filter(Boolean);return xe.forEach(he=>he.addEventListener("scroll",_e)),()=>{xe.forEach(he=>he.removeEventListener("scroll",_e))}},[]);let be=(0,vo.useMemo)(()=>N==="media"?null:(0,go.jsxs)(go.Fragment,{children:[(0,go.jsx)(WM.SearchControl,{className:U("block-editor-inserter__search",{"is-scrolled":Y}),onChange:_e=>{y&&w(null),v(_e)},value:b,label:(0,Th.__)("Search"),placeholder:(0,Th.__)("Search")}),!!_&&(0,go.jsx)(FM,{filterValue:_,onSelect:n,onHover:q,rootClientId:e,clientId:t,isAppender:o,__experimentalInsertionIndex:r,showBlockDirectory:!0,shouldFocusBlock:l,prioritizePatterns:N==="patterns"})]}),[N,y,w,v,b,_,n,q,l,t,e,r,o,Y]),pe=(0,vo.useMemo)(()=>(0,go.jsxs)(go.Fragment,{children:[(0,go.jsx)("div",{className:"block-editor-inserter__block-list",children:(0,go.jsx)(NEe,{ref:G,rootClientId:A,onInsert:$,onHover:q,showMostUsedBlocks:s})}),i&&(0,go.jsxs)("div",{className:"block-editor-inserter__tips",children:[(0,go.jsx)(Et,{render:(0,go.jsx)("h2",{}),children:(0,Th.__)("A tip for using the block editor")}),(0,go.jsx)(Bke,{})]})]}),[A,$,q,s,i]),Ee=(0,vo.useMemo)(()=>(0,go.jsx)(sTe,{rootClientId:A,onInsert:K,onSelectCategory:H,selectedCategory:x,children:J&&(0,go.jsx)(BM,{rootClientId:A,onInsert:K,category:x,patternFilter:C,showTitlesAsTooltip:!0})}),[A,K,H,C,x,J]),ye=(0,vo.useMemo)(()=>(0,go.jsx)(kQ,{rootClientId:A,selectedCategory:R,onSelectCategory:E,onInsert:$,children:W&&(0,go.jsx)(j5,{rootClientId:A,onInsert:$,category:R})}),[A,$,R,E,W]),Oe=_e=>{_e!=="patterns"&&k(null),j(_e)},we=(0,vo.useRef)();return(0,vo.useLayoutEffect)(()=>{if(!we.current)return;let _e=window.requestAnimationFrame(()=>{we.current?.querySelector('[role="tab"][aria-selected="true"]')?.focus()});return()=>window.cancelAnimationFrame(_e)},[]),(0,go.jsxs)("div",{className:U("block-editor-inserter__menu",{"show-panel":J||W,"is-zoom-out":g}),ref:m,children:[(0,go.jsx)("div",{className:"block-editor-inserter__main-area",children:(0,go.jsx)(HM,{ref:we,onSelect:Oe,onClose:u,selectedTab:N,closeButtonLabel:(0,Th.__)("Close Block Inserter"),tabs:[{name:"blocks",title:(0,Th.__)("Blocks"),panelRef:re,panel:(0,go.jsxs)(go.Fragment,{children:[be,N==="blocks"&&!_&&pe]})},{name:"patterns",title:(0,Th.__)("Patterns"),panelRef:ne,panel:(0,go.jsxs)(go.Fragment,{children:[be,N==="patterns"&&!_&&Ee]})},{name:"media",title:(0,Th.__)("Media"),panelRef:ie,panel:(0,go.jsxs)(go.Fragment,{children:[be,ye]})}]})}),i&&y&&(0,go.jsx)(WM.Popover,{className:"block-editor-inserter__preview-container__popover",placement:"right-start",offset:{mainAxis:16,crossAxis:16},focusOnMount:!1,animate:!1,children:(0,go.jsx)(gEe,{item:y})})]})}var SQ=(0,vo.forwardRef)(_ct);function vct(e,t){return(0,go.jsx)(SQ,{...e,onPatternCategorySelection:ATe,ref:t})}var NTe=(0,vo.forwardRef)(vct);var $M=c(D(),1),G5=c(X(),1),YM=c(Q(),1),LTe=c(oe(),1);var Rh=c(T(),1),yct=6,wct=6,xct=2;function KM({onSelect:e,rootClientId:t,clientId:o,isAppender:r,selectBlockOnInsert:n,hasSearch:i=!0}){let[s,a]=(0,$M.useState)(""),[l,d]=kh({onSelect:e,rootClientId:t,clientId:o,isAppender:r,selectBlockOnInsert:n}),[u]=cg(l,d,!0),{setInserterIsOpened:f,insertionIndex:p}=(0,LTe.useSelect)(h=>{let{getSettings:b,getBlockIndex:v,getBlockCount:_}=h(P),y=b(),w=v(o),x=_();return{setInserterIsOpened:y.__experimentalSetIsInserterOpened,insertionIndex:w===-1?x:w}},[o]),m=i&&u.length>yct;(0,$M.useEffect)(()=>{f&&f(!1)},[f]);let g=()=>{f({filterValue:s,onSelect:e,rootClientId:t,insertionIndex:p})};return(0,Rh.jsxs)("div",{className:U("block-editor-inserter__quick-inserter",{"has-search":m,"has-expand":f}),children:[m&&(0,Rh.jsx)(YM.SearchControl,{className:"block-editor-inserter__search",value:s,onChange:h=>{a(h)},label:(0,G5.__)("Search"),placeholder:(0,G5.__)("Search")}),(0,Rh.jsxs)("div",{className:"block-editor-inserter__quick-inserter-results",children:[(0,Rh.jsx)(FM,{filterValue:s,onSelect:e,rootClientId:t,clientId:o,isAppender:r,maxBlockPatterns:s?xct:0,maxBlockTypes:wct,isDraggable:!1,selectBlockOnInsert:n,isQuick:!0}),f&&(0,Rh.jsx)("div",{className:"block-editor-inserter__quick-inserter-expand",children:(0,Rh.jsx)(YM.Button,{className:"block-editor-inserter__quick-inserter-expand-toggle",__next40pxDefaultSize:!0,variant:"secondary",onClick:g,"aria-label":(0,G5.__)("Browse all. This will open the main inserter panel in the editor toolbar."),children:(0,G5.__)("Browse all")})})]})]})}var kct=50;function DTe(e,t){if(!e||!e.attributes||!t?.__experimentalLabel)return null;let o=t.__experimentalLabel(e.attributes,{context:"appender"});return typeof o=="string"&&o.length<kct&&o.length>0?o:null}var fk=c(T(),1),Sct=({onToggle:e,disabled:t,isOpen:o,blockTitle:r,hasSingleBlockType:n,appenderLabel:i,toggleProps:s={}},a)=>{let{as:l=qM.Button,label:d,onClick:u,...f}=s,p=d;!p&&i?p=i:!p&&n?p=(0,Ap.sprintf)((0,Ap._x)("Add %s","directly add the only allowed block"),r.toLowerCase()):p||(p=(0,Ap._x)("Add block","Generic label for block inserter button"));function m(g){e&&e(g),u&&u(g)}return(0,fk.jsx)(l,{ref:a,__next40pxDefaultSize:s.as?void 0:!0,icon:Ys,label:p,tooltipPosition:"bottom",onClick:m,className:"block-editor-inserter__toggle","aria-haspopup":n?!1:"true","aria-expanded":n?!1:o,isPressed:!n&&o,disabled:t,...f})},Cct=(0,CQ.forwardRef)(Sct),Ect=({clientId:e,rootClientId:t,disabled:o,isAppender:r,position:n,selectBlockOnInsert:i,shouldDirectInsert:s=!0,showInserterHelpPanel:a,__experimentalIsQuick:l,onSelectOrClose:d,onToggle:u,renderToggle:f,toggleProps:p},m)=>{let{hasItems:g,hasSingleBlockType:h,blockTitle:b,allowedBlockType:v,blockToInsert:_,appenderLabel:y,targetRootClientId:w}=(0,pk.useSelect)(V=>{let{getBlockRootClientId:A,hasInserterItems:L,getAllowedBlocks:z,getDirectInsertBlock:F,getBlockListSettings:G}=V(P),{getBlockVariations:$,getBlockType:K}=V(Ev.store),q=t||A(e)||void 0,H=z(q),J=s&&F(q),{defaultBlock:W}=G(q)??{},Y=H?.length===1&&$(H[0].name,"inserter")?.length===0,ee=Y?H[0]:null,re=J||null;!re&&Y&&W?.name===ee.name&&(re=W);let ne=J?K(J.name):null;return{hasItems:L(q),hasSingleBlockType:Y,blockTitle:ee?ee.title:"",allowedBlockType:ee,blockToInsert:re,appenderLabel:DTe(J,ne),targetRootClientId:q}},[t,e,s]),{insertBlock:x}=(0,pk.useDispatch)(P),{getBlock:k,getBlockIndex:C,getBlockOrder:S,getBlockRootClientId:R,getBlockSelectionEnd:E,getPreviousBlockClientId:I}=(0,pk.useSelect)(P),{getActiveBlockVariation:B,getBlockType:O}=(0,pk.useSelect)(Ev.store);if(!g&&(r||w||e))return null;function M(){let V=_?.name??v.name;function A(){let K;if(e){let q=k(e),H=k(I(e));q?.name===H?.name&&(K=H?.attributes)}else if(w){let q=k(w)?.innerBlocks?.at(-1);q?.name===V&&(K=q.attributes)}return Ow(V,K)}function L(){if(e)return C(e);let K=E();return!r&&K&&R(K)===w?C(K)+1:S(w).length}let z=A(),F=(0,Ev.createBlock)(V,{..._?.attributes,...z});x(F,L(),w,i),d?.(F);let G=O(V),$;if(G&&($=(0,Ev.__experimentalGetBlockLabel)(G,F.attributes),$===G.title&&($=B(V,F.attributes)?.title||$)),$){let K=(0,Ap.sprintf)((0,Ap.__)("%s block added"),$);(0,VTe.speak)(K)}}function N({onToggle:V,isOpen:A}){let L={onToggle:V,isOpen:A,disabled:o||!g,blockTitle:b,hasSingleBlockType:h,appenderLabel:y,toggleProps:p};return f?f(L):(0,fk.jsx)(Cct,{ref:m,...L})}function j({onClose:V}){return l?(0,fk.jsx)(KM,{onSelect:A=>{let L=Array.isArray(A)&&A?.length?A[0]:A;d&&typeof d=="function"&&d(L),V()},rootClientId:w,clientId:e,isAppender:r,selectBlockOnInsert:i}):(0,fk.jsx)(NTe,{onSelect:()=>{V()},onClose:V,rootClientId:w,clientId:e,isAppender:r,showInserterHelpPanel:a})}return h||_?N({onToggle:M}):(0,fk.jsx)(qM.Dropdown,{className:"block-editor-inserter",contentClassName:U("block-editor-inserter__popover",{"is-quick":l}),popoverProps:{position:n,shift:!0},onToggle:u,expandOnMobile:!0,headerTitle:(0,Ap.__)("Add a block"),renderToggle:N,renderContent:j,onClose:d})},Tct=(0,CQ.forwardRef)(Ect),ua=Tct;var $5=c(T(),1),Rct="\uFEFF";function mk({rootClientId:e}){let{showPrompt:t,isLocked:o,placeholder:r,isManualGrid:n}=(0,XM.useSelect)(d=>{let{getBlockCount:u,getSettings:f,getTemplateLock:p,getBlockAttributes:m}=d(P),g=!u(e),{bodyPlaceholder:h}=f();return{showPrompt:g,isLocked:!!p(e),placeholder:h,isManualGrid:m(e)?.layout?.isManualPlacement}},[e]),{insertDefaultBlock:i,startTyping:s}=(0,XM.useDispatch)(P);if(o||n)return null;let a=(0,FTe.decodeEntities)(r)||(0,EQ.__)("Type / to choose a block"),l=()=>{i(void 0,e),s()};return(0,$5.jsxs)("div",{"data-root-client-id":e||"",className:U("block-editor-default-block-appender",{"has-visible-prompt":t}),children:[(0,$5.jsx)("p",{tabIndex:"0",role:"button","aria-label":(0,EQ.__)("Add default block"),className:"block-editor-default-block-appender__content",onKeyDown:d=>{(ZM.ENTER===d.keyCode||ZM.SPACE===d.keyCode)&&l()},onClick:()=>l(),onFocus:()=>{t&&l()},children:t?a:Rct}),(0,$5.jsx)(ua,{rootClientId:e,position:"bottom right",isAppender:!0,__experimentalIsQuick:!0})]})}var zTe=c(Q(),1),TQ=c(D(),1),Y5=c(X(),1);var jTe=c(Gt(),1);var QM=c(T(),1);function HTe({rootClientId:e,className:t,onFocus:o,tabIndex:r,onSelect:n},i){return(0,QM.jsx)(ua,{position:"bottom center",rootClientId:e,__experimentalIsQuick:!0,onSelectOrClose:(...s)=>{n&&typeof n=="function"&&n(...s)},renderToggle:({onToggle:s,disabled:a,isOpen:l,blockTitle:d,hasSingleBlockType:u,appenderLabel:f})=>{let p=!u,m;return f?m=f:u?m=(0,Y5.sprintf)((0,Y5._x)("Add %s","directly add the only allowed block"),d.toLowerCase()):m=(0,Y5._x)("Add block","Generic label for block inserter button"),(0,QM.jsx)(zTe.Button,{__next40pxDefaultSize:!0,ref:i,onFocus:o,tabIndex:r,className:U(t,"block-editor-button-block-appender"),onClick:s,"aria-haspopup":p?"true":void 0,"aria-expanded":p?l:void 0,disabled:a,label:m,showTooltip:!0,children:(0,QM.jsx)(St,{icon:Ys})})},isAppender:!0})}var UTe=(0,TQ.forwardRef)((e,t)=>((0,jTe.default)("wp.blockEditor.ButtonBlockerAppender",{alternative:"wp.blockEditor.ButtonBlockAppender",since:"5.9"}),HTe(e,t))),Ih=(0,TQ.forwardRef)(HTe);var gk=c(T(),1);function Ict({rootClientId:e}){return(0,RQ.useSelect)(o=>o(P).canInsertBlockType((0,WTe.getDefaultBlockName)(),e))?(0,gk.jsx)(mk,{rootClientId:e}):(0,gk.jsx)(Ih,{rootClientId:e,className:"block-list-appender__toggle"})}function GTe({rootClientId:e,CustomAppender:t,className:o,tagName:r="div"}){let n=(0,RQ.useSelect)(i=>{let{getBlockInsertionPoint:s,isBlockInsertionPointVisible:a,getBlockCount:l}=i(P),d=s();return a()&&e===d?.rootClientId&&l(e)===0},[e]);return(0,gk.jsx)(r,{tabIndex:-1,className:U("block-list-appender wp-block",o,{"is-drag-over":n}),contentEditable:!1,"data-block":!0,children:t?(0,gk.jsx)(t,{}):(0,gk.jsx)(Ict,{rootClientId:e})})}var sRe=c(ue(),1),q5=c(oe(),1),MQ=c(D(),1),aRe=c(X(),1);var hk=c(oe(),1),Bh=c(D(),1),tA=c(Q(),1),nRe=c(ue(),1);var KTe=c(oe(),1),Ph=c(D(),1),qTe=c(Q(),1),XTe=c(X(),1);var YTe=c(ue(),1),IQ=c(Ut(),1),$Te=new WeakMap;function Pct(e){let t=(0,YTe.useRefEffect)(o=>{function r(i){let{deltaX:s,deltaY:a,target:l}=i,d=e.current,u=$Te.get(d);u||(u=(0,IQ.getScrollContainer)(d),$Te.set(d,u));let f=(0,IQ.getScrollContainer)(l);o.contains(f)||u.scrollBy(s,a)}let n={passive:!0};return o.addEventListener("wheel",r,n),()=>{o.removeEventListener("wheel",r,n)}},[e]);return e?t:null}var Tv=Pct;var PQ=c(T(),1),Bct=Number.MAX_SAFE_INTEGER;function Oct({previousClientId:e,nextClientId:t,children:o,__unstablePopoverSlot:r,__unstableContentRef:n,operation:i="insert",nearestSide:s="right",...a}){let[l,d]=(0,Ph.useReducer)(_=>(_+1)%Bct,0),{orientation:u,rootClientId:f,isVisible:p}=(0,KTe.useSelect)(_=>{let{getBlockListSettings:y,getBlockRootClientId:w,isBlockVisible:x}=_(P),k=w(e??t);return{orientation:y(k)?.orientation||"vertical",rootClientId:k,isVisible:x(e)&&x(t)}},[e,t]),m=eo(e),g=eo(t),h=u==="vertical",b=(0,Ph.useMemo)(()=>l<0||!m&&!g||!p?void 0:{contextElement:i==="group"?g||m:m||g,getBoundingClientRect(){let y=m?m.getBoundingClientRect():null,w=g?g.getBoundingClientRect():null,x=0,k=0,C=0,S=0;if(i==="group"){let R=w||y;k=R.top,C=0,S=R.bottom-R.top,x=s==="left"?R.left-2:R.right-2}else h?(k=y?y.bottom:w.top,C=w&&y?(y.width+w.width)/2:(y||w).width,S=w&&y?w.top-y.bottom:0,x=w&&y?(y.left+w.left)/2:(y||w).left):(k=y?y.top:w.top,S=y?y.height:w.height,(0,XTe.isRTL)()?(x=w?w.right:y.left,C=y&&w?y.left-w.right:0):(x=y?y.right:w.left,C=y&&w?w.left-y.right:0),C=Math.max(C,0));return new window.DOMRect(x,k,C,S)}},[m,g,l,h,p,i,s]),v=Tv(n);return(0,Ph.useLayoutEffect)(()=>{if(!m)return;let _=new window.MutationObserver(d);return _.observe(m,{attributes:!0}),()=>{_.disconnect()}},[m]),(0,Ph.useLayoutEffect)(()=>{if(!g)return;let _=new window.MutationObserver(d);return _.observe(g,{attributes:!0}),()=>{_.disconnect()}},[g]),(0,Ph.useLayoutEffect)(()=>{if(m)return m.ownerDocument.defaultView.addEventListener("resize",d),()=>{m.ownerDocument.defaultView?.removeEventListener("resize",d)}},[m]),!m&&!g||!p?null:(0,PQ.jsx)(qTe.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,PQ.jsx)("div",{className:"block-editor-block-popover__inbetween-container",children:o})},t+"--"+f)}var JM=Oct;var eRe=c(oe(),1),tRe=c(ue(),1),oRe=c(Q(),1);var Lp=c(D(),1);var ZTe=c(ue(),1),QTe=c(Q(),1),Np=c(D(),1);var BQ=c(T(),1),Mct=Number.MAX_SAFE_INTEGER;function Act({clientId:e,bottomClientId:t,children:o,__unstablePopoverSlot:r,__unstableContentRef:n,shift:i=!0,...s},a){let l=eo(e),d=eo(t??e),u=(0,ZTe.useMergeRefs)([a,Tv(n)]),[f,p]=(0,Np.useReducer)(g=>(g+1)%Mct,0);(0,Np.useLayoutEffect)(()=>{if(!l)return;let g,h=new window.MutationObserver(()=>{g||(g=window.requestAnimationFrame(()=>{g=null,p()}))});return h.observe(l,{attributes:!0}),()=>{h.disconnect(),g&&window.cancelAnimationFrame(g)}},[l]);let m=(0,Np.useMemo)(()=>{if(!(f<0||!l||t&&!d))return{getBoundingClientRect(){return d?JX(wx(l),wx(d)):wx(l)},contextElement:l}},[f,l,t,d]);return!l||t&&!d?null:(0,BQ.jsx)(QTe.Popover,{ref:u,animate:!1,focusOnMount:!1,anchor:m,__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 Rv=(0,Np.forwardRef)(Act),Nct=({clientId:e,bottomClientId:t,children:o,...r},n)=>(0,BQ.jsx)(Rv,{...r,bottomClientId:t,clientId:e,__unstableContentRef:void 0,__unstablePopoverSlot:void 0,ref:n,children:o}),JTe=(0,Np.forwardRef)(Nct);var eA=c(T(),1);function Lct({clientId:e,bottomClientId:t,children:o,shift:r=!1,additionalStyles:n,...i},s){t??=e;let a=eo(e);return(0,eA.jsx)(Rv,{ref:s,clientId:e,bottomClientId:t,shift:r,...i,children:a&&e===t?(0,eA.jsx)(Dct,{selectedElement:a,additionalStyles:n,children:o}):o})}function Dct({selectedElement:e,additionalStyles:t={},children:o}){let[r,n]=(0,Lp.useState)(e.offsetWidth),[i,s]=(0,Lp.useState)(e.offsetHeight);(0,Lp.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,Lp.useMemo)(()=>({position:"absolute",width:r,height:i,...t}),[r,i,t]);return(0,eA.jsx)("div",{style:a,children:o})}var Zl=(0,Lp.forwardRef)(Lct);var OQ=c(T(),1),K5={hide:{opacity:0,scaleY:.75},show:{opacity:1,scaleY:1},exit:{opacity:0,scaleY:.9}};function Vct({__unstablePopoverSlot:e,__unstableContentRef:t}){let{clientId:o}=(0,eRe.useSelect)(n=>{let{getBlockOrder:i,getBlockInsertionPoint:s}=n(P),a=s(),l=i(a.rootClientId);return l.length?{clientId:l[a.index]}:{}},[]),r=(0,tRe.useReducedMotion)();return(0,OQ.jsx)(Zl,{clientId:o,__unstablePopoverSlot:e,__unstableContentRef:t,className:"block-editor-block-popover__drop-zone",children:(0,OQ.jsx)(oRe.__unstableMotion.div,{"data-testid":"block-popover-drop-zone",initial:r?K5.show:K5.hide,animate:K5.show,exit:r?K5.show:K5.exit,className:"block-editor-block-popover__drop-zone-foreground"})})}var rRe=Vct;var Dp=c(T(),1),bk=(0,Bh.createContext)();bk.displayName="InsertionPointOpenRefContext";function Fct({__unstablePopoverSlot:e,__unstableContentRef:t,operation:o="insert",nearestSide:r="right"}){let{selectBlock:n,hideInsertionPoint:i}=(0,hk.useDispatch)(P),s=(0,Bh.useContext)(bk),a=(0,Bh.useRef)(),{orientation:l,previousClientId:d,nextClientId:u,rootClientId:f,isInserterShown:p,isDistractionFree:m,isZoomOutMode:g}=(0,hk.useSelect)(R=>{let{getBlockOrder:E,getBlockListSettings:I,getBlockInsertionPoint:B,isBlockBeingDragged:O,getPreviousBlockClientId:M,getNextBlockClientId:N,getSettings:j,isZoomOut:V}=Z(R(P)),A=B(),L=E(A.rootClientId);if(!L.length)return{};let z=L[A.index-1],F=L[A.index];for(;O(z);)z=M(z);for(;O(F);)F=N(F);let G=j();return{previousClientId:z,nextClientId:F,orientation:I(A.rootClientId)?.orientation||"vertical",rootClientId:A.rootClientId,isDistractionFree:G.isDistractionFree,isInserterShown:A?.__unstableWithInserter,isZoomOutMode:V()}},[]),{getBlockEditingMode:h}=(0,hk.useSelect)(P),b=(0,nRe.useReducedMotion)();function v(R){R.target===a.current&&u&&h(u)!=="disabled"&&n(u,-1)}function _(R){R.target===a.current&&!s.current&&i()}function y(R){R.target!==a.current&&(s.current=!0)}let w=(0,Bh.useCallback)(R=>{!R&&s.current&&(s.current=!1)},[s]),x={start:{opacity:0,scale:0},rest:{opacity:1,scale:1,transition:{delay:p?.5:0,type:"tween"}},hover:{opacity:1,scale:1,transition:{delay:.5,type:"tween"}}},k={start:{scale:b?1:0},rest:{scale:1,transition:{delay:.4,type:"tween"}}};if(m||g&&o!=="insert")return null;let S=U("block-editor-block-list__insertion-point",l==="horizontal"||o==="group"?"is-horizontal":"is-vertical");return(0,Dp.jsx)(JM,{previousClientId:d,nextClientId:u,__unstablePopoverSlot:e,__unstableContentRef:t,operation:o,nearestSide:r,children:(0,Dp.jsxs)(tA.__unstableMotion.div,{layout:!b,initial:b?"rest":"start",animate:"rest",whileHover:"hover",whileTap:"pressed",exit:"start",ref:a,tabIndex:-1,onClick:v,onFocus:y,className:U(S,{"is-with-inserter":p}),onHoverEnd:_,children:[(0,Dp.jsx)(tA.__unstableMotion.div,{variants:x,className:"block-editor-block-list__insertion-point-indicator","data-testid":"block-list-insertion-point-indicator"}),p&&(0,Dp.jsx)(tA.__unstableMotion.div,{variants:k,className:U("block-editor-block-list__insertion-point-inserter"),children:(0,Dp.jsx)(ua,{ref:w,position:"bottom center",clientId:u,rootClientId:f,__experimentalIsQuick:!0,onToggle:R=>{s.current=R},onSelectOrClose:()=>{s.current=!1}})})]})})}function iRe(e){let{insertionPoint:t,isVisible:o,isBlockListEmpty:r}=(0,hk.useSelect)(n=>{let{getBlockInsertionPoint:i,isBlockInsertionPointVisible:s,getBlockCount:a}=n(P),l=i();return{insertionPoint:l,isVisible:s(),isBlockListEmpty:a(l?.rootClientId)===0}},[]);return!o||r?null:t.operation==="replace"?(0,Dp.jsx)(rRe,{...e},`${t.rootClientId}-${t.index}`):(0,Dp.jsx)(Fct,{operation:t.operation,nearestSide:t.nearestSide,...e})}function lRe(){let e=(0,MQ.useContext)(bk),{refsMap:t}=(0,MQ.useContext)(za),o=(0,q5.useSelect)(v=>{let _=v(P).getSettings();return _.isDistractionFree||_.isPreviewMode||Z(v(P)).isZoomOut()},[]),{getBlockListSettings:r,getBlockIndex:n,getBlockOrder:i,isMultiSelecting:s,getSelectedBlockClientIds:a,getSettings:l,getTemplateLock:d,__unstableIsWithinBlockOverlay:u,getBlockEditingMode:f,getBlockName:p,getBlockAttributes:m,getParentSectionBlock:g}=Z((0,q5.useSelect)(P)),{showInsertionPoint:h,hideInsertionPoint:b}=(0,q5.useDispatch)(P);return(0,sRe.useRefEffect)(v=>{if(o)return;function _(y){if(e===void 0||e.current||y.target.nodeType===y.target.TEXT_NODE||s())return;if(!y.target.classList.contains("block-editor-block-list__layout")){b();return}let w;if(y.target.classList.contains("is-root-container")||(w=(y.target.getAttribute("data-block")?y.target:y.target.closest("[data-block]")).getAttribute("data-block")),d(w)||f(w)==="disabled"||p(w)==="core/block"||w&&m(w).layout?.isManualPlacement)return;let x=r(w),k=x?.orientation||"vertical",C=!!x?.__experimentalCaptureToolbars,S=y.clientY,R=y.clientX,E=i(w).find(O=>{let M=t.get(O);if(!M)return!1;let N=M.getBoundingClientRect();return k==="vertical"?N.top>S:S<N.top||S>N.bottom?!1:(0,aRe.isRTL)()?N.right<R:N.left>R});if(!E){b();return}if(u(E)||g(E)||a().includes(E)&&k==="vertical"&&!C&&!l().hasFixedToolbar)return;let I=t.get(E);if(k==="vertical"){let O=I.getBoundingClientRect();if(y.clientX>O.right||y.clientX<O.left){b();return}}let B=n(E);if(B===0){b();return}h(w,B,{__unstableWithInserter:!0})}return v.addEventListener("mousemove",_),()=>{v.removeEventListener("mousemove",_)}},[e,t,r,n,i,s,h,b,a,o])}var oA=c(oe(),1),cRe=c(ue(),1);var dRe=c(T(),1);function Iv(){let{getSettings:e,hasSelectedBlock:t,hasMultiSelection:o}=(0,oA.useSelect)(P),{clearSelectedBlock:r}=(0,oA.useDispatch)(P),{clearBlockSelection:n}=e();return(0,cRe.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 uRe(e){return(0,dRe.jsx)("div",{ref:Iv(),...e})}var ORe=c(ue(),1),Mv=c(D(),1),MRe=c(oe(),1),Av=c(ce(),1);var fRe=c(T(),1);function pRe({showSeparator:e,isFloating:t,onAddBlock:o,isToggle:r}){let{clientId:n}=Mt();return(0,fRe.jsx)(Ih,{className:U({"block-list-appender__toggle":r}),rootClientId:n,showSeparator:e,isFloating:t,onAddBlock:o})}var mRe=c(T(),1);function gRe(){let{clientId:e}=Mt();return(0,mRe.jsx)(mk,{rootClientId:e})}var nA=c(D(),1),_Re=c(oe(),1),rA=c(Gt(),1),vRe=c(_k(),1);var X5=new WeakMap;function zct(){let e;return t=>((e===void 0||!(0,vRe.isShallowEqual)(e,t))&&(e=t),e)}function bRe(e){let[t]=(0,nA.useState)(zct);return t(e)}function yRe(e,t,o,r,n,i,s,a,l,d,u,f){let p=(0,_Re.useRegistry)(),m=bRe(o),g=bRe(r),h=l===void 0||t==="contentOnly"?t:l;(0,nA.useLayoutEffect)(()=>{let b={allowedBlocks:m,prioritizedInserterBlocks:g,templateLock:h};if(d!==void 0&&(b.__experimentalCaptureToolbars=d),u!==void 0)b.orientation=u;else{let v=wl(f?.type);b.orientation=v.getOrientation(f)}s!==void 0&&((0,rA.default)("__experimentalDefaultBlock",{alternative:"defaultBlock",since:"6.3",version:"6.4"}),b.defaultBlock=s),n!==void 0&&(b.defaultBlock=n),a!==void 0&&((0,rA.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,rA.default)("Using `Function` as a `directInsert` argument",{alternative:"`boolean` values",since:"6.5"}),X5.get(p)||X5.set(p,{}),X5.get(p)[e]=b,window.queueMicrotask(()=>{let v=X5.get(p);if(Object.keys(v).length){let{updateBlockListSettings:_}=p.dispatch(P);_(v),X5.set(p,{})}})},[e,m,g,h,n,i,s,a,d,u,f,p])}var AQ=c($b(),1),iA=c(D(),1),wRe=c(oe(),1),sA=c(ce(),1),NQ=c(Gt(),1);function xRe(e,t,o,r){t!==void 0&&(0,NQ.default)("The template prop of InnerBlocks and useInnerBlocksProps",{since:"7.2",alternative:"a `template` declared in the block type settings"}),r!==void 0&&(0,NQ.default)("The templateInsertUpdatesSelection prop of InnerBlocks and useInnerBlocksProps",{since:"7.2",alternative:"`templateInsertUpdatesSelection` declared in the block type settings"});let n=(0,wRe.useRegistry)(),i=(0,iA.useRef)(null);(0,iA.useLayoutEffect)(()=>{let s=!1,{getBlockName:a,getBlocks:l,getSelectedBlocksInitialCaretPosition:d,isBlockSelected:u}=n.select(P),{replaceInnerBlocks:f,__unstableMarkNextChangeAsNotPersistent:p}=n.dispatch(P);return window.queueMicrotask(()=>{if(s)return;let m=t,g=r;if(t===void 0){let y=(0,sA.getBlockType)(a(e));m=y?.template,g=y?.templateInsertUpdatesSelection}let h=l(e),b=(0,AQ.default)(m,i.current);if(!(h.length===0||o==="all"||o==="contentOnly")||b)return;i.current=m;let _=(0,sA.synchronizeBlocksWithTemplate)(h,m);(0,AQ.default)(_,h)||(p({history:"ignore"}),f(e,_,h.length===0&&g&&_.length!==0&&u(e),d()))}),()=>{s=!0}},[t,o,e,n,r])}var kRe=c(ce(),1),SRe=c(oe(),1);function CRe(e){return(0,SRe.useSelect)(t=>{let o=t(P).getBlock(e);if(!o)return;let r=t(kRe.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 Ov=c(oe(),1),cA=c(D(),1),dA=c(ue(),1),IRe=c(X(),1),vk=c(ce(),1);var LQ=c(D(),1),fa=c(ce(),1),Pv=c(oe(),1),ERe=c(Ut(),1);function DQ(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 jct(e,t,o,r,n,i,s,a,l){return d=>{let{srcRootClientId:u,srcClientIds:f,type:p,blocks:m}=DQ(d);if(p==="inserter"){s();let g=m.map(h=>(0,fa.cloneBlock)(h));i(g,!0,null)}if(p==="block"){let g=o(f[0]);if(u===e&&g===t||f.includes(e)||r(f).some(_=>_===e))return;if(a==="group"){let _=f.map(y=>l(y));i(_,!0,null,f);return}let h=u===e,b=f.length,v=h&&g<t?t-b:t;n(f,u,v)}}}function Hct(e,t,o,r,n){return i=>{if(!t().mediaUpload)return;let s=(0,fa.findTransform)((0,fa.getBlockTransforms)("from"),a=>a.type==="files"&&r(a.blockName,e)&&a.isMatch(i));if(s){let a=s.transform(i,o);n(a)}}}function Uct(e){return t=>{let o=(0,fa.pasteHandler)({HTML:t,mode:"BLOCKS"});o.length&&e(o)}}function aA(e,t,o={}){let{operation:r="insert",nearestSide:n="right"}=o,{canInsertBlockType:i,getBlockIndex:s,getClientIdsOfDescendants:a,getBlockOrder:l,getBlocksByClientId:d,getSettings:u,getBlock:f}=(0,Pv.useSelect)(P),{getGroupingBlockName:p}=(0,Pv.useSelect)(fa.store),{insertBlocks:m,moveBlocksToPosition:g,updateBlockAttributes:h,clearSelectedBlock:b,replaceBlocks:v,removeBlocks:_}=(0,Pv.useDispatch)(P),y=(0,Pv.useRegistry)(),w=(0,LQ.useCallback)((R,E=!0,I=0,B=[])=>{Array.isArray(R)||(R=[R]);let M=l(e)[t];if(r==="replace")v(M,R,void 0,I);else if(r==="group"){let N=f(M);n==="left"?R.push(N):R.unshift(N);let j=R.map(z=>(0,fa.cloneSanitizedBlock)(z)),V=R.every(z=>z.name==="core/image"),A=i("core/gallery",e),L=(0,fa.createBlock)(V&&A?"core/gallery":p(),{layout:{type:"flex",flexWrap:V&&A?null:"nowrap"}},j);v([M,...B],L,void 0,I)}else m(R,t,e,E,I)},[l,e,t,r,v,f,n,i,p,m]),x=(0,LQ.useCallback)((R,E,I)=>{if(r==="replace"){let B=d(R),M=l(e)[t];y.batch(()=>{_(R,!1),v(M,B,void 0,0)})}else g(R,E,e,I)},[r,l,d,g,y,_,v,t,e]),k=jct(e,t,s,a,x,w,b,r,f),C=Hct(e,u,h,i,w),S=Uct(w);return R=>{let E=(0,ERe.getFilesFromDataTransfer)(R.dataTransfer),I=R.dataTransfer.getData("text/html");I?S(I):E.length?C(E):k(R)}}function Wct(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,d=r?t.right:t.bottom,u=t[o],f;return s>=l&&s<=d?f=s:s<d?f=l:f=d,Math.sqrt((s-f)**2+(a-u)**2)}function Bv(e,t,o=["top","bottom","left","right"]){let r,n;return o.forEach(i=>{let s=Wct(e,t,i);(r===void 0||s<r)&&(r=s,n=i)}),[r,n]}function lA(e,t){return t.left<=e.x&&t.right>=e.x&&t.top<=e.y&&t.bottom>=e.y}function TRe(e,t){return t.top<=e.y&&t.bottom>=e.y}var VQ=30,Gct=120,$ct=120;function Yct(e,t,o="vertical",r={}){let n=o==="horizontal"?["left","right"]:["top","bottom"],i=0,s="before",a=1/0,l=null,d="right",{dropZoneElement:u,parentBlockOrientation:f,rootBlockIndex:p=0}=r;if(u&&f!=="horizontal"){let v=u.getBoundingClientRect(),[_,y]=Bv(t,v,["top","bottom"]);if(v.height>Gct&&_<VQ){if(y==="top")return[p,"before"];if(y==="bottom")return[p+1,"after"]}}let m=(0,IRe.isRTL)();if(u&&f==="horizontal"){let v=u.getBoundingClientRect(),[_,y]=Bv(t,v,["left","right"]);if(v.width>$ct&&_<VQ){if(m&&y==="right"||!m&&y==="left")return[p,"before"];if(m&&y==="left"||!m&&y==="right")return[p+1,"after"]}}e.forEach(({isUnmodifiedDefaultBlock:v,getBoundingClientRect:_,blockIndex:y,blockOrientation:w})=>{let x=_();if(!x)return;let[k,C]=Bv(t,x,n),[S,R]=Bv(t,x,["left","right"]),E=lA(t,x);v&&E?k=0:o==="vertical"&&w!=="horizontal"&&(E&&S<VQ||!E&&TRe(t,x))&&(l=y,d=R),k<a&&(s=C==="bottom"||!m&&C==="right"||m&&C==="left"?"after":"before",a=k,i=y)});let g=i+(s==="after"?1:-1),h=!!e[i]?.isUnmodifiedDefaultBlock,b=!!e[g]?.isUnmodifiedDefaultBlock;return l!==null?[l,"group",d]:!h&&!b?[s==="after"?i+1:i,"insert"]:[h?i:g,"replace"]}function uA(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 RRe(e,t){let{defaultView:o}=t;return!!(o&&e instanceof o.HTMLElement&&e.closest("[data-is-insertion-point]"))}function PRe({dropZoneElement:e,rootClientId:t="",parentClientId:o="",isDisabled:r=!1}={}){let n=(0,Ov.useRegistry)(),[i,s]=(0,cA.useState)({index:null,operation:"insert"}),{getBlockType:a,getBlockVariations:l,getGroupingBlockName:d}=(0,Ov.useSelect)(vk.store),{canInsertBlockType:u,getBlockListSettings:f,getBlocks:p,getBlockIndex:m,getDraggedBlockClientIds:g,getBlockNamesByClientId:h,getAllowedBlocks:b,isDragging:v,isGroupable:_,isZoomOut:y,getSectionRootClientId:w,getBlockParents:x}=Z((0,Ov.useSelect)(P)),{showInsertionPoint:k,hideInsertionPoint:C,startDragging:S,stopDragging:R}=Z((0,Ov.useDispatch)(P)),E=aA(i.operation==="before"||i.operation==="after"?o:t,i.index,{operation:i.operation,nearestSide:i.nearestSide}),I=(0,dA.useThrottle)((0,cA.useCallback)((B,O)=>{v()||S();let M=g(),N=[t,...x(t,!0)];if(M.some(Y=>N.includes(Y)))return;let V=b(t),A=h([t])[0],L=h(M);if(!uA(a,V,L,A))return;let F=w();if(y()&&F!==t)return;let G=p(t).filter(Y=>!((0,vk.hasBlockSupport)(Y.name,"visibility",!0)&&Y.attributes?.metadata?.blockVisibility===!1));if(G.length===0){n.batch(()=>{s({index:0,operation:"insert"}),k(t,0,{operation:"insert"})});return}let $=G.map(Y=>{let ee=Y.clientId;return{isUnmodifiedDefaultBlock:(0,vk.isUnmodifiedDefaultBlock)(Y),getBoundingClientRect:()=>{let re=O.getElementById(`block-${ee}`);return re?re.getBoundingClientRect():null},blockIndex:m(ee),blockOrientation:f(ee)?.orientation}}),K=Yct($,{x:B.clientX,y:B.clientY},f(t)?.orientation,{dropZoneElement:e,parentBlockClientId:o,parentBlockOrientation:o?f(o)?.orientation:void 0,rootBlockIndex:m(t)}),[q,H,J]=K,W=$[q]?.isUnmodifiedDefaultBlock;if(!(y()&&!W&&H!=="insert")){if(H==="group"){let Y=G[q],ee=[Y.name,...L].every(pe=>pe==="core/image"),re=u("core/gallery",t),ne=_([Y.clientId,g()]),ie=l(d(),"block"),be=ie&&ie.find(({name:pe})=>pe==="group-row");if(ee&&!re&&(!ne||!be)||!ee&&(!ne||!be))return}n.batch(()=>{s({index:q,operation:H,nearestSide:J});let Y=["before","after"].includes(H)?o:t;k(Y,q,{operation:H,nearestSide:J})})}},[v,b,t,h,g,a,w,y,p,f,e,o,m,n,S,k,u,_,l,d]),200);return(0,dA.__experimentalUseDropZone)({dropZoneElement:e,isDisabled:r,onDrop:E,onDragOver(B){I(B,B.currentTarget.ownerDocument)},onDragLeave(B){let{ownerDocument:O}=B.currentTarget;RRe(B.relatedTarget,O)||RRe(B.target,O)||(I.cancel(),C())},onDragEnd(){I.cancel(),R(),C()}})}var Vp=c(T(),1),BRe={};function Kct({children:e,clientId:t}){let o=CRe(t);return(0,Vp.jsx)(k3,{value:o,children:e})}var qct=(0,Mv.memo)(N5);function ARe(e){let{clientId:t,allowedBlocks:o,prioritizedInserterBlocks:r,defaultBlock:n,directInsert:i,__experimentalDefaultBlock:s,__experimentalDirectInsert:a,template:l,templateLock:d,wrapperRef:u,templateInsertUpdatesSelection:f,__experimentalCaptureToolbars:p,__experimentalAppenderTagName:m,renderAppender:g,orientation:h,placeholder:b,layout:v,name:_,blockType:y,parentLock:w,defaultLayout:x}=e;yRe(t,w,o,r,n,i,s,a,d,p,h,v),xRe(t,l,d,f);let k=(0,Av.getBlockSupport)(_,"layout")||(0,Av.getBlockSupport)(_,"__experimentalLayout")||BRe,{allowSizingOnChildren:C=!1}=k,R=(0,Mv.useMemo)(()=>fg(v),[v])||k.default||BRe,E=(0,Mv.useMemo)(()=>({...x,...R,...C&&{allowSizingOnChildren:!0}}),[x,R,C]),I=(0,Vp.jsx)(qct,{rootClientId:t,renderAppender:g,__experimentalAppenderTagName:m,layout:E,wrapperRef:u,placeholder:b});return!y?.providesContext||Object.keys(y.providesContext).length===0?I:(0,Vp.jsx)(Kct,{clientId:t,children:I})}function Xct(e){return P8(e),(0,Vp.jsx)(ARe,{...e})}var fA=(0,Mv.forwardRef)((e,t)=>{let o=Nv({ref:t},e);return(0,Vp.jsx)("div",{className:"block-editor-inner-blocks",children:(0,Vp.jsx)("div",{...o})})});function Nv(e={},t={}){let{__unstableDisableLayoutClassNames:o,__unstableDisableDropZone:r,dropZoneElement:n,layout:i}=t,{clientId:s,layout:a=null,__unstableLayoutClassNames:l=""}=Mt(),d=i??a,u=(0,MRe.useSelect)(k=>{let{getBlockName:C,isZoomOut:S,getTemplateLock:R,getBlockRootClientId:E,getBlockEditingMode:I,getBlockSettings:B,getSectionRootClientId:O}=Z(k(P));if(!s){let F=O();return{isDropZoneDisabled:S()&&F!==""}}let{hasBlockSupport:M,getBlockType:N}=k(Av.store),j=C(s),V=I(s),A=E(s),[L]=B(s,"layout"),z=V==="disabled";if(S()){let F=O();z=s!==F}return{__experimentalCaptureToolbars:M(j,"__experimentalExposeControlsToChildren",!1),name:j,blockType:N(j),parentLock:R(A),parentClientId:A,isDropZoneDisabled:z,defaultLayout:L}},[s]),{__experimentalCaptureToolbars:f,name:p,blockType:m,parentLock:g,parentClientId:h,isDropZoneDisabled:b,defaultLayout:v}=u,_=PRe({dropZoneElement:n,rootClientId:s,parentClientId:h}),y=(0,ORe.useMergeRefs)([e.ref,r||b||d?.isManualPlacement&&window.__experimentalEnableGridInteractivity?null:_]),w={__experimentalCaptureToolbars:f,layout:d,name:p,blockType:m,parentLock:g,defaultLayout:v,...t},x=w.value&&w.onChange?Xct:ARe;return{...e,ref:y,className:U(e.className,"block-editor-block-list__layout",o?"":l),children:s?(0,Vp.jsx)(x,{...w,clientId:s}):(0,Vp.jsx)(N5,{...t})}}Nv.save=Av.__unstableGetInnerBlocksProps;fA.DefaultBlockAppender=gRe;fA.ButtonBlockAppender=pRe;fA.Content=()=>Nv.save().children;var Z5=fA;var Q5=c(Q(),1),NRe=c(ue(),1),LRe=c(oe(),1),DRe=c(D(),1),VRe=c(X(),1);var pA=c(T(),1);function FQ({clientId:e,rootClientId:t="",position:o="top"}){let[r,n]=(0,DRe.useState)(!1),{sectionRootClientId:i,sectionClientIds:s,insertionPoint:a,blockInsertionPointVisible:l,blockInsertionPoint:d,blocksBeingDragged:u}=(0,LRe.useSelect)(x=>{let{getInsertionPoint:k,getBlockOrder:C,getSectionRootClientId:S,isBlockInsertionPointVisible:R,getBlockInsertionPoint:E,getDraggedBlockClientIds:I}=Z(x(P)),B=S(),O=C(B);return{sectionRootClientId:B,sectionClientIds:O,insertionPoint:k(),blockInsertionPoint:E(),blockInsertionPointVisible:R(),blocksBeingDragged:I()}},[]),f=(0,NRe.useReducedMotion)();if(!e)return;let p=!1;if(!(t===i&&s&&s.includes(e)))return null;let g=a?.index===0&&e===s[a.index],h=a&&a.hasOwnProperty("index")&&e===s[a.index-1];o==="top"&&(p=g||l&&d.index===0&&e===s[d.index]),o==="bottom"&&(p=h||l&&e===s[d.index-1]);let b=u[0],v=u.includes(e),_=s.indexOf(b),w=(_>0?s[_-1]:null)===e;return(v||w)&&(p=!1),(0,pA.jsx)(Q5.__unstableAnimatePresence,{children:p&&(0,pA.jsx)(Q5.__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,pA.jsx)(Q5.__unstableMotion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,transition:{delay:-.125}},transition:{ease:"linear",duration:.1,delay:.125},children:(0,VRe.__)("Drop pattern.")})})})}var Ps=c(T(),1),h8=(0,Fp.createContext)();h8.displayName="IntersectionObserverContext";var mA=new WeakMap,Zct={trailing:!0};function Qct({className:e,...t}){let{isOutlineMode:o,isFocusMode:r,isPreviewMode:n,editedContentOnlySection:i}=(0,Ql.useSelect)(f=>{let{getSettings:p,isTyping:m,hasBlockSpotlight:g,getEditedContentOnlySection:h}=Z(f(P)),{outlineMode:b,focusMode:v,isPreviewMode:_}=p();return{isOutlineMode:b&&!m(),isFocusMode:!_&&(v||g()),isPreviewMode:_,editedContentOnlySection:h()}},[]),s=(0,Ql.useRegistry)(),{setBlockVisibility:a}=(0,Ql.useDispatch)(P),l=(0,gA.useDebounce)((0,Fp.useCallback)(()=>{let f={};mA.get(s).forEach(([p,m])=>{f[p]=m}),a(f)},[s]),300,Zct),d=(0,Fp.useMemo)(()=>{let{IntersectionObserver:f}=window;if(f)return new f(p=>{mA.get(s)||mA.set(s,[]);for(let m of p){let g=m.target.getAttribute("data-block");mA.get(s).push([g,m.isIntersecting])}l()})},[]),u=Nv({ref:(0,gA.useMergeRefs)([Iv(),lRe()]),className:U("is-root-container",e,{"is-outline-mode":o,"is-focus-mode":r,"is-preview-mode":n})},t);return(0,Ps.jsxs)(h8.Provider,{value:d,children:[(0,Ps.jsx)("div",{...u}),!!i&&(0,Ps.jsx)(Jct,{clientId:i})]})}function Jct({clientId:e}){let{stopEditingContentOnlySection:t}=Z((0,Ql.useDispatch)(P)),o=(0,Ql.useSelect)(r=>{let{isBlockSelected:n,hasSelectedInnerBlock:i,getBlockSelectionStart:s}=r(P);return!s()||n(e)||i(e,!0)},[e]);return(0,Fp.useEffect)(()=>{o||t()},[o,t]),null}function Yx(e){return(0,Ps.jsx)(h3,{value:Az,children:(0,Ps.jsx)(Qct,{...e})})}var edt=[],tdt=new Set;function odt({placeholder:e,rootClientId:t,renderAppender:o,__experimentalAppenderTagName:r,layout:n=eW}){let i=o!==!1,s=!!o,{order:a,isZoomOut:l,selectedBlocks:d,visibleBlocks:u,ghostBlockName:f,ghostBlockAttributes:p,shouldRenderAppender:m}=(0,Ql.useSelect)(v=>{let{getSettings:_,getBlockOrder:y,getSelectedBlockClientIds:w,__unstableGetVisibleBlocks:x,getTemplateLock:k,getBlockEditingMode:C,isSectionBlock:S,isContainerInsertableToInContentOnlyMode:R,getBlockName:E,getBlockListSettings:I,isZoomOut:B,canInsertBlockType:O}=Z(v(P)),M=y(t);if(_().isPreviewMode)return{order:M,selectedBlocks:edt,visibleBlocks:tdt};let N,j;if(i&&!s&&!M.length){let $=(t?I(t)?.defaultBlock:void 0)??{name:(0,J5.getDefaultBlockName)()};$.name&&O($.name,t)&&(N=$.name,j=$.attributes)}let V=w(),A=V[0],L=!t&&!A&&(!M.length||!O((0,J5.getDefaultBlockName)(),t)),z=!!(t&&A&&t===A),F=k(t),G=(!S(t)||R(E(A),t))&&C(t)!=="disabled"&&(!F||F==="contentOnly")&&i&&!B();return{order:M,selectedBlocks:V,visibleBlocks:x(),isZoomOut:B(),ghostBlockName:G?N:void 0,ghostBlockAttributes:j,shouldRenderAppender:G&&(s||z||L)}},[t,i,s]),g=(0,Fp.useMemo)(()=>f?(0,J5.createBlock)(f,p):null,[f,p]),h=!!g,b=h?[...a,g.clientId]:a;return(0,Ps.jsxs)(V9,{value:n,children:[b.map(v=>(0,Ps.jsxs)(Ql.AsyncModeProvider,{value:v!==g?.clientId&&!u.has(v)&&!d.includes(v),children:[l&&(0,Ps.jsx)(FQ,{clientId:v,rootClientId:t,position:"top"}),(0,Ps.jsx)(E8,{rootClientId:t,clientId:v,ghostBlock:v===g?.clientId?g:void 0}),l&&(0,Ps.jsx)(FQ,{clientId:v,rootClientId:t,position:"bottom"})]},v)),a.length<1&&e,m&&!h&&(0,Ps.jsx)(GTe,{tagName:r,rootClientId:t,CustomAppender:o})]})}function N5(e){return(0,Ps.jsx)(Ql.AsyncModeProvider,{value:!1,children:(0,Ps.jsx)(odt,{...e})})}var Hk=c(oe(),1),SJ=c(Ut(),1),CJ=c(Q(),1),l3e=c(Wl(),1),NN=c(D(),1),LN=c(ce(),1),EJ=c(zo(),1),Uk=c(X(),1);var g5e=c(ue(),1),h5e=c(oe(),1),b5e=c(Ut(),1),$u=c(D(),1);var _d=c(X(),1),Dv=c(ce(),1),s5e=c(ue(),1),a5e=c(oe(),1),l5e=c(D(),1);var xA=c(Q(),1),$Re=c(ix(),1),wk=c(D(),1);var Mn=c(Q(),1),FRe=(0,Mn.createSlotFill)("InspectorControls"),rdt=(0,Mn.createSlotFill)("InspectorAdvancedControls"),ndt=(0,Mn.createSlotFill)("InspectorControlsBindings"),idt=(0,Mn.createSlotFill)("InspectorControlsBackground"),sdt=(0,Mn.createSlotFill)("InspectorControlsBorder"),adt=(0,Mn.createSlotFill)("InspectorControlsColor"),ldt=(0,Mn.createSlotFill)("InspectorControlsFilter"),cdt=(0,Mn.createSlotFill)("InspectorControlsDimensions"),ddt=(0,Mn.createSlotFill)("InspectorControlsLayout"),udt=(0,Mn.createSlotFill)("InspectorControlsElements"),fdt=(0,Mn.createSlotFill)("InspectorControlsPosition"),pdt=(0,Mn.createSlotFill)("InspectorControlsTypography"),mdt=(0,Mn.createSlotFill)("InspectorControlsViewport"),gdt=(0,Mn.createSlotFill)("InspectorControlsListView"),hdt=(0,Mn.createSlotFill)("InspectorControlsStyles"),bdt=(0,Mn.createSlotFill)("InspectorControlsEffects"),_dt=(0,Mn.createSlotFill)("InspectorControlsContent"),vdt={default:FRe,advanced:rdt,background:idt,bindings:ndt,border:sdt,color:adt,content:_dt,dimensions:cdt,effects:bdt,elements:udt,filter:ldt,layout:ddt,list:gdt,position:fdt,settings:FRe,styles:hdt,typography:pdt,viewport:mdt},bd=vdt,e2=(0,Mn.createSlotFill)(Symbol("PrivateInspectorControlsAllowedBlocks"));var hA=c(D(),1);var t2="default",An={viewport:t2,pseudo:t2},zRe=(0,hA.createContext)(An),bA=zRe.Provider;function Jl(){return(0,hA.useContext)(zRe)}function vi(e){return!!e?.viewport&&e.viewport!==t2}function Ya(e){return!!e?.pseudo&&e.pseudo!==t2}function $n(e){return!vi(e)&&!Ya(e)}function jRe(e){return $n(e)?[]:[e.viewport,e.pseudo].filter(t=>t&&t!==t2)}function ho(e,t){let o=jRe(t);return o.length?Uf(e,o):e}function Vr(e,t,o){let r=jRe(t);return r.length?Qe(Ge(e,r,o)):Qe(o)}function HRe(e,t){return!t||$n(e)?t:o=>{let r=ho(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:Vr(o?.style,e,i)}}}var yk=c(Q(),1),vA=c(D(),1),URe=c(ue(),1),yA=c(oe(),1);var _A=c(T(),1),WRe=Symbol("ListViewContentPopover"),{Fill:GRe,Slot:ydt}=(0,yk.createSlotFill)(WRe);function wdt(){return(0,URe.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:35,resize:!1}}}function wA({listViewRef:e}){let{popoverProps:t}=wdt(),o=(0,yk.__experimentalUseSlotFills)(WRe),r=!!(o&&o.length),{selectedClientId:n,isOpen:i}=(0,yA.useSelect)(d=>{let{getSelectedBlockClientId:u}=d(P),f=Z(d(P));return{selectedClientId:u(),isOpen:f.isListViewContentPanelOpen()}},[]),[s,a]=(0,vA.useState)(null);(0,vA.useLayoutEffect)(()=>{if(!n||!e?.current){a(null);return}let d=e.current.querySelector(`[data-block="${n}"]`);a(d)},[n,e]);let{closeListViewContentPanel:l}=Z((0,yA.useDispatch)(P));return!i||!r||!s?null:(0,_A.jsx)(yk.Popover,{...t??{},className:"block-editor-inspector-list-view-content-popover",anchor:s,onClose:l,children:(0,_A.jsx)("div",{style:{width:"280px"},children:(0,_A.jsx)(ydt,{})})})}var Lv=c(T(),1),xdt=["content","list"];function o2({children:e,group:t="default",resetAllFilter:o}){let r=Mt(),n=r[tu],i=r[$y],s=r[PS],a=bd[t]?.Fill;if(!a)return(0,$Re.default)(`Unknown InspectorControls group "${t}" provided.`),null;if(i){let d=r.name==="core/template-part",u=xdt.includes(t);if(!(d||u))return null}else if(!n)return null;let l=t==="content"&&i&&s;return l&&!n?null:(0,Lv.jsx)(xA.__experimentalStyleProvider,{document,children:l?(0,Lv.jsx)(GRe,{children:e}):(0,Lv.jsx)(a,{children:d=>(0,Lv.jsx)(Sdt,{fillProps:d,resetAllFilter:o,children:e})})})}function kdt({resetAllFilter:e,children:t}){let{registerResetAllFilter:o,deregisterResetAllFilter:r}=(0,wk.useContext)(xA.__experimentalToolsPanelContext),n=Jl(),i=(0,wk.useMemo)(()=>HRe(n,e),[e,n]);return(0,wk.useEffect)(()=>{if(i&&o&&r)return o(i),()=>{r(i)}},[i,o,r]),t}function Sdt({children:e,resetAllFilter:t,fillProps:o}){let{forwardedContext:r=[]}=o,n=(0,Lv.jsx)(kdt,{resetAllFilter:t,children:e});return r.reduce((i,[s,a])=>(0,Lv.jsx)(s,{...a,children:i}),n)}var e5e=c(Q(),1),t5e=c(D(),1),o5e=c(ix(),1);var KRe=c(Q(),1),kA=c(oe(),1),qRe=c(D(),1);var YRe=c(ue(),1);function Fr(){return(0,YRe.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}}}function xk(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(", ")}function r2(e){if(typeof e!="string")return;let[,t]=e.match(/^var:preset\|duotone\|(.+)$/)??[];return t}var XRe=c(T(),1);function ZRe({children:e,group:t,label:o}){let{updateBlockAttributes:r}=(0,kA.useDispatch)(P),{getBlockAttributes:n,getBlockName:i,getMultiSelectedBlockClientIds:s,getSelectedBlockClientId:a,hasMultiSelection:l}=(0,kA.useSelect)(P),d=Fr(),u=a(),f=(0,qRe.useCallback)((p=[])=>{let m={},g=l()?s():[u];g.forEach(h=>{let b=n(h)||{},{style:v}=b,_={style:v},y={attributes:b,clientId:h,name:i(h)};p.forEach(w=>{_={..._,...w(_,y)}}),_={..._,style:Qe(_.style)},m[h]=_}),r(g,m,!0)},[n,i,s,l,u,r]);return(0,XRe.jsx)(KRe.__experimentalToolsPanel,{className:`${t}-block-support-panel`,label:o,resetAll:f,panelId:u,hasInnerWrapper:!0,shouldRenderPlaceholderItems:!0,__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last",dropdownMenuProps:d,children:e},u)}var zQ=c(Q(),1),SA=c(D(),1),QRe=c(T(),1);function JRe({Slot:e,fillProps:t,...o}){let r=(0,SA.useContext)(zQ.__experimentalToolsPanelContext),n=(0,SA.useMemo)(()=>({...t??{},forwardedContext:[...t?.forwardedContext??[],[zQ.__experimentalToolsPanelContext.Provider,{value:r}]]}),[r,t]);return(0,QRe.jsx)(e,{...o,fillProps:n,bubblesVirtually:!0})}var CA=c(T(),1);function Cdt({group:e="default",label:t,fillProps:o,...r},n){let i=bd[e],s=(0,e5e.__experimentalUseSlotFills)(i?.name);if(!i)return(0,o5e.default)(`Unknown InspectorControls group "${e}" provided.`),null;if(!s?.length)return null;let{Slot:a}=i;return t?(0,CA.jsx)(ZRe,{group:e,label:t,children:(0,CA.jsx)(JRe,{...r,fillProps:o,Slot:a})}):(0,CA.jsx)(a,{...r,ref:n,fillProps:o,bubblesVirtually:!0})}var jQ=(0,t5e.forwardRef)(Cdt);var HQ=c(T(),1),r5e=o2;r5e.Slot=jQ;var Oh=e=>(0,HQ.jsx)(o2,{...e,group:"advanced"});Oh.Slot=function(t){return(0,HQ.jsx)(jQ,{...t,group:"advanced"})};Oh.slotName="InspectorAdvancedControls";var je=r5e;var n5e=c(oe(),1),Mh=c(ce(),1),n2=c(X(),1);function EA(e){let t=e?.style?.position?.type;return t==="sticky"?(0,n2.__)("Sticky"):t==="fixed"?(0,n2.__)("Fixed"):null}function yi(e){return(0,n5e.useSelect)(t=>{if(!e)return null;let o=t(P),{getBlockName:r,getBlockAttributes:n,getBlock:i,__experimentalGetParsedPattern:s}=o,{getBlockType:a,getActiveBlockVariation:l}=t(Mh.store),d=r(e),u=a(d);if(!u)return null;let f=n(e),{isSectionBlock:p}=Z(o),m=f?.metadata?.patternName;if(m&&p(e)){let w=s(m),x=EA(f);return{isSynced:!1,title:(0,n2.__)("Pattern"),icon:hl,description:w?.description||(0,n2.__)("A block pattern."),anchor:f?.anchor,positionLabel:x,positionType:f?.style?.position?.type,name:w?.title||f?.metadata?.name}}let g=l(d,f,void 0,i?.(e)?.innerContent),h=(0,Mh.isReusableBlock)(u)||(0,Mh.isTemplatePart)(u),v=(h?(0,Mh.__experimentalGetBlockLabel)(u,f):void 0)||u.title,_=EA(f),y={isSynced:h,title:v,icon:u.icon,description:u.description,anchor:f?.anchor,positionLabel:_,positionType:f?.style?.position?.type,name:f?.metadata?.name};return g?{isSynced:h,title:g.title||u.title,icon:g.icon||u.icon,description:g.description||u.description,anchor:f?.anchor,positionLabel:_,positionType:f?.style?.position?.type,name:f?.metadata?.name}:y},[e])}var TA=c(T(),1),{getResponsiveMediaQueries:c5e}=Z(Ro),i2="position",UQ={value:"",label:(0,_d.__)("Default")},WQ={value:"sticky",label:(0,_d._x)("Sticky","Name for the value of the CSS position property"),description:(0,_d.__)("The block will stick to the top of the window instead of scrolling.")},i5e={value:"fixed",label:(0,_d._x)("Fixed","Name for the value of the CSS position property"),description:(0,_d.__)("The block will not move when the page is scrolled.")},Edt=["top","right","bottom","left"],RA=["sticky","fixed"];function d5e({selector:e,style:t}){let o="",{type:r}=t?.position||{};return RA.includes(r)&&(o+=`${e} {`,o+=`position: ${r};`,Edt.forEach(n=>{t?.position?.[n]!==void 0&&(o+=`${n}: ${t.position[n]};`)}),(r==="sticky"||r==="fixed")&&(o+="z-index: 10"),o+="}"),o}function Tdt({selector:e,style:t,viewportSettings:o}){return Object.entries(c5e(o)).map(([r,n])=>{let i=ho(t,{viewport:r,pseudo:An.pseudo})?.position;if(!i)return"";let s=d5e({selector:e,style:{position:{...t?.position,...i}}});return s?`${n}{${s}}`:RA.includes(t?.position?.type)?`${n}{${e}{position: static;}}`:""}).filter(Boolean).join("")}function Rdt(e,t){let o=new Set;return RA.includes(e?.position?.type)&&o.add(e.position.type),Object.keys(c5e(t)).forEach(r=>{let n=ho(e,{viewport:r,pseudo:An.pseudo})?.position,i=n?{...e?.position,...n}.type:void 0;RA.includes(i)&&o.add(i)}),[...o]}function Idt(e){let t=(0,Dv.getBlockSupport)(e,i2);return!!(t===!0||t?.sticky)}function Pdt(e){let t=(0,Dv.getBlockSupport)(e,i2);return!!(t===!0||t?.fixed)}function Bdt(e){return!!(0,Dv.getBlockSupport)(e,i2)}function u5e(e){let t=e?.style?.position?.type;return t==="sticky"||t==="fixed"}function f5e({name:e}={}){let[t,o]=Fe("position.fixed","position.sticky"),r=!t&&!o;return!Bdt(e)||r}function Odt({style:e={},clientId:t,name:o,setAttributes:r}){let n=Pdt(o),i=Idt(o),{firstParentClientId:s,selectedState:a}=(0,a5e.useSelect)(b=>{let{getBlockParents:v}=b(P),{getSelectedBlockStyleState:_}=Z(b(P)),y=v(t);return{firstParentClientId:y[y.length-1],selectedState:_(t)}},[t]),l=a?.viewport&&a.viewport!==An.viewport&&(!a.pseudo||a.pseudo===An.pseudo),d=l?ho(e,a):void 0,u=l?d?.position?.type??e?.position?.type:e?.position?.type,f=yi(s),p=i&&u===WQ.value&&f?(0,_d.sprintf)((0,_d.__)("The block will stick to the scrollable area of the parent %s block."),f.title):null,m=(0,l5e.useMemo)(()=>{let b=[UQ];return(i||u===WQ.value)&&b.push(WQ),(n||u===i5e.value)&&b.push(i5e),b},[n,i,u]),g=b=>{if(l){let y={...d,position:{...d?.position,type:b,top:b==="sticky"||b==="fixed"?"0px":void 0}};r({style:Vr(e,a,y)});return}let _={...e,position:{...e?.position,type:b,top:b==="sticky"||b==="fixed"?"0px":void 0}};r({style:Qe(_)})},h=u&&m.find(b=>b.value===u)||UQ;return m.length>1?(0,TA.jsx)(je,{group:"position",children:(0,TA.jsx)(Qye,{label:(0,_d.__)("Position"),hideLabelFromVision:!0,description:p,popupWidth:"anchor",items:m,value:h,onValueChange:b=>{g(b.value)}})}):null}var GQ={edit:function(t){return f5e(t)?null:(0,TA.jsx)(Odt,{...t})},useBlockProps:Adt,attributeKeys:["style"],hasSupport(e){return(0,Dv.hasBlockSupport)(e,i2)}},Mdt={};function Adt({name:e,style:t}){let o=(0,Dv.hasBlockSupport)(e,i2),r=f5e({name:e}),n=o&&!r,[i]=Fe("viewport"),s=(0,s5e.useInstanceId)(Mdt),a=`.wp-container-${s}.wp-container-${s}`,l;n&&(l=[d5e({selector:a,style:t})||"",Tdt({selector:a,style:t,viewportSettings:i})].join(""));let d=U(n&&l?`wp-container-${s}`:void 0,n&&l?Rdt(t,i).map(u=>`is-position-${u}`):void 0);return vd({css:l}),{className:d}}var _5e={placement:"top-start"},p5e={..._5e,flip:!1,shift:!0},Ndt={..._5e,flip:!0,shift:!1};function m5e(e,t,o,r,n){if(!e||!t)return p5e;let i=o?.scrollTop||0,s=wx(t),a=e.getBoundingClientRect(),l=i+a.top,d=e.ownerDocument.documentElement.clientHeight,u=l+r,f=s.top>u,p=s.height>d-r;return!n&&(f||p)?p5e:Ndt}function IA({contentElement:e,clientId:t}){let o=eo(t),[r,n]=(0,$u.useState)(0),{blockIndex:i,isSticky:s}=(0,h5e.useSelect)(p=>{let{getBlockIndex:m,getBlockAttributes:g}=p(P);return{blockIndex:m(t),isSticky:u5e(g(t))}},[t]),a=(0,$u.useMemo)(()=>{if(e)return(0,b5e.getScrollContainer)(e)},[e]),[l,d]=(0,$u.useState)(()=>m5e(e,o,a,r,s)),u=(0,g5e.useRefEffect)(p=>{n(p.offsetHeight)},[]),f=(0,$u.useCallback)(()=>d(m5e(e,o,a,r,s)),[e,o,a,r,s]);return(0,$u.useLayoutEffect)(f,[i,f]),(0,$u.useLayoutEffect)(()=>{if(!e||!o)return;let p=e?.ownerDocument?.defaultView;p?.addEventListener?.("resize",f);let m,g=o?.ownerDocument?.defaultView;return g?.ResizeObserver&&(m=new g.ResizeObserver(f),m.observe(o)),()=>{p?.removeEventListener?.("resize",f),m&&m.disconnect()}},[f,e,o]),{...l,ref:u}}var v5e=c(oe(),1);function PA(e){return(0,v5e.useSelect)(o=>{let{getBlockRootClientId:r,getBlockParents:n,__experimentalGetBlockListSettingsForBlocks:i,isBlockInsertionPointVisible:s,getBlockInsertionPoint:a,getBlockOrder:l,hasMultiSelection:d,getLastMultiSelectedBlockClientId:u}=o(P),f=n(e),p=i(f),m=f.find(h=>p[h]?.__experimentalCaptureToolbars),g=!1;if(s()){let h=a();g=l(h.rootClientId)[h.index]===e}return{capturingClientId:m,isInsertionPointVisible:g,lastClientId:d()?u():null,rootClientId:r(e)}},[e])}var BA=c(T(),1);function y5e({clientId:e,__unstableContentRef:t}){let{isInsertionPointVisible:o,lastClientId:r,rootClientId:n}=PA(e),i=IA({contentElement:t?.current,clientId:e});return(0,BA.jsx)(Zl,{clientId:e,bottomClientId:r,className:U("block-editor-block-list__block-side-inserter-popover",{"is-insertion-point-visible":o}),__unstableContentRef:t,...i,children:(0,BA.jsx)("div",{className:"block-editor-block-list__empty-block-inserter",children:(0,BA.jsx)(ua,{position:"bottom right",rootClientId:n,clientId:e,__experimentalIsQuick:!0})})})}var ZIe=c(oe(),1),jk=c(D(),1),QIe=c(Wl(),1);var $Ie=c(X(),1),YIe=c(oe(),1),yJ=c(D(),1),KIe=c(ue(),1),Xp=c(ce(),1),qIe=c(Q(),1);var Vv=c(Q(),1),B5e=c(oe(),1),O5e=c(X(),1);var C5e=c(ce(),1),E5e=c(Q(),1),s2=c(oe(),1),a2=c(D(),1),T5e=c(ue(),1);var x5e=c(Ut(),1),Yu=c(D(),1),OA=50,k5e=25,Ldt=1e3,w5e=Ldt*(k5e/1e3);function S5e(){let e=(0,Yu.useRef)(null),t=(0,Yu.useRef)(null),o=(0,Yu.useRef)(null),r=(0,Yu.useRef)(null);(0,Yu.useEffect)(()=>()=>{r.current&&(clearInterval(r.current),r.current=null)},[]);let n=(0,Yu.useCallback)(a=>{e.current=a.clientY,o.current=(0,x5e.getScrollContainer)(a.target),r.current=setInterval(()=>{if(o.current&&t.current){let l=o.current.scrollTop+t.current;o.current.scroll({top:l})}},k5e)},[]),i=(0,Yu.useCallback)(a=>{if(!o.current)return;let l=o.current.offsetHeight,d=e.current-o.current.offsetTop,u=a.clientY-o.current.offsetTop;if(a.clientY>d){let f=Math.max(l-d-OA,0),p=Math.max(u-d-OA,0),m=f===0||p===0?0:p/f;t.current=w5e*m}else if(a.clientY<d){let f=Math.max(d-OA,0),p=Math.max(d-u-OA,0),m=f===0||p===0?0:p/f;t.current=-w5e*m}else t.current=0},[]);return[n,i,()=>{e.current=null,o.current=null,r.current&&(clearInterval(r.current),r.current=null)}]}var $Q=c(T(),1),Ddt=({appendToOwnerDocument:e,children:t,clientIds:o,cloneClassname:r,elementId:n,onDragStart:i,onDragEnd:s,fadeWhenDisabled:a=!1,dragComponent:l})=>{let{srcRootClientId:d,isDraggable:u,icon:f,visibleInserter:p,getBlockType:m}=(0,s2.useSelect)(E=>{let{canMoveBlocks:I,getBlockRootClientId:B,getBlockName:O,getBlockAttributes:M,isBlockInsertionPointVisible:N}=E(P),{getBlockType:j,getActiveBlockVariation:V}=E(C5e.store),A=B(o[0]),L=O(o[0]),z=V(L,M(o[0]));return{srcRootClientId:A,isDraggable:I(o),icon:z?.icon||j(L)?.icon,visibleInserter:N(),getBlockType:j}},[o]),g=(0,a2.useRef)(!1),[h,b,v]=S5e(),{getAllowedBlocks:_,getBlockNamesByClientId:y,getBlockRootClientId:w}=(0,s2.useSelect)(P),{startDraggingBlocks:x,stopDraggingBlocks:k}=(0,s2.useDispatch)(P);(0,a2.useEffect)(()=>()=>{g.current&&k()},[]);let S=eo(o[0])?.closest("body");return(0,a2.useEffect)(()=>{if(!S||!a)return;let I=(0,T5e.throttle)(B=>{if(!B.target.closest("[data-block]"))return;let O=y(o),M=B.target.closest("[data-block]").getAttribute("data-block"),N=_(M),j=y([M])[0],V;if(N?.length===0){let A=w(M),L=y([A])[0],z=_(A);V=uA(m,z,O,L)}else V=uA(m,N,O,j);!V&&!p?window?.document?.body?.classList?.add("block-draggable-invalid-drag-token"):window?.document?.body?.classList?.remove("block-draggable-invalid-drag-token")},200);return S.addEventListener("dragover",I),()=>{S.removeEventListener("dragover",I)}},[o,S,a,_,y,w,m,p]),u?(0,$Q.jsx)(E5e.Draggable,{appendToOwnerDocument:e,cloneClassname:r,__experimentalTransferDataType:"wp-blocks",transferData:{type:"block",srcClientIds:o,srcRootClientId:d},onDragStart:E=>{window.requestAnimationFrame(()=>{x(o),g.current=!0,h(E),i&&i()})},onDragOver:b,onDragEnd:()=>{k(),g.current=!1,v(),s&&s()},__experimentalDragComponent:l!==void 0?l:(0,$Q.jsx)(yM,{count:o.length,icon:f,fadeWhenDisabled:!0}),elementId:n,children:({onDraggableStart:E,onDraggableEnd:I})=>t({draggable:!0,onDragStart:E,onDragEnd:I})}):t({draggable:!1})},MA=Ddt;var I5e=c(ce(),1),P5e=c(Q(),1);var AA=c(ue(),1),NA=c(oe(),1),kk=c(D(),1),Bs=c(X(),1),LA=c(Mo(),1);var ft=c(X(),1),Ah=(e,t)=>e==="up"?t==="horizontal"?(0,ft.isRTL)()?"right":"left":"up":e==="down"?t==="horizontal"?(0,ft.isRTL)()?"left":"right":"down":null;function R5e(e,t,o,r,n,i,s){let a=o+1;if(e>1)return Vdt(e,o,r,n,i,s);if(r&&n)return(0,ft.sprintf)((0,ft.__)("Block %s is the only block, and cannot be moved"),t);if(i>0&&!n){let l=Ah("down",s);if(l==="down")return(0,ft.sprintf)((0,ft.__)("Move %1$s block from position %2$d down to position %3$d"),t,a,a+1);if(l==="left")return(0,ft.sprintf)((0,ft.__)("Move %1$s block from position %2$d left to position %3$d"),t,a,a+1);if(l==="right")return(0,ft.sprintf)((0,ft.__)("Move %1$s block from position %2$d right to position %3$d"),t,a,a+1)}if(i>0&&n){let l=Ah("down",s);if(l==="down")return(0,ft.sprintf)((0,ft.__)("Block %1$s is at the end of the content and can\u2019t be moved down"),t);if(l==="left")return(0,ft.sprintf)((0,ft.__)("Block %1$s is at the end of the content and can\u2019t be moved left"),t);if(l==="right")return(0,ft.sprintf)((0,ft.__)("Block %1$s is at the end of the content and can\u2019t be moved right"),t)}if(i<0&&!r){let l=Ah("up",s);if(l==="up")return(0,ft.sprintf)((0,ft.__)("Move %1$s block from position %2$d up to position %3$d"),t,a,a-1);if(l==="left")return(0,ft.sprintf)((0,ft.__)("Move %1$s block from position %2$d left to position %3$d"),t,a,a-1);if(l==="right")return(0,ft.sprintf)((0,ft.__)("Move %1$s block from position %2$d right to position %3$d"),t,a,a-1)}if(i<0&&r){let l=Ah("up",s);if(l==="up")return(0,ft.sprintf)((0,ft.__)("Block %1$s is at the beginning of the content and can\u2019t be moved up"),t);if(l==="left")return(0,ft.sprintf)((0,ft.__)("Block %1$s is at the beginning of the content and can\u2019t be moved left"),t);if(l==="right")return(0,ft.sprintf)((0,ft.__)("Block %1$s is at the beginning of the content and can\u2019t be moved right"),t)}}function Vdt(e,t,o,r,n,i){let s=t+1;if(o&&r)return(0,ft.__)("All blocks are selected, and cannot be moved");if(n>0&&!r){let a=Ah("down",i);if(a==="down")return(0,ft.sprintf)((0,ft.__)("Move %1$d blocks from position %2$d down by one place"),e,s);if(a==="left")return(0,ft.sprintf)((0,ft.__)("Move %1$d blocks from position %2$d left by one place"),e,s);if(a==="right")return(0,ft.sprintf)((0,ft.__)("Move %1$d blocks from position %2$d right by one place"),e,s)}if(n>0&&r){let a=Ah("down",i);if(a==="down")return(0,ft.__)("Blocks cannot be moved down as they are already at the bottom");if(a==="left")return(0,ft.__)("Blocks cannot be moved left as they are already are at the leftmost position");if(a==="right")return(0,ft.__)("Blocks cannot be moved right as they are already are at the rightmost position")}if(n<0&&!o){let a=Ah("up",i);if(a==="up")return(0,ft.sprintf)((0,ft.__)("Move %1$d blocks from position %2$d up by one place"),e,s);if(a==="left")return(0,ft.sprintf)((0,ft.__)("Move %1$d blocks from position %2$d left by one place"),e,s);if(a==="right")return(0,ft.sprintf)((0,ft.__)("Move %1$d blocks from position %2$d right by one place"),e,s)}if(n<0&&o){let a=Ah("up",i);if(a==="up")return(0,ft.__)("Blocks cannot be moved up as they are already at the top");if(a==="left")return(0,ft.__)("Blocks cannot be moved left as they are already are at the leftmost position");if(a==="right")return(0,ft.__)("Blocks cannot be moved right as they are already are at the rightmost position")}}var zp=c(T(),1),Fdt=(e,t)=>e==="up"?t==="horizontal"?(0,Bs.isRTL)()?yr:ai:Zb:e==="down"?t==="horizontal"?(0,Bs.isRTL)()?ai:yr:Tn:null,zdt=(e,t)=>e==="up"?t==="horizontal"?(0,Bs.isRTL)()?(0,Bs.__)("Move right"):(0,Bs.__)("Move left"):(0,Bs.__)("Move up"):e==="down"?t==="horizontal"?(0,Bs.isRTL)()?(0,Bs.__)("Move left"):(0,Bs.__)("Move right"):(0,Bs.__)("Move down"):null,YQ=(0,kk.forwardRef)(({clientIds:e,direction:t,orientation:o,...r},n)=>{let i=(0,AA.useInstanceId)(YQ),s=(0,kk.useMemo)(()=>Array.isArray(e)?e:[e],[e]),a=s.length,l=(0,AA.useViewportMatch)("small","<"),{blockType:d,isDisabled:u,rootClientId:f,isFirst:p,isLast:m,firstIndex:g,orientation:h="vertical"}=(0,NA.useSelect)(k=>{let{getBlockIndex:C,getBlockRootClientId:S,getBlockOrder:R,getBlock:E,getBlockListSettings:I}=k(P),B=s[0],O=S(B),M=C(B),N=C(s[s.length-1]),j=R(O),V=E(B),A=M===0,L=N===j.length-1,{orientation:z}=I(O)||{};return{blockType:V?(0,I5e.getBlockType)(V.name):null,isDisabled:t==="up"?A:L,rootClientId:O,firstIndex:M,isFirst:A,isLast:L,orientation:o||z}},[t,o,s]),{moveBlocksDown:b,moveBlocksUp:v}=(0,NA.useDispatch)(P),_=t==="up"?v:b,y=k=>{_(e,f),r.onClick&&r.onClick(k)},w=`block-editor-block-mover-button__description-${i}`,x=t==="up"?"t":"y";return(0,zp.jsxs)(zp.Fragment,{children:[(0,zp.jsx)(P5e.Button,{__next40pxDefaultSize:!0,ref:n,className:U("block-editor-block-mover-button",`is-${t}-button`),icon:Fdt(t,h),label:zdt(t,h),tooltipPosition:!l&&t==="down"&&h==="vertical"?"bottom":"top","aria-describedby":w,...r,onClick:u?null:y,disabled:u,accessibleWhenDisabled:!0,shortcut:LA.displayShortcut.secondary(x)}),(0,zp.jsx)(Et,{id:w,children:(0,Bs.sprintf)((0,Bs.__)("%1$s (%2$s)"),R5e(a,d&&d.title,g,p,m,t==="up"?-1:1,h),LA.shortcutAriaLabel.secondary(x))})]})}),DA=(0,kk.forwardRef)((e,t)=>(0,zp.jsx)(YQ,{direction:"up",ref:t,...e})),VA=(0,kk.forwardRef)((e,t)=>(0,zp.jsx)(YQ,{direction:"down",ref:t,...e}));var Ku=c(T(),1);function jdt({clientIds:e,hideDragHandle:t}){let{canMove:o,rootClientId:r,isFirst:n,isLast:i,orientation:s,isManualGrid:a}=(0,B5e.useSelect)(l=>{let{getBlockIndex:d,getBlockListSettings:u,canMoveBlocks:f,getBlockOrder:p,getBlockRootClientId:m,getBlockAttributes:g}=l(P),h=Array.isArray(e)?e:[e],b=h[0],v=m(b),_=d(b),y=d(h[h.length-1]),w=p(v),{layout:x={}}=g(v)??{};return{canMove:f(e),rootClientId:v,isFirst:_===0,isLast:y===w.length-1,orientation:u(v)?.orientation,isManualGrid:x.type==="grid"&&x.isManualPlacement&&window.__experimentalEnableGridInteractivity}},[e]);return!o||n&&i&&!r||t&&a?null:(0,Ku.jsxs)(Vv.ToolbarGroup,{className:U("block-editor-block-mover",{"is-horizontal":s==="horizontal"}),children:[!t&&(0,Ku.jsx)(MA,{clientIds:e,fadeWhenDisabled:!0,children:l=>(0,Ku.jsx)(Vv.Button,{__next40pxDefaultSize:!0,icon:nC,className:"block-editor-block-mover__drag-handle",label:(0,O5e.__)("Drag"),tabIndex:"-1",...l})}),!a&&(0,Ku.jsxs)("div",{className:"block-editor-block-mover__move-button-container",children:[(0,Ku.jsx)(Vv.ToolbarItem,{children:l=>(0,Ku.jsx)(DA,{clientIds:e,...l})}),(0,Ku.jsx)(Vv.ToolbarItem,{children:l=>(0,Ku.jsx)(VA,{clientIds:e,...l})})]})]})}var FA=jdt;var c2=c(Q(),1),zA=c(oe(),1),Dh=c(X(),1),N5e=c(D(),1),jA=c(ce(),1);var l2=c(oe(),1),Nh=c(D(),1);var{clearTimeout:M5e,setTimeout:Hdt}=window,A5e=200;function Udt({ref:e,isFocused:t,highlightParent:o,debounceTimeout:r=A5e}){let{getSelectedBlockClientId:n,getBlockRootClientId:i}=(0,l2.useSelect)(P),{toggleBlockHighlight:s}=(0,l2.useDispatch)(P),a=(0,Nh.useRef)(),l=(0,l2.useSelect)(h=>h(P).getSettings().isDistractionFree,[]),d=h=>{if(h&&l)return;let b=n(),v=o?i(b):b;s(v,h)},u=()=>e?.current&&e.current.matches(":hover"),f=()=>{let h=u();return!t&&!h},p=()=>{let h=a.current;h&&M5e&&M5e(h)},m=h=>{h&&h.stopPropagation(),p(),d(!0)},g=h=>{h&&h.stopPropagation(),p(),a.current=Hdt(()=>{f()&&d(!1)},r)};return(0,Nh.useEffect)(()=>()=>{d(!1),p()},[]),{debouncedShowGestures:m,debouncedHideGestures:g}}function Sk({ref:e,highlightParent:t=!1,debounceTimeout:o=A5e}){let[r,n]=(0,Nh.useState)(!1),{debouncedShowGestures:i,debouncedHideGestures:s}=Udt({ref:e,debounceTimeout:o,isFocused:r,highlightParent:t}),a=(0,Nh.useRef)(!1),l=()=>e?.current&&e.current.contains(e.current.ownerDocument.activeElement);return(0,Nh.useEffect)(()=>{let d=e.current,u=()=>{l()&&(n(!0),i())},f=()=>{l()||(n(!1),s())};return d&&!a.current&&(d.addEventListener("focus",u,!0),d.addEventListener("blur",f,!0),a.current=!0),()=>{d&&(d.removeEventListener("focus",u),d.removeEventListener("blur",f))}},[e,a,n,i,s]),{onMouseMove:i,onMouseLeave:s}}var Lh=c(T(),1);function L5e(){let{selectBlock:e}=(0,zA.useDispatch)(P),{parentClientId:t,nextSiblingClientId:o,showInserter:r}=(0,zA.useSelect)(l=>{let{getBlockParents:d,getSelectedBlockClientIds:u,getParentSectionBlock:f,getEnabledBlockParents:p,getBlockName:m,getNextBlockClientId:g,hasInserterItems:h}=Z(l(P)),[b]=u(),v=f(b),_=d(b),y=_[_.length-1],w=p(b,!0)[0],x=(0,jA.getBlockType)(m(w)),k=x?.merge||(0,jA.hasBlockSupport)(x,"__experimentalOnMerge");return{parentClientId:w,nextSiblingClientId:g(b),showInserter:!!w&&w===y&&!v&&!k&&h(w)}},[]),n=yi(t),i=(0,N5e.useRef)(),s=Sk({ref:i,highlightParent:!0}),a=(0,Lh.jsx)(c2.ToolbarButton,{className:"block-editor-block-parent-selector__button",onClick:()=>e(t),label:(0,Dh.sprintf)((0,Dh.__)("Select parent block: %s"),n?.title),showTooltip:!0,icon:(0,Lh.jsx)($t,{icon:n?.icon})});return(0,Lh.jsxs)("div",{className:"block-editor-block-parent-selector",ref:i,...s,children:[!r&&a,r&&(0,Lh.jsxs)(c2.ToolbarGroup,{children:[a,(0,Lh.jsx)(ua,{position:"bottom right",rootClientId:t,clientId:o,isAppender:!o,__experimentalIsQuick:!0,renderToggle:({onToggle:l,isOpen:d,disabled:u,blockTitle:f,hasSingleBlockType:p})=>(0,Lh.jsx)(c2.ToolbarButton,{className:"block-editor-block-parent-selector__inserter",onClick:l,"aria-expanded":d,disabled:u,label:p?(0,Dh.sprintf)((0,Dh._x)("Add %s","directly add the only allowed block"),f.toLowerCase()):(0,Dh._x)("Add block","Generic label for block inserter button"),showTooltip:!0,icon:Ys})})]})]},t)}var HA=c(Q(),1);var Fv=c(Q(),1),Wdt=(0,Fv.createSlotFill)("BlockControls"),Gdt=(0,Fv.createSlotFill)("BlockControlsBlock"),$dt=(0,Fv.createSlotFill)("BlockFormatControls"),Ydt=(0,Fv.createSlotFill)("BlockControlsOther"),Kdt=(0,Fv.createSlotFill)("BlockControlsParent"),qdt=(0,Fv.createSlotFill)("BlockControlsStyleState"),Xdt={default:Wdt,block:Gdt,inline:$dt,other:Ydt,parent:Kdt,"style-state":qdt},d2=Xdt;function D5e(e,t){let o=Mt();return o[tu]?d2[e]?.Fill:o[Gy]&&t?d2.parent.Fill:null}var jp=c(T(),1);function KQ({group:e="default",controls:t,children:o,__experimentalShareWithChildBlocks:r=!1}){let n=D5e(e,r);if(!n)return null;let i=(0,jp.jsxs)(jp.Fragment,{children:[e==="default"&&(0,jp.jsx)(HA.ToolbarGroup,{controls:t}),o]});return(0,jp.jsx)(HA.__experimentalStyleProvider,{document,children:(0,jp.jsx)(n,{children:s=>{let{forwardedContext:a=[]}=s;return a.reduce((l,[d,u])=>(0,jp.jsx)(d,{...u,children:l}),i)}})})}var u2=c(D(),1),Hp=c(Q(),1),F5e=c(ix(),1);var qQ=c(T(),1),{ComponentsContext:V5e}=Z(Hp.privateApis);function XQ({group:e="default",...t}){let o=(0,u2.useContext)(Hp.__experimentalToolbarContext),r=(0,u2.useContext)(V5e),n=(0,u2.useMemo)(()=>({forwardedContext:[[Hp.__experimentalToolbarContext.Provider,{value:o}],[V5e.Provider,{value:r}]]}),[o,r]),i=d2[e],s=(0,Hp.__experimentalUseSlotFills)(i.name);if(!i)return(0,F5e.default)(`Unknown BlockControls group "${e}" provided.`),null;if(!s?.length)return null;let{Slot:a}=i,l=(0,qQ.jsx)(a,{...t,bubblesVirtually:!0,fillProps:n});return e==="default"?l:(0,qQ.jsx)(Hp.ToolbarGroup,{children:l})}var ZQ=c(T(),1),z5e=KQ;z5e.Slot=XQ;var QQ=e=>(0,ZQ.jsx)(KQ,{group:"inline",...e});QQ.Slot=function(t){return(0,ZQ.jsx)(XQ,{group:"inline",...t})};var Jo=z5e;var j5e=c(Q(),1),{Fill:H5e,Slot:Zdt}=(0,j5e.createSlotFill)("__unstableBlockToolbarLastItem");H5e.Slot=Zdt;var UA=H5e;var lN=c(Q(),1);var Bk=c(ce(),1),Os=c(Q(),1),Fh=c(oe(),1);var sN=c(D(),1),oc=c(X(),1),U2e=c(Wl(),1),$p=c(ue(),1);var Tk=c(oe(),1),Rk=c(ce(),1);var n2e=c(D(),1),p2=c(ce(),1),f2=c(oe(),1),i2e=c(Ks(),1),Up=c(X(),1);var Ka=c(ce(),1),Qdt="align";var U5e="__experimentalBorder",WA="color",Jdt="customClassName",W5e="typography.__experimentalFontFamily",G5e="typography.fontSize",eut="typography.lineHeight",tut="typography.__experimentalFontStyle",out="typography.__experimentalFontWeight",$5e="typography.textAlign",rut="typography.textColumns",nut="typography.__experimentalTextDecoration",iut="typography.__experimentalWritingMode",sut="typography.__experimentalTextTransform",aut="typography.__experimentalLetterSpacing",lut="layout",cut=[eut,G5e,tut,out,W5e,$5e,rut,nut,sut,iut,aut],dut=["shadow"],uut="spacing",fut=[...dut,...cut,U5e,WA,uut],Y5e=e=>(0,Ka.hasBlockSupport)(e,Qdt);function K5e(e,t="any"){let o=(0,Ka.getBlockSupport)(e,U5e);return o===!0?!0:t==="any"?!!(o?.color||o?.radius||o?.width||o?.style):!!o?.[t]}var q5e=e=>{let t=(0,Ka.getBlockSupport)(e,WA);return t!==null&&typeof t=="object"&&!!t.gradients},X5e=e=>{let t=(0,Ka.getBlockSupport)(e,WA);return t&&t.background!==!1},Z5e=e=>(0,Ka.hasBlockSupport)(e,$5e);var Q5e=e=>{let t=(0,Ka.getBlockSupport)(e,WA);return t&&t.text!==!1};var J5e=e=>(0,Ka.hasBlockSupport)(e,Jdt,!0);var e2e=e=>(0,Ka.hasBlockSupport)(e,W5e);var t2e=e=>(0,Ka.hasBlockSupport)(e,G5e);var o2e=e=>(0,Ka.hasBlockSupport)(e,lut);var r2e=e=>fut.some(t=>(0,Ka.hasBlockSupport)(e,t));function put(e){try{let t=(0,p2.parse)(e,{__unstableSkipMigrationLogs:!0,__unstableSkipAutop:!0});return!(t.length===1&&t[0].name==="core/freeform")}catch{return!1}}var mut={align:Y5e,borderColor:e=>K5e(e,"color"),backgroundColor:X5e,textAlign:Z5e,textColor:Q5e,gradient:q5e,className:J5e,fontFamily:e2e,fontSize:t2e,layout:o2e,style:r2e};function gut(e,t){return Object.entries(mut).reduce((o,[r,n])=>(n(e.name)&&n(t.name)&&(o[r]=e.attributes[r]),o),{})}function JQ(e,t,o){for(let r=0;r<Math.min(t.length,e.length);r+=1)o(e[r].clientId,gut(t[r],e[r])),JQ(e[r].innerBlocks,t[r].innerBlocks,o)}function Ck(){let e=(0,f2.useRegistry)(),{updateBlockAttributes:t}=(0,f2.useDispatch)(P),{createSuccessNotice:o,createWarningNotice:r,createErrorNotice:n}=(0,f2.useDispatch)(i2e.store);return(0,n2e.useCallback)(async i=>{let s="";try{if(!window.navigator.clipboard){n((0,Up.__)("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,Up.__)("Unable to paste styles. Please allow browser clipboard permissions before continuing."),{type:"snackbar"});return}if(!s||!put(s)){r((0,Up.__)("Unable to paste styles. Block styles couldn't be found within the copied content."),{type:"snackbar"});return}let a=(0,p2.parse)(s);if(a.length===1?e.batch(()=>{JQ(i,i.map(()=>a[0]),t)}):e.batch(()=>{JQ(i,a,t)}),i.length===1){let l=(0,p2.getBlockType)(i[0].name)?.title;o((0,Up.sprintf)((0,Up.__)("Pasted styles to %s."),l),{type:"snackbar"})}else o((0,Up.sprintf)((0,Up.__)("Pasted styles to %d blocks."),i.length),{type:"snackbar"})},[e.batch,t,o,r,n])}var Ek=c(ce(),1);function ec(e,t){let o=(0,Ek.findTransform)((0,Ek.getBlockTransforms)("from",t),r=>r.type==="block"&&r.isMultiBlock&&r.blocks.includes("*"));if(o?.__experimentalConvert){let r=o.__experimentalConvert(e);return Array.isArray(r)?r:[r]}return(0,Ek.switchToBlockType)(e,t)}function s2e({clientIds:e,children:t,__experimentalUpdateSelection:o}){let{getDefaultBlockName:r,getGroupingBlockName:n}=(0,Tk.useSelect)(Rk.store),i=(0,Tk.useSelect)(y=>{let{canInsertBlockType:w,getBlockRootClientId:x,getBlocksByClientId:k,getDirectInsertBlock:C,canRemoveBlocks:S}=y(P),R=k(e),E=x(e[0]),I=w(r(),E),B=E?C(E):null;return{canRemove:S(e),canInsertBlock:R.every(O=>(I||!!B)&&w(O.name,E)),canCopyStyles:R.every(O=>!!O&&((0,Rk.hasBlockSupport)(O.name,"color")||(0,Rk.hasBlockSupport)(O.name,"typography"))),canDuplicate:R.every(O=>!!O&&(0,Rk.hasBlockSupport)(O.name,"multiple",!0)&&w(O.name,E))}},[e,r]),{getBlocksByClientId:s,getBlocks:a}=(0,Tk.useSelect)(P),{canRemove:l,canInsertBlock:d,canCopyStyles:u,canDuplicate:f}=i,{removeBlocks:p,replaceBlocks:m,duplicateBlocks:g,insertAfterBlock:h,insertBeforeBlock:b,flashBlock:v}=(0,Tk.useDispatch)(P),_=Ck();return t({canCopyStyles:u,canDuplicate:f,canInsertBlock:d,canRemove:l,onDuplicate(){return g(e,o)},onRemove(){return p(e,o)},onInsertBefore(){b(e[0])},onInsertAfter(){h(e[e.length-1])},onGroup(){if(!e.length)return;let y=n(),w=ec(s(e),y);w&&m(e,w)},onUngroup(){if(!e.length)return;let y=a(e[0]);y.length&&m(e,y)},onCopy(){e.length===1&&v(e[0])},async onPasteStyles(){await _(s(e))}})}var a2e=c(Q(),1),hut=(0,a2e.createSlotFill)(Symbol("NoteIconSlotFill")),GA=hut;var l2e=c(X(),1),c2e=c(Q(),1),$A=c(ce(),1),YA=c(oe(),1);var d2e=c(T(),1);function but({clientId:e}){let t=(0,YA.useSelect)(r=>r(P).getBlock(e),[e]),{replaceBlocks:o}=(0,YA.useDispatch)(P);return!t||t.name!=="core/html"?null:(0,d2e.jsx)(c2e.MenuItem,{onClick:()=>o(e,(0,$A.rawHandler)({HTML:(0,$A.getBlockContent)(t)})),children:(0,l2e.__)("Convert to Blocks")})}var u2e=but;var f2e=c(Q(),1),{Fill:p2e,Slot:_ut}=(0,f2e.createSlotFill)("__unstableBlockSettingsMenuFirstItem");p2e.Slot=_ut;var KA=p2e;var Pk=c(Q(),1),N2e=c(ce(),1),L2e=c(oe(),1);var tJ=c(Q(),1),oJ=c(X(),1),XA=c(oe(),1),b2e=c(Mo(),1);var m2e=c(ce(),1),g2e=c(oe(),1);function m2(e){return(0,g2e.useSelect)(t=>{let{getBlocksByClientId:o,getSelectedBlockClientIds:r,isUngroupable:n,isGroupable:i}=t(P),{getGroupingBlockName:s,getBlockType:a}=t(m2e.store),l=e?.length?e:r(),d=o(l),[u]=d,f=l.length===1&&n(l[0]);return{clientIds:l,isGroupable:i(l),isUngroupable:f,blocksSelection:d,groupingBlockName:s(),onUngroup:f&&a(u.name)?.transforms?.ungroup}},[e])}var qA=c(oe(),1),h2e=c(ce(),1),zv=c(Q(),1);var g2=c(X(),1);var jv=c(T(),1),vut={group:{type:"constrained"},row:{type:"flex",flexWrap:"nowrap"},stack:{type:"flex",orientation:"vertical"},grid:{type:"grid"}};function yut(){let{blocksSelection:e,clientIds:t,groupingBlockName:o,isGroupable:r}=m2(),{replaceBlocks:n}=(0,qA.useDispatch)(P),{canRemove:i,variations:s}=(0,qA.useSelect)(g=>{let{canRemoveBlocks:h}=g(P),{getBlockVariations:b}=g(h2e.store);return{canRemove:h(t),variations:b(o,"transform")}},[t,o]),a=g=>{let h=ec(e,o);typeof g!="string"&&(g="group"),h&&h.length>0&&(h[0].attributes.layout=vut[g],n(t,h))},l=()=>a("row"),d=()=>a("stack"),u=()=>a("grid");if(!r||!i)return null;let f=!!s.find(({name:g})=>g==="group-row"),p=!!s.find(({name:g})=>g==="group-stack"),m=!!s.find(({name:g})=>g==="group-grid");return(0,jv.jsxs)(zv.ToolbarGroup,{children:[(0,jv.jsx)(zv.ToolbarButton,{icon:vC,label:(0,g2._x)("Group","action: convert blocks to group"),onClick:a}),f&&(0,jv.jsx)(zv.ToolbarButton,{icon:BH,label:(0,g2._x)("Row","action: convert blocks to row"),onClick:l}),p&&(0,jv.jsx)(zv.ToolbarButton,{icon:GH,label:(0,g2._x)("Stack","action: convert blocks to stack"),onClick:d}),m&&(0,jv.jsx)(zv.ToolbarButton,{icon:hC,label:(0,g2._x)("Grid","action: convert blocks to grid"),onClick:u})]})}var eJ=yut;var Hv=c(T(),1);function _2e({clientIds:e,isGroupable:t,isUngroupable:o,onUngroup:r,blocksSelection:n,groupingBlockName:i,onClose:s=()=>{}}){let{getSelectedBlockClientIds:a}=(0,XA.useSelect)(P),{replaceBlocks:l}=(0,XA.useDispatch)(P),d=()=>{let p=ec(n,i);p&&l(e,p)},u=()=>{let p=n[0].innerBlocks;p.length&&(r&&(p=r(n[0].attributes,n[0].innerBlocks)),l(e,p))};if(!t&&!o)return null;let f=a();return(0,Hv.jsxs)(Hv.Fragment,{children:[t&&(0,Hv.jsx)(tJ.MenuItem,{shortcut:f.length>1?b2e.displayShortcut.primary("g"):void 0,onClick:()=>{d(),s()},children:(0,oJ._x)("Group","verb")}),o&&(0,Hv.jsx)(tJ.MenuItem,{onClick:()=>{u(),s()},children:(0,oJ._x)("Ungroup","Ungrouping blocks from within a grouping block back into individual blocks within the Editor")})]})}var rJ=c(X(),1),w2e=c(D(),1),x2e=c(Q(),1);var v2e=c(oe(),1);function Wp(e){return(0,v2e.useSelect)(t=>{let{canLockBlockType:o,getBlockName:r,isEditLockedBlock:n,isMoveLockedBlock:i,isRemoveLockedBlock:s,isLockedBlock:a}=Z(t(P));return{isEditLocked:n(e),isMoveLocked:i(e),isRemoveLocked:s(e),canLock:o(r(e)),isLocked:a(e)}},[e])}var tc=c(X(),1),h2=c(D(),1),on=c(Q(),1);var ZA=c(oe(),1),y2e=c(ce(),1);var tr=c(T(),1),wut=["core/navigation"];function xut(e){return e.remove&&e.move?"all":e.remove&&!e.move?"insert":!1}function QA({clientId:e,onClose:t}){let[o,r]=(0,h2.useState)({move:!1,remove:!1}),{isEditLocked:n,isMoveLocked:i,isRemoveLocked:s}=Wp(e),{allowsEditLocking:a,templateLock:l,hasTemplateLock:d}=(0,ZA.useSelect)(v=>{let{getBlockName:_,getBlockAttributes:y}=v(P),w=_(e),x=(0,y2e.getBlockType)(w);return{allowsEditLocking:wut.includes(w),templateLock:y(e)?.templateLock,hasTemplateLock:!!x?.attributes?.templateLock}},[e]),[u,f]=(0,h2.useState)(!!l),{updateBlockAttributes:p}=(0,ZA.useDispatch)(P),m=yi(e);(0,h2.useEffect)(()=>{r({move:i,remove:s,...a?{edit:n}:{}})},[n,i,s,a]);let g=Object.values(o).every(Boolean),h=Object.values(o).some(Boolean)&&!g,b=o.move!==i||o.remove!==s||a&&o.edit!==n||d&&u!==!!l;return(0,tr.jsx)(on.Modal,{title:(0,tc.sprintf)((0,tc.__)("Lock %s"),m.title),overlayClassName:"block-editor-block-lock-modal",onRequestClose:t,size:"small",children:(0,tr.jsxs)("form",{onSubmit:v=>{v.preventDefault(),b&&(p([e],{lock:o,templateLock:u?xut(o):void 0}),t())},children:[(0,tr.jsxs)("fieldset",{className:"block-editor-block-lock-modal__options",children:[(0,tr.jsx)("legend",{children:(0,tc.__)("Select the features you want to lock")}),(0,tr.jsx)("ul",{role:"list",className:"block-editor-block-lock-modal__checklist",children:(0,tr.jsxs)("li",{children:[(0,tr.jsx)(on.CheckboxControl,{className:"block-editor-block-lock-modal__options-all",label:(0,tc.__)("Lock all"),checked:g,indeterminate:h,onChange:v=>r({move:v,remove:v,...a?{edit:v}:{}})}),(0,tr.jsxs)("ul",{role:"list",className:"block-editor-block-lock-modal__checklist",children:[a&&(0,tr.jsxs)("li",{className:"block-editor-block-lock-modal__checklist-item",children:[(0,tr.jsx)(on.CheckboxControl,{label:(0,tc.__)("Lock editing"),checked:!!o.edit,onChange:v=>r(_=>({..._,edit:v}))}),(0,tr.jsx)(on.Icon,{className:"block-editor-block-lock-modal__lock-icon",icon:o.edit?e_:jf})]}),(0,tr.jsxs)("li",{className:"block-editor-block-lock-modal__checklist-item",children:[(0,tr.jsx)(on.CheckboxControl,{label:(0,tc.__)("Lock movement"),checked:o.move,onChange:v=>r(_=>({..._,move:v}))}),(0,tr.jsx)(on.Icon,{className:"block-editor-block-lock-modal__lock-icon",icon:o.move?e_:jf})]}),(0,tr.jsxs)("li",{className:"block-editor-block-lock-modal__checklist-item",children:[(0,tr.jsx)(on.CheckboxControl,{label:(0,tc.__)("Lock removal"),checked:o.remove,onChange:v=>r(_=>({..._,remove:v}))}),(0,tr.jsx)(on.Icon,{className:"block-editor-block-lock-modal__lock-icon",icon:o.remove?e_:jf})]})]})]})}),d&&(0,tr.jsx)(on.ToggleControl,{className:"block-editor-block-lock-modal__template-lock",label:(0,tc.__)("Apply to all blocks inside"),checked:u,disabled:o.move&&!o.remove,onChange:()=>f(!u)})]}),(0,tr.jsxs)(on.Flex,{className:"block-editor-block-lock-modal__actions",justify:"flex-end",expanded:!1,children:[(0,tr.jsx)(on.FlexItem,{children:(0,tr.jsx)(on.Button,{variant:"tertiary",onClick:t,__next40pxDefaultSize:!0,children:(0,tc.__)("Cancel")})}),(0,tr.jsx)(on.FlexItem,{children:(0,tr.jsx)(on.Button,{variant:"primary",type:"submit",disabled:!b,accessibleWhenDisabled:!0,__next40pxDefaultSize:!0,children:(0,tc.__)("Apply")})})]})]})})}var Uv=c(T(),1);function nJ({clientId:e}){let{canLock:t,isLocked:o}=Wp(e),[r,n]=(0,w2e.useReducer)(s=>!s,!1);if(!t)return null;let i=o?(0,rJ.__)("Unlock"):(0,rJ.__)("Lock");return(0,Uv.jsxs)(Uv.Fragment,{children:[(0,Uv.jsx)(x2e.MenuItem,{icon:o?jf:uH,onClick:n,"aria-expanded":r,"aria-haspopup":"dialog",children:i}),r&&(0,Uv.jsx)(QA,{clientId:e,onClose:n})]})}var JA=c(X(),1),eN=c(Q(),1),Ik=c(D(),1);var Vh=c(T(),1);function iJ({clientId:e}){let{canLock:t,isLocked:o}=Wp(e),[r,n]=(0,Ik.useReducer)(a=>!a,!1),i=(0,Ik.useRef)(!1);if((0,Ik.useEffect)(()=>{o&&(i.current=!0)},[o]),!o&&!i.current)return null;let s=o?(0,JA.__)("Unlock"):(0,JA.__)("Lock");return!t&&o&&(s=(0,JA.__)("Locked")),(0,Vh.jsxs)(Vh.Fragment,{children:[(0,Vh.jsx)(eN.ToolbarGroup,{className:"block-editor-block-lock-toolbar",children:(0,Vh.jsx)(eN.ToolbarButton,{disabled:!t,icon:o?e_:jf,label:s,onClick:n,"aria-expanded":r,"aria-haspopup":"dialog"})}),r&&(0,Vh.jsx)(QA,{clientId:e,onClose:n})]})}var sJ=c(X(),1),k2e=c(Q(),1),tN=c(ce(),1),oN=c(oe(),1);var S2e=c(T(),1),kut=()=>{};function C2e({clientId:e,onToggle:t=kut}){let{blockType:o,mode:r,enabled:n}=(0,oN.useSelect)(a=>{let{getBlock:l,getBlockMode:d,getSettings:u}=a(P),f=l(e);return{mode:d(e),blockType:f?(0,tN.getBlockType)(f.name):null,enabled:u().codeEditingEnabled&&!!f?.isValid}},[e]),{toggleBlockMode:i}=(0,oN.useDispatch)(P);if(!o||!(0,tN.hasBlockSupport)(o,"html",!0)||!n)return null;let s=r==="visual"?(0,sJ.__)("Edit as HTML"):(0,sJ.__)("Edit visually");return(0,S2e.jsx)(k2e.MenuItem,{onClick:()=>{i(e),t()},children:s})}var I2e=c(Q(),1),P2e=c(X(),1),B2e=c(D(),1),O2e=c(oe(),1),M2e=c(Wl(),1);var wd=c(Q(),1),yd=c(X(),1),T2e=c(D(),1),R2e=c(zo(),1),rN=c(oe(),1);function E2e(e){return e?.trim()?.length===0}var Gp=c(T(),1);function Wv({clientId:e,onClose:t}){let[o,r]=(0,T2e.useState)(),n=yi(e),{metadata:i}=(0,rN.useSelect)(b=>{let{getBlockAttributes:v}=b(P);return{metadata:v(e)?.metadata}},[e]),{updateBlockAttributes:s}=(0,rN.useDispatch)(P),a=i?.name||"",l=n?.title,d=!!a&&!!i?.bindings&&Object.values(i.bindings).some(b=>b.source==="core/pattern-overrides"),u=o!==void 0&&o!==a,f=o===l,p=E2e(o),m=u||f,g=b=>b.target.select(),h=()=>{let b=f||p?void 0:o,v=f||p?(0,yd.sprintf)((0,yd.__)('Block name reset to: "%s".'),o):(0,yd.sprintf)((0,yd.__)('Block name changed to: "%s".'),o);(0,R2e.speak)(v,"assertive"),s([e],{metadata:Qe({...i,name:b})}),t()};return(0,Gp.jsx)(wd.Modal,{title:(0,yd.__)("Rename"),onRequestClose:t,overlayClassName:"block-editor-block-rename-modal",focusOnMount:"firstContentElement",size:"small",children:(0,Gp.jsx)("form",{onSubmit:b=>{b.preventDefault(),m&&h()},children:(0,Gp.jsxs)(wd.__experimentalVStack,{spacing:"3",children:[(0,Gp.jsx)(wd.TextControl,{value:o??a,label:(0,yd.__)("Name"),help:d?(0,yd.__)("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:g}),(0,Gp.jsxs)(wd.__experimentalHStack,{justify:"right",children:[(0,Gp.jsx)(wd.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:t,children:(0,yd.__)("Cancel")}),(0,Gp.jsx)(wd.Button,{__next40pxDefaultSize:!0,accessibleWhenDisabled:!0,disabled:!m,variant:"primary",type:"submit",children:(0,yd.__)("Save")})]})]})})})}var Gv=c(T(),1);function aJ({clientId:e}){let[t,o]=(0,B2e.useState)(!1),r=(0,O2e.useSelect)(n=>n(M2e.store).getShortcutRepresentation("core/block-editor/rename"),[]);return(0,Gv.jsxs)(Gv.Fragment,{children:[(0,Gv.jsx)(I2e.MenuItem,{onClick:()=>{o(!0)},"aria-expanded":t,"aria-haspopup":"dialog",shortcut:r,children:(0,P2e.__)("Rename")}),t&&(0,Gv.jsx)(Wv,{clientId:e,onClose:()=>o(!1)})]})}var A2e=c(ce(),1);function b2(e){return{canRename:!!e&&(0,A2e.getBlockSupport)(e,"renaming",!0)}}var xd=c(T(),1),{Fill:Sut,Slot:Cut}=(0,Pk.createSlotFill)("BlockSettingsMenuControls"),Eut=({fillProps:e,clientIds:t=null})=>{let{selectedBlocks:o,selectedClientIds:r,isContentOnly:n,canToggleSelectedBlocksVisibility:i,canEdit:s}=(0,L2e.useSelect)(b=>{let{getBlocksByClientId:v,getBlockNamesByClientId:_,getSelectedBlockClientIds:y,getBlockEditingMode:w,canEditBlock:x}=b(P),k=t!==null?t:y();return{selectedBlocks:_(k),selectedClientIds:k,isContentOnly:w(k[0])==="contentOnly",canToggleSelectedBlocksVisibility:v(k).every(C=>(0,N2e.hasBlockSupport)(C.name,"visibility",!0)),canEdit:x(k[0])}},[t]),{canLock:a}=Wp(r[0]),{canRename:l}=b2(o[0]),d=r.length===1&&a&&!n,u=r.length===1&&l&&!n,f=i&&!n,p=m2(r),{isGroupable:m,isUngroupable:g}=p,h=(m||g)&&!n;return(0,xd.jsx)(Cut,{fillProps:{...e,canEdit:s,selectedBlocks:o,selectedClientIds:r},children:b=>!b?.length>0&&!h&&!d?null:(0,xd.jsxs)(Pk.MenuGroup,{children:[h&&(0,xd.jsx)(_2e,{...p,onClose:e?.onClose}),s&&d&&(0,xd.jsx)(nJ,{clientId:r[0]}),s&&u&&(0,xd.jsx)(aJ,{clientId:r[0]}),s&&f&&(0,xd.jsx)(dZ,{clientIds:r}),b,s&&e?.count===1&&!n&&(0,xd.jsx)(C2e,{clientId:e?.firstBlockClientId,onToggle:e?.onClose})]})})};function D2e({...e}){return(0,xd.jsx)(Pk.__experimentalStyleProvider,{document,children:(0,xd.jsx)(Sut,{...e})})}D2e.Slot=Eut;var nN=D2e;var V2e=c(D(),1),F2e=c(Q(),1),z2e=c(ue(),1),j2e=c(oe(),1),iN=c(X(),1);var lJ=c(T(),1);function H2e({parentClientId:e,parentBlockType:t}){let o=(0,z2e.useViewportMatch)("medium","<"),{selectBlock:r}=(0,j2e.useDispatch)(P),n=(0,V2e.useRef)(),i=Sk({ref:n,highlightParent:!0});return o?(0,lJ.jsx)(F2e.MenuItem,{...i,ref:n,icon:(0,lJ.jsx)($t,{icon:t.icon}),onClick:()=>r(e),children:(0,iN.sprintf)((0,iN.__)("Select parent block (%s)"),t.title)}):null}var yo=c(T(),1),Tut={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,Fh.useSelect)(P),{removeBlocks:a}=(0,Fh.useDispatch)(P),l=Nx(),d=(0,$p.useCopyToClipboard)(()=>(0,Bk.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}}),u=o||(0,oc.__)("Copy");return(0,yo.jsx)(Os.MenuItem,{ref:d,shortcut:r,children:u})}function dJ({clientId:e,clientIds:t,children:o,__experimentalSelectBlock:r,isContentOnlyListView:n,...i}){let s=t.length,a=t[0],{firstParentClientId:l,parentBlockType:d,previousBlockClientId:u,selectedBlockClientIds:f,isContentOnly:p,isZoomOut:m,canEdit:g,canMove:h,isFirst:b,isLast:v}=(0,Fh.useSelect)(B=>{let{getBlockName:O,getBlockRootClientId:M,getPreviousBlockClientId:N,getSelectedBlockClientIds:j,getBlockAttributes:V,getBlockEditingMode:A,isZoomOut:L,canEditBlock:z,canMoveBlocks:F,getBlockIndex:G,getBlockCount:$}=Z(B(P)),{getActiveBlockVariation:K}=B(Bk.store),q=M(a),H=q&&O(q);return{firstParentClientId:q,parentBlockType:q&&(K(H,V(q))||(0,Bk.getBlockType)(H)),previousBlockClientId:N(a),selectedBlockClientIds:j(),isContentOnly:A(a)==="contentOnly",isZoomOut:L(),canEdit:z(a),canMove:F(t),isFirst:G(a)===0,isLast:G(a)===$(q)-1}},[a,t]),{getBlockOrder:_,getSelectedBlockClientIds:y}=(0,Fh.useSelect)(P),{moveBlocksDown:w,moveBlocksUp:x}=(0,Fh.useDispatch)(P),k=(0,Fh.useSelect)(B=>{let{getShortcutRepresentation:O}=B(U2e.store);return{copy:O("core/block-editor/copy"),cut:O("core/block-editor/cut"),duplicate:O("core/block-editor/duplicate"),remove:O("core/block-editor/remove"),insertAfter:O("core/block-editor/insert-after"),insertBefore:O("core/block-editor/insert-before")}},[]),C=f.length>0;async function S(B){if(!r)return;let O=await B;O&&O[0]&&r(O[0],!1)}function R(){if(!r)return;let B=u||l;B||(B=_()[0]);let O=C&&y().length===0;r(B,O)}let I=!f?.includes(l)&&!!l;return(0,yo.jsx)(s2e,{clientIds:t,__experimentalUpdateSelection:!r,children:({canCopyStyles:B,canDuplicate:O,canInsertBlock:M,canRemove:N,onDuplicate:j,onInsertAfter:V,onInsertBefore:A,onRemove:L,onCopy:z,onPasteStyles:F})=>!N&&!O&&!M&&p?null:(0,yo.jsx)(Os.DropdownMenu,{icon:Hc,label:(0,oc.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:Tut,noIcons:!0,...i,children:({onClose:$})=>(0,yo.jsxs)(yo.Fragment,{children:[(0,yo.jsxs)(Os.MenuGroup,{children:[(0,yo.jsx)(KA.Slot,{fillProps:{onClose:$}}),I&&(0,yo.jsx)(H2e,{parentClientId:l,parentBlockType:d}),h&&n&&(0,yo.jsxs)(yo.Fragment,{children:[(0,yo.jsx)(Os.MenuItem,{icon:Zb,disabled:b,accessibleWhenDisabled:!0,onClick:(0,$p.pipe)($,()=>{x(t,l)}),children:(0,oc.__)("Move up")}),(0,yo.jsx)(Os.MenuItem,{icon:Tn,disabled:v,accessibleWhenDisabled:!0,onClick:(0,$p.pipe)($,()=>{w(t,l)}),children:(0,oc.__)("Move down")})]}),g&&s===1&&(0,yo.jsx)(u2e,{clientId:a}),!p&&(0,yo.jsx)(cJ,{clientIds:t,onCopy:z,shortcut:k.copy}),N&&!p&&(0,yo.jsx)(cJ,{clientIds:t,label:(0,oc.__)("Cut"),eventType:"cut",shortcut:k.cut,__experimentalUpdateSelection:!r}),O&&(0,yo.jsx)(Os.MenuItem,{onClick:(0,$p.pipe)($,j,S),shortcut:k.duplicate,children:(0,oc.__)("Duplicate")}),M&&!m&&(0,yo.jsxs)(yo.Fragment,{children:[(0,yo.jsx)(Os.MenuItem,{onClick:(0,$p.pipe)($,A),shortcut:k.insertBefore,children:(0,oc.__)("Add before")}),(0,yo.jsx)(Os.MenuItem,{onClick:(0,$p.pipe)($,V),shortcut:k.insertAfter,children:(0,oc.__)("Add after")})]}),g&&s===1&&(0,yo.jsx)(GA.Slot,{fillProps:{clientId:a,onClose:$}})]}),B&&!p&&(0,yo.jsxs)(Os.MenuGroup,{children:[(0,yo.jsx)(cJ,{clientIds:t,onCopy:z,label:(0,oc.__)("Copy styles"),eventType:"copyStyles"}),g&&(0,yo.jsx)(Os.MenuItem,{onClick:F,children:(0,oc.__)("Paste styles")})]}),!p&&(0,yo.jsx)(nN.Slot,{fillProps:{onClose:$,count:s,firstBlockClientId:a},clientIds:t}),typeof o=="function"?o({onClose:$}):sN.Children.map(K=>(0,sN.cloneElement)(K,{onClose:$})),N&&(0,yo.jsx)(Os.MenuGroup,{children:(0,yo.jsx)(Os.MenuItem,{onClick:(0,$p.pipe)($,L,R),shortcut:k.remove,children:(0,oc.__)("Delete")})})]})})})}var W2e=dJ;var G2e=c(Q(),1),Rut=(0,G2e.createSlotFill)(Symbol("NoteIconToolbarSlotFill")),aN=Rut;var Ok=c(T(),1);function Iut({clientIds:e,...t}){return(0,Ok.jsxs)(lN.ToolbarGroup,{children:[(0,Ok.jsx)(aN.Slot,{}),(0,Ok.jsx)(lN.ToolbarItem,{children:o=>(0,Ok.jsx)(W2e,{clientIds:e,toggleProps:o,...t})})]})}var cN=Iut;var dN=c(Q(),1),$2e=c(X(),1),uN=c(oe(),1);var uJ=c(T(),1);function Y2e({clientIds:e}){let t=e.length===1?e[0]:void 0,o=(0,uN.useSelect)(n=>!!t&&n(P).getBlockMode(t)==="html",[t]),{toggleBlockMode:r}=(0,uN.useDispatch)(P);return o?(0,uJ.jsx)(dN.ToolbarGroup,{children:(0,uJ.jsx)(dN.ToolbarButton,{onClick:()=>{r(t)},children:(0,$2e.__)("Edit visually")})}):null}var fN=c(Q(),1),wi=c(D(),1),X2e=c(oe(),1),Z2e=c(Gt(),1),pJ=c(Ut(),1),Q2e=c(Wl(),1),J2e=c(Mo(),1);var fJ=c(T(),1);function Put(e){let t="toolbarItem";return!e.some(o=>!(t in o.dataset))}function K2e(e){return Array.from(e.querySelectorAll("[data-toolbar-item]:not([disabled])"))}function q2e(e){return e.contains(e.ownerDocument.activeElement)}function But(e){let[t]=pJ.focus.tabbable.find(e);t&&t.focus({preventScroll:!0})}function Out(e){let[o,r]=(0,wi.useState)(!0),n=(0,wi.useCallback)(()=>{let i=pJ.focus.tabbable.find(e.current);if(i.length===0)return;let s=Put(i);s||(0,Z2e.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,wi.useLayoutEffect)(()=>{let i=new window.MutationObserver(n);return i.observe(e.current,{childList:!0,subtree:!0}),()=>i.disconnect()},[n,o,e]),o}function Mut({toolbarRef:e,focusOnMount:t,isAccessibleToolbar:o,defaultIndex:r,onIndexChange:n,shouldUseKeyboardFocusShortcut:i,focusEditorOnEscape:s}){let[a]=(0,wi.useState)(t),[l]=(0,wi.useState)(r),{getLastFocus:d,getSelectedBlockClientId:u}=Z((0,X2e.useSelect)(P)),{refsMap:f}=(0,wi.useContext)(za),p=(0,wi.useCallback)(()=>{But(e.current)},[e]);(0,Q2e.useShortcut)("core/block-editor/focus-toolbar",()=>{i&&p()}),(0,wi.useEffect)(()=>{a&&p()},[o,a,p]),(0,wi.useEffect)(()=>{let g=e.current,h=0;return!a&&!q2e(g)&&(h=window.requestAnimationFrame(()=>{let b=K2e(g),v=l||0;b[v]&&q2e(g)&&b[v].focus({preventScroll:!0})})),()=>{if(window.cancelAnimationFrame(h),!n||!g)return;let v=K2e(g).findIndex(_=>_.tabIndex===0);n(v)}},[l,a,n,e]),(0,wi.useEffect)(()=>{if(!s)return;let g=e.current,h=b=>{if(b.keyCode!==J2e.ESCAPE)return;let v=d()?.current??f.get(u());v&&(b.preventDefault(),v.focus())};return g.addEventListener("keydown",h),()=>{g.removeEventListener("keydown",h)}},[s,d,u,f,e])}function Mk({children:e,focusOnMount:t,focusEditorOnEscape:o=!1,shouldUseKeyboardFocusShortcut:r=!0,__experimentalInitialIndex:n,__experimentalOnIndexChange:i,orientation:s="horizontal",...a}){let l=(0,wi.useRef)(),d=Out(l);return Mut({toolbarRef:l,focusOnMount:t,defaultIndex:n,onIndexChange:i,isAccessibleToolbar:d,shouldUseKeyboardFocusShortcut:r,focusEditorOnEscape:o}),d?(0,fJ.jsx)(fN.Toolbar,{label:a["aria-label"],ref:l,orientation:s,...a,children:e}):(0,fJ.jsx)(fN.NavigableMenu,{orientation:s,role:"toolbar",ref:l,...a,children:e})}var eIe=c(oe(),1),pN=c(ce(),1);function mN(){return(0,eIe.useSelect)(t=>{let{getBlockEditingMode:o,getBlockName:r,getBlockSelectionStart:n}=t(P),i=n(),s=i&&(0,pN.getBlockType)(r(i));return s&&(0,pN.hasBlockSupport)(s,"__experimentalToolbar",!0)&&o(i)!=="disabled"},[])}var zh=c(Q(),1),tIe=c(X(),1),oIe=c(ce(),1),rIe=c(D(),1),gN=c(oe(),1);var Ak=c(T(),1),mJ=[],Aut=6,Nut={placement:"bottom-start"};function nIe({clientId:e}){let{categories:t,currentPatternName:o,patterns:r}=(0,gN.useSelect)(a=>{let{getBlockAttributes:l,getBlockRootClientId:d,__experimentalGetAllowedPatterns:u}=a(P),f=l(e),p=f?.metadata?.categories||mJ,m=d(e),g=p.length>0?u(m):mJ;return{categories:p,currentPatternName:f?.metadata?.patternName,patterns:g}},[e]),{replaceBlocks:n}=(0,gN.useDispatch)(P),i=(0,rIe.useMemo)(()=>t.length===0||!r||r.length===0?mJ: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(d=>t.includes(d))&&(a.syncStatus==="unsynced"||!a.id)}).slice(0,Aut),[t,o,r]);if(i.length<2)return null;let s=a=>{let l=(a.blocks??[]).map(d=>(0,oIe.cloneBlock)(d));l[0].attributes.metadata={...l[0].attributes.metadata,categories:t},n(e,l)};return(0,Ak.jsx)(zh.Dropdown,{popoverProps:Nut,renderToggle:({onToggle:a,isOpen:l})=>(0,Ak.jsx)(zh.ToolbarGroup,{children:(0,Ak.jsx)(zh.ToolbarButton,{onClick:()=>a(!l),"aria-expanded":l,children:(0,tIe.__)("Change design")})}),renderContent:()=>(0,Ak.jsx)(zh.__experimentalDropdownContentWrapper,{className:"block-editor-block-toolbar-change-design-content-wrapper",paddingSize:"none",children:(0,Ak.jsx)(ju,{blockPatterns:i,onClickPattern:s,showTitlesAsTooltip:!0})})})}var kd=c(Q(),1),dIe=c(X(),1),_N=c(oe(),1);var bN=c(oe(),1),Hh=c(ce(),1),cIe=c(D(),1);var gJ=c(_2(),1),sIe=c(X(),1);function aIe(e,t){for(let o of new gJ.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 hN(e)}function jh(e,t,o){let r=new gJ.default(e);return t&&r.remove("is-style-"+t.name),r.add("is-style-"+o.name),r.value}function lIe(e){return!e||e.length===0?[]:hN(e)?e:[{name:"default",label:(0,sIe._x)("Default","block style"),isDefault:!0},...e]}function hN(e){return e?.find(t=>t.isDefault)}function Lut(e,t){return(0,cIe.useMemo)(()=>{let o=t?.example,r=t?.name;if(o&&r)return(0,Hh.getBlockFromExample)(r,{attributes:o.attributes,innerBlocks:o.innerBlocks,innerContent:o.innerContent});if(e)return(0,Hh.cloneBlock)(e)},[e,t?.example,t?.name])}function Nk({clientId:e,onSwitch:t}){let o=p=>{let{getBlock:m}=p(P),g=m(e);if(!g)return{};let h=(0,Hh.getBlockType)(g.name),{getBlockStyles:b}=p(Hh.store);return{block:h?.example?null:g,blockType:h,styles:b(g.name),className:g.attributes.className||""}},{styles:r,block:n,blockType:i,className:s}=(0,bN.useSelect)(o,[e]),{updateBlockAttributes:a}=(0,bN.useDispatch)(P),l=lIe(r),d=aIe(l,s),u=Lut(n,i);return{onSelect:p=>{let m=jh(s,d,p);a(e,{className:m}),t()},stylesToRender:l,activeStyle:d,genericPreviewBlock:u,className:s}}var Uh=c(T(),1),{getVariationStyle:Dut}=Z(Ro),Vut=(0,Uh.jsxs)(kd.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:[(0,Uh.jsx)(kd.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,Uh.jsx)(kd.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 Fut({clientId:e}){let{stylesToRender:t,activeStyle:o,className:r}=Nk({clientId:e}),{updateBlockAttributes:n}=(0,_N.useDispatch)(P),{globalSettings:i,globalStyles:s,blockName:a}=(0,_N.useSelect)(u=>{let f=u(P).getSettings();return{globalSettings:f.__experimentalFeatures,globalStyles:f[Gs],blockName:u(P).getBlockName(e)}},[e]),l=o?.name?Dut({settings:i,styles:s},a,o.name)?.color?.background:void 0;return!t||t.length===0?null:(0,Uh.jsx)(kd.ToolbarGroup,{children:(0,Uh.jsx)(kd.ToolbarButton,{onClick:()=>{let f=(t.findIndex(g=>g.name===o.name)+1)%t.length,p=t[f],m=jh(r,o,p);n(e,{className:m})},label:(0,dIe.__)("Shuffle styles"),children:(0,Uh.jsx)(kd.Icon,{icon:Vut,style:{fill:l||"transparent"}})})})}var uIe=Fut;var wN=c(Q(),1),hJ=c(X(),1),fIe=c(oe(),1),xN=c(ce(),1);var vN=c(oe(),1);function yN(e){let{isSectionBlock:t,isWithinSection:o,isWithinEditedSection:r,isEditingContentOnlySection:n,editedContentOnlySection:i}=(0,vN.useSelect)(d=>{let{isSectionBlock:u,getParentSectionBlock:f,getEditedContentOnlySection:p,isWithinEditedContentOnlySection:m}=Z(d(P)),g=p();return{isSectionBlock:u(e),isWithinSection:u(e)||!!f(e),isWithinEditedSection:m(e),isEditingContentOnlySection:g===e,editedContentOnlySection:g}},[e]),s=(0,vN.useDispatch)(P),{editContentOnlySection:a,stopEditingContentOnlySection:l}=Z(s);return{isSectionBlock:t,isWithinSection:o,isWithinEditedSection:r,isEditingContentOnlySection:n,editedContentOnlySection:i,editContentOnlySection:a,stopEditingContentOnlySection:l}}var bJ=c(T(),1);function pIe({clientId:e}){let{isSectionBlock:t,isEditingContentOnlySection:o,editContentOnlySection:r,stopEditingContentOnlySection:n}=yN(e),i=(0,fIe.useSelect)(l=>{if(!e)return null;let{getBlockName:d}=l(P),u=d(e);return u?{name:u}:null},[e]);if(!e||!t&&!o||(0,xN.isReusableBlock)(i)||(0,xN.isTemplatePart)(i))return null;let s=o;return(0,bJ.jsx)(wN.ToolbarGroup,{children:(0,bJ.jsx)(wN.ToolbarButton,{onClick:()=>{s?n():r(e)},children:s?(0,hJ.__)("Exit pattern"):(0,hJ.__)("Edit pattern")})})}var jIe=c(Q(),1),HIe=c(X(),1),UIe=c(oe(),1);var S2=c(ce(),1),WIe=c(v2(),1);var qu=c(X(),1);var Gh=c(Q(),1),$h=c(ce(),1),PN=c(oe(),1);var wIe=c(X(),1),w2=c(Q(),1),SN=c(ce(),1),CN=c(D(),1);var gIe=c(Q(),1),hIe=c(ue(),1);var y2=c(T(),1);function Wh({blocks:e,placement:t="right-start",offset:o=16,anchor:r}){return(0,hIe.useViewportMatch)("medium","<")?null:(0,y2.jsx)("div",{className:"block-editor-block-switcher__popover-preview-container",children:(0,y2.jsx)(gIe.Popover,{className:"block-editor-block-switcher__popover-preview",placement:t,focusOnMount:!1,offset:o,anchor:r,children:(0,y2.jsx)("div",{className:"block-editor-block-switcher__preview",children:(0,y2.jsx)(sa,{viewportWidth:601,blocks:e})})})})}var bIe=c(Q(),1),Lk=c(ce(),1),_Ie=c(oe(),1),kN=c(D(),1);var Yp=c(T(),1),zut={};function vIe({clientIds:e,blocks:t}){let{activeBlockVariation:o,blockVariationTransformations:r}=(0,_Ie.useSelect)(i=>{let{getBlockAttributes:s,canRemoveBlocks:a}=i(P),{getActiveBlockVariation:l,getBlockVariations:d}=i(Lk.store),u=a(e);if(t.length!==1||!u)return zut;let[f]=t;return{blockVariationTransformations:d(f.name,"transform"),activeBlockVariation:l(f.name,s(f.clientId))}},[e,t]);return(0,kN.useMemo)(()=>r?.filter(({name:i})=>i!==o?.name),[r,o])}var jut=({transformations:e,onSelect:t,blocks:o})=>{let[r,n]=(0,kN.useState)();return(0,Yp.jsxs)(Yp.Fragment,{children:[r&&(0,Yp.jsx)(Wh,{blocks:(0,Lk.cloneBlock)(o[0],e.find(({name:i})=>i===r).attributes)}),e?.map(i=>(0,Yp.jsx)(Hut,{item:i,onSelect:t,setHoveredTransformItemName:n},i.name))]})};function Hut({item:e,onSelect:t,setHoveredTransformItemName:o}){let{name:r,icon:n,title:i}=e;return(0,Yp.jsxs)(bIe.MenuItem,{className:(0,Lk.getBlockMenuDefaultClassName)(r),onClick:s=>{s.preventDefault(),t(r)},onMouseLeave:()=>o(null),onMouseEnter:()=>o(r),onFocus:()=>o(r),onBlur:()=>o(null),children:[(0,Yp.jsx)($t,{icon:n,showColors:!0}),i]})}var yIe=jut;var pa=c(T(),1);function Uut(e){let t={"core/paragraph":1,"core/heading":2,"core/list":3,"core/quote":4},o=(0,CN.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 Wut=({className:e,possibleBlockTransformations:t,possibleBlockVariationTransformations:o,onSelect:r,onSelectVariation:n,blocks:i})=>{let[s,a]=(0,CN.useState)(),{priorityTextTransformations:l,restTransformations:d}=Uut(t),u=l.length&&d.length,f=!!d.length&&(0,pa.jsx)(Gut,{restTransformations:d,onSelect:r,setHoveredTransformItem:a});return(0,pa.jsxs)(pa.Fragment,{children:[(0,pa.jsxs)(w2.MenuGroup,{label:(0,wIe.__)("Transform to"),className:e,children:[s&&(0,pa.jsx)(Wh,{blocks:(0,SN.switchToBlockType)(i,s.name,s.variationName)}),!!o?.length&&(0,pa.jsx)(yIe,{transformations:o,blocks:i,onSelect:n}),l.map(p=>(0,pa.jsx)(xIe,{item:p,onSelect:r,setHoveredTransformItem:a},p.id||p.name)),!u&&f]}),!!u&&(0,pa.jsx)(w2.MenuGroup,{className:e,children:f})]})};function Gut({restTransformations:e,onSelect:t,setHoveredTransformItem:o}){return e.map(r=>(0,pa.jsx)(xIe,{item:r,onSelect:t,setHoveredTransformItem:o},r.id||r.name))}function xIe({item:e,onSelect:t,setHoveredTransformItem:o}){let{name:r,icon:n,title:i,isDisabled:s}=e;return(0,pa.jsxs)(w2.MenuItem,{className:(0,SN.getBlockMenuDefaultClassName)(r),onClick:a=>{a.preventDefault(),t(r,e.variationName)},disabled:s,onMouseLeave:()=>o(null),onMouseEnter:()=>o(e),onFocus:()=>o(e),onBlur:()=>o(null),children:[(0,pa.jsx)($t,{icon:n,showColors:!0}),i]})}var kIe=Wut;var EIe=c(X(),1),TIe=c(Q(),1),TN=c(D(),1);var EN=c(Q(),1);var Dk=c(T(),1),SIe=()=>{};function CIe({stylesToRender:e,activeStyle:t,onSelect:o=SIe,onHoverStyle:r=SIe}){return!e||e.length===0?null:(0,Dk.jsx)(Dk.Fragment,{children:e.map(n=>{let i=n.label||n.name;return(0,Dk.jsx)(EN.MenuItem,{icon:t.name===n.name?Vn:null,onClick:()=>o(n),onFocus:()=>r(n),onBlur:()=>r(null),onMouseEnter:()=>r(n),onMouseLeave:()=>r(null),children:(0,Dk.jsx)(EN.__experimentalText,{as:"span",limit:18,ellipsizeMode:"tail",truncate:!0,children:i})},n.name)})})}var x2=c(T(),1);function RN({hoveredBlock:e,onSwitch:t}){let{clientId:o}=e,[r,n]=(0,TN.useState)(null),{onSelect:i,stylesToRender:s,activeStyle:a,genericPreviewBlock:l,className:d}=Nk({clientId:o,onSwitch:t}),u=(0,TN.useMemo)(()=>{if(!r||!l)return null;let f=jh(d,a,r);return[{...l,attributes:{...l.attributes||{},className:f}}]},[r,l,d,a]);return!s||s.length===0?null:(0,x2.jsxs)(TIe.MenuGroup,{label:(0,EIe.__)("Styles"),className:"block-editor-block-switcher__styles__menugroup",children:[u&&(0,x2.jsx)(Wh,{blocks:u}),(0,x2.jsx)(CIe,{stylesToRender:s,activeStyle:a,onSelect:i,onHoverStyle:n})]})}var vJ=c(X(),1),MIe=c(D(),1),IN=c(ue(),1);var Kp=c(Q(),1);var PIe=c(D(),1),BIe=c(ce(),1);var RIe=c(ce(),1),_J=(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=_J(s,t,o);if(a)return a}}},IIe=(e,t)=>{let o=(0,RIe.getBlockAttributesNamesByRole)(e,"content");return o?.length?o.reduce((r,n)=>(t[n]&&(r[n]=t[n]),r),{}):t};var $ut=(e,t)=>{let o=IIe(t.name,t.attributes);e.attributes={...e.attributes,...o}},Yut=(e,t)=>{let o=t.map(n=>(0,BIe.cloneBlock)(n)),r=new Set;for(let n of e){let i=!1;for(let s of o){let a=_J(s,n.name,r);if(a){i=!0,r.add(a.clientId),$ut(a,n);break}}if(!i)return}return o},Kut=(e,t)=>(0,PIe.useMemo)(()=>e.reduce((o,r)=>{let n=Yut(t,r.blocks);return n&&o.push({...r,transformedBlocks:n}),o},[]),[e,t]),OIe=Kut;var xi=c(T(),1);function qut({blocks:e,patterns:t,onSelect:o}){let[r,n]=(0,MIe.useState)(!1),i=OIe(t,e);return i.length?(0,xi.jsxs)(Kp.MenuGroup,{className:"block-editor-block-switcher__pattern__transforms__menugroup",children:[r&&(0,xi.jsx)(Xut,{patterns:i,onSelect:o}),(0,xi.jsx)(Kp.MenuItem,{onClick:s=>{s.preventDefault(),n(!r)},icon:yr,children:(0,vJ.__)("Patterns")})]}):null}function Xut({patterns:e,onSelect:t}){let o=(0,IN.useViewportMatch)("medium","<");return(0,xi.jsx)("div",{className:"block-editor-block-switcher__popover-preview-container",children:(0,xi.jsx)(Kp.Popover,{className:"block-editor-block-switcher__popover-preview",placement:o?"bottom":"right-start",offset:16,children:(0,xi.jsx)("div",{className:"block-editor-block-switcher__preview is-pattern-list-preview",children:(0,xi.jsx)(Zut,{patterns:e,onSelect:t})})})})}function Zut({patterns:e,onSelect:t}){return(0,xi.jsx)(Kp.Composite,{role:"listbox",className:"block-editor-block-switcher__preview-patterns-container","aria-label":(0,vJ.__)("Patterns list"),children:e.map(o=>(0,xi.jsx)(AIe,{pattern:o,onSelect:t},o.name))})}function AIe({pattern:e,onSelect:t}){let o="block-editor-block-switcher__preview-patterns-container",r=(0,IN.useInstanceId)(AIe,`${o}-list__item-description`);return(0,xi.jsxs)("div",{className:`${o}-list__list-item`,children:[(0,xi.jsxs)(Kp.Composite.Item,{render:(0,xi.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,xi.jsx)(sa,{blocks:e.transformedBlocks,viewportWidth:e.viewportWidth||500}),(0,xi.jsx)("div",{className:`${o}-list__item-title`,children:e.title})]}),!!e.description&&(0,xi.jsx)(Et,{id:r,children:e.description})]})}var NIe=qut;var qa=c(T(),1);function Qut({onClose:e,clientIds:t}){let{replaceBlocks:o,multiSelect:r,updateBlockAttributes:n}=(0,PN.useDispatch)(P),{possibleBlockTransformations:i,patterns:s,blocks:a,isUsingBindings:l,canRemove:d,hasBlockStyles:u}=(0,PN.useSelect)(S=>{let{getBlockAttributes:R,getBlocksByClientId:E,getBlockRootClientId:I,getBlockTransformItems:B,__experimentalGetPatternTransformItems:O,canRemoveBlocks:M,getBlockName:N}=S(P),{getBlockStyles:j}=S($h.store),V=I(t[0]),A=E(t),L=t.length===1,z=L&&N(t[0]),F=L&&!!j(z)?.length;return{blocks:A,possibleBlockTransformations:B(A,V),patterns:O(A,V),isUsingBindings:t.every(G=>!!R(G)?.metadata?.bindings),canRemove:M(t),hasBlockStyles:F}},[t]),f=vIe({clientIds:t,blocks:a});function p(S){S.length>1&&r(S[0].clientId,S[S.length-1].clientId)}function m(S,R){let E=(0,$h.switchToBlockType)(a,S,R);o(t,E),p(E)}function g(S){n(a[0].clientId,{...f.find(({name:R})=>R===S).attributes})}function h(S){o(t,S),p(S)}let b=a.length===1,v=b&&((0,$h.isTemplatePart)(a[0])||(0,$h.isReusableBlock)(a[0])),_=!!i?.length&&d&&!v,y=!!f?.length,w=!!s?.length&&d,x=_||y;if(!(u||x||w))return(0,qa.jsx)("p",{className:"block-editor-block-switcher__no-transforms",children:(0,qu.__)("No transforms.")});let C=b?(0,qu._x)("This block is connected.","block toolbar button label and description"):(0,qu._x)("These blocks are connected.","block toolbar button label and description");return(0,qa.jsxs)("div",{className:"block-editor-block-switcher__container",children:[w&&(0,qa.jsx)(NIe,{blocks:a,patterns:s,onSelect:S=>{h(S),e()}}),x&&(0,qa.jsx)(kIe,{className:"block-editor-block-switcher__transforms__menugroup",possibleBlockTransformations:i,possibleBlockVariationTransformations:f,blocks:a,onSelect:(S,R)=>{m(S,R),e()},onSelectVariation:S=>{g(S),e()}}),u&&(0,qa.jsx)(RN,{hoveredBlock:a[0],onSwitch:e}),l&&(0,qa.jsx)(Gh.MenuGroup,{children:(0,qa.jsx)(Ct,{className:"block-editor-block-switcher__binding-indicator",children:C})})]})}var Jut=({children:e,clientIds:t,label:o,text:r})=>{let i=t.length===1?(0,qu.__)("Change block type or style"):(0,qu.sprintf)((0,qu._n)("Change type of %d block","Change type of %d blocks",t.length),t.length);return(0,qa.jsx)(Gh.ToolbarGroup,{children:(0,qa.jsx)(Gh.ToolbarItem,{children:s=>(0,qa.jsx)(Gh.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,qa.jsx)(Qut,{onClose:a,clientIds:t})})})})},LIe=Jut;var DIe=c(X(),1),Fk=c(Q(),1);var Vk=c(T(),1);function VIe({clientIds:e,children:t,label:o,text:r}){return(0,Vk.jsx)(Fk.ToolbarGroup,{children:(0,Vk.jsx)(Fk.ToolbarItem,{children:n=>(0,Vk.jsx)(Fk.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,DIe.__)("Change block style"),...n},menuProps:{orientation:"both"},children:({onClose:i})=>(0,Vk.jsx)("div",{className:"block-editor-block-switcher__container",children:(0,Vk.jsx)(RN,{hoveredBlock:{clientId:e[0]},onSwitch:i})})})})})}var BN=c(Q(),1);var k2=c(X(),1),ON=c(D(),1),FIe=c(oe(),1);var qp=c(T(),1);function eft({clientIds:e,blockTitle:t}){let o=(0,FIe.useSelect)(i=>{let{getBlockAttributes:s}=i(P);return s(e?.[0])?.metadata?.name},[e]),r=e.length===1,n;return r&&o?n=(0,k2.sprintf)((0,k2.__)('This %1$s is editable using the "%2$s" override.'),t.toLowerCase(),o):n=(0,k2.__)("These blocks are editable using overrides."),(0,qp.jsx)(Ct,{children:n})}function zIe({icon:e,clientIds:t,blockTitle:o,label:r}){let[n,i]=(0,ON.useState)(!1),s=(0,ON.useRef)();return(0,qp.jsxs)(qp.Fragment,{children:[(0,qp.jsx)(BN.ToolbarButton,{ref:s,className:"block-editor-block-toolbar__pattern-overrides-indicator",icon:e,label:r,onClick:()=>i(!n),"aria-expanded":n}),n&&(0,qp.jsx)(BN.Popover,{anchor:s.current,onClose:()=>i(!1),placement:"bottom-start",offset:16,className:"block-editor-block-toolbar__pattern-overrides-popover",children:(0,qp.jsx)(eft,{clientIds:t,blockTitle:o})})]})}var zk=c(T(),1);function tft({select:e,clientIds:t}){let{getBlockName:o,getBlockAttributes:r,getBlockParentsByBlockName:n,canRemoveBlocks:i,getTemplateLock:s,getBlockEditingMode:a,canEditBlock:l,isSectionBlock:d}=Z(e(P)),{getBlockStyles:u}=e(S2.store),f=t.some(E=>s(E)==="contentOnly"),p=t.length===1,m=p&&o(t[0]),g=p&&!!u(m)?.length,h=t.some(E=>!!r(E)?.metadata?.patternName&&d(E)),b=t.every(E=>MS(r(E)?.metadata?.bindings)),v=t.every(E=>n(E,"core/block",!0).length>0),_=i(t),y=t.every(E=>l(E)),w=a(t[0]),x=w==="default",k=w==="contentOnly",S=!h&&x&&(g||_)&&!f&&y,R=b&&v;return S?"switcher":k&&g&&!b&&y?"styles-only":R?"pattern-overrides":"default"}function oft({select:e,clientIds:t}){let{getBlockName:o,getBlockAttributes:r,getBlock:n,isSectionBlock:i}=Z(e(P)),s=t.length===1,a=t[0],l=r(a);if(s&&l?.metadata?.patternName&&i(a))return hl;let d=o(a),u=(0,S2.getBlockType)(d);if(s){let{getActiveBlockVariation:m}=e(S2.store);return m(d,l,void 0,n?.(a)?.innerContent)?.icon||u?.icon}let f=t.map(m=>o(m));return new Set(f).size===1?u?.icon:Qb}function GIe({clientIds:e,isSynced:t}){let{icon:o,showIconLabels:r,variant:n}=(0,UIe.useSelect)(f=>({icon:oft({select:f,clientIds:e}),showIconLabels:f(WIe.store).get("core","showIconLabels"),variant:tft({select:f,clientIds:e})}),[e]),i=xs({clientId:e?.[0],maximumLength:35}),s=e.length===1,a=s&&t&&!r,l=s?i:(0,HIe.__)("Multiple blocks selected"),d=a&&i?i:void 0,u=(0,zk.jsx)($t,{className:"block-editor-block-toolbar__block-icon",icon:o});return n==="switcher"?(0,zk.jsx)(LIe,{clientIds:e,label:l,text:d,children:u}):n==="styles-only"?(0,zk.jsx)(VIe,{clientIds:e,label:l,text:d,children:u}):n==="pattern-overrides"?(0,zk.jsx)(zIe,{icon:u,clientIds:e,blockTitle:i,label:l}):(0,zk.jsx)(jIe.ToolbarButton,{disabled:!0,className:"block-editor-block-toolbar__block-icon-button",title:l,icon:u,text:d})}var Zt=c(T(),1);function wJ({hideDragHandle:e,focusOnMount:t,__experimentalInitialIndex:o,__experimentalOnIndexChange:r,variant:n="unstyled"}){let{blockClientId:i,blockClientIds:s,isDefaultEditingMode:a,blockType:l,toolbarKey:d,shouldShowVisualToolbar:u,showParentSelector:f,isUsingBindings:p,isSectionContainer:m,hasContentOnlyLocking:g,showShuffleButton:h,showSlots:b,showGroupButtons:v,showLockButtons:_,showBlockVisibilityButton:y,showSwitchSectionStyleButton:w,areSelectedBlocksHiddenOnViewport:x,showStyleStateSlot:k,canEdit:C}=(0,YIe.useSelect)(V=>{let{canEditBlock:A}=V(P),{getBlockName:L,getBlockMode:z,getSelectedBlockClientIds:F,isBlockValid:G,getBlockEditingMode:$,getBlockAttributes:K,getSettings:q,getTemplateLock:H,getParentSectionBlock:J,getEnabledBlockParents:W,isZoomOut:Y,isSectionBlock:ee,isBlockHiddenAtViewport:re,getSelectedBlockStyleState:ne,isResponsiveEditing:ie}=Z(V(P)),be=F(),pe=be[0],Ee=J(pe),ye=W(pe,!0)[0],Oe=L(ye),we=(0,Xp.getBlockType)(Oe),_e=$(pe),xe=_e==="default",he=L(pe),Ze=be.every(qe=>G(qe)),fe=be.every(qe=>z(qe)==="visual"),Ce=be.every(qe=>!!K(qe)?.metadata?.bindings),de=be.some(qe=>H(qe)==="contentOnly"),ae=Y(),Re=ee(pe),$e=A(pe),ct=$e&&(ae||Re),Pt=q()?.[gl]?.toLowerCase()||"desktop",at=be.length>0&&be.every(qe=>re(qe,Pt)),Be=ie()&&vi(ne(pe));return{blockClientId:pe,blockClientIds:be,isDefaultEditingMode:xe,blockType:pe&&(0,Xp.getBlockType)(he),shouldShowVisualToolbar:Ze&&fe,toolbarKey:`${pe}${ye}`,showParentSelector:!ae&&we&&(_e!=="contentOnly"||!!Ee)&&$(ye)!=="disabled"&&(0,Xp.hasBlockSupport)(we,"__experimentalParentSelector",!0)&&be.length===1,isUsingBindings:Ce,isSectionContainer:Re,hasContentOnlyLocking:de,showShuffleButton:ae,showSlots:!ae&&!Be,showStyleStateSlot:!ae&&Be,showGroupButtons:!ae,showLockButtons:!ae,showBlockVisibilityButton:!ae,showSwitchSectionStyleButton:ct,areSelectedBlocksHiddenOnViewport:at,canEdit:$e}},[]),S=(0,yJ.useRef)(null),R=(0,yJ.useRef)(),E=Sk({ref:R}),I=!(0,KIe.useViewportMatch)("medium","<");if(!mN())return null;let O=s.length>1,M=(0,Xp.isReusableBlock)(l)||(0,Xp.isTemplatePart)(l),N=U("block-editor-block-contextual-toolbar",{"has-parent":f}),j=U("block-editor-block-toolbar",{"is-synced":M,"is-connected":p});return(0,Zt.jsx)(Mk,{focusEditorOnEscape:!0,className:N,"aria-label":(0,$Ie.__)("Block tools"),variant:n==="toolbar"?void 0:n,focusOnMount:t,__experimentalInitialIndex:o,__experimentalOnIndexChange:r,children:(0,Zt.jsxs)("div",{ref:S,className:j,children:[f&&!O&&I&&(0,Zt.jsx)(L5e,{}),(u||O)&&(0,Zt.jsx)("div",{ref:R,...E,children:(0,Zt.jsxs)(qIe.ToolbarGroup,{className:"block-editor-block-toolbar__block-controls",children:[(0,Zt.jsx)(GIe,{clientIds:s,isSynced:M}),a&&y&&(0,Zt.jsx)(lZ,{clientIds:s}),!O&&a&&_&&(0,Zt.jsx)(iJ,{clientId:i}),(0,Zt.jsx)(FA,{clientIds:s,hideDragHandle:e})]})}),!x&&!g&&u&&O&&v&&(0,Zt.jsx)(eJ,{}),!O&&C&&(0,Zt.jsx)(pIe,{clientId:s[0]}),!x&&h&&(0,Zt.jsx)(nIe,{clientId:s[0]}),!x&&w&&(0,Zt.jsx)(uIe,{clientId:s[0]}),!x&&u&&(0,Zt.jsxs)(Zt.Fragment,{children:[!m&&(0,Zt.jsxs)(Zt.Fragment,{children:[b&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Jo.Slot,{group:"parent",className:"block-editor-block-toolbar__slot"}),(0,Zt.jsx)(Jo.Slot,{group:"block",className:"block-editor-block-toolbar__slot"}),(0,Zt.jsx)(Jo.Slot,{className:"block-editor-block-toolbar__slot"}),(0,Zt.jsx)(Jo.Slot,{group:"inline",className:"block-editor-block-toolbar__slot"})]}),k&&(0,Zt.jsx)(Jo.Slot,{group:"style-state",className:"block-editor-block-toolbar__slot"})]}),b&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Jo.Slot,{group:"other",className:"block-editor-block-toolbar__slot"}),(0,Zt.jsx)(UA.Slot,{})]})]}),(0,Zt.jsx)(Y2e,{clientIds:s}),(0,Zt.jsx)(cN,{clientIds:s})]})},d)}function XIe({hideDragHandle:e,variant:t}){return(0,Zt.jsx)(wJ,{hideDragHandle:e,variant:t,focusOnMount:void 0,__experimentalInitialIndex:void 0,__experimentalOnIndexChange:void 0})}var xJ=c(T(),1);function JIe({clientId:e,isTyping:t,__unstableContentRef:o}){let{capturingClientId:r,isInsertionPointVisible:n,lastClientId:i}=PA(e),s=(0,jk.useRef)();(0,jk.useEffect)(()=>{s.current=void 0},[e]);let{stopTyping:a}=(0,ZIe.useDispatch)(P),l=(0,jk.useRef)(!1);(0,QIe.useShortcut)("core/block-editor/focus-toolbar",()=>{l.current=!0,a(!0)}),(0,jk.useEffect)(()=>{l.current=!1});let d=r||e,u=IA({contentElement:o?.current,clientId:d});return!t&&(0,xJ.jsx)(Rv,{clientId:d,bottomClientId:i,className:U("block-editor-block-list__block-popover",{"is-insertion-point-visible":n}),resize:!1,...u,__unstableContentRef:o,children:(0,xJ.jsx)(wJ,{focusOnMount:l.current,__experimentalInitialIndex:s.current,__experimentalOnIndexChange:f=>{s.current=f},variant:"toolbar"})})}var MN=c(oe(),1),AN=c(D(),1);var e3e=c(Q(),1);var t3e=c(X(),1),o3e=c(T(),1);function rft({onClick:e}){return(0,o3e.jsx)(e3e.Button,{variant:"primary",icon:Ys,size:"compact",className:U("block-editor-button-pattern-inserter__button","block-editor-block-tools__zoom-out-mode-inserter-button"),onClick:e,label:(0,t3e._x)("Add pattern","Generic label for pattern inserter button")})}var r3e=rft;var kJ=c(T(),1);function nft(){let[e,t]=(0,AN.useState)(!1),{hasSelection:o,blockOrder:r,setInserterIsOpened:n,sectionRootClientId:i,selectedBlockClientId:s,blockInsertionPoint:a,insertionPointVisible:l}=(0,MN.useSelect)(g=>{let{getSettings:h,getBlockOrder:b,getSelectionStart:v,getSelectedBlockClientId:_,getSectionRootClientId:y,getBlockInsertionPoint:w,isBlockInsertionPointVisible:x}=Z(g(P)),k=y();return{hasSelection:!!v().clientId,blockOrder:b(k),sectionRootClientId:k,setInserterIsOpened:h().__experimentalSetIsInserterOpened,selectedBlockClientId:_(),blockInsertionPoint:w(),insertionPointVisible:x()}},[]),{showInsertionPoint:d}=Z((0,MN.useDispatch)(P));if((0,AN.useEffect)(()=>{let g=setTimeout(()=>{t(!0)},500);return()=>{clearTimeout(g)}},[]),!e||!o)return null;let u=s,p=r.findIndex(g=>s===g)+1,m=r[p];return l&&a?.index===p?null:(0,kJ.jsx)(JM,{previousClientId:u,nextClientId:m,children:(0,kJ.jsx)(r3e,{onClick:()=>{n({rootClientId:i,insertionIndex:p,tab:"patterns",category:"all"}),d(i,p,{operation:"insert"})}})})}var n3e=nft;var i3e=c(oe(),1),s3e=c(ce(),1);function a3e(){return(0,i3e.useSelect)(e=>{let{getSelectedBlockClientId:t,getFirstMultiSelectedBlockClientId:o,getBlock:r,getBlockMode:n,getSettings:i,isTyping:s,isBlockInterfaceHidden:a}=Z(e(P)),l=t()||o(),d=r(l),u=!!l&&!!d,f=u&&(0,s3e.isUnmodifiedDefaultBlock)(d,"content")&&n(l)!=="html",p=l&&!s()&&f,m=!a()&&!i().hasFixedToolbar&&!p&&u&&!f;return{showEmptyBlockSideInserter:p,showBlockToolbarPopover:m}},[])}var rc=c(T(),1);function ift(e){let{getSelectedBlockClientId:t,getFirstMultiSelectedBlockClientId:o,getSettings:r,isTyping:n,isDragging:i,isZoomOut:s,getViewportModalClientIds:a}=Z(e(P));return{clientId:t()||o(),hasFixedToolbar:r().hasFixedToolbar,isTyping:n(),isZoomOutMode:s(),isDragging:i(),viewportModalClientIds:a(),blockVisibilitySetting:e(P).getSettings().__experimentalFeatures?.blockVisibility?.allowEditing}}function C2({children:e,__unstableContentRef:t,...o}){let{clientId:r,hasFixedToolbar:n,isTyping:i,isZoomOutMode:s,isDragging:a,viewportModalClientIds:l,blockVisibilitySetting:d}=(0,Hk.useSelect)(ift,[]),u=(0,l3e.__unstableUseShortcutEventMatch)(),{getBlocksByClientId:f,getSelectedBlockClientIds:p,getBlockRootClientId:m,getBlockEditingMode:g,getBlockName:h,isGroupable:b,getEditedContentOnlySection:v,canEditBlock:_}=Z((0,Hk.useSelect)(P)),{getGroupingBlockName:y}=(0,Hk.useSelect)(LN.store),{showEmptyBlockSideInserter:w,showBlockToolbarPopover:x}=a3e(),k=Ck(),[C,S]=(0,NN.useState)(null),{canRename:R}=b2(h(p()[0])),{duplicateBlocks:E,removeBlocks:I,replaceBlocks:B,insertAfterBlock:O,insertBeforeBlock:M,selectBlock:N,moveBlocksUp:j,moveBlocksDown:V,expandBlock:A,stopEditingContentOnlySection:L,showViewportModal:z,hideViewportModal:F}=Z((0,Hk.useDispatch)(P));function G(q){if(!q.defaultPrevented){if(u("core/block-editor/move-up",q)||u("core/block-editor/move-down",q)){let H=p();if(H.length){q.preventDefault();let J=m(H[0]);(u("core/block-editor/move-up",q)?"up":"down")==="up"?j(H,J):V(H,J);let Y=Array.isArray(H)?H.length:1,ee=(0,Uk.sprintf)((0,Uk._n)("%d block moved.","%d blocks moved.",H.length),Y);(0,EJ.speak)(ee)}}else if(u("core/block-editor/duplicate",q)){let H=p();H.length&&(q.preventDefault(),E(H))}else if(u("core/block-editor/remove",q)){let H=p();H.length&&(q.preventDefault(),I(H))}else if(u("core/block-editor/paste-styles",q)){let H=p();if(H.length){q.preventDefault();let J=f(H);k(J)}}else if(u("core/block-editor/insert-after",q)){let H=p();H.length&&(q.preventDefault(),O(H[H.length-1]))}else if(u("core/block-editor/insert-before",q)){let H=p();H.length&&(q.preventDefault(),M(H[0]))}else if(u("core/block-editor/unselect",q)){if(q.target.closest("[role=toolbar]"))return;let H=p();H.length>1&&(q.preventDefault(),N(H[0]))}else if(u("core/block-editor/collapse-list-view",q)){if((0,SJ.isTextField)(q.target)||(0,SJ.isTextField)(q.target?.contentWindow?.document?.activeElement))return;q.preventDefault(),A(r)}else if(u("core/block-editor/group",q)){let H=p();if(H.length>1&&b(H)){q.preventDefault();let J=f(H),W=y(),Y=ec(J,W);B(H,Y),(0,EJ.speak)((0,Uk.__)("Selected blocks are grouped."))}}else if(u("core/block-editor/rename",q)){let H=p();if(H.length===1){let J=g(H[0])==="contentOnly";R&&!J&&_(H[0])&&(q.preventDefault(),S(H[0]))}}else if(u("core/block-editor/toggle-block-visibility",q)){if(d===!1)return;let H=p();if(H.length){if(q.preventDefault(),!f(H).every(Y=>(0,LN.hasBlockSupport)(Y.name,"visibility",!0))||H.some(Y=>g(Y)!=="default"||!_(Y)))return;z(H)}}u("core/block-editor/stop-editing-as-blocks",q)&&v()&&L()}}let $=Tv(t),K=Tv(t);return(0,rc.jsxs)("div",{...o,onKeyDown:G,className:U(o.className,{"block-editor-block-tools--is-dragging":a}),children:[(0,rc.jsxs)(bk.Provider,{value:(0,NN.useRef)(!1),children:[!i&&!s&&(0,rc.jsx)(iRe,{__unstableContentRef:t}),w&&(0,rc.jsx)(y5e,{__unstableContentRef:t,clientId:r}),x&&(0,rc.jsx)(JIe,{__unstableContentRef:t,clientId:r,isTyping:i}),!s&&!n&&(0,rc.jsx)(CJ.Popover.Slot,{name:"block-toolbar",ref:$}),e,(0,rc.jsx)(CJ.Popover.Slot,{name:"__unstable-block-tools-after",ref:K}),s&&!a&&(0,rc.jsx)(n3e,{__unstableContentRef:t})]}),C&&(0,rc.jsx)(Wv,{clientId:C,onClose:()=>S(null)}),l&&(0,rc.jsx)(nZ,{clientIds:l,onClose:F})]})}var E2=c(ue(),1),Wk=c(oe(),1),TJ=c(Ut(),1),Ji=c(Mo(),1);var c3e=c(T(),1),sft=new Set([Ji.UP,Ji.RIGHT,Ji.DOWN,Ji.LEFT,Ji.ENTER,Ji.BACKSPACE]);function aft(e){let{keyCode:t,shiftKey:o}=e;return!o&&sft.has(t)}function T2(){let e=(0,Wk.useSelect)(o=>o(P).isTyping(),[]),{stopTyping:t}=(0,Wk.useDispatch)(P);return(0,E2.useRefEffect)(o=>{if(!e)return;let{ownerDocument:r}=o,n,i;function s(a){let{clientX:l,clientY:d}=a;n&&i&&(n!==l||i!==d)&&t(),n=l,i=d}return r.addEventListener("mousemove",s),()=>{r.removeEventListener("mousemove",s)}},[e,t])}function R2(){let e=(0,Wk.useSelect)(i=>i(P).isTyping(),[]),{startTyping:t,stopTyping:o}=(0,Wk.useDispatch)(P),r=T2(),n=(0,E2.useRefEffect)(i=>{if(e){let u=function(h){let{target:b}=h;m=g.setTimeout(()=>{(0,TJ.isTextField)(b)||o()})},f=function(h){let{keyCode:b}=h;(b===Ji.ESCAPE||b===Ji.TAB)&&o()},p=function(){g.getSelection().isCollapsed||o()};var s=u,a=f,l=p;let m,{defaultView:g}=i.ownerDocument;return i.addEventListener("focus",u),i.addEventListener("keydown",f),i.ownerDocument.addEventListener("selectionchange",p),()=>{g.clearTimeout(m),i.removeEventListener("focus",u),i.removeEventListener("keydown",f),i.ownerDocument.removeEventListener("selectionchange",p)}}function d(u){let{type:f,target:p}=u;!(0,TJ.isTextField)(p)||!i.contains(p)||f==="keydown"&&!aft(u)||t()}return i.addEventListener("keypress",d),i.addEventListener("keydown",d),()=>{i.removeEventListener("keypress",d),i.removeEventListener("keydown",d)}},[e,t,o]);return(0,E2.useMergeRefs)([r,n])}function lft({children:e}){return(0,c3e.jsx)("div",{ref:R2(),children:e})}var d3e=lft;var nc=c(X(),1),Qp=c(ce(),1),Zp=c(oe(),1),RJ=c(f3e(),1);var cft=()=>function(){let{replaceBlocks:t,multiSelect:o}=(0,Zp.useDispatch)(P),{blocks:r,clientIds:n,canRemove:i,possibleBlockTransformations:s,invalidSelection:a}=(0,Zp.useSelect)(m=>{let{getBlockRootClientId:g,getBlockTransformItems:h,getSelectedBlockClientIds:b,getBlocksByClientId:v,canRemoveBlocks:_}=m(P),y=b(),w=v(y);if(w.filter(k=>!k).length>0)return{invalidSelection:!0};let x=g(y[0]);return{blocks:w,clientIds:y,possibleBlockTransformations:h(w,x),canRemove:_(y),invalidSelection:!1}},[]);if(a)return{isLoading:!1,commands:[]};let l=r.length===1&&(0,Qp.isTemplatePart)(r[0]);function d(m){m.length>1&&o(m[0].clientId,m[m.length-1].clientId)}function u(m,g){let h=(0,Qp.switchToBlockType)(r,m,g);t(n,h),d(h)}let f=!!s.length&&i&&!l;return!n||n.length<1||!f?{isLoading:!1,commands:[]}:{isLoading:!1,commands:s.map(m=>{let{id:g,name:h,title:b,icon:v,variationName:_}=m,y=!v?.src||v?.src==="block-default"?{src:WS}:v;return{name:"core/block-editor/transform-to-"+(g||h).replace(/\//g,"-"),label:(0,nc.sprintf)((0,nc.__)("Transform to %s"),b),icon:y?.src,category:"command",callback:({close:w})=>{u(h,_),w()}}})}},dft=()=>function(){let{clientIds:t,isUngroupable:o,isGroupable:r,blockVisibilitySetting:n}=(0,Zp.useSelect)(M=>{let{getSelectedBlockClientIds:N,getSettings:j,isUngroupable:V,isGroupable:A}=M(P);return{clientIds:N(),isUngroupable:V(),isGroupable:A(),blockVisibilitySetting:j().__experimentalFeatures?.blockVisibility?.allowEditing}},[]),{canInsertBlockType:i,getBlockRootClientId:s,getBlocksByClientId:a,canRemoveBlocks:l,isBlockHiddenAnywhere:d}=Z((0,Zp.useSelect)(P)),{getBlockEditingMode:u}=(0,Zp.useSelect)(P),{getDefaultBlockName:f,getGroupingBlockName:p}=(0,Zp.useSelect)(Qp.store),m=a(t),g=(0,Zp.useDispatch)(P),{removeBlocks:h,replaceBlocks:b,duplicateBlocks:v,insertAfterBlock:_,insertBeforeBlock:y}=g,w=()=>{if(!m.length)return;let M=p(),N=ec(m,M);N&&b(t,N)},x=()=>{if(!m.length)return;let M=m[0].innerBlocks;M.length&&b(t,M)};if(!t||t.length<1)return{isLoading:!1,commands:[]};let{showViewportModal:k}=Z(g),C=s(t[0]),S=i(f(),C),R=m.every(M=>!!M&&(0,Qp.hasBlockSupport)(M.name,"multiple",!0)&&i(M.name,C)),E=l(t),I=[];R&&I.push({name:"duplicate",label:(0,nc.__)("Duplicate"),callback:()=>v(t,!0),icon:Qb}),S&&I.push({name:"add-before",label:(0,nc.__)("Add before"),callback:()=>{let M=Array.isArray(t)?t[0]:M;y(M)},icon:Ys},{name:"add-after",label:(0,nc.__)("Add after"),callback:()=>{let M=Array.isArray(t)?t[t.length-1]:M;_(M)},icon:Ys}),r&&I.push({name:"Group",label:(0,nc.__)("Group"),callback:w,icon:vC}),o&&I.push({name:"ungroup",label:(0,nc.__)("Ungroup"),callback:x,icon:oU}),E&&I.push({name:"remove",label:(0,nc.__)("Delete"),callback:()=>h(t,!0),icon:tU});let B=m.every(M=>!!M&&(0,Qp.hasBlockSupport)(M.name,"visibility",!0)),O=t.every(M=>u(M)==="default");if(B&&O&&n!==!1){let M=t.some(N=>d(N));I.push({name:"toggle-visibility",label:M?(0,nc.__)("Show"):(0,nc.__)("Hide"),callback:()=>k(t),icon:M?r_:Uc})}return{isLoading:!1,commands:I.map(M=>({...M,name:"core/block-editor/action-"+M.name,category:"command",callback:({close:N})=>{M.callback(),N()}}))}},DN=()=>{(0,RJ.useCommandLoader)({name:"core/block-editor/blockTransforms",hook:cft()}),(0,RJ.useCommandLoader)({name:"core/block-editor/blockQuickActions",hook:dft(),context:"block-selection-edit"})};var Ms=c(T(),1),VN=(0,h3e.createSlotFill)(Symbol("BlockCanvasCover"));function p3e({children:e}){return(0,Ms.jsx)("div",{className:"block-canvas-cover",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none"},children:e})}var uft={ignoredSelectors:[/\.editor-styles-wrapper/gi]};function IJ({shouldIframe:e=!0,height:t="300px",children:o=(0,Ms.jsx)(Yx,{}),styles:r,contentRef:n,iframeProps:i}){DN();let s=(0,FN.useViewportMatch)("medium","<"),a=T2(),l=Iv(),d=(0,m3e.useRef)(),u=(0,FN.useMergeRefs)([n,l,d,R2()]),f=(0,g3e.useSelect)(m=>Z(m(P)).getZoomLevel(),[]),p=f!==100&&!s?{scale:f,frameSize:"40px"}:{};return e?(0,Ms.jsx)(C2,{__unstableContentRef:d,style:{height:t,display:"flex"},children:(0,Ms.jsxs)(Fx,{...i,...p,ref:a,contentRef:u,style:{...i?.style},name:"editor-canvas",children:[(0,Ms.jsx)(VN.Slot,{fillProps:{containerRef:d},children:m=>m.map((g,h)=>(0,Ms.jsx)(p3e,{children:g},h))}),(0,Ms.jsx)(Rp,{styles:r}),o]})}):(0,Ms.jsxs)(C2,{__unstableContentRef:d,style:{height:t,display:"flex"},children:[(0,Ms.jsx)(VN.Slot,{fillProps:{containerRef:d},children:m=>m.map((g,h)=>(0,Ms.jsx)(p3e,{children:g},h))}),(0,Ms.jsx)(Rp,{styles:r,scope:":where(.editor-styles-wrapper)",transformOptions:uft}),(0,Ms.jsx)(K8,{ref:u,className:"editor-styles-wrapper",tabIndex:-1,style:{height:"100%",width:"100%",overflow:"auto"},children:o})]})}function fft({children:e,height:t,styles:o}){return(0,Ms.jsx)(IJ,{height:t,styles:o,children:e})}var b3e=fft;var Xu=c(Q(),1),_3e=c(X(),1),v3e=c(Mo(),1),y3e=c(Gt(),1),ic=c(T(),1),pft=()=>(0,ic.jsx)(Xu.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:(0,ic.jsx)(Xu.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"})}),mft=({style:e,className:t})=>(0,ic.jsx)("div",{className:"block-library-colors-selector__icon-container",children:(0,ic.jsx)("div",{className:`${t} block-library-colors-selector__state-selection`,style:e,children:(0,ic.jsx)(pft,{})})}),gft=({TextColor:e,BackgroundColor:t})=>function({onToggle:r,isOpen:n}){let i=s=>{!n&&s.keyCode===v3e.DOWN&&(s.preventDefault(),r())};return(0,ic.jsx)(Xu.ToolbarGroup,{children:(0,ic.jsx)(Xu.ToolbarButton,{className:"components-toolbar__control block-library-colors-selector__toggle",label:(0,_3e.__)("Open Colors Selector"),onClick:r,onKeyDown:i,icon:(0,ic.jsx)(t,{children:(0,ic.jsx)(e,{children:(0,ic.jsx)(mft,{})})})})})},hft=({children:e,...t})=>((0,y3e.default)("wp.blockEditor.BlockColorsStyleSelector",{alternative:"block supports API",since:"6.1",version:"6.3"}),(0,ic.jsx)(Xu.Dropdown,{popoverProps:{placement:"bottom-start"},className:"block-library-colors-selector",contentClassName:"block-library-colors-selector__popover",renderToggle:gft(t),renderContent:()=>e})),w3e=hft;var B4e=c(Gt(),1),oL=c(Q(),1),LJ=c(X(),1),O4e=c(oe(),1),M4e=c(D(),1);var Kh=c(ue(),1),T4e=c(_k(),1),R4e=c(Q(),1);var O2=c(oe(),1),I4e=c(Gt(),1),Kn=c(D(),1),NJ=c(X(),1);var XN=c(Q(),1),r4e=c(D(),1),ZN=c(oe(),1);var S3e=c(ue(),1),C3e=c(zo(),1),E3e=c(oe(),1),GN=c(D(),1),$k=c(X(),1);var Yh=c(D(),1),zN=(0,Yh.createContext)({});zN.displayName="ListViewContext";var Gk=()=>(0,Yh.useContext)(zN),jN=(0,Yh.createContext)({});jN.displayName="ListViewTreeStateContext";var x3e=()=>(0,Yh.useContext)(jN),HN=(0,Yh.createContext)(null);HN.displayName="ListViewInsertedBlockContext";var UN=()=>(0,Yh.useContext)(HN);var k3e=c(te(),1);function WN({children:e,...t}){return(0,k3e.createElement)("div",{hidden:!0,...t,key:e},e)}var I2=c(T(),1),PJ=(0,GN.forwardRef)(({nestingLevel:e,blockCount:t,clientId:o,...r},n)=>{let{setInsertedBlockClientId:i}=Gk(),s=UN(),a=(0,S3e.useInstanceId)(PJ),{directInsert:l,hideInserter:d}=(0,E3e.useSelect)(g=>{let{getBlockListSettings:h,getTemplateLock:b,isZoomOut:v}=Z(g(P)),y=h(o)?.directInsert||!1,w=!!b(o)||v();return{directInsert:y,hideInserter:w}},[o]),u=xs({clientId:o,context:"list-view"}),f=xs({clientId:s,context:"list-view"});if((0,GN.useEffect)(()=>{f?.length&&(0,C3e.speak)((0,$k.sprintf)((0,$k.__)("%s block inserted"),f),"assertive")},[f]),d)return null;let p=`list-view-appender__${a}`,m=(0,$k.sprintf)((0,$k.__)("Append to %1$s block at position %2$d, Level %3$d"),u,t+1,e);return(0,I2.jsxs)("div",{className:"list-view-appender",children:[(0,I2.jsx)(ua,{ref:n,rootClientId:o,position:"bottom right",isAppender:!0,selectBlockOnInsert:!1,shouldDirectInsert:l,__experimentalIsQuick:!0,...r,toggleProps:{"aria-describedby":p},onSelectOrClose:g=>{g?.clientId&&i(g.clientId)}}),(0,I2.jsx)(WN,{id:p,children:m})]})});var Yv=c(ce(),1),Kv=c(Q(),1),KN=c(ue(),1);var nn=c(D(),1),Kk=c(oe(),1),MJ=c(X(),1),qN=c(Mo(),1),Q3e=c(_k(),1),J3e=c(Wl(),1),e4e=c(zo(),1);var T3e=c(Q(),1),R3e=c(ue(),1),I3e=c(D(),1);var P3e=c(T(),1),bft=Axe(T3e.__experimentalTreeGridRow),_ft=(0,I3e.forwardRef)(({isDragged:e,isSelected:t,position:o,level:r,rowCount:n,children:i,className:s,path:a,...l},d)=>{let u=l8({clientId:l["data-block"],enableAnimation:!0,triggerAnimationOnChange:a}),f=(0,R3e.useMergeRefs)([d,u]);return(0,P3e.jsx)(bft,{ref:f,className:U("block-editor-list-view-leaf",s),level:r,positionInSet:o,setSize:n,isExpanded:void 0,...l,children:i})}),B3e=_ft;var O3e=c(Ut(),1),M3e=c(D(),1);function A3e({isSelected:e,selectedClientIds:t,rowItemRef:o}){let r=t.length===1;(0,M3e.useLayoutEffect)(()=>{if(!e||!r||!o.current)return;let n=(0,O3e.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 W3e=c(D(),1);var F3e=c(Q(),1),z3e=c(D(),1),j3e=c(oe(),1),H3e=c(ce(),1);var YN=c(Mo(),1);var N3e=c(X(),1),BJ=c(T(),1);function $N({onClick:e}){return(0,BJ.jsx)("span",{className:"block-editor-list-view__expander",onClick:e?t=>e(t,{forceToggle:!0}):void 0,"aria-hidden":"true","data-testid":"list-view-expander",children:(0,BJ.jsx)(St,{icon:(0,N3e.isRTL)()?$S:nu})})}var L3e=c(D(),1),D3e=c(oe(),1);var vft=3,OJ={"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?OJ[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>=vft)return t}return t}};function yft(e,t){let o=e?OJ[e.name](e):void 0;return o?Array.isArray(o)?t?[]:o:[o]:[]}function V3e({clientId:e,isExpanded:t}){let{block:o}=(0,D3e.useSelect)(n=>{let{getBlockName:i,getBlock:s}=n(P);return{block:!!OJ[i(e)]?s(e):void 0}},[e]);return(0,L3e.useMemo)(()=>yft(o,t),[o,t])}var rn=c(T(),1);function wft({className:e,clientId:t,onClick:o,onContextMenu:r,onMouseDown:n,onToggleExpanded:i,tabIndex:s,onFocus:a,onDragStart:l,onDragEnd:d,draggable:u,isExpanded:f,isSelected:p,ariaDescribedBy:m,visibilityLabel:g,isDisabled:h=!1},b){let v=xs({clientId:t,context:"list-view"}),{icon:_,anchor:y,isSticky:w,isLocked:x}=(0,j3e.useSelect)(E=>{let{getBlockName:I,getBlockAttributes:B,getBlock:O,isSectionBlock:M,isLockedBlock:N}=Z(E(P)),{getBlockType:j,getActiveBlockVariation:V}=E(H3e.store),A=B(t),L=I(t),z=hl;return(!A?.metadata?.patternName||!M(t))&&(z=V(L,A,void 0,O(t)?.innerContent)?.icon||j(L)?.icon),{icon:z,anchor:A?.anchor,isSticky:A?.style?.position?.type==="sticky",isLocked:N(t)}},[t]),k=x,C=V3e({clientId:t,isExpanded:f}),S=E=>{E.dataTransfer.clearData(),l?.(E)};function R(E){(E.keyCode===YN.ENTER||E.keyCode===YN.SPACE)&&o(E)}return(0,rn.jsxs)("a",{className:U("block-editor-list-view-block-select-button",e),onClick:o,onContextMenu:r,onKeyDown:R,onMouseDown:n,ref:b,tabIndex:s,onFocus:a,onDragStart:S,onDragEnd:d,draggable:u,href:h?void 0:`#block-${t}`,"aria-disabled":h?!0:void 0,"aria-describedby":m,"aria-expanded":f,children:[(0,rn.jsx)($N,{onClick:i}),(0,rn.jsx)($t,{icon:_,showColors:!p,context:"list-view"}),(0,rn.jsxs)(De,{align:"center",className:"block-editor-list-view-block-select-button__label-wrapper",justify:"flex-start",gap:"xs",children:[(0,rn.jsx)("span",{className:"block-editor-list-view-block-select-button__title",children:(0,rn.jsx)(F3e.__experimentalTruncate,{ellipsizeMode:"auto",children:v})}),!!y&&(0,rn.jsx)("span",{className:"block-editor-list-view-block-select-button__anchor-wrapper",children:(0,rn.jsx)("span",{className:"block-editor-list-view-block-select-button__anchor",children:y})}),w&&(0,rn.jsx)("span",{className:"block-editor-list-view-block-select-button__sticky",children:(0,rn.jsx)(St,{icon:vH})}),C.length?(0,rn.jsx)("span",{className:"block-editor-list-view-block-select-button__images","aria-hidden":!0,children:C.map((E,I)=>(0,rn.jsx)("span",{className:"block-editor-list-view-block-select-button__image",style:{backgroundImage:`url(${E.url})`,zIndex:C.length-I}},E.clientId))}):null,!!g&&(0,rn.jsxs)(uo.Root,{children:[(0,rn.jsx)(uo.Trigger,{render:(0,rn.jsx)("span",{className:"block-editor-list-view-block-select-button__block-visibility","aria-hidden":"true",children:(0,rn.jsx)(St,{icon:Uc})})}),(0,rn.jsx)(uo.Popup,{children:g})]}),k&&(0,rn.jsx)("span",{className:"block-editor-list-view-block-select-button__lock",children:(0,rn.jsx)(St,{icon:pH})})]})]})}var U3e=(0,z3e.forwardRef)(wft);var Jp=c(T(),1);function xft({clientId:e}){let{AdditionalBlockContent:t,setInsertedBlockClientId:o}=Gk(),r=UN();return!t||r!==e?null:(0,Jp.jsx)(t,{insertedBlockClientId:r,setInsertedBlockClientId:o})}var kft=(0,W3e.forwardRef)(({onClick:e,onToggleExpanded:t,clientId:o,isExpanded:r,selectedClientIds:n,...i},s)=>{let a=n.includes(o)?n:[o];return(0,Jp.jsxs)(Jp.Fragment,{children:[(0,Jp.jsx)(xft,{clientId:o}),(0,Jp.jsx)(MA,{appendToOwnerDocument:!0,clientIds:a,cloneClassname:"block-editor-list-view-draggable-chip",children:({draggable:l,onDragStart:d,onDragEnd:u})=>(0,Jp.jsx)(U3e,{ref:s,className:"block-editor-list-view-block-contents",clientId:o,onClick:e,onToggleExpanded:t,draggable:l,onDragStart:d,onDragEnd:u,isExpanded:r,...i})})]})}),G3e=kft;var $v=c(X(),1),$3e=c(Ut(),1),P2=32,Y3e=(e,t,o)=>(0,$v.sprintf)((0,$v.__)("Block %1$d of %2$d, Level %3$d."),e,t,o),K3e=(e,t)=>[e?`${(0,$v.sprintf)((0,$v.__)("Position: %s"),e)}.`:void 0,t?(0,$v.__)("This block is locked."):void 0].filter(Boolean).join(" "),q3e=(e,t)=>Array.isArray(t)&&t.length?t.indexOf(e)!==-1:t===e;function X3e(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 Yk(e,t,o){if(!t)return;let r=`[role=row][data-block="${e}"]`;return new Promise(n=>{if(t.querySelector(r))return n(t.querySelector(r));let i=null,s=new window.MutationObserver(()=>{t.querySelector(r)&&(clearTimeout(i),s.disconnect(),n(t.querySelector(r)))});s.observe(t,{childList:!0,subtree:!0}),o?.addEventListener("abort",()=>{clearTimeout(i),s.disconnect(),n(null)},{once:!0}),i=setTimeout(()=>{s.disconnect(),n(null)},3e3)}).then(n=>{o?.aborted||n&&n.isConnected&&$3e.focus.focusable.find(n)?.[0]?.focus()})}function Z3e({blockIndexes:e,blockDropTargetIndex:t,blockDropPosition:o,clientId:r,firstDraggedBlockIndex:n,isDragged:i}){let s,a,l;if(!i){a=!1;let d=e[r];l=d>n,t!=null&&n!==void 0?d!==void 0&&(d>=n&&d<t?s="up":d<n&&d>=t?s="down":s="normal",a=typeof t=="number"&&t-1===d&&o==="inside"):t===null&&n!==void 0?d!==void 0&&d>=n?s="up":s="normal":t!=null&&n===void 0?d!==void 0&&(d<t?s="normal":s="down"):t===null&&(s="normal")}return{displacement:s,isNesting:a,isAfterDraggedBlocks:l}}var Yn=c(T(),1);function t4e({clientId:e,displacement:t,isAfterDraggedBlocks:o,isDragged:r,isNesting:n,isSelected:i,isBranchSelected:s,selectBlock:a,position:l,level:d,rowCount:u,siblingBlockCount:f,showBlockMovers:p,path:m,isExpanded:g,selectedClientIds:h,isSyncedBranch:b}){let v=(0,nn.useRef)(null),_=(0,nn.useRef)(null),y=(0,nn.useRef)(null),[w,x]=(0,nn.useState)(!1),[k,C]=(0,nn.useState)(),[S,R]=(0,nn.useState)(!1),E=i&&h[0]===e,I=i&&h[h.length-1]===e,{toggleBlockHighlight:B,duplicateBlocks:O,multiSelect:M,replaceBlocks:N,removeBlocks:j,insertAfterBlock:V,insertBeforeBlock:A,showViewportModal:L,stopEditingContentOnlySection:z}=Z((0,Kk.useDispatch)(P)),F=(0,KN.useDebounce)(B,50),{canInsertBlockType:G,getSelectedBlockClientIds:$,getPreviousBlockClientId:K,getBlockRootClientId:q,getBlockOrder:H,getBlockParents:J,getBlockEditingMode:W,getBlocksByClientId:Y,canEditBlock:ee,canMoveBlock:re,canRemoveBlocks:ne,isGroupable:ie}=(0,Kk.useSelect)(P),{getGroupingBlockName:be}=(0,Kk.useSelect)(Yv.store),pe=Ck(),{blockName:Ee,blockVisibility:ye,blockEditingMode:Oe,allowRightClickOverrides:we,editedSection:_e,viewportSettings:xe,blockVisibilitySetting:he,positionLabel:Ze,isSynced:fe,isLocked:Ce}=(0,Kk.useSelect)(Ne=>{let{getBlockName:ko,getBlockAttributes:dt,getBlockEditingMode:lo,getSettings:Mr,getEditedContentOnlySection:ar,isSyncedBlock:ri,isLockedBlock:Bf}=Z(Ne(P)),fl=Mr(),Lc=dt(e);return{blockName:ko(e),blockVisibility:Lc?.metadata?.blockVisibility,blockEditingMode:lo(e),allowRightClickOverrides:fl.allowRightClickOverrides,editedSection:ar(),viewportSettings:fl.__experimentalFeatures?.viewport,blockVisibilitySetting:fl.__experimentalFeatures?.blockVisibility?.allowEditing,positionLabel:EA(Lc),isSynced:ri(e),isLocked:Bf(e)}},[e]),de=Oe==="disabled",ae=!!Ee&&(0,Yv.hasBlockSupport)(Ee,"renaming",!0),Re=(0,Yv.hasBlockSupport)(Ee,"__experimentalToolbar",!0),ct=`list-view-block-select-button__description-${(0,KN.useInstanceId)(t4e)}`,{BlockSettingsMenu:Pt,listViewInstanceId:at,updateExpansion:Be,setInsertedBlockClientId:qe,treeGridElementRef:vt,rootClientId:Vt}=Gk(),kt=(0,J3e.__unstableUseShortcutEventMatch)();function yt(){let Ne=$(),ko=Ne.includes(e),dt=ko?Ne[0]:e,lo=q(dt);return{blocksToUpdate:ko?Ne:[e],firstBlockClientId:dt,firstBlockRootClientId:lo,selectedBlockClientIds:Ne}}async function Ye(Ne){if(Ne.defaultPrevented||Ne.target.closest("[role=dialog]"))return;if(_e&&kt("core/block-editor/unselect",Ne)){Ne.stopPropagation(),Ne.preventDefault(),z();return}let ko=[qN.BACKSPACE,qN.DELETE].includes(Ne.keyCode);if(kt("core/block-editor/unselect",Ne)&&h.length>0)Ne.stopPropagation(),Ne.preventDefault(),a(Ne,void 0);else if(ko||kt("core/block-editor/remove",Ne)){let{blocksToUpdate:dt,firstBlockClientId:lo,firstBlockRootClientId:Mr,selectedBlockClientIds:ar}=yt();if(!ne(dt))return;let ri=K(lo)??Mr;j(dt,!1);let Bf=ar.length>0&&$().length===0;ri||(ri=H()[0]),Te(ri,Bf)}else if(kt("core/block-editor/paste-styles",Ne)){Ne.preventDefault();let{blocksToUpdate:dt}=yt(),lo=Y(dt);pe(lo)}else if(kt("core/block-editor/duplicate",Ne)){Ne.preventDefault();let{blocksToUpdate:dt,firstBlockRootClientId:lo}=yt();if(Y(dt).every(ar=>!!ar&&(0,Yv.hasBlockSupport)(ar.name,"multiple",!0)&&G(ar.name,lo))){let ar=await O(dt,!1);ar?.length&&Te(ar[0],!1)}}else if(kt("core/block-editor/insert-before",Ne)){Ne.preventDefault();let{blocksToUpdate:dt}=yt();await A(dt[0]);let lo=$();Te(lo[0],!1)}else if(kt("core/block-editor/insert-after",Ne)){Ne.preventDefault();let{blocksToUpdate:dt}=yt();await V(dt.at(-1));let lo=$();Te(lo[0],!1)}else if(kt("core/block-editor/select-all",Ne)){Ne.preventDefault();let{firstBlockRootClientId:dt,selectedBlockClientIds:lo}=yt(),Mr=H(dt);if(!Mr.length)return;if((0,Q3e.isShallowEqual)(lo,Mr)&&dt&&dt!==Vt){Te(dt,!0);return}M(Mr[0],Mr[Mr.length-1],null)}else if(kt("core/block-editor/collapse-list-view",Ne)){Ne.preventDefault();let{firstBlockClientId:dt}=yt(),lo=J(dt,!1);Be({type:"replace",clientIds:lo})}else if(kt("core/block-editor/group",Ne)){let{blocksToUpdate:dt}=yt();if(dt.length>1&&ie(dt)){Ne.preventDefault();let lo=Y(dt),Mr=be(),ar=ec(lo,Mr);N(dt,ar),(0,e4e.speak)((0,MJ.__)("Selected blocks are grouped."));let ri=$();Te(ri[0],!1)}}else if(kt("core/block-editor/toggle-block-visibility",Ne)){if(he===!1)return;Ne.preventDefault();let{blocksToUpdate:dt}=yt();if(!Y(dt).every(ar=>(0,Yv.hasBlockSupport)(ar.name,"visibility",!0))||dt.some(ar=>W(ar)!=="default"))return;L(dt)}else if(kt("core/block-editor/rename",Ne)){let{blocksToUpdate:dt}=yt(),lo=W(dt[0])==="contentOnly";dt.length===1&&ae&&!lo&&(Ne.preventDefault(),R(!0))}}let Se=(0,nn.useCallback)(()=>{x(!0),F(e,!0)},[e,x,F]),Ie=(0,nn.useCallback)(()=>{x(!1),F(e,!1)},[e,x,F]),me=(0,nn.useCallback)(Ne=>{let ko=Ne?.detail===0;a(Ne,e,ko?0:null),Ne.preventDefault()},[e,a]),Te=(0,nn.useCallback)((Ne,ko)=>{ko&&a(void 0,Ne,null,null),Yk(Ne,vt?.current)},[a,vt]),Me=(0,nn.useCallback)(Ne=>{Ne.preventDefault(),Ne.stopPropagation(),g!==void 0&&Be({type:g?"collapse":"expand",clientIds:[e]})},[e,Be,g]),lt=(0,nn.useCallback)(Ne=>{let{ownerDocument:ko}=y?.current||{};!ko||!ko.hasFocus()||Re&&we&&(y.current?.click(),C(new window.DOMRect(Ne.clientX,Ne.clientY,0,0)),Ne.preventDefault())},[we,y,Re]),et=(0,nn.useCallback)(Ne=>{we&&Ne.button===2&&Ne.preventDefault()},[we]),ao=(0,nn.useMemo)(()=>{let{ownerDocument:Ne}=_?.current||{};if(!(!k||!Ne))return{ownerDocument:Ne,getBoundingClientRect(){return k}}},[k]),Lo=(0,nn.useCallback)(()=>{C(void 0)},[C]);if(A3e({isSelected:i,rowItemRef:_,selectedClientIds:h}),!Ee)return null;let $r=Y3e(l,f,d),xo=K3e(Ze,Ce),_o=rZ(ye,xe),ht=f>0,Ot=Re&&!de,fn=p&&ht&&!de,Ii=U("block-editor-list-view-block__mover-cell",{"is-visible":w||i}),Cn=U("block-editor-list-view-block__menu-cell",{"is-visible":w||E}),Pi;fn?Pi=2:Ot||(Pi=3);let as=U({"is-selected":i,"is-first-selected":E,"is-last-selected":I,"is-branch-selected":s,"is-synced-branch":b,"is-dragging":r,"has-single-cell":!Re,"is-synced":fe,"is-draggable":re&&!de,"is-displacement-normal":t==="normal","is-displacement-up":t==="up","is-displacement-down":t==="down","is-after-dragged-blocks":o,"is-nesting":n,"is-disabled":de}),ls=h.includes(e)?h:[e],ul=Ne=>de?-1:i&&h.length===1?0:Ne;return(0,Yn.jsxs)(B3e,{className:as,isDragged:r,onKeyDown:Ye,onMouseEnter:de?void 0:Se,onMouseLeave:de?void 0:Ie,onFocus:de?void 0:Se,onBlur:de?void 0:Ie,level:d,position:l,rowCount:u,path:m,id:`list-view-${at}-block-${e}`,"data-block":e,"data-expanded":ee?g:void 0,ref:_,children:[(0,Yn.jsx)(Kv.__experimentalTreeGridCell,{className:"block-editor-list-view-block__contents-cell",colSpan:Pi,ref:v,"aria-selected":!!i,children:({ref:Ne,tabIndex:ko,onFocus:dt})=>(0,Yn.jsxs)("div",{className:"block-editor-list-view-block__contents-container",children:[(0,Yn.jsx)(G3e,{clientId:e,onClick:me,onContextMenu:de?void 0:lt,onMouseDown:et,onToggleExpanded:de?void 0:Me,ref:Ne,tabIndex:ul(ko),onFocus:dt,isExpanded:ee?g:void 0,isSelected:i,selectedClientIds:h,ariaDescribedBy:ct,visibilityLabel:_o,isDisabled:de}),(0,Yn.jsx)(WN,{id:ct,children:[$r,xo,_o].filter(Boolean).join(" ")})]})}),fn&&(0,Yn.jsx)(Yn.Fragment,{children:(0,Yn.jsxs)(Kv.__experimentalTreeGridCell,{className:Ii,withoutGridItem:!0,children:[(0,Yn.jsx)(Kv.__experimentalTreeGridItem,{children:({ref:Ne,tabIndex:ko,onFocus:dt})=>(0,Yn.jsx)(DA,{orientation:"vertical",clientIds:[e],ref:Ne,tabIndex:ko,onFocus:dt})}),(0,Yn.jsx)(Kv.__experimentalTreeGridItem,{children:({ref:Ne,tabIndex:ko,onFocus:dt})=>(0,Yn.jsx)(VA,{orientation:"vertical",clientIds:[e],ref:Ne,tabIndex:ko,onFocus:dt})})]})}),Ot&&Pt&&(0,Yn.jsx)(Kv.__experimentalTreeGridCell,{className:Cn,"aria-selected":!!i,ref:y,children:({ref:Ne,tabIndex:ko,onFocus:dt})=>(0,Yn.jsx)(Pt,{clientId:e,clientIds:ls,icon:Hc,label:(0,MJ.__)("Options"),popoverProps:{anchor:ao},toggleProps:{ref:Ne,className:"block-editor-list-view-block__menu",tabIndex:ko,onClick:Lo,onFocus:dt,size:"small"},disableOpenOnArrowDown:!0,updateExpansion:Be,setInsertedBlockClientId:qe,__experimentalSelectBlock:Te,isContentOnlyListView:!!Vt&&W(Vt)==="contentOnly"})}),S&&(0,Yn.jsx)(Wv,{clientId:e,onClose:()=>R(!1)})]})}var o4e=(0,nn.memo)(t4e);var Xa=c(T(),1);function n4e(e,t,o,r){return o?.includes(e.clientId)?0:t[e.clientId]??r?e.innerBlocks.reduce((s,a)=>s+n4e(a,t,o,r),1):1}var Sft=()=>{};function i4e(e){let{blocks:t,selectBlock:o=Sft,showBlockMovers:r,selectedClientIds:n,level:i=1,path:s="",isBranchSelected:a=!1,listPosition:l=0,fixedListWindow:d,isExpanded:u,parentId:f,isSyncedBranch:p=!1,showAppender:m=!0}=e,{canParentExpand:g,isParentSynced:h}=(0,ZN.useSelect)(j=>{if(!f)return{canParentExpand:!0,isParentSynced:!1};let{canEditBlock:V,isSyncedBlock:A}=Z(j(P));return{canParentExpand:V(f),isParentSynced:A(f)}},[f]),b=p||h,{blockDropPosition:v,blockDropTargetIndex:_,firstDraggedBlockIndex:y,blockIndexes:w,expansionState:x,draggedClientIds:k}=x3e();if(!g)return null;let C=m&&i===1,S=t.filter(Boolean),R=S.length,E=C?R+1:R,I=l,B=[],O=0,M,N=()=>{O&&(B.push((0,Xa.jsx)("tr",{children:(0,Xa.jsx)("td",{className:"block-editor-list-view-placeholder",style:{height:O*P2}})},`placeholder-${M}`)),O=0,M=void 0)};return S.forEach((j,V)=>{let{clientId:A,innerBlocks:L}=j,z=I;I+=n4e(j,x,k,u);let F=!!k?.includes(A),{itemInView:G}=d,$=G(z),K=V+1,q=s.length>0?`${s}_${K}`:`${K}`,H=!!L?.length,J=H?x[A]??u:void 0,W=q3e(A,n),Y=a||W&&H,ee=F||$||W&&A===n[0]||V===0||V===R-1,re=H&&J&&!F;if(!ee&&(O+=1,M??=A,!re))return;N();let{displacement:ne,isAfterDraggedBlocks:ie,isNesting:be}=Z3e({blockIndexes:w,blockDropTargetIndex:_,blockDropPosition:v,clientId:A,firstDraggedBlockIndex:y,isDragged:F});B.push((0,Xa.jsxs)(ZN.AsyncModeProvider,{value:!W,children:[ee&&(0,Xa.jsx)(o4e,{clientId:A,selectBlock:o,isSelected:W,isBranchSelected:Y,isDragged:F,level:i,position:K,rowCount:E,siblingBlockCount:R,showBlockMovers:r,path:q,isExpanded:F?!1:J,selectedClientIds:n,isSyncedBranch:b,displacement:ne,isAfterDraggedBlocks:ie,isNesting:be}),re&&(0,Xa.jsx)(i4e,{parentId:A,blocks:L,selectBlock:o,showBlockMovers:r,level:i+1,path:q,listPosition:z+1,fixedListWindow:d,isBranchSelected:Y,selectedClientIds:n,isExpanded:u,isSyncedBranch:b})]},A))}),N(),(0,Xa.jsxs)(Xa.Fragment,{children:[B,C&&(0,Xa.jsx)(XN.__experimentalTreeGridRow,{level:i,setSize:E,positionInSet:E,isExpanded:!0,children:(0,Xa.jsx)(XN.__experimentalTreeGridCell,{children:j=>(0,Xa.jsx)(PJ,{clientId:f,nestingLevel:i,blockCount:R,...j})})})]})}var s4e=(0,r4e.memo)(i4e);var JN=c(Q(),1),QN=c(Ut(),1),em=c(D(),1),AJ=c(X(),1);var sc=c(T(),1);function a4e({draggedBlockClientId:e,listViewRef:t,blockDropTarget:o}){let r=yi(e),n=xs({clientId:e,context:"list-view"}),{rootClientId:i,clientId:s,dropPosition:a}=o||{},[l,d]=(0,em.useMemo)(()=>{if(!t.current)return[];let _=i?t.current.querySelector(`[data-block="${i}"]`):void 0,y=s?t.current.querySelector(`[data-block="${s}"]`):void 0;return[_,y]},[t,i,s]),u=d||l,f=(0,AJ.isRTL)(),p=(0,em.useCallback)((_,y)=>{if(!u)return 0;let w=u.offsetWidth,x=(0,QN.getScrollContainer)(u,"horizontal"),k=u.ownerDocument,C=x===k.body||x===k.documentElement;if(x&&!C){let S=x.getBoundingClientRect(),R=(0,AJ.isRTL)()?S.right-_.right:_.left-S.left,E=x.clientWidth;if(E<w+R&&(w=E-R),!f&&_.left+y<S.left)return w-=S.left-_.left,w;if(f&&_.right-y>S.right)return w-=_.right-S.right,w}return w-y},[f,u]),m=(0,em.useMemo)(()=>{if(!u)return{};let _=u.getBoundingClientRect();return{width:p(_,0)}},[p,u]),g=(0,em.useMemo)(()=>{if(!u)return{};let _=(0,QN.getScrollContainer)(u),y=u.ownerDocument,w=_===y.body||_===y.documentElement;if(_&&!w){let x=_.getBoundingClientRect(),k=u.getBoundingClientRect(),C=f?x.right-k.right:k.left-x.left;if(!f&&x.left>k.left)return{transform:`translateX( ${C}px )`};if(f&&x.right<k.right)return{transform:`translateX( ${C*-1}px )`}}return{}},[f,u]),h=(0,em.useMemo)(()=>{if(!l)return 1;let _=parseInt(l.getAttribute("aria-level"),10);return _?_+1:1},[l]),b=(0,em.useMemo)(()=>u?u.classList.contains("is-branch-selected"):!1,[u]),v=(0,em.useMemo)(()=>{if(!(!u||!(a==="top"||a==="bottom"||a==="inside")))return{contextElement:u,getBoundingClientRect(){let y=u.getBoundingClientRect(),w=y.left,x=0,k=(0,QN.getScrollContainer)(u,"horizontal"),C=u.ownerDocument,S=k===C.body||k===C.documentElement;if(k&&!S){let I=k.getBoundingClientRect(),B=f?k.offsetWidth-k.clientWidth:0;w<I.left+B&&(w=I.left+B)}a==="top"?x=y.top-y.height*2:x=y.top;let R=p(y,0),E=y.height;return new window.DOMRect(w,x,R,E)}}},[u,a,p,f]);return u?(0,sc.jsx)(JN.Popover,{animate:!1,anchor:v,focusOnMount:!1,className:"block-editor-list-view-drop-indicator--preview",variant:"unstyled",flip:!1,resize:!0,children:(0,sc.jsx)("div",{style:m,className:U("block-editor-list-view-drop-indicator__line",{"block-editor-list-view-drop-indicator__line--darker":b}),children:(0,sc.jsxs)("div",{className:"block-editor-list-view-leaf","aria-level":h,children:[(0,sc.jsxs)("div",{className:U("block-editor-list-view-block-select-button","block-editor-list-view-block-contents"),style:g,children:[(0,sc.jsx)($N,{onClick:()=>{}}),(0,sc.jsx)($t,{icon:r?.icon,showColors:!0,context:"list-view"}),(0,sc.jsx)(De,{align:"center",className:"block-editor-list-view-block-select-button__label-wrapper",justify:"flex-start",gap:"xs",children:(0,sc.jsx)("span",{className:"block-editor-list-view-block-select-button__title",children:(0,sc.jsx)(JN.__experimentalTruncate,{ellipsizeMode:"auto",children:n})})})]}),(0,sc.jsx)("div",{className:"block-editor-list-view-block__menu-cell"})]})})}):null}var l4e=c(zo(),1),qk=c(X(),1),B2=c(oe(),1),c4e=c(D(),1),Za=c(Mo(),1),d4e=c(ce(),1);function u4e(){let{clearSelectedBlock:e,multiSelect:t,selectBlock:o}=(0,B2.useDispatch)(P),{getBlockName:r,getBlockParents:n,getBlockSelectionStart:i,getSelectedBlockClientIds:s,hasMultiSelection:a,hasSelectedBlock:l}=(0,B2.useSelect)(P),{getBlockType:d}=(0,B2.useSelect)(d4e.store);return{updateBlockSelection:(0,c4e.useCallback)(async(f,p,m,g)=>{if(!f?.shiftKey&&f?.keyCode!==Za.ESCAPE){o(p,g);return}f.preventDefault();let h=f.type==="keydown"&&f.keyCode===Za.ESCAPE,b=f.type==="keydown"&&(f.keyCode===Za.UP||f.keyCode===Za.DOWN||f.keyCode===Za.HOME||f.keyCode===Za.END);if(!b&&!l()&&!a()){o(p,null);return}let v=s(),_=[...n(p),p];if((h||b&&!v.some(k=>_.includes(k)))&&await e(),!h){let k=i(),C=p;b&&(!l()&&!a()&&(k=p),m&&(C=m));let S=n(k),R=n(C),{start:E,end:I}=X3e(k,C,S,R);await t(E,I,null)}let y=s();if((f.keyCode===Za.HOME||f.keyCode===Za.END)&&y.length>1)return;let w=v.filter(k=>!y.includes(k)),x;if(w.length===1){let k=d(r(w[0]))?.title;k&&(x=(0,qk.sprintf)((0,qk.__)("%s deselected."),k))}else w.length>1&&(x=(0,qk.sprintf)((0,qk.__)("%s blocks deselected."),w.length));x&&(0,l4e.speak)(x,"assertive")},[e,r,d,n,i,s,a,l,t,o])}}var f4e=c(D(),1);function p4e(e){return(0,f4e.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 m4e=c(oe(),1);function g4e({blocks:e,rootClientId:t}){return(0,m4e.useSelect)(o=>{let{getDraggedBlockClientIds:r,getSelectedBlockClientIds:n,getListViewClientIdsTree:i}=Z(o(P));return{selectedClientIds:n(),draggedClientIds:r(),clientIdsTree:e??i(t)}},[e,t])}var h4e=c(D(),1),b4e=c(oe(),1);function _4e({updateExpansion:e}){let{expandedBlock:t,getBlockParents:o}=(0,b4e.useSelect)(r=>{let{getBlockParents:n,getExpandedBlock:i}=Z(r(P));return{expandedBlock:i(),getBlockParents:n}},[]);(0,h4e.useEffect)(()=>{if(t){let r=o(t,!1);e({type:"replace",clientIds:r})}},[e,t,o])}var v4e=c(oe(),1),qv=c(D(),1),Xv=c(ue(),1),y4e=c(X(),1);var tm=24;function Cft(e,t,o=1,r=!1){let n=r?t.right-o*tm:t.left+o*tm;return r?e.x>n:e.x<n}function Eft(e,t,o=1,r=!1){let n=r?t.right-o*tm:t.left+o*tm,i=r?n-e.x:e.x-n,s=Math.round(i/tm);return Math.abs(s)}function Tft(e,t){let o=[],r=e;for(;r;)o.push({...r}),r=t.find(n=>n.clientId===r.rootClientId);return o}function w4e(e,t){let o=e[t+1];return o&&o.isDraggedBlock?w4e(e,t+1):o}function Rft(e,t,o=1,r=!1){let n=r?t.right-o*tm:t.left+o*tm;return(r?e.x<n-tm:e.x>n+tm)&&e.y<t.bottom}var Ift=["top","bottom"];function Pft(e,t,o=!1){let r,n,i,s,a;for(let f=0;f<e.length;f++){let p=e[f];if(p.isDraggedBlock)continue;let m=p.element.getBoundingClientRect(),[g,h]=Bv(t,m,Ift),b=lA(t,m);if(i===void 0||g<i||b){i=g;let v=e.indexOf(p),_=e[v-1];if(h==="top"&&_&&_.rootClientId===p.rootClientId&&!_.isDraggedBlock?(n=_,r="bottom",s=_.element.getBoundingClientRect(),a=v-1):(n=p,r=h,s=m,a=v),b)break}}if(!n)return;let l=Tft(n,e),d=r==="bottom";if(d&&n.canInsertDraggedBlocksAsChild&&(n.innerBlockCount>0&&n.isExpanded||Rft(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(d&&n.rootClientId&&Cft(t,s,l.length,o)){let f=w4e(e,a),p=n.nestingLevel,m=f?f.nestingLevel:1;if(p&&m){let g=Eft(t,s,l.length,o),h=Math.max(Math.min(g,p-m),0);if(l[h]){let b=n.blockIndex;if(l[h].nestingLevel===f?.nestingLevel)b=f?.blockIndex;else for(let v=a;v>=0;v--){let _=e[v];if(_.rootClientId===l[h].rootClientId){b=_.blockIndex+1;break}}return{rootClientId:l[h].rootClientId,clientId:n.clientId,blockIndex:b,dropPosition:r}}}}if(!n.canInsertDraggedBlocksAsSibling)return;let u=d?1:0;return{rootClientId:n.rootClientId,clientId:n.clientId,blockIndex:n.blockIndex+u,dropPosition:r}}var Bft={leading:!1,trailing:!0};function x4e({dropZoneElement:e,updateExpansion:t}){let{getBlockRootClientId:o,getBlockIndex:r,getBlockCount:n,getDraggedBlockClientIds:i,canInsertBlocks:s}=(0,v4e.useSelect)(P),[a,l]=(0,qv.useState)(),{rootClientId:d,blockIndex:u}=a||{},f=aA(d,u),p=(0,y4e.isRTL)(),m=(0,Xv.usePrevious)(d),g=(0,qv.useCallback)(y=>{let{rootClientId:w}=y||{};w&&y?.dropPosition==="inside"&&t({type:"expand",clientIds:[w]})},[t]),h=(0,Xv.useThrottle)(g,500,Bft);(0,qv.useEffect)(()=>{if(a?.dropPosition!=="inside"||m!==a?.rootClientId){h.cancel();return}h(a)},[m,a,h]);let b=i(),v=(0,Xv.useThrottle)((0,qv.useCallback)((y,w)=>{let x={x:y.clientX,y:y.clientY},k=!!b?.length,S=Array.from(w.querySelectorAll("[data-block]")).map(E=>{let I=E.dataset.block,B=E.dataset.expanded==="true",O=E.classList.contains("is-dragging"),M=parseInt(E.getAttribute("aria-level"),10),N=o(I);return{clientId:I,isExpanded:B,rootClientId:N,blockIndex:r(I),element:E,nestingLevel:M||void 0,isDraggedBlock:k?O:!1,innerBlockCount:n(I),canInsertDraggedBlocksAsSibling:k?s(b,N):!0,canInsertDraggedBlocksAsChild:k?s(b,I):!0}}),R=Pft(S,x,p);R&&l(R)},[s,b,n,r,o,p]),50);return{ref:(0,Xv.__experimentalUseDropZone)({dropZoneElement:e,onDrop(y){v.cancel(),a&&f(y),l(void 0)},onDragLeave(){v.cancel(),l(null)},onDragOver(y){v(y,y.currentTarget)},onDragEnd(){v.cancel(),l(void 0)}}),target:a}}var eL=c(D(),1),k4e=c(oe(),1);function S4e({firstSelectedBlockClientId:e,updateExpansion:t}){let[o,r]=(0,eL.useState)(null),{selectedBlockParentClientIds:n}=(0,k4e.useSelect)(i=>{let{getBlockParents:s}=i(P);return{selectedBlockParentClientIds:s(e,!1)}},[e]);return(0,eL.useEffect)(()=>{o!==e&&n?.length&&t({type:"expand",clientIds:n})},[e,n,o,t]),{setSelectedTreeId:r}}var Xk=c(oe(),1),C4e=c(ue(),1);function E4e({selectBlock:e}){let t=(0,Xk.useRegistry)(),{getBlockOrder:o,getBlockRootClientId:r,getBlocksByClientId:n,getPreviousBlockClientId:i,getSelectedBlockClientIds:s,getSettings:a,canInsertBlockType:l,canRemoveBlocks:d}=(0,Xk.useSelect)(P),{flashBlock:u,removeBlocks:f,replaceBlocks:p,insertBlocks:m}=(0,Xk.useDispatch)(P),g=Nx();return(0,C4e.useRefEffect)(h=>{function b(y,w){w&&e(void 0,y,null,null),Yk(y,h)}function v(y){let w=s(),x=w.includes(y),k=x?w[0]:y,C=r(k);return{blocksToUpdate:x?w:[y],firstBlockClientId:k,firstBlockRootClientId:C,originallySelectedBlockClientIds:w}}function _(y){if(y.defaultPrevented||!h.contains(y.target.ownerDocument.activeElement))return;let x=y.target.ownerDocument.activeElement?.closest("[role=row]")?.dataset?.block;if(!x)return;let{blocksToUpdate:k,firstBlockClientId:C,firstBlockRootClientId:S,originallySelectedBlockClientIds:R}=v(x);if(k.length!==0){if(y.preventDefault(),y.type==="copy"||y.type==="cut"){k.length===1&&u(k[0]),g(y.type,k);let E=n(k);A8(y,E,t)}if(y.type==="cut"){if(!d(k))return;let E=i(C)??S;f(k,!1);let I=R.length>0&&s().length===0;E||(E=o()[0]),b(E,I)}else if(y.type==="paste"){let{__experimentalCanUserUseUnfilteredHTML:E}=a(),I=c1e(y,E);if(k.length===1){let[B]=k;if(I.every(O=>l(O.name,B))){m(I,void 0,B),b(I[0]?.clientId,!1);return}}p(k,I,I.length-1,-1),b(I[0]?.clientId,!1)}}}return h.ownerDocument.addEventListener("copy",_),h.ownerDocument.addEventListener("cut",_),h.ownerDocument.addEventListener("paste",_),()=>{h.ownerDocument.removeEventListener("copy",_),h.ownerDocument.removeEventListener("cut",_),h.ownerDocument.removeEventListener("paste",_)}},[])}var Sd=c(T(),1),Oft=(e,t)=>{let{type:o,clientIds:r}=t;if(o==="replace"){let s=Object.fromEntries(r.map(a=>[a,!0]));return(0,T4e.isShallowEqual)(e,s)?e:s}if(o!=="expand"&&o!=="collapse")return e;let n=o==="expand",i=r.filter(s=>e[s]!==n);return i.length?{...e,...Object.fromEntries(i.map(s=>[s,n]))}:e};function P4e({id:e,blocks:t,dropZoneElement:o,showBlockMovers:r=!1,isExpanded:n=!1,showAppender:i=!1,focusOnMount:s=!1,blockSettingsMenu:a=dJ,rootClientId:l,description:d,onSelect:u,additionalBlockContent:f},p){t&&(0,I4e.default)("`blocks` property in `wp.blockEditor.__experimentalListView`",{since:"6.3",alternative:"`rootClientId` property"});let m=(0,Kh.useInstanceId)(P4e),{clientIdsTree:g,draggedClientIds:h,selectedClientIds:b}=g4e({blocks:t,rootClientId:l}),v=p4e(g),{getBlock:_,getSelectedBlockClientIds:y}=(0,O2.useSelect)(P),{visibleBlockCount:w}=(0,O2.useSelect)(Y=>{let{getGlobalBlockCount:ee,getClientIdsOfDescendants:re}=Y(P),ne=h?.length>0?re(h).length+1:0;return{visibleBlockCount:ee()-ne}},[h]),{updateBlockSelection:x}=u4e(),[k,C]=(0,Kn.useReducer)(Oft,{}),[S,R]=(0,Kn.useState)(null),{setSelectedTreeId:E}=S4e({firstSelectedBlockClientId:b[0],updateExpansion:C}),I=(0,Kn.useCallback)((Y,ee,re)=>{x(Y,ee,null,re),E(ee),u&&u(_(ee))},[E,x,u,_]),{ref:B,target:O}=x4e({dropZoneElement:o,updateExpansion:C}),M=(0,Kn.useRef)(),N=E4e({selectBlock:I}),j=(0,Kh.useRefEffect)(Y=>{if(!s)return;let ee=new window.AbortController,re=be=>Yk(be,Y,ee.signal).then(()=>ee.abort());Y.ownerDocument.addEventListener("focusin",()=>ee.abort(),{once:!0,signal:ee.signal});let[ne]=y();if(ne)return re(ne),()=>ee.abort();let ie=setTimeout(()=>{let be=Y.querySelector("[role=row][data-block]")?.dataset.block;be&&re(be)},0);return()=>{clearTimeout(ie),ee.abort()}},[s,y]),V=(0,Kh.useMergeRefs)([N,j,M,B,p]),A=(0,Kn.useCallback)(Y=>{let ee=Y?.dataset?.block;ee&&C({type:"expand",clientIds:[ee]})},[]),L=(0,Kn.useCallback)(Y=>{let ee=Y?.dataset?.block;ee&&C({type:"collapse",clientIds:[ee]})},[]),z=(0,Kn.useCallback)((Y,ee,re)=>{Y.shiftKey&&x(Y,ee?.dataset?.block,re?.dataset?.block)},[x]);_4e({updateExpansion:C});let F=h?.[0],{blockDropTargetIndex:G,blockDropPosition:$,firstDraggedBlockIndex:K}=(0,Kn.useMemo)(()=>{let Y,ee;if(O?.clientId){let re=v[O.clientId];Y=re===void 0||O?.dropPosition==="top"?re:re+1}else O===null&&(Y=null);if(F){let re=v[F];ee=re===void 0||O?.dropPosition==="top"?re:re+1}return{blockDropTargetIndex:Y,blockDropPosition:O?.dropPosition,firstDraggedBlockIndex:ee}},[O,v,F]),q=(0,Kn.useMemo)(()=>({AdditionalBlockContent:f,BlockSettingsMenu:a,listViewInstanceId:m,rootClientId:l,setInsertedBlockClientId:R,treeGridElementRef:M,updateExpansion:C}),[f,a,m,l,R,C]),H=(0,Kn.useMemo)(()=>({blockDropPosition:$,blockDropTargetIndex:G,blockIndexes:v,draggedClientIds:h,expansionState:k,firstDraggedBlockIndex:K}),[$,G,v,h,k,K]),[J]=(0,Kh.__experimentalUseFixedWindowList)(M,P2,w,{expandedState:k,useWindowing:!0,windowOverscan:40});if(!g.length&&!i)return null;let W=d&&`block-editor-list-view-description-${m}`;return(0,Sd.jsxs)(O2.AsyncModeProvider,{value:!0,children:[(0,Sd.jsx)(a4e,{draggedBlockClientId:F,listViewRef:M,blockDropTarget:O}),d&&(0,Sd.jsx)(Et,{id:W,children:d}),(0,Sd.jsx)(R4e.__experimentalTreeGrid,{id:e,className:U("block-editor-list-view-tree",{"is-dragging":h?.length>0&&G!==void 0}),"aria-label":(0,NJ.__)("Block navigation structure"),ref:V,onCollapseRow:L,onExpandRow:A,onFocusRow:z,applicationAriaLabel:(0,NJ.__)("Block navigation structure"),"aria-describedby":W,style:{"--wp-admin--list-view-dragged-items-height":h?.length?`${P2*(h.length-1)}px`:null},children:(0,Sd.jsx)(zN.Provider,{value:q,children:(0,Sd.jsx)(HN.Provider,{value:S,children:(0,Sd.jsx)(jN.Provider,{value:H,children:(0,Sd.jsx)(s4e,{blocks:g,parentId:l,selectBlock:I,showBlockMovers:r,fixedListWindow:J,selectedClientIds:b,isExpanded:n,showAppender:i})})})})})]})}var M2=(0,Kn.forwardRef)(P4e),tL=(0,Kn.forwardRef)((e,t)=>(0,Sd.jsx)(M2,{ref:t,...e,showAppender:!1,rootClientId:null,onSelect:null,additionalBlockContent:null,blockSettingsMenu:void 0}));var qh=c(T(),1);function Mft({isEnabled:e,onToggle:t,isOpen:o,innerRef:r,...n}){return(0,qh.jsx)(oL.Button,{__next40pxDefaultSize:!0,...n,ref:r,icon:YC,"aria-expanded":o,"aria-haspopup":"true",onClick:e?t:void 0,label:(0,LJ.__)("List view"),className:"block-editor-block-navigation","aria-disabled":!e})}function Aft({isDisabled:e,...t},o){(0,B4e.default)("wp.blockEditor.BlockNavigationDropdown",{since:"6.1",alternative:"wp.components.Dropdown and wp.blockEditor.ListView"});let n=(0,O4e.useSelect)(i=>!!i(P).getBlockCount(),[])&&!e;return(0,qh.jsx)(oL.Dropdown,{contentClassName:"block-editor-block-navigation__popover",popoverProps:{placement:"bottom-start"},renderToggle:({isOpen:i,onToggle:s})=>(0,qh.jsx)(Mft,{...t,innerRef:o,isOpen:i,onToggle:s,isEnabled:n}),renderContent:()=>(0,qh.jsxs)("div",{className:"block-editor-block-navigation__container",children:[(0,qh.jsx)("p",{className:"block-editor-block-navigation__label",children:(0,LJ.__)("List view")}),(0,qh.jsx)(tL,{})]})})}var A4e=(0,M4e.forwardRef)(Aft);var Zk=c(D(),1),L4e=c(oe(),1),nL=c(ue(),1),Zu=c(Q(),1);var rL=c(X(),1);var Cd=c(T(),1),N4e=()=>{},DJ=(e,t)=>`${e}-${t.name}`;function D4e({clientId:e,onSwitch:t=N4e,onHoverClassName:o=N4e}){let r=(0,L4e.useSelect)(S=>S(P).canEditBlock(e),[e]),{onSelect:n,stylesToRender:i,activeStyle:s,genericPreviewBlock:a,className:l}=Nk({clientId:e,onSwitch:t}),[d,u]=(0,Zk.useState)(null),[f,p]=(0,Zk.useState)(null),m=Fr(),g=(0,nL.useInstanceId)(D4e,"block-editor-block-styles"),h=(0,Zk.useMemo)(()=>{let S=[];for(let R=0;R<(i?.length??0);R+=2)S.push(i.slice(R,R+2));return S},[i]),b=(0,Zk.useMemo)(()=>{if(!d||!a)return null;let S=jh(l,s,d);return[{...a,attributes:{...a.attributes||{},className:S}}]},[d,a,l,s]);if(!r||!i||i.length===0)return null;let v=(0,nL.debounce)(u,250),_=S=>{n(S),o(null),u(null),v.cancel()},y=S=>{if(d===S){v.cancel();return}v(S),o(S?.name??null)},w=S=>{let R=i.find(E=>DJ(g,E)===S);R&&R.name!==s.name&&_(R)},x=hN(i),k=()=>s?.name!==x?.name,C=()=>{_(x)};return(0,Cd.jsx)(Zu.__experimentalToolsPanel,{label:(0,rL.__)("Styles"),resetAll:C,panelId:e,hasInnerWrapper:!0,dropdownMenuProps:m,children:(0,Cd.jsx)(Zu.__experimentalToolsPanelItem,{hasValue:k,label:(0,rL.__)("Variation"),onDeselect:C,isShownByDefault:!0,panelId:e,children:(0,Cd.jsxs)("div",{ref:p,className:"block-editor-block-styles",children:[(0,Cd.jsx)(Zu.Composite,{role:"radiogroup","aria-label":(0,rL.__)("Styles"),className:"block-editor-block-styles__variants",activeId:DJ(g,s),setActiveId:w,focusLoop:!0,focusWrap:!0,focusShift:!0,children:h.map((S,R)=>(0,Cd.jsx)(Zu.Composite.Row,{className:"block-editor-block-styles__row",children:S.map(E=>(0,Cd.jsx)(Zu.Composite.Item,{id:DJ(g,E),render:(0,Cd.jsx)(A0,{className:"block-editor-block-styles__item",tone:"neutral",variant:s.name===E.name?"solid":"outline"}),role:"radio","aria-checked":s.name===E.name,onMouseEnter:()=>y(E),onFocus:()=>y(E),onMouseLeave:()=>y(null),onBlur:()=>y(null),onClick:()=>_(E),children:(0,Cd.jsx)(Zu.__experimentalTruncate,{numberOfLines:3,className:"block-editor-block-styles__item-text",children:E.label||E.name})},E.name))},R))}),b&&(0,Cd.jsx)(Wh,{blocks:b,placement:"left-start",offset:34,anchor:f})]})})})}var Qk=D4e;var H4e=c(Q(),1),Jk=c(X(),1);var F4e=c(Q(),1),z4e=c(T(),1),V4e={0:bH,1:Yj,2:Kj,3:qj,4:Xj,5:Zj,6:Qj};function VJ({level:e}){return V4e[e]?(0,z4e.jsx)(F4e.Icon,{icon:V4e[e]}):null}var iL=c(T(),1),j4e=[1,2,3,4,5,6],Nft={className:"block-library-heading-level-dropdown"};function U4e({options:e=j4e,value:t,onChange:o}){let r=e.filter(n=>n===0||j4e.includes(n)).sort((n,i)=>n-i);return(0,iL.jsx)(H4e.ToolbarDropdownMenu,{popoverProps:Nft,icon:(0,iL.jsx)(VJ,{level:t}),label:(0,Jk.__)("Change level"),controls:r.map(n=>{let i=n===t;return{icon:(0,iL.jsx)(VJ,{level:n}),title:n===0?(0,Jk.__)("Paragraph"):(0,Jk.sprintf)((0,Jk.__)("Heading %d"),n),isActive:i,onClick(){o(n)},role:"menuitemradio"}})})}var A2=c(X(),1),N2=c(Q(),1);var om=c(T(),1);function Lft({icon:e=sH,label:t=(0,A2.__)("Choose variation"),instructions:o=(0,A2.__)("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,om.jsxs)(N2.Placeholder,{icon:e,label:t,instructions:o,className:s,children:[(0,om.jsx)("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":(0,A2.__)("Block variations"),children:r.map(a=>(0,om.jsxs)("li",{children:[(0,om.jsx)(N2.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,om.jsx)("span",{className:"block-editor-block-variation-picker__variation-label",children:a.title})]},a.name))}),i&&(0,om.jsx)("div",{className:"block-editor-block-variation-picker__skip",children:(0,om.jsx)(N2.Button,{__next40pxDefaultSize:!0,variant:"link",onClick:()=>n(),children:(0,A2.__)("Skip")})})]})}var W4e=Lft;var K4e=c(oe(),1),q4e=c(ce(),1),zJ=c(Q(),1);var FJ=c(D(),1),jJ=c(ue(),1),X4e=c(X(),1);var rm=c(X(),1),e1=c(Q(),1);var Xh={carousel:"carousel",grid:"grid"};var Qa=c(T(),1),Dft=({onBlockPatternSelect:e})=>(0,Qa.jsx)("div",{className:"block-editor-block-pattern-setup__actions",children:(0,Qa.jsx)(e1.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:e,children:(0,rm.__)("Choose")})}),Vft=({handlePrevious:e,handleNext:t,activeSlide:o,totalSlides:r})=>(0,Qa.jsxs)("div",{className:"block-editor-block-pattern-setup__navigation",children:[(0,Qa.jsx)(e1.Button,{size:"compact",icon:(0,rm.isRTL)()?yr:ai,label:(0,rm.__)("Previous pattern"),onClick:e,disabled:o===0,accessibleWhenDisabled:!0}),(0,Qa.jsx)(e1.Button,{size:"compact",icon:(0,rm.isRTL)()?ai:yr,label:(0,rm.__)("Next pattern"),onClick:t,disabled:o===r-1,accessibleWhenDisabled:!0})]}),Fft=({viewMode:e,setViewMode:t,handlePrevious:o,handleNext:r,activeSlide:n,totalSlides:i,onBlockPatternSelect:s})=>{let a=e===Xh.carousel,l=(0,Qa.jsxs)("div",{className:"block-editor-block-pattern-setup__display-controls",children:[(0,Qa.jsx)(e1.Button,{size:"compact",icon:SE,label:(0,rm.__)("Carousel view"),onClick:()=>t(Xh.carousel),isPressed:a}),(0,Qa.jsx)(e1.Button,{size:"compact",icon:hC,label:(0,rm.__)("Grid view"),onClick:()=>t(Xh.grid),isPressed:e===Xh.grid})]});return(0,Qa.jsxs)("div",{className:"block-editor-block-pattern-setup__toolbar",children:[a&&(0,Qa.jsx)(Vft,{handlePrevious:o,handleNext:r,activeSlide:n,totalSlides:i}),l,a&&(0,Qa.jsx)(Dft,{onBlockPatternSelect:s})]})},G4e=Fft;var $4e=c(oe(),1);function zft(e,t,o){return(0,$4e.useSelect)(r=>{let{getBlockRootClientId:n,getPatternsByBlockTypes:i,__experimentalGetAllowedPatterns:s}=r(P),a=n(e);return o?s(a).filter(o):i(t,a)},[e,t,o])}var Y4e=zft;var ur=c(T(),1),jft=({viewMode:e,activeSlide:t,patterns:o,onBlockPatternSelect:r,showTitles:n})=>{let i="block-editor-block-pattern-setup__container";if(e===Xh.carousel){let s=new Map([[t,"active-slide"],[t-1,"previous-slide"],[t+1,"next-slide"]]);return(0,ur.jsx)("div",{className:"block-editor-block-pattern-setup__carousel",children:(0,ur.jsx)("div",{className:i,children:(0,ur.jsx)("div",{className:"carousel-container",children:o.map((a,l)=>(0,ur.jsx)(Q4e,{active:l===t,className:s.get(l)||"",pattern:a},a.name))})})})}return(0,ur.jsx)("div",{className:"block-editor-block-pattern-setup__grid",children:(0,ur.jsx)(zJ.Composite,{role:"listbox",className:i,"aria-label":(0,X4e.__)("Patterns list"),children:o.map(s=>(0,ur.jsx)(Z4e,{pattern:s,onSelect:r,showTitles:n},s.name))})})};function Z4e({pattern:e,onSelect:t,showTitles:o}){let r="block-editor-block-pattern-setup-list",{blocks:n,description:i,viewportWidth:s=700}=e,a=(0,jJ.useInstanceId)(Z4e,`${r}__item-description`);return(0,ur.jsx)("div",{className:`${r}__list-item`,children:(0,ur.jsxs)(zJ.Composite.Item,{render:(0,ur.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,ur.jsx)(sa,{blocks:n,viewportWidth:s}),o&&(0,ur.jsx)("div",{className:`${r}__item-title`,children:e.title}),!!i&&(0,ur.jsx)(Et,{id:a,children:i})]})})}function Q4e({active:e,className:t,pattern:o,minHeight:r}){let{blocks:n,title:i,description:s}=o,a=(0,jJ.useInstanceId)(Q4e,"block-editor-block-pattern-setup-list__item-description");return(0,ur.jsxs)("div",{"aria-hidden":!e,role:"img",className:`pattern-slide ${t}`,"aria-label":i,"aria-describedby":s?a:void 0,children:[(0,ur.jsx)(sa,{blocks:n,minHeight:r}),!!s&&(0,ur.jsx)(Et,{id:a,children:s})]})}var Hft=({clientId:e,blockName:t,filterPatternsFn:o,onBlockPatternSelect:r,initialViewMode:n=Xh.carousel,showTitles:i=!1})=>{let[s,a]=(0,FJ.useState)(n),[l,d]=(0,FJ.useState)(0),{replaceBlock:u}=(0,K4e.useDispatch)(P),f=Y4e(e,t,o);if(!f?.length)return null;let m=r||(g=>{let h=g.map(b=>(0,q4e.cloneBlock)(b));u(e,h)});return(0,ur.jsx)(ur.Fragment,{children:(0,ur.jsxs)("div",{className:`block-editor-block-pattern-setup view-mode-${s}`,children:[(0,ur.jsx)(jft,{viewMode:s,activeSlide:l,patterns:f,onBlockPatternSelect:m,showTitles:i}),(0,ur.jsx)(G4e,{viewMode:s,setViewMode:a,activeSlide:l,totalSlides:f.length,handleNext:()=>{d(g=>Math.min(g+1,f.length-1))},handlePrevious:()=>{d(g=>Math.max(g-1,0))},onBlockPatternSelect:()=>{m(f[l].blocks)}})]})})},J4e=Hft;var HJ=c(ce(),1),nm=c(X(),1),Zv=c(Q(),1);var sL=c(oe(),1),e9e=c(D(),1);var zr=c(T(),1);function Uft({className:e,onSelectVariation:t,selectedValue:o,variations:r}){return(0,zr.jsxs)("fieldset",{className:e,children:[(0,zr.jsx)(Et,{render:(0,zr.jsx)("legend",{}),children:(0,nm.__)("Transform to variation")}),r.map(n=>(0,zr.jsx)(Zv.Button,{__next40pxDefaultSize:!0,size:"compact",icon:(0,zr.jsx)($t,{icon:n.icon,showColors:!0}),isPressed:o===n.name,label:o===n.name?n.title:(0,nm.sprintf)((0,nm.__)("Transform to %s"),n.title),onClick:()=>t(n.name),"aria-label":n.title,showTooltip:!0},n.name))]})}function Wft({className:e,onSelectVariation:t,selectedValue:o,variations:r}){return(0,zr.jsx)("div",{className:e,children:(0,zr.jsxs)(Ho.Root,{children:[(0,zr.jsx)(Ho.Trigger,{render:(0,zr.jsx)(Zv.Button,{className:"block-editor-block-variation-transforms__button",__next40pxDefaultSize:!0,variant:"secondary"}),children:(0,nm.__)("Transform to variation")}),(0,zr.jsx)(Ho.Popup,{positioner:(0,zr.jsx)(Ho.Positioner,{side:"bottom",align:"start"}),children:(0,zr.jsx)(Ho.RadioGroup,{value:o??null,onValueChange:t,children:r.map(n=>(0,zr.jsxs)(Ho.RadioItem,{value:n.name,children:[(0,zr.jsx)(Ho.ItemLabel,{children:n.title}),n.description&&(0,zr.jsx)(Ho.ItemDescription,{children:n.description})]},n.name))})})]})})}function Gft({className:e,onSelectVariation:t,selectedValue:o,variations:r}){return(0,zr.jsx)("div",{className:e,children:(0,zr.jsx)(Zv.__experimentalToggleGroupControl,{label:(0,nm.__)("Transform to variation"),value:o,hideLabelFromVision:!0,onChange:t,children:r.map(n=>(0,zr.jsx)(Zv.__experimentalToggleGroupControlOptionIcon,{icon:(0,zr.jsx)($t,{icon:n.icon,showColors:!0}),value:n.name,label:o===n.name?n.title:(0,nm.sprintf)((0,nm.__)("Transform to %s"),n.title)},n.name))})})}function $ft({blockClientId:e}){let{updateBlockAttributes:t}=(0,sL.useDispatch)(P),{activeBlockVariation:o,variations:r,canEdit:n,isContentOnly:i,isSection:s}=(0,sL.useSelect)(g=>{let{getActiveBlockVariation:h,getBlockVariations:b}=g(HJ.store),{getBlockName:v,getBlockAttributes:_,getBlockEditingMode:y,isSectionBlock:w}=Z(g(P)),{canEditBlock:x}=g(P),k=e&&v(e),{hasContentRoleAttribute:C}=Z(g(HJ.store)),S=C(k);return{activeBlockVariation:h(k,_(e),"transform"),variations:k&&b(k,"transform"),canEdit:x(e),isContentOnly:y(e)==="contentOnly"&&!S,isSection:w(e)}},[e]),a=o?.name,l=(0,e9e.useMemo)(()=>{let g=new Set;return r?(r.forEach(h=>{h.icon&&g.add(h.icon?.src||h.icon)}),g.size===r.length):!1},[r]),d=g=>{t(e,{...r.find(({name:h})=>h===g).attributes})};if(!r?.length||!n||i||s)return null;let u="block-editor-block-variation-transforms",p=r.length>6?Uft:Gft;return(0,zr.jsx)(l?p:Wft,{className:u,onSelectVariation:d,selectedValue:a,variations:r})}var aL=$ft;var Zh=c(X(),1),lL=c(Q(),1);var t9e=c(T(),1),UJ={top:{icon:$C,title:(0,Zh._x)("Align top","Block vertical alignment setting")},center:{icon:LC,title:(0,Zh._x)("Align middle","Block vertical alignment setting")},bottom:{icon:AC,title:(0,Zh._x)("Align bottom","Block vertical alignment setting")},stretch:{icon:UC,title:(0,Zh._x)("Stretch to fill","Block vertical alignment setting")},"space-between":{icon:zC,title:(0,Zh._x)("Space between","Block vertical alignment setting")}},Yft=["top","center","bottom"],Kft="top";function qft({value:e,onChange:t,controls:o=Yft,isCollapsed:r=!0,isToolbar:n,label:i=(0,Zh.__)("Align content vertically")}){function s(f){return()=>t(e===f?void 0:f)}let a=UJ[e],l=UJ[Kft],d=n?lL.ToolbarGroup:lL.ToolbarDropdownMenu,u=n?{isCollapsed:r}:{};return(0,t9e.jsx)(d,{icon:a?a.icon:l.icon,label:i,controls:o.map(f=>({...UJ[f],isActive:e===f,role:r?"menuitemradio":void 0,onClick:s(f)})),...u})}var WJ=qft;var GJ=c(T(),1),N9=e=>(0,GJ.jsx)(WJ,{...e,isToolbar:!1}),o9e=e=>(0,GJ.jsx)(WJ,{...e,isToolbar:!0});var ma=c(Q(),1),L2=c(D(),1),fL=c(X(),1);var r9e=c(Q(),1);var $J=c(X(),1),n9e=c(T(),1);function i9e({isLinked:e,...t}){let o=e?(0,$J.__)("Unlink radii"):(0,$J.__)("Link radii");return(0,n9e.jsx)(r9e.Button,{...t,className:"components-border-radius-control__linked-button",size:"small",icon:e?jc:$s,iconSize:24,label:o})}var s9e=c(Q(),1);function Xft(e){return[...e].sort((o,r)=>e.filter(n=>n===r).length-e.filter(n=>n===o).length).shift()}function a9e(e={}){if(typeof e=="string")return e;let t=Object.values(e).map(a=>{let l=(0,s9e.__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=Xft(r);return n===0||n?`${n}${i||""}`:void 0}function l9e(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 c9e(e){return e?typeof e=="string"?!0:!!Object.values(e).filter(o=>!!o||o===0).length:!1}var ac=c(Q(),1),f9e=c(ue(),1),Qh=c(X(),1);var Qv=c(D(),1);var YJ=24,d9e=8,cL={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 dL=c(Q(),1);var Ed=c(T(),1);function u9e({allowNegativeOnDrag:e,ariaLabel:t,allPlaceholder:o,minValue:r,parsedQuantity:n,computedUnit:i,units:s,isMixed:a,step:l,max:d,showTooltip:u,value:f,minimumCustomValue:p,onCustomValueChange:m,onCustomValueSliderChange:g,onUnitChange:h,onMouseOut:b,onMouseOver:v,setMinValue:_}){let y=(0,Ed.jsx)(dL.__experimentalUnitControl,{className:"preset-input-control__unit-control",disableUnits:a,hideLabelFromVision:!0,label:t,min:r,onChange:m,onUnitChange:h,onBlur:b,onFocus:v,onMouseOut:b,onMouseOver:v,units:s,value:[n,i].join(""),placeholder:o,onDragStart:()=>{e&&f?.charAt(0)==="-"&&_(0)},onDrag:()=>{e&&f?.charAt(0)==="-"&&_(0)},onDragEnd:()=>{e&&_(p)}}),w=u?(0,Ed.jsxs)(uo.Root,{children:[(0,Ed.jsx)(uo.Trigger,{render:(0,Ed.jsx)("div",{className:"preset-input-control__tooltip-wrapper",children:y})}),(0,Ed.jsx)(uo.Popup,{children:t})]}):y;return(0,Ed.jsxs)(Ed.Fragment,{children:[w,(0,Ed.jsx)(dL.RangeControl,{className:"preset-input-control__custom-value-range",hideLabelFromVision:!0,initialPosition:0,label:t,max:d,min:0,onBlur:b,onChange:g,onFocus:v,onMouseOut:b,onMouseOver:v,step:l,value:n,withInputField:!1})]})}var Jh=c(T(),1);function Jv({allowNegativeOnDrag:e=!1,ariaLabel:t,className:o,customValueSettings:r=cL,disableCustomValues:n,icon:i,isMixed:s,value:a,minimumCustomValue:l,onChange:d,onMouseOut:u,onMouseOver:f,onUnitChange:p,placeholder:m,presets:g=[],presetType:h,selectedUnit:b,showTooltip:v,units:_}){let y=(0,Qv.useMemo)(()=>xae(a,g,h),[a,g,h]),w=o??"preset-input-control",x=g.slice(1,g.length-1).map((Y,ee)=>({value:ee+1,label:void 0})),k=x.length>0,C=g.length<=d9e,S=s?(0,Qh.__)("Mixed"):m??null,[R,E]=(0,Qv.useState)(l),[I,B]=(0,Qv.useState)(!n&&y!==void 0&&!pu(y,h)),O=null,M=(0,f9e.usePrevious)(y);(0,Qv.useEffect)(()=>{y&&M!==y&&!pu(y,h)&&I!==!0&&B(!0)},[y,M,h,I]);let N=!C&&!I&&y!==void 0&&(!pu(y,h)||pu(y,h)&&s),j=g;N?(j=[...g,{name:s?(0,Qh.__)("Mixed"):(0,Qh.sprintf)((0,Qh.__)("Custom (%s)"),y),slug:"custom",size:y}],O=j.length-1):s||(O=I?ZU(y,g,h):wae(y,g,h));let V=j.map((Y,ee)=>({key:ee,name:Y.name})),A=pu(y,h)?ZU(y,g,h):y,[L,z]=(0,ac.__experimentalParseQuantityAndUnitFromRawValue)(A),F=z||b||"px",G=_?.find(Y=>Y.value===F),$=G?.step??r[F]?.steps??.1,K=G?.max??r[F]?.max??10,q=Y=>{if(Y===void 0||Y===""){d(void 0);return}isNaN(parseFloat(Y))||d(Y)},H=Y=>{d([Y,F].join(""))},J=Y=>y===void 0?void 0:g[Y]?.name,W=(Y,ee)=>{let re=parseInt(Y,10);if(ee==="selectList"){if(re===0&&g[0]?.slug==="0")return"0";if(re===0)return}else if(re===0)return"0";return`var:preset|${h}|${g[Y]?.slug}`};return(0,Jh.jsxs)(ac.__experimentalHStack,{className:`preset-input-control__wrapper ${w}__wrapper`,children:[i&&(0,Jh.jsx)(ac.Icon,{className:"preset-input-control__icon",icon:i,size:YJ}),(!k||I)&&(0,Jh.jsx)(u9e,{allowNegativeOnDrag:e,ariaLabel:t,allPlaceholder:S,minValue:R,parsedQuantity:L,computedUnit:F,units:_,isMixed:s,step:$,max:K,showTooltip:v,value:y,minimumCustomValue:l,onCustomValueChange:q,onCustomValueSliderChange:H,onUnitChange:p,onMouseOut:u,onMouseOver:f,setMinValue:E}),k&&C&&!I&&(0,Jh.jsx)(ac.RangeControl,{"aria-valuenow":O,"aria-valuetext":g[O]?.name,className:"preset-input-control__preset-range",hideLabelFromVision:!0,initialPosition:0,label:t,max:g.length-1,marks:x,min:0,onBlur:u,onChange:Y=>d(W(Y)),onFocus:f,onMouseDown:Y=>{Y?.nativeEvent?.offsetX<35&&y===void 0&&d("0")},onMouseOut:u,onMouseOver:f,renderTooltipContent:J,step:1,value:O,withInputField:!1}),k&&!C&&!I&&(0,Jh.jsx)(ac.CustomSelectControl,{className:"preset-input-control__custom-select-control",hideLabelFromVision:!0,label:t,onBlur:u,onChange:Y=>{N&&Y.selectedItem.key===V.length-1?B(!0):d(W(Y.selectedItem.key,"selectList"))},onFocus:f,onMouseOut:u,onMouseOver:f,options:V,value:V.find(Y=>Y.key===O)||""}),k&&!n&&(0,Jh.jsx)(ac.Button,{className:"preset-input-control__custom-toggle",icon:NH,iconSize:YJ,isPressed:I,label:I?(0,Qh.__)("Use preset"):(0,Qh.__)("Set custom value"),onClick:()=>{B(!I)},size:"small"})]})}var t1=c(X(),1);var p9e=8,uL=[],KJ={all:(0,t1.__)("Border radius"),topLeft:(0,t1.__)("Top left"),topRight:(0,t1.__)("Top right"),bottomLeft:(0,t1.__)("Bottom left"),bottomRight:(0,t1.__)("Bottom right")},qJ={all:wj,topLeft:Sj,topRight:Cj,bottomLeft:xj,bottomRight:kj},XJ=0;var im=c(T(),1);function Zft(e){let t=e?.default??uL,o=e?.custom??uL,r=e?.theme??uL;return(0,L2.useMemo)(()=>{let n=[{name:(0,fL.__)("None"),slug:"0",size:0},...o,...r,...t];return n.length>p9e?[{name:(0,fL.__)("Default"),slug:"default",size:void 0},...n]:n},[o,r,t])}function m9e(e,t){return t==="all"?a9e(e):typeof e=="string"?e:e?.[t]}function g9e(e,t){return t==="all"?e.flat:e[t]}function h9e(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 b9e(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 pL({onChange:e,values:t,presets:o}){let[r,n]=(0,L2.useState)(!c9e(t)||!l9e(t)),i=Zft(o),[s,a]=(0,L2.useState)({flat:typeof t=="string"?(0,ma.__experimentalParseQuantityAndUnitFromRawValue)(t)[1]:void 0,topLeft:(0,ma.__experimentalParseQuantityAndUnitFromRawValue)(t?.topLeft)[1],topRight:(0,ma.__experimentalParseQuantityAndUnitFromRawValue)(t?.topRight)[1],bottomLeft:(0,ma.__experimentalParseQuantityAndUnitFromRawValue)(t?.bottomLeft)[1],bottomRight:(0,ma.__experimentalParseQuantityAndUnitFromRawValue)(t?.bottomRight)[1]}),[l]=Fe("spacing.units"),d=(0,ma.__experimentalUseCustomUnits)({availableUnits:l||["px","em","rem"]}),u=()=>n(!r);return(0,im.jsxs)("fieldset",{className:"components-border-radius-control",children:[(0,im.jsxs)(ma.__experimentalHStack,{className:"components-border-radius-control__header",children:[(0,im.jsx)(ma.BaseControl.VisualLabel,{as:"legend",children:(0,fL.__)("Radius")}),(0,im.jsx)(i9e,{onClick:u,isLinked:r})]}),r?(0,im.jsx)(Jv,{ariaLabel:KJ.all,className:"components-border-radius-control",icon:qJ.all,minimumCustomValue:XJ,onChange:h9e("all",t,e),onUnitChange:b9e("all",s,a),presets:i,presetType:"border-radius",selectedUnit:g9e(s,"all"),showTooltip:!0,units:d,value:m9e(t,"all")}):(0,im.jsx)(ma.__experimentalVStack,{children:["topLeft","topRight","bottomLeft","bottomRight"].map(f=>(0,im.jsx)(Jv,{ariaLabel:KJ[f],className:"components-border-radius-control",icon:qJ[f],minimumCustomValue:XJ,onChange:h9e(f,t,e),onUnitChange:b9e(f,s,a),presets:i,presetType:"border-radius",selectedUnit:g9e(s,f),showTooltip:!0,units:d,value:m9e(t,f)},f))})]})}var y9e=c(Q(),1);var _9e=c(ue(),1);var v9e=c(T(),1),mL=(0,_9e.createHigherOrderComponent)(e=>function(o){let[r,n,i,s,a]=Fe("color.palette.default","color.palette.theme","color.palette.custom","color.custom","color.defaultPalette"),l=a?[...n||[],...r||[],...i||[]]:[...n||[],...i||[]],{colors:d=l,disableCustomColors:u=!s}=o,f=d&&d.length>0||!u;return(0,v9e.jsx)(e,{...o,colors:d,disableCustomColors:u,hasColorsToChoose:f})},"withColorContext");var w9e=mL(y9e.ColorPalette);var ZJ=c(X(),1),Ja=c(Q(),1);var or=c(T(),1),{Tabs:o1}=Z(Ja.privateApis),Qft=["colors","disableCustomColors","gradients","disableCustomGradients"],Qu={color:"color",gradient:"gradient"};function x9e({colors:e,gradients:t,disableCustomColors:o,disableCustomGradients:r,__experimentalIsRenderedInSidebar:n,className:i,label:s,onColorChange:a,onGradientChange:l,colorValue:d,colorSlug:u,gradientValue:f,gradientSlug:p,clearable:m,showTitle:g=!0,enableAlpha:h,headingLevel:b,noticeProps:v}){let _=a&&(e&&e.length>0||!o),y=l&&(t&&t.length>0||!r);if(!_&&!y)return null;let x=(0,or.jsx)(Ja.ColorPalette,{value:d,selectedSlug:u,onChange:y?(S,R,E)=>{a(S,E),l()}:(S,R,E)=>a(S,E),colors:e,disableCustomColors:o,__experimentalIsRenderedInSidebar:n,clearable:m,enableAlpha:h,headingLevel:b}),k={[Qu.color]:(0,or.jsxs)(or.Fragment,{children:[x,v&&(0,or.jsx)(Ja.Notice,{isDismissible:!1,...v})]}),[Qu.gradient]:(0,or.jsx)(Ja.GradientPicker,{value:f,selectedSlug:p,onChange:_?(S,R,E)=>{l(S,E),a()}:(S,R,E)=>l(S,E),gradients:t,disableCustomGradients:r,__experimentalIsRenderedInSidebar:n,clearable:m,headingLevel:b})},C=S=>(0,or.jsx)("div",{className:"block-editor-color-gradient-control__panel",children:k[S]});return(0,or.jsx)(Ja.BaseControl,{className:U("block-editor-color-gradient-control",i),children:(0,or.jsx)("fieldset",{className:"block-editor-color-gradient-control__fieldset",children:(0,or.jsxs)(Ja.__experimentalVStack,{spacing:1,children:[g&&(0,or.jsx)("legend",{children:(0,or.jsx)("div",{className:"block-editor-color-gradient-control__color-indicator",children:(0,or.jsx)(Ja.BaseControl.VisualLabel,{children:s})})}),_&&y&&(0,or.jsx)("div",{children:(0,or.jsxs)(o1,{defaultTabId:f?Qu.gradient:!!_&&Qu.color,children:[(0,or.jsxs)(o1.TabList,{children:[(0,or.jsx)(o1.Tab,{tabId:Qu.color,children:(0,ZJ.__)("Color")}),(0,or.jsx)(o1.Tab,{tabId:Qu.gradient,children:(0,ZJ.__)("Gradient")})]}),(0,or.jsx)(o1.TabPanel,{tabId:Qu.color,className:"block-editor-color-gradient-control__panel",focusable:!1,children:k.color}),(0,or.jsx)(o1.TabPanel,{tabId:Qu.gradient,className:"block-editor-color-gradient-control__panel",focusable:!1,children:k.gradient})]})}),!y&&C(Qu.color),!_&&C(Qu.gradient)]})})})}function Jft(e){let[t,o,r,n]=Fe("color.palette","color.gradients","color.custom","color.customGradient");return(0,or.jsx)(x9e,{colors:t,gradients:o,disableCustomColors:!r,disableCustomGradients:!n,...e})}function ept(e){return Qft.every(t=>e.hasOwnProperty(t))?(0,or.jsx)(x9e,{...e}):(0,or.jsx)(Jft,{...e})}var eb=ept;var k9e=c(T(),1);function S9e({onChange:e,value:t,...o}){return(0,k9e.jsx)(eb,{...o,onColorChange:e,colorValue:t,gradients:[],disableCustomGradients:!0})}var Td=c(X(),1),C9e=c(Q(),1),E9e=c(zo(),1),QJ=c(T(),1);Dm([Vm,Xy]);function JJ({backgroundColor:e,fallbackBackgroundColor:t,fallbackTextColor:o,fallbackLinkColor:r,fontSize:n,isLargeText:i,textColor:s,linkColor:a,messageOverride:l,enableAlphaChecker:d=!1}){let u=e||t;if(!u)return null;let f=s||o,p=a||r;if(!f&&!p)return null;let m=[{color:f,description:(0,Td.__)("text color")},{color:p,description:(0,Td.__)("link color")}],g=Zo(u),h=g.alpha()<1,b=g.brightness(),v={level:"AA",size:i||i!==!1&&n>=24?"large":"small"},_="",y="";for(let w of m){if(!w.color)continue;let x=Zo(w.color),k=x.isReadable(g,v),C=x.alpha()<1;if(!k){if(h||C)continue;if(l){_=l,y=l;break}_=b<x.brightness()?(0,Td.sprintf)((0,Td.__)("This color combination may be hard for people to read. Try using a darker background color and/or a brighter %s."),w.description):(0,Td.sprintf)((0,Td.__)("This color combination may be hard for people to read. Try using a brighter background color and/or a darker %s."),w.description),y=(0,Td.__)("This color combination may be hard for people to read.");break}C&&d&&(_=(0,Td.__)("Transparent text may be hard for people to read."),y=(0,Td.__)("Transparent text may be hard for people to read."))}return _?{message:_,speakMessage:y}:null}function tpt(e){let t=JJ(e);return t?((0,E9e.speak)(t.speakMessage),(0,QJ.jsx)("div",{className:"block-editor-contrast-checker",children:(0,QJ.jsx)(C9e.Notice,{spokenMessage:null,status:"warning",isDismissible:!1,children:t.message})})):null}var T9e=tpt;var ki=c(X(),1),D2=c(lc(),1),gL=c(D(),1),Id=c(Q(),1);var Rd=c(T(),1),tb=new Date;tb.setDate(20);tb.setMonth(tb.getMonth()-3);tb.getMonth()===4&&tb.setMonth(3);function I9e({format:e,defaultFormat:t,onChange:o}){return(0,Rd.jsxs)(Id.__experimentalVStack,{as:"fieldset",spacing:4,className:"block-editor-date-format-picker",children:[(0,Rd.jsx)(Et,{render:(0,Rd.jsx)("legend",{}),children:(0,ki.__)("Date format")}),(0,Rd.jsx)(Id.ToggleControl,{label:(0,ki.__)("Default format"),help:`${(0,ki.__)("Example:")} ${(0,D2.dateI18n)(t,tb)}`,checked:!e,onChange:r=>o(r?null:t)}),e&&(0,Rd.jsx)(opt,{format:e,onChange:o})]})}function opt({format:e,onChange:t}){let r=[...[...new Set(["Y-m-d",(0,ki._x)("n/j/Y","short date format"),(0,ki._x)("n/j/Y g:i A","short date format with time"),(0,ki._x)("M j, Y","medium date format"),(0,ki._x)("M j, Y g:i A","medium date format with time"),(0,ki._x)("F j, Y","long date format"),(0,ki._x)("M j","short date format without the year")])].map((a,l)=>({key:`suggested-${l}`,name:(0,D2.dateI18n)(a,tb),format:a})),{key:"human-diff",name:(0,D2.humanTimeDiff)(tb),format:"human-diff"}],n={key:"custom",name:(0,ki.__)("Custom"),className:"block-editor-date-format-picker__custom-format-select-control__custom-option",hint:(0,ki.__)("Enter your own date format")},[i,s]=(0,gL.useState)(()=>!!e&&!r.some(a=>a.format===e));return(0,Rd.jsxs)(Id.__experimentalVStack,{children:[(0,Rd.jsx)(Id.CustomSelectControl,{label:(0,ki.__)("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,Rd.jsx)(Id.TextControl,{label:(0,ki.__)("Custom format"),hideLabelFromVision:!0,help:(0,gL.createInterpolateElement)((0,ki.__)("Enter a date or time <Link>format string</Link>."),{Link:(0,Rd.jsx)(Id.ExternalLink,{href:(0,ki.__)("https://wordpress.org/documentation/article/customize-date-and-time-format/")})}),value:e,onChange:a=>t(a)})]})}var cc=c(Q(),1),V2=c(X(),1),P9e=c(Mo(),1);var B9e=c(ue(),1),Ju=c(T(),1);function O9e({id:e,colorPalette:t,duotonePalette:o,disableCustomColors:r,disableCustomDuotone:n,value:i,selectedSlug:s,onChange:a}){let l;i==="unset"?l=(0,Ju.jsx)(cc.ColorIndicator,{className:"block-editor-duotone-control__unset-indicator"}):i?l=(0,Ju.jsx)(cc.DuotoneSwatch,{values:i}):l=(0,Ju.jsx)(St,{icon:Nj});let d=(0,V2.__)("Apply duotone filter"),f=`${(0,B9e.useInstanceId)(O9e,"duotone-control",e)}__description`;return(0,Ju.jsx)(cc.Dropdown,{popoverProps:{className:"block-editor-duotone-control__popover",headerTitle:(0,V2.__)("Duotone")},renderToggle:({isOpen:p,onToggle:m})=>(0,Ju.jsx)(cc.ToolbarButton,{showTooltip:!0,onClick:m,"aria-haspopup":"true","aria-expanded":p,onKeyDown:h=>{!p&&h.keyCode===P9e.DOWN&&(h.preventDefault(),m())},label:d,icon:l}),renderContent:()=>(0,Ju.jsxs)(cc.MenuGroup,{label:(0,V2.__)("Duotone"),children:[(0,Ju.jsx)("p",{children:(0,V2.__)("Create a two-tone color effect without losing your original image.")}),(0,Ju.jsx)(cc.DuotonePicker,{"aria-label":d,"aria-describedby":f,colorPalette:t,duotonePalette:o,disableCustomColors:r,disableCustomDuotone:n,value:i,selectedSlug:s,onChange:a})]})})}var hL=O9e;var L9e=c(Q(),1),D9e=c(D(),1),el=c(X(),1);var qn=c(X(),1);var bL=c(X(),1);function M9e(e){if(!e)return{};if(typeof e=="object")return e;let t;switch(e){case"normal":t=(0,bL._x)("Regular","font style");break;case"italic":t=(0,bL._x)("Italic","font style");break;case"oblique":t=(0,bL._x)("Oblique","font style");break;default:t=e;break}return{name:t,value:e}}var Pd=c(X(),1);function eee(e){if(!e)return{};if(typeof e=="object")return e;let t;switch(e){case"normal":case"400":t=(0,Pd._x)("Regular","font weight");break;case"bold":case"700":t=(0,Pd._x)("Bold","font weight");break;case"100":t=(0,Pd._x)("Thin","font weight");break;case"200":t=(0,Pd._x)("Extra Light","font weight");break;case"300":t=(0,Pd._x)("Light","font weight");break;case"500":t=(0,Pd._x)("Medium","font weight");break;case"600":t=(0,Pd._x)("Semi Bold","font weight");break;case"800":t=(0,Pd._x)("Extra Bold","font weight");break;case"900":t=(0,Pd._x)("Black","font weight");break;case"1000":t=(0,Pd._x)("Extra Black","font weight");break;default:t=e;break}return{name:t,value:e}}var A9e=[{name:(0,qn._x)("Regular","font style"),value:"normal"},{name:(0,qn._x)("Italic","font style"),value:"italic"}],N9e=[{name:(0,qn._x)("Thin","font weight"),value:"100"},{name:(0,qn._x)("Extra Light","font weight"),value:"200"},{name:(0,qn._x)("Light","font weight"),value:"300"},{name:(0,qn._x)("Regular","font weight"),value:"400"},{name:(0,qn._x)("Medium","font weight"),value:"500"},{name:(0,qn._x)("Semi Bold","font weight"),value:"600"},{name:(0,qn._x)("Bold","font weight"),value:"700"},{name:(0,qn._x)("Extra Bold","font weight"),value:"800"},{name:(0,qn._x)("Black","font weight"),value:"900"},{name:(0,qn._x)("Extra Black","font weight"),value:"1000"}];function r1(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[d,u]=s.fontWeight.split(" "),f=parseInt(d.slice(0,1)),p=u==="1000"?10:parseInt(u.slice(0,1));for(let m=f;m<=p;m++){let g=`${m.toString()}00`;o.some(h=>h.value===g)||o.push(eee(g))}}let a=eee(typeof s.fontWeight=="number"?s.fontWeight.toString():s.fontWeight),l=M9e(s.fontStyle);l&&Object.keys(l).length&&(t.some(d=>d.value===l.value)||t.push(l)),a&&Object.keys(a).length&&(o.some(d=>d.value===a.value)||i||o.push(a))}),o.some(s=>(s.value??"")>="600")||o.push({name:(0,qn._x)("Bold","font weight"),value:"700"}),t.some(s=>s.value==="italic")||t.push({name:(0,qn._x)("Italic","font style"),value:"italic"}),n&&(t=A9e,o=N9e),t=t.length===0?A9e:t,o=o.length===0?N9e:o,t.forEach(({name:s,value:a})=>{o.forEach(({name:l,value:d})=>{let u=a==="normal"?l:(0,qn.sprintf)((0,qn._x)("%1$s %2$s","font"),l??"",s??"");r.push({key:`${a}-${d}`,name:u??"",style:{fontStyle:a,fontWeight:d}})})}),{fontStyles:t,fontWeights:o,combinedStyleAndWeightOptions:r,isSystemFont:n,isVariableFont:i}}var V9e=c(T(),1),rpt=(e,t)=>e?t?(0,el.__)("Appearance"):(0,el.__)("Font style"):(0,el.__)("Font weight");function _L(e){let{__next40pxDefaultSize:t,onChange:o,hasFontStyles:r=!0,hasFontWeights:n=!0,fontFamilyFaces:i,value:{fontStyle:s,fontWeight:a},...l}=e,d=r||n,u=rpt(r,n),f={key:"default",name:(0,el.__)("Default"),style:{fontStyle:void 0,fontWeight:void 0}},{fontStyles:p,fontWeights:m,combinedStyleAndWeightOptions:g}=r1(i),h=()=>{let x=[f];return g&&x.push(...g),x},b=()=>{let x=[f];return p.forEach(({name:k,value:C})=>{x.push({key:C,name:k,style:{fontStyle:C,fontWeight:void 0}})}),x},v=()=>{let x=[f];return m.forEach(({name:k,value:C})=>{x.push({key:C,name:k,style:{fontStyle:void 0,fontWeight:C}})}),x},_=(0,D9e.useMemo)(()=>r&&n?h():r?b():v(),[e.options,p,m,g]),y=_.find(x=>x.style.fontStyle===s&&x.style.fontWeight===a)||_[0];return d&&(0,V9e.jsx)(L9e.CustomSelectControl,{...l,className:"components-font-appearance-control",label:u,describedBy:y?r?n?(0,el.sprintf)((0,el.__)("Currently selected font appearance: %s"),y.name):(0,el.sprintf)((0,el.__)("Currently selected font style: %s"),y.name):(0,el.sprintf)((0,el.__)("Currently selected font weight: %s"),y.name):(0,el.__)("No selected font appearance"),options:_,value:y,onChange:({selectedItem:x})=>o(x.style)})}var F9e=c(Q(),1),tee=c(X(),1);var z9e=c(T(),1);function vL({__next40pxDefaultSize:e,value:t="",onChange:o,fontFamilies:r,className:n,...i}){let[s]=Fe("typography.fontFamilies");if(r||(r=s),!r||r.length===0)return null;let a=[{key:"",name:(0,tee.__)("Default")},...r.map(({fontFamily:d,name:u})=>({key:d,name:u||d,style:{fontFamily:d}}))],l=a.find(d=>d.key===t)??"";return(0,z9e.jsx)(F9e.CustomSelectControl,{label:(0,tee.__)("Font"),value:l,onChange:({selectedItem:d})=>o(d.key),options:a,className:U("block-editor-font-family-control",n),...i})}var yL=c(Q(),1),j9e=c(X(),1);var H9e=c(T(),1);function wL({value:e,onChange:t,__unstableInputWidth:o="60px",...r}){let[n]=Fe("spacing.units"),i=(0,yL.__experimentalUseCustomUnits)({availableUnits:n||["px","em","rem"],defaultValues:{px:2,em:.2,rem:.2}});return(0,H9e.jsx)(yL.__experimentalUnitControl,{...r,label:(0,j9e.__)("Letter spacing"),value:e,__unstableInputWidth:o,units:i,onChange:t})}var F2=c(X(),1),xL=c(Q(),1),oee=c(T(),1),npt=[{label:(0,F2.__)("None"),value:"none",icon:Rn},{label:(0,F2.__)("Underline"),value:"underline",icon:zj},{label:(0,F2.__)("Strikethrough"),value:"line-through",icon:Fj}];function kL({value:e,onChange:t,className:o}){return(0,oee.jsx)(xL.__experimentalToggleGroupControl,{isDeselectable:!0,label:(0,F2.__)("Decoration"),className:U("block-editor-text-decoration-control",o),value:e,onChange:r=>{t(r===e?void 0:r)},children:npt.map(r=>(0,oee.jsx)(xL.__experimentalToggleGroupControlOptionIcon,{value:r.value,icon:r.icon,label:r.label},r.value))})}var n1=c(X(),1);var SL=c(Q(),1),ree=c(T(),1),ipt=[{label:(0,n1.__)("None"),value:"none",icon:Rn},{label:(0,n1.__)("Uppercase"),value:"uppercase",icon:jj},{label:(0,n1.__)("Lowercase"),value:"lowercase",icon:Dj},{label:(0,n1.__)("Capitalize"),value:"capitalize",icon:Lj}];function CL({className:e,value:t,onChange:o}){return(0,ree.jsx)(SL.__experimentalToggleGroupControl,{isDeselectable:!0,label:(0,n1.__)("Letter case"),className:U("block-editor-text-transform-control",e),value:t,onChange:r=>{o(r===t?void 0:r)},children:ipt.map(r=>(0,ree.jsx)(SL.__experimentalToggleGroupControlOptionIcon,{value:r.value,icon:r.icon,label:r.label},r.value))})}var i1=c(X(),1);var EL=c(Q(),1),nee=c(T(),1),spt=[{label:(0,i1.__)("Horizontal"),value:"horizontal-tb",icon:ZH},{label:(0,i1.__)("Vertical"),value:(0,i1.isRTL)()?"vertical-lr":"vertical-rl",icon:JH}];function TL({className:e,value:t,onChange:o}){return(0,nee.jsx)(EL.__experimentalToggleGroupControl,{isDeselectable:!0,label:(0,i1.__)("Orientation"),className:U("block-editor-writing-mode-control",e),value:t,onChange:r=>{o(r===t?void 0:r)},children:spt.map(r=>(0,nee.jsx)(EL.__experimentalToggleGroupControlOptionIcon,{value:r.value,icon:r.icon,label:r.label},r.value))})}var As=c(Q(),1),U9e=c(D(),1),W9e=c(X(),1);var Nn=c(T(),1),apt=({setting:e,children:t,panelId:o,...r})=>{let n=()=>{e.colorValue?e.onColorChange():e.gradientValue&&e.onGradientChange()};return(0,Nn.jsx)(As.__experimentalToolsPanelItem,{hasValue:()=>!!e.colorValue||!!e.gradientValue,label:e.label,onDeselect:n,isShownByDefault:e.isShownByDefault!==void 0?e.isShownByDefault:!0,...r,className:U("block-editor-color-gradient-item","block-editor-tools-panel-color-gradient-settings__item"),panelId:o,resetAllFilter:e.resetAllFilter,children:t})},lpt=({colorValue:e,label:t})=>(0,Nn.jsxs)(As.__experimentalHStack,{justify:"flex-start",children:[(0,Nn.jsx)(As.ColorIndicator,{className:"block-editor-panel-color-gradient-settings__color-indicator",colorValue:e}),(0,Nn.jsx)(As.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",title:t,children:t})]}),cpt=e=>function({onToggle:o,isOpen:r}){let{clearable:n,colorValue:i,gradientValue:s,onColorChange:a,onGradientChange:l,label:d}=e,u=(0,U9e.useRef)(void 0),f={onClick:o,className:U("block-editor-panel-color-gradient-settings__dropdown",{"is-open":r}),"aria-expanded":r,ref:u},p=()=>{i?a():s&&l()},m=i??s;return(0,Nn.jsxs)(Nn.Fragment,{children:[(0,Nn.jsx)(As.Button,{__next40pxDefaultSize:!0,...f,children:(0,Nn.jsx)(lpt,{colorValue:m,label:d})}),n&&m&&(0,Nn.jsx)(As.Button,{__next40pxDefaultSize:!0,label:(0,W9e.__)("Reset"),className:"block-editor-panel-color-gradient-settings__reset",size:"small",icon:Rn,onClick:()=>{p(),r&&o(),u.current?.focus()}})]})};function RL({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,Nn.jsx)(Nn.Fragment,{children:i.map((d,u)=>{let f={clearable:!1,colorValue:d.colorValue,colors:e,disableCustomColors:t,disableCustomGradients:o,enableAlpha:r,gradientValue:d.gradientValue,gradients:n,label:d.label,onColorChange:d.onColorChange,onGradientChange:d.onGradientChange,showTitle:!1,__experimentalIsRenderedInSidebar:s,...d},p={clearable:d.clearable,label:d.label,colorValue:d.colorValue,gradientValue:d.gradientValue,onColorChange:d.onColorChange,onGradientChange:d.onGradientChange};return d&&(0,Nn.jsx)(apt,{setting:d,...a,children:(0,Nn.jsx)(As.Dropdown,{popoverProps:l,className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:cpt(p),renderContent:()=>(0,Nn.jsx)(As.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,Nn.jsx)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:(0,Nn.jsx)(eb,{...f})})})})},u)})})}var IL=c(Q(),1),G9e=c(oe(),1),$9e=c(ue(),1);var iee=c(D(),1),ey=c(X(),1);function ob(){let[e,t,o,r,n,i,s,a,l,d]=Fe("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"),u={disableCustomColors:!e,disableCustomGradients:!i};return u.colors=(0,iee.useMemo)(()=>{let f=[];return o&&o.length&&f.push({name:(0,ey._x)("Theme","Indicates this palette comes from the theme."),slug:"theme",colors:o}),n&&r&&r.length&&f.push({name:(0,ey._x)("Default","Indicates this palette comes from WordPress."),slug:"default",colors:r}),t&&t.length&&f.push({name:(0,ey._x)("Custom","Indicates this palette is created by the user."),slug:"custom",colors:t}),f},[t,o,r,n]),u.gradients=(0,iee.useMemo)(()=>{let f=[];return a&&a.length&&f.push({name:(0,ey._x)("Theme","Indicates this palette comes from the theme."),slug:"theme",gradients:a}),d&&l&&l.length&&f.push({name:(0,ey._x)("Default","Indicates this palette comes from WordPress."),slug:"default",gradients:l}),s&&s.length&&f.push({name:(0,ey._x)("Custom","Indicates this palette is created by the user."),slug:"custom",gradients:s}),f},[s,a,l,d]),u.hasColorsOrGradients=!!u.colors.length||!!u.gradients.length,u}var dc=c(T(),1),dpt=["colors","disableCustomColors","gradients","disableCustomGradients"],see=({className:e,colors:t,gradients:o,disableCustomColors:r,disableCustomGradients:n,children:i,settings:s,title:a,showTitle:l=!0,__experimentalIsRenderedInSidebar:d,enableAlpha:u})=>{let f=(0,$9e.useInstanceId)(see),{batch:p}=(0,G9e.useRegistry)();return(!t||t.length===0)&&(!o||o.length===0)&&r&&n&&s?.every(m=>(!m.colors||m.colors.length===0)&&(!m.gradients||m.gradients.length===0)&&(m.disableCustomColors===void 0||m.disableCustomColors)&&(m.disableCustomGradients===void 0||m.disableCustomGradients))?null:(0,dc.jsx)(IL.__experimentalToolsPanel,{className:U("block-editor-panel-color-gradient-settings",e),hasInnerWrapper:!0,label:l?a:void 0,resetAll:()=>{p(()=>{s.forEach(({colorValue:m,gradientValue:g,onColorChange:h,onGradientChange:b})=>{m?h():g&&b()})})},panelId:f,__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last",children:(0,dc.jsxs)("div",{className:"block-editor-panel-color-gradient-settings__inner-wrapper",children:[(0,dc.jsx)(RL,{settings:s,panelId:f,colors:t,gradients:o,disableCustomColors:r,disableCustomGradients:n,__experimentalIsRenderedInSidebar:d,enableAlpha:u}),!!i&&(0,dc.jsxs)(dc.Fragment,{children:[(0,dc.jsx)(IL.__experimentalSpacer,{marginTop:4,marginBottom:0}),i]})]})})},upt=e=>{let t=ob();return(0,dc.jsx)(see,{...t,...e})},fpt=e=>dpt.every(t=>e.hasOwnProperty(t))?(0,dc.jsx)(see,{...e}):(0,dc.jsx)(upt,{...e}),PL=fpt;var BL=c(D(),1),ty=c(Q(),1),lee=c(X(),1);var z2=c(T(),1),aee=[],ppt={...cL,px:{max:1e3,steps:1},em:{max:50,steps:.1},rem:{max:50,steps:.1}};function mpt(e){let t=e?.default??aee,o=e?.custom??aee,r=e?.theme??aee;return(0,BL.useMemo)(()=>[{name:(0,lee.__)("None"),slug:"0",size:0},...o,...r,...t],[o,r,t])}function oy({label:e=(0,lee.__)("Dimension"),onChange:t,value:o,placeholder:r,className:n,dimensionSizes:i}){let[s,a]=Fe("dimensions.dimensionSizes","spacing.units"),l=i??s,d=(0,ty.__experimentalUseCustomUnits)({availableUnits:a||["%","px","em","rem","vh","vw"]}),u=mpt(l),[f,p]=(0,BL.useState)(()=>{let[,g]=(0,ty.__experimentalParseQuantityAndUnitFromRawValue)(o);return g||d[0]?.value||"px"}),m=g=>{let[h,b]=(0,ty.__experimentalParseQuantityAndUnitFromRawValue)(o);["em","rem"].includes(g)&&b==="px"?t((h/16).toFixed(2)+g):["em","rem"].includes(b)&&g==="px"?t(Math.round(h*16)+g):["%","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(g)&&h>100&&t(100+g),p(g)};return(0,z2.jsxs)("fieldset",{className:U("block-editor-dimension-control",n),children:[(0,z2.jsx)(ty.BaseControl.VisualLabel,{as:"legend",children:e}),(0,z2.jsx)(Jv,{ariaLabel:e,className:"block-editor-dimension-control",customValueSettings:ppt,minimumCustomValue:0,onChange:t,onUnitChange:m,placeholder:r,presets:u,presetType:"dimension",selectedUnit:f,showTooltip:!0,units:d,value:o})]})}var K9e=c(D(),1),Xn=c(Q(),1),q9e=c(X(),1),X9e=c(Gt(),1);var ef=c(T(),1),Y9e={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 Z9e({label:e=(0,q9e.__)("Height"),onChange:t,value:o}){(0,X9e.default)("wp.blockEditor.HeightControl",{since:"7.0",version:"7.2",alternative:"wp.blockEditor.DimensionControl"});let r=parseFloat(o),[n]=Fe("spacing.units"),i=(0,Xn.__experimentalUseCustomUnits)({availableUnits:n||["%","px","em","rem","vh","vw"]}),s=(0,K9e.useMemo)(()=>(0,Xn.__experimentalParseQuantityAndUnitFromRawValue)(o),[o])[1]||i[0]?.value||"px",a=d=>{t([d,s].join(""))},l=d=>{let[u,f]=(0,Xn.__experimentalParseQuantityAndUnitFromRawValue)(o);["em","rem"].includes(d)&&f==="px"?t((u/16).toFixed(2)+d):["em","rem"].includes(f)&&d==="px"?t(Math.round(u*16)+d):["%","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(d)&&u>100&&t(100+d)};return(0,ef.jsxs)("fieldset",{className:"block-editor-height-control",children:[(0,ef.jsx)(Xn.BaseControl.VisualLabel,{as:"legend",children:e}),(0,ef.jsxs)(Xn.Flex,{children:[(0,ef.jsx)(Xn.FlexItem,{isBlock:!0,children:(0,ef.jsx)(Xn.__experimentalUnitControl,{value:o,units:i,onChange:t,onUnitChange:l,min:0,label:e,hideLabelFromVision:!0})}),(0,ef.jsx)(Xn.FlexItem,{isBlock:!0,children:(0,ef.jsx)(Xn.__experimentalSpacer,{marginX:2,marginBottom:0,children:(0,ef.jsx)(Xn.RangeControl,{value:r,min:0,max:Y9e[s]?.max??100,step:Y9e[s]?.step??.1,withInputField:!1,onChange:a,label:e,hideLabelFromVision:!0})})})]})]})}var W2=c(Q(),1),eBe=c(Gt(),1);var uc=c(te()),kPe=c(_Pe());function vpt(e,t,o,r,n,i){i===void 0&&(i=0);var s=s1(e,t,i),a=s.width,l=s.height,d=Math.min(a,o),u=Math.min(l,r);return d>u*n?{width:u*n,height:u}:{width:d,height:d/n}}function ypt(e){return e.width>e.height?e.width/e.naturalWidth:e.height/e.naturalHeight}function j2(e,t,o,r,n){n===void 0&&(n=0);var i=s1(t.width,t.height,n),s=i.width,a=i.height;return{x:vPe(e.x,s,o.width,r),y:vPe(e.y,a,o.height,r)}}function vPe(e,t,o,r){var n=t*r/2-o/2;return DL(e,-n,n)}function yPe(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function wPe(e,t){return Math.atan2(t.y-e.y,t.x-e.x)*180/Math.PI}function wpt(e,t,o,r,n,i,s){i===void 0&&(i=0),s===void 0&&(s=!0);var a=s?xpt:kpt,l=s1(t.width,t.height,i),d=s1(t.naturalWidth,t.naturalHeight,i),u={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(d.width,u.width*d.width/100)),p=Math.round(a(d.height,u.height*d.height/100)),m=d.width>=d.height*r,g=m?{width:Math.round(p*r),height:p}:{width:f,height:Math.round(f/r)},h=vr(vr({},g),{x:Math.round(a(d.width-g.width,u.x*d.width/100)),y:Math.round(a(d.height-g.height,u.y*d.height/100))});return{croppedAreaPercentages:u,croppedAreaPixels:h}}function xpt(e,t){return Math.min(e,Math.max(0,t))}function kpt(e,t){return t}function Spt(e,t,o,r,n,i){var s=s1(t.width,t.height,o),a=DL(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 Cpt(e,t,o){var r=ypt(t);return o.height>o.width?o.height/(e.height*r):o.width/(e.width*r)}function Ept(e,t,o,r,n,i){o===void 0&&(o=0);var s=s1(t.naturalWidth,t.naturalHeight,o),a=DL(Cpt(e,t,r),n,i),l=r.height>r.width?r.height/e.height:r.width/e.width,d={x:((s.width-e.width)/2-e.x)*l,y:((s.height-e.height)/2-e.y)*l};return{crop:d,zoom:a}}function xPe(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function Tpt(e){return e*Math.PI/180}function s1(e,t,o){var r=Tpt(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 DL(e,t,o){return Math.min(Math.max(e,t),o)}function LL(){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 Rpt=`.reactEasyCrop_Container { | |
| 127 | 128 | position: absolute; |
| 128 | 129 | top: 0; |
| 129 | 130 | left: 0; |
| 130 | 131 | right: 0; |
| @@ -202,36 +203,29 @@ | ||
| 202 | 203 | right: 0; |
| 203 | 204 | border-left: 0; |
| 204 | 205 | border-right: 0; |
| 205 | 206 | } |
| 206 | -`,iit=1,sit=3,ait=1,aBe=(function(e){Wee(t,e);function t(){var o=e!==null&&e.apply(this,arguments)||this;return o.cropperRef=Kl.createRef(),o.imageRef=Kl.createRef(),o.videoRef=Kl.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=eit(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=oit(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,p=((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,m=u.offsetWidth<f||u.offsetHeight<p,g=f/p,h=void 0;if(m)switch(o.state.mediaObjectFit){default:case"contain":h=d>g?{width:o.containerRect.height*g,height:o.containerRect.height}:{width:o.containerRect.width,height:o.containerRect.width/g};break;case"horizontal-cover":h={width:o.containerRect.width,height:o.containerRect.width/g};break;case"vertical-cover":h={width:o.containerRect.height*g,height:o.containerRect.height};break}else h={width:u.offsetWidth,height:u.offsetHeight};o.mediaSize=gr(gr({},h),{naturalWidth:f,naturalHeight:p}),o.props.setMediaSize&&o.props.setMediaSize(o.mediaSize);var b=o.props.cropSize?o.props.cropSize:qnt(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=gr({},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?YT(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,sBe.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=$3(r,o.props.minZoom,o.props.maxZoom);if(l){var d=o.getPointOnContainer(n,o.containerPosition),f=o.getPointOnMedia(d),p={x:f.x*u-d.x,y:f.y*u-d.y},m=o.props.restrictPosition?YT(p,o.mediaSize,o.state.cropSize,u,o.props.rotation):p;o.props.onCropChange(m)}o.props.onZoomChange(u)}},o.getCropData=function(){if(!o.state.cropSize)return null;var r=o.props.restrictPosition?YT(o.props.crop,o.mediaSize,o.state.cropSize,o.props.zoom,o.props.rotation):o.props.crop;return Xnt(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?YT(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,p=u;if(o.state.cropSize){r.shiftKey&&(p*=.2);var m=gr({},a);switch(r.key){case"ArrowUp":m.y-=p,r.preventDefault();break;case"ArrowDown":m.y+=p,r.preventDefault();break;case"ArrowLeft":m.x-=p,r.preventDefault();break;case"ArrowRight":m.x+=p,r.preventDefault();break;default:return}o.props.restrictPosition&&(m=YT(m,o.mediaSize,o.state.cropSize,d,f)),r.repeat||(i=(n=o.props).onInteractionStart)===null||i===void 0||i.call(n),l(m)}},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=nit,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 p=this.getObjectFit();p!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:p},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=rBe(r,n),this.lastPinchRotation=nBe(r,n),this.onDragStart(iBe(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=iBe(n,i);this.onDrag(s),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame(function(){var a=rBe(n,i),l=r.props.zoom*(a/r.lastPinchDistance);r.setNewZoom(l,s,{shouldUpdatePosition:!1}),r.lastPinchDistance=a;var u=nBe(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,p=d.y,m=n.rotation,g=n.zoom,h=n.cropShape,b=n.showGrid,v=n.roundCropAreaPixels,y=n.style,_=y.containerStyle,w=y.cropAreaStyle,k=y.mediaStyle,x=n.classes,S=x.containerClassName,C=x.cropAreaClassName,R=x.mediaClassName,E=(r=this.state.mediaObjectFit)!==null&&r!==void 0?r:this.getObjectFit();return Kl.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(O){return o.containerRef=O},"data-testid":"container",style:_,className:G3("reactEasyCrop_Container",S)},i?Kl.createElement("img",gr({alt:"",className:G3("reactEasyCrop_Image",E==="contain"&&"reactEasyCrop_Contain",E==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",E==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",R)},a,{src:i,ref:this.imageRef,style:gr(gr({},k),{transform:u||"translate(".concat(f,"px, ").concat(p,"px) rotate(").concat(m,"deg) scale(").concat(g,")")}),onLoad:this.onMediaLoad})):s&&Kl.createElement("video",gr({autoPlay:!0,playsInline:!0,loop:!0,muted:!0,className:G3("reactEasyCrop_Video",E==="contain"&&"reactEasyCrop_Contain",E==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",E==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",R)},a,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:gr(gr({},k),{transform:u||"translate(".concat(f,"px, ").concat(p,"px) rotate(").concat(m,"deg) scale(").concat(g,")")}),controls:!1}),(Array.isArray(s)?s:[{src:s}]).map(function(I){return Kl.createElement("source",gr({key:I.src},I))})),this.state.cropSize&&Kl.createElement("div",gr({ref:this.cropperRef,style:gr(gr({},w),{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:G3("reactEasyCrop_CropArea",h==="round"&&"reactEasyCrop_CropAreaRound",b&&"reactEasyCrop_CropAreaGrid",C)},l)))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:sit,minZoom:iit,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},cropperProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0,keyboardStep:ait},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})(Kl.Component);var hBe=c(F(),1);var eS=c(F(),1);var lBe=Object.prototype.hasOwnProperty;function cBe(e,t,o){for(o of e.keys())if(gv(o,t))return o}function gv(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--&&gv(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=cBe(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=cBe(t,n),!n)||!gv(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(lBe.call(e,o)&&++r&&!lBe.call(t,o)||!(o in t)||!gv(e[o],t[o]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}var fu=c(F(),1);var Jx=1,uBe=5;var Y3=e=>e>=0?e%360:(360+e%360)%360,lit=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 dBe(e){return e*Math.PI/180}function cit(e,t,o){let r=dBe(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 fBe(e,t,o=0,r={horizontal:!1,vertical:!1}){try{let n=await lit(e),i=document.createElement("canvas"),s=i.getContext("2d");if(!s)return null;let a=dBe(o),{width:l,height:u}=cit(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(p=>{d.toBlob(m=>{m&&p(URL.createObjectURL(m))},"image/jpeg")})):null}catch{return null}}var hv={crop:{x:0,y:0,width:100,height:100},zoom:Jx,rotation:0,aspectRatio:1,flip:{horizontal:!1,vertical:!1}},uit={x:0,y:0},QZ={crop:uit,croppedArea:hv.crop,croppedAreaPixels:null,zoom:hv.zoom,rotation:hv.rotation,flip:hv.flip,aspectRatio:hv.aspectRatio,mediaSize:null};function pBe(){let[e,t]=(0,fu.useState)(QZ),[o,r]=(0,fu.useState)(null),n=(0,fu.useCallback)(u=>{t(d=>{let p={...typeof u=="function"?u(d):u};return"rotation"in p&&p.rotation!==void 0&&(p.rotation=Y3(p.rotation)),{...d,...p}})},[]),i=(0,fu.useCallback)((u=null)=>{if(!u){r(null),n(QZ);return}if(typeof u=="object"){let d={...hv,...u};r(d),n(d)}},[n,r]),s=(0,fu.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({...QZ})},[o,n]),a=(0,fu.useMemo)(()=>{if(o){let d={crop:e.croppedAreaPixels||e.croppedArea,zoom:e.zoom,rotation:Y3(e.rotation),aspectRatio:e.aspectRatio,flip:e.flip};return gv(d,o)===!1}let u={crop:e.croppedArea,zoom:e.zoom,rotation:Y3(e.rotation),aspectRatio:e.aspectRatio,flip:e.flip};return gv(u,hv)===!1},[e,o]),l=(0,fu.useCallback)(async u=>e.croppedAreaPixels?fBe(u,e.croppedAreaPixels,e.rotation,e.flip):null,[e.croppedAreaPixels,e.rotation,e.flip]);return(0,fu.useMemo)(()=>({cropperState:e,setCropperState:n,resetState:o,setResetState:i,isDirty:a,reset:s,getCroppedImage:l}),[e,n,o,i,a,s,l])}var mBe=c(T(),1),gBe=(0,eS.createContext)({cropperState:{crop:{x:0,y:0},croppedArea:{x:0,y:0,width:100,height:100},croppedAreaPixels:null,zoom:Jx,rotation:0,aspectRatio:1,flip:{horizontal:!1,vertical:!1},mediaSize:null},setCropperState:()=>{},resetState:null,setResetState:()=>{},isDirty:!1,reset:()=>{},getCroppedImage:()=>Promise.resolve(null)});function JZ({children:e}){let t=pBe(),o=(0,eS.useMemo)(()=>({...t}),[t]);return(0,mBe.jsx)(gBe.Provider,{value:o,children:e})}var KT=()=>{let e=(0,eS.useContext)(gBe);if(!e)throw new Error("Missing ImageCropperContext");return e};var bBe=c(T(),1);function eX({src:e,onLoad:t,minZoom:o=Jx,maxZoom:r=uBe,...n}){let{cropperState:i,setCropperState:s}=KT(),{crop:a,zoom:l,rotation:u,aspectRatio:d,flip:f}=i,p=v=>s({crop:v}),m=v=>s({zoom:v}),g=v=>s({rotation:v}),h=v=>s({mediaSize:v}),b=(0,hBe.useCallback)((v,y)=>{s({croppedArea:v,croppedAreaPixels:y})},[s]);return(0,bBe.jsx)(aBe,{classes:{containerClassName:"image-cropper__container",cropAreaClassName:"image-cropper__crop-area",mediaClassName:"image-cropper__image"},minZoom:o,maxZoom:r,rotation:u,image:e,setMediaSize:h,crop:a,zoom:l,aspect:d,onCropChange:p,onZoomChange:m,onCropComplete:b,onMediaLoaded:v=>{t?.(v)},onRotationChange:g,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 rS=c(Y(),1),oS=c(q(),1);var yBe=100,vBe=300,K3={placement:"bottom-start"};var tS=c(F(),1);var q3=c(te(),1),bv=c(F(),1),Ip=c(q(),1),_Be=c(Ls(),1),wBe=c(Lt(),1);var dit={crop:(0,Ip.__)("Image cropped."),rotate:(0,Ip.__)("Image rotated."),cropAndRotate:(0,Ip.__)("Image cropped and rotated.")};function kBe({crop:e,rotation:t,url:o,id:r,onSaveImage:n,onFinishEditing:i}){let{createErrorNotice:s,createSuccessNotice:a}=(0,q3.useDispatch)(_Be.store),[l,u]=(0,bv.useState)(!1),{editMediaEntity:d}=(0,q3.useSelect)(m=>({editMediaEntity:m(B).getSettings()?.[DB]}),[]),f=(0,bv.useCallback)(()=>{u(!1),i()},[i]),p=(0,bv.useCallback)(async()=>{if(!d){i(),s((0,Ip.__)("Sorry, you are not allowed to edit images on this site."),{id:"image-editing-error",type:"snackbar"});return}u(!0);let m=[];if(t>0&&m.push({type:"rotate",args:{angle:t}}),(e.width<99.9||e.height<99.9)&&m.push({type:"crop",args:{left:e.x,top:e.y,width:e.width,height:e.height}}),m.length===0){u(!1),i();return}let g=m.length===1?m[0].type:"cropAndRotate";try{let h=await d(r,{src:o,modifiers:m},{throwOnError:!0});h&&(n({id:h.id,url:h.source_url}),a(dit[g],{type:"snackbar",actions:[{label:(0,Ip.__)("Undo"),onClick:()=>{n({id:r,url:o})}}]}))}catch(h){s((0,Ip.sprintf)((0,Ip.__)("Could not edit image. %s"),(0,wBe.__unstableStripHTML)(h.message)),{id:"image-editing-error",type:"snackbar"})}finally{u(!1),i()}},[e,t,r,o,n,s,a,i,d]);return(0,bv.useMemo)(()=>({isInProgress:l,apply:p,cancel:f}),[l,p,f])}var pu=c(F(),1),xBe=c(Bo(),1);function SBe({url:e,naturalWidth:t,naturalHeight:o}){let[r,n]=(0,pu.useState)(),{cropperState:i,setCropperState:s}=KT(),{zoom:a,aspectRatio:l,crop:u,croppedArea:d}=i,f=(0,pu.useCallback)(y=>{s({zoom:y})},[s]),p=(0,pu.useCallback)(y=>{s({aspectRatio:y})},[s]),m=t/o,g=o/t;(0,pu.useEffect)(()=>{p(m)},[]);let[h,b]=(0,pu.useState)(0),v=(0,pu.useCallback)(()=>{let y=(h+90)%360,_=m,k=a!==1||!(m===l||g===l);if(h%180===90&&(_=1/m),y===0){n(),b(y),s({aspectRatio:k?l:m,crop:{x:-(u.y*_),y:u.x*_}});return}function x(R){let E=document.createElement("canvas"),I=0,O=0;y%180?(E.width=R.target.height,E.height=R.target.width):(E.width=R.target.width,E.height=R.target.height),(y===90||y===180)&&(I=E.width),(y===270||y===180)&&(O=E.height);let A=E.getContext("2d");A.translate(I,O),A.rotate(y*Math.PI/180),A.drawImage(R.target,0,0),E.toBlob(P=>{n(URL.createObjectURL(P)),b(y);let L=k?l:E.width/E.height;s({aspectRatio:L,crop:{x:-(u.y*_),y:u.x*_}})})}let S=new window.Image;S.src=e,S.onload=x;let C=(0,xBe.applyFilters)("media.crossOrigin",void 0,e);typeof C=="string"&&(S.crossOrigin=C)},[h,m,e,s,u,a,l,g,b]);return(0,pu.useMemo)(()=>({editedUrl:r,setEditedUrl:n,crop:d,zoom:a,setZoom:f,rotation:h,rotateClockwise:v,aspect:l,setAspect:p,defaultAspect:m}),[r,d,a,f,h,v,l,p,m])}var CBe=c(T(),1),tX=(0,tS.createContext)({});tX.displayName="ImageEditingContext";var Nd=()=>(0,tS.useContext)(tX);function EBe({id:e,url:t,naturalWidth:o,naturalHeight:r,onFinishEditing:n,onSaveImage:i,children:s}){let a=SBe({url:t,naturalWidth:o,naturalHeight:r}),l=kBe({id:e,url:t,onSaveImage:i,onFinishEditing:n,...a}),u=(0,tS.useMemo)(()=>({...a,...l}),[a,l]);return(0,CBe.jsx)(tX.Provider,{value:u,children:s})}var ql=c(T(),1);function Z3({aspectRatios:e,isDisabled:t,label:o,onClick:r,value:n}){return(0,ql.jsx)(rS.MenuGroup,{label:o,children:e.map(({name:i,slug:s,ratio:a})=>(0,ql.jsx)(rS.MenuItem,{disabled:t,onClick:()=>{r(a)},role:"menuitemradio",isSelected:a===n,icon:a===n?Os:void 0,children:i},s))})}function fit(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 oX({ratio:e,...t}){return{ratio:fit(e),...t}}function TBe({toggleProps:e}){let{isInProgress:t,aspect:o,setAspect:r,defaultAspect:n}=Nd(),[i,s,a]=je("dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios");return(0,ql.jsx)(rS.DropdownMenu,{icon:vz,label:(0,oS.__)("Aspect Ratio"),popoverProps:K3,toggleProps:e,children:({onClose:l})=>(0,ql.jsxs)(ql.Fragment,{children:[(0,ql.jsx)(Z3,{isDisabled:t,onClick:u=>{r(u),l()},value:o,aspectRatios:[{slug:"original",name:(0,oS.__)("Original"),ratio:n},...a?i.map(oX).filter(({ratio:u})=>u===1):[]]}),s?.length>0&&(0,ql.jsx)(Z3,{label:(0,oS.__)("Theme"),isDisabled:t,onClick:u=>{r(u),l()},value:o,aspectRatios:s}),a&&(0,ql.jsx)(Z3,{label:(0,oS.__)("Landscape"),isDisabled:t,onClick:u=>{r(u),l()},value:o,aspectRatios:i.map(oX).filter(({ratio:u})=>u>1)}),a&&(0,ql.jsx)(Z3,{label:(0,oS.__)("Portrait"),isDisabled:t,onClick:u=>{r(u),l()},value:o,aspectRatios:i.map(oX).filter(({ratio:u})=>u<1)})]})})}var RBe=c(Y(),1),BBe=c(ue(),1);var hh=c(T(),1);function IBe({url:e,width:t,height:o,naturalHeight:r,naturalWidth:n,borderProps:i}){let{isInProgress:s,editedUrl:a,rotation:l}=Nd(),[u,{width:d}]=(0,BBe.useResizeObserver)(),f=o||d*r/n;l%180===90&&(f=d*n/r);let p=(0,hh.jsxs)("div",{className:$("wp-block-image__crop-area",i?.className,{"is-applying":s}),style:{...i?.style,width:t||d,height:f},children:[(0,hh.jsx)(eX,{src:a||e}),s&&(0,hh.jsx)(RBe.Spinner,{})]});return(0,hh.jsxs)(hh.Fragment,{children:[u,p]})}var bh=c(Y(),1),rX=c(q(),1);var qT=c(T(),1);function PBe(){let{isInProgress:e,zoom:t,setZoom:o}=Nd();return(0,qT.jsx)(bh.Dropdown,{contentClassName:"wp-block-image__zoom",popoverProps:K3,renderToggle:({isOpen:r,onToggle:n})=>(0,qT.jsx)(bh.ToolbarButton,{icon:I9,label:(0,rX.__)("Zoom"),onClick:n,"aria-expanded":r,disabled:e}),renderContent:()=>(0,qT.jsx)(bh.__experimentalDropdownContentWrapper,{paddingSize:"medium",children:(0,qT.jsx)(bh.RangeControl,{label:(0,rX.__)("Zoom"),min:yBe,max:vBe,value:Math.round(t*100),onChange:r=>o(r/100)})})})}var OBe=c(Y(),1),ABe=c(q(),1);var MBe=c(T(),1);function NBe(){let{isInProgress:e,rotateClockwise:t}=Nd();return(0,MBe.jsx)(OBe.ToolbarButton,{icon:E9,label:(0,ABe.__)("Rotate"),onClick:t,disabled:e})}var nX=c(Y(),1),iX=c(q(),1);var yv=c(T(),1);function LBe(){let{isInProgress:e,apply:t,cancel:o}=Nd();return(0,yv.jsxs)(yv.Fragment,{children:[(0,yv.jsx)(nX.ToolbarButton,{onClick:t,disabled:e,children:(0,iX.__)("Apply")}),(0,yv.jsx)(nX.ToolbarButton,{onClick:o,children:(0,iX.__)("Cancel")})]})}var Ha=c(T(),1);function VBe({id:e,url:t,width:o,height:r,naturalHeight:n,naturalWidth:i,onSaveImage:s,onFinishEditing:a,borderProps:l}){return(0,DBe.default)("wp.blockEditor.__experimentalImageEditor",{since:"7.1",hint:"The Media Editor modal is now the default crop experience for core blocks. This component will be removed in a future major release."}),(0,Ha.jsx)(JZ,{children:(0,Ha.jsxs)(EBe,{id:e,url:t,naturalWidth:i,naturalHeight:n,onSaveImage:s,onFinishEditing:a,children:[(0,Ha.jsx)(IBe,{borderProps:l,url:t,width:o,height:r,naturalHeight:n,naturalWidth:i}),(0,Ha.jsxs)(Ko,{children:[(0,Ha.jsxs)(ZT.ToolbarGroup,{children:[(0,Ha.jsx)(PBe,{}),(0,Ha.jsx)(ZT.ToolbarItem,{children:u=>(0,Ha.jsx)(TBe,{toggleProps:u})}),(0,Ha.jsx)(NBe,{})]}),(0,Ha.jsx)(ZT.ToolbarGroup,{children:(0,Ha.jsx)(LBe,{})})]})]})})}var Ua=c(Y(),1),yh=c(q(),1);var nS=c(F(),1);function FBe(e,t,o,r,n){let[i,s]=(0,nS.useState)(t??r??""),[a,l]=(0,nS.useState)(e??o??"");return(0,nS.useEffect)(()=>{t===void 0&&r!==void 0&&s(r),e===void 0&&o!==void 0&&l(o)},[r,o]),(0,nS.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,p)=>{let m=p===""?void 0:parseInt(p,10);f==="width"?s(m):l(m),n({[f]:m})},updateDimensions:(f,p)=>{l(f??o),s(p??r),n({height:f,width:p})}}}var Zl=c(T(),1),zBe=[25,50,75,100],pit=()=>{};function jBe(e,t,o){let r=Math.round(t*(e/100)),n=Math.round(o*(e/100));return{scaledWidth:r,scaledHeight:n}}function HBe({imageSizeHelp:e,imageWidth:t,imageHeight:o,imageSizeOptions:r=[],isResizable:n=!0,slug:i,width:s,height:a,onChange:l,onChangeImage:u=pit}){let{currentHeight:d,currentWidth:f,updateDimension:p,updateDimensions:m}=FBe(a,s,o,t,l),g=b=>{if(b===void 0){m();return}let{scaledWidth:v,scaledHeight:y}=jBe(b,t,o);m(y,v)},h=zBe.find(b=>{let{scaledWidth:v,scaledHeight:y}=jBe(b,t,o);return f===v&&d===y});return(0,Zl.jsxs)(Ua.__experimentalVStack,{className:"block-editor-image-size-control",spacing:"4",children:[r&&r.length>0&&(0,Zl.jsx)(Ua.SelectControl,{label:(0,yh.__)("Resolution"),value:i,options:r,onChange:u,help:e}),n&&(0,Zl.jsxs)(Zl.Fragment,{children:[(0,Zl.jsxs)(Ua.__experimentalHStack,{align:"baseline",spacing:"4",children:[(0,Zl.jsx)(Ua.__experimentalNumberControl,{label:(0,yh.__)("Width"),value:f,min:1,onChange:b=>p("width",b)}),(0,Zl.jsx)(Ua.__experimentalNumberControl,{label:(0,yh.__)("Height"),value:d,min:1,onChange:b=>p("height",b)})]}),(0,Zl.jsx)(Ua.__experimentalToggleGroupControl,{label:(0,yh.__)("Image size presets"),hideLabelFromVision:!0,onChange:g,value:h,isBlock:!0,children:zBe.map(b=>(0,Zl.jsx)(Ua.__experimentalToggleGroupControlOption,{value:b,label:(0,yh.sprintf)((0,yh.__)("%d%%"),b)},b))})]})]})}var X3=c(Y(),1);var vv=c(q(),1),WBe=c(T(),1),UBe={left:vm,center:ym,right:_m,"space-between":g_,stretch:h_};function mit({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?UBe[r]:UBe.left,l=[{name:"left",icon:vm,title:(0,vv.__)("Justify items left"),isActive:r==="left",onClick:()=>s("left")},{name:"center",icon:ym,title:(0,vv.__)("Justify items center"),isActive:r==="center",onClick:()=>s("center")},{name:"right",icon:_m,title:(0,vv.__)("Justify items right"),isActive:r==="right",onClick:()=>s("right")},{name:"space-between",icon:g_,title:(0,vv.__)("Space between items"),isActive:r==="space-between",onClick:()=>s("space-between")},{name:"stretch",icon:h_,title:(0,vv.__)("Stretch items"),isActive:r==="stretch",onClick:()=>s("stretch")}],u=i?X3.ToolbarGroup:X3.ToolbarDropdownMenu,d=i?{isCollapsed:t}:{};return(0,WBe.jsx)(u,{icon:a,popoverProps:n,label:(0,vv.__)("Change items justification"),controls:l.filter(f=>e.includes(f.name)),...d})}var sX=mit;var aX=c(T(),1),U_=e=>(0,aX.jsx)(sX,{...e,isToolbar:!1}),GBe=e=>(0,aX.jsx)(sX,{...e,isToolbar:!0});var ws=c(Y(),1),mu=c(q(),1),Vr=c(F(),1),uF=c(ue(),1),DIe=c(Lt(),1),VIe=c(wo(),1),FIe=c(lx(),1),dF=c(te(),1),hX=c(B_(),1);var zIe=c(Mt(),1),fF=c(ga(),1);var iS=c(Y(),1);var Q3=c(ue(),1),J3=c(q(),1),$Be=c(F(),1),Pp=c(T(),1);function YBe({children:e,settingsOpen:t,setSettingsOpen:o}){let r=(0,Q3.useReducedMotion)(),n=r?$Be.Fragment:iS.__unstableAnimatePresence,i=r?"div":iS.__unstableMotion.div,a=`link-control-settings-drawer-${(0,Q3.useInstanceId)(YBe)}`;return(0,Pp.jsxs)(Pp.Fragment,{children:[(0,Pp.jsx)(iS.Button,{__next40pxDefaultSize:!0,className:"block-editor-link-control__drawer-toggle","aria-expanded":t,onClick:()=>o(!t),icon:(0,J3.isRTL)()?V0:bm,"aria-controls":a,children:(0,J3._x)("Advanced","Additional link settings")}),(0,Pp.jsx)(n,{children:t&&(0,Pp.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,Pp.jsx)("div",{className:"block-editor-link-control__drawer-inner",children:e})})})]})}var KBe=YBe;var iF=c(F(),1),mX=c(q(),1),pIe=c(Mt(),1);var XT=c(q(),1),iIe=c(Y(),1);var sIe=c(Mt(),1);var eF=c(q(),1),qBe=c(Y(),1),ZBe=c(F(),1);var lX=c(T(),1),git=({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,ZBe.createInterpolateElement)((0,eF.sprintf)((0,eF.__)("Create: <mark>%s</mark>"),e),{mark:(0,lX.jsx)("mark",{})}),(0,lX.jsx)(qBe.MenuItem,{...o,iconPosition:"left",icon:Ns,className:"block-editor-link-control__search-item",onClick:t,children:n})},XBe=git;var Op=c(q(),1),oF=c(Y(),1);var QBe=c(Lt(),1),aS=c(ga(),1),JBe=c(ue(),1),eIe=c(Mt(),1),sS=c(T(),1),tF={post:{icon:w9,label:(0,Op.__)("Post")},page:{icon:vb,label:(0,Op.__)("Page")},post_tag:{icon:Q9,label:(0,Op.__)("Tag")},category:{icon:Sz,label:(0,Op.__)("Category")},attachment:{icon:t7,label:(0,Op.__)("Attachment")}};function hit({isURL:e,suggestion:t}){let o=null;return e?o=j0:t.type in tF&&(o=tF[t.type].icon,t.type==="page"&&(t.isFrontPage&&(o=A7),t.isBlogHome&&(o=fj))),o?(0,sS.jsx)(xt,{className:"block-editor-link-control__search-item-icon",icon:o}):null}function bit(e){return e?.trim()?.length?e?.replace(/^\/?/,"/"):e}function yit(e){return e?.trim()?.length?e?.replace(/\/$/,""):e}var vit=(e,...t)=>(...o)=>e(...o,...t),_it=e=>t=>t==null||t!==t?e:t;function wit(e){return e&&(0,JBe.pipe)(aS.safeDecodeURI,aS.getPath,_it(""),vit(aS.filterURLForDisplay,24),yit,bit)(e)}var tIe=({itemProps:e,suggestion:t,searchTerm:o,onClick:r,isURL:n=!1,shouldShowType:i=!1})=>{let s=n?(0,Op.__)("Press ENTER to add this link"):wit(t.url);return(0,sS.jsx)(oF.MenuItem,{...e,info:s,iconPosition:"left",icon:(0,sS.jsx)(hit,{suggestion:t,isURL:n}),onClick:r,shortcut:i&&kit(t),className:"block-editor-link-control__search-item",children:(0,sS.jsx)(oF.TextHighlight,{text:(0,QBe.__unstableStripHTML)(t.title),highlight:o})})};function kit(e){return e.isFrontPage?(0,Op.__)("Front page"):e.isBlogHome?(0,Op.__)("Blog home"):e.type in tF?tF[e.type].label:e.type}var oIe=tIe,rIe=e=>((0,eIe.default)("wp.blockEditor.__experimentalLinkControlSearchItem",{since:"6.8"}),(0,sS.jsx)(tIe,{...e}));var nIe=c(q(),1),_v="__CREATE__",cX="tel",rF="link",uX="mailto",dX="internal",lS=[rF,uX,cX,dX],fX=[{id:"opensInNewTab",title:(0,nIe.__)("Open in new tab")}];var wv=c(T(),1);function aIe({withCreateSuggestion:e,currentInputValue:t,handleSuggestionClick:o,suggestionsListProps:r,buildSuggestionItemProps:n,suggestions:i,selectedSuggestion:s,isLoading:a,isInitialSuggestions:l,createSuggestionButtonText:u,suggestionsQuery:d}){let f=$("block-editor-link-control__search-results",{"is-loading":a}),p=i.length===1&&lS.includes(i[0].type),m=e&&!p&&!l,g=!d?.type,h=l?(0,XT.__)("Suggestions"):(0,XT.sprintf)((0,XT.__)('Search results for "%s"'),t);return(0,wv.jsx)("div",{className:"block-editor-link-control__search-results-wrapper",children:(0,wv.jsx)("div",{...r,className:f,"aria-label":h,children:(0,wv.jsx)(iIe.MenuGroup,{children:i.map((b,v)=>m&&_v===b.type?(0,wv.jsx)(XBe,{searchTerm:t,buttonText:u,onClick:()=>o(b),itemProps:n(b,v),isSelected:v===s},b.type):_v===b.type?null:(0,wv.jsx)(oIe,{itemProps:n(b,v),suggestion:b,index:v,onClick:()=>{o(b)},isSelected:v===s,isURL:lS.includes(b.type),searchTerm:t,shouldShowType:g,isFrontPage:b?.isFrontPage,isBlogHome:b?.isBlogHome},`${b.id}-${b.type}`))})})})}var lIe=aIe,cIe=e=>((0,sIe.default)("wp.blockEditor.__experimentalLinkControlSearchResults",{since:"6.8"}),(0,wv.jsx)(aIe,{...e}));var uIe=c(F(),1),dIe=c(te(),1);var nF=c(ga(),1);function QT(e){let t=e?.trim();if(!t)return{url:t,type:rF};let o=rF,r=(0,nF.getProtocol)(t)||"";return r.includes("mailto")?o=uX:r.includes("tel")?o=cX:t?.startsWith("#")&&(o=dX),nb(t)||ib(t)||t.startsWith("?")||r?{url:t,type:o}:{url:(0,nF.prependHTTPS)(t),type:o}}var xit=()=>Promise.resolve([]),Sit=e=>{let{url:t,type:o}=QT(e);return Promise.resolve([{id:e,title:e,url:t,type:o}])},Cit=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||sb(e)||!r?a:a.concat({title:e,url:e,type:_v})};function fIe(e,t,o){let{fetchSearchSuggestions:r,pageOnFront:n,pageForPosts:i}=(0,dIe.useSelect)(a=>{let{getSettings:l}=a(B);return{pageOnFront:l().pageOnFront,pageForPosts:l().pageForPosts,fetchSearchSuggestions:l().__experimentalFetchLinkSuggestions}},[]),s=t?Sit:xit;return(0,uIe.useCallback)((a,{isInitialSuggestions:l})=>sb(a)?s(a,{isInitialSuggestions:l}):Cit(a,{...e,isInitialSuggestions:l},r,o,n,i),[s,r,n,i,e,o])}var cS=c(T(),1),Eit=()=>Promise.resolve([]),pX=()=>{},mIe=(0,iF.forwardRef)(({value:e,children:t,currentLink:o={},className:r=null,placeholder:n=null,withCreateSuggestion:i=!1,onCreateSuggestion:s=pX,onChange:a=pX,onSelect:l=pX,showSuggestions:u=!0,renderSuggestions:d=x=>(0,cS.jsx)(lIe,{...x}),fetchSuggestions:f=null,allowDirectEntry:p=!0,showInitialSuggestions:m=!1,suggestionsQuery:g={},withURLSuggestion:h=!0,createSuggestionButtonText:b,hideLabelFromVision:v=!1,suffix:y,isEntity:_=!1,customValidity:w},k)=>{let x=fIe(g,p,i,h),S=u?f||x:Eit,[C,R]=(0,iF.useState)(),E=(L,H)=>{a(L),R(H)},I=L=>d({...L,withCreateSuggestion:i,createSuggestionButtonText:b,suggestionsQuery:g,handleSuggestionClick:H=>{L.handleSuggestionClick&&L.handleSuggestionClick(H),O(H)}}),O=async L=>{let H=L;if(_v===L.type){try{H=await s(L.title),H?.url&&l(H)}catch{}return}if(p||H&&Object.keys(H).length>=1){let{id:N,url:M,kind:V,type:j,...D}=o??{};l({...D,...H},H)}},A=n??(0,mX.__)("Search or type URL"),P=v&&n!==""?A:(0,mX.__)("Link");return(0,cS.jsxs)("div",{className:"block-editor-link-control__search-input-container",children:[(0,cS.jsx)(Ap,{disableSuggestions:o?.url===e,label:P,hideLabelFromVision:v,className:r,value:e,onChange:E,placeholder:A,__experimentalRenderSuggestions:u?I:null,__experimentalFetchLinkSuggestions:S,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:m,customValidity:w,required:!1,onSubmit:(L,H)=>{let N=L||C;!N&&!e?.trim()?.length?H.preventDefault():O(N||{url:e})},inputRef:k,suffix:y,disabled:_}),t]})}),gIe=mIe,hIe=e=>((0,pIe.default)("wp.blockEditor.__experimentalLinkControlSearchInput",{since:"6.8"}),(0,cS.jsx)(mIe,{...e}));var vh=c(q(),1),wn=c(Y(),1),wIe=c(ue(),1),lF=c(ga(),1);var kIe=c(Lt(),1),cF=c(te(),1),xIe=c(Ls(),1),SIe=c(B_(),1);var bIe=c(Y(),1),{Slot:yIe,Fill:vIe}=(0,bIe.createSlotFill)("BlockEditorLinkControlViewer");var _Ie=c(te(),1),sF=c(F(),1);function Tit(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 Rit(e){let[t,o]=(0,sF.useReducer)(Tit,{richData:null,isFetching:!1}),{fetchRichUrlData:r}=(0,_Ie.useSelect)(n=>{let{getSettings:i}=n(B);return{fetchRichUrlData:i().__experimentalFetchRichUrlData}},[]);return(0,sF.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 aF=Rit;var Ho=c(T(),1),{Badge:Bit}=G(wn.privateApis);function CIe({value:e,onEditClick:t,hasRichPreviews:o=!1,hasUnlinkControl:r=!1,onRemove:n}){let i=(0,cF.useSelect)(b=>b(SIe.store).get("core","showIconLabels"),[]),s=o?e?.url:null,{richData:a,isFetching:l}=aF(s),u=a&&Object.keys(a).length,d=e&&(0,lF.filterURLForDisplay)((0,lF.safeDecodeURI)(e.url),24)||"",f=!e?.url?.length,p=!f&&(0,kIe.__unstableStripHTML)(e?.entityTitle||a?.title||e?.title||d),m;a?.icon?m=(0,Ho.jsx)("img",{src:a?.icon,alt:""}):f?m=(0,Ho.jsx)(xt,{icon:L7,size:32}):m=(0,Ho.jsx)(xt,{icon:j0});let{createNotice:g}=(0,cF.useDispatch)(xIe.store),h=(0,wIe.useCopyToClipboard)(e.url,()=>{g("info",(0,vh.__)("Link copied to clipboard."),{isDismissible:!0,type:"snackbar"})});return(0,Ho.jsx)(wn.Flex,{role:"group","aria-label":(0,vh.__)("Manage link"),className:$("block-editor-link-control__preview",{"is-current":!0,"is-rich":u,"is-fetching":!!l,"is-preview":!0,"is-error":f,"is-url-title":p===d}),children:(0,Ho.jsxs)(wn.Flex,{gap:0,align:"flex-start",children:[(0,Ho.jsxs)(wn.Flex,{className:"block-editor-link-control__link-information",role:"figure","aria-label":(0,vh.__)("Link information"),justify:"start",align:"flex-start",children:[e?.image?(0,Ho.jsx)(wn.Flex,{className:"block-editor-link-control__preview-image",justify:"center",children:(0,Ho.jsx)("img",{src:e?.image,alt:""})}):(0,Ho.jsx)(wn.Flex,{className:$("block-editor-link-control__preview-icon",{"is-image":a?.icon}),justify:"center",children:m}),(0,Ho.jsx)(wn.Flex,{className:"block-editor-link-control__preview-details",direction:"column",gap:2,children:f?(0,Ho.jsx)("span",{className:"block-editor-link-control__preview-error-notice",children:(0,vh.__)("Link is empty")}):(0,Ho.jsxs)(Ho.Fragment,{children:[(0,Ho.jsx)(wn.ExternalLink,{className:"block-editor-link-control__preview-title",href:e.url,children:(0,Ho.jsx)(wn.__experimentalTruncate,{numberOfLines:1,children:p})}),(0,Ho.jsx)("span",{className:"block-editor-link-control__preview-info",children:(0,Ho.jsx)(wn.__experimentalTruncate,{numberOfLines:1,children:d})}),e?.badges?.length>0&&(0,Ho.jsx)(wn.__experimentalHStack,{className:"block-editor-link-control__preview-badges",alignment:"left",gap:1,children:e.badges.map((b,v)=>(0,Ho.jsx)(Bit,{intent:b.intent,children:b.label},`${b.label}|${b.intent}|${v}`))})]})})]}),(0,Ho.jsx)(wn.Button,{icon:_b,label:(0,vh.__)("Edit link"),onClick:t,size:"compact",showTooltip:!i}),r&&(0,Ho.jsx)(wn.Button,{icon:As,label:(0,vh.__)("Remove link"),onClick:n,size:"compact",showTooltip:!i}),(0,Ho.jsx)(wn.Button,{icon:Vz,label:(0,vh.__)("Copy link"),ref:h,accessibleWhenDisabled:!0,disabled:f,size:"compact",showTooltip:!i}),(0,Ho.jsx)(yIe,{fillProps:e})]})})}var EIe=c(q(),1),TIe=c(Y(),1);var kv=c(T(),1),Iit=()=>{},Pit=({value:e,onChange:t=Iit,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,kv.jsx)("div",{className:"block-editor-link-control__setting",children:s},i.id)}return null}return(0,kv.jsx)(TIe.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,kv.jsxs)("fieldset",{className:"block-editor-link-control__settings",children:[(0,kv.jsx)(bt,{render:(0,kv.jsx)("legend",{}),children:(0,EIe.__)("Currently selected link settings")}),n]})},RIe=Pit;var BIe=c(q(),1),xv=c(F(),1);function IIe(e){let t=(0,xv.useRef)(),[o,r]=(0,xv.useState)(!1),[n,i]=(0,xv.useState)(null),s=async function(a){r(!0),i(null);try{return t.current=Oit(Promise.resolve(e(a))),await t.current.promise}catch(l){if(l&&l.isCanceled)return;throw i(l.message||(0,BIe.__)("An unknown error occurred during creation. Please try again.")),l}finally{r(!1)}};return(0,xv.useEffect)(()=>()=>{t.current&&t.current.cancel()},[]),{createPage:s,isCreatingPage:o,errorMessage:n}}var Oit=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 gX=c(F(),1),AIe=c(OIe(),1);function MIe(e){let[t,o]=(0,gX.useState)(e||{}),[r,n]=(0,gX.useState)(e);return(0,AIe.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,p)=>(l.includes(p)&&(f[p]=u[p]),f),{});o({...t,...d})}]}var Qo=c(T(),1),bX=()=>{},NIe="core/block-editor",LIe="linkControlSettingsDrawer";function Sv({searchInputPlaceholder:e,value:t,settings:o=fX,onChange:r=bX,onInputChange:n,onRemove:i,onCancel:s,noDirectEntry:a=!1,showSuggestions:l=!0,showInitialSuggestions:u,forceIsEditingLink:d,createSuggestion:f,withCreateSuggestion:p,inputValue:m="",suggestionsQuery:g={},noURLSuggestion:h=!1,createSuggestionButtonText:b,hasRichPreviews:v=!1,hasTextControl:y=!1,renderControlBottom:_=null,handleEntities:w=!1}){p===void 0&&f&&(p=!0);let[k,x]=(0,Vr.useState)(!1),[S,C]=(0,Vr.useState)(void 0),{advancedSettingsPreference:R}=(0,dF.useSelect)(He=>({advancedSettingsPreference:He(hX.store).get(NIe,LIe)??!1}),[]),{set:E}=(0,dF.useDispatch)(hX.store),I=He=>{E&&E(NIe,LIe,He),x(He)},O=R||k,A=(0,Vr.useRef)(!0),P=(0,Vr.useRef)(),L=(0,uF.useMergeRefs)([P,G_()]),H=(0,Vr.useRef)(),N=(0,Vr.useRef)(),M=(0,Vr.useRef)(),V=o.map(({id:He})=>He),[j,D,z,W,ee]=MIe(t),J=He=>{z(He),n?.(He)},U=w&&!!j?.id,Q=(0,uF.useInstanceId)(Sv,"link-control"),Z=U?`${Q}__help`:null,K=t&&!(0,FIe.isShallowEqualObjects)(j,t),[X,oe]=(0,Vr.useState)(d!==void 0?d:!t||!t.url),{createPage:ie,isCreatingPage:se,errorMessage:be}=IIe(f);(0,Vr.useEffect)(()=>{d!==void 0&&oe(d)},[d]),(0,Vr.useEffect)(()=>{if(A.current)return;(DIe.focus.focusable.find(P.current)[0]||P.current).focus()},[X,se]),(0,Vr.useEffect)(()=>(A.current=!1,()=>{A.current=!0}),[]);let pe=(0,Vr.useRef)();(0,Vr.useEffect)(()=>{if(pe.current===void 0){pe.current=m;return}pe.current!==m&&(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."),pe.current=m)},[m]),(0,Vr.useEffect)(()=>{if(S?.type==="invalid"){let He=N.current;He&&typeof He.reportValidity=="function"&&He.reportValidity()}},[S]);let ke=t?.url?.trim()?.length>0,ye=()=>{oe(!1)},Pe=He=>{let we={type:"invalid",message:(0,mu.__)("Please enter a valid URL.")},Me={type:"valid"},ge=He?.trim();if(!ge?.length||!sb(ge))return we;if(nb(ge)||ib(ge))return Me;let Re=(0,fF.prependHTTPS)(ge);return(0,fF.isURL)(Re)?Me:we},_e=He=>{if(!(He&&He.id&&He.type&&!lS.includes(He.type))){let ge=He?.url||et,Re=Pe(ge);if(Re.type==="invalid"){C(Re);return}let{url:Ie}=QT(ge);He={...He,url:Ie}}He?.kind==="taxonomy"&&He?.url&&(M.current=He.url);let Me=Object.keys(He).reduce((ge,Re)=>(V.includes(Re)||(ge[Re]=He[Re]),ge),{});r({...j,...Me,title:j?.title||He?.title}),C(void 0),ye()},ve=()=>{if(Je)return!1;let He=et.trim(),we=j&&j.id&&j.type&&!lS.includes(j.type),Me=t?.url===He;if(we&&Me)return C(void 0),!0;let ge=Pe(et);return ge.type==="invalid"?(C(ge),!1):(C(void 0),!0)},Se=()=>{K&&r({...t,...j,url:QT(et).url}),ye(),C(void 0)},fe=()=>{ve()&&Se()},Ce=He=>{let{keyCode:we}=He;we===VIe.ENTER&&!Je&&(He.preventDefault(),fe())},ne=()=>{D(t)},ae=He=>{He.preventDefault(),He.stopPropagation(),ne(),C(void 0),ke?ye():i?.(),s?.()},[Ee,he]=(0,Vr.useState)(!1),Ae=()=>{let{id:He,kind:we,type:Me,...ge}=j;D({...ge,id:void 0,kind:void 0,type:void 0,url:void 0}),he(!0)};(0,Vr.useEffect)(()=>{Ee&&(N.current?.focus(),he(!1))},[Ee]);let et=j?.url!==void 0?j.url:m||"",Je=!et?.trim()?.length;(0,Vr.useEffect)(()=>{C(void 0)},[et]);let _t=!S,Et=i&&t&&!X&&!se,mt=X&&ke,oo=ke&&y,Tt=(X||!t)&&!se,Rt=Je||!_t||t&&!K,Bt=!!o?.length&&X&&ke,gt=(0,Vr.useMemo)(()=>t?.kind==="taxonomy"&&!t?.url&&M.current?{...t,url:M.current}:t,[t]);return(0,Qo.jsxs)("div",{tabIndex:-1,ref:L,className:"block-editor-link-control",children:[se&&(0,Qo.jsxs)("div",{className:"block-editor-link-control__loading",children:[(0,Qo.jsx)(ws.Spinner,{})," ",(0,mu.__)("Creating"),"\u2026"]}),Tt&&(0,Qo.jsxs)(Qo.Fragment,{children:[(0,Qo.jsxs)("div",{className:$({"block-editor-link-control__search-input-wrapper":!0,"has-text-control":oo,"has-actions":mt}),children:[oo&&(0,Qo.jsx)(ws.TextControl,{ref:H,className:"block-editor-link-control__field block-editor-link-control__text-content",label:(0,mu.__)("Text"),value:j?.title,onChange:W,onKeyDown:Ce}),(0,Qo.jsx)(gIe,{ref:N,currentLink:t,className:"block-editor-link-control__field block-editor-link-control__search-input",placeholder:e,value:et,withCreateSuggestion:p,onCreateSuggestion:ie,onChange:J,onSelect:_e,showInitialSuggestions:u,allowDirectEntry:!a,showSuggestions:l,suggestionsQuery:g,withURLSuggestion:!h,createSuggestionButtonText:b,hideLabelFromVision:!oo,isEntity:U,customValidity:S,suffix:(0,Qo.jsx)(Ait,{isEntity:U,showActions:mt,isDisabled:Rt,onUnlink:Ae,onSubmit:fe,helpTextId:Z})}),U&&Z&&(0,Qo.jsx)("p",{id:Z,className:"block-editor-link-control__help",children:(0,mu.sprintf)((0,mu.__)("Synced with the selected %s."),j?.type||"item")})]}),be&&(0,Qo.jsx)(ws.Notice,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1,children:be})]}),t&&!X&&!se&&(0,Qo.jsx)(CIe,{value:gt,onEditClick:()=>oe(!0),hasRichPreviews:v,hasUnlinkControl:Et,onRemove:()=>{i(),oe(!0)}},gt?.url),Bt&&(0,Qo.jsx)("div",{className:"block-editor-link-control__tools",children:!Je&&(0,Qo.jsx)(KBe,{settingsOpen:O,setSettingsOpen:I,children:(0,Qo.jsx)(RIe,{value:j,settings:o,onChange:ee(V)})})}),mt&&(0,Qo.jsxs)(ws.__experimentalHStack,{justify:"right",className:"block-editor-link-control__search-actions",children:[(0,Qo.jsx)(ws.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:ae,children:(0,mu.__)("Cancel")}),(0,Qo.jsx)(ws.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:Rt?bX:fe,className:"block-editor-link-control__search-submit","aria-disabled":Rt,children:(0,mu.__)("Apply")})]}),!se&&_&&_()]})}function Ait({isEntity:e,showActions:t,isDisabled:o,onUnlink:r,onSubmit:n,helpTextId:i}){if(e)return(0,Qo.jsx)(ws.Button,{icon:As,onClick:r,"aria-describedby":i,showTooltip:!0,label:(0,mu.__)("Unsync and edit"),__next40pxDefaultSize:!0});if(!t)return(0,Qo.jsx)(ws.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,Qo.jsx)(ws.Button,{onClick:o?bX:n,label:(0,mu.__)("Submit"),icon:gf,className:"block-editor-link-control__search-submit","aria-disabled":o,size:"small"})})}Sv.ViewerFill=vIe;Sv.DEFAULT_LINK_SETTINGS=fX;var pF=e=>((0,zIe.default)("wp.blockEditor.__experimentalLinkControl",{since:"6.8",alternative:"wp.blockEditor.LinkControl"}),(0,Qo.jsx)(Sv,{...e}));pF.ViewerFill=Sv.ViewerFill;pF.DEFAULT_LINK_SETTINGS=Sv.DEFAULT_LINK_SETTINGS;var _h=Sv;var HIe=c(q(),1),UIe=c(Y(),1);var JT=1.5,yX=.01,vX=10,_X="";function jIe(e){return e!==void 0&&e!==_X}var wX=c(T(),1),Mit=({__next40pxDefaultSize:e,value:t,onChange:o,__unstableInputWidth:r="60px",...n})=>{let i=jIe(t),s=(d,f)=>{if(i)return d;let p=yX*vX;switch(`${d}`){case`${p}`:return JT+p;case"0":return f?d:JT-p;case"":return JT;default:return d}},a=(d,f)=>{let p=["insertText","insertFromPaste"].includes(f.payload.event.nativeEvent?.inputType),m=s(d.value,p);return{...d,value:m}},l=i?t:_X;return(0,wX.jsx)("div",{className:"block-editor-line-height-control",children:(0,wX.jsx)(UIe.__experimentalNumberControl,{placeholder:JT,...n,__unstableInputWidth:r,__unstableStateReducer:a,onChange:(d,{event:f})=>{if(d===""){o();return}if(f.type==="click"){o(s(`${d}`,!1));return}o(`${d}`)},label:(0,HIe.__)("Line height"),step:yX,spinFactor:vX,value:l,min:0,spinControls:"custom"})})},mF=Mit;var Ld=c(q(),1),WIe=c(Yo(),1),ks=c(Y(),1),hF=c(te(),1),GIe=c(wo(),1);var $Ie=c(ue(),1),YIe=c(Lt(),1),KIe=c(Ls(),1),qIe=c(F(),1);function gF(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 ei=c(T(),1),Nit=()=>{},Lit=0,Dit=({mediaURL:e,mediaId:t,mediaIds:o,allowedTypes:r,accept:n,onError:i,onSelect:s,onSelectURL:a,onReset:l,onToggleFeaturedImage:u,useFeaturedImage:d,onFilesUpload:f=Nit,name:p=(0,Ld.__)("Replace"),createNotice:m,removeNotice:g,children:h,multiple:b=!1,addToGallery:v,handleUpload:y=!0,variant:_,popoverProps:w,renderToggle:k,className:x})=>{let{mediaUpload:S,allowedMimeTypes:C}=(0,hF.useSelect)(M=>{let{getSettings:V}=M(B),j=V();return{mediaUpload:j.mediaUpload,allowedMimeTypes:j.allowedMimeTypes}},[]),R=`block-editor/media-replace-flow/error-notice/${++Lit}`,E=(0,qIe.useMemo)(()=>gF(r,C,n),[r,C,n]),I=M=>{let V=(0,YIe.__unstableStripHTML)(M);if(i){i(V);return}setTimeout(()=>{m("error",V,{speak:!0,id:R,isDismissible:!0})},1e3)},O=(M,V)=>{d&&u&&u(),V(),s(M),(0,WIe.speak)((0,Ld.__)("The media file has been replaced")),g(R)},A=(M,V)=>{let j=M.target.files;if(!y)return V(),s(j);f(j),S({allowedTypes:r,filesList:j,onFileChange:([D])=>{O(D,V)},onError:I})},P=M=>{M.keyCode===GIe.DOWN&&(M.preventDefault(),M.target.click())},H=b&&(!r||r.length===0?!1:r.every(M=>M==="image"||M.startsWith("image/"))),N={...w,variant:_};return(0,ei.jsx)(ks.Dropdown,{popoverProps:N,className:x,contentClassName:$("block-editor-media-replace-flow__options",_&&`is-variant-${_}`),renderToggle:({isOpen:M,onToggle:V})=>k?k({"aria-expanded":M,"aria-haspopup":"true",onClick:V,onKeyDown:P,children:p}):(0,ei.jsx)(ks.ToolbarButton,{"aria-expanded":M,"aria-haspopup":"true",onClick:V,onKeyDown:P,children:p}),renderContent:({onClose:M})=>(0,ei.jsxs)(ei.Fragment,{children:[(0,ei.jsxs)(ks.NavigableMenu,{className:"block-editor-media-replace-flow__media-upload-menu",children:[(0,ei.jsxs)(Oa,{children:[(0,ei.jsx)(xd,{gallery:H,addToGallery:v,multiple:b,value:b?o:t,onSelect:V=>O(V,M),allowedTypes:r,render:({open:V})=>(0,ei.jsx)(ks.MenuItem,{icon:b_,onClick:V,children:(0,Ld.__)("Open Media Library")})}),(0,ei.jsx)(ks.FormFileUpload,{onChange:V=>{A(V,M)},accept:E,multiple:!!b,render:({openFileDialog:V})=>(0,ei.jsx)(ks.MenuItem,{icon:uj,onClick:()=>{V()},children:(0,Ld._x)("Upload","verb")})})]}),u&&(0,ei.jsx)(ks.MenuItem,{icon:v9,onClick:u,isPressed:d,children:(0,Ld.__)("Use featured image")}),typeof h=="function"?h({onClose:M}):h,e&&l&&(0,ei.jsx)(ks.MenuItem,{onClick:()=>{l(),M()},children:(0,Ld.__)("Reset")})]}),a&&(0,ei.jsxs)("form",{className:"block-editor-media-flow__url-input",children:[(0,ei.jsx)("span",{className:"block-editor-media-replace-flow__image-url-label",children:(0,Ld.__)("Current media URL:")}),(0,ei.jsx)(_h,{value:{url:e},settings:[],showSuggestions:!1,onChange:({url:V})=>{a(V)},searchInputPlaceholder:(0,Ld.__)("Paste or type URL")})]})]})})},uS=(0,$Ie.compose)([(0,hF.withDispatch)(e=>{let{createNotice:t,removeNotice:o}=e(KIe.store);return{createNotice:t,removeNotice:o}}),(0,ks.withFilters)("editor.MediaReplaceFlow")])(Dit);var an=c(Y(),1),sn=c(q(),1),xh=c(F(),1),cPe=c(te(),1);var uPe=c(Mt(),1);var SX=c(q(),1),yF=c(F(),1),dS=c(Y(),1);var lPe=c(Mt(),1);var QIe=c(q(),1),JIe=c(Y(),1);var ZIe=c(Y(),1),bF=c(ga(),1),kX=c(T(),1);function XIe({url:e,urlLabel:t,className:o}){let r=$(o,"block-editor-url-popover__link-viewer-url");return e?(0,kX.jsx)(ZIe.ExternalLink,{className:r,href:e,children:t||(0,bF.filterURLForDisplay)((0,bF.safeDecodeURI)(e))}):(0,kX.jsx)("span",{className:r})}var eR=c(T(),1);function ePe({className:e,linkClassName:t,onEditLinkClick:o,url:r,urlLabel:n,...i}){return(0,eR.jsxs)("div",{className:$("block-editor-url-popover__link-viewer",e),...i,children:[(0,eR.jsx)(XIe,{url:r,urlLabel:n,className:t}),o&&(0,eR.jsx)(JIe.Button,{icon:_b,label:(0,QIe.__)("Edit"),onClick:o,size:"compact"})]})}var iPe=c(q(),1),sPe=c(Y(),1);var xX=c(Yo(),1),Mp=c(q(),1),xi=c(F(),1),Wa=c(wo(),1),Ql=c(Y(),1),Cv=c(ue(),1),tPe=c(te(),1),oPe=c(ga(),1);var Xl=c(T(),1),rPe=c(re(),1),{ValidatedInputControl:Vit}=G(Ql.privateApis),tR=()=>{};function nPe(e){return typeof e=="function"}function Ap(e){let{__experimentalFetchLinkSuggestions:t,__experimentalHandleURLSuggestions:o,__experimentalRenderControl:r,__experimentalRenderSuggestions:n,__experimentalShowInitialSuggestions:i=!1,autocompleteRef:s,className:a,customValidity:l,disableSuggestions:u,disabled:d=!1,help:f=null,hideLabelFromVision:p=!1,inputRef:m,isFullWidth:g,label:h=null,markWhenOptional:b,onChange:v,onKeyDown:y,onSubmit:_,placeholder:w=(0,Mp.__)("Paste URL or type to search"),required:k=!0,suffix:x,value:S=""}=e,C=(0,Cv.useInstanceId)(Ap),{getSettings:R}=(0,tPe.useSelect)(B),E=(0,Cv.useDebounce)(xX.speak,500),[I,O]=(0,xi.useState)([]),[A,P]=(0,xi.useState)(null),[L,H]=(0,xi.useState)(null),[N,M]=(0,xi.useState)(!1),[V,j]=(0,xi.useState)(!1),[D,z]=(0,xi.useState)(!1),W=(0,xi.useRef)(),ee=(0,xi.useRef)([]),J=(0,xi.useRef)(null),U=m??W,Q=`url-input-control-${C}`,Z=`block-editor-url-input-suggestions-${C}`,K=`block-editor-url-input-suggestion-${C}`,X=N&&u!==!0&&(i||!!S.length),oe=(0,Cv.useEvent)((fe="")=>{let Ce=nPe(t)?t:R().__experimentalFetchLinkSuggestions;if(!Ce)return;let ne=!fe?.length,ae=fe.trim();if(!ne&&(ae.length<2||!o&&(0,oPe.isURL)(ae))){J.current?.cancel?.(),J.current=null,O([]),M(!1),P(ae),H(null),j(!1);return}H(null),j(!0);let Ee=Ce(ae,{isInitialSuggestions:ne});J.current=Ee,Ee.then(he=>{J.current===Ee&&(O(he),P(ae),j(!1),M(!!he.length),he.length?E((0,Mp.sprintf)((0,Mp._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",he.length),he.length),"assertive"):E((0,Mp.__)("No results."),"assertive"))}).catch(()=>{J.current===Ee&&j(!1)}).finally(()=>{J.current===Ee&&(J.current=null)})}),ie=(0,Cv.useDebounce)(oe,200);(0,xi.useEffect)(()=>{!u&&!D&&(S.length||i)&&ie(S)},[S,D,u,i,ie]),(0,xi.useEffect)(()=>{X||M(!1)},[X]),(0,xi.useEffect)(()=>{X&&L!==null&&ee.current[L]?.scrollIntoView({behavior:"instant",block:"nearest",inline:"nearest"})},[X,L]),(0,xi.useEffect)(()=>()=>{J.current?.cancel?.(),J.current=null},[]);function se(fe){v(fe.url,fe),H(null),M(!1)}function be(fe){se(fe),U.current.focus()}function pe(fe){v(fe)}function ke(){z(!0),ie.cancel()}function ye(){z(!1)}function Pe(){S&&!u&&!I.length&&J.current===null&&ie(S)}function _e(fe){if(y?.(fe),!X||!I.length||V){if(!fe.shiftKey&&(fe.keyCode===Wa.UP||fe.keyCode===Wa.DOWN)){let ne=fe.keyCode===Wa.UP?0:fe.target.value.length;(fe.target.selectionStart!==ne||fe.target.selectionEnd!==ne)&&(fe.preventDefault(),fe.target.setSelectionRange(ne,ne))}else fe.keyCode===Wa.ENTER&&_&&(fe.preventDefault(),_(null,fe));return}let Ce=I[L]??null;switch(fe.keyCode){case Wa.UP:case Wa.DOWN:{fe.preventDefault();let ne=fe.keyCode===Wa.UP?-1:1;H(((L??(ne===-1?0:-1))+ne+I.length)%I.length);break}case Wa.TAB:{Ce&&(se(Ce),(0,xX.speak)((0,Mp.__)("Link selected.")));break}case Wa.ENTER:{fe.preventDefault(),Ce&&se(Ce),_?.(Ce,fe);break}}}let ve={id:Q,label:h,className:$("block-editor-url-input",a,{"is-full-width":g}),hideLabelFromVision:p},Se={id:Q,value:S,required:k,type:"text",name:Q,autoComplete:"off",onChange:d?tR:pe,onCompositionStart:d?tR:ke,onCompositionEnd:d?tR:ye,onFocus:d?tR:Pe,onKeyDown:d?tR:_e,placeholder:w,role:"combobox","aria-label":h?void 0:(0,Mp.__)("URL"),"aria-expanded":X,"aria-autocomplete":"list","aria-owns":Z,"aria-activedescendant":L!==null?`${K}-${L}`:void 0,ref:U,disabled:d,suffix:x,help:f};return(0,Xl.jsxs)(Xl.Fragment,{children:[(0,Xl.jsx)(Fit,{controlProps:ve,inputProps:Se,isLoading:V,customValidity:l,markWhenOptional:b,renderControl:r}),X&&I.length>0&&(0,Xl.jsx)(zit,{autocompleteRef:s,className:a,handleSuggestionClick:be,isLoading:V,renderSuggestions:n,selectedSuggestion:L,suggestionNodesRef:ee,suggestionOptionIdPrefix:K,suggestions:I,suggestionsListboxId:Z,suggestionsValue:A})]})}function Fit({controlProps:e,inputProps:t,isLoading:o,customValidity:r,markWhenOptional:n,renderControl:i}){let[s,a]=(0,xi.useState)(r!==void 0);return r!==void 0&&!s&&a(!0),i?i(e,t,o):(0,Xl.jsxs)(Ql.BaseControl,{...e,children:[(0,Xl.jsx)(s?Vit:Ql.__experimentalInputControl,{...t,...s&&{customValidity:r,...n!==void 0&&{markWhenOptional:n}}}),o&&(0,Xl.jsx)(Ql.Spinner,{})]})}function zit({autocompleteRef:e,className:t,handleSuggestionClick:o,isLoading:r,renderSuggestions:n,selectedSuggestion:i,suggestionNodesRef:s,suggestionOptionIdPrefix:a,suggestions:l,suggestionsListboxId:u,suggestionsValue:d}){let f={id:u,ref:e,role:"listbox"},p=(m,g)=>({role:"option",tabIndex:"-1",id:`${a}-${g}`,ref:h=>{s.current[g]=h},"aria-selected":g===i?!0:void 0});return nPe(n)?n({suggestions:l,selectedSuggestion:i,suggestionsListProps:f,buildSuggestionItemProps:p,isLoading:r,handleSuggestionClick:o,isInitialSuggestions:!d?.length,currentInputValue:d}):(0,Xl.jsx)(Ql.Popover,{placement:"bottom",focusOnMount:!1,children:(0,Xl.jsx)("div",{...f,className:$("block-editor-url-input__suggestions",{[`${t}__suggestions`]:t}),children:l.map((m,g)=>(0,rPe.createElement)(Ql.Button,{__next40pxDefaultSize:!0,...p(m,g),key:m.id,className:$("block-editor-url-input__suggestion",{"is-selected":g===i}),onClick:()=>o(m)},m.title))})})}var oR=c(T(),1);function aPe({autocompleteRef:e,className:t,onChangeInputValue:o,value:r,...n}){return(0,oR.jsxs)("form",{className:$("block-editor-url-popover__link-editor",t),...n,children:[(0,oR.jsx)(Ap,{value:r,onChange:o,autocompleteRef:e}),(0,oR.jsx)(sPe.Button,{icon:gf,label:(0,iPe.__)("Apply"),type:"submit",size:"compact"})]})}var wh=c(T(),1),{__experimentalPopoverLegacyPositionToPlacement:jit}=G(dS.privateApis),Hit="bottom",CX=(0,yF.forwardRef)(({additionalControls:e,children:t,renderSettings:o,placement:r,focusOnMount:n="firstElement",position:i,...s},a)=>{i!==void 0&&(0,lPe.default)("`position` prop in wp.blockEditor.URLPopover",{since:"6.2",alternative:"`placement` prop"});let l;r!==void 0?l=r:i!==void 0&&(l=jit(i)),l=l||Hit;let[u,d]=(0,yF.useState)(!1),f=!!o&&u,p=()=>{d(!u)};return(0,wh.jsxs)(dS.Popover,{ref:a,role:"dialog","aria-modal":"true","aria-label":(0,SX.__)("Edit URL"),className:"block-editor-url-popover",focusOnMount:n,placement:l,shift:!0,variant:"toolbar",...s,children:[(0,wh.jsx)("div",{className:"block-editor-url-popover__input-container",children:(0,wh.jsxs)("div",{className:"block-editor-url-popover__row",children:[t,!!o&&(0,wh.jsx)(dS.Button,{className:"block-editor-url-popover__settings-toggle",icon:Rn,label:(0,SX.__)("Link settings"),onClick:p,"aria-expanded":u,size:"compact"})]})}),f&&(0,wh.jsx)("div",{className:"block-editor-url-popover__settings",children:o()}),e&&!f&&(0,wh.jsx)("div",{className:"block-editor-url-popover__additional-controls",children:e})]})});CX.LinkEditor=aPe;CX.LinkViewer=ePe;var kh=CX;var fo=c(T(),1),Uit=()=>{},Wit=({src:e,onChange:t,onSubmit:o,onClose:r,popoverAnchor:n})=>(0,fo.jsx)(kh,{anchor:n,onClose:r,children:(0,fo.jsx)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:o,children:(0,fo.jsx)(an.__experimentalInputControl,{label:(0,sn.__)("URL"),type:"text",hideLabelFromVision:!0,placeholder:(0,sn.__)("Paste or type URL"),onChange:t,value:e,suffix:(0,fo.jsx)(an.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,fo.jsx)(an.Button,{size:"small",icon:gf,label:(0,sn.__)("Apply"),type:"submit"})})})})}),Git=({src:e,onChangeSrc:t,onSelectURL:o})=>{let[r,n]=(0,xh.useState)(null),[i,s]=(0,xh.useState)(!1),a=()=>{s(!0)},l=()=>{s(!1),r?.focus()},u=d=>{d.preventDefault(),e&&o&&(o(e),l())};return(0,fo.jsxs)("div",{className:"block-editor-media-placeholder__url-input-container",children:[(0,fo.jsx)(an.Button,{__next40pxDefaultSize:!0,className:"block-editor-media-placeholder__button",onClick:a,isPressed:i,variant:"secondary","aria-haspopup":"dialog",ref:n,children:(0,sn.__)("Insert from URL")}),i&&(0,fo.jsx)(Wit,{src:e,onChange:t,onSubmit:u,onClose:l,popoverAnchor:r})]})};function $it({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:p,disableMediaButtons:m,onError:g,onSelect:h,onCancel:b,onSelectURL:v,onToggleFeaturedImage:y,onDoubleClick:_,onFilesPreUpload:w=Uit,onHTMLDrop:k,children:x,mediaLibraryButton:S,placeholder:C,style:R}){k&&(0,uPe.default)("wp.blockEditor.MediaPlaceholder onHTMLDrop prop",{since:"6.2",version:"6.4"});let{mediaUpload:E,allowedMimeTypes:I}=(0,cPe.useSelect)(U=>{let{getSettings:Q}=U(B),Z=Q();return{mediaUpload:Z.mediaUpload,allowedMimeTypes:Z.allowedMimeTypes}},[]),[O,A]=(0,xh.useState)("");(0,xh.useEffect)(()=>{A(e?.src??"")},[e?.src]);let P=(0,xh.useMemo)(()=>gF(t,I,l),[t,I,l]),L=()=>!t||t.length===0?!1:t.every(U=>U==="image"||U.startsWith("image/")),H=U=>{if(!f||typeof f=="function"&&!f(U))return h(U);w(U);let Q;if(d)if(u){let Z=[];Q=K=>{let X=(e??[]).filter(oe=>oe.id?!Z.some(({id:ie})=>Number(ie)===Number(oe.id)):!Z.some(({urlSlug:ie})=>oe.url.includes(ie)));h(X.concat(K)),Z=K.map(oe=>{let ie=oe.url.lastIndexOf("."),se=oe.url.slice(0,ie);return{id:oe.id,urlSlug:se}})}}else Q=h;else Q=([Z])=>h(Z);E({allowedTypes:t,filesList:U,onFileChange:Q,onError:g,multiple:d})};async function N(U){let{blocks:Q}=yq(U);if(!Q?.length)return;let Z=await Promise.all(Q.map(K=>{let X=K.name.split("/")[1];return K.attributes.id?(K.attributes.type=X,K.attributes):new Promise((oe,ie)=>{window.fetch(K.attributes.url).then(se=>se.blob()).then(se=>E({filesList:[se],additionalData:{title:K.attributes.title,alt_text:K.attributes.alt,caption:K.attributes.caption,type:X},onFileChange:([be])=>{be.id&&oe(be)},allowedTypes:t,onError:ie})).catch(()=>oe(K.attributes.url))})})).catch(K=>g(K));Z?.length&&h(d?Z:Z[0])}let M=U=>{H(U.target.files)},j=C??(U=>{let{instructions:Q,title:Z}=n;if(!E&&!v&&(Q=(0,sn.__)("To edit this block, you need permission to upload media.")),Q===void 0||Z===void 0){let X=t??[],[oe]=X,ie=X.length===1,se=ie&&oe==="audio",be=ie&&oe==="image",pe=ie&&oe==="video";Q===void 0&&E&&(Q=(0,sn.__)("Drag and drop an image or video, upload, or choose from your library."),se?Q=(0,sn.__)("Drag and drop an audio file, upload, or choose from your library."):be?Q=(0,sn.__)("Drag and drop an image, upload, or choose from your library."):pe&&(Q=(0,sn.__)("Drag and drop a video, upload, or choose from your library."))),Z===void 0&&(Z=(0,sn.__)("Media"),se?Z=(0,sn.__)("Audio"):be?Z=(0,sn.__)("Image"):pe&&(Z=(0,sn.__)("Video")))}let K=$("block-editor-media-placeholder",o,{"is-appender":a});return(0,fo.jsxs)(an.Placeholder,{icon:r,label:Z,instructions:Q,className:K,notices:s,onDoubleClick:_,preview:i,style:R,children:[U,x]})}),D=()=>p?null:(0,fo.jsx)(an.DropZone,{onFilesDrop:H,onDrop:N,isEligible:U=>{let Q="wp-block:core/",Z=[];for(let K of U.types)K.startsWith(Q)&&Z.push(K.slice(Q.length));return Z.length>0&&Z.every(K=>t.includes(K))&&(d?!0:Z.length===1)}}),z=()=>b&&(0,fo.jsx)(an.Button,{__next40pxDefaultSize:!0,className:"block-editor-media-placeholder__cancel-button",title:(0,sn.__)("Cancel"),variant:"link",onClick:b,children:(0,sn.__)("Cancel")}),W=()=>v&&(0,fo.jsx)(Git,{src:O,onChangeSrc:A,onSelectURL:v}),ee=()=>y&&(0,fo.jsx)("div",{className:"block-editor-media-placeholder__url-input-container",children:(0,fo.jsx)(an.Button,{__next40pxDefaultSize:!0,className:"block-editor-media-placeholder__button",onClick:y,variant:"secondary",children:(0,sn.__)("Use featured image")})}),J=()=>{let Q=S??(({open:K})=>(0,fo.jsx)(an.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{K()},children:(0,sn.__)("Media Library")})),Z=(0,fo.jsx)(xd,{addToGallery:u,gallery:d&&L(),multiple:d,onSelect:h,allowedTypes:t,mode:"browse",value:Array.isArray(e)?e.map(({id:K})=>K):e.id,render:Q});if(E&&a)return(0,fo.jsxs)(fo.Fragment,{children:[D(),(0,fo.jsx)(an.FormFileUpload,{onChange:M,accept:P,multiple:!!d,render:({openFileDialog:K})=>{let X=(0,fo.jsxs)(fo.Fragment,{children:[(0,fo.jsx)(an.Button,{__next40pxDefaultSize:!0,variant:"primary",className:$("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onClick:K,children:(0,sn._x)("Upload","verb")}),Z,W(),ee(),z()]});return j(X)}})]});if(E){let K=(0,fo.jsxs)(fo.Fragment,{children:[D(),(0,fo.jsx)(an.FormFileUpload,{render:({openFileDialog:X})=>(0,fo.jsx)(an.Button,{__next40pxDefaultSize:!0,onClick:X,variant:"primary",className:$("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),children:(0,sn._x)("Upload","verb")}),onChange:M,accept:P,multiple:!!d}),Z,W(),ee(),z()]});return j(K)}return j(Z)};return m?(0,fo.jsx)(Oa,{children:D()}):(0,fo.jsx)(Oa,{fallback:j(W()),children:J()})}var dPe=(0,an.withFilters)("editor.MediaPlaceholder")($it);var fPe=c(T(),1),Yit=({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,fPe.jsx)(F3,{settings:o,gradients:[],disableCustomGradients:!0,...t})},pPe=Yit;var y2e=c(CH(),1);var v2e=c(F(),1);var g2e=c(F(),1);var a2e=c(lb(),1),ti=c(F(),1),Lp=c(te(),1),IF=c(ue(),1),l2e=c(Ar(),1),c2e=c(Y(),1),u2e=c(ce(),1),d2e=c(Mt(),1),vS=c(q(),1);var mPe=c(q(),1),vF=c(Y(),1);var EX=c(q(),1),Ev=c(Y(),1);var Np=c(T(),1),Kit={placement:"bottom-start"},qit=()=>(0,Np.jsxs)(Np.Fragment,{children:[["bold","italic","link","unknown"].map(e=>(0,Np.jsx)(Ev.Slot,{name:`RichText.ToolbarControls.${e}`},e)),(0,Np.jsx)(Ev.Slot,{name:"RichText.ToolbarControls",children:e=>{if(!e.length)return null;let o=e.map(([{props:r}])=>r).some(({isActive:r})=>r);return(0,Np.jsx)(Ev.ToolbarItem,{children:r=>(0,Np.jsx)(Ev.DropdownMenu,{icon:Rn,label:(0,EX.__)("More"),toggleProps:{...r,className:$(r.className,{"is-pressed":o}),description:(0,EX.__)("Displays more block tools")},controls:Hu(e.map(([{props:n}])=>n),"title"),popoverProps:Kit})})}})]}),TX=qit;var Sh=c(T(),1);function Zit({popoverAnchor:e}){return(0,Sh.jsx)(vF.Popover,{placement:"top",focusOnMount:!1,anchor:e,className:"block-editor-rich-text__inline-format-toolbar",__unstableSlotName:"block-toolbar",children:(0,Sh.jsx)(Sx,{className:"block-editor-rich-text__inline-format-toolbar-group","aria-label":(0,mPe.__)("Format tools"),children:(0,Sh.jsx)(vF.ToolbarGroup,{children:(0,Sh.jsx)(TX,{})})})})}var Xit=({inline:e,editableContentElement:t})=>e?(0,Sh.jsx)(Zit,{popoverAnchor:t}):(0,Sh.jsx)(Ko,{group:"inline",children:(0,Sh.jsx)(TX,{})}),gPe=Xit;var _F=c(F(),1),hPe=c(te(),1);function bPe({html:e,value:t}){let o=(0,_F.useRef)(),r=!!t.activeFormats?.length,{__unstableMarkLastChangeAsPersistent:n}=(0,hPe.useDispatch)(B);(0,_F.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 hS=c(F(),1),WPe=c(ue(),1);var Tv=c(Ar(),1),yPe=c(Bo(),1);var{subscribeOwnedListener:Qit}=G(Tv.privateApis),Jit=["`",'"',"'","\u201C\u201D","\u2018\u2019"],vPe=e=>t=>{function o(r){let{inputType:n,data:i}=r,{value:s,onChange:a,registry:l}=e.current;if(n!=="insertText"||(0,Tv.isCollapsed)(s))return;let u=(0,yPe.applyFilters)("blockEditor.wrapSelectionSettings",Jit).find(([k,x])=>k===i||x===i);if(!u)return;let[d,f=d]=u,p=s.start,m=s.end+d.length,g=(0,Tv.insert)(s,d,p,p);g=(0,Tv.insert)(g,f,m,m);let{__unstableMarkLastChangeAsPersistent:h,__unstableMarkAutomaticChange:b}=l.dispatch(B);h(),a(g),b();let v={};for(let k in r)v[k]=r[k];v.data=f;let{ownerDocument:y}=t,{defaultView:_}=y,w=new _.InputEvent("input",v);window.queueMicrotask(()=>{t.dispatchEvent(w)}),r.preventDefault()}return Qit(t,"beforeinput",o,!0)};var pS=c(Ar(),1),fS=c(ce(),1);var _Pe=c(Ar(),1);function wPe(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,_Pe.insert)(e,o)}var{subscribeOwnedListener:kPe}=G(pS.privateApis);function xPe(e){let t=e.length;for(;t--;){let o=IC(e[t].attributes);if(o)return e[t].attributes[o]=e[t].attributes[o].toString().replace(Cf,""),[e[t].clientId,o,0,0];let r=xPe(e[t].innerBlocks);if(r)return r}return[]}var SPe=e=>t=>{function o(){let{getValue:s,onReplace:a,selectionChange:l,registry:u}=e.current;if(!a)return;let d=s(),{start:f,text:p}=d;if(p.slice(f-1,f)!==" ")return;let g=p.slice(0,f).trim(),h=(0,fS.getBlockTransforms)("from").filter(({type:_})=>_==="prefix"),b=(0,fS.findTransform)(h,({prefix:_})=>g===_);if(!b)return;let v=(0,pS.toHTMLString)({value:(0,pS.insert)(d,Cf,0,f)}),y=b.transform(v);return l(...xPe([y])),a([y]),u.dispatch(B).__unstableMarkAutomaticChange(),!0}function r(s){let{inputType:a,type:l}=s,{getValue:u,onChange:d,__unstableAllowPrefixTransformations:f,formatTypes:p,registry:m,onReplace:g}=e.current;if(a!=="insertText"&&l!=="compositionend"||f&&o())return;let h=u();if(g){let _=(0,fS.getBlockTransforms)("from").filter(k=>k.type==="input"),w=(0,fS.findTransform)(_,k=>k.regExp.test(h.text));if(w){g(w.transform()),m.dispatch(B).__unstableMarkAutomaticChange();return}}let b=p.reduce((_,{__unstableInputRule:w})=>(w&&(_=w(_)),_),wPe(h)),{__unstableMarkLastChangeAsPersistent:v,__unstableMarkAutomaticChange:y}=m.dispatch(B);b!==h&&(v(),d({...b,activeFormats:h.activeFormats}),y())}let n=kPe(t,"input",r,!0),i=kPe(t,"compositionend",r,!0);return()=>{n(),i()}};var CPe=c(Ar(),1);var{subscribeOwnedListener:est}=G(CPe.privateApis),EPe=e=>t=>{function o(r){if(r.inputType!=="insertReplacementText")return;let{registry:n}=e.current;n.dispatch(B).__unstableMarkLastChangeAsPersistent()}return est(t,"beforeinput",o)};var wF=c(wo(),1),TPe=c(Ar(),1);var{subscribeOwnedListener:tst}=G(TPe.privateApis),RPe=()=>e=>{function t(o){(wF.isKeyboardEvent.primary(o,"z")||wF.isKeyboardEvent.primary(o,"y")||wF.isKeyboardEvent.primaryShift(o,"z"))&&o.preventDefault()}return tst(e,"keydown",t,!0)};var BPe=c(Ar(),1);var{subscribeOwnedListener:ost}=G(BPe.privateApis),IPe=e=>t=>{let{keyboardShortcuts:o}=e.current;function r(n){for(let i of o.current)i(n)}return ost(t,"keydown",r,!0)};var PPe=c(Ar(),1);var{subscribeOwnedListener:rst}=G(PPe.privateApis),OPe=e=>t=>{let{inputEvents:o}=e.current;function r(n){for(let i of o.current)i(n)}return rst(t,"input",r)};var kF=c(wo(),1),APe=c(Ar(),1);var{subscribeOwnedListener:nst}=G(APe.privateApis),MPe=e=>t=>{function o(r){let{keyCode:n}=r;if(r.defaultPrevented||n!==kF.BACKSPACE&&n!==kF.ESCAPE)return;let{registry:i}=e.current,{didAutomaticChange:s,getSettings:a}=i.select(B),{__experimentalUndo:l}=a();l&&s()&&(r.preventDefault(),l())}return nst(t,"keydown",o)};var LPe=c(ce(),1),Jl=c(Ar(),1),DPe=c(ga(),1),VPe=c(ue(),1);var ist=c(F(),1),sst=c(ce(),1),ast=c(T(),1);function NPe(e,t){if(t?.length){let o=e.formats.length;for(;o--;)e.formats[o]=[...t,...e.formats[o]||[]]}}function xF(e){if(!(e!==!0&&e!=="p"&&e!=="li"))return e===!0?"p":e}function mS({allowedFormats:e,disableFormats:t}){return t?mS.EMPTY_ARRAY:e}mS.EMPTY_ARRAY=[];var{subscribeDelegatedListener:lst}=G(VPe.privateApis),{ownsSelection:cst}=G(Jl.privateApis),FPe=e=>t=>{function o(n){let{disableFormats:i,onChange:s,value:a,formatTypes:l,tagName:u,onReplace:d,__unstableEmbedURLOnPaste:f,preserveWhiteSpace:p,pastePlainText:m,registry:g}=e.current;if(!t.contains(n.target)&&!cst(t)||n.defaultPrevented)return;let h=wk(n);if(!h)return;n.preventDefault();let{plainText:b,html:v,files:y}=h;if(y.length)return;if(window.console.log(`Received HTML (RichText): | |
| 207 | +`,Ipt=1,Ppt=3,Bpt=1,SPe=(function(e){fne(t,e);function t(){var o=e!==null&&e.apply(this,arguments)||this;return o.cropperRef=uc.createRef(),o.imageRef=uc.createRef(),o.videoRef=uc.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=Spt(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=Ept(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,d=o.imageRef.current||o.videoRef.current;if(d&&o.containerRef){o.containerRect=o.containerRef.getBoundingClientRect(),o.saveContainerPosition();var u=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,p=((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,m=d.offsetWidth<f||d.offsetHeight<p,g=f/p,h=void 0;if(m)switch(o.state.mediaObjectFit){default:case"contain":h=u>g?{width:o.containerRect.height*g,height:o.containerRect.height}:{width:o.containerRect.width,height:o.containerRect.width/g};break;case"horizontal-cover":h={width:o.containerRect.width,height:o.containerRect.width/g};break;case"vertical-cover":h={width:o.containerRect.height*g,height:o.containerRect.height};break}else h={width:d.offsetWidth,height:d.offsetHeight};o.mediaSize=vr(vr({},h),{naturalWidth:f,naturalHeight:p}),o.props.setMediaSize&&o.props.setMediaSize(o.mediaSize);var b=o.props.cropSize?o.props.cropSize:vpt(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=vr({},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},d=o.props.restrictPosition?j2(l,o.mediaSize,o.state.cropSize,o.props.zoom,o.props.rotation):l;o.props.onCropChange(d)}}))},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,kPe.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 d=DL(r,o.props.minZoom,o.props.maxZoom);if(l){var u=o.getPointOnContainer(n,o.containerPosition),f=o.getPointOnMedia(u),p={x:f.x*d-u.x,y:f.y*d-u.y},m=o.props.restrictPosition?j2(p,o.mediaSize,o.state.cropSize,d,o.props.rotation):p;o.props.onCropChange(m)}o.props.onZoomChange(d)}},o.getCropData=function(){if(!o.state.cropSize)return null;var r=o.props.restrictPosition?j2(o.props.crop,o.mediaSize,o.state.cropSize,o.props.zoom,o.props.rotation):o.props.crop;return wpt(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?j2(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,d=s.keyboardStep,u=s.zoom,f=s.rotation,p=d;if(o.state.cropSize){r.shiftKey&&(p*=.2);var m=vr({},a);switch(r.key){case"ArrowUp":m.y-=p,r.preventDefault();break;case"ArrowDown":m.y+=p,r.preventDefault();break;case"ArrowLeft":m.x-=p,r.preventDefault();break;case"ArrowRight":m.x+=p,r.preventDefault();break;default:return}o.props.restrictPosition&&(m=j2(m,o.mediaSize,o.state.cropSize,u,f)),r.repeat||(i=(n=o.props).onInteractionStart)===null||i===void 0||i.call(n),l(m)}},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=Rpt,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,d,u,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)||((d=o.crop)===null||d===void 0?void 0:d.y)!==((u=this.props.crop)===null||u===void 0?void 0:u.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 p=this.getObjectFit();p!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:p},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,d=((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,u=l/d;return u<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=yPe(r,n),this.lastPinchRotation=wPe(r,n),this.onDragStart(xPe(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=xPe(n,i);this.onDrag(s),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame(function(){var a=yPe(n,i),l=r.props.zoom*(a/r.lastPinchDistance);r.setNewZoom(l,s,{shouldUpdatePosition:!1}),r.lastPinchDistance=a;var d=wPe(n,i),u=r.props.rotation+(d-r.lastPinchRotation);r.props.onRotationChange&&r.props.onRotationChange(u),r.lastPinchRotation=d})}},t.prototype.render=function(){var o=this,r,n=this.props,i=n.image,s=n.video,a=n.mediaProps,l=n.cropperProps,d=n.transform,u=n.crop,f=u.x,p=u.y,m=n.rotation,g=n.zoom,h=n.cropShape,b=n.showGrid,v=n.roundCropAreaPixels,_=n.style,y=_.containerStyle,w=_.cropAreaStyle,x=_.mediaStyle,k=n.classes,C=k.containerClassName,S=k.cropAreaClassName,R=k.mediaClassName,E=(r=this.state.mediaObjectFit)!==null&&r!==void 0?r:this.getObjectFit();return uc.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(B){return o.containerRef=B},"data-testid":"container",style:y,className:LL("reactEasyCrop_Container",C)},i?uc.createElement("img",vr({alt:"",className:LL("reactEasyCrop_Image",E==="contain"&&"reactEasyCrop_Contain",E==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",E==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",R)},a,{src:i,ref:this.imageRef,style:vr(vr({},x),{transform:d||"translate(".concat(f,"px, ").concat(p,"px) rotate(").concat(m,"deg) scale(").concat(g,")")}),onLoad:this.onMediaLoad})):s&&uc.createElement("video",vr({autoPlay:!0,playsInline:!0,loop:!0,muted:!0,className:LL("reactEasyCrop_Video",E==="contain"&&"reactEasyCrop_Contain",E==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",E==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",R)},a,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:vr(vr({},x),{transform:d||"translate(".concat(f,"px, ").concat(p,"px) rotate(").concat(m,"deg) scale(").concat(g,")")}),controls:!1}),(Array.isArray(s)?s:[{src:s}]).map(function(I){return uc.createElement("source",vr({key:I.src},I))})),this.state.cropSize&&uc.createElement("div",vr({ref:this.cropperRef,style:vr(vr({},w),{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:LL("reactEasyCrop_CropArea",h==="round"&&"reactEasyCrop_CropAreaRound",b&&"reactEasyCrop_CropAreaGrid",S)},l)))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:Ppt,minZoom:Ipt,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},cropperProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0,keyboardStep:Bpt},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})(uc.Component);var MPe=c(D(),1);var l1=c(D(),1);var CPe=Object.prototype.hasOwnProperty;function EPe(e,t,o){for(o of e.keys())if(ny(o,t))return o}function ny(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--&&ny(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=EPe(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=EPe(t,n),!n)||!ny(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(CPe.call(e,o)&&++r&&!CPe.call(t,o)||!(o in t)||!ny(e[o],t[o]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}var Bd=c(D(),1);var a1=1,TPe=5;var VL=e=>e>=0?e%360:(360+e%360)%360,Opt=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 RPe(e){return e*Math.PI/180}function Mpt(e,t,o){let r=RPe(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 IPe(e,t,o=0,r={horizontal:!1,vertical:!1}){try{let n=await Opt(e),i=document.createElement("canvas"),s=i.getContext("2d");if(!s)return null;let a=RPe(o),{width:l,height:d}=Mpt(n.width,n.height,o);i.width=l,i.height=d,s.translate(l/2,d/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 u=document.createElement("canvas"),f=u.getContext("2d");return f?(u.width=t.width,u.height=t.height,f.drawImage(i,t.x,t.y,t.width,t.height,0,0,t.width,t.height),new Promise(p=>{u.toBlob(m=>{m&&p(URL.createObjectURL(m))},"image/jpeg")})):null}catch{return null}}var iy={crop:{x:0,y:0,width:100,height:100},zoom:a1,rotation:0,aspectRatio:1,flip:{horizontal:!1,vertical:!1}},Apt={x:0,y:0},bee={crop:Apt,croppedArea:iy.crop,croppedAreaPixels:null,zoom:iy.zoom,rotation:iy.rotation,flip:iy.flip,aspectRatio:iy.aspectRatio,mediaSize:null};function PPe(){let[e,t]=(0,Bd.useState)(bee),[o,r]=(0,Bd.useState)(null),n=(0,Bd.useCallback)(d=>{t(u=>{let p={...typeof d=="function"?d(u):d};return"rotation"in p&&p.rotation!==void 0&&(p.rotation=VL(p.rotation)),{...u,...p}})},[]),i=(0,Bd.useCallback)((d=null)=>{if(!d){r(null),n(bee);return}if(typeof d=="object"){let u={...iy,...d};r(u),n(u)}},[n,r]),s=(0,Bd.useCallback)(()=>{if(o){let d={crop:{x:0,y:0},croppedAreaPixels:null};o.crop&&(d.croppedArea=o.crop),o.zoom!==void 0&&(d.zoom=o.zoom),o.rotation!==void 0&&(d.rotation=o.rotation),o.aspectRatio!==void 0&&(d.aspectRatio=o.aspectRatio),o.flip!==void 0&&(d.flip=o.flip),n(d)}else n({...bee})},[o,n]),a=(0,Bd.useMemo)(()=>{if(o){let u={crop:e.croppedAreaPixels||e.croppedArea,zoom:e.zoom,rotation:VL(e.rotation),aspectRatio:e.aspectRatio,flip:e.flip};return ny(u,o)===!1}let d={crop:e.croppedArea,zoom:e.zoom,rotation:VL(e.rotation),aspectRatio:e.aspectRatio,flip:e.flip};return ny(d,iy)===!1},[e,o]),l=(0,Bd.useCallback)(async d=>e.croppedAreaPixels?IPe(d,e.croppedAreaPixels,e.rotation,e.flip):null,[e.croppedAreaPixels,e.rotation,e.flip]);return(0,Bd.useMemo)(()=>({cropperState:e,setCropperState:n,resetState:o,setResetState:i,isDirty:a,reset:s,getCroppedImage:l}),[e,n,o,i,a,s,l])}var BPe=c(T(),1),OPe=(0,l1.createContext)({cropperState:{crop:{x:0,y:0},croppedArea:{x:0,y:0,width:100,height:100},croppedAreaPixels:null,zoom:a1,rotation:0,aspectRatio:1,flip:{horizontal:!1,vertical:!1},mediaSize:null},setCropperState:()=>{},resetState:null,setResetState:()=>{},isDirty:!1,reset:()=>{},getCroppedImage:()=>Promise.resolve(null)});function _ee({children:e}){let t=PPe(),o=(0,l1.useMemo)(()=>({...t}),[t]);return(0,BPe.jsx)(OPe.Provider,{value:o,children:e})}var H2=()=>{let e=(0,l1.useContext)(OPe);if(!e)throw new Error("Missing ImageCropperContext");return e};var APe=c(T(),1);function vee({src:e,onLoad:t,minZoom:o=a1,maxZoom:r=TPe,...n}){let{cropperState:i,setCropperState:s}=H2(),{crop:a,zoom:l,rotation:d,aspectRatio:u,flip:f}=i,p=v=>s({crop:v}),m=v=>s({zoom:v}),g=v=>s({rotation:v}),h=v=>s({mediaSize:v}),b=(0,MPe.useCallback)((v,_)=>{s({croppedArea:v,croppedAreaPixels:_})},[s]);return(0,APe.jsx)(SPe,{classes:{containerClassName:"image-cropper__container",cropAreaClassName:"image-cropper__crop-area",mediaClassName:"image-cropper__image"},minZoom:o,maxZoom:r,rotation:d,image:e,setMediaSize:h,crop:a,zoom:l,aspect:u,onCropChange:p,onZoomChange:m,onCropComplete:b,onMediaLoaded:v=>{t?.(v)},onRotationChange:g,transform:[`translate(${a.x}px, ${a.y}px)`,`rotateZ(${d}deg)`,`rotateY(${f.horizontal?180:0}deg)`,`rotateX(${f.vertical?180:0}deg)`,`scale(${l})`].join(" "),...n})}var u1=c(Q(),1),d1=c(X(),1);var NPe=100,LPe=300,FL={placement:"bottom-start"};var c1=c(D(),1);var zL=c(oe(),1),sy=c(D(),1),sm=c(X(),1),DPe=c(Ks(),1),VPe=c(Ut(),1);var Npt={crop:(0,sm.__)("Image cropped."),rotate:(0,sm.__)("Image rotated."),cropAndRotate:(0,sm.__)("Image cropped and rotated.")};function FPe({crop:e,rotation:t,url:o,id:r,onSaveImage:n,onFinishEditing:i}){let{createErrorNotice:s,createSuccessNotice:a}=(0,zL.useDispatch)(DPe.store),[l,d]=(0,sy.useState)(!1),{editMediaEntity:u}=(0,zL.useSelect)(m=>({editMediaEntity:m(P).getSettings()?.[I3]}),[]),f=(0,sy.useCallback)(()=>{d(!1),i()},[i]),p=(0,sy.useCallback)(async()=>{if(!u){i(),s((0,sm.__)("Sorry, you are not allowed to edit images on this site."),{id:"image-editing-error",type:"snackbar"});return}d(!0);let m=[];if(t>0&&m.push({type:"rotate",args:{angle:t}}),(e.width<99.9||e.height<99.9)&&m.push({type:"crop",args:{left:e.x,top:e.y,width:e.width,height:e.height}}),m.length===0){d(!1),i();return}let g=m.length===1?m[0].type:"cropAndRotate";try{let h=await u(r,{src:o,modifiers:m},{throwOnError:!0});h&&(n({id:h.id,url:h.source_url}),a(Npt[g],{type:"snackbar",actions:[{label:(0,sm.__)("Undo"),onClick:()=>{n({id:r,url:o})}}]}))}catch(h){s((0,sm.sprintf)((0,sm.__)("Could not edit image. %s"),(0,VPe.__unstableStripHTML)(h.message)),{id:"image-editing-error",type:"snackbar"})}finally{d(!1),i()}},[e,t,r,o,n,s,a,i,u]);return(0,sy.useMemo)(()=>({isInProgress:l,apply:p,cancel:f}),[l,p,f])}var Od=c(D(),1),zPe=c(To(),1);function jPe({url:e,naturalWidth:t,naturalHeight:o}){let[r,n]=(0,Od.useState)(),{cropperState:i,setCropperState:s}=H2(),{zoom:a,aspectRatio:l,crop:d,croppedArea:u}=i,f=(0,Od.useCallback)(_=>{s({zoom:_})},[s]),p=(0,Od.useCallback)(_=>{s({aspectRatio:_})},[s]),m=t/o,g=o/t;(0,Od.useEffect)(()=>{p(m)},[]);let[h,b]=(0,Od.useState)(0),v=(0,Od.useCallback)(()=>{let _=(h+90)%360,y=m,x=a!==1||!(m===l||g===l);if(h%180===90&&(y=1/m),_===0){n(),b(_),s({aspectRatio:x?l:m,crop:{x:-(d.y*y),y:d.x*y}});return}function k(R){let E=document.createElement("canvas"),I=0,B=0;_%180?(E.width=R.target.height,E.height=R.target.width):(E.width=R.target.width,E.height=R.target.height),(_===90||_===180)&&(I=E.width),(_===270||_===180)&&(B=E.height);let O=E.getContext("2d");O.translate(I,B),O.rotate(_*Math.PI/180),O.drawImage(R.target,0,0),E.toBlob(M=>{n(URL.createObjectURL(M)),b(_);let N=x?l:E.width/E.height;s({aspectRatio:N,crop:{x:-(d.y*y),y:d.x*y}})})}let C=new window.Image;C.src=e,C.onload=k;let S=(0,zPe.applyFilters)("media.crossOrigin",void 0,e);typeof S=="string"&&(C.crossOrigin=S)},[h,m,e,s,d,a,l,g,b]);return(0,Od.useMemo)(()=>({editedUrl:r,setEditedUrl:n,crop:u,zoom:a,setZoom:f,rotation:h,rotateClockwise:v,aspect:l,setAspect:p,defaultAspect:m}),[r,u,a,f,h,v,l,p,m])}var HPe=c(T(),1),yee=(0,c1.createContext)({});yee.displayName="ImageEditingContext";var tf=()=>(0,c1.useContext)(yee);function UPe({id:e,url:t,naturalWidth:o,naturalHeight:r,onFinishEditing:n,onSaveImage:i,children:s}){let a=jPe({url:t,naturalWidth:o,naturalHeight:r}),l=FPe({id:e,url:t,onSaveImage:i,onFinishEditing:n,...a}),d=(0,c1.useMemo)(()=>({...a,...l}),[a,l]);return(0,HPe.jsx)(yee.Provider,{value:d,children:s})}var fc=c(T(),1);function jL({aspectRatios:e,isDisabled:t,label:o,onClick:r,value:n}){return(0,fc.jsx)(u1.MenuGroup,{label:o,children:e.map(({name:i,slug:s,ratio:a})=>(0,fc.jsx)(u1.MenuItem,{disabled:t,onClick:()=>{r(a)},role:"menuitemradio",isSelected:a===n,icon:a===n?Vn:void 0,children:i},s))})}function Lpt(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 wee({ratio:e,...t}){return{ratio:Lpt(e),...t}}function WPe({toggleProps:e}){let{isInProgress:t,aspect:o,setAspect:r,defaultAspect:n}=tf(),[i,s,a]=Fe("dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios");return(0,fc.jsx)(u1.DropdownMenu,{icon:aj,label:(0,d1.__)("Aspect Ratio"),popoverProps:FL,toggleProps:e,children:({onClose:l})=>(0,fc.jsxs)(fc.Fragment,{children:[(0,fc.jsx)(jL,{isDisabled:t,onClick:d=>{r(d),l()},value:o,aspectRatios:[{slug:"original",name:(0,d1.__)("Original"),ratio:n},...a?i.map(wee).filter(({ratio:d})=>d===1):[]]}),s?.length>0&&(0,fc.jsx)(jL,{label:(0,d1.__)("Theme"),isDisabled:t,onClick:d=>{r(d),l()},value:o,aspectRatios:s}),a&&(0,fc.jsx)(jL,{label:(0,d1.__)("Landscape"),isDisabled:t,onClick:d=>{r(d),l()},value:o,aspectRatios:i.map(wee).filter(({ratio:d})=>d>1)}),a&&(0,fc.jsx)(jL,{label:(0,d1.__)("Portrait"),isDisabled:t,onClick:d=>{r(d),l()},value:o,aspectRatios:i.map(wee).filter(({ratio:d})=>d<1)})]})})}var GPe=c(Q(),1),$Pe=c(ue(),1);var rb=c(T(),1);function YPe({url:e,width:t,height:o,naturalHeight:r,naturalWidth:n,borderProps:i}){let{isInProgress:s,editedUrl:a,rotation:l}=tf(),[d,{width:u}]=(0,$Pe.useResizeObserver)(),f=o||u*r/n;l%180===90&&(f=u*n/r);let p=(0,rb.jsxs)("div",{className:U("wp-block-image__crop-area",i?.className,{"is-applying":s}),style:{...i?.style,width:t||u,height:f},children:[(0,rb.jsx)(vee,{src:a||e}),s&&(0,rb.jsx)(GPe.Spinner,{})]});return(0,rb.jsxs)(rb.Fragment,{children:[d,p]})}var nb=c(Q(),1),xee=c(X(),1);var U2=c(T(),1);function KPe(){let{isInProgress:e,zoom:t,setZoom:o}=tf();return(0,U2.jsx)(nb.Dropdown,{contentClassName:"wp-block-image__zoom",popoverProps:FL,renderToggle:({isOpen:r,onToggle:n})=>(0,U2.jsx)(nb.ToolbarButton,{icon:MH,label:(0,xee.__)("Zoom"),onClick:n,"aria-expanded":r,disabled:e}),renderContent:()=>(0,U2.jsx)(nb.__experimentalDropdownContentWrapper,{paddingSize:"medium",children:(0,U2.jsx)(nb.RangeControl,{label:(0,xee.__)("Zoom"),min:NPe,max:LPe,value:Math.round(t*100),onChange:r=>o(r/100)})})})}var qPe=c(Q(),1),XPe=c(X(),1);var ZPe=c(T(),1);function QPe(){let{isInProgress:e,rotateClockwise:t}=tf();return(0,ZPe.jsx)(qPe.ToolbarButton,{icon:IH,label:(0,XPe.__)("Rotate"),onClick:t,disabled:e})}var kee=c(Q(),1),See=c(X(),1);var ay=c(T(),1);function JPe(){let{isInProgress:e,apply:t,cancel:o}=tf();return(0,ay.jsxs)(ay.Fragment,{children:[(0,ay.jsx)(kee.ToolbarButton,{onClick:t,disabled:e,children:(0,See.__)("Apply")}),(0,ay.jsx)(kee.ToolbarButton,{onClick:o,children:(0,See.__)("Cancel")})]})}var tl=c(T(),1);function tBe({id:e,url:t,width:o,height:r,naturalHeight:n,naturalWidth:i,onSaveImage:s,onFinishEditing:a,borderProps:l}){return(0,eBe.default)("wp.blockEditor.__experimentalImageEditor",{since:"7.1",hint:"The Media Editor modal is now the default crop experience for core blocks. This component will be removed in a future major release."}),(0,tl.jsx)(_ee,{children:(0,tl.jsxs)(UPe,{id:e,url:t,naturalWidth:i,naturalHeight:n,onSaveImage:s,onFinishEditing:a,children:[(0,tl.jsx)(YPe,{borderProps:l,url:t,width:o,height:r,naturalHeight:n,naturalWidth:i}),(0,tl.jsxs)(Jo,{children:[(0,tl.jsxs)(W2.ToolbarGroup,{children:[(0,tl.jsx)(KPe,{}),(0,tl.jsx)(W2.ToolbarItem,{children:d=>(0,tl.jsx)(WPe,{toggleProps:d})}),(0,tl.jsx)(QPe,{})]}),(0,tl.jsx)(W2.ToolbarGroup,{children:(0,tl.jsx)(JPe,{})})]})]})})}var ol=c(Q(),1),ib=c(X(),1);var f1=c(D(),1);function oBe(e,t,o,r,n){let[i,s]=(0,f1.useState)(t??r??""),[a,l]=(0,f1.useState)(e??o??"");return(0,f1.useEffect)(()=>{t===void 0&&r!==void 0&&s(r),e===void 0&&o!==void 0&&l(o)},[r,o]),(0,f1.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,p)=>{let m=p===""?void 0:parseInt(p,10);f==="width"?s(m):l(m),n({[f]:m})},updateDimensions:(f,p)=>{l(f??o),s(p??r),n({height:f,width:p})}}}var pc=c(T(),1),rBe=[25,50,75,100],Dpt=()=>{};function nBe(e,t,o){let r=Math.round(t*(e/100)),n=Math.round(o*(e/100));return{scaledWidth:r,scaledHeight:n}}function iBe({imageSizeHelp:e,imageWidth:t,imageHeight:o,imageSizeOptions:r=[],isResizable:n=!0,slug:i,width:s,height:a,onChange:l,onChangeImage:d=Dpt}){let{currentHeight:u,currentWidth:f,updateDimension:p,updateDimensions:m}=oBe(a,s,o,t,l),g=b=>{if(b===void 0){m();return}let{scaledWidth:v,scaledHeight:_}=nBe(b,t,o);m(_,v)},h=rBe.find(b=>{let{scaledWidth:v,scaledHeight:_}=nBe(b,t,o);return f===v&&u===_});return(0,pc.jsxs)(ol.__experimentalVStack,{className:"block-editor-image-size-control",spacing:"4",children:[r&&r.length>0&&(0,pc.jsx)(ol.SelectControl,{label:(0,ib.__)("Resolution"),value:i,options:r,onChange:d,help:e}),n&&(0,pc.jsxs)(pc.Fragment,{children:[(0,pc.jsxs)(ol.__experimentalHStack,{align:"baseline",spacing:"4",children:[(0,pc.jsx)(ol.__experimentalNumberControl,{label:(0,ib.__)("Width"),value:f,min:1,onChange:b=>p("width",b)}),(0,pc.jsx)(ol.__experimentalNumberControl,{label:(0,ib.__)("Height"),value:u,min:1,onChange:b=>p("height",b)})]}),(0,pc.jsx)(ol.__experimentalToggleGroupControl,{label:(0,ib.__)("Image size presets"),hideLabelFromVision:!0,onChange:g,value:h,isBlock:!0,children:rBe.map(b=>(0,pc.jsx)(ol.__experimentalToggleGroupControlOption,{value:b,label:(0,ib.sprintf)((0,ib.__)("%d%%"),b)},b))})]})]})}var HL=c(Q(),1);var ly=c(X(),1),aBe=c(T(),1),sBe={left:Ym,center:$m,right:Km,"space-between":uw,stretch:mw};function Vpt({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?sBe[r]:sBe.left,l=[{name:"left",icon:Ym,title:(0,ly.__)("Justify items left"),isActive:r==="left",onClick:()=>s("left")},{name:"center",icon:$m,title:(0,ly.__)("Justify items center"),isActive:r==="center",onClick:()=>s("center")},{name:"right",icon:Km,title:(0,ly.__)("Justify items right"),isActive:r==="right",onClick:()=>s("right")},{name:"space-between",icon:uw,title:(0,ly.__)("Space between items"),isActive:r==="space-between",onClick:()=>s("space-between")},{name:"stretch",icon:mw,title:(0,ly.__)("Stretch items"),isActive:r==="stretch",onClick:()=>s("stretch")}],d=i?HL.ToolbarGroup:HL.ToolbarDropdownMenu,u=i?{isCollapsed:t}:{};return(0,aBe.jsx)(d,{icon:a,popoverProps:n,label:(0,ly.__)("Change items justification"),controls:l.filter(f=>e.includes(f.name)),...u})}var Cee=Vpt;var Eee=c(T(),1),Gw=e=>(0,Eee.jsx)(Cee,{...e,isToolbar:!1}),lBe=e=>(0,Eee.jsx)(Cee,{...e,isToolbar:!0});var Ns=c(Q(),1),Md=c(X(),1),jr=c(D(),1),tD=c(ue(),1),e7e=c(Ut(),1),t7e=c(Mo(),1),o7e=c(_k(),1),oD=c(oe(),1),Nee=c(v2(),1);var r7e=c(Gt(),1),rD=c(ml(),1);var p1=c(Q(),1);var UL=c(ue(),1),WL=c(X(),1),cBe=c(D(),1),am=c(T(),1);function dBe({children:e,settingsOpen:t,setSettingsOpen:o}){let r=(0,UL.useReducedMotion)(),n=r?cBe.Fragment:p1.__unstableAnimatePresence,i=r?"div":p1.__unstableMotion.div,a=`link-control-settings-drawer-${(0,UL.useInstanceId)(dBe)}`;return(0,am.jsxs)(am.Fragment,{children:[(0,am.jsx)(p1.Button,{__next40pxDefaultSize:!0,className:"block-editor-link-control__drawer-toggle","aria-expanded":t,onClick:()=>o(!t),icon:(0,WL.isRTL)()?$S:nu,"aria-controls":a,children:(0,WL._x)("Advanced","Additional link settings")}),(0,am.jsx)(n,{children:t&&(0,am.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,am.jsx)("div",{className:"block-editor-link-control__drawer-inner",children:e})})})]})}var uBe=dBe;var XL=c(D(),1),Mee=c(X(),1),PBe=c(Gt(),1);var G2=c(X(),1),xBe=c(Q(),1);var kBe=c(Gt(),1);var GL=c(X(),1),fBe=c(Q(),1),pBe=c(D(),1);var Tee=c(T(),1),Fpt=({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,pBe.createInterpolateElement)((0,GL.sprintf)((0,GL.__)("Create: <mark>%s</mark>"),e),{mark:(0,Tee.jsx)("mark",{})}),(0,Tee.jsx)(fBe.MenuItem,{...o,iconPosition:"left",icon:Ys,className:"block-editor-link-control__search-item",onClick:t,children:n})},mBe=Fpt;var lm=c(X(),1),YL=c(Q(),1);var gBe=c(Ut(),1),g1=c(ml(),1),hBe=c(ue(),1),bBe=c(Gt(),1),m1=c(T(),1),$L={post:{icon:TH,label:(0,lm.__)("Post")},page:{icon:t_,label:(0,lm.__)("Page")},post_tag:{icon:qH,label:(0,lm.__)("Tag")},category:{icon:lj,label:(0,lm.__)("Category")},attachment:{icon:Aj,label:(0,lm.__)("Attachment")}};function zpt({isURL:e,suggestion:t}){let o=null;return e?o=gC:t.type in $L&&(o=$L[t.type].icon,t.type==="page"&&(t.isFrontPage&&(o=eH),t.isBlogHome&&(o=sU))),o?(0,m1.jsx)(St,{className:"block-editor-link-control__search-item-icon",icon:o}):null}function jpt(e){return e?.trim()?.length?e?.replace(/^\/?/,"/"):e}function Hpt(e){return e?.trim()?.length?e?.replace(/\/$/,""):e}var Upt=(e,...t)=>(...o)=>e(...o,...t),Wpt=e=>t=>t==null||t!==t?e:t;function Gpt(e){return e&&(0,hBe.pipe)(g1.safeDecodeURI,g1.getPath,Wpt(""),Upt(g1.filterURLForDisplay,24),Hpt,jpt)(e)}var _Be=({itemProps:e,suggestion:t,searchTerm:o,onClick:r,isURL:n=!1,shouldShowType:i=!1})=>{let s=n?(0,lm.__)("Press ENTER to add this link"):Gpt(t.url);return(0,m1.jsx)(YL.MenuItem,{...e,info:s,iconPosition:"left",icon:(0,m1.jsx)(zpt,{suggestion:t,isURL:n}),onClick:r,shortcut:i&&$pt(t),className:"block-editor-link-control__search-item",children:(0,m1.jsx)(YL.TextHighlight,{text:(0,gBe.__unstableStripHTML)(t.title),highlight:o})})};function $pt(e){return e.isFrontPage?(0,lm.__)("Front page"):e.isBlogHome?(0,lm.__)("Blog home"):e.type in $L?$L[e.type].label:e.type}var vBe=_Be,yBe=e=>((0,bBe.default)("wp.blockEditor.__experimentalLinkControlSearchItem",{since:"6.8"}),(0,m1.jsx)(_Be,{...e}));var wBe=c(X(),1),cy="__CREATE__",Ree="tel",KL="link",Iee="mailto",Pee="internal",h1=[KL,Iee,Ree,Pee],Bee=[{id:"opensInNewTab",title:(0,wBe.__)("Open in new tab")}];var dy=c(T(),1);function SBe({withCreateSuggestion:e,currentInputValue:t,handleSuggestionClick:o,suggestionsListProps:r,buildSuggestionItemProps:n,suggestions:i,selectedSuggestion:s,isLoading:a,isInitialSuggestions:l,createSuggestionButtonText:d,suggestionsQuery:u}){let f=U("block-editor-link-control__search-results",{"is-loading":a}),p=i.length===1&&h1.includes(i[0].type),m=e&&!p&&!l,g=!u?.type,h=l?(0,G2.__)("Suggestions"):(0,G2.sprintf)((0,G2.__)('Search results for "%s"'),t);return(0,dy.jsx)("div",{className:"block-editor-link-control__search-results-wrapper",children:(0,dy.jsx)("div",{...r,className:f,"aria-label":h,children:(0,dy.jsx)(xBe.MenuGroup,{children:i.map((b,v)=>m&&cy===b.type?(0,dy.jsx)(mBe,{searchTerm:t,buttonText:d,onClick:()=>o(b),itemProps:n(b,v),isSelected:v===s},b.type):cy===b.type?null:(0,dy.jsx)(vBe,{itemProps:n(b,v),suggestion:b,index:v,onClick:()=>{o(b)},isSelected:v===s,isURL:h1.includes(b.type),searchTerm:t,shouldShowType:g,isFrontPage:b?.isFrontPage,isBlogHome:b?.isBlogHome},`${b.id}-${b.type}`))})})})}var CBe=SBe,EBe=e=>((0,kBe.default)("wp.blockEditor.__experimentalLinkControlSearchResults",{since:"6.8"}),(0,dy.jsx)(SBe,{...e}));var TBe=c(D(),1),RBe=c(oe(),1);var qL=c(ml(),1);function $2(e){let t=e?.trim();if(!t)return{url:t,type:KL};let o=KL,r=(0,qL.getProtocol)(t)||"";return r.includes("mailto")?o=Iee:r.includes("tel")?o=Ree:t?.startsWith("#")&&(o=Pee),Hb(t)||Ub(t)||t.startsWith("?")||r?{url:t,type:o}:{url:(0,qL.prependHTTPS)(t),type:o}}var Ypt=()=>Promise.resolve([]),Kpt=e=>{let{url:t,type:o}=$2(e);return Promise.resolve([{id:e,title:e,url:t,type:o}])},qpt=async(e,t,o,r,n,i)=>{let{isInitialSuggestions:s}=t,a=await o(e,t);return a.map(l=>l.type!=="page"?l:Number(l.id)===n?(l.isFrontPage=!0,l):(Number(l.id)===i&&(l.isBlogHome=!0),l)),s||Wb(e)||!r?a:a.concat({title:e,url:e,type:cy})};function IBe(e,t,o){let{fetchSearchSuggestions:r,pageOnFront:n,pageForPosts:i}=(0,RBe.useSelect)(a=>{let{getSettings:l}=a(P);return{pageOnFront:l().pageOnFront,pageForPosts:l().pageForPosts,fetchSearchSuggestions:l().__experimentalFetchLinkSuggestions}},[]),s=t?Kpt:Ypt;return(0,TBe.useCallback)((a,{isInitialSuggestions:l})=>Wb(a)?s(a,{isInitialSuggestions:l}):qpt(a,{...e,isInitialSuggestions:l},r,o,n,i),[s,r,n,i,e,o])}var b1=c(T(),1),Xpt=()=>Promise.resolve([]),Oee=()=>{},BBe=(0,XL.forwardRef)(({value:e,children:t,currentLink:o={},className:r=null,placeholder:n=null,withCreateSuggestion:i=!1,onCreateSuggestion:s=Oee,onChange:a=Oee,onSelect:l=Oee,showSuggestions:d=!0,renderSuggestions:u=k=>(0,b1.jsx)(CBe,{...k}),fetchSuggestions:f=null,allowDirectEntry:p=!0,showInitialSuggestions:m=!1,suggestionsQuery:g={},withURLSuggestion:h=!0,createSuggestionButtonText:b,hideLabelFromVision:v=!1,suffix:_,isEntity:y=!1,customValidity:w},x)=>{let k=IBe(g,p,i,h),C=d?f||k:Xpt,[S,R]=(0,XL.useState)(),E=(N,j)=>{a(N),R(j)},I=N=>u({...N,withCreateSuggestion:i,createSuggestionButtonText:b,suggestionsQuery:g,handleSuggestionClick:j=>{N.handleSuggestionClick&&N.handleSuggestionClick(j),B(j)}}),B=async N=>{let j=N;if(cy===N.type){try{j=await s(N.title),j?.url&&l(j)}catch{}return}if(p||j&&Object.keys(j).length>=1){let{id:V,url:A,kind:L,type:z,...F}=o??{};l({...F,...j},j)}},O=n??(0,Mee.__)("Search or type URL"),M=v&&n!==""?O:(0,Mee.__)("Link");return(0,b1.jsxs)("div",{className:"block-editor-link-control__search-input-container",children:[(0,b1.jsx)(cm,{disableSuggestions:o?.url===e,label:M,hideLabelFromVision:v,className:r,value:e,onChange:E,placeholder:O,__experimentalRenderSuggestions:d?I:null,__experimentalFetchLinkSuggestions:C,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:m,customValidity:w,required:!1,onSubmit:(N,j)=>{let V=N||S;!V&&!e?.trim()?.length?j.preventDefault():B(V||{url:e})},inputRef:x,suffix:_,disabled:y}),t]})}),OBe=BBe,MBe=e=>((0,PBe.default)("wp.blockEditor.__experimentalLinkControlSearchInput",{since:"6.8"}),(0,b1.jsx)(BBe,{...e}));var sb=c(X(),1),Zn=c(Q(),1),VBe=c(ue(),1),JL=c(ml(),1);var FBe=c(Ut(),1),eD=c(oe(),1),zBe=c(Ks(),1),jBe=c(v2(),1);var ABe=c(Q(),1),{Slot:NBe,Fill:LBe}=(0,ABe.createSlotFill)("BlockEditorLinkControlViewer");var DBe=c(oe(),1),ZL=c(D(),1);function Zpt(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 Qpt(e){let[t,o]=(0,ZL.useReducer)(Zpt,{richData:null,isFetching:!1}),{fetchRichUrlData:r}=(0,DBe.useSelect)(n=>{let{getSettings:i}=n(P);return{fetchRichUrlData:i().__experimentalFetchRichUrlData}},[]);return(0,ZL.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 QL=Qpt;var $o=c(T(),1);function HBe({value:e,onEditClick:t,hasRichPreviews:o=!1,hasUnlinkControl:r=!1,onRemove:n}){let i=(0,eD.useSelect)(b=>b(jBe.store).get("core","showIconLabels"),[]),s=o?e?.url:null,{richData:a,isFetching:l}=QL(s),d=a&&Object.keys(a).length,u=e&&(0,JL.filterURLForDisplay)((0,JL.safeDecodeURI)(e.url),24)||"",f=!e?.url?.length,p=!f&&(0,FBe.__unstableStripHTML)(e?.entityTitle||a?.title||e?.title||u),m;a?.icon?m=(0,$o.jsx)("img",{src:a?.icon,alt:""}):f?m=(0,$o.jsx)(St,{icon:OC,size:32}):m=(0,$o.jsx)(St,{icon:gC});let{createNotice:g}=(0,eD.useDispatch)(zBe.store),h=(0,VBe.useCopyToClipboard)(e.url,()=>{g("info",(0,sb.__)("Link copied to clipboard."),{isDismissible:!0,type:"snackbar"})});return(0,$o.jsx)(Zn.Flex,{role:"group","aria-label":(0,sb.__)("Manage link"),className:U("block-editor-link-control__preview",{"is-current":!0,"is-rich":d,"is-fetching":!!l,"is-preview":!0,"is-error":f,"is-url-title":p===u}),children:(0,$o.jsxs)(Zn.Flex,{gap:0,align:"flex-start",children:[(0,$o.jsxs)(Zn.Flex,{className:"block-editor-link-control__link-information",role:"figure","aria-label":(0,sb.__)("Link information"),justify:"start",align:"flex-start",children:[e?.image?(0,$o.jsx)(Zn.Flex,{className:"block-editor-link-control__preview-image",justify:"center",children:(0,$o.jsx)("img",{src:e?.image,alt:""})}):(0,$o.jsx)(Zn.Flex,{className:U("block-editor-link-control__preview-icon",{"is-image":a?.icon}),justify:"center",children:m}),(0,$o.jsx)(Zn.Flex,{className:"block-editor-link-control__preview-details",direction:"column",gap:2,children:f?(0,$o.jsx)("span",{className:"block-editor-link-control__preview-error-notice",children:(0,sb.__)("Link is empty")}):(0,$o.jsxs)($o.Fragment,{children:[(0,$o.jsx)(Zn.ExternalLink,{className:"block-editor-link-control__preview-title",href:e.url,children:(0,$o.jsx)(Zn.__experimentalTruncate,{numberOfLines:1,children:p})}),(0,$o.jsx)("span",{className:"block-editor-link-control__preview-info",children:(0,$o.jsx)(Zn.__experimentalTruncate,{numberOfLines:1,children:u})}),e?.badges?.length>0&&(0,$o.jsx)(Zn.__experimentalHStack,{className:"block-editor-link-control__preview-badges",alignment:"left",gap:1,children:e.badges.map((b,v)=>(0,$o.jsx)(cp,{intent:b.intent,children:b.label},`${b.label}|${b.intent}|${v}`))})]})})]}),(0,$o.jsx)(Zn.Button,{icon:o_,label:(0,sb.__)("Edit link"),onClick:t,size:"compact",showTooltip:!i}),r&&(0,$o.jsx)(Zn.Button,{icon:$s,label:(0,sb.__)("Remove link"),onClick:n,size:"compact",showTooltip:!i}),(0,$o.jsx)(Zn.Button,{icon:vj,label:(0,sb.__)("Copy link"),ref:h,accessibleWhenDisabled:!0,disabled:f,size:"compact",showTooltip:!i}),(0,$o.jsx)(NBe,{fillProps:e})]})})}var UBe=c(X(),1),WBe=c(Q(),1);var uy=c(T(),1),Jpt=()=>{},emt=({value:e,onChange:t=Jpt,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,uy.jsx)("div",{className:"block-editor-link-control__setting",children:s},i.id)}return null}return(0,uy.jsx)(WBe.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,uy.jsxs)("fieldset",{className:"block-editor-link-control__settings",children:[(0,uy.jsx)(Et,{render:(0,uy.jsx)("legend",{}),children:(0,UBe.__)("Currently selected link settings")}),n]})},GBe=emt;var $Be=c(X(),1),fy=c(D(),1);function YBe(e){let t=(0,fy.useRef)(),[o,r]=(0,fy.useState)(!1),[n,i]=(0,fy.useState)(null),s=async function(a){r(!0),i(null);try{return t.current=tmt(Promise.resolve(e(a))),await t.current.promise}catch(l){if(l&&l.isCanceled)return;throw i(l.message||(0,$Be.__)("An unknown error occurred during creation. Please try again.")),l}finally{r(!1)}};return(0,fy.useEffect)(()=>()=>{t.current&&t.current.cancel()},[]),{createPage:s,isCreatingPage:o,errorMessage:n}}var tmt=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 Aee=c(D(),1),XBe=c(qBe(),1);function ZBe(e){let[t,o]=(0,Aee.useState)(e||{}),[r,n]=(0,Aee.useState)(e);return(0,XBe.default)(e,r)||(n(e),o(e)),[t,o,l=>{o({...t,url:l})},l=>{o({...t,title:l})},l=>d=>{let u=Object.keys(d).reduce((f,p)=>(l.includes(p)&&(f[p]=d[p]),f),{});o({...t,...u})}]}var rr=c(T(),1),Lee=()=>{},QBe="core/block-editor",JBe="linkControlSettingsDrawer";function py({searchInputPlaceholder:e,value:t,settings:o=Bee,onChange:r=Lee,onInputChange:n,onRemove:i,onCancel:s,noDirectEntry:a=!1,showSuggestions:l=!0,showInitialSuggestions:d,forceIsEditingLink:u,createSuggestion:f,withCreateSuggestion:p,inputValue:m="",suggestionsQuery:g={},noURLSuggestion:h=!1,createSuggestionButtonText:b,hasRichPreviews:v=!1,hasTextControl:_=!1,renderControlBottom:y=null,handleEntities:w=!1}){p===void 0&&f&&(p=!0);let[x,k]=(0,jr.useState)(!1),[C,S]=(0,jr.useState)(void 0),{advancedSettingsPreference:R}=(0,oD.useSelect)(Ye=>({advancedSettingsPreference:Ye(Nee.store).get(QBe,JBe)??!1}),[]),{set:E}=(0,oD.useDispatch)(Nee.store),I=Ye=>{E&&E(QBe,JBe,Ye),k(Ye)},B=R||x,O=(0,jr.useRef)(!0),M=(0,jr.useRef)(),N=(0,tD.useMergeRefs)([M,cx()]),j=(0,jr.useRef)(),V=(0,jr.useRef)(),A=(0,jr.useRef)(),L=o.map(({id:Ye})=>Ye),[z,F,G,$,K]=ZBe(t),q=Ye=>{G(Ye),n?.(Ye)},H=w&&!!z?.id,J=(0,tD.useInstanceId)(py,"link-control"),W=H?`${J}__help`:null,Y=t&&!(0,o7e.isShallowEqualObjects)(z,t),[ee,re]=(0,jr.useState)(u!==void 0?u:!t||!t.url),{createPage:ne,isCreatingPage:ie,errorMessage:be}=YBe(f);(0,jr.useEffect)(()=>{u!==void 0&&re(u)},[u]),(0,jr.useEffect)(()=>{if(O.current)return;(e7e.focus.focusable.find(M.current)[0]||M.current).focus()},[ee,ie]),(0,jr.useEffect)(()=>(O.current=!1,()=>{O.current=!0}),[]);let pe=(0,jr.useRef)();(0,jr.useEffect)(()=>{if(pe.current===void 0){pe.current=m;return}pe.current!==m&&(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."),pe.current=m)},[m]),(0,jr.useEffect)(()=>{if(C?.type==="invalid"){let Ye=V.current;Ye&&typeof Ye.reportValidity=="function"&&Ye.reportValidity()}},[C]);let Ee=t?.url?.trim()?.length>0,ye=()=>{re(!1)},Oe=Ye=>{let Se={type:"invalid",message:(0,Md.__)("Please enter a valid URL.")},Ie={type:"valid"},me=Ye?.trim();if(!me?.length||!Wb(me))return Se;if(Hb(me)||Ub(me))return Ie;let Te=(0,rD.prependHTTPS)(me);return(0,rD.isURL)(Te)?Ie:Se},we=Ye=>{if(!(Ye&&Ye.id&&Ye.type&&!h1.includes(Ye.type))){let me=Ye?.url||$e,Te=Oe(me);if(Te.type==="invalid"){S(Te);return}let{url:Me}=$2(me);Ye={...Ye,url:Me}}Ye?.kind==="taxonomy"&&Ye?.url&&(A.current=Ye.url);let Ie=Object.keys(Ye).reduce((me,Te)=>(L.includes(Te)||(me[Te]=Ye[Te]),me),{});r({...z,...Ie,title:z?.title||Ye?.title}),S(void 0),ye()},_e=()=>{if(ct)return!1;let Ye=$e.trim(),Se=z&&z.id&&z.type&&!h1.includes(z.type),Ie=t?.url===Ye;if(Se&&Ie)return S(void 0),!0;let me=Oe($e);return me.type==="invalid"?(S(me),!1):(S(void 0),!0)},xe=()=>{Y&&r({...t,...z,url:$2($e).url}),ye(),S(void 0)},he=()=>{_e()&&xe()},Ze=Ye=>{let{keyCode:Se}=Ye;Se===t7e.ENTER&&!ct&&(Ye.preventDefault(),he())},fe=()=>{F(t)},Ce=Ye=>{Ye.preventDefault(),Ye.stopPropagation(),fe(),S(void 0),Ee?ye():i?.(),s?.()},[de,ae]=(0,jr.useState)(!1),Re=()=>{let{id:Ye,kind:Se,type:Ie,...me}=z;F({...me,id:void 0,kind:void 0,type:void 0,url:void 0}),ae(!0)};(0,jr.useEffect)(()=>{de&&(V.current?.focus(),ae(!1))},[de]);let $e=z?.url!==void 0?z.url:m||"",ct=!$e?.trim()?.length;(0,jr.useEffect)(()=>{S(void 0)},[$e]);let Pt=!C,at=i&&t&&!ee&&!ie,Be=ee&&Ee,qe=Ee&&_,vt=(ee||!t)&&!ie,Vt=ct||!Pt||t&&!Y,kt=!!o?.length&&ee&&Ee,yt=(0,jr.useMemo)(()=>t?.kind==="taxonomy"&&!t?.url&&A.current?{...t,url:A.current}:t,[t]);return(0,rr.jsxs)("div",{tabIndex:-1,ref:N,className:"block-editor-link-control",children:[ie&&(0,rr.jsxs)("div",{className:"block-editor-link-control__loading",children:[(0,rr.jsx)(Ns.Spinner,{})," ",(0,Md.__)("Creating"),"\u2026"]}),vt&&(0,rr.jsxs)(rr.Fragment,{children:[(0,rr.jsxs)("div",{className:U({"block-editor-link-control__search-input-wrapper":!0,"has-text-control":qe,"has-actions":Be}),children:[qe&&(0,rr.jsx)(Ns.TextControl,{ref:j,className:"block-editor-link-control__field block-editor-link-control__text-content",label:(0,Md.__)("Text"),value:z?.title,onChange:$,onKeyDown:Ze}),(0,rr.jsx)(OBe,{ref:V,currentLink:t,className:"block-editor-link-control__field block-editor-link-control__search-input",placeholder:e,value:$e,withCreateSuggestion:p,onCreateSuggestion:ne,onChange:q,onSelect:we,showInitialSuggestions:d,allowDirectEntry:!a,showSuggestions:l,suggestionsQuery:g,withURLSuggestion:!h,createSuggestionButtonText:b,hideLabelFromVision:!qe,isEntity:H,customValidity:C,suffix:(0,rr.jsx)(omt,{isEntity:H,showActions:Be,isDisabled:Vt,onUnlink:Re,onSubmit:he,helpTextId:W})}),H&&W&&(0,rr.jsx)("p",{id:W,className:"block-editor-link-control__help",children:(0,Md.sprintf)((0,Md.__)("Synced with the selected %s."),z?.type||"item")})]}),be&&(0,rr.jsx)(Ns.Notice,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1,children:be})]}),t&&!ee&&!ie&&(0,rr.jsx)(HBe,{value:yt,onEditClick:()=>re(!0),hasRichPreviews:v,hasUnlinkControl:at,onRemove:()=>{i(),re(!0)}},yt?.url),kt&&(0,rr.jsx)("div",{className:"block-editor-link-control__tools",children:!ct&&(0,rr.jsx)(uBe,{settingsOpen:B,setSettingsOpen:I,children:(0,rr.jsx)(GBe,{value:z,settings:o,onChange:K(L)})})}),Be&&(0,rr.jsxs)(Ns.__experimentalHStack,{justify:"right",className:"block-editor-link-control__search-actions",children:[(0,rr.jsx)(Ns.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:Ce,children:(0,Md.__)("Cancel")}),(0,rr.jsx)(Ns.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:Vt?Lee:he,className:"block-editor-link-control__search-submit","aria-disabled":Vt,children:(0,Md.__)("Apply")})]}),!ie&&y&&y()]})}function omt({isEntity:e,showActions:t,isDisabled:o,onUnlink:r,onSubmit:n,helpTextId:i}){if(e)return(0,rr.jsx)(Ns.Button,{icon:$s,onClick:r,"aria-describedby":i,showTooltip:!0,label:(0,Md.__)("Unsync and edit"),__next40pxDefaultSize:!0});if(!t)return(0,rr.jsx)(Ns.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,rr.jsx)(Ns.Button,{onClick:o?Lee:n,label:(0,Md.__)("Submit"),icon:Df,className:"block-editor-link-control__search-submit","aria-disabled":o,size:"small"})})}py.ViewerFill=LBe;py.DEFAULT_LINK_SETTINGS=Bee;var nD=e=>((0,r7e.default)("wp.blockEditor.__experimentalLinkControl",{since:"6.8",alternative:"wp.blockEditor.LinkControl"}),(0,rr.jsx)(py,{...e}));nD.ViewerFill=py.ViewerFill;nD.DEFAULT_LINK_SETTINGS=py.DEFAULT_LINK_SETTINGS;var _1=py;var i7e=c(X(),1),s7e=c(Q(),1);var Y2=1.5,Dee=.01,Vee=10,Fee="";function n7e(e){return e!==void 0&&e!==Fee}var zee=c(T(),1),rmt=({__next40pxDefaultSize:e,value:t,onChange:o,__unstableInputWidth:r="60px",...n})=>{let i=n7e(t),s=(u,f)=>{if(i)return u;let p=Dee*Vee;switch(`${u}`){case`${p}`:return Y2+p;case"0":return f?u:Y2-p;case"":return Y2;default:return u}},a=(u,f)=>{let p=["insertText","insertFromPaste"].includes(f.payload.event.nativeEvent?.inputType),m=s(u.value,p);return{...u,value:m}},l=i?t:Fee;return(0,zee.jsx)("div",{className:"block-editor-line-height-control",children:(0,zee.jsx)(s7e.__experimentalNumberControl,{placeholder:Y2,...n,__unstableInputWidth:r,__unstableStateReducer:a,onChange:(u,{event:f})=>{if(u===""){o();return}if(f.type==="click"){o(s(`${u}`,!1));return}o(`${u}`)},label:(0,i7e.__)("Line height"),step:Dee,spinFactor:Vee,value:l,min:0,spinControls:"custom"})})},iD=rmt;var Ad=c(X(),1),a7e=c(zo(),1),Ls=c(Q(),1),aD=c(oe(),1),l7e=c(Mo(),1);var c7e=c(ue(),1),d7e=c(Ut(),1),u7e=c(Ks(),1),f7e=c(D(),1);function sD(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 Qn=c(T(),1),nmt=()=>{},imt=0,smt=({mediaURL:e,mediaId:t,mediaIds:o,allowedTypes:r,accept:n,onError:i,onSelect:s,onSelectURL:a,onReset:l,onToggleFeaturedImage:d,useFeaturedImage:u,onFilesUpload:f=nmt,name:p=(0,Ad.__)("Replace"),createNotice:m,removeNotice:g,children:h,multiple:b=!1,addToGallery:v,handleUpload:_=!0,variant:y,popoverProps:w,renderToggle:x,className:k})=>{let{mediaUpload:C,allowedMimeTypes:S}=(0,aD.useSelect)(A=>{let{getSettings:L}=A(P),z=L();return{mediaUpload:z.mediaUpload,allowedMimeTypes:z.allowedMimeTypes}},[]),R=`block-editor/media-replace-flow/error-notice/${++imt}`,E=(0,f7e.useMemo)(()=>sD(r,S,n),[r,S,n]),I=A=>{let L=(0,d7e.__unstableStripHTML)(A);if(i){i(L);return}setTimeout(()=>{m("error",L,{speak:!0,id:R,isDismissible:!0})},1e3)},B=(A,L)=>{let z=!!(e||t||o?.length);u&&d&&d(),L(),s(A),(0,a7e.speak)(z?(0,Ad.__)("The media file has been replaced"):(0,Ad.__)("The media file has been added")),g(R)},O=(A,L)=>{let z=A.target.files;if(!_)return L(),s(z);f(z),C({allowedTypes:r,filesList:z,onFileChange:([F])=>{B(F,L)},onError:I})},M=A=>{A.keyCode===l7e.DOWN&&(A.preventDefault(),A.target.click())},j=b&&(!r||r.length===0?!1:r.every(A=>A==="image"||A.startsWith("image/"))),V={...w,variant:y};return(0,Qn.jsx)(Ls.Dropdown,{popoverProps:V,className:k,contentClassName:U("block-editor-media-replace-flow__options",y&&`is-variant-${y}`),renderToggle:({isOpen:A,onToggle:L})=>x?x({"aria-expanded":A,"aria-haspopup":"true",onClick:L,onKeyDown:M,children:p}):(0,Qn.jsx)(Ls.ToolbarButton,{"aria-expanded":A,"aria-haspopup":"true",onClick:L,onKeyDown:M,children:p}),renderContent:({onClose:A})=>(0,Qn.jsxs)(Qn.Fragment,{children:[(0,Qn.jsxs)(Ls.NavigableMenu,{className:"block-editor-media-replace-flow__media-upload-menu",children:[(0,Qn.jsxs)(hd,{children:[(0,Qn.jsx)(Wu,{gallery:j,addToGallery:v,multiple:b,value:b?o:t,onSelect:L=>B(L,A),allowedTypes:r,render:({open:L})=>(0,Qn.jsx)(Ls.MenuItem,{icon:mH,onClick:L,children:(0,Ad.__)("Open Media Library")})}),(0,Qn.jsx)(Ls.FormFileUpload,{onChange:L=>{O(L,A)},accept:E,multiple:!!b,render:({openFileDialog:L})=>(0,Qn.jsx)(Ls.MenuItem,{icon:iU,onClick:()=>{L()},children:(0,Ad._x)("Upload","verb")})})]}),d&&(0,Qn.jsx)(Ls.MenuItem,{icon:CH,onClick:()=>{d(),A()},isPressed:u,children:(0,Ad.__)("Use featured image")}),typeof h=="function"?h({onClose:A}):h,e&&l&&(0,Qn.jsx)(Ls.MenuItem,{onClick:()=>{l(),A()},children:(0,Ad.__)("Reset")})]}),a&&(0,Qn.jsxs)("form",{className:"block-editor-media-flow__url-input",children:[(0,Qn.jsx)("span",{className:"block-editor-media-replace-flow__image-url-label",children:(0,Ad.__)("Current media URL:")}),(0,Qn.jsx)(_1,{value:{url:e},settings:[],showSuggestions:!1,onChange:({url:L})=>{a(L)},searchInputPlaceholder:(0,Ad.__)("Paste or type URL")})]})]})})},lD=(0,c7e.compose)([(0,aD.withDispatch)(e=>{let{createNotice:t,removeNotice:o}=e(u7e.store);return{createNotice:t,removeNotice:o}}),(0,Ls.withFilters)("editor.MediaReplaceFlow")])(smt);var an=c(Q(),1),sn=c(X(),1),cb=c(D(),1),E7e=c(oe(),1);var T7e=c(Gt(),1);var Uee=c(X(),1),dD=c(D(),1),v1=c(Q(),1);var C7e=c(Gt(),1);var g7e=c(X(),1),h7e=c(Q(),1);var p7e=c(Q(),1),cD=c(ml(),1),jee=c(T(),1);function m7e({url:e,urlLabel:t,className:o}){let r=U(o,"block-editor-url-popover__link-viewer-url");return e?(0,jee.jsx)(p7e.ExternalLink,{className:r,href:e,children:t||(0,cD.filterURLForDisplay)((0,cD.safeDecodeURI)(e))}):(0,jee.jsx)("span",{className:r})}var K2=c(T(),1);function b7e({className:e,linkClassName:t,onEditLinkClick:o,url:r,urlLabel:n,...i}){return(0,K2.jsxs)("div",{className:U("block-editor-url-popover__link-viewer",e),...i,children:[(0,K2.jsx)(m7e,{url:r,urlLabel:n,className:t}),o&&(0,K2.jsx)(h7e.Button,{icon:o_,label:(0,g7e.__)("Edit"),onClick:o,size:"compact"})]})}var x7e=c(X(),1),k7e=c(Q(),1);var Hee=c(zo(),1),dm=c(X(),1),Si=c(D(),1),rl=c(Mo(),1),gc=c(Q(),1),my=c(ue(),1),_7e=c(oe(),1),v7e=c(ml(),1);var mc=c(T(),1),y7e=c(te(),1),{ValidatedInputControl:amt}=Z(gc.privateApis),q2=()=>{};function w7e(e){return typeof e=="function"}function cm(e){let{__experimentalFetchLinkSuggestions:t,__experimentalHandleURLSuggestions:o,__experimentalRenderControl:r,__experimentalRenderSuggestions:n,__experimentalShowInitialSuggestions:i=!1,autocompleteRef:s,className:a,customValidity:l,disableSuggestions:d,disabled:u=!1,help:f=null,hideLabelFromVision:p=!1,inputRef:m,isFullWidth:g,label:h=null,markWhenOptional:b,onChange:v,onKeyDown:_,onSubmit:y,placeholder:w=(0,dm.__)("Paste URL or type to search"),required:x=!0,suffix:k,value:C=""}=e,S=(0,my.useInstanceId)(cm),{getSettings:R}=(0,_7e.useSelect)(P),E=(0,my.useDebounce)(Hee.speak,500),[I,B]=(0,Si.useState)([]),[O,M]=(0,Si.useState)(null),[N,j]=(0,Si.useState)(null),[V,A]=(0,Si.useState)(!1),[L,z]=(0,Si.useState)(!1),[F,G]=(0,Si.useState)(!1),$=(0,Si.useRef)(),K=(0,Si.useRef)([]),q=(0,Si.useRef)(null),H=m??$,J=`url-input-control-${S}`,W=`block-editor-url-input-suggestions-${S}`,Y=`block-editor-url-input-suggestion-${S}`,ee=V&&d!==!0&&(i||!!C.length),re=(0,my.useEvent)((he="")=>{let Ze=w7e(t)?t:R().__experimentalFetchLinkSuggestions;if(!Ze)return;let fe=!he?.length,Ce=he.trim();if(!fe&&(Ce.length<2||!o&&(0,v7e.isURL)(Ce))){q.current?.cancel?.(),q.current=null,B([]),A(!1),M(Ce),j(null),z(!1);return}j(null),z(!0);let de=Ze(Ce,{isInitialSuggestions:fe});q.current=de,de.then(ae=>{q.current===de&&(B(ae),M(Ce),z(!1),A(!!ae.length),ae.length?E((0,dm.sprintf)((0,dm._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",ae.length),ae.length),"assertive"):E((0,dm.__)("No results."),"assertive"))}).catch(()=>{q.current===de&&z(!1)}).finally(()=>{q.current===de&&(q.current=null)})}),ne=(0,my.useDebounce)(re,200);(0,Si.useEffect)(()=>{!d&&!F&&(C.length||i)&&ne(C)},[C,F,d,i,ne]),(0,Si.useEffect)(()=>{ee||A(!1)},[ee]),(0,Si.useEffect)(()=>{ee&&N!==null&&K.current[N]?.scrollIntoView({behavior:"instant",block:"nearest",inline:"nearest"})},[ee,N]),(0,Si.useEffect)(()=>()=>{q.current?.cancel?.(),q.current=null},[]);function ie(he){v(he.url,he),j(null),A(!1)}function be(he){ie(he),H.current.focus()}function pe(he){v(he)}function Ee(){G(!0),ne.cancel()}function ye(){G(!1)}function Oe(){C&&!d&&!I.length&&q.current===null&&ne(C)}function we(he){if(_?.(he),!ee||!I.length||L){if(!he.shiftKey&&(he.keyCode===rl.UP||he.keyCode===rl.DOWN)){let fe=he.keyCode===rl.UP?0:he.target.value.length;(he.target.selectionStart!==fe||he.target.selectionEnd!==fe)&&(he.preventDefault(),he.target.setSelectionRange(fe,fe))}else he.keyCode===rl.ENTER&&y&&(he.preventDefault(),y(null,he));return}let Ze=I[N]??null;switch(he.keyCode){case rl.UP:case rl.DOWN:{he.preventDefault();let fe=he.keyCode===rl.UP?-1:1;j(((N??(fe===-1?0:-1))+fe+I.length)%I.length);break}case rl.TAB:{Ze&&(ie(Ze),(0,Hee.speak)((0,dm.__)("Link selected.")));break}case rl.ENTER:{he.preventDefault(),Ze&&ie(Ze),y?.(Ze,he);break}}}let _e={id:J,label:h,className:U("block-editor-url-input",a,{"is-full-width":g}),hideLabelFromVision:p},xe={id:J,value:C,required:x,type:"text",name:J,autoComplete:"off",onChange:u?q2:pe,onCompositionStart:u?q2:Ee,onCompositionEnd:u?q2:ye,onFocus:u?q2:Oe,onKeyDown:u?q2:we,placeholder:w,role:"combobox","aria-label":h?void 0:(0,dm.__)("URL"),"aria-expanded":ee,"aria-autocomplete":"list","aria-owns":W,"aria-activedescendant":N!==null?`${Y}-${N}`:void 0,ref:H,disabled:u,suffix:k,help:f};return(0,mc.jsxs)(mc.Fragment,{children:[(0,mc.jsx)(lmt,{controlProps:_e,inputProps:xe,isLoading:L,customValidity:l,markWhenOptional:b,renderControl:r}),ee&&I.length>0&&(0,mc.jsx)(cmt,{autocompleteRef:s,className:a,handleSuggestionClick:be,isLoading:L,renderSuggestions:n,selectedSuggestion:N,suggestionNodesRef:K,suggestionOptionIdPrefix:Y,suggestions:I,suggestionsListboxId:W,suggestionsValue:O})]})}function lmt({controlProps:e,inputProps:t,isLoading:o,customValidity:r,markWhenOptional:n,renderControl:i}){let[s,a]=(0,Si.useState)(r!==void 0);return r!==void 0&&!s&&a(!0),i?i(e,t,o):(0,mc.jsxs)(gc.BaseControl,{...e,children:[(0,mc.jsx)(s?amt:gc.__experimentalInputControl,{...t,...s&&{customValidity:r,...n!==void 0&&{markWhenOptional:n}}}),o&&(0,mc.jsx)(gc.Spinner,{})]})}function cmt({autocompleteRef:e,className:t,handleSuggestionClick:o,isLoading:r,renderSuggestions:n,selectedSuggestion:i,suggestionNodesRef:s,suggestionOptionIdPrefix:a,suggestions:l,suggestionsListboxId:d,suggestionsValue:u}){let f={id:d,ref:e,role:"listbox"},p=(m,g)=>({role:"option",tabIndex:"-1",id:`${a}-${g}`,ref:h=>{s.current[g]=h},"aria-selected":g===i?!0:void 0});return w7e(n)?n({suggestions:l,selectedSuggestion:i,suggestionsListProps:f,buildSuggestionItemProps:p,isLoading:r,handleSuggestionClick:o,isInitialSuggestions:!u?.length,currentInputValue:u}):(0,mc.jsx)(gc.Popover,{placement:"bottom",focusOnMount:!1,children:(0,mc.jsx)("div",{...f,className:U("block-editor-url-input__suggestions",{[`${t}__suggestions`]:t}),children:l.map((m,g)=>(0,y7e.createElement)(gc.Button,{__next40pxDefaultSize:!0,...p(m,g),key:m.id,className:U("block-editor-url-input__suggestion",{"is-selected":g===i}),onClick:()=>o(m)},m.title))})})}var X2=c(T(),1);function S7e({autocompleteRef:e,className:t,onChangeInputValue:o,value:r,...n}){return(0,X2.jsxs)("form",{className:U("block-editor-url-popover__link-editor",t),...n,children:[(0,X2.jsx)(cm,{value:r,onChange:o,autocompleteRef:e}),(0,X2.jsx)(k7e.Button,{icon:Df,label:(0,x7e.__)("Apply"),type:"submit",size:"compact"})]})}var ab=c(T(),1),{__experimentalPopoverLegacyPositionToPlacement:dmt}=Z(v1.privateApis),umt="bottom",Wee=(0,dD.forwardRef)(({additionalControls:e,children:t,renderSettings:o,placement:r,focusOnMount:n="firstElement",position:i,...s},a)=>{i!==void 0&&(0,C7e.default)("`position` prop in wp.blockEditor.URLPopover",{since:"6.2",alternative:"`placement` prop"});let l;r!==void 0?l=r:i!==void 0&&(l=dmt(i)),l=l||umt;let[d,u]=(0,dD.useState)(!1),f=!!o&&d,p=()=>{u(!d)};return(0,ab.jsxs)(v1.Popover,{ref:a,role:"dialog","aria-modal":"true","aria-label":(0,Uee.__)("Edit URL"),className:"block-editor-url-popover",focusOnMount:n,placement:l,shift:!0,variant:"toolbar",...s,children:[(0,ab.jsx)("div",{className:"block-editor-url-popover__input-container",children:(0,ab.jsxs)("div",{className:"block-editor-url-popover__row",children:[t,!!o&&(0,ab.jsx)(v1.Button,{className:"block-editor-url-popover__settings-toggle",icon:Tn,label:(0,Uee.__)("Link settings"),onClick:p,"aria-expanded":d,size:"compact"})]})}),f&&(0,ab.jsx)("div",{className:"block-editor-url-popover__settings",children:o()}),e&&!f&&(0,ab.jsx)("div",{className:"block-editor-url-popover__additional-controls",children:e})]})});Wee.LinkEditor=S7e;Wee.LinkViewer=b7e;var lb=Wee;var bo=c(T(),1),fmt=()=>{},pmt=({src:e,onChange:t,onSubmit:o,onClose:r,popoverAnchor:n})=>(0,bo.jsx)(lb,{anchor:n,onClose:r,children:(0,bo.jsx)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:o,children:(0,bo.jsx)(an.__experimentalInputControl,{label:(0,sn.__)("URL"),type:"text",hideLabelFromVision:!0,placeholder:(0,sn.__)("Paste or type URL"),onChange:t,value:e,suffix:(0,bo.jsx)(an.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,bo.jsx)(an.Button,{size:"small",icon:Df,label:(0,sn.__)("Apply"),type:"submit"})})})})}),mmt=({src:e,onChangeSrc:t,onSelectURL:o})=>{let[r,n]=(0,cb.useState)(null),[i,s]=(0,cb.useState)(!1),a=()=>{s(!0)},l=()=>{s(!1),r?.focus()},d=u=>{u.preventDefault(),e&&o&&(o(e),l())};return(0,bo.jsxs)("div",{className:"block-editor-media-placeholder__url-input-container",children:[(0,bo.jsx)(an.Button,{__next40pxDefaultSize:!0,className:"block-editor-media-placeholder__button",onClick:a,isPressed:i,variant:"secondary","aria-haspopup":"dialog",ref:n,children:(0,sn.__)("Insert from URL")}),i&&(0,bo.jsx)(pmt,{src:e,onChange:t,onSubmit:d,onClose:l,popoverAnchor:r})]})};function gmt({value:e={},allowedTypes:t,className:o,icon:r,labels:n={},mediaPreview:i,notices:s,isAppender:a,accept:l,addToGallery:d,multiple:u=!1,handleUpload:f=!0,disableDropZone:p,disableMediaButtons:m,onError:g,onSelect:h,onCancel:b,onSelectURL:v,onToggleFeaturedImage:_,onDoubleClick:y,onFilesPreUpload:w=fmt,onHTMLDrop:x,children:k,mediaLibraryButton:C,placeholder:S,style:R}){x&&(0,T7e.default)("wp.blockEditor.MediaPlaceholder onHTMLDrop prop",{since:"6.2",version:"6.4"});let{mediaUpload:E,allowedMimeTypes:I}=(0,E7e.useSelect)(H=>{let{getSettings:J}=H(P),W=J();return{mediaUpload:W.mediaUpload,allowedMimeTypes:W.allowedMimeTypes}},[]),[B,O]=(0,cb.useState)("");(0,cb.useEffect)(()=>{O(e?.src??"")},[e?.src]);let M=(0,cb.useMemo)(()=>sD(t,I,l),[t,I,l]),N=()=>!t||t.length===0?!1:t.every(H=>H==="image"||H.startsWith("image/")),j=H=>{if(!f||typeof f=="function"&&!f(H))return h(H);w(H);let J;if(u)if(d){let W=[];J=Y=>{let ee=(e??[]).filter(re=>re.id?!W.some(({id:ne})=>Number(ne)===Number(re.id)):!W.some(({urlSlug:ne})=>re.url.includes(ne)));h(ee.concat(Y)),W=Y.map(re=>{let ne=re.url.lastIndexOf("."),ie=re.url.slice(0,ne);return{id:re.id,urlSlug:ie}})}}else J=h;else J=([W])=>h(W);E({allowedTypes:t,filesList:H,onFileChange:J,onError:g,multiple:u})};async function V(H){let{blocks:J}=DQ(H);if(!J?.length)return;let W=await Promise.all(J.map(Y=>{let ee=Y.name.split("/")[1];return Y.attributes.id?(Y.attributes.type=ee,Y.attributes):new Promise((re,ne)=>{window.fetch(Y.attributes.url).then(ie=>ie.blob()).then(ie=>E({filesList:[ie],additionalData:{title:Y.attributes.title,alt_text:Y.attributes.alt,caption:Y.attributes.caption,type:ee},onFileChange:([be])=>{be.id&&re(be)},allowedTypes:t,onError:ne})).catch(()=>re(Y.attributes.url))})})).catch(Y=>g(Y));W?.length&&h(u?W:W[0])}let A=H=>{j(H.target.files)},z=S??(H=>{let{instructions:J,title:W}=n;if(!E&&!v&&(J=(0,sn.__)("To edit this block, you need permission to upload media.")),J===void 0||W===void 0){let ee=t??[],[re]=ee,ne=ee.length===1,ie=ne&&re==="audio",be=ne&&re==="image",pe=ne&&re==="video";J===void 0&&E&&(J=(0,sn.__)("Drag and drop an image or video, upload, or choose from your library."),ie?J=(0,sn.__)("Drag and drop an audio file, upload, or choose from your library."):be?J=(0,sn.__)("Drag and drop an image, upload, or choose from your library."):pe&&(J=(0,sn.__)("Drag and drop a video, upload, or choose from your library."))),W===void 0&&(W=(0,sn.__)("Media"),ie?W=(0,sn.__)("Audio"):be?W=(0,sn.__)("Image"):pe&&(W=(0,sn.__)("Video")))}let Y=U("block-editor-media-placeholder",o,{"is-appender":a});return(0,bo.jsxs)(an.Placeholder,{icon:r,label:W,instructions:J,className:Y,notices:s,onDoubleClick:y,preview:i,style:R,children:[H,k]})}),F=()=>p?null:(0,bo.jsx)(an.DropZone,{onFilesDrop:j,onDrop:V,isEligible:H=>{let J="wp-block:core/",W=[];for(let Y of H.types)Y.startsWith(J)&&W.push(Y.slice(J.length));return W.length>0&&W.every(Y=>t.includes(Y))&&(u?!0:W.length===1)}}),G=()=>b&&(0,bo.jsx)(an.Button,{__next40pxDefaultSize:!0,className:"block-editor-media-placeholder__cancel-button",title:(0,sn.__)("Cancel"),variant:"link",onClick:b,children:(0,sn.__)("Cancel")}),$=()=>v&&(0,bo.jsx)(mmt,{src:B,onChangeSrc:O,onSelectURL:v}),K=()=>_&&(0,bo.jsx)("div",{className:"block-editor-media-placeholder__url-input-container",children:(0,bo.jsx)(an.Button,{__next40pxDefaultSize:!0,className:"block-editor-media-placeholder__button",onClick:_,variant:"secondary",children:(0,sn.__)("Use featured image")})}),q=()=>{let J=C??(({open:Y})=>(0,bo.jsx)(an.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{Y()},children:(0,sn.__)("Media Library")})),W=(0,bo.jsx)(Wu,{addToGallery:d,gallery:u&&N(),multiple:u,onSelect:h,allowedTypes:t,mode:"browse",value:Array.isArray(e)?e.map(({id:Y})=>Y):e.id,render:J});if(E&&a)return(0,bo.jsxs)(bo.Fragment,{children:[F(),(0,bo.jsx)(an.FormFileUpload,{onChange:A,accept:M,multiple:!!u,render:({openFileDialog:Y})=>{let ee=(0,bo.jsxs)(bo.Fragment,{children:[(0,bo.jsx)(an.Button,{__next40pxDefaultSize:!0,variant:"primary",className:U("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onClick:Y,children:(0,sn._x)("Upload","verb")}),W,$(),K(),G()]});return z(ee)}})]});if(E){let Y=(0,bo.jsxs)(bo.Fragment,{children:[F(),(0,bo.jsx)(an.FormFileUpload,{render:({openFileDialog:ee})=>(0,bo.jsx)(an.Button,{__next40pxDefaultSize:!0,onClick:ee,variant:"primary",className:U("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),children:(0,sn._x)("Upload","verb")}),onChange:A,accept:M,multiple:!!u}),W,$(),K(),G()]});return z(Y)}return z(W)};return m?(0,bo.jsx)(hd,{children:F()}):(0,bo.jsx)(hd,{fallback:z($()),children:q()})}var R7e=(0,an.withFilters)("editor.MediaPlaceholder")(gmt);var I7e=c(T(),1),hmt=({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,I7e.jsx)(PL,{settings:o,gradients:[],disableCustomGradients:!0,...t})},P7e=hmt;var N6e=c(D(),1);var O6e=c(D(),1);var S6e=c($b(),1),xn=c(D(),1),fm=c(oe(),1),yD=c(ue(),1),C6e=c(pn(),1),E6e=c(Q(),1),T6e=c(ce(),1),R6e=c(Gt(),1),E1=c(X(),1);var B7e=c(X(),1),uD=c(Q(),1);var Gee=c(X(),1),gy=c(Q(),1);var um=c(T(),1),bmt={placement:"bottom-start"},_mt=()=>(0,um.jsxs)(um.Fragment,{children:[["bold","italic","link","unknown"].map(e=>(0,um.jsx)(gy.Slot,{name:`RichText.ToolbarControls.${e}`},e)),(0,um.jsx)(gy.Slot,{name:"RichText.ToolbarControls",children:e=>{if(!e.length)return null;let o=e.map(([{props:r}])=>r).some(({isActive:r})=>r);return(0,um.jsx)(gy.ToolbarItem,{children:r=>(0,um.jsx)(gy.DropdownMenu,{icon:Tn,label:(0,Gee.__)("More"),toggleProps:{...r,className:U(r.className,{"is-pressed":o}),description:(0,Gee.__)("Displays more block tools")},controls:du(e.map(([{props:n}])=>n),"title"),popoverProps:bmt})})}})]}),$ee=_mt;var db=c(T(),1);function vmt({popoverAnchor:e}){return(0,db.jsx)(uD.Popover,{placement:"top",focusOnMount:!1,anchor:e,className:"block-editor-rich-text__inline-format-toolbar",__unstableSlotName:"block-toolbar",children:(0,db.jsx)(Mk,{className:"block-editor-rich-text__inline-format-toolbar-group","aria-label":(0,B7e.__)("Format tools"),children:(0,db.jsx)(uD.ToolbarGroup,{children:(0,db.jsx)($ee,{})})})})}var ymt=({inline:e,editableContentElement:t})=>e?(0,db.jsx)(vmt,{popoverAnchor:t}):(0,db.jsx)(Jo,{group:"inline",children:(0,db.jsx)($ee,{})}),O7e=ymt;var fD=c(D(),1),M7e=c(oe(),1);function A7e({html:e,value:t}){let o=(0,fD.useRef)(),r=!!t.activeFormats?.length,{__unstableMarkLastChangeAsPersistent:n}=(0,M7e.useDispatch)(P);(0,fD.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 k1=c(D(),1),i6e=c(ue(),1);var hy=c(pn(),1),N7e=c(To(),1);var{subscribeOwnedListener:wmt}=Z(hy.privateApis),xmt=["`",'"',"'","\u201C\u201D","\u2018\u2019"],L7e=e=>t=>{function o(r){let{inputType:n,data:i}=r,{value:s,onChange:a,registry:l}=e.current;if(n!=="insertText"||(0,hy.isCollapsed)(s))return;let d=(0,N7e.applyFilters)("blockEditor.wrapSelectionSettings",xmt).find(([x,k])=>x===i||k===i);if(!d)return;let[u,f=u]=d,p=s.start,m=s.end+u.length,g=(0,hy.insert)(s,u,p,p);g=(0,hy.insert)(g,f,m,m);let{__unstableMarkLastChangeAsPersistent:h,__unstableMarkAutomaticChange:b}=l.dispatch(P);h(),a(g),b();let v={};for(let x in r)v[x]=r[x];v.data=f;let{ownerDocument:_}=t,{defaultView:y}=_,w=new y.InputEvent("input",v);window.queueMicrotask(()=>{t.dispatchEvent(w)}),r.preventDefault()}return wmt(t,"beforeinput",o,!0)};var w1=c(pn(),1),y1=c(ce(),1);var D7e=c(pn(),1);function V7e(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,D7e.insert)(e,o)}var{subscribeOwnedListener:F7e}=Z(w1.privateApis);function z7e(e){let t=e.length;for(;t--;){let o=ZE(e[t].attributes);if(o)return e[t].attributes[o]=e[t].attributes[o].toString().replace(Xf,""),[e[t].clientId,o,0,0];let r=z7e(e[t].innerBlocks);if(r)return r}return[]}var j7e=e=>t=>{function o(){let{getValue:s,onReplace:a,selectionChange:l,registry:d}=e.current;if(!a)return;let u=s(),{start:f,text:p}=u;if(p.slice(f-1,f)!==" ")return;let g=p.slice(0,f).trim(),h=(0,y1.getBlockTransforms)("from").filter(({type:y})=>y==="prefix"),b=(0,y1.findTransform)(h,({prefix:y})=>g===y);if(!b)return;let v=(0,w1.toHTMLString)({value:(0,w1.insert)(u,Xf,0,f)}),_=b.transform(v);return d.batch(()=>{l(...z7e([_])),a([_])}),d.dispatch(P).__unstableMarkAutomaticChange(),!0}function r(s){let{inputType:a,type:l}=s,{getValue:d,onChange:u,__unstableAllowPrefixTransformations:f,formatTypes:p,registry:m,onReplace:g}=e.current;if(a!=="insertText"&&l!=="compositionend"||f&&o())return;let h=d();if(g){let y=(0,y1.getBlockTransforms)("from").filter(x=>x.type==="input"),w=(0,y1.findTransform)(y,x=>x.regExp.test(h.text));if(w){g(w.transform()),m.dispatch(P).__unstableMarkAutomaticChange();return}}let b=p.reduce((y,{__unstableInputRule:w})=>(w&&(y=w(y)),y),V7e(h)),{__unstableMarkLastChangeAsPersistent:v,__unstableMarkAutomaticChange:_}=m.dispatch(P);b!==h&&(v(),u({...b,activeFormats:h.activeFormats}),_())}let n=F7e(t,"input",r,!0),i=F7e(t,"compositionend",r,!0);return()=>{n(),i()}};var H7e=c(pn(),1);var{subscribeOwnedListener:kmt}=Z(H7e.privateApis),U7e=e=>t=>{function o(r){if(r.inputType!=="insertReplacementText")return;let{registry:n}=e.current;n.dispatch(P).__unstableMarkLastChangeAsPersistent()}return kmt(t,"beforeinput",o)};var pD=c(Mo(),1),W7e=c(pn(),1);var{subscribeOwnedListener:Smt}=Z(W7e.privateApis),G7e=()=>e=>{function t(o){(pD.isKeyboardEvent.primary(o,"z")||pD.isKeyboardEvent.primary(o,"y")||pD.isKeyboardEvent.primaryShift(o,"z"))&&o.preventDefault()}return Smt(e,"keydown",t,!0)};var $7e=c(pn(),1);var{subscribeOwnedListener:Cmt}=Z($7e.privateApis),Y7e=e=>t=>{let{keyboardShortcuts:o}=e.current;function r(n){for(let i of o.current)i(n)}return Cmt(t,"keydown",r,!0)};var K7e=c(pn(),1);var{subscribeOwnedListener:Emt}=Z(K7e.privateApis),q7e=e=>t=>{let{inputEvents:o}=e.current;function r(n){for(let i of o.current)i(n)}return Emt(t,"input",r)};var Z7e=c(ce(),1),hc=c(pn(),1),Q7e=c(ml(),1),J7e=c(ue(),1);var Tmt=c(D(),1),Rmt=c(ce(),1),Imt=c(T(),1);function X7e(e,t){if(t?.length){let o=e.formats.length;for(;o--;)e.formats[o]=[...t,...e.formats[o]||[]]}}function mD(e){if(!(e!==!0&&e!=="p"&&e!=="li"))return e===!0?"p":e}function gD({allowedFormats:e,disableFormats:t}){return t?gD.EMPTY_ARRAY:e}gD.EMPTY_ARRAY=[];var{subscribeDelegatedListener:Pmt}=Z(J7e.privateApis),{ownsSelection:Bmt}=Z(hc.privateApis),e6e=e=>t=>{function o(n){let{disableFormats:i,onChange:s,value:a,formatTypes:l,tagName:d,onReplace:u,__unstableEmbedURLOnPaste:f,preserveWhiteSpace:p,pastePlainText:m,registry:g}=e.current;if(!t.contains(n.target)&&!Bmt(t)||n.defaultPrevented)return;let h=Bx(n);if(!h)return;n.preventDefault();let{plainText:b,html:v,files:_}=h;if(_.length)return;if(window.console.log(`Received HTML (RichText): | |
| 207 | 208 | |
| 208 | 209 | `,v),window.console.log(`Received plain text (RichText): |
| 209 | 210 | |
| 210 | -`,b),i){s((0,Jl.insert)(a,b));return}let _=n.clipboardData.getData("rich-text")==="true";function w(C){let R=l.reduce((E,{__unstablePasteRule:I})=>(I&&E===a&&(E=I(a,{html:v,plainText:b})),E),a);if(R!==a)s(R);else{let E=(0,Jl.create)({html:C});NPe(E,a.activeFormats),s((0,Jl.insert)(a,E))}}if(_){w(v);return}if(m){s((0,Jl.insert)(a,(0,Jl.create)({text:b})));return}let k="INLINE",x=b.trim();f&&(0,Jl.isEmpty)(a)&&(0,DPe.isURL)(x)&&/^https?:/.test(x)&&(k="BLOCKS");let S=(0,LPe.pasteHandler)({HTML:v,plainText:b,mode:k,tagName:u,preserveWhiteSpace:p});if(typeof S=="string"){w(S);return}!S.length||!d||!(0,Jl.isEmpty)(a)||(k==="BLOCKS"&&(w(v),g.dispatch(B).__unstableMarkLastChangeAsPersistent()),d(S,S.length-1,-1))}let{defaultView:r}=t.ownerDocument;return lst(r,"paste",o)};var rR=c(wo(),1),gS=c(Ar(),1);var{subscribeOwnedListener:ust}=G(gS.privateApis),zPe=e=>t=>{function o(r){let{keyCode:n}=r;if(r.defaultPrevented)return;let{value:i,onMerge:s,onRemove:a}=e.current;if(n===rR.DELETE||n===rR.BACKSPACE){let{start:l,end:u,text:d}=i,f=n===rR.BACKSPACE,p=i.activeFormats&&!!i.activeFormats.length;if(!(0,gS.isCollapsed)(i)||p||f&&l!==0||!f&&u!==d.length)return;s?s(!f):a&&(0,gS.isEmpty)(i)&&f&&a(!f),r.preventDefault()}}return ust(t,"keydown",o)};var RX=c(wo(),1),Rv=c(Ar(),1),jPe=c(ue(),1);var{subscribeOwnedListener:dst,ownsSelection:fst}=G(Rv.privateApis),{subscribeDelegatedListener:pst}=G(jPe.privateApis),HPe=e=>t=>{function o(a){if(a.keyCode!==RX.ENTER)return;let{onReplace:l,onSplit:u,supportsSplitting:d,disableLineBreaks:f,onChange:p,getValue:m,onSplitAtDoubleLineEnd:g,registry:h,onSplitAtEnd:b}=e.current,v=m(),{text:y,start:_,end:w}=v;a.shiftKey?f||(a.preventDefault(),p((0,Rv.insert)(v,` | |
| 211 | -`))):b&&_===w&&w===y.length?(a.preventDefault(),b()):l&&u?a.__deprecatedOnSplit=!0:!d&&!f&&!a.defaultPrevented&&(a.preventDefault(),g&&_===w&&w===y.length&&y.slice(-2)===` | |
| 211 | +`,b),i){s((0,hc.insert)(a,b));return}let y=n.clipboardData.getData("rich-text")==="true";function w(S){let R=l.reduce((E,{__unstablePasteRule:I})=>(I&&E===a&&(E=I(a,{html:v,plainText:b})),E),a);if(R!==a)s(R);else{let E=(0,hc.create)({html:S});X7e(E,a.activeFormats),s((0,hc.insert)(a,E))}}if(y){w(v);return}if(m){s((0,hc.insert)(a,(0,hc.create)({text:b})));return}let x="INLINE",k=b.trim();f&&(0,hc.isEmpty)(a)&&(0,Q7e.isURL)(k)&&/^https?:/.test(k)&&(x="BLOCKS");let C=(0,Z7e.pasteHandler)({HTML:v,plainText:b,mode:x,tagName:d,preserveWhiteSpace:p});if(typeof C=="string"){w(C);return}!C.length||!u||!(0,hc.isEmpty)(a)||(x==="BLOCKS"&&(w(v),g.dispatch(P).__unstableMarkLastChangeAsPersistent()),u(C,C.length-1,-1))}let{defaultView:r}=t.ownerDocument;return Pmt(r,"paste",o)};var Z2=c(Mo(),1),x1=c(pn(),1);var{subscribeOwnedListener:Omt}=Z(x1.privateApis),t6e=e=>t=>{function o(r){let{keyCode:n}=r;if(r.defaultPrevented)return;let{value:i,onMerge:s,onRemove:a}=e.current;if(n===Z2.DELETE||n===Z2.BACKSPACE){let{start:l,end:d,text:u}=i,f=n===Z2.BACKSPACE,p=i.activeFormats&&!!i.activeFormats.length;if(!(0,x1.isCollapsed)(i)||p||f&&l!==0||!f&&d!==u.length)return;s?s(!f):a&&(0,x1.isEmpty)(i)&&f&&a(!f),r.preventDefault()}}return Omt(t,"keydown",o)};var by=c(pn(),1),o6e=c(ue(),1);var{subscribeOwnedListener:Mmt,ownsSelection:Amt}=Z(by.privateApis),{subscribeDelegatedListener:Nmt}=Z(o6e.privateApis),r6e=e=>t=>{function o(a){let{inputType:l}=a;if(l!=="insertParagraph"&&l!=="insertLineBreak")return;let{onReplace:d,onSplit:u,supportsSplitting:f,disableLineBreaks:p,onChange:m,getValue:g,onSplitAtDoubleLineEnd:h,registry:b,onSplitAtEnd:v}=e.current,_=g(),{text:y,start:w,end:x}=_;l==="insertParagraph"&&d&&u&&(a.__deprecatedOnSplit=!0),l==="insertLineBreak"?p||(a.preventDefault(),m((0,by.insert)(_,` | |
| 212 | +`))):v&&w===x&&x===y.length?(a.preventDefault(),v()):!f&&!(d&&u)&&!p&&!a.defaultPrevented&&(a.preventDefault(),h&&w===x&&x===y.length&&y.slice(-2)===` | |
| 212 | 213 | |
| 213 | -`?h.batch(()=>{let k={...v};k.start=k.end-2,p((0,Rv.remove)(k)),g()}):p((0,Rv.insert)(v,` | |
| 214 | -`)))}function r(a){a.defaultPrevented||a.target!==t&&!fst(t)||a.keyCode===RX.ENTER&&a.preventDefault()}let{defaultView:n}=t.ownerDocument,i=pst(n,"keydown",r),s=dst(t,"keydown",o,!0);return()=>{i(),s()}};var UPe=e=>t=>{function o(){let{registry:r}=e.current;if(!r.select(B).isMultiSelecting())return;let n=t.parentElement.closest('[contenteditable="true"]');n&&n.focus()}return t.addEventListener("focus",o),()=>{t.removeEventListener("focus",o)}};var mst=[vPe,SPe,EPe,RPe,IPe,OPe,MPe,FPe,zPe,HPe,UPe];function SF(e){let t=(0,hS.useRef)(e);(0,hS.useInsertionEffect)(()=>{t.current=e});let o=(0,hS.useMemo)(()=>mst.map(r=>r(t)),[t]);return(0,WPe.useRefEffect)(r=>{if(!e.isSelected)return;let n=o.map(i=>i(r));return()=>{n.forEach(i=>i())}},[o,e.isSelected])}var CF=c(Ar(),1),EF=c(F(),1);var GPe=c(T(),1),$Pe=c(re(),1),gst={},BX=Symbol("usesContext");function hst({onChange:e,onFocus:t,value:o,forwardedRef:r,settings:n,isVisible:i}){let{name:s,edit:a,[BX]:l}=n,u=(0,EF.useContext)(zn),d=(0,EF.useMemo)(()=>l?Object.fromEntries(Object.entries(u).filter(([h])=>l.includes(h))):gst,[l,u]);if(!a)return null;let f=(0,CF.getActiveFormat)(o,s),p=f!==void 0,m=(0,CF.getActiveObject)(o),g=m!==void 0&&m.type===s;return(0,GPe.jsx)(a,{isActive:p,isVisible:i,activeAttributes:p?f.attributes||{}:{},isObjectActive:g,activeObjectAttributes:g?m.attributes||{}:{},value:o,onChange:e,onFocus:t,contentRef:r,context:d},s)}function TF({formatTypes:e,...t}){return e.map(o=>(0,$Pe.createElement)(hst,{settings:o,...t,key:o.name}))}var YPe=c(F(),1),KPe=c(ce(),1),qPe=c(Mt(),1);var IX=c(T(),1);function PX(e,t){if(bS.isEmpty(e)){let o=xF(t);return o?`<${o}></${o}>`:""}return Array.isArray(e)?((0,qPe.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/"}),KPe.children.toHTML(e)):typeof e=="string"?e:e.toHTMLString()}function nR({value:e,tagName:t,multiline:o,format:r,...n}){return e=(0,IX.jsx)(YPe.RawHTML,{children:PX(e,o)}),t?(0,IX.jsx)(t,{...n,children:e}):e}var e2e=c(F(),1),AX=c(ce(),1),t2e=c(Ar(),1),o2e=c(Mt(),1);var yS=c(F(),1),ZPe=c(Mt(),1),iR=c(te(),1),XPe=c(wo(),1),Ch=c(Ar(),1),QPe=c(ue(),1);var RF=c(T(),1),{subscribeOwnedListener:bst}=G(Ch.privateApis);function yst(e){let{getSelectionStart:t,getSelectionEnd:o}=(0,iR.useSelect)(B),{selectionChange:r}=(0,iR.useDispatch)(B);return(0,QPe.useRefEffect)(n=>{function i(s){if(s.keyCode!==XPe.ENTER)return;s.preventDefault();let{value:a,values:l,onChange:u,index:d,identifier:f,clientId:p}=e.current,{offset:m}=t(),{offset:g}=o();if(typeof m!="number"||typeof g!="number")return;let h=(0,Ch.create)({html:a});h.start=m,h.end=g;let b=(0,Ch.split)(h).map(y=>(0,Ch.toHTMLString)({value:y})),v=l.slice();v.splice(d,1,...b),u(v),r(p,`${f}-${d+1}`,0,0)}return bst(n,"keydown",i,!0)},[])}function vst(e){let{value:t,values:o,onChange:r,index:n,identifier:i,multilineTagName:s,...a}=e,{clientId:l}=kt(),{selectionChange:u}=(0,iR.useDispatch)(B),d=(0,yS.useRef)();(0,yS.useInsertionEffect)(()=>{d.current={...e,clientId:l}});let f=yst(d);return(0,RF.jsx)(OX,{identifier:`${i}-${n}`,tagName:s,value:t,onChange:p=>{let m=o.slice();m[n]=p,r(m)},isSelected:void 0,ref:f,onMerge:p=>{let m=o.slice(),g=0;if(p){if(!m[n+1])return;m.splice(n,2,m[n]+m[n+1]),g=m[n].length-1}else{if(!m[n-1])return;m.splice(n-1,2,m[n-1]+m[n]),g=m[n-1].length-1}r(m),u(l,`${i}-${n-(p?0:1)}`,g,g)},...a},n)}function _st({children:e,identifier:t,tagName:o="div",value:r="",onChange:n,multiline:i,...s},a){(0,ZPe.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 l=xF(i);r=r||`<${l}></${l}>`;let d=`</${l}>${r}<${l}>`.split(`</${l}><${l}>`);d.shift(),d.pop();function f(p){n(`<${l}>${p.join(`</${l}><${l}>`)}</${l}>`)}return(0,RF.jsx)(o,{ref:a,children:d.map((p,m)=>(0,RF.jsx)(vst,{values:d,value:p,onChange:f,index:m,identifier:t,multilineTagName:l,...s},m))})}var JPe=(0,yS.forwardRef)(_st);var r2e=c(T(),1);function n2e(e){return(0,e2e.forwardRef)((t,o)=>{let r=t.value,n=t.onChange;Array.isArray(r)&&((0,o2e.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=AX.children.toHTML(t.value),n=s=>t.onChange(AX.children.fromDOM((0,t2e.__unstableCreateElement)(document,s).childNodes)));let i=t.multiline?JPe:e;return(0,r2e.jsx)(i,{...t,value:r,onChange:n,ref:o})})}var BF=c(Y(),1),i2e=c(wo(),1),MX=c(T(),1);function NX({name:e,shortcutType:t,shortcutCharacter:o,...r}){let n,i="RichText.ToolbarControls";return e&&(i+=`.${e}`),t&&o&&(n=i2e.displayShortcut[t](o)),(0,MX.jsx)(BF.Fill,{name:i,children:(0,MX.jsx)(BF.ToolbarButton,{...r,shortcut:n})})}var Ga=c(T(),1),{useRichText:wst,KeyboardShortcutContext:kst,InputEventContext:xst,RichTextShortcut:f2e,RichTextInputEvent:p2e}=G(l2e.privateApis),s2e=Symbol("instanceId");function m2e({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:p,onRemove:m,onMerge:g,onSplit:h,__unstableOnSplitAtEnd:b,__unstableOnSplitAtDoubleLineEnd:v,identifier:y,preserveWhiteSpace:_,__unstablePastePlainText:w,__unstableEmbedURLOnPaste:k,__unstableDisableFormats:x,disableLineBreaks:S,__unstableAllowPrefixTransformations:C,readOnly:R,...E},I){h&&(0,d2e.default)("wp.blockEditor.RichText onSplit prop",{since:"6.4",alternative:'block.json support key: "splitting"'});let{supportsSplitting:O}=(0,ti.useContext)(Tn),A=(0,IF.useInstanceId)(m2e),P=(0,ti.useRef)(),[L,H]=(0,ti.useState)(null),N=kt(),{clientId:M,isSelected:V,name:j}=N,D=N[i_],z=N[n_]==="default",W=(0,ti.useContext)(zn),ee=(0,Lp.useRegistry)(),J=we=>{if(!V)return{isSelected:!1};let{getSelectionStart:Me,getSelectionEnd:ge}=we(B),Re=Me(),Ie=ge(),at;return n===void 0?at=Re.clientId===M&&Ie.clientId===M&&(y?Re.attributeKey===y:Re[s2e]===A):n&&(at=Re.clientId===M),{selectionStart:at?Re.offset:void 0,selectionEnd:at?Ie.offset:void 0,isSelected:at}},{selectionStart:U,selectionEnd:Q,isSelected:Z}=(0,Lp.useSelect)(J,[M,y,A,n,V]),{disableBoundBlock:K,bindingsPlaceholder:X,bindingsLabel:oe}=(0,Lp.useSelect)(we=>{if(!D?.[y])return{};let{__experimentalBlockBindingsSupportedAttributes:Me}=we(B).getSettings();if(!Me?.[j])return{};let Re=D[y],Ie=(0,u2e.getBlockBindingsSource)(Re.source),at={};if(Ie?.usesContext?.length)for(let it of Ie.usesContext)at[it]=W[it];let Qe=!Ie?.canUserEditValue?.({select:we,context:at,args:Re.args});if(o.length>0)return{disableBoundBlock:Qe,bindingsPlaceholder:null,bindingsLabel:null};let{getBlockAttributes:po}=we(B),ro=po(M),vo=null;Ie?.getFieldsList&&(vo=Ie.getFieldsList({select:we,context:at})?.find(Dt=>(0,a2e.default)(Dt.args,Re?.args))?.label);let Kt=vo??Ie?.label,_o=Qe?Kt:(0,vS.sprintf)((0,vS.__)("Add %s"),Kt),Cn=Qe?Re?.args?.key||Ie?.label:(0,vS.sprintf)((0,vS.__)("Empty %s; start writing to edit its value"),Re?.args?.key||Ie?.label);return{disableBoundBlock:Qe,bindingsPlaceholder:ro?.placeholder||_o,bindingsLabel:Cn}},[D,y,j,o,M,W]),ie=!!W?.["pattern/overrides"],se=D?.__default?.source==="core/pattern-overrides",pe=R||K||ie&&!se,ke=(0,Lp.useSelect)(we=>{if(pe||!z||!V)return!1;let{getSelectedBlockClientId:Me,canHostEditableRoot:ge}=G(we(B));return ge(Me())},[pe,z,V]),{getSelectionStart:ye,getSelectionEnd:Pe,getBlockRootClientId:_e}=(0,Lp.useSelect)(B),{selectionChange:ve}=(0,Lp.useDispatch)(B),Se=mS({allowedFormats:f,disableFormats:x}),fe=!Se||Se.length>0,Ce=(0,ti.useCallback)((we,Me)=>{let ge={},Re=we===void 0&&Me===void 0,Ie={clientId:M,[y?"attributeKey":s2e]:y||A};if(typeof we=="number"||Re){if(Me===void 0&&_e(M)!==_e(Pe().clientId))return;ge.start={...Ie,offset:we}}if(typeof Me=="number"||Re){if(we===void 0&&_e(M)!==_e(ye().clientId))return;ge.end={...Ie,offset:Me}}ve(ge)},[M,_e,Pe,ye,y,A,ve]),{value:ne,getValue:ae,onChange:Ee,ref:he,formatTypes:Ae}=wst({value:o,onChange:r,selectionStart:U,selectionEnd:Q,onSelectionChange:Ce,placeholder:X||d,__unstableIsSelected:Z,__unstableDisableFormats:x,preserveWhiteSpace:_,__unstableDependencies:[t],allowedFormats:Se,withoutInteractiveFormatting:p,__unstableFormatTypeHandlerContext:(0,ti.useMemo)(()=>({richTextIdentifier:y,blockClientId:M}),[y,M])}),et=Yre({onReplace:u,completers:l,record:ne,onChange:Ee}),{"aria-autocomplete":Je,"aria-haspopup":_t,"aria-controls":Et,"aria-owns":mt,"aria-activedescendant":oo}=et;(0,ti.useEffect)(()=>{if(!Z)return;let we=P.current?.parentElement?.closest('[contenteditable="true"]');if(!we)return;let Me={"aria-autocomplete":Je,"aria-haspopup":_t,"aria-controls":Et,"aria-owns":mt,"aria-activedescendant":oo};for(let[ge,Re]of Object.entries(Me))Re===void 0?we.removeAttribute(ge):we.setAttribute(ge,Re);return()=>{for(let ge of Object.keys(Me))we.removeAttribute(ge)}},[Z,Je,_t,Et,mt,oo]),bPe({html:o,value:ne});let Tt=(0,ti.useRef)(new Set),Rt=(0,ti.useRef)(new Set);function Bt(){P.current?.focus()}let gt=E.tabIndex;ke?gt=E.tabIndex??0:!pe&&E.tabIndex===0&&(gt=null);let He=t;return(0,Ga.jsxs)(Ga.Fragment,{children:[Z&&(0,Ga.jsx)(kst.Provider,{value:Tt,children:(0,Ga.jsx)(xst.Provider,{value:Rt,children:(0,Ga.jsxs)(c2e.Popover.__unstableSlotNameProvider,{value:"__unstable-block-tools-after",children:[e&&e({value:ne,onChange:Ee,onFocus:Bt}),(0,Ga.jsx)(TF,{value:ne,onChange:Ee,onFocus:Bt,formatTypes:Ae,forwardedRef:P})]})})}),Z&&fe&&(0,Ga.jsx)(gPe,{inline:s,editableContentElement:L}),(0,Ga.jsx)(He,{role:"textbox","aria-multiline":!S,"aria-readonly":pe,...E,draggable:void 0,"aria-label":oe||E["aria-label"]||d,...et,ref:(0,IF.useMergeRefs)([he,I,et.ref,E.ref,SF({registry:ee,getValue:ae,onChange:Ee,__unstableAllowPrefixTransformations:C,formatTypes:Ae,onReplace:u,selectionChange:ve,isSelected:Z,disableFormats:x,value:ne,tagName:t,onSplit:h,__unstableEmbedURLOnPaste:k,pastePlainText:w,onMerge:g,onRemove:m,disableLineBreaks:S,onSplitAtEnd:b,onSplitAtDoubleLineEnd:v,keyboardShortcuts:Tt,inputEvents:Rt,supportsSplitting:O}),P,H]),contentEditable:!pe,suppressContentEditableWarning:!0,className:$("block-editor-rich-text__editable",E.className,"rich-text"),tabIndex:gt,"data-wp-block-attribute-key":y})]})}var OX=(0,ti.forwardRef)(m2e),sR=n2e(OX);sR.Content=nR;sR.isEmpty=e=>!e||e.length===0;var LX=(0,ti.forwardRef)((e,t)=>{if(kt()[SB]){let{children:n,tagName:i="div",value:s,onChange:a,isSelected:l,multiline:u,inlineToolbar:d,wrapperClassName:f,autocompleters:p,onReplace:m,placeholder:g,allowedFormats:h,withoutInteractiveFormatting:b,onRemove:v,onMerge:y,onSplit:_,__unstableOnSplitAtEnd:w,__unstableOnSplitAtDoubleLineEnd:k,identifier:x,preserveWhiteSpace:S,__unstablePastePlainText:C,__unstableEmbedURLOnPaste:R,__unstableDisableFormats:E,disableLineBreaks:I,__unstableAllowPrefixTransformations:O,readOnly:A,...P}=e;return(0,Ga.jsx)(i,{ref:t,...P,dangerouslySetInnerHTML:{__html:PX(s,u)||"<br>"}})}return(0,Ga.jsx)(sR,{ref:t,...e,readOnly:!1})});LX.Content=nR;LX.isEmpty=e=>!e||e.length===0;var bS=LX;var DX=c(T(),1),h2e=(0,g2e.forwardRef)((e,t)=>(0,DX.jsx)(bS,{ref:t,...e,__unstableDisableFormats:!0}));h2e.Content=function({value:t="",tagName:o="div",...r}){return(0,DX.jsx)(o,{...r,children:t})};var b2e=h2e;var VX=c(T(),1),Sst=(0,v2e.forwardRef)(({__experimentalVersion:e,...t},o)=>{if(e===2)return(0,VX.jsx)(b2e,{ref:o,...t});let{className:r,onChange:n,...i}=t;return(0,VX.jsx)(y2e.default,{ref:o,className:$("block-editor-plain-text",r),onChange:s=>n(s.target.value),...i})}),_2e=Sst;var Dd=c(q(),1),k2e=c(F(),1),x2e=c(Y(),1);var w2e=c(ue(),1);var PF=c(q(),1),Eh=c(T(),1);function OF({property:e,viewport:t,desc:o}){let r=(0,w2e.useInstanceId)(OF),n=o||(0,PF.sprintf)((0,PF._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,Eh.jsxs)(Eh.Fragment,{children:[(0,Eh.jsx)("span",{"aria-describedby":`rbc-desc-${r}`,children:t.label}),(0,Eh.jsx)(bt,{id:`rbc-desc-${r}`,render:(0,Eh.jsx)("span",{}),children:n})]})}var Vd=c(T(),1);function Cst(e){let{title:t,property:o,toggleLabel:r,onIsResponsiveChange:n,renderDefaultControl:i,renderResponsiveControls:s,isResponsive:a=!1,defaultLabel:l={id:"all",label:(0,Dd._x)("All","screen sizes")},viewports:u=[{id:"small",label:(0,Dd.__)("Small screens")},{id:"medium",label:(0,Dd.__)("Medium screens")},{id:"large",label:(0,Dd.__)("Large screens")}]}=e;if(!t||!o||!i)return null;let d=r||(0,Dd.sprintf)((0,Dd.__)("Use the same %s on all screen sizes."),o),f=(0,Dd.__)("Choose whether to use the same value for all screen sizes or a unique value for each screen size."),p=i((0,Vd.jsx)(OF,{property:o,viewport:l}),l),m=()=>u.map(g=>(0,Vd.jsx)(k2e.Fragment,{children:i((0,Vd.jsx)(OF,{property:o,viewport:g}),g)},g.id));return(0,Vd.jsxs)("fieldset",{className:"block-editor-responsive-block-control",children:[(0,Vd.jsx)("legend",{className:"block-editor-responsive-block-control__title",children:t}),(0,Vd.jsxs)("div",{className:"block-editor-responsive-block-control__inner",children:[(0,Vd.jsx)(x2e.ToggleControl,{className:"block-editor-responsive-block-control__toggle",label:d,checked:!a,onChange:n,help:f}),(0,Vd.jsxs)("div",{className:$("block-editor-responsive-block-control__group",{"is-responsive":a}),children:[!a&&p,a&&(s?s(u):m())]})]})]})}var S2e=Cst;var AF=c(Y(),1);var C2e=c(T(),1);function E2e({units:e,...t}){let[o]=je("spacing.units"),r=(0,AF.__experimentalUseCustomUnits)({availableUnits:o||["%","px","em","rem","vw"],units:e});return(0,C2e.jsx)(AF.__experimentalUnitControl,{units:r,...t})}var aR=c(q(),1),T2e=c(F(),1),_S=c(Y(),1);var Fd=c(T(),1);function Est({url:e,onChange:t}){let[o,r]=(0,T2e.useReducer)(i=>!i,!1),n=i=>{i.preventDefault(),r()};return(0,Fd.jsxs)("div",{className:"block-editor-url-input__button",children:[(0,Fd.jsx)(_S.Button,{size:"compact",icon:Ms,label:e?(0,aR.__)("Edit link"):(0,aR.__)("Insert link"),onClick:r,className:"components-toolbar__control",isPressed:!!e}),o&&(0,Fd.jsx)("form",{className:"block-editor-url-input__button-modal",onSubmit:n,children:(0,Fd.jsxs)("div",{className:"block-editor-url-input__button-modal-line",children:[(0,Fd.jsx)(_S.Button,{__next40pxDefaultSize:!0,className:"block-editor-url-input__back",icon:N0,label:(0,aR.__)("Close"),onClick:r}),(0,Fd.jsx)(Ap,{value:e||"",onChange:t,suffix:(0,Fd.jsx)(_S.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,Fd.jsx)(_S.Button,{size:"small",icon:gf,label:(0,aR.__)("Submit"),type:"submit"})})})]})})]})}var R2e=Est;var ia=c(q(),1),ec=c(F(),1),A2e=c(Lt(),1),Ln=c(Y(),1);var M2e=c(ga(),1);var Uo=c(T(),1),FX="none",B2e="custom",I2e="media",P2e="attachment",O2e=["noopener"],N2e=({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:p})=>{let[m,g]=(0,ec.useState)(!1),[h,b]=(0,ec.useState)(null),v=()=>{g(!0)},[y,_]=(0,ec.useState)(!1),[w,k]=(0,ec.useState)(null),x=(0,ec.useRef)(null),S=(0,ec.useRef)();(0,ec.useEffect)(()=>{if(!S.current)return;(A2e.focus.focusable.find(S.current)[0]||S.current).focus()},[y,o,d]);let C=()=>{(e===I2e||e===P2e)&&k(""),_(!0)},R=()=>{_(!1)},E=()=>{k(null),R(),g(!1)},I=U=>{let Q=U?"_blank":void 0,Z;if(Q){let K=(l??"").split(" ");O2e.forEach(X=>{K.includes(X)||K.push(X)}),Z=K.join(" ")}else{let K=(l??"").split(" ").filter(X=>O2e.includes(X)===!1);Z=K.length?K.join(" "):void 0}return{linkTarget:Q,rel:Z}},O=()=>U=>{let Q=x.current;Q&&Q.contains(U.target)||(g(!1),k(null),R())},A=()=>U=>{if(w){let Q=L().find(Z=>Z.url===w)?.linkDestination||B2e;t({href:(0,M2e.prependHTTPS)(w),linkDestination:Q,lightbox:{enabled:!1}})}R(),k(null),U.preventDefault()},P=()=>{t({linkDestination:FX,href:""})},L=()=>{let U=[{linkDestination:I2e,title:(0,ia.__)("Link to image file"),url:r==="image"?n:void 0,icon:W0}];return r==="image"&&i&&U.push({linkDestination:P2e,title:(0,ia.__)("Link to attachment page"),url:r==="image"?i:void 0,icon:vb}),U},H=U=>{let Q=L(),Z;U?Z=(Q.find(K=>K.url===U)||{linkDestination:B2e}).linkDestination:Z=FX,t({linkDestination:Z,href:U})},N=U=>{let Q=I(U);t(Q)},M=U=>{t({rel:U})},V=U=>{t({linkClass:U})},j=(0,Uo.jsxs)(Ln.__experimentalVStack,{spacing:"3",children:[(0,Uo.jsx)(Ln.ToggleControl,{label:(0,ia.__)("Open in new tab"),onChange:N,checked:s==="_blank"}),(0,Uo.jsx)(Ln.TextControl,{label:(0,ia.__)("Link relation"),value:l??"",onChange:M,help:(0,ec.createInterpolateElement)((0,ia.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,Uo.jsx)(Ln.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})})}),(0,Uo.jsx)(Ln.TextControl,{label:(0,ia.__)("Link CSS class"),value:a||"",onChange:V})]}),D=w!==null?w:o,z=!d||d&&!u,W=!D&&z,ee=(L().find(U=>U.linkDestination===e)||{}).title,J=()=>{if(d&&u&&!o&&!y)return(0,Uo.jsxs)("div",{className:"block-editor-url-popover__expand-on-click",children:[(0,Uo.jsx)(xt,{icon:RI}),(0,Uo.jsxs)("div",{className:"text",children:[(0,Uo.jsx)("p",{children:(0,ia.__)("Enlarge on click")}),(0,Uo.jsx)("p",{className:"description",children:(0,ia.__)("Scales the image with a lightbox effect")})]}),(0,Uo.jsx)(Ln.Button,{icon:As,label:(0,ia.__)("Disable enlarge on click"),onClick:()=>{f?.(!1)},size:"compact"})]});if(!o||y)return(0,Uo.jsx)(kh.LinkEditor,{className:"block-editor-url-popover__link-container-content",value:D,onChangeInputValue:k,onSubmit:A(),autocompleteRef:x});if(o&&!y)return(0,Uo.jsxs)(Uo.Fragment,{children:[(0,Uo.jsx)(kh.LinkViewer,{className:"block-editor-url-popover__link-container-content",url:o,onEditLinkClick:C,urlLabel:ee}),(0,Uo.jsx)(Ln.Button,{icon:As,label:(0,ia.__)("Remove link"),onClick:()=>{P(),p?.()},size:"compact"})]})};return(0,Uo.jsxs)(Uo.Fragment,{children:[(0,Uo.jsx)(Ln.ToolbarButton,{icon:Ms,className:"components-toolbar__control",label:(0,ia.__)("Link"),"aria-expanded":m,onClick:v,ref:b,isActive:!!o||d&&u}),m&&(0,Uo.jsx)(kh,{ref:S,anchor:h,onFocusOutside:O(),onClose:E,renderSettings:z?()=>j:null,additionalControls:W&&(0,Uo.jsxs)(Ln.NavigableMenu,{children:[L().map(U=>(0,Uo.jsx)(Ln.MenuItem,{icon:U.icon,iconPosition:"left",onClick:()=>{k(null),H(U.url),R()},children:U.title},U.linkDestination)),u&&(0,Uo.jsx)(Ln.MenuItem,{className:"block-editor-url-popover__expand-on-click",icon:RI,info:(0,ia.__)("Scale the image with a lightbox effect."),iconPosition:"left",onClick:()=>{k(null),t({linkDestination:FX,href:""}),f?.(!0),R()},children:(0,ia.__)("Enlarge on click")},"expand-on-click")]}),offset:13,children:J()})]})};var kS=c(Y(),1),q2e=c(F(),1),LF=c(q(),1);var L2e=c(F(),1),jX=c(q(),1);var zX=[],Tst=new Intl.Collator("und",{numeric:!0}).compare;function MF(){let[e,t,o,r]=je("spacing.spacingSizes.custom","spacing.spacingSizes.theme","spacing.spacingSizes.default","spacing.defaultSpacingSizes"),n=e??zX,i=t??zX,s=o&&r!==!1?o:zX;return(0,L2e.useMemo)(()=>{let a=[{name:(0,jX.__)("None"),slug:"0",size:0},...n,...i,...s];return a.every(({slug:l})=>/^[0-9]/.test(l))&&a.sort((l,u)=>Tst(l.slug,u.slug)),a.length>Qre?[{name:(0,jX.__)("Default"),slug:"default",size:void 0},...a]:a},[n,i,s])}var D2e=c(F(),1),V2e=c(te(),1),NF=c(q(),1),F2e=c(Y(),1);var z2e=c(T(),1),Rst={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 wS({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 p=(0,V2e.useSelect)(w=>w(B).getSettings()?.disableCustomSpacingSizes),[m]=je("spacing.units"),g=(0,F2e.__experimentalUseCustomUnits)({availableUnits:m||["px","em","rem"]}),h=(0,D2e.useMemo)(()=>l?.map(w=>({name:w.name,slug:w.slug,size:w.size}))||[],[l]),b=(Lm.includes(a)||["vertical","horizontal"].includes(a))&&s?$u[a]:"",v=s?u?.toLowerCase():u,y=(0,NF.sprintf)((0,NF._x)("%1$s %2$s","spacing"),b,v).trim(),_=g[0]?.value||"px";return(0,z2e.jsx)(uv,{allowNegativeOnDrag:o<0,ariaLabel:y,className:"spacing-sizes-control",customValueSettings:Rst,disableCustomValues:p,icon:e,isMixed:t,minimumCustomValue:o,onChange:r,onMouseOut:n,onMouseOver:i,presets:h,presetType:"spacing",selectedUnit:_,units:g,value:d,...f})}var lR=c(T(),1),j2e=["vertical","horizontal"];function H2e({minimumCustomValue:e,onChange:t,onMouseOut:o,onMouseOver:r,sides:n,spacingSizes:i,type:s,values:a}){let l=d=>f=>{if(!t)return;let p={...Object.keys(a).reduce((m,g)=>(m[g]=j_(a[g],i),m),{})};d==="vertical"&&(p.top=f,p.bottom=f),d==="horizontal"&&(p.left=f,p.right=f),t(p)},u=n?.length?j2e.filter(d=>lH(n,d)):j2e;return(0,lR.jsx)(lR.Fragment,{children:u.map(d=>{let f=d==="vertical"?a.top:a.left;return(0,lR.jsx)(wS,{icon:N2[d],label:$u[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 cR=c(T(),1);function U2e({minimumCustomValue:e,onChange:t,onMouseOut:o,onMouseOver:r,sides:n,spacingSizes:i,type:s,values:a}){let l=n?.length?Lm.filter(d=>n.includes(d)):Lm,u=d=>f=>{let p={...Object.keys(a).reduce((m,g)=>(m[g]=j_(a[g],i),m),{})};p[d]=f,t(p)};return(0,cR.jsx)(cR.Fragment,{children:l.map(d=>(0,cR.jsx)(wS,{icon:N2[d],label:$u[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 W2e=c(T(),1);function G2e({minimumCustomValue:e,onChange:t,onMouseOut:o,onMouseOver:r,showSideInLabel:n,side:i,spacingSizes:s,type:a,values:l}){let u=d=>f=>{let p={...Object.keys(l).reduce((m,g)=>(m[g]=j_(l[g],s),m),{})};p[d]=f,t(p)};return(0,W2e.jsx)(wS,{label:$u[i],minimumCustomValue:e,onChange:u(i),onMouseOut:o,onMouseOver:r,showSideInLabel:n,side:i,spacingSizes:s,type:a,value:l[i],withInputField:!1})}var $2e=c(Y(),1);var HX=c(q(),1),Y2e=c(T(),1);function K2e({isLinked:e,...t}){let o=e?(0,HX.__)("Unlink sides"):(0,HX.__)("Link sides");return(0,Y2e.jsx)($2e.Button,{...t,size:"small",icon:e?Ms:As,iconSize:24,label:o})}var zd=c(T(),1);function xS({inputProps:e,label:t,minimumCustomValue:o=0,onChange:r,onMouseOut:n,onMouseOver:i,showSideInLabel:s=!0,sides:a=Lm,useSelect:l,values:u}){let d=MF(),f=u||Jre,p=a?.length===1,m=a?.includes("horizontal")&&a?.includes("vertical")&&a?.length===2,[g,h]=(0,q2e.useState)(tne(f,a)),b=()=>{h(g===Tf.axial?Tf.custom:Tf.axial)},y={...e,minimumCustomValue:o,onChange:x=>{let S={...u,...x};r(S)},onMouseOut:n,onMouseOver:i,sides:a,spacingSizes:d,type:t,useSelect:l,values:f},_=()=>g===Tf.axial?(0,zd.jsx)(H2e,{...y}):g===Tf.custom?(0,zd.jsx)(U2e,{...y}):(0,zd.jsx)(G2e,{side:g,...y,showSideInLabel:s}),w=Lm.includes(g)&&s?$u[g]:"",k=(0,LF.sprintf)((0,LF._x)("%1$s %2$s","spacing control label"),t,w).trim();return(0,zd.jsxs)("fieldset",{className:"spacing-sizes-control",children:[(0,zd.jsxs)(kS.__experimentalHStack,{className:"spacing-sizes-control__header",children:[(0,zd.jsx)(kS.BaseControl.VisualLabel,{as:"legend",className:"spacing-sizes-control__label",children:k}),!p&&!m&&(0,zd.jsx)(K2e,{label:t,onClick:b,isLinked:g===Tf.axial})]}),(0,zd.jsx)(kS.__experimentalVStack,{spacing:.5,children:_()})]})}var Z2e=c(Mt(),1);function X2e(){return(0,Z2e.default)("wp.blockEditor.PreviewOptions",{version:"6.5"}),null}var Q2e=c(Mt(),1);function J2e(){(0,Q2e.default)("wp.blockEditor.useResizeCanvas",{since:"7.1",hint:"Device preview is now handled by the editor canvas. This hook no longer does anything."})}var xs=c(q(),1),US=c(ce(),1),WS=c(Y(),1),NR=c(te(),1),AMe=c(F(),1);var UX=c(Y(),1);var DF=c(q(),1),VF=c(te(),1),FF=c(ce(),1);var Bv=c(T(),1);function Bst({attributes:e={},onNavigateToEntityRecord:t,isTemplatePartBlock:o}){let{ref:r,theme:n,slug:i}=e,s=o?n&&i&&`${n}//${i}`:r;return(0,Bv.jsx)(Ke,{direction:"column",className:"block-editor-block-inspector-edit-contents",children:(0,Bv.jsx)(UX.Button,{className:"block-editor-block-inspector-edit-contents__button",__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{s&&t({postId:s,postType:o?"wp_template_part":"wp_block"})},accessibleWhenDisabled:!0,disabled:!s,children:(0,DF.__)("Edit original")})})}function Ist({clientId:e,editedContentOnlySection:t,editContentOnlySection:o,stopEditingContentOnlySection:r}){let{selectBlock:n}=(0,VF.useDispatch)(B);return(0,Bv.jsx)(Ke,{direction:"column",className:"block-editor-block-inspector-edit-contents",children:(0,Bv.jsx)(UX.Button,{className:"block-editor-block-inspector-edit-contents__button",__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{t?(r(),n(e)):(o(e),n(e))},children:t?(0,DF.__)("Exit pattern"):(0,DF.__)("Edit pattern")})})}function eOe({clientId:e}){let{isWithinSection:t,isWithinEditedSection:o,editedContentOnlySection:r,editContentOnlySection:n,stopEditingContentOnlySection:i}=IV(e),{block:s,onNavigateToEntityRecord:a,canEdit:l}=(0,VF.useSelect)(p=>{let{getBlock:m,getSettings:g,canEditBlock:h}=p(B);return{block:m(e),onNavigateToEntityRecord:g().onNavigateToEntityRecord,canEdit:h(e)}},[e]);if(!l||!t&&!o)return null;let u=(0,FF.isReusableBlock)(s),d=(0,FF.isTemplatePart)(s);return(u||d)&&a?(0,Bv.jsx)(Bst,{attributes:s?.attributes,onNavigateToEntityRecord:a,isTemplatePartBlock:d}):(0,Bv.jsx)(Ist,{clientId:e,editedContentOnlySection:r,editContentOnlySection:n,stopEditingContentOnlySection:i})}var tOe=c(te(),1),oOe=c(q(),1),rOe=c(Y(),1),nOe=c(F(),1);var iOe=c(T(),1);function zF(){let e=(0,tOe.useSelect)(r=>r(B).getBlockSelectionStart(),[]),t=(0,nOe.useRef)();return Mb(e,t),e?(0,iOe.jsx)(rOe.Button,{__next40pxDefaultSize:!0,variant:"secondary",className:"block-editor-skip-to-selected-block",onClick:()=>{t.current?.focus()},children:(0,oOe.__)("Skip to the selected block")}):null}var SS=c(q(),1),sOe=c(te(),1);var Iv=c(T(),1);function WX(){let{selectedBlockCount:e,totalBlockCount:t}=(0,sOe.useSelect)(o=>{let{getSelectedBlockCount:r,getMultiSelectedBlockClientIds:n,getClientIdsOfDescendants:i}=o(B),s=r();return{selectedBlockCount:s,totalBlockCount:s+i(n()).length}},[]);return(0,Iv.jsxs)(Ke,{direction:"row",align:"center",justify:"flex-start",gap:"sm",className:"block-editor-multi-selection-inspector__card",children:[(0,Iv.jsx)(Nt,{icon:pb,showColors:!0}),(0,Iv.jsxs)(Ke,{direction:"column",children:[(0,Iv.jsx)("div",{className:"block-editor-multi-selection-inspector__card-title",children:(0,SS.sprintf)((0,SS._n)("%d Block","%d Blocks",e),e)}),t>e&&(0,Iv.jsx)("div",{className:"block-editor-multi-selection-inspector__card-description",children:(0,SS.sprintf)((0,SS._n)("%d including nested block","%d including nested blocks",t),t)})]})]})}var aOe=c(Y(),1),Pst=Symbol("BlockInspectorPreTabs"),{Fill:USo,Slot:lOe}=(0,aOe.createSlotFill)(Pst);var Y6=c(Y(),1),yu=c(F(),1),kMe=c(B_(),1),HS=c(te(),1);var uR=c(q(),1),jF={name:"settings",title:(0,uR.__)("Settings"),value:"settings",icon:Lz},HF={name:"styles",title:(0,uR.__)("Styles"),value:"styles",icon:Y9},UF={name:"content",title:(0,uR.__)("Content"),value:"content",icon:vb},Dp={name:"list",title:(0,uR.__)("List View"),value:"list-view",icon:Z0};var GX=c(Y(),1);var dR=c(Y(),1),cOe=c(q(),1);var fR=c(T(),1),Ost=({initialOpen:e=!1})=>{let t=(0,dR.__experimentalUseSlotFills)(Gg.slotName),o=(0,dR.__experimentalUseSlotFills)(cT.name),r=!!(t&&t.length),n=!!(o&&o.length);return!r&&!n?null:(0,fR.jsxs)(dR.PanelBody,{className:"block-editor-block-inspector__advanced",title:(0,cOe.__)("Advanced"),initialOpen:e,children:[(0,fR.jsx)(Fe.Slot,{group:"advanced"}),(0,fR.jsx)(cT.Slot,{})]})},WF=Ost;var Vp=c(T(),1),Ast=({showAdvancedControls:e=!1})=>{let t=(0,GX.__experimentalUseSlotFills)(Qc.default.name),o=(0,GX.__experimentalUseSlotFills)(Qc.bindings.name),r=!!t?.length||!!o?.length;return(0,Vp.jsxs)(Vp.Fragment,{children:[(0,Vp.jsx)(Fe.Slot,{}),(0,Vp.jsx)(Fe.Slot,{group:"bindings"}),e&&(0,Vp.jsx)("div",{children:(0,Vp.jsx)(WF,{initialOpen:!r})})]})},uOe=Ast;var Ph=c(q(),1),U6=c(te(),1),AQ=c(F(),1);var CS=c(Y(),1),GF=c(te(),1),$X=c(q(),1);var pR=c(T(),1),Mst=()=>{let{selectedClientIds:e,selectedBlocks:t,hasPositionAttribute:o}=(0,GF.useSelect)(s=>{let{getBlocksByClientId:a,getSelectedBlockClientIds:l}=s(B),u=l(),d=a(u);return{selectedClientIds:u,selectedBlocks:d,hasPositionAttribute:d?.some(({attributes:f})=>!!f?.style?.position?.type)}},[]),{updateBlockAttributes:r}=(0,GF.useDispatch)(B),n=Dr();function i(){if(!e?.length||!t?.length)return;let s=Object.fromEntries(t?.map(({clientId:a,attributes:l})=>[a,{style:Xe({...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,pR.jsx)(CS.__experimentalToolsPanel,{className:"block-editor-block-inspector__position",label:(0,$X.__)("Position"),resetAll:i,dropdownMenuProps:n,children:(0,pR.jsx)(CS.__experimentalToolsPanelItem,{isShownByDefault:o,label:(0,$X.__)("Position"),hasValue:()=>o,onDeselect:i,children:(0,pR.jsx)(Fe.Slot,{group:"position"})})})},Nst=()=>{let e=(0,CS.__experimentalUseSlotFills)(Qc.position.name);return!(e&&e.length)?null:(0,pR.jsx)(Mst,{})},$F=Nst;var RR=c(ce(),1),fQ=c(Y(),1),BR=c(F(),1),AAe=c(Bo(),1),pQ=c(te(),1),E6=c(q(),1);var lQ={};No(lQ,{AdvancedPanel:()=>b6,BackgroundPanel:()=>w6,BorderPanel:()=>f6,ColorPanel:()=>JF,DimensionsPanel:()=>l6,FiltersPanel:()=>m6,ImageSettingsPanel:()=>mAe,StateControl:()=>k6,StateControlBadges:()=>x6,TypographyPanel:()=>t6,useHasBackgroundPanel:()=>_6,useHasBorderPanel:()=>d6,useHasBorderPanelControls:()=>yR,useHasColorPanel:()=>QF,useHasDimensionsPanel:()=>a6,useHasFiltersPanel:()=>dAe,useHasImageSettingsPanel:()=>pAe,useHasTypographyPanel:()=>e6,useSettingsForBlockElement:()=>YF});var mR=c(F(),1),dOe=c(te(),1),YX=c(ce(),1),Pv=c(q(),1);function YF(e,t,o){let{supportedStyles:r,supports:n}=(0,dOe.useSelect)(i=>({supportedStyles:G(i(YX.store)).getSupportedStyles(t,o),supports:i(YX.store).getBlockType(t)?.supports}),[t,o]);return(0,mR.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 jd(e){let t=e?.color?.palette?.custom,o=e?.color?.palette?.theme,r=e?.color?.palette?.default,n=e?.color?.defaultPalette;return(0,mR.useMemo)(()=>{let i=[];return o&&o.length&&i.push({name:(0,Pv._x)("Theme","Indicates this palette comes from the theme."),colors:o}),n&&r&&r.length&&i.push({name:(0,Pv._x)("Default","Indicates this palette comes from WordPress."),colors:r}),t&&t.length&&i.push({name:(0,Pv._x)("Custom","Indicates this palette is created by the user."),colors:t}),i},[t,o,r,n])}function gR(e){let t=e?.color?.gradients?.custom,o=e?.color?.gradients?.theme,r=e?.color?.gradients?.default,n=e?.color?.defaultGradients;return(0,mR.useMemo)(()=>{let i=[];return o&&o.length&&i.push({name:(0,Pv._x)("Theme","Indicates this palette comes from the theme."),gradients:o}),n&&r&&r.length&&i.push({name:(0,Pv._x)("Default","Indicates this palette comes from WordPress."),gradients:r}),t&&t.length&&i.push({name:(0,Pv._x)("Custom","Indicates this palette is created by the user."),gradients:t}),i},[t,o,r,n])}function ES(e){let t=jd(e),o=gR(e),r=e?.color?.custom,n=e?.color?.customGradient,i=(0,mR.useMemo)(()=>t.flatMap(({colors:l})=>l),[t]),s=l=>rl({settings:e},"",l),a=(l,u)=>{if(u)return"var:preset|gradient|"+u;let f=o.flatMap(({gradients:p})=>p).find(({gradient:p})=>p===l);return f?"var:preset|gradient|"+f.slug:l};return{colors:t,gradients:o,allColors:i,areCustomSolidsEnabled:r,areCustomGradientsEnabled:n,hasSolidColors:t.length>0||r,hasGradientColors:o.length>0||n,decodeValue:s,encodeGradientValue:a}}var rc=c(Y(),1),Fr=c(q(),1),Ov=c(F(),1);var TS=c(q(),1);var fOe=c(F(),1),KF=c(Y(),1),KX=c(T(),1),Lst=[{label:(0,TS.__)("Align text left"),value:"left",icon:gm},{label:(0,TS.__)("Align text center"),value:"center",icon:cb},{label:(0,TS.__)("Align text right"),value:"right",icon:hm},{label:(0,TS.__)("Justify text"),value:"justify",icon:uz}],Dst=["left","center","right"];function qF({className:e,value:t,onChange:o,options:r=Dst}){let n=(0,fOe.useMemo)(()=>Lst.filter(i=>r.includes(i.value)),[r]);return n.length?(0,KX.jsx)(KF.__experimentalToggleGroupControl,{isDeselectable:!0,label:(0,TS.__)("Text alignment"),className:$("block-editor-text-alignment-control",e),value:t,onChange:i=>{o(i===t?void 0:i)},children:n.map(i=>(0,KX.jsx)(KF.__experimentalToggleGroupControlOptionIcon,{value:i.value,icon:i.icon,label:i.label},i.value))}):null}var kn=c(Y(),1),hR=c(q(),1);var tc=c(T(),1);function pOe({value:e,onChange:t,__unstableInputWidth:o="60px",withSlider:r=!1,hasBottomMargin:n=!1,help:i,className:s,placeholder:a,...l}){let[u]=je("spacing.units"),d=(0,kn.__experimentalUseCustomUnits)({availableUnits:u||["px","em","rem","ch","%","vw","vh"],defaultValues:{px:16,em:2,rem:2,ch:2}}),[f,p]=(0,kn.__experimentalParseQuantityAndUnitFromRawValue)(e,d),m=!!p&&["em","rem","%","ch","vw","vh"].includes(p);return r?(0,tc.jsxs)(kn.__experimentalView,{style:n?{marginBottom:12}:void 0,children:[(0,tc.jsx)(kn.BaseControl.VisualLabel,{children:(0,hR.__)("Line indent")}),(0,tc.jsxs)(kn.Flex,{children:[(0,tc.jsx)(kn.FlexItem,{isBlock:!0,children:(0,tc.jsx)(kn.__experimentalUnitControl,{label:(0,hR.__)("Line indent"),labelPosition:"top",hideLabelFromVision:!0,value:e,onChange:t,units:d,__unstableInputWidth:o,min:0,className:s,placeholder:a})}),r&&(0,tc.jsx)(kn.FlexItem,{isBlock:!0,children:(0,tc.jsx)(kn.__experimentalSpacer,{marginX:2,marginBottom:0,children:(0,tc.jsx)(kn.RangeControl,{label:(0,hR.__)("Line indent"),hideLabelFromVision:!0,value:f,withInputField:!1,onChange:g=>{t?.(g===void 0?void 0:g+(p??"px"))},min:0,max:m?10:100,step:m?.1:1,initialPosition:0})})})]}),i&&(0,tc.jsx)("p",{className:"components-base-control__help",children:i})]}):(0,tc.jsx)(kn.__experimentalUnitControl,{...l,label:(0,hR.__)("Line indent"),value:e,__unstableInputWidth:o,units:d,onChange:t,help:i,className:s,placeholder:a})}var xn=c(Y(),1),hOe=c(F(),1),qX=c(q(),1);var RS=c(Y(),1);var mOe=c(q(),1),Th=c(T(),1),Dn=()=>!!window.__experimentalGlobalStylesInheritanceUI;function oc(e,t,o){let r=!!e&&!t,n=$(o,{"is-inherited-from-global-styles":r,"has-local-override-from-global-styles":!!t});return{...n?{className:n}:{},isInherited:r,hasLocalOverride:!!t}}function Fp({onResetToInherited:e,className:t}){return(0,Th.jsxs)(RS.Button,{__next40pxDefaultSize:!1,label:(0,mOe.__)("Reset to inherited value"),showTooltip:!0,className:$("has-local-override-from-global-styles__reset",t),onClick:o=>{o.preventDefault(),o.stopPropagation(),e?.()},children:[(0,Th.jsx)("span",{"aria-hidden":"true",className:"has-local-override-from-global-styles__dot"}),(0,Th.jsx)(RS.Icon,{className:"has-local-override-from-global-styles__reset-icon",icon:Bn})]})}function Yt({className:e,isInherited:t,hasLocalOverride:o,label:r,onDeselect:n,showLocalOverrideActionsInLabel:i=!0,hasInlineEndToggle:s=!1,children:a,...l}){return(0,Th.jsxs)(RS.__experimentalToolsPanelItem,{className:e,label:r,onDeselect:n,...l,children:[a,o&&i&&(0,Th.jsx)("div",{className:$("global-styles-inheritance-affordance",{"global-styles-inheritance-affordance--offset-toggle":s}),children:(0,Th.jsx)(Fp,{onResetToInherited:n})})]})}var Mo=c(T(),1),{Tabs:ZF}=G(xn.privateApis);function Vst({tabs:e,colorGradientControlSettings:t,contrastWarning:o}){let{key:r,...n}=e[0]??{},i=(e.find(s=>s.userValue!==void 0)??e.find(s=>s.isPlaceholder||s.inheritedValue!==void 0))?.key;return(0,Mo.jsx)(xn.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,Mo.jsxs)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:[e.length===1&&(0,Mo.jsx)(gOe,{...n,colorGradientControlSettings:t,contrastWarning:o},r),e.length>1&&(0,Mo.jsxs)(ZF,{defaultTabId:i,children:[(0,Mo.jsx)(ZF.TabList,{children:e.map(s=>(0,Mo.jsx)(ZF.Tab,{tabId:s.key,children:s.label},s.key))}),e.map(s=>{let{key:a,...l}=s;return(0,Mo.jsx)(ZF.TabPanel,{tabId:a,focusable:!1,children:(0,Mo.jsx)(gOe,{...l,colorGradientControlSettings:t,contrastWarning:o},a)},a)})]})]})})}var Fst={placement:"left-start",offset:36,shift:!0},zst=({indicators:e,label:t})=>(0,Mo.jsxs)(xn.__experimentalHStack,{justify:"flex-start",children:[(0,Mo.jsx)(xn.__experimentalZStack,{isLayered:!1,offset:-8,children:e.map((o,r)=>(0,Mo.jsx)(xn.Flex,{expanded:!1,children:(0,Mo.jsx)(xn.ColorIndicator,{colorValue:o})},r))}),(0,Mo.jsx)(xn.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",children:t})]});function gOe({isGradient:e,inheritedValue:t,inheritedSlug:o,userSlug:r,userValue:n,setValue:i,isPlaceholder:s,colorGradientControlSettings:a,contrastWarning:l}){let u=n??t,d=n!==void 0?r:o,f=(p,m)=>{if(s&&p===void 0){i(t,o);return}i(p,m)};return(0,Mo.jsx)(ph,{...a,showTitle:!1,enableAlpha:!0,__experimentalIsRenderedInSidebar:!0,colorValue:e?void 0:u,colorSlug:e?void 0:d,gradientValue:e?u:void 0,gradientSlug:e?d:void 0,onColorChange:e?void 0:f,onGradientChange:e?f:void 0,clearable:n!==void 0,headingLevel:3,noticeProps:!e&&l?{children:l,status:"warning",spokenMessage:null,className:"block-editor-panel-color-gradient-settings__contrast-notice"}:void 0})}function Rh({label:e,hasValue:t,resetValue:o,isShownByDefault:r,indicators:n,tabs:i,colorGradientControlSettings:s,panelId:a,contrastWarning:l,className:u="block-editor-tools-panel-color-gradient-settings__item",isPlaceholder:d=!1,hasInheritedValue:f=!1,showInheritanceLabelIndicators:p=Dn()}){let m=(0,hOe.useRef)(void 0),g=$("block-editor-color-gradient-item",u),h=p&&t()&&f,b=p?oc(d,h,g):{className:g};return(0,Mo.jsx)(Yt,{...b,showLocalOverrideActionsInLabel:!1,hasValue:t,label:e,onDeselect:o,isShownByDefault:r,panelId:a,children:(0,Mo.jsx)(xn.Dropdown,{popoverProps:Fst,className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:({onToggle:v,isOpen:y})=>{let _={onClick:v,className:$("block-editor-panel-color-gradient-settings__dropdown",{"is-open":y,"has-contrast-warning":!!l}),"aria-expanded":y,ref:m};return(0,Mo.jsxs)(Mo.Fragment,{children:[(0,Mo.jsx)(xn.Button,{..._,__next40pxDefaultSize:!0,children:(0,Mo.jsx)(zst,{indicators:n,label:e})}),t()&&(h?(0,Mo.jsx)(Fp,{className:"block-editor-panel-color-gradient-settings__reset",onResetToInherited:()=>{o(),y&&v(),m.current?.focus()}}):(0,Mo.jsx)(xn.Button,{__next40pxDefaultSize:!0,label:(0,qX.__)("Reset"),className:"block-editor-panel-color-gradient-settings__reset",size:"small",icon:Bn,onClick:()=>{o(),y&&v(),m.current?.focus()}})),l&&(0,Mo.jsx)(xn.Button,{__next40pxDefaultSize:!0,size:"small",icon:Ez,label:(0,qX.__)("Low contrast"),className:"block-editor-panel-color-gradient-settings__contrast-warning","aria-expanded":y,onClick:v})]})},renderContent:()=>(0,Mo.jsx)(Vst,{tabs:i,colorGradientControlSettings:s,contrastWarning:l})})})}var bOe=c(Y(),1),XF=c(F(),1),Si=c(q(),1),yOe=c(k_(),1);function Wo(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]}function zp(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 BS=c(T(),1);function QF(e){let t=vOe(e),o=wOe(e),r=kOe(e),n=_Oe(e);return t||o||r||n}function ZX(e){let t=jd(e);return e?.color?.text&&(t?.length>0||e?.color?.custom)}function vOe(e){let t=jd(e);return e?.color?.link&&(t?.length>0||e?.color?.custom)}function _Oe(e){let t=jd(e);return e?.color?.caption&&(t?.length>0||e?.color?.custom)}function wOe(e){let t=jd(e),o=gR(e);return e?.color?.heading&&(t?.length>0||e?.color?.custom||o?.length>0||e?.color?.customGradient)}function kOe(e){let t=jd(e),o=gR(e);return e?.color?.button&&(t?.length>0||e?.color?.custom||o?.length>0||e?.color?.customGradient)}function XX(e){let t=jd(e),o=gR(e);return e?.color?.background&&(t?.length>0||e?.color?.custom||o?.length>0||e?.color?.customGradient)}function QX({resetAllFilter:e,onChange:t,value:o,panelId:r,children:n,label:i}){let s=Dr(),a=()=>{let l=e(o);t(l)};return(0,BS.jsx)(bOe.__experimentalToolsPanel,{label:i||(0,Si.__)("Elements"),resetAll:a,panelId:r,hasInnerWrapper:!0,headingLevel:3,className:"color-block-support-panel",__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last",dropdownMenuProps:s,children:(0,BS.jsx)("div",{className:"color-block-support-panel__inner-wrapper",children:n})})}var jst={link:!0,heading:!0,button:!0,caption:!0};function JF({as:e=QX,value:t,onChange:o,inheritedValue:r=t,settings:n,panelId:i,defaultControls:s=jst,label:a,children:l,contrastWarning:u,additionalElements:d,showInheritanceLabelIndicators:f=Dn()}){let{colors:p,gradients:m,areCustomSolidsEnabled:g,areCustomGradientsEnabled:h,hasSolidColors:b,hasGradientColors:v,allColors:y,decodeValue:_,encodeGradientValue:w}=ES(n),k=D=>(0,yOe.getCSSValueFromRawStyle)(_(D)),x=vOe(n),S=k(r?.elements?.link?.color?.text),C=_(t?.elements?.link?.color?.text),R=(D,z)=>{o(Ge(t,["elements","link","color","text"],zp(y,D,z)))},E=k(r?.elements?.link?.[":hover"]?.color?.text),I=_(t?.elements?.link?.[":hover"]?.color?.text),O=(D,z)=>{o(Ge(t,["elements","link",":hover","color","text"],zp(y,D,z)))},A=()=>!!C||!!I,P=()=>{let D=Ge(t,["elements","link",":hover","color","text"],void 0);D=Ge(D,["elements","link","color","text"],void 0),o(D)},L=_Oe(n),H=kOe(n),N=wOe(n),M=(0,XF.useMemo)(()=>[{name:"caption",label:(0,Si.__)("Captions"),showPanel:L},{name:"button",label:(0,Si.__)("Button"),showPanel:H},{name:"heading",label:(0,Si.__)("Heading"),showPanel:N},{name:"h1",label:(0,Si.__)("H1"),showPanel:N},{name:"h2",label:(0,Si.__)("H2"),showPanel:N},{name:"h3",label:(0,Si.__)("H3"),showPanel:N},{name:"h4",label:(0,Si.__)("H4"),showPanel:N},{name:"h5",label:(0,Si.__)("H5"),showPanel:N},{name:"h6",label:(0,Si.__)("H6"),showPanel:N},...d?.map(D=>({...D,showPanel:b||v}))??[]],[d,v,b,L,H,N]),V=(0,XF.useCallback)(D=>({...D,elements:{...D?.elements,link:{...D?.elements?.link,color:void 0,":hover":{color:void 0}},...M.reduce((z,W)=>({...z,[W.name]:{...D?.elements?.[W.name],color:void 0}}),{})}}),[M]),j=[x&&{key:"link",label:(0,Si.__)("Link"),hasValue:A,resetValue:P,isShownByDefault:s.link,indicators:[C??S,I??E],isPlaceholder:C===void 0&&I===void 0&&(S!==void 0||E!==void 0),hasInheritedValue:S!==void 0||E!==void 0,contrastWarning:u,tabs:[{key:"link",label:(0,Si.__)("Default"),inheritedValue:S,inheritedSlug:Wo(r?.elements?.link?.color?.text,"color"),userSlug:Wo(t?.elements?.link?.color?.text,"color"),setValue:R,userValue:C,isPlaceholder:C===void 0&&S!==void 0},{key:"hover",label:(0,Si.__)("Hover"),inheritedValue:E,inheritedSlug:Wo(r?.elements?.link?.[":hover"]?.color?.text,"color"),userSlug:Wo(t?.elements?.link?.[":hover"]?.color?.text,"color"),setValue:O,userValue:I,isPlaceholder:I===void 0&&E!==void 0}]}].filter(Boolean);return M.forEach(({name:D,label:z,showPanel:W})=>{if(!W)return;let ee=k(r?.elements?.[D]?.color?.background),J=k(r?.elements?.[D]?.color?.gradient),U=k(r?.elements?.[D]?.color?.text),Q=_(t?.elements?.[D]?.color?.background),Z=_(t?.elements?.[D]?.color?.gradient),K=_(t?.elements?.[D]?.color?.text),X=()=>!!(K||Q||Z),oe=()=>{let Se=Ge(t,["elements",D,"color","background"],void 0);Se.elements[D].color.gradient=void 0,Se.elements[D].color.text=void 0,o(Se)},ie=(Se,fe)=>{o(Ge(t,["elements",D,"color","text"],zp(y,Se,fe)))},se=(Se,fe)=>{let Ce=Ge(t,["elements",D,"color","background"],zp(y,Se,fe));Ce.elements[D].color.gradient=void 0,o(Ce)},be=(Se,fe)=>{let Ce=Ge(t,["elements",D,"color","gradient"],w(Se,fe));Ce.elements[D].color.background=void 0,o(Ce)},pe=D!=="caption",ke=K===void 0&&U!==void 0,ye=Q===void 0&&ee!==void 0,Pe=Z===void 0&&J!==void 0,_e=K===void 0&&Q===void 0&&Z===void 0&&(U!==void 0||ee!==void 0||J!==void 0),ve=U!==void 0||ee!==void 0||J!==void 0;j.push({key:D,label:z,hasValue:X,resetValue:oe,isShownByDefault:s[D],indicators:pe?[K??U,Z??J??Q??ee]:[K??U],isPlaceholder:_e,hasInheritedValue:ve,tabs:[b&&{key:"text",label:(0,Si.__)("Text"),inheritedValue:U,inheritedSlug:Wo(r?.elements?.[D]?.color?.text,"color"),userSlug:Wo(t?.elements?.[D]?.color?.text,"color"),setValue:ie,userValue:K,isPlaceholder:ke},b&&pe&&{key:"background",label:(0,Si.__)("Background"),inheritedValue:ee,inheritedSlug:Wo(r?.elements?.[D]?.color?.background,"color"),userSlug:Wo(t?.elements?.[D]?.color?.background,"color"),setValue:se,userValue:Q,isPlaceholder:ye},v&&pe&&{key:"gradient",label:(0,Si.__)("Gradient"),inheritedValue:J,inheritedSlug:Wo(r?.elements?.[D]?.color?.gradient,"gradient"),userSlug:Wo(t?.elements?.[D]?.color?.gradient,"gradient"),setValue:be,userValue:Z,isGradient:!0,isPlaceholder:Pe}].filter(Boolean)})}),(0,BS.jsxs)(e,{resetAllFilter:V,value:t,onChange:o,panelId:i,label:a,children:[j.map(D=>{let{key:z,...W}=D;return(0,BS.jsx)(Rh,{...W,showInheritanceLabelIndicators:f,colorGradientControlSettings:{colors:p,disableCustomColors:!g,gradients:m,disableCustomGradients:!h},panelId:i},z)}),l]})}function SOe(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 xOe(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 Hst(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 COe(e,t,o){let r=t,n=o,{fontStyles:i,fontWeights:s,combinedStyleAndWeightOptions:a}=qx(e),l=i?.some(({value:d})=>d===t),u=s?.some(({value:d})=>d?.toString()===o?.toString());return l||(r=t?Hst(i,t):a?.find(d=>d.style.fontWeight===xOe(s,o))?.style?.fontStyle),u||(n=o?xOe(s,o):a?.find(d=>d.style.fontStyle===(r||t))?.style?.fontWeight),{nearestFontStyle:r,nearestFontWeight:n}}var bo=c(T(),1),Ust=1,Wst=6;function Gst(e,t){let o=e?.elements?.link?.color?.text;if(o!==void 0)return o===e?.color?.text;let r=t?.elements?.link?.color?.text;return r===void 0||t?.color?.text===r}function e6(e){let t=TOe(e),o=ROe(e),r=BOe(e),n=IOe(e),i=OOe(e),s=POe(e),a=AOe(e),l=LOe(e),u=MOe(e),d=NOe(e),f=EOe(e),p=ZX(e);return t||o||r||n||i||s||f||a||l||u||d||p}function EOe(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 TOe(e){return["default","theme","custom"].some(t=>e?.typography?.fontFamilies?.[t]?.length)}function ROe(e){return e?.typography?.lineHeight}function BOe(e){return e?.typography?.fontStyle||e?.typography?.fontWeight}function $st(e){return e?.typography?.fontStyle?e?.typography?.fontWeight?(0,Fr.__)("Appearance"):(0,Fr.__)("Font style"):(0,Fr.__)("Font weight")}function IOe(e){return e?.typography?.letterSpacing}function POe(e){return e?.typography?.textTransform}function OOe(e){return e?.typography?.textAlign}function AOe(e){return e?.typography?.textDecoration}function MOe(e){return e?.typography?.writingMode}function NOe(e){return e?.typography?.textColumns}function LOe(e){return e?.typography?.textIndent}function Yst(e){let t=e?.typography?.fontSizes,o=!!e?.typography?.defaultFontSizes;return[...t?.custom??[],...t?.theme??[],...o?t?.default??[]:[]]}function eQ({resetAllFilter:e,onChange:t,value:o,panelId:r,children:n}){let i=Dr(),s=()=>{let a=e(o);t(a)};return(0,bo.jsx)(rc.__experimentalToolsPanel,{label:(0,Fr.__)("Typography"),resetAll:s,panelId:r,__experimentalFirstVisibleItemClass:"first",dropdownMenuProps:i,children:n})}var Kst={textColor:!0,fontFamily:!0,fontSize:!0,fontAppearance:!0,lineHeight:!0,letterSpacing:!0,textAlign:!0,textTransform:!0,textDecoration:!0,textIndent:!0,writingMode:!0,textColumns:!0},qst=[void 0,null,""];function st(e){return!qst.includes(e)}function JX(e){if(!st(e))return;let[t]=(0,rc.__experimentalParseQuantityAndUnitFromRawValue)(e);return t}function t6({as:e=eQ,value:t,onChange:o,inheritedValue:r=t,settings:n,panelId:i,defaultControls:s=Kst,isGlobalStyles:a=!1,showInheritanceLabelIndicators:l=Dn(),contrastWarning:u}){let{colors:d,allColors:f,areCustomSolidsEnabled:p,decodeValue:m}=ES(n),g=(Ue,En,Nu)=>oc(l&&Ue,l&&En,Nu),h=ZX(n),b=m(r?.color?.text),v=m(t?.color?.text),y=()=>!!t?.color?.text,_=(Ue,En)=>{let Nu=zp(f,Ue,En),_c=Ge(t,["color","text"],Nu);(Dn()?Gst(t,r):r?.color?.text===r?.elements?.link?.color?.text)&&(_c=Ge(_c,["elements","link","color","text"],Nu)),o(_c)},w=()=>_(void 0),k=TOe(n),x=m(r?.typography?.fontFamily),S=m(t?.typography?.fontFamily)??x,C=!st(t?.typography?.fontFamily)&&st(x),{fontFamilies:R,fontFamilyFaces:E}=(0,Ov.useMemo)(()=>SOe(n,S),[n,S]),I=Ue=>{let En=R?.find(({fontFamily:wc})=>wc===Ue)?.slug,Nu=En?`var:preset|font-family|${En}`:Ue,_c=Ge(t,["typography","fontFamily"],st(Nu)?Nu:void 0),G8=R?.find(({fontFamily:wc})=>wc===Ue)?.fontFace??[],{fontStyles:a3e,fontWeights:l3e}=qx(G8),c3e=a3e?.some(({value:wc})=>wc===ke),u3e=l3e?.some(({value:wc})=>wc?.toString()===ye?.toString());if(!c3e||!u3e){let{nearestFontStyle:wc,nearestFontWeight:$8}=COe(G8,ke,ye);wc||$8?_c={..._c,typography:{..._c?.typography,fontStyle:st(wc)?wc:void 0,fontWeight:st($8)?$8:void 0}}:(ke||ye)&&(_c={..._c,typography:{..._c?.typography,fontStyle:void 0,fontWeight:void 0}})}o(_c)},O=()=>st(t?.typography?.fontFamily),A=()=>I(void 0),P=EOe(n),L=!n?.typography?.customFontSize,H=Yst(n),N=t?.typography?.fontSize,M=r?.typography?.fontSize,V=N??M,j=m(V),D=m(M),z=!st(N)&&st(M),W=Ue=>{if(!Ue||typeof Ue!="string")return;if(Ue.startsWith("var:preset|font-size|"))return Ue.replace("var:preset|font-size|","");let En=Ue.match(/^var\(--wp--preset--font-size--([^)]+)\)$/);if(En)return En[1]},ee=W(V),J=W(M),U=(Ue,En)=>{let Nu=En?.slug?`var:preset|font-size|${En?.slug}`:Ue;o(Ge(t,["typography","fontSize"],st(Nu)?Nu:void 0))},Q=(Ue,En)=>{if(z&&Ue===void 0&&!En){J?U(void 0,{slug:J}):U(D);return}U(Ue,En)},Z=()=>st(t?.typography?.fontSize),K=()=>U(void 0),X=BOe(n),oe=$st(n),ie=n?.typography?.fontStyle,se=n?.typography?.fontWeight,be=m(r?.typography?.fontStyle),pe=m(r?.typography?.fontWeight),ke=m(t?.typography?.fontStyle)??be,ye=m(t?.typography?.fontWeight)??pe,Pe=!st(t?.typography?.fontStyle)&&!st(t?.typography?.fontWeight)&&(st(be)||st(pe)),_e=(0,Ov.useCallback)(({fontStyle:Ue,fontWeight:En})=>{(Ue!==ke||En!==ye)&&o({...t,typography:{...t?.typography,fontStyle:st(Ue)?Ue:void 0,fontWeight:st(En)?En:void 0}})},[ke,ye,o,t]),ve=(0,Ov.useCallback)(Ue=>{if(Pe&&Ue.fontStyle===ke&&Ue.fontWeight===ye){o({...t,typography:{...t?.typography,fontStyle:st(ke)?ke:void 0,fontWeight:st(ye)?ye:void 0}});return}_e(Ue)},[Pe,ke,ye,o,t,_e]),Se=()=>st(t?.typography?.fontStyle)||st(t?.typography?.fontWeight),fe=(0,Ov.useCallback)(()=>{_e({})},[_e]),Ce=ROe(n),ne=m(t?.typography?.lineHeight),ae=m(r?.typography?.lineHeight),Ee=!st(t?.typography?.lineHeight)&&st(ae),he=Ue=>{o(Ge(t,["typography","lineHeight"],st(Ue)?Ue:void 0))},Ae=()=>st(t?.typography?.lineHeight),et=()=>he(void 0),Je=IOe(n),_t=m(t?.typography?.letterSpacing),Et=m(r?.typography?.letterSpacing),mt=!st(t?.typography?.letterSpacing)&&st(Et),oo=Ue=>{o(Ge(t,["typography","letterSpacing"],st(Ue)?Ue:void 0))},Tt=()=>st(t?.typography?.letterSpacing),Rt=()=>oo(void 0),Bt=LOe(n),gt=m(t?.typography?.textIndent),He=m(r?.typography?.textIndent),we=!st(t?.typography?.textIndent)&&st(He),ge=(n?.typography?.textIndent??"subsequent")==="all",Re=Ue=>{o(Ge(t,["typography","textIndent"],st(Ue)?Ue:void 0))},Ie=Ue=>{o({...t,settings:{typography:{textIndent:Ue?"all":"subsequent"}}})},at=()=>st(t?.typography?.textIndent),Qe=()=>{o(Ge(t,["typography","textIndent"],void 0))},po=ge?(0,Fr.__)("Indents the first line of all paragraphs."):(0,Fr.__)("Indents the first line of each paragraph after the first one."),ro=NOe(n),vo=m(t?.typography?.textColumns),Kt=m(r?.typography?.textColumns),_o=!st(t?.typography?.textColumns)&&st(Kt),Cn=Ue=>{o(Ge(t,["typography","textColumns"],st(Ue)?Ue:void 0))},it=()=>st(t?.typography?.textColumns),Dt=()=>Cn(void 0),Ir=POe(n),mr=m(r?.typography?.textTransform),Wr=m(t?.typography?.textTransform)??mr,Pr=!st(t?.typography?.textTransform)&&st(mr),dn=Ue=>{o(Ge(t,["typography","textTransform"],st(Ue)?Ue:void 0))},Bi=Ue=>{if(Pr&&Ue===void 0){dn(mr);return}dn(Ue)},Be=()=>st(t?.typography?.textTransform),Ht=()=>dn(void 0),lt=AOe(n),no=m(r?.typography?.textDecoration),Or=m(t?.typography?.textDecoration)??no,rr=!st(t?.typography?.textDecoration)&&st(no),ii=Ue=>{o(Ge(t,["typography","textDecoration"],st(Ue)?Ue:void 0))},cf=Ue=>{if(rr&&Ue===void 0){ii(no);return}ii(Ue)},Qa=()=>st(t?.typography?.textDecoration),vc=()=>ii(void 0),E0=MOe(n),uf=m(r?.typography?.writingMode),ob=m(t?.typography?.writingMode)??uf,t_=!st(t?.typography?.writingMode)&&st(uf),rb=Ue=>{o(Ge(t,["typography","writingMode"],st(Ue)?Ue:void 0))},_B=Ue=>{if(t_&&Ue===void 0){rb(uf);return}rb(Ue)},wB=()=>st(t?.typography?.writingMode),U8=()=>rb(void 0),W8=OOe(n),df=m(r?.typography?.textAlign),tt=m(t?.typography?.textAlign)??df,si=!st(t?.typography?.textAlign)&&st(df),am=Ue=>{o(Ge(t,["typography","textAlign"],st(Ue)?Ue:void 0))},n3e=Ue=>{if(si&&Ue===void 0){am(df);return}am(Ue)},Eee=()=>st(t?.typography?.textAlign),i3e=()=>am(void 0),s3e=(0,Ov.useCallback)(Ue=>h?{...Ue,typography:{},color:{...Ue?.color,text:void 0}}:{...Ue,typography:{}},[h]);return(0,bo.jsxs)(e,{resetAllFilter:s3e,value:t,onChange:o,panelId:i,children:[h&&(0,bo.jsx)(Rh,{label:(0,Fr.__)("Color"),hasValue:y,resetValue:w,isShownByDefault:s.textColor,indicators:[v??b],contrastWarning:u,showInheritanceLabelIndicators:l,isPlaceholder:v===void 0&&b!==void 0,hasInheritedValue:b!==void 0,tabs:[{key:"text",label:(0,Fr.__)("Color"),inheritedValue:b,inheritedSlug:Wo(r?.color?.text,"color"),userSlug:Wo(t?.color?.text,"color"),setValue:_,userValue:v,isPlaceholder:v===void 0&&b!==void 0}],colorGradientControlSettings:{colors:d,disableCustomColors:!p},panelId:i}),k&&(0,bo.jsx)(Yt,{...g(C,O()&&x!==void 0),label:(0,Fr.__)("Font"),hasValue:O,onDeselect:A,isShownByDefault:s.fontFamily,panelId:i,children:(0,bo.jsx)(R3,{fontFamilies:R,value:S,onChange:I})}),P&&(0,bo.jsx)(Yt,{...g(z,Z()&&M!==void 0),label:(0,Fr.__)("Size"),hasValue:Z,hasInlineEndToggle:!0,onDeselect:K,isShownByDefault:s.fontSize,panelId:i,children:(0,bo.jsx)(rc.FontSizePicker,{value:ee||j,valueMode:ee?"slug":"literal",onChange:Q,fontSizes:H,disableCustomFontSizes:L,withReset:!1,withSlider:!0})}),X&&(0,bo.jsx)(Yt,{...g(Pe,Se()&&(be!==void 0||pe!==void 0)),label:oe,hasValue:Se,onDeselect:fe,isShownByDefault:s.fontAppearance,panelId:i,children:(0,bo.jsx)(T3,{value:{fontStyle:ke,fontWeight:ye},onChange:ve,hasFontStyles:ie,hasFontWeights:se,fontFamilyFaces:E})}),Ce&&(0,bo.jsx)(Yt,{...g(Ee,Ae()&&ae!==void 0,"single-column"),label:(0,Fr.__)("Line height"),hasValue:Ae,onDeselect:et,isShownByDefault:s.lineHeight,panelId:i,children:(0,bo.jsx)(mF,{__unstableInputWidth:"auto",value:ne??ae,onChange:he,...Ee?{placeholder:JX(ae)}:{}})}),Je&&(0,bo.jsx)(Yt,{...g(mt,Tt()&&Et!==void 0,"single-column"),label:(0,Fr.__)("Letter spacing"),hasValue:Tt,onDeselect:Rt,isShownByDefault:s.letterSpacing,panelId:i,children:(0,bo.jsx)(I3,{value:_t??Et,onChange:oo,__unstableInputWidth:"auto",placeholder:mt?JX(Et):void 0})}),Bt&&(0,bo.jsxs)(Yt,{...g(we,at()&&He!==void 0),label:(0,Fr.__)("Line indent"),hasValue:at,onDeselect:Qe,isShownByDefault:s.textIndent,panelId:i,children:[(0,bo.jsx)(pOe,{value:gt??He,onChange:Re,__unstableInputWidth:"auto",withSlider:!0,hasBottomMargin:a,placeholder:we?JX(He):void 0}),a&&(0,bo.jsx)(rc.ToggleControl,{label:(0,Fr.__)("Indent all paragraphs"),checked:ge,onChange:Ie,help:po})]}),ro&&(0,bo.jsx)(Yt,{...g(_o,it()&&Kt!==void 0,"single-column"),label:(0,Fr.__)("Columns"),hasValue:it,onDeselect:Dt,isShownByDefault:s.textColumns,panelId:i,children:(0,bo.jsx)(rc.__experimentalNumberControl,{label:(0,Fr.__)("Columns"),max:Wst,min:Ust,onChange:Cn,placeholder:_o?Kt:void 0,spinControls:"custom",value:vo,initialPosition:1})}),lt&&(0,bo.jsx)(Yt,{...g(rr,Qa()&&no!==void 0,"single-column"),label:(0,Fr.__)("Decoration"),hasValue:Qa,onDeselect:vc,isShownByDefault:s.textDecoration,panelId:i,children:(0,bo.jsx)(O3,{value:Or,onChange:cf,__unstableInputWidth:"auto"})}),E0&&(0,bo.jsx)(Yt,{...g(t_,wB()&&uf!==void 0,"single-column"),label:(0,Fr.__)("Orientation"),hasValue:wB,onDeselect:U8,isShownByDefault:s.writingMode,panelId:i,children:(0,bo.jsx)(L3,{value:ob,onChange:_B})}),Ir&&(0,bo.jsx)(Yt,{...g(Pr,Be()&&mr!==void 0),label:(0,Fr.__)("Letter case"),hasValue:Be,onDeselect:Ht,isShownByDefault:s.textTransform,panelId:i,children:(0,bo.jsx)(M3,{value:Wr,onChange:Bi,showNone:!0,isBlock:!0})}),W8&&(0,bo.jsxs)(Yt,{...g(si,Eee()&&df!==void 0),label:(0,Fr.__)("Text alignment"),hasValue:Eee,onDeselect:i3e,isShownByDefault:s.textAlign,panelId:i,children:[(0,bo.jsx)(qF,{value:tt,onChange:n3e,options:["left","center","right","justify"]}),tt==="justify"&&(0,bo.jsx)("div",{children:(0,bo.jsx)(rc.Notice,{status:"warning",isDismissible:!1,children:(0,Fr.__)("Justified text can reduce readability. For better accessibility, use left-aligned text instead.")})})]})]})}var Jo=c(q(),1),Ei=c(Y(),1);var s6=c(F(),1);var yo=c(Y(),1),Cr=c(q(),1),VOe=c(F(),1),o6=c(te(),1);var DOe=c(te(),1);function Av(e,t){let{getBlockOrder:o,getBlockAttributes:r}=(0,DOe.useSelect)(B);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 ar=c(T(),1),Ci={fit:"fit",grow:"fill",max:"fixed",fixed:"fixedNoShrink"},Zst=[Ci.max,Ci.fixed];function tQ(e){return Zst.includes(e)}function Xst(e){let{orientation:t="horizontal"}=e??{};return t==="horizontal"?(0,Cr._x)("Max","Block with maximum width in flex layout"):(0,Cr._x)("Max","Block with maximum height in flex layout")}function Qst(e,t){let{orientation:o="horizontal"}=t??{};return e===Ci.grow?(0,Cr.__)("Stretch to fill available space."):e===Ci.max&&o==="horizontal"?(0,Cr.__)("Specify a maximum width."):e===Ci.max?(0,Cr.__)("Specify a maximum height."):e===Ci.fixed&&o==="horizontal"?(0,Cr.__)("Specify a fixed width."):e===Ci.fixed?(0,Cr.__)("Specify a fixed height."):(0,Cr.__)("Fit contents.")}function FOe({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,ar.jsx)(Jst,{childLayout:e,onChange:t,parentLayout:o,isShownByDefault:r,panelId:n}):l==="grid"?(0,ar.jsx)(tat,{childLayout:e,onChange:t,parentLayout:o,isShownByDefault:r,panelId:n,showGridSpanDefaults:i}):null}function Jst({childLayout:e,onChange:t,parentLayout:o,isShownByDefault:r,panelId:n}){let{selfStretch:i,flexSize:s}=e,{orientation:a="horizontal"}=o??{},l=i||Ci.fit,u=tQ(l),d=()=>!!i,f=a==="horizontal"?(0,Cr.__)("Width"):(0,Cr.__)("Height"),[p]=je("spacing.units"),m=(0,yo.__experimentalUseCustomUnits)({availableUnits:p||["%","px","em","rem","vh","vw"]}),g=()=>{t({selfStretch:void 0,flexSize:void 0})};return(0,VOe.useEffect)(()=>{tQ(i)&&!s&&t({...e,selfStretch:Ci.fit})},[]),(0,ar.jsxs)(yo.__experimentalVStack,{as:yo.__experimentalToolsPanelItem,spacing:2,hasValue:d,label:f,onDeselect:g,isShownByDefault:r,panelId:n,children:[(0,ar.jsxs)(yo.__experimentalToggleGroupControl,{label:eat(o),value:l,help:Qst(l,o),onChange:h=>{let b=tQ(h)?s:null;t({selfStretch:h,flexSize:b})},isBlock:!0,children:[(0,ar.jsx)(yo.__experimentalToggleGroupControlOption,{value:Ci.fit,label:(0,Cr._x)("Fit","Intrinsic block width in flex layout")},Ci.fit),(0,ar.jsx)(yo.__experimentalToggleGroupControlOption,{value:Ci.grow,label:(0,Cr._x)("Grow","Block with expanding width in flex layout")},Ci.grow),(0,ar.jsx)(yo.__experimentalToggleGroupControlOption,{value:Ci.max,label:Xst(o)},Ci.max),(0,ar.jsx)(yo.__experimentalToggleGroupControlOption,{value:Ci.fixed,label:(0,Cr._x)("Fixed","Block with fixed width in flex layout")},Ci.fixed)]}),u&&(0,ar.jsx)(yo.__experimentalUnitControl,{units:m,onChange:h=>{t({selfStretch:l,flexSize:h})},value:s,min:0,label:f,hideLabelFromVision:!0})]})}function eat(e){let{orientation:t="horizontal"}=e??{};return t==="horizontal"?(0,Cr.__)("Width"):(0,Cr.__)("Height")}function tat({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??{},p=(0,o6.useSelect)(C=>C(B).getBlockRootClientId(n)),{moveBlocksToPosition:m,__unstableMarkNextChangeAsNotPersistent:g}=(0,o6.useDispatch)(B),h=Av(p,d||3),b=()=>!!s||!!a,v=()=>!!l||!!u,y=()=>{t({columnStart:void 0,rowStart:void 0})},_=()=>{t({columnSpan:void 0,rowSpan:void 0})},w=d?d-(s??1)+1:void 0,k=window.__experimentalEnableGridInteractivity&&f?f-(a??1)+1:void 0,x=l??(i?1:void 0),S=u??(i?1:void 0);return(0,ar.jsxs)(ar.Fragment,{children:[(0,ar.jsxs)(yo.Flex,{as:yo.__experimentalToolsPanelItem,hasValue:v,label:(0,Cr.__)("Grid span"),onDeselect:_,isShownByDefault:r,panelId:n,children:[(0,ar.jsx)(yo.FlexItem,{style:{width:"50%"},children:(0,ar.jsx)(yo.__experimentalInputControl,{label:(0,Cr.__)("Column span"),type:"number",onChange:C=>{let R=C===""?1:parseInt(C,10),E=w?Math.min(R,w):R;t({columnStart:s,rowStart:a,rowSpan:u,columnSpan:E})},value:x,min:1,max:w})}),(0,ar.jsx)(yo.FlexItem,{style:{width:"50%"},children:(0,ar.jsx)(yo.__experimentalInputControl,{label:(0,Cr.__)("Row span"),type:"number",onChange:C=>{let R=C===""?1:parseInt(C,10),E=k?Math.min(R,k):R;t({columnStart:s,rowStart:a,columnSpan:l,rowSpan:E})},value:S,min:1,max:k})})]}),window.__experimentalEnableGridInteractivity&&(0,ar.jsxs)(yo.Flex,{as:yo.__experimentalToolsPanelItem,hasValue:b,label:(0,Cr.__)("Grid placement"),onDeselect:y,isShownByDefault:!1,panelId:n,children:[(0,ar.jsx)(yo.FlexItem,{style:{width:"50%"},children:(0,ar.jsx)(yo.__experimentalInputControl,{label:(0,Cr.__)("Column"),type:"number",onChange:C=>{let R=C===""?1:parseInt(C,10);t({columnStart:R,rowStart:a,columnSpan:l,rowSpan:u}),g(),m([n],p,p,h(R,a))},value:s??1,min:1,max:d?d-(l??1)+1:void 0})}),(0,ar.jsx)(yo.FlexItem,{style:{width:"50%"},children:(0,ar.jsx)(yo.__experimentalInputControl,{label:(0,Cr.__)("Row"),type:"number",onChange:C=>{let R=C===""?1:parseInt(C,10);t({columnStart:s,rowStart:R,columnSpan:l,rowSpan:u}),g(),m([n],p,p,h(s,R))},value:a??1,min:1,max:f?f-(u??1)+1:void 0})})]})]})}var HOe=c(Y(),1),IS=c(q(),1);function zOe(e){if(typeof e!="string")return null;let t=e.split("/");if(t.length>2)return null;let[o,r="1"]=t,n=Number(o.trim()),i=Number(r.trim());return!Number.isFinite(n)||!Number.isFinite(i)||n<=0||i<=0?null:n/i}function jOe(e,t){let o=t.find(n=>n.value===e);if(o)return o;let r=zOe(e);return r===null?null:t.find(n=>zOe(n.value)===r)??null}var oQ=c(T(),1);function r6({panelId:e,value:t,onChange:o=()=>{},options:r,defaultValue:n="auto",hasValue:i,isShownByDefault:s=!0,className:a,isInherited:l,hasLocalOverride:u}){let[d,f,p]=je("dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios"),m=f?.map(({name:y,ratio:_})=>({label:y,value:_})),g=d?.map(({name:y,ratio:_})=>({label:y,value:_})),h=[{label:(0,IS._x)("Original","Aspect ratio option for dimensions control"),value:"auto"},...p?g:[],...m||[],{label:(0,IS._x)("Custom","Aspect ratio option for dimensions control"),value:"custom",disabled:!0,hidden:!0}],b=r??h,v=t==null||t==="auto"?"auto":jOe(t,b)?.value??"custom";return(0,oQ.jsx)(Yt,{className:a,isInherited:l,hasLocalOverride:u,hasValue:i||(()=>v!==n),label:(0,IS.__)("Aspect ratio"),onDeselect:()=>o(void 0),isShownByDefault:s,panelId:e,children:(0,oQ.jsx)(HOe.SelectControl,{label:(0,IS.__)("Aspect ratio"),value:v,options:b,onChange:o})})}var Qt=c(T(),1),rQ=["horizontal","vertical"];function UOe(e,t){return e?.length===1?!1:t?!(e?.includes("horizontal")&&e?.includes("vertical")&&e?.length===2):!0}function a6(e,t=ta){return YOe(e)||KOe(e)||qOe(e)||ZOe(e)||XOe(e)||QOe(e)||JOe(e)||eAe(e)||tAe(e)||oAe(e,t)||rAe(e,t)}function YOe(e){return e?.layout?.contentSize}function KOe(e){return e?.layout?.wideSize}function qOe(e){return e?.spacing?.padding}function ZOe(e){return e?.spacing?.margin}function XOe(e){return e?.spacing?.blockGap}function QOe(e){return e?.dimensions?.height}function JOe(e){return e?.dimensions?.minHeight}function eAe(e){return e?.dimensions?.minWidth}function tAe(e){return e?.dimensions?.width}function oAe(e,t=ta){return!Ma(t)&&e?.dimensions?.aspectRatio}function rAe(e,t=ta){if(Ma(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 oat(e){let{defaultSpacingSizes:t,spacingSizes:o}=e?.spacing||{};return t!==!1&&o?.default?.length>0||o?.theme?.length>0||o?.custom?.length>0}function WOe(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}var rat=[void 0,null,""];function yt(e){return!rat.includes(e)}function n6(e){if(!yt(e))return;let[t]=(0,Ei.__experimentalParseQuantityAndUnitFromRawValue)(e);return t}function i6(e){return yt(e)&&typeof e=="string"?{top:e,right:e,bottom:e,left:e}:e}function GOe(e){if(!yt(e))return;if(typeof e=="string")return e!==""?e:void 0;if(typeof e!="object")return;let o=["top","right","bottom","left"].map(i=>e[i]);if(!o.every(yt))return;let n=o[0];return o.every(i=>i===n)?n:void 0}function $Oe(e){return yt(e)?typeof e=="string"?e!=="":typeof e!="object"?!1:["top","right","bottom","left"].some(t=>yt(e[t])):!1}function nat(e,t){return yt(e)?typeof e=="string"?t?{top:e,right:e,bottom:e,left:e}:{top:e}:{...e,right:e?.left,bottom:e?.top}:e}function iat({resetAllFilter:e,onChange:t,value:o,panelId:r,children:n}){let i=Dr(),s=()=>{let a=e(o);t(a)};return(0,Qt.jsx)(Ei.__experimentalToolsPanel,{label:(0,Jo.__)("Dimensions"),resetAll:s,panelId:r,dropdownMenuProps:i,children:n})}var nc={contentSize:!0,wideSize:!0,padding:!0,margin:!0,blockGap:!0,height:!0,minHeight:!0,minWidth:!0,width:!0,aspectRatio:!0,childLayout:!0};function l6({as:e=iat,value:t,onChange:o,inheritedValue:r=t,settings:n,panelId:i,defaultControls:s=nc,onVisualize:a=()=>{},includeLayoutControls:l=!1,allowAxialBlockGap:u=!0,styleState:d=ta,showInheritanceLabelIndicators:f=Dn()}){let{dimensions:p,spacing:m}=n,g=tt=>tt&&typeof tt=="object"?Object.keys(tt).reduce((si,am)=>(si[am]=rl({settings:{dimensions:p,spacing:m}},"",tt[am]),si),{}):rl({settings:{dimensions:p,spacing:m}},"",tt),h=(tt,si,am)=>oc(f&&tt,f&&si,am),b=oat(n),v=(0,Ei.__experimentalUseCustomUnits)({availableUnits:n?.spacing?.units||["%","px","em","rem","vw"]}),y=-1/0,[_,w]=(0,s6.useState)(y),k=(0,s6.useCallback)(tt=>({...tt,layout:Xe({...tt?.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:{...tt?.spacing,padding:void 0,margin:void 0,blockGap:void 0},dimensions:{...tt?.dimensions,height:void 0,minHeight:void 0,minWidth:void 0,aspectRatio:void 0,width:void 0}}),[]),x=YOe(n)&&l,S=g(t?.layout?.contentSize),C=g(r?.layout?.contentSize),R=!yt(t?.layout?.contentSize)&&yt(C),E=tt=>{o(Ge(t,["layout","contentSize"],yt(tt)?tt:void 0))},I=()=>yt(t?.layout?.contentSize),O=()=>E(void 0),A=KOe(n)&&l,P=g(t?.layout?.wideSize),L=g(r?.layout?.wideSize),H=!yt(t?.layout?.wideSize)&&yt(L),N=tt=>{o(Ge(t,["layout","wideSize"],yt(tt)?tt:void 0))},M=()=>yt(t?.layout?.wideSize),V=()=>N(void 0),j=qOe(n),D=i6(g(r?.spacing?.padding)),z=i6(g(t?.spacing?.padding)),W=yt(t?.spacing?.padding)?z:D,ee=GOe(D),J=!yt(t?.spacing?.padding)&&ee!==void 0,U=$Oe(D),Q=!yt(t?.spacing?.padding)&&U,Z=Array.isArray(n?.spacing?.padding)?n?.spacing?.padding:n?.spacing?.padding?.sides,K=Z&&Z.some(tt=>rQ.includes(tt)),X=tt=>{let si=WOe(tt,Z);o(Ge(t,["spacing","padding"],si))},oe=()=>yt(t?.spacing?.padding)&&Object.keys(t?.spacing?.padding).length,ie=()=>X(void 0),se=()=>a("padding"),be=ZOe(n),pe=i6(g(r?.spacing?.margin)),ke=i6(g(t?.spacing?.margin)),ye=yt(t?.spacing?.margin)?ke:pe,Pe=GOe(pe),_e=!yt(t?.spacing?.margin)&&Pe!==void 0,ve=$Oe(pe),Se=!yt(t?.spacing?.margin)&&ve,fe=Array.isArray(n?.spacing?.margin)?n?.spacing?.margin:n?.spacing?.margin?.sides,Ce=fe&&fe.some(tt=>rQ.includes(tt)),ne=tt=>{let si=WOe(tt,fe);o(Ge(t,["spacing","margin"],si))},ae=()=>yt(t?.spacing?.margin)&&Object.keys(t?.spacing?.margin).length,Ee=()=>ne(void 0),he=()=>a("margin"),Ae=XOe(n),et=Array.isArray(n?.spacing?.blockGap)?n?.spacing?.blockGap:n?.spacing?.blockGap?.sides,Je=u&&et&&et.some(tt=>rQ.includes(tt)),_t=g(t?.spacing?.blockGap),Et=g(r?.spacing?.blockGap),mt=!Je&&typeof _t=="object"?_t?.top:_t,oo=!Je&&typeof Et=="object"?Et?.top:Et,Tt=yt(t?.spacing?.blockGap)?_t:Et,Rt=nat(Tt,Je),Bt=!yt(t?.spacing?.blockGap)&&typeof oo=="string"&&oo!=="",gt=tt=>{o(Ge(t,["spacing","blockGap"],tt))},He=tt=>{yt(tt)||gt(null),!Je&&tt?.hasOwnProperty("top")?gt(tt.top):gt({top:tt?.top,left:tt?.left})},we=()=>gt(void 0),Me=()=>yt(t?.spacing?.blockGap),ge=JOe(n),Re=g(t?.dimensions?.minHeight),Ie=g(r?.dimensions?.minHeight),at=!yt(t?.dimensions?.minHeight)&&yt(Ie),Qe=tt=>{let si=Ge(t,["dimensions","minHeight"],tt);o(Ge(si,["dimensions","aspectRatio"],void 0))},po=()=>{Qe(void 0)},ro=()=>yt(t?.dimensions?.minHeight),vo=QOe(n),Kt=g(t?.dimensions?.height),_o=g(r?.dimensions?.height),Cn=!yt(t?.dimensions?.height)&&yt(_o),it=tt=>{let si=Ge(t,["dimensions","height"],tt);o(Ge(si,["dimensions","aspectRatio"],void 0))},Dt=()=>{it(void 0)},Ir=()=>yt(t?.dimensions?.height),mr=eAe(n),Wr=g(t?.dimensions?.minWidth),Pr=g(r?.dimensions?.minWidth),dn=!yt(t?.dimensions?.minWidth)&&yt(Pr),Bi=tt=>{o(Ge(t,["dimensions","minWidth"],tt))},Be=()=>{Bi(void 0)},Ht=()=>yt(t?.dimensions?.minWidth),lt=tAe(n),no=g(t?.dimensions?.width),Or=g(r?.dimensions?.width),rr=!yt(t?.dimensions?.width)&&yt(Or),ii=tt=>{o(Ge(t,["dimensions","width"],tt))},cf=()=>{ii(void 0)},Qa=()=>yt(t?.dimensions?.width),vc=oAe(n,d),E0=g(t?.dimensions?.aspectRatio),uf=g(r?.dimensions?.aspectRatio),ob=E0??uf,t_=!yt(t?.dimensions?.aspectRatio)&&yt(uf),rb=tt=>{let si=Ge(t,["dimensions","aspectRatio"],tt);o(Ge(si,["dimensions","minHeight"],void 0))},_B=()=>yt(t?.dimensions?.aspectRatio),wB=rAe(n,d),U8=t?.layout,W8=tt=>{o({...t,layout:{...t?.layout,...tt}})},df=()=>a(!1);return(0,Qt.jsxs)(e,{resetAllFilter:k,value:t,onChange:o,panelId:i,children:[(x||A)&&(0,Qt.jsx)("span",{className:"span-columns",children:(0,Jo.__)("Set the width of the main content area.")}),x&&(0,Qt.jsx)(Yt,{...h(R,I()&&C!==void 0),label:(0,Jo.__)("Content width"),hasValue:I,onDeselect:O,isShownByDefault:s.contentSize??nc.contentSize,panelId:i,children:(0,Qt.jsx)(Ei.__experimentalUnitControl,{label:(0,Jo.__)("Content width"),labelPosition:"top",value:S??C,placeholder:R?n6(C):void 0,onChange:tt=>{E(tt)},units:v,prefix:(0,Qt.jsx)(Ei.__experimentalInputControlPrefixWrapper,{variant:"icon",children:(0,Qt.jsx)(xt,{icon:ub})})})}),A&&(0,Qt.jsx)(Yt,{...h(H,M()&&L!==void 0),label:(0,Jo.__)("Wide width"),hasValue:M,onDeselect:V,isShownByDefault:s.wideSize??nc.wideSize,panelId:i,children:(0,Qt.jsx)(Ei.__experimentalUnitControl,{label:(0,Jo.__)("Wide width"),labelPosition:"top",value:P??L,placeholder:H?n6(L):void 0,onChange:tt=>{N(tt)},units:v,prefix:(0,Qt.jsx)(Ei.__experimentalInputControlPrefixWrapper,{variant:"icon",children:(0,Qt.jsx)(xt,{icon:kb})})})}),j&&(0,Qt.jsxs)(Yt,{hasValue:oe,label:(0,Jo.__)("Padding"),hasInlineEndToggle:UOe(Z,b),onDeselect:ie,isShownByDefault:s.padding??nc.padding,...h(Q,oe()&&U,{"tools-panel-item-spacing":b}),panelId:i,children:[!b&&(0,Qt.jsx)(Ei.BoxControl,{values:z,onChange:X,label:(0,Jo.__)("Padding"),sides:Z,units:v,allowReset:!1,splitOnAxis:K,inputProps:{onMouseOver:se,onMouseOut:df,placeholder:J?ee:void 0}}),b&&(0,Qt.jsx)(xS,{values:W,onChange:X,label:(0,Jo.__)("Padding"),sides:Z,units:v,allowReset:!1,onMouseOver:se,onMouseOut:df})]}),be&&(0,Qt.jsxs)(Yt,{hasValue:ae,label:(0,Jo.__)("Margin"),hasInlineEndToggle:UOe(fe,b),onDeselect:Ee,isShownByDefault:s.margin??nc.margin,...h(Se,ae()&&ve,{"tools-panel-item-spacing":b}),panelId:i,children:[!b&&(0,Qt.jsx)(Ei.BoxControl,{values:ke,onChange:ne,inputProps:{min:_,onDragStart:()=>{w(0)},onDragEnd:()=>{w(y)},onMouseOver:he,onMouseOut:df,placeholder:_e?Pe:void 0},label:(0,Jo.__)("Margin"),sides:fe,units:v,allowReset:!1,splitOnAxis:Ce}),b&&(0,Qt.jsx)(xS,{values:ye,onChange:ne,minimumCustomValue:-1/0,label:(0,Jo.__)("Margin"),sides:fe,units:v,allowReset:!1,onMouseOver:he,onMouseOut:df})]}),Ae&&(0,Qt.jsxs)(Yt,{hasValue:Me,label:(0,Jo.__)("Block spacing"),hasInlineEndToggle:Je,onDeselect:we,isShownByDefault:s.blockGap??nc.blockGap,...h(Bt,Me()&&Et!==void 0,{"tools-panel-item-spacing":b,"single-column":!b&&!Je}),panelId:i,children:[!b&&(Je?(0,Qt.jsx)(Ei.BoxControl,{label:(0,Jo.__)("Block spacing"),min:0,onChange:He,units:v,sides:et,values:Rt,allowReset:!1,splitOnAxis:Je}):(0,Qt.jsx)(Ei.__experimentalUnitControl,{label:(0,Jo.__)("Block spacing"),min:0,onChange:gt,units:v,value:mt??void 0,placeholder:Bt?oo:void 0})),b&&(0,Qt.jsx)(xS,{label:(0,Jo.__)("Block spacing"),min:0,onChange:He,showSideInLabel:!1,sides:Je?et:["top"],values:Rt,allowReset:!1},Je?"axial-gap":"single-gap")]}),wB&&(0,Qt.jsx)(FOe,{value:U8,onChange:W8,parentLayout:n?.parentLayout,panelId:i,showGridSpanDefaults:!vi(d),isShownByDefault:s.childLayout??nc.childLayout}),ge&&(0,Qt.jsx)(Yt,{...h(at,ro()&&Ie!==void 0),hasValue:ro,label:(0,Jo.__)("Minimum height"),onDeselect:po,isShownByDefault:s.minHeight??nc.minHeight,panelId:i,children:(0,Qt.jsx)(pv,{label:(0,Jo.__)("Minimum height"),value:Re??Ie,onChange:Qe,placeholder:at?n6(Ie):void 0,dimensionSizes:p?.dimensionSizes})}),mr&&(0,Qt.jsx)(Yt,{...h(dn,Ht()&&Pr!==void 0),hasValue:Ht,label:(0,Jo.__)("Minimum width"),onDeselect:Be,isShownByDefault:s.minWidth??nc.minWidth,panelId:i,children:(0,Qt.jsx)(pv,{label:(0,Jo.__)("Minimum width"),value:Wr??Pr,onChange:Bi,placeholder:dn?n6(Pr):void 0,dimensionSizes:p?.dimensionSizes})}),vo&&(0,Qt.jsx)(Yt,{...h(Cn,Ir()&&_o!==void 0),hasValue:Ir,label:(0,Jo.__)("Height"),onDeselect:Dt,isShownByDefault:s.height??nc.height,panelId:i,children:(0,Qt.jsx)(pv,{label:(0,Jo.__)("Height"),value:Kt,onChange:it,placeholder:Cn?_o:void 0,dimensionSizes:p?.dimensionSizes})}),lt&&(0,Qt.jsx)(Yt,{...h(rr,Qa()&&Or!==void 0),hasValue:Qa,label:(0,Jo.__)("Width"),onDeselect:cf,isShownByDefault:s.width??nc.width,panelId:i,children:(0,Qt.jsx)(pv,{label:(0,Jo.__)("Width"),value:no,onChange:ii,placeholder:rr?Or:void 0,dimensionSizes:p?.dimensionSizes})}),vc&&(0,Qt.jsx)(r6,{hasValue:_B,value:ob,onChange:rb,panelId:i,...h(t_,_B()&&uf!==void 0),isShownByDefault:s.aspectRatio??nc.aspectRatio})]})}var $i=c(Y(),1),Hd=c(F(),1),PS=c(q(),1);var Mv=c(q(),1),Vn=c(Y(),1),bR=c(F(),1);var To=c(T(),1),c6=[];function sat({shadow:e,onShadowChange:t,settings:o}){let r=u6(o),n=(0,bR.useMemo)(()=>r.length?[{name:(0,Mv.__)("Unset"),slug:"unset",shadow:"none"},...r]:r,[r]);return(0,To.jsx)("div",{className:"block-editor-global-styles__shadow-popover-container",children:(0,To.jsxs)(Vn.__experimentalVStack,{spacing:4,children:[(0,To.jsx)(Vn.__experimentalHeading,{level:5,children:(0,Mv.__)("Drop shadow")}),(0,To.jsx)(aat,{presets:n,activeShadow:e,onSelect:t}),(0,To.jsx)("div",{className:"block-editor-global-styles__clear-shadow",children:(0,To.jsx)(Vn.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>t(void 0),disabled:!e,accessibleWhenDisabled:!0,children:(0,Mv.__)("Clear")})})]})})}function aat({presets:e,activeShadow:t,onSelect:o}){return e?(0,To.jsx)(Vn.Composite,{role:"listbox",className:"block-editor-global-styles__shadow__list","aria-label":(0,Mv.__)("Drop shadows"),children:e.map(({name:r,slug:n,shadow:i})=>(0,To.jsx)(lat,{label:r,isActive:i===t,type:n==="unset"?"unset":"preset",onSelect:()=>o(i===t?void 0:i),shadow:i},n))}):null}function lat({type:e,label:t,isActive:o,onSelect:r,shadow:n}){return(0,To.jsxs)(lo.Root,{children:[(0,To.jsx)(lo.Trigger,{render:(0,To.jsx)(Vn.Composite.Item,{role:"option","aria-label":t,"aria-selected":o,className:$("block-editor-global-styles__shadow__item",{"is-active":o}),render:(0,To.jsx)("button",{className:$("block-editor-global-styles__shadow-indicator",{unset:e==="unset"}),onClick:r,style:{boxShadow:n},"aria-label":t,children:o&&(0,To.jsx)(xt,{icon:Os})})})}),(0,To.jsx)(lo.Popup,{children:t})]})}function nAe({shadow:e,onShadowChange:t,settings:o,className:r,hasLocalValue:n=!!e,hasLocalOverride:i=!1,onReset:s}){return(0,To.jsx)(Vn.Dropdown,{popoverProps:{placement:"left-start",offset:36,shift:!0},className:$("block-editor-global-styles__shadow-dropdown",r),renderToggle:cat(e,t,{hasLocalValue:n,hasLocalOverride:i,onReset:s??(()=>t(void 0))}),renderContent:()=>(0,To.jsx)(Vn.__experimentalDropdownContentWrapper,{paddingSize:"medium",children:(0,To.jsx)(sat,{shadow:e,onShadowChange:t,settings:o})})})}function cat(e,t,o){let{hasLocalValue:r,hasLocalOverride:n,onReset:i}=o;return function({onToggle:a,isOpen:l}){let u=(0,bR.useRef)(void 0),d={onClick:a,className:$("block-editor-global-styles__shadow-dropdown-toggle",{"is-open":l}),"aria-expanded":l,ref:u},f=()=>{l&&a(),i(),u.current?.focus()};return(0,To.jsxs)(To.Fragment,{children:[(0,To.jsx)(Vn.Button,{__next40pxDefaultSize:!0,...d,children:(0,To.jsxs)(Vn.__experimentalHStack,{justify:"flex-start",children:[(0,To.jsx)(xt,{className:"block-editor-global-styles__toggle-icon",icon:M9,size:24}),(0,To.jsx)(Vn.FlexItem,{children:(0,Mv.__)("Drop shadow")})]})}),r&&(n?(0,To.jsx)(Fp,{className:"block-editor-global-styles__shadow-editor__remove-button",onResetToInherited:f}):(0,To.jsx)(Vn.Button,{__next40pxDefaultSize:!0,size:"small",icon:Bn,label:(0,Mv.__)("Remove"),className:"block-editor-global-styles__shadow-editor__remove-button",onClick:f}))]})}}function u6(e){return(0,bR.useMemo)(()=>{if(!e?.shadow)return c6;let t=e?.shadow?.defaultPresets,{default:o,theme:r,custom:n}=e?.shadow?.presets??{},i=[...t&&o||c6,...r||c6,...n||c6];return i.filter((s,a)=>i.findLastIndex(({slug:l})=>l===s.slug)===a)},[e])}var ic=c(T(),1);function d6(e){return Object.values(yR(e)).some(Boolean)}function yR(e){return{hasBorderColor:iAe(e),hasBorderRadius:sAe(e),hasBorderStyle:aAe(e),hasBorderWidth:lAe(e),hasShadow:cAe(e)}}function iAe(e){return e?.border?.color}function sAe(e){return e?.border?.radius}function aAe(e){return e?.border?.style}function lAe(e){return e?.border?.width}function cAe(e){let t=u6(e);return!!e?.shadow&&t.length>0}function uat({resetAllFilter:e,onChange:t,value:o,panelId:r,children:n,label:i}){let s=Dr();return(0,ic.jsx)($i.__experimentalToolsPanel,{label:i,resetAll:()=>{let l=e(o);t(l)},panelId:r,dropdownMenuProps:s,children:n})}var dat={radius:!0,color:!0,width:!0,shadow:!0};function f6({as:e=uat,value:t,onChange:o,inheritedValue:r=t,settings:n,panelId:i,defaultControls:s=dat,showInheritanceLabelIndicators:a=Dn()}){let l=jd(n),u=n?.color?.custom,d=(0,Hd.useCallback)(X=>rl({settings:n},"",X),[n]),f=(X,oe,ie)=>oc(a&&X,a&&oe,ie),p=X=>{let ie=l.flatMap(({colors:se})=>se).find(({color:se})=>se===X);return ie?"var:preset|color|"+ie.slug:X},m=(0,Hd.useCallback)(X=>{if(X){if((0,$i.__experimentalHasSplitBorders)(X)){let oe={...X};return["top","right","bottom","left"].forEach(ie=>{oe[ie]={...oe[ie],color:d(oe[ie]?.color)}}),oe}return{...X,color:X.color?d(X.color):void 0}}},[d]),g=(0,Hd.useMemo)(()=>m(t?.border),[t?.border,m]),h=(0,Hd.useMemo)(()=>m(r?.border),[r?.border,m]),b=!(0,$i.__experimentalIsDefinedBorder)(t?.border)&&!!h&&(0,$i.__experimentalIsDefinedBorder)(h),v=b?h:g,y=X=>o({...t,border:X}),_=iAe(n),w=aAe(n),k=lAe(n),x=sAe(n),S=(0,Hd.useMemo)(()=>typeof t?.border?.radius!="object"?d(t?.border?.radius):{topLeft:d(t?.border?.radius?.topLeft),topRight:d(t?.border?.radius?.topRight),bottomLeft:d(t?.border?.radius?.bottomLeft),bottomRight:d(t?.border?.radius?.bottomRight)},[t?.border?.radius,d]),C=(0,Hd.useMemo)(()=>{let X=r?.border?.radius;return typeof X!="object"?d(X):{topLeft:d(X?.topLeft),topRight:d(X?.topRight),bottomLeft:d(X?.bottomLeft),bottomRight:d(X?.bottomRight)}},[r?.border?.radius,d]),R=X=>y({...t?.border,radius:X}),E=()=>{let X=t?.border?.radius;return typeof X=="object"?Object.entries(X).some(([,oe])=>!!oe):!!X},I=!E()&&C!==void 0&&C!=="",O=(0,Hd.useMemo)(()=>{if(!I)return S;if(typeof C=="string")return C;let X=C;return X?{all:X.topLeft&&X.topLeft===X.topRight&&X.topLeft===X.bottomLeft&&X.topLeft===X.bottomRight?X.topLeft:void 0,...X}:S},[I,S,C]),A=cAe(n),P=d(t?.shadow),L=d(r?.shadow),H=P===void 0&&L!==void 0&&L!=="",N=H?L:P,M=u6(n),V=X=>{let oe=M.findLast(({shadow:ie})=>ie===X)?.slug;o(Ge(t,["shadow"],oe?`var:preset|shadow|${oe}`:X||void 0))},j=X=>{if(H&&X===void 0){V(L);return}V(X)},D=()=>!!t?.shadow,z=()=>V(void 0),W=a&&D()&&L!==void 0,ee=()=>{if(E())return y({radius:t?.border?.radius});y(void 0)},J=X=>{let oe={...X};(0,$i.__experimentalHasSplitBorders)(oe)?["top","right","bottom","left"].forEach(ie=>{oe[ie]&&(oe[ie]={...oe[ie],color:p(oe[ie]?.color)})}):oe&&(oe.color=p(oe.color)),y({...oe,radius:t?.border?.radius})},U=(0,Hd.useCallback)(X=>({...X,border:void 0,shadow:void 0}),[]),Q=s?.color||s?.width,Z=_||w||k||x,K=Nv({hasShadowControl:A,hasBorderControl:Z});return(0,ic.jsxs)(e,{resetAllFilter:U,value:t,onChange:o,panelId:i,label:K,children:[(k||_)&&(0,ic.jsxs)(Yt,{...f(b,(0,$i.__experimentalIsDefinedBorder)(t?.border)&&!!h&&(0,$i.__experimentalIsDefinedBorder)(h)),hasValue:()=>(0,$i.__experimentalIsDefinedBorder)(t?.border),label:(0,PS.__)("Border"),onDeselect:()=>ee(),isShownByDefault:Q,panelId:i,children:[(a||A)&&(0,ic.jsx)($i.BaseControl.VisualLabel,{as:"legend",children:(0,PS.__)("Border")}),(0,ic.jsx)($i.BorderBoxControl,{colors:l,disableCustomColors:!u,enableAlpha:!0,enableStyle:w,onChange:J,popoverOffset:40,popoverPlacement:"left-start",value:v,__experimentalIsRenderedInSidebar:!0})]}),x&&(0,ic.jsx)(Yt,{...f(I,E()&&C!==void 0),hasValue:E,label:(0,PS.__)("Radius"),hasInlineEndToggle:!0,onDeselect:()=>R(void 0),isShownByDefault:s.radius,panelId:i,children:(0,ic.jsx)(k3,{presets:n?.border?.radiusSizes,values:O,onChange:X=>{R(X||void 0)}})}),A&&(0,ic.jsxs)(Yt,{...f(H,D()&&L!==void 0),label:(0,PS.__)("Shadow"),hasValue:D,onDeselect:z,isShownByDefault:s.shadow,showLocalOverrideActionsInLabel:!1,panelId:i,children:[Z?(0,ic.jsx)($i.BaseControl.VisualLabel,{as:"legend",children:(0,PS.__)("Shadow")}):null,(0,ic.jsx)(nAe,{shadow:N,onShadowChange:j,settings:n,hasLocalValue:D(),hasLocalOverride:W,onReset:z})]})]})}var er=c(Y(),1),jp=c(q(),1),OS=c(F(),1);var Er=c(T(),1),p6=[];function uAe(e,{presetSetting:t,defaultSetting:o}){let r=!e?.color?.[o],n=e?.color?.[t]?.custom||p6,i=e?.color?.[t]?.theme||p6,s=e?.color?.[t]?.default||p6;return(0,OS.useMemo)(()=>[...n,...i,...r?p6:s],[r,n,i,s])}function dAe(e){return fAe(e)}function fAe(e){return e.color.customDuotone||e.color.defaultDuotone||e.color.duotone.length>0}function fat({resetAllFilter:e,onChange:t,value:o,panelId:r,children:n}){let i=Dr(),s=()=>{let a=e(o);t(a)};return(0,Er.jsx)(er.__experimentalToolsPanel,{label:(0,jp._x)("Filters","Name for applying graphical effects"),resetAll:s,panelId:r,dropdownMenuProps:i,children:n})}var pat={duotone:!0},mat={placement:"left-start",offset:36,shift:!0,className:"block-editor-duotone-control__popover",headerTitle:(0,jp.__)("Duotone")},gat=({indicator:e,label:t})=>(0,Er.jsxs)(er.__experimentalHStack,{justify:"flex-start",children:[(0,Er.jsx)(er.__experimentalZStack,{isLayered:!1,offset:-8,children:(0,Er.jsx)(er.Flex,{expanded:!1,children:e==="unset"||!e?(0,Er.jsx)(er.ColorIndicator,{className:"block-editor-duotone-control__unset-indicator"}):(0,Er.jsx)(er.DuotoneSwatch,{values:e})})}),(0,Er.jsx)(er.FlexItem,{className:"block-editor-panel-duotone-settings__label",title:t,children:t})]}),hat=(e,t)=>function({onToggle:r,isOpen:n}){let{hasLocalValue:i,hasLocalOverride:s,onReset:a}=t,l=(0,OS.useRef)(void 0),u={onClick:r,className:$("block-editor-global-styles-filters-panel__dropdown-toggle",{"is-open":n}),"aria-expanded":n,ref:l},d=()=>{n&&r(),a(),l.current?.focus()};return(0,Er.jsxs)(Er.Fragment,{children:[(0,Er.jsx)(er.Button,{__next40pxDefaultSize:!0,...u,children:(0,Er.jsx)(gat,{indicator:e,label:(0,jp.__)("Duotone")})}),i&&(s?(0,Er.jsx)(Fp,{className:"block-editor-panel-duotone-settings__reset",onResetToInherited:d}):(0,Er.jsx)(er.Button,{size:"small",icon:Bn,label:(0,jp.__)("Reset"),className:"block-editor-panel-duotone-settings__reset",onClick:d}))]})};function m6({as:e=fat,value:t,onChange:o,inheritedValue:r=t,settings:n,panelId:i,defaultControls:s=pat,showInheritanceLabelIndicators:a=Dn()}){let l=E=>rl({settings:n},"",E),u=(E,I,O)=>oc(a&&E,a&&I,O),d=fAe(n),f=uAe(n,{presetSetting:"duotone",defaultSetting:"defaultDuotone"}),p=uAe(n,{presetSetting:"palette",defaultSetting:"defaultPalette"}),m=l(t?.filter?.duotone),g=l(r?.filter?.duotone),h=m??g,b=dT(t?.filter?.duotone),v=dT(r?.filter?.duotone),y=m!==void 0?b:v,_=m===void 0&&g!==void 0,w=(E,I)=>{let O=I??f.find(({colors:P})=>P===E)?.slug,A=O?`var:preset|duotone|${O}`:E;o(Ge(t,["filter","duotone"],A))},k=(E,I,O)=>{if(E===void 0&&_&&g!==void 0){w(g,v);return}w(E,O)},x=()=>!!t?.filter?.duotone,S=()=>w(void 0),C=a&&x()&&g!==void 0,R=(0,OS.useCallback)(E=>({...E,filter:{...E.filter,duotone:void 0}}),[]);return(0,Er.jsx)(e,{resetAllFilter:R,value:t,onChange:o,panelId:i,children:d&&(0,Er.jsx)(Yt,{...u(_,m!==void 0&&g!==void 0),label:(0,jp.__)("Duotone"),hasValue:x,onDeselect:S,isShownByDefault:s.duotone,showLocalOverrideActionsInLabel:!1,panelId:i,children:(0,Er.jsx)(er.Dropdown,{popoverProps:mat,className:"block-editor-global-styles-filters-panel__dropdown",renderToggle:hat(h,{hasLocalValue:x(),hasLocalOverride:C,onReset:S}),renderContent:()=>(0,Er.jsx)(er.__experimentalDropdownContentWrapper,{paddingSize:"small",children:(0,Er.jsxs)(er.MenuGroup,{label:(0,jp.__)("Duotone"),children:[(0,Er.jsx)("p",{children:(0,jp.__)("Create a two-tone color effect without losing your original image.")}),(0,Er.jsx)(er.DuotonePicker,{colorPalette:p,duotonePalette:f,disableCustomColors:!0,disableCustomDuotone:!0,value:h,selectedSlug:y,onChange:k})]})})})})})}var AS=c(Y(),1),vR=c(q(),1);var Lv=c(T(),1);function pAe(e,t,o){return e==="core/image"&&o?.lightbox?.allowEditing||!!t?.lightbox}function mAe({onChange:e,value:t,inheritedValue:o,panelId:r}){let n=Dr(),i=()=>{e(void 0)},s=l=>{e({enabled:l})},a=!1;return o?.lightbox?.enabled&&(a=o.lightbox.enabled),(0,Lv.jsx)(Lv.Fragment,{children:(0,Lv.jsx)(AS.__experimentalToolsPanel,{label:(0,vR._x)("Settings","Image settings"),resetAll:i,panelId:r,dropdownMenuProps:n,children:(0,Lv.jsx)(AS.__experimentalToolsPanelItem,{hasValue:()=>!!t?.lightbox,label:(0,vR.__)("Enlarge on click"),onDeselect:i,isShownByDefault:!0,panelId:r,children:(0,Lv.jsx)(AS.ToggleControl,{label:(0,vR.__)("Enlarge on click"),checked:a,onChange:s})})})})}var g6=c(Y(),1);var hAe=c(F(),1),h6=c(q(),1);var _R=c(T(),1);function nQ(e){return!(typeof e=="string"&&/<\/?\w/.test(e))}function bAe(e){return nQ(e)?null:(0,h6.__)("The custom CSS is invalid. Do not use <> markup.")}function gAe(e){if(!e)return null;let t=bAe(e);if(t)return t;let[o]=Mk([{css:e}],".for-validation-only");return o===null?(0,h6.__)("There is an error with your CSS structure."):null}function b6({value:e,onChange:t,inheritedValue:o=e,help:r}){let n=o?.css,[i,s]=(0,hAe.useState)(()=>gAe(n));function a(u){t({...e,css:u}),s(bAe(u))}function l(u){s(gAe(u?.target?.value))}return(0,_R.jsxs)(Ke,{direction:"column",gap:"md",className:"block-editor-global-styles-advanced-panel",children:[i&&(0,_R.jsx)(g6.Notice,{status:"error",onRemove:()=>s(null),children:i}),(0,_R.jsx)(g6.TextareaControl,{label:(0,h6.__)("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 CAe=c(Y(),1),EAe=c(F(),1),Up=c(q(),1);var Pt=c(Y(),1);var tr=c(q(),1),vAe=c(Ls(),1),iQ=c(ga(),1),Hp=c(F(),1),kR=c(te(),1),_Ae=c(Lt(),1),wAe=c(tq(),1);var vt=c(T(),1),y6="image",bat={placement:"left-start",offset:36,shift:!0,className:"block-editor-global-styles-background-panel__popover"},v6=()=>{},wR=e=>{window.requestAnimationFrame(()=>{let[t]=_Ae.focus.tabbable.find(e?.current);t&&t.focus()})};function yat(e){return e==="cover"||e===void 0?(0,tr.__)("Image covers the space evenly."):e==="contain"?(0,tr.__)("Image is contained without distortion."):(0,tr.__)("Image has a fixed width.")}var vat=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}%`},_at=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 kAe({as:e="span",imgUrl:t,toggleProps:o={},filename:r,label:n,onToggleCallback:i=v6}){let{isOpen:s,...a}=o;(0,Hp.useEffect)(()=>{typeof s<"u"&&i(s)},[s,i]);let l=()=>(0,vt.jsxs)(Pt.__experimentalHStack,{className:"block-editor-global-styles-background-panel__inspector-preview-inner",children:[(0,vt.jsx)("span",{className:"block-editor-global-styles-background-panel__inspector-image-indicator",style:{backgroundImage:t?`url(${t})`:void 0}}),(0,vt.jsxs)(Pt.FlexBlock,{children:[(0,vt.jsx)(Pt.__experimentalTruncate,{numberOfLines:1,className:"block-editor-global-styles-background-panel__inspector-media-replace-title",children:n}),(0,vt.jsx)(bt,{render:(0,vt.jsx)("span",{}),children:t?(0,tr.sprintf)((0,tr.__)("Background image: %s"),r||n):(0,tr.__)("No background image selected")})]})]});return e==="button"?(0,vt.jsx)(Pt.Button,{__next40pxDefaultSize:!0,...a,children:l()}):l()}function wat({label:e,filename:t,url:o,children:r,onToggle:n=v6,hasImageValue:i,onReset:s,hasLocalOverride:a,containerRef:l}){if(!i)return;let u=e||(0,iQ.getFilename)(o)||(0,tr.__)("Image");return(0,vt.jsx)(Pt.Dropdown,{popoverProps:bat,renderToggle:({onToggle:d,isOpen:f})=>{let p={onClick:d,className:"block-editor-global-styles-background-panel__dropdown-toggle","aria-expanded":f,"aria-label":(0,tr.__)("Background size, position and repeat options."),isOpen:f};return(0,vt.jsxs)(vt.Fragment,{children:[(0,vt.jsx)(kAe,{imgUrl:o,filename:t,label:u,toggleProps:p,as:"button",onToggleCallback:n}),s&&(a?(0,vt.jsx)(Fp,{className:"block-editor-global-styles-background-panel__reset",onResetToInherited:()=>{s(),f&&d(),wR(l)}}):(0,vt.jsx)(Pt.Button,{__next40pxDefaultSize:!0,label:(0,tr.__)("Reset"),className:"block-editor-global-styles-background-panel__reset",size:"small",icon:Bn,onClick:()=>{s(),f&&d(),wR(l)}}))]})},renderContent:()=>(0,vt.jsx)(Pt.__experimentalDropdownContentWrapper,{className:"block-editor-global-styles-background-panel__dropdown-content-wrapper",paddingSize:"medium",children:r})})}function kat(){return(0,vt.jsx)(Pt.Placeholder,{className:"block-editor-global-styles-background-panel__loading",children:(0,vt.jsx)(Pt.Spinner,{})})}function yAe({onChange:e,style:t,inheritedValue:o,onRemoveImage:r=v6,onResetImage:n=v6,displayInPanel:i,defaultValues:s,containerRef:a}){let[l,u]=(0,Hp.useState)(!1),{getSettings:d}=(0,kR.useSelect)(B),{id:f,title:p,url:m}=t?.background?.backgroundImage||{...o?.background?.backgroundImage},{createErrorNotice:g}=(0,kR.useDispatch)(vAe.store),h=S=>{g(S,{type:"snackbar"}),u(!1)},b=()=>e(Ge(t,["background","backgroundImage"],void 0)),v=S=>{if(!S||!S.url){b(),u(!1);return}if((0,wAe.isBlobURL)(S.url)){u(!0);return}if(S.media_type&&S.media_type!==y6||!S.media_type&&S.type&&S.type!==y6){h((0,tr.__)("Only images can be used as a background image."));return}let C=t?.background?.backgroundSize||s?.backgroundSize,R=t?.background?.backgroundPosition;e(Ge(t,["background"],{...t?.background,backgroundImage:{url:S.url,id:S.id,source:"file",title:S.title||void 0},backgroundPosition:!R&&(C==="auto"||!C)?"50% 0":R,backgroundSize:C})),u(!1),wR(a)},y=S=>{d().mediaUpload({allowedTypes:[y6],filesList:S,onFileChange([C]){v(C)},onError:h,multiple:!1})},_=gu(t),w=()=>e(Ge(t,["background"],{backgroundImage:"none"})),k=!_&&gu(o),x=p||(0,iQ.getFilename)(m)||(0,tr.__)("Image");return(0,vt.jsxs)("div",{className:"block-editor-global-styles-background-panel__image-tools-panel-item",children:[l&&(0,vt.jsx)(kat,{}),(0,vt.jsx)(uS,{mediaId:f,mediaURL:m,allowedTypes:[y6],accept:"image/*",onSelect:v,popoverProps:{className:$({"block-editor-global-styles-background-panel__media-replace-popover":i})},name:(0,vt.jsx)(kAe,{imgUrl:m,filename:p,label:x}),renderToggle:S=>(0,vt.jsx)(Pt.Button,{...S,__next40pxDefaultSize:!0}),onError:h,onReset:()=>{wR(a),n()},children:k&&(0,vt.jsx)(Pt.MenuItem,{onClick:()=>{wR(a),w(),r()},children:(0,tr.__)("Remove")})}),(0,vt.jsx)(Pt.DropZone,{onFilesDrop:y,label:(0,tr.__)("Drop to upload")})]})}function xat({onChange:e,style:t,inheritedValue:o,defaultValues:r}){let n=t?.background?.backgroundSize,i=t?.background?.backgroundRepeat,s=t?.background?.backgroundPosition,a=t?.background?.backgroundAttachment,l=o?.background?.backgroundSize,u=o?.background?.backgroundRepeat,d=o?.background?.backgroundPosition,f=o?.background?.backgroundAttachment,p=n||l,m=i||u,g=t?.background?.backgroundImage?.url||o?.background?.backgroundImage?.url,h=t?.background?.backgroundImage?.id,b=s||d,v=a||f,y=!p&&h?r?.backgroundSize:p||"auto";y=["cover","contain","auto"].includes(y)?y:"auto";let _=!(m==="no-repeat"||y==="cover"&&m===void 0),w=R=>{let E=m,I=b;R==="contain"&&(E="no-repeat",I=void 0),R==="cover"&&(E=void 0,I=void 0),(y==="cover"||y==="contain")&&R==="auto"&&(E=void 0,t?.background?.backgroundImage?.id&&(I="50% 0")),!R&&y==="auto"&&(R="auto"),e(Ge(t,["background"],{...t?.background,backgroundPosition:I,backgroundRepeat:E,backgroundSize:R}))},k=R=>{e(Ge(t,["background","backgroundPosition"],vat(R)))},x=()=>e(Ge(t,["background","backgroundRepeat"],_===!0?"no-repeat":"repeat")),S=()=>e(Ge(t,["background","backgroundAttachment"],v==="fixed"?"scroll":"fixed")),C=!b&&h&&p==="contain"?r?.backgroundPosition:b;return(0,vt.jsxs)(Pt.__experimentalVStack,{spacing:3,className:"single-column",children:[(0,vt.jsx)(Pt.FocalPointPicker,{label:(0,tr.__)("Focal point"),url:g,value:_at(C),onChange:k}),(0,vt.jsx)(Pt.ToggleControl,{label:(0,tr.__)("Fixed background"),checked:v==="fixed",onChange:S}),(0,vt.jsxs)(Pt.__experimentalToggleGroupControl,{label:(0,tr.__)("Size"),value:y,onChange:w,isBlock:!0,help:yat(p||r?.backgroundSize),children:[(0,vt.jsx)(Pt.__experimentalToggleGroupControlOption,{value:"cover",label:(0,tr._x)("Cover","Size option for background image control")},"cover"),(0,vt.jsx)(Pt.__experimentalToggleGroupControlOption,{value:"contain",label:(0,tr._x)("Contain","Size option for background image control")},"contain"),(0,vt.jsx)(Pt.__experimentalToggleGroupControlOption,{value:"auto",label:(0,tr._x)("Tile","Size option for background image control")},"tile")]}),(0,vt.jsxs)(Pt.__experimentalHStack,{justify:"flex-start",spacing:2,as:"span",children:[(0,vt.jsx)(Pt.__experimentalUnitControl,{"aria-label":(0,tr.__)("Background image width"),onChange:w,value:p,__unstableInputWidth:"100px",min:0,placeholder:(0,tr.__)("Auto"),disabled:y!=="auto"||y===void 0}),(0,vt.jsx)(Pt.ToggleControl,{label:(0,tr.__)("Repeat"),checked:_,onChange:x,disabled:y==="cover"})]})]})}function xAe({value:e,onChange:t,inheritedValue:o=e,settings:r,defaultValues:n={},showInheritanceLabelIndicators:i=Dn()}){let{globalStyles:s,_links:a}=(0,kR.useSelect)(w=>{let{getSettings:k}=w(B),x=k();return{globalStyles:x[Ps],_links:x[c_]}},[]),l=(0,Hp.useMemo)(()=>{let w={background:{}};return o?.background?(Object.entries(o?.background).forEach(([k,x])=>{w.background[k]=wm(x,{styles:s,_links:a})}),w):o},[s,a,o]),u=()=>t(Ge(e,["background"],{gradient:e?.background?.gradient})),{title:d,url:f}=e?.background?.backgroundImage||{...l?.background?.backgroundImage},p=gu(e),m=p||gu(l),g=i&&p&&gu(l),h=e?.background?.backgroundImage||o?.background?.backgroundImage,b=m&&h!=="none"&&(r?.background?.backgroundSize||r?.background?.backgroundPosition||r?.background?.backgroundRepeat),[v,y]=(0,Hp.useState)(!1),_=(0,Hp.useRef)();return(0,vt.jsx)("div",{ref:_,className:$("block-editor-global-styles-background-panel__inspector-media-replace-container",{"is-open":v}),children:b?(0,vt.jsx)(wat,{label:d,filename:d,url:f,onToggle:y,hasImageValue:m,hasLocalOverride:g,onReset:p?u:void 0,containerRef:_,children:(0,vt.jsxs)(Pt.__experimentalVStack,{spacing:3,className:"single-column",children:[(0,vt.jsx)(yAe,{onChange:t,style:e,inheritedValue:l,displayInPanel:!0,onResetImage:()=>{y(!1),u()},onRemoveImage:()=>y(!1),defaultValues:n,containerRef:_}),(0,vt.jsx)(xat,{onChange:t,style:e,defaultValues:n,inheritedValue:l})]})}):(0,vt.jsx)(yAe,{onChange:t,style:e,inheritedValue:l,defaultValues:n,onResetImage:()=>{y(!1),u()},onRemoveImage:()=>y(!1),containerRef:_})})}var Ud=c(T(),1),Sat={backgroundImage:!0,backgroundColor:!0,gradient:!0};function SAe(e,t){return e?.background?.[t]}function _6(e){let t=XX(e),{backgroundImage:o,gradient:r}=e?.background||{};return o||r||t}function gu(e){return!!e?.background?.backgroundImage?.id||typeof e?.background?.backgroundImage=="string"||!!e?.background?.backgroundImage?.url}function sQ(e){return typeof e?.background?.gradient=="string"&&e?.background?.gradient!==""}function Cat(e){return!!e?.color?.background}function Eat(e){return!!e?.color?.gradient}function aQ({resetAllFilter:e,onChange:t,value:o,panelId:r,children:n,headerLabel:i}){let s=Dr();return(0,Ud.jsx)(CAe.__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,Ud.jsx)("div",{className:"background-block-support-panel__inner-wrapper",children:n})})}function w6({as:e=aQ,value:t,onChange:o,inheritedValue:r=t,settings:n,panelId:i,defaultControls:s=Sat,defaultValues:a={},headerLabel:l=(0,Up.__)("Background"),contrastWarning:u,showInheritanceLabelIndicators:d=Dn()}){let{colors:f,gradients:p,allColors:m,areCustomSolidsEnabled:g,areCustomGradientsEnabled:h,hasSolidColors:b,hasGradientColors:v,decodeValue:y,encodeGradientValue:_}=ES(n),w=SAe(n,"gradient"),k=XX(n),x=k&&b,S=v&&w,C=k&&v&&!w,R=SAe(n,"backgroundImage"),E=(0,EAe.useCallback)(Q=>{let Z=x,K=w||C;return!Z&&!K?{...Q,background:{}}:{...Q,background:{},color:{...Q?.color,...Z&&{background:void 0},...K&&{gradient:void 0}}}},[w,x,C]);if(!R&&!x&&!S&&!C)return null;let I=()=>o(Ge(t,["background","backgroundImage"],void 0)),O=()=>{let Q=Ge(t,["background","gradient"],void 0);Q=Ge(Q,["color","gradient"],void 0),o(Q)},A=y(r?.color?.background),P=y(t?.color?.background),L=(Q,Z)=>{let K=Ge(t,["color","background"],zp(m,Q,Z));C&&(K.color.gradient=void 0),o(K)},H=()=>{let Q=Ge(t,["color","background"],void 0);C&&(Q.color.gradient=void 0),o(Q)},N=y(r?.color?.gradient),M=y(t?.color?.gradient),V=(Q,Z)=>{let K=Ge(t,["color","gradient"],_(Q,Z));K.color.background=void 0,o(K)},j=()=>o(Ge(t,["color","gradient"],void 0)),D=y(t?.background?.gradient??t?.color?.gradient),z=y(r?.background?.gradient??r?.color?.gradient),W=(Q,Z)=>{let K=Ge(t,["background","gradient"],_(Q,Z));K=Ge(K,["color","gradient"],void 0),o(K)},ee=(Q,Z,K)=>d?oc(Q,Z,K):{className:K},J=gu({background:{backgroundImage:r?.background?.backgroundImage}}),U=gu(t);return(0,Ud.jsxs)(e,{resetAllFilter:E,value:t,onChange:o,panelId:i,headerLabel:l,children:[R&&(0,Ud.jsx)(Yt,{...ee(J&&!U,U&&J,"block-editor-color-gradient-item"),showLocalOverrideActionsInLabel:!1,hasValue:()=>gu(t),label:(0,Up.__)("Image"),onDeselect:I,isShownByDefault:s.backgroundImage,panelId:i,children:(0,Ud.jsx)(xAe,{value:t,onChange:o,settings:n,inheritedValue:r,defaultControls:s,defaultValues:a,showInheritanceLabelIndicators:d})}),x&&(0,Ud.jsx)(Rh,{label:(0,Up.__)("Color"),hasValue:()=>Cat(t),resetValue:H,isShownByDefault:s.backgroundColor,indicators:[P??A],contrastWarning:u,showInheritanceLabelIndicators:d,isPlaceholder:P===void 0&&A!==void 0,hasInheritedValue:A!==void 0,tabs:[{key:"background",label:(0,Up.__)("Color"),inheritedValue:A,inheritedSlug:Wo(r?.color?.background,"color"),userSlug:Wo(t?.color?.background,"color"),setValue:L,userValue:P,isPlaceholder:P===void 0&&A!==void 0}],colorGradientControlSettings:{colors:f,disableCustomColors:!g},panelId:i}),S&&(0,Ud.jsx)(Rh,{label:(0,Up.__)("Gradient"),hasValue:()=>sQ(t),resetValue:O,isShownByDefault:s.gradient,indicators:[D??z],showInheritanceLabelIndicators:d,isPlaceholder:D===void 0&&z!==void 0,hasInheritedValue:z!==void 0,tabs:[{key:"gradient",label:(0,Up.__)("Gradient"),inheritedValue:z,inheritedSlug:Wo(r?.background?.gradient??r?.color?.gradient,"gradient"),userSlug:Wo(t?.background?.gradient??t?.color?.gradient,"gradient"),setValue:W,userValue:D,isGradient:!0,isPlaceholder:D===void 0&&z!==void 0}],colorGradientControlSettings:{gradients:p,disableCustomGradients:!h},panelId:i}),C&&(0,Ud.jsx)(Rh,{label:(0,Up.__)("Gradient"),hasValue:()=>Eat(t),resetValue:j,isShownByDefault:s.gradient,indicators:[M??N],showInheritanceLabelIndicators:d,isPlaceholder:M===void 0&&N!==void 0,hasInheritedValue:N!==void 0,tabs:[{key:"gradient",label:(0,Up.__)("Gradient"),inheritedValue:N,inheritedSlug:Wo(r?.color?.gradient,"gradient"),userSlug:Wo(t?.color?.gradient,"gradient"),setValue:V,userValue:M,isGradient:!0,isPlaceholder:M===void 0&&N!==void 0}],colorGradientControlSettings:{gradients:p,disableCustomGradients:!h},panelId:i})]})}var Wd=c(q(),1);var Bh=c(Y(),1);var hu=c(T(),1);function k6({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,Wd.__)("Default"),value:"default"},...e.map(v=>({label:v.label,value:v.value}))],u=[{label:(0,Wd.__)("Default"),value:"default"},...t.map(v=>({label:v.label,value:v.value}))],d=e.length>0,f=t.length>0,p=(0,Wd.__)("States"),m=[];if(d&&o!=="default"){let v=l.find(y=>y.value===o);v&&m.push({key:`viewport-${v.value}`,label:v.label})}if(f&&r!=="default"){let v=u.find(y=>y.value===r);v&&m.push({key:`pseudo-${v.value}`,label:v.label})}let g=m.length?m.map(v=>v.label).join(", "):(0,Wd.__)("Default"),h=s?Rn:ha,b=s?{size:"compact",iconPosition:"right"}:{size:"small"};return(0,hu.jsx)(Ke,{direction:"column",gap:"sm",align:"flex-end",className:"block-editor-global-styles-state-control",children:(0,hu.jsx)(Bh.DropdownMenu,{icon:h,label:s?p:(0,Wd.sprintf)((0,Wd.__)("State: %s"),g),popoverProps:{placement:"right-start",...a},text:s?p:void 0,toggleProps:b,children:({onClose:v})=>(0,hu.jsxs)(hu.Fragment,{children:[d&&(0,hu.jsx)(Bh.MenuGroup,{label:(0,Wd.__)("Viewport"),children:l.map(y=>(0,hu.jsx)(Bh.MenuItem,{onClick:()=>{n?.(y.value),f||v()},icon:o===y.value?Os:null,children:y.label},`viewport-${y.value}`))}),f&&(0,hu.jsx)(Bh.MenuGroup,{label:(0,Wd.__)("Pseudo state"),children:u.map(y=>(0,hu.jsx)(Bh.MenuItem,{onClick:()=>{i?.(y.value),d||v()},icon:r===y.value?Os:null,children:y.label},`pseudo-${y.value}`))})]})})})}var TAe=c(Y(),1),MS=c(q(),1);var Gd=c(T(),1),{Badge:Tat}=G(TAe.privateApis);function x6({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,tooltipText:(0,MS.sprintf)((0,MS.__)("Style changes apply to the %s viewport."),s.label)}),a&&i.push({key:`pseudo-${a.value}`,label:a.label,tooltipText:(0,MS.sprintf)((0,MS.__)("Style changes apply to the %s state."),a.label)}),(0,Gd.jsx)(Ke,{className:n,direction:"row",justify:"flex-start",gap:"xs",wrap:"wrap",children:i.map(l=>{let u=(0,Gd.jsxs)(Tat,{className:"block-editor-global-styles-state-control__badge",intent:"info",children:[l.label,!!l.tooltipText&&(0,Gd.jsx)(bt,{render:(0,Gd.jsx)("span",{}),children:l.tooltipText})]},l.key);return l.tooltipText?(0,Gd.jsxs)(lo.Root,{children:[(0,Gd.jsx)(lo.Trigger,{render:(0,Gd.jsx)("span",{className:"block-editor-global-styles-state-control__badge-tooltip-trigger",children:u})}),(0,Gd.jsx)(lo.Popup,{children:l.tooltipText})]},l.key):u})})}var TR=c(F(),1),dQ=c(te(),1),IAe=c(ce(),1);var CR=c(ce(),1),xR=c(te(),1),S6=c(F(),1);var SR=c(T(),1),{getVariationStyle:Rat}=G(Lo),cQ="is-style-";function RAe(e){return e?e.split(/\s+/).reduce((t,o)=>{if(o.startsWith(cQ)){let r=o.slice(cQ.length);r!=="default"&&t.push(r)}return t},[]):[]}function ER(e,t=[]){let o=RAe(e);if(!o)return null;for(let r of o)if(t.some(n=>n.name===r))return r;return null}function Bat({override:e}){bu(e)}function uQ({config:e}){let{overrides:t}=(0,xR.useSelect)(n=>({overrides:G(n(B)).getStyleOverrides()}),[]),{getBlockName:o}=(0,xR.useSelect)(B),r=(0,S6.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=qP((0,CR.getBlockTypes)(),s.clientId),h=KP(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:h,__unstableType:"variation",variation:s.variation,clientId:s.clientId}),i.push(s.clientId)}}return n},[e,t,o]);return!r||!r.length?null:(0,SR.jsx)(SR.Fragment,{children:r.map(n=>(0,SR.jsx)(Bat,{override:n},n.id))})}function Iat(e,t,o){let{globalSettings:r,globalStyles:n}=(0,xR.useSelect)(i=>{let s=i(B).getSettings();return{globalSettings:s.__experimentalFeatures,globalStyles:s[Ps]}},[]);return(0,S6.useMemo)(()=>{let i=Rat({settings:r,styles:n},e,t);return{settings:r,styles:{blocks:{[e]:{variations:{[`${t}-${o}`]:i}}}}}},[r,n,t,o,e])}function Pat({name:e,className:t,clientId:o}){let{getBlockStyles:r}=(0,xR.useSelect)(CR.store),n=r(e),i=ER(t,n),s=`${cQ}${i}-${o}`,{settings:a,styles:l}=Iat(e,i,o),u=(0,S6.useMemo)(()=>{if(!i)return;let d={settings:a,styles:l},f=qP((0,CR.getBlockTypes)(),o);return KP(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 bu({id:`variation-${o}`,css:u,__unstableType:"variation",variation:i,clientId:o}),i?{className:s}:{}}var BAe={hasSupport:()=>!0,attributeKeys:["className"],isMatch:({className:e})=>RAe(e).length>0,useBlockProps:Pat};var{resolveStyle:Oat}=G(Lo),Aat={value:void 0,sources:void 0};function Mat(){let{rawGlobalStylesData:e,links:t}=(0,dQ.useSelect)(o=>{let r=o(B).getSettings();return{rawGlobalStylesData:r[Ps]??null,links:r[c_]??null}},[]);return(0,TR.useMemo)(()=>e?{styles:e,_links:t??void 0}:null,[e,t])}var PAe={"core/accordion-heading":{contextKey:"core/accordion-heading-level",fallbackLevel:3}};function Nat(e,t,o){let r=PAe[e];return r?t||o||r.fallbackLevel:t}function Lat(e){let t=(0,TR.useContext)(zn),o=PAe[e]?.contextKey;return o?t[o]:void 0}function Dat(e,t){switch(e){case"core/button":return["button"];case"core/accordion-heading":case"core/heading":case"core/post-title":case"core/site-title":case"core/query-title":case"core/comments-title":case"core/term-name":case"core/site-tagline":return t===0?[]:t?["heading",`h${t}`]:["heading"];case"core/read-more":case"core/loginout":case"core/post-navigation-link":case"core/query-pagination-next":case"core/query-pagination-previous":case"core/query-pagination-numbers":case"core/comments-pagination-next":case"core/comments-pagination-previous":case"core/comments-pagination-numbers":case"core/comment-edit-link":case"core/comment-reply-link":case"core/post-comments-link":return["link"];default:return[]}}function Vat(e,t){let{clientId:o}=kt(),r=Lat(e);return(0,dQ.useSelect)(n=>{if(!e)return{variationName:null,headingLevel:void 0};let i=n(IAe.store).getBlockStyles(e),{level:s}=n(B).getBlockAttributes(o)||{};return{variationName:t?ER(t,i):null,headingLevel:Nat(e,s,r)}},[e,t,o,r])}function sc(e,t,o=null){let{variationName:r,headingLevel:n}=Vat(e,t),i=Mat();return(0,TR.useMemo)(()=>Dn()?e?Oat(i,{blockName:e,variationName:r,elements:Dat(e,n),viewport:o?.viewport??null,pseudoState:o?.pseudo??null}):{value:{},sources:{}}:Aat,[e,r,n,i,o])}var mQ=c(T(),1),Vv="__experimentalBorder",IR="shadow",Fat=[],OAe=(e,t,o)=>{let r;return e.some(n=>n.colors.some(i=>i[t]===o?(r=i,!0):!1)),r},Dv=({colors:e,namedColor:t,customColor:o})=>{if(t){let n=OAe(e,"slug",t);if(n)return n}if(!o)return{color:void 0};let r=OAe(e,"color",o);return r||{color:o}};function C6(e){let t=/var:preset\|color\|(.+)/.exec(e);return t&&t[1]?t[1]:null}function MAe(e){if((0,fQ.__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:Xe(r),borderColor:o}}function NAe(e){return(0,fQ.__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 zat({label:e,children:t,resetAllFilter:o}){let r=(0,BR.useCallback)(n=>{let i=NAe(n),s=o(i);return{...n,...MAe(s)}},[o]);return(0,mQ.jsx)(Fe,{group:"border",resetAllFilter:r,label:e,children:t})}function LAe({clientId:e,name:t,setAttributes:o,settings:r}){let n=Ll(),i=d6(r),{style:s,borderColor:a,className:l}=(0,pQ.useSelect)(g=>{if(!i)return{};let{style:h,borderColor:b,className:v}=g(B).getBlockAttributes(e)||{};return{style:h,borderColor:b,className:v}},[e,i]),{value:u}=sc(t,l,n),d=!qn(n),f=(0,BR.useMemo)(()=>d?Ao(s,n):NAe({style:s,borderColor:a}),[d,n,s,a]),p=d?g=>{o({style:_n(s,n,g)})}:g=>{o(MAe(g))};if(!i)return null;let m={...(0,RR.getBlockSupport)(t,[Vv,"__experimentalDefaultControls"]),...(0,RR.getBlockSupport)(t,[IR,"__experimentalDefaultControls"])};return(0,mQ.jsx)(f6,{as:zat,panelId:e,settings:r,value:f,onChange:p,defaultControls:m,inheritedValue:u})}function T6(e,t="any"){let o=(0,RR.getBlockSupport)(e,Vv);return o===!0?!0:t==="any"?!!(o?.color||o?.radius||o?.width||o?.style):!!o?.[t]}function Nv({clientId:e,hasBorderControl:t,hasShadowControl:o}={}){let[r,n,i,s,a]=(0,pQ.useSelect)(d=>{if(!e)return Fat;let{getBlockSettings:f}=G(d(B));return f(e,"border.color","border.radius","border.style","border.width","shadow")},[e]),l=(0,BR.useMemo)(()=>({border:{color:r,radius:n,style:i,width:s},shadow:a}),[r,n,i,s,a]),u=yR(l);return!t&&!o&&e&&(t=u?.hasBorderColor||u?.hasBorderStyle||u?.hasBorderWidth||u?.hasBorderRadius,o=u?.hasShadow),t&&o?(0,E6.__)("Border & Shadow"):o?(0,E6.__)("Shadow"):(0,E6.__)("Border")}function jat(e){return!T6(e,"color")||e.attributes.borderColor?e:{...e,attributes:{...e.attributes,borderColor:{type:"string"}}}}function DAe(e,t,o){if(!T6(t,"color")||io(t,Vv,"color"))return e;let r=gQ(o),n=$(e.className,r);return e.className=n||void 0,e}function gQ(e){let{borderColor:t,style:o}=e,r=el("border-color",t);return $({"has-border-color":t||o?.border?.color,[r]:!!r})}function Hat({name:e,borderColor:t,style:o}){let{colors:r}=gh();if(!T6(e,"color")||io(e,Vv,"color"))return{};let{color:n}=Dv({colors:r,namedColor:t}),{color:i}=Dv({colors:r,namedColor:C6(o?.border?.top?.color)}),{color:s}=Dv({colors:r,namedColor:C6(o?.border?.right?.color)}),{color:a}=Dv({colors:r,namedColor:C6(o?.border?.bottom?.color)}),{color:l}=Dv({colors:r,namedColor:C6(o?.border?.left?.color)});return DAe({style:Xe({borderTopColor:i||n,borderRightColor:s||n,borderBottomColor:a||n,borderLeftColor:l||n})||{}},e,{borderColor:t,style:o})}var hQ={useBlockProps:Hat,addSaveProps:DAe,attributeKeys:["borderColor","style"],hasSupport(e){return T6(e,"color")}};(0,AAe.addFilter)("blocks.registerBlockType","core/border/addAttributes",jat);var kQ=c(ce(),1),A6=c(F(),1),KAe=c(te(),1),qAe=c(q(),1);var vQ=c(Bo(),1),DS=c(ce(),1),$Ae=c(F(),1);var LS=c(ce(),1),HAe=c(te(),1),UAe=c(q(),1);var Fv=c(F(),1),FAe=c(te(),1),zAe=c(ce(),1);var jAe=c(Yo(),1);function R6(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function VAe(e,t){if(!e||!t)return{};let o=ba(t,"color.text",{fallback:!0}),r=ba(t,"color.background",{fallback:!0}),n=e.querySelector(o)||e,i=e.querySelector(r)||e,s=e.querySelector("a"),a=R6(n,"color"),l=s&&s.textContent?R6(s,"color"):void 0,u=i,d=R6(u,"background-color");for(;d==="rgba(0, 0, 0, 0)"&&u.parentNode&&u.parentNode.nodeType===u.parentNode.ELEMENT_NODE;)u=u.parentNode,d=R6(u,"background-color");return{textColor:a,backgroundColor:d,linkColor:l}}function Uat(e,t){return Object.keys(t).some(r=>e[r]!==t[r])?t:e}function NS({clientId:e,name:t,enabled:o=!0,checkTextColor:r=!0,checkLinkColor:n=!0,messageOverride:i}){let s=Zt(e),[a,l]=(0,Fv.useReducer)(Uat,{}),u=(0,FAe.useSelect)(p=>t&&o?p(zAe.store).getBlockType(t):void 0,[t,o]);(0,Fv.useLayoutEffect)(()=>{!o||!s||!u||window.requestAnimationFrame(()=>window.requestAnimationFrame(()=>l(VAe(s,u))))}),(0,Fv.useLayoutEffect)(()=>{if(!o||!s||!u)return;let p=new window.MutationObserver(()=>{l(VAe(s,u))});return p.observe(s,{attributes:!0,attributeFilter:["class","style"],subtree:!0}),()=>{p.disconnect()}},[o,s,u]);let d=o?MZ({backgroundColor:a.backgroundColor,textColor:r?a.textColor:void 0,linkColor:n?a.linkColor:void 0,messageOverride:i,enableAlphaChecker:!0}):null,f=d?.speakMessage;return(0,Fv.useEffect)(()=>{f&&(0,jAe.speak)(f)},[f]),d?.message}var yQ=c(T(),1),zv="background",bQ={backgroundSize:"cover",backgroundPosition:"50% 50%"};function PR(e,t="any"){let o=(0,LS.getBlockSupport)(e,zv);return o===!0?!0:t==="any"?!!o?.backgroundImage||!!o?.backgroundSize||!!o?.backgroundRepeat||!!o?.gradient:!!o?.[t]}function B6(e){if(!e||!e?.backgroundImage?.url)return;let t;return e?.backgroundSize||(t={backgroundSize:bQ.backgroundSize}),e?.backgroundSize==="contain"&&!e?.backgroundPosition&&(t={backgroundPosition:bQ.backgroundPosition}),t}function Wat({name:e,style:t}){if(!PR(e)||!t?.background?.backgroundImage)return;let o=B6(t?.background);if(o)return{style:{...o}}}function WAe(e){return gu(e)||sQ(e)?"has-background":""}function Gat(e){let t=e.className?.includes("has-background")?e.className.split(" ").filter(o=>o!=="has-background").join(" ")||void 0:e.className;return{...e,className:t,backgroundColor:void 0,gradient:void 0,style:Xe({...e.style,background:void 0,color:{...e.style?.color,background:void 0,gradient:void 0}})}}function $at({children:e}){return(0,yQ.jsx)(Fe,{group:"background",resetAllFilter:Gat,children:e})}function I6({clientId:e,name:t,setAttributes:o,settings:r,asWrapper:n}){let i=Ll(),{style:s,className:a,backgroundColor:l,gradient:u}=(0,HAe.useSelect)(E=>{let{getBlockAttributes:I}=E(B),O=I(e);return{style:O?.style,className:O?.className,backgroundColor:O?.backgroundColor,gradient:O?.gradient}},[e]),{value:d}=sc(t,a,i),f=PR(t,"gradient")&&!!r?.background?.gradient,p=(0,LS.getBlockSupport)(t,"color"),m=p&&p.background!==!1,g=!!p?.gradients,h=!qn(i),b={...s,color:{...s?.color,background:l?"var:preset|color|"+l:s?.color?.background,gradient:!f&&u?"var:preset|gradient|"+u:s?.color?.gradient},...f&&{background:{...s?.background,gradient:u?"var:preset|gradient|"+u:s?.background?.gradient??s?.color?.gradient}}},v=h?Ao(s,i):b,y=!v?.color?.gradient&&!v?.background?.gradient&&!!v?.color?.background&&(r?.color?.text||r?.color?.link)&&(0,LS.getBlockSupport)(t,["color","enableContrastChecker"])!==!1,_=NS({clientId:e,name:t,enabled:!!y,messageOverride:(0,UAe.__)("This color combination has poor contrast. Consider increasing contrast between background and foreground.")});if(!_6(r)||!PR(t)&&!m&&!g)return null;let w=E=>{if(h){o({style:_n(s,i,E)});return}let I=E?.color?.background,O=Wo(I,"color"),A=f?E?.background?.gradient:E?.color?.gradient,P=Wo(A,"gradient"),L=P?void 0:E?.color?.gradient,H={...E,color:{...E?.color,background:O?void 0:I,gradient:f?void 0:L}};f&&(H.background={...H.background,gradient:E?.background?.gradient});let N=f&&!!s?.color?.gradient,M={style:Xe(H),backgroundColor:O,gradient:f?void 0:P},V=!!P||!!A;N&&V?M.className=$(a,"has-background"):!V&&a?.includes("has-background")&&(M.className=a.split(" ").filter(j=>j!=="has-background").join(" ")||void 0),o(M)},k={...r,background:{...r.background,backgroundSize:r?.background?.backgroundSize&&PR(t,"backgroundSize")}},x=(0,LS.getBlockSupport)(t,[zv,"__experimentalDefaultControls"]),S=(0,LS.getBlockSupport)(t,["color","__experimentalDefaultControls"]),C={...x,backgroundColor:S?.background,gradient:x?.gradient??S?.background};return(0,yQ.jsx)(w6,{as:n||$at,panelId:e,defaultValues:bQ,settings:k,onChange:w,defaultControls:C,value:h?Ao(s,i):b,contrastWarning:_,inheritedValue:d})}var GAe={useBlockProps:Wat,attributeKeys:["style"],hasSupport:PR};var oi="color",P6=e=>{let t=(0,DS.getBlockSupport)(e,oi);return t&&(t.link===!0||t.gradient===!0||t.background!==!1||t.text!==!1)},Yat=e=>{let t=(0,DS.getBlockSupport)(e,oi);return t!==null&&typeof t=="object"&&!!t.link},_Q=e=>{let t=(0,DS.getBlockSupport)(e,oi);return t!==null&&typeof t=="object"&&!!t.gradients},Kat=e=>{let t=(0,DS.getBlockSupport)(e,oi);return t&&t.background!==!1},qat=e=>{let t=(0,DS.getBlockSupport)(e,oi);return t&&t.text!==!1};function Zat(e){return P6(e)&&(e.attributes.backgroundColor||Object.assign(e.attributes,{backgroundColor:{type:"string"}}),e.attributes.textColor||Object.assign(e.attributes,{textColor:{type:"string"}}),_Q(e)&&!e.attributes.gradient&&Object.assign(e.attributes,{gradient:{type:"string"}})),e}function YAe(e,t,o){if(!P6(t)||io(t,oi))return e;let r=_Q(t),{backgroundColor:n,textColor:i,gradient:s,style:a}=o,l=h=>!io(t,oi,h),u=l("text")?el("color",i):void 0,d=l("gradients")?L_(s):void 0,f=l("background")?el("background-color",n):void 0,p=l("background")||l("gradients"),m=n||a?.color?.background||r&&(s||a?.color?.gradient),g=$(e.className,u,d,{[f]:(!r||!a?.color?.gradient)&&!!f,"has-text-color":l("text")&&(i||a?.color?.text),"has-background":p&&m,"has-link-color":l("link")&&a?.elements?.link?.color});return e.className=g||void 0,e}function Xat({name:e,backgroundColor:t,textColor:o,gradient:r,style:n}){let[i,s,a]=je("color.palette.custom","color.palette.theme","color.palette.default"),l=(0,$Ae.useMemo)(()=>[...i||[],...s||[],...a||[]],[i,s,a]);if(!P6(e)||io(e,oi))return{};let u={};o&&!io(e,oi,"text")&&(u.color=Du(l,o)?.color),t&&!io(e,oi,"background")&&(u.backgroundColor=Du(l,t)?.color);let d=YAe({style:u},e,{textColor:o,backgroundColor:t,gradient:r,style:n}),f=t||n?.color?.background||r||n?.color?.gradient;return{...d,className:$(d.className,!f&&WAe(n))}}var wQ={useBlockProps:Xat,addSaveProps:YAe,attributeKeys:["backgroundColor","textColor","gradient","style"],hasSupport:P6},Qat={linkColor:[["style","elements","link","color","text"]],textColor:[["textColor"],["style","color","text"]],backgroundColor:[["backgroundColor"],["style","color","background"]],gradient:[["gradient"],["style","color","gradient"]]};function Jat(e,t,o,r){let n=e.name,i={linkColor:Yat(n),textColor:qat(n),backgroundColor:Kat(n),gradient:_Q(n)};return O6(i,Qat,e,t,o,r)}(0,vQ.addFilter)("blocks.registerBlockType","core/color/addAttribute",Zat);(0,vQ.addFilter)("blocks.switchToBlockType.transformedBlock","core/color/addTransforms",Jat);var xQ=c(T(),1);function elt({children:e,resetAllFilter:t}){let o=(0,A6.useCallback)(r=>{let n=t(r.style);return{...r,style:Xe(n)}},[t]);return(0,xQ.jsx)(Fe,{group:"elements",resetAllFilter:o,children:e})}function M6({clientId:e,name:t,setAttributes:o,settings:r,asWrapper:n,label:i,defaultControls:s}){let a=Ll(),l=QF(r),{style:u,className:d}=(0,KAe.useSelect)(y=>{if(!l)return{};let _=y(B).getBlockAttributes(e);return{style:_?.style,className:_?.className}},[e,l]),{value:f}=sc(t,d,a),p=!qn(a),m=(0,A6.useMemo)(()=>p?Ao(u,a):u,[p,a,u]),g=p?y=>{o({style:_n(u,a,y)})}:y=>{o({style:Xe(y)})},h=!!m?.elements?.link?.color?.text&&r?.color?.link&&(0,kQ.getBlockSupport)(t,[oi,"enableContrastChecker"])!==!1,b=NS({clientId:e,name:t,enabled:!!h,checkTextColor:!1,messageOverride:(0,qAe.__)("This link color has poor contrast against the background. Consider increasing contrast.")});return l?(s=s||(0,kQ.getBlockSupport)(t,[oi,"__experimentalDefaultControls"]),(0,xQ.jsx)(JF,{as:n||elt,panelId:e,settings:r,value:m,onChange:g,defaultControls:s,label:i,contrastWarning:b,inheritedValue:f})):null}var MR=c(ce(),1),j6=c(F(),1),pMe=c(te(),1),mMe=c(q(),1);var tlt=c(ce(),1);var olt=c(T(),1),ZAe="typography.lineHeight";var XAe=c(Bo(),1),N6=c(ce(),1),QAe=c(CV(),1);var OR="typography.__experimentalFontFamily";function rlt(e){return(0,N6.hasBlockSupport)(e,OR)&&(e.attributes.fontFamily||Object.assign(e.attributes,{fontFamily:{type:"string"}})),e}function JAe(e,t,o){if(!(0,N6.hasBlockSupport)(t,OR)||io(t,ac,"fontFamily")||!o?.fontFamily)return e;let r=new QAe.default(e.className);r.add(`has-${Is(o?.fontFamily)}-font-family`);let n=r.value;return e.className=n||void 0,e}function nlt({name:e,fontFamily:t}){return JAe({},e,{fontFamily:t})}var SQ={useBlockProps:nlt,addSaveProps:JAe,attributeKeys:["fontFamily"],hasSupport(e){return(0,N6.hasBlockSupport)(e,OR)}};(0,XAe.addFilter)("blocks.registerBlockType","core/fontFamily/addAttribute",rlt);var CQ=c(Bo(),1),VS=c(ce(),1),eMe=c(CV(),1);var ilt=c(T(),1),jv="typography.fontSize";function slt(e){return(0,VS.hasBlockSupport)(e,jv)&&(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}})),e}function tMe(e,t,o){if(!(0,VS.hasBlockSupport)(t,jv)||io(t,ac,"fontSize"))return e;let r=new eMe.default(e.className);r.add(Pm(o.fontSize));let n=r.value;return e.className=n||void 0,e}function alt({name:e,fontSize:t,style:o}){let[r,n,i]=je("typography.fontSizes","typography.fluid","layout");if(!(0,VS.hasBlockSupport)(e,jv)||io(e,ac,"fontSize")||!t&&!o?.typography?.fontSize)return;let s;if(o?.typography?.fontSize&&(s={style:{fontSize:bf({size:o.typography.fontSize},{typography:{fluid:n},layout:i})}}),t&&(s={style:{fontSize:D_(r,t,o?.typography?.fontSize).size}}),!!s)return tMe(s,e,{fontSize:t})}var EQ={useBlockProps:alt,addSaveProps:tMe,attributeKeys:["fontSize","style"],hasSupport(e){return(0,VS.hasBlockSupport)(e,jv)}},llt={fontSize:[["fontSize"],["style","typography","fontSize"]]};function clt(e,t,o,r){let n=e.name,i={fontSize:(0,VS.hasBlockSupport)(n,jv)};return O6(i,llt,e,t,o,r)}(0,CQ.addFilter)("blocks.registerBlockType","core/font/addAttribute",slt);(0,CQ.addFilter)("blocks.switchToBlockType.transformedBlock","core/font-size/addTransforms",clt);var D6=c(q(),1),FS=c(ce(),1);var nMe=c(te(),1);var L6=c(te(),1),oMe=c(F(),1);function zr(e){let t=kt(),{clientId:o=""}=t,r=(0,L6.useRegistry)(),n=(0,L6.useSelect)(i=>o?null:i(B).getBlockEditingMode(),[o]);return(0,oMe.useEffect)(()=>{if(!e)return;let{setBlockEditingMode:i,unsetBlockEditingMode:s,__unstableMarkNextChangeAsNotPersistent:a}=r.dispatch(B);return a(),i(o,e),()=>{a(),s(o)}},[r,o,e]),o?t[n_]:n}var TQ=c(T(),1),zS="typography.textAlign",ult=[{icon:gm,title:(0,D6.__)("Align text left"),align:"left"},{icon:cb,title:(0,D6.__)("Align text center"),align:"center"},{icon:hm,title:(0,D6.__)("Align text right"),align:"right"}],rMe=["left","center","right"],dlt=[];function RQ(e){return Array.isArray(e)?rMe.filter(t=>e.includes(t)):e===!0?rMe:dlt}function flt(e,t){return e&&vi(t)?"style-state":"block"}function plt({clientId:e,style:t,name:o,setAttributes:r}){let i=$d(o)?.typography?.textAlign,s=zr(),{selectedState:a,isResponsiveEditing:l}=(0,nMe.useSelect)(g=>{let{getSelectedBlockStyleState:h,isResponsiveEditing:b}=G(g(B));return{selectedState:h(e),isResponsiveEditing:b()}},[e]);if(!i||s!=="default")return null;let u=RQ((0,FS.getBlockSupport)(o,zS));if(!u.length)return null;let d=ult.filter(g=>u.includes(g.align)),f=Ao(t,a),p=flt(l,a),m=g=>{let h={...f,typography:{...f?.typography,textAlign:g}};r({style:_n(t,a,h)})};return(0,TQ.jsx)(Ko,{group:p,children:(0,TQ.jsx)(x2,{value:f?.typography?.textAlign,onChange:m,alignmentControls:d})})}var V6={edit:plt,useBlockProps:mlt,addSaveProps:glt,attributeKeys:["style"],hasSupport(e){return(0,FS.hasBlockSupport)(e,zS,!1)}};function mlt({name:e,style:t}){if(!t?.typography?.textAlign||!RQ((0,FS.getBlockSupport)(e,zS)).length||io(e,ac,"textAlign"))return null;let r=t.typography.textAlign;return{className:$({[`has-text-align-${r}`]:r})}}function glt(e,t,o){if(!o?.style?.typography?.textAlign)return e;let{textAlign:r}=o.style.typography,n=(0,FS.getBlockSupport)(t,zS);return RQ(n).includes(r)&&!io(t,ac,"textAlign")&&(e.className=$(`has-text-align-${r}`,e.className)),e}var IQ=c(Bo(),1),Ih=c(ce(),1),Hv=c(F(),1),PQ=c(te(),1),AR=c(q(),1),F6=c(Y(),1),dMe=c(ue(),1);function hlt(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 m=window.getComputedStyle(f);m?.display==="flex"&&(d=f,a+=parseFloat(m.paddingLeft)||0,l+=parseFloat(m.paddingRight)||0)}let p=d.clientHeight;for(;r<=n;){let m=Math.floor((r+n)/2);t(m);let h=u.getBoundingClientRect().width,b=e.scrollWidth<=d.clientWidth&&h<=d.clientWidth-a-l,v=o||e.scrollHeight<=d.clientHeight||e.scrollHeight<=p;d.clientHeight>p&&(p=d.clientHeight),b&&v?(i=m,r=m+1):n=m-1}return u.detach(),i}function iMe(e,t){if(!e)return;t(0);let o=hlt(e,t);return t(o),o}var sMe=c(F(),1),aMe=c(q(),1),lMe=c(Y(),1),cMe=c(Yo(),1),BQ=c(T(),1);function uMe(){let e=(0,aMe.__)("The text may be too small to read. Consider using a larger container or less text.");return(0,sMe.useEffect)(()=>{(0,cMe.speak)(e)},[e]),(0,BQ.jsx)("div",{className:"block-editor-fit-text-size-warning",children:(0,BQ.jsx)(lMe.Notice,{spokenMessage:null,status:"warning",isDismissible:!1,children:e})})}var sa=c(T(),1),blt={},ylt=12,Wp="typography.fitText";function vlt(e){return!(0,Ih.hasBlockSupport)(e,Wp)||e.attributes?.fitText?e:{...e,attributes:{...e.attributes,fitText:{type:"boolean"}}}}function _lt({fitText:e,name:t,clientId:o}){let[r,n]=(0,Hv.useState)(null),i=(0,Ih.hasBlockSupport)(t,Wp),s=Zt(o),{blockAttributes:a,parentId:l,blockMode:u}=(0,PQ.useSelect)(f=>{if(!o||!i||!e)return blt;let p=f(B).getBlockMode(o);return p==="html"?{blockMode:p}:{blockAttributes:f(B).getBlockAttributes(o),parentId:f(B).getBlockRootClientId(o),blockMode:p}},[o,i,e]),d=(0,Hv.useCallback)(()=>{if(!s||!i||!e)return;let f=`fit-text-${o}`,p=s.ownerDocument.getElementById(f);p||(p=s.ownerDocument.createElement("style"),p.id=f,s.ownerDocument.head.appendChild(p));let m=`#block-${o}`,h=iMe(s,b=>{b===0?p.textContent="":p.textContent=`${m} { font-size: ${b}px !important; }`});n(h)},[s,o,i,e]);return(0,Hv.useEffect)(()=>{if(!e||!s||!o||!i||u==="html")return;let f=s,p=f.style.visibility,m=null,g=null,h=null;m=window.requestAnimationFrame(()=>{f.style.visibility="hidden",g=window.requestAnimationFrame(()=>{d(),h=setTimeout(()=>{f.style.visibility=p},10)})});let b;return window.ResizeObserver&&f.parentElement&&(b=new window.ResizeObserver(d),b.observe(f.parentElement),b.observe(f)),()=>{m!==null&&window.cancelAnimationFrame(m),g!==null&&window.cancelAnimationFrame(g),h!==null&&clearTimeout(h),b&&b.disconnect();let v=`fit-text-${o}`,y=f.ownerDocument.getElementById(v);y&&y.remove()}},[e,o,l,d,s,i,u]),(0,Hv.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 wlt({clientId:e,fitText:t=!1,setAttributes:o,name:r,fontSize:n,style:i}){let s=(0,PQ.useSelect)(a=>{let{hasSelectedStyleState:l}=G(a(B));return l(e)},[e]);return!(0,Ih.hasBlockSupport)(r,Wp)||s?null:(0,sa.jsx)(F6.__experimentalToolsPanelItem,{hasValue:()=>t,label:(0,AR.__)("Fit text"),onDeselect:()=>o({fitText:void 0}),resetAllFilter:()=>({fitText:void 0}),panelId:e,children:(0,sa.jsx)(F6.ToggleControl,{label:(0,AR.__)("Fit text"),checked:t,onChange:()=>{let a=!t||void 0,l={fitText:a};a&&(n&&(l.fontSize=void 0),i?.typography?.fontSize&&(l.style={...i,typography:{...i?.typography,fontSize:void 0}})),o(l)},help:t?(0,AR.__)("Text will resize to fit its container."):(0,AR.__)("The text will resize to fit its container, resetting other font size settings.")})})}function klt(e,t,o){if(!(0,Ih.hasBlockSupport)(t,Wp))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 xlt({name:e,fitText:t}){return t&&(0,Ih.hasBlockSupport)(e,Wp)?{className:"has-fit-text"}:{}}(0,IQ.addFilter)("blocks.registerBlockType","core/fit-text/addAttribute",vlt);var Slt=e=>(0,Ih.hasBlockSupport)(e,Wp);function Clt({fitText:e,name:t,clientId:o,isSelected:r}){let{fontSize:n}=_lt({fitText:e,name:t,clientId:o});return r&&n&&n<ylt?(0,sa.jsx)(Fe,{group:"typography",children:(0,sa.jsx)(uMe,{})}):null}var Elt=(0,dMe.createHigherOrderComponent)(e=>function(o){let{name:r,attributes:n,clientId:i,isSelected:s,setAttributes:a}=o,{fitText:l}=n;return(0,Ih.hasBlockSupport)(r,Wp)?(0,sa.jsxs)(sa.Fragment,{children:[(0,sa.jsx)(e,{...o}),(0,sa.jsx)(Fe,{group:"typography",children:(0,sa.jsx)(wlt,{clientId:i,fitText:l,setAttributes:a,name:r,fontSize:n.fontSize,style:n.style})}),l&&(0,sa.jsx)(Clt,{fitText:l,name:r,clientId:i,isSelected:s})]}):(0,sa.jsx)(e,{...o})},"addFitTextControl");(0,IQ.addFilter)("editor.BlockEdit","core/fit-text/add-fit-text-control",Elt);var z6={useBlockProps:xlt,addSaveProps:klt,attributeKeys:["fitText","fontSize","style"],hasSupport:Slt,edit:()=>null};var OQ=c(T(),1);function fMe(e,t){return Object.fromEntries(Object.entries(e).filter(([o])=>!t.includes(o)))}var Tlt="typography.__experimentalLetterSpacing",Rlt="typography.__experimentalTextTransform",Blt="typography.__experimentalTextDecoration",Ilt="typography.textIndent",Plt="typography.textColumns",Olt="typography.__experimentalFontStyle",Alt="typography.__experimentalFontWeight",Mlt="typography.__experimentalWritingMode",ac="typography",gMe=[ZAe,jv,Olt,Alt,OR,zS,Plt,Blt,Ilt,Mlt,Rlt,Tlt,Wp];function hMe(e){let t={...fMe(e,["fontFamily"])},o=e?.typography?.fontSize,r=e?.typography?.fontFamily,n=e?.color?.text,i=typeof o=="string"&&o?.startsWith("var:preset|font-size|")?o.substring(21):void 0,s=r?.startsWith("var:preset|font-family|")?r.substring(23):void 0,a=Wo(n,"color");return t.typography={...fMe(t.typography,["fontFamily"]),fontSize:i?void 0:o},t.color={...t.color,text:a?void 0:n},{style:Xe(t),fontFamily:s,fontSize:i,textColor:a}}function bMe(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},color:{...e.style?.color,text:e.textColor?"var:preset|color|"+e.textColor:e.style?.color?.text}}}function Nlt({children:e,resetAllFilter:t}){let o=(0,j6.useCallback)(r=>{let n=bMe(r),i=t(n);return{...r,...hMe(i)}},[t]);return(0,OQ.jsx)(Fe,{group:"typography",resetAllFilter:o,children:e})}function H6({clientId:e,name:t,setAttributes:o,settings:r,asWrapper:n}){let i=Ll(),s=e6(r),{style:a,fontFamily:l,fontSize:u,fitText:d,textColor:f,className:p}=(0,pMe.useSelect)(S=>{if(!s)return{};let{style:C,fontFamily:R,fontSize:E,fitText:I,textColor:O,className:A}=S(B).getBlockAttributes(e)||{};return{style:C,fontFamily:R,fontSize:E,fitText:I,textColor:O,className:A}},[e,s]),m=!qn(i),{value:g}=sc(t,p,i),h=(0,j6.useMemo)(()=>m?Ao(a,i):bMe({style:a,fontFamily:l,fontSize:u,textColor:f}),[m,i,a,u,l,f]),b=m?S=>{o({style:_n(a,i,S)})}:S=>{let C=hMe(S);(C.fontSize||C.style?.typography?.fontSize)&&d&&(C.fitText=void 0),o(C)},v=!h?.color?.gradient&&!!h?.color?.text&&r?.color?.text&&(0,MR.getBlockSupport)(t,["color","enableContrastChecker"])!==!1,y=NS({clientId:e,name:t,enabled:!!v,checkLinkColor:!1,messageOverride:(0,mMe.__)("This color has poor contrast against the background. Consider increasing contrast.")});if(!s)return null;let _=(0,MR.getBlockSupport)(t,[ac,"__experimentalDefaultControls"]),w=(0,MR.getBlockSupport)(t,["color","__experimentalDefaultControls"]),k={..._,textColor:w?.text};return(0,OQ.jsx)(t6,{as:n||Nlt,panelId:e,settings:r,value:h,onChange:b,defaultControls:k,contrastWarning:y,inheritedValue:g})}var lr=c(T(),1);function MQ({blockName:e,clientId:t,contentClientIds:o}){let r=$d(e),{updateBlockAttributes:n}=(0,U6.useDispatch)(B),{hasButtons:i,hasHeading:s}=(0,U6.useSelect)(d=>{let f=d(B).getBlockNamesByClientId(o);return{hasButtons:f.includes("core/buttons"),hasHeading:f.includes("core/heading")}},[o]),a=d=>{n(t,d)},l=(0,AQ.useMemo)(()=>({...r,typography:{}}),[r]),u=(0,AQ.useMemo)(()=>({...r,background:{...r.background,backgroundImage:!1,backgroundSize:!1}}),[r]);return(0,lr.jsxs)(lr.Fragment,{children:[(0,lr.jsx)(H6,{clientId:t,name:e,settings:l,setAttributes:a,asWrapper:eQ}),(0,lr.jsx)(I6,{clientId:t,name:e,settings:u,setAttributes:a,asWrapper:aQ}),(0,lr.jsx)(M6,{clientId:t,name:e,settings:r,setAttributes:a,asWrapper:QX,label:(0,Ph.__)("Elements"),defaultControls:{button:i,heading:s}})]})}var Llt=({blockName:e,clientId:t,hasBlockStyles:o,isSectionBlock:r,contentClientIds:n})=>{let i=Nv({clientId:t});return(0,lr.jsxs)(lr.Fragment,{children:[o&&(0,lr.jsx)(Wx,{clientId:t}),r&&e!=="core/template-part"&&(0,lr.jsx)(MQ,{blockName:e,clientId:t,contentClientIds:n}),(!r||e==="core/template-part")&&(0,lr.jsxs)(lr.Fragment,{children:[(0,lr.jsx)(Fe.Slot,{group:"typography",label:(0,Ph.__)("Typography")}),(0,lr.jsx)(Fe.Slot,{group:"color",label:(0,Ph.__)("Color"),className:"color-block-support-panel__inner-wrapper"}),(0,lr.jsx)(Fe.Slot,{group:"background",label:(0,Ph.__)("Background"),className:"background-block-support-panel__inner-wrapper"}),(0,lr.jsx)(Fe.Slot,{group:"filter"}),(0,lr.jsx)(Fe.Slot,{group:"layout",label:(0,Ph.__)("Layout")}),(0,lr.jsx)(Fe.Slot,{group:"dimensions",label:(0,Ph.__)("Dimensions")}),(0,lr.jsx)(Fe.Slot,{group:"border",label:i}),(0,lr.jsx)(Fe.Slot,{group:"elements",label:(0,Ph.__)("Elements"),className:"elements-block-support-panel__inner-wrapper"}),(0,lr.jsx)($F,{}),(0,lr.jsx)(Fe.Slot,{group:"styles"})]})]})},yMe=Llt;var _Me=c(Y(),1),wMe=c(q(),1);var vMe=c(ce(),1),W6=c(te(),1),$a=c(Y(),1);var lc=c(T(),1);function G6({clientIds:e,onSelect:t,onSwitchToListView:o,hasListViewTab:r}){return e.length?(0,lc.jsx)($a.__experimentalVStack,{spacing:1,children:e.map(n=>(0,lc.jsx)(Dlt,{onSelect:t,onSwitchToListView:o,hasListViewTab:r,clientId:n},n))}):null}function Dlt({clientId:e,onSelect:t,onSwitchToListView:o,hasListViewTab:r}){let n=Mn(e),{isSelected:i,childBlocks:s,shouldRenderListView:a,blockName:l}=(0,W6.useSelect)(h=>{let{isBlockSelected:b,hasSelectedInnerBlock:v,getBlockOrder:y,getBlockName:_,shouldRenderBlockListView:w}=G(h(B)),k=_(e);return{isSelected:b(e)||v(e,!0),childBlocks:y(e),shouldRenderListView:w(e),blockName:k}},[e]),u=(0,vMe.getBlockType)(l),f=ci({clientId:e,context:"list-view"})||u?.title||l,{selectBlock:p}=(0,W6.useDispatch)(B),g=s&&s.length>0&&r&&a;return(0,lc.jsx)($a.Button,{__next40pxDefaultSize:!0,className:"block-editor-block-quick-navigation__item",isPressed:i,onClick:async()=>{await p(e),g&&o&&o(e),t&&t(e)},children:(0,lc.jsxs)($a.Flex,{children:[(0,lc.jsx)($a.FlexItem,{children:(0,lc.jsx)(Nt,{icon:n?.icon})}),(0,lc.jsx)($a.FlexBlock,{style:{textAlign:"left"},children:(0,lc.jsx)($a.__experimentalTruncate,{children:f})}),g&&(0,lc.jsx)($a.FlexItem,{children:(0,lc.jsx)(xt,{icon:hr,size:24})})]})})}var jS=c(T(),1),Vlt=({contentClientIds:e,onSwitchToListView:t,hasListViewTab:o})=>{if(!e||e.length===0)return null;let r=window?.__experimentalContentOnlyInspectorFields;return(0,jS.jsx)(jS.Fragment,{children:!r&&(0,jS.jsx)(_Me.PanelBody,{title:(0,wMe.__)("Content"),children:(0,jS.jsx)(G6,{clientIds:e,onSwitchToListView:t,hasListViewTab:o})})})},$6=Vlt;var ln=c(T(),1),{Tabs:Oh}=G(Y6.privateApis);function NQ({blockName:e,clientId:t,hasBlockStyles:o,tabs:r,isSectionBlock:n,contentClientIds:i}){let s=(0,yu.useRef)(null),a=(0,HS.useSelect)(w=>w(kMe.store).get("core","showIconLabels"),[]),{requestedTab:l}=(0,HS.useSelect)(w=>({requestedTab:G(w(B)).getRequestedInspectorTab()})),[u,d]=(0,yu.useState)(()=>l?.tabName??r[0]?.name),f=(0,yu.useRef)(!1),p=(0,yu.useRef)(!1),{__unstableSetOpenListViewPanel:m,__unstableIncrementListViewExpandRevision:g,__unstableSetAllListViewPanelsOpen:h}=(0,HS.useDispatch)(B),{clearRequestedInspectorTab:b}=G((0,HS.useDispatch)(B));(0,yu.useEffect)(()=>{f.current=!1},[t]),(0,yu.useEffect)(()=>{l&&(d(l.tabName),l.tabName===Dp.name&&l.options?.openPanel&&(m(l.options.openPanel),g()),p.current=!0,f.current=!0,b())},[l,m,g,b]),(0,yu.useEffect)(()=>{u===Dp.name&&!f.current&&(h(),g())},[t,u,h,g]),(0,yu.useEffect)(()=>{if(!r?.length||f.current&&r.some(k=>k.name===u))return;let w=r[0]?.name;u!==w&&d(w)},[r,u]);let v=w=>{d(w),f.current=!0,w===Dp.name&&!p.current&&(h(),g()),p.current=!1},y=r.some(w=>w.name===Dp.name),_=w=>{y&&(m(w),g(),p.current=!0,v(Dp.name))};return(0,ln.jsx)("div",{className:"block-editor-block-inspector__tabs",children:(0,ln.jsxs)(Oh,{selectedTabId:u,onSelect:v,children:[(0,ln.jsx)(Oh.TabList,{children:r.map(w=>a?(0,ln.jsx)(Oh.Tab,{tabId:w.name,children:w.title},w.name):(0,ln.jsxs)(lo.Root,{children:[(0,ln.jsx)(Oh.Tab,{tabId:w.name,"aria-label":w.title,render:(0,ln.jsx)(lo.Trigger,{}),children:(0,ln.jsx)(Y6.Icon,{icon:w.icon})}),(0,ln.jsx)(lo.Popup,{children:w.title})]},w.name))}),(0,ln.jsxs)(Oh.TabPanel,{tabId:UF.name,focusable:!1,children:[(0,ln.jsx)($6,{contentClientIds:i,onSwitchToListView:_,hasListViewTab:y}),(0,ln.jsx)(Fe.Slot,{group:"content"})]}),(0,ln.jsxs)(Oh.TabPanel,{tabId:Dp.name,focusable:!1,children:[(0,ln.jsx)(Fe.Slot,{group:"list",ref:s}),(0,ln.jsx)(P5,{listViewRef:s})]}),(0,ln.jsx)(Oh.TabPanel,{tabId:jF.name,focusable:!1,children:(0,ln.jsx)(uOe,{showAdvancedControls:!!e})}),(0,ln.jsx)(Oh.TabPanel,{tabId:HF.name,focusable:!1,children:(0,ln.jsx)(yMe,{blockName:e,clientId:t,hasBlockStyles:o,isSectionBlock:n,contentClientIds:i})})]},t)})}var aa=c(Y(),1),xMe=c(te(),1);var Flt=[];function zlt(e,t={}){return t[e]!==void 0?t[e]:t.default!==void 0?t.default:!0}function SMe(e,t,o,r){let n=[],{bindings:i,border:s,color:a,content:l,default:u,layout:d,dimensions:f,list:p,position:m,styles:g,typography:h,effects:b}=Qc,v=(0,aa.__experimentalUseSlotFills)(p.name),y=!!v&&v.length,_=(0,aa.__experimentalUseSlotFills)(l.name),w=!!_&&_.length,x=[...(0,aa.__experimentalUseSlotFills)(s.name)||[],...(0,aa.__experimentalUseSlotFills)(a.name)||[],...(0,aa.__experimentalUseSlotFills)(d.name)||[],...(0,aa.__experimentalUseSlotFills)(m.name)||[],...(0,aa.__experimentalUseSlotFills)(f.name)||[],...(0,aa.__experimentalUseSlotFills)(g.name)||[],...(0,aa.__experimentalUseSlotFills)(h.name)||[],...(0,aa.__experimentalUseSlotFills)(b.name)||[]].length,S=[...(0,aa.__experimentalUseSlotFills)(Gg.slotName)||[],...(0,aa.__experimentalUseSlotFills)(i.name)||[]],C=[...(0,aa.__experimentalUseSlotFills)(u.name)||[],...y&&x>1?S:[]],R=window?.__experimentalContentOnlyInspectorFields,E=w||!R&&t?.length;E&&n.push(UF),y&&n.push(Dp),(C.length||S.length&&(E||y))&&n.push(jF);let{tabSettings:I,isPreviewMode:O}=(0,xMe.useSelect)(P=>{let L=P(B).getSettings();return{tabSettings:L.blockInspectorTabs,isPreviewMode:L.isPreviewMode}},[]);return!O&&(r||x)&&n.push(HF),zlt(e,I)?n:Flt}var CMe=c(Y(),1);var LQ=c(T(),1),{Fill:jlt,Slot:Hlt}=(0,CMe.createSlotFill)(Symbol("InspectorControlsLastItem")),EMe=e=>kt()[Lu]?(0,LQ.jsx)(jlt,{...e}):null;EMe.Slot=function(t){return(0,LQ.jsx)(Hlt,{...t})};var K6=EMe;var TMe=c(te(),1);function RMe(e){return(0,TMe.useSelect)(t=>{if(e){let o=t(B).getSettings().blockInspectorAnimation,r=o?.animationParent,{getSelectedBlockClientId:n,getBlockParentsByBlockName:i}=t(B),s=n();return!i(s,r,!0)[0]&&e.name!==r?null:o?.[e.name]}return null},[e])}var q6=c(F(),1);var Ah=c(q(),1);var VQ=c(T(),1),{getViewportBreakpoints:Ult}=G(Lo),BMe={":hover":(0,Ah._x)("Hover","Name for the CSS pseudo-class selector"),":focus":(0,Ah._x)("Focus","Name for the CSS pseudo-class selector"),":focus-visible":(0,Ah._x)("Focus-visible","Name for the CSS pseudo-class selector"),":active":(0,Ah._x)("Active","Name for the CSS pseudo-class selector")},Wlt={"@tablet":(0,Ah.__)("Tablet"),"@mobile":(0,Ah.__)("Mobile")};function Glt(e){let t=Ult(e);return Object.entries(Wlt).filter(([o])=>(o!=="@tablet"||t.tablet!==void 0)&&(o!=="@mobile"||t.mobile!==void 0)).map(([o,r])=>({value:o,label:r}))}var Z6={"core/button":[":hover",":focus",":focus-visible",":active"],"core/navigation-link":[":hover",":focus",":focus-visible",":active"]};function IMe(e){return(Z6[e]??[]).filter(o=>BMe[o]).map(o=>({value:o,label:BMe[o]}))}var DQ="default",$lt=[];function PMe({name:e,value:t,onChange:o}){let r=(0,q6.useMemo)(()=>IMe(e),[e]),n=Dr();return r.length?(0,VQ.jsx)(k6,{pseudoStates:r,pseudoStateValue:t?.pseudo??DQ,onChangePseudoState:i=>o({pseudo:i}),popoverProps:n.popoverProps,showText:!1}):null}function OMe({name:e,value:t,isResponsiveEditing:o}){let r=(0,q6.useMemo)(()=>IMe(e),[e]),[n]=je("viewport"),i=(0,q6.useMemo)(()=>Glt(n),[n]);return!r.length&&!o?null:(0,VQ.jsx)(x6,{viewportStates:o?i:$lt,pseudoStates:r,viewportValue:t?.viewport??DQ,pseudoStateValue:t?.pseudo??DQ})}var Ye=c(T(),1);function MMe({clientId:e,showAdvancedControls:t=!0,showPositionControls:o=!0,showBindingsControls:r=!0}){let n=Nv({clientId:e});return(0,Ye.jsxs)(Ye.Fragment,{children:[(0,Ye.jsx)(Fe.Slot,{}),(0,Ye.jsx)(Fe.Slot,{group:"typography",label:(0,xs.__)("Typography")}),(0,Ye.jsx)(Fe.Slot,{group:"color",label:(0,xs.__)("Color"),className:"color-block-support-panel__inner-wrapper"}),(0,Ye.jsx)(Fe.Slot,{group:"background",label:(0,xs.__)("Background"),className:"background-block-support-panel__inner-wrapper"}),(0,Ye.jsx)(Fe.Slot,{group:"layout",label:(0,xs.__)("Layout")}),(0,Ye.jsx)(Fe.Slot,{group:"dimensions",label:(0,xs.__)("Dimensions")}),(0,Ye.jsx)(Fe.Slot,{group:"border",label:n}),(0,Ye.jsx)(Fe.Slot,{group:"elements",label:(0,xs.__)("Elements"),className:"elements-block-support-panel__inner-wrapper"}),o&&(0,Ye.jsx)($F,{}),(0,Ye.jsx)(Fe.Slot,{group:"styles"}),r&&(0,Ye.jsx)(Fe.Slot,{group:"bindings"}),t&&(0,Ye.jsx)("div",{children:(0,Ye.jsx)(WF,{})})]})}function Ylt({blockName:e,clientId:t,contentClientIds:o,isSectionBlock:r,selectedBlockStyleState:n}){let i=Nv({clientId:t}),s=vi(n)&&!Ma(n),a=r&&e!=="core/template-part";return(0,Ye.jsxs)(Ye.Fragment,{children:[a&&(0,Ye.jsx)(T5,{value:n,children:(0,Ye.jsx)(MQ,{blockName:e,clientId:t,contentClientIds:o})}),!a&&(0,Ye.jsxs)(Ye.Fragment,{children:[(0,Ye.jsx)(Fe.Slot,{group:"typography",label:(0,xs.__)("Typography")}),(0,Ye.jsx)(Fe.Slot,{group:"color",label:(0,xs.__)("Color"),className:"color-block-support-panel__inner-wrapper"}),(0,Ye.jsx)(Fe.Slot,{group:"background",label:(0,xs.__)("Background"),className:"background-block-support-panel__inner-wrapper"}),s&&(0,Ye.jsx)(Fe.Slot,{group:"layout",label:(0,xs.__)("Layout")}),(0,Ye.jsx)(Fe.Slot,{group:"dimensions",label:(0,xs.__)("Dimensions")}),(0,Ye.jsx)(Fe.Slot,{group:"border",label:i}),(0,Ye.jsx)(Fe.Slot,{group:"elements",label:(0,xs.__)("Elements"),className:"elements-block-support-panel__inner-wrapper"})]})]})}function Klt(){let{selectedBlockCount:e,renderedBlockName:t,renderedBlockClientId:o,blockType:r,isSectionBlock:n,isSectionBlockInSelection:i,hasBlockStyles:s,editedContentOnlySection:a,blockEditingMode:l,selectedBlockStyleState:u,showStateOnCanvas:d,isResponsiveEditing:f,blockStatesEditingEnabled:p}=(0,NR.useSelect)(k=>{let{getSettings:x,getSelectedBlockClientId:S,getSelectedBlockClientIds:C,getSelectedBlockCount:R,getBlockName:E,getParentSectionBlock:I,isSectionBlock:O,getEditedContentOnlySection:A,isWithinEditedContentOnlySection:P,getBlockEditingMode:L,getSelectedBlockStyleState:H,isSelectedBlockStyleStateShownOnCanvas:N,isResponsiveEditing:M}=G(k(B)),{getBlockStyles:V}=k(US.store),j=S(),z=P(j)?j:I(j)||j,W=z&&E(z),ee=W&&(0,US.getBlockType)(W),U=C().some(K=>O(K)),Q=W&&V(W),Z=Q&&Q.length>0;return{selectedBlockCount:R(),renderedBlockClientId:z,renderedBlockName:W,blockType:ee,isSectionBlockInSelection:U,isSectionBlock:O(z),hasBlockStyles:Z,editedContentOnlySection:A(),blockEditingMode:L(z),selectedBlockStyleState:H(z),showStateOnCanvas:N(z),isResponsiveEditing:M(),blockStatesEditingEnabled:x().blockStatesEditingEnabled}},[]),m=(0,NR.useSelect)(k=>{if(!n||!o)return[];let{getClientIdsOfDescendants:x,getBlockEditingMode:S,shouldRenderBlockListView:C}=G(k(B)),R=x(o),E=new Set;return R.forEach(I=>{C(I)&&x(I).forEach(A=>E.add(A))}),R.filter(I=>!E.has(I)&&S(I)==="contentOnly")},[n,o]),g=SMe(r?.name,m,n,s),h=g?.length>1,b=RMe(r),v=e>1,y=!qn(u);if(v&&!i)return(0,Ye.jsxs)("div",{className:"block-editor-block-inspector",children:[(0,Ye.jsx)(WX,{}),h?(0,Ye.jsx)(NQ,{tabs:g}):(0,Ye.jsx)(MMe,{showAdvancedControls:!1,showPositionControls:!1,showBindingsControls:!1})]});if(v&&i)return(0,Ye.jsx)("div",{className:"block-editor-block-inspector",children:(0,Ye.jsx)(WX,{})});let _=t===(0,US.getUnregisteredTypeHandlerName)();return!r||!o||_?(0,Ye.jsx)("span",{className:"block-editor-block-inspector__no-blocks",children:(0,xs.__)("No block selected.")}):(0,Ye.jsx)(qlt,{animate:b,wrapper:k=>(0,Ye.jsx)(Zlt,{blockInspectorAnimationSettings:b,renderedBlockClientId:o,children:k}),children:(0,Ye.jsx)(Xlt,{renderedBlockClientId:o,blockName:r.name,isSectionBlock:n,availableTabs:g,contentClientIds:m,hasBlockStyles:s,editedContentOnlySection:a,blockEditingMode:l,selectedBlockStyleState:u,showStateOnCanvas:d,isResponsiveEditing:f,blockStatesEditingEnabled:p,isBlockStyleStateSelected:y})})}var qlt=({animate:e,wrapper:t,children:o})=>e?t(o):o,Zlt=({blockInspectorAnimationSettings:e,renderedBlockClientId:t,children:o})=>{let r=e&&e.enterDirection==="leftToRight"?-50:50;return(0,Ye.jsx)(WS.__unstableMotion.div,{animate:{x:0,opacity:1,transition:{ease:"easeInOut",duration:.14}},initial:{x:r,opacity:0},children:o},t)},Xlt=({renderedBlockClientId:e,blockName:t,isSectionBlock:o,availableTabs:r,contentClientIds:n,hasBlockStyles:i,editedContentOnlySection:s,blockEditingMode:a,selectedBlockStyleState:l,showStateOnCanvas:u,isResponsiveEditing:d,blockStatesEditingEnabled:f=!0})=>{let p=(0,AMe.useRef)(null),m=r?.length>1,g=Ma(l),h=vi(l)&&d||Ma(l),b=s&&s!==e,v=Mn(s),y=Mn(e),_=y.isSynced,{setSelectedBlockStyleState:w,setSelectedBlockStyleStateCanvasPreview:k}=G((0,NR.useDispatch)(B)),x=C=>{w(e,C)},S=C=>{k(e,C)};return(0,Ye.jsxs)("div",{className:"block-editor-block-inspector",children:[b&&(0,Ye.jsx)(xE,{...v,className:v?.isSynced&&"is-synced",parentClientId:s}),(0,Ye.jsx)(xE,{...y,allowParentNavigation:!0,className:_&&"is-synced",isChild:b,clientId:e,controls:a==="default"&&f&&(0,Ye.jsx)(PMe,{name:t,value:l,onChange:x})}),a==="default"&&h&&(0,Ye.jsxs)(WS.__experimentalSpacer,{paddingX:4,paddingY:2,children:[g&&(0,Ye.jsx)(WS.ToggleControl,{label:(0,xs.__)("Show state on canvas"),checked:u,onChange:S}),(0,Ye.jsx)(OMe,{name:t,value:l,isResponsiveEditing:d})]}),(0,Ye.jsx)(hae,{clientId:e}),(0,Ye.jsx)(eOe,{clientId:e}),!h&&(0,Ye.jsx)(h3,{blockClientId:e}),(0,Ye.jsx)(lOe,{}),h&&(0,Ye.jsx)(Ylt,{clientId:e,contentClientIds:n,isSectionBlock:o,selectedBlockStyleState:l}),!h&&m&&(0,Ye.jsx)(Ye.Fragment,{children:(0,Ye.jsx)(NQ,{hasBlockStyles:i,clientId:e,blockName:t,tabs:r,isSectionBlock:o,contentClientIds:n})}),!h&&!m&&(0,Ye.jsxs)(Ye.Fragment,{children:[i&&(0,Ye.jsx)(Wx,{clientId:e}),(0,Ye.jsx)($6,{contentClientIds:n}),(0,Ye.jsx)(Fe.Slot,{group:"content"}),(0,Ye.jsx)(Fe.Slot,{group:"list",ref:p}),(0,Ye.jsx)(P5,{listViewRef:p}),!o&&(0,Ye.jsx)(MMe,{clientId:e})]}),!h&&(0,Ye.jsx)(K6.Slot,{}),(0,Ye.jsx)(zF,{},"back")]})},NMe=Klt;var FQ=c(Mt(),1);var LMe=c(T(),1),DMe=()=>((0,FQ.default)("__unstableUseClipboardHandler",{alternative:"BlockCanvas or WritingFlow",since:"6.4",version:"6.7"}),TE());function VMe(e){return(0,FQ.default)("CopyHandler",{alternative:"BlockCanvas or WritingFlow",since:"6.4",version:"6.7"}),(0,LMe.jsx)("div",{...e,ref:TE()})}var FMe=c(te(),1),zQ=c(F(),1);var jQ=c(T(),1),Qlt=()=>{};function Jlt({rootClientId:e,clientId:t,isAppender:o,showInserterHelpPanel:r,showMostUsedBlocks:n=!1,__experimentalInsertionIndex:i,__experimentalInitialTab:s,__experimentalInitialCategory:a,__experimentalFilterValue:l,onPatternCategorySelection:u,onSelect:d=Qlt,shouldFocusBlock:f=!1,onClose:p},m){let{destinationRootClientId:g}=(0,FMe.useSelect)(h=>{let{getBlockRootClientId:b}=h(B);return{destinationRootClientId:e||b(t)||void 0}},[t,e]);return(0,jQ.jsx)(sq,{onSelect:d,rootClientId:g,clientId:t,isAppender:o,showInserterHelpPanel:r,showMostUsedBlocks:n,__experimentalInsertionIndex:i,__experimentalFilterValue:l,onPatternCategorySelection:u,__experimentalInitialTab:s,__experimentalInitialCategory:a,shouldFocusBlock:f,ref:m,onClose:p})}var HQ=(0,zQ.forwardRef)(Jlt);function ect(e,t){return(0,jQ.jsx)(HQ,{...e,onPatternCategorySelection:void 0,ref:t})}var zMe=(0,zQ.forwardRef)(ect);var jMe=c(Mt(),1);function HMe(){return(0,jMe.default)("wp.blockEditor.MultiSelectScrollIntoView",{hint:"This behaviour is now built-in.",since:"5.8"}),null}var UMe=c(ue(),1),LR=c(Lt(),1),Mh=c(wo(),1),WMe=c(T(),1),tct=window.navigator.userAgent.indexOf("Trident")!==-1,oct=new Set([Mh.UP,Mh.DOWN,Mh.LEFT,Mh.RIGHT]),rct=.75;function UQ(){return(0,UMe.useRefEffect)(e=>{let{ownerDocument:t}=e,{defaultView:o}=t,r,n,i;function s(){r||(r=o.requestAnimationFrame(()=>{f(),r=null}))}function a(h){n&&o.cancelAnimationFrame(n),n=o.requestAnimationFrame(()=>{l(h),n=null})}function l({keyCode:h}){if(!m())return;let b=(0,LR.computeCaretRect)(o);if(!b)return;if(!i){i=b;return}if(oct.has(h)){i=b;return}let v=b.top-i.top;if(v===0)return;let y=(0,LR.getScrollContainer)(e);if(!y)return;let _=y===t.body||y===t.documentElement,w=_?o.scrollY:y.scrollTop,k=_?0:y.getBoundingClientRect().top,x=_?i.top/o.innerHeight:(i.top-k)/(o.innerHeight-k);if(w===0&&x<rct&&g()){i=b;return}let S=_?o.innerHeight:y.clientHeight;if(i.top+i.height>k+S||i.top<k){i=b;return}_?o.scrollBy(0,v):y.scrollTop+=v}function u(){t.addEventListener("selectionchange",d)}function d(){t.removeEventListener("selectionchange",d),f()}function f(){m()&&(i=(0,LR.computeCaretRect)(o))}function p(){let{activeElement:h}=t;if(!h)return null;if(!h.isContentEditable||!h.contains(e))return h;let{anchorNode:b}=o.getSelection();return b?(b.nodeType===b.ELEMENT_NODE?b:b.parentElement)?.closest('[contenteditable="true"]')??null:null}function m(){let h=p();return!!h&&e.contains(h)&&h.isContentEditable}function g(){let h=e.querySelectorAll('[contenteditable="true"]');return h[h.length-1]===p()}return o.addEventListener("scroll",s,!0),o.addEventListener("resize",s,!0),e.addEventListener("keydown",a),e.addEventListener("keyup",l),e.addEventListener("mousedown",u),e.addEventListener("touchstart",u),()=>{o.removeEventListener("scroll",s,!0),o.removeEventListener("resize",s,!0),e.removeEventListener("keydown",a),e.removeEventListener("keyup",l),e.removeEventListener("mousedown",u),e.removeEventListener("touchstart",u),t.removeEventListener("selectionchange",d),o.cancelAnimationFrame(r),o.cancelAnimationFrame(n)}},[])}function nct({children:e}){return(0,WMe.jsx)("div",{ref:UQ(),className:"block-editor__typewriter",children:e})}var ict=tct?e=>e.children:nct,GMe=ict;var Uv=c(F(),1),WQ=c(Mt(),1);var GQ=c(T(),1),X6=(0,Uv.createContext)({});X6.displayName="RenderedRefsContext";function sct(e,t,o){let r={...e,[t]:e[t]?new Set(e[t]):new Set};return r[t].add(o),r}function $Q({children:e,uniqueId:t,blockName:o=""}){let r=(0,Uv.useContext)(X6),{name:n}=kt();o=o||n;let i=(0,Uv.useMemo)(()=>sct(r,o,t),[r,o,t]);return(0,GQ.jsx)(X6.Provider,{value:i,children:e})}function YQ(e,t=""){let o=(0,Uv.useContext)(X6),{name:r}=kt();return t=t||r,!!o[t]?.has(e)}var $Me=e=>((0,WQ.default)("wp.blockEditor.__experimentalRecursionProvider",{since:"6.5",alternative:"wp.blockEditor.RecursionProvider"}),(0,GQ.jsx)($Q,{...e})),YMe=(...e)=>((0,WQ.default)("wp.blockEditor.__experimentalUseHasRecursion",{since:"6.5",alternative:"wp.blockEditor.useHasRecursion"}),YQ(...e));var J6=c(Y(),1),KQ=c(q(),1),qQ=c(F(),1),qMe=c(lu(),1);var Ya=c(Y(),1);var KMe=c(q(),1),Gp=c(T(),1);function Q6({title:e,help:t,actions:o=[],onClose:r}){return(0,Gp.jsxs)(Ya.__experimentalVStack,{className:"block-editor-inspector-popover-header",spacing:4,children:[(0,Gp.jsxs)(Ya.__experimentalHStack,{alignment:"center",children:[(0,Gp.jsx)(Ya.__experimentalHeading,{className:"block-editor-inspector-popover-header__heading",level:2,size:13,children:e}),(0,Gp.jsx)(Ya.__experimentalSpacer,{}),o.map(({label:n,icon:i,onClick:s})=>(0,Gp.jsx)(Ya.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,Gp.jsx)(Ya.Button,{size:"small",className:"block-editor-inspector-popover-header__action",label:(0,KMe.__)("Close"),icon:fb,onClick:r})]}),t&&(0,Gp.jsx)(Ya.__experimentalText,{children:t})]})}var GS=c(T(),1);function act({onClose:e,onChange:t,showPopoverHeader:o=!0,showPopoverHeaderActions:r,isCompact:n,currentDate:i,title:s,...a},l){let u={startOfWeek:(0,qMe.getSettings)().l10n.startOfWeek,onChange:t,currentDate:n?void 0:i,currentTime:n?i:void 0,...a},d=n?J6.TimePicker:J6.DateTimePicker;return(0,GS.jsxs)("div",{ref:l,className:"block-editor-publish-date-time-picker",children:[o&&(0,GS.jsx)(Q6,{title:s||(0,KQ.__)("Publish"),actions:r?[{label:(0,KQ.__)("Reset"),onClick:()=>t?.(null)}]:void 0,onClose:e}),(0,GS.jsx)(d,{...u})]})}var ZQ=(0,qQ.forwardRef)(act);function lct(e,t){return(0,GS.jsx)(ZQ,{...e,showPopoverHeaderActions:!0,isCompact:!1,ref:t})}var ZMe=(0,qQ.forwardRef)(lct);var XMe=c(Mt(),1),QMe=c(F(),1);function cct(){return(0,XMe.default)("wp.blockEditor.ToolSelector",{since:"6.9",hint:"The ToolSelector component no longer renders anything."}),null}var JMe=(0,QMe.forwardRef)(cct);var VR=c(T(),1),Xe=e=>{if(e===null||typeof e!="object"||Array.isArray(e))return e;let t=Object.entries(e).map(([o,r])=>[o,Xe(r)]).filter(([,o])=>o!==void 0);return t.length?Object.fromEntries(t):void 0};function O6(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=yf(s,d);f&&(a={...a,attributes:Ge(a.attributes,d,f)})})}),a}function io(e,t,o){let n=(0,eNe.getBlockSupport)(e,t)?.__experimentalSkipSerialization;return Array.isArray(n)?n.includes(o):n}var $p=new WeakMap;function Dl({id:e,css:t}){return bu({id:e,css:t})}function bu({id:e,css:t,assets:o,__unstableType:r,variation:n,clientId:i}={}){let{setStyleOverride:s,deleteStyleOverride:a}=G((0,e4.useDispatch)(B)),l=(0,e4.useRegistry)(),u=(0,cc.useId)();(0,cc.useEffect)(()=>{if(!t&&!o)return;let d=e||u,f={id:e,css:t,assets:o,__unstableType:r,variation:n,clientId:i};return $p.get(l)||$p.set(l,[]),$p.get(l).push([d,f]),window.queueMicrotask(()=>{$p.get(l)?.length&&l.batch(()=>{$p.get(l).forEach(p=>{s(...p)}),$p.set(l,[])})}),()=>{$p.get(l)?.find(([m])=>m===d)?$p.set(l,$p.get(l).filter(([m])=>m!==d)):a(d)}},[e,t,i,o,r,u,s,a,l,n])}function $d(e,t){let[o,r,n,i,s,a,l,u,d,f,p,m,g,h,b,v,y,_,w,k,x,S,C,R,E,I,O,A,P,L,H,N,M,V,j,D,z,W,ee,J,U,Q,Z,K,X,oe,ie,se,be,pe,ke,ye,Pe,_e,ve,Se,fe,Ce,ne,ae,Ee,he,Ae]=je("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"),et=(0,cc.useMemo)(()=>({background:{backgroundImage:o,backgroundSize:r,gradient:n},color:{palette:{custom:K,theme:oe,default:ie},gradients:{custom:Pe,theme:_e,default:ve},duotone:{custom:pe,theme:ke,default:ye},defaultGradients:Se,defaultPalette:se,defaultDuotone:be,custom:Z,customGradient:fe,customDuotone:X,background:Ce,link:ne,heading:Ee,button:he,text:ae},typography:{fontFamilies:{custom:i,default:s,theme:a},fontSizes:{custom:u,default:d,theme:f},customFontSize:p,defaultFontSizes:l,fontStyle:m,fontWeight:g,lineHeight:h,textAlign:b,textColumns:v,textDecoration:y,textIndent:_,textTransform:k,letterSpacing:x,writingMode:w},spacing:{spacingSizes:{custom:O,default:A,theme:P},customSpacingSize:I,defaultSpacingSizes:E,padding:S,margin:C,blockGap:R,units:L},border:{color:W,radius:ee,style:J,width:U,radiusSizes:Q},dimensions:{aspectRatio:H,height:N,minHeight:M,minWidth:V,width:j,dimensionSizes:D},layout:z,parentLayout:t,shadow:Ae}),[o,r,n,i,s,a,l,u,d,f,p,m,g,h,b,v,y,_,k,x,w,S,C,R,E,I,O,A,P,L,H,N,M,V,j,D,z,t,W,ee,J,U,Q,Z,K,X,oe,ie,se,be,pe,ke,ye,Pe,_e,ve,Se,fe,Ce,ne,ae,Ee,he,Ae]);return YF(et,e)}function tNe(e){e=e.map(o=>({...o,Edit:(0,cc.memo)(o.edit)}));let t=(0,XQ.createHigherOrderComponent)(o=>function(n){let i=kt();return[...e.map((s,a)=>{let{Edit:l,hasSupport:u,attributeKeys:d=[],shareWithChildBlocks:f,supportsPatternEditing:p}=s;if(!(p&&i[r_]||i[Lu]||i[o_]&&f)||!u(n.name))return null;let g={};for(let h of d)n.attributes[h]&&(g[h]=n.attributes[h]);return(0,VR.jsx)(l,{name:n.name,isSelected:n.isSelected,clientId:n.clientId,setAttributes:n.setAttributes,__unstableParentLayout:n.__unstableParentLayout,...g},a)}),(0,VR.jsx)(o,{...n},"edit")]},"withBlockEditHooks");(0,DR.addFilter)("editor.BlockEdit","core/editor/hooks",t)}function uct({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,cc.useEffect)(()=>(i(n),()=>{i(void 0)})),null}var dct=(0,cc.memo)(uct);function oNe(e){let t=(0,XQ.createHigherOrderComponent)(o=>function(n){let[i,s]=(0,cc.useState)(Array(e.length).fill(void 0));return[...e.map((a,l)=>{let{hasSupport:u,attributeKeys:d=[],useBlockProps:f,isMatch:p}=a,m={};for(let g of d)n.attributes[g]&&(m[g]=n.attributes[g]);return!Object.keys(m).length||!u(n.name)||p&&!p(m)?null:(0,VR.jsx)(dct,{index:l,useBlockProps:f,setAllWrapperProps:s,name:n.name,clientId:n.clientId,...m},l)}),(0,VR.jsx)(o,{...n,wrapperProps:i.filter(Boolean).reduce((a,l)=>({...a,...l,className:$(a.className,l.className),style:{...a.style,...l.style}}),n.wrapperProps||{})},"edit")]},"withBlockListBlockHooks");(0,DR.addFilter)("editor.BlockListBlock","core/editor/hooks",t)}function rNe(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,DR.addFilter)("blocks.getSaveContent.extraProps","core/editor/hooks",t,0),(0,DR.addFilter)("blocks.getSaveContent.extraProps","core/editor/hooks",o=>(o.hasOwnProperty("className")&&!o.className&&delete o.className,o))}var nNe=c(ce(),1),iNe=c(Bo(),1);function fct(e){let{apiVersion:t=1}=e;return t<2&&(0,nNe.hasBlockSupport)(e,"lightBlockWrapper",!1)&&(e.apiVersion=2),e}(0,iNe.addFilter)("blocks.registerBlockType","core/compat/migrateLightBlockWrapper",fct);function sNe(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})})};pct=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=>{sNe(l)}),["SOURCE","SCRIPT","VIDEO","LINK"].includes(a.nodeName)&&sNe(a))})})})});e()}var pct;var aNe=c(Bo(),1),uc=c(ce(),1);var QQ=c(T(),1),JQ=["left","center","right","wide","full"],mct=["wide","full"];function eJ(e,t=!0,o=!0){let r;return Array.isArray(e)?r=JQ.filter(n=>e.includes(n)):e===!0?r=[...JQ]:r=[],!o||e===!0&&!t?r.filter(n=>!mct.includes(n)):r}function gct(e){return"type"in(e.attributes?.align??{})||(0,uc.hasBlockSupport)(e,"align")&&(e.attributes={...e.attributes,align:{type:"string",enum:[...JQ,""]}}),e}function hct({name:e,align:t,setAttributes:o}){let r=eJ((0,uc.getBlockSupport)(e,"align"),(0,uc.hasBlockSupport)(e,"alignWide",!0)),n=DC(r).map(({name:a})=>a),i=zr();return!n.length||i!=="default"?null:(0,QQ.jsx)(Ko,{group:"block",__experimentalShareWithChildBlocks:!0,children:(0,QQ.jsx)(H2,{value:t,onChange:a=>{a||(0,uc.getBlockType)(e)?.attributes?.align?.default&&(a=""),o({align:a})},controls:n})})}var t4={shareWithChildBlocks:!0,edit:hct,useBlockProps:bct,addSaveProps:yct,attributeKeys:["align"],hasSupport(e){return(0,uc.hasBlockSupport)(e,"align",!1)}};function bct({name:e,align:t}){let o=eJ((0,uc.getBlockSupport)(e,"align"),(0,uc.hasBlockSupport)(e,"alignWide",!0));return DC(o).some(n=>n.name===t)?{"data-align":t}:{}}function yct(e,t,o){let{align:r}=o,n=(0,uc.getBlockSupport)(t,"align"),i=(0,uc.hasBlockSupport)(t,"alignWide",!0);return eJ(n,i).includes(r)&&(e.className=$(`align${r}`,e.className)),e}(0,aNe.addFilter)("blocks.registerBlockType","core/editor/align/addAttribute",gct);var lNe=c(Bo(),1);function vct(e){return"type"in(e.attributes?.lock??{})||(e.attributes={...e.attributes,lock:{type:"object"}}),e}(0,lNe.addFilter)("blocks.registerBlockType","core/lock/addAttribute",vct);var iJ=c(Bo(),1),ZS=c(ce(),1);var FR=c(Y(),1),n4=c(q(),1),_Ne=c(F(),1),wNe=c(te(),1),i4=c(ce(),1);var la=c(Y(),1),bNe=c(F(),1),qS=c(q(),1),yNe=c(te(),1);var rJ=c(ce(),1),mNe=c(te(),1),KS=c(Y(),1),vu=c(q(),1),o4=c(F(),1),gNe=c(ue(),1),hNe=c(Yo(),1);var tJ=c(F(),1),dNe=c(ue(),1),fNe=c(Y(),1);var cNe=c(Y(),1);var $S=c(T(),1);function _ct({blockTypes:e,value:t,onItemChange:o}){return(0,$S.jsx)("ul",{className:"block-editor-block-manager__checklist",children:e.map(r=>(0,$S.jsxs)("li",{className:"block-editor-block-manager__checklist-item",children:[(0,$S.jsx)(cNe.CheckboxControl,{label:r.title,checked:t.includes(r.name),onChange:(...n)=>o(r,...n)}),(0,$S.jsx)(Nt,{icon:r.icon})]},r.name))})}var uNe=_ct;var YS=c(T(),1);function pNe({title:e,blockTypes:t,selectedBlockTypes:o,onChange:r}){let n=(0,dNe.useInstanceId)(pNe),i=(0,tJ.useCallback)((f,p)=>{r(p?[...o,f]:o.filter(({name:m})=>m!==f.name))},[o,r]),s=(0,tJ.useCallback)(f=>{r(f?[...o,...t.filter(p=>!o.find(({name:m})=>m===p.name))]:o.filter(p=>!t.find(({name:m})=>m===p.name)))},[t,o,r]);if(!t.length)return null;let a=t.map(({name:f})=>f).filter(f=>(o??[]).some(p=>p.name===f)),l="block-editor-block-manager__category-title-"+n,u=a.length===t.length,d=!u&&a.length>0;return(0,YS.jsxs)("div",{role:"group","aria-labelledby":l,className:"block-editor-block-manager__category",children:[(0,YS.jsx)(fNe.CheckboxControl,{checked:u,onChange:s,className:"block-editor-block-manager__category-title",indeterminate:d,label:(0,YS.jsx)("span",{id:l,children:e})}),(0,YS.jsx)(uNe,{blockTypes:t,value:a,onItemChange:i})]})}var oJ=pNe;var Yp=c(T(),1);function r4({blockTypes:e,selectedBlockTypes:t,onChange:o,showSelectAll:r=!0}){let n=(0,gNe.useDebounce)(hNe.speak,500),[i,s]=(0,o4.useState)(""),{categories:a,isMatchingSearchTerm:l}=(0,mNe.useSelect)(p=>({categories:p(rJ.store).getCategories(),isMatchingSearchTerm:p(rJ.store).isMatchingSearchTerm}),[]),u=e.filter(p=>!i||l(p,i)),d=t.length>0&&t.length!==e.length,f=e.length>0&&t.length===e.length;return(0,o4.useEffect)(()=>{if(!i)return;let p=u.length,m=(0,vu.sprintf)((0,vu._n)("%d result found.","%d results found.",p),p);n(m)},[u?.length,i,n]),(0,Yp.jsxs)(KS.__experimentalVStack,{className:"block-editor-block-manager__content",spacing:4,children:[(0,Yp.jsx)(KS.SearchControl,{label:(0,vu.__)("Search for a block"),placeholder:(0,vu.__)("Search for a block"),value:i,onChange:p=>s(p),className:"block-editor-block-manager__search"}),r&&(0,Yp.jsx)(KS.CheckboxControl,{className:"block-editor-block-manager__select-all",label:(0,vu.__)("Select all"),checked:f,onChange:()=>{o(f?[]:e)},indeterminate:d}),(0,Yp.jsxs)("div",{tabIndex:"0",role:"region","aria-label":(0,vu.__)("Available block types"),className:"block-editor-block-manager__results",children:[u.length===0&&(0,Yp.jsx)("p",{className:"block-editor-block-manager__no-results",children:(0,vu.__)("No blocks found.")}),a.map(p=>(0,Yp.jsx)(oJ,{title:p.title,blockTypes:u.filter(m=>m.category===p.slug),selectedBlockTypes:t,onChange:o},p.slug)),(0,Yp.jsx)(oJ,{title:(0,vu.__)("Uncategorized"),blockTypes:u.filter(({category:p})=>!p),selectedBlockTypes:t,onChange:o})]})]})}var _u=c(T(),1);function vNe({clientId:e,blockTypes:t,selectedBlockTypes:o,onClose:r}){let[n,i]=(0,bNe.useState)(o),{updateBlockAttributes:s}=(0,yNe.useDispatch)(B),a=()=>{let l=n.length===t.length,u=n.map(({name:d})=>d);s(e,{allowedBlocks:l?void 0:u}),r()};return(0,_u.jsx)(la.Modal,{title:(0,qS._x)("Manage allowed blocks","modal title"),onRequestClose:r,overlayClassName:"block-editor-block-allowed-blocks-modal",focusOnMount:"firstContentElement",size:"medium",children:(0,_u.jsxs)(la.__experimentalVStack,{as:"form",onSubmit:l=>{l.preventDefault(),a()},spacing:"4",children:[(0,_u.jsx)(la.__experimentalText,{children:(0,qS.__)("Select which blocks can be added inside this container.")}),(0,_u.jsx)(r4,{blockTypes:t,selectedBlockTypes:n,onChange:l=>{i(l)}}),(0,_u.jsxs)(la.Flex,{className:"block-editor-block-allowed-blocks-modal__actions",justify:"flex-end",expanded:!1,children:[(0,_u.jsx)(la.FlexItem,{children:(0,_u.jsx)(la.Button,{variant:"tertiary",onClick:r,__next40pxDefaultSize:!0,children:(0,qS.__)("Cancel")})}),(0,_u.jsx)(la.FlexItem,{children:(0,_u.jsx)(la.Button,{variant:"primary",type:"submit",__next40pxDefaultSize:!0,children:(0,qS.__)("Apply")})})]})]})})}var Wv=c(T(),1);function kNe({clientId:e}){let[t,o]=(0,_Ne.useState)(!1),{blockTypes:r,selectedBlockNames:n}=(0,wNe.useSelect)(a=>{let{getBlockAttributes:l}=a(B);return{blockTypes:a(i4.store).getBlockTypes(),selectedBlockNames:l(e)?.allowedBlocks}},[e]),i=r.filter(a=>(0,i4.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,Wv.jsxs)("div",{className:"block-editor-block-allowed-blocks-control",children:[(0,Wv.jsxs)(FR.BaseControl,{help:(0,n4.__)("Specify which blocks are allowed inside this container."),children:[(0,Wv.jsx)(FR.BaseControl.VisualLabel,{children:(0,n4.__)("Allowed Blocks")}),(0,Wv.jsx)(FR.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{o(!0)},className:"block-editor-block-allowed-blocks-control__button",children:(0,n4.__)("Manage allowed blocks")})]}),t&&(0,Wv.jsx)(vNe,{clientId:e,blockTypes:i,selectedBlockTypes:s,onClose:()=>o(!1)})]})}var nJ=c(T(),1);function wct({clientId:e}){return zr()==="contentOnly"?null:(0,nJ.jsx)(cT.Fill,{children:(0,nJ.jsx)(kNe,{clientId:e})})}var xNe={edit:wct,attributeKeys:["allowedBlocks"],hasSupport(e){return(0,ZS.hasBlockSupport)(e,"allowedBlocks")}};function kct(e){return e?.attributes?.allowedBlocks?.type||(0,ZS.hasBlockSupport)(e,"allowedBlocks")&&(e.attributes={...e.attributes,allowedBlocks:{type:"array"}}),e}(0,iJ.addFilter)("blocks.registerBlockType","core/allowedBlocks/attribute",kct);function xct(e,t,o,r){if(!(0,ZS.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,ZS.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,iJ.addFilter)("blocks.switchToBlockType.transformedBlock","core/allowedBlocks/addTransforms",xct);var SNe=c(Bo(),1),s4=c(Y(),1),zR=c(q(),1),a4=c(ce(),1);var Nh=c(T(),1),Sct=/[\s#]/g;function Cct(e){return"type"in(e.attributes?.anchor??{})||(0,a4.hasBlockSupport)(e,"anchor")&&(e.attributes={...e.attributes,anchor:{type:"string"}}),e}function Ect({anchor:e,setAttributes:t}){return zr()!=="default"?null:(0,Nh.jsx)(Fe,{group:"advanced",children:(0,Nh.jsx)(s4.TextControl,{className:"html-anchor-control",label:(0,zR.__)("HTML anchor"),help:(0,Nh.jsxs)(Nh.Fragment,{children:[(0,zR.__)("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.")," ",(0,Nh.jsx)(s4.ExternalLink,{href:(0,zR.__)("https://wordpress.org/documentation/article/page-jumps/"),children:(0,zR.__)("Learn more about anchors")})]}),value:e||"",placeholder:null,onChange:r=>{r=r.replace(Sct,"-"),t({anchor:r!==""?r:void 0})},autoCapitalize:"none",autoComplete:"off"})})}var sJ={addSaveProps:Tct,edit:Ect,attributeKeys:["anchor"],hasSupport(e){return(0,a4.hasBlockSupport)(e,"anchor")}};function Tct(e,t,o){return(0,a4.hasBlockSupport)(t,"anchor")&&(e.id=o.anchor===""?null:o.anchor),e}(0,SNe.addFilter)("blocks.registerBlockType","core/anchor/attribute",Cct);var CNe=c(Bo(),1),l4=c(ce(),1);function Rct(e){return e?.attributes?.ariaLabel?.type||(0,l4.hasBlockSupport)(e,"ariaLabel")&&(e.attributes={...e.attributes,ariaLabel:{type:"string"}}),e}function Bct(e,t,o){return(0,l4.hasBlockSupport)(t,"ariaLabel")&&!io(t,"ariaLabel","ariaLabel")&&(e["aria-label"]=o.ariaLabel===""?null:o.ariaLabel),e}var ENe={addSaveProps:Bct,attributeKeys:["ariaLabel"],hasSupport(e){return(0,l4.hasBlockSupport)(e,"ariaLabel")}};(0,CNe.addFilter)("blocks.registerBlockType","core/ariaLabel/attribute",Rct);var m0=c(ce(),1),S5e=c(ue(),1),a8=c(Y(),1),l8=c(te(),1);var aJ=c(q(),1);var cr="isAny",ur="isNone",Yi="isAll",Ki="isNotAll",Sn="between",Ss="inThePast",ca="over",Tr="is",Rr="isNot",Lh="lessThan",Dh="greaterThan",Vh="lessThanOrEqual",Fh="greaterThanOrEqual",wu="before",ku="after",xu="beforeInc",Su="afterInc",Yd="contains",Kd="notContains",qd="startsWith",Cu="on",Eu="notOn";var WPo={asc:(0,aJ.__)("Sort ascending"),desc:(0,aJ.__)("Sort descending")};var jR=c(F(),1),Ict=[];function ua({elements:e,getElements:t}){let o=Array.isArray(e)&&e.length>0?e:Ict,[r,n]=(0,jR.useState)(o),[i,s]=(0,jR.useState)(!1);return(0,jR.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 qe=c(q(),1),jr=c(F(),1),HR=c(lu(),1);var Pct=/(?:[Zz]|[+-](?:[01]\d|2[0-3]):?[0-5]\d)$/,Oct=["HH:mm","HH:mm:ss"],Act=new Date(2e3,0,1);function Cs(e){if(typeof e!="string")return null;let t=e.trim().replace(Pct,"");for(let o of Oct){let r=sme(t,o,Act);if(zc(r))return r.getHours()*3600+r.getMinutes()*60+r.getSeconds()}return null}var lJ=c(T(),1),cn={Name:(0,lJ.jsx)("span",{className:"dataviews-filters__summary-filter-text-name"}),Value:(0,lJ.jsx)("span",{className:"dataviews-filters__summary-filter-text-value"})};function XS(e,t){let o=Cs(t);return o!==null?[Cs(e)??NaN,o]:[(0,HR.getDate)(e).getTime(),(0,HR.getDate)(t).getTime()]}function TNe(e,t){switch(t){case"days":return yy(new Date,e);case"weeks":return fme(new Date,e);case"months":return qN(new Date,e);case"years":return ZN(new Date,e);default:return new Date}}var RNe={label:(0,qe.__)("Is none of"),filterText:(e,t)=>(0,jr.createInterpolateElement)((0,qe.sprintf)((0,qe.__)("<Name>%1$s is none of: </Name><Value>%2$s</Value>"),e.name,t.map(o=>o.label).join(", ")),cn),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"},BNe=[{name:cr,label:(0,qe.__)("Includes"),filterText:(e,t)=>(0,jr.createInterpolateElement)((0,qe.sprintf)((0,qe.__)("<Name>%1$s includes: </Name><Value>%2$s</Value>"),e.name,t.map(o=>o.label).join(", ")),cn),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:ur,...RNe},{name:Yi,label:(0,qe.__)("Includes all"),filterText:(e,t)=>(0,jr.createInterpolateElement)((0,qe.sprintf)((0,qe.__)("<Name>%1$s includes all: </Name><Value>%2$s</Value>"),e.name,t.map(o=>o.label).join(", ")),cn),filter(e,t,o){return o?.length?o.every(r=>t.getValue({item:e})?.includes(r)):!0},selection:"multi"},{name:Ki,...RNe},{name:Sn,label:(0,qe.__)("Between (inc)"),filterText:(e,t)=>(0,jr.createInterpolateElement)((0,qe.sprintf)((0,qe.__)("<Name>%1$s between (inc): </Name><Value>%2$s and %3$s</Value>"),e.name,t[0].label[0],t[0].label[1]),cn),filter(e,t,o){if(!Array.isArray(o)||o.length!==2||o.includes(void 0)||o.includes("")||o.includes(null))return!0;let r=t.getValue({item:e}),[n,i]=o.map(Cs);if(n!==null&&i!==null){let s=Cs(r);return s!==null&&s>=n&&s<=i}return typeof r=="number"||r instanceof Date||typeof r=="string"?r>=o[0]&&r<=o[1]:!1},selection:"custom"},{name:Ss,label:(0,qe.__)("In the past"),filterText:(e,t)=>(0,jr.createInterpolateElement)((0,qe.sprintf)((0,qe.__)("<Name>%1$s is in the past: </Name><Value>%2$s</Value>"),e.name,`${t[0].value.value} ${t[0].value.unit}`),cn),filter(e,t,o){if(o?.value===void 0||o?.unit===void 0)return!0;let r=TNe(o.value,o.unit),n=(0,HR.getDate)(t.getValue({item:e}));return n>=r&&n<=new Date},selection:"custom"},{name:ca,label:(0,qe.__)("Over"),filterText:(e,t)=>(0,jr.createInterpolateElement)((0,qe.sprintf)((0,qe.__)("<Name>%1$s is over: </Name><Value>%2$s</Value>"),e.name,`${t[0].value.value} ${t[0].value.unit}`),cn),filter(e,t,o){if(o?.value===void 0||o?.unit===void 0)return!0;let r=TNe(o.value,o.unit);return(0,HR.getDate)(t.getValue({item:e}))<r},selection:"custom"},{name:Tr,label:(0,qe.__)("Is"),filterText:(e,t)=>(0,jr.createInterpolateElement)((0,qe.sprintf)((0,qe.__)("<Name>%1$s is: </Name><Value>%2$s</Value>"),e.name,t[0].label),cn),filter(e,t,o){return o===t.getValue({item:e})||o===void 0},selection:"single"},{name:Rr,label:(0,qe.__)("Is not"),filterText:(e,t)=>(0,jr.createInterpolateElement)((0,qe.sprintf)((0,qe.__)("<Name>%1$s is not: </Name><Value>%2$s</Value>"),e.name,t[0].label),cn),filter(e,t,o){return o!==t.getValue({item:e})},selection:"single"},{name:Lh,label:(0,qe.__)("Less than"),filterText:(e,t)=>(0,jr.createInterpolateElement)((0,qe.sprintf)((0,qe.__)("<Name>%1$s is less than: </Name><Value>%2$s</Value>"),e.name,t[0].label),cn),filter(e,t,o){return o===void 0?!0:t.getValue({item:e})<o},selection:"single"},{name:Dh,label:(0,qe.__)("Greater than"),filterText:(e,t)=>(0,jr.createInterpolateElement)((0,qe.sprintf)((0,qe.__)("<Name>%1$s is greater than: </Name><Value>%2$s</Value>"),e.name,t[0].label),cn),filter(e,t,o){return o===void 0?!0:t.getValue({item:e})>o},selection:"single"},{name:Vh,label:(0,qe.__)("Less than or equal"),filterText:(e,t)=>(0,jr.createInterpolateElement)((0,qe.sprintf)((0,qe.__)("<Name>%1$s is less than or equal to: </Name><Value>%2$s</Value>"),e.name,t[0].label),cn),filter(e,t,o){return o===void 0?!0:t.getValue({item:e})<=o},selection:"single"},{name:Fh,label:(0,qe.__)("Greater than or equal"),filterText:(e,t)=>(0,jr.createInterpolateElement)((0,qe.sprintf)((0,qe.__)("<Name>%1$s is greater than or equal to: </Name><Value>%2$s</Value>"),e.name,t[0].label),cn),filter(e,t,o){return o===void 0?!0:t.getValue({item:e})>=o},selection:"single"},{name:wu,label:(0,qe.__)("Before"),filterText:(e,t)=>(0,jr.createInterpolateElement)((0,qe.sprintf)((0,qe.__)("<Name>%1$s is before: </Name><Value>%2$s</Value>"),e.name,t[0].label),cn),filter(e,t,o){if(o===void 0)return!0;let[r,n]=XS(t.getValue({item:e}),o);return r<n},selection:"single"},{name:ku,label:(0,qe.__)("After"),filterText:(e,t)=>(0,jr.createInterpolateElement)((0,qe.sprintf)((0,qe.__)("<Name>%1$s is after: </Name><Value>%2$s</Value>"),e.name,t[0].label),cn),filter(e,t,o){if(o===void 0)return!0;let[r,n]=XS(t.getValue({item:e}),o);return r>n},selection:"single"},{name:xu,label:(0,qe.__)("Before (inc)"),filterText:(e,t)=>(0,jr.createInterpolateElement)((0,qe.sprintf)((0,qe.__)("<Name>%1$s is on or before: </Name><Value>%2$s</Value>"),e.name,t[0].label),cn),filter(e,t,o){if(o===void 0)return!0;let[r,n]=XS(t.getValue({item:e}),o);return r<=n},selection:"single"},{name:Su,label:(0,qe.__)("After (inc)"),filterText:(e,t)=>(0,jr.createInterpolateElement)((0,qe.sprintf)((0,qe.__)("<Name>%1$s is on or after: </Name><Value>%2$s</Value>"),e.name,t[0].label),cn),filter(e,t,o){if(o===void 0)return!0;let[r,n]=XS(t.getValue({item:e}),o);return r>=n},selection:"single"},{name:Yd,label:(0,qe.__)("Contains"),filterText:(e,t)=>(0,jr.createInterpolateElement)((0,qe.sprintf)((0,qe.__)("<Name>%1$s contains: </Name><Value>%2$s</Value>"),e.name,t[0].label),cn),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:Kd,label:(0,qe.__)("Doesn't contain"),filterText:(e,t)=>(0,jr.createInterpolateElement)((0,qe.sprintf)((0,qe.__)("<Name>%1$s doesn't contain: </Name><Value>%2$s</Value>"),e.name,t[0].label),cn),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:qd,label:(0,qe.__)("Starts with"),filterText:(e,t)=>(0,jr.createInterpolateElement)((0,qe.sprintf)((0,qe.__)("<Name>%1$s starts with: </Name><Value>%2$s</Value>"),e.name,t[0].label),cn),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:Cu,label:(0,qe.__)("On"),filterText:(e,t)=>(0,jr.createInterpolateElement)((0,qe.sprintf)((0,qe.__)("<Name>%1$s is: </Name><Value>%2$s</Value>"),e.name,t[0].label),cn),filter(e,t,o){if(o===void 0)return!0;let[r,n]=XS(t.getValue({item:e}),o);return r===n},selection:"single"},{name:Eu,label:(0,qe.__)("Not on"),filterText:(e,t)=>(0,jr.createInterpolateElement)((0,qe.sprintf)((0,qe.__)("<Name>%1$s is not: </Name><Value>%2$s</Value>"),e.name,t[0].label),cn),filter(e,t,o){if(o===void 0)return!0;let[r,n]=XS(t.getValue({item:e}),o);return r!==n},selection:"single"}],INe=e=>BNe.find(t=>t.name===e),PNe=()=>BNe.map(e=>e.name);var $Ne=c(F(),1);var c4=c(F(),1),ONe=c(ue(),1),ANe=c(Y(),1);var cJ=c(T(),1),Mct=({required:e,customValidity:t,markWhenOptional:o,...r},n)=>{let i=(0,c4.useRef)(null),s=(0,ONe.useMergeRefs)([n,i]);return(0,cJ.jsx)(Lr,{className:"dataviews-validated-control",required:e,markWhenOptional:o,ref:s,customValidity:t,getValidityTarget:()=>i.current?.querySelector('input[type="checkbox"]'),children:(0,cJ.jsx)(ANe.CheckboxControl,{...r})})},u4=(0,c4.forwardRef)(Mct);u4.displayName="ValidatedCheckboxControl";var QS=c(F(),1),MNe=c(ue(),1),NNe=c(Y(),1);var uJ=c(T(),1),Nct=({required:e,customValidity:t,markWhenOptional:o,...r},n)=>{let i=(0,QS.useRef)(null),s=(0,MNe.useMergeRefs)([n,i]);return(0,QS.useEffect)(()=>{let a=i.current?.querySelector('input[role="combobox"]');a&&(a.required=e??!1)},[e]),(0,uJ.jsx)(Lr,{className:"dataviews-validated-control",required:e,markWhenOptional:o,ref:s,customValidity:t,getValidityTarget:()=>i.current?.querySelector('input[role="combobox"]'),children:(0,uJ.jsx)(NNe.ComboboxControl,{...r})})},d4=(0,QS.forwardRef)(Nct);d4.displayName="ValidatedComboboxControl";var f4=c(F(),1),LNe=c(Y(),1);var JS=c(T(),1),Lct=({required:e,customValidity:t,markWhenOptional:o,...r},n)=>{let i=(0,f4.useRef)(null);return(0,JS.jsxs)("div",{className:"dataviews-validated-control__wrapper-with-error-delegate",ref:n,children:[(0,JS.jsx)(Lr,{className:"dataviews-validated-control",required:e,markWhenOptional:o,customValidity:t,getValidityTarget:()=>i.current,children:(0,JS.jsx)(LNe.FormTokenField,{...r})}),(0,JS.jsx)("input",{className:"dataviews-validated-control__error-delegate",type:"text",ref:i,required:e,value:r.value&&r.value.length>0?"hasvalue":"",tabIndex:-1,onChange:()=>{},onFocus:s=>{s.target.previousElementSibling?.querySelector('input[type="text"]')?.focus()}})]})},p4=(0,f4.forwardRef)(Lct);p4.displayName="ValidatedFormTokenField";var m4=c(F(),1),DNe=c(ue(),1),VNe=c(Y(),1);var dJ=c(T(),1),Dct=({required:e,customValidity:t,markWhenOptional:o,...r},n)=>{let i=(0,m4.useRef)(null),s=(0,DNe.useMergeRefs)([n,i]);return(0,dJ.jsx)(Lr,{className:"dataviews-validated-control",required:e,markWhenOptional:o,customValidity:t,getValidityTarget:()=>i.current,children:(0,dJ.jsx)(VNe.__experimentalNumberControl,{ref:s,...r})})},g4=(0,m4.forwardRef)(Dct);g4.displayName="ValidatedNumberControl";var h4=c(F(),1),FNe=c(ue(),1),zNe=c(Y(),1);var fJ=c(T(),1),Vct=({required:e,customValidity:t,markWhenOptional:o,...r},n)=>{let i=(0,h4.useRef)(null),s=(0,FNe.useMergeRefs)([n,i]);return(0,fJ.jsx)(Lr,{className:"dataviews-validated-control",required:e,markWhenOptional:o,ref:s,customValidity:t,getValidityTarget:()=>i.current?.querySelector('input[type="radio"]'),children:(0,fJ.jsx)(zNe.RadioControl,{...r})})},b4=(0,h4.forwardRef)(Vct);b4.displayName="ValidatedRadioControl";var y4=c(F(),1),jNe=c(ue(),1),HNe=c(Y(),1);var pJ=c(T(),1),Fct=({required:e,customValidity:t,markWhenOptional:o,...r},n)=>{let i=(0,y4.useRef)(null),s=(0,jNe.useMergeRefs)([n,i]);return(0,pJ.jsx)(Lr,{className:"dataviews-validated-control",required:e,markWhenOptional:o,customValidity:t,getValidityTarget:()=>i.current,children:(0,pJ.jsx)(HNe.SelectControl,{ref:s,...r})})},v4=(0,y4.forwardRef)(Fct);v4.displayName="ValidatedSelectControl";var _4=c(F(),1),UNe=c(ue(),1),WNe=c(Y(),1);var mJ=c(T(),1),zct=({required:e,customValidity:t,markWhenOptional:o,...r},n)=>{let i=(0,_4.useRef)(null),s=(0,UNe.useMergeRefs)([n,i]);return(0,mJ.jsx)(Lr,{className:"dataviews-validated-control",required:e,markWhenOptional:o,customValidity:t,getValidityTarget:()=>i.current,children:(0,mJ.jsx)(WNe.ToggleControl,{ref:s,required:e,...r})})},w4=(0,_4.forwardRef)(zct);w4.displayName="ValidatedToggleControl";var t0=c(F(),1),GNe=c(Y(),1);var e0=c(T(),1),jct=({required:e,customValidity:t,markWhenOptional:o,...r},n)=>{let i=(0,t0.useRef)(null),s=(0,t0.useId)();return(0,e0.jsxs)("div",{className:"dataviews-validated-control__wrapper-with-error-delegate",children:[(0,e0.jsx)(Lr,{className:"dataviews-validated-control",required:e,markWhenOptional:o,customValidity:t,getValidityTarget:()=>i.current,children:(0,e0.jsx)(GNe.__experimentalToggleGroupControl,{ref:n,...r})}),(0,e0.jsx)("input",{className:"dataviews-validated-control__error-delegate",type:"radio",ref:i,required:e,checked:r.value!==void 0,tabIndex:-1,name:s,onChange:()=>{},onFocus:a=>{a.target.previousElementSibling?.querySelector('[data-active-item="true"]')?.focus()}})]})},k4=(0,t0.forwardRef)(jct);k4.displayName="ValidatedToggleGroupControl";function So(e,t){let o;return e?.required&&t?.required?o=t.required.message?{type:t.required.type,message:t.required.message}: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 YNe=c(T(),1);function KNe({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}),p=(0,$Ne.useCallback)(()=>{t(a({item:o,value:!s({item:o})}))},[o,s,t,a]);return(0,YNe.jsx)(u4,{required:!!e.isValid?.required,markWhenOptional:n,customValidity:So(d,i),hidden:r,label:l,help:u,checked:s({item:o}),onChange:p,disabled:f})}var qNe=c(Y(),1),ZNe=c(F(),1);var gJ=c(T(),1);function x4({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})??"",p=(0,ZNe.useCallback)(h=>o(u({item:e,value:h??""})),[e,o,u]),{elements:m,isLoading:g}=ua({elements:t.elements,getElements:t.getElements});return g?(0,gJ.jsx)(qNe.Spinner,{}):(0,gJ.jsx)(d4,{required:!!t.isValid?.required,customValidity:So(d,n),label:i,value:f,help:s,placeholder:a,options:m,onChange:p,hideLabelFromVision:r,allowReset:!0,expandOnFocus:!0})}var JNe=c(Y(),1),dc=c(F(),1),i0=c(q(),1),eLe=c(Yo(),1),da=c(lu(),1);var r0=c(Y(),1),hJ=c(F(),1),Zd=c(q(),1);var o0=c(T(),1),Hct={[Ss]:[{value:"days",label:(0,Zd.__)("Days")},{value:"weeks",label:(0,Zd.__)("Weeks")},{value:"months",label:(0,Zd.__)("Months")},{value:"years",label:(0,Zd.__)("Years")}],[ca]:[{value:"days",label:(0,Zd.__)("Days ago")},{value:"weeks",label:(0,Zd.__)("Weeks ago")},{value:"months",label:(0,Zd.__)("Months ago")},{value:"years",label:(0,Zd.__)("Years ago")}]};function S4({className:e,data:t,field:o,onChange:r,hideLabelFromVision:n,operator:i}){let s=Hct[i===Ss?"inThePast":"over"],{id:a,label:l,description:u,getValue:d,setValue:f}=o,p=o.isDisabled({item:t,field:o}),m=d({item:t}),{value:g="",unit:h=s[0].value}=m&&typeof m=="object"?m:{},b=(0,hJ.useCallback)(y=>r(f({item:t,value:{value:Number(y),unit:h}})),[r,f,t,h]),v=(0,hJ.useCallback)(y=>r(f({item:t,value:{value:g,unit:y}})),[r,f,t,g]);return(0,o0.jsx)(r0.BaseControl,{id:a,className:$(e,"dataviews-controls__relative-date"),label:l,hideLabelFromVision:n,help:u,children:(0,o0.jsxs)(Ke,{direction:"row",gap:"sm",children:[(0,o0.jsx)(r0.__experimentalNumberControl,{className:"dataviews-controls__relative-date-number",spinControls:"none",min:1,step:1,value:g,onChange:b,disabled:p}),(0,o0.jsx)(r0.SelectControl,{className:"dataviews-controls__relative-date-unit",label:(0,Zd.__)("Unit"),value:h,options:s,onChange:v,hideLabelFromVision:!0,disabled:p})]})})}function UR(e,t){return t?new Qr(e,t):e}var XNe=c(F(),1);function WR(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,XNe.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 Uct={ary:"ar-MA",haz:"fa"};function GR(e){let t=e?.trim().split(/[_-]/)??[],o=t.shift()?.toLowerCase();if(!o)return;let r=[Uct[o]??o];for(let n of t)(/^[a-z]{4}$/i.test(n)||/^([a-z]{2}|\d{3})$/i.test(n))&&r.push(n);return r.join("-")}var QNe=c(lu(),1);function n0(e){if(!e)return null;let t=(0,QNe.getDate)(e);return t&&zc(t)?t:null}var zh=c(T(),1),bJ=e=>e?(0,da.dateI18n)("Y-m-d\\TH:i",(0,da.getDate)(e)):"";function Wct({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:p,isValid:m}=t,g=t.isDisabled({item:e,field:t}),h=p({item:e}),b=typeof h=="string"?h:void 0,{timezone:v}=(0,da.getSettings)(),y=v.string||(0,da.dateI18n)("P"),[_,w]=(0,dc.useState)(()=>{let N=n0(b);return UR(N||new Date,y)});(0,dc.useEffect)(()=>{let N=n0(b);if(N){let M=UR(N,y);w(V=>by(M,UR(V,y))?V:M)}},[y,b]);let k=(0,dc.useRef)(null),x=(0,dc.useRef)(void 0),{minConstraint:S,maxConstraint:C,disabledMatchers:R}=WR(m,n0),E=(0,dc.useCallback)(N=>o(f({item:e,value:N})),[e,o,f]);(0,dc.useEffect)(()=>()=>clearTimeout(x.current),[]);let I=(0,dc.useCallback)(N=>{if(N){let M=(0,da.dateI18n)("Y-m-d",N),V=b?(0,da.dateI18n)("H:i",(0,da.getDate)(b)):"00:00",j=(0,da.getDate)(`${M}T${V}`);E(j.toISOString())}else E(void 0);clearTimeout(x.current),x.current=setTimeout(()=>{let M=k.current;M&&(M.dispatchEvent(new Event("invalid",{cancelable:!0})),M.validationMessage&&(0,eLe.speak)(M.validationMessage))},0)},[E,b]),O=(0,dc.useCallback)(N=>{if(N){let M=(0,da.getDate)(N);E(M.toISOString());let V=n0(M.toISOString());V&&w(UR(V,y))}else E(void 0)},[E,y]),{format:A}=t,P=A.weekStartsOn??(0,da.getSettings)().l10n.startOfWeek,L=GR((0,da.getSettings)().l10n.locale),H=u;return m?.required&&!n&&!r?H=`${u} (${(0,i0.__)("Required")})`:!m?.required&&n&&!r&&(H=`${u} (${(0,i0.__)("Optional")})`),(0,zh.jsx)(JNe.BaseControl,{id:l,label:H,help:d,hideLabelFromVision:r,children:(0,zh.jsxs)(Ke,{direction:"column",gap:"lg",children:[(0,zh.jsx)(Wc,{ref:k,required:!!m?.required,customValidity:So(m,i),type:"datetime-local",label:(0,i0.__)("Date time"),hideLabelFromVision:!0,value:bJ(b),onValueChange:O,disabled:g,min:S?bJ(S):void 0,max:C?bJ(C):void 0}),!a&&(0,zh.jsx)(uE,{style:{width:"100%"},value:b?n0(b):null,onValueChange:I,month:_,onMonthChange:w,timeZone:y,locale:L,dir:(0,i0.isRTL)()?"rtl":"ltr",weekStartsOn:P,disabled:g||R})]})})}function tLe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,operator:i,validity:s,config:a}){return i===Ss||i===ca?(0,zh.jsx)(S4,{className:"dataviews-controls__datetime",data:e,field:t,onChange:o,hideLabelFromVision:r,operator:i}):(0,zh.jsx)(Wct,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:s,config:a})}var fc=c(Y(),1),oLe=c(Yo(),1),to=c(F(),1),Hr=c(q(),1),Es=c(lu(),1);var or=c(T(),1),Gct=[{id:"today",label:(0,Hr.__)("Today"),getValue:()=>(0,Es.getDate)(null)},{id:"yesterday",label:(0,Hr.__)("Yesterday"),getValue:()=>{let e=(0,Es.getDate)(null);return yy(e,1)}},{id:"past-week",label:(0,Hr.__)("Past week"),getValue:()=>{let e=(0,Es.getDate)(null);return yy(e,7)}},{id:"past-month",label:(0,Hr.__)("Past month"),getValue:()=>{let e=(0,Es.getDate)(null);return qN(e,1)}}],$ct=[{id:"last-7-days",label:(0,Hr.__)("Last 7 days"),getValue:()=>{let e=(0,Es.getDate)(null);return[yy(e,7),e]}},{id:"last-30-days",label:(0,Hr.__)("Last 30 days"),getValue:()=>{let e=(0,Es.getDate)(null);return[yy(e,30),e]}},{id:"month-to-date",label:(0,Hr.__)("Month to date"),getValue:()=>{let e=(0,Es.getDate)(null);return[oE(e),e]}},{id:"last-year",label:(0,Hr.__)("Last year"),getValue:()=>{let e=(0,Es.getDate)(null);return[ZN(e,1),e]}},{id:"year-to-date",label:(0,Hr.__)("Year to date"),getValue:()=>{let e=(0,Es.getDate)(null);return[Uw(e),e]}}],Tu=e=>{if(!e)return null;let t=lme(e);return zc(t)?t:null},C4=e=>e?typeof e=="string"?e:Gf(e,"yyyy-MM-dd"):"";function rLe({field:e,validity:t,inputRefs:o,isTouched:r,setIsTouched:n,children:i}){let{isValid:s}=e,[a,l]=(0,to.useState)(void 0),u=(0,to.useCallback)(()=>{let f=Array.isArray(o)?o:[o];for(let p of f){let m=p.current;if(m&&!m.validity.valid){l({type:"invalid",message:m.validationMessage});return}}l(void 0)},[o]);return(0,to.useEffect)(()=>{let f=Array.isArray(o)?o:[o],p=t?So(s,t):void 0;for(let m of f){let g=m.current;g&&g.setCustomValidity(p?.type==="invalid"&&p.message?p.message:"")}},[o,s,t]),(0,to.useEffect)(()=>{let f=Array.isArray(o)?o:[o],p=m=>{m.preventDefault(),n(!0)};for(let m of f)m.current?.addEventListener("invalid",p);return()=>{for(let m of f)m.current?.removeEventListener("invalid",p)}},[o,n]),(0,to.useEffect)(()=>{if(!r)return;let f=t?So(s,t):void 0;f?l(f):u()},[r,s,t,u]),(0,to.useEffect)(()=>{r&&a?.message&&(0,oLe.speak)(a.message)},[r,a?.message]),(0,or.jsxs)("div",{onBlur:f=>{r||(!f.relatedTarget||!f.currentTarget.contains(f.relatedTarget))&&n(!0)},children:[i,a&&(0,or.jsx)(wy,{type:a.type,message:a.message})]})}function Yct({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:p}=t,m=t.isDisabled({item:e,field:t}),[g,h]=(0,to.useState)(null),b=p.weekStartsOn??(0,Es.getSettings)().l10n.startOfWeek,v=GR((0,Es.getSettings)().l10n.locale),y=d({item:e}),_=typeof y=="string"?y:void 0,[w,k]=(0,to.useState)(()=>Tu(_)||new Date);(0,to.useEffect)(()=>{let N=Tu(_);N&&k(M=>by(N,M)?M:N)},[_]);let[x,S]=(0,to.useState)(!1),C=(0,to.useRef)(null),{minConstraint:R,maxConstraint:E,disabledMatchers:I}=WR(f,Tu),O=(0,to.useCallback)(N=>o(u({item:e,value:N})),[e,o,u]),A=(0,to.useCallback)(N=>{let M=N?C4(N):void 0;O(M),h(null),S(!0)},[O]),P=(0,to.useCallback)(N=>{let M=N.getValue(),V=C4(M);k(M),O(V),h(N.id),S(!0)},[O]),L=(0,to.useCallback)(N=>{if(O(N),N){let M=Tu(N);M&&k(M)}h(null),S(!0)},[O]),H=a;return f?.required&&!n?H=`${a} (${(0,Hr.__)("Required")})`:!f?.required&&n&&(H=`${a} (${(0,Hr.__)("Optional")})`),(0,or.jsx)(rLe,{field:t,validity:i,inputRefs:C,isTouched:x,setIsTouched:S,children:(0,or.jsx)(fc.BaseControl,{id:s,className:"dataviews-controls__date",label:H,help:l,hideLabelFromVision:r,children:(0,or.jsxs)(Ke,{direction:"column",gap:"lg",children:[(0,or.jsxs)(Ke,{direction:"row",gap:"sm",wrap:"wrap",justify:"flex-start",children:[Gct.map(N=>{let M=g===N.id;return(0,or.jsx)(fc.Button,{className:"dataviews-controls__date-preset",variant:"tertiary",isPressed:M,size:"small",disabled:m,accessibleWhenDisabled:!0,onClick:()=>P(N),children:N.label},N.id)}),(0,or.jsx)(fc.Button,{className:"dataviews-controls__date-preset",variant:"tertiary",isPressed:!g,size:"small",disabled:!!g||m,accessibleWhenDisabled:!0,children:(0,Hr.__)("Custom")})]}),(0,or.jsx)(fc.__experimentalInputControl,{ref:C,type:"date",label:(0,Hr.__)("Date"),hideLabelFromVision:!0,value:_,onChange:L,required:!!t.isValid?.required,disabled:m,min:R,max:E}),(0,or.jsx)(uE,{style:{width:"100%"},value:_?Tu(_):null,onValueChange:A,month:w,onMonthChange:k,locale:v,dir:(0,Hr.isRTL)()?"rtl":"ltr",weekStartsOn:b,disabled:m||I,disableNavigation:m})]})})})}function Kct({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:p}=t,m=t.isDisabled({item:e,field:t}),g,h=u({item:e});Array.isArray(h)&&h.length===2&&h.every(z=>typeof z=="string")&&(g=h);let b=p.weekStartsOn??(0,Es.getSettings)().l10n.startOfWeek,v=GR((0,Es.getSettings)().l10n.locale),{minConstraint:y,maxConstraint:_,disabledMatchers:w}=WR(f,Tu),k=(0,to.useCallback)(z=>{o(d({item:e,value:z}))},[e,o,d]),[x,S]=(0,to.useState)(null),C=(0,to.useMemo)(()=>{if(!g)return null;let[z,W]=g;return{from:Tu(z)||void 0,to:Tu(W)||void 0}},[g]),[R,E]=(0,to.useState)(()=>C?.from||new Date),[I,O]=g??[];(0,to.useEffect)(()=>{E(z=>{let W=Tu(I),ee=Tu(O),J=W??ee,U=W&&ee?Rpe({start:W,end:ee},{start:oE(z),end:iN(z)},{inclusive:!0}):[W,ee].some(Q=>Q&&by(Q,z));return J&&!U?J:z})},[I,O]);let[A,P]=(0,to.useState)(!1),L=(0,to.useRef)(null),H=(0,to.useRef)(null),N=(0,to.useCallback)((z,W)=>{if(!z&&!W){k(void 0);return}k([C4(z),C4(W)])},[k]),M=(0,to.useCallback)(z=>{N(z?.from,z?.to),S(null),P(!0)},[N]),V=(0,to.useCallback)(z=>{let[W,ee]=z.getValue();E(W),N(W,ee),S(z.id),P(!0)},[N]),j=(0,to.useCallback)((z,W)=>{let[ee,J]=g||[void 0,void 0];if(N(z==="from"?W:ee,z==="to"?W:J),W){let Z=Tu(W);Z&&E(Z)}S(null),P(!0)},[g,N]),D=a;return t.isValid?.required&&!n?D=`${a} (${(0,Hr.__)("Required")})`:!t.isValid?.required&&n&&(D=`${a} (${(0,Hr.__)("Optional")})`),(0,or.jsx)(rLe,{field:t,validity:i,inputRefs:[L,H],isTouched:A,setIsTouched:P,children:(0,or.jsx)(fc.BaseControl,{id:s,className:"dataviews-controls__date",label:D,help:l,hideLabelFromVision:r,children:(0,or.jsxs)(Ke,{direction:"column",gap:"lg",children:[(0,or.jsxs)(Ke,{direction:"row",gap:"sm",wrap:"wrap",justify:"flex-start",children:[$ct.map(z=>{let W=x===z.id;return(0,or.jsx)(fc.Button,{className:"dataviews-controls__date-preset",variant:"tertiary",isPressed:W,size:"small",disabled:m,accessibleWhenDisabled:!0,onClick:()=>V(z),children:z.label},z.id)}),(0,or.jsx)(fc.Button,{className:"dataviews-controls__date-preset",variant:"tertiary",isPressed:!x,size:"small",accessibleWhenDisabled:!0,disabled:!!x||m,children:(0,Hr.__)("Custom")})]}),(0,or.jsxs)(Ke,{direction:"row",gap:"sm",justify:"space-between",className:"dataviews-controls__date-range-inputs",children:[(0,or.jsx)(fc.__experimentalInputControl,{ref:L,type:"date",label:(0,Hr.__)("From"),hideLabelFromVision:!0,value:g?.[0],onChange:z=>j("from",z),required:!!t.isValid?.required,disabled:m,min:y,max:_}),(0,or.jsx)(fc.__experimentalInputControl,{ref:H,type:"date",label:(0,Hr.__)("To"),hideLabelFromVision:!0,value:g?.[1],onChange:z=>j("to",z),required:!!t.isValid?.required,disabled:m,min:y,max:_})]}),(0,or.jsx)(h$,{style:{width:"100%"},value:C,onValueChange:M,month:R,onMonthChange:E,locale:v,dir:(0,Hr.isRTL)()?"rtl":"ltr",weekStartsOn:b,disabled:m||w})]})})})}function nLe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,operator:i,validity:s}){return i===Ss||i===ca?(0,or.jsx)(S4,{className:"dataviews-controls__date",data:e,field:t,onChange:o,hideLabelFromVision:r,operator:i}):i===Sn?(0,or.jsx)(Kct,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:s}):(0,or.jsx)(Yct,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:s})}var iLe=c(Y(),1),sLe=c(F(),1);var yJ=c(T(),1);function E4({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,p=t.isDisabled({item:e,field:t}),m=s==="array",g=u({item:e})??(m?[]:""),h=(0,sLe.useCallback)(y=>o(d({item:e,value:y})),[e,o,d]),{elements:b,isLoading:v}=ua({elements:t.elements,getElements:t.getElements});return v?(0,yJ.jsx)(iLe.Spinner,{}):(0,yJ.jsx)(v4,{required:!!t.isValid?.required,markWhenOptional:n,customValidity:So(f,i),label:a,value:g,help:l,options:b,onChange:h,hideLabelFromVision:r,multiple:m,disabled:p})}var vJ=c(T(),1),qct=10;function aLe(e){let{field:t}=e,{elements:o}=ua({elements:t.elements,getElements:t.getElements});return o.length>=qct?(0,vJ.jsx)(x4,{...e}):(0,vJ.jsx)(E4,{...e})}var lLe=c(F(),1);var cLe=c(T(),1);function Xd({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:p,setValue:m,isValid:g}=t,h=p({item:e}),b=t.isDisabled({item:e,field:t}),v=(0,lLe.useCallback)(y=>o(m({item:e,value:y})),[e,m,o]);return(0,cLe.jsx)(Wc,{required:!!g.required,markWhenOptional:n,customValidity:So(g,l),label:u,placeholder:d,value:h??"",description:typeof f=="string"?f:void 0,details:typeof f=="string"?void 0:f,onValueChange:v,hideLabelFromVision:r,type:i,prefix:s,suffix:a,disabled:b,pattern:g.pattern?g.pattern.constraint:void 0,minLength:g.minLength?g.minLength.constraint:void 0,maxLength:g.maxLength?g.maxLength.constraint:void 0})}var T4=c(T(),1);function uLe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){return(0,T4.jsx)(Xd,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i,type:"email",prefix:(0,T4.jsx)(fs.Slot,{padding:"minimal",children:(0,T4.jsx)(Xr,{icon:Zz})})})}var R4=c(T(),1);function dLe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){return(0,R4.jsx)(Xd,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i,type:"tel",prefix:(0,R4.jsx)(fs.Slot,{padding:"minimal",children:(0,R4.jsx)(Xr,{icon:J0})})})}var B4=c(T(),1);function fLe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){return(0,B4.jsx)(Xd,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i,type:"url",prefix:(0,B4.jsx)(fs.Slot,{padding:"minimal",children:(0,B4.jsx)(Xr,{icon:Ms})})})}var Gv=c(Y(),1),$R=c(F(),1),I4=c(q(),1);var jh=c(T(),1);function pLe(e){if(e===""||e===void 0)return"";let t=Number(e);return Number.isFinite(t)?t:""}function Zct({value:e,onChange:t,hideLabelFromVision:o,step:r}){let[n="",i=""]=e,s=(0,$R.useCallback)(l=>t([pLe(l),i]),[t,i]),a=(0,$R.useCallback)(l=>t([n,pLe(l)]),[t,n]);return(0,jh.jsx)(Gv.BaseControl,{help:(0,I4.__)("The max. value must be greater than the min. value."),children:(0,jh.jsxs)(Gv.Flex,{direction:"row",gap:4,children:[(0,jh.jsx)(Gv.__experimentalNumberControl,{label:(0,I4.__)("Min."),value:n,max:i?Number(i)-r:void 0,onChange:s,hideLabelFromVision:o,step:r}),(0,jh.jsx)(Gv.__experimentalNumberControl,{label:(0,I4.__)("Max."),value:i,min:n?Number(n)+r:void 0,onChange:a,hideLabelFromVision:o,step:r})]})})}function P4({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:p,isValid:m}=t,g=f({item:e})??"",h=t.isDisabled({item:e,field:t}),b=(0,$R.useCallback)(y=>{o(p({item:e,value:["",void 0].includes(y)?void 0:Number(y)}))},[e,o,p]),v=(0,$R.useCallback)(y=>{o(p({item:e,value:y}))},[e,o,p]);if(i===Sn){let y=["",""];return Array.isArray(g)&&g.length===2&&g.every(_=>typeof _=="number"||_==="")&&(y=g),(0,jh.jsx)(Zct,{value:y,onChange:v,hideLabelFromVision:r,step:l})}return(0,jh.jsx)(g4,{required:!!m.required,markWhenOptional:n,customValidity:So(m,s),label:u,help:d,value:g,onChange:b,hideLabelFromVision:r,step:l,min:typeof m.min?.constraint=="number"?m.min.constraint:void 0,max:typeof m.max?.constraint=="number"?m.max.constraint:void 0,disabled:h})}var mLe=c(T(),1);function gLe(e){return(0,mLe.jsx)(P4,{...e})}var hLe=c(T(),1);function bLe(e){return(0,hLe.jsx)(P4,{...e})}var yLe=c(Y(),1),vLe=c(F(),1);var _J=c(T(),1);function _Le({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:p,isLoading:m}=ua({elements:t.elements,getElements:t.getElements}),g=l({item:e}),h=(0,vLe.useCallback)(b=>o(u({item:e,value:b})),[e,o,u]);return m?(0,_J.jsx)(yLe.Spinner,{}):(0,_J.jsx)(b4,{required:!!t.isValid?.required,markWhenOptional:n,customValidity:So(d,i),label:s,help:a,onChange:h,options:p,selected:g,hideLabelFromVision:r,disabled:f})}var wJ=c(F(),1);var wLe=c(T(),1);function kLe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,config:i,validity:s}){let{prefix:a,suffix:l}=i||{};return(0,wLe.jsx)(Xd,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:s,prefix:a?(0,wJ.createElement)(a):void 0,suffix:l?(0,wJ.createElement)(l):void 0})}var SLe=c(Y(),1),YR=c(F(),1),O4=c(q(),1);var Hh=c(T(),1);function xLe(e,t){return(e??"").replace(/\\./g,"").includes("s")||t.some(n=>(Cs(n)??0)%60!==0)?1:void 0}function kJ(e){let t=Cs(e);if(t===null)return"";let o=[Math.floor(t/3600),Math.floor(t%3600/60)];return t%60!==0&&o.push(t%60),o.map(r=>String(r).padStart(2,"0")).join(":")}function Xct({value:e,onChange:t,hideLabelFromVision:o,disabled:r,step:n,min:i,max:s}){let[a="",l=""]=e,u=(0,YR.useCallback)(f=>t([f??"",l]),[t,l]),d=(0,YR.useCallback)(f=>t([a,f??""]),[t,a]);return(0,Hh.jsx)(SLe.BaseControl,{help:(0,O4.__)("The end time must be later than the start time."),children:(0,Hh.jsxs)(Ke,{direction:"row",gap:"sm",justify:"space-between",children:[(0,Hh.jsx)(Wc,{type:"time",label:(0,O4.__)("From"),value:a,onValueChange:u,hideLabelFromVision:o,disabled:r,step:n,min:i,max:l||s}),(0,Hh.jsx)(Wc,{type:"time",label:(0,O4.__)("To"),value:l,onValueChange:d,hideLabelFromVision:o,disabled:r,step:n,min:a||i,max:s})]})})}function CLe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,operator:i,validity:s}){let{label:a,placeholder:l,description:u,getValue:d,setValue:f,isValid:p}=t,m=d({item:e}),g=t.isDisabled({item:e,field:t}),h=t.format?.time,b=typeof p.min?.constraint=="string"?p.min.constraint:void 0,v=typeof p.max?.constraint=="string"?p.max.constraint:void 0,y=(0,YR.useCallback)(w=>o(f({item:e,value:w===""?void 0:w})),[e,o,f]),_=(0,YR.useCallback)(([w,k])=>o(f({item:e,value:[w||void 0,k||void 0]})),[e,o,f]);if(i===Sn){let w=["",""];return Array.isArray(m)&&m.length===2&&(w=[kJ(m[0]),kJ(m[1])]),(0,Hh.jsx)(Xct,{value:w,onChange:_,hideLabelFromVision:r,disabled:g,step:xLe(h,w),min:b,max:v})}return(0,Hh.jsx)(Wc,{required:!!p.required,markWhenOptional:n,customValidity:So(p,s),type:"time",label:a,placeholder:l,description:typeof u=="string"?u:void 0,details:typeof u=="string"?void 0:u,value:kJ(m),onValueChange:y,hideLabelFromVision:r,disabled:g,step:xLe(h,[m]),min:b,max:v})}var ELe=c(F(),1);var TLe=c(T(),1);function RLe({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}),p=(0,ELe.useCallback)(()=>{t(u({item:o,value:!l({item:o})}))},[t,u,o,l]);return(0,TLe.jsx)(w4,{required:!!d.required,markWhenOptional:n,customValidity:So(d,i),hidden:r,label:s,help:a,checked:l({item:o}),onChange:p,disabled:f})}var BLe=c(F(),1);var ILe=c(T(),1);function PLe({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:p,isValid:m}=t,g=t.getValue({item:e}),h=(0,BLe.useCallback)(b=>o(p({item:e,value:b})),[e,o,p]);return(0,ILe.jsx)(jY,{required:!!m.required,markWhenOptional:n,customValidity:So(m,s),label:u,placeholder:d,value:g??"",description:typeof f=="string"?f:void 0,details:typeof f=="string"?void 0:f,onValueChange:h,rows:a,disabled:l,minLength:m.minLength?m.minLength.constraint:void 0,maxLength:m.maxLength?m.maxLength.constraint:void 0,hideLabelFromVision:r})}var M4=c(Y(),1),OLe=c(F(),1);var A4=c(T(),1);function ALe({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,OLe.useCallback)(h=>o(a({item:e,value:h})),[e,o,a]),{elements:p,isLoading:m}=ua({elements:t.elements,getElements:t.getElements});if(m)return(0,A4.jsx)(M4.Spinner,{});if(p.length===0)return null;let g=p.find(h=>h.value===d);return(0,A4.jsx)(k4,{required:!!t.isValid?.required,markWhenOptional:n,customValidity:So(l,i),isBlock:!0,label:t.label,help:g?.description||t.description,onChange:f,value:d,hideLabelFromVision:r,children:p.map(h=>(0,A4.jsx)(M4.__experimentalToggleGroupControlOption,{label:h.label,value:h.value,disabled:u},h.value))})}var MLe=c(Y(),1),N4=c(F(),1);var KR=c(T(),1);function NLe({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,p=u({item:e}),m=t.isDisabled({item:e,field:t}),{elements:g,isLoading:h}=ua({elements:t.elements,getElements:t.getElements}),b=(0,N4.useMemo)(()=>Array.isArray(p)?p.map(y=>g?.find(w=>w.value===y)||{value:y,label:y}):[],[p,g]),v=(0,N4.useCallback)(y=>{let _=y.map(w=>typeof w=="object"&&"value"in w?w.value:w);o(d({item:e,value:_}))},[o,d,e]);return h?(0,KR.jsx)(MLe.Spinner,{}):(0,KR.jsx)(p4,{required:!!f?.required,markWhenOptional:n,customValidity:So(f,i),label:r?void 0:s,value:b,onChange:v,placeholder:a,suggestions:g?.map(y=>y.value),disabled:m,__experimentalValidateInput:y=>t.isValid?.elements&&g?g.some(_=>_.value===y||_.label===y):!0,__experimentalExpandOnFocus:g&&g.length>0,help:l??(t.isValid?.elements?"":void 0),displayTransform:y=>typeof y=="object"&&"label"in y?y.label:typeof y=="string"&&g&&g.find(w=>w.value===y)?.label||y,__experimentalRenderItem:({item:y})=>{if(typeof y=="string"&&g){let _=g.find(w=>w.value===y);return(0,KR.jsx)("span",{children:_?.label||y})}return(0,KR.jsx)("span",{children:y})}})}var Qd=c(Y(),1);var xJ=c(F(),1),LLe=c(q(),1);var Kp=c(T(),1),Qct=({color:e,onColorChange:t,disabled:o})=>{let r=e&&Go(e).isValid()?e:"#ffffff";return(0,Kp.jsx)(Qd.Dropdown,{className:"dataviews-controls__color-picker-dropdown",popoverProps:{resize:!1},renderToggle:({onToggle:n})=>(0,Kp.jsx)(Qd.Button,{onClick:n,"aria-label":(0,LLe.__)("Open color picker"),size:"small",disabled:o,accessibleWhenDisabled:!0,icon:()=>(0,Kp.jsx)(Qd.ColorIndicator,{colorValue:r})}),renderContent:()=>(0,Kp.jsx)(Qd.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,Kp.jsx)(Qd.ColorPicker,{color:r,onChange:t,enableAlpha:!0})})})};function DLe({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}),p=t.getValue({item:e})||"",m=(0,xJ.useCallback)(h=>{o(u({item:e,value:h}))},[e,o,u]),g=(0,xJ.useCallback)(h=>{o(u({item:e,value:h||""}))},[e,o,u]);return(0,Kp.jsx)(Wc,{required:!!t.isValid?.required,markWhenOptional:n,customValidity:So(d,i),label:s,placeholder:a,value:p,description:typeof l=="string"?l:void 0,details:typeof l=="string"?void 0:l,onValueChange:g,hideLabelFromVision:r,type:"text",disabled:f,prefix:(0,Kp.jsx)(fs.Slot,{padding:"minimal",children:(0,Kp.jsx)(Qct,{color:p,onColorChange:m,disabled:f})})})}var VLe=c(Y(),1);var D4=c(F(),1),SJ=c(q(),1);var L4=c(T(),1);function FLe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let[s,a]=(0,D4.useState)(!1),l=t.isDisabled({item:e,field:t}),u=(0,D4.useCallback)(()=>{a(d=>!d)},[]);return(0,L4.jsx)(Xd,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i,type:s?"text":"password",suffix:(0,L4.jsx)(fs.Slot,{padding:"minimal",children:(0,L4.jsx)(VLe.Button,{icon:s?kc:wb,onClick:u,size:"small",label:s?(0,SJ.__)("Hide password"):(0,SJ.__)("Show password"),disabled:l,accessibleWhenDisabled:!0})})})}function V4(e){return Array.isArray(e.elements)&&e.elements.length>0||typeof e.getElements=="function"}var jLe=c(T(),1),zLe={adaptiveSelect:aLe,array:NLe,checkbox:KNe,color:DLe,combobox:x4,datetime:tLe,date:nLe,email:uLe,telephone:dLe,url:fLe,integer:gLe,number:bLe,password:FLe,radio:_Le,select:E4,text:kLe,time:CLe,toggle:RLe,textarea:PLe,toggleGroup:ALe};function Jct(e){return e&&typeof e=="object"&&typeof e.control=="string"}function eut(e){let{control:t,...o}=e,r=F4(t);return r===null?null:function(i){return(0,jLe.jsx)(r,{...i,config:o})}}function HLe(e,t){return typeof e.Edit=="function"?e.Edit:typeof e.Edit=="string"?F4(e.Edit):Jct(e.Edit)?eut(e.Edit):V4(e)&&e.type!=="array"?F4("adaptiveSelect"):t===null?null:F4(t)}function F4(e){return Object.keys(zLe).includes(e)?zLe[e]:null}function tut(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 ULe=tut;var out=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},WLe=out;var rut=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},GLe=rut;var YLe=c(q(),1);function z4({item:e,field:t}){let{elements:o,isLoading:r}=ua({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 $Le=c(T(),1);function dr({item:e,field:t}){return t.hasElements?(0,$Le.jsx)(z4,{item:e,field:t}):t.getValueFormatted({item:e,field:t})}var Jd=(e,t,o)=>o==="asc"?e.localeCompare(t):t.localeCompare(e);function fr(e,t){let o=t.getValue({item:e});return![void 0,"",null].includes(o)}function ef(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 tf(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 of(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 Ro(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 nut({item:e,field:t}){return t.getValue({item:e})}var Ts=nut;var iut=/^[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 sut(e,t){let o=t.getValue({item:e});return![void 0,"",null].includes(o)&&!iut.test(o)?(0,YLe.__)("Value must be a valid email address."):null}var KLe={type:"email",render:dr,Edit:"email",sort:Jd,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[cr,ur],validOperators:[Tr,Rr,Yd,Kd,qd,cr,ur,Yi,Ki],format:{},getValueFormatted:Ts,validate:{required:fr,pattern:of,minLength:ef,maxLength:tf,elements:Ro,custom:sut}};var qLe=c(q(),1);var s0=(e,t,o)=>o==="asc"?e-t:t-e;function j4(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 H4(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 ZLe={separatorThousand:","};function aut({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=ZLe: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 lut(e,t){let o=t.getValue({item:e});return![void 0,"",null].includes(o)&&!Number.isInteger(o)?(0,qLe.__)("Value must be an integer."):null}var XLe={type:"integer",render:dr,Edit:"integer",sort:s0,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[Tr,Rr,Lh,Dh,Vh,Fh,Sn],validOperators:[Tr,Rr,Lh,Dh,Vh,Fh,Sn,cr,ur,Yi,Ki],format:ZLe,getValueFormatted:aut,validate:{required:fr,min:j4,max:H4,elements:Ro,custom:lut}};var QLe=c(q(),1);var JLe={separatorThousand:",",separatorDecimal:".",decimals:2};function cut({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=JLe: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 uut(e){return e===""||e===void 0||e===null}function dut(e,t){let o=t.getValue({item:e});return!uut(o)&&!Number.isFinite(o)?(0,QLe.__)("Value must be a number."):null}var eDe={type:"number",render:dr,Edit:"number",sort:s0,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[Tr,Rr,Lh,Dh,Vh,Fh,Sn],validOperators:[Tr,Rr,Lh,Dh,Vh,Fh,Sn,cr,ur,Yi,Ki],format:JLe,getValueFormatted:cut,validate:{required:fr,min:j4,max:H4,elements:Ro,custom:dut}};var tDe={type:"text",render:dr,Edit:"text",sort:Jd,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[cr,ur],validOperators:[Tr,Rr,Yd,Kd,qd,cr,ur,Yi,Ki],format:{},getValueFormatted:Ts,validate:{required:fr,pattern:of,minLength:ef,maxLength:tf,elements:Ro}};var $v=c(lu(),1);var oDe=c(lu(),1);function rDe(e){if(!zc(new Date(e)))return null;let t=(0,oDe.getDate)(e);return t&&zc(t)?t.getTime():null}function U4(e,t,o,r){let n=t.isValid[o]?.constraint;if(typeof n!="string")return!1;let i=t.getValue({item:e}),s=Array.isArray(i)?i[o==="min"?0:i.length-1]:i;if(s==null||s==="")return!0;let a=r(n),l=r(String(s));return a===null||l===null?!1:o==="min"?l>=a:l<=a}function W4(e,t){return U4(e,t,"min",rDe)}function G4(e,t){return U4(e,t,"max",rDe)}function nDe(e,t){return U4(e,t,"min",Cs)}function iDe(e,t){return U4(e,t,"max",Cs)}var sDe={datetime:(0,$v.getSettings)().formats.datetime,weekStartsOn:(0,$v.getSettings)().l10n.startOfWeek};function fut({item:e,field:t}){let o=t.getValue({item:e});if(["",void 0,null].includes(o))return"";let r;return t.type!=="datetime"?r=sDe:r=t.format,(0,$v.dateI18n)(r.datetime,(0,$v.getDate)(o))}var put=(e,t,o)=>{let r=new Date(e).getTime(),n=new Date(t).getTime();return o==="asc"?r-n:n-r},aDe={type:"datetime",render:dr,Edit:"datetime",sort:put,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[Cu,Eu,wu,ku,xu,Su,Ss,ca],validOperators:[Cu,Eu,wu,ku,xu,Su,Ss,ca],format:sDe,getValueFormatted:fut,validate:{required:fr,elements:Ro,min:W4,max:G4}};var Yv=c(lu(),1);var lDe={date:(0,Yv.getSettings)().formats.date,weekStartsOn:(0,Yv.getSettings)().l10n.startOfWeek};function mut({item:e,field:t}){let o=t.getValue({item:e});if(["",void 0,null].includes(o))return"";let r;return t.type!=="date"?r=lDe:r=t.format,(0,Yv.dateI18n)(r.date,(0,Yv.getDate)(o))}var gut=(e,t,o)=>{let r=new Date(e).getTime(),n=new Date(t).getTime();return o==="asc"?r-n:n-r},cDe={type:"date",render:dr,Edit:"date",sort:gut,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[Cu,Eu,wu,ku,xu,Su,Ss,ca,Sn],validOperators:[Cu,Eu,wu,ku,xu,Su,Ss,ca,Sn],format:lDe,getValueFormatted:mut,validate:{required:fr,elements:Ro,min:W4,max:G4}};var a0=c(lu(),1);var uDe={time:(0,a0.getSettings)().formats.time},hut="2000-01-01";function but(e){let t=Math.floor(e/3600),o=Math.floor(e%3600/60),r=e%60,n=[t,o,r].map(i=>String(i).padStart(2,"0")).join(":");return(0,a0.getDate)(`${hut}T${n}`)}function yut({item:e,field:t}){let o=Cs(t.getValue({item:e}));if(o===null)return"";let r;return t.type!=="time"?r=uDe:r=t.format,(0,a0.dateI18n)(r.time,but(o))}var vut=(e,t,o)=>{let r=Cs(e),n=Cs(t);return r===null||n===null?r===n?0:r===null?1:-1:o==="asc"?r-n:n-r},dDe={type:"time",render:dr,Edit:"time",sort:vut,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[Cu,Eu,wu,ku,xu,Su,Sn],validOperators:[Cu,Eu,wu,ku,xu,Su,Sn],format:uDe,getValueFormatted:yut,validate:{required:fr,elements:Ro,min:nDe,max:iDe}};var $4=c(q(),1);function fDe(e,t){return t.getValue({item:e})===!0}function _ut({item:e,field:t}){let o=t.getValue({item:e});return o===!0?(0,$4.__)("True"):o===!1?(0,$4.__)("False"):""}function wut(e,t){let o=t.getValue({item:e});return![void 0,"",null].includes(o)&&![!0,!1].includes(o)?(0,$4.__)("Value must be true, false, or undefined"):null}var kut=(e,t,o)=>{let r=!!e;return r===!!t?0:o==="asc"?r?1:-1:r?-1:1},pDe={type:"boolean",render:dr,Edit:"checkbox",sort:kut,validate:{required:fDe,elements:Ro,custom:wut},enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[Tr,Rr],validOperators:[Tr,Rr],format:{},getValueFormatted:_ut};var mDe={type:"media",render:()=>null,Edit:null,sort:()=>0,enableSorting:!1,enableGlobalSearch:!1,defaultOperators:[],validOperators:[],format:{},getValueFormatted:Ts,validate:{}};var CJ=c(q(),1);function gDe(e,t){let o=t.getValue({item:e});return Array.isArray(o)&&o.length>0&&o.every(r=>![void 0,"",null].includes(r))}function hDe({item:e,field:t}){let o=t.getValue({item:e});return(Array.isArray(o)?o:[]).join(", ")}function xut({item:e,field:t}){return hDe({item:e,field:t})}function Sut(e,t){let o=t.getValue({item:e});return[void 0,"",null].includes(o)?null:Array.isArray(o)?o.every(r=>typeof r=="string")?null:(0,CJ.__)("Every value must be a string."):(0,CJ.__)("Value must be an array.")}var Cut=(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)},bDe={type:"array",render:xut,Edit:"array",sort:Cut,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[cr,ur],validOperators:[cr,ur,Yi,Ki],format:{},getValueFormatted:hDe,validate:{required:gDe,elements:Ro,custom:Sut}};function Eut({item:e,field:t}){return t.getValue({item:e})?"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022":""}var yDe={type:"password",render:dr,Edit:"password",sort:()=>0,enableSorting:!1,enableGlobalSearch:!1,defaultOperators:[],validOperators:[],format:{},getValueFormatted:Eut,validate:{required:fr,pattern:of,minLength:ef,maxLength:tf,elements:Ro}};var vDe={type:"telephone",render:dr,Edit:"telephone",sort:Jd,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[cr,ur],validOperators:[Tr,Rr,Yd,Kd,qd,cr,ur,Yi,Ki],format:{},getValueFormatted:Ts,validate:{required:fr,pattern:of,minLength:ef,maxLength:tf,elements:Ro}};var _De=c(q(),1);var l0=c(T(),1);function Tut({item:e,field:t}){if(t.hasElements)return(0,l0.jsx)(z4,{item:e,field:t});let o=Ts({item:e,field:t});return!o||!Go(o).isValid()?o:(0,l0.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,l0.jsx)("div",{style:{width:"16px",height:"16px",borderRadius:"50%",backgroundColor:o,border:"1px solid #ddd",flexShrink:0}}),(0,l0.jsx)("span",{children:o})]})}function Rut(e,t){let o=t.getValue({item:e});return![void 0,"",null].includes(o)&&!Go(o).isValid()?(0,_De.__)("Value must be a valid color."):null}var But=(e,t,o)=>{let r=Go(e),n=Go(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},wDe={type:"color",render:Tut,Edit:"color",sort:But,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[cr,ur],validOperators:[Tr,Rr,cr,ur],format:{},getValueFormatted:Ts,validate:{required:fr,elements:Ro,custom:Rut}};var kDe={type:"url",render:dr,Edit:"url",sort:Jd,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[cr,ur],validOperators:[Tr,Rr,Yd,Kd,qd,cr,ur,Yi,Ki],format:{},getValueFormatted:Ts,validate:{required:fr,pattern:of,minLength:ef,maxLength:tf,elements:Ro}};var Iut=(e,t,o)=>typeof e=="number"&&typeof t=="number"?s0(e,t,o):Jd(e,t,o),xDe={render:dr,Edit:null,sort:Iut,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[Tr,Rr],validOperators:PNe(),format:{},getValueFormatted:Ts,validate:{required:fr,elements:Ro}};function Put(e){return e==="integer"||e==="number"}function Out(e){return e==="date"||e==="datetime"||e==="time"}function SDe(e,t,o){let r=t.validate[o];if(r&&(typeof e=="number"&&Put(t.type)||typeof e=="string"&&Out(t.type)))return{constraint:e,validate:r}}function CDe(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=SDe(o?.min,t,"min"),s=SDe(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,p;f!==void 0&&t.validate.pattern!==void 0&&(p={constraint:f,validate:t.validate.pattern});let m=o?.custom??t.validate.custom;return{required:r,elements:n,min:i,max:s,minLength:l,maxLength:d,pattern:p,custom:m}}function EDe(e){return e.validOperators.reduce((t,o)=>{let r=INe(o);return r?.filter&&(t[o]=r.filter),t},{})}function Aut(e,t){return{...t.format,...e.format}}var TDe=Aut;function Mut(e){let t=[KLe,XLe,eDe,tDe,aDe,cDe,dDe,pDe,mDe,bDe,yDe,vDe,wDe,kDe].find(o=>o?.type===e);return t||xDe}function qR(e){return e.map(t=>{let o=Mut(t.type),r=t.getValue||WLe(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||GLe(t.id),elements:t.elements,getElements:t.getElements,hasElements:V4(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:HLe(t,o.Edit),sort:n,enableSorting:t.enableSorting??o.enableSorting,enableGlobalSearch:t.enableGlobalSearch??o.enableGlobalSearch,isValid:CDe(t,o),filterBy:ULe(t,o.defaultOperators,o.validOperators),filter:EDe(o),format:TDe(t,o),getValueFormatted:t.getValueFormatted??o.getValueFormatted}})}var PJ=c(F(),1);var RDe=c(F(),1),BDe=c(T(),1),EJ=(0,RDe.createContext)({fields:[]});EJ.displayName="DataFormContext";function IDe({fields:e,children:t}){return(0,BDe.jsx)(EJ.Provider,{value:{fields:e},children:t})}var pc=EJ;var o8=c(F(),1);var K4=c(F(),1),XR=c(Y(),1);var ZR=c(q(),1),qi={type:"regular",labelPosition:"top"},Nut=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 PDe(e){let t=qi;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,ZR.__)("Apply"),cancelLabel:n.cancelLabel?.trim()||(0,ZR.__)("Cancel")}:n==="modal"?i={type:"modal",applyLabel:(0,ZR.__)("Apply"),cancelLabel:(0,ZR.__)("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:Nut(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 ODe(e){let t=PDe(e?.layout),o=(e.fields??[]).map(r=>{if(typeof r=="string")return{id:r,layout:t};let n=r.layout?PDe(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:ODe({fields:r.children,layout:qi}).fields}}});return{layout:t,fields:o}}var Y4=ODe;var pr=c(T(),1);function Lut({title:e}){return(0,pr.jsx)(Ke,{direction:"column",className:"dataforms-layouts-regular__header",gap:"lg",children:(0,pr.jsx)(Ke,{direction:"row",align:"center",children:(0,pr.jsx)(XR.__experimentalHeading,{level:2,size:13,children:e})})})}function ADe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{fields:s}=(0,K4.useContext)(pc),a=t.layout,l=(0,K4.useMemo)(()=>({layout:qi,fields:t.children?t.children:[]}),[t]);if(t.children)return(0,pr.jsxs)(pr.Fragment,{children:[!r&&t.label&&(0,pr.jsx)(Lut,{title:t.label}),(0,pr.jsx)(fa,{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,pr.jsxs)(Ke,{direction:"row",className:"dataforms-layouts-regular__field",gap:"sm",children:[(0,pr.jsx)("div",{className:$("dataforms-layouts-regular__field-label",`dataforms-layouts-regular__field-label--label-position-${u}`),children:(0,pr.jsx)(XR.BaseControl.VisualLabel,{children:d.label})}),(0,pr.jsx)("div",{className:"dataforms-layouts-regular__field-control",children:d.readOnly===!0?(0,pr.jsx)(d.render,{item:e,field:d}):(0,pr.jsx)(d.Edit,{data:e,field:d,onChange:o,hideLabelFromVision:!0,markWhenOptional:n,validity:i},d.id)})]}):(0,pr.jsx)("div",{className:"dataforms-layouts-regular__field",children:d.readOnly===!0?(0,pr.jsx)(pr.Fragment,{children:(0,pr.jsxs)(pr.Fragment,{children:[!r&&u!=="none"&&(0,pr.jsx)(XR.BaseControl.VisualLabel,{children:d.label}),(0,pr.jsx)(d.render,{item:e,field:d})]})}):(0,pr.jsx)(d.Edit,{data:e,field:d,onChange:o,hideLabelFromVision:u==="none"?!0:r,markWhenOptional:n,validity:i})})}var BJ=c(UP(),1),Kv=c(Y(),1),Ru=c(F(),1),Q4=c(ue(),1);var VDe=c(Y(),1),c0=c(q(),1);var FDe=c(ue(),1);function Dut(e,t){return $("dataforms-layouts-panel__field-label",`dataforms-layouts-panel__field-label--label-position-${e}`,{"has-error":t})}var MDe=Dut;var NDe=c(Y(),1);var Uh=c(T(),1);function Vut({showError:e,errorMessage:t,fieldLabel:o,errorId:r}){return e?(0,Uh.jsxs)("span",{className:"dataforms-layouts-panel__field-label-error-content",children:[(0,Uh.jsx)(NDe.Icon,{icon:z0,size:16}),(0,Uh.jsx)(bt,{id:r,children:t}),o]}):(0,Uh.jsx)(Uh.Fragment,{children:o})}var TJ=Vut;function LDe(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=LDe(o);if(r)return r}}var DDe=LDe;var mc=c(T(),1);function QR({data:e,field:t,fieldLabel:o,summaryFields:r,validity:n,touched:i,disabled:s,isOpen:a,onClick:l}){let{labelPosition:u,editVisibility:d}=t.layout,f=DDe(n),p=i&&!!f,m=MDe(u,p),g=$("dataforms-layouts-panel__field-trigger",`dataforms-layouts-panel__field-trigger--label-${u}`,{"is-disabled":s,"dataforms-layouts-panel__field-trigger--edit-always":d==="always"}),h=(0,FDe.useInstanceId)(QR,"dataforms-layouts-panel__field-control"),b=`${h}-error`,v=p?(0,c0.sprintf)((0,c0._x)("Edit %s (has errors)","field"),o||""):(0,c0.sprintf)((0,c0._x)("Edit %s","field"),o||"");return(0,mc.jsxs)("div",{className:g,children:[u!=="none"&&(0,mc.jsx)("span",{className:m,children:(0,mc.jsx)(TJ,{showError:p,errorMessage:f,fieldLabel:o,errorId:b})}),u==="none"&&p&&(0,mc.jsx)(TJ,{showError:!0,errorMessage:f,errorId:b}),(0,mc.jsx)("span",{id:`${h}`,className:"dataforms-layouts-panel__field-control",children:r.length>1?(0,mc.jsx)("span",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",width:"100%",gap:"2px"},children:r.map(y=>(0,mc.jsx)("span",{style:{width:"100%"},children:(0,mc.jsx)(y.render,{item:e,field:y})},y.id))}):r.map(y=>(0,mc.jsx)(y.render,{item:e,field:y},y.id))}),!s&&(0,mc.jsx)(VDe.Button,{className:"dataforms-layouts-panel__field-trigger-icon",label:v,icon:_b,size:"small","aria-expanded":a,"aria-haspopup":"dialog","aria-describedby":p?`${h} ${b}`:h,onClick:l})]})}var zDe=c(UP(),1),RJ=c(lb(),1),rf=c(F(),1),Rs=c(q(),1);function jDe(e){return e?Object.values(e).every(t=>Object.entries(t).every(([o,r])=>o==="children"&&r&&typeof r=="object"?jDe(r):r.type!=="invalid"&&r.type!=="validating")):!0}function Fut(e,t){let o=Y4(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]=qR([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]=qR([a]);return{id:s.id,children:[],field:l}}return o.fields.map(n).filter(s=>s!==null)}function u0(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 HDe(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 zut(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=>u0(u,{elements:{type:"invalid",message:(0,Rs.__)("Could not validate elements.")}},[...i,t.id]));return}t.field?.isValid.elements&&!t.field.isValid.elements.validate(s,{...t.field,elements:l})?n(u=>u0(u,{elements:{type:"invalid",message:(0,Rs.__)("Value must be one of the elements.")}},[...i,t.id])):n(u=>HDe(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,Rs.__)("Unknown error when running elements validation asynchronously."),n(d=>u0(d,{elements:{type:"invalid",message:u}},[...i,t.id]))})}function jut(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=>HDe(l,[...i,t.id],"custom"));return}if(typeof a=="string"){n(l=>u0(l,{custom:{type:"invalid",message:a}},[...i,t.id]));return}n(l=>u0(l,{custom:{type:"invalid",message:(0,Rs.__)("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,Rs.__)("Unknown error when running custom validation asynchronously."),n(u=>u0(u,{custom:{type:"invalid",message:l}},[...i,t.id]))})}function UDe(e,t){return e.children.length===0&&!!e.field?.isVisible&&!e.field.isVisible(t)}function WDe(e,t,o){if(UDe(t,e)){let{customCounterRef:i,elementsCounterRef:s}=o;i.current[t.id]&&(i.current[t.id]+=1),s.current[t.id]&&(s.current[t.id]+=1);return}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,Rs.__)("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,Rs.__)("Value is below the minimum.")}};if(t.field?.isValid.max&&!t.field.isValid.max.validate(e,t.field))return{max:{type:"invalid",message:(0,Rs.__)("Value is above the maximum.")}};if(t.field?.isValid.minLength&&!t.field.isValid.minLength.validate(e,t.field))return{minLength:{type:"invalid",message:(0,Rs.__)("Value is too short.")}};if(t.field?.isValid.maxLength&&!t.field.isValid.maxLength.validate(e,t.field))return{maxLength:{type:"invalid",message:(0,Rs.__)("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,Rs.__)("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,zDe.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,Rs.__)("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"&&(zut(t.field.getElements(),t,o),n.elements={type:"validating",message:(0,Rs.__)("Validating\u2026")}),r instanceof Promise&&(jut(r,t,o),n.custom={type:"validating",message:(0,Rs.__)("Validating\u2026")}),Object.keys(n).length>0)return n;if(t.children.length>0){let i={};t.children.forEach(a=>{i[a.id]=WDe(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 GDe(e,t){let o=e?.field?.getValue({item:t}),r=UDe(e,t);if(e.children.length===0)return{value:o,isHidden:r};let n=e.children.map(i=>GDe(i,t));return{value:o,isHidden:r,children:n}}function Hut(e,t,o){let[r,n]=(0,rf.useState)(),i=(0,rf.useRef)({}),s=(0,rf.useRef)({}),a=(0,rf.useRef)({}),l=(0,rf.useCallback)(()=>{let u={customCounterRef:i,elementsCounterRef:s,setFormValidity:n,path:[],item:e},d=Fut(o,t);if(d.length===0){n(void 0);return}let f={},p=[];d.forEach(m=>{let g=GDe(m,e);if(a.current.hasOwnProperty(m.id)&&(0,RJ.default)(a.current[m.id],g)){p.push(m.id);return}a.current[m.id]=g;let h=WDe(e,m,u);h!==void 0&&(f[m.id]=h)}),n(m=>{let g={...m,...f},h=[...p,...Object.keys(f)];return Object.keys(g).forEach(v=>{g&&!h.includes(v)&&delete g[v]}),Object.keys(g).length===0&&(g=void 0),(0,RJ.default)(m,g)?m:g})},[e,t,o]);return(0,rf.useEffect)(()=>{l()},[l]),{validity:r,isValid:jDe(r)}}var $De=Hut;var q4=c(F(),1);function Wh(e,t){let o=(0,q4.useCallback)(()=>{let r=e.current?.querySelectorAll("input, textarea, select"),n=0;return r?.forEach(i=>{i.willValidate&&!i.validity.valid&&(n++,i.dispatchEvent(new Event("invalid",{cancelable:!0})))}),n},[e]);return(0,q4.useEffect)(()=>{t&&o()},[t,o]),o}var YDe=c(F(),1);function Uut(e){return Array.isArray(e)?e.map(t=>typeof t=="string"?t:t.id):[]}var Z4=(e,t)=>Array.isArray(e)&&e.length>0?Uut(e).map(r=>t.find(n=>n.id===r)).filter(r=>r!==void 0):[];var Wut=(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 Gut(e){let{fields:t}=(0,YDe.useContext)(pc),o=e.layout,r=Z4(o.summary,t),n=Wut(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 X4=Gut;var Bs=c(T(),1);function $ut({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,Ru.useContext)(pc),[d,f]=(0,Ru.useState)({}),p=(0,Ru.useMemo)(()=>(0,BJ.default)(e,d,{arrayMerge:(k,x)=>x}),[e,d]),m=(0,Ru.useMemo)(()=>({layout:qi,fields:t.children?t.children:[{id:t.id,layout:qi}]}),[t]),g=u.map(k=>({...k,Edit:k.Edit===null?void 0:k.Edit,isValid:{required:k.isValid.required?.constraint,elements:k.isValid.elements?.constraint,min:k.isValid.min?.constraint,max:k.isValid.max?.constraint,pattern:k.isValid.pattern?.constraint,minLength:k.isValid.minLength?.constraint,maxLength:k.isValid.maxLength?.constraint}})),{validity:h}=$De(p,g,m),b=()=>{o(d),n()},v=k=>{f(x=>(0,BJ.default)(x,k,{arrayMerge:(S,C)=>C}))},y=(0,Q4.useFocusOnMount)("firstInputElement"),_=(0,Ru.useRef)(null),w=(0,Q4.useMergeRefs)([y,_]);return Wh(_,i),(0,Bs.jsxs)(Kv.Modal,{className:"dataforms-layouts-panel__modal",onRequestClose:n,isFullScreen:!1,title:r,size:"medium",children:[(0,Bs.jsx)("div",{ref:w,children:(0,Bs.jsx)(fa,{data:p,form:m,onChange:v,validity:h,children:(k,x,S,C)=>(0,Bs.jsx)(k,{data:p,field:x,onChange:v,hideLabelFromVision:m.fields.length<2,markWhenOptional:C,validity:S},x.id)})}),(0,Bs.jsxs)(Ke,{direction:"row",className:"dataforms-layouts-panel__modal-footer",gap:"md",children:[(0,Bs.jsx)(Kv.__experimentalSpacer,{style:{flex:1}}),(0,Bs.jsx)(Kv.Button,{variant:"tertiary",onClick:n,__next40pxDefaultSize:!0,children:l}),(0,Bs.jsx)(Kv.Button,{variant:"primary",onClick:b,__next40pxDefaultSize:!0,children:a})]})]})}function Yut({data:e,field:t,onChange:o,validity:r}){let[n,i]=(0,Ru.useState)(!1),[s,a]=(0,Ru.useState)(!1),{fieldDefinition:l,fieldLabel:u,summaryFields:d}=X4(t);if(!l)return null;let f=()=>{a(!1),i(!0)};return(0,Bs.jsxs)(Bs.Fragment,{children:[(0,Bs.jsx)(QR,{data:e,field:t,fieldLabel:u,summaryFields:d,validity:r,touched:n,disabled:l.readOnly===!0,onClick:()=>a(!0),isOpen:s}),s&&(0,Bs.jsx)($ut,{data:e,field:t,onChange:o,fieldLabel:u??"",onClose:f,touched:n})]})}var KDe=Yut;var Gh=c(Y(),1),qDe=c(q(),1),qp=c(F(),1);var ZDe=c(ue(),1);var Zi=c(T(),1);function Kut({title:e,onClose:t}){return(0,Zi.jsx)(Ke,{direction:"column",className:"dataforms-layouts-panel__dropdown-header",gap:"lg",children:(0,Zi.jsxs)(Ke,{direction:"row",gap:"sm",align:"center",children:[e&&(0,Zi.jsx)(Gh.__experimentalHeading,{level:2,size:13,children:e}),(0,Zi.jsx)(Gh.__experimentalSpacer,{style:{flex:1}}),t&&(0,Zi.jsx)(Gh.Button,{label:(0,qDe.__)("Close"),icon:fb,onClick:t,size:"small"})]})})}function qut({touched:e,children:t}){let o=(0,qp.useRef)(null);return Wh(o,e),(0,Zi.jsx)("div",{ref:o,children:t})}function Zut({data:e,field:t,onChange:o,validity:r}){let[n,i]=(0,qp.useState)(!1),[s,a]=(0,qp.useState)(null),l=(0,qp.useMemo)(()=>({anchor:s,placement:"left-start",offset:36,shift:!0}),[s]),[u,d]=(0,ZDe.__experimentalUseDialog)({focusOnMount:"firstInputElement"}),f=(0,qp.useMemo)(()=>({layout:qi,fields:t.children?t.children:[{id:t.id,layout:qi}]}),[t]),p=(0,qp.useMemo)(()=>{if(r!==void 0)return t.children?r?.children:{[t.id]:r}},[r,t]),{fieldDefinition:m,fieldLabel:g,summaryFields:h}=X4(t);return m?(0,Zi.jsx)("div",{ref:a,className:"dataforms-layouts-panel__field-dropdown-anchor",children:(0,Zi.jsx)(Gh.Dropdown,{contentClassName:"dataforms-layouts-panel__field-dropdown",popoverProps:l,focusOnMount:!1,onToggle:b=>{b||i(!0)},renderToggle:({isOpen:b,onToggle:v})=>(0,Zi.jsx)(QR,{data:e,field:t,fieldLabel:g,summaryFields:h,validity:r,touched:n,disabled:m.readOnly===!0,isOpen:b,onClick:v}),renderContent:({onClose:b})=>(0,Zi.jsx)(qut,{touched:n,children:(0,Zi.jsxs)("div",{ref:u,...d,children:[(0,Zi.jsx)(Kut,{title:g,onClose:b}),(0,Zi.jsx)(fa,{data:e,form:f,onChange:o,validity:p,children:(v,y,_,w)=>(0,Zi.jsx)(v,{data:e,field:y,onChange:o,hideLabelFromVision:(f?.fields??[]).length<2,markWhenOptional:w,validity:_},y.id)})]})})})}):null}var XDe=Zut;var IJ=c(T(),1);function QDe({data:e,field:t,onChange:o,validity:r}){return t.layout.openAs.type==="modal"?(0,IJ.jsx)(KDe,{data:e,field:t,onChange:o,validity:r}):(0,IJ.jsx)(XDe,{data:e,field:t,onChange:o,validity:r})}var Xi=c(F(),1),t5e=c(Yo(),1),o5e=c(ue(),1);var J4=c(q(),1);function JDe(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+=JDe(r);return t}function d0(e){let t=JDe(e);if(t!==0)return(0,J4.sprintf)((0,J4._n)("%d field needs attention","%d fields need attention",t),t)}var e5e=c(T(),1);function e8({validity:e}){let t=d0(e);return t?(0,e5e.jsx)(wG,{intent:"high",children:t}):null}var Ur=c(T(),1);function Xut(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 Qut({data:e,fields:t,label:o,layout:r,isOpen:n,touched:i,validity:s}){let l=Z4(r.summary,t).filter(f=>Xut(f,r.summary,n)),u=i&&r.isCollapsible,d=l.length>0&&r.withHeader;return(0,Ur.jsxs)(Ke,{align:"center",justify:"space-between",className:"dataforms-layouts-card__field-header-content",children:[(0,Ur.jsx)(fd.Title,{children:o}),(u||d)&&(0,Ur.jsxs)(_y.HeaderDescription,{className:"dataforms-layouts-card__field-header-content-description",children:[u&&(0,Ur.jsx)(e8,{validity:s}),d&&(0,Ur.jsx)("div",{className:"dataforms-layouts-card__field-summary",children:l.map(f=>(0,Ur.jsx)(f.render,{item:e,field:f},f.id))})]})]})}function Jut({data:e,field:t,form:o,onChange:r,hideLabelFromVision:n,markWhenOptional:i,validity:s,withHeader:a}){if(t.children)return(0,Ur.jsxs)(Ur.Fragment,{children:[t.description&&(0,Ur.jsx)("div",{className:"dataforms-layouts-card__field-description",children:t.description}),(0,Ur.jsx)(fa,{data:e,form:o,onChange:r,validity:s?.children})]});let l=qv("regular")?.component;return l?(0,Ur.jsx)(l,{data:e,field:t,onChange:r,hideLabelFromVision:n||a,markWhenOptional:i,validity:s}):null}function r5e({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{fields:s}=(0,Xi.useContext)(pc),a=t.layout,l=(0,Xi.useRef)(null),u=(0,Xi.useRef)(!1),d=(0,Xi.useMemo)(()=>({layout:qi,fields:t.children??[]}),[t]),{isOpened:f,isCollapsible:p}=a,[m,g]=(0,Xi.useState)(f),[h,b]=(0,Xi.useState)(!1);(0,Xi.useEffect)(()=>{g(f)},[f]);let v=(0,Xi.useCallback)(E=>{E||b(!0),g(E)},[]),y=Wh(l,(p?m:!0)&&h),_=(0,Xi.useCallback)(()=>{u.current=!0},[]),w=(0,Xi.useCallback)(()=>{if(!u.current||(b(!0),p&&!m))return;let E=y(),I=d0(i);E>0&&I&&(0,t5e.speak)(I,"polite")},[p,m,y,i]),k=(0,o5e.__experimentalUseFocusOutside)(w),x=t.label,S;if(t.children)S=!!x&&a.withHeader;else{let E=s.find(I=>I.id===t.id);if(!E||!E.Edit)return null;x=E.label,S=!!x&&a.withHeader}let C=(0,Ur.jsx)(Jut,{data:e,field:t,form:d,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i,withHeader:S}),R=(0,Ur.jsx)(Qut,{data:e,fields:s,label:x,layout:a,isOpen:p?!!m:!0,touched:h,validity:i});return S&&p?(0,Ur.jsxs)(_y.Root,{className:"dataforms-layouts-card__field",open:m,onOpenChange:v,...k,children:[(0,Ur.jsx)(_y.Header,{children:R}),(0,Ur.jsx)(_y.Content,{ref:l,onFocus:_,children:C})]}):(0,Ur.jsxs)(fd.Root,{className:"dataforms-layouts-card__field",...k,children:[S&&(0,Ur.jsx)(fd.Header,{children:R}),(0,Ur.jsx)(fd.Content,{ref:l,onFocus:_,children:C})]})}var n5e=c(Y(),1);var ri=c(T(),1);function edt({title:e}){return(0,ri.jsx)(Ke,{direction:"column",className:"dataforms-layouts-row__header",gap:"lg",children:(0,ri.jsx)(Ke,{direction:"row",align:"center",children:(0,ri.jsx)(n5e.__experimentalHeading,{level:2,size:13,children:e})})})}var tdt=({children:e})=>(0,ri.jsx)(ri.Fragment,{children:e});function i5e({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let s=t.layout;if(t.children){let l={layout:qi,fields:t.children};return(0,ri.jsxs)("div",{className:"dataforms-layouts-row__field",children:[!r&&t.label&&(0,ri.jsx)(edt,{title:t.label}),(0,ri.jsx)(Ke,{direction:"row",align:s.alignment,gap:"lg",children:(0,ri.jsx)(fa,{data:e,form:l,onChange:o,validity:i?.children,as:tdt,children:(u,d,f)=>(0,ri.jsx)("div",{className:"dataforms-layouts-row__field-control",style:s.styles[d.id],children:(0,ri.jsx)(u,{data:e,field:d,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:f})},d.id)})})]})}let a=qv("regular")?.component;return a?(0,ri.jsx)(ri.Fragment,{children:(0,ri.jsx)("div",{className:"dataforms-layouts-row__field-control",children:(0,ri.jsx)(a,{data:e,field:t,onChange:o,markWhenOptional:n,validity:i})})}):null}var Qi=c(F(),1),s5e=c(q(),1),a5e=c(Yo(),1),l5e=c(ue(),1);var Zp=c(T(),1);function c5e({data:e,field:t,onChange:o,validity:r}){let{fields:n}=(0,Qi.useContext)(pc),i=(0,Qi.useRef)(null),s=(0,Qi.useRef)(null),a=(0,Qi.useRef)(!1),[l,u]=(0,Qi.useState)(!1),[d,f]=(0,Qi.useState)(!1),p=(0,Qi.useMemo)(()=>({layout:qi,fields:t.children??[]}),[t]);(0,Qi.useEffect)(()=>{let w=i.current;if(!w)return;let k=()=>{let x=w.open;x||u(!0),f(x)};return w.addEventListener("toggle",k),()=>{w.removeEventListener("toggle",k)}},[]);let m=Wh(s,d&&l),g=(0,Qi.useCallback)(()=>{a.current=!0},[]),h=(0,Qi.useCallback)(()=>{if(!a.current||(u(!0),!i.current?.open))return;let w=m(),k=d0(r);w>0&&k&&(0,a5e.speak)(k,"polite")},[m,r]),b=(0,l5e.__experimentalUseFocusOutside)(h);if(!t.children)return null;let v=t.layout.summary??"",y=v?n.find(w=>w.id===v):void 0,_;return y&&y.render?_=(0,Zp.jsx)(y.render,{item:e,field:y}):_=t.label||(0,s5e.__)("More details"),(0,Zp.jsxs)("details",{ref:i,className:"dataforms-layouts-details__details",...b,children:[(0,Zp.jsx)("summary",{className:"dataforms-layouts-details__summary",children:(0,Zp.jsxs)(Ke,{direction:"row",align:"center",gap:"md",className:"dataforms-layouts-details__summary-content",children:[_,l&&(0,Zp.jsx)(e8,{validity:r})]})}),(0,Zp.jsx)("div",{ref:s,className:"dataforms-layouts-details__content",onFocus:g,children:(0,Zp.jsx)(fa,{data:e,form:p,onChange:o,validity:r?.children})})]})}var Zv=c(T(),1),odt=[{type:"regular",component:ADe,wrapper:({children:e})=>(0,Zv.jsx)(Ke,{direction:"column",className:"dataforms-layouts__wrapper",gap:"lg",children:e})},{type:"panel",component:QDe,wrapper:({children:e})=>(0,Zv.jsx)(Ke,{direction:"column",className:"dataforms-layouts__wrapper",gap:"md",children:e})},{type:"card",component:r5e,wrapper:({children:e})=>(0,Zv.jsx)(Ke,{direction:"column",className:"dataforms-layouts__wrapper",gap:"xl",children:e})},{type:"row",component:i5e,wrapper:({children:e,layout:t})=>(0,Zv.jsx)(Ke,{direction:"column",className:"dataforms-layouts__wrapper",gap:"lg",children:(0,Zv.jsx)("div",{className:"dataforms-layouts-row__field",children:(0,Zv.jsx)(Ke,{direction:"row",gap:"lg",align:t.alignment,children:e})})})},{type:"details",component:c5e}];function qv(e){return odt.find(t=>t.type===e)}var t8=c(T(),1),rdt=({children:e})=>(0,t8.jsx)(Ke,{direction:"column",className:"dataforms-layouts__wrapper",gap:"lg",children:e});function fa({data:e,form:t,onChange:o,validity:r,children:n,as:i}){let{fields:s}=(0,o8.useContext)(pc),a=(0,o8.useMemo)(()=>{let d=s.filter(p=>!!p.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??qv(t.layout.type)?.wrapper??rdt;return(0,t8.jsx)(u,{layout:t.layout,children:t.fields.map(d=>{let f=qv(d.layout.type)?.component;if(!f)return null;let p=d.children?void 0:l(d);return p&&p.isVisible&&!p.isVisible(e)?null:n?n(f,d,r?.[d.id],a):(0,t8.jsx)(f,{data:e,field:d,onChange:o,markWhenOptional:a,validity:r?.[d.id]},d.id)})})}var OJ=c(T(),1);function JR({data:e,form:t,fields:o,onChange:r,validity:n}){let i=(0,PJ.useMemo)(()=>Y4(t),[t]),s=(0,PJ.useMemo)(()=>qR(o),[o]);return t.fields?(0,OJ.jsx)(IDe,{fields:s,children:(0,OJ.jsx)(fa,{data:e,form:i,onChange:r,validity:n})}):null}var Yh=c(F(),1),C5e=c(q(),1);var p0=c(Y(),1);var AJ=c(q(),1);var u5e=c(ue(),1);function f0({isControl:e}={isControl:!1}){return(0,u5e.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:e?35:259}}}var r8=c(T(),1);function d5e({fields:e,visibleFields:t,onToggleField:o}){let{popoverProps:r}=f0();return!e||e.length===0?null:(0,r8.jsx)(p0.DropdownMenu,{icon:ha,label:(0,AJ.__)("Options"),popoverProps:r,toggleProps:{size:"small"},children:({onClose:n})=>(0,r8.jsx)(p0.MenuGroup,{label:(0,AJ.__)("Show / Hide"),children:e.map(i=>{let s=t.includes(i.id);return(0,r8.jsx)(p0.MenuItem,{isSelected:s,onClick:()=>{o(i.id),n()},role:"menuitemcheckbox",icon:s?Os:null,children:i.label},i.id)})})})}var n8=c(Y(),1),f5e=c(ue(),1),p5e=c(te(),1),Xp=c(F(),1),m5e=c(Ar(),1);var Bu=c(T(),1),{useRichText:ndt,KeyboardShortcutContext:idt,InputEventContext:sdt}=G(m5e.privateApis);function g5e({data:e,field:t,hideLabelFromVision:o,onChange:r,config:n={}}){let i=(0,p5e.useRegistry)(),s=t.getValue({item:e}),a=t.config||{},{clientId:l}=n,[u,d]=(0,Xp.useState)({start:void 0,end:void 0}),[f,p]=(0,Xp.useState)(!1),m=(0,Xp.useRef)(),g=(0,Xp.useRef)(new Set),h=(0,Xp.useRef)(new Set),b=mS({allowedFormats:a?.allowedFormats,disableFormats:a?.disableFormats});function v(){m.current?.focus()}let{value:y,getValue:_,onChange:w,ref:k,formatTypes:x}=ndt({value:s,onChange(R){r(t.setValue({item:e,value:R}))},selectionStart:u.start,selectionEnd:u.end,onSelectionChange:(R,E)=>d({start:R,end:E}),__unstableIsSelected:f,preserveWhiteSpace:!!a?.preserveWhiteSpace,placeholder:a?.placeholder,__unstableDisableFormats:a?.disableFormats,allowedFormats:b,withoutInteractiveFormatting:a?.withoutInteractiveFormatting,__unstableFormatTypeHandlerContext:(0,Xp.useMemo)(()=>({richTextIdentifier:t.id,blockClientId:l}),[t.id,l])}),{baseControlProps:S,controlProps:C}=(0,n8.useBaseControlProps)({hideLabelFromVision:o??t.hideLabelFromVision,label:t.label});return(0,Bu.jsxs)(Bu.Fragment,{children:[f&&(0,Bu.jsx)(idt.Provider,{value:h,children:(0,Bu.jsx)(sdt.Provider,{value:g,children:(0,Bu.jsx)("div",{children:(0,Bu.jsx)(TF,{value:y,onChange:w,onFocus:v,formatTypes:x,forwardedRef:m,isVisible:!1})})})}),(0,Bu.jsx)(n8.BaseControl,{...S,children:(0,Bu.jsx)("div",{className:"block-editor-content-only-controls__rich-text",role:"textbox","aria-multiline":!a?.disableLineBreaks,ref:(0,f5e.useMergeRefs)([k,SF({registry:i,getValue:_,onChange:w,formatTypes:x,selectionChange:d,isSelected:f,disableFormats:a?.disableFormats,value:y,tagName:"div",disableLineBreaks:a?.disableLineBreaks,keyboardShortcuts:h,inputEvents:g}),m]),onFocus:()=>p(!0),onBlur:()=>p(!1),contentEditable:!0,...C})})]})}var $h=c(Y(),1),h5e=c(te(),1),b5e=c(Lt(),1),y5e=c(F(),1),Xv=c(q(),1);var Br=c(T(),1),adt=e=>{window.requestAnimationFrame(()=>{let[t]=b5e.focus.tabbable.find(e?.current);t&&t.focus()})};function ldt({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,Br.jsx)("div",{className:"block-editor-content-only-controls__media-thumbnail",children:(0,Br.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,Br.jsx)("div",{className:"block-editor-content-only-controls__media-thumbnail",children:(0,Br.jsx)("img",{alt:"",width:20,height:20,src:a})});let l;if(n[0]==="image"?l=W0:n[0]==="video"?l=mj:n[0]==="audio"?l=wz:l=b_,l)return(0,Br.jsx)($h.Icon,{icon:l,size:20})}return(0,Br.jsx)($h.Icon,{icon:b_,size:20})}function v5e({data:e,field:t,onChange:o,config:r={}}){let{popoverProps:n}=f0({isControl:!0}),i=t.getValue({item:e}),{allowedTypes:s=[],multiple:a=!1,useFeaturedImage:l=!1}=r,u=i?.id,d=i?.url,f=(0,h5e.useSelect)(g=>{if(!u)return;let b=g(B).getSettings()[VB];if(b)return b(g,u)},[u]),p;if(s.length===1){let g=s[0];g==="image"?p=(0,Xv.__)("Image"):g==="video"?p=(0,Xv.__)("Video"):g==="application"?p=(0,Xv.__)("File"):p=(0,Xv.__)("Media")}else p=(0,Xv.__)("Media");let m=(0,y5e.useRef)();return(0,Br.jsx)(Oa,{children:(0,Br.jsxs)("div",{ref:m,className:"block-editor-content-only-controls",children:[(0,Br.jsx)(uS,{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:g=>{if(g.id&&g.url){let h={...g,mediaType:g.media_type};l&&(h.featuredImage=!1),o(t.setValue({item:e,value:h}))}},renderToggle:g=>(0,Br.jsx)($h.Button,{__next40pxDefaultSize:!0,className:"block-editor-content-only-controls__media",...g,children:(0,Br.jsxs)($h.__experimentalGrid,{rowGap:0,columnGap:8,templateColumns:"20px 1fr",className:"block-editor-content-only-controls__media-row",children:[d&&(0,Br.jsxs)(Br.Fragment,{children:[(0,Br.jsx)(ldt,{attachment:f,field:t,data:e,config:r}),(0,Br.jsx)("span",{className:"block-editor-content-only-controls__media-title",children:f?.title?.raw&&f?.title?.raw!==""?f?.title?.raw:d})]}),!d&&(0,Br.jsxs)(Br.Fragment,{children:[(0,Br.jsx)("span",{className:"block-editor-content-only-controls__media-placeholder",style:{width:"20px",height:"20px"}}),(0,Br.jsx)("span",{className:"block-editor-content-only-controls__media-title",children:p})]})]})})}),d&&(0,Br.jsx)($h.Button,{label:(0,Xv.__)("Reset"),className:"block-editor-content-only-controls__media-reset",size:"small",icon:Bn,onClick:()=>{o(t.setValue({item:e,value:{}})),adt(m)}})]})})}var Qp=c(Y(),1),s8=c(F(),1),_5e=c(q(),1);var w5e=c(ga(),1);var Ti=c(T(),1),MJ="noopener",k5e="_blank",i8="nofollow";function cdt({rel:e="",url:t="",opensInNewTab:o,nofollow:r}){let n,i=e;if(o)n=k5e,i=i?.includes(MJ)?i:i+` ${MJ}`;else{let s=new RegExp(`\\b${MJ}\\s*`,"g");i=i?.replace(s,"").trim()}if(r)i=i?.includes(i8)?i:(i+` ${i8}`).trim();else{let s=new RegExp(`\\b${i8}\\s*`,"g");i=i?.replace(s,"").trim()}return{url:(0,w5e.prependHTTP)(t),linkTarget:n,rel:i||void 0}}function x5e({data:e,field:t,onChange:o}){let[r,n]=(0,s8.useState)(!1),{popoverProps:i}=f0({isControl:!0}),s=t.getValue({item:e}),a=s?.url,l=s?.rel||"",d=s?.linkTarget===k5e,f=l===i8,p=(0,s8.useMemo)(()=>({url:a,opensInNewTab:d,nofollow:f}),[a,d,f]);return(0,Ti.jsxs)(Ti.Fragment,{children:[(0,Ti.jsx)(Qp.Button,{__next40pxDefaultSize:!0,className:"block-editor-content-only-controls__link",onClick:()=>{n(!0)},children:(0,Ti.jsxs)(Qp.__experimentalGrid,{rowGap:0,columnGap:8,templateColumns:"24px 1fr",className:"block-editor-content-only-controls__link-row",children:[a&&(0,Ti.jsxs)(Ti.Fragment,{children:[(0,Ti.jsx)(Qp.Icon,{icon:Ms,size:24}),(0,Ti.jsx)("span",{className:"block-editor-content-only-controls__link-title",children:a})]}),!a&&(0,Ti.jsxs)(Ti.Fragment,{children:[(0,Ti.jsx)(Qp.Icon,{icon:Ms,size:24,style:{opacity:.3}}),(0,Ti.jsx)("span",{className:"block-editor-content-only-controls__link-title",children:(0,_5e.__)("Link")})]})]})}),r&&(0,Ti.jsx)(Qp.Popover,{onClose:()=>{n(!1)},...i??{},children:(0,Ti.jsx)(_h,{value:p,onChange:m=>{let g=cdt({rel:l,...m});o(t.setValue({item:e,value:g}))},onRemove:()=>{o(t.setValue({item:e,value:{}}))}})})]})}var Ri=c(T(),1),{fieldsKey:E5e,formKey:NJ}=G(m0.privateApis);function LJ(e,t={}){return function(r){return(0,Ri.jsx)(e,{...r,config:t})}}function udt({clientId:e,blockType:t,setAttributes:o,isMultiBlock:r=!1}){let n=ci({clientId:e,context:"list-view"}),i=Mn(e),s=t?.[E5e],a=(0,Yh.useContext)(zn),l=(0,l8.useSelect)(v=>{let y=v(B).getBlockAttributes(e);if(!y?.metadata?.bindings)return y;let{__experimentalBlockBindingsSupportedAttributes:_}=v(B).getSettings(),w=_?.[t?.name],k=w?PB(y.metadata.bindings,w):y.metadata.bindings,{getBlockBindingsSource:x}=G(v(m0.store));return Object.entries(k).reduce((S,[C,R])=>{if(C==="__default")return S;let E=x(R.source);if(!E)return S;let I=E.getValues({select:v,clientId:e,context:a,bindings:{[C]:R}});return{...S,...I}},y)},[a,e,t?.name]),{selectBlock:u,toggleBlockHighlight:d}=(0,l8.useDispatch)(B),f=(0,S5e.useDebounce)(d,50),p=(0,Yh.useMemo)(()=>r?{...t?.[NJ],fields:[t?.[NJ]?.fields?.[0]]}:t?.[NJ],[t,r]),[m,g]=(0,Yh.useState)(p),h=(0,Yh.useMemo)(()=>s?.length?s.map(v=>{let y={...v};return typeof v.Edit=="string"&&v.Edit==="rich-text"?y.Edit=LJ(g5e,{clientId:e}):typeof v.Edit=="string"&&v.Edit==="link"?y.Edit=LJ(x5e):typeof v.Edit=="object"&&v.Edit.control==="media"&&(y.Edit=LJ(v5e,{...v.Edit})),y}):[],[s,e]);if(!s?.length)return null;let b=v=>{g(y=>y.fields?.includes(v)?{...y,fields:y.fields.filter(_=>_!==v)}:{...y,fields:[...y.fields||[],v]})};return(0,Ri.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,Ri.jsx)("div",{className:"block-editor-block-fields__header",children:(0,Ri.jsxs)(a8.__experimentalHStack,{spacing:1,children:[r&&(0,Ri.jsxs)(Ri.Fragment,{children:[(0,Ri.jsx)(Nt,{className:"block-editor-block-fields__header-icon",icon:i?.icon}),(0,Ri.jsx)("h2",{className:"block-editor-block-fields__header-title",children:(0,Ri.jsx)(a8.__experimentalTruncate,{numberOfLines:1,children:n})}),(0,Ri.jsx)(d5e,{fields:h,visibleFields:m.fields,onToggleField:b})]}),!r&&(0,Ri.jsx)("h2",{className:"block-editor-block-fields__header-title",children:(0,C5e.__)("Content")})]})}),(0,Ri.jsx)(JR,{data:l,fields:h,form:m,onChange:o})]})}function ddt(e){return!!(window?.__experimentalContentOnlyInspectorFields&&(0,m0.getBlockType)(e)?.[E5e])}function fdt(e){let{blockType:t,isSelectionWithinCurrentSection:o}=(0,Yh.useContext)(Tn);return(0,Ri.jsx)(Yy,{group:"content",children:(0,Ri.jsx)(udt,{...e,blockType:t,isMultiBlock:o})})}var T5e={edit:fdt,hasSupport:ddt,attributeKeys:[],supportsPatternEditing:!0};var FJ=c(Bo(),1),R5e=c(Y(),1),DJ=c(q(),1),eB=c(ce(),1);var VJ=c(T(),1);function pdt(e){return(0,eB.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes={...e.attributes,className:{type:"string"}}),e}function mdt({className:e,setAttributes:t}){return zr()!=="default"?null:(0,VJ.jsx)(Fe,{group:"advanced",children:(0,VJ.jsx)(R5e.TextControl,{autoComplete:"off",label:(0,DJ.__)("Additional CSS class(es)"),value:e||"",onChange:r=>{t({className:r!==""?r:void 0})},help:(0,DJ.__)("Separate multiple classes with spaces.")})})}var zJ={edit:mdt,addSaveProps:gdt,attributeKeys:["className"],hasSupport(e){return(0,eB.hasBlockSupport)(e,"customClassName",!0)}};function gdt(e,t,o){return(0,eB.hasBlockSupport)(t,"customClassName",!0)&&o.className&&(e.className=$(e.className,o.className)),e}function hdt(e,t,o,r){if(!(0,eB.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,FJ.addFilter)("blocks.registerBlockType","core/editor/custom-class-name/attribute",pdt);(0,FJ.addFilter)("blocks.switchToBlockType.transformedBlock","core/customClassName/addTransforms",hdt);var B5e=c(Bo(),1),tB=c(ce(),1);function bdt(e,t){return(0,tB.hasBlockSupport)(t,"className",!0)&&(typeof e.className=="string"?e.className=[...new Set([(0,tB.getBlockDefaultClassName)(t.name),...e.className.split(" ")])].join(" ").trim():e.className=(0,tB.getBlockDefaultClassName)(t.name)),e}(0,B5e.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",bdt);var WJ=c(F(),1),z5e=c(Bo(),1),j5e=c(te(),1);var Iu=c(ce(),1),H5e=c(ue(),1),af=c(k_(),1);var g0=c(F(),1),c8=c(te(),1),rB=c(ce(),1),M5e=c(Mt(),1);var nf=c(F(),1),I5e=c(lx(),1);var oB=c(T(),1);function P5e({clientId:e,value:t,computeStyle:o,forceShow:r}){let n=Zt(e),[i,s]=(0,nf.useReducer)(()=>o(n));(0,nf.useEffect)(()=>{n&&r&&s()},[n,r]),(0,nf.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,nf.useRef)(t),[l,u]=(0,nf.useState)(!1);return(0,nf.useEffect)(()=>{if((0,I5e.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,oB.jsx)(Ml,{clientId:e,__unstablePopoverSlot:"block-toolbar",children:(0,oB.jsx)("div",{className:"block-editor__spacing-visualizer",style:i})})}function Kh(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function O5e({clientId:e,value:t,forceShow:o}){return(0,oB.jsx)(P5e,{clientId:e,value:t?.spacing?.margin,computeStyle:r=>{let n=Kh(r,"margin-top"),i=Kh(r,"margin-right"),s=Kh(r,"margin-bottom"),a=Kh(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 A5e({clientId:e,value:t,forceShow:o}){return(0,oB.jsx)(P5e,{clientId:e,value:t?.spacing?.padding,computeStyle:r=>({borderTopWidth:Kh(r,"padding-top"),borderRightWidth:Kh(r,"padding-right"),borderBottomWidth:Kh(r,"padding-bottom"),borderLeftWidth:Kh(r,"padding-left")}),forceShow:o})}var Jp=c(T(),1),sf="dimensions",nB="spacing";function ydt(){let[e,t]=(0,g0.useState)(!1),{hideBlockInterface:o,showBlockInterface:r}=G((0,c8.useDispatch)(B));return(0,g0.useEffect)(()=>{e?o():r()},[e,r,o]),[e,t]}function vdt({children:e,resetAllFilter:t}){let o=(0,g0.useCallback)(r=>{let n=r.style,i=t(n);return{...r,style:i}},[t]);return(0,Jp.jsx)(Fe,{group:"dimensions",resetAllFilter:o,children:e})}function N5e({clientId:e,name:t,setAttributes:o,settings:r}){let n=Ll(),i=!qn(n),s=a6(r,n),{style:a,className:l,layout:u}=(0,c8.useSelect)(_=>{if(!s)return{};let w=_(B).getBlockAttributes(e)||{};return{style:w.style,className:w.className,layout:w.layout}},[e,s]),{value:d}=sc(t,l,n),[f,p]=ydt(),m=i?Ao(a,n):a,g=i?_=>{o({style:_n(a,n,_)})}:_=>{o({style:Xe(_)})};if(!s)return null;let h=(0,rB.getBlockSupport)(t,[sf,"__experimentalDefaultControls"]),b=(0,rB.getBlockSupport)(t,[nB,"__experimentalDefaultControls"]),{default:v}=(0,rB.getBlockSupport)(t,"layout")||{},y={minHeight:!1,minWidth:!1,...h,...b};return(0,Jp.jsxs)(Jp.Fragment,{children:[(0,Jp.jsx)(l6,{as:vdt,panelId:e,settings:r,allowAxialBlockGap:one(u,v),value:m,onChange:g,defaultControls:y,styleState:n,onVisualize:i?void 0:p,inheritedValue:d}),!i&&!!r?.spacing?.padding&&f==="padding"&&(0,Jp.jsx)(A5e,{forceShow:f==="padding",clientId:e,value:m}),!i&&!!r?.spacing?.margin&&f==="margin"&&(0,Jp.jsx)(O5e,{forceShow:f==="margin",clientId:e,value:m})]})}function L5e(e,t="any"){let o=(0,rB.getBlockSupport)(e,sf);return o===!0?!0:t==="any"?!!(o?.aspectRatio||o?.height||o?.minHeight||o?.width||o?.minWidth):!!o?.[t]}function jJ(e){return e?`${e}`.trim().toLowerCase()!=="auto":!1}var D5e={useBlockProps:_dt,attributeKeys:["height","minHeight","width","style"],hasSupport(e){return L5e(e)}};function _dt({name:e,height:t,minHeight:o,style:r}){if(!L5e(e,"aspectRatio")||io(e,sf,"aspectRatio"))return{};let n=jJ(r?.dimensions?.aspectRatio),i=$({"has-aspect-ratio":n}),s={};return n?(s.minHeight="unset",s.height="unset"):(o||r?.dimensions?.minHeight||t||r?.dimensions?.height)&&(s.aspectRatio="unset"),{className:i,style:s}}function HJ(){(0,M5e.default)("wp.blockEditor.__experimentalUseCustomSides",{since:"6.3",version:"6.4"})}var wdt=c(ce(),1);function V5e(e,t,o=""){if(typeof t!="string"||!t)return Fu(e).map(i=>`${i.trim()}${o}`).join(", ");let r=Fu(e).filter(i=>i.trim()),n=Fu(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 qh=c(T(),1),{getResponsiveMediaQueries:kdt}=G(Lo),xdt=["Top","Right","Bottom","Left"],Sdt=[...gMe,Vv,oi,sf,zv,nB,IR],GJ=e=>Sdt.some(t=>(0,Iu.hasBlockSupport)(e,t));function Ka(e={}){let t={};return(0,af.getCSSRules)(e).forEach(o=>{t[o.key]=o.value}),t}function Cdt(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"),xdt.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"})}),Xe({border:Xe(i)})}function Edt(e,t){if(!!!e?.color?.background)return;let r=!!e?.color?.gradient,n=!!e?.background?.gradient||!!e?.background?.backgroundImage;if(r||n)return;let i="background-image: unset !important";return t?`${t} { ${i}; }`:`${i};`}function Tdt(e){let t=e?.dimensions;if(t){if(jJ(t.aspectRatio))return{dimensions:{minHeight:"unset",height:"unset"}};if(t.minHeight||t.height)return{dimensions:{aspectRatio:"unset"}}}}function Rdt(e,t){let o=e?.typography?.textAlign;if(typeof o!="string"||!o)return;let r=`text-align: ${(0,af.getCSSValueFromRawStyle)(o)} !important`;return t?`${t} { ${r}; }`:`${r};`}function Bdt(e,t){let o=Tdt(e),r=o?$J(e,o):e,n=(0,af.compileCSS)(r,{selector:t}),i=n?n.replace(/;/g," !important;"):void 0,s=Cdt(e),a=s?(0,af.compileCSS)(s,{selector:t}):void 0,l=Rdt(e,t),u=Edt(e,t);return[i,l,a,u].filter(Boolean).join(` | |
| 215 | -`)}function d8(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function $J(e={},t={}){let o={...e};return Object.entries(t).forEach(([r,n])=>{o[r]=d8(n)&&d8(o[r])?$J(o[r],n):n}),o}function u8(e,t,o){let r=t||"",n=e.get(r)||{selector:t,style:{}};e.set(r,{selector:t,style:$J(n.style,o)})}function Idt(e,t){let o=(0,Iu.getBlockType)(t)?.selectors||{},r=new Map;return Object.entries(e||{}).forEach(([n,i])=>{let s=o[n];if(typeof s=="string"){u8(r,s,{[n]:i});return}if(d8(s)&&d8(i)){let a={...i};Object.entries(s).forEach(([l,u])=>{l==="root"||typeof u!="string"||!Object.hasOwn(i,l)||(u8(r,u,{[n]:{[l]:i[l]}}),delete a[l])}),Object.keys(a).length&&u8(r,s.root||o.root,{[n]:a});return}u8(r,o.root,{[n]:i})}),Array.from(r.values())}function YJ(e,t){let{name:o,baseSelector:r,state:n=""}=t,i=Idt(e,o).map(({selector:s,style:a})=>Bdt(a,V5e(r,s,n))).filter(Boolean);return i.length?i.join(` | |
| 216 | -`):void 0}function Pdt(e,t){if(!e)return e;let o={...e};return t.forEach(r=>{delete o[r]}),o}function U5e(e,t,o){let r=Z6[t];if(!r)return[];let n=[];return r.forEach(i=>{let s=e?.[i];if(s){let a=YJ(s,{name:t,baseSelector:o,state:i});a&&n.push(a)}}),n}function Odt(e,t,o,r){let n=[],s=["elements",...Z6[t]??[]],a=kdt(r);return Object.entries(a).forEach(([l,u])=>{let d=Ao(e,{viewport:l,pseudo:ta.pseudo});if(!d)return;let f=[],p=YJ(Pdt(d,s),{name:t,baseSelector:o});p&&f.push(p);let m=$5e(d.elements,t,o);m&&f.push(m),f.push(...U5e(d,t,o)),f.length&&n.push(`${u}{${f.join("")}}`)}),n}function F5e(e,t){let o=Ao(e,t);if(!vi(t))return o;let r={...t,viewport:ta.viewport},n=Ao(e,r);return n&&o?WP(n,o):o||n}function Adt(e){return!GJ(e)&&!(0,Iu.hasBlockSupport)(e,"customCSS",!0)||e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e}var W5e={[`${Vv}.__experimentalSkipSerialization`]:["border"],[`${oi}.__experimentalSkipSerialization`]:[oi],[`${ac}.__experimentalSkipSerialization`]:[ac],[`${sf}.__experimentalSkipSerialization`]:[sf],[`${nB}.__experimentalSkipSerialization`]:[nB],[`${IR}.__experimentalSkipSerialization`]:[IR]},Mdt={...W5e,[`${sf}.aspectRatio`]:[`${sf}.aspectRatio`],[`${zv}`]:[zv]},Ndt={[`${sf}.aspectRatio`]:!0,[`${zv}`]:!0},Ldt={gradients:"gradient"};function UJ(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;UJ(r[i],[s],!0)}else n.length===1&&delete r[n[0]]}),r}function G5e(e,t,o,r=Mdt){if(!GJ(t))return e;let{style:n}=o;return Object.entries(r).forEach(([i,s])=>{let a=Ndt[i]||(0,Iu.getBlockSupport)(t,i);a===!0&&(n=UJ(n,s)),Array.isArray(a)&&a.forEach(l=>{let u=Ldt[l]||l;n=UJ(n,[[...s,u]])})}),e.style={...Ka(n),...e.style},e}function Ddt({clientId:e,name:t,setAttributes:o,style:r,__unstableParentLayout:n}){let i=$d(t,n),s=zr(),{globalBlockStyles:a,selectedState:l,showStateOnCanvas:u}=(0,j5e.useSelect)(g=>{let h=g(B),{getSelectedBlockStyleState:b,isSelectedBlockStyleStateShownOnCanvas:v}=G(h);return{globalBlockStyles:h.getSettings()?.[Ps]?.blocks?.[t],selectedState:b(e),showStateOnCanvas:v(e)}},[e,t]),d=Ma(l),f=(0,WJ.useMemo)(()=>{if(!u||!d)return;let g=F5e(a,l),h=F5e(r,l),b;if(g&&h)b=WP(g,h);else if(h)b=h;else if(g)b=g;else return;return YJ(b,{name:t,baseSelector:`[data-block="${e}"]`})},[u,d,a,r,l,e,t]);if(Dl({css:f}),s!=="default")return null;let p={...i,typography:{...i.typography,textAlign:!1}},m={clientId:e,name:t,setAttributes:o,settings:p};return(0,qh.jsxs)(T5,{value:l,children:[(0,qh.jsx)(M6,{...m}),(0,qh.jsx)(I6,{...m}),(0,qh.jsx)(H6,{...m}),(0,qh.jsx)(LAe,{...m}),(0,qh.jsx)(N5e,{...m})]})}var f8={edit:Ddt,hasSupport:GJ,addSaveProps:G5e,attributeKeys:["style"],useBlockProps:zdt},Vdt=[{elementType:"button"},{elementType:"link",pseudo:[":hover"]},{elementType:"heading",elements:["h1","h2","h3","h4","h5","h6"]}],Fdt={};function $5e(e,t,o){if(!e)return;let r=[];return Vdt.forEach(({elementType:n,pseudo:i,elements:s})=>{if(io(t,oi,n))return;let l=e?.[n];if(l){let u=px(o,Iu.__EXPERIMENTAL_ELEMENTS[n]);r.push((0,af.compileCSS)(l,{selector:u})),i&&i.forEach(d=>{l[d]&&r.push((0,af.compileCSS)(l[d],{selector:px(o,`${Iu.__EXPERIMENTAL_ELEMENTS[n]}${d}`)}))})}s&&s.forEach(u=>{e[u]&&r.push((0,af.compileCSS)(e[u],{selector:px(o,Iu.__EXPERIMENTAL_ELEMENTS[u])}))})}),r.length>0?r.join(""):void 0}function zdt({name:e,style:t}){let o=(0,H5e.useInstanceId)(Fdt,"wp-elements"),r=`.${o}`,n=t?.elements,[i]=je("viewport"),s=(0,WJ.useMemo)(()=>{let a=[],l=$5e(n,e,r);return l&&a.push(l),a.push(...U5e(t,e,r)),a.push(...Odt(t,e,r,i)),a.length>0?a.join(""):void 0},[r,n,e,t,i]);return Dl({css:s}),G5e({className:o},e,{style:t},W5e)}(0,z5e.addFilter)("blocks.registerBlockType","core/style/addAttribute",Adt);var Y5e=c(Bo(),1),K5e=c(ce(),1),jdt=e=>(0,K5e.hasBlockSupport)(e,"__experimentalSettings",!1);function Hdt(e){return jdt(e)&&(e?.attributes?.settings||(e.attributes={...e.attributes,settings:{type:"object"}})),e}(0,Y5e.addFilter)("blocks.registerBlockType","core/settings/addAttribute",Hdt);var Zh=c(ce(),1),q5e=c(ue(),1),Z5e=c(Bo(),1),iB=c(F(),1),X5e=c(te(),1);var em=c(T(),1),{getDuotoneFilter:Udt,getDuotoneStylesheet:Wdt,getDuotoneUnsetStylesheet:Gdt}=G(Lo),KJ=[],$dt=window?.navigator.userAgent&&window.navigator.userAgent.includes("Safari")&&!window.navigator.userAgent.includes("Chrome")&&!window.navigator.userAgent.includes("Chromium");lm([cm]);function qJ({presetSetting:e,defaultSetting:t}){let[o,r,n,i]=je(t,`${e}.custom`,`${e}.theme`,`${e}.default`);return(0,iB.useMemo)(()=>[...r||KJ,...n||KJ,...o&&i||KJ],[o,r,n,i])}function Q5e(e,t){if(!e)return;let o=t?.find(({slug:r})=>e===`var:preset|duotone|${r}`);return o?o.colors:void 0}function Ydt(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 Kdt({style:e,setAttributes:t,name:o,clientId:r}){let n=e?.color?.duotone,i=$d(o),s=zr(),a=(0,X5e.useSelect)(b=>r?b(B).getBlockAttributes(r)?.className:void 0,[r]),{value:l}=sc(o,a),u=qJ({presetSetting:"color.duotone",defaultSetting:"color.defaultDuotone"}),d=qJ({presetSetting:"color.palette",defaultSetting:"color.defaultPalette"}),[f,p]=je("color.custom","color.customDuotone"),m=!f,g=!p||d?.length===0&&m;if(u?.length===0&&g||s!=="default")return null;let h=n==="unset"||Array.isArray(n)?n:Q5e(n,u);return(0,em.jsxs)(em.Fragment,{children:[(0,em.jsx)(Fe,{group:"filter",children:(0,em.jsx)(m6,{value:{filter:{duotone:n}},onChange:b=>{let v={...e,color:{...b?.filter}};t({style:Xe(v)})},settings:i,inheritedValue:l})}),(0,em.jsx)(Ko,{group:"block",__experimentalShareWithChildBlocks:!0,children:(0,em.jsx)(C3,{duotonePalette:u,colorPalette:d,disableCustomDuotone:g,disableCustomColors:m,value:h,selectedSlug:dT(n),onChange:(b,v,y)=>{let _=y?`var:preset|duotone|${y}`:Ydt(b,u),w={...e,color:{...e?.color,duotone:_??b}};t({style:Xe(w)})},settings:i})})]})}var ZJ={shareWithChildBlocks:!0,edit:Kdt,useBlockProps:Qdt,attributeKeys:["style"],hasSupport(e){return(0,Zh.hasBlockSupport)(e,"filter.duotone")}};function qdt(e){return(0,Zh.hasBlockSupport)(e,"filter.duotone")&&(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}})),e}function Zdt({clientId:e,id:t,selector:o,attribute:r}){let n=qJ({presetSetting:"color.duotone",defaultSetting:"color.defaultDuotone"}),i=Array.isArray(r),s=i?void 0:Q5e(r,n),a=typeof r=="string"&&s,l=typeof r=="string"&&!a,u=null;a?u=s:(l||i)&&(u=r);let p=o.split(",").map(h=>`.${t}${h.trim()}`).join(", "),m=Array.isArray(u)||u==="unset";bu(m?{css:u!=="unset"?Wdt(p,t):Gdt(p),__unstableType:"presets"}:void 0),bu(m?{assets:u!=="unset"?Udt(t,u):"",__unstableType:"svgs"}:void 0);let g=Zt(e);(0,iB.useEffect)(()=>{if(m&&g&&$dt){let h=g.style.display;g.style.setProperty("display","inline-block"),g.offsetHeight,g.style.setProperty("display",h)}},[m,g,u])}var Xdt={};function Qdt({clientId:e,name:t,style:o}){let r=(0,q5e.useInstanceId)(Xdt),n=(0,iB.useMemo)(()=>{let l=(0,Zh.getBlockType)(t);if(l){if(!(0,Zh.getBlockSupport)(l,"filter.duotone",!1))return null;let d=(0,Zh.getBlockSupport)(l,"color.__experimentalDuotone",!1);if(d){let f=ba(l);return typeof d=="string"?px(f,d):f}return ba(l,"filter.duotone",{fallback:!0})}},[t]),i=o?.color?.duotone,s=`wp-duotone-${r}`,a=n&&i;return Zdt({clientId:e,id:s,selector:n,attribute:i}),{className:a?s:""}}(0,Z5e.addFilter)("blocks.registerBlockType","core/editor/duotone/add-attributes",qdt);var m8=c(F(),1),sB=c(te(),1),J5e=c(ue(),1),aB=c(ce(),1),lB=c(q(),1);var eVe=c(Ls(),1);var p8=c(T(),1),Jdt={},eft={};function tft({blockName:e,setAttributes:t,style:o}){if(zr()!=="default")return null;let n=(0,aB.getBlockType)(e);function i(a){let l=a?.css?.trim()?a.css:void 0;t({style:Xe({...a,css:l})})}let s=(0,lB.sprintf)((0,lB.__)("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,p8.jsx)(Fe,{group:"advanced",children:(0,p8.jsx)(b6,{value:o,onChange:i,inheritedValue:o,help:s})})}var oft="custom-css-edit-warning";function rft({clientId:e,name:t,setAttributes:o}){let{style:r,canEditCSS:n}=(0,sB.useSelect)(i=>{let{getBlockAttributes:s,getSettings:a}=i(B);return{style:s(e)?.style||eft,canEditCSS:a().canEditCSS}},[e]);return n?(0,p8.jsx)(tft,{blockName:t,setAttributes:o,style:r}):null}function nft({style:e,clientId:t}){let o=e?.css,r=typeof o=="string"&&o.trim().length>0&&nQ(o),n=(0,sB.useSelect)(d=>d(B).getSettings().canEditCSS,[]),{createWarningNotice:i}=(0,sB.useDispatch)(eVe.store),s=!!o?.trim();(0,m8.useEffect)(()=>{!n&&s&&i((0,lB.__)("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:oft,isDismissible:!0})},[n,s,i]);let a=(0,J5e.useInstanceId)(Jdt,"wp-custom-css"),l=`.${a}`,u=(0,m8.useMemo)(()=>{if(r)return ZP(o,l)},[o,l,r]);return bu({css:u,clientId:t,__unstableType:"custom-css"}),r?{className:`has-custom-css ${a}`}:{}}function ift(e,t,o){if(!(0,aB.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 g8={edit:rft,useBlockProps:nft,addSaveProps:ift,attributeKeys:["style"],hasSupport(e){return(0,aB.hasBlockSupport)(e,"customCSS",!0)}};var b8=c(ue(),1),QJ=c(Bo(),1),oVe=c(F(),1),Pu=c(ce(),1);var y8=c(te(),1),tm=c(Y(),1),Qv=c(q(),1);var ni=c(T(),1),sft="is-style-",h8="layout",XJ=["selfStretch","flexSize","columnStart","columnSpan","rowStart","rowSpan"],{getResponsiveMediaQueries:aft}=G(Lo);function lft(e={},t){let o=e?.default;return t?.attributes?.layout??o}function tVe(e={},t){return Xe({...lft(e,t)})}function cft(e={},t={},o={}){let r={},n=Object.fromEntries(XJ.filter(i=>Object.hasOwn(o||{},i)).map(i=>[i,o[i]]));return Object.entries(e||{}).forEach(([i,s])=>{let a=Object.hasOwn(t||{},i);!XJ.includes(i)&&s!==t?.[i]&&(r[i]=s===void 0&&a?null:s)}),Xe({...n,...r})}function uft({layoutType:e,constrainedType:t,layoutBlockSupport:o,showInheritToggle:r,showLayoutTypeSwitcher:n,displayControlsForLegacyLayouts:i}){let s=e?.name!=="default"&&e?.hasInspectorControls(o),a=i&&t?.hasInspectorControls(o);return!!(r||n||s||a)}function dft(e={}){return Object.fromEntries(Object.entries(e||{}).filter(([t])=>!XJ.includes(t)))}function JJ(e){return(0,Pu.hasBlockSupport)(e,"layout")||(0,Pu.hasBlockSupport)(e,"__experimentalLayout")}function v8(e={},t=""){let{layout:o}=e,{default:r}=(0,Pu.getBlockSupport)(t,h8)||{},n=o?.inherit||o?.contentSize||o?.wideSize?{...o,type:"constrained"}:o||r||{},i=[];if(_a[n?.type||"default"]?.className){let a=_a[n?.type||"default"]?.className,l=t.split("/"),d=`wp-block-${l[0]==="core"?l.pop():l.join("-")}-${a}`;i.push(a,d)}return(0,y8.useSelect)(a=>!n?.inherit&&!n?.contentSize&&n?.type!=="constrained"?!1:a(B).getSettings().__experimentalFeatures?.useRootPaddingAwareAlignments,[n?.contentSize,n?.inherit,n?.type])&&i.push("has-global-padding"),n?.orientation&&i.push(`is-${Is(n.orientation)}`),n?.justifyContent&&i.push(`is-content-justification-${Is(n.justifyContent)}`),n?.flexWrap&&n.flexWrap==="nowrap"&&i.push("is-nowrap"),i}function eee(e={},t,o){let{layout:r={},style:n={}}=e,i=r?.inherit||r?.contentSize||r?.wideSize?{...r,type:"constrained"}:r||{},s=al(i?.type||"default"),[a]=je("spacing.blockGap"),l=a!==null;return s?.getLayoutStyle?.({blockName:t,selector:o,layout:r,style:n,hasBlockGapSupport:l})}function fft({attributes:e={},blockName:t,selector:o,layout:r={},hasBlockGapSupport:n,globalBlockGapValue:i,viewportSettings:s}){return Object.entries(aft(s)).map(([a,l])=>{let u=Ao(e?.style,{viewport:a,pseudo:ta.pseudo}),d=dft(u?.layout),f=Object.keys(d).length>0,p=u?.spacing&&Object.hasOwn(u.spacing,"blockGap"),m=u?.spacing&&Object.hasOwn(u.spacing,"padding");if(!f&&!p&&!m)return"";let h=al(r?.type||"default")?.getLayoutStyle?.({blockName:t,selector:o,layout:r,viewportOverrides:d,style:u,hasBlockGapSupport:n,globalBlockGapValue:i});return h?`${l}{${h}}`:""}).filter(Boolean).join("")}function pft({layout:e,style:t,setAttributes:o,name:r,clientId:n}){let i=$d(r),{layout:s}=i,{themeSupportsLayout:a,activeBlockVariation:l,selectedState:u,isResponsiveEditing:d}=(0,y8.useSelect)(K=>{let{getBlockAttributes:X,getSettings:oe,getSelectedBlockStyleState:ie,isResponsiveEditing:se}=G(K(B));return{activeBlockVariation:K(Pu.store).getActiveBlockVariation(r,X(n)||{},"block"),themeSupportsLayout:oe().supportsLayout,selectedState:ie(n),isResponsiveEditing:se()}},[r,n]),f=zr(),p=vi(u)&&!Ma(u),m=(0,oVe.useCallback)((...K)=>{let X=K[0]||{},oe=K[1]||{};if(p){let be=Ao(X.style??t,u)||{},pe=Xe({...be,layout:void 0});return{style:_n(X.style??t,u,pe)}}let ie=oe.name||r,se=(0,Pu.getBlockSupport)(ie,h8,{});return{layout:tVe(se,l)}},[r,l,p,u,t]);if(f!=="default")return null;let g=(0,Pu.getBlockSupport)(r,h8,{}),h={...s,...g},{allowSwitching:b,allowEditing:v=!0,allowInheriting:y=!0,default:_}=h;if(!v)return null;let w=e||_||{},k=p?Ao(t,u):void 0,x=k?.layout,S=p?Xe({...w,...x})||{}:w,C=p?w:tVe(g,l),R={...g,...S},{type:E,default:{type:I="default"}={}}=R,O=E||I,A=!!(y&&(!O||O==="default"||O==="constrained"||R.inherit)),{inherit:P=!1,contentSize:L=null}=S;if((O==="default"||O==="constrained")&&!a)return null;let H=al(O),N=al("constrained"),M=!S.type&&(L||P),V=!!P||!!L,j=qn(u)&&!P&&b,D=uft({layoutType:H,constrainedType:N,layoutBlockSupport:h,showInheritToggle:A,showLayoutTypeSwitcher:j,displayControlsForLegacyLayouts:M}),z=K=>{if(p){let X=Xe({...k,layout:cft(K,w,k?.layout)});o({style:_n(t,u,X)});return}o({layout:Xe(K)})},W=K=>z({type:K}),ee=()=>z(C),J=()=>z({type:"default"}),U=()=>H?.name==="constrained"||V,Q=()=>p?(S?.type??"default")!==(C?.type??"default"):e?.type==="constrained",Z=()=>(S?.type??"default")!==(C?.type??"default");return(0,ni.jsxs)(ni.Fragment,{children:[D&&(0,ni.jsxs)(Fe,{group:"layout",resetAllFilter:m,children:[A&&(0,ni.jsx)(tm.__experimentalToolsPanelItem,{label:(0,Qv.__)("Use content width"),hasValue:Q,onDeselect:J,isShownByDefault:!0,panelId:n,children:(0,ni.jsx)(tm.ToggleControl,{label:(0,Qv.__)("Inner blocks use content width"),checked:U(),onChange:()=>z({type:U()?"default":"constrained"}),help:U()?(0,Qv.__)("Nested blocks use content width with options for full and wide widths."):(0,Qv.__)("Nested blocks will fill the width of this container.")})}),j&&(0,ni.jsx)(tm.__experimentalToolsPanelItem,{label:(0,Qv.__)("Layout type"),hasValue:Z,onDeselect:ee,isShownByDefault:!0,panelId:n,children:(0,ni.jsx)(mft,{type:O,onChange:W})}),H&&H.name!=="default"&&(0,ni.jsx)(H.inspectorControls,{layout:S,value:e,onChange:z,layoutBlockSupport:h,resetLayout:C,name:r,clientId:n}),N&&M&&(0,ni.jsx)(N.inspectorControls,{layout:S,value:e,onChange:z,layoutBlockSupport:h,resetLayout:C,name:r,clientId:n})]}),!P&&H&&(0,ni.jsx)(H.toolBarControls,{layout:S,onChange:z,layoutBlockSupport:g,controlsGroup:d&&vi(u)&&!Ma(u)?"style-state":"block",name:r,clientId:n})]})}var rVe={shareWithChildBlocks:!0,edit:pft,attributeKeys:["layout","style"],hasSupport(e){return JJ(e)}};function mft({type:e,onChange:t}){return(0,ni.jsx)(tm.__experimentalToggleGroupControl,{isBlock:!0,label:(0,Qv.__)("Layout type"),hideLabelFromVision:!0,isAdaptiveWidth:!0,value:e,onChange:t,children:gne().map(({name:o,label:r})=>(0,ni.jsx)(tm.__experimentalToggleGroupControlOption,{value:o,label:r},o))})}function gft(e){return"type"in(e.attributes?.layout??{})||JJ(e)&&(e.attributes={...e.attributes,layout:{type:"object"}}),e}function hft({block:e,props:t,blockGapSupport:o,globalBlockGapValue:r,viewportSettings:n,layoutClasses:i}){let{name:s,attributes:a}=t,l=(0,b8.useInstanceId)(e),{layout:u}=a,{default:d}=(0,Pu.getBlockSupport)(s,h8)||{},f=u?.inherit||u?.contentSize||u?.wideSize?{...u,type:"constrained"}:u||d||{},p=`wp-container-${Is(s)}-is-layout-`,m=`.${p}${l}`,g=o!==null,b=al(f?.type||"default")?.getLayoutStyle?.({blockName:s,selector:m,layout:f,style:a?.style,hasBlockGapSupport:g,globalBlockGapValue:r}),v=fft({attributes:a,blockName:s,selector:m,layout:f,hasBlockGapSupport:g,globalBlockGapValue:r,viewportSettings:n}),y=[b,v].filter(Boolean).join(""),_=$({[`${p}${l}`]:!!y},i);return Dl({css:y}),(0,ni.jsx)(e,{...t,__unstableLayoutClassNames:_})}var bft=(0,b8.createHigherOrderComponent)(e=>function(o){let{clientId:r,name:n,attributes:i}=o,s=JJ(n),a=v8(i,n),l=(0,y8.useSelect)(u=>{if(!s)return;let{getSettings:d,getBlockSettings:f}=G(u(B)),p=d(),{disableLayoutStyles:m}=p;if(m)return;let[g]=f(r,"spacing.blockGap"),h=p[Ps],b,v=i?.className;if(v?.includes(sft)){let{getBlockStyles:_}=u(Pu.store),w=_(n),k=ER(v,w);b=k?h?.blocks?.[n]?.variations?.[k]?.spacing?.blockGap:void 0}let y=b??h?.blocks?.[n]?.spacing?.blockGap??h?.spacing?.blockGap;return{blockGapSupport:g,globalBlockGapValue:y,viewportSettings:p?.__experimentalFeatures?.viewport}},[s,r,i?.className,n]);return l?(0,ni.jsx)(hft,{block:e,props:o,layoutClasses:a,...l}):(0,ni.jsx)(e,{...o,__unstableLayoutClassNames:s?a:void 0})},"withLayoutStyles");(0,QJ.addFilter)("blocks.registerBlockType","core/layout/addAttribute",gft);(0,QJ.addFilter)("editor.BlockListBlock","core/editor/layout/with-layout-styles",bft);var fVe=c(ue(),1),S8=c(te(),1),pVe=c(F(),1);var gc=c(F(),1),Xh=c(te(),1),iVe=c(ue(),1);function uB(e,t){return Array.from({length:t},(o,r)=>e+r)}var Ou=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 un(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function cB(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 om(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 yft(e,t){let o=parseFloat(un(e,"column-gap")),r=parseFloat(un(e,"row-gap")),n=cB(un(e,"grid-template-columns"),o),i=cB(un(e,"grid-template-rows"),r),s=om(n,t.left)+1,a=om(i,t.top)+1,l=om(n,t.right,"end")+1,u=om(i,t.bottom,"end")+1;return new Ou({columnStart:s,columnEnd:l,rowStart:a,rowEnd:u})}function nVe(e){return yft(e.parentElement,new window.DOMRect(e.offsetLeft,e.offsetTop,e.offsetWidth,e.offsetHeight))}function tee(e){let t=un(e,"grid-template-columns"),o=un(e,"grid-template-rows"),r=un(e,"border-top-width"),n=un(e,"border-right-width"),i=un(e,"border-bottom-width"),s=un(e,"border-left-width"),a=un(e,"padding-top"),l=un(e,"padding-right"),u=un(e,"padding-bottom"),d=un(e,"padding-left"),f=t.split(" ").length,p=o.split(" ").length,m=f*p;return{numColumns:f,numRows:p,numItems:m,currentColor:un(e,"color"),style:{gridTemplateColumns:t,gridTemplateRows:o,gap:un(e,"gap"),inset:` | |
| 214 | +`?b.batch(()=>{let k={..._};k.start=k.end-2,m((0,by.remove)(k)),h()}):m((0,by.insert)(_,` | |
| 215 | +`)))}function r(a){a.defaultPrevented||a.inputType!=="insertParagraph"&&a.inputType!=="insertLineBreak"||a.target!==t&&!Amt(t)||a.preventDefault()}let{defaultView:n}=t.ownerDocument,i=Nmt(n,"beforeinput",r),s=Mmt(t,"beforeinput",o,!0);return()=>{i(),s()}};var n6e=e=>t=>{function o(){let{registry:r}=e.current;if(!r.select(P).isMultiSelecting())return;let n=t.parentElement.closest('[contenteditable="true"]');n&&n.focus()}return t.addEventListener("focus",o),()=>{t.removeEventListener("focus",o)}};var Lmt=[L7e,j7e,U7e,G7e,Y7e,q7e,e6e,t6e,r6e,n6e];function s6e(e){let t=(0,k1.useRef)(e);(0,k1.useInsertionEffect)(()=>{t.current=e});let o=(0,k1.useMemo)(()=>Lmt.map(r=>r(t)),[t]);return(0,i6e.useRefEffect)(r=>{if(!e.isSelected)return;let n=o.map(i=>i(r));return()=>{n.forEach(i=>i())}},[o,e.isSelected])}var hD=c(pn(),1),bD=c(D(),1);var a6e=c(T(),1),l6e=c(te(),1),Dmt={},Yee=Symbol("usesContext");function Vmt({onChange:e,onFocus:t,value:o,forwardedRef:r,settings:n,isVisible:i}){let{name:s,edit:a,[Yee]:l}=n,d=(0,bD.useContext)(Oi),u=(0,bD.useMemo)(()=>l?Object.fromEntries(Object.entries(d).filter(([h])=>l.includes(h))):Dmt,[l,d]);if(!a)return null;let f=(0,hD.getActiveFormat)(o,s),p=f!==void 0,m=(0,hD.getActiveObject)(o),g=m!==void 0&&m.type===s;return(0,a6e.jsx)(a,{isActive:p,isVisible:i,activeAttributes:p?f.attributes||{}:{},isObjectActive:g,activeObjectAttributes:g?m.attributes||{}:{},value:o,onChange:e,onFocus:t,contentRef:r,context:u},g?`${s}-${o.start}`:s)}function c6e({formatTypes:e,...t}){return e.map(o=>(0,l6e.createElement)(Vmt,{settings:o,...t,key:o.name}))}var d6e=c(D(),1),u6e=c(ce(),1),f6e=c(Gt(),1);var Kee=c(T(),1);function qee(e,t){if(S1.isEmpty(e)){let o=mD(t);return o?`<${o}></${o}>`:""}return Array.isArray(e)?((0,f6e.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/"}),u6e.children.toHTML(e)):typeof e=="string"?e:e.toHTMLString()}function Q2({value:e,tagName:t,multiline:o,format:r,...n}){return e=(0,Kee.jsx)(d6e.RawHTML,{children:qee(e,o)}),t?(0,Kee.jsx)(t,{...n,children:e}):e}var b6e=c(D(),1),Zee=c(ce(),1),_6e=c(pn(),1),v6e=c(Gt(),1);var C1=c(D(),1),p6e=c(Gt(),1),_y=c(oe(),1),m6e=c(Mo(),1),ub=c(pn(),1),g6e=c(ue(),1);var _D=c(T(),1),{subscribeOwnedListener:Fmt}=Z(ub.privateApis);function zmt(e){let t=(0,_y.useRegistry)(),{getSelectionStart:o,getSelectionEnd:r}=(0,_y.useSelect)(P),{selectionChange:n}=(0,_y.useDispatch)(P);return(0,g6e.useRefEffect)(i=>{function s(a){if(a.keyCode!==m6e.ENTER)return;a.preventDefault();let{value:l,values:d,onChange:u,index:f,identifier:p,clientId:m}=e.current,{offset:g}=o(),{offset:h}=r();if(typeof g!="number"||typeof h!="number")return;let b=(0,ub.create)({html:l});b.start=g,b.end=h;let v=(0,ub.split)(b).map(y=>(0,ub.toHTMLString)({value:y})),_=d.slice();_.splice(f,1,...v),t.batch(()=>{u(_),n(m,`${p}-${f+1}`,0,0)})}return Fmt(i,"keydown",s,!0)},[])}function jmt(e){let{value:t,values:o,onChange:r,index:n,identifier:i,multilineTagName:s,...a}=e,{clientId:l}=Mt(),{selectionChange:d}=(0,_y.useDispatch)(P),u=(0,C1.useRef)();(0,C1.useInsertionEffect)(()=>{u.current={...e,clientId:l}});let f=zmt(u);return(0,_D.jsx)(Xee,{identifier:`${i}-${n}`,tagName:s,value:t,onChange:p=>{let m=o.slice();m[n]=p,r(m)},isSelected:void 0,ref:f,onMerge:p=>{let m=o.slice(),g=0;if(p){if(!m[n+1])return;m.splice(n,2,m[n]+m[n+1]),g=m[n].length-1}else{if(!m[n-1])return;m.splice(n-1,2,m[n-1]+m[n]),g=m[n-1].length-1}r(m),d(l,`${i}-${n-(p?0:1)}`,g,g)},...a},n)}function Hmt({children:e,identifier:t,tagName:o="div",value:r="",onChange:n,multiline:i,...s},a){(0,p6e.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 l=mD(i);r=r||`<${l}></${l}>`;let u=`</${l}>${r}<${l}>`.split(`</${l}><${l}>`);u.shift(),u.pop();function f(p){n(`<${l}>${p.join(`</${l}><${l}>`)}</${l}>`)}return(0,_D.jsx)(o,{ref:a,children:u.map((p,m)=>(0,_D.jsx)(jmt,{values:u,value:p,onChange:f,index:m,identifier:t,multilineTagName:l,...s},m))})}var h6e=(0,C1.forwardRef)(Hmt);var y6e=c(T(),1);function w6e(e){return(0,b6e.forwardRef)((t,o)=>{let r=t.value,n=t.onChange;Array.isArray(r)&&((0,v6e.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=Zee.children.toHTML(t.value),n=s=>t.onChange(Zee.children.fromDOM((0,_6e.__unstableCreateElement)(document,s).childNodes)));let i=t.multiline?h6e:e;return(0,y6e.jsx)(i,{...t,value:r,onChange:n,ref:o})})}var vD=c(Q(),1),x6e=c(Mo(),1),Qee=c(T(),1);function Jee({name:e,shortcutType:t,shortcutCharacter:o,...r}){let n,i="RichText.ToolbarControls";return e&&(i+=`.${e}`),t&&o&&(n=x6e.displayShortcut[t](o)),(0,Qee.jsx)(vD.Fill,{name:i,children:(0,Qee.jsx)(vD.ToolbarButton,{...r,shortcut:n})})}var nl=c(T(),1),{useRichText:Umt,KeyboardShortcutContext:Wmt,InputEventContext:Gmt,RichTextShortcut:I6e,RichTextInputEvent:P6e}=Z(C6e.privateApis),k6e=Symbol("instanceId");function B6e({children:e,tagName:t="div",value:o="",onChange:r,isSelected:n,multiline:i,inlineToolbar:s,wrapperClassName:a,autocompleters:l,onReplace:d,placeholder:u,allowedFormats:f,withoutInteractiveFormatting:p,onRemove:m,onMerge:g,onSplit:h,__unstableOnSplitAtEnd:b,__unstableOnSplitAtDoubleLineEnd:v,identifier:_,preserveWhiteSpace:y,__unstablePastePlainText:w,__unstableEmbedURLOnPaste:x,__unstableDisableFormats:k,disableLineBreaks:C,__unstableAllowPrefixTransformations:S,readOnly:R,...E},I){h&&(0,R6e.default)("wp.blockEditor.RichText onSplit prop",{since:"6.4",alternative:'block.json support key: "splitting"'});let{supportsSplitting:B}=(0,xn.useContext)(si),O=(0,yD.useInstanceId)(B6e),M=(0,xn.useRef)(),[N,j]=(0,xn.useState)(null),V=Mt(),{clientId:A,isSelected:L,name:z}=V,F=V[Ky],G=V[Yy]==="default",$=(0,xn.useContext)(Oi),K=(0,fm.useRegistry)(),q=Se=>{if(!L)return{isSelected:!1};let{getSelectionStart:Ie,getSelectionEnd:me}=Se(P),Te=Ie(),Me=me(),lt;return n===void 0?lt=Te.clientId===A&&Me.clientId===A&&(_?Te.attributeKey===_:Te[k6e]===O):n&&(lt=Te.clientId===A),{selectionStart:lt?Te.offset:void 0,selectionEnd:lt?Me.offset:void 0,isSelected:lt}},{selectionStart:H,selectionEnd:J,isSelected:W}=(0,fm.useSelect)(q,[A,_,O,n,L]),{disableBoundBlock:Y,bindingsPlaceholder:ee,bindingsLabel:re}=(0,fm.useSelect)(Se=>{if(!F?.[_])return{};let{__experimentalBlockBindingsSupportedAttributes:Ie}=Se(P).getSettings();if(!Ie?.[z])return{};let Te=F[_],Me=(0,T6e.getBlockBindingsSource)(Te.source),lt={};if(Me?.usesContext?.length)for(let Ot of Me.usesContext)lt[Ot]=$[Ot];let et=!Me?.canUserEditValue?.({select:Se,context:lt,args:Te.args});if(o.length>0)return{disableBoundBlock:et,bindingsPlaceholder:null,bindingsLabel:null};let{getBlockAttributes:ao}=Se(P),Lo=ao(A),$r=null;Me?.getFieldsList&&($r=Me.getFieldsList({select:Se,context:lt})?.find(fn=>(0,S6e.default)(fn.args,Te?.args))?.label);let xo=$r??Me?.label,_o=et?xo:(0,E1.sprintf)((0,E1.__)("Add %s"),xo),ht=et?Te?.args?.key||Me?.label:(0,E1.sprintf)((0,E1.__)("Empty %s; start writing to edit its value"),Te?.args?.key||Me?.label);return{disableBoundBlock:et,bindingsPlaceholder:Lo?.placeholder||_o,bindingsLabel:ht}},[F,_,z,o,A,$]),ne=!!$?.["pattern/overrides"],ie=F?.__default?.source==="core/pattern-overrides",pe=R||Y||ne&&!ie,Ee=(0,fm.useSelect)(Se=>{if(pe||!G||!L)return!1;let{getSelectedBlockClientId:Ie,canHostEditableRoot:me}=Z(Se(P));return me(Ie())},[pe,G,L]),{getSelectionStart:ye,getSelectionEnd:Oe,getBlockRootClientId:we}=(0,fm.useSelect)(P),{selectionChange:_e}=(0,fm.useDispatch)(P),xe=gD({allowedFormats:f,disableFormats:k}),he=!xe||xe.length>0,Ze=(0,xn.useCallback)((Se,Ie)=>{let me={},Te=Se===void 0&&Ie===void 0,Me={clientId:A,[_?"attributeKey":k6e]:_||O};if(typeof Se=="number"||Te){if(Ie===void 0&&we(A)!==we(Oe().clientId))return;me.start={...Me,offset:Se}}if(typeof Ie=="number"||Te){if(Se===void 0&&we(A)!==we(ye().clientId))return;me.end={...Me,offset:Ie}}_e(me)},[A,we,Oe,ye,_,O,_e]),{value:fe,getValue:Ce,onChange:de,ref:ae,formatTypes:Re}=Umt({value:o,onChange:r,selectionStart:H,selectionEnd:J,onSelectionChange:Ze,placeholder:ee||u,__unstableIsSelected:W,__unstableDisableFormats:k,preserveWhiteSpace:y,__unstableDependencies:[t],allowedFormats:xe,withoutInteractiveFormatting:p,__unstableFormatTypeHandlerContext:(0,xn.useMemo)(()=>({richTextIdentifier:_,blockClientId:A}),[_,A])});(0,xn.useLayoutEffect)(()=>{let Se=M.current;if(!W||Se?.contentEditable!=="true")return;let{ownerDocument:Ie}=Se,me=[Ie,Ie.defaultView.frameElement?.ownerDocument].find(ao=>ao?.hasFocus());if(!me)return;let{activeElement:Te,body:Me}=me,lt=Se.parentElement?.closest("[contenteditable]"),et=lt?.isContentEditable?lt:Se;(Te===Me||lt?.contains(Te))&&et.focus()},[H,J,W]);let $e=vae({onReplace:d,completers:l,record:fe,onChange:de}),{"aria-autocomplete":ct,"aria-haspopup":Pt,"aria-controls":at,"aria-owns":Be,"aria-activedescendant":qe}=$e;(0,xn.useEffect)(()=>{if(!W)return;let Se=M.current?.parentElement?.closest('[contenteditable="true"]');if(!Se)return;let Ie={"aria-autocomplete":ct,"aria-haspopup":Pt,"aria-controls":at,"aria-owns":Be,"aria-activedescendant":qe};for(let[me,Te]of Object.entries(Ie))Te===void 0?Se.removeAttribute(me):Se.setAttribute(me,Te);return()=>{for(let me of Object.keys(Ie))Se.removeAttribute(me)}},[W,ct,Pt,at,Be,qe]),A7e({html:o,value:fe});let vt=(0,xn.useRef)(new Set),Vt=(0,xn.useRef)(new Set);function kt(){M.current?.focus()}let yt=E.tabIndex;Ee?yt=E.tabIndex??0:!pe&&E.tabIndex===0&&(yt=null);let Ye=t;return(0,nl.jsxs)(nl.Fragment,{children:[W&&(0,nl.jsx)(Wmt.Provider,{value:vt,children:(0,nl.jsx)(Gmt.Provider,{value:Vt,children:(0,nl.jsxs)(E6e.Popover.__unstableSlotNameProvider,{value:"__unstable-block-tools-after",children:[e&&e({value:fe,onChange:de,onFocus:kt}),(0,nl.jsx)(c6e,{value:fe,onChange:de,onFocus:kt,formatTypes:Re,forwardedRef:M})]})})}),W&&he&&(0,nl.jsx)(O7e,{inline:s,editableContentElement:N}),(0,nl.jsx)(Ye,{role:"textbox","aria-multiline":!C,"aria-readonly":pe,...E,draggable:void 0,"aria-label":re||E["aria-label"]||u,...$e,ref:(0,yD.useMergeRefs)([ae,I,$e.ref,E.ref,s6e({registry:K,getValue:Ce,onChange:de,__unstableAllowPrefixTransformations:S,formatTypes:Re,onReplace:d,selectionChange:_e,isSelected:W,disableFormats:k,value:fe,tagName:t,onSplit:h,__unstableEmbedURLOnPaste:x,pastePlainText:w,onMerge:g,onRemove:m,disableLineBreaks:C,onSplitAtEnd:b,onSplitAtDoubleLineEnd:v,keyboardShortcuts:vt,inputEvents:Vt,supportsSplitting:B}),M,j]),contentEditable:!pe,suppressContentEditableWarning:!0,className:U("block-editor-rich-text__editable",E.className,"rich-text"),tabIndex:yt,"data-wp-block-attribute-key":_})]})}var Xee=(0,xn.forwardRef)(B6e),J2=w6e(Xee);J2.Content=Q2;J2.isEmpty=e=>!e||e.length===0;var ete=(0,xn.forwardRef)((e,t)=>{if(Mt()[g3]){let{children:n,tagName:i="div",value:s,onChange:a,isSelected:l,multiline:d,inlineToolbar:u,wrapperClassName:f,autocompleters:p,onReplace:m,placeholder:g,allowedFormats:h,withoutInteractiveFormatting:b,onRemove:v,onMerge:_,onSplit:y,__unstableOnSplitAtEnd:w,__unstableOnSplitAtDoubleLineEnd:x,identifier:k,preserveWhiteSpace:C,__unstablePastePlainText:S,__unstableEmbedURLOnPaste:R,__unstableDisableFormats:E,disableLineBreaks:I,__unstableAllowPrefixTransformations:B,readOnly:O,...M}=e;return(0,nl.jsx)(i,{ref:t,...M,dangerouslySetInnerHTML:{__html:qee(s,d)||"<br>"}})}return(0,nl.jsx)(J2,{ref:t,...e,readOnly:!1})});ete.Content=Q2;ete.isEmpty=e=>!e||e.length===0;var S1=ete;var tte=c(T(),1),M6e=(0,O6e.forwardRef)((e,t)=>(0,tte.jsx)(S1,{ref:t,...e,__unstableDisableFormats:!0}));M6e.Content=function({value:t="",tagName:o="div",...r}){return(0,tte.jsx)(o,{...r,children:t})};var A6e=M6e;var ote=c(T(),1),$mt=(0,N6e.forwardRef)(({__experimentalVersion:e,...t},o)=>{if(e===2)return(0,ote.jsx)(A6e,{ref:o,...t});let{className:r,onChange:n,...i}=t;return(0,ote.jsx)("textarea",{ref:o,className:U("block-editor-plain-text",r),onChange:s=>n(s.target.value),...i})}),L6e=$mt;var of=c(X(),1),V6e=c(D(),1),F6e=c(Q(),1);var D6e=c(ue(),1);var wD=c(X(),1),fb=c(T(),1);function xD({property:e,viewport:t,desc:o}){let r=(0,D6e.useInstanceId)(xD),n=o||(0,wD.sprintf)((0,wD._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,fb.jsxs)(fb.Fragment,{children:[(0,fb.jsx)("span",{"aria-describedby":`rbc-desc-${r}`,children:t.label}),(0,fb.jsx)(Et,{id:`rbc-desc-${r}`,render:(0,fb.jsx)("span",{}),children:n})]})}var rf=c(T(),1);function Ymt(e){let{title:t,property:o,toggleLabel:r,onIsResponsiveChange:n,renderDefaultControl:i,renderResponsiveControls:s,isResponsive:a=!1,defaultLabel:l={id:"all",label:(0,of._x)("All","screen sizes")},viewports:d=[{id:"small",label:(0,of.__)("Small screens")},{id:"medium",label:(0,of.__)("Medium screens")},{id:"large",label:(0,of.__)("Large screens")}]}=e;if(!t||!o||!i)return null;let u=r||(0,of.sprintf)((0,of.__)("Use the same %s on all screen sizes."),o),f=(0,of.__)("Choose whether to use the same value for all screen sizes or a unique value for each screen size."),p=i((0,rf.jsx)(xD,{property:o,viewport:l}),l),m=()=>d.map(g=>(0,rf.jsx)(V6e.Fragment,{children:i((0,rf.jsx)(xD,{property:o,viewport:g}),g)},g.id));return(0,rf.jsxs)("fieldset",{className:"block-editor-responsive-block-control",children:[(0,rf.jsx)("legend",{className:"block-editor-responsive-block-control__title",children:t}),(0,rf.jsxs)("div",{className:"block-editor-responsive-block-control__inner",children:[(0,rf.jsx)(F6e.ToggleControl,{className:"block-editor-responsive-block-control__toggle",label:u,checked:!a,onChange:n,help:f}),(0,rf.jsxs)("div",{className:U("block-editor-responsive-block-control__group",{"is-responsive":a}),children:[!a&&p,a&&(s?s(d):m())]})]})]})}var z6e=Ymt;var kD=c(Q(),1);var j6e=c(T(),1);function H6e({units:e,...t}){let[o]=Fe("spacing.units"),r=(0,kD.__experimentalUseCustomUnits)({availableUnits:o||["%","px","em","rem","vw"],units:e});return(0,j6e.jsx)(kD.__experimentalUnitControl,{units:r,...t})}var eI=c(X(),1),U6e=c(D(),1),T1=c(Q(),1);var nf=c(T(),1);function Kmt({url:e,onChange:t}){let[o,r]=(0,U6e.useReducer)(i=>!i,!1),n=i=>{i.preventDefault(),r()};return(0,nf.jsxs)("div",{className:"block-editor-url-input__button",children:[(0,nf.jsx)(T1.Button,{size:"compact",icon:jc,label:e?(0,eI.__)("Edit link"):(0,eI.__)("Insert link"),onClick:r,className:"components-toolbar__control",isPressed:!!e}),o&&(0,nf.jsx)("form",{className:"block-editor-url-input__button-modal",onSubmit:n,children:(0,nf.jsxs)("div",{className:"block-editor-url-input__button-modal-line",children:[(0,nf.jsx)(T1.Button,{__next40pxDefaultSize:!0,className:"block-editor-url-input__back",icon:zS,label:(0,eI.__)("Close"),onClick:r}),(0,nf.jsx)(cm,{value:e||"",onChange:t,suffix:(0,nf.jsx)(T1.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,nf.jsx)(T1.Button,{size:"small",icon:Df,label:(0,eI.__)("Submit"),type:"submit"})})})]})})]})}var W6e=Kmt;var ha=c(X(),1),bc=c(D(),1),q6e=c(Ut(),1),Ln=c(Q(),1);var X6e=c(ml(),1);var Yo=c(T(),1),rte="none",G6e="custom",$6e="media",Y6e="attachment",K6e=["noopener"],Z6e=({linkDestination:e,onChangeUrl:t,url:o,mediaType:r="image",mediaUrl:n,mediaLink:i,linkTarget:s,linkClass:a,rel:l,showLightboxSetting:d,lightboxEnabled:u,onSetLightbox:f,resetLightbox:p})=>{let[m,g]=(0,bc.useState)(!1),[h,b]=(0,bc.useState)(null),v=()=>{g(!0)},[_,y]=(0,bc.useState)(!1),[w,x]=(0,bc.useState)(null),k=(0,bc.useRef)(null),C=(0,bc.useRef)();(0,bc.useEffect)(()=>{if(!C.current)return;(q6e.focus.focusable.find(C.current)[0]||C.current).focus()},[_,o,u]);let S=()=>{(e===$6e||e===Y6e)&&x(""),y(!0)},R=()=>{y(!1)},E=()=>{x(null),R(),g(!1)},I=H=>{let J=H?"_blank":void 0,W;if(J){let Y=(l??"").split(" ");K6e.forEach(ee=>{Y.includes(ee)||Y.push(ee)}),W=Y.join(" ")}else{let Y=(l??"").split(" ").filter(ee=>K6e.includes(ee)===!1);W=Y.length?Y.join(" "):void 0}return{linkTarget:J,rel:W}},B=()=>H=>{let J=k.current;J&&J.contains(H.target)||(g(!1),x(null),R())},O=()=>H=>{if(w){let J=N().find(W=>W.url===w)?.linkDestination||G6e;t({href:(0,X6e.prependHTTPS)(w),linkDestination:J,lightbox:{enabled:!1}})}R(),x(null),H.preventDefault()},M=()=>{t({linkDestination:rte,href:""})},N=()=>{let H=[{linkDestination:$6e,title:(0,ha.__)("Link to image file"),url:r==="image"?n:void 0,icon:oH}];return r==="image"&&i&&H.push({linkDestination:Y6e,title:(0,ha.__)("Link to attachment page"),url:r==="image"?i:void 0,icon:t_}),H},j=H=>{let J=N(),W;H?W=(J.find(Y=>Y.url===H)||{linkDestination:G6e}).linkDestination:W=rte,t({linkDestination:W,href:H})},V=H=>{let J=I(H);t(J)},A=H=>{t({rel:H})},L=H=>{t({linkClass:H})},z=(0,Yo.jsxs)(Ln.__experimentalVStack,{spacing:"3",children:[(0,Yo.jsx)(Ln.ToggleControl,{label:(0,ha.__)("Open in new tab"),onChange:V,checked:s==="_blank"}),(0,Yo.jsx)(Ln.TextControl,{label:(0,ha.__)("Link relation"),value:l??"",onChange:A,help:(0,bc.createInterpolateElement)((0,ha.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,Yo.jsx)(Ln.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})})}),(0,Yo.jsx)(Ln.TextControl,{label:(0,ha.__)("Link CSS class"),value:a||"",onChange:L})]}),F=w!==null?w:o,G=!u||u&&!d,$=!F&&G,K=(N().find(H=>H.linkDestination===e)||{}).title,q=()=>{if(u&&d&&!o&&!_)return(0,Yo.jsxs)("div",{className:"block-editor-url-popover__expand-on-click",children:[(0,Yo.jsx)(St,{icon:s4}),(0,Yo.jsxs)("div",{className:"text",children:[(0,Yo.jsx)("p",{children:(0,ha.__)("Enlarge on click")}),(0,Yo.jsx)("p",{className:"description",children:(0,ha.__)("Scales the image with a lightbox effect")})]}),(0,Yo.jsx)(Ln.Button,{icon:$s,label:(0,ha.__)("Disable enlarge on click"),onClick:()=>{f?.(!1)},size:"compact"})]});if(!o||_)return(0,Yo.jsx)(lb.LinkEditor,{className:"block-editor-url-popover__link-container-content",value:F,onChangeInputValue:x,onSubmit:O(),autocompleteRef:k});if(o&&!_)return(0,Yo.jsxs)(Yo.Fragment,{children:[(0,Yo.jsx)(lb.LinkViewer,{className:"block-editor-url-popover__link-container-content",url:o,onEditLinkClick:S,urlLabel:K}),(0,Yo.jsx)(Ln.Button,{icon:$s,label:(0,ha.__)("Remove link"),onClick:()=>{M(),p?.()},size:"compact"})]})};return(0,Yo.jsxs)(Yo.Fragment,{children:[(0,Yo.jsx)(Ln.ToolbarButton,{icon:jc,className:"components-toolbar__control",label:(0,ha.__)("Link"),"aria-expanded":m,onClick:v,ref:b,isActive:!!o||u&&d}),m&&(0,Yo.jsx)(lb,{ref:C,anchor:h,onFocusOutside:B(),onClose:E,renderSettings:G?()=>z:null,additionalControls:$&&(0,Yo.jsxs)(Ln.NavigableMenu,{children:[N().map(H=>(0,Yo.jsx)(Ln.MenuItem,{icon:H.icon,iconPosition:"left",onClick:()=>{x(null),j(H.url),R()},children:H.title},H.linkDestination)),d&&(0,Yo.jsx)(Ln.MenuItem,{className:"block-editor-url-popover__expand-on-click",icon:s4,info:(0,ha.__)("Scale the image with a lightbox effect."),iconPosition:"left",onClick:()=>{x(null),t({linkDestination:rte,href:""}),f?.(!0),R()},children:(0,ha.__)("Enlarge on click")},"expand-on-click")]}),offset:13,children:q()})]})};var I1=c(Q(),1),uOe=c(D(),1),ED=c(X(),1);var Q6e=c(D(),1),ite=c(X(),1);var nte=[],qmt=new Intl.Collator("und",{numeric:!0}).compare;function SD(){let[e,t,o,r]=Fe("spacing.spacingSizes.custom","spacing.spacingSizes.theme","spacing.spacingSizes.default","spacing.defaultSpacingSizes"),n=e??nte,i=t??nte,s=o&&r!==!1?o:nte;return(0,Q6e.useMemo)(()=>{let a=[{name:(0,ite.__)("None"),slug:"0",size:0},...n,...i,...s];return a.every(({slug:l})=>/^[0-9]/.test(l))&&a.sort((l,d)=>qmt(l.slug,d.slug)),a.length>Sae?[{name:(0,ite.__)("Default"),slug:"default",size:void 0},...a]:a},[n,i,s])}var J6e=c(D(),1),eOe=c(oe(),1),CD=c(X(),1),tOe=c(Q(),1);var oOe=c(T(),1),Xmt={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 R1({icon:e,isMixed:t=!1,minimumCustomValue:o,onChange:r,onMouseOut:n,onMouseOver:i,showSideInLabel:s=!0,side:a,spacingSizes:l,type:d,value:u,...f}){let p=(0,eOe.useSelect)(w=>w(P).getSettings()?.disableCustomSpacingSizes),[m]=Fe("spacing.units"),g=(0,tOe.__experimentalUseCustomUnits)({availableUnits:m||["px","em","rem"]}),h=(0,J6e.useMemo)(()=>l?.map(w=>({name:w.name,slug:w.slug,size:w.size}))||[],[l]),b=(pg.includes(a)||["vertical","horizontal"].includes(a))&&s?mu[a]:"",v=s?d?.toLowerCase():d,_=(0,CD.sprintf)((0,CD._x)("%1$s %2$s","spacing"),b,v).trim(),y=g[0]?.value||"px";return(0,oOe.jsx)(Jv,{allowNegativeOnDrag:o<0,ariaLabel:_,className:"spacing-sizes-control",customValueSettings:Xmt,disableCustomValues:p,icon:e,isMixed:t,minimumCustomValue:o,onChange:r,onMouseOut:n,onMouseOver:i,presets:h,presetType:"spacing",selectedUnit:y,units:g,value:u,...f})}var tI=c(T(),1),rOe=["vertical","horizontal"];function nOe({minimumCustomValue:e,onChange:t,onMouseOut:o,onMouseOver:r,sides:n,spacingSizes:i,type:s,values:a}){let l=u=>f=>{if(!t)return;let p={...Object.keys(a).reduce((m,g)=>(m[g]=Uw(a[g],i),m),{})};u==="vertical"&&(p.top=f,p.bottom=f),u==="horizontal"&&(p.left=f,p.right=f),t(p)},d=n?.length?rOe.filter(u=>QU(n,u)):rOe;return(0,tI.jsx)(tI.Fragment,{children:d.map(u=>{let f=u==="vertical"?a.top:a.left;return(0,tI.jsx)(R1,{icon:M9[u],label:mu[u],minimumCustomValue:e,onChange:l(u),onMouseOut:o,onMouseOver:r,side:u,spacingSizes:i,type:s,value:f,withInputField:!1},`spacing-sizes-control-${u}`)})})}var oI=c(T(),1);function iOe({minimumCustomValue:e,onChange:t,onMouseOut:o,onMouseOver:r,sides:n,spacingSizes:i,type:s,values:a}){let l=n?.length?pg.filter(u=>n.includes(u)):pg,d=u=>f=>{let p={...Object.keys(a).reduce((m,g)=>(m[g]=Uw(a[g],i),m),{})};p[u]=f,t(p)};return(0,oI.jsx)(oI.Fragment,{children:l.map(u=>(0,oI.jsx)(R1,{icon:M9[u],label:mu[u],minimumCustomValue:e,onChange:d(u),onMouseOut:o,onMouseOver:r,side:u,spacingSizes:i,type:s,value:a[u],withInputField:!1},`spacing-sizes-control-${u}`))})}var sOe=c(T(),1);function aOe({minimumCustomValue:e,onChange:t,onMouseOut:o,onMouseOver:r,showSideInLabel:n,side:i,spacingSizes:s,type:a,values:l}){let d=u=>f=>{let p={...Object.keys(l).reduce((m,g)=>(m[g]=Uw(l[g],s),m),{})};p[u]=f,t(p)};return(0,sOe.jsx)(R1,{label:mu[i],minimumCustomValue:e,onChange:d(i),onMouseOut:o,onMouseOver:r,showSideInLabel:n,side:i,spacingSizes:s,type:a,value:l[i],withInputField:!1})}var lOe=c(Q(),1);var ste=c(X(),1),cOe=c(T(),1);function dOe({isLinked:e,...t}){let o=e?(0,ste.__)("Unlink sides"):(0,ste.__)("Link sides");return(0,cOe.jsx)(lOe.Button,{...t,size:"small",icon:e?jc:$s,iconSize:24,label:o})}var sf=c(T(),1);function P1({inputProps:e,label:t,minimumCustomValue:o=0,onChange:r,onMouseOut:n,onMouseOver:i,showSideInLabel:s=!0,sides:a=pg,useSelect:l,values:d}){let u=SD(),f=d||Cae,p=a?.length===1,m=a?.includes("horizontal")&&a?.includes("vertical")&&a?.length===2,[g,h]=(0,uOe.useState)(Tae(f,a)),b=()=>{h(g===Zf.axial?Zf.custom:Zf.axial)},_={...e,minimumCustomValue:o,onChange:k=>{let C={...d,...k};r(C)},onMouseOut:n,onMouseOver:i,sides:a,spacingSizes:u,type:t,useSelect:l,values:f},y=()=>g===Zf.axial?(0,sf.jsx)(nOe,{..._}):g===Zf.custom?(0,sf.jsx)(iOe,{..._}):(0,sf.jsx)(aOe,{side:g,..._,showSideInLabel:s}),w=pg.includes(g)&&s?mu[g]:"",x=(0,ED.sprintf)((0,ED._x)("%1$s %2$s","spacing control label"),t,w).trim();return(0,sf.jsxs)("fieldset",{className:"spacing-sizes-control",children:[(0,sf.jsxs)(I1.__experimentalHStack,{className:"spacing-sizes-control__header",children:[(0,sf.jsx)(I1.BaseControl.VisualLabel,{as:"legend",className:"spacing-sizes-control__label",children:x}),!p&&!m&&(0,sf.jsx)(dOe,{label:t,onClick:b,isLinked:g===Zf.axial})]}),(0,sf.jsx)(I1.__experimentalVStack,{spacing:.5,children:y()})]})}var fOe=c(Gt(),1);function pOe(){return(0,fOe.default)("wp.blockEditor.PreviewOptions",{version:"6.5"}),null}var mOe=c(Gt(),1);function gOe(){(0,mOe.default)("wp.blockEditor.useResizeCanvas",{since:"7.1",hint:"Device preview is now handled by the editor canvas. This hook no longer does anything."})}var ei=c(X(),1),$1=c(ce(),1),Y1=c(Q(),1),xI=c(oe(),1),fMe=c(D(),1);var ate=c(Q(),1);var TD=c(X(),1),RD=c(oe(),1),ID=c(ce(),1);var vy=c(T(),1);function Zmt({attributes:e={},onNavigateToEntityRecord:t,isTemplatePartBlock:o}){let{ref:r,theme:n,slug:i}=e,s=o?n&&i&&`${n}//${i}`:r;return(0,vy.jsx)(De,{direction:"column",className:"block-editor-block-inspector-edit-contents",children:(0,vy.jsx)(ate.Button,{className:"block-editor-block-inspector-edit-contents__button",__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{s&&t({postId:s,postType:o?"wp_template_part":"wp_block"})},accessibleWhenDisabled:!0,disabled:!s,children:(0,TD.__)("Edit original")})})}function Qmt({clientId:e,editedContentOnlySection:t,editContentOnlySection:o,stopEditingContentOnlySection:r}){let{selectBlock:n}=(0,RD.useDispatch)(P);return(0,vy.jsx)(De,{direction:"column",className:"block-editor-block-inspector-edit-contents",children:(0,vy.jsx)(ate.Button,{className:"block-editor-block-inspector-edit-contents__button",__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{t?(r(),n(e)):(o(e),n(e))},children:t?(0,TD.__)("Exit pattern"):(0,TD.__)("Edit pattern")})})}function hOe({clientId:e}){let{isWithinSection:t,isWithinEditedSection:o,editedContentOnlySection:r,editContentOnlySection:n,stopEditingContentOnlySection:i}=yN(e),{block:s,onNavigateToEntityRecord:a,canEdit:l}=(0,RD.useSelect)(p=>{let{getBlock:m,getSettings:g,canEditBlock:h}=p(P);return{block:m(e),onNavigateToEntityRecord:g().onNavigateToEntityRecord,canEdit:h(e)}},[e]);if(!l||!t&&!o)return null;let d=(0,ID.isReusableBlock)(s),u=(0,ID.isTemplatePart)(s);return(d||u)&&a?(0,vy.jsx)(Zmt,{attributes:s?.attributes,onNavigateToEntityRecord:a,isTemplatePartBlock:u}):(0,vy.jsx)(Qmt,{clientId:e,editedContentOnlySection:r,editContentOnlySection:n,stopEditingContentOnlySection:i})}var bOe=c(oe(),1),_Oe=c(X(),1),vOe=c(Q(),1),yOe=c(D(),1);var wOe=c(T(),1);function PD(){let e=(0,bOe.useSelect)(r=>r(P).getBlockSelectionStart(),[]),t=(0,yOe.useRef)();return nv(e,t),e?(0,wOe.jsx)(vOe.Button,{__next40pxDefaultSize:!0,variant:"secondary",className:"block-editor-skip-to-selected-block",onClick:()=>{t.current?.focus()},children:(0,_Oe.__)("Skip to the selected block")}):null}var B1=c(X(),1),xOe=c(oe(),1);var yy=c(T(),1);function lte(){let{selectedBlockCount:e,totalBlockCount:t}=(0,xOe.useSelect)(o=>{let{getSelectedBlockCount:r,getMultiSelectedBlockClientIds:n,getClientIdsOfDescendants:i}=o(P),s=r();return{selectedBlockCount:s,totalBlockCount:s+i(n()).length}},[]);return(0,yy.jsxs)(De,{direction:"row",align:"center",justify:"flex-start",gap:"sm",className:"block-editor-multi-selection-inspector__card",children:[(0,yy.jsx)($t,{icon:Qb,showColors:!0}),(0,yy.jsxs)(De,{direction:"column",children:[(0,yy.jsx)("div",{className:"block-editor-multi-selection-inspector__card-title",children:(0,B1.sprintf)((0,B1._n)("%d Block","%d Blocks",e),e)}),t>e&&(0,yy.jsx)("div",{className:"block-editor-multi-selection-inspector__card-description",children:(0,B1.sprintf)((0,B1._n)("%d including nested block","%d including nested blocks",t),t)})]})]})}var kOe=c(Q(),1),Jmt=Symbol("BlockInspectorPreTabs"),{Fill:$6o,Slot:SOe}=(0,kOe.createSlotFill)(Jmt);var gV=c(Q(),1),Ld=c(D(),1),eMe=c(v2(),1),W1=c(oe(),1);var rI=c(X(),1),BD={name:"settings",title:(0,rI.__)("Settings"),value:"settings",icon:_j},OD={name:"styles",title:(0,rI.__)("Styles"),value:"styles",icon:$H},MD={name:"content",title:(0,rI.__)("Content"),value:"content",icon:t_},pm={name:"list",title:(0,rI.__)("List View"),value:"list-view",icon:YC};var cte=c(Q(),1);var nI=c(Q(),1),COe=c(X(),1);var iI=c(T(),1),egt=({initialOpen:e=!1})=>{let t=(0,nI.__experimentalUseSlotFills)(Oh.slotName),o=(0,nI.__experimentalUseSlotFills)(e2.name),r=!!(t&&t.length),n=!!(o&&o.length);return!r&&!n?null:(0,iI.jsxs)(nI.PanelBody,{className:"block-editor-block-inspector__advanced",title:(0,COe.__)("Advanced"),initialOpen:e,children:[(0,iI.jsx)(je.Slot,{group:"advanced"}),(0,iI.jsx)(e2.Slot,{})]})},AD=egt;var mm=c(T(),1),tgt=({showAdvancedControls:e=!1})=>{let t=(0,cte.__experimentalUseSlotFills)(bd.default.name),o=(0,cte.__experimentalUseSlotFills)(bd.bindings.name),r=!!t?.length||!!o?.length;return(0,mm.jsxs)(mm.Fragment,{children:[(0,mm.jsx)(je.Slot,{}),(0,mm.jsx)(je.Slot,{group:"bindings"}),e&&(0,mm.jsx)("div",{children:(0,mm.jsx)(AD,{initialOpen:!r})})]})},EOe=tgt;var ym=c(X(),1),uV=c(oe(),1),Hte=c(D(),1);var O1=c(Q(),1),ND=c(oe(),1),dte=c(X(),1);var sI=c(T(),1),TOe="default",ogt=e=>e?.viewport&&e.viewport!==TOe&&(!e.pseudo||e.pseudo===TOe)?e.viewport:null,rgt=e=>e?.position?.type?!0:Object.entries(e??{}).some(([t,o])=>t.startsWith("@")&&!!o?.position?.type),ngt=()=>{let{selectedClientIds:e,selectedBlocks:t,selectedStateViewports:o,hasPositionAttribute:r}=(0,ND.useSelect)(a=>{let{getBlocksByClientId:l,getSelectedBlockClientIds:d,getSelectedBlockStyleState:u}=Z(a(P)),f=d(),p=l(f);return{selectedClientIds:f,selectedBlocks:p,selectedStateViewports:Object.fromEntries(f.map(m=>[m,ogt(u(m))])),hasPositionAttribute:p?.some(({attributes:m})=>rgt(m?.style))}},[]),{updateBlockAttributes:n}=(0,ND.useDispatch)(P),i=Fr();function s(){if(!e?.length||!t?.length)return;let a=Object.fromEntries(t?.map(({clientId:l,attributes:d})=>{let u=o[l],f={...d?.style};return u?f[u]={...f[u],position:{type:"",top:void 0,right:void 0,bottom:void 0,left:void 0}}:f.position={...f.position,type:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0},[l,{style:Qe(f)}]}));n(e,a,!0)}return(0,sI.jsx)(O1.__experimentalToolsPanel,{className:"block-editor-block-inspector__position",label:(0,dte.__)("Position"),resetAll:s,dropdownMenuProps:i,children:(0,sI.jsx)(O1.__experimentalToolsPanelItem,{isShownByDefault:r,label:(0,dte.__)("Position"),hasValue:()=>r,onDeselect:s,children:(0,sI.jsx)(je.Slot,{group:"position"})})})},igt=()=>{let e=(0,O1.__experimentalUseSlotFills)(bd.position.name);return!(e&&e.length)?null:(0,sI.jsx)(ngt,{})},aI=igt;var Tte=c(ce(),1),XD=c(D(),1),a8e=c(oe(),1),l8e=c(X(),1);var OOe=c(Q(),1),DD=c(D(),1),Ci=c(X(),1),MOe=c(Sw(),1);var af=c(Q(),1),POe=c(D(),1),ute=c(X(),1);var M1=c(Q(),1);var ROe=c(X(),1),pb=c(T(),1),es=()=>!!window.__experimentalGlobalStylesInheritanceUI;function _c(e,t,o){let r=!!e&&!t,n=U(o,{"is-inherited-from-global-styles":r,"has-local-override-from-global-styles":!!t});return{...n?{className:n}:{},isInherited:r,hasLocalOverride:!!t}}function gm({onResetToInherited:e,className:t}){return(0,pb.jsxs)(M1.Button,{__next40pxDefaultSize:!1,label:(0,ROe.__)("Reset to inherited value"),showTooltip:!0,className:U("has-local-override-from-global-styles__reset",t),onClick:o=>{o.preventDefault(),o.stopPropagation(),e?.()},children:[(0,pb.jsx)("span",{"aria-hidden":"true",className:"has-local-override-from-global-styles__dot"}),(0,pb.jsx)(M1.Icon,{className:"has-local-override-from-global-styles__reset-icon",icon:Rn})]})}function Wt({className:e,isInherited:t,hasLocalOverride:o,label:r,onDeselect:n,showLocalOverrideActionsInLabel:i=!0,hasInlineEndToggle:s=!1,children:a,...l}){return(0,pb.jsxs)(M1.__experimentalToolsPanelItem,{className:e,label:r,onDeselect:n,...l,children:[a,o&&i&&(0,pb.jsx)("div",{className:U("global-styles-inheritance-affordance",{"global-styles-inheritance-affordance--offset-toggle":s}),children:(0,pb.jsx)(gm,{onResetToInherited:n})})]})}var Ko=c(T(),1);function sgt({tabs:e,colorGradientControlSettings:t,contrastWarning:o}){let{key:r,...n}=e[0]??{},i=(e.find(s=>s.userValue!==void 0)??e.find(s=>s.isPlaceholder||s.inheritedValue!==void 0))?.key;return(0,Ko.jsx)(af.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,Ko.jsxs)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:[e.length===1&&(0,Ko.jsx)(IOe,{...n,colorGradientControlSettings:t,contrastWarning:o},r),e.length>1&&(0,Ko.jsxs)(Fa.Root,{defaultValue:i,children:[(0,Ko.jsx)(Fa.List,{children:e.map(s=>(0,Ko.jsx)(Fa.Tab,{value:s.key,children:s.label},s.key))}),e.map(s=>{let{key:a,...l}=s;return(0,Ko.jsx)(Fa.Panel,{value:a,tabIndex:-1,children:(0,Ko.jsx)(IOe,{...l,colorGradientControlSettings:t,contrastWarning:o},a)},a)})]})]})})}var agt={placement:"left-start",offset:36,shift:!0},lgt=({indicators:e,label:t})=>(0,Ko.jsxs)(De,{className:"block-editor-panel-color-gradient-settings__labeled-indicators",direction:"row",align:"center",justify:"flex-start",gap:"sm",children:[(0,Ko.jsx)("div",{className:"block-editor-panel-color-gradient-settings__color-indicators",children:e.map((o,r)=>(0,Ko.jsx)(af.ColorIndicator,{colorValue:o},r))}),(0,Ko.jsx)("span",{className:"block-editor-panel-color-gradient-settings__color-name",children:t})]});function IOe({isGradient:e,inheritedValue:t,inheritedSlug:o,userSlug:r,userValue:n,setValue:i,isPlaceholder:s,colorGradientControlSettings:a,contrastWarning:l}){let d=n??t,u=n!==void 0?r:o,f=(p,m)=>{if(s&&p===void 0){i(t,o);return}i(p,m)};return(0,Ko.jsx)(eb,{...a,showTitle:!1,enableAlpha:!0,__experimentalIsRenderedInSidebar:!0,colorValue:e?void 0:d,colorSlug:e?void 0:u,gradientValue:e?d:void 0,gradientSlug:e?u:void 0,onColorChange:e?void 0:f,onGradientChange:e?f:void 0,clearable:n!==void 0,headingLevel:3,noticeProps:!e&&l?{children:l,status:"warning",spokenMessage:null,className:"block-editor-panel-color-gradient-settings__contrast-notice"}:void 0})}function mb({label:e,hasValue:t,resetValue:o,isShownByDefault:r,indicators:n,tabs:i,colorGradientControlSettings:s,panelId:a,contrastWarning:l,className:d="block-editor-tools-panel-color-gradient-settings__item",isPlaceholder:u=!1,hasInheritedValue:f=!1,showInheritanceLabelIndicators:p=es()}){let m=(0,POe.useRef)(void 0),g=U("block-editor-color-gradient-item",d),h=p&&t()&&f,b=p?_c(u,h,g):{className:g};return(0,Ko.jsx)(Wt,{...b,showLocalOverrideActionsInLabel:!1,hasValue:t,label:e,onDeselect:o,isShownByDefault:r,panelId:a,children:(0,Ko.jsx)(af.Dropdown,{popoverProps:agt,className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:({onToggle:v,isOpen:_})=>{let y={onClick:v,className:U("block-editor-panel-color-gradient-settings__dropdown",{"is-open":_,"has-contrast-warning":!!l}),"aria-expanded":_,ref:m};return(0,Ko.jsxs)(Ko.Fragment,{children:[(0,Ko.jsx)(af.Button,{...y,__next40pxDefaultSize:!0,children:(0,Ko.jsx)(lgt,{indicators:n,label:e})}),t()&&(h?(0,Ko.jsx)(gm,{className:"block-editor-panel-color-gradient-settings__reset",onResetToInherited:()=>{o(),_&&v(),m.current?.focus()}}):(0,Ko.jsx)(af.Button,{__next40pxDefaultSize:!0,label:(0,ute.__)("Reset"),className:"block-editor-panel-color-gradient-settings__reset",size:"small",icon:Rn,onClick:()=>{o(),_&&v(),m.current?.focus()}})),l&&(0,Ko.jsx)(af.Button,{__next40pxDefaultSize:!0,size:"small",icon:GS,label:(0,ute.__)("Low contrast"),className:"block-editor-panel-color-gradient-settings__contrast-warning","aria-expanded":_,onClick:v})]})},renderContent:()=>(0,Ko.jsx)(sgt,{tabs:i,colorGradientControlSettings:s,contrastWarning:l})})})}var lI=c(D(),1),BOe=c(oe(),1),fte=c(ce(),1),wy=c(X(),1);function LD(e,t,o){let{supportedStyles:r,supports:n}=(0,BOe.useSelect)(i=>({supportedStyles:Z(i(fte.store)).getSupportedStyles(t,o),supports:i(fte.store).getBlockType(t)?.supports}),[t,o]);return(0,lI.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","textShadow","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 lf(e){let t=e?.color?.palette?.custom,o=e?.color?.palette?.theme,r=e?.color?.palette?.default,n=e?.color?.defaultPalette;return(0,lI.useMemo)(()=>{let i=[];return o&&o.length&&i.push({name:(0,wy._x)("Theme","Indicates this palette comes from the theme."),colors:o}),n&&r&&r.length&&i.push({name:(0,wy._x)("Default","Indicates this palette comes from WordPress."),colors:r}),t&&t.length&&i.push({name:(0,wy._x)("Custom","Indicates this palette is created by the user."),colors:t}),i},[t,o,r,n])}function cI(e){let t=e?.color?.gradients?.custom,o=e?.color?.gradients?.theme,r=e?.color?.gradients?.default,n=e?.color?.defaultGradients;return(0,lI.useMemo)(()=>{let i=[];return o&&o.length&&i.push({name:(0,wy._x)("Theme","Indicates this palette comes from the theme."),gradients:o}),n&&r&&r.length&&i.push({name:(0,wy._x)("Default","Indicates this palette comes from WordPress."),gradients:r}),t&&t.length&&i.push({name:(0,wy._x)("Custom","Indicates this palette is created by the user."),gradients:t}),i},[t,o,r,n])}function A1(e){let t=lf(e),o=cI(e),r=e?.color?.custom,n=e?.color?.customGradient,i=(0,lI.useMemo)(()=>t.flatMap(({colors:l})=>l),[t]),s=l=>bl({settings:e},"",l),a=(l,d)=>{if(d)return"var:preset|gradient|"+d;let f=o.flatMap(({gradients:p})=>p).find(({gradient:p})=>p===l);return f?"var:preset|gradient|"+f.slug:l};return{colors:t,gradients:o,allColors:i,areCustomSolidsEnabled:r,areCustomGradientsEnabled:n,hasSolidColors:t.length>0||r,hasGradientColors:o.length>0||n,decodeValue:s,encodeGradientValue:a}}function qo(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]}function hm(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 N1=c(T(),1);function VD(e){let t=AOe(e),o=LOe(e),r=DOe(e),n=NOe(e);return t||o||r||n}function pte(e){let t=lf(e);return e?.color?.text&&(t?.length>0||e?.color?.custom)}function AOe(e){let t=lf(e);return e?.color?.link&&(t?.length>0||e?.color?.custom)}function NOe(e){let t=lf(e);return e?.color?.caption&&(t?.length>0||e?.color?.custom)}function LOe(e){let t=lf(e),o=cI(e);return e?.color?.heading&&(t?.length>0||e?.color?.custom||o?.length>0||e?.color?.customGradient)}function DOe(e){let t=lf(e),o=cI(e);return e?.color?.button&&(t?.length>0||e?.color?.custom||o?.length>0||e?.color?.customGradient)}function mte(e){let t=lf(e),o=cI(e);return e?.color?.background&&(t?.length>0||e?.color?.custom||o?.length>0||e?.color?.customGradient)}function gte({resetAllFilter:e,onChange:t,value:o,panelId:r,children:n,label:i}){let s=Fr(),a=()=>{let l=e(o);t(l)};return(0,N1.jsx)(OOe.__experimentalToolsPanel,{label:i||(0,Ci.__)("Elements"),resetAll:a,panelId:r,hasInnerWrapper:!0,headingLevel:3,className:"color-block-support-panel",__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last",dropdownMenuProps:s,children:(0,N1.jsx)("div",{className:"color-block-support-panel__inner-wrapper",children:n})})}var cgt={link:!0,heading:!0,button:!0,caption:!0};function FD({as:e=gte,value:t,onChange:o,inheritedValue:r=t,settings:n,panelId:i,defaultControls:s=cgt,label:a,children:l,contrastWarning:d,additionalElements:u,showInheritanceLabelIndicators:f=es()}){let{colors:p,gradients:m,areCustomSolidsEnabled:g,areCustomGradientsEnabled:h,hasSolidColors:b,hasGradientColors:v,allColors:_,decodeValue:y,encodeGradientValue:w}=A1(n),x=F=>(0,MOe.getCSSValueFromRawStyle)(y(F)),k=AOe(n),C=x(r?.elements?.link?.color?.text),S=y(t?.elements?.link?.color?.text),R=(F,G)=>{o(Ge(t,["elements","link","color","text"],hm(_,F,G)))},E=x(r?.elements?.link?.[":hover"]?.color?.text),I=y(t?.elements?.link?.[":hover"]?.color?.text),B=(F,G)=>{o(Ge(t,["elements","link",":hover","color","text"],hm(_,F,G)))},O=()=>!!S||!!I,M=()=>{let F=Ge(t,["elements","link",":hover","color","text"],void 0);F=Ge(F,["elements","link","color","text"],void 0),o(F)},N=NOe(n),j=DOe(n),V=LOe(n),A=(0,DD.useMemo)(()=>[{name:"caption",label:(0,Ci.__)("Captions"),showPanel:N},{name:"button",label:(0,Ci.__)("Button"),showPanel:j},{name:"heading",label:(0,Ci.__)("Heading"),showPanel:V},{name:"h1",label:(0,Ci.__)("H1"),showPanel:V},{name:"h2",label:(0,Ci.__)("H2"),showPanel:V},{name:"h3",label:(0,Ci.__)("H3"),showPanel:V},{name:"h4",label:(0,Ci.__)("H4"),showPanel:V},{name:"h5",label:(0,Ci.__)("H5"),showPanel:V},{name:"h6",label:(0,Ci.__)("H6"),showPanel:V},...u?.map(F=>({...F,showPanel:b||v}))??[]],[u,v,b,N,j,V]),L=(0,DD.useCallback)(F=>({...F,elements:{...F?.elements,link:{...F?.elements?.link,color:void 0,":hover":{color:void 0}},...A.reduce((G,$)=>({...G,[$.name]:{...F?.elements?.[$.name],color:void 0}}),{})}}),[A]),z=[k&&{key:"link",label:(0,Ci.__)("Link"),hasValue:O,resetValue:M,isShownByDefault:s.link,indicators:[S??C,I??E],isPlaceholder:S===void 0&&I===void 0&&(C!==void 0||E!==void 0),hasInheritedValue:C!==void 0||E!==void 0,contrastWarning:d,tabs:[{key:"link",label:(0,Ci.__)("Default"),inheritedValue:C,inheritedSlug:qo(r?.elements?.link?.color?.text,"color"),userSlug:qo(t?.elements?.link?.color?.text,"color"),setValue:R,userValue:S,isPlaceholder:S===void 0&&C!==void 0},{key:"hover",label:(0,Ci.__)("Hover"),inheritedValue:E,inheritedSlug:qo(r?.elements?.link?.[":hover"]?.color?.text,"color"),userSlug:qo(t?.elements?.link?.[":hover"]?.color?.text,"color"),setValue:B,userValue:I,isPlaceholder:I===void 0&&E!==void 0}]}].filter(Boolean);return A.forEach(({name:F,label:G,showPanel:$})=>{if(!$)return;let K=x(r?.elements?.[F]?.color?.background),q=x(r?.elements?.[F]?.color?.gradient),H=x(r?.elements?.[F]?.color?.text),J=y(t?.elements?.[F]?.color?.background),W=y(t?.elements?.[F]?.color?.gradient),Y=y(t?.elements?.[F]?.color?.text),ee=()=>!!(Y||J||W),re=()=>{let xe=Ge(t,["elements",F,"color","background"],void 0);xe.elements[F].color.gradient=void 0,xe.elements[F].color.text=void 0,o(xe)},ne=(xe,he)=>{o(Ge(t,["elements",F,"color","text"],hm(_,xe,he)))},ie=(xe,he)=>{let Ze=Ge(t,["elements",F,"color","background"],hm(_,xe,he));Ze.elements[F].color.gradient=void 0,o(Ze)},be=(xe,he)=>{let Ze=Ge(t,["elements",F,"color","gradient"],w(xe,he));Ze.elements[F].color.background=void 0,o(Ze)},pe=F!=="caption",Ee=Y===void 0&&H!==void 0,ye=J===void 0&&K!==void 0,Oe=W===void 0&&q!==void 0,we=Y===void 0&&J===void 0&&W===void 0&&(H!==void 0||K!==void 0||q!==void 0),_e=H!==void 0||K!==void 0||q!==void 0;z.push({key:F,label:G,hasValue:ee,resetValue:re,isShownByDefault:s[F],indicators:pe?[Y??H,W??q??J??K]:[Y??H],isPlaceholder:we,hasInheritedValue:_e,tabs:[b&&{key:"text",label:(0,Ci.__)("Text"),inheritedValue:H,inheritedSlug:qo(r?.elements?.[F]?.color?.text,"color"),userSlug:qo(t?.elements?.[F]?.color?.text,"color"),setValue:ne,userValue:Y,isPlaceholder:Ee},b&&pe&&{key:"background",label:(0,Ci.__)("Background"),inheritedValue:K,inheritedSlug:qo(r?.elements?.[F]?.color?.background,"color"),userSlug:qo(t?.elements?.[F]?.color?.background,"color"),setValue:ie,userValue:J,isPlaceholder:ye},v&&pe&&{key:"gradient",label:(0,Ci.__)("Gradient"),inheritedValue:q,inheritedSlug:qo(r?.elements?.[F]?.color?.gradient,"gradient"),userSlug:qo(t?.elements?.[F]?.color?.gradient,"gradient"),setValue:be,userValue:W,isGradient:!0,isPlaceholder:Oe}].filter(Boolean)})}),(0,N1.jsxs)(e,{resetAllFilter:L,value:t,onChange:o,panelId:i,label:a,children:[z.map(F=>{let{key:G,...$}=F;return(0,N1.jsx)(mb,{...$,showInheritanceLabelIndicators:f,colorGradientControlSettings:{colors:p,disableCustomColors:!g,gradients:m,disableCustomGradients:!h},panelId:i},G)}),l]})}var mI=c(D(),1),_te=c(oe(),1),zOe=c(ce(),1);var fI=c(ce(),1),dI=c(oe(),1),zD=c(D(),1);var uI=c(T(),1),{getVariationStyle:dgt}=Z(Ro),hte="is-style-";function VOe(e){return e?e.split(/\s+/).reduce((t,o)=>{if(o.startsWith(hte)){let r=o.slice(hte.length);r!=="default"&&t.push(r)}return t},[]):[]}function pI(e,t=[]){let o=VOe(e);if(!o)return null;for(let r of o)if(t.some(n=>n.name===r))return r;return null}function ugt({override:e}){il(e)}function bte({config:e}){let{overrides:t}=(0,dI.useSelect)(n=>({overrides:Z(n(P)).getStyleOverrides()}),[]),{getBlockName:o}=(0,dI.useSelect)(P),r=(0,zD.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 d={settings:e?.settings,styles:{blocks:{[a]:{variations:{[`${s.variation}-${s.clientId}`]:l}}}}},u=Y4((0,fI.getBlockTypes)(),s.clientId),h=$4(d,u,!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:h,__unstableType:"variation",variation:s.variation,clientId:s.clientId}),i.push(s.clientId)}}return n},[e,t,o]);return!r||!r.length?null:(0,uI.jsx)(uI.Fragment,{children:r.map(n=>(0,uI.jsx)(ugt,{override:n},n.id))})}function fgt(e,t,o){let{globalSettings:r,globalStyles:n}=(0,dI.useSelect)(i=>{let s=i(P).getSettings();return{globalSettings:s.__experimentalFeatures,globalStyles:s[Gs]}},[]);return(0,zD.useMemo)(()=>{let i=dgt({settings:r,styles:n},e,t);return{settings:r,styles:{blocks:{[e]:{variations:{[`${t}-${o}`]:i}}}}}},[r,n,t,o,e])}function pgt({name:e,className:t,clientId:o}){let{getBlockStyles:r}=(0,dI.useSelect)(fI.store),n=r(e),i=pI(t,n),s=`${hte}${i}-${o}`,{settings:a,styles:l}=fgt(e,i,o),d=(0,zD.useMemo)(()=>{if(!i)return;let u={settings:a,styles:l},f=Y4((0,fI.getBlockTypes)(),o);return $4(u,f,!1,!0,!0,!0,{blockGap:!1,blockStyles:!0,layoutStyles:!1,marginReset:!1,presets:!1,rootPadding:!1,variationStyles:!0})},[i,a,l,o]);return il({id:`variation-${o}`,css:d,__unstableType:"variation",variation:i,clientId:o}),i?{className:s}:{}}var FOe={hasSupport:()=>!0,attributeKeys:["className"],isMatch:({className:e})=>VOe(e).length>0,useBlockProps:pgt};var{resolveStyle:mgt}=Z(Ro);function ggt(){let{rawGlobalStylesData:e,links:t}=(0,_te.useSelect)(o=>{let r=o(P).getSettings();return{rawGlobalStylesData:r[Gs]??null,links:r[Jy]??null}},[]);return(0,mI.useMemo)(()=>e?{styles:e,_links:t??void 0}:null,[e,t])}var jOe={"core/accordion-heading":{contextKey:"core/accordion-heading-level",fallbackLevel:3}};function hgt(e,t,o){let r=jOe[e];return r?t||o||r.fallbackLevel:t}function bgt(e){let t=(0,mI.useContext)(Oi),o=jOe[e]?.contextKey;return o?t[o]:void 0}function _gt(e,t){switch(e){case"core/button":return["button"];case"core/accordion-heading":case"core/heading":case"core/post-title":case"core/site-title":case"core/query-title":case"core/comments-title":case"core/term-name":case"core/site-tagline":return t===0?[]:t?["heading",`h${t}`]:["heading"];case"core/read-more":case"core/loginout":case"core/post-navigation-link":case"core/query-pagination-next":case"core/query-pagination-previous":case"core/query-pagination-numbers":case"core/comments-pagination-next":case"core/comments-pagination-previous":case"core/comments-pagination-numbers":case"core/comment-edit-link":case"core/comment-reply-link":case"core/post-comments-link":return["link"];default:return[]}}function vgt(e,t){let{clientId:o}=Mt(),r=bgt(e);return(0,_te.useSelect)(n=>{if(!e)return{variationName:null,headingLevel:void 0};let i=n(zOe.store).getBlockStyles(e),{level:s}=n(P).getBlockAttributes(o)||{};return{variationName:t?pI(t,i):null,headingLevel:hgt(e,s,r)}},[e,t,o,r])}function vc(e,t,o=null){let{variationName:r,headingLevel:n}=vgt(e,t),i=ggt();return(0,mI.useMemo)(()=>e?mgt(i,{blockName:e,variationName:r,elements:_gt(e,n),viewport:o?.viewport??null,pseudoState:o?.pseudo??null}):{value:{},sources:{}},[e,r,n,i,o])}var Ste=c(To(),1),V1=c(ce(),1),i8e=c(D(),1);var D1=c(ce(),1),t8e=c(oe(),1),o8e=c(X(),1);var xy=c(D(),1),UOe=c(oe(),1),WOe=c(ce(),1);var GOe=c(zo(),1);function jD(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function HOe(e,t){if(!e||!t)return{};let o=Ea(t,"color.text",{fallback:!0}),r=Ea(t,"color.background",{fallback:!0}),n=e.querySelector(o)||e,i=e.querySelector(r)||e,s=e.querySelector("a"),a=jD(n,"color"),l=s&&s.textContent?jD(s,"color"):void 0,d=i,u=jD(d,"background-color");for(;u==="rgba(0, 0, 0, 0)"&&d.parentNode&&d.parentNode.nodeType===d.parentNode.ELEMENT_NODE;)d=d.parentNode,u=jD(d,"background-color");return{textColor:a,backgroundColor:u,linkColor:l}}function ygt(e,t){return Object.keys(t).some(r=>e[r]!==t[r])?t:e}function L1({clientId:e,name:t,enabled:o=!0,checkTextColor:r=!0,checkLinkColor:n=!0,messageOverride:i}){let s=eo(e),[a,l]=(0,xy.useReducer)(ygt,{}),d=(0,UOe.useSelect)(p=>t&&o?p(WOe.store).getBlockType(t):void 0,[t,o]);(0,xy.useLayoutEffect)(()=>{!o||!s||!d||window.requestAnimationFrame(()=>window.requestAnimationFrame(()=>l(HOe(s,d))))}),(0,xy.useLayoutEffect)(()=>{if(!o||!s||!d)return;let p=new window.MutationObserver(()=>{l(HOe(s,d))});return p.observe(s,{attributes:!0,attributeFilter:["class","style"],subtree:!0}),()=>{p.disconnect()}},[o,s,d]);let u=o?JJ({backgroundColor:a.backgroundColor,textColor:r?a.textColor:void 0,linkColor:n?a.linkColor:void 0,messageOverride:i,enableAlphaChecker:!0}):null,f=u?.speakMessage;return(0,xy.useEffect)(()=>{f&&(0,GOe.speak)(f)},[f]),u?.message}var JOe=c(Q(),1),e8e=c(D(),1),_m=c(X(),1);var Nt=c(Q(),1);var nr=c(X(),1),YOe=c(Ks(),1),vte=c(ml(),1),bm=c(D(),1),hI=c(oe(),1),KOe=c(Ut(),1),qOe=c(vQ(),1);var Rt=c(T(),1),HD="image",wgt={placement:"left-start",offset:36,shift:!0,className:"block-editor-global-styles-background-panel__popover"},UD=()=>{},gI=e=>{window.requestAnimationFrame(()=>{let[t]=KOe.focus.tabbable.find(e?.current);t&&t.focus()})};function xgt(e){return e==="cover"||e===void 0?(0,nr.__)("Image covers the space evenly."):e==="contain"?(0,nr.__)("Image is contained without distortion."):(0,nr.__)("Image has a fixed width.")}var kgt=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}%`},Sgt=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 XOe({as:e="span",imgUrl:t,toggleProps:o={},filename:r,label:n,onToggleCallback:i=UD}){let{isOpen:s,...a}=o;(0,bm.useEffect)(()=>{typeof s<"u"&&i(s)},[s,i]);let l=()=>(0,Rt.jsxs)(Nt.__experimentalHStack,{className:"block-editor-global-styles-background-panel__inspector-preview-inner",children:[(0,Rt.jsx)("span",{className:"block-editor-global-styles-background-panel__inspector-image-indicator",style:{backgroundImage:t?`url(${t})`:void 0}}),(0,Rt.jsxs)(Nt.FlexBlock,{children:[(0,Rt.jsx)(Nt.__experimentalTruncate,{numberOfLines:1,className:"block-editor-global-styles-background-panel__inspector-media-replace-title",children:n}),(0,Rt.jsx)(Et,{render:(0,Rt.jsx)("span",{}),children:t?(0,nr.sprintf)((0,nr.__)("Background image: %s"),r||n):(0,nr.__)("No background image selected")})]})]});return e==="button"?(0,Rt.jsx)(Nt.Button,{__next40pxDefaultSize:!0,...a,children:l()}):l()}function Cgt({label:e,filename:t,url:o,children:r,onToggle:n=UD,hasImageValue:i,onReset:s,hasLocalOverride:a,containerRef:l}){if(!i)return;let d=e||(0,vte.getFilename)(o)||(0,nr.__)("Image");return(0,Rt.jsx)(Nt.Dropdown,{popoverProps:wgt,renderToggle:({onToggle:u,isOpen:f})=>{let p={onClick:u,className:"block-editor-global-styles-background-panel__dropdown-toggle","aria-expanded":f,"aria-label":(0,nr.__)("Background size, position and repeat options."),isOpen:f};return(0,Rt.jsxs)(Rt.Fragment,{children:[(0,Rt.jsx)(XOe,{imgUrl:o,filename:t,label:d,toggleProps:p,as:"button",onToggleCallback:n}),s&&(a?(0,Rt.jsx)(gm,{className:"block-editor-global-styles-background-panel__reset",onResetToInherited:()=>{s(),f&&u(),gI(l)}}):(0,Rt.jsx)(Nt.Button,{__next40pxDefaultSize:!0,label:(0,nr.__)("Reset"),className:"block-editor-global-styles-background-panel__reset",size:"small",icon:Rn,onClick:()=>{s(),f&&u(),gI(l)}}))]})},renderContent:()=>(0,Rt.jsx)(Nt.__experimentalDropdownContentWrapper,{className:"block-editor-global-styles-background-panel__dropdown-content-wrapper",paddingSize:"medium",children:r})})}function Egt(){return(0,Rt.jsx)(Nt.Placeholder,{className:"block-editor-global-styles-background-panel__loading",children:(0,Rt.jsx)(Nt.Spinner,{})})}function $Oe({onChange:e,style:t,inheritedValue:o,onRemoveImage:r=UD,onResetImage:n=UD,displayInPanel:i,defaultValues:s,containerRef:a}){let[l,d]=(0,bm.useState)(!1),{getSettings:u}=(0,hI.useSelect)(P),{id:f,title:p,url:m}=t?.background?.backgroundImage||{...o?.background?.backgroundImage},{createErrorNotice:g}=(0,hI.useDispatch)(YOe.store),h=E=>{g(E,{type:"snackbar"}),d(!1)},b=()=>e(Ge(t,["background","backgroundImage"],void 0)),v=E=>{if(!E||!E.url){b(),d(!1);return}if((0,qOe.isBlobURL)(E.url)){d(!0);return}if(E.media_type&&E.media_type!==HD||!E.media_type&&E.type&&E.type!==HD){h((0,nr.__)("Only images can be used as a background image."));return}let I=t?.background?.backgroundSize||s?.backgroundSize,B=t?.background?.backgroundPosition;e(Ge(t,["background"],{...t?.background,backgroundImage:{url:E.url,id:E.id,source:"file",title:E.title||void 0},backgroundPosition:!B&&(I==="auto"||!I)?"50% 0":B,backgroundSize:I})),d(!1),gI(a)},_=E=>{!E||E===m||e(Ge(t,["background"],{...t?.background,backgroundImage:{url:E,source:"url"}}))},y=E=>{u().mediaUpload({allowedTypes:[HD],filesList:E,onFileChange([I]){v(I)},onError:h,multiple:!1})},w=Nd(t),x=()=>e(Ge(t,["background"],{backgroundImage:"none"})),k=!w&&Nd(o),C=typeof t?.background?.backgroundImage=="string"?t.background.backgroundImage:m,S=/^https?:\/\//.test(C??"")?C:void 0,R=p||(0,vte.getFilename)(m)||(0,nr.__)("Image");return(0,Rt.jsxs)("div",{className:"block-editor-global-styles-background-panel__image-tools-panel-item",children:[l&&(0,Rt.jsx)(Egt,{}),(0,Rt.jsx)(lD,{mediaId:f,mediaURL:S,allowedTypes:[HD],accept:"image/*",onSelect:v,onSelectURL:_,popoverProps:{className:U({"block-editor-global-styles-background-panel__media-replace-popover":i})},name:(0,Rt.jsx)(XOe,{imgUrl:m,filename:p,label:R}),renderToggle:E=>(0,Rt.jsx)(Nt.Button,{...E,__next40pxDefaultSize:!0}),onError:h,onReset:()=>{gI(a),n()},children:k&&(0,Rt.jsx)(Nt.MenuItem,{onClick:()=>{gI(a),x(),r()},children:(0,nr.__)("Remove")})}),(0,Rt.jsx)(Nt.DropZone,{onFilesDrop:y,label:(0,nr.__)("Drop to upload")})]})}function Tgt({onChange:e,style:t,inheritedValue:o,defaultValues:r}){let n=t?.background?.backgroundSize,i=t?.background?.backgroundRepeat,s=t?.background?.backgroundPosition,a=t?.background?.backgroundAttachment,l=o?.background?.backgroundSize,d=o?.background?.backgroundRepeat,u=o?.background?.backgroundPosition,f=o?.background?.backgroundAttachment,p=n||l,m=i||d,g=t?.background?.backgroundImage?.url||o?.background?.backgroundImage?.url,h=t?.background?.backgroundImage?.id,b=s||u,v=a||f,_=!p&&h?r?.backgroundSize:p||"auto";_=["cover","contain","auto"].includes(_)?_:"auto";let y=!(m==="no-repeat"||_==="cover"&&m===void 0),w=R=>{let E=m,I=b;R==="contain"&&(E="no-repeat",I=void 0),R==="cover"&&(E=void 0,I=void 0),(_==="cover"||_==="contain")&&R==="auto"&&(E=void 0,t?.background?.backgroundImage?.id&&(I="50% 0")),!R&&_==="auto"&&(R="auto"),e(Ge(t,["background"],{...t?.background,backgroundPosition:I,backgroundRepeat:E,backgroundSize:R}))},x=R=>{e(Ge(t,["background","backgroundPosition"],kgt(R)))},k=()=>e(Ge(t,["background","backgroundRepeat"],y===!0?"no-repeat":"repeat")),C=()=>e(Ge(t,["background","backgroundAttachment"],v==="fixed"?"scroll":"fixed")),S=!b&&h&&p==="contain"?r?.backgroundPosition:b;return(0,Rt.jsxs)(Nt.__experimentalVStack,{spacing:3,className:"single-column",children:[(0,Rt.jsx)(Nt.FocalPointPicker,{label:(0,nr.__)("Focal point"),url:g,value:Sgt(S),onChange:x}),(0,Rt.jsx)(Nt.ToggleControl,{label:(0,nr.__)("Fixed background"),checked:v==="fixed",onChange:C}),(0,Rt.jsxs)(Nt.__experimentalToggleGroupControl,{label:(0,nr.__)("Size"),value:_,onChange:w,isBlock:!0,help:xgt(p||r?.backgroundSize),children:[(0,Rt.jsx)(Nt.__experimentalToggleGroupControlOption,{value:"cover",label:(0,nr._x)("Cover","Size option for background image control")},"cover"),(0,Rt.jsx)(Nt.__experimentalToggleGroupControlOption,{value:"contain",label:(0,nr._x)("Contain","Size option for background image control")},"contain"),(0,Rt.jsx)(Nt.__experimentalToggleGroupControlOption,{value:"auto",label:(0,nr._x)("Tile","Size option for background image control")},"tile")]}),(0,Rt.jsxs)(Nt.__experimentalHStack,{justify:"flex-start",spacing:2,as:"span",children:[(0,Rt.jsx)(Nt.__experimentalUnitControl,{"aria-label":(0,nr.__)("Background image width"),onChange:w,value:p,__unstableInputWidth:"100px",min:0,placeholder:(0,nr.__)("Auto"),disabled:_!=="auto"||_===void 0}),(0,Rt.jsx)(Nt.ToggleControl,{label:(0,nr.__)("Repeat"),checked:y,onChange:k,disabled:_==="cover"})]})]})}function ZOe({value:e,onChange:t,inheritedValue:o=e,settings:r,defaultValues:n={},showInheritanceLabelIndicators:i=es()}){let{globalStyles:s,_links:a}=(0,hI.useSelect)(w=>{let{getSettings:x}=w(P),k=x();return{globalStyles:k[Gs],_links:k[Jy]}},[]),l=(0,bm.useMemo)(()=>{let w={background:{}};return o?.background?(Object.entries(o?.background).forEach(([x,k])=>{w.background[x]=qm(k,{styles:s,_links:a})}),w):o},[s,a,o]),d=()=>t(Ge(e,["background"],{gradient:e?.background?.gradient})),{title:u,url:f}=e?.background?.backgroundImage||{...l?.background?.backgroundImage},p=Nd(e),m=p||Nd(l),g=i&&p&&Nd(l),h=e?.background?.backgroundImage||o?.background?.backgroundImage,b=m&&h!=="none"&&(r?.background?.backgroundSize||r?.background?.backgroundPosition||r?.background?.backgroundRepeat),[v,_]=(0,bm.useState)(!1),y=(0,bm.useRef)();return(0,Rt.jsx)("div",{ref:y,className:U("block-editor-global-styles-background-panel__inspector-media-replace-container",{"is-open":v}),children:b?(0,Rt.jsx)(Cgt,{label:u,filename:u,url:f,onToggle:_,hasImageValue:m,hasLocalOverride:g,onReset:p?d:void 0,containerRef:y,children:(0,Rt.jsxs)(Nt.__experimentalVStack,{spacing:3,className:"single-column",children:[(0,Rt.jsx)($Oe,{onChange:t,style:e,inheritedValue:l,displayInPanel:!0,onResetImage:()=>{_(!1),d()},onRemoveImage:()=>_(!1),defaultValues:n,containerRef:y}),(0,Rt.jsx)(Tgt,{onChange:t,style:e,defaultValues:n,inheritedValue:l})]})}):(0,Rt.jsx)($Oe,{onChange:t,style:e,inheritedValue:l,defaultValues:n,onResetImage:()=>{_(!1),d()},onRemoveImage:()=>_(!1),containerRef:y})})}var cf=c(T(),1),Rgt={backgroundImage:!0,backgroundColor:!0,gradient:!0};function QOe(e,t){return e?.background?.[t]}function WD(e){let t=mte(e),{backgroundImage:o,gradient:r}=e?.background||{};return o||r||t}function Nd(e){return!!e?.background?.backgroundImage?.id||typeof e?.background?.backgroundImage=="string"||!!e?.background?.backgroundImage?.url}function yte(e){return typeof e?.background?.gradient=="string"&&e?.background?.gradient!==""}function Igt(e){return!!e?.color?.background}function Pgt(e){return!!e?.color?.gradient}function wte({resetAllFilter:e,onChange:t,value:o,panelId:r,children:n,headerLabel:i}){let s=Fr();return(0,cf.jsx)(JOe.__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,cf.jsx)("div",{className:"background-block-support-panel__inner-wrapper",children:n})})}function GD({as:e=wte,value:t,onChange:o,inheritedValue:r=t,settings:n,panelId:i,defaultControls:s=Rgt,defaultValues:a={},headerLabel:l=(0,_m.__)("Background"),contrastWarning:d,showInheritanceLabelIndicators:u=es()}){let{colors:f,gradients:p,allColors:m,areCustomSolidsEnabled:g,areCustomGradientsEnabled:h,hasSolidColors:b,hasGradientColors:v,decodeValue:_,encodeGradientValue:y}=A1(n),w=QOe(n,"gradient"),x=mte(n),k=x&&b,C=v&&w,S=x&&v&&!w,R=QOe(n,"backgroundImage"),E=(0,e8e.useCallback)(J=>{let W=k,Y=w||S;return!W&&!Y?{...J,background:{}}:{...J,background:{},color:{...J?.color,...W&&{background:void 0},...Y&&{gradient:void 0}}}},[w,k,S]);if(!R&&!k&&!C&&!S)return null;let I=()=>o(Ge(t,["background","backgroundImage"],void 0)),B=()=>{let J=Ge(t,["background","gradient"],void 0);J=Ge(J,["color","gradient"],void 0),o(J)},O=_(r?.color?.background),M=_(t?.color?.background),N=(J,W)=>{let Y=Ge(t,["color","background"],hm(m,J,W));S&&(Y.color.gradient=void 0),o(Y)},j=()=>{let J=Ge(t,["color","background"],void 0);S&&(J.color.gradient=void 0),o(J)},V=_(r?.color?.gradient),A=_(t?.color?.gradient),L=(J,W)=>{let Y=Ge(t,["color","gradient"],y(J,W));Y.color.background=void 0,o(Y)},z=()=>o(Ge(t,["color","gradient"],void 0)),F=_(t?.background?.gradient??t?.color?.gradient),G=_(r?.background?.gradient??r?.color?.gradient),$=(J,W)=>{let Y=Ge(t,["background","gradient"],y(J,W));Y=Ge(Y,["color","gradient"],void 0),o(Y)},K=(J,W,Y)=>u?_c(J,W,Y):{className:Y},q=Nd({background:{backgroundImage:r?.background?.backgroundImage}}),H=Nd(t);return(0,cf.jsxs)(e,{resetAllFilter:E,value:t,onChange:o,panelId:i,headerLabel:l,children:[R&&(0,cf.jsx)(Wt,{...K(q&&!H,H&&q,"block-editor-color-gradient-item"),showLocalOverrideActionsInLabel:!1,hasValue:()=>Nd(t),label:(0,_m.__)("Image"),onDeselect:I,isShownByDefault:s.backgroundImage,panelId:i,children:(0,cf.jsx)(ZOe,{value:t,onChange:o,settings:n,inheritedValue:r,defaultControls:s,defaultValues:a,showInheritanceLabelIndicators:u})}),k&&(0,cf.jsx)(mb,{label:(0,_m.__)("Color"),hasValue:()=>Igt(t),resetValue:j,isShownByDefault:s.backgroundColor,indicators:[M??O],contrastWarning:d,showInheritanceLabelIndicators:u,isPlaceholder:M===void 0&&O!==void 0,hasInheritedValue:O!==void 0,tabs:[{key:"background",label:(0,_m.__)("Color"),inheritedValue:O,inheritedSlug:qo(r?.color?.background,"color"),userSlug:qo(t?.color?.background,"color"),setValue:N,userValue:M,isPlaceholder:M===void 0&&O!==void 0}],colorGradientControlSettings:{colors:f,disableCustomColors:!g},panelId:i}),C&&(0,cf.jsx)(mb,{label:(0,_m.__)("Gradient"),hasValue:()=>yte(t),resetValue:B,isShownByDefault:s.gradient,indicators:[F??G],showInheritanceLabelIndicators:u,isPlaceholder:F===void 0&&G!==void 0,hasInheritedValue:G!==void 0,tabs:[{key:"gradient",label:(0,_m.__)("Gradient"),inheritedValue:G,inheritedSlug:qo(r?.background?.gradient??r?.color?.gradient,"gradient"),userSlug:qo(t?.background?.gradient??t?.color?.gradient,"gradient"),setValue:$,userValue:F,isGradient:!0,isPlaceholder:F===void 0&&G!==void 0}],colorGradientControlSettings:{gradients:p,disableCustomGradients:!h},panelId:i}),S&&(0,cf.jsx)(mb,{label:(0,_m.__)("Gradient"),hasValue:()=>Pgt(t),resetValue:z,isShownByDefault:s.gradient,indicators:[A??V],showInheritanceLabelIndicators:u,isPlaceholder:A===void 0&&V!==void 0,hasInheritedValue:V!==void 0,tabs:[{key:"gradient",label:(0,_m.__)("Gradient"),inheritedValue:V,inheritedSlug:qo(r?.color?.gradient,"gradient"),userSlug:qo(t?.color?.gradient,"gradient"),setValue:L,userValue:A,isGradient:!0,isPlaceholder:A===void 0&&V!==void 0}],colorGradientControlSettings:{gradients:p,disableCustomGradients:!h},panelId:i})]})}var kte=c(T(),1),ky="background",xte={backgroundSize:"cover",backgroundPosition:"50% 50%"};function bI(e,t="any"){let o=(0,D1.getBlockSupport)(e,ky);return o===!0?!0:t==="any"?!!o?.backgroundImage||!!o?.backgroundSize||!!o?.backgroundRepeat||!!o?.gradient:!!o?.[t]}function $D(e){if(!e||!e?.backgroundImage?.url)return;let t;return e?.backgroundSize||(t={backgroundSize:xte.backgroundSize}),e?.backgroundSize==="contain"&&!e?.backgroundPosition&&(t={backgroundPosition:xte.backgroundPosition}),t}function Bgt({name:e,style:t}){if(!bI(e)||!t?.background?.backgroundImage)return;let o=$D(t?.background);if(o)return{style:{...o}}}function r8e(e){return Nd(e)||yte(e)?"has-background":""}function Ogt(e){let t=e.className?.includes("has-background")?e.className.split(" ").filter(o=>o!=="has-background").join(" ")||void 0:e.className;return{...e,className:t,backgroundColor:void 0,gradient:void 0,style:Qe({...e.style,background:void 0,color:{...e.style?.color,background:void 0,gradient:void 0}})}}function Mgt({children:e}){return(0,kte.jsx)(je,{group:"background",resetAllFilter:Ogt,children:e})}function YD({clientId:e,name:t,setAttributes:o,settings:r,asWrapper:n}){let i=Jl(),{style:s,className:a,backgroundColor:l,gradient:d}=(0,t8e.useSelect)(E=>{let{getBlockAttributes:I}=E(P),B=I(e);return{style:B?.style,className:B?.className,backgroundColor:B?.backgroundColor,gradient:B?.gradient}},[e]),{value:u}=vc(t,a,i),f=bI(t,"gradient")&&!!r?.background?.gradient,p=(0,D1.getBlockSupport)(t,"color"),m=p&&p.background!==!1,g=!!p?.gradients,h=!$n(i),b={...s,color:{...s?.color,background:l?"var:preset|color|"+l:s?.color?.background,gradient:!f&&d?"var:preset|gradient|"+d:s?.color?.gradient},...f&&{background:{...s?.background,gradient:d?"var:preset|gradient|"+d:s?.background?.gradient??s?.color?.gradient}}},v=h?ho(s,i):b,_=!v?.color?.gradient&&!v?.background?.gradient&&!!v?.color?.background&&(r?.color?.text||r?.color?.link)&&(0,D1.getBlockSupport)(t,["color","enableContrastChecker"])!==!1,y=L1({clientId:e,name:t,enabled:!!_,messageOverride:(0,o8e.__)("This color combination has poor contrast. Consider increasing contrast between background and foreground.")});if(!WD(r)||!bI(t)&&!m&&!g)return null;let w=E=>{if(h){o({style:Vr(s,i,E)});return}let I=E?.color?.background,B=qo(I,"color"),O=f?E?.background?.gradient:E?.color?.gradient,M=qo(O,"gradient"),N=M?void 0:E?.color?.gradient,j={...E,color:{...E?.color,background:B?void 0:I,gradient:f?void 0:N}};f&&(j.background={...j.background,gradient:E?.background?.gradient});let V=f&&!!s?.color?.gradient,A={style:Qe(j),backgroundColor:B,gradient:f?void 0:M},L=!!M||!!O;V&&L?A.className=U(a,"has-background"):!L&&a?.includes("has-background")&&(A.className=a.split(" ").filter(z=>z!=="has-background").join(" ")||void 0),o(A)},x={...r,background:{...r.background,backgroundSize:r?.background?.backgroundSize&&bI(t,"backgroundSize")}},k=(0,D1.getBlockSupport)(t,[ky,"__experimentalDefaultControls"]),C=(0,D1.getBlockSupport)(t,["color","__experimentalDefaultControls"]),S={...k,backgroundColor:C?.background,gradient:k?.gradient??C?.background};return(0,kte.jsx)(GD,{as:n||Mgt,panelId:e,defaultValues:xte,settings:x,onChange:w,defaultControls:S,value:h?ho(s,i):b,contrastWarning:y,inheritedValue:u})}var n8e={useBlockProps:Bgt,attributeKeys:["style"],hasSupport:bI};var Jn="color",KD=e=>{let t=(0,V1.getBlockSupport)(e,Jn);return t&&(t.link===!0||t.gradient===!0||t.background!==!1||t.text!==!1)},Agt=e=>{let t=(0,V1.getBlockSupport)(e,Jn);return t!==null&&typeof t=="object"&&!!t.link},Cte=e=>{let t=(0,V1.getBlockSupport)(e,Jn);return t!==null&&typeof t=="object"&&!!t.gradients},Ngt=e=>{let t=(0,V1.getBlockSupport)(e,Jn);return t&&t.background!==!1},Lgt=e=>{let t=(0,V1.getBlockSupport)(e,Jn);return t&&t.text!==!1};function Dgt(e){return KD(e)&&(e.attributes.backgroundColor||Object.assign(e.attributes,{backgroundColor:{type:"string"}}),e.attributes.textColor||Object.assign(e.attributes,{textColor:{type:"string"}}),Cte(e)&&!e.attributes.gradient&&Object.assign(e.attributes,{gradient:{type:"string"}})),e}function s8e(e,t,o){if(!KD(t)||Qt(t,Jn))return e;let r=Cte(t),{backgroundColor:n,textColor:i,gradient:s,style:a}=o,l=h=>!Qt(t,Jn,h),d=l("text")?pl("color",i):void 0,u=l("gradients")?Vw(s):void 0,f=l("background")?pl("background-color",n):void 0,p=l("background")||l("gradients"),m=n||a?.color?.background||r&&(s||a?.color?.gradient),g=U(e.className,d,u,{[f]:(!r||!a?.color?.gradient)&&!!f,"has-text-color":l("text")&&(i||a?.color?.text),"has-background":p&&m,"has-link-color":l("link")&&a?.elements?.link?.color});return e.className=g||void 0,e}function Vgt({name:e,backgroundColor:t,textColor:o,gradient:r,style:n}){let[i,s,a]=Fe("color.palette.custom","color.palette.theme","color.palette.default"),l=(0,i8e.useMemo)(()=>[...i||[],...s||[],...a||[]],[i,s,a]);if(!KD(e)||Qt(e,Jn))return{};let d={};o&&!Qt(e,Jn,"text")&&(d.color=ru(l,o)?.color),t&&!Qt(e,Jn,"background")&&(d.backgroundColor=ru(l,t)?.color);let u=s8e({style:d},e,{textColor:o,backgroundColor:t,gradient:r,style:n}),f=t||n?.color?.background||r||n?.color?.gradient;return{...u,className:U(u.className,!f&&r8e(n))}}var Ete={useBlockProps:Vgt,addSaveProps:s8e,attributeKeys:["backgroundColor","textColor","gradient","style"],hasSupport:KD},Fgt={linkColor:[["style","elements","link","color","text"]],textColor:[["textColor"],["style","color","text"]],backgroundColor:[["backgroundColor"],["style","color","background"]],gradient:[["gradient"],["style","color","gradient"]]};function zgt(e,t,o,r){let n=e.name,i={linkColor:Agt(n),textColor:Lgt(n),backgroundColor:Ngt(n),gradient:Cte(n)};return qD(i,Fgt,e,t,o,r)}(0,Ste.addFilter)("blocks.registerBlockType","core/color/addAttribute",Dgt);(0,Ste.addFilter)("blocks.switchToBlockType.transformedBlock","core/color/addTransforms",zgt);var Rte=c(T(),1);function jgt({children:e,resetAllFilter:t}){let o=(0,XD.useCallback)(r=>{let n=t(r.style);return{...r,style:Qe(n)}},[t]);return(0,Rte.jsx)(je,{group:"elements",resetAllFilter:o,children:e})}function ZD({clientId:e,name:t,setAttributes:o,settings:r,asWrapper:n,label:i,defaultControls:s}){let a=Jl(),l=VD(r),{style:d,className:u}=(0,a8e.useSelect)(_=>{if(!l)return{};let y=_(P).getBlockAttributes(e);return{style:y?.style,className:y?.className}},[e,l]),{value:f}=vc(t,u,a),p=!$n(a),m=(0,XD.useMemo)(()=>p?ho(d,a):d,[p,a,d]),g=p?_=>{o({style:Vr(d,a,_)})}:_=>{o({style:Qe(_)})},h=!!m?.elements?.link?.color?.text&&r?.color?.link&&(0,Tte.getBlockSupport)(t,[Jn,"enableContrastChecker"])!==!1,b=L1({clientId:e,name:t,enabled:!!h,checkTextColor:!1,messageOverride:(0,l8e.__)("This link color has poor contrast against the background. Consider increasing contrast.")});return l?(s=s||(0,Tte.getBlockSupport)(t,[Jn,"__experimentalDefaultControls"]),(0,Rte.jsx)(FD,{as:n||jgt,panelId:e,settings:r,value:m,onChange:g,defaultControls:s,label:i,contrastWarning:b,inheritedValue:f})):null}var wI=c(ce(),1),cV=c(D(),1),W8e=c(oe(),1),G8e=c(X(),1);var xc=c(Q(),1),Ir=c(X(),1),Sy=c(D(),1);var F1=c(X(),1);var c8e=c(D(),1),QD=c(Q(),1),Ite=c(T(),1),Hgt=[{label:(0,F1.__)("Align text left"),value:"left",icon:Wm},{label:(0,F1.__)("Align text center"),value:"center",icon:Yb},{label:(0,F1.__)("Align text right"),value:"right",icon:Gm},{label:(0,F1.__)("Justify text"),value:"justify",icon:Jz}],Ugt=["left","center","right"];function JD({className:e,value:t,onChange:o,options:r=Ugt}){let n=(0,c8e.useMemo)(()=>Hgt.filter(i=>r.includes(i.value)),[r]);return n.length?(0,Ite.jsx)(QD.__experimentalToggleGroupControl,{isDeselectable:!0,label:(0,F1.__)("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,Ite.jsx)(QD.__experimentalToggleGroupControlOptionIcon,{value:i.value,icon:i.icon,label:i.label},i.value))}):null}var kn=c(Q(),1),_I=c(X(),1);var yc=c(T(),1);function d8e({value:e,onChange:t,__unstableInputWidth:o="60px",withSlider:r=!1,hasBottomMargin:n=!1,help:i,className:s,placeholder:a,...l}){let[d]=Fe("spacing.units"),u=(0,kn.__experimentalUseCustomUnits)({availableUnits:d||["px","em","rem","ch","%","vw","vh"],defaultValues:{px:16,em:2,rem:2,ch:2}}),[f,p]=(0,kn.__experimentalParseQuantityAndUnitFromRawValue)(e,u),m=!!p&&["em","rem","%","ch","vw","vh"].includes(p);return r?(0,yc.jsxs)(kn.__experimentalView,{style:n?{marginBottom:12}:void 0,children:[(0,yc.jsx)(kn.BaseControl.VisualLabel,{children:(0,_I.__)("Line indent")}),(0,yc.jsxs)(kn.Flex,{children:[(0,yc.jsx)(kn.FlexItem,{isBlock:!0,children:(0,yc.jsx)(kn.__experimentalUnitControl,{label:(0,_I.__)("Line indent"),labelPosition:"top",hideLabelFromVision:!0,value:e,onChange:t,units:u,__unstableInputWidth:o,min:0,className:s,placeholder:a})}),r&&(0,yc.jsx)(kn.FlexItem,{isBlock:!0,children:(0,yc.jsx)(kn.__experimentalSpacer,{marginX:2,marginBottom:0,children:(0,yc.jsx)(kn.RangeControl,{label:(0,_I.__)("Line indent"),hideLabelFromVision:!0,value:f,withInputField:!1,onChange:g=>{t?.(g===void 0?void 0:g+(p??"px"))},min:0,max:m?10:100,step:m?.1:1,initialPosition:0})})})]}),i&&(0,yc.jsx)("p",{className:"components-base-control__help",children:i})]}):(0,yc.jsx)(kn.__experimentalUnitControl,{...l,label:(0,_I.__)("Line indent"),value:e,__unstableInputWidth:o,units:u,onChange:t,help:i,className:s,placeholder:a})}var df=c(X(),1),wc=c(Q(),1);var eV=c(D(),1);var Xo=c(T(),1),Pte=[],Wgt=7;function Ggt(e){if(!e||typeof e!="string")return;if(e.startsWith("var:preset|text-shadow|"))return e.replace("var:preset|text-shadow|","");let t=e.match(/^var\(--wp--preset--text-shadow--([^)]+)\)$/);if(t)return t[1]}function u8e({textShadow:e,onChange:t}){return(0,Xo.jsx)(wc.Dropdown,{popoverProps:{placement:"left-start",offset:36,shift:!0,className:"block-editor-global-styles__text-shadow-popover"},className:"block-editor-global-styles__text-shadow-dropdown",renderToggle:({onToggle:r,isOpen:n})=>(0,Xo.jsx)(Ygt,{textShadow:e,onChange:t,onToggle:r,isOpen:n}),renderContent:()=>(0,Xo.jsx)($gt,{textShadow:e,onChange:t})})}function $gt({textShadow:e,onChange:t}){let[o,r,n,i]=Fe("typography.defaultTextShadowPresets","typography.textShadowPresets.default","typography.textShadowPresets.theme","typography.textShadowPresets.custom"),s=(0,eV.useMemo)(()=>[...o&&r||Pte,...n||Pte,...i||Pte],[o,r,n,i]),a=[{value:"none",label:(0,df.__)("None")},...s.map(f=>({value:`var:preset|text-shadow|${f.slug}`,label:f.name}))],l=Ggt(e),d=l?`var:preset|text-shadow|${l}`:e??"",u=l?s.find(f=>f.slug===l)?.textShadow:e;return(0,Xo.jsxs)(De,{className:"block-editor-global-styles__text-shadow",direction:"column",gap:"sm",children:[(0,Xo.jsx)(Ct,{variant:"heading-sm",render:(0,Xo.jsx)("h2",{}),children:(0,df.__)("Text shadow")}),(0,Xo.jsx)("div",{className:"block-editor-global-styles__text-shadow-preview",style:{textShadow:u},children:(0,df.__)("Code is poetry")}),s.length>=Wgt?(0,Xo.jsx)(wc.SelectControl,{hideLabelFromVision:!0,label:(0,df.__)("Text shadow preset"),value:d,options:[{value:"",label:(0,df.__)("Default")},...a],onChange:t}):(0,Xo.jsx)(wc.Composite,{role:"listbox","aria-label":(0,df.__)("Text shadow presets"),render:(0,Xo.jsx)(De,{direction:"column"}),children:a.map(({value:f,label:p})=>{let m=f===d;return(0,Xo.jsxs)(wc.Composite.Item,{role:"option","aria-selected":m,className:U("block-editor-global-styles__text-shadow-list-item",{"is-active":m}),onClick:()=>t(f),render:(0,Xo.jsx)(wc.Button,{__next40pxDefaultSize:!0}),children:[(0,Xo.jsx)("span",{children:p}),(0,Xo.jsx)(St,{icon:Vn})]},f)})}),(0,Xo.jsx)(De,{direction:"row",justify:"flex-end",children:(0,Xo.jsx)(wc.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>t(void 0),disabled:!e,accessibleWhenDisabled:!0,children:(0,df.__)("Clear")})})]})}function Ygt({textShadow:e,onChange:t,onToggle:o,isOpen:r}){let n=(0,eV.useRef)(void 0);return(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)(wc.Button,{__next40pxDefaultSize:!0,onClick:o,className:U("block-editor-global-styles__text-shadow-dropdown-toggle",{"is-open":r}),"aria-expanded":r,ref:n,children:(0,Xo.jsxs)(De,{direction:"row",justify:"flex-start",align:"center",gap:"sm",children:[(0,Xo.jsx)(St,{icon:dE,size:24}),(0,Xo.jsx)("span",{children:(0,df.__)("Text shadow")})]})}),!!e&&(0,Xo.jsx)(wc.Button,{__next40pxDefaultSize:!0,size:"small",icon:Rn,onClick:()=>{r&&o(),t(void 0),n.current?.focus()},className:U("block-editor-global-styles__text-shadow-remove-button",{"is-open":r}),label:(0,df.__)("Remove text shadow")})]})}function p8e(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 f8e(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 Kgt(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 m8e(e,t,o){let r=t,n=o,{fontStyles:i,fontWeights:s,combinedStyleAndWeightOptions:a}=r1(e),l=i?.some(({value:u})=>u===t),d=s?.some(({value:u})=>u?.toString()===o?.toString());return l||(r=t?Kgt(i,t):a?.find(u=>u.style.fontWeight===f8e(s,o))?.style?.fontStyle),d||(n=o?f8e(s,o):a?.find(u=>u.style.fontStyle===(r||t))?.style?.fontWeight),{nearestFontStyle:r,nearestFontWeight:n}}var io=c(T(),1),qgt=1,Xgt=6;function Zgt(e,t){let o=e?.elements?.link?.color?.text;if(o!==void 0)return o===e?.color?.text;let r=t?.elements?.link?.color?.text;return r===void 0||t?.color?.text===r}function tV(e){let t=h8e(e),o=b8e(e),r=_8e(e),n=v8e(e),i=w8e(e),s=y8e(e),a=x8e(e),l=C8e(e),d=k8e(e),u=S8e(e),f=g8e(e),p=pte(e),m=E8e(e);return t||o||r||n||i||s||f||a||l||d||u||p||m}function g8e(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 h8e(e){return["default","theme","custom"].some(t=>e?.typography?.fontFamilies?.[t]?.length)}function b8e(e){return e?.typography?.lineHeight}function _8e(e){return e?.typography?.fontStyle||e?.typography?.fontWeight}function Qgt(e){return e?.typography?.fontStyle?e?.typography?.fontWeight?(0,Ir.__)("Appearance"):(0,Ir.__)("Font style"):(0,Ir.__)("Font weight")}function v8e(e){return e?.typography?.letterSpacing}function y8e(e){return e?.typography?.textTransform}function w8e(e){return e?.typography?.textAlign}function x8e(e){return e?.typography?.textDecoration}function k8e(e){return e?.typography?.writingMode}function S8e(e){return e?.typography?.textColumns}function C8e(e){return e?.typography?.textIndent}function E8e(e){return e?.typography?.textShadow}function Jgt(e){let t=e?.typography?.fontSizes,o=!!e?.typography?.defaultFontSizes;return[...t?.custom??[],...t?.theme??[],...o?t?.default??[]:[]]}function Ote({resetAllFilter:e,onChange:t,value:o,panelId:r,children:n}){let i=Fr(),s=()=>{let a=e(o);t(a)};return(0,io.jsx)(xc.__experimentalToolsPanel,{label:(0,Ir.__)("Typography"),resetAll:s,panelId:r,__experimentalFirstVisibleItemClass:"first",dropdownMenuProps:i,children:n})}var eht={textColor:!0,fontFamily:!0,fontSize:!0,fontAppearance:!0,lineHeight:!0,letterSpacing:!0,textAlign:!0,textTransform:!0,textDecoration:!0,textIndent:!0,writingMode:!0,textColumns:!0,textShadow:!0},tht=[void 0,null,""];function rt(e){return!tht.includes(e)}function Bte(e){if(!rt(e))return;let[t]=(0,xc.__experimentalParseQuantityAndUnitFromRawValue)(e);return t}function oV({as:e=Ote,value:t,onChange:o,inheritedValue:r=t,settings:n,panelId:i,defaultControls:s=eht,isGlobalStyles:a=!1,showInheritanceLabelIndicators:l=es(),contrastWarning:d}){let{colors:u,allColors:f,areCustomSolidsEnabled:p,decodeValue:m}=A1(n),g=(We,En,eu)=>_c(l&&We,l&&En,eu),h=pte(n),b=m(r?.color?.text),v=m(t?.color?.text),_=()=>!!t?.color?.text,y=(We,En)=>{let eu=hm(f,We,En),Dc=Ge(t,["color","text"],eu);Zgt(t,r)&&(Dc=Ge(Dc,["elements","link","color","text"],eu)),o(Dc)},w=()=>y(void 0),x=h8e(n),k=m(r?.typography?.fontFamily),C=m(t?.typography?.fontFamily)??k,S=!rt(t?.typography?.fontFamily)&&rt(k),{fontFamilies:R,fontFamilyFaces:E}=(0,Sy.useMemo)(()=>p8e(n,C),[n,C]),I=We=>{let En=R?.find(({fontFamily:Vc})=>Vc===We)?.slug,eu=En?`var:preset|font-family|${En}`:We,Dc=Ge(t,["typography","fontFamily"],rt(eu)?eu:void 0),Kre=R?.find(({fontFamily:Vc})=>Vc===We)?.fontFace??[],{fontStyles:vFe,fontWeights:yFe}=r1(Kre),wFe=vFe?.some(({value:Vc})=>Vc===Ee),xFe=yFe?.some(({value:Vc})=>Vc?.toString()===ye?.toString());if(!wFe||!xFe){let{nearestFontStyle:Vc,nearestFontWeight:Mz}=m8e(Kre,Ee,ye);Vc||Mz?Dc={...Dc,typography:{...Dc?.typography,fontStyle:rt(Vc)?Vc:void 0,fontWeight:rt(Mz)?Mz:void 0}}:(Ee||ye)&&(Dc={...Dc,typography:{...Dc?.typography,fontStyle:void 0,fontWeight:void 0}})}o(Dc)},B=()=>rt(t?.typography?.fontFamily),O=()=>I(void 0),M=g8e(n),N=!n?.typography?.customFontSize,j=Jgt(n),V=t?.typography?.fontSize,A=r?.typography?.fontSize,L=V??A,z=m(L),F=m(A),G=!rt(V)&&rt(A),$=We=>{if(!We||typeof We!="string")return;if(We.startsWith("var:preset|font-size|"))return We.replace("var:preset|font-size|","");let En=We.match(/^var\(--wp--preset--font-size--([^)]+)\)$/);if(En)return En[1]},K=$(L),q=$(A),H=(We,En)=>{let eu=En?.slug?`var:preset|font-size|${En?.slug}`:We;o(Ge(t,["typography","fontSize"],rt(eu)?eu:void 0))},J=(We,En)=>{if(G&&We===void 0&&!En){q?H(void 0,{slug:q}):H(F);return}H(We,En)},W=()=>rt(t?.typography?.fontSize),Y=()=>H(void 0),ee=_8e(n),re=Qgt(n),ne=n?.typography?.fontStyle,ie=n?.typography?.fontWeight,be=m(r?.typography?.fontStyle),pe=m(r?.typography?.fontWeight),Ee=m(t?.typography?.fontStyle)??be,ye=m(t?.typography?.fontWeight)??pe,Oe=!rt(t?.typography?.fontStyle)&&!rt(t?.typography?.fontWeight)&&(rt(be)||rt(pe)),we=(0,Sy.useCallback)(({fontStyle:We,fontWeight:En})=>{(We!==Ee||En!==ye)&&o({...t,typography:{...t?.typography,fontStyle:rt(We)?We:void 0,fontWeight:rt(En)?En:void 0}})},[Ee,ye,o,t]),_e=(0,Sy.useCallback)(We=>{if(Oe&&We.fontStyle===Ee&&We.fontWeight===ye){o({...t,typography:{...t?.typography,fontStyle:rt(Ee)?Ee:void 0,fontWeight:rt(ye)?ye:void 0}});return}we(We)},[Oe,Ee,ye,o,t,we]),xe=()=>rt(t?.typography?.fontStyle)||rt(t?.typography?.fontWeight),he=(0,Sy.useCallback)(()=>{we({})},[we]),Ze=b8e(n),fe=m(t?.typography?.lineHeight),Ce=m(r?.typography?.lineHeight),de=!rt(t?.typography?.lineHeight)&&rt(Ce),ae=We=>{o(Ge(t,["typography","lineHeight"],rt(We)?We:void 0))},Re=()=>rt(t?.typography?.lineHeight),$e=()=>ae(void 0),ct=v8e(n),Pt=m(t?.typography?.letterSpacing),at=m(r?.typography?.letterSpacing),Be=!rt(t?.typography?.letterSpacing)&&rt(at),qe=We=>{o(Ge(t,["typography","letterSpacing"],rt(We)?We:void 0))},vt=()=>rt(t?.typography?.letterSpacing),Vt=()=>qe(void 0),kt=C8e(n),yt=m(t?.typography?.textIndent),Ye=m(r?.typography?.textIndent),Se=!rt(t?.typography?.textIndent)&&rt(Ye),me=(n?.typography?.textIndent??"subsequent")==="all",Te=We=>{o(Ge(t,["typography","textIndent"],rt(We)?We:void 0))},Me=We=>{o({...t,settings:{typography:{textIndent:We?"all":"subsequent"}}})},lt=()=>rt(t?.typography?.textIndent),et=()=>{o(Ge(t,["typography","textIndent"],void 0))},ao=me?(0,Ir.__)("Indents the first line of all paragraphs."):(0,Ir.__)("Indents the first line of each paragraph after the first one."),Lo=S8e(n),$r=m(t?.typography?.textColumns),xo=m(r?.typography?.textColumns),_o=!rt(t?.typography?.textColumns)&&rt(xo),ht=We=>{o(Ge(t,["typography","textColumns"],rt(We)?We:void 0))},Ot=()=>rt(t?.typography?.textColumns),fn=()=>ht(void 0),Ii=y8e(n),Cn=m(r?.typography?.textTransform),Pi=m(t?.typography?.textTransform)??Cn,as=!rt(t?.typography?.textTransform)&&rt(Cn),ls=We=>{o(Ge(t,["typography","textTransform"],rt(We)?We:void 0))},ul=We=>{if(as&&We===void 0){ls(Cn);return}ls(We)},Ne=()=>rt(t?.typography?.textTransform),ko=()=>ls(void 0),dt=x8e(n),lo=m(r?.typography?.textDecoration),Mr=m(t?.typography?.textDecoration)??lo,ar=!rt(t?.typography?.textDecoration)&&rt(lo),ri=We=>{o(Ge(t,["typography","textDecoration"],rt(We)?We:void 0))},Bf=We=>{if(ar&&We===void 0){ri(lo);return}ri(We)},fl=()=>rt(t?.typography?.textDecoration),Lc=()=>ri(void 0),IS=k8e(n),Of=m(r?.typography?.writingMode),Fb=m(t?.typography?.writingMode)??Of,Wy=!rt(t?.typography?.writingMode)&&rt(Of),zb=We=>{o(Ge(t,["typography","writingMode"],rt(We)?We:void 0))},u3=We=>{if(Wy&&We===void 0){zb(Of);return}zb(We)},f3=()=>rt(t?.typography?.writingMode),Pz=()=>zb(void 0),Bz=w8e(n),Mf=m(r?.typography?.textAlign),nt=m(t?.typography?.textAlign)??Mf,ni=!rt(t?.typography?.textAlign)&&rt(Mf),Lm=We=>{o(Ge(t,["typography","textAlign"],rt(We)?We:void 0))},fFe=We=>{if(ni&&We===void 0){Lm(Mf);return}Lm(We)},Gre=()=>rt(t?.typography?.textAlign),pFe=()=>Lm(void 0),mFe=E8e(n),Oz=r?.typography?.textShadow,gFe=t?.typography?.textShadow??Oz,hFe=!rt(t?.typography?.textShadow)&&rt(Oz),$re=We=>{o(Ge(t,["typography","textShadow"],We||void 0))},Yre=()=>rt(t?.typography?.textShadow),bFe=()=>$re(void 0),_Fe=(0,Sy.useCallback)(We=>h?{...We,typography:{},color:{...We?.color,text:void 0}}:{...We,typography:{}},[h]);return(0,io.jsxs)(e,{resetAllFilter:_Fe,value:t,onChange:o,panelId:i,children:[h&&(0,io.jsx)(mb,{label:(0,Ir.__)("Color"),hasValue:_,resetValue:w,isShownByDefault:s.textColor,indicators:[v??b],contrastWarning:d,showInheritanceLabelIndicators:l,isPlaceholder:v===void 0&&b!==void 0,hasInheritedValue:b!==void 0,tabs:[{key:"text",label:(0,Ir.__)("Color"),inheritedValue:b,inheritedSlug:qo(r?.color?.text,"color"),userSlug:qo(t?.color?.text,"color"),setValue:y,userValue:v,isPlaceholder:v===void 0&&b!==void 0}],colorGradientControlSettings:{colors:u,disableCustomColors:!p},panelId:i}),x&&(0,io.jsx)(Wt,{...g(S,B()&&k!==void 0),label:(0,Ir.__)("Font"),hasValue:B,onDeselect:O,isShownByDefault:s.fontFamily,panelId:i,children:(0,io.jsx)(vL,{fontFamilies:R,value:C,onChange:I})}),M&&(0,io.jsx)(Wt,{...g(G,W()&&A!==void 0),label:(0,Ir.__)("Size"),hasValue:W,hasInlineEndToggle:!0,onDeselect:Y,isShownByDefault:s.fontSize,panelId:i,children:(0,io.jsx)(xc.FontSizePicker,{value:K||z,valueMode:K?"slug":"literal",onChange:J,fontSizes:j,disableCustomFontSizes:N,withReset:!1,withSlider:!0})}),ee&&(0,io.jsx)(Wt,{...g(Oe,xe()&&(be!==void 0||pe!==void 0)),label:re,hasValue:xe,onDeselect:he,isShownByDefault:s.fontAppearance,panelId:i,children:(0,io.jsx)(_L,{value:{fontStyle:Ee,fontWeight:ye},onChange:_e,hasFontStyles:ne,hasFontWeights:ie,fontFamilyFaces:E})}),Ze&&(0,io.jsx)(Wt,{...g(de,Re()&&Ce!==void 0,"single-column"),label:(0,Ir.__)("Line height"),hasValue:Re,onDeselect:$e,isShownByDefault:s.lineHeight,panelId:i,children:(0,io.jsx)(iD,{__unstableInputWidth:"auto",value:fe??Ce,onChange:ae,...de?{placeholder:Bte(Ce)}:{}})}),ct&&(0,io.jsx)(Wt,{...g(Be,vt()&&at!==void 0,"single-column"),label:(0,Ir.__)("Letter spacing"),hasValue:vt,onDeselect:Vt,isShownByDefault:s.letterSpacing,panelId:i,children:(0,io.jsx)(wL,{value:Pt??at,onChange:qe,__unstableInputWidth:"auto",placeholder:Be?Bte(at):void 0})}),kt&&(0,io.jsxs)(Wt,{...g(Se,lt()&&Ye!==void 0),label:(0,Ir.__)("Line indent"),hasValue:lt,onDeselect:et,isShownByDefault:s.textIndent,panelId:i,children:[(0,io.jsx)(d8e,{value:yt??Ye,onChange:Te,__unstableInputWidth:"auto",withSlider:!0,hasBottomMargin:a,placeholder:Se?Bte(Ye):void 0}),a&&(0,io.jsx)(xc.ToggleControl,{label:(0,Ir.__)("Indent all paragraphs"),checked:me,onChange:Me,help:ao})]}),Lo&&(0,io.jsx)(Wt,{...g(_o,Ot()&&xo!==void 0,"single-column"),label:(0,Ir.__)("Columns"),hasValue:Ot,onDeselect:fn,isShownByDefault:s.textColumns,panelId:i,children:(0,io.jsx)(xc.__experimentalNumberControl,{label:(0,Ir.__)("Columns"),max:Xgt,min:qgt,onChange:ht,placeholder:_o?xo:void 0,spinControls:"custom",value:$r,initialPosition:1})}),dt&&(0,io.jsx)(Wt,{...g(ar,fl()&&lo!==void 0,"single-column"),label:(0,Ir.__)("Decoration"),hasValue:fl,onDeselect:Lc,isShownByDefault:s.textDecoration,panelId:i,children:(0,io.jsx)(kL,{value:Mr,onChange:Bf,__unstableInputWidth:"auto"})}),IS&&(0,io.jsx)(Wt,{...g(Wy,f3()&&Of!==void 0,"single-column"),label:(0,Ir.__)("Orientation"),hasValue:f3,onDeselect:Pz,isShownByDefault:s.writingMode,panelId:i,children:(0,io.jsx)(TL,{value:Fb,onChange:u3})}),Ii&&(0,io.jsx)(Wt,{...g(as,Ne()&&Cn!==void 0),label:(0,Ir.__)("Letter case"),hasValue:Ne,onDeselect:ko,isShownByDefault:s.textTransform,panelId:i,children:(0,io.jsx)(CL,{value:Pi,onChange:ul,showNone:!0,isBlock:!0})}),mFe&&(0,io.jsx)(Wt,{...g(hFe,Yre()&&Oz!==void 0),label:(0,Ir.__)("Text shadow"),hasValue:Yre,onDeselect:bFe,isShownByDefault:s.textShadow,panelId:i,children:(0,io.jsx)(u8e,{textShadow:gFe,onChange:$re})}),Bz&&(0,io.jsxs)(Wt,{...g(ni,Gre()&&Mf!==void 0),label:(0,Ir.__)("Text alignment"),hasValue:Gre,onDeselect:pFe,isShownByDefault:s.textAlign,panelId:i,children:[(0,io.jsx)(JD,{value:nt,onChange:fFe,options:["left","center","right","justify"]}),nt==="justify"&&(0,io.jsx)("div",{children:(0,io.jsx)(xc.Notice,{status:"warning",isDismissible:!1,children:(0,Ir.__)("Justified text can reduce readability. For better accessibility, use left-aligned text instead.")})})]})]})}var oht=c(ce(),1);var rht=c(T(),1),T8e="typography.lineHeight";var R8e=c(To(),1),rV=c(ce(),1),I8e=c(_2(),1);var vI="typography.__experimentalFontFamily";function nht(e){return(0,rV.hasBlockSupport)(e,vI)&&(e.attributes.fontFamily||Object.assign(e.attributes,{fontFamily:{type:"string"}})),e}function P8e(e,t,o){if(!(0,rV.hasBlockSupport)(t,vI)||Qt(t,ba,"fontFamily")||!o?.fontFamily)return e;let r=new I8e.default(e.className);r.add(`has-${Bi(o?.fontFamily)}-font-family`);let n=r.value;return e.className=n||void 0,e}function iht({name:e,fontFamily:t}){return P8e({},e,{fontFamily:t})}var Mte={useBlockProps:iht,addSaveProps:P8e,attributeKeys:["fontFamily"],hasSupport(e){return(0,rV.hasBlockSupport)(e,vI)}};(0,R8e.addFilter)("blocks.registerBlockType","core/fontFamily/addAttribute",nht);var Ate=c(To(),1),z1=c(ce(),1),B8e=c(_2(),1);var sht=c(T(),1),Cy="typography.fontSize";function aht(e){return(0,z1.hasBlockSupport)(e,Cy)&&(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}})),e}function O8e(e,t,o){if(!(0,z1.hasBlockSupport)(t,Cy)||Qt(t,ba,"fontSize"))return e;let r=new B8e.default(e.className);r.add(sg(o.fontSize));let n=r.value;return e.className=n||void 0,e}function lht({name:e,fontSize:t,style:o}){let[r,n,i]=Fe("typography.fontSizes","typography.fluid","layout");if(!(0,z1.hasBlockSupport)(e,Cy)||Qt(e,ba,"fontSize")||!t&&!o?.typography?.fontSize)return;let s;if(o?.typography?.fontSize&&(s={style:{fontSize:Hf({size:o.typography.fontSize},{typography:{fluid:n},layout:i})}}),t&&(s={style:{fontSize:Fw(r,t,o?.typography?.fontSize).size}}),!!s)return O8e(s,e,{fontSize:t})}var Nte={useBlockProps:lht,addSaveProps:O8e,attributeKeys:["fontSize","style"],hasSupport(e){return(0,z1.hasBlockSupport)(e,Cy)}},cht={fontSize:[["fontSize"],["style","typography","fontSize"]]};function dht(e,t,o,r){let n=e.name,i={fontSize:(0,z1.hasBlockSupport)(n,Cy)};return qD(i,cht,e,t,o,r)}(0,Ate.addFilter)("blocks.registerBlockType","core/font/addAttribute",aht);(0,Ate.addFilter)("blocks.switchToBlockType.transformedBlock","core/font-size/addTransforms",dht);var iV=c(X(),1),j1=c(ce(),1);var N8e=c(oe(),1);var nV=c(oe(),1),M8e=c(D(),1);function Hr(e){let t=Mt(),{clientId:o=""}=t,r=(0,nV.useRegistry)(),n=(0,nV.useSelect)(i=>o?null:i(P).getBlockEditingMode(),[o]);return(0,M8e.useEffect)(()=>{if(!e)return;let{setBlockEditingMode:i,unsetBlockEditingMode:s,__unstableMarkNextChangeAsNotPersistent:a}=r.dispatch(P);return a(),i(o,e),()=>{a(),s(o)}},[r,o,e]),o?t[Yy]:n}var Lte=c(T(),1),H1="typography.textAlign",uht=[{icon:Wm,title:(0,iV.__)("Align text left"),align:"left"},{icon:Yb,title:(0,iV.__)("Align text center"),align:"center"},{icon:Gm,title:(0,iV.__)("Align text right"),align:"right"}],A8e=["left","center","right"],fht=[];function Dte(e){return Array.isArray(e)?A8e.filter(t=>e.includes(t)):e===!0?A8e:fht}function pht(e,t){return e&&vi(t)?"style-state":"block"}function mht({clientId:e,style:t,name:o,setAttributes:r}){let i=uf(o)?.typography?.textAlign,s=Hr(),{selectedState:a,isResponsiveEditing:l}=(0,N8e.useSelect)(g=>{let{getSelectedBlockStyleState:h,isResponsiveEditing:b}=Z(g(P));return{selectedState:h(e),isResponsiveEditing:b()}},[e]);if(!i||s!=="default")return null;let d=Dte((0,j1.getBlockSupport)(o,H1));if(!d.length)return null;let u=uht.filter(g=>d.includes(g.align)),f=ho(t,a),p=pht(l,a),m=g=>{let h={...f,typography:{...f?.typography,textAlign:g}};r({style:Vr(t,a,h)})};return(0,Lte.jsx)(Jo,{group:p,children:(0,Lte.jsx)(w9,{value:f?.typography?.textAlign,onChange:m,alignmentControls:u})})}var sV={edit:mht,useBlockProps:ght,addSaveProps:hht,attributeKeys:["style"],hasSupport(e){return(0,j1.hasBlockSupport)(e,H1,!1)}};function ght({name:e,style:t}){if(!t?.typography?.textAlign||!Dte((0,j1.getBlockSupport)(e,H1)).length||Qt(e,ba,"textAlign"))return null;let r=t.typography.textAlign;return{className:U({[`has-text-align-${r}`]:r})}}function hht(e,t,o){if(!o?.style?.typography?.textAlign)return e;let{textAlign:r}=o.style.typography,n=(0,j1.getBlockSupport)(t,H1);return Dte(n).includes(r)&&!Qt(t,ba,"textAlign")&&(e.className=U(`has-text-align-${r}`,e.className)),e}var Fte=c(To(),1),gb=c(ce(),1),Ey=c(D(),1),zte=c(oe(),1),yI=c(X(),1),aV=c(Q(),1),H8e=c(ue(),1);function bht(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,d=document.createRange();d.selectNodeContents(e);let u=e,f=e.parentElement;if(f){let m=window.getComputedStyle(f);m?.display==="flex"&&(u=f,a+=parseFloat(m.paddingLeft)||0,l+=parseFloat(m.paddingRight)||0)}let p=u.clientHeight;for(;r<=n;){let m=Math.floor((r+n)/2);t(m);let h=d.getBoundingClientRect().width,b=e.scrollWidth<=u.clientWidth&&h<=u.clientWidth-a-l,v=o||e.scrollHeight<=u.clientHeight||e.scrollHeight<=p;u.clientHeight>p&&(p=u.clientHeight),b&&v?(i=m,r=m+1):n=m-1}return d.detach(),i}function L8e(e,t){if(!e)return;t(0);let o=bht(e,t);return t(o),o}var D8e=c(D(),1),V8e=c(X(),1),F8e=c(Q(),1),z8e=c(zo(),1),Vte=c(T(),1);function j8e(){let e=(0,V8e.__)("The text may be too small to read. Consider using a larger container or less text.");return(0,D8e.useEffect)(()=>{(0,z8e.speak)(e)},[e]),(0,Vte.jsx)("div",{className:"block-editor-fit-text-size-warning",children:(0,Vte.jsx)(F8e.Notice,{spokenMessage:null,status:"warning",isDismissible:!1,children:e})})}var _a=c(T(),1),_ht={},vht=12,vm="typography.fitText";function yht(e){return!(0,gb.hasBlockSupport)(e,vm)||e.attributes?.fitText?e:{...e,attributes:{...e.attributes,fitText:{type:"boolean"}}}}function wht({fitText:e,name:t,clientId:o}){let[r,n]=(0,Ey.useState)(null),i=(0,gb.hasBlockSupport)(t,vm),s=eo(o),{blockAttributes:a,parentId:l,blockMode:d}=(0,zte.useSelect)(f=>{if(!o||!i||!e)return _ht;let p=f(P).getBlockMode(o);return p==="html"?{blockMode:p}:{blockAttributes:f(P).getBlockAttributes(o),parentId:f(P).getBlockRootClientId(o),blockMode:p}},[o,i,e]),u=(0,Ey.useCallback)(()=>{if(!s||!i||!e)return;let f=`fit-text-${o}`,p=s.ownerDocument.getElementById(f);p||(p=s.ownerDocument.createElement("style"),p.id=f,s.ownerDocument.head.appendChild(p));let m=`#block-${o}`,h=L8e(s,b=>{b===0?p.textContent="":p.textContent=`${m} { font-size: ${b}px !important; }`});n(h)},[s,o,i,e]);return(0,Ey.useEffect)(()=>{if(!e||!s||!o||!i||d==="html")return;let f=s,p=f.style.visibility,m=null,g=null,h=null;m=window.requestAnimationFrame(()=>{f.style.visibility="hidden",g=window.requestAnimationFrame(()=>{u(),h=setTimeout(()=>{f.style.visibility=p},10)})});let b;return window.ResizeObserver&&f.parentElement&&(b=new window.ResizeObserver(u),b.observe(f.parentElement),b.observe(f)),()=>{m!==null&&window.cancelAnimationFrame(m),g!==null&&window.cancelAnimationFrame(g),h!==null&&clearTimeout(h),b&&b.disconnect();let v=`fit-text-${o}`,_=f.ownerDocument.getElementById(v);_&&_.remove()}},[e,o,l,u,s,i,d]),(0,Ey.useEffect)(()=>{if(e&&s&&i&&d!=="html"){let f=window.requestAnimationFrame(()=>{s&&u()});return()=>window.cancelAnimationFrame(f)}},[a,e,u,s,i,d]),{fontSize:r}}function xht({clientId:e,fitText:t=!1,setAttributes:o,name:r,fontSize:n,style:i}){let s=(0,zte.useSelect)(a=>{let{hasSelectedBlockStyleState:l}=a(P);return l(e)},[e]);return!(0,gb.hasBlockSupport)(r,vm)||s?null:(0,_a.jsx)(aV.__experimentalToolsPanelItem,{hasValue:()=>t,label:(0,yI.__)("Fit text"),onDeselect:()=>o({fitText:void 0}),resetAllFilter:()=>({fitText:void 0}),panelId:e,children:(0,_a.jsx)(aV.ToggleControl,{label:(0,yI.__)("Fit text"),checked:t,onChange:()=>{let a=!t||void 0,l={fitText:a};a&&(n&&(l.fontSize=void 0),i?.typography?.fontSize&&(l.style={...i,typography:{...i?.typography,fontSize:void 0}})),o(l)},help:t?(0,yI.__)("Text will resize to fit its container."):(0,yI.__)("The text will resize to fit its container, resetting other font size settings.")})})}function kht(e,t,o){if(!(0,gb.hasBlockSupport)(t,vm))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 Sht({name:e,fitText:t}){return t&&(0,gb.hasBlockSupport)(e,vm)?{className:"has-fit-text"}:{}}(0,Fte.addFilter)("blocks.registerBlockType","core/fit-text/addAttribute",yht);var Cht=e=>(0,gb.hasBlockSupport)(e,vm);function Eht({fitText:e,name:t,clientId:o,isSelected:r}){let{fontSize:n}=wht({fitText:e,name:t,clientId:o});return r&&n&&n<vht?(0,_a.jsx)(je,{group:"typography",children:(0,_a.jsx)(j8e,{})}):null}var Tht=(0,H8e.createHigherOrderComponent)(e=>function(o){let{name:r,attributes:n,clientId:i,isSelected:s,setAttributes:a}=o,{fitText:l}=n;return(0,gb.hasBlockSupport)(r,vm)?(0,_a.jsxs)(_a.Fragment,{children:[(0,_a.jsx)(e,{...o}),(0,_a.jsx)(je,{group:"typography",children:(0,_a.jsx)(xht,{clientId:i,fitText:l,setAttributes:a,name:r,fontSize:n.fontSize,style:n.style})}),l&&(0,_a.jsx)(Eht,{fitText:l,name:r,clientId:i,isSelected:s})]}):(0,_a.jsx)(e,{...o})},"addFitTextControl");(0,Fte.addFilter)("editor.BlockEdit","core/fit-text/add-fit-text-control",Tht);var lV={useBlockProps:Sht,addSaveProps:kht,attributeKeys:["fitText","fontSize","style"],hasSupport:Cht,edit:()=>null};var jte=c(T(),1);function U8e(e,t){return Object.fromEntries(Object.entries(e).filter(([o])=>!t.includes(o)))}var Rht="typography.__experimentalLetterSpacing",Iht="typography.__experimentalTextTransform",Pht="typography.__experimentalTextDecoration",Bht="typography.textIndent",Oht="typography.textColumns",Mht="typography.__experimentalFontStyle",Aht="typography.__experimentalFontWeight",Nht="typography.textShadow",Lht="typography.__experimentalWritingMode",ba="typography",$8e=[T8e,Cy,Mht,Aht,vI,H1,Oht,Pht,Bht,Lht,Iht,Rht,Nht,vm];function Y8e(e){let t={...U8e(e,["fontFamily"])},o=e?.typography?.fontSize,r=e?.typography?.fontFamily,n=e?.color?.text,i=e?.typography?.textShadow,s=typeof o=="string"&&o?.startsWith("var:preset|font-size|")?o.substring(21):void 0,a=r?.startsWith("var:preset|font-family|")?r.substring(23):void 0,l=qo(n,"color"),d=typeof i=="string"&&i?.startsWith("var:preset|text-shadow|")?i.substring(23):void 0;return t.typography={...U8e(t.typography,["fontFamily"]),fontSize:s?void 0:o,textShadow:d?void 0:i},t.color={...t.color,text:l?void 0:n},{style:Qe(t),fontFamily:a,fontSize:s,textColor:l,textShadow:d}}function K8e(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,textShadow:e.textShadow?"var:preset|text-shadow|"+e.textShadow:e.style?.typography?.textShadow},color:{...e.style?.color,text:e.textColor?"var:preset|color|"+e.textColor:e.style?.color?.text}}}function Dht({children:e,resetAllFilter:t}){let o=(0,cV.useCallback)(r=>{let n=K8e(r),i=t(n);return{...r,...Y8e(i)}},[t]);return(0,jte.jsx)(je,{group:"typography",resetAllFilter:o,children:e})}function dV({clientId:e,name:t,setAttributes:o,settings:r,asWrapper:n}){let i=Jl(),s=tV(r),{style:a,fontFamily:l,fontSize:d,fitText:u,textColor:f,textShadow:p,className:m}=(0,W8e.useSelect)(S=>{if(!s)return{};let{style:R,fontFamily:E,fontSize:I,textShadow:B,fitText:O,textColor:M,className:N}=S(P).getBlockAttributes(e)||{};return{style:R,fontFamily:E,fontSize:I,fitText:O,textColor:M,textShadow:B,className:N}},[e,s]),g=!$n(i),{value:h}=vc(t,m,i),b=(0,cV.useMemo)(()=>g?ho(a,i):K8e({style:a,fontFamily:l,fontSize:d,textColor:f,textShadow:p}),[g,i,a,d,l,f,p]),v=g?S=>{o({style:Vr(a,i,S)})}:S=>{let R=Y8e(S);(R.fontSize||R.style?.typography?.fontSize)&&u&&(R.fitText=void 0),o(R)},_=!b?.color?.gradient&&!!b?.color?.text&&r?.color?.text&&(0,wI.getBlockSupport)(t,["color","enableContrastChecker"])!==!1,y=L1({clientId:e,name:t,enabled:!!_,checkLinkColor:!1,messageOverride:(0,G8e.__)("This color has poor contrast against the background. Consider increasing contrast.")});if(!s)return null;let w=(0,wI.getBlockSupport)(t,[ba,"__experimentalDefaultControls"]),x=(0,wI.getBlockSupport)(t,["color","__experimentalDefaultControls"]),k={...w,textColor:x?.text};return(0,jte.jsx)(oV,{as:n||Dht,panelId:e,settings:r,value:b,onChange:v,defaultControls:k,contrastWarning:y,inheritedValue:h})}var fr=c(T(),1);function Ute({blockName:e,clientId:t,contentClientIds:o}){let r=uf(e),{updateBlockAttributes:n}=(0,uV.useDispatch)(P),{hasButtons:i,hasHeading:s}=(0,uV.useSelect)(u=>{let f=u(P).getBlockNamesByClientId(o);return{hasButtons:f.includes("core/buttons"),hasHeading:f.includes("core/heading")}},[o]),a=u=>{n(t,u)},l=(0,Hte.useMemo)(()=>({...r,typography:{}}),[r]),d=(0,Hte.useMemo)(()=>({...r,background:{...r.background,backgroundImage:!1,backgroundSize:!1}}),[r]);return(0,fr.jsxs)(fr.Fragment,{children:[(0,fr.jsx)(dV,{clientId:t,name:e,settings:l,setAttributes:a,asWrapper:Ote}),(0,fr.jsx)(YD,{clientId:t,name:e,settings:d,setAttributes:a,asWrapper:wte}),(0,fr.jsx)(ZD,{clientId:t,name:e,settings:r,setAttributes:a,asWrapper:gte,label:(0,ym.__)("Elements"),defaultControls:{button:i,heading:s}})]})}var Vht=({blockName:e,clientId:t,hasBlockStyles:o,isSectionBlock:r,contentClientIds:n})=>(0,fr.jsxs)(fr.Fragment,{children:[o&&(0,fr.jsx)(Qk,{clientId:t}),r&&e!=="core/template-part"&&(0,fr.jsx)(Ute,{blockName:e,clientId:t,contentClientIds:n}),(!r||e==="core/template-part")&&(0,fr.jsxs)(fr.Fragment,{children:[(0,fr.jsx)(je.Slot,{group:"typography",label:(0,ym.__)("Typography")}),(0,fr.jsx)(je.Slot,{group:"color",label:(0,ym.__)("Color"),className:"color-block-support-panel__inner-wrapper"}),(0,fr.jsx)(je.Slot,{group:"background",label:(0,ym.__)("Background"),className:"background-block-support-panel__inner-wrapper"}),(0,fr.jsx)(je.Slot,{group:"filter"}),(0,fr.jsx)(je.Slot,{group:"layout",label:(0,ym.__)("Layout")}),(0,fr.jsx)(je.Slot,{group:"dimensions",label:(0,ym.__)("Dimensions")}),(0,fr.jsx)(je.Slot,{group:"border",label:(0,ym.__)("Borders")}),(0,fr.jsx)(je.Slot,{group:"elements",label:(0,ym.__)("Elements"),className:"elements-block-support-panel__inner-wrapper"}),(0,fr.jsx)(aI,{}),(0,fr.jsx)(je.Slot,{group:"styles"})]})]}),q8e=Vht;var Q8e=c(Q(),1),J8e=c(X(),1);var X8e=c(ce(),1),fV=c(oe(),1),sl=c(Q(),1);var Z8e=c(D(),1),U1=c(ue(),1);var kc=c(T(),1);function pV({clientIds:e,onSelect:t,onSwitchToListView:o,hasListViewTab:r}){return e.length?(0,kc.jsx)(sl.__experimentalVStack,{spacing:1,children:e.map(n=>(0,kc.jsx)(Fht,{onSelect:t,onSwitchToListView:o,hasListViewTab:r,clientId:n},n))}):null}function Fht({clientId:e,onSelect:t,onSwitchToListView:o,hasListViewTab:r}){let n=yi(e),{isSelected:i,childBlocks:s,shouldRenderListView:a,blockName:l}=(0,fV.useSelect)(w=>{let{isBlockSelected:x,hasSelectedInnerBlock:k,getBlockOrder:C,getBlockName:S,shouldRenderBlockListView:R}=Z(w(P)),E=S(e);return{isSelected:x(e)||k(e,!0),childBlocks:C(e),shouldRenderListView:R(e),blockName:E}},[e]),d=(0,X8e.getBlockType)(l),f=xs({clientId:e,context:"list-view"})||d?.title||l,{selectBlock:p,toggleBlockHighlight:m}=(0,fV.useDispatch)(P),g=(0,U1.useDebounce)(m,50),h=(0,U1.useEvent)(()=>g(e,!0)),b=(0,U1.useEvent)(()=>g(e,!1)),v=(0,U1.useEvent)(()=>m(e,!1));(0,Z8e.useEffect)(()=>()=>v(),[v]);let y=s&&s.length>0&&r&&a;return(0,kc.jsx)(sl.Button,{__next40pxDefaultSize:!0,className:"block-editor-block-quick-navigation__item",isPressed:i,onMouseEnter:h,onMouseLeave:b,onFocus:h,onBlur:b,onClick:async()=>{await p(e),y&&o&&o(e),t&&t(e)},children:(0,kc.jsxs)(sl.Flex,{children:[(0,kc.jsx)(sl.FlexItem,{children:(0,kc.jsx)($t,{icon:n?.icon})}),(0,kc.jsx)(sl.FlexBlock,{style:{textAlign:"left"},children:(0,kc.jsx)(sl.__experimentalTruncate,{children:f})}),y&&(0,kc.jsx)(sl.FlexItem,{children:(0,kc.jsx)(St,{icon:yr,size:24})})]})})}var Wte=c(T(),1),zht=({contentClientIds:e,onSwitchToListView:t,hasListViewTab:o})=>!e||e.length===0?null:(0,Wte.jsx)(Q8e.PanelBody,{title:(0,J8e.__)("Content"),children:(0,Wte.jsx)(pV,{clientIds:e,onSwitchToListView:t,hasListViewTab:o})}),mV=zht;var ln=c(T(),1),{Tabs:hb}=Z(gV.privateApis);function Gte({blockName:e,clientId:t,hasBlockStyles:o,tabs:r,isSectionBlock:n,contentClientIds:i}){let s=(0,Ld.useRef)(null),a=(0,W1.useSelect)(w=>w(eMe.store).get("core","showIconLabels"),[]),{requestedTab:l}=(0,W1.useSelect)(w=>({requestedTab:Z(w(P)).getRequestedInspectorTab()})),[d,u]=(0,Ld.useState)(()=>l?.tabName??r[0]?.name),f=(0,Ld.useRef)(!1),p=(0,Ld.useRef)(!1),{__unstableSetOpenListViewPanel:m,__unstableIncrementListViewExpandRevision:g,__unstableSetAllListViewPanelsOpen:h}=(0,W1.useDispatch)(P),{clearRequestedInspectorTab:b}=Z((0,W1.useDispatch)(P));(0,Ld.useEffect)(()=>{f.current=!1},[t]),(0,Ld.useEffect)(()=>{l&&(u(l.tabName),l.tabName===pm.name&&l.options?.openPanel&&(m(l.options.openPanel),g()),p.current=!0,f.current=!0,b())},[l,m,g,b]),(0,Ld.useEffect)(()=>{d===pm.name&&!f.current&&(h(),g())},[t,d,h,g]),(0,Ld.useEffect)(()=>{if(!r?.length||f.current&&r.some(x=>x.name===d))return;let w=r[0]?.name;d!==w&&u(w)},[r,d]);let v=w=>{u(w),f.current=!0,w===pm.name&&!p.current&&(h(),g()),p.current=!1},_=r.some(w=>w.name===pm.name),y=w=>{_&&(m(w),g(),p.current=!0,v(pm.name))};return(0,ln.jsx)("div",{className:"block-editor-block-inspector__tabs",children:(0,ln.jsxs)(hb,{selectedTabId:d,onSelect:v,children:[(0,ln.jsx)(hb.TabList,{children:r.map(w=>a?(0,ln.jsx)(hb.Tab,{tabId:w.name,children:w.title},w.name):(0,ln.jsxs)(uo.Root,{children:[(0,ln.jsx)(hb.Tab,{tabId:w.name,"aria-label":w.title,render:(0,ln.jsx)(uo.Trigger,{}),children:(0,ln.jsx)(gV.Icon,{icon:w.icon})}),(0,ln.jsx)(uo.Popup,{children:w.title})]},w.name))}),(0,ln.jsxs)(hb.TabPanel,{tabId:MD.name,focusable:!1,children:[(0,ln.jsx)(mV,{contentClientIds:i,onSwitchToListView:y,hasListViewTab:_}),(0,ln.jsx)(je.Slot,{group:"content"})]}),(0,ln.jsxs)(hb.TabPanel,{tabId:pm.name,focusable:!1,children:[(0,ln.jsx)(je.Slot,{group:"list",ref:s}),(0,ln.jsx)(wA,{listViewRef:s})]}),(0,ln.jsx)(hb.TabPanel,{tabId:BD.name,focusable:!1,children:(0,ln.jsx)(EOe,{showAdvancedControls:!!e})}),(0,ln.jsx)(hb.TabPanel,{tabId:OD.name,focusable:!1,children:(0,ln.jsx)(q8e,{blockName:e,clientId:t,hasBlockStyles:o,isSectionBlock:n,contentClientIds:i})})]},t)})}var va=c(Q(),1),tMe=c(oe(),1);var jht=[];function Hht(e,t={}){return t[e]!==void 0?t[e]:t.default!==void 0?t.default:!0}function oMe(e,t,o,r){let n=[],{bindings:i,border:s,color:a,content:l,default:d,layout:u,dimensions:f,list:p,position:m,styles:g,typography:h,effects:b}=bd,v=(0,va.__experimentalUseSlotFills)(p.name),_=!!v&&v.length,y=(0,va.__experimentalUseSlotFills)(l.name),w=!!y&&y.length,k=[...(0,va.__experimentalUseSlotFills)(s.name)||[],...(0,va.__experimentalUseSlotFills)(a.name)||[],...(0,va.__experimentalUseSlotFills)(u.name)||[],...(0,va.__experimentalUseSlotFills)(m.name)||[],...(0,va.__experimentalUseSlotFills)(f.name)||[],...(0,va.__experimentalUseSlotFills)(g.name)||[],...(0,va.__experimentalUseSlotFills)(h.name)||[],...(0,va.__experimentalUseSlotFills)(b.name)||[]].length,C=[...(0,va.__experimentalUseSlotFills)(Oh.slotName)||[],...(0,va.__experimentalUseSlotFills)(i.name)||[]],S=[...(0,va.__experimentalUseSlotFills)(d.name)||[],..._&&k>1?C:[]],R=w||t?.length;R&&n.push(MD),_&&n.push(pm),(S.length||C.length&&(R||_))&&n.push(BD);let{tabSettings:E,isPreviewMode:I}=(0,tMe.useSelect)(O=>{let M=O(P).getSettings();return{tabSettings:M.blockInspectorTabs,isPreviewMode:M.isPreviewMode}},[]);return!I&&(r||k)&&n.push(OD),Hht(e,E)?n:jht}var rMe=c(Q(),1);var $te=c(T(),1),{Fill:Uht,Slot:Wht}=(0,rMe.createSlotFill)(Symbol("InspectorControlsLastItem")),nMe=e=>Mt()[tu]?(0,$te.jsx)(Uht,{...e}):null;nMe.Slot=function(t){return(0,$te.jsx)(Wht,{...t})};var hV=nMe;var iMe=c(oe(),1);function sMe(e){return(0,iMe.useSelect)(t=>{if(e){let o=t(P).getSettings().blockInspectorAnimation,r=o?.animationParent,{getSelectedBlockClientId:n,getBlockParentsByBlockName:i}=t(P),s=n();return!i(s,r,!0)[0]&&e.name!==r?null:o?.[e.name]}return null},[e])}var vV=c(D(),1);var _b=c(X(),1);var ff=c(X(),1);var bb=c(Q(),1);var Dd=c(T(),1);function bV({viewportStates:e=[],pseudoStates:t=[],viewportValue:o="default",pseudoStateValue:r="default",onChangeViewport:n,onChangePseudoState:i,showText:s=!0,popoverProps:a={},children:l}){if(!e.length&&!t.length)return null;let d=[{label:(0,ff.__)("Default"),value:"default"},...e.map(_=>({label:_.label,value:_.value}))],u=[{label:(0,ff.__)("Default"),value:"default"},...t.map(_=>({label:_.label,value:_.value}))],f=e.length>0,p=t.length>0,m=(0,ff.__)("States"),g=[];if(f&&o!=="default"){let _=d.find(y=>y.value===o);_&&g.push({key:`viewport-${_.value}`,label:_.label})}if(p&&r!=="default"){let _=u.find(y=>y.value===r);_&&g.push({key:`pseudo-${_.value}`,label:_.label})}let h=g.length?g.map(_=>_.label).join(", "):(0,ff.__)("Default"),b=s?Tn:Hc,v=s?{size:"compact",iconPosition:"right"}:{size:"small"};return(0,Dd.jsx)(De,{direction:"column",gap:"sm",align:"flex-end",className:"block-editor-global-styles-state-control",children:(0,Dd.jsx)(bb.DropdownMenu,{icon:b,label:s?m:(0,ff.sprintf)((0,ff.__)("State: %s"),h),popoverProps:{placement:"right-start",...a},text:s?m:void 0,toggleProps:v,children:({onClose:_})=>(0,Dd.jsxs)(Dd.Fragment,{children:[f&&(0,Dd.jsx)(bb.MenuGroup,{label:(0,ff.__)("Viewport"),children:d.map(y=>(0,Dd.jsx)(bb.MenuItem,{onClick:()=>{n?.(y.value),!p&&!l&&_()},icon:o===y.value?Vn:null,children:y.label},`viewport-${y.value}`))}),p&&(0,Dd.jsx)(bb.MenuGroup,{label:(0,ff.__)("Pseudo state"),children:u.map(y=>(0,Dd.jsx)(bb.MenuItem,{onClick:()=>{i?.(y.value),!f&&!l&&_()},icon:r===y.value?Vn:null,children:y.label},`pseudo-${y.value}`))}),l]})})})}var aMe=c(Q(),1),G1=c(X(),1);var pf=c(T(),1),{Badge:Ght}=Z(aMe.privateApis);function _V({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,tooltipText:(0,G1.sprintf)((0,G1.__)("Style changes apply to the %s viewport."),s.label)}),a&&i.push({key:`pseudo-${a.value}`,label:a.label,tooltipText:(0,G1.sprintf)((0,G1.__)("Style changes apply to the %s state."),a.label)}),(0,pf.jsx)(De,{className:n,direction:"row",justify:"flex-start",gap:"xs",wrap:"wrap",children:i.map(l=>{let d=(0,pf.jsxs)(Ght,{className:"block-editor-global-styles-state-control__badge",children:[l.label,!!l.tooltipText&&(0,pf.jsx)(Et,{render:(0,pf.jsx)("span",{}),children:l.tooltipText})]},l.key);return l.tooltipText?(0,pf.jsxs)(uo.Root,{children:[(0,pf.jsx)(uo.Trigger,{render:(0,pf.jsx)("span",{className:"block-editor-global-styles-state-control__badge-tooltip-trigger",children:d})}),(0,pf.jsx)(uo.Popup,{children:l.tooltipText})]},l.key):d})})}var Kte=c(T(),1),{getViewportBreakpoints:$ht}=Z(Ro),lMe={":hover":(0,_b._x)("Hover","Name for the CSS pseudo-class selector"),":focus":(0,_b._x)("Focus","Name for the CSS pseudo-class selector"),":focus-visible":(0,_b._x)("Focus-visible","Name for the CSS pseudo-class selector"),":active":(0,_b._x)("Active","Name for the CSS pseudo-class selector")},Yht={"@tablet":(0,_b.__)("Tablet"),"@mobile":(0,_b.__)("Mobile")};function Kht(e){let t=$ht(e);return Object.entries(Yht).filter(([o])=>(o!=="@tablet"||t.tablet!==void 0)&&(o!=="@mobile"||t.mobile!==void 0)).map(([o,r])=>({value:o,label:r}))}var yV={"core/button":[":hover",":focus",":focus-visible",":active"],"core/navigation-link":[":hover",":focus",":focus-visible",":active"]};function cMe(e){return(yV[e]??[]).filter(o=>lMe[o]).map(o=>({value:o,label:lMe[o]}))}var Yte="default",qht=[];function dMe({name:e,value:t,onChange:o,children:r}){let n=(0,vV.useMemo)(()=>cMe(e),[e]),i=Fr();return n.length?(0,Kte.jsx)(bV,{pseudoStates:n,pseudoStateValue:t?.pseudo??Yte,onChangePseudoState:s=>o({pseudo:s}),popoverProps:i.popoverProps,showText:!1,children:r}):null}function uMe({name:e,value:t,isResponsiveEditing:o}){let r=(0,vV.useMemo)(()=>cMe(e),[e]),[n]=Fe("viewport"),i=(0,vV.useMemo)(()=>Kht(n),[n]);return!r.length&&!o?null:(0,Kte.jsx)(_V,{viewportStates:o?i:qht,pseudoStates:r,viewportValue:t?.viewport??Yte,pseudoStateValue:t?.pseudo??Yte})}var Ue=c(T(),1);function pMe({showAdvancedControls:e=!0,showPositionControls:t=!0,showBindingsControls:o=!0}){return(0,Ue.jsxs)(Ue.Fragment,{children:[(0,Ue.jsx)(je.Slot,{}),(0,Ue.jsx)(je.Slot,{group:"typography",label:(0,ei.__)("Typography")}),(0,Ue.jsx)(je.Slot,{group:"color",label:(0,ei.__)("Color"),className:"color-block-support-panel__inner-wrapper"}),(0,Ue.jsx)(je.Slot,{group:"background",label:(0,ei.__)("Background"),className:"background-block-support-panel__inner-wrapper"}),(0,Ue.jsx)(je.Slot,{group:"layout",label:(0,ei.__)("Layout")}),(0,Ue.jsx)(je.Slot,{group:"dimensions",label:(0,ei.__)("Dimensions")}),(0,Ue.jsx)(je.Slot,{group:"border",label:(0,ei.__)("Borders")}),(0,Ue.jsx)(je.Slot,{group:"elements",label:(0,ei.__)("Elements"),className:"elements-block-support-panel__inner-wrapper"}),t&&(0,Ue.jsx)(aI,{}),(0,Ue.jsx)(je.Slot,{group:"styles"}),o&&(0,Ue.jsx)(je.Slot,{group:"bindings"}),e&&(0,Ue.jsx)("div",{children:(0,Ue.jsx)(AD,{})})]})}function Xht({blockName:e,clientId:t,contentClientIds:o,isSectionBlock:r,selectedBlockStyleState:n}){let i=vi(n)&&!Ya(n),s=r&&e!=="core/template-part";return(0,Ue.jsxs)(Ue.Fragment,{children:[s&&(0,Ue.jsx)(bA,{value:n,children:(0,Ue.jsx)(Ute,{blockName:e,clientId:t,contentClientIds:o})}),!s&&(0,Ue.jsxs)(Ue.Fragment,{children:[(0,Ue.jsx)(je.Slot,{group:"typography",label:(0,ei.__)("Typography")}),(0,Ue.jsx)(je.Slot,{group:"color",label:(0,ei.__)("Color"),className:"color-block-support-panel__inner-wrapper"}),(0,Ue.jsx)(je.Slot,{group:"background",label:(0,ei.__)("Background"),className:"background-block-support-panel__inner-wrapper"}),i&&(0,Ue.jsx)(je.Slot,{group:"layout",label:(0,ei.__)("Layout")}),(0,Ue.jsx)(je.Slot,{group:"dimensions",label:(0,ei.__)("Dimensions")}),(0,Ue.jsx)(je.Slot,{group:"border",label:(0,ei.__)("Borders")}),(0,Ue.jsx)(je.Slot,{group:"elements",label:(0,ei.__)("Elements"),className:"elements-block-support-panel__inner-wrapper"}),i&&(0,Ue.jsx)(aI,{})]}),i&&(0,Ue.jsx)(je.Slot,{group:"viewport"})]})}function Zht(){let{selectedBlockCount:e,renderedBlockName:t,renderedBlockClientId:o,blockType:r,isSectionBlock:n,isSectionBlockInSelection:i,hasBlockStyles:s,editedContentOnlySection:a,blockEditingMode:l,selectedBlockStyleState:d,showStateOnCanvas:u,isResponsiveEditing:f,blockStatesEditingEnabled:p}=(0,xI.useSelect)(x=>{let{getSettings:k,getSelectedBlockClientId:C,getSelectedBlockClientIds:S,getSelectedBlockCount:R,getBlockName:E,getParentSectionBlock:I,isSectionBlock:B,getEditedContentOnlySection:O,isWithinEditedContentOnlySection:M,getBlockEditingMode:N,getSelectedBlockStyleState:j,isSelectedBlockStyleStateShownOnCanvas:V,isResponsiveEditing:A}=Z(x(P)),{getBlockStyles:L}=x($1.store),z=C(),G=M(z)?z:I(z)||z,$=G&&E(G),K=$&&(0,$1.getBlockType)($),H=S().some(Y=>B(Y)),J=$&&L($),W=J&&J.length>0;return{selectedBlockCount:R(),renderedBlockClientId:G,renderedBlockName:$,blockType:K,isSectionBlockInSelection:H,isSectionBlock:B(G),hasBlockStyles:W,editedContentOnlySection:O(),blockEditingMode:N(G),selectedBlockStyleState:j(G),showStateOnCanvas:V(G),isResponsiveEditing:A(),blockStatesEditingEnabled:k().blockStatesEditingEnabled}},[]),m=(0,xI.useSelect)(x=>{if(!n||!o)return[];let{getClientIdsOfDescendants:k,getBlockEditingMode:C,shouldRenderBlockListView:S}=Z(x(P)),R=k(o),E=new Set;return R.forEach(I=>{S(I)&&k(I).forEach(O=>E.add(O))}),R.filter(I=>!E.has(I)&&C(I)==="contentOnly")},[n,o]),g=oMe(r?.name,m,n,s),h=g?.length>1,b=sMe(r),v=e>1,_=!$n(d);if(v&&!i)return(0,Ue.jsxs)("div",{className:"block-editor-block-inspector",children:[(0,Ue.jsx)(lte,{}),h?(0,Ue.jsx)(Gte,{tabs:g}):(0,Ue.jsx)(pMe,{showAdvancedControls:!1,showPositionControls:!1,showBindingsControls:!1})]});if(v&&i)return(0,Ue.jsx)("div",{className:"block-editor-block-inspector",children:(0,Ue.jsx)(lte,{})});let y=t===(0,$1.getUnregisteredTypeHandlerName)();return!r||!o||y?(0,Ue.jsx)("span",{className:"block-editor-block-inspector__no-blocks",children:(0,ei.__)("No block selected.")}):(0,Ue.jsx)(Qht,{animate:b,wrapper:x=>(0,Ue.jsx)(Jht,{blockInspectorAnimationSettings:b,renderedBlockClientId:o,children:x}),children:(0,Ue.jsx)(ebt,{renderedBlockClientId:o,blockName:r.name,isSectionBlock:n,availableTabs:g,contentClientIds:m,hasBlockStyles:s,editedContentOnlySection:a,blockEditingMode:l,selectedBlockStyleState:d,showStateOnCanvas:u,isResponsiveEditing:f,blockStatesEditingEnabled:p,isBlockStyleStateSelected:_})})}var Qht=({animate:e,wrapper:t,children:o})=>e?t(o):o,Jht=({blockInspectorAnimationSettings:e,renderedBlockClientId:t,children:o})=>{let r=e&&e.enterDirection==="leftToRight"?-50:50;return(0,Ue.jsx)(Y1.__unstableMotion.div,{animate:{x:0,opacity:1,transition:{ease:"easeInOut",duration:.14}},initial:{x:r,opacity:0},children:o},t)},ebt=({renderedBlockClientId:e,blockName:t,isSectionBlock:o,availableTabs:r,contentClientIds:n,hasBlockStyles:i,editedContentOnlySection:s,blockEditingMode:a,selectedBlockStyleState:l,showStateOnCanvas:d,isResponsiveEditing:u,blockStatesEditingEnabled:f=!0})=>{let p=(0,fMe.useRef)(null),m=r?.length>1,g=vi(l)&&u||Ya(l),h=a==="default"&&g,b=s&&s!==e,v=yi(s),_=yi(e),y=_.isSynced,{setSelectedBlockStyleState:w,setSelectedBlockStyleStateCanvasPreview:x}=Z((0,xI.useDispatch)(P)),k=S=>{w(e,S)},C=S=>{x(e,S)};return(0,Ue.jsxs)("div",{className:"block-editor-block-inspector",children:[b&&(0,Ue.jsx)(m5,{...v,className:v?.isSynced&&"is-synced",parentClientId:s}),(0,Ue.jsx)(m5,{..._,description:h?void 0:_.description,allowParentNavigation:!0,className:y&&"is-synced",isChild:b,clientId:e,controls:a==="default"&&f&&(0,Ue.jsx)(dMe,{name:t,value:l,onChange:k,children:(0,Ue.jsx)(Y1.MenuGroup,{children:(0,Ue.jsx)(Y1.MenuItem,{role:"menuitemcheckbox",isSelected:d,icon:d?Vn:null,disabled:!Ya(l),onClick:()=>C(!d),children:(0,ei.__)("Preview on canvas")})})})}),h&&(0,Ue.jsxs)("div",{className:"block-editor-block-inspector__state-badges",children:[(0,Ue.jsx)(Ct,{variant:"body-sm",className:"block-editor-block-inspector__state-badges-text",children:(0,ei.__)("Editing:")}),(0,Ue.jsx)(uMe,{name:t,value:l,isResponsiveEditing:u})]}),(0,Ue.jsx)(yke,{clientId:e}),(0,Ue.jsx)(hOe,{clientId:e}),!g&&(0,Ue.jsx)(aL,{blockClientId:e}),(0,Ue.jsx)(SOe,{}),g&&(0,Ue.jsx)(Xht,{clientId:e,contentClientIds:n,isSectionBlock:o,selectedBlockStyleState:l}),!g&&m&&(0,Ue.jsx)(Ue.Fragment,{children:(0,Ue.jsx)(Gte,{hasBlockStyles:i,clientId:e,blockName:t,tabs:r,isSectionBlock:o,contentClientIds:n})}),!g&&!m&&(0,Ue.jsxs)(Ue.Fragment,{children:[i&&(0,Ue.jsx)(Qk,{clientId:e}),(0,Ue.jsx)(mV,{contentClientIds:n}),(0,Ue.jsx)(je.Slot,{group:"content"}),(0,Ue.jsx)(je.Slot,{group:"list",ref:p}),(0,Ue.jsx)(wA,{listViewRef:p}),!o&&(0,Ue.jsx)(pMe,{})]}),!g&&(0,Ue.jsx)(hV.Slot,{}),(0,Ue.jsx)(PD,{},"back")]})},mMe=Zht;var qte=c(Gt(),1);var gMe=c(T(),1),hMe=()=>((0,qte.default)("__unstableUseClipboardHandler",{alternative:"BlockCanvas or WritingFlow",since:"6.4",version:"6.7"}),_5());function bMe(e){return(0,qte.default)("CopyHandler",{alternative:"BlockCanvas or WritingFlow",since:"6.4",version:"6.7"}),(0,gMe.jsx)("div",{...e,ref:_5()})}var _Me=c(oe(),1),Xte=c(D(),1);var Zte=c(T(),1),tbt=()=>{};function obt({rootClientId:e,clientId:t,isAppender:o,showInserterHelpPanel:r,showMostUsedBlocks:n=!1,__experimentalInsertionIndex:i,__experimentalInitialTab:s,__experimentalInitialCategory:a,__experimentalFilterValue:l,onPatternCategorySelection:d,onSelect:u=tbt,shouldFocusBlock:f=!1,onClose:p},m){let{destinationRootClientId:g}=(0,_Me.useSelect)(h=>{let{getBlockRootClientId:b}=h(P);return{destinationRootClientId:e||b(t)||void 0}},[t,e]);return(0,Zte.jsx)(SQ,{onSelect:u,rootClientId:g,clientId:t,isAppender:o,showInserterHelpPanel:r,showMostUsedBlocks:n,__experimentalInsertionIndex:i,__experimentalFilterValue:l,onPatternCategorySelection:d,__experimentalInitialTab:s,__experimentalInitialCategory:a,shouldFocusBlock:f,ref:m,onClose:p})}var Qte=(0,Xte.forwardRef)(obt);function rbt(e,t){return(0,Zte.jsx)(Qte,{...e,onPatternCategorySelection:void 0,ref:t})}var vMe=(0,Xte.forwardRef)(rbt);var yMe=c(Gt(),1);function wMe(){return(0,yMe.default)("wp.blockEditor.MultiSelectScrollIntoView",{hint:"This behaviour is now built-in.",since:"5.8"}),null}var xMe=c(ue(),1),kI=c(Ut(),1),vb=c(Mo(),1),kMe=c(T(),1),nbt=window.navigator.userAgent.indexOf("Trident")!==-1,ibt=new Set([vb.UP,vb.DOWN,vb.LEFT,vb.RIGHT]),sbt=.75;function Jte(){return(0,xMe.useRefEffect)(e=>{let{ownerDocument:t}=e,{defaultView:o}=t,r,n,i;function s(){r||(r=o.requestAnimationFrame(()=>{f(),r=null}))}function a(h){n&&o.cancelAnimationFrame(n),n=o.requestAnimationFrame(()=>{l(h),n=null})}function l({keyCode:h}){if(!m())return;let b=(0,kI.computeCaretRect)(o);if(!b)return;if(!i){i=b;return}if(ibt.has(h)){i=b;return}let v=b.top-i.top;if(v===0)return;let _=(0,kI.getScrollContainer)(e);if(!_)return;let y=_===t.body||_===t.documentElement,w=y?o.scrollY:_.scrollTop,x=y?0:_.getBoundingClientRect().top,k=y?i.top/o.innerHeight:(i.top-x)/(o.innerHeight-x);if(w===0&&k<sbt&&g()){i=b;return}let C=y?o.innerHeight:_.clientHeight;if(i.top+i.height>x+C||i.top<x){i=b;return}y?o.scrollBy(0,v):_.scrollTop+=v}function d(){t.addEventListener("selectionchange",u)}function u(){t.removeEventListener("selectionchange",u),f()}function f(){m()&&(i=(0,kI.computeCaretRect)(o))}function p(){let{activeElement:h}=t;if(!h)return null;if(!h.isContentEditable||!h.contains(e))return h;let{anchorNode:b}=o.getSelection();return b?(b.nodeType===b.ELEMENT_NODE?b:b.parentElement)?.closest('[contenteditable="true"]')??null:null}function m(){let h=p();return!!h&&e.contains(h)&&h.isContentEditable}function g(){let h=e.querySelectorAll('[contenteditable="true"]');return h[h.length-1]===p()}return o.addEventListener("scroll",s,!0),o.addEventListener("resize",s,!0),e.addEventListener("keydown",a),e.addEventListener("keyup",l),e.addEventListener("mousedown",d),e.addEventListener("touchstart",d),()=>{o.removeEventListener("scroll",s,!0),o.removeEventListener("resize",s,!0),e.removeEventListener("keydown",a),e.removeEventListener("keyup",l),e.removeEventListener("mousedown",d),e.removeEventListener("touchstart",d),t.removeEventListener("selectionchange",u),o.cancelAnimationFrame(r),o.cancelAnimationFrame(n)}},[])}function abt({children:e}){return(0,kMe.jsx)("div",{ref:Jte(),className:"block-editor__typewriter",children:e})}var lbt=nbt?e=>e.children:abt,SMe=lbt;var Ty=c(D(),1),eoe=c(Gt(),1);var toe=c(T(),1),wV=(0,Ty.createContext)({});wV.displayName="RenderedRefsContext";function cbt(e,t,o){let r={...e,[t]:e[t]?new Set(e[t]):new Set};return r[t].add(o),r}function ooe({children:e,uniqueId:t,blockName:o=""}){let r=(0,Ty.useContext)(wV),{name:n}=Mt();o=o||n;let i=(0,Ty.useMemo)(()=>cbt(r,o,t),[r,o,t]);return(0,toe.jsx)(wV.Provider,{value:i,children:e})}function roe(e,t=""){let o=(0,Ty.useContext)(wV),{name:r}=Mt();return t=t||r,!!o[t]?.has(e)}var CMe=e=>((0,eoe.default)("wp.blockEditor.__experimentalRecursionProvider",{since:"6.5",alternative:"wp.blockEditor.RecursionProvider"}),(0,toe.jsx)(ooe,{...e})),EMe=(...e)=>((0,eoe.default)("wp.blockEditor.__experimentalUseHasRecursion",{since:"6.5",alternative:"wp.blockEditor.useHasRecursion"}),roe(...e));var kV=c(Q(),1),noe=c(X(),1),ioe=c(D(),1),RMe=c(lc(),1);var wm=c(Q(),1);var TMe=c(X(),1);var mf=c(T(),1);function xV({title:e,help:t,actions:o=[],onClose:r}){return(0,mf.jsxs)(wm.__experimentalVStack,{className:"block-editor-inspector-popover-header",spacing:4,children:[(0,mf.jsxs)(wm.__experimentalHStack,{alignment:"center",children:[(0,mf.jsx)(Ct,{variant:"heading-md",render:(0,mf.jsx)("h2",{}),className:"block-editor-inspector-popover-header__heading",children:e}),(0,mf.jsx)(wm.__experimentalSpacer,{}),o.map(({label:n,icon:i,onClick:s})=>(0,mf.jsx)(wm.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,mf.jsx)(wm.Button,{size:"small",className:"block-editor-inspector-popover-header__action",label:(0,TMe.__)("Close"),icon:Lf,onClick:r})]}),t&&(0,mf.jsx)(Ct,{children:t})]})}var K1=c(T(),1);function dbt({onClose:e,onChange:t,showPopoverHeader:o=!0,showPopoverHeaderActions:r,isCompact:n,currentDate:i,title:s,...a},l){let d={startOfWeek:(0,RMe.getSettings)().l10n.startOfWeek,onChange:t,currentDate:n?void 0:i,currentTime:n?i:void 0,...a},u=n?kV.TimePicker:kV.DateTimePicker;return(0,K1.jsxs)("div",{ref:l,className:"block-editor-publish-date-time-picker",children:[o&&(0,K1.jsx)(xV,{title:s||(0,noe.__)("Publish"),actions:r?[{label:(0,noe.__)("Reset"),onClick:()=>t?.(null)}]:void 0,onClose:e}),(0,K1.jsx)(u,{...d})]})}var soe=(0,ioe.forwardRef)(dbt);function ubt(e,t){return(0,K1.jsx)(soe,{...e,showPopoverHeaderActions:!0,isCompact:!1,ref:t})}var IMe=(0,ioe.forwardRef)(ubt);var PMe=c(Gt(),1),BMe=c(D(),1);function fbt(){return(0,PMe.default)("wp.blockEditor.ToolSelector",{since:"6.9",hint:"The ToolSelector component no longer renders anything."}),null}var OMe=(0,BMe.forwardRef)(fbt);var CI=c(T(),1),Qe=e=>{if(e===null||typeof e!="object"||Array.isArray(e))return e;let t=Object.entries(e).map(([o,r])=>[o,Qe(r)]).filter(([,o])=>o!==void 0);return t.length?Object.fromEntries(t):void 0};function qD(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,d])=>{d&&t[l].forEach(u=>{let f=Uf(s,u);f&&(a={...a,attributes:Ge(a.attributes,u,f)})})}),a}function Qt(e,t,o){let n=(0,MMe.getBlockSupport)(e,t)?.__experimentalSkipSerialization;return Array.isArray(n)?n.includes(o):n}var xm=new WeakMap;function vd({id:e,css:t}){return il({id:e,css:t})}function il({id:e,css:t,assets:o,__unstableType:r,variation:n,clientId:i}={}){let{setStyleOverride:s,deleteStyleOverride:a}=Z((0,SV.useDispatch)(P)),l=(0,SV.useRegistry)(),d=(0,Sc.useId)();(0,Sc.useEffect)(()=>{if(!t&&!o)return;let u=e||d,f={id:e,css:t,assets:o,__unstableType:r,variation:n,clientId:i};return xm.get(l)||xm.set(l,[]),xm.get(l).push([u,f]),window.queueMicrotask(()=>{xm.get(l)?.length&&l.batch(()=>{xm.get(l).forEach(p=>{s(...p)}),xm.set(l,[])})}),()=>{xm.get(l)?.find(([m])=>m===u)?xm.set(l,xm.get(l).filter(([m])=>m!==u)):a(u)}},[e,t,i,o,r,d,s,a,l,n])}function uf(e,t){let[o,r,n,i,s,a,l,d,u,f,p,m,g,h,b,v,_,y,w,x,k,C,S,R,E,I,B,O,M,N,j,V,A,L,z,F,G,$,K,q,H,J,W,Y,ee,re,ne,ie,be,pe,Ee,ye,Oe,we,_e,xe,he,Ze,fe,Ce,de,ae,Re,$e,ct,Pt,at,Be]=Fe("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.textShadow","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","typography.defaultTextShadowPresets","typography.textShadowPresets.custom","typography.textShadowPresets.default","typography.textShadowPresets.theme"),qe=(0,Sc.useMemo)(()=>({background:{backgroundImage:o,backgroundSize:r,gradient:n},color:{palette:{custom:ee,theme:ne,default:ie},gradients:{custom:we,theme:_e,default:xe},duotone:{custom:Ee,theme:ye,default:Oe},defaultGradients:he,defaultPalette:be,defaultDuotone:pe,custom:Y,customGradient:Ze,customDuotone:re,background:fe,link:Ce,heading:ae,button:Re,text:de},typography:{fontFamilies:{custom:i,default:s,theme:a},fontSizes:{custom:d,default:u,theme:f},customFontSize:p,defaultFontSizes:l,fontStyle:m,fontWeight:g,lineHeight:h,textAlign:b,textColumns:v,textDecoration:_,textIndent:y,textShadow:w,textShadowPresets:{custom:Pt,default:at,theme:Be},defaultTextShadowPresets:ct,textTransform:k,letterSpacing:C,writingMode:x},spacing:{spacingSizes:{custom:O,default:M,theme:N},customSpacingSize:B,defaultSpacingSizes:I,padding:S,margin:R,blockGap:E,units:j},border:{color:K,radius:q,style:H,width:J,radiusSizes:W},dimensions:{aspectRatio:V,height:A,minHeight:L,minWidth:z,width:F,dimensionSizes:G},layout:$,parentLayout:t,shadow:$e}),[o,r,n,i,s,a,l,d,u,f,p,m,g,h,b,v,_,y,w,Pt,at,Be,ct,k,C,x,S,R,E,I,B,O,M,N,j,V,A,L,z,F,G,$,t,K,q,H,J,W,Y,ee,re,ne,ie,be,pe,Ee,ye,Oe,we,_e,xe,he,Ze,fe,Ce,de,ae,Re,$e]);return LD(qe,e)}function AMe(e){e=e.map(o=>({...o,Edit:(0,Sc.memo)(o.edit)}));let t=(0,aoe.createHigherOrderComponent)(o=>function(n){let i=Mt();return[...e.map((s,a)=>{let{Edit:l,hasSupport:d,attributeKeys:u=[],shareWithChildBlocks:f,supportsPatternEditing:p}=s;if(!(p&&i[$y]||i[tu]||i[Gy]&&f)||!d(n.name))return null;let g={};for(let h of u)n.attributes[h]&&(g[h]=n.attributes[h]);return(0,CI.jsx)(l,{name:n.name,isSelected:n.isSelected,clientId:n.clientId,setAttributes:n.setAttributes,__unstableParentLayout:n.__unstableParentLayout,...g},a)}),(0,CI.jsx)(o,{...n},"edit")]},"withBlockEditHooks");(0,SI.addFilter)("editor.BlockEdit","core/editor/hooks",t)}function pbt({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,Sc.useEffect)(()=>(i(n),()=>{i(void 0)})),null}var mbt=(0,Sc.memo)(pbt);function NMe(e){let t=(0,aoe.createHigherOrderComponent)(o=>function(n){let[i,s]=(0,Sc.useState)(Array(e.length).fill(void 0));return[...e.map((a,l)=>{let{hasSupport:d,attributeKeys:u=[],useBlockProps:f,isMatch:p}=a,m={};for(let g of u)n.attributes[g]&&(m[g]=n.attributes[g]);return!Object.keys(m).length||!d(n.name)||p&&!p(m)?null:(0,CI.jsx)(mbt,{index:l,useBlockProps:f,setAllWrapperProps:s,name:n.name,clientId:n.clientId,...m},l)}),(0,CI.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,SI.addFilter)("editor.BlockListBlock","core/editor/hooks",t)}function LMe(e){function t(o,r,n){return e.reduce((i,s)=>{let{hasSupport:a,attributeKeys:l=[],addSaveProps:d}=s,u={};for(let f of l)n[f]&&(u[f]=n[f]);return!Object.keys(u).length||!a(r)?i:d(i,r,u)},o)}(0,SI.addFilter)("blocks.getSaveContent.extraProps","core/editor/hooks",t,0),(0,SI.addFilter)("blocks.getSaveContent.extraProps","core/editor/hooks",o=>(o.hasOwnProperty("className")&&!o.className&&delete o.className,o))}var DMe=c(ce(),1),VMe=c(To(),1);function gbt(e){let{apiVersion:t=1}=e;return t<2&&(0,DMe.hasBlockSupport)(e,"lightBlockWrapper",!1)&&(e.apiVersion=2),e}(0,VMe.addFilter)("blocks.registerBlockType","core/compat/migrateLightBlockWrapper",gbt);var FMe=c(To(),1),Cc=c(ce(),1);var loe=c(T(),1),coe=["left","center","right","wide","full"],hbt=["wide","full"];function doe(e,t=!0,o=!0){let r;return Array.isArray(e)?r=coe.filter(n=>e.includes(n)):e===!0?r=[...coe]:r=[],!o||e===!0&&!t?r.filter(n=>!hbt.includes(n)):r}function bbt(e){return"type"in(e.attributes?.align??{})||(0,Cc.hasBlockSupport)(e,"align")&&(e.attributes={...e.attributes,align:{type:"string",enum:[...coe,""]}}),e}function _bt({name:e,align:t,setAttributes:o}){let r=doe((0,Cc.getBlockSupport)(e,"align"),(0,Cc.hasBlockSupport)(e,"alignWide",!0)),{enabled:n}=z9(r),i=Hr();return!n.length||i!=="default"?null:(0,loe.jsx)(Jo,{group:"block",__experimentalShareWithChildBlocks:!0,children:(0,loe.jsx)(j9,{value:t,onChange:a=>{a||(0,Cc.getBlockType)(e)?.attributes?.align?.default&&(a=""),o({align:a})},controls:r})})}var CV={shareWithChildBlocks:!0,edit:_bt,useBlockProps:vbt,addSaveProps:ybt,attributeKeys:["align"],hasSupport(e){return(0,Cc.hasBlockSupport)(e,"align",!1)}};function vbt({name:e,align:t}){let o=doe((0,Cc.getBlockSupport)(e,"align"),(0,Cc.hasBlockSupport)(e,"alignWide",!0));return $ae(o).some(n=>n.name===t)?{"data-align":t}:{}}function ybt(e,t,o){let{align:r}=o,n=(0,Cc.getBlockSupport)(t,"align"),i=(0,Cc.hasBlockSupport)(t,"alignWide",!0);return doe(n,i).includes(r)&&(e.className=U(`align${r}`,e.className)),e}(0,FMe.addFilter)("blocks.registerBlockType","core/editor/align/addAttribute",bbt);var zMe=c(To(),1);function wbt(e){return"type"in(e.attributes?.lock??{})||(e.attributes={...e.attributes,lock:{type:"object"}}),e}(0,zMe.addFilter)("blocks.registerBlockType","core/lock/addAttribute",wbt);var goe=c(To(),1),J1=c(ce(),1);var EI=c(Q(),1),RV=c(X(),1),QMe=c(D(),1),JMe=c(oe(),1),IV=c(ce(),1);var Ec=c(Q(),1),qMe=c(D(),1),Q1=c(X(),1),XMe=c(oe(),1);var poe=c(ce(),1),$Me=c(oe(),1),Z1=c(Q(),1),Vd=c(X(),1),EV=c(D(),1),YMe=c(ue(),1),KMe=c(zo(),1);var uoe=c(D(),1),UMe=c(ue(),1),WMe=c(Q(),1);var jMe=c(Q(),1);var q1=c(T(),1);function xbt({blockTypes:e,value:t,onItemChange:o}){return(0,q1.jsx)("ul",{className:"block-editor-block-manager__checklist",children:e.map(r=>(0,q1.jsxs)("li",{className:"block-editor-block-manager__checklist-item",children:[(0,q1.jsx)(jMe.CheckboxControl,{label:r.title,checked:t.includes(r.name),onChange:(...n)=>o(r,...n)}),(0,q1.jsx)($t,{icon:r.icon})]},r.name))})}var HMe=xbt;var X1=c(T(),1);function GMe({title:e,blockTypes:t,selectedBlockTypes:o,onChange:r}){let n=(0,UMe.useInstanceId)(GMe),i=(0,uoe.useCallback)((f,p)=>{r(p?[...o,f]:o.filter(({name:m})=>m!==f.name))},[o,r]),s=(0,uoe.useCallback)(f=>{r(f?[...o,...t.filter(p=>!o.find(({name:m})=>m===p.name))]:o.filter(p=>!t.find(({name:m})=>m===p.name)))},[t,o,r]);if(!t.length)return null;let a=t.map(({name:f})=>f).filter(f=>(o??[]).some(p=>p.name===f)),l="block-editor-block-manager__category-title-"+n,d=a.length===t.length,u=!d&&a.length>0;return(0,X1.jsxs)("div",{role:"group","aria-labelledby":l,className:"block-editor-block-manager__category",children:[(0,X1.jsx)(WMe.CheckboxControl,{checked:d,onChange:s,className:"block-editor-block-manager__category-title",indeterminate:u,label:(0,X1.jsx)("span",{id:l,children:e})}),(0,X1.jsx)(HMe,{blockTypes:t,value:a,onItemChange:i})]})}var foe=GMe;var km=c(T(),1);function TV({blockTypes:e,selectedBlockTypes:t,onChange:o,showSelectAll:r=!0}){let n=(0,YMe.useDebounce)(KMe.speak,500),[i,s]=(0,EV.useState)(""),{categories:a,isMatchingSearchTerm:l}=(0,$Me.useSelect)(p=>({categories:p(poe.store).getCategories(),isMatchingSearchTerm:p(poe.store).isMatchingSearchTerm}),[]),d=e.filter(p=>!i||l(p,i)),u=t.length>0&&t.length!==e.length,f=e.length>0&&t.length===e.length;return(0,EV.useEffect)(()=>{if(!i)return;let p=d.length,m=(0,Vd.sprintf)((0,Vd._n)("%d result found.","%d results found.",p),p);n(m)},[d?.length,i,n]),(0,km.jsxs)(Z1.__experimentalVStack,{className:"block-editor-block-manager__content",spacing:4,children:[(0,km.jsx)(Z1.SearchControl,{label:(0,Vd.__)("Search for a block"),placeholder:(0,Vd.__)("Search for a block"),value:i,onChange:p=>s(p),className:"block-editor-block-manager__search"}),r&&(0,km.jsx)(Z1.CheckboxControl,{className:"block-editor-block-manager__select-all",label:(0,Vd.__)("Select all"),checked:f,onChange:()=>{o(f?[]:e)},indeterminate:u}),(0,km.jsxs)("div",{tabIndex:"0",role:"region","aria-label":(0,Vd.__)("Available block types"),className:"block-editor-block-manager__results",children:[d.length===0&&(0,km.jsx)("p",{className:"block-editor-block-manager__no-results",children:(0,Vd.__)("No blocks found.")}),a.map(p=>(0,km.jsx)(foe,{title:p.title,blockTypes:d.filter(m=>m.category===p.slug),selectedBlockTypes:t,onChange:o},p.slug)),(0,km.jsx)(foe,{title:(0,Vd.__)("Uncategorized"),blockTypes:d.filter(({category:p})=>!p),selectedBlockTypes:t,onChange:o})]})]})}var Fd=c(T(),1);function ZMe({clientId:e,blockTypes:t,selectedBlockTypes:o,onClose:r}){let[n,i]=(0,qMe.useState)(o),{updateBlockAttributes:s}=(0,XMe.useDispatch)(P),a=()=>{let l=n.length===t.length,d=n.map(({name:u})=>u);s(e,{allowedBlocks:l?void 0:d}),r()};return(0,Fd.jsx)(Ec.Modal,{title:(0,Q1._x)("Manage allowed blocks","modal title"),onRequestClose:r,overlayClassName:"block-editor-block-allowed-blocks-modal",focusOnMount:"firstContentElement",size:"medium",children:(0,Fd.jsxs)(Ec.__experimentalVStack,{as:"form",onSubmit:l=>{l.preventDefault(),a()},spacing:"4",children:[(0,Fd.jsx)(Ct,{children:(0,Q1.__)("Select which blocks can be added inside this container.")}),(0,Fd.jsx)(TV,{blockTypes:t,selectedBlockTypes:n,onChange:l=>{i(l)}}),(0,Fd.jsxs)(Ec.Flex,{className:"block-editor-block-allowed-blocks-modal__actions",justify:"flex-end",expanded:!1,children:[(0,Fd.jsx)(Ec.FlexItem,{children:(0,Fd.jsx)(Ec.Button,{variant:"tertiary",onClick:r,__next40pxDefaultSize:!0,children:(0,Q1.__)("Cancel")})}),(0,Fd.jsx)(Ec.FlexItem,{children:(0,Fd.jsx)(Ec.Button,{variant:"primary",type:"submit",__next40pxDefaultSize:!0,children:(0,Q1.__)("Apply")})})]})]})})}var Ry=c(T(),1);function eAe({clientId:e}){let[t,o]=(0,QMe.useState)(!1),{blockTypes:r,selectedBlockNames:n}=(0,JMe.useSelect)(a=>{let{getBlockAttributes:l}=a(P);return{blockTypes:a(IV.store).getBlockTypes(),selectedBlockNames:l(e)?.allowedBlocks}},[e]),i=r.filter(a=>(0,IV.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,Ry.jsxs)("div",{className:"block-editor-block-allowed-blocks-control",children:[(0,Ry.jsxs)(EI.BaseControl,{help:(0,RV.__)("Specify which blocks are allowed inside this container."),children:[(0,Ry.jsx)(EI.BaseControl.VisualLabel,{children:(0,RV.__)("Allowed Blocks")}),(0,Ry.jsx)(EI.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{o(!0)},className:"block-editor-block-allowed-blocks-control__button",children:(0,RV.__)("Manage allowed blocks")})]}),t&&(0,Ry.jsx)(ZMe,{clientId:e,blockTypes:i,selectedBlockTypes:s,onClose:()=>o(!1)})]})}var moe=c(T(),1);function kbt({clientId:e}){return Hr()==="contentOnly"?null:(0,moe.jsx)(e2.Fill,{children:(0,moe.jsx)(eAe,{clientId:e})})}var tAe={edit:kbt,attributeKeys:["allowedBlocks"],hasSupport(e){return(0,J1.hasBlockSupport)(e,"allowedBlocks")}};function Sbt(e){return e?.attributes?.allowedBlocks?.type||(0,J1.hasBlockSupport)(e,"allowedBlocks")&&(e.attributes={...e.attributes,allowedBlocks:{type:"array"}}),e}(0,goe.addFilter)("blocks.registerBlockType","core/allowedBlocks/attribute",Sbt);function Cbt(e,t,o,r){if(!(0,J1.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,J1.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,goe.addFilter)("blocks.switchToBlockType.transformedBlock","core/allowedBlocks/addTransforms",Cbt);var oAe=c(To(),1),PV=c(Q(),1),TI=c(X(),1),BV=c(ce(),1);var yb=c(T(),1),Ebt=/[\s#]/g;function Tbt(e){return"type"in(e.attributes?.anchor??{})||(0,BV.hasBlockSupport)(e,"anchor")&&(e.attributes={...e.attributes,anchor:{type:"string"}}),e}function Rbt({anchor:e,setAttributes:t}){return Hr()!=="default"?null:(0,yb.jsx)(je,{group:"advanced",children:(0,yb.jsx)(PV.TextControl,{className:"html-anchor-control",label:(0,TI.__)("HTML anchor"),help:(0,yb.jsxs)(yb.Fragment,{children:[(0,TI.__)("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.")," ",(0,yb.jsx)(PV.ExternalLink,{href:(0,TI.__)("https://wordpress.org/documentation/article/page-jumps/"),children:(0,TI.__)("Learn more about anchors")})]}),value:e||"",placeholder:null,onChange:r=>{r=r.replace(Ebt,"-"),t({anchor:r!==""?r:void 0})},autoCapitalize:"none",autoComplete:"off"})})}var hoe={addSaveProps:Ibt,edit:Rbt,attributeKeys:["anchor"],hasSupport(e){return(0,BV.hasBlockSupport)(e,"anchor")}};function Ibt(e,t,o){return(0,BV.hasBlockSupport)(t,"anchor")&&(e.id=o.anchor===""?null:o.anchor),e}(0,oAe.addFilter)("blocks.registerBlockType","core/anchor/attribute",Tbt);var rAe=c(To(),1),OV=c(ce(),1);function Pbt(e){return e?.attributes?.ariaLabel?.type||(0,OV.hasBlockSupport)(e,"ariaLabel")&&(e.attributes={...e.attributes,ariaLabel:{type:"string"}}),e}function Bbt(e,t,o){return(0,OV.hasBlockSupport)(t,"ariaLabel")&&!Qt(t,"ariaLabel","ariaLabel")&&(e["aria-label"]=o.ariaLabel===""?null:o.ariaLabel),e}var nAe={addSaveProps:Bbt,attributeKeys:["ariaLabel"],hasSupport(e){return(0,OV.hasBlockSupport)(e,"ariaLabel")}};(0,rAe.addFilter)("blocks.registerBlockType","core/ariaLabel/attribute",Pbt);var voe=c(To(),1),iAe=c(Q(),1),boe=c(X(),1),RI=c(ce(),1);var _oe=c(T(),1);function Obt(e){return(0,RI.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes={...e.attributes,className:{type:"string"}}),e}function Mbt({className:e,setAttributes:t}){return Hr()!=="default"?null:(0,_oe.jsx)(je,{group:"advanced",children:(0,_oe.jsx)(iAe.TextControl,{autoComplete:"off",label:(0,boe.__)("Additional CSS class(es)"),value:e||"",onChange:r=>{t({className:r!==""?r:void 0})},help:(0,boe.__)("Separate multiple classes with spaces.")})})}var yoe={edit:Mbt,addSaveProps:Abt,attributeKeys:["className"],hasSupport(e){return(0,RI.hasBlockSupport)(e,"customClassName",!0)}};function Abt(e,t,o){return(0,RI.hasBlockSupport)(t,"customClassName",!0)&&o.className&&(e.className=U(e.className,o.className)),e}function Nbt(e,t,o,r){if(!(0,RI.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,voe.addFilter)("blocks.registerBlockType","core/editor/custom-class-name/attribute",Obt);(0,voe.addFilter)("blocks.switchToBlockType.transformedBlock","core/customClassName/addTransforms",Nbt);var sAe=c(To(),1),II=c(ce(),1);function Lbt(e,t){return(0,II.hasBlockSupport)(t,"className",!0)&&(typeof e.className=="string"?e.className=[...new Set([(0,II.getBlockDefaultClassName)(t.name),...e.className.split(" ")])].join(" ").trim():e.className=(0,II.getBlockDefaultClassName)(t.name)),e}(0,sAe.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",Lbt);var Aoe=c(D(),1),iNe=c(To(),1),sNe=c(oe(),1);var jd=c(ce(),1),aNe=c(ue(),1),_f=c(Sw(),1);var MI=c(ce(),1),Toe=c(Q(),1),XV=c(D(),1),UAe=c(To(),1),WAe=c(oe(),1);var Eoe={};ro(Eoe,{AdvancedPanel:()=>KV,BackgroundPanel:()=>GD,BorderPanel:()=>UV,ColorPanel:()=>FD,DimensionsPanel:()=>FV,FiltersPanel:()=>GV,ImageSettingsPanel:()=>VAe,StateControl:()=>bV,StateControlBadges:()=>_V,TypographyPanel:()=>oV,useHasBackgroundPanel:()=>WD,useHasBorderPanel:()=>HV,useHasBorderPanelControls:()=>Soe,useHasColorPanel:()=>VD,useHasDimensionsPanel:()=>VV,useHasFiltersPanel:()=>NAe,useHasImageSettingsPanel:()=>DAe,useHasTypographyPanel:()=>tV,useSettingsForBlockElement:()=>LD});var ir=c(X(),1),Ti=c(Q(),1);var DV=c(D(),1);var wo=c(Q(),1),Pr=c(X(),1),lAe=c(D(),1),MV=c(oe(),1);var aAe=c(oe(),1);function Iy(e,t){let{getBlockOrder:o,getBlockAttributes:r}=(0,aAe.useSelect)(P);return(i,s)=>{let a=(s-1)*t+i-1,l=0;for(let d of o(e)){let{columnStart:u,rowStart:f}=r(d).style?.layout??{};(f-1)*t+u-1<a&&l++}return l}}var pr=c(T(),1),Ei={fit:"fit",grow:"fill",max:"fixed",fixed:"fixedNoShrink"},Dbt=[Ei.max,Ei.fixed];function woe(e){return Dbt.includes(e)}function Vbt(e){let{orientation:t="horizontal"}=e??{};return t==="horizontal"?(0,Pr._x)("Max","Block with maximum width in flex layout"):(0,Pr._x)("Max","Block with maximum height in flex layout")}function Fbt(e,t){let{orientation:o="horizontal"}=t??{};return e===Ei.grow?(0,Pr.__)("Stretch to fill available space."):e===Ei.max&&o==="horizontal"?(0,Pr.__)("Specify a maximum width."):e===Ei.max?(0,Pr.__)("Specify a maximum height."):e===Ei.fixed&&o==="horizontal"?(0,Pr.__)("Specify a fixed width."):e===Ei.fixed?(0,Pr.__)("Specify a fixed height."):(0,Pr.__)("Fit contents.")}function cAe({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,pr.jsx)(zbt,{childLayout:e,onChange:t,parentLayout:o,isShownByDefault:r,panelId:n}):l==="grid"?(0,pr.jsx)(Hbt,{childLayout:e,onChange:t,parentLayout:o,isShownByDefault:r,panelId:n,showGridSpanDefaults:i}):null}function zbt({childLayout:e,onChange:t,parentLayout:o,isShownByDefault:r,panelId:n}){let{selfStretch:i,flexSize:s}=e,{orientation:a="horizontal"}=o??{},l=i||Ei.fit,d=woe(l),u=()=>!!i,f=a==="horizontal"?(0,Pr.__)("Width"):(0,Pr.__)("Height"),[p]=Fe("spacing.units"),m=(0,wo.__experimentalUseCustomUnits)({availableUnits:p||["%","px","em","rem","vh","vw"]}),g=()=>{t({selfStretch:void 0,flexSize:void 0})};return(0,lAe.useEffect)(()=>{woe(i)&&!s&&t({...e,selfStretch:Ei.fit})},[]),(0,pr.jsxs)(wo.__experimentalVStack,{as:wo.__experimentalToolsPanelItem,spacing:2,hasValue:u,label:f,onDeselect:g,isShownByDefault:r,panelId:n,children:[(0,pr.jsxs)(wo.__experimentalToggleGroupControl,{label:jbt(o),value:l,help:Fbt(l,o),onChange:h=>{let b=woe(h)?s:null;t({selfStretch:h,flexSize:b})},isBlock:!0,children:[(0,pr.jsx)(wo.__experimentalToggleGroupControlOption,{value:Ei.fit,label:(0,Pr._x)("Fit","Intrinsic block width in flex layout")},Ei.fit),(0,pr.jsx)(wo.__experimentalToggleGroupControlOption,{value:Ei.grow,label:(0,Pr._x)("Grow","Block with expanding width in flex layout")},Ei.grow),(0,pr.jsx)(wo.__experimentalToggleGroupControlOption,{value:Ei.max,label:Vbt(o)},Ei.max),(0,pr.jsx)(wo.__experimentalToggleGroupControlOption,{value:Ei.fixed,label:(0,Pr._x)("Fixed","Block with fixed width in flex layout")},Ei.fixed)]}),d&&(0,pr.jsx)(wo.__experimentalUnitControl,{units:m,onChange:h=>{t({selfStretch:l,flexSize:h})},value:s,min:0,label:f,hideLabelFromVision:!0})]})}function jbt(e){let{orientation:t="horizontal"}=e??{};return t==="horizontal"?(0,Pr.__)("Width"):(0,Pr.__)("Height")}function Hbt({childLayout:e,onChange:t,parentLayout:o,isShownByDefault:r,panelId:n,showGridSpanDefaults:i}){let{columnStart:s,rowStart:a,columnSpan:l,rowSpan:d}=e,{columnCount:u,rowCount:f}=o??{},p=(0,MV.useSelect)(S=>S(P).getBlockRootClientId(n)),{moveBlocksToPosition:m,__unstableMarkNextChangeAsNotPersistent:g}=(0,MV.useDispatch)(P),h=Iy(p,u||3),b=()=>!!s||!!a,v=()=>!!l||!!d,_=()=>{t({columnStart:void 0,rowStart:void 0})},y=()=>{t({columnSpan:void 0,rowSpan:void 0})},w=u?u-(s??1)+1:void 0,x=window.__experimentalEnableGridInteractivity&&f?f-(a??1)+1:void 0,k=l??(i?1:void 0),C=d??(i?1:void 0);return(0,pr.jsxs)(pr.Fragment,{children:[(0,pr.jsxs)(wo.Flex,{as:wo.__experimentalToolsPanelItem,hasValue:v,label:(0,Pr.__)("Grid span"),onDeselect:y,isShownByDefault:r,panelId:n,children:[(0,pr.jsx)(wo.FlexItem,{style:{width:"50%"},children:(0,pr.jsx)(wo.__experimentalInputControl,{label:(0,Pr.__)("Column span"),type:"number",onChange:S=>{let R=S===""?1:parseInt(S,10),E=w?Math.min(R,w):R;t({columnStart:s,rowStart:a,rowSpan:d,columnSpan:E})},value:k,min:1,max:w})}),(0,pr.jsx)(wo.FlexItem,{style:{width:"50%"},children:(0,pr.jsx)(wo.__experimentalInputControl,{label:(0,Pr.__)("Row span"),type:"number",onChange:S=>{let R=S===""?1:parseInt(S,10),E=x?Math.min(R,x):R;t({columnStart:s,rowStart:a,columnSpan:l,rowSpan:E})},value:C,min:1,max:x})})]}),window.__experimentalEnableGridInteractivity&&(0,pr.jsxs)(wo.Flex,{as:wo.__experimentalToolsPanelItem,hasValue:b,label:(0,Pr.__)("Grid placement"),onDeselect:_,isShownByDefault:!1,panelId:n,children:[(0,pr.jsx)(wo.FlexItem,{style:{width:"50%"},children:(0,pr.jsx)(wo.__experimentalInputControl,{label:(0,Pr.__)("Column"),type:"number",onChange:S=>{let R=S===""?1:parseInt(S,10);t({columnStart:R,rowStart:a,columnSpan:l,rowSpan:d}),g(),m([n],p,p,h(R,a))},value:s??1,min:1,max:u?u-(l??1)+1:void 0})}),(0,pr.jsx)(wo.FlexItem,{style:{width:"50%"},children:(0,pr.jsx)(wo.__experimentalInputControl,{label:(0,Pr.__)("Row"),type:"number",onChange:S=>{let R=S===""?1:parseInt(S,10);t({columnStart:s,rowStart:R,columnSpan:l,rowSpan:d}),g(),m([n],p,p,h(s,R))},value:a??1,min:1,max:f?f-(d??1)+1:void 0})})]})]})}var fAe=c(Q(),1),eS=c(X(),1);function dAe(e){if(typeof e!="string")return null;let t=e.split("/");if(t.length>2)return null;let[o,r="1"]=t,n=Number(o.trim()),i=Number(r.trim());return!Number.isFinite(n)||!Number.isFinite(i)||n<=0||i<=0?null:n/i}function uAe(e,t){let o=t.find(n=>n.value===e);if(o)return o;let r=dAe(e);return r===null?null:t.find(n=>dAe(n.value)===r)??null}var xoe=c(T(),1);function AV({panelId:e,value:t,onChange:o=()=>{},options:r,defaultValue:n="auto",hasValue:i,isShownByDefault:s=!0,className:a,isInherited:l,hasLocalOverride:d}){let[u,f,p]=Fe("dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios"),m=f?.map(({name:_,ratio:y})=>({label:_,value:y})),g=u?.map(({name:_,ratio:y})=>({label:_,value:y})),h=[{label:(0,eS._x)("Original","Aspect ratio option for dimensions control"),value:"auto"},...p?g:[],...m||[],{label:(0,eS._x)("Custom","Aspect ratio option for dimensions control"),value:"custom",disabled:!0,hidden:!0}],b=r??h,v=t==null||t==="auto"?"auto":uAe(t,b)?.value??"custom";return(0,xoe.jsx)(Wt,{className:a,isInherited:l,hasLocalOverride:d,hasValue:i||(()=>v!==n),label:(0,eS.__)("Aspect ratio"),onDeselect:()=>o(void 0),isShownByDefault:s,panelId:e,children:(0,xoe.jsx)(fAe.SelectControl,{label:(0,eS.__)("Aspect ratio"),value:v,options:b,onChange:o})})}var oo=c(T(),1),koe=["horizontal","vertical"];function pAe(e,t){return e?.length===1?!1:t?!(e?.includes("horizontal")&&e?.includes("vertical")&&e?.length===2):!0}function VV(e,t=An){return bAe(e)||_Ae(e)||vAe(e)||yAe(e)||wAe(e)||xAe(e)||kAe(e)||SAe(e)||CAe(e)||EAe(e,t)||TAe(e,t)}function bAe(e){return e?.layout?.contentSize}function _Ae(e){return e?.layout?.wideSize}function vAe(e){return e?.spacing?.padding}function yAe(e){return e?.spacing?.margin}function wAe(e){return e?.spacing?.blockGap}function xAe(e){return e?.dimensions?.height}function kAe(e){return e?.dimensions?.minHeight}function SAe(e){return e?.dimensions?.minWidth}function CAe(e){return e?.dimensions?.width}function EAe(e,t=An){return!Ya(t)&&e?.dimensions?.aspectRatio}function TAe(e,t=An){if(Ya(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 Ubt(e){let{defaultSpacingSizes:t,spacingSizes:o}=e?.spacing||{};return t!==!1&&o?.default?.length>0||o?.theme?.length>0||o?.custom?.length>0}function mAe(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}var Wbt=[void 0,null,""];function It(e){return!Wbt.includes(e)}function NV(e){if(!It(e))return;let[t]=(0,Ti.__experimentalParseQuantityAndUnitFromRawValue)(e);return t}function LV(e){return It(e)&&typeof e=="string"?{top:e,right:e,bottom:e,left:e}:e}function gAe(e){if(!It(e))return;if(typeof e=="string")return e!==""?e:void 0;if(typeof e!="object")return;let o=["top","right","bottom","left"].map(i=>e[i]);if(!o.every(It))return;let n=o[0];return o.every(i=>i===n)?n:void 0}function hAe(e){return It(e)?typeof e=="string"?e!=="":typeof e!="object"?!1:["top","right","bottom","left"].some(t=>It(e[t])):!1}function Gbt(e,t){return It(e)?typeof e=="string"?t?{top:e,right:e,bottom:e,left:e}:{top:e}:{...e,right:e?.left,bottom:e?.top}:e}function $bt({resetAllFilter:e,onChange:t,value:o,panelId:r,children:n}){let i=Fr(),s=()=>{let a=e(o);t(a)};return(0,oo.jsx)(Ti.__experimentalToolsPanel,{label:(0,ir.__)("Dimensions"),resetAll:s,panelId:r,dropdownMenuProps:i,children:n})}var Tc={contentSize:!0,wideSize:!0,padding:!0,margin:!0,blockGap:!0,height:!0,minHeight:!0,minWidth:!0,width:!0,aspectRatio:!0,childLayout:!0};function FV({as:e=$bt,value:t,onChange:o,inheritedValue:r=t,settings:n,panelId:i,defaultControls:s=Tc,onVisualize:a=()=>{},includeLayoutControls:l=!1,allowAxialBlockGap:d=!0,styleState:u=An,showInheritanceLabelIndicators:f=es()}){let{dimensions:p,spacing:m}=n,g=nt=>nt&&typeof nt=="object"?Object.keys(nt).reduce((ni,Lm)=>(ni[Lm]=bl({settings:{dimensions:p,spacing:m}},"",nt[Lm]),ni),{}):bl({settings:{dimensions:p,spacing:m}},"",nt),h=(nt,ni,Lm)=>_c(f&&nt,f&&ni,Lm),b=Ubt(n),v=(0,Ti.__experimentalUseCustomUnits)({availableUnits:n?.spacing?.units||["%","px","em","rem","vw"]}),_=-1/0,[y,w]=(0,DV.useState)(_),x=(0,DV.useCallback)(nt=>({...nt,layout:Qe({...nt?.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:{...nt?.spacing,padding:void 0,margin:void 0,blockGap:void 0},dimensions:{...nt?.dimensions,height:void 0,minHeight:void 0,minWidth:void 0,aspectRatio:void 0,width:void 0}}),[]),k=bAe(n)&&l,C=g(t?.layout?.contentSize),S=g(r?.layout?.contentSize),R=!It(t?.layout?.contentSize)&&It(S),E=nt=>{o(Ge(t,["layout","contentSize"],It(nt)?nt:void 0))},I=()=>It(t?.layout?.contentSize),B=()=>E(void 0),O=_Ae(n)&&l,M=g(t?.layout?.wideSize),N=g(r?.layout?.wideSize),j=!It(t?.layout?.wideSize)&&It(N),V=nt=>{o(Ge(t,["layout","wideSize"],It(nt)?nt:void 0))},A=()=>It(t?.layout?.wideSize),L=()=>V(void 0),z=vAe(n),F=LV(g(r?.spacing?.padding)),G=LV(g(t?.spacing?.padding)),$=It(t?.spacing?.padding)?G:F,K=gAe(F),q=!It(t?.spacing?.padding)&&K!==void 0,H=hAe(F),J=!It(t?.spacing?.padding)&&H,W=Array.isArray(n?.spacing?.padding)?n?.spacing?.padding:n?.spacing?.padding?.sides,Y=W&&W.some(nt=>koe.includes(nt)),ee=nt=>{let ni=mAe(nt,W);o(Ge(t,["spacing","padding"],ni))},re=()=>It(t?.spacing?.padding)&&Object.keys(t?.spacing?.padding).length,ne=()=>ee(void 0),ie=()=>a("padding"),be=yAe(n),pe=LV(g(r?.spacing?.margin)),Ee=LV(g(t?.spacing?.margin)),ye=It(t?.spacing?.margin)?Ee:pe,Oe=gAe(pe),we=!It(t?.spacing?.margin)&&Oe!==void 0,_e=hAe(pe),xe=!It(t?.spacing?.margin)&&_e,he=Array.isArray(n?.spacing?.margin)?n?.spacing?.margin:n?.spacing?.margin?.sides,Ze=he&&he.some(nt=>koe.includes(nt)),fe=nt=>{let ni=mAe(nt,he);o(Ge(t,["spacing","margin"],ni))},Ce=()=>It(t?.spacing?.margin)&&Object.keys(t?.spacing?.margin).length,de=()=>fe(void 0),ae=()=>a("margin"),Re=wAe(n),$e=Array.isArray(n?.spacing?.blockGap)?n?.spacing?.blockGap:n?.spacing?.blockGap?.sides,ct=d&&$e&&$e.some(nt=>koe.includes(nt)),Pt=g(t?.spacing?.blockGap),at=g(r?.spacing?.blockGap),Be=!ct&&typeof Pt=="object"?Pt?.top:Pt,qe=!ct&&typeof at=="object"?at?.top:at,vt=It(t?.spacing?.blockGap)?Pt:at,Vt=Gbt(vt,ct),kt=!It(t?.spacing?.blockGap)&&typeof qe=="string"&&qe!=="",yt=nt=>{o(Ge(t,["spacing","blockGap"],nt))},Ye=nt=>{It(nt)||yt(null),!ct&&nt?.hasOwnProperty("top")?yt(nt.top):yt({top:nt?.top,left:nt?.left})},Se=()=>yt(void 0),Ie=()=>It(t?.spacing?.blockGap),me=kAe(n),Te=g(t?.dimensions?.minHeight),Me=g(r?.dimensions?.minHeight),lt=!It(t?.dimensions?.minHeight)&&It(Me),et=nt=>{let ni=Ge(t,["dimensions","minHeight"],nt);o(Ge(ni,["dimensions","aspectRatio"],void 0))},ao=()=>{et(void 0)},Lo=()=>It(t?.dimensions?.minHeight),$r=xAe(n),xo=g(t?.dimensions?.height),_o=g(r?.dimensions?.height),ht=!It(t?.dimensions?.height)&&It(_o),Ot=nt=>{let ni=Ge(t,["dimensions","height"],nt);o(Ge(ni,["dimensions","aspectRatio"],void 0))},fn=()=>{Ot(void 0)},Ii=()=>It(t?.dimensions?.height),Cn=SAe(n),Pi=g(t?.dimensions?.minWidth),as=g(r?.dimensions?.minWidth),ls=!It(t?.dimensions?.minWidth)&&It(as),ul=nt=>{o(Ge(t,["dimensions","minWidth"],nt))},Ne=()=>{ul(void 0)},ko=()=>It(t?.dimensions?.minWidth),dt=CAe(n),lo=g(t?.dimensions?.width),Mr=g(r?.dimensions?.width),ar=!It(t?.dimensions?.width)&&It(Mr),ri=nt=>{o(Ge(t,["dimensions","width"],nt))},Bf=()=>{ri(void 0)},fl=()=>It(t?.dimensions?.width),Lc=EAe(n,u),IS=g(t?.dimensions?.aspectRatio),Of=g(r?.dimensions?.aspectRatio),Fb=IS??Of,Wy=!It(t?.dimensions?.aspectRatio)&&It(Of),zb=nt=>{let ni=Ge(t,["dimensions","aspectRatio"],nt);o(Ge(ni,["dimensions","minHeight"],void 0))},u3=()=>It(t?.dimensions?.aspectRatio),f3=TAe(n,u),Pz=t?.layout,Bz=nt=>{o({...t,layout:{...t?.layout,...nt}})},Mf=()=>a(!1);return(0,oo.jsxs)(e,{resetAllFilter:x,value:t,onChange:o,panelId:i,children:[(k||O)&&(0,oo.jsx)("span",{className:"span-columns",children:(0,ir.__)("Set the width of the main content area.")}),k&&(0,oo.jsx)(Wt,{...h(R,I()&&S!==void 0),label:(0,ir.__)("Content width"),hasValue:I,onDeselect:B,isShownByDefault:s.contentSize??Tc.contentSize,panelId:i,children:(0,oo.jsx)(Ti.__experimentalUnitControl,{label:(0,ir.__)("Content width"),labelPosition:"top",value:C??S,placeholder:R?NV(S):void 0,onChange:nt=>{E(nt)},units:v,prefix:(0,oo.jsx)(Ti.__experimentalInputControlPrefixWrapper,{variant:"icon",children:(0,oo.jsx)(St,{icon:Kb})})})}),O&&(0,oo.jsx)(Wt,{...h(j,A()&&N!==void 0),label:(0,ir.__)("Wide width"),hasValue:A,onDeselect:L,isShownByDefault:s.wideSize??Tc.wideSize,panelId:i,children:(0,oo.jsx)(Ti.__experimentalUnitControl,{label:(0,ir.__)("Wide width"),labelPosition:"top",value:M??N,placeholder:j?NV(N):void 0,onChange:nt=>{V(nt)},units:v,prefix:(0,oo.jsx)(Ti.__experimentalInputControlPrefixWrapper,{variant:"icon",children:(0,oo.jsx)(St,{icon:n_})})})}),z&&(0,oo.jsxs)(Wt,{hasValue:re,label:(0,ir.__)("Padding"),hasInlineEndToggle:pAe(W,b),onDeselect:ne,isShownByDefault:s.padding??Tc.padding,...h(J,re()&&H,{"tools-panel-item-spacing":b}),panelId:i,children:[!b&&(0,oo.jsx)(Ti.BoxControl,{values:G,onChange:ee,label:(0,ir.__)("Padding"),sides:W,units:v,allowReset:!1,splitOnAxis:Y,inputProps:{onMouseOver:ie,onMouseOut:Mf,placeholder:q?K:void 0}}),b&&(0,oo.jsx)(P1,{values:$,onChange:ee,label:(0,ir.__)("Padding"),sides:W,units:v,allowReset:!1,onMouseOver:ie,onMouseOut:Mf})]}),be&&(0,oo.jsxs)(Wt,{hasValue:Ce,label:(0,ir.__)("Margin"),hasInlineEndToggle:pAe(he,b),onDeselect:de,isShownByDefault:s.margin??Tc.margin,...h(xe,Ce()&&_e,{"tools-panel-item-spacing":b}),panelId:i,children:[!b&&(0,oo.jsx)(Ti.BoxControl,{values:Ee,onChange:fe,inputProps:{min:y,onDragStart:()=>{w(0)},onDragEnd:()=>{w(_)},onMouseOver:ae,onMouseOut:Mf,placeholder:we?Oe:void 0},label:(0,ir.__)("Margin"),sides:he,units:v,allowReset:!1,splitOnAxis:Ze}),b&&(0,oo.jsx)(P1,{values:ye,onChange:fe,minimumCustomValue:-1/0,label:(0,ir.__)("Margin"),sides:he,units:v,allowReset:!1,onMouseOver:ae,onMouseOut:Mf})]}),Re&&(0,oo.jsxs)(Wt,{hasValue:Ie,label:(0,ir.__)("Block spacing"),hasInlineEndToggle:ct,onDeselect:Se,isShownByDefault:s.blockGap??Tc.blockGap,...h(kt,Ie()&&at!==void 0,{"tools-panel-item-spacing":b,"single-column":!b&&!ct}),panelId:i,children:[!b&&(ct?(0,oo.jsx)(Ti.BoxControl,{label:(0,ir.__)("Block spacing"),min:0,onChange:Ye,units:v,sides:$e,values:Vt,allowReset:!1,splitOnAxis:ct}):(0,oo.jsx)(Ti.__experimentalUnitControl,{label:(0,ir.__)("Block spacing"),min:0,onChange:yt,units:v,value:Be??void 0,placeholder:kt?qe:void 0})),b&&(0,oo.jsx)(P1,{label:(0,ir.__)("Block spacing"),min:0,onChange:Ye,showSideInLabel:!1,sides:ct?$e:["top"],values:Vt,allowReset:!1},ct?"axial-gap":"single-gap")]}),f3&&(0,oo.jsx)(cAe,{value:Pz,onChange:Bz,parentLayout:n?.parentLayout,panelId:i,showGridSpanDefaults:!vi(u),isShownByDefault:s.childLayout??Tc.childLayout}),me&&(0,oo.jsx)(Wt,{...h(lt,Lo()&&Me!==void 0),hasValue:Lo,label:(0,ir.__)("Minimum height"),onDeselect:ao,isShownByDefault:s.minHeight??Tc.minHeight,panelId:i,children:(0,oo.jsx)(oy,{label:(0,ir.__)("Minimum height"),value:Te??Me,onChange:et,placeholder:lt?NV(Me):void 0,dimensionSizes:p?.dimensionSizes})}),Cn&&(0,oo.jsx)(Wt,{...h(ls,ko()&&as!==void 0),hasValue:ko,label:(0,ir.__)("Minimum width"),onDeselect:Ne,isShownByDefault:s.minWidth??Tc.minWidth,panelId:i,children:(0,oo.jsx)(oy,{label:(0,ir.__)("Minimum width"),value:Pi??as,onChange:ul,placeholder:ls?NV(as):void 0,dimensionSizes:p?.dimensionSizes})}),$r&&(0,oo.jsx)(Wt,{...h(ht,Ii()&&_o!==void 0),hasValue:Ii,label:(0,ir.__)("Height"),onDeselect:fn,isShownByDefault:s.height??Tc.height,panelId:i,children:(0,oo.jsx)(oy,{label:(0,ir.__)("Height"),value:xo,onChange:Ot,placeholder:ht?_o:void 0,dimensionSizes:p?.dimensionSizes})}),dt&&(0,oo.jsx)(Wt,{...h(ar,fl()&&Mr!==void 0),hasValue:fl,label:(0,ir.__)("Width"),onDeselect:Bf,isShownByDefault:s.width??Tc.width,panelId:i,children:(0,oo.jsx)(oy,{label:(0,ir.__)("Width"),value:lo,onChange:ri,placeholder:ar?Mr:void 0,dimensionSizes:p?.dimensionSizes})}),Lc&&(0,oo.jsx)(AV,{hasValue:u3,value:Fb,onChange:zb,panelId:i,...h(Wy,u3()&&Of!==void 0),isShownByDefault:s.aspectRatio??Tc.aspectRatio})]})}var Ds=c(Q(),1),gf=c(D(),1),By=c(X(),1);var Py=c(X(),1),Dn=c(Q(),1),PI=c(D(),1);var Ao=c(T(),1),zV=[];function Ybt({shadow:e,onShadowChange:t,settings:o}){let r=jV(o),n=(0,PI.useMemo)(()=>r.length?[{name:(0,Py.__)("Unset"),slug:"unset",shadow:"none"},...r]:r,[r]);return(0,Ao.jsx)("div",{className:"block-editor-global-styles__shadow-popover-container",children:(0,Ao.jsxs)(Dn.__experimentalVStack,{spacing:4,children:[(0,Ao.jsx)(Dn.__experimentalHeading,{level:5,children:(0,Py.__)("Drop shadow")}),(0,Ao.jsx)(Kbt,{presets:n,activeShadow:e,onSelect:t}),(0,Ao.jsx)("div",{className:"block-editor-global-styles__clear-shadow",children:(0,Ao.jsx)(Dn.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>t(void 0),disabled:!e,accessibleWhenDisabled:!0,children:(0,Py.__)("Clear")})})]})})}function Kbt({presets:e,activeShadow:t,onSelect:o}){return e?(0,Ao.jsx)(Dn.Composite,{role:"listbox",className:"block-editor-global-styles__shadow__list","aria-label":(0,Py.__)("Drop shadows"),children:e.map(({name:r,slug:n,shadow:i})=>(0,Ao.jsx)(qbt,{label:r,isActive:i===t,type:n==="unset"?"unset":"preset",onSelect:()=>o(i===t?void 0:i),shadow:i},n))}):null}function qbt({type:e,label:t,isActive:o,onSelect:r,shadow:n}){return(0,Ao.jsxs)(uo.Root,{children:[(0,Ao.jsx)(uo.Trigger,{render:(0,Ao.jsx)(Dn.Composite.Item,{role:"option","aria-label":t,"aria-selected":o,className:U("block-editor-global-styles__shadow__item",{"is-active":o}),render:(0,Ao.jsx)("button",{className:U("block-editor-global-styles__shadow-indicator",{unset:e==="unset"}),onClick:r,style:{boxShadow:n},"aria-label":t,children:o&&(0,Ao.jsx)(St,{icon:Vn})})})}),(0,Ao.jsx)(uo.Popup,{children:t})]})}function RAe({shadow:e,onShadowChange:t,settings:o,className:r,hasLocalValue:n=!!e,hasLocalOverride:i=!1,onReset:s}){return(0,Ao.jsx)(Dn.Dropdown,{popoverProps:{placement:"left-start",offset:36,shift:!0},className:U("block-editor-global-styles__shadow-dropdown",r),renderToggle:Xbt(e,t,{hasLocalValue:n,hasLocalOverride:i,onReset:s??(()=>t(void 0))}),renderContent:()=>(0,Ao.jsx)(Dn.__experimentalDropdownContentWrapper,{paddingSize:"medium",children:(0,Ao.jsx)(Ybt,{shadow:e,onShadowChange:t,settings:o})})})}function Xbt(e,t,o){let{hasLocalValue:r,hasLocalOverride:n,onReset:i}=o;return function({onToggle:a,isOpen:l}){let d=(0,PI.useRef)(void 0),u={onClick:a,className:U("block-editor-global-styles__shadow-dropdown-toggle",{"is-open":l}),"aria-expanded":l,ref:d},f=()=>{l&&a(),i(),d.current?.focus()};return(0,Ao.jsxs)(Ao.Fragment,{children:[(0,Ao.jsx)(Dn.Button,{__next40pxDefaultSize:!0,...u,children:(0,Ao.jsxs)(Dn.__experimentalHStack,{justify:"flex-start",children:[(0,Ao.jsx)(St,{className:"block-editor-global-styles__toggle-icon",icon:dE,size:24}),(0,Ao.jsx)(Dn.FlexItem,{children:(0,Py.__)("Drop shadow")})]})}),r&&(n?(0,Ao.jsx)(gm,{className:"block-editor-global-styles__shadow-editor__remove-button",onResetToInherited:f}):(0,Ao.jsx)(Dn.Button,{__next40pxDefaultSize:!0,size:"small",icon:Rn,label:(0,Py.__)("Remove"),className:"block-editor-global-styles__shadow-editor__remove-button",onClick:f}))]})}}function jV(e){return(0,PI.useMemo)(()=>{if(!e?.shadow)return zV;let t=e?.shadow?.defaultPresets,{default:o,theme:r,custom:n}=e?.shadow?.presets??{},i=[...t&&o||zV,...r||zV,...n||zV];return i.filter((s,a)=>i.findLastIndex(({slug:l})=>l===s.slug)===a)},[e])}var zd=c(T(),1);function HV(e){return Object.values(Soe(e)).some(Boolean)}function Soe(e){return{hasBorderColor:IAe(e),hasBorderRadius:PAe(e),hasBorderStyle:BAe(e),hasBorderWidth:OAe(e),hasShadow:MAe(e)}}function IAe(e){return e?.border?.color}function PAe(e){return e?.border?.radius}function BAe(e){return e?.border?.style}function OAe(e){return e?.border?.width}function MAe(e){let t=jV(e);return!!e?.shadow&&t.length>0}function Zbt({resetAllFilter:e,onChange:t,value:o,panelId:r,children:n,label:i}){let s=Fr();return(0,zd.jsx)(Ds.__experimentalToolsPanel,{label:i,resetAll:()=>{let l=e(o);t(l)},panelId:r,dropdownMenuProps:s,children:n})}var Qbt={radius:!0,color:!0,width:!0,shadow:!0};function UV({as:e=Zbt,value:t,onChange:o,inheritedValue:r=t,settings:n,panelId:i,defaultControls:s=Qbt,showInheritanceLabelIndicators:a=es()}){let l=lf(n),d=n?.color?.custom,u=(0,gf.useCallback)(W=>bl({settings:n},"",W),[n]),f=(W,Y,ee)=>_c(a&&W,a&&Y,ee),p=W=>{let ee=l.flatMap(({colors:re})=>re).find(({color:re})=>re===W);return ee?"var:preset|color|"+ee.slug:W},m=(0,gf.useCallback)(W=>{if(W){if((0,Ds.__experimentalHasSplitBorders)(W)){let Y={...W};return["top","right","bottom","left"].forEach(ee=>{Y[ee]={...Y[ee],color:u(Y[ee]?.color)}}),Y}return{...W,color:W.color?u(W.color):void 0}}},[u]),g=(0,gf.useMemo)(()=>m(t?.border),[t?.border,m]),h=(0,gf.useMemo)(()=>m(r?.border),[r?.border,m]),b=!(0,Ds.__experimentalIsDefinedBorder)(t?.border)&&!!h&&(0,Ds.__experimentalIsDefinedBorder)(h),v=b?h:g,_=W=>o({...t,border:W}),y=IAe(n),w=BAe(n),x=OAe(n),k=PAe(n),C=(0,gf.useMemo)(()=>typeof t?.border?.radius!="object"?u(t?.border?.radius):{topLeft:u(t?.border?.radius?.topLeft),topRight:u(t?.border?.radius?.topRight),bottomLeft:u(t?.border?.radius?.bottomLeft),bottomRight:u(t?.border?.radius?.bottomRight)},[t?.border?.radius,u]),S=(0,gf.useMemo)(()=>{let W=r?.border?.radius;return typeof W!="object"?u(W):{topLeft:u(W?.topLeft),topRight:u(W?.topRight),bottomLeft:u(W?.bottomLeft),bottomRight:u(W?.bottomRight)}},[r?.border?.radius,u]),R=W=>_({...t?.border,radius:W}),E=()=>{let W=t?.border?.radius;return typeof W=="object"?Object.entries(W).some(([,Y])=>!!Y):!!W},I=!E()&&S!==void 0&&S!=="",B=(0,gf.useMemo)(()=>{if(!I)return C;if(typeof S=="string")return S;let W=S;return W?{all:W.topLeft&&W.topLeft===W.topRight&&W.topLeft===W.bottomLeft&&W.topLeft===W.bottomRight?W.topLeft:void 0,...W}:C},[I,C,S]),O=MAe(n),M=u(t?.shadow),N=u(r?.shadow),j=M===void 0&&N!==void 0&&N!=="",V=j?N:M,A=jV(n),L=W=>{let Y=A.findLast(({shadow:ee})=>ee===W)?.slug;o(Ge(t,["shadow"],Y?`var:preset|shadow|${Y}`:W||void 0))},z=W=>{if(j&&W===void 0){L(N);return}L(W)},F=()=>!!t?.shadow,G=()=>L(void 0),$=a&&F()&&N!==void 0,K=()=>{if(E())return _({radius:t?.border?.radius});_(void 0)},q=W=>{let Y={...W};(0,Ds.__experimentalHasSplitBorders)(Y)?["top","right","bottom","left"].forEach(ee=>{Y[ee]&&(Y[ee]={...Y[ee],color:p(Y[ee]?.color)})}):Y&&(Y.color=p(Y.color)),_({...Y,radius:t?.border?.radius})},H=(0,gf.useCallback)(W=>({...W,border:void 0,shadow:void 0}),[]),J=s?.color||s?.width;return(0,zd.jsxs)(e,{resetAllFilter:H,value:t,onChange:o,panelId:i,label:(0,By.__)("Borders"),children:[(x||y)&&(0,zd.jsx)(Wt,{...f(b,(0,Ds.__experimentalIsDefinedBorder)(t?.border)&&!!h&&(0,Ds.__experimentalIsDefinedBorder)(h)),hasValue:()=>(0,Ds.__experimentalIsDefinedBorder)(t?.border),label:(0,By.__)("Border"),hasInlineEndToggle:!0,onDeselect:()=>K(),isShownByDefault:J,panelId:i,children:(0,zd.jsx)(Ds.BorderBoxControl,{colors:l,disableCustomColors:!d,enableAlpha:!0,enableStyle:w,label:(0,By.__)("Border"),onChange:q,popoverOffset:40,popoverPlacement:"left-start",value:v,__experimentalIsRenderedInSidebar:!0})}),k&&(0,zd.jsx)(Wt,{...f(I,E()&&S!==void 0),hasValue:E,label:(0,By.__)("Radius"),hasInlineEndToggle:!0,onDeselect:()=>R(void 0),isShownByDefault:s.radius,panelId:i,children:(0,zd.jsx)(pL,{presets:n?.border?.radiusSizes,values:B,onChange:W=>{R(W||void 0)}})}),O&&(0,zd.jsxs)(Wt,{...f(j,F()&&N!==void 0),label:(0,By.__)("Shadow"),hasValue:F,onDeselect:G,isShownByDefault:s.shadow,showLocalOverrideActionsInLabel:!1,panelId:i,children:[(0,zd.jsx)(Ds.BaseControl.VisualLabel,{children:(0,By.__)("Shadow")}),(0,zd.jsx)(RAe,{shadow:V,onShadowChange:z,settings:n,hasLocalValue:F(),hasLocalOverride:$,onReset:G})]})]})}var Ri=c(Q(),1);var Sm=c(X(),1),tS=c(D(),1);var cn=c(T(),1),WV=[];function AAe(e,{presetSetting:t,defaultSetting:o}){let r=!e?.color?.[o],n=e?.color?.[t]?.custom||WV,i=e?.color?.[t]?.theme||WV,s=e?.color?.[t]?.default||WV;return(0,tS.useMemo)(()=>[...n,...i,...r?WV:s],[r,n,i,s])}function NAe(e){return LAe(e)}function LAe(e){return e.color.customDuotone||e.color.defaultDuotone||e.color.duotone.length>0}function Jbt({resetAllFilter:e,onChange:t,value:o,panelId:r,children:n}){let i=Fr(),s=()=>{let a=e(o);t(a)};return(0,cn.jsx)(Ri.__experimentalToolsPanel,{label:(0,Sm._x)("Filters","Name for applying graphical effects"),resetAll:s,panelId:r,dropdownMenuProps:i,children:n})}var e_t={duotone:!0},t_t={placement:"left-start",offset:36,shift:!0,className:"block-editor-duotone-control__popover",headerTitle:(0,Sm.__)("Duotone")},o_t=({indicator:e,label:t})=>(0,cn.jsxs)(De,{className:"block-editor-panel-duotone-settings__label-row",direction:"row",align:"center",justify:"flex-start",gap:"sm",children:[e==="unset"||!e?(0,cn.jsx)(Ri.ColorIndicator,{className:"block-editor-duotone-control__unset-indicator"}):(0,cn.jsx)(Ri.DuotoneSwatch,{values:e}),(0,cn.jsx)("span",{className:"block-editor-panel-duotone-settings__label",title:t,children:t})]}),r_t=(e,t)=>function({onToggle:r,isOpen:n}){let{hasLocalValue:i,hasLocalOverride:s,onReset:a}=t,l=(0,tS.useRef)(void 0),d={onClick:r,className:U("block-editor-global-styles-filters-panel__dropdown-toggle",{"is-open":n}),"aria-expanded":n,ref:l},u=()=>{n&&r(),a(),l.current?.focus()};return(0,cn.jsxs)(cn.Fragment,{children:[(0,cn.jsx)(Ri.Button,{__next40pxDefaultSize:!0,...d,children:(0,cn.jsx)(o_t,{indicator:e,label:(0,Sm.__)("Duotone")})}),i&&(s?(0,cn.jsx)(gm,{className:"block-editor-panel-duotone-settings__reset",onResetToInherited:u}):(0,cn.jsx)(Ri.Button,{size:"small",icon:Rn,label:(0,Sm.__)("Reset"),className:"block-editor-panel-duotone-settings__reset",onClick:u}))]})};function GV({as:e=Jbt,value:t,onChange:o,inheritedValue:r=t,settings:n,panelId:i,defaultControls:s=e_t,showInheritanceLabelIndicators:a=es()}){let l=E=>bl({settings:n},"",E),d=(E,I,B)=>_c(a&&E,a&&I,B),u=LAe(n),f=AAe(n,{presetSetting:"duotone",defaultSetting:"defaultDuotone"}),p=AAe(n,{presetSetting:"palette",defaultSetting:"defaultPalette"}),m=l(t?.filter?.duotone),g=l(r?.filter?.duotone),h=m??g,b=r2(t?.filter?.duotone),v=r2(r?.filter?.duotone),_=m!==void 0?b:v,y=m===void 0&&g!==void 0,w=(E,I)=>{let B=I??f.find(({colors:M})=>M===E)?.slug,O=B?`var:preset|duotone|${B}`:E;o(Ge(t,["filter","duotone"],O))},x=(E,I,B)=>{if(E===void 0&&y&&g!==void 0){w(g,v);return}w(E,B)},k=()=>!!t?.filter?.duotone,C=()=>w(void 0),S=a&&k()&&g!==void 0,R=(0,tS.useCallback)(E=>({...E,filter:{...E.filter,duotone:void 0}}),[]);return(0,cn.jsx)(e,{resetAllFilter:R,value:t,onChange:o,panelId:i,children:u&&(0,cn.jsx)(Wt,{...d(y,m!==void 0&&g!==void 0),label:(0,Sm.__)("Duotone"),hasValue:k,onDeselect:C,isShownByDefault:s.duotone,showLocalOverrideActionsInLabel:!1,panelId:i,children:(0,cn.jsx)(Ri.Dropdown,{popoverProps:t_t,className:"block-editor-global-styles-filters-panel__dropdown",renderToggle:r_t(h,{hasLocalValue:k(),hasLocalOverride:S,onReset:C}),renderContent:()=>(0,cn.jsx)(Ri.__experimentalDropdownContentWrapper,{paddingSize:"small",children:(0,cn.jsxs)(Ri.MenuGroup,{label:(0,Sm.__)("Duotone"),children:[(0,cn.jsx)("p",{children:(0,Sm.__)("Create a two-tone color effect without losing your original image.")}),(0,cn.jsx)(Ri.DuotonePicker,{colorPalette:p,duotonePalette:f,disableCustomColors:!0,disableCustomDuotone:!0,value:h,selectedSlug:_,onChange:x})]})})})})})}var oS=c(Q(),1),BI=c(X(),1);var Oy=c(T(),1);function DAe(e,t,o){return e==="core/image"&&o?.lightbox?.allowEditing||!!t?.lightbox}function VAe({onChange:e,value:t,inheritedValue:o,panelId:r}){let n=Fr(),i=()=>{e(void 0)},s=l=>{e({enabled:l})},a=!1;return o?.lightbox?.enabled&&(a=o.lightbox.enabled),(0,Oy.jsx)(Oy.Fragment,{children:(0,Oy.jsx)(oS.__experimentalToolsPanel,{label:(0,BI._x)("Settings","Image settings"),resetAll:i,panelId:r,dropdownMenuProps:n,children:(0,Oy.jsx)(oS.__experimentalToolsPanelItem,{hasValue:()=>!!t?.lightbox,label:(0,BI.__)("Enlarge on click"),onDeselect:i,isShownByDefault:!0,panelId:r,children:(0,Oy.jsx)(oS.ToggleControl,{label:(0,BI.__)("Enlarge on click"),checked:a,onChange:s})})})})}var $V=c(Q(),1);var zAe=c(D(),1),YV=c(X(),1);var OI=c(T(),1);function Coe(e){return!(typeof e=="string"&&/<\/?\w/.test(e))}function jAe(e){return Coe(e)?null:(0,YV.__)("The custom CSS is invalid. Do not use <> markup.")}function FAe(e){if(!e)return null;let t=jAe(e);if(t)return t;let[o]=Gx([{css:e}],".for-validation-only");return o===null?(0,YV.__)("There is an error with your CSS structure."):null}function KV({value:e,onChange:t,inheritedValue:o=e,help:r}){let n=o?.css,[i,s]=(0,zAe.useState)(()=>FAe(n));function a(d){t({...e,css:d}),s(jAe(d))}function l(d){s(FAe(d?.target?.value))}return(0,OI.jsxs)(De,{direction:"column",gap:"md",className:"block-editor-global-styles-advanced-panel",children:[i&&(0,OI.jsx)($V.Notice,{status:"error",onRemove:()=>s(null),children:i}),(0,OI.jsx)($V.TextareaControl,{label:(0,YV.__)("Additional CSS"),value:n,onChange:d=>a(d),onBlur:l,className:"block-editor-global-styles-advanced-panel__custom-css-input",spellCheck:!1,help:r})]})}var Roe=c(T(),1),Ay="__experimentalBorder",AI="shadow",HAe=(e,t,o)=>{let r;return e.some(n=>n.colors.some(i=>i[t]===o?(r=i,!0):!1)),r},My=({colors:e,namedColor:t,customColor:o})=>{if(t){let n=HAe(e,"slug",t);if(n)return n}if(!o)return{color:void 0};let r=HAe(e,"color",o);return r||{color:o}};function qV(e){let t=/var:preset\|color\|(.+)/.exec(e);return t&&t[1]?t[1]:null}function GAe(e){if((0,Toe.__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:Qe(r),borderColor:o}}function $Ae(e){return(0,Toe.__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 n_t({label:e,children:t,resetAllFilter:o}){let r=(0,XV.useCallback)(n=>{let i=$Ae(n),s=o(i);return{...n,...GAe(s)}},[o]);return(0,Roe.jsx)(je,{group:"border",resetAllFilter:r,label:e,children:t})}function YAe({clientId:e,name:t,setAttributes:o,settings:r}){let n=Jl(),i=HV(r),{style:s,borderColor:a,className:l}=(0,WAe.useSelect)(g=>{if(!i)return{};let{style:h,borderColor:b,className:v}=g(P).getBlockAttributes(e)||{};return{style:h,borderColor:b,className:v}},[e,i]),{value:d}=vc(t,l,n),u=!$n(n),f=(0,XV.useMemo)(()=>u?ho(s,n):$Ae({style:s,borderColor:a}),[u,n,s,a]),p=u?g=>{o({style:Vr(s,n,g)})}:g=>{o(GAe(g))};if(!i)return null;let m={...(0,MI.getBlockSupport)(t,[Ay,"__experimentalDefaultControls"]),...(0,MI.getBlockSupport)(t,[AI,"__experimentalDefaultControls"])};return(0,Roe.jsx)(UV,{as:n_t,panelId:e,settings:r,value:f,onChange:p,defaultControls:m,inheritedValue:d})}function ZV(e,t="any"){let o=(0,MI.getBlockSupport)(e,Ay);return o===!0?!0:t==="any"?!!(o?.color||o?.radius||o?.width||o?.style):!!o?.[t]}function i_t(e){return!ZV(e,"color")||e.attributes.borderColor?e:{...e,attributes:{...e.attributes,borderColor:{type:"string"}}}}function KAe(e,t,o){if(!ZV(t,"color")||Qt(t,Ay,"color"))return e;let r=Ioe(o),n=U(e.className,r);return e.className=n||void 0,e}function Ioe(e){let{borderColor:t,style:o}=e,r=pl("border-color",t);return U({"has-border-color":t||o?.border?.color,[r]:!!r})}function s_t({name:e,borderColor:t,style:o}){let{colors:r}=ob();if(!ZV(e,"color")||Qt(e,Ay,"color"))return{};let{color:n}=My({colors:r,namedColor:t}),{color:i}=My({colors:r,namedColor:qV(o?.border?.top?.color)}),{color:s}=My({colors:r,namedColor:qV(o?.border?.right?.color)}),{color:a}=My({colors:r,namedColor:qV(o?.border?.bottom?.color)}),{color:l}=My({colors:r,namedColor:qV(o?.border?.left?.color)});return KAe({style:Qe({borderTopColor:i||n,borderRightColor:s||n,borderBottomColor:a||n,borderLeftColor:l||n})||{}},e,{borderColor:t,style:o})}var Poe={useBlockProps:s_t,addSaveProps:KAe,attributeKeys:["borderColor","style"],hasSupport(e){return ZV(e,"color")}};(0,UAe.addFilter)("blocks.registerBlockType","core/border/addAttributes",i_t);var rS=c(D(),1),QV=c(oe(),1),LI=c(ce(),1),JAe=c(Gt(),1);var hf=c(D(),1),qAe=c(_k(),1);var NI=c(T(),1);function XAe({clientId:e,value:t,computeStyle:o,forceShow:r}){let n=eo(e),[i,s]=(0,hf.useReducer)(()=>o(n));(0,hf.useEffect)(()=>{n&&r&&s()},[n,r]),(0,hf.useEffect)(()=>{if(!n)return;let u=new window.MutationObserver(s);return u.observe(n,{attributes:!0,attributeFilter:["style","class"]}),()=>{u.disconnect()}},[n]);let a=(0,hf.useRef)(t),[l,d]=(0,hf.useState)(!1);return(0,hf.useEffect)(()=>{if((0,qAe.isShallowEqual)(t,a.current)||r)return;d(!0),a.current=t;let u=setTimeout(()=>{d(!1)},400);return()=>{d(!1),clearTimeout(u)}},[t,r]),!l&&!r?null:(0,NI.jsx)(Zl,{clientId:e,__unstablePopoverSlot:"block-toolbar",children:(0,NI.jsx)("div",{className:"block-editor__spacing-visualizer",style:i})})}function wb(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function ZAe({clientId:e,value:t,forceShow:o}){return(0,NI.jsx)(XAe,{clientId:e,value:t?.spacing?.margin,computeStyle:r=>{let n=wb(r,"margin-top"),i=wb(r,"margin-right"),s=wb(r,"margin-bottom"),a=wb(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 QAe({clientId:e,value:t,forceShow:o}){return(0,NI.jsx)(XAe,{clientId:e,value:t?.spacing?.padding,computeStyle:r=>({borderTopWidth:wb(r,"padding-top"),borderRightWidth:wb(r,"padding-right"),borderBottomWidth:wb(r,"padding-bottom"),borderLeftWidth:wb(r,"padding-left")}),forceShow:o})}var Cm=c(T(),1),bf="dimensions",DI="spacing";function a_t(){let[e,t]=(0,rS.useState)(!1),{hideBlockInterface:o,showBlockInterface:r}=Z((0,QV.useDispatch)(P));return(0,rS.useEffect)(()=>{e?o():r()},[e,r,o]),[e,t]}function l_t({children:e,resetAllFilter:t}){let o=(0,rS.useCallback)(r=>{let n=r.style,i=t(n);return{...r,style:i}},[t]);return(0,Cm.jsx)(je,{group:"dimensions",resetAllFilter:o,children:e})}function eNe({clientId:e,name:t,setAttributes:o,settings:r}){let n=Jl(),i=!$n(n),s=VV(r,n),{style:a,className:l,layout:d}=(0,QV.useSelect)(y=>{if(!s)return{};let w=y(P).getBlockAttributes(e)||{};return{style:w.style,className:w.className,layout:w.layout}},[e,s]),{value:u}=vc(t,l,n),[f,p]=a_t(),m=i?ho(a,n):a,g=i?y=>{o({style:Vr(a,n,y)})}:y=>{o({style:Qe(y)})};if(!s)return null;let h=(0,LI.getBlockSupport)(t,[bf,"__experimentalDefaultControls"]),b=(0,LI.getBlockSupport)(t,[DI,"__experimentalDefaultControls"]),{default:v}=(0,LI.getBlockSupport)(t,"layout")||{},_={minHeight:!1,minWidth:!1,...h,...b};return(0,Cm.jsxs)(Cm.Fragment,{children:[(0,Cm.jsx)(FV,{as:l_t,panelId:e,settings:r,allowAxialBlockGap:Rae(d,v),value:m,onChange:g,defaultControls:_,styleState:n,onVisualize:i?void 0:p,inheritedValue:u}),!i&&!!r?.spacing?.padding&&f==="padding"&&(0,Cm.jsx)(QAe,{forceShow:f==="padding",clientId:e,value:m}),!i&&!!r?.spacing?.margin&&f==="margin"&&(0,Cm.jsx)(ZAe,{forceShow:f==="margin",clientId:e,value:m})]})}function tNe(e,t="any"){let o=(0,LI.getBlockSupport)(e,bf);return o===!0?!0:t==="any"?!!(o?.aspectRatio||o?.height||o?.minHeight||o?.width||o?.minWidth):!!o?.[t]}function Boe(e){return e?`${e}`.trim().toLowerCase()!=="auto":!1}var oNe={useBlockProps:c_t,attributeKeys:["height","minHeight","width","style"],hasSupport(e){return tNe(e)}};function c_t({name:e,height:t,minHeight:o,style:r}){if(!tNe(e,"aspectRatio")||Qt(e,bf,"aspectRatio"))return{};let n=Boe(r?.dimensions?.aspectRatio),i=U({"has-aspect-ratio":n}),s={};return n?(s.minHeight="unset",s.height="unset"):(o||r?.dimensions?.minHeight||t||r?.dimensions?.height)&&(s.aspectRatio="unset"),{className:i,style:s}}function Ooe(){(0,JAe.default)("wp.blockEditor.__experimentalUseCustomSides",{since:"6.3",version:"6.4"})}var d_t=c(ce(),1);function rNe(e,t,o=""){if(typeof t!="string"||!t)return au(e).map(i=>`${i.trim()}${o}`).join(", ");let r=au(e).filter(i=>i.trim()),n=au(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 xb=c(T(),1),{getResponsiveMediaQueries:u_t}=Z(Ro),f_t=["Top","Right","Bottom","Left"],p_t=[...$8e,Ay,Jn,bf,ky,DI,AI],Noe=e=>p_t.some(t=>(0,jd.hasBlockSupport)(e,t));function al(e={}){let t={};return(0,_f.getCSSRules)(e).forEach(o=>{t[o.key]=o.value}),t}function m_t(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"),f_t.forEach(s=>{let a=s.toLowerCase(),l=t[a],d=!!l?.style,u=!!l?.color,f=!!l?.width;!o&&!d&&(u||f)&&(i[a]={style:"solid"})}),Qe({border:Qe(i)})}function g_t(e,t){if(!!!e?.color?.background)return;let r=!!e?.color?.gradient,n=!!e?.background?.gradient||!!e?.background?.backgroundImage;if(r||n)return;let i="background-image: unset !important";return t?`${t} { ${i}; }`:`${i};`}function h_t(e){let t=e?.dimensions;if(t){if(Boe(t.aspectRatio))return{dimensions:{minHeight:"unset",height:"unset"}};if(t.minHeight||t.height)return{dimensions:{aspectRatio:"unset"}}}}function b_t(e,t){let o=e?.typography?.textAlign;if(typeof o!="string"||!o)return;let r=`text-align: ${(0,_f.getCSSValueFromRawStyle)(o)} !important`;return t?`${t} { ${r}; }`:`${r};`}function __t(e,t){let o=h_t(e),r=o?Loe(e,o):e,n=(0,_f.compileCSS)(r,{selector:t}),i=n?n.replace(/;/g," !important;"):void 0,s=m_t(e),a=s?(0,_f.compileCSS)(s,{selector:t}):void 0,l=b_t(e,t),d=g_t(e,t);return[i,l,a,d].filter(Boolean).join(` | |
| 216 | +`)}function eF(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function Loe(e={},t={}){let o={...e};return Object.entries(t).forEach(([r,n])=>{o[r]=eF(n)&&eF(o[r])?Loe(o[r],n):n}),o}function JV(e,t,o){let r=t||"",n=e.get(r)||{selector:t,style:{}};e.set(r,{selector:t,style:Loe(n.style,o)})}function v_t(e,t){let o=(0,jd.getBlockType)(t)?.selectors||{},r=new Map;return Object.entries(e||{}).forEach(([n,i])=>{let s=o[n];if(typeof s=="string"){JV(r,s,{[n]:i});return}if(eF(s)&&eF(i)){let a={...i};Object.entries(s).forEach(([l,d])=>{l==="root"||typeof d!="string"||!Object.hasOwn(i,l)||(JV(r,d,{[n]:{[l]:i[l]}}),delete a[l])}),Object.keys(a).length&&JV(r,s.root||o.root,{[n]:a});return}JV(r,o.root,{[n]:i})}),Array.from(r.values())}function Doe(e,t){let{name:o,baseSelector:r,state:n=""}=t,i=v_t(e,o).map(({selector:s,style:a})=>__t(a,rNe(r,s,n))).filter(Boolean);return i.length?i.join(` | |
| 217 | +`):void 0}function y_t(e,t){if(!e)return e;let o={...e};return t.forEach(r=>{delete o[r]}),o}function lNe(e,t,o){let r=yV[t];if(!r)return[];let n=[];return r.forEach(i=>{let s=e?.[i];if(s){let a=Doe(s,{name:t,baseSelector:o,state:i});a&&n.push(a)}}),n}function w_t(e,t,o,r){let n=[],s=["elements",...yV[t]??[]],a=u_t(r);return Object.entries(a).forEach(([l,d])=>{let u=ho(e,{viewport:l,pseudo:An.pseudo});if(!u)return;let f=[],p=Doe(y_t(u,s),{name:t,baseSelector:o});p&&f.push(p);let m=uNe(u.elements,t,o);m&&f.push(m),f.push(...lNe(u,t,o)),f.length&&n.push(`${d}{${f.join("")}}`)}),n}function nNe(e,t){let o=ho(e,t);if(!vi(t))return o;let r={...t,viewport:An.viewport},n=ho(e,r);return n&&o?H4(n,o):o||n}function x_t(e){return!Noe(e)&&!(0,jd.hasBlockSupport)(e,"customCSS",!0)||e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e}var cNe={[`${Ay}.__experimentalSkipSerialization`]:["border"],[`${Jn}.__experimentalSkipSerialization`]:[Jn],[`${ba}.__experimentalSkipSerialization`]:[ba],[`${bf}.__experimentalSkipSerialization`]:[bf],[`${DI}.__experimentalSkipSerialization`]:[DI],[`${AI}.__experimentalSkipSerialization`]:[AI]},k_t={...cNe,[`${bf}.aspectRatio`]:[`${bf}.aspectRatio`],[`${ky}`]:[ky]},S_t={[`${bf}.aspectRatio`]:!0,[`${ky}`]:!0},C_t={gradients:"gradient"};function Moe(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;Moe(r[i],[s],!0)}else n.length===1&&delete r[n[0]]}),r}function dNe(e,t,o,r=k_t){if(!Noe(t))return e;let{style:n}=o;return Object.entries(r).forEach(([i,s])=>{let a=S_t[i]||(0,jd.getBlockSupport)(t,i);a===!0&&(n=Moe(n,s)),Array.isArray(a)&&a.forEach(l=>{let d=C_t[l]||l;n=Moe(n,[[...s,d]])})}),e.style={...al(n),...e.style},e}function E_t({clientId:e,name:t,setAttributes:o,style:r,__unstableParentLayout:n}){let i=uf(t,n),s=Hr(),{globalBlockStyles:a,selectedState:l,showStateOnCanvas:d}=(0,sNe.useSelect)(g=>{let h=g(P),{getSelectedBlockStyleState:b,isSelectedBlockStyleStateShownOnCanvas:v}=Z(h);return{globalBlockStyles:h.getSettings()?.[Gs]?.blocks?.[t],selectedState:b(e),showStateOnCanvas:v(e)}},[e,t]),u=Ya(l),f=(0,Aoe.useMemo)(()=>{if(!d||!u)return;let g=nNe(a,l),h=nNe(r,l),b;if(g&&h)b=H4(g,h);else if(h)b=h;else if(g)b=g;else return;return Doe(b,{name:t,baseSelector:`[data-block="${e}"]`})},[d,u,a,r,l,e,t]);if(vd({css:f}),s!=="default")return null;let p={...i,typography:{...i.typography,textAlign:!1}},m={clientId:e,name:t,setAttributes:o,settings:p};return(0,xb.jsxs)(bA,{value:l,children:[(0,xb.jsx)(ZD,{...m}),(0,xb.jsx)(YD,{...m}),(0,xb.jsx)(dV,{...m}),(0,xb.jsx)(YAe,{...m}),(0,xb.jsx)(eNe,{...m})]})}var tF={edit:E_t,hasSupport:Noe,addSaveProps:dNe,attributeKeys:["style"],useBlockProps:I_t},T_t=[{elementType:"button"},{elementType:"link",pseudo:[":hover"]},{elementType:"heading",elements:["h1","h2","h3","h4","h5","h6"]}],R_t={};function uNe(e,t,o){if(!e)return;let r=[];return T_t.forEach(({elementType:n,pseudo:i,elements:s})=>{if(Qt(t,Jn,n))return;let l=e?.[n];if(l){let d=xk(o,jd.__EXPERIMENTAL_ELEMENTS[n]);r.push((0,_f.compileCSS)(l,{selector:d})),i&&i.forEach(u=>{l[u]&&r.push((0,_f.compileCSS)(l[u],{selector:xk(o,`${jd.__EXPERIMENTAL_ELEMENTS[n]}${u}`)}))})}s&&s.forEach(d=>{e[d]&&r.push((0,_f.compileCSS)(e[d],{selector:xk(o,jd.__EXPERIMENTAL_ELEMENTS[d])}))})}),r.length>0?r.join(""):void 0}function I_t({clientId:e,name:t,style:o}){let r=(0,aNe.useInstanceId)(R_t,"wp-elements"),n=`.${r}`,i=o?.elements,[s]=Fe("viewport"),a=(0,Aoe.useMemo)(()=>{let l=[],d=uNe(i,t,n);return d&&l.push(d),l.push(...lNe(o,t,n)),l.push(...w_t(o,t,n,s)),l.length>0?l.join(""):void 0},[n,i,t,o,s]);return il({css:a,clientId:e}),dNe({className:r},t,{style:o},cNe)}(0,iNe.addFilter)("blocks.registerBlockType","core/style/addAttribute",x_t);var fNe=c(To(),1),pNe=c(ce(),1),P_t=e=>(0,pNe.hasBlockSupport)(e,"__experimentalSettings",!1);function B_t(e){return P_t(e)&&(e?.attributes?.settings||(e.attributes={...e.attributes,settings:{type:"object"}})),e}(0,fNe.addFilter)("blocks.registerBlockType","core/settings/addAttribute",B_t);var kb=c(ce(),1),mNe=c(ue(),1),gNe=c(To(),1),VI=c(D(),1),hNe=c(oe(),1);var Em=c(T(),1),{getDuotoneFilter:O_t,getDuotoneStylesheet:M_t,getDuotoneUnsetStylesheet:A_t}=Z(Ro),Voe=[],N_t=window?.navigator.userAgent&&window.navigator.userAgent.includes("Safari")&&!window.navigator.userAgent.includes("Chrome")&&!window.navigator.userAgent.includes("Chromium");Dm([Vm]);function Foe({presetSetting:e,defaultSetting:t}){let[o,r,n,i]=Fe(t,`${e}.custom`,`${e}.theme`,`${e}.default`);return(0,VI.useMemo)(()=>[...r||Voe,...n||Voe,...o&&i||Voe],[o,r,n,i])}function bNe(e,t){if(!e)return;let o=t?.find(({slug:r})=>e===`var:preset|duotone|${r}`);return o?o.colors:void 0}function L_t(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 D_t({style:e,setAttributes:t,name:o,clientId:r}){let n=e?.color?.duotone,i=uf(o),s=Hr(),a=(0,hNe.useSelect)(b=>r?b(P).getBlockAttributes(r)?.className:void 0,[r]),{value:l}=vc(o,a),d=Foe({presetSetting:"color.duotone",defaultSetting:"color.defaultDuotone"}),u=Foe({presetSetting:"color.palette",defaultSetting:"color.defaultPalette"}),[f,p]=Fe("color.custom","color.customDuotone"),m=!f,g=!p||u?.length===0&&m;if(d?.length===0&&g||s!=="default")return null;let h=n==="unset"||Array.isArray(n)?n:bNe(n,d);return(0,Em.jsxs)(Em.Fragment,{children:[(0,Em.jsx)(je,{group:"filter",children:(0,Em.jsx)(GV,{value:{filter:{duotone:n}},onChange:b=>{let v={...e,color:{...b?.filter}};t({style:Qe(v)})},settings:i,inheritedValue:l})}),(0,Em.jsx)(Jo,{group:"block",__experimentalShareWithChildBlocks:!0,children:(0,Em.jsx)(hL,{duotonePalette:d,colorPalette:u,disableCustomDuotone:g,disableCustomColors:m,value:h,selectedSlug:r2(n),onChange:(b,v,_)=>{let y=_?`var:preset|duotone|${_}`:L_t(b,d),w={...e,color:{...e?.color,duotone:y??b}};t({style:Qe(w)})},settings:i})})]})}var zoe={shareWithChildBlocks:!0,edit:D_t,useBlockProps:j_t,attributeKeys:["style"],hasSupport(e){return(0,kb.hasBlockSupport)(e,"filter.duotone")}};function V_t(e){return(0,kb.hasBlockSupport)(e,"filter.duotone")&&(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}})),e}function F_t({clientId:e,id:t,selector:o,attribute:r}){let n=Foe({presetSetting:"color.duotone",defaultSetting:"color.defaultDuotone"}),i=Array.isArray(r),s=i?void 0:bNe(r,n),a=typeof r=="string"&&s,l=typeof r=="string"&&!a,d=null;a?d=s:(l||i)&&(d=r);let p=o.split(",").map(h=>`.${t}${h.trim()}`).join(", "),m=Array.isArray(d)||d==="unset";il(m?{css:d!=="unset"?M_t(p,t):A_t(p),__unstableType:"presets"}:void 0),il(m?{assets:d!=="unset"?O_t(t,d):"",__unstableType:"svgs"}:void 0);let g=eo(e);(0,VI.useEffect)(()=>{if(m&&g&&N_t){let h=g.style.display;g.style.setProperty("display","inline-block"),g.offsetHeight,g.style.setProperty("display",h)}},[m,g,d])}var z_t={};function j_t({clientId:e,name:t,style:o}){let r=(0,mNe.useInstanceId)(z_t),n=(0,VI.useMemo)(()=>{let l=(0,kb.getBlockType)(t);if(l){if(!(0,kb.getBlockSupport)(l,"filter.duotone",!1))return null;let u=(0,kb.getBlockSupport)(l,"color.__experimentalDuotone",!1);if(u){let f=Ea(l);return typeof u=="string"?xk(f,u):f}return Ea(l,"filter.duotone",{fallback:!0})}},[t]),i=o?.color?.duotone,s=`wp-duotone-${r}`,a=n&&i;return F_t({clientId:e,id:s,selector:n,attribute:i}),{className:a?s:""}}(0,gNe.addFilter)("blocks.registerBlockType","core/editor/duotone/add-attributes",V_t);var _Ne=c(To(),1),oF=c(ce(),1),vNe=c(_2(),1);var joe="typography.textShadow";function H_t(e){return(0,oF.hasBlockSupport)(e,joe)&&(e.attributes.textShadow||Object.assign(e.attributes,{textShadow:{type:"string"}})),e}function yNe(e,t,o){if(!(0,oF.hasBlockSupport)(t,joe)||Qt(t,ba,"textShadow")||!o?.textShadow)return e;let r=new vNe.default(e.className);r.add(`has-${Bi(o.textShadow)}-text-shadow`);let n=r.value;return e.className=n||void 0,e}function U_t({name:e,textShadow:t}){return yNe({},e,{textShadow:t})}var Hoe={useBlockProps:U_t,addSaveProps:yNe,attributeKeys:["textShadow"],hasSupport(e){return(0,oF.hasBlockSupport)(e,joe)}};(0,_Ne.addFilter)("blocks.registerBlockType","core/textShadow/addAttribute",H_t);var nF=c(D(),1),FI=c(oe(),1),wNe=c(ue(),1),zI=c(ce(),1),jI=c(X(),1);var xNe=c(Ks(),1);var rF=c(T(),1),W_t={},G_t={};function $_t({blockName:e,setAttributes:t,style:o}){if(Hr()!=="default")return null;let n=(0,zI.getBlockType)(e);function i(a){let l=a?.css?.trim()?a.css:void 0;t({style:Qe({...a,css:l})})}let s=(0,jI.sprintf)((0,jI.__)("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,rF.jsx)(je,{group:"advanced",children:(0,rF.jsx)(KV,{value:o,onChange:i,inheritedValue:o,help:s})})}var Y_t="custom-css-edit-warning";function K_t({clientId:e,name:t,setAttributes:o}){let{style:r,canEditCSS:n}=(0,FI.useSelect)(i=>{let{getBlockAttributes:s,getSettings:a}=i(P);return{style:s(e)?.style||G_t,canEditCSS:a().canEditCSS}},[e]);return n?(0,rF.jsx)($_t,{blockName:t,setAttributes:o,style:r}):null}function q_t({style:e,clientId:t}){let o=e?.css,r=typeof o=="string"&&o.trim().length>0&&Coe(o),n=(0,FI.useSelect)(u=>u(P).getSettings().canEditCSS,[]),{createWarningNotice:i}=(0,FI.useDispatch)(xNe.store),s=!!o?.trim();(0,nF.useEffect)(()=>{!n&&s&&i((0,jI.__)("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:Y_t,isDismissible:!0})},[n,s,i]);let a=(0,wNe.useInstanceId)(W_t,"wp-custom-css"),l=`.${a}`,d=(0,nF.useMemo)(()=>{if(r)return K4(o,l)},[o,l,r]);return il({css:d,clientId:t,__unstableType:"custom-css"}),r?{className:`has-custom-css ${a}`}:{}}function X_t(e,t,o){if(!(0,zI.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 iF={edit:K_t,useBlockProps:q_t,addSaveProps:X_t,attributeKeys:["style"],hasSupport(e){return(0,zI.hasBlockSupport)(e,"customCSS",!0)}};var aF=c(ue(),1),Woe=c(To(),1),SNe=c(D(),1),Hd=c(ce(),1);var lF=c(oe(),1),Tm=c(Q(),1),Ny=c(X(),1);var ti=c(T(),1),Z_t="is-style-",sF="layout",Uoe=["selfStretch","flexSize","columnStart","columnSpan","rowStart","rowSpan"],{getResponsiveMediaQueries:Q_t}=Z(Ro);function J_t(e={},t){let o=e?.default;return t?.attributes?.layout??o}function kNe(e={},t){return Qe({...J_t(e,t)})}function evt(e={},t={},o={}){let r={},n=Object.fromEntries(Uoe.filter(i=>Object.hasOwn(o||{},i)).map(i=>[i,o[i]]));return Object.entries(e||{}).forEach(([i,s])=>{let a=Object.hasOwn(t||{},i);!Uoe.includes(i)&&s!==t?.[i]&&(r[i]=s===void 0&&a?null:s)}),Qe({...n,...r})}function tvt({layoutType:e,constrainedType:t,layoutBlockSupport:o,showInheritToggle:r,showLayoutTypeSwitcher:n,displayControlsForLegacyLayouts:i}){let s=e?.name!=="default"&&e?.hasInspectorControls(o),a=i&&t?.hasInspectorControls(o);return!!(r||n||s||a)}function ovt(e={}){return Object.fromEntries(Object.entries(e||{}).filter(([t])=>!Uoe.includes(t)))}function Goe(e){return(0,Hd.hasBlockSupport)(e,"layout")||(0,Hd.hasBlockSupport)(e,"__experimentalLayout")}function cF(e={},t=""){let{layout:o}=e,{default:r}=(0,Hd.getBlockSupport)(t,sF)||{},n=fg(o)||r||{},i=[];if(Ia[n?.type||"default"]?.className){let a=Ia[n?.type||"default"]?.className,l=t.split("/"),u=`wp-block-${l[0]==="core"?l.pop():l.join("-")}-${a}`;i.push(a,u)}return(0,lF.useSelect)(a=>!n?.inherit&&!n?.contentSize&&n?.type!=="constrained"?!1:a(P).getSettings().__experimentalFeatures?.useRootPaddingAwareAlignments,[n?.contentSize,n?.inherit,n?.type])&&i.push("has-global-padding"),n?.orientation&&i.push(`is-${Bi(n.orientation)}`),n?.justifyContent&&i.push(`is-content-justification-${Bi(n.justifyContent)}`),n?.flexWrap&&n.flexWrap==="nowrap"&&i.push("is-nowrap"),i}function $oe(e={},t,o){let{layout:r={},style:n={}}=e,i=fg(r)||{},s=wl(i?.type||"default"),[a]=Fe("spacing.blockGap"),l=a!=null;return s?.getLayoutStyle?.({blockName:t,selector:o,layout:r,style:n,hasBlockGapSupport:l})}function rvt({attributes:e={},blockName:t,selector:o,layout:r={},hasBlockGapSupport:n,globalBlockGapValue:i,viewportSettings:s}){return Object.entries(Q_t(s)).map(([a,l])=>{let d=ho(e?.style,{viewport:a,pseudo:An.pseudo}),u=ovt(d?.layout),f=Object.keys(u).length>0,p=d?.spacing&&Object.hasOwn(d.spacing,"blockGap"),m=d?.spacing&&Object.hasOwn(d.spacing,"padding");if(!f&&!p&&!m)return"";let h=wl(r?.type||"default")?.getLayoutStyle?.({blockName:t,selector:o,layout:r,viewportOverrides:u,style:d,hasBlockGapSupport:n,globalBlockGapValue:i});return h?`${l}{${h}}`:""}).filter(Boolean).join("")}function nvt({layout:e,style:t,setAttributes:o,name:r,clientId:n}){let i=uf(r),{layout:s}=i,{themeSupportsLayout:a,activeBlockVariation:l,selectedState:d,isResponsiveEditing:u}=(0,lF.useSelect)(Y=>{let{getBlockAttributes:ee,getSettings:re,getSelectedBlockStyleState:ne,isResponsiveEditing:ie}=Z(Y(P));return{activeBlockVariation:Y(Hd.store).getActiveBlockVariation(r,ee(n)||{},"block"),themeSupportsLayout:re().supportsLayout,selectedState:ne(n),isResponsiveEditing:ie()}},[r,n]),f=Hr(),p=vi(d)&&!Ya(d),m=(0,SNe.useCallback)((...Y)=>{let ee=Y[0]||{},re=Y[1]||{};if(p){let be=ho(ee.style??t,d)||{},pe=Qe({...be,layout:void 0});return{style:Vr(ee.style??t,d,pe)}}let ne=re.name||r,ie=(0,Hd.getBlockSupport)(ne,sF,{});return{layout:kNe(ie,l)}},[r,l,p,d,t]);if(f!=="default")return null;let g=(0,Hd.getBlockSupport)(r,sF,{}),h={...s,...g},{allowSwitching:b,allowEditing:v=!0,allowInheriting:_=!0,default:y}=h;if(!v)return null;let w=e||y||{},x=p?ho(t,d):void 0,k=x?.layout,C=p?Qe({...w,...k})||{}:w,S=p?w:kNe(g,l),R={...g,...C},{type:E,default:{type:I="default"}={}}=R,B=E||I,O=!!(_&&(!B||B==="default"||B==="constrained"||R.inherit)),{inherit:M=!1,contentSize:N=null}=C;if((B==="default"||B==="constrained")&&!a)return null;let j=wl(B),V=wl("constrained"),A=!C.type&&(N||M),L=!!M||!!N,z=$n(d)&&!M&&b,F=tvt({layoutType:j,constrainedType:V,layoutBlockSupport:h,showInheritToggle:O,showLayoutTypeSwitcher:z,displayControlsForLegacyLayouts:A}),G=Y=>{if(p){let ee=Qe({...x,layout:evt(Y,w,x?.layout)});o({style:Vr(t,d,ee)});return}o({layout:Qe(Y)})},$=Y=>G({type:Y}),K=()=>G(S),q=()=>G({type:"default"}),H=()=>j?.name==="constrained"||L,J=()=>p?(C?.type??"default")!==(S?.type??"default"):e?.type==="constrained",W=()=>(C?.type??"default")!==(S?.type??"default");return(0,ti.jsxs)(ti.Fragment,{children:[F&&(0,ti.jsxs)(je,{group:"layout",resetAllFilter:m,children:[O&&(0,ti.jsx)(Tm.__experimentalToolsPanelItem,{label:(0,Ny.__)("Use content width"),hasValue:J,onDeselect:q,isShownByDefault:!0,panelId:n,children:(0,ti.jsx)(Tm.ToggleControl,{label:(0,Ny.__)("Inner blocks use content width"),checked:H(),onChange:()=>G({type:H()?"default":"constrained"}),help:H()?(0,Ny.__)("Nested blocks use content width with options for full and wide widths."):(0,Ny.__)("Nested blocks will fill the width of this container.")})}),z&&(0,ti.jsx)(Tm.__experimentalToolsPanelItem,{label:(0,Ny.__)("Layout type"),hasValue:W,onDeselect:K,isShownByDefault:!0,panelId:n,children:(0,ti.jsx)(ivt,{type:B,onChange:$})}),j&&j.name!=="default"&&(0,ti.jsx)(j.inspectorControls,{layout:C,value:e,onChange:G,layoutBlockSupport:h,resetLayout:S,name:r,clientId:n}),V&&A&&(0,ti.jsx)(V.inspectorControls,{layout:C,value:e,onChange:G,layoutBlockSupport:h,resetLayout:S,name:r,clientId:n})]}),!M&&j&&(0,ti.jsx)(j.toolBarControls,{layout:C,onChange:G,layoutBlockSupport:g,controlsGroup:u&&vi(d)&&!Ya(d)?"style-state":"block",name:r,clientId:n})]})}var CNe={shareWithChildBlocks:!0,edit:nvt,attributeKeys:["layout","style"],hasSupport(e){return Goe(e)}};function ivt({type:e,onChange:t}){return(0,ti.jsx)(Tm.__experimentalToggleGroupControl,{isBlock:!0,label:(0,Ny.__)("Layout type"),hideLabelFromVision:!0,isAdaptiveWidth:!0,value:e,onChange:t,children:jae().map(({name:o,label:r})=>(0,ti.jsx)(Tm.__experimentalToggleGroupControlOption,{value:o,label:r},o))})}function svt(e){return"type"in(e.attributes?.layout??{})||Goe(e)&&(e.attributes={...e.attributes,layout:{type:"object"}}),e}function avt({block:e,props:t,blockGapSupport:o,globalBlockGapValue:r,viewportSettings:n,layoutClasses:i}){let{name:s,attributes:a}=t,l=(0,aF.useInstanceId)(e),{layout:d}=a,{default:u}=(0,Hd.getBlockSupport)(s,sF)||{},f=fg(d)||u||{},p=`wp-container-${Bi(s)}-is-layout-`,m=`.${p}${l}`,g=o!=null,b=wl(f?.type||"default")?.getLayoutStyle?.({blockName:s,selector:m,layout:f,style:a?.style,hasBlockGapSupport:g,globalBlockGapValue:r}),v=rvt({attributes:a,blockName:s,selector:m,layout:f,hasBlockGapSupport:g,globalBlockGapValue:r,viewportSettings:n}),_=[b,v].filter(Boolean).join(""),y=U({[`${p}${l}`]:!!_},i);return vd({css:_}),(0,ti.jsx)(e,{...t,__unstableLayoutClassNames:y})}var lvt=(0,aF.createHigherOrderComponent)(e=>function(o){let{clientId:r,name:n,attributes:i}=o,s=Goe(n),a=cF(i,n),l=(0,lF.useSelect)(d=>{if(!s)return;let{getSettings:u,getBlockSettings:f}=Z(d(P)),p=u(),{disableLayoutStyles:m}=p;if(m)return;let[g]=f(r,"spacing.blockGap"),h=p[Gs],b,v=i?.className;if(v?.includes(Z_t)){let{getBlockStyles:y}=d(Hd.store),w=y(n),x=pI(v,w);b=x?h?.blocks?.[n]?.variations?.[x]?.spacing?.blockGap:void 0}let _=b??h?.blocks?.[n]?.spacing?.blockGap??h?.spacing?.blockGap;return{blockGapSupport:g,globalBlockGapValue:_,viewportSettings:p?.__experimentalFeatures?.viewport}},[s,r,i?.className,n]);return l?(0,ti.jsx)(avt,{block:e,props:o,layoutClasses:a,...l}):(0,ti.jsx)(e,{...o,__unstableLayoutClassNames:s?a:void 0})},"withLayoutStyles");(0,Woe.addFilter)("blocks.registerBlockType","core/layout/addAttribute",svt);(0,Woe.addFilter)("editor.BlockListBlock","core/editor/layout/with-layout-styles",lvt);var ANe=c(ue(),1),mF=c(oe(),1),NNe=c(D(),1);var Rc=c(D(),1),Sb=c(oe(),1),TNe=c(ue(),1);function UI(e,t){return Array.from({length:t},(o,r)=>e+r)}var Ud=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 dn(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function HI(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 Rm(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 cvt(e,t){let o=parseFloat(dn(e,"column-gap")),r=parseFloat(dn(e,"row-gap")),n=HI(dn(e,"grid-template-columns"),o),i=HI(dn(e,"grid-template-rows"),r),s=Rm(n,t.left)+1,a=Rm(i,t.top)+1,l=Rm(n,t.right,"end")+1,d=Rm(i,t.bottom,"end")+1;return new Ud({columnStart:s,columnEnd:l,rowStart:a,rowEnd:d})}function ENe(e){return cvt(e.parentElement,new window.DOMRect(e.offsetLeft,e.offsetTop,e.offsetWidth,e.offsetHeight))}function Yoe(e){let t=dn(e,"grid-template-columns"),o=dn(e,"grid-template-rows"),r=dn(e,"border-top-width"),n=dn(e,"border-right-width"),i=dn(e,"border-bottom-width"),s=dn(e,"border-left-width"),a=dn(e,"padding-top"),l=dn(e,"padding-right"),d=dn(e,"padding-bottom"),u=dn(e,"padding-left"),f=t.split(" ").length,p=o.split(" ").length,m=f*p;return{numColumns:f,numRows:p,numItems:m,currentColor:dn(e,"color"),style:{gridTemplateColumns:t,gridTemplateRows:o,gap:dn(e,"gap"),inset:` | |
| 217 | 218 | calc(${a} + ${r}) |
| 218 | 219 | calc(${l} + ${n}) |
| 219 | - calc(${u} + ${i}) | |
| 220 | - calc(${d} + ${s}) | |
| 221 | - `}}}var qa=c(T(),1);function dB({clientId:e,contentRef:t,parentLayout:o,childGridClientId:r}){let n=(0,Xh.useSelect)(a=>a(B).getSettings().isDistractionFree,[]),i=Zt(e);if(n||!i)return null;let s=o?.isManualPlacement&&window.__experimentalEnableGridInteractivity;return(0,qa.jsx)(vft,{gridClientId:e,gridElement:i,isManualGrid:s,ref:t,childGridClientId:r})}var vft=(0,gc.forwardRef)(({gridClientId:e,gridElement:t,isManualGrid:o,childGridClientId:r},n)=>{let[i,s]=(0,gc.useState)(()=>tee(t)),[a,l]=(0,gc.useState)(!1),u=Zt(r),d=(0,gc.useMemo)(()=>u?nVe(u):null,[u]);return(0,gc.useEffect)(()=>{let f=()=>s(tee(t)),p=new window.ResizeObserver(f);p.observe(t,{box:"border-box"});let m=new window.ResizeObserver(f);m.observe(t);for(let g of t.children)m.observe(g);return()=>{p.disconnect(),m.disconnect()}},[t]),(0,gc.useEffect)(()=>{function f(){l(!0)}function p(){l(!1)}return document.addEventListener("drag",f),document.addEventListener("dragend",p),()=>{document.removeEventListener("drag",f),document.removeEventListener("dragend",p)}},[]),(0,qa.jsx)(Ml,{className:$("block-editor-grid-visualizer",{"is-dropping-allowed":a}),clientId:e,__unstablePopoverSlot:"__unstable-block-tools-after",children:(0,qa.jsx)("div",{ref:n,className:"block-editor-grid-visualizer__grid",style:i.style,children:o?(0,qa.jsx)(wft,{gridClientId:e,gridInfo:i,childGridRect:d}):(0,qa.jsx)(_ft,{gridInfo:i,childGridRect:d})})})});function _ft({gridInfo:e,childGridRect:t}){return uB(1,e.numRows).map(o=>uB(1,e.numColumns).map(r=>{let n=e.currentColor;return t?.contains(r,o)&&(n="transparent"),(0,qa.jsx)(sVe,{color:n},`${o}-${r}`)}))}function wft({gridClientId:e,gridInfo:t,childGridRect:o}){let[r,n]=(0,gc.useState)(null),i=(0,Xh.useSelect)(a=>{let{getBlockOrder:l,getBlockStyles:u}=G(a(B)),d=l(e);return u(d)},[e]),s=(0,gc.useMemo)(()=>{let a=[];for(let l of Object.values(i)){let{columnStart:u,rowStart:d,columnSpan:f=1,rowSpan:p=1}=l?.layout??{};!u||!d||a.push(new Ou({columnStart:u,rowStart:d,columnSpan:f,rowSpan:p}))}return a},[i]);return uB(1,t.numRows).map(a=>uB(1,t.numColumns).map(l=>{let u=o?.contains(l,a),d=t.currentColor;u&&(d="transparent");let f=s.some(m=>m.contains(l,a)),p=r?.contains(l,a)??!1;return(0,qa.jsx)(sVe,{color:d,className:p&&"is-highlighted",children:f&&!u?(0,qa.jsx)(kft,{column:l,row:a,gridClientId:e,gridInfo:t,setHighlightedRect:n}):(0,qa.jsx)(xft,{column:l,row:a,gridClientId:e,gridInfo:t,setHighlightedRect:n})},`${a}-${l}`)}))}function sVe({color:e,children:t,className:o}){return(0,qa.jsx)("div",{className:$("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 aVe(e,t,o,r,n){let{getBlockAttributes:i,getBlockRootClientId:s,canInsertBlockType:a,getBlockName:l}=(0,Xh.useSelect)(B),{updateBlockAttributes:u,moveBlocksToPosition:d,__unstableMarkNextChangeAsNotPersistent:f}=(0,Xh.useDispatch)(B),p=Av(o,r.numColumns);return Sft({validateDrag(m){let g=l(m);if(!a(g,o))return!1;let h=i(m),b=new Ou({columnStart:e,rowStart:t,columnSpan:h.style?.layout?.columnSpan,rowSpan:h.style?.layout?.rowSpan});return new Ou({columnSpan:r.numColumns,rowSpan:r.numRows}).containsRect(b)},onDragEnter(m){let g=i(m);n(new Ou({columnStart:e,rowStart:t,columnSpan:g.style?.layout?.columnSpan,rowSpan:g.style?.layout?.rowSpan}))},onDragLeave(){n(m=>m?.columnStart===e&&m?.rowStart===t?null:m)},onDrop(m){n(null);let g=i(m);u(m,{style:{...g.style,layout:{...g.style?.layout,columnStart:e,rowStart:t}}}),f(),d([m],s(m),o,p(e,t))}})}function kft({column:e,row:t,gridClientId:o,gridInfo:r,setHighlightedRect:n}){return(0,qa.jsx)("div",{className:"block-editor-grid-visualizer__drop-zone",ref:aVe(e,t,o,r,n)})}function xft({column:e,row:t,gridClientId:o,gridInfo:r,setHighlightedRect:n}){let{updateBlockAttributes:i,moveBlocksToPosition:s,__unstableMarkNextChangeAsNotPersistent:a}=(0,Xh.useDispatch)(B),l=Av(o,r.numColumns);return(0,qa.jsx)(Hg,{rootClientId:o,className:"block-editor-grid-visualizer__appender",ref:aVe(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 Sft({validateDrag:e,onDragEnter:t,onDragLeave:o,onDrop:r}){let{getDraggedBlockClientIds:n}=(0,Xh.useSelect)(B);return(0,iVe.__experimentalUseDropZone)({onDragEnter(){let[i]=n();i&&e(i)&&t(i)},onDragLeave(){o()},onDrop(){let[i]=n();i&&e(i)&&r(i)}})}var lVe=c(Y(),1),fB=c(F(),1);var _8=c(T(),1);function oee({clientId:e,bounds:t,onChange:o,parentLayout:r}){let n=Zt(e),i=n?.parentElement,{isManualPlacement:s}=r;return!n||!i?null:(0,_8.jsx)(Cft,{clientId:e,bounds:t,blockElement:n,rootBlockElement:i,onChange:o,isManualGrid:s&&window.__experimentalEnableGridInteractivity})}function Cft({clientId:e,bounds:t,blockElement:o,rootBlockElement:r,onChange:n,isManualGrid:i}){let[s,a]=(0,fB.useState)(null),[l,u]=(0,fB.useState)({top:!1,bottom:!1,left:!1,right:!1});(0,fB.useEffect)(()=>{let m=new window.ResizeObserver(()=>{let g=o.getBoundingClientRect(),h=r.getBoundingClientRect(),b=g.top>h.top,v=g.bottom<h.bottom,y=g.left>h.left,_=g.right<h.right;u({top:(i||!v)&&b,bottom:v,left:(i||!_)&&y,right:_})});return m.observe(o),()=>m.disconnect()},[o,r,i]);let d={right:"left",left:"right"},f={top:"flex-end",bottom:"flex-start"},p={display:"flex",justifyContent:"center",alignItems:"center",...d[s]&&{justifyContent:d[s]},...f[s]&&{alignItems:f[s]}};return(0,_8.jsx)(Ml,{className:"block-editor-grid-item-resizer",clientId:e,__unstablePopoverSlot:"__unstable-block-tools-after",additionalStyles:p,children:(0,_8.jsx)(lVe.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:m,pointerId:g})=>{m.setPointerCapture(g)},onResizeStart:(m,g)=>{a(g)},onResizeStop:(m,g,h)=>{let b=parseFloat(un(r,"column-gap")),v=parseFloat(un(r,"row-gap")),y=cB(un(r,"grid-template-columns"),b),_=cB(un(r,"grid-template-rows"),v),w=new window.DOMRect(o.offsetLeft+h.offsetLeft,o.offsetTop+h.offsetTop,h.offsetWidth,h.offsetHeight),k=om(y,w.left)+1,x=om(_,w.top)+1,S=om(y,w.right,"end")+1,C=om(_,w.bottom,"end")+1;n({columnSpan:S-k+1,rowSpan:C-x+1,columnStart:i?k:void 0,rowStart:i?x:void 0})}})})}var hc=c(q(),1),w8=c(Y(),1);var cVe=c(te(),1),uVe=c(ue(),1);var Ji=c(T(),1);function ree({layout:e,parentLayout:t,onChange:o,gridClientId:r,blockClientId:n}){let{moveBlocksToPosition:i,__unstableMarkNextChangeAsNotPersistent:s}=(0,cVe.useDispatch)(B),a=e?.columnStart??1,l=e?.rowStart??1,u=e?.columnSpan??1,d=e?.rowSpan??1,f=a+u-1,p=l+d-1,m=t?.columnCount,g=t?.rowCount,h=Av(r,m);return(0,Ji.jsx)(Ko,{group:"parent",children:(0,Ji.jsxs)(w8.ToolbarGroup,{className:"block-editor-grid-item-mover__move-button-container",children:[(0,Ji.jsx)("div",{className:"block-editor-grid-item-mover__move-horizontal-button-container is-left",children:(0,Ji.jsx)(pB,{icon:(0,hc.isRTL)()?hr:ai,label:(0,hc.__)("Move left"),description:(0,hc.__)("Move left"),isDisabled:a<=1,onClick:()=>{o({columnStart:a-1}),s(),i([n],r,r,h(a-1,l))}})}),(0,Ji.jsxs)("div",{className:"block-editor-grid-item-mover__move-vertical-button-container",children:[(0,Ji.jsx)(pB,{className:"is-up-button",icon:db,label:(0,hc.__)("Move up"),description:(0,hc.__)("Move up"),isDisabled:l<=1,onClick:()=>{o({rowStart:l-1}),s(),i([n],r,r,h(a,l-1))}}),(0,Ji.jsx)(pB,{className:"is-down-button",icon:Rn,label:(0,hc.__)("Move down"),description:(0,hc.__)("Move down"),isDisabled:g&&p>=g,onClick:()=>{o({rowStart:l+1}),s(),i([n],r,r,h(a,l+1))}})]}),(0,Ji.jsx)("div",{className:"block-editor-grid-item-mover__move-horizontal-button-container is-right",children:(0,Ji.jsx)(pB,{icon:(0,hc.isRTL)()?ai:hr,label:(0,hc.__)("Move right"),description:(0,hc.__)("Move right"),isDisabled:m&&f>=m,onClick:()=>{o({columnStart:a+1}),s(),i([n],r,r,h(a+1,l))}})})]})})}function pB({className:e,icon:t,label:o,isDisabled:r,onClick:n,description:i}){let a=`block-editor-grid-item-mover-button__description-${(0,uVe.useInstanceId)(pB)}`;return(0,Ji.jsxs)(Ji.Fragment,{children:[(0,Ji.jsx)(w8.ToolbarButton,{className:$("block-editor-grid-item-mover-button",e),icon:t,label:o,"aria-describedby":a,onClick:r?null:n,disabled:r,accessibleWhenDisabled:!0}),(0,Ji.jsx)(bt,{id:a,children:i})]})}var mB=c(te(),1),x8=c(F(),1),k8=c(ue(),1);function nee({clientId:e}){let{gridLayout:t,blockOrder:o,selectedBlockLayout:r}=(0,mB.useSelect)(p=>{let{getBlockAttributes:m,getBlockOrder:g}=p(B),h=p(B).getSelectedBlock();return{gridLayout:m(e).layout??{},blockOrder:g(e),selectedBlockLayout:h?.attributes.style?.layout}},[e]),{getBlockAttributes:n,getBlockRootClientId:i}=(0,mB.useSelect)(B),{updateBlockAttributes:s,__unstableMarkNextChangeAsNotPersistent:a}=(0,mB.useDispatch)(B),l=(0,x8.useMemo)(()=>r?new Ou(r):null,[r]),u=(0,k8.usePrevious)(l),d=(0,k8.usePrevious)(t.isManualPlacement),f=(0,k8.usePrevious)(o);(0,x8.useEffect)(()=>{let p={};if(t.isManualPlacement){let m=[];for(let h of o){let{columnStart:b,rowStart:v,columnSpan:y=1,rowSpan:_=1}=n(h).style?.layout??{};!b||!v||m.push(new Ou({columnStart:b,rowStart:v,columnSpan:y,rowSpan:_}))}for(let h of o){let b=n(h),{columnStart:v,rowStart:y,columnSpan:_=1,rowSpan:w=1}=b.style?.layout??{};if(v&&y)continue;let[k,x]=Eft(m,t.columnCount,_,w,u?.columnEnd,u?.rowEnd);m.push(new Ou({columnStart:k,rowStart:x,columnSpan:_,rowSpan:w})),p[h]={style:{...b.style,layout:{...b.style?.layout,columnStart:k,rowStart:x}}}}let g=Math.max(...m.map(h=>h.rowEnd));(!t.rowCount||t.rowCount<g)&&(p[e]={layout:{...t,rowCount:g}});for(let h of f??[])if(!o.includes(h)){let b=i(h);if(b===null||n(b)?.layout?.type==="grid")continue;let y=n(h),{columnStart:_,rowStart:w,columnSpan:k,rowSpan:x,...S}=y.style?.layout??{};if(_||w||k||x){let C=Object.keys(S).length===0;p[h]=Ge(y,["style","layout"],C?void 0:S)}}}else{if(d===!0)for(let m of o){let g=n(m),{columnStart:h,rowStart:b,...v}=g.style?.layout??{};if(h||b){let y=Object.keys(v).length===0;p[m]=Ge(g,["style","layout"],y?void 0:v)}}t.rowCount&&(p[e]={layout:{...t,rowCount:void 0}})}Object.keys(p).length&&(a(),s(Object.keys(p),p,!0))},[e,t,f,o,u,d,a,n,i,s])}function Eft(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 Ou({columnStart:a,rowStart:s,columnSpan:o,rowSpan:r});if(!e.some(u=>u.intersectsRect(l)))return[a,s]}}var rm=c(T(),1),{getResponsiveMediaQueries:Tft}=G(Lo),Rft={},Qh={fit:"fit",grow:"fill",max:"fixed",fixed:"fixedNoShrink"},Bft=[Qh.max,Qh.fixed];function dVe(e){return Bft.includes(e)}function mVe({selector:e,declarations:t}){return`${e} { | |
| 220 | + calc(${d} + ${i}) | |
| 221 | + calc(${u} + ${s}) | |
| 222 | + `}}}var ll=c(T(),1);function WI({clientId:e,contentRef:t,parentLayout:o,childGridClientId:r}){let n=(0,Sb.useSelect)(a=>a(P).getSettings().isDistractionFree,[]),i=eo(e);if(n||!i)return null;let s=o?.isManualPlacement&&window.__experimentalEnableGridInteractivity;return(0,ll.jsx)(dvt,{gridClientId:e,gridElement:i,isManualGrid:s,ref:t,childGridClientId:r})}var dvt=(0,Rc.forwardRef)(({gridClientId:e,gridElement:t,isManualGrid:o,childGridClientId:r},n)=>{let[i,s]=(0,Rc.useState)(()=>Yoe(t)),[a,l]=(0,Rc.useState)(!1),d=eo(r),u=(0,Rc.useMemo)(()=>d?ENe(d):null,[d]);return(0,Rc.useEffect)(()=>{let f=()=>s(Yoe(t)),p=new window.ResizeObserver(f);p.observe(t,{box:"border-box"});let m=new window.ResizeObserver(f);m.observe(t);for(let g of t.children)m.observe(g);return()=>{p.disconnect(),m.disconnect()}},[t]),(0,Rc.useEffect)(()=>{function f(){l(!0)}function p(){l(!1)}return document.addEventListener("drag",f),document.addEventListener("dragend",p),()=>{document.removeEventListener("drag",f),document.removeEventListener("dragend",p)}},[]),(0,ll.jsx)(Zl,{className:U("block-editor-grid-visualizer",{"is-dropping-allowed":a}),clientId:e,__unstablePopoverSlot:"__unstable-block-tools-after",children:(0,ll.jsx)("div",{ref:n,className:"block-editor-grid-visualizer__grid",style:i.style,children:o?(0,ll.jsx)(fvt,{gridClientId:e,gridInfo:i,childGridRect:u}):(0,ll.jsx)(uvt,{gridInfo:i,childGridRect:u})})})});function uvt({gridInfo:e,childGridRect:t}){return UI(1,e.numRows).map(o=>UI(1,e.numColumns).map(r=>{let n=e.currentColor;return t?.contains(r,o)&&(n="transparent"),(0,ll.jsx)(RNe,{color:n},`${o}-${r}`)}))}function fvt({gridClientId:e,gridInfo:t,childGridRect:o}){let[r,n]=(0,Rc.useState)(null),i=(0,Sb.useSelect)(a=>{let{getBlockOrder:l,getBlockStyles:d}=Z(a(P)),u=l(e);return d(u)},[e]),s=(0,Rc.useMemo)(()=>{let a=[];for(let l of Object.values(i)){let{columnStart:d,rowStart:u,columnSpan:f=1,rowSpan:p=1}=l?.layout??{};!d||!u||a.push(new Ud({columnStart:d,rowStart:u,columnSpan:f,rowSpan:p}))}return a},[i]);return UI(1,t.numRows).map(a=>UI(1,t.numColumns).map(l=>{let d=o?.contains(l,a),u=t.currentColor;d&&(u="transparent");let f=s.some(m=>m.contains(l,a)),p=r?.contains(l,a)??!1;return(0,ll.jsx)(RNe,{color:u,className:p&&"is-highlighted",children:f&&!d?(0,ll.jsx)(pvt,{column:l,row:a,gridClientId:e,gridInfo:t,setHighlightedRect:n}):(0,ll.jsx)(mvt,{column:l,row:a,gridClientId:e,gridInfo:t,setHighlightedRect:n})},`${a}-${l}`)}))}function RNe({color:e,children:t,className:o}){return(0,ll.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 INe(e,t,o,r,n){let{getBlockAttributes:i,getBlockRootClientId:s,canInsertBlockType:a,getBlockName:l}=(0,Sb.useSelect)(P),{updateBlockAttributes:d,moveBlocksToPosition:u,__unstableMarkNextChangeAsNotPersistent:f}=(0,Sb.useDispatch)(P),p=Iy(o,r.numColumns);return gvt({validateDrag(m){let g=l(m);if(!a(g,o))return!1;let h=i(m),b=new Ud({columnStart:e,rowStart:t,columnSpan:h.style?.layout?.columnSpan,rowSpan:h.style?.layout?.rowSpan});return new Ud({columnSpan:r.numColumns,rowSpan:r.numRows}).containsRect(b)},onDragEnter(m){let g=i(m);n(new Ud({columnStart:e,rowStart:t,columnSpan:g.style?.layout?.columnSpan,rowSpan:g.style?.layout?.rowSpan}))},onDragLeave(){n(m=>m?.columnStart===e&&m?.rowStart===t?null:m)},onDrop(m){n(null);let g=i(m);d(m,{style:{...g.style,layout:{...g.style?.layout,columnStart:e,rowStart:t}}}),f(),u([m],s(m),o,p(e,t))}})}function pvt({column:e,row:t,gridClientId:o,gridInfo:r,setHighlightedRect:n}){return(0,ll.jsx)("div",{className:"block-editor-grid-visualizer__drop-zone",ref:INe(e,t,o,r,n)})}function mvt({column:e,row:t,gridClientId:o,gridInfo:r,setHighlightedRect:n}){let{updateBlockAttributes:i,moveBlocksToPosition:s,__unstableMarkNextChangeAsNotPersistent:a}=(0,Sb.useDispatch)(P),l=Iy(o,r.numColumns);return(0,ll.jsx)(Ih,{rootClientId:o,className:"block-editor-grid-visualizer__appender",ref:INe(e,t,o,r,n),style:{color:r.currentColor},onSelect:d=>{d&&(i(d.clientId,{style:{layout:{columnStart:e,rowStart:t}}}),a(),s([d.clientId],o,o,l(e,t)))}})}function gvt({validateDrag:e,onDragEnter:t,onDragLeave:o,onDrop:r}){let{getDraggedBlockClientIds:n}=(0,Sb.useSelect)(P);return(0,TNe.__experimentalUseDropZone)({onDragEnter(){let[i]=n();i&&e(i)&&t(i)},onDragLeave(){o()},onDrop(){let[i]=n();i&&e(i)&&r(i)}})}var PNe=c(Q(),1),GI=c(D(),1);var dF=c(T(),1);function Koe({clientId:e,bounds:t,onChange:o,parentLayout:r}){let n=eo(e),i=n?.parentElement,{isManualPlacement:s}=r;return!n||!i?null:(0,dF.jsx)(hvt,{clientId:e,bounds:t,blockElement:n,rootBlockElement:i,onChange:o,isManualGrid:s&&window.__experimentalEnableGridInteractivity})}function hvt({clientId:e,bounds:t,blockElement:o,rootBlockElement:r,onChange:n,isManualGrid:i}){let[s,a]=(0,GI.useState)(null),[l,d]=(0,GI.useState)({top:!1,bottom:!1,left:!1,right:!1});(0,GI.useEffect)(()=>{let m=new window.ResizeObserver(()=>{let g=o.getBoundingClientRect(),h=r.getBoundingClientRect(),b=g.top>h.top,v=g.bottom<h.bottom,_=g.left>h.left,y=g.right<h.right;d({top:(i||!v)&&b,bottom:v,left:(i||!y)&&_,right:y})});return m.observe(o),()=>m.disconnect()},[o,r,i]);let u={right:"left",left:"right"},f={top:"flex-end",bottom:"flex-start"},p={display:"flex",justifyContent:"center",alignItems:"center",...u[s]&&{justifyContent:u[s]},...f[s]&&{alignItems:f[s]}};return(0,dF.jsx)(Zl,{className:"block-editor-grid-item-resizer",clientId:e,__unstablePopoverSlot:"__unstable-block-tools-after",additionalStyles:p,children:(0,dF.jsx)(PNe.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:m,pointerId:g})=>{m.setPointerCapture(g)},onResizeStart:(m,g)=>{a(g)},onResizeStop:(m,g,h)=>{let b=parseFloat(dn(r,"column-gap")),v=parseFloat(dn(r,"row-gap")),_=HI(dn(r,"grid-template-columns"),b),y=HI(dn(r,"grid-template-rows"),v),w=new window.DOMRect(o.offsetLeft+h.offsetLeft,o.offsetTop+h.offsetTop,h.offsetWidth,h.offsetHeight),x=Rm(_,w.left)+1,k=Rm(y,w.top)+1,C=Rm(_,w.right,"end")+1,S=Rm(y,w.bottom,"end")+1;n({columnSpan:C-x+1,rowSpan:S-k+1,columnStart:i?x:void 0,rowStart:i?k:void 0})}})})}var Ic=c(X(),1),uF=c(Q(),1);var BNe=c(oe(),1),ONe=c(ue(),1);var ts=c(T(),1);function qoe({layout:e,parentLayout:t,onChange:o,gridClientId:r,blockClientId:n}){let{moveBlocksToPosition:i,__unstableMarkNextChangeAsNotPersistent:s}=(0,BNe.useDispatch)(P),a=e?.columnStart??1,l=e?.rowStart??1,d=e?.columnSpan??1,u=e?.rowSpan??1,f=a+d-1,p=l+u-1,m=t?.columnCount,g=t?.rowCount,h=Iy(r,m);return(0,ts.jsx)(Jo,{group:"parent",children:(0,ts.jsxs)(uF.ToolbarGroup,{className:"block-editor-grid-item-mover__move-button-container",children:[(0,ts.jsx)("div",{className:"block-editor-grid-item-mover__move-horizontal-button-container is-left",children:(0,ts.jsx)($I,{icon:(0,Ic.isRTL)()?yr:ai,label:(0,Ic.__)("Move left"),description:(0,Ic.__)("Move left"),isDisabled:a<=1,onClick:()=>{o({columnStart:a-1}),s(),i([n],r,r,h(a-1,l))}})}),(0,ts.jsxs)("div",{className:"block-editor-grid-item-mover__move-vertical-button-container",children:[(0,ts.jsx)($I,{className:"is-up-button",icon:Zb,label:(0,Ic.__)("Move up"),description:(0,Ic.__)("Move up"),isDisabled:l<=1,onClick:()=>{o({rowStart:l-1}),s(),i([n],r,r,h(a,l-1))}}),(0,ts.jsx)($I,{className:"is-down-button",icon:Tn,label:(0,Ic.__)("Move down"),description:(0,Ic.__)("Move down"),isDisabled:g&&p>=g,onClick:()=>{o({rowStart:l+1}),s(),i([n],r,r,h(a,l+1))}})]}),(0,ts.jsx)("div",{className:"block-editor-grid-item-mover__move-horizontal-button-container is-right",children:(0,ts.jsx)($I,{icon:(0,Ic.isRTL)()?ai:yr,label:(0,Ic.__)("Move right"),description:(0,Ic.__)("Move right"),isDisabled:m&&f>=m,onClick:()=>{o({columnStart:a+1}),s(),i([n],r,r,h(a+1,l))}})})]})})}function $I({className:e,icon:t,label:o,isDisabled:r,onClick:n,description:i}){let a=`block-editor-grid-item-mover-button__description-${(0,ONe.useInstanceId)($I)}`;return(0,ts.jsxs)(ts.Fragment,{children:[(0,ts.jsx)(uF.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,ts.jsx)(Et,{id:a,children:i})]})}var YI=c(oe(),1),pF=c(D(),1),fF=c(ue(),1);function Xoe({clientId:e}){let{gridLayout:t,blockOrder:o,selectedBlockLayout:r}=(0,YI.useSelect)(p=>{let{getBlockAttributes:m,getBlockOrder:g}=p(P),h=p(P).getSelectedBlock();return{gridLayout:m(e).layout??{},blockOrder:g(e),selectedBlockLayout:h?.attributes.style?.layout}},[e]),{getBlockAttributes:n,getBlockRootClientId:i}=(0,YI.useSelect)(P),{updateBlockAttributes:s,__unstableMarkNextChangeAsNotPersistent:a}=(0,YI.useDispatch)(P),l=(0,pF.useMemo)(()=>r?new Ud(r):null,[r]),d=(0,fF.usePrevious)(l),u=(0,fF.usePrevious)(t.isManualPlacement),f=(0,fF.usePrevious)(o);(0,pF.useEffect)(()=>{let p={};if(t.isManualPlacement){let m=[];for(let h of o){let{columnStart:b,rowStart:v,columnSpan:_=1,rowSpan:y=1}=n(h).style?.layout??{};!b||!v||m.push(new Ud({columnStart:b,rowStart:v,columnSpan:_,rowSpan:y}))}for(let h of o){let b=n(h),{columnStart:v,rowStart:_,columnSpan:y=1,rowSpan:w=1}=b.style?.layout??{};if(v&&_)continue;let[x,k]=bvt(m,t.columnCount,y,w,d?.columnEnd,d?.rowEnd);m.push(new Ud({columnStart:x,rowStart:k,columnSpan:y,rowSpan:w})),p[h]={style:{...b.style,layout:{...b.style?.layout,columnStart:x,rowStart:k}}}}let g=Math.max(...m.map(h=>h.rowEnd));(!t.rowCount||t.rowCount<g)&&(p[e]={layout:{...t,rowCount:g}});for(let h of f??[])if(!o.includes(h)){let b=i(h);if(b===null||n(b)?.layout?.type==="grid")continue;let _=n(h),{columnStart:y,rowStart:w,columnSpan:x,rowSpan:k,...C}=_.style?.layout??{};if(y||w||x||k){let S=Object.keys(C).length===0;p[h]=Ge(_,["style","layout"],S?void 0:C)}}}else{if(u===!0)for(let m of o){let g=n(m),{columnStart:h,rowStart:b,...v}=g.style?.layout??{};if(h||b){let _=Object.keys(v).length===0;p[m]=Ge(g,["style","layout"],_?void 0:v)}}t.rowCount&&(p[e]={layout:{...t,rowCount:void 0}})}Object.keys(p).length&&(a(),s(Object.keys(p),p,!0))},[e,t,f,o,d,u,a,n,i,s])}function bvt(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 Ud({columnStart:a,rowStart:s,columnSpan:o,rowSpan:r});if(!e.some(d=>d.intersectsRect(l)))return[a,s]}}var Im=c(T(),1),{getResponsiveMediaQueries:_vt}=Z(Ro),vvt={},Cb={fit:"fit",grow:"fill",max:"fixed",fixed:"fixedNoShrink"},yvt=[Cb.max,Cb.fixed];function MNe(e){return yvt.includes(e)}function LNe({selector:e,declarations:t}){return`${e} { | |
| 222 | 223 | ${Object.entries(t).map(([o,r])=>`${o}: ${r}`).join("; ")}; |
| 223 | - }`}function gVe({selector:e,layout:t={},viewportOverrides:o,parentLayout:r={},includeContainerQuery:n=!0}){let i=o!==void 0,s=i?{...t,...o}:t,a=_=>Object.hasOwn(o||{},_),{selfStretch:l,flexSize:u,columnStart:d,rowStart:f,columnSpan:p,rowSpan:m}=s,g=t.selfStretch,{columnCount:h,minimumColumnWidth:b}=r,v=[],y={};if((!i||a("selfStretch")||a("flexSize"))&&(i&&(l===Qh.fit||l===Qh.grow)&&dVe(g)&&t.flexSize&&(y["flex-basis"]="unset",g===Qh.fixed&&(y["flex-shrink"]="unset")),dVe(l)&&u?(y["flex-basis"]=u,l===Qh.fixed?y["flex-shrink"]="0":i&&g===Qh.fixed&&(y["flex-shrink"]="unset"),y["box-sizing"]="border-box"):l===Qh.grow&&(y["flex-grow"]="1")),(!i||a("columnStart")||a("columnSpan"))&&(d&&p?y["grid-column"]=`${d} / span ${p}`:d?y["grid-column"]=`${d}`:p&&(y["grid-column"]=`span ${p}`)),(!i||a("rowStart")||a("rowSpan"))&&(f&&m?y["grid-row"]=`${f} / span ${m}`:f?y["grid-row"]=`${f}`:m&&(y["grid-row"]=`span ${m}`)),Object.keys(y).length&&v.push({selector:e,declarations:y}),n&&!i&&(p||d)&&(b||!h)){let _=parseFloat(b);isNaN(_)&&(_=12);let w=b?.replace(_,"");["px","rem","em"].includes(w)||(w="rem");let k=2;p&&d?k=p+d-1:p?k=p:k=d;let x=w==="px"?24:1.5,S=k*_+(k-1)*x,C=_*2+x-1,R=p&&p>1?"1/-1":"auto";v.push({rulesGroup:`@container (max-width: ${Math.max(S,C)}${w})`,selector:e,declarations:{"grid-column":R,"grid-row":"auto"}})}return v}function Ift({selector:e,layout:t={},parentLayout:o={},includeContainerQuery:r=!0}){return gVe({selector:e,layout:t,parentLayout:o,includeContainerQuery:r}).map(n=>{let i=mVe(n);return n.rulesGroup?`${n.rulesGroup} { | |
| 224 | + }`}function DNe({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:d,columnStart:u,rowStart:f,columnSpan:p,rowSpan:m}=s,g=t.selfStretch,{columnCount:h,minimumColumnWidth:b}=r,v=[],_={};if((!i||a("selfStretch")||a("flexSize"))&&(i&&(l===Cb.fit||l===Cb.grow)&&MNe(g)&&t.flexSize&&(_["flex-basis"]="unset",g===Cb.fixed&&(_["flex-shrink"]="unset")),MNe(l)&&d?(_["flex-basis"]=d,l===Cb.fixed?_["flex-shrink"]="0":i&&g===Cb.fixed&&(_["flex-shrink"]="unset"),_["box-sizing"]="border-box"):l===Cb.grow&&(_["flex-grow"]="1")),(!i||a("columnStart")||a("columnSpan"))&&(u&&p?_["grid-column"]=`${u} / span ${p}`:u?_["grid-column"]=`${u}`:p&&(_["grid-column"]=`span ${p}`)),(!i||a("rowStart")||a("rowSpan"))&&(f&&m?_["grid-row"]=`${f} / span ${m}`:f?_["grid-row"]=`${f}`:m&&(_["grid-row"]=`span ${m}`)),Object.keys(_).length&&v.push({selector:e,declarations:_}),n&&!i&&(p||u)&&(b||!h)){let y=parseFloat(b);isNaN(y)&&(y=12);let w=b?.replace(y,"");["px","rem","em"].includes(w)||(w="rem");let x=2;p&&u?x=p+u-1:p?x=p:x=u;let k=w==="px"?24:1.5,C=x*y+(x-1)*k,S=y*2+k-1,R=p&&p>1?"1/-1":"auto";v.push({rulesGroup:`@container (max-width: ${Math.max(C,S)}${w})`,selector:e,declarations:{"grid-column":R,"grid-row":"auto"}})}return v}function wvt({selector:e,layout:t={},parentLayout:o={},includeContainerQuery:r=!0}){return DNe({selector:e,layout:t,parentLayout:o,includeContainerQuery:r}).map(n=>{let i=LNe(n);return n.rulesGroup?`${n.rulesGroup} { | |
| 224 | 225 | ${i} |
| 225 | - }`:i}).join("")}function Pft({style:e={},selector:t,parentLayout:o={},viewportSettings:r}){let n=e?.layout??{};return Object.entries(Tft(r)).map(([i,s])=>{let a=Ao(e,{viewport:i,pseudo:ta.pseudo})?.layout;if(!a||!Object.keys(a).length)return"";let u=gVe({selector:t,layout:n,viewportOverrides:a,parentLayout:o,includeContainerQuery:!1}).map(mVe).join("");return u?`${s}{${u}}`:""}).filter(Boolean).join("")}function Oft(e,t,o){if(!vi(o))return{...e,layout:{...e?.layout,...t}};let r={viewport:o.viewport,pseudo:ta.pseudo},n=Ao(e,r);return _n(e,r,{...n,layout:{...n?.layout,...t}})}function Aft({style:e}){let{shouldRenderChildLayoutStyles:t,viewportSettings:o}=(0,S8.useSelect)(p=>{let m=p(B).getSettings();return{shouldRenderChildLayoutStyles:!m.disableLayoutStyles,viewportSettings:m?.__experimentalFeatures?.viewport}}),r=e?.layout??{},{columnStart:n,rowStart:i,columnSpan:s,rowSpan:a}=r,l=Ib()||{},u=(0,fVe.useInstanceId)(Rft),d=`.wp-container-content-${u}`,f="";if(t&&(f=[Ift({selector:d,layout:r,parentLayout:l}),Pft({style:e,selector:d,parentLayout:l,viewportSettings:o})].join("")),Dl({css:f}),!!f)return{className:`wp-container-content-${u}`}}function Mft({clientId:e,style:t,setAttributes:o}){let r=Ib()||{},{type:n="default",allowSizingOnChildren:i=!1,isManualPlacement:s}=r;return n!=="grid"?null:(0,rm.jsx)(Nft,{clientId:e,style:t,setAttributes:o,allowSizingOnChildren:i,isManualPlacement:s,parentLayout:r})}function Nft({clientId:e,style:t,setAttributes:o,allowSizingOnChildren:r,isManualPlacement:n,parentLayout:i}){let{rootClientId:s,isVisible:a,parentBlockVisibility:l,blockBlockVisibility:u,deviceType:d,viewportSettings:f,isChildBlockAGrid:p,selectedState:m}=(0,S8.useSelect)(E=>{let{getBlockRootClientId:I,getBlockEditingMode:O,getTemplateLock:A,getBlockAttributes:P,getSettings:L,getSelectedBlockStyleState:H}=G(E(B)),N=I(e);if(A(N)||O(N)!=="default")return{rootClientId:N,isVisible:!1};let M=P(N),V=P(e),j=L(),D=j?.[tl]?.toLowerCase()||fn.desktop.key;return{rootClientId:N,isVisible:!0,parentBlockVisibility:M?.metadata?.blockVisibility,blockBlockVisibility:V?.metadata?.blockVisibility,deviceType:D,viewportSettings:j?.__experimentalFeatures?.viewport,isChildBlockAGrid:V?.layout?.type==="grid",selectedState:H(e)}},[e]),h=Zt(e)?.ownerDocument?.defaultView,b=h===null?void 0:h,{isBlockCurrentlyHidden:v,currentViewport:y}=ml({blockVisibility:l,deviceType:d,view:b,viewportSettings:f}),_=(0,S8.useSelect)(E=>{if(!s)return!1;let{isBlockParentHiddenAtViewport:I}=G(E(B));return I(s,y)},[s,y]),{isBlockCurrentlyHidden:w}=ml({blockVisibility:u,deviceType:d,view:b,viewportSettings:f}),[k,x]=(0,pVe.useState)(),S=p?e:void 0;if(!a||v||_)return null;let C=r&&!w;function R(E){o({style:Oft(t,E,m)})}return(0,rm.jsxs)(rm.Fragment,{children:[(0,rm.jsx)(dB,{clientId:s,contentRef:x,parentLayout:i,childGridClientId:S}),C&&(0,rm.jsx)(oee,{clientId:e,bounds:k,onChange:R,parentLayout:i}),n&&window.__experimentalEnableGridInteractivity&&(0,rm.jsx)(ree,{layout:t?.layout,parentLayout:i,onChange:R,gridClientId:s,blockClientId:e})]})}var iee={useBlockProps:Aft,edit:Mft,attributeKeys:["style"],hasSupport(){return!0}};var aee=c(Bo(),1),see=c(ce(),1),hVe="metadata";function Lft(e){return e?.attributes?.[hVe]?.type||(e.attributes={...e.attributes,[hVe]:{type:"object"}}),e}function Dft(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,see.hasBlockSupport)(e.name,"renaming",!0)&&(i.name=n.name),n.blockVisibility!==void 0&&!e.attributes?.metadata?.blockVisibility&&(0,see.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,aee.addFilter)("blocks.registerBlockType","core/metadata/addMetaAttribute",Lft);(0,aee.addFilter)("blocks.switchToBlockType.transformedBlock","core/metadata/addTransforms",Dft);var lee=c(q(),1),C8=c(F(),1),E8=c(Y(),1),T8=c(ce(),1),h0=c(te(),1);var Jh=c(T(),1),Vft={};function Fft({name:e,clientId:t,metadata:{ignoredHookedBlocks:o=[]}={}}){let r=(0,h0.useSelect)(m=>m(T8.store).getBlockTypes(),[]),n=(0,C8.useMemo)(()=>r?.filter(({name:m,blockHooks:g})=>g&&e in g||o.includes(m)),[r,e,o]),i=(0,h0.useSelect)(m=>{let{getBlocks:g,getBlockRootClientId:h,getGlobalBlockCount:b}=m(B),v=h(t),y=n.reduce((_,w)=>{if(b(w.name)===0)return _;let k=w?.blockHooks?.[e],x;switch(k){case"before":case"after":x=g(v);break;case"first_child":case"last_child":x=g(t);break;case void 0:x=[...g(v),...g(t)];break}let S=x?.find(C=>C.name===w.name);return S?{..._,[w.name]:S.clientId}:_},{});return Object.values(y).length>0?y:Vft},[n,e,t]),{getBlockIndex:s,getBlockCount:a,getBlockRootClientId:l}=(0,h0.useSelect)(B),{insertBlock:u,removeBlock:d}=(0,h0.useDispatch)(B);if(!n.length)return null;let f=n.reduce((m,g)=>{let[h]=g.name.split("/");return m[h]||(m[h]=[]),m[h].push(g),m},{}),p=(m,g)=>{let h=s(t),b=a(t),v=l(t);switch(g){case"before":case"after":u(m,g==="after"?h+1:h,v,!1);break;case"first_child":case"last_child":u(m,g==="first_child"?0:b,t,!1);break;case void 0:u(m,h+1,v,!1);break}};return(0,Jh.jsx)(Fe,{children:(0,Jh.jsxs)(E8.PanelBody,{className:"block-editor-hooks__block-hooks",title:(0,lee.__)("Plugins"),initialOpen:!0,children:[(0,Jh.jsx)("p",{className:"block-editor-hooks__block-hooks-helptext",children:(0,lee.__)("Manage the inclusion of blocks added automatically by plugins.")}),Object.keys(f).map(m=>(0,Jh.jsxs)(C8.Fragment,{children:[(0,Jh.jsx)("h3",{children:m}),f[m].map(g=>{let h=g.name in i;return(0,Jh.jsx)(E8.ToggleControl,{checked:h,label:g.title,onChange:()=>{if(!h){let b=g.blockHooks[e];p((0,T8.createBlock)(g.name),b);return}d(i[g.name],!1)}},g.title)})]},m))]})})}var bVe={edit:Fft,attributeKeys:["metadata"],hasSupport(){return!0}};var cee=c(q(),1),yVe=c(ce(),1),b0=c(Y(),1),vVe=c(te(),1),_Ve=c(F(),1),wVe=c(ue(),1);var eb=c(T(),1),zft=()=>(0,wVe.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}},jft=({name:e,metadata:t})=>{let o=(0,_Ve.useContext)(zn),{removeAllBlockBindings:r}=Rf(),n=zft(),{bindableAttributes:i,hasCompatibleFields:s}=(0,vVe.useSelect)(l=>{let{__experimentalBlockBindingsSupportedAttributes:u}=l(B).getSettings(),{getAllBlockBindingsSources:d,getBlockBindingsSourceFieldsList:f}=G(l(yVe.store));return{bindableAttributes:u?.[e],hasCompatibleFields:Object.values(d()).some(p=>f(p,o)?.length>0)}},[e,o]);if(!i||i.length===0)return null;let{bindings:a}=t||{};return a===void 0&&!s?null:(0,eb.jsx)(Fe,{group:"bindings",children:(0,eb.jsxs)(b0.__experimentalToolsPanel,{label:(0,cee.__)("Attributes"),resetAll:()=>{r()},dropdownMenuProps:n,className:"block-editor-bindings__panel",children:[(0,eb.jsx)(b0.__experimentalItemGroup,{isBordered:!0,isSeparated:!0,children:i.map(l=>(0,eb.jsx)(zC,{attribute:l,blockName:e,binding:a?.[l]},l))}),(0,eb.jsx)(b0.__experimentalText,{as:"div",variant:"muted",children:(0,eb.jsx)("p",{children:(0,cee.__)("Attributes connected to custom fields or other dynamic data.")})})]})})},kVe={edit:jft,attributeKeys:["metadata"],hasSupport(e){return!["core/post-date","core/navigation-link","core/navigation-submenu"].includes(e)}};var xVe=c(q(),1),SVe=c(Y(),1),I8=c(te(),1),P8=c(ce(),1),CVe=c(F(),1);var R8=c(te(),1);function B8(e){let{isOpened:t,expandRevision:o}=(0,R8.useSelect)(i=>{let{isListViewPanelOpened:s,getListViewExpandRevision:a}=G(i(B));return{isOpened:s(e),expandRevision:a()}},[e]),{__unstableToggleListViewPanel:r}=(0,R8.useDispatch)(B);return{isOpened:t,expandRevision:o,handleToggle:i=>{r(e,i)}}}var y0=c(T(),1),Hft="listView";function Uft(e){return(0,P8.hasBlockSupport)(e,Hft)}function Wft({clientId:e,name:t}){let{isSelectionWithinCurrentSection:o}=(0,CVe.useContext)(Tn),{isOpened:r,expandRevision:n,handleToggle:i}=B8(e),{openListViewContentPanel:s}=G((0,I8.useDispatch)(B)),{isEnabled:a,hasChildren:l,isNestedListView:u}=(0,I8.useSelect)(m=>{let{getBlockCount:g,getBlockParents:h,shouldRenderBlockListView:b}=G(m(B)),y=h(e,!1).find(_=>b(_));return{isEnabled:b(e),hasChildren:!!g(e),isNestedListView:y}},[e]),f=(0,P8.getBlockType)(t)?.title||t;return!a||u?null:(0,y0.jsx)(Yy,{group:"list",children:(0,y0.jsxs)(SVe.PanelBody,{title:o?f:void 0,opened:r,onToggle:i,children:[!l&&(0,y0.jsx)("p",{className:"block-editor-block-inspector__no-blocks",children:(0,xVe.__)("No items yet.")}),(0,y0.jsx)(FT,{rootClientId:e,isExpanded:!0,description:f,showAppender:!0,onSelect:s},`${e}-${n}`)]})})}var EVe={edit:Wft,hasSupport:Uft,attributeKeys:[],supportsPatternEditing:!0};var TVe=c(Bo(),1),RVe=c(ce(),1);function Gft(e){return e.__experimentalLabel||(0,RVe.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,TVe.addFilter)("blocks.registerBlockType","core/metadata/addLabelCallback",Gft);var BVe=c(ue(),1),IVe=c(Bo(),1),uee=c(te(),1);var bc=c(T(),1);function $ft(e){nee(e)}function Yft({clientId:e,layout:t}){let{isVisible:o,blockVisibility:r,deviceType:n,viewportSettings:i}=(0,uee.useSelect)(p=>{let{isBlockSelected:m,hasSelectedInnerBlock:g,isDraggingBlocks:h,getTemplateLock:b,getBlockEditingMode:v,getBlockAttributes:y,getSettings:_}=p(B);if(!h()&&!m(e)||b(e)||v(e)!=="default"||g(e))return{isVisible:!1};let w=y(e),k=_(),x=k?.[tl]?.toLowerCase()||fn.desktop.key;return{isVisible:!0,blockVisibility:w?.metadata?.blockVisibility,deviceType:x,viewportSettings:k?.__experimentalFeatures?.viewport}},[e]),a=Zt(e)?.ownerDocument?.defaultView,l=a===null?void 0:a,{isBlockCurrentlyHidden:u,currentViewport:d}=ml({blockVisibility:r,deviceType:n,view:l,viewportSettings:i}),f=(0,uee.useSelect)(p=>{if(!o)return!1;let{isBlockParentHiddenAtViewport:m}=G(p(B));return m(e,d)},[e,d,o]);return(0,bc.jsxs)(bc.Fragment,{children:[(0,bc.jsx)($ft,{clientId:e}),o&&!u&&!f&&(0,bc.jsx)(dB,{clientId:e,parentLayout:t})]})}var Kft=(0,BVe.createHigherOrderComponent)(e=>function(o){return o.attributes.layout?.type!=="grid"?(0,bc.jsx)(e,{...o},"edit"):(0,bc.jsxs)(bc.Fragment,{children:[(0,bc.jsx)(Yft,{clientId:o.clientId,layout:o.attributes.layout}),(0,bc.jsx)(e,{...o},"edit")]})},"addGridVisualizerToBlockEdit");(0,IVe.addFilter)("editor.BlockEdit","core/editor/grid-visualizer",Kft);var gB=c(ce(),1),OVe=c(Y(),1),AVe=c(te(),1);var A8=c(F(),1),MVe=c(q(),1);function PVe(e){let t=[],o=[];return Object.entries(e).forEach(([r,n])=>{if(!n.autoGenerateControl)return;let i=qft(r,n);i&&(t.push(i),o.push(r))}),{fields:t,form:{fields:o}}}function qft(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 O8=c(T(),1);function Zft(e){return e?Object.values(e).some(t=>t?.autoGenerateControl):!1}function Xft({name:e,clientId:t,setAttributes:o}){let r=zr(),n=(0,A8.useContext)(zn),i=(0,AVe.useSelect)(u=>{let d=u(B).getBlockAttributes(t);if(!d?.metadata?.bindings)return d;let{getBlockBindingsSource:f}=G(u(gB.store));return Object.entries(d.metadata.bindings).reduce((p,[m,g])=>{let h=f(g.source);if(!h)return p;let b=h.getValues({select:u,context:n,bindings:{[m]:g}});return{...p,...b}},d)},[n,t]),s=(0,gB.getBlockType)(e),{fields:a,form:l}=(0,A8.useMemo)(()=>s?.attributes?PVe(s.attributes):{fields:[],form:{fields:[]}},[s?.attributes]);return r!=="default"||!a||a.length===0?null:(0,O8.jsx)(Fe,{children:(0,O8.jsx)(OVe.PanelBody,{title:(0,MVe.__)("Settings"),children:(0,O8.jsx)(JR,{data:i,fields:a,form:l,onChange:o})})})}var NVe={edit:Xft,attributeKeys:[],hasSupport(e){let t=(0,gB.getBlockType)(e);return Zft(t?.attributes)}};function M8(e){let{style:t}=e,o=t?.dimensions||{},r=Ka({dimensions:o});return{className:o.aspectRatio?"has-aspect-ratio":void 0,style:r}}function N8(e){let t=e.style?.border||{};return{className:gQ(e)||void 0,style:Ka({border:t})}}function dee(e){let{colors:t}=gh(),o=N8(e),{borderColor:r}=e;if(r){let n=Dv({colors:t,namedColor:r});o.style.borderColor=n.color}return o}function fee(e){let t=e.style?.shadow||"";return{style:Ka({shadow:t})}}var pee=c(F(),1);function L8(e){let{backgroundColor:t,textColor:o,gradient:r,style:n}=e,i=el("background-color",t),s=el("color",o),a=L_(r),l=a||n?.color?.gradient,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=Ka({color:d});return{className:u||void 0,style:f}}function mee(e){let{backgroundColor:t,textColor:o,gradient:r}=e,[n,i,s,a,l,u]=je("color.palette.custom","color.palette.theme","color.palette.default","color.gradients.custom","color.gradients.theme","color.gradients.default"),d=(0,pee.useMemo)(()=>[...n||[],...i||[],...s||[]],[n,i,s]),f=(0,pee.useMemo)(()=>[...a||[],...l||[],...u||[]],[a,l,u]),p=L8(e);if(t){let m=Du(d,t);p.style.backgroundColor=m.color}if(r&&(p.style.background=w2(f,r)),o){let m=Du(d,o);p.style.color=m.color}return p}function gee(e){let{style:t}=e,o=t?.spacing||{};return{style:Ka({spacing:o})}}function hee(e,t){let o=e?.style?.typography||{};o={...o,fontSize:bf({size:e?.style?.typography?.fontSize},t)};let r=Ka({typography:o}),n=e?.fontFamily?`has-${Is(e.fontFamily)}-font-family`:"",i=e?.style?.typography?.textAlign?`has-text-align-${e?.style?.typography?.textAlign}`:"";return{className:$(n,i,Pm(e?.fontSize)),style:r}}var D8=c(F(),1);function bee(e){let[t,o]=(0,D8.useState)(e);return(0,D8.useEffect)(()=>{e&&o(e)},[e]),t}tNe([t4,V6,sJ,zJ,f8,g8,ZJ,z6,Eq,rVe,bVe,kVe,iee,xNe,T5e,EVe,NVe].filter(Boolean));oNe([t4,V6,GAe,f8,wQ,D5e,ZJ,SQ,EQ,z6,hQ,g8,Eq,BAe,iee]);rNe([t4,V6,sJ,ENe,zJ,hQ,g8,z6,wQ,f8,SQ,EQ]);var LVe={button:"wp-element-button",caption:"wp-element-caption"},Qft=e=>LVe[e]?LVe[e]:"";var DVe=()=>"";var v0=c(F(),1),hB=c(ce(),1),vee=c(Ar(),1);var VVe=c(T(),1);function _ee(e,t,o){if(e==null||e===!1)return;if(Array.isArray(e))return yee(e,t,o);switch(typeof e){case"string":case"number":return}let{type:r,props:n}=e;switch(r){case v0.StrictMode:case v0.Fragment:return yee(n.children,t,o);case v0.RawHTML:return;case sT.Content:return FVe(t,o);case nR:t.push(n.value);return}switch(typeof r){case"string":return typeof n.children<"u"?yee(n.children,t,o):void 0;case"function":let i=r.prototype&&typeof r.prototype.render=="function"?new r(n).render():r(n);return _ee(i,t,o)}}function yee(e,...t){e=Array.isArray(e)?e:[e];for(let o=0;o<e.length;o++)_ee(e[o],...t)}function FVe(e,t){for(let o=0;o<t.length;o++){let{name:r,attributes:n,innerBlocks:i}=t[o],s=(0,hB.getSaveElement)(r,n,(0,VVe.jsx)(sT.Content,{}));_ee(s,e,i)}}function zVe(e=[]){hB.__unstableGetBlockProps.skipFilters=!0;let t=[];return FVe(t,e),hB.__unstableGetBlockProps.skipFilters=!1,t.map(o=>o instanceof vee.RichTextData?o:vee.RichTextData.fromHTMLString(o))}var jVe=c(Y(),1);var wee=c(T(),1);function HVe({clientId:e,resizableBoxProps:t,...o}){return(0,wee.jsx)(Ml,{clientId:e,__unstablePopoverSlot:"block-toolbar",...o,children:(0,wee.jsx)(jVe.ResizableBox,{...t})})}var yB=c(F(),1),V8=c(te(),1),Au=c(Y(),1),bB=c(q(),1);var yc=c(T(),1);function UVe({rules:e}){let[t,o]=(0,yB.useState)(!1),{clientIds:r,selectPrevious:n,message:i}=(0,V8.useSelect)(g=>G(g(B)).getRemovalPromptData()),{clearBlockRemovalPrompt:s,setBlockRemovalRules:a,privateRemoveBlocks:l}=G((0,V8.useDispatch)(B));if((0,yB.useEffect)(()=>(a(e),()=>{a()}),[e,a]),(0,yB.useEffect)(()=>{o(!1)},[r]),!i)return;let u=typeof i=="object"&&i!==null,d=u?i.description:i,f=u&&i.requireConfirmation,p=f&&!t,m=()=>{l(r,n,!0),s()};return(0,yc.jsx)(Au.Modal,{title:(0,bB.__)("Confirm deletion"),onRequestClose:s,size:"medium",children:(0,yc.jsxs)(Au.__experimentalVStack,{spacing:4,children:[(0,yc.jsxs)("div",{children:[(0,yc.jsx)("p",{children:d}),u&&(i.warning||i.subtext)&&(0,yc.jsxs)("p",{children:[i.warning&&(0,yc.jsx)("strong",{children:i.warning}),i.warning&&i.subtext&&" ",i.subtext]})]}),f&&(0,yc.jsx)(Au.CheckboxControl,{label:(0,bB.__)("I understand the consequences"),checked:t,onChange:o}),(0,yc.jsxs)(Au.__experimentalHStack,{justify:"right",children:[(0,yc.jsx)(Au.Button,{variant:"tertiary",onClick:s,__next40pxDefaultSize:!0,children:(0,bB.__)("Cancel")}),(0,yc.jsx)(Au.Button,{variant:"primary",onClick:m,disabled:p,accessibleWhenDisabled:!0,__next40pxDefaultSize:!0,children:(0,bB.__)("Delete")})]})]})})}var k0=c(F(),1);var _0=c(Y(),1),GVe=c(F(),1),pa=c(q(),1),F8=c(T(),1),WVe=[{value:"fill",label:(0,pa._x)("Fill","Scale option for dimensions control"),help:(0,pa.__)("Fill the space by stretching the content.")},{value:"contain",label:(0,pa._x)("Contain","Scale option for dimensions control"),help:(0,pa.__)("Fit the content to the space without clipping.")},{value:"cover",label:(0,pa._x)("Cover","Scale option for dimensions control"),help:(0,pa.__)("Fill the space by clipping what doesn't fit.")},{value:"none",label:(0,pa._x)("None","Scale option for dimensions control"),help:(0,pa.__)("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,pa._x)("Scale down","Scale option for dimensions control"),help:(0,pa.__)("Scale down the content to fit the space if it is too big. Content that is too small will have additional padding.")}];function $Ve({panelId:e,value:t,onChange:o,options:r=WVe,defaultValue:n=WVe[0].value,isShownByDefault:i=!0}){let s=t??n,a=(0,GVe.useMemo)(()=>r.reduce((l,u)=>(l[u.value]=u.help,l),{}),[r]);return(0,F8.jsx)(_0.__experimentalToolsPanelItem,{label:(0,pa._x)("Scale","Image scaling options"),isShownByDefault:i,hasValue:()=>s!==n,onDeselect:()=>o(n),panelId:e,children:(0,F8.jsx)(_0.__experimentalToggleGroupControl,{label:(0,pa._x)("Scale","Image scaling options"),isBlock:!0,help:a[s],value:s,onChange:o,children:r.map(l=>(0,F8.jsx)(_0.__experimentalToggleGroupControlOption,{...l},l.value))})})}var w0=c(Y(),1),Jv=c(q(),1),nm=c(T(),1);function YVe({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,nm.jsxs)(nm.Fragment,{children:[(0,nm.jsx)(w0.__experimentalToolsPanelItem,{style:{gridColumn:"span 1"},label:(0,Jv.__)("Width"),isShownByDefault:n,hasValue:()=>i!=="",onDeselect:a("width"),panelId:e,children:(0,nm.jsx)(w0.__experimentalUnitControl,{label:(0,Jv.__)("Width"),placeholder:(0,Jv.__)("Auto"),labelPosition:"top",units:r,min:0,value:i,onChange:a("width")})}),(0,nm.jsx)(w0.__experimentalToolsPanelItem,{style:{gridColumn:"span 1"},label:(0,Jv.__)("Height"),isShownByDefault:n,hasValue:()=>s!=="",onDeselect:a("height"),panelId:e,children:(0,nm.jsx)(w0.__experimentalUnitControl,{label:(0,Jv.__)("Height"),placeholder:(0,Jv.__)("Auto"),labelPosition:"top",units:r,min:0,value:s,onChange:a("height")})})]})}var tb=c(T(),1);function Jft({panelId:e,value:t={},onChange:o=()=>{},aspectRatioOptions:r,defaultAspectRatio:n="auto",scaleOptions:i,defaultScale:s="cover",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,p=t.scale===void 0?null:t.scale,m=!!(u&&d),g=(0,k0.useRef)(p),h=(0,k0.useRef)(f);(0,k0.useEffect)(()=>{p&&(g.current=p)},[p]),(0,k0.useEffect)(()=>{m||(h.current=f)},[f,m]);let b=m?"custom":f,v=f||u&&d;return(0,tb.jsxs)(tb.Fragment,{children:[l.includes("aspectRatio")&&(0,tb.jsx)(r6,{panelId:e,options:r,defaultValue:n,value:b,onChange:y=>{let _={...t};y=y==="auto"?null:y,y?_.aspectRatio=y:delete _.aspectRatio,y?_.scale=g.current??s:delete _.scale,y!=="custom"&&u&&d&&delete _.height,o(_)}}),l.includes("widthHeight")&&(0,tb.jsx)(YVe,{panelId:e,units:a,value:{width:u,height:d},onChange:({width:y,height:_})=>{let w={...t};y=y==="auto"?null:y,_=_==="auto"?null:_,y?w.width=y:delete w.width,_?w.height=_:delete w.height,y&&_?delete w.aspectRatio:h.current&&(w.aspectRatio=h.current),!h.current&&!!y!=!!_?delete w.scale:w.scale=g.current??s,o(w)}}),l.includes("scale")&&v&&(0,tb.jsx)($Ve,{panelId:e,options:i,defaultValue:s,value:p,onChange:y=>{let _={...t};y?_.scale=y:delete _.scale,o(_)}})]})}var KVe=Jft;var z8=c(Y(),1),im=c(q(),1),kee=c(T(),1),qVe=[{label:(0,im._x)("Thumbnail","Image size option for resolution control"),value:"thumbnail"},{label:(0,im._x)("Medium","Image size option for resolution control"),value:"medium"},{label:(0,im._x)("Large","Image size option for resolution control"),value:"large"},{label:(0,im._x)("Full Size","Image size option for resolution control"),value:"full"}];function ZVe({panelId:e,value:t,onChange:o,options:r=qVe,defaultValue:n=qVe[0].value,isShownByDefault:i=!0,resetAllFilter:s}){let a=t??n;return(0,kee.jsx)(z8.__experimentalToolsPanelItem,{hasValue:()=>a!==n,label:(0,im.__)("Resolution"),onDeselect:()=>o(n),isShownByDefault:i,panelId:e,resetAllFilter:s,children:(0,kee.jsx)(z8.SelectControl,{label:(0,im.__)("Resolution"),value:a,options:r,onChange:o,help:(0,im.__)("Select the size of the source image.")})})}var e_=c(q(),1),x0=c(Y(),1),QVe=c(te(),1);var Mu=c(q(),1),XVe={a:(0,Mu.__)("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,Mu.__)("The <article> element should represent a self-contained, syndicatable portion of the document."),aside:(0,Mu.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content."),button:(0,Mu.__)("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,Mu.__)("The <div> element should only be used if the block is a design element with no semantic meaning."),footer:(0,Mu.__)("The <footer> element should represent a footer for its nearest sectioning element (e.g.: <section>, <article>, <main> etc.)."),header:(0,Mu.__)("The <header> element should represent introductory content, typically a group of introductory or navigational aids."),main:(0,Mu.__)("The <main> element should be used for the primary content of your document only."),nav:(0,Mu.__)("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,Mu.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element.")};var vB=c(T(),1);function JVe({tagName:e,onChange:t,clientId:o,options:r=[{label:(0,e_.__)("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,QVe.useSelect)(a=>{if(!n)return!1;let{getClientIdsWithDescendants:l,getBlockAttributes:u}=a(B);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,e_.sprintf)((0,e_.__)("%s (Already in use)"),a.label)}:a);return(0,vB.jsxs)(x0.__experimentalVStack,{spacing:2,className:"block-editor-html-element-control",children:[(0,vB.jsx)(x0.SelectControl,{label:(0,e_.__)("HTML element"),options:s,value:e,onChange:t,help:XVe[e]}),e==="main"&&i&&(0,vB.jsx)(x0.Notice,{status:"warning",isDismissible:!1,children:(0,e_.__)("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 sm=c(Y(),1);var S0=c(F(),1),j8=c(q(),1);var ma=c(Y(),1);var e3e=c(Lt(),1);var Za=c(T(),1),{Badge:ept}=G(ma.privateApis);function t3e({title:e,url:t,image:o,badges:r}){return(0,Za.jsxs)(ma.__experimentalHStack,{justify:"space-between",alignment:"top",children:[(0,Za.jsx)(ma.FlexItem,{className:"link-preview-button__content",children:(0,Za.jsxs)(ma.__experimentalHStack,{alignment:"top",children:[o&&(0,Za.jsx)(ma.FlexItem,{className:"link-preview-button__image-container",children:(0,Za.jsx)("img",{className:"link-preview-button__image",src:o,alt:""})}),(0,Za.jsxs)(ma.__experimentalVStack,{className:"link-preview-button__details",alignment:"topLeft",children:[(0,Za.jsx)(ma.__experimentalTruncate,{numberOfLines:1,className:"link-preview-button__title",children:(0,e3e.__unstableStripHTML)(e)}),t&&(0,Za.jsx)(ma.__experimentalTruncate,{numberOfLines:1,className:"link-preview-button__hint",children:t}),r&&r.length>0&&(0,Za.jsx)(ma.__experimentalHStack,{className:"link-preview-button__badges",alignment:"left",children:r.map(n=>(0,Za.jsx)(ept,{intent:n.intent,children:n.label},`${n.label}|${n.intent}`))})]})]})}),(0,Za.jsx)(xt,{icon:Rn,className:"link-preview-button__icon"})]})}var Xa=c(T(),1);function xee({preview:e,onSelect:t,suggestionsQuery:o,label:r,help:n}){let[i,s]=(0,S0.useState)(!1),a=(0,S0.useId)(),l=`link-picker-title-${a}`,u=`link-picker-description-${a}`,d=(0,S0.useRef)(null),{baseControlProps:f,controlProps:p}=(0,sm.useBaseControlProps)({help:n}),m=g=>{if(s(!1),g){let h={url:g.url,kind:g.kind,type:g.type,id:g.id,title:g.title};t(h)}};return(0,Xa.jsxs)(sm.BaseControl,{...f,children:[(0,Xa.jsx)(sm.BaseControl.VisualLabel,{children:r}),(0,Xa.jsxs)(sm.Button,{ref:d,onClick:()=>s(!i),"aria-haspopup":"dialog","aria-expanded":i,"aria-describedby":p["aria-describedby"],variant:"secondary",__next40pxDefaultSize:!0,className:"link-preview-button",children:[r&&(0,Xa.jsxs)(bt,{children:[r,":"]}),(0,Xa.jsx)(t3e,{title:e.title||(0,j8.__)("Add link"),url:e.url,image:e.image,badges:e.badges})]}),i&&(0,Xa.jsx)(sm.Popover,{anchor:d.current,onClose:()=>s(!1),placement:"left-start",offset:36,shift:!0,children:(0,Xa.jsxs)("div",{role:"dialog","aria-labelledby":l,"aria-describedby":u,children:[(0,Xa.jsxs)(bt,{children:[(0,Xa.jsx)("h2",{id:l,children:(0,j8.__)("Select a link")}),(0,Xa.jsx)("p",{id:u,children:(0,j8.__)("Search for and add a link to the navigation item.")})]}),(0,Xa.jsx)(_h,{value:null,onChange:m,suggestionsQuery:o,showInitialSuggestions:!0,forceIsEditingLink:!0,settings:[]})]})})]})}var lf=c(F(),1),H8=c(te(),1),o3e=c(Lt(),1);var C0=c(T(),1),See="wp-inner-block-slot",tpt={type:"default",alignments:[]};function r3e({clientId:e}){let{innerContent:t,order:o,selectedClientIds:r}=(0,H8.useSelect)(l=>{let{getBlock:u,getBlockOrder:d,getSelectedBlockClientIds:f}=l(B);return{innerContent:u(e)?.innerContent,order:d(e),selectedClientIds:f()}},[e]),n=(0,lf.useMemo)(()=>{let l=0;return(t??[]).map(u=>u===null?`<${See} data-slot-index="${l++}" style="display: contents"></${See}>`:u).join("")},[t]),i=(0,lf.useRef)(),[s,a]=(0,lf.useState)([]);return(0,lf.useLayoutEffect)(()=>{let l=i.current;l.innerHTML=(0,o3e.safeHTML)(n),a(Array.from(l.querySelectorAll(See)).sort((u,d)=>Number(u.dataset.slotIndex)-Number(d.dataset.slotIndex)))},[n]),(0,C0.jsxs)(z2,{value:tpt,children:[(0,C0.jsx)("div",{ref:i,className:"block-editor-inner-content",style:{display:"contents"}}),o.map((l,u)=>s[u]?(0,lf.createPortal)((0,C0.jsx)(H8.AsyncModeProvider,{value:!r.includes(l),children:(0,C0.jsx)(GO,{rootClientId:e,clientId:l})}),s[u],l):null)]})}var{getDuotoneFilter:opt}=G(Lo),Cee={};ite(Cee,{...lQ,ExperimentalBlockCanvas:uZ,BlockCanvasCover:YV,ExperimentalBlockEditorProvider:_k,getDuotoneFilter:opt,getRichTextValues:zVe,PrivateQuickInserter:n5,extractWords:C2,getNormalizedSearchTerms:NC,normalizeString:MC,PrivateListView:FT,ResizableBoxPopover:HVe,InspectorControlsLastItem:K6,useHasBlockToolbar:xV,cleanEmptyObject:Xe,getStyleForState:Ao,isDefaultBlockStyleState:qn,setStyleForState:_n,usePrivateStyleOverride:bu,BlockQuickNavigation:G6,LayoutStyle:hne,BlockManager:r4,BlockRemovalWarningModal:UVe,useLayoutClasses:v8,useLayoutStyles:eee,DimensionsTool:KVe,ResolutionTool:ZVe,TabbedSidebar:QD,TextAlignmentControl:qF,usesContextKey:BX,useFlashEditableBlocks:DO,HTMLElementControl:JVe,useZoomOut:QE,globalStylesDataKey:Ps,globalStylesLinksDataKey:c_,selectBlockPatternsKey:um,requiresWrapperOnCopy:XY,PrivateRichText:sR,PrivateInserterLibrary:HQ,reusableBlocksSelectKey:LB,userPatternCategoriesSelectKey:mf,PrivateBlockPopover:Fy,PrivatePublishDateTimePicker:ZQ,useSpacingSizes:MF,useBlockDisplayTitle:ci,BlockStyleVariationOverridesWithConfig:uQ,setBackgroundStyleDefaults:B6,sectionRootClientIdKey:dm,NoteIconSlotFill:eV,NoteIconToolbarSlotFill:hV,mediaEditKey:DB,getMediaSelectKey:VB,deviceTypeKey:tl,isIsolatedEditorKey:fm,isNavigationOverlayContextKey:FB,isNavigationPostEditorKey:pte,mediaUploadOnSuccessKey:O0,mediaSideloadFromUrlKey:mte,openMediaEditorModalKey:gte,useBlockElement:Zt,useBlockElementRef:Mb,LinkPicker:xee,useRemoteUrlData:aF,PrivateBlockContext:Tn,useListViewPanelState:B8,isHashLink:nb,isRelativePath:ib,InnerContent:r3e,useNativeUndo:G_,usesNativeUndo:Eie,isElementVisible:dU});return h3e(rpt);})(); | |
| 226 | + }`:i}).join("")}function xvt({style:e={},selector:t,parentLayout:o={},viewportSettings:r}){let n=e?.layout??{};return Object.entries(_vt(r)).map(([i,s])=>{let a=ho(e,{viewport:i,pseudo:An.pseudo})?.layout;if(!a||!Object.keys(a).length)return"";let d=DNe({selector:t,layout:n,viewportOverrides:a,parentLayout:o,includeContainerQuery:!1}).map(LNe).join("");return d?`${s}{${d}}`:""}).filter(Boolean).join("")}function kvt(e,t,o){if(!vi(o))return{...e,layout:{...e?.layout,...t}};let r={viewport:o.viewport,pseudo:An.pseudo},n=ho(e,r);return Vr(e,r,{...n,layout:{...n?.layout,...t}})}function Svt({style:e}){let{shouldRenderChildLayoutStyles:t,viewportSettings:o}=(0,mF.useSelect)(p=>{let m=p(P).getSettings();return{shouldRenderChildLayoutStyles:!m.disableLayoutStyles,viewportSettings:m?.__experimentalFeatures?.viewport}}),r=e?.layout??{},{columnStart:n,rowStart:i,columnSpan:s,rowSpan:a}=r,l=mg()||{},d=(0,ANe.useInstanceId)(vvt),u=`.wp-container-content-${d}`,f="";if(t&&(f=[wvt({selector:u,layout:r,parentLayout:l}),xvt({style:e,selector:u,parentLayout:l,viewportSettings:o})].join("")),vd({css:f}),!!f)return{className:`wp-container-content-${d}`}}function Cvt({clientId:e,style:t,setAttributes:o}){let r=mg()||{},{type:n="default",allowSizingOnChildren:i=!1,isManualPlacement:s}=r;return n!=="grid"?null:(0,Im.jsx)(Evt,{clientId:e,style:t,setAttributes:o,allowSizingOnChildren:i,isManualPlacement:s,parentLayout:r})}function Evt({clientId:e,style:t,setAttributes:o,allowSizingOnChildren:r,isManualPlacement:n,parentLayout:i}){let{rootClientId:s,isVisible:a,parentBlockVisibility:l,blockBlockVisibility:d,deviceType:u,viewportSettings:f,isChildBlockAGrid:p,selectedState:m}=(0,mF.useSelect)(E=>{let{getBlockRootClientId:I,getBlockEditingMode:B,getTemplateLock:O,getBlockAttributes:M,getSettings:N,getSelectedBlockStyleState:j}=Z(E(P)),V=I(e);if(O(V)||B(V)!=="default")return{rootClientId:V,isVisible:!1};let A=M(V),L=M(e),z=N(),F=z?.[gl]?.toLowerCase()||mn.desktop.key;return{rootClientId:V,isVisible:!0,parentBlockVisibility:A?.metadata?.blockVisibility,blockBlockVisibility:L?.metadata?.blockVisibility,deviceType:F,viewportSettings:z?.__experimentalFeatures?.viewport,isChildBlockAGrid:L?.layout?.type==="grid",selectedState:j(e)}},[e]),h=eo(e)?.ownerDocument?.defaultView,b=h===null?void 0:h,{isBlockCurrentlyHidden:v,currentViewport:_}=Gl({blockVisibility:l,deviceType:u,view:b,viewportSettings:f}),y=(0,mF.useSelect)(E=>{if(!s)return!1;let{isBlockParentHiddenAtViewport:I}=Z(E(P));return I(s,_)},[s,_]),{isBlockCurrentlyHidden:w}=Gl({blockVisibility:d,deviceType:u,view:b,viewportSettings:f}),[x,k]=(0,NNe.useState)(),C=p?e:void 0;if(!a||v||y)return null;let S=r&&!w;function R(E){o({style:kvt(t,E,m)})}return(0,Im.jsxs)(Im.Fragment,{children:[(0,Im.jsx)(WI,{clientId:s,contentRef:k,parentLayout:i,childGridClientId:C}),S&&(0,Im.jsx)(Koe,{clientId:e,bounds:x,onChange:R,parentLayout:i}),n&&window.__experimentalEnableGridInteractivity&&(0,Im.jsx)(qoe,{layout:t?.layout,parentLayout:i,onChange:R,gridClientId:s,blockClientId:e})]})}var Zoe={useBlockProps:Svt,edit:Cvt,attributeKeys:["style"],hasSupport(){return!0}};var Joe=c(To(),1),Qoe=c(ce(),1),VNe="metadata";function Tvt(e){return e?.attributes?.[VNe]?.type||(e.attributes={...e.attributes,[VNe]:{type:"object"}}),e}function Rvt(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,Qoe.hasBlockSupport)(e.name,"renaming",!0)&&(i.name=n.name),n.blockVisibility!==void 0&&!e.attributes?.metadata?.blockVisibility&&(0,Qoe.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,Joe.addFilter)("blocks.registerBlockType","core/metadata/addMetaAttribute",Tvt);(0,Joe.addFilter)("blocks.switchToBlockType.transformedBlock","core/metadata/addTransforms",Rvt);var ere=c(X(),1),gF=c(D(),1),hF=c(Q(),1),bF=c(ce(),1),nS=c(oe(),1);var Eb=c(T(),1),Ivt={};function Pvt({name:e,clientId:t,metadata:{ignoredHookedBlocks:o=[]}={}}){let r=(0,nS.useSelect)(m=>m(bF.store).getBlockTypes(),[]),n=(0,gF.useMemo)(()=>r?.filter(({name:m,blockHooks:g})=>g&&e in g||o.includes(m)),[r,e,o]),i=(0,nS.useSelect)(m=>{let{getBlocks:g,getBlockRootClientId:h,getGlobalBlockCount:b}=m(P),v=h(t),_=n.reduce((y,w)=>{if(b(w.name)===0)return y;let x=w?.blockHooks?.[e],k;switch(x){case"before":case"after":k=g(v);break;case"first_child":case"last_child":k=g(t);break;case void 0:k=[...g(v),...g(t)];break}let C=k?.find(S=>S.name===w.name);return C?{...y,[w.name]:C.clientId}:y},{});return Object.values(_).length>0?_:Ivt},[n,e,t]),{getBlockIndex:s,getBlockCount:a,getBlockRootClientId:l}=(0,nS.useSelect)(P),{insertBlock:d,removeBlock:u}=(0,nS.useDispatch)(P);if(!n.length)return null;let f=n.reduce((m,g)=>{let[h]=g.name.split("/");return m[h]||(m[h]=[]),m[h].push(g),m},{}),p=(m,g)=>{let h=s(t),b=a(t),v=l(t);switch(g){case"before":case"after":d(m,g==="after"?h+1:h,v,!1);break;case"first_child":case"last_child":d(m,g==="first_child"?0:b,t,!1);break;case void 0:d(m,h+1,v,!1);break}};return(0,Eb.jsx)(je,{children:(0,Eb.jsxs)(hF.PanelBody,{className:"block-editor-hooks__block-hooks",title:(0,ere.__)("Plugins"),initialOpen:!0,children:[(0,Eb.jsx)("p",{className:"block-editor-hooks__block-hooks-helptext",children:(0,ere.__)("Manage the inclusion of blocks added automatically by plugins.")}),Object.keys(f).map(m=>(0,Eb.jsxs)(gF.Fragment,{children:[(0,Eb.jsx)("h3",{children:m}),f[m].map(g=>{let h=g.name in i;return(0,Eb.jsx)(hF.ToggleControl,{checked:h,label:g.title,onChange:()=>{if(!h){let b=g.blockHooks[e];p((0,bF.createBlock)(g.name),b);return}u(i[g.name],!1)}},g.title)})]},m))]})})}var FNe={edit:Pvt,attributeKeys:["metadata"],hasSupport(){return!0}};var tre=c(X(),1),zNe=c(ce(),1),iS=c(Q(),1),jNe=c(oe(),1),HNe=c(D(),1),UNe=c(ue(),1);var Tb=c(T(),1),Bvt=()=>(0,UNe.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}},Ovt=({name:e,metadata:t})=>{let o=(0,HNe.useContext)(Oi),{removeAllBlockBindings:r}=yp(),n=Bvt(),{bindableAttributes:i,hasCompatibleFields:s}=(0,jNe.useSelect)(l=>{let{__experimentalBlockBindingsSupportedAttributes:d}=l(P).getSettings(),{getAllBlockBindingsSources:u,getBlockBindingsSourceFieldsList:f}=Z(l(zNe.store));return{bindableAttributes:d?.[e],hasCompatibleFields:Object.values(u()).some(p=>f(p,o)?.length>0)}},[e,o]);if(!i||i.length===0)return null;let{bindings:a}=t||{};return a===void 0&&!s?null:(0,Tb.jsx)(je,{group:"bindings",children:(0,Tb.jsxs)(iS.__experimentalToolsPanel,{label:(0,tre.__)("Attributes"),resetAll:()=>{r()},dropdownMenuProps:n,className:"block-editor-bindings__panel",children:[(0,Tb.jsx)(iS.__experimentalItemGroup,{isBordered:!0,isSeparated:!0,children:i.map(l=>(0,Tb.jsx)(zR,{attribute:l,blockName:e,binding:a?.[l]},l))}),(0,Tb.jsx)(iS.__experimentalText,{as:"div",variant:"muted",children:(0,Tb.jsx)("p",{children:(0,tre.__)("Attributes connected to custom fields or other dynamic data.")})})]})})},WNe={edit:Ovt,attributeKeys:["metadata"],hasSupport(e){return!["core/post-date","core/navigation-link","core/navigation-submenu"].includes(e)}};var GNe=c(X(),1),$Ne=c(Q(),1),yF=c(oe(),1),wF=c(ce(),1),YNe=c(D(),1);var _F=c(oe(),1);function vF(e){let{isOpened:t,expandRevision:o}=(0,_F.useSelect)(i=>{let{isListViewPanelOpened:s,getListViewExpandRevision:a}=Z(i(P));return{isOpened:s(e),expandRevision:a()}},[e]),{__unstableToggleListViewPanel:r}=(0,_F.useDispatch)(P);return{isOpened:t,expandRevision:o,handleToggle:i=>{r(e,i)}}}var sS=c(T(),1),Mvt="listView";function Avt(e){return(0,wF.hasBlockSupport)(e,Mvt)}function Nvt({clientId:e,name:t}){let{isSelectionWithinCurrentSection:o}=(0,YNe.useContext)(si),{isOpened:r,expandRevision:n,handleToggle:i}=vF(e),{openListViewContentPanel:s}=Z((0,yF.useDispatch)(P)),{isEnabled:a,hasChildren:l,isNestedListView:d}=(0,yF.useSelect)(m=>{let{getBlockCount:g,getBlockParents:h,shouldRenderBlockListView:b}=Z(m(P)),_=h(e,!1).find(y=>b(y));return{isEnabled:b(e),hasChildren:!!g(e),isNestedListView:_}},[e]),f=(0,wF.getBlockType)(t)?.title||t;return!a||d?null:(0,sS.jsx)(o2,{group:"list",children:(0,sS.jsxs)($Ne.PanelBody,{title:o?f:void 0,opened:r,onToggle:i,children:[!l&&(0,sS.jsx)("p",{className:"block-editor-block-inspector__no-blocks",children:(0,GNe.__)("No items yet.")}),(0,sS.jsx)(M2,{rootClientId:e,isExpanded:!0,description:f,showAppender:!0,onSelect:s},`${e}-${n}`)]})})}var KNe={edit:Nvt,hasSupport:Avt,attributeKeys:[],supportsPatternEditing:!0};var qNe=c(To(),1),XNe=c(ce(),1);function Lvt(e){return e.__experimentalLabel||(0,XNe.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,qNe.addFilter)("blocks.registerBlockType","core/metadata/addLabelCallback",Lvt);var ZNe=c(ue(),1),QNe=c(To(),1),ore=c(oe(),1);var Pc=c(T(),1);function Dvt(e){Xoe(e)}function Vvt({clientId:e,layout:t}){let{isVisible:o,blockVisibility:r,deviceType:n,viewportSettings:i}=(0,ore.useSelect)(p=>{let{isBlockSelected:m,hasSelectedInnerBlock:g,isDraggingBlocks:h,getTemplateLock:b,getBlockEditingMode:v,getBlockAttributes:_,getSettings:y}=p(P);if(!h()&&!m(e)||b(e)||v(e)!=="default"||g(e))return{isVisible:!1};let w=_(e),x=y(),k=x?.[gl]?.toLowerCase()||mn.desktop.key;return{isVisible:!0,blockVisibility:w?.metadata?.blockVisibility,deviceType:k,viewportSettings:x?.__experimentalFeatures?.viewport}},[e]),a=eo(e)?.ownerDocument?.defaultView,l=a===null?void 0:a,{isBlockCurrentlyHidden:d,currentViewport:u}=Gl({blockVisibility:r,deviceType:n,view:l,viewportSettings:i}),f=(0,ore.useSelect)(p=>{if(!o)return!1;let{isBlockParentHiddenAtViewport:m}=Z(p(P));return m(e,u)},[e,u,o]);return(0,Pc.jsxs)(Pc.Fragment,{children:[(0,Pc.jsx)(Dvt,{clientId:e}),o&&!d&&!f&&(0,Pc.jsx)(WI,{clientId:e,parentLayout:t})]})}var Fvt=(0,ZNe.createHigherOrderComponent)(e=>function(o){return o.attributes.layout?.type!=="grid"?(0,Pc.jsx)(e,{...o},"edit"):(0,Pc.jsxs)(Pc.Fragment,{children:[(0,Pc.jsx)(Vvt,{clientId:o.clientId,layout:o.attributes.layout}),(0,Pc.jsx)(e,{...o},"edit")]})},"addGridVisualizerToBlockEdit");(0,QNe.addFilter)("editor.BlockEdit","core/editor/grid-visualizer",Fvt);var s3=c(ce(),1),zVe=c(Q(),1),jVe=c(oe(),1);var rre=c(X(),1);var mr="isAny",gr="isNone",xF="isAll",os="isNotAll",Sn="between",Vs="inThePast",ya="over",Br="is",Or="isNot",Rb="lessThan",Ib="greaterThan",Pb="lessThanOrEqual",Bb="greaterThanOrEqual",Wd="before",Gd="after",$d="beforeInc",Yd="afterInc",vf="contains",yf="notContains",wf="startsWith",Kd="on",qd="notOn";var jHo={asc:(0,rre.__)("Sort ascending"),desc:(0,rre.__)("Sort descending")};var KI=c(D(),1),zvt=[];function wa({elements:e,getElements:t}){let o=Array.isArray(e)&&e.length>0?e:zvt,[r,n]=(0,KI.useState)(o),[i,s]=(0,KI.useState)(!1);return(0,KI.useEffect)(()=>{if(!t){n(o);return}let a=!1;return s(!0),t().then(l=>{if(!a){let d=Array.isArray(l)&&l.length>0?l:o;n(d)}}).catch(()=>{a||n(o)}).finally(()=>{a||s(!1)}),()=>{a=!0}},[t,o]),{elements:r,isLoading:i}}var Ke=c(X(),1),Ur=c(D(),1),qI=c(lc(),1);var jvt=/(?:[Zz]|[+-](?:[01]\d|2[0-3]):?[0-5]\d)$/,Hvt=["HH:mm","HH:mm:ss"],Uvt=new Date(2e3,0,1);function Fs(e){if(typeof e!="string")return null;let t=e.trim().replace(jvt,"");for(let o of Hvt){let r=kbe(t,o,Uvt);if(od(r))return r.getHours()*3600+r.getMinutes()*60+r.getSeconds()}return null}var nre=c(T(),1),un={Name:(0,nre.jsx)("span",{className:"dataviews-filters__summary-filter-text-name"}),Value:(0,nre.jsx)("span",{className:"dataviews-filters__summary-filter-text-value"})};function aS(e,t){let o=Fs(t);return o!==null?[Fs(e)??NaN,o]:[(0,qI.getDate)(e).getTime(),(0,qI.getDate)(t).getTime()]}function JNe(e,t){switch(t){case"days":return $_(new Date,e);case"weeks":return Ibe(new Date,e);case"months":return Y6(new Date,e);case"years":return K6(new Date,e);default:return new Date}}var eLe={label:(0,Ke.__)("Is none of"),filterText:(e,t)=>(0,Ur.createInterpolateElement)((0,Ke.sprintf)((0,Ke.__)("<Name>%1$s is none of: </Name><Value>%2$s</Value>"),e.name,t.map(o=>o.label).join(", ")),un),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"||typeof r=="number"?!o.includes(r):!1}),selection:"multi"},tLe=[{name:mr,label:(0,Ke.__)("Includes"),filterText:(e,t)=>(0,Ur.createInterpolateElement)((0,Ke.sprintf)((0,Ke.__)("<Name>%1$s includes: </Name><Value>%2$s</Value>"),e.name,t.map(o=>o.label).join(", ")),un),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"||typeof r=="number"?o.includes(r):!1},selection:"multi"},{name:gr,...eLe},{name:xF,label:(0,Ke.__)("Includes all"),filterText:(e,t)=>(0,Ur.createInterpolateElement)((0,Ke.sprintf)((0,Ke.__)("<Name>%1$s includes all: </Name><Value>%2$s</Value>"),e.name,t.map(o=>o.label).join(", ")),un),filter(e,t,o){if(!o?.length)return!0;let r=t.getValue({item:e});return Array.isArray(r)?o.every(n=>r.includes(n)):!1},selection:"multi"},{name:os,...eLe},{name:Sn,label:(0,Ke.__)("Between (inc)"),filterText:(e,t)=>(0,Ur.createInterpolateElement)((0,Ke.sprintf)((0,Ke.__)("<Name>%1$s between (inc): </Name><Value>%2$s and %3$s</Value>"),e.name,t[0].label[0],t[0].label[1]),un),filter(e,t,o){if(!Array.isArray(o)||o.length!==2||o.includes(void 0)||o.includes("")||o.includes(null))return!0;let r=t.getValue({item:e}),[n,i]=o.map(Fs);if(n!==null&&i!==null){let s=Fs(r);return s!==null&&s>=n&&s<=i}return typeof r=="number"||r instanceof Date||typeof r=="string"?r>=o[0]&&r<=o[1]:!1},selection:"custom"},{name:Vs,label:(0,Ke.__)("In the past"),filterText:(e,t)=>(0,Ur.createInterpolateElement)((0,Ke.sprintf)((0,Ke.__)("<Name>%1$s is in the past: </Name><Value>%2$s</Value>"),e.name,`${t[0].value.value} ${t[0].value.unit}`),un),filter(e,t,o){if(o?.value===void 0||o?.unit===void 0)return!0;let r=JNe(o.value,o.unit),n=(0,qI.getDate)(t.getValue({item:e}));return n>=r&&n<=new Date},selection:"custom"},{name:ya,label:(0,Ke.__)("Over"),filterText:(e,t)=>(0,Ur.createInterpolateElement)((0,Ke.sprintf)((0,Ke.__)("<Name>%1$s is over: </Name><Value>%2$s</Value>"),e.name,`${t[0].value.value} ${t[0].value.unit}`),un),filter(e,t,o){if(o?.value===void 0||o?.unit===void 0)return!0;let r=JNe(o.value,o.unit);return(0,qI.getDate)(t.getValue({item:e}))<r},selection:"custom"},{name:Br,label:(0,Ke.__)("Is"),filterText:(e,t)=>(0,Ur.createInterpolateElement)((0,Ke.sprintf)((0,Ke.__)("<Name>%1$s is: </Name><Value>%2$s</Value>"),e.name,t[0].label),un),filter(e,t,o){return o===t.getValue({item:e})||o===void 0},selection:"single"},{name:Or,label:(0,Ke.__)("Is not"),filterText:(e,t)=>(0,Ur.createInterpolateElement)((0,Ke.sprintf)((0,Ke.__)("<Name>%1$s is not: </Name><Value>%2$s</Value>"),e.name,t[0].label),un),filter(e,t,o){return o!==t.getValue({item:e})},selection:"single"},{name:Rb,label:(0,Ke.__)("Less than"),filterText:(e,t)=>(0,Ur.createInterpolateElement)((0,Ke.sprintf)((0,Ke.__)("<Name>%1$s is less than: </Name><Value>%2$s</Value>"),e.name,t[0].label),un),filter(e,t,o){return o===void 0?!0:t.getValue({item:e})<o},selection:"single"},{name:Ib,label:(0,Ke.__)("Greater than"),filterText:(e,t)=>(0,Ur.createInterpolateElement)((0,Ke.sprintf)((0,Ke.__)("<Name>%1$s is greater than: </Name><Value>%2$s</Value>"),e.name,t[0].label),un),filter(e,t,o){return o===void 0?!0:t.getValue({item:e})>o},selection:"single"},{name:Pb,label:(0,Ke.__)("Less than or equal"),filterText:(e,t)=>(0,Ur.createInterpolateElement)((0,Ke.sprintf)((0,Ke.__)("<Name>%1$s is less than or equal to: </Name><Value>%2$s</Value>"),e.name,t[0].label),un),filter(e,t,o){return o===void 0?!0:t.getValue({item:e})<=o},selection:"single"},{name:Bb,label:(0,Ke.__)("Greater than or equal"),filterText:(e,t)=>(0,Ur.createInterpolateElement)((0,Ke.sprintf)((0,Ke.__)("<Name>%1$s is greater than or equal to: </Name><Value>%2$s</Value>"),e.name,t[0].label),un),filter(e,t,o){return o===void 0?!0:t.getValue({item:e})>=o},selection:"single"},{name:Wd,label:(0,Ke.__)("Before"),filterText:(e,t)=>(0,Ur.createInterpolateElement)((0,Ke.sprintf)((0,Ke.__)("<Name>%1$s is before: </Name><Value>%2$s</Value>"),e.name,t[0].label),un),filter(e,t,o){if(o===void 0)return!0;let[r,n]=aS(t.getValue({item:e}),o);return r<n},selection:"single"},{name:Gd,label:(0,Ke.__)("After"),filterText:(e,t)=>(0,Ur.createInterpolateElement)((0,Ke.sprintf)((0,Ke.__)("<Name>%1$s is after: </Name><Value>%2$s</Value>"),e.name,t[0].label),un),filter(e,t,o){if(o===void 0)return!0;let[r,n]=aS(t.getValue({item:e}),o);return r>n},selection:"single"},{name:$d,label:(0,Ke.__)("Before (inc)"),filterText:(e,t)=>(0,Ur.createInterpolateElement)((0,Ke.sprintf)((0,Ke.__)("<Name>%1$s is on or before: </Name><Value>%2$s</Value>"),e.name,t[0].label),un),filter(e,t,o){if(o===void 0)return!0;let[r,n]=aS(t.getValue({item:e}),o);return r<=n},selection:"single"},{name:Yd,label:(0,Ke.__)("After (inc)"),filterText:(e,t)=>(0,Ur.createInterpolateElement)((0,Ke.sprintf)((0,Ke.__)("<Name>%1$s is on or after: </Name><Value>%2$s</Value>"),e.name,t[0].label),un),filter(e,t,o){if(o===void 0)return!0;let[r,n]=aS(t.getValue({item:e}),o);return r>=n},selection:"single"},{name:vf,label:(0,Ke.__)("Contains"),filterText:(e,t)=>(0,Ur.createInterpolateElement)((0,Ke.sprintf)((0,Ke.__)("<Name>%1$s contains: </Name><Value>%2$s</Value>"),e.name,t[0].label),un),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:yf,label:(0,Ke.__)("Doesn't contain"),filterText:(e,t)=>(0,Ur.createInterpolateElement)((0,Ke.sprintf)((0,Ke.__)("<Name>%1$s doesn't contain: </Name><Value>%2$s</Value>"),e.name,t[0].label),un),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:wf,label:(0,Ke.__)("Starts with"),filterText:(e,t)=>(0,Ur.createInterpolateElement)((0,Ke.sprintf)((0,Ke.__)("<Name>%1$s starts with: </Name><Value>%2$s</Value>"),e.name,t[0].label),un),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:Kd,label:(0,Ke.__)("On"),filterText:(e,t)=>(0,Ur.createInterpolateElement)((0,Ke.sprintf)((0,Ke.__)("<Name>%1$s is: </Name><Value>%2$s</Value>"),e.name,t[0].label),un),filter(e,t,o){if(o===void 0)return!0;let[r,n]=aS(t.getValue({item:e}),o);return r===n},selection:"single"},{name:qd,label:(0,Ke.__)("Not on"),filterText:(e,t)=>(0,Ur.createInterpolateElement)((0,Ke.sprintf)((0,Ke.__)("<Name>%1$s is not: </Name><Value>%2$s</Value>"),e.name,t[0].label),un),filter(e,t,o){if(o===void 0)return!0;let[r,n]=aS(t.getValue({item:e}),o);return r!==n},selection:"single"}],oLe=e=>tLe.find(t=>t.name===e),rLe=()=>tLe.map(e=>e.name);var _Le=c(D(),1);var kF=c(D(),1),nLe=c(ue(),1),iLe=c(Q(),1);var ire=c(T(),1),Wvt=({required:e,customValidity:t,markWhenOptional:o,...r},n)=>{let i=(0,kF.useRef)(null),s=(0,nLe.useMergeRefs)([n,i]);return(0,ire.jsx)(Lr,{className:"dataviews-validated-control",required:e,markWhenOptional:o,ref:s,customValidity:t,getValidityTarget:()=>i.current?.querySelector('input[type="checkbox"]'),children:(0,ire.jsx)(iLe.CheckboxControl,{...r})})},SF=(0,kF.forwardRef)(Wvt);SF.displayName="ValidatedCheckboxControl";var lS=c(D(),1),sLe=c(ue(),1),aLe=c(Q(),1);var sre=c(T(),1),Gvt=({required:e,customValidity:t,markWhenOptional:o,...r},n)=>{let i=(0,lS.useRef)(null),s=(0,sLe.useMergeRefs)([n,i]);return(0,lS.useEffect)(()=>{let a=i.current?.querySelector('input[role="combobox"]');a&&(a.required=e??!1)},[e]),(0,sre.jsx)(Lr,{className:"dataviews-validated-control",required:e,markWhenOptional:o,ref:s,customValidity:t,getValidityTarget:()=>i.current?.querySelector('input[role="combobox"]'),children:(0,sre.jsx)(aLe.ComboboxControl,{...r})})},CF=(0,lS.forwardRef)(Gvt);CF.displayName="ValidatedComboboxControl";var EF=c(D(),1),lLe=c(Q(),1);var cS=c(T(),1),$vt=({required:e,customValidity:t,markWhenOptional:o,...r},n)=>{let i=(0,EF.useRef)(null);return(0,cS.jsxs)("div",{className:"dataviews-validated-control__wrapper-with-error-delegate",ref:n,children:[(0,cS.jsx)(Lr,{className:"dataviews-validated-control",required:e,markWhenOptional:o,customValidity:t,getValidityTarget:()=>i.current,children:(0,cS.jsx)(lLe.FormTokenField,{...r})}),(0,cS.jsx)("input",{className:"dataviews-validated-control__error-delegate",type:"text",ref:i,required:e,value:r.value&&r.value.length>0?"hasvalue":"",tabIndex:-1,onChange:()=>{},onFocus:s=>{s.target.previousElementSibling?.querySelector('input[type="text"]')?.focus()}})]})},TF=(0,EF.forwardRef)($vt);TF.displayName="ValidatedFormTokenField";var RF=c(D(),1),cLe=c(ue(),1),dLe=c(Q(),1);var are=c(T(),1),Yvt=({required:e,customValidity:t,markWhenOptional:o,...r},n)=>{let i=(0,RF.useRef)(null),s=(0,cLe.useMergeRefs)([n,i]);return(0,are.jsx)(Lr,{className:"dataviews-validated-control",required:e,markWhenOptional:o,customValidity:t,getValidityTarget:()=>i.current,children:(0,are.jsx)(dLe.__experimentalNumberControl,{ref:s,...r})})},IF=(0,RF.forwardRef)(Yvt);IF.displayName="ValidatedNumberControl";var PF=c(D(),1),uLe=c(ue(),1),fLe=c(Q(),1);var lre=c(T(),1),Kvt=({required:e,customValidity:t,markWhenOptional:o,...r},n)=>{let i=(0,PF.useRef)(null),s=(0,uLe.useMergeRefs)([n,i]);return(0,lre.jsx)(Lr,{className:"dataviews-validated-control",required:e,markWhenOptional:o,ref:s,customValidity:t,getValidityTarget:()=>i.current?.querySelector('input[type="radio"]'),children:(0,lre.jsx)(fLe.RadioControl,{...r})})},BF=(0,PF.forwardRef)(Kvt);BF.displayName="ValidatedRadioControl";var OF=c(D(),1),pLe=c(ue(),1),mLe=c(Q(),1);var cre=c(T(),1),qvt=({required:e,customValidity:t,markWhenOptional:o,...r},n)=>{let i=(0,OF.useRef)(null),s=(0,pLe.useMergeRefs)([n,i]);return(0,cre.jsx)(Lr,{className:"dataviews-validated-control",required:e,markWhenOptional:o,customValidity:t,getValidityTarget:()=>i.current,children:(0,cre.jsx)(mLe.SelectControl,{ref:s,...r})})},MF=(0,OF.forwardRef)(qvt);MF.displayName="ValidatedSelectControl";var AF=c(D(),1),gLe=c(ue(),1),hLe=c(Q(),1);var dre=c(T(),1),Xvt=({required:e,customValidity:t,markWhenOptional:o,...r},n)=>{let i=(0,AF.useRef)(null),s=(0,gLe.useMergeRefs)([n,i]);return(0,dre.jsx)(Lr,{className:"dataviews-validated-control",required:e,markWhenOptional:o,customValidity:t,getValidityTarget:()=>i.current,children:(0,dre.jsx)(hLe.ToggleControl,{ref:s,required:e,...r})})},NF=(0,AF.forwardRef)(Xvt);NF.displayName="ValidatedToggleControl";var uS=c(D(),1),bLe=c(Q(),1);var dS=c(T(),1),Zvt=({required:e,customValidity:t,markWhenOptional:o,...r},n)=>{let i=(0,uS.useRef)(null),s=(0,uS.useId)();return(0,dS.jsxs)("div",{className:"dataviews-validated-control__wrapper-with-error-delegate",children:[(0,dS.jsx)(Lr,{className:"dataviews-validated-control",required:e,markWhenOptional:o,customValidity:t,getValidityTarget:()=>i.current,children:(0,dS.jsx)(bLe.__experimentalToggleGroupControl,{ref:n,...r})}),(0,dS.jsx)("input",{className:"dataviews-validated-control__error-delegate",type:"radio",ref:i,required:e,checked:r.value!==void 0,tabIndex:-1,name:s,onChange:()=>{},onFocus:a=>{a.target.previousElementSibling?.querySelector('[data-active-item="true"]')?.focus()}})]})},LF=(0,uS.forwardRef)(Zvt);LF.displayName="ValidatedToggleGroupControl";function Eo(e,t){let o;return e?.required&&t?.required?o=t.required.message?{type:t.required.type,message:t.required.message}: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 vLe=c(T(),1);function yLe({field:e,onChange:t,data:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{getValue:s,setValue:a,label:l,description:d,isValid:u}=e,f=e.isDisabled({item:o,field:e}),p=(0,_Le.useCallback)(()=>{t(a({item:o,value:!s({item:o})}))},[o,s,t,a]);return(0,vLe.jsx)(SF,{required:!!e.isValid?.required,markWhenOptional:n,customValidity:Eo(u,i),hidden:r,label:l,help:d,checked:s({item:o}),onChange:p,disabled:f})}var wLe=c(Q(),1),xLe=c(D(),1);var ure=c(T(),1);function DF({data:e,field:t,onChange:o,hideLabelFromVision:r,validity:n}){let{label:i,description:s,placeholder:a,getValue:l,setValue:d,isValid:u}=t,f=l({item:e})??"",p=(0,xLe.useCallback)(h=>o(d({item:e,value:h??""})),[e,o,d]),{elements:m,isLoading:g}=wa({elements:t.elements,getElements:t.getElements});return g?(0,ure.jsx)(wLe.Spinner,{}):(0,ure.jsx)(CF,{required:!!t.isValid?.required,customValidity:Eo(u,n),label:i,value:f,help:s,placeholder:a,options:m,onChange:p,hideLabelFromVision:r,allowReset:!0,expandOnFocus:!0})}var TLe=c(Q(),1),Bc=c(D(),1),gS=c(X(),1),RLe=c(zo(),1),xa=c(lc(),1);var pS=c(Q(),1),fre=c(D(),1),xf=c(X(),1);var fS=c(T(),1),Qvt={[Vs]:[{value:"days",label:(0,xf.__)("Days")},{value:"weeks",label:(0,xf.__)("Weeks")},{value:"months",label:(0,xf.__)("Months")},{value:"years",label:(0,xf.__)("Years")}],[ya]:[{value:"days",label:(0,xf.__)("Days ago")},{value:"weeks",label:(0,xf.__)("Weeks ago")},{value:"months",label:(0,xf.__)("Months ago")},{value:"years",label:(0,xf.__)("Years ago")}]};function VF({className:e,data:t,field:o,onChange:r,hideLabelFromVision:n,operator:i}){let s=Qvt[i===Vs?"inThePast":"over"],{id:a,label:l,description:d,getValue:u,setValue:f}=o,p=o.isDisabled({item:t,field:o}),m=u({item:t}),{value:g="",unit:h=s[0].value}=m&&typeof m=="object"?m:{},b=(0,fre.useCallback)(_=>r(f({item:t,value:{value:Number(_),unit:h}})),[r,f,t,h]),v=(0,fre.useCallback)(_=>r(f({item:t,value:{value:g,unit:_}})),[r,f,t,g]);return(0,fS.jsx)(pS.BaseControl,{id:a,className:U(e,"dataviews-controls__relative-date"),label:l,hideLabelFromVision:n,help:d,children:(0,fS.jsxs)(De,{direction:"row",gap:"sm",children:[(0,fS.jsx)(pS.__experimentalNumberControl,{className:"dataviews-controls__relative-date-number",spinControls:"none",min:1,step:1,value:g,onChange:b,disabled:p}),(0,fS.jsx)(pS.SelectControl,{className:"dataviews-controls__relative-date-unit",label:(0,xf.__)("Unit"),value:h,options:s,onChange:v,hideLabelFromVision:!0,disabled:p})]})})}function XI(e,t){return t?new Zr(e,t):e}var kLe=c(D(),1);function ZI(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,kLe.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 Jvt={ary:"ar-MA",haz:"fa"};function QI(e){let t=e?.trim().split(/[_-]/)??[],o=t.shift()?.toLowerCase();if(!o)return;let r=[Jvt[o]??o];for(let n of t)(/^[a-z]{4}$/i.test(n)||/^([a-z]{2}|\d{3})$/i.test(n))&&r.push(n);return r.join("-")}var SLe=c(lc(),1),JI=c(X(),1);function CLe(){let{timezone:e}=(0,SLe.getSettings)(),t=-1*(new Date().getTimezoneOffset()/60);if(Number(e.offset)===t)return;let o=Number(e.offset)>=0?"+":"",r=e.abbr!==""&&isNaN(Number(e.abbr))?e.abbr:`UTC${o}${e.offsetFormatted}`,n=e.string.replaceAll("_"," "),i=r;return e.string==="UTC"?i=(0,JI.__)("Coordinated Universal Time"):n.trim().length>0&&(i=`(${r}) ${n}`),(0,JI.sprintf)((0,JI.__)("Timezone: %s"),i)}var ELe=c(lc(),1);function mS(e){if(!e)return null;let t=(0,ELe.getDate)(e);return t&&od(t)?t:null}var Ob=c(T(),1),pre=e=>e?(0,xa.dateI18n)("Y-m-d\\TH:i",(0,xa.getDate)(e)):"";function eyt({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i,config:s}){let{compact:a}=s||{},{id:l,label:d,description:u,setValue:f,getValue:p,isValid:m}=t,g=t.isDisabled({item:e,field:t}),h=p({item:e}),b=typeof h=="string"?h:void 0,{timezone:v}=(0,xa.getSettings)(),_=v.string||(0,xa.dateI18n)("P"),[y,w]=(0,Bc.useState)(()=>{let V=mS(b);return XI(V||new Date,_)});(0,Bc.useEffect)(()=>{let V=mS(b);if(V){let A=XI(V,_);w(L=>G_(A,XI(L,_))?L:A)}},[_,b]);let x=(0,Bc.useRef)(null),k=(0,Bc.useRef)(void 0),{minConstraint:C,maxConstraint:S,disabledMatchers:R}=ZI(m,mS),E=(0,Bc.useCallback)(V=>o(f({item:e,value:V})),[e,o,f]);(0,Bc.useEffect)(()=>()=>clearTimeout(k.current),[]);let I=(0,Bc.useCallback)(V=>{if(V){let A=(0,xa.dateI18n)("Y-m-d",V),L=b?(0,xa.dateI18n)("H:i",(0,xa.getDate)(b)):"00:00",z=(0,xa.getDate)(`${A}T${L}`);E(z.toISOString())}else E(void 0);clearTimeout(k.current),k.current=setTimeout(()=>{let A=x.current;A&&(A.dispatchEvent(new Event("invalid",{cancelable:!0})),A.validationMessage&&(0,RLe.speak)(A.validationMessage))},0)},[E,b]),B=(0,Bc.useCallback)(V=>{if(V){let A=(0,xa.getDate)(V);E(A.toISOString());let L=mS(A.toISOString());L&&w(XI(L,_))}else E(void 0)},[E,_]),{format:O}=t,M=O.weekStartsOn??(0,xa.getSettings)().l10n.startOfWeek,N=QI((0,xa.getSettings)().l10n.locale),j=d;return m?.required&&!n&&!r?j=`${d} (${(0,gS.__)("Required")})`:!m?.required&&n&&!r&&(j=`${d} (${(0,gS.__)("Optional")})`),(0,Ob.jsx)(TLe.BaseControl,{id:l,label:j,help:u,hideLabelFromVision:r,children:(0,Ob.jsxs)(De,{direction:"column",gap:"lg",children:[(0,Ob.jsx)(sd,{ref:x,required:!!m?.required,customValidity:Eo(m,i),type:"datetime-local",label:(0,gS.__)("Date time"),hideLabelFromVision:!0,value:pre(b),onValueChange:B,disabled:g,description:CLe(),min:C?pre(C):void 0,max:S?pre(S):void 0}),!a&&(0,Ob.jsx)(SR,{style:{width:"100%"},value:b?mS(b):null,onValueChange:I,month:y,onMonthChange:w,timeZone:_,locale:N,dir:(0,gS.isRTL)()?"rtl":"ltr",weekStartsOn:M,disabled:g||R})]})})}function ILe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,operator:i,validity:s,config:a}){return i===Vs||i===ya?(0,Ob.jsx)(VF,{className:"dataviews-controls__datetime",data:e,field:t,onChange:o,hideLabelFromVision:r,operator:i}):(0,Ob.jsx)(eyt,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:s,config:a})}var Oc=c(Q(),1),PLe=c(zo(),1),so=c(D(),1),Wr=c(X(),1),zs=c(lc(),1);var sr=c(T(),1),tyt=[{id:"today",label:(0,Wr.__)("Today"),getValue:()=>(0,zs.getDate)(null)},{id:"yesterday",label:(0,Wr.__)("Yesterday"),getValue:()=>{let e=(0,zs.getDate)(null);return $_(e,1)}},{id:"past-week",label:(0,Wr.__)("Past week"),getValue:()=>{let e=(0,zs.getDate)(null);return $_(e,7)}},{id:"past-month",label:(0,Wr.__)("Past month"),getValue:()=>{let e=(0,zs.getDate)(null);return Y6(e,1)}}],oyt=[{id:"last-7-days",label:(0,Wr.__)("Last 7 days"),getValue:()=>{let e=(0,zs.getDate)(null);return[$_(e,7),e]}},{id:"last-30-days",label:(0,Wr.__)("Last 30 days"),getValue:()=>{let e=(0,zs.getDate)(null);return[$_(e,30),e]}},{id:"month-to-date",label:(0,Wr.__)("Month to date"),getValue:()=>{let e=(0,zs.getDate)(null);return[bR(e),e]}},{id:"last-year",label:(0,Wr.__)("Last year"),getValue:()=>{let e=(0,zs.getDate)(null);return[K6(e,1),e]}},{id:"year-to-date",label:(0,Wr.__)("Year to date"),getValue:()=>{let e=(0,zs.getDate)(null);return[L0(e),e]}}],Xd=e=>{if(!e)return null;let t=Cbe(e);return od(t)?t:null},FF=e=>e?typeof e=="string"?e:bp(e,"yyyy-MM-dd"):"";function BLe({field:e,validity:t,inputRefs:o,isTouched:r,setIsTouched:n,children:i}){let{isValid:s}=e,[a,l]=(0,so.useState)(void 0),d=(0,so.useCallback)(()=>{let f=Array.isArray(o)?o:[o];for(let p of f){let m=p.current;if(m&&!m.validity.valid){l({type:"invalid",message:m.validationMessage});return}}l(void 0)},[o]);return(0,so.useEffect)(()=>{let f=Array.isArray(o)?o:[o],p=t?Eo(s,t):void 0;for(let m of f){let g=m.current;g&&g.setCustomValidity(p?.type==="invalid"&&p.message?p.message:"")}},[o,s,t]),(0,so.useEffect)(()=>{let f=Array.isArray(o)?o:[o],p=m=>{m.preventDefault(),n(!0)};for(let m of f)m.current?.addEventListener("invalid",p);return()=>{for(let m of f)m.current?.removeEventListener("invalid",p)}},[o,n]),(0,so.useEffect)(()=>{if(!r)return;let f=t?Eo(s,t):void 0;f?l(f):d()},[r,s,t,d]),(0,so.useEffect)(()=>{r&&a?.message&&(0,PLe.speak)(a.message)},[r,a?.message]),(0,sr.jsxs)(De,{direction:"column",gap:"sm",onBlur:f=>{r||(!f.relatedTarget||!f.currentTarget.contains(f.relatedTarget))&&n(!0)},children:[i,a&&(0,sr.jsx)(X_,{type:a.type,message:a.message})]})}function ryt({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{id:s,label:a,description:l,setValue:d,getValue:u,isValid:f,format:p}=t,m=t.isDisabled({item:e,field:t}),[g,h]=(0,so.useState)(null),b=p.weekStartsOn??(0,zs.getSettings)().l10n.startOfWeek,v=QI((0,zs.getSettings)().l10n.locale),_=u({item:e}),y=typeof _=="string"?_:void 0,[w,x]=(0,so.useState)(()=>Xd(y)||new Date);(0,so.useEffect)(()=>{let V=Xd(y);V&&x(A=>G_(V,A)?A:V)},[y]);let[k,C]=(0,so.useState)(!1),S=(0,so.useRef)(null),{minConstraint:R,maxConstraint:E,disabledMatchers:I}=ZI(f,Xd),B=(0,so.useCallback)(V=>o(d({item:e,value:V})),[e,o,d]),O=(0,so.useCallback)(V=>{let A=V?FF(V):void 0;B(A),h(null),C(!0)},[B]),M=(0,so.useCallback)(V=>{let A=V.getValue(),L=FF(A);x(A),B(L),h(V.id),C(!0)},[B]),N=(0,so.useCallback)(V=>{if(B(V),V){let A=Xd(V);A&&x(A)}h(null),C(!0)},[B]),j=a;return f?.required&&!n?j=`${a} (${(0,Wr.__)("Required")})`:!f?.required&&n&&(j=`${a} (${(0,Wr.__)("Optional")})`),(0,sr.jsx)(BLe,{field:t,validity:i,inputRefs:S,isTouched:k,setIsTouched:C,children:(0,sr.jsx)(Oc.BaseControl,{id:s,className:"dataviews-controls__date",label:j,help:l,hideLabelFromVision:r,children:(0,sr.jsxs)(De,{direction:"column",gap:"lg",children:[(0,sr.jsxs)(De,{direction:"row",gap:"sm",wrap:"wrap",justify:"flex-start",children:[tyt.map(V=>{let A=g===V.id;return(0,sr.jsx)(Oc.Button,{className:"dataviews-controls__date-preset",variant:"tertiary",isPressed:A,size:"small",disabled:m,accessibleWhenDisabled:!0,onClick:()=>M(V),children:V.label},V.id)}),(0,sr.jsx)(Oc.Button,{className:"dataviews-controls__date-preset",variant:"tertiary",isPressed:!g,size:"small",disabled:!!g||m,accessibleWhenDisabled:!0,children:(0,Wr.__)("Custom")})]}),(0,sr.jsx)(Oc.__experimentalInputControl,{ref:S,type:"date",label:(0,Wr.__)("Date"),hideLabelFromVision:!0,value:y,onChange:N,required:!!t.isValid?.required,disabled:m,min:R,max:E}),(0,sr.jsx)(SR,{style:{width:"100%"},value:y?Xd(y):null,onValueChange:O,month:w,onMonthChange:x,locale:v,dir:(0,Wr.isRTL)()?"rtl":"ltr",weekStartsOn:b,disabled:m||I,disableNavigation:m})]})})})}function nyt({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{id:s,label:a,description:l,getValue:d,setValue:u,isValid:f,format:p}=t,m=t.isDisabled({item:e,field:t}),g,h=d({item:e});Array.isArray(h)&&h.length===2&&h.every(G=>typeof G=="string")&&(g=h);let b=p.weekStartsOn??(0,zs.getSettings)().l10n.startOfWeek,v=QI((0,zs.getSettings)().l10n.locale),{minConstraint:_,maxConstraint:y,disabledMatchers:w}=ZI(f,Xd),x=(0,so.useCallback)(G=>{o(u({item:e,value:G}))},[e,o,u]),[k,C]=(0,so.useState)(null),S=(0,so.useMemo)(()=>{if(!g)return null;let[G,$]=g;return{from:Xd(G)||void 0,to:Xd($)||void 0}},[g]),[R,E]=(0,so.useState)(()=>S?.from||new Date),[I,B]=g??[];(0,so.useEffect)(()=>{E(G=>{let $=Xd(I),K=Xd(B),q=$??K,H=$&&K?Ghe({start:$,end:K},{start:bR(G),end:r6(G)},{inclusive:!0}):[$,K].some(J=>J&&G_(J,G));return q&&!H?q:G})},[I,B]);let[O,M]=(0,so.useState)(!1),N=(0,so.useRef)(null),j=(0,so.useRef)(null),V=(0,so.useCallback)((G,$)=>{if(!G&&!$){x(void 0);return}x([FF(G),FF($)])},[x]),A=(0,so.useCallback)(G=>{V(G?.from,G?.to),C(null),M(!0)},[V]),L=(0,so.useCallback)(G=>{let[$,K]=G.getValue();E($),V($,K),C(G.id),M(!0)},[V]),z=(0,so.useCallback)((G,$)=>{let[K,q]=g||[void 0,void 0];if(V(G==="from"?$:K,G==="to"?$:q),$){let W=Xd($);W&&E(W)}C(null),M(!0)},[g,V]),F=a;return t.isValid?.required&&!n?F=`${a} (${(0,Wr.__)("Required")})`:!t.isValid?.required&&n&&(F=`${a} (${(0,Wr.__)("Optional")})`),(0,sr.jsx)(BLe,{field:t,validity:i,inputRefs:[N,j],isTouched:O,setIsTouched:M,children:(0,sr.jsx)(Oc.BaseControl,{id:s,className:"dataviews-controls__date",label:F,help:l,hideLabelFromVision:r,children:(0,sr.jsxs)(De,{direction:"column",gap:"lg",children:[(0,sr.jsxs)(De,{direction:"row",gap:"sm",wrap:"wrap",justify:"flex-start",children:[oyt.map(G=>{let $=k===G.id;return(0,sr.jsx)(Oc.Button,{className:"dataviews-controls__date-preset",variant:"tertiary",isPressed:$,size:"small",disabled:m,accessibleWhenDisabled:!0,onClick:()=>L(G),children:G.label},G.id)}),(0,sr.jsx)(Oc.Button,{className:"dataviews-controls__date-preset",variant:"tertiary",isPressed:!k,size:"small",accessibleWhenDisabled:!0,disabled:!!k||m,children:(0,Wr.__)("Custom")})]}),(0,sr.jsxs)(De,{direction:"row",gap:"sm",justify:"space-between",className:"dataviews-controls__date-range-inputs",children:[(0,sr.jsx)(Oc.__experimentalInputControl,{ref:N,type:"date",label:(0,Wr.__)("From"),hideLabelFromVision:!0,value:g?.[0],onChange:G=>z("from",G),required:!!t.isValid?.required,disabled:m,min:_,max:y}),(0,sr.jsx)(Oc.__experimentalInputControl,{ref:j,type:"date",label:(0,Wr.__)("To"),hideLabelFromVision:!0,value:g?.[1],onChange:G=>z("to",G),required:!!t.isValid?.required,disabled:m,min:_,max:y})]}),(0,sr.jsx)(tK,{style:{width:"100%"},value:S,onValueChange:A,month:R,onMonthChange:E,locale:v,dir:(0,Wr.isRTL)()?"rtl":"ltr",weekStartsOn:b,disabled:m||w})]})})})}function OLe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,operator:i,validity:s}){return i===Vs||i===ya?(0,sr.jsx)(VF,{className:"dataviews-controls__date",data:e,field:t,onChange:o,hideLabelFromVision:r,operator:i}):i===Sn?(0,sr.jsx)(nyt,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:s}):(0,sr.jsx)(ryt,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:s})}var MLe=c(Q(),1),ALe=c(D(),1);var mre=c(T(),1);function zF({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{type:s,label:a,description:l,getValue:d,setValue:u,isValid:f}=t,p=t.isDisabled({item:e,field:t}),m=s==="array",g=d({item:e})??(m?[]:""),h=(0,ALe.useCallback)(_=>o(u({item:e,value:_})),[e,o,u]),{elements:b,isLoading:v}=wa({elements:t.elements,getElements:t.getElements});return v?(0,mre.jsx)(MLe.Spinner,{}):(0,mre.jsx)(MF,{required:!!t.isValid?.required,markWhenOptional:n,customValidity:Eo(f,i),label:a,value:g,help:l,options:b,onChange:h,hideLabelFromVision:r,multiple:m,disabled:p})}var gre=c(T(),1),iyt=10;function NLe(e){let{field:t}=e,{elements:o}=wa({elements:t.elements,getElements:t.getElements});return o.length>=iyt?(0,gre.jsx)(DF,{...e}):(0,gre.jsx)(zF,{...e})}var LLe=c(D(),1);var DLe=c(T(),1);function kf({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,type:i,prefix:s,suffix:a,validity:l}){let{label:d,placeholder:u,description:f,getValue:p,setValue:m,isValid:g}=t,h=p({item:e}),b=t.isDisabled({item:e,field:t}),v=(0,LLe.useCallback)(_=>o(m({item:e,value:_})),[e,m,o]);return(0,DLe.jsx)(sd,{required:!!g.required,markWhenOptional:n,customValidity:Eo(g,l),label:d,placeholder:u,value:h??"",description:typeof f=="string"?f:void 0,details:typeof f=="string"?void 0:f,onValueChange:v,hideLabelFromVision:r,type:i,prefix:s,suffix:a,disabled:b,pattern:g.pattern?g.pattern.constraint:void 0,minLength:g.minLength?g.minLength.constraint:void 0,maxLength:g.maxLength?g.maxLength.constraint:void 0})}var jF=c(T(),1);function VLe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){return(0,jF.jsx)(kf,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i,type:"email",prefix:(0,jF.jsx)(ws.Slot,{padding:"minimal",children:(0,jF.jsx)(fo,{icon:Ij})})})}var HF=c(T(),1);function FLe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){return(0,HF.jsx)(kf,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i,type:"tel",prefix:(0,HF.jsx)(ws.Slot,{padding:"minimal",children:(0,HF.jsx)(fo,{icon:XC})})})}var UF=c(T(),1);function zLe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){return(0,UF.jsx)(kf,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i,type:"url",prefix:(0,UF.jsx)(ws.Slot,{padding:"minimal",children:(0,UF.jsx)(fo,{icon:jc})})})}var Ly=c(Q(),1),e3=c(D(),1),WF=c(X(),1);var Mb=c(T(),1);function jLe(e){if(e===""||e===void 0)return"";let t=Number(e);return Number.isFinite(t)?t:""}function syt({value:e,onChange:t,hideLabelFromVision:o,step:r}){let[n="",i=""]=e,s=(0,e3.useCallback)(l=>t([jLe(l),i]),[t,i]),a=(0,e3.useCallback)(l=>t([n,jLe(l)]),[t,n]);return(0,Mb.jsx)(Ly.BaseControl,{help:(0,WF.__)("The max. value must be greater than the min. value."),children:(0,Mb.jsxs)(Ly.Flex,{direction:"row",gap:4,children:[(0,Mb.jsx)(Ly.__experimentalNumberControl,{label:(0,WF.__)("Min."),value:n,max:i?Number(i)-r:void 0,onChange:s,hideLabelFromVision:o,step:r}),(0,Mb.jsx)(Ly.__experimentalNumberControl,{label:(0,WF.__)("Max."),value:i,min:n?Number(n)+r:void 0,onChange:a,hideLabelFromVision:o,step:r})]})})}function GF({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:d,description:u,getValue:f,setValue:p,isValid:m}=t,g=f({item:e})??"",h=t.isDisabled({item:e,field:t}),b=(0,e3.useCallback)(_=>{o(p({item:e,value:["",void 0].includes(_)?void 0:Number(_)}))},[e,o,p]),v=(0,e3.useCallback)(_=>{o(p({item:e,value:_}))},[e,o,p]);if(i===Sn){let _=["",""];return Array.isArray(g)&&g.length===2&&g.every(y=>typeof y=="number"||y==="")&&(_=g),(0,Mb.jsx)(syt,{value:_,onChange:v,hideLabelFromVision:r,step:l})}return(0,Mb.jsx)(IF,{required:!!m.required,markWhenOptional:n,customValidity:Eo(m,s),label:d,help:u,value:g,onChange:b,hideLabelFromVision:r,step:l,min:typeof m.min?.constraint=="number"?m.min.constraint:void 0,max:typeof m.max?.constraint=="number"?m.max.constraint:void 0,disabled:h})}var HLe=c(T(),1);function ULe(e){return(0,HLe.jsx)(GF,{...e})}var WLe=c(T(),1);function GLe(e){return(0,WLe.jsx)(GF,{...e})}var $Le=c(Q(),1),YLe=c(D(),1);var hre=c(T(),1);function KLe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{label:s,description:a,getValue:l,setValue:d,isValid:u}=t,f=t.isDisabled({item:e,field:t}),{elements:p,isLoading:m}=wa({elements:t.elements,getElements:t.getElements}),g=l({item:e}),h=(0,YLe.useCallback)(b=>o(d({item:e,value:b})),[e,o,d]);return m?(0,hre.jsx)($Le.Spinner,{}):(0,hre.jsx)(BF,{required:!!t.isValid?.required,markWhenOptional:n,customValidity:Eo(u,i),label:s,help:a,onChange:h,options:p,selected:g,hideLabelFromVision:r,disabled:f})}var bre=c(D(),1);var qLe=c(T(),1);function XLe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,config:i,validity:s}){let{prefix:a,suffix:l}=i||{};return(0,qLe.jsx)(kf,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:s,prefix:a?(0,bre.createElement)(a):void 0,suffix:l?(0,bre.createElement)(l):void 0})}var QLe=c(Q(),1),t3=c(D(),1),$F=c(X(),1);var Ab=c(T(),1);function ZLe(e,t){return(e??"").replace(/\\./g,"").includes("s")||t.some(n=>(Fs(n)??0)%60!==0)?1:void 0}function _re(e){let t=Fs(e);if(t===null)return"";let o=[Math.floor(t/3600),Math.floor(t%3600/60)];return t%60!==0&&o.push(t%60),o.map(r=>String(r).padStart(2,"0")).join(":")}function ayt({value:e,onChange:t,hideLabelFromVision:o,disabled:r,step:n,min:i,max:s}){let[a="",l=""]=e,d=(0,t3.useCallback)(f=>t([f??"",l]),[t,l]),u=(0,t3.useCallback)(f=>t([a,f??""]),[t,a]);return(0,Ab.jsx)(QLe.BaseControl,{help:(0,$F.__)("The end time must be later than the start time."),children:(0,Ab.jsxs)(De,{direction:"row",gap:"sm",justify:"space-between",children:[(0,Ab.jsx)(sd,{type:"time",label:(0,$F.__)("From"),value:a,onValueChange:d,hideLabelFromVision:o,disabled:r,step:n,min:i,max:l||s}),(0,Ab.jsx)(sd,{type:"time",label:(0,$F.__)("To"),value:l,onValueChange:u,hideLabelFromVision:o,disabled:r,step:n,min:a||i,max:s})]})})}function JLe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,operator:i,validity:s}){let{label:a,placeholder:l,description:d,getValue:u,setValue:f,isValid:p}=t,m=u({item:e}),g=t.isDisabled({item:e,field:t}),h=t.format?.time,b=typeof p.min?.constraint=="string"?p.min.constraint:void 0,v=typeof p.max?.constraint=="string"?p.max.constraint:void 0,_=(0,t3.useCallback)(w=>o(f({item:e,value:w===""?void 0:w})),[e,o,f]),y=(0,t3.useCallback)(([w,x])=>o(f({item:e,value:[w||void 0,x||void 0]})),[e,o,f]);if(i===Sn){let w=["",""];return Array.isArray(m)&&m.length===2&&(w=[_re(m[0]),_re(m[1])]),(0,Ab.jsx)(ayt,{value:w,onChange:y,hideLabelFromVision:r,disabled:g,step:ZLe(h,w),min:b,max:v})}return(0,Ab.jsx)(sd,{required:!!p.required,markWhenOptional:n,customValidity:Eo(p,s),type:"time",label:a,placeholder:l,description:typeof d=="string"?d:void 0,details:typeof d=="string"?void 0:d,value:_re(m),onValueChange:_,hideLabelFromVision:r,disabled:g,step:ZLe(h,[m]),min:b,max:v})}var eDe=c(D(),1);var tDe=c(T(),1);function oDe({field:e,onChange:t,data:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{label:s,description:a,getValue:l,setValue:d,isValid:u}=e,f=e.isDisabled({item:o,field:e}),p=(0,eDe.useCallback)(()=>{t(d({item:o,value:!l({item:o})}))},[t,d,o,l]);return(0,tDe.jsx)(NF,{required:!!u.required,markWhenOptional:n,customValidity:Eo(u,i),hidden:r,label:s,help:a,checked:l({item:o}),onChange:p,disabled:f})}var rDe=c(D(),1);var nDe=c(T(),1);function iDe({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:d,placeholder:u,description:f,setValue:p,isValid:m}=t,g=t.getValue({item:e}),h=(0,rDe.useCallback)(b=>o(p({item:e,value:b})),[e,o,p]);return(0,nDe.jsx)(Lq,{required:!!m.required,markWhenOptional:n,customValidity:Eo(m,s),label:d,placeholder:u,value:g??"",description:typeof f=="string"?f:void 0,details:typeof f=="string"?void 0:f,onValueChange:h,rows:a,disabled:l,minLength:m.minLength?m.minLength.constraint:void 0,maxLength:m.maxLength?m.maxLength.constraint:void 0,hideLabelFromVision:r})}var KF=c(Q(),1),sDe=c(D(),1);var YF=c(T(),1);function aDe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{getValue:s,setValue:a,isValid:l}=t,d=t.isDisabled({item:e,field:t}),u=s({item:e}),f=(0,sDe.useCallback)(h=>o(a({item:e,value:h})),[e,o,a]),{elements:p,isLoading:m}=wa({elements:t.elements,getElements:t.getElements});if(m)return(0,YF.jsx)(KF.Spinner,{});if(p.length===0)return null;let g=p.find(h=>h.value===u);return(0,YF.jsx)(LF,{required:!!t.isValid?.required,markWhenOptional:n,customValidity:Eo(l,i),isBlock:!0,label:t.label,help:g?.description||t.description,onChange:f,value:u,hideLabelFromVision:r,children:p.map(h=>(0,YF.jsx)(KF.__experimentalToggleGroupControlOption,{label:h.label,value:h.value,disabled:d},h.value))})}var lDe=c(Q(),1),qF=c(D(),1);var o3=c(T(),1);function cDe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{label:s,placeholder:a,description:l,getValue:d,setValue:u,isValid:f}=t,p=d({item:e}),m=t.isDisabled({item:e,field:t}),{elements:g,isLoading:h}=wa({elements:t.elements,getElements:t.getElements}),b=(0,qF.useMemo)(()=>Array.isArray(p)?p.map(_=>g?.find(w=>w.value===_)||{value:_,label:_}):[],[p,g]),v=(0,qF.useCallback)(_=>{let y=_.map(w=>typeof w=="object"&&"value"in w?w.value:w);o(u({item:e,value:y}))},[o,u,e]);return h?(0,o3.jsx)(lDe.Spinner,{}):(0,o3.jsx)(TF,{required:!!f?.required,markWhenOptional:n,customValidity:Eo(f,i),label:r?void 0:s,value:b,onChange:v,placeholder:a,suggestions:g?.map(_=>_.value),disabled:m,__experimentalValidateInput:_=>t.isValid?.elements&&g?g.some(y=>y.value===_||y.label===_):!0,__experimentalExpandOnFocus:g&&g.length>0,help:l??(t.isValid?.elements?"":void 0),displayTransform:_=>typeof _=="object"&&"label"in _?_.label:typeof _=="string"&&g&&g.find(w=>w.value===_)?.label||_,__experimentalRenderItem:({item:_})=>{if(typeof _=="string"&&g){let y=g.find(w=>w.value===_);return(0,o3.jsx)("span",{children:y?.label||_})}return(0,o3.jsx)("span",{children:_})}})}var Sf=c(Q(),1);var vre=c(D(),1),dDe=c(X(),1);var Pm=c(T(),1),lyt=({color:e,onColorChange:t,disabled:o})=>{let r=e&&Zo(e).isValid()?e:"#ffffff";return(0,Pm.jsx)(Sf.Dropdown,{className:"dataviews-controls__color-picker-dropdown",popoverProps:{resize:!1},renderToggle:({onToggle:n})=>(0,Pm.jsx)(Sf.Button,{onClick:n,"aria-label":(0,dDe.__)("Open color picker"),size:"small",disabled:o,accessibleWhenDisabled:!0,icon:()=>(0,Pm.jsx)(Sf.ColorIndicator,{colorValue:r})}),renderContent:()=>(0,Pm.jsx)(Sf.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,Pm.jsx)(Sf.ColorPicker,{color:r,onChange:t,enableAlpha:!0})})})};function uDe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{label:s,placeholder:a,description:l,setValue:d,isValid:u}=t,f=t.isDisabled({item:e,field:t}),p=t.getValue({item:e})||"",m=(0,vre.useCallback)(h=>{o(d({item:e,value:h}))},[e,o,d]),g=(0,vre.useCallback)(h=>{o(d({item:e,value:h||""}))},[e,o,d]);return(0,Pm.jsx)(sd,{required:!!t.isValid?.required,markWhenOptional:n,customValidity:Eo(u,i),label:s,placeholder:a,value:p,description:typeof l=="string"?l:void 0,details:typeof l=="string"?void 0:l,onValueChange:g,hideLabelFromVision:r,type:"text",disabled:f,prefix:(0,Pm.jsx)(ws.Slot,{padding:"minimal",children:(0,Pm.jsx)(lyt,{color:p,onColorChange:m,disabled:f})})})}var fDe=c(Q(),1);var ZF=c(D(),1),yre=c(X(),1);var XF=c(T(),1);function pDe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let[s,a]=(0,ZF.useState)(!1),l=t.isDisabled({item:e,field:t}),d=(0,ZF.useCallback)(()=>{a(u=>!u)},[]);return(0,XF.jsx)(kf,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i,type:s?"text":"password",suffix:(0,XF.jsx)(ws.Slot,{padding:"minimal",children:(0,XF.jsx)(fDe.Button,{icon:s?Uc:r_,onClick:d,size:"small",label:s?(0,yre.__)("Hide password"):(0,yre.__)("Show password"),disabled:l,accessibleWhenDisabled:!0})})})}function QF(e){return Array.isArray(e.elements)&&e.elements.length>0||typeof e.getElements=="function"}var gDe=c(T(),1),mDe={adaptiveSelect:NLe,array:cDe,checkbox:yLe,color:uDe,combobox:DF,datetime:ILe,date:OLe,email:VLe,telephone:FLe,url:zLe,integer:ULe,number:GLe,password:pDe,radio:KLe,select:zF,text:XLe,time:JLe,toggle:oDe,textarea:iDe,toggleGroup:aDe};function cyt(e){return e&&typeof e=="object"&&typeof e.control=="string"}function dyt(e){let{control:t,...o}=e,r=JF(t);return r===null?null:function(i){return(0,gDe.jsx)(r,{...i,config:o})}}function hDe(e,t){return typeof e.Edit=="function"?e.Edit:typeof e.Edit=="string"?JF(e.Edit):cyt(e.Edit)?dyt(e.Edit):QF(e)&&e.type!=="array"?JF("adaptiveSelect"):t===null?null:JF(t)}function JF(e){return Object.keys(mDe).includes(e)?mDe[e]:null}function uyt(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 bDe=uyt;var fyt=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},_De=fyt;var pyt=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},vDe=pyt;var wDe=c(X(),1);function ez({item:e,field:t}){let{elements:o,isLoading:r}=wa({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 yDe=c(T(),1);function hr({item:e,field:t}){return t.hasElements?(0,yDe.jsx)(ez,{item:e,field:t}):t.getValueFormatted({item:e,field:t})}var Cf=(e,t,o)=>o==="asc"?e.localeCompare(t):t.localeCompare(e);function br(e,t){let o=t.getValue({item:e});return![void 0,"",null].includes(o)}function Ef(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 Tf(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 Rf(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 No(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 myt({item:e,field:t}){return t.getValue({item:e})}var js=myt;var gyt=/^[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 hyt(e,t){let o=t.getValue({item:e});return![void 0,"",null].includes(o)&&!gyt.test(o)?(0,wDe.__)("Value must be a valid email address."):null}var xDe={type:"email",render:hr,Edit:"email",sort:Cf,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[mr,gr],validOperators:[Br,Or,vf,yf,wf,mr,gr,os],format:{},getValueFormatted:js,validate:{required:br,pattern:Rf,minLength:Ef,maxLength:Tf,elements:No,custom:hyt}};var kDe=c(X(),1);var hS=(e,t,o)=>o==="asc"?e-t:t-e;function tz(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 oz(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 SDe={separatorThousand:","};function byt({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=SDe: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 _yt(e,t){let o=t.getValue({item:e});return![void 0,"",null].includes(o)&&!Number.isInteger(o)?(0,kDe.__)("Value must be an integer."):null}var CDe={type:"integer",render:hr,Edit:"integer",sort:hS,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[Br,Or,Rb,Ib,Pb,Bb,Sn],validOperators:[Br,Or,Rb,Ib,Pb,Bb,Sn,mr,gr,os],format:SDe,getValueFormatted:byt,validate:{required:br,min:tz,max:oz,elements:No,custom:_yt}};var EDe=c(X(),1);var TDe={separatorThousand:",",separatorDecimal:".",decimals:2};function vyt({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=TDe:r=t.format;let{separatorThousand:n,separatorDecimal:i,decimals:s}=r,a=o.toFixed(s),[l,d]=a.split("."),u=n?l.replace(/\B(?=(\d{3})+(?!\d))/g,n):l;return s===0?u:u+i+d}function yyt(e){return e===""||e===void 0||e===null}function wyt(e,t){let o=t.getValue({item:e});return!yyt(o)&&!Number.isFinite(o)?(0,EDe.__)("Value must be a number."):null}var RDe={type:"number",render:hr,Edit:"number",sort:hS,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[Br,Or,Rb,Ib,Pb,Bb,Sn],validOperators:[Br,Or,Rb,Ib,Pb,Bb,Sn,mr,gr,os],format:TDe,getValueFormatted:vyt,validate:{required:br,min:tz,max:oz,elements:No,custom:wyt}};var IDe={type:"text",render:hr,Edit:"text",sort:Cf,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[mr,gr],validOperators:[Br,Or,vf,yf,wf,mr,gr,os],format:{},getValueFormatted:js,validate:{required:br,pattern:Rf,minLength:Ef,maxLength:Tf,elements:No}};var Dy=c(lc(),1);var PDe=c(lc(),1);function BDe(e){if(!od(new Date(e)))return null;let t=(0,PDe.getDate)(e);return t&&od(t)?t.getTime():null}function rz(e,t,o,r){let n=t.isValid[o]?.constraint;if(typeof n!="string")return!1;let i=t.getValue({item:e}),s=Array.isArray(i)?i[o==="min"?0:i.length-1]:i;if(s==null||s==="")return!0;let a=r(n),l=r(String(s));return a===null||l===null?!1:o==="min"?l>=a:l<=a}function nz(e,t){return rz(e,t,"min",BDe)}function iz(e,t){return rz(e,t,"max",BDe)}function ODe(e,t){return rz(e,t,"min",Fs)}function MDe(e,t){return rz(e,t,"max",Fs)}var ADe={datetime:(0,Dy.getSettings)().formats.datetime,weekStartsOn:(0,Dy.getSettings)().l10n.startOfWeek};function xyt({item:e,field:t}){let o=t.getValue({item:e});if(["",void 0,null].includes(o))return"";let r;return t.type!=="datetime"?r=ADe:r=t.format,(0,Dy.dateI18n)(r.datetime,(0,Dy.getDate)(o))}var kyt=(e,t,o)=>{let r=new Date(e).getTime(),n=new Date(t).getTime();return o==="asc"?r-n:n-r},NDe={type:"datetime",render:hr,Edit:"datetime",sort:kyt,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[Kd,qd,Wd,Gd,$d,Yd,Vs,ya],validOperators:[Kd,qd,Wd,Gd,$d,Yd,Vs,ya],format:ADe,getValueFormatted:xyt,validate:{required:br,elements:No,min:nz,max:iz}};var Vy=c(lc(),1);var LDe={date:(0,Vy.getSettings)().formats.date,weekStartsOn:(0,Vy.getSettings)().l10n.startOfWeek};function Syt({item:e,field:t}){let o=t.getValue({item:e});if(["",void 0,null].includes(o))return"";let r;return t.type!=="date"?r=LDe:r=t.format,(0,Vy.dateI18n)(r.date,(0,Vy.getDate)(o))}var Cyt=(e,t,o)=>{let r=new Date(e).getTime(),n=new Date(t).getTime();return o==="asc"?r-n:n-r},DDe={type:"date",render:hr,Edit:"date",sort:Cyt,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[Kd,qd,Wd,Gd,$d,Yd,Vs,ya,Sn],validOperators:[Kd,qd,Wd,Gd,$d,Yd,Vs,ya,Sn],format:LDe,getValueFormatted:Syt,validate:{required:br,elements:No,min:nz,max:iz}};var bS=c(lc(),1);var VDe={time:(0,bS.getSettings)().formats.time},Eyt="2000-01-01";function Tyt(e){let t=Math.floor(e/3600),o=Math.floor(e%3600/60),r=e%60,n=[t,o,r].map(i=>String(i).padStart(2,"0")).join(":");return(0,bS.getDate)(`${Eyt}T${n}`)}function Ryt({item:e,field:t}){let o=Fs(t.getValue({item:e}));if(o===null)return"";let r;return t.type!=="time"?r=VDe:r=t.format,(0,bS.dateI18n)(r.time,Tyt(o))}var Iyt=(e,t,o)=>{let r=Fs(e),n=Fs(t);return r===null||n===null?r===n?0:r===null?1:-1:o==="asc"?r-n:n-r},FDe={type:"time",render:hr,Edit:"time",sort:Iyt,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[Kd,qd,Wd,Gd,$d,Yd,Sn],validOperators:[Kd,qd,Wd,Gd,$d,Yd,Sn],format:VDe,getValueFormatted:Ryt,validate:{required:br,elements:No,min:ODe,max:MDe}};var sz=c(X(),1);function zDe(e,t){return t.getValue({item:e})===!0}function Pyt({item:e,field:t}){let o=t.getValue({item:e});return o===!0?(0,sz.__)("True"):o===!1?(0,sz.__)("False"):""}function Byt(e,t){let o=t.getValue({item:e});return![void 0,"",null].includes(o)&&![!0,!1].includes(o)?(0,sz.__)("Value must be true, false, or undefined"):null}var Oyt=(e,t,o)=>{let r=!!e;return r===!!t?0:o==="asc"?r?1:-1:r?-1:1},jDe={type:"boolean",render:hr,Edit:"checkbox",sort:Oyt,validate:{required:zDe,elements:No,custom:Byt},enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[Br,Or],validOperators:[Br,Or],format:{},getValueFormatted:Pyt};var HDe={type:"media",render:()=>null,Edit:null,sort:()=>0,enableSorting:!1,enableGlobalSearch:!1,defaultOperators:[],validOperators:[],format:{},getValueFormatted:js,validate:{}};var wre=c(X(),1);function UDe(e,t){let o=t.getValue({item:e});return Array.isArray(o)&&o.length>0&&o.every(r=>![void 0,"",null].includes(r))}function WDe({item:e,field:t}){let o=t.getValue({item:e});return(Array.isArray(o)?o:[]).join(", ")}function Myt({item:e,field:t}){return WDe({item:e,field:t})}function Ayt(e,t){let o=t.getValue({item:e});return[void 0,"",null].includes(o)?null:Array.isArray(o)?o.every(r=>typeof r=="string")?null:(0,wre.__)("Every value must be a string."):(0,wre.__)("Value must be an array.")}var Nyt=(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)},GDe={type:"array",render:Myt,Edit:"array",sort:Nyt,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[mr,gr],validOperators:[mr,gr,xF,os],format:{},getValueFormatted:WDe,validate:{required:UDe,elements:No,custom:Ayt}};function Lyt({item:e,field:t}){return t.getValue({item:e})?"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022":""}var $De={type:"password",render:hr,Edit:"password",sort:()=>0,enableSorting:!1,enableGlobalSearch:!1,defaultOperators:[],validOperators:[],format:{},getValueFormatted:Lyt,validate:{required:br,pattern:Rf,minLength:Ef,maxLength:Tf,elements:No}};var YDe={type:"telephone",render:hr,Edit:"telephone",sort:Cf,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[mr,gr],validOperators:[Br,Or,vf,yf,wf,mr,gr,os],format:{},getValueFormatted:js,validate:{required:br,pattern:Rf,minLength:Ef,maxLength:Tf,elements:No}};var KDe=c(X(),1);var _S=c(T(),1);function Dyt({item:e,field:t}){if(t.hasElements)return(0,_S.jsx)(ez,{item:e,field:t});let o=js({item:e,field:t});return!o||!Zo(o).isValid()?o:(0,_S.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,_S.jsx)("div",{style:{width:"16px",height:"16px",borderRadius:"50%",backgroundColor:o,border:"1px solid #ddd",flexShrink:0}}),(0,_S.jsx)("span",{children:o})]})}function Vyt(e,t){let o=t.getValue({item:e});return![void 0,"",null].includes(o)&&!Zo(o).isValid()?(0,KDe.__)("Value must be a valid color."):null}var Fyt=(e,t,o)=>{let r=Zo(e),n=Zo(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},qDe={type:"color",render:Dyt,Edit:"color",sort:Fyt,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[mr,gr],validOperators:[Br,Or,mr,gr],format:{},getValueFormatted:js,validate:{required:br,elements:No,custom:Vyt}};var XDe={type:"url",render:hr,Edit:"url",sort:Cf,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[mr,gr],validOperators:[Br,Or,vf,yf,wf,mr,gr,os],format:{},getValueFormatted:js,validate:{required:br,pattern:Rf,minLength:Ef,maxLength:Tf,elements:No}};var zyt=(e,t,o)=>typeof e=="number"&&typeof t=="number"?hS(e,t,o):Cf(e,t,o),ZDe={render:hr,Edit:null,sort:zyt,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[Br,Or],validOperators:rLe(),format:{},getValueFormatted:js,validate:{required:br,elements:No}};function jyt(e){return e==="integer"||e==="number"}function Hyt(e){return e==="date"||e==="datetime"||e==="time"}function QDe(e,t,o){let r=t.validate[o];if(r&&(typeof e=="number"&&jyt(t.type)||typeof e=="string"&&Hyt(t.type)))return{constraint:e,validate:r}}function JDe(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=QDe(o?.min,t,"min"),s=QDe(o?.max,t,"max"),a=o?.minLength,l;typeof a=="number"&&t.validate.minLength!==void 0&&(l={constraint:a,validate:t.validate.minLength});let d=o?.maxLength,u;typeof d=="number"&&t.validate.maxLength!==void 0&&(u={constraint:d,validate:t.validate.maxLength});let f=o?.pattern,p;f!==void 0&&t.validate.pattern!==void 0&&(p={constraint:f,validate:t.validate.pattern});let m=o?.custom??t.validate.custom;return{required:r,elements:n,min:i,max:s,minLength:l,maxLength:u,pattern:p,custom:m}}function eVe(e){return e.validOperators.reduce((t,o)=>{let r=oLe(o);return r?.filter&&(t[o]=r.filter),t},{})}function Uyt(e,t){return{...t.format,...e.format}}var tVe=Uyt;function Wyt(e){let t=[xDe,CDe,RDe,IDe,NDe,DDe,FDe,jDe,HDe,GDe,$De,YDe,qDe,XDe].find(o=>o?.type===e);return t||ZDe}function az(e){return e.map(t=>{let o=Wyt(t.type),r=t.getValue||_De(t.id),n=function(i,s,a){let l=r({item:i}),d=r({item:s});return t.sort?t.sort(l,d,a):o.sort(l,d,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||vDe(t.id),elements:t.elements,getElements:t.getElements,hasElements:QF(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:hDe(t,o.Edit),sort:n,enableSorting:t.enableSorting??o.enableSorting,enableGlobalSearch:t.enableGlobalSearch??o.enableGlobalSearch,isValid:JDe(t,o),filterBy:bDe(t,o.defaultOperators,o.validOperators),filter:eVe(o),format:tVe(t,o),getValueFormatted:t.getValueFormatted??o.getValueFormatted}})}var Tre=c(D(),1);var oVe=c(D(),1),rVe=c(T(),1),xre=(0,oVe.createContext)({fields:[]});xre.displayName="DataFormContext";function nVe({fields:e,children:t}){return(0,rVe.jsx)(xre.Provider,{value:{fields:e},children:t})}var Mc=xre;var _z=c(D(),1);var dz=c(D(),1),n3=c(Q(),1);function lz(e){return!!e&&(e.readOnly===!0||!!e.Edit)}var r3=c(X(),1),rs={type:"regular",labelPosition:"top"},Gyt=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 iVe(e){let t=rs;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,r3.__)("Apply"),cancelLabel:n.cancelLabel?.trim()||(0,r3.__)("Cancel")}:n==="modal"?i={type:"modal",applyLabel:(0,r3.__)("Apply"),cancelLabel:(0,r3.__)("Cancel")}:i={type:"dropdown"},t={type:"panel",labelPosition:e?.labelPosition??"side",openAs:i,summary:r,editVisibility:e?.editVisibility??"on-hover",showPlaceholderIfEmpty:e?.showPlaceholderIfEmpty??!1}}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:Gyt(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 sVe(e){let t=iVe(e?.layout),o=(e.fields??[]).map(r=>{if(typeof r=="string")return{id:r,layout:t};let n=r.layout?iVe(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:sVe({fields:r.children,layout:rs}).fields}}});return{layout:t,fields:o}}var cz=sVe;var _r=c(T(),1);function $yt({title:e}){return(0,_r.jsx)(De,{direction:"column",className:"dataforms-layouts-regular__header",gap:"lg",children:(0,_r.jsx)(De,{direction:"row",align:"center",children:(0,_r.jsx)(n3.__experimentalHeading,{level:2,size:13,children:e})})})}function aVe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{fields:s}=(0,dz.useContext)(Mc),a=t.layout,l=(0,dz.useMemo)(()=>({layout:rs,fields:t.children?t.children:[]}),[t]);if(t.children)return(0,_r.jsxs)(_r.Fragment,{children:[!r&&t.label&&(0,_r.jsx)($yt,{title:t.label}),(0,_r.jsx)(ka,{data:e,form:l,onChange:o,validity:i?.children})]});let d=a.labelPosition,u=s.find(f=>f.id===t.id);return lz(u)?d==="side"?(0,_r.jsxs)(De,{direction:"row",className:"dataforms-layouts-regular__field",gap:"sm",children:[(0,_r.jsx)("div",{className:U("dataforms-layouts-regular__field-label",`dataforms-layouts-regular__field-label--label-position-${d}`),children:(0,_r.jsx)(n3.BaseControl.VisualLabel,{children:u.label})}),(0,_r.jsx)("div",{className:"dataforms-layouts-regular__field-control",children:u.readOnly===!0?(0,_r.jsx)(u.render,{item:e,field:u}):u.Edit&&(0,_r.jsx)(u.Edit,{data:e,field:u,onChange:o,hideLabelFromVision:!0,markWhenOptional:n,validity:i},u.id)})]}):(0,_r.jsx)("div",{className:"dataforms-layouts-regular__field",children:u.readOnly===!0?(0,_r.jsx)(_r.Fragment,{children:(0,_r.jsxs)(_r.Fragment,{children:[!r&&d!=="none"&&(0,_r.jsx)(n3.BaseControl.VisualLabel,{children:u.label}),(0,_r.jsx)(u.render,{item:e,field:u})]})}):u.Edit&&(0,_r.jsx)(u.Edit,{data:e,field:u,onChange:o,hideLabelFromVision:d==="none"?!0:r,markWhenOptional:n,validity:i})}):null}var Cre=c(j4(),1),Fy=c(Q(),1),Zd=c(D(),1),mz=c(ue(),1);var pVe=c(Q(),1),vS=c(X(),1);var mVe=c(ue(),1);function Yyt(e,t){return U("dataforms-layouts-panel__field-label",`dataforms-layouts-panel__field-label--label-position-${e}`,{"has-error":t})}var lVe=Yyt;var cVe=c(Q(),1);var Nb=c(T(),1);function Kyt({showError:e,errorMessage:t,fieldLabel:o,errorId:r}){return e?(0,Nb.jsxs)("span",{className:"dataforms-layouts-panel__field-label-error-content",children:[(0,Nb.jsx)(cVe.Icon,{icon:Jb,size:16}),(0,Nb.jsx)(Et,{id:r,children:t}),o]}):(0,Nb.jsx)(Nb.Fragment,{children:o})}var kre=Kyt;function dVe(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=dVe(o);if(r)return r}}var uVe=dVe;var Sa=c(T(),1);function fVe({item:e,field:t,showPlaceholderIfEmpty:o}){return o&&t.placeholder&&[void 0,null,""].includes(t.getValue({item:e}))?(0,Sa.jsx)("span",{className:"dataforms-layouts-panel__field-placeholder",children:t.placeholder}):(0,Sa.jsx)(t.render,{item:e,field:t})}function i3({data:e,field:t,fieldLabel:o,summaryFields:r,validity:n,touched:i,disabled:s,isOpen:a,onClick:l}){let{labelPosition:d,editVisibility:u,showPlaceholderIfEmpty:f}=t.layout,p=uVe(n),m=i&&!!p,g=lVe(d,m),h=U("dataforms-layouts-panel__field-trigger",`dataforms-layouts-panel__field-trigger--label-${d}`,{"is-disabled":s,"dataforms-layouts-panel__field-trigger--edit-always":u==="always"}),b=(0,mVe.useInstanceId)(i3,"dataforms-layouts-panel__field-control"),v=`${b}-error`,_=m?(0,vS.sprintf)((0,vS._x)("Edit %s (has errors)","field"),o||""):(0,vS.sprintf)((0,vS._x)("Edit %s","field"),o||"");return(0,Sa.jsxs)("div",{className:h,children:[d!=="none"&&(0,Sa.jsx)("span",{className:g,children:(0,Sa.jsx)(kre,{showError:m,errorMessage:p,fieldLabel:o,errorId:v})}),d==="none"&&m&&(0,Sa.jsx)(kre,{showError:!0,errorMessage:p,errorId:v}),(0,Sa.jsx)("span",{id:`${b}`,className:"dataforms-layouts-panel__field-control",children:r.length>1?(0,Sa.jsx)("span",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",width:"100%",gap:"2px"},children:r.map(y=>(0,Sa.jsx)("span",{style:{width:"100%"},children:(0,Sa.jsx)(fVe,{item:e,field:y,showPlaceholderIfEmpty:f})},y.id))}):r.map(y=>(0,Sa.jsx)(fVe,{item:e,field:y,showPlaceholderIfEmpty:f},y.id))}),!s&&(0,Sa.jsx)(pVe.Button,{className:"dataforms-layouts-panel__field-trigger-icon",label:_,icon:o_,size:"small","aria-expanded":a,"aria-haspopup":"dialog","aria-describedby":m?`${b} ${v}`:b,onClick:l})]})}var gVe=c(j4(),1),Sre=c($b(),1),If=c(D(),1),Hs=c(X(),1);function hVe(e){return e?Object.values(e).every(t=>Object.entries(t).every(([o,r])=>o==="children"&&r&&typeof r=="object"?hVe(r):r.type!=="invalid"&&r.type!=="validating")):!0}function qyt(e,t){let o=cz(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 d=s.children.map(n).filter(u=>u!==null);return d.length===0?null:{id:s.id,children:d}}let a=r.get(s.id);if(!a)return null;let[l]=az([a]);return{id:s.id,children:[],field:l}}return o.fields.map(n).filter(s=>s!==null)}function yS(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 bVe(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 Xyt(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(d=>yS(d,{elements:{type:"invalid",message:(0,Hs.__)("Could not validate elements.")}},[...i,t.id]));return}t.field?.isValid.elements&&!t.field.isValid.elements.validate(s,{...t.field,elements:l})?n(d=>yS(d,{elements:{type:"invalid",message:(0,Hs.__)("Value must be one of the elements.")}},[...i,t.id])):n(d=>bVe(d,[...i,t.id],"elements"))}}).catch(l=>{if(a!==r.current[t.id])return;let d;l instanceof Error?d=l.message:d=String(l)||(0,Hs.__)("Unknown error when running elements validation asynchronously."),n(u=>yS(u,{elements:{type:"invalid",message:d}},[...i,t.id]))})}function Zyt(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=>bVe(l,[...i,t.id],"custom"));return}if(typeof a=="string"){n(l=>yS(l,{custom:{type:"invalid",message:a}},[...i,t.id]));return}n(l=>yS(l,{custom:{type:"invalid",message:(0,Hs.__)("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,Hs.__)("Unknown error when running custom validation asynchronously."),n(d=>yS(d,{custom:{type:"invalid",message:l}},[...i,t.id]))})}function _Ve(e,t){return e.children.length===0&&!!e.field?.isVisible&&!e.field.isVisible(t)}function vVe(e,t,o){if(_Ve(t,e)){let{customCounterRef:i,elementsCounterRef:s}=o;i.current[t.id]&&(i.current[t.id]+=1),s.current[t.id]&&(s.current[t.id]+=1);return}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,Hs.__)("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,Hs.__)("Value is below the minimum.")}};if(t.field?.isValid.max&&!t.field.isValid.max.validate(e,t.field))return{max:{type:"invalid",message:(0,Hs.__)("Value is above the maximum.")}};if(t.field?.isValid.minLength&&!t.field.isValid.minLength.validate(e,t.field))return{minLength:{type:"invalid",message:(0,Hs.__)("Value is too short.")}};if(t.field?.isValid.maxLength&&!t.field.isValid.maxLength.validate(e,t.field))return{maxLength:{type:"invalid",message:(0,Hs.__)("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,Hs.__)("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,gVe.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,Hs.__)("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"&&(Xyt(t.field.getElements(),t,o),n.elements={type:"validating",message:(0,Hs.__)("Validating\u2026")}),r instanceof Promise&&(Zyt(r,t,o),n.custom={type:"validating",message:(0,Hs.__)("Validating\u2026")}),Object.keys(n).length>0)return n;if(t.children.length>0){let i={};t.children.forEach(a=>{i[a.id]=vVe(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 yVe(e,t){let o=e?.field?.getValue({item:t}),r=_Ve(e,t);if(e.children.length===0)return{value:o,isHidden:r};let n=e.children.map(i=>yVe(i,t));return{value:o,isHidden:r,children:n}}function Qyt(e,t,o){let[r,n]=(0,If.useState)(),i=(0,If.useRef)({}),s=(0,If.useRef)({}),a=(0,If.useRef)({}),l=(0,If.useCallback)(()=>{let d={customCounterRef:i,elementsCounterRef:s,setFormValidity:n,path:[],item:e},u=qyt(o,t);if(u.length===0){n(void 0);return}let f={},p=[];u.forEach(m=>{let g=yVe(m,e);if(a.current.hasOwnProperty(m.id)&&(0,Sre.default)(a.current[m.id],g)){p.push(m.id);return}a.current[m.id]=g;let h=vVe(e,m,d);h!==void 0&&(f[m.id]=h)}),n(m=>{let g={...m,...f},h=[...p,...Object.keys(f)];return Object.keys(g).forEach(v=>{g&&!h.includes(v)&&delete g[v]}),Object.keys(g).length===0&&(g=void 0),(0,Sre.default)(m,g)?m:g})},[e,t,o]);return(0,If.useEffect)(()=>{l()},[l]),{validity:r,isValid:hVe(r)}}var wVe=Qyt;var uz=c(D(),1);function Lb(e,t){let o=(0,uz.useCallback)(()=>{let r=e.current?.querySelectorAll("input, textarea, select"),n=0;return r?.forEach(i=>{i.willValidate&&!i.validity.valid&&(n++,i.dispatchEvent(new Event("invalid",{cancelable:!0})))}),n},[e]);return(0,uz.useEffect)(()=>{t&&o()},[t,o]),o}var xVe=c(D(),1);function Jyt(e){return Array.isArray(e)?e.map(t=>typeof t=="string"?t:t.id):[]}var fz=(e,t)=>Array.isArray(e)&&e.length>0?Jyt(e).map(r=>t.find(n=>n.id===r)).filter(r=>r!==void 0):[];var ewt=(e,t)=>{if(e.children){let o=e.children.filter(r=>!r.children);return o.length===0?void 0:t.find(r=>r.id===o[0].id)}return t.find(o=>o.id===e.id)};function twt(e){let{fields:t}=(0,xVe.useContext)(Mc),o=e.layout,r=fz(o.summary,t),n=ewt(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 pz=twt;var Us=c(T(),1);function owt({data:e,field:t,onChange:o,fieldLabel:r,onClose:n,touched:i}){let{openAs:s}=t.layout,{applyLabel:a,cancelLabel:l}=s,{fields:d}=(0,Zd.useContext)(Mc),[u,f]=(0,Zd.useState)({}),p=(0,Zd.useMemo)(()=>(0,Cre.default)(e,u,{arrayMerge:(x,k)=>k}),[e,u]),m=(0,Zd.useMemo)(()=>({layout:rs,fields:t.children?t.children:[{id:t.id,layout:rs}]}),[t]),g=d.map(x=>({...x,Edit:x.Edit===null?void 0:x.Edit,isValid:{required:x.isValid.required?.constraint,elements:x.isValid.elements?.constraint,min:x.isValid.min?.constraint,max:x.isValid.max?.constraint,pattern:x.isValid.pattern?.constraint,minLength:x.isValid.minLength?.constraint,maxLength:x.isValid.maxLength?.constraint}})),{validity:h}=wVe(p,g,m),b=()=>{o(u),n()},v=x=>{f(k=>(0,Cre.default)(k,x,{arrayMerge:(C,S)=>S}))},_=(0,mz.useFocusOnMount)("firstInputElement"),y=(0,Zd.useRef)(null),w=(0,mz.useMergeRefs)([_,y]);return Lb(y,i),(0,Us.jsxs)(Fy.Modal,{className:"dataforms-layouts-panel__modal",onRequestClose:n,isFullScreen:!1,title:r,size:"medium",children:[(0,Us.jsx)("div",{ref:w,children:(0,Us.jsx)(ka,{data:p,form:m,onChange:v,validity:h,children:(x,k,C,S)=>(0,Us.jsx)(x,{data:p,field:k,onChange:v,hideLabelFromVision:m.fields.length<2,markWhenOptional:S,validity:C},k.id)})}),(0,Us.jsxs)(De,{direction:"row",className:"dataforms-layouts-panel__modal-footer",gap:"md",children:[(0,Us.jsx)(Fy.__experimentalSpacer,{style:{flex:1}}),(0,Us.jsx)(Fy.Button,{variant:"tertiary",onClick:n,__next40pxDefaultSize:!0,children:l}),(0,Us.jsx)(Fy.Button,{variant:"primary",onClick:b,__next40pxDefaultSize:!0,children:a})]})]})}function rwt({data:e,field:t,onChange:o,validity:r}){let[n,i]=(0,Zd.useState)(!1),[s,a]=(0,Zd.useState)(!1),{fieldDefinition:l,fieldLabel:d,summaryFields:u}=pz(t);if(!l)return null;let f=l.readOnly===!0||l.isDisabled({item:e,field:l});return(0,Us.jsxs)(Us.Fragment,{children:[(0,Us.jsx)(i3,{data:e,field:t,fieldLabel:d,summaryFields:u,validity:r,touched:n,disabled:f,onClick:()=>a(!0),isOpen:s}),s&&(0,Us.jsx)(owt,{data:e,field:t,onChange:o,fieldLabel:d??"",onClose:()=>{a(!1),i(!0)},touched:n})]})}var kVe=rwt;var Db=c(Q(),1),SVe=c(X(),1),Bm=c(D(),1);var CVe=c(ue(),1);var ns=c(T(),1);function nwt({title:e,onClose:t}){return(0,ns.jsx)(De,{direction:"column",className:"dataforms-layouts-panel__dropdown-header",gap:"lg",children:(0,ns.jsxs)(De,{direction:"row",gap:"sm",align:"center",children:[e&&(0,ns.jsx)(Db.__experimentalHeading,{level:2,size:13,children:e}),(0,ns.jsx)(Db.__experimentalSpacer,{style:{flex:1}}),t&&(0,ns.jsx)(Db.Button,{label:(0,SVe.__)("Close"),icon:Lf,onClick:t,size:"small"})]})})}function iwt({touched:e,children:t}){let o=(0,Bm.useRef)(null);return Lb(o,e),(0,ns.jsx)("div",{ref:o,children:t})}function swt({data:e,field:t,onChange:o,validity:r}){let[n,i]=(0,Bm.useState)(!1),[s,a]=(0,Bm.useState)(null),l=(0,Bm.useMemo)(()=>({anchor:s,placement:"left-start",offset:36,shift:!0}),[s]),[d,u]=(0,CVe.__experimentalUseDialog)({focusOnMount:"firstInputElement"}),f=(0,Bm.useMemo)(()=>({layout:rs,fields:t.children?t.children:[{id:t.id,layout:rs}]}),[t]),p=(0,Bm.useMemo)(()=>{if(r!==void 0)return t.children?r?.children:{[t.id]:r}},[r,t]),{fieldDefinition:m,fieldLabel:g,summaryFields:h}=pz(t);if(!m)return null;let b=m.readOnly===!0||m.isDisabled({item:e,field:m});return(0,ns.jsx)("div",{ref:a,className:"dataforms-layouts-panel__field-dropdown-anchor",children:(0,ns.jsx)(Db.Dropdown,{contentClassName:"dataforms-layouts-panel__field-dropdown",popoverProps:l,focusOnMount:!1,onToggle:v=>{v||i(!0)},renderToggle:({isOpen:v,onToggle:_})=>(0,ns.jsx)(i3,{data:e,field:t,fieldLabel:g,summaryFields:h,validity:r,touched:n,disabled:b,isOpen:v,onClick:_}),renderContent:({onClose:v})=>(0,ns.jsx)(iwt,{touched:n,children:(0,ns.jsxs)("div",{ref:d,...u,children:[(0,ns.jsx)(nwt,{title:g,onClose:v}),(0,ns.jsx)(ka,{data:e,form:f,onChange:o,validity:p,children:(_,y,w,x)=>(0,ns.jsx)(_,{data:e,field:y,onChange:o,hideLabelFromVision:(f?.fields??[]).length<2,markWhenOptional:x,validity:w},y.id)})]})})})})}var EVe=swt;var Ere=c(T(),1);function TVe({data:e,field:t,onChange:o,validity:r}){return t.layout.openAs.type==="modal"?(0,Ere.jsx)(kVe,{data:e,field:t,onChange:o,validity:r}):(0,Ere.jsx)(EVe,{data:e,field:t,onChange:o,validity:r})}var is=c(D(),1),PVe=c(zo(),1),BVe=c(ue(),1);var gz=c(X(),1);function RVe(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+=RVe(r);return t}function wS(e){let t=RVe(e);if(t!==0)return(0,gz.sprintf)((0,gz._n)("%d field needs attention","%d fields need attention",t),t)}var IVe=c(T(),1);function hz({validity:e}){let t=wS(e);return t?(0,IVe.jsx)(cp,{intent:"high",children:t}):null}var Gr=c(T(),1);function awt(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 lwt({data:e,fields:t,label:o,layout:r,isOpen:n,touched:i,validity:s}){let l=fz(r.summary,t).filter(f=>awt(f,r.summary,n)),d=i&&r.isCollapsible,u=l.length>0&&r.withHeader;return(0,Gr.jsxs)(De,{align:"center",justify:"space-between",className:"dataforms-layouts-card__field-header-content",children:[(0,Gr.jsx)(Ru.Title,{children:o}),(d||u)&&(0,Gr.jsxs)(K_.HeaderDescription,{className:"dataforms-layouts-card__field-header-content-description",children:[d&&(0,Gr.jsx)(hz,{validity:s}),u&&(0,Gr.jsx)("div",{className:"dataforms-layouts-card__field-summary",children:l.map(f=>(0,Gr.jsx)(f.render,{item:e,field:f},f.id))})]})]})}function cwt({data:e,field:t,form:o,onChange:r,hideLabelFromVision:n,markWhenOptional:i,validity:s,withHeader:a}){if(t.children)return(0,Gr.jsxs)(Gr.Fragment,{children:[t.description&&(0,Gr.jsx)("div",{className:"dataforms-layouts-card__field-description",children:t.description}),(0,Gr.jsx)(ka,{data:e,form:o,onChange:r,validity:s?.children})]});let l=zy("regular")?.component;return l?(0,Gr.jsx)(l,{data:e,field:t,onChange:r,hideLabelFromVision:n||a,markWhenOptional:i,validity:s}):null}function OVe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{fields:s}=(0,is.useContext)(Mc),a=t.layout,l=(0,is.useRef)(null),d=(0,is.useRef)(!1),u=(0,is.useMemo)(()=>({layout:rs,fields:t.children??[]}),[t]),{isOpened:f,isCollapsible:p}=a,[m,g]=(0,is.useState)(f),[h,b]=(0,is.useState)(!1);(0,is.useEffect)(()=>{g(f)},[f]);let v=(0,is.useCallback)(E=>{E||b(!0),g(E)},[]),_=Lb(l,(p?m:!0)&&h),y=(0,is.useCallback)(()=>{d.current=!0},[]),w=(0,is.useCallback)(()=>{if(!d.current||(b(!0),p&&!m))return;let E=_(),I=wS(i);E>0&&I&&(0,PVe.speak)(I,"polite")},[p,m,_,i]),x=(0,BVe.__experimentalUseFocusOutside)(w),k=t.label,C;if(t.children)C=!!k&&a.withHeader;else{let E=s.find(I=>I.id===t.id);if(!lz(E))return null;k=E.label,C=!!k&&a.withHeader}let S=(0,Gr.jsx)(cwt,{data:e,field:t,form:u,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i,withHeader:C}),R=(0,Gr.jsx)(lwt,{data:e,fields:s,label:k,layout:a,isOpen:p?!!m:!0,touched:h,validity:i});return C&&p?(0,Gr.jsxs)(K_.Root,{className:"dataforms-layouts-card__field",open:m,onOpenChange:v,...x,children:[(0,Gr.jsx)(K_.Header,{children:R}),(0,Gr.jsx)(K_.Content,{ref:l,onFocus:y,children:S})]}):(0,Gr.jsxs)(Ru.Root,{className:"dataforms-layouts-card__field",...x,children:[C&&(0,Gr.jsx)(Ru.Header,{children:R}),(0,Gr.jsx)(Ru.Content,{ref:l,onFocus:y,children:S})]})}var MVe=c(Q(),1);var oi=c(T(),1);function dwt({title:e}){return(0,oi.jsx)(De,{direction:"column",className:"dataforms-layouts-row__header",gap:"lg",children:(0,oi.jsx)(De,{direction:"row",align:"center",children:(0,oi.jsx)(MVe.__experimentalHeading,{level:2,size:13,children:e})})})}var uwt=({children:e})=>(0,oi.jsx)(oi.Fragment,{children:e});function AVe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let s=t.layout;if(t.children){let l={layout:rs,fields:t.children};return(0,oi.jsxs)("div",{className:"dataforms-layouts-row__field",children:[!r&&t.label&&(0,oi.jsx)(dwt,{title:t.label}),(0,oi.jsx)(De,{direction:"row",align:s.alignment,gap:"lg",children:(0,oi.jsx)(ka,{data:e,form:l,onChange:o,validity:i?.children,as:uwt,children:(d,u,f)=>(0,oi.jsx)("div",{className:"dataforms-layouts-row__field-control",style:s.styles[u.id],children:(0,oi.jsx)(d,{data:e,field:u,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:f})},u.id)})})]})}let a=zy("regular")?.component;return a?(0,oi.jsx)(oi.Fragment,{children:(0,oi.jsx)("div",{className:"dataforms-layouts-row__field-control",children:(0,oi.jsx)(a,{data:e,field:t,onChange:o,markWhenOptional:n,validity:i})})}):null}var ss=c(D(),1),NVe=c(X(),1),LVe=c(zo(),1),DVe=c(ue(),1);var Om=c(T(),1);function VVe({data:e,field:t,onChange:o,validity:r}){let{fields:n}=(0,ss.useContext)(Mc),i=(0,ss.useRef)(null),s=(0,ss.useRef)(null),a=(0,ss.useRef)(!1),[l,d]=(0,ss.useState)(!1),[u,f]=(0,ss.useState)(!1),p=(0,ss.useMemo)(()=>({layout:rs,fields:t.children??[]}),[t]);(0,ss.useEffect)(()=>{let w=i.current;if(!w)return;let x=()=>{let k=w.open;k||d(!0),f(k)};return w.addEventListener("toggle",x),()=>{w.removeEventListener("toggle",x)}},[]);let m=Lb(s,u&&l),g=(0,ss.useCallback)(()=>{a.current=!0},[]),h=(0,ss.useCallback)(()=>{if(!a.current||(d(!0),!i.current?.open))return;let w=m(),x=wS(r);w>0&&x&&(0,LVe.speak)(x,"polite")},[m,r]),b=(0,DVe.__experimentalUseFocusOutside)(h);if(!t.children)return null;let v=t.layout.summary??"",_=v?n.find(w=>w.id===v):void 0,y;return _&&_.render?y=(0,Om.jsx)(_.render,{item:e,field:_}):y=t.label||(0,NVe.__)("More details"),(0,Om.jsxs)("details",{ref:i,className:"dataforms-layouts-details__details",...b,children:[(0,Om.jsx)("summary",{className:"dataforms-layouts-details__summary",children:(0,Om.jsxs)(De,{direction:"row",align:"center",gap:"md",className:"dataforms-layouts-details__summary-content",children:[y,l&&(0,Om.jsx)(hz,{validity:r})]})}),(0,Om.jsx)("div",{ref:s,className:"dataforms-layouts-details__content",onFocus:g,children:(0,Om.jsx)(ka,{data:e,form:p,onChange:o,validity:r?.children})})]})}var jy=c(T(),1),fwt=[{type:"regular",component:aVe,wrapper:({children:e})=>(0,jy.jsx)(De,{direction:"column",className:"dataforms-layouts__wrapper",gap:"lg",children:e})},{type:"panel",component:TVe,wrapper:({children:e})=>(0,jy.jsx)(De,{direction:"column",className:"dataforms-layouts__wrapper",gap:"md",children:e})},{type:"card",component:OVe,wrapper:({children:e})=>(0,jy.jsx)(De,{direction:"column",className:"dataforms-layouts__wrapper",gap:"xl",children:e})},{type:"row",component:AVe,wrapper:({children:e,layout:t})=>(0,jy.jsx)(De,{direction:"column",className:"dataforms-layouts__wrapper",gap:"lg",children:(0,jy.jsx)("div",{className:"dataforms-layouts-row__field",children:(0,jy.jsx)(De,{direction:"row",gap:"lg",align:t.alignment,children:e})})})},{type:"details",component:VVe}];function zy(e){return fwt.find(t=>t.type===e)}var bz=c(T(),1),pwt=({children:e})=>(0,bz.jsx)(De,{direction:"column",className:"dataforms-layouts__wrapper",gap:"lg",children:e});function ka({data:e,form:t,onChange:o,validity:r,children:n,as:i}){let{fields:s}=(0,_z.useContext)(Mc),a=(0,_z.useMemo)(()=>{let u=s.filter(p=>!!p.isValid?.required).length,f=s.length-u;return u>f},[s]);function l(u){return s.find(f=>f.id===u.id)}let d=i??zy(t.layout.type)?.wrapper??pwt;return(0,bz.jsx)(d,{layout:t.layout,children:t.fields.map(u=>{let f=zy(u.layout.type)?.component;if(!f)return null;let p=u.children?void 0:l(u);return p&&p.isVisible&&!p.isVisible(e)?null:n?n(f,u,r?.[u.id],a):(0,bz.jsx)(f,{data:e,field:u,onChange:o,markWhenOptional:a,validity:r?.[u.id]},u.id)})})}var Rre=c(T(),1);function Ire({data:e,form:t,fields:o,onChange:r,validity:n}){let i=(0,Tre.useMemo)(()=>cz(t),[t]),s=(0,Tre.useMemo)(()=>az(o),[o]);return t.fields?(0,Rre.jsx)(nVe,{fields:s,children:(0,Rre.jsx)(ka,{data:e,form:i,onChange:r,validity:n})}):null}var yz=c(D(),1),HVe=c(X(),1);function FVe(e){let t=[],o=[];return Object.entries(e).forEach(([r,n])=>{if(!n.autoGenerateControl)return;let i=mwt(r,n);i&&(t.push(i),o.push(r))}),{fields:t,form:{fields:o}}}function mwt(e,t){let o=t.type,r={id:e,label:t.label||e,type:o==="string"?"text":o};return o==="array"&&Array.isArray(t.items?.enum)?r.elements=t.items.enum.map(n=>({value:n,label:String(n)})):t.enum&&Array.isArray(t.enum)&&(r.elements=t.enum.map(n=>({value:n,label:String(n)}))),r}var vz=c(T(),1);function gwt(e){return e?Object.values(e).some(t=>t?.autoGenerateControl):!1}function hwt({name:e,clientId:t,setAttributes:o}){let r=Hr(),n=(0,yz.useContext)(Oi),i=(0,jVe.useSelect)(d=>{let u=d(P).getBlockAttributes(t);if(!u?.metadata?.bindings)return u;let{getBlockBindingsSource:f}=Z(d(s3.store));return Object.entries(u.metadata.bindings).reduce((p,[m,g])=>{let h=f(g.source);if(!h)return p;let b=h.getValues({select:d,context:n,bindings:{[m]:g}});return{...p,...b}},u)},[n,t]),s=(0,s3.getBlockType)(e),{fields:a,form:l}=(0,yz.useMemo)(()=>s?.attributes?FVe(s.attributes):{fields:[],form:{fields:[]}},[s?.attributes]);return r!=="default"||!a||a.length===0?null:(0,vz.jsx)(je,{children:(0,vz.jsx)(zVe.PanelBody,{title:(0,HVe.__)("Settings"),children:(0,vz.jsx)(Ire,{data:i,fields:a,form:l,onChange:o})})})}var UVe={edit:hwt,attributeKeys:[],hasSupport(e){let t=(0,s3.getBlockType)(e);return gwt(t?.attributes)}};function wz(e){let{style:t}=e,o=t?.dimensions||{},r=al({dimensions:o});return{className:o.aspectRatio?"has-aspect-ratio":void 0,style:r}}function xz(e){let t=e.style?.border||{};return{className:Ioe(e)||void 0,style:al({border:t})}}function Pre(e){let{colors:t}=ob(),o=xz(e),{borderColor:r}=e;if(r){let n=My({colors:t,namedColor:r});o.style.borderColor=n.color}return o}function Bre(e){let t=e.style?.shadow||"";return{style:al({shadow:t})}}var Ore=c(D(),1);function kz(e){let{backgroundColor:t,textColor:o,gradient:r,style:n}=e,i=pl("background-color",t),s=pl("color",o),a=Vw(r),l=a||n?.color?.gradient,d=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}),u=n?.color||{},f=al({color:u});return{className:d||void 0,style:f}}function Mre(e){let{backgroundColor:t,textColor:o,gradient:r}=e,[n,i,s,a,l,d]=Fe("color.palette.custom","color.palette.theme","color.palette.default","color.gradients.custom","color.gradients.theme","color.gradients.default"),u=(0,Ore.useMemo)(()=>[...n||[],...i||[],...s||[]],[n,i,s]),f=(0,Ore.useMemo)(()=>[...a||[],...l||[],...d||[]],[a,l,d]),p=kz(e);if(t){let m=ru(u,t);p.style.backgroundColor=m.color}if(r&&(p.style.background=v9(f,r)),o){let m=ru(u,o);p.style.color=m.color}return p}function Are(e){let{style:t}=e,o=t?.spacing||{};return{style:al({spacing:o})}}function Nre(e,t){let o=e?.style?.typography||{};o={...o,fontSize:Hf({size:e?.style?.typography?.fontSize},t)};let r=al({typography:o}),n=e?.fontFamily?`has-${Bi(e.fontFamily)}-font-family`:"",i=e?.style?.typography?.textAlign?`has-text-align-${e?.style?.typography?.textAlign}`:"";return{className:U(n,i,sg(e?.fontSize)),style:r}}var Sz=c(D(),1);function Lre(e){let[t,o]=(0,Sz.useState)(e);return(0,Sz.useEffect)(()=>{e&&o(e)},[e]),t}AMe([CV,sV,hoe,yoe,tF,iF,zoe,lV,GQ,CNe,FNe,WNe,Zoe,tAe,KNe,UVe].filter(Boolean));NMe([CV,sV,n8e,tF,Ete,oNe,zoe,Mte,Nte,Hoe,lV,Poe,iF,GQ,FOe,Zoe]);LMe([CV,sV,hoe,nAe,yoe,Poe,iF,lV,Ete,tF,Mte,Nte,Hoe]);var WVe={button:"wp-element-button",caption:"wp-element-caption"},bwt=e=>WVe[e]?WVe[e]:"";var GVe=()=>"";var xS=c(D(),1),a3=c(ce(),1),Vre=c(pn(),1);var $Ve=c(T(),1);function Fre(e,t,o){if(e==null||e===!1)return;if(Array.isArray(e))return Dre(e,t,o);switch(typeof e){case"string":case"number":return}let{type:r,props:n}=e;switch(r){case xS.StrictMode:case xS.Fragment:return Dre(n.children,t,o);case xS.RawHTML:return;case Z5.Content:return YVe(t,o);case Q2:t.push(n.value);return}switch(typeof r){case"string":return typeof n.children<"u"?Dre(n.children,t,o):void 0;case"function":let i=r.prototype&&typeof r.prototype.render=="function"?new r(n).render():r(n);return Fre(i,t,o)}}function Dre(e,...t){e=Array.isArray(e)?e:[e];for(let o=0;o<e.length;o++)Fre(e[o],...t)}function YVe(e,t){for(let o=0;o<t.length;o++){let{name:r,attributes:n,innerBlocks:i}=t[o],s=(0,a3.getSaveElement)(r,n,(0,$Ve.jsx)(Z5.Content,{}));Fre(s,e,i)}}function KVe(e=[]){a3.__unstableGetBlockProps.skipFilters=!0;let t=[];return YVe(t,e),a3.__unstableGetBlockProps.skipFilters=!1,t.map(o=>o instanceof Vre.RichTextData?o:Vre.RichTextData.fromHTMLString(o))}var qVe=c(Q(),1);var zre=c(T(),1);function XVe({clientId:e,resizableBoxProps:t,...o}){return(0,zre.jsx)(Zl,{clientId:e,__unstablePopoverSlot:"__unstable-block-tools-after",...o,children:(0,zre.jsx)(qVe.ResizableBox,{...t})})}var c3=c(D(),1),Cz=c(oe(),1),Qd=c(Q(),1),l3=c(X(),1);var Ac=c(T(),1);function ZVe({rules:e}){let[t,o]=(0,c3.useState)(!1),{clientIds:r,selectPrevious:n,message:i}=(0,Cz.useSelect)(g=>Z(g(P)).getRemovalPromptData()),{clearBlockRemovalPrompt:s,setBlockRemovalRules:a,privateRemoveBlocks:l}=Z((0,Cz.useDispatch)(P));if((0,c3.useEffect)(()=>(a(e),()=>{a()}),[e,a]),(0,c3.useEffect)(()=>{o(!1)},[r]),!i)return;let d=typeof i=="object"&&i!==null,u=d?i.description:i,f=d&&i.requireConfirmation,p=f&&!t,m=()=>{l(r,n,!0),s()};return(0,Ac.jsx)(Qd.Modal,{title:(0,l3.__)("Confirm deletion"),onRequestClose:s,size:"medium",children:(0,Ac.jsxs)(Qd.__experimentalVStack,{spacing:4,children:[(0,Ac.jsxs)("div",{children:[(0,Ac.jsx)("p",{children:u}),d&&(i.warning||i.subtext)&&(0,Ac.jsxs)("p",{children:[i.warning&&(0,Ac.jsx)("strong",{children:i.warning}),i.warning&&i.subtext&&" ",i.subtext]})]}),f&&(0,Ac.jsx)(Qd.CheckboxControl,{label:(0,l3.__)("I understand the consequences"),checked:t,onChange:o}),(0,Ac.jsxs)(Qd.__experimentalHStack,{justify:"right",children:[(0,Ac.jsx)(Qd.Button,{variant:"tertiary",onClick:s,__next40pxDefaultSize:!0,children:(0,l3.__)("Cancel")}),(0,Ac.jsx)(Qd.Button,{variant:"primary",onClick:m,disabled:p,accessibleWhenDisabled:!0,__next40pxDefaultSize:!0,children:(0,l3.__)("Delete")})]})]})})}var CS=c(D(),1);var kS=c(Q(),1),JVe=c(D(),1),Ca=c(X(),1),Ez=c(T(),1),QVe=[{value:"fill",label:(0,Ca._x)("Fill","Scale option for dimensions control"),help:(0,Ca.__)("Fill the space by stretching the content.")},{value:"contain",label:(0,Ca._x)("Contain","Scale option for dimensions control"),help:(0,Ca.__)("Fit the content to the space without clipping.")},{value:"cover",label:(0,Ca._x)("Cover","Scale option for dimensions control"),help:(0,Ca.__)("Fill the space by clipping what doesn't fit.")},{value:"none",label:(0,Ca._x)("None","Scale option for dimensions control"),help:(0,Ca.__)("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,Ca._x)("Scale down","Scale option for dimensions control"),help:(0,Ca.__)("Scale down the content to fit the space if it is too big. Content that is too small will have additional padding.")}];function eFe({panelId:e,value:t,onChange:o,options:r=QVe,defaultValue:n=QVe[0].value,isShownByDefault:i=!0}){let s=t??n,a=(0,JVe.useMemo)(()=>r.reduce((l,d)=>(l[d.value]=d.help,l),{}),[r]);return(0,Ez.jsx)(kS.__experimentalToolsPanelItem,{label:(0,Ca._x)("Scale","Image scaling options"),isShownByDefault:i,hasValue:()=>s!==n,onDeselect:()=>o(n),panelId:e,children:(0,Ez.jsx)(kS.__experimentalToggleGroupControl,{label:(0,Ca._x)("Scale","Image scaling options"),isBlock:!0,help:a[s],value:s,onChange:o,children:r.map(l=>(0,Ez.jsx)(kS.__experimentalToggleGroupControlOption,{...l},l.value))})})}var SS=c(Q(),1),Hy=c(X(),1),Mm=c(T(),1);function tFe({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=>d=>{let u={...t};d?u[l]=d:delete u[l],o(u)};return(0,Mm.jsxs)(Mm.Fragment,{children:[(0,Mm.jsx)(SS.__experimentalToolsPanelItem,{style:{gridColumn:"span 1"},label:(0,Hy.__)("Width"),isShownByDefault:n,hasValue:()=>i!=="",onDeselect:a("width"),panelId:e,children:(0,Mm.jsx)(SS.__experimentalUnitControl,{label:(0,Hy.__)("Width"),placeholder:(0,Hy.__)("Auto"),labelPosition:"top",units:r,min:0,value:i,onChange:a("width")})}),(0,Mm.jsx)(SS.__experimentalToolsPanelItem,{style:{gridColumn:"span 1"},label:(0,Hy.__)("Height"),isShownByDefault:n,hasValue:()=>s!=="",onDeselect:a("height"),panelId:e,children:(0,Mm.jsx)(SS.__experimentalUnitControl,{label:(0,Hy.__)("Height"),placeholder:(0,Hy.__)("Auto"),labelPosition:"top",units:r,min:0,value:s,onChange:a("height")})})]})}var Vb=c(T(),1);function _wt({panelId:e,value:t={},onChange:o=()=>{},aspectRatioOptions:r,defaultAspectRatio:n="auto",scaleOptions:i,defaultScale:s="cover",unitsOptions:a,tools:l=["aspectRatio","widthHeight","scale"]}){let d=t.width===void 0||t.width==="auto"?null:t.width,u=t.height===void 0||t.height==="auto"?null:t.height,f=t.aspectRatio===void 0||t.aspectRatio==="auto"?null:t.aspectRatio,p=t.scale===void 0?null:t.scale,m=!!(d&&u),g=(0,CS.useRef)(p),h=(0,CS.useRef)(f);(0,CS.useEffect)(()=>{p&&(g.current=p)},[p]),(0,CS.useEffect)(()=>{m||(h.current=f)},[f,m]);let b=m?"custom":f,v=f||d&&u;return(0,Vb.jsxs)(Vb.Fragment,{children:[l.includes("aspectRatio")&&(0,Vb.jsx)(AV,{panelId:e,options:r,defaultValue:n,value:b,onChange:_=>{let y={...t};_=_==="auto"?null:_,_?y.aspectRatio=_:delete y.aspectRatio,_?y.scale=g.current??s:delete y.scale,_!=="custom"&&d&&u&&delete y.height,o(y)}}),l.includes("widthHeight")&&(0,Vb.jsx)(tFe,{panelId:e,units:a,value:{width:d,height:u},onChange:({width:_,height:y})=>{let w={...t};_=_==="auto"?null:_,y=y==="auto"?null:y,_?w.width=_:delete w.width,y?w.height=y:delete w.height,_&&y?delete w.aspectRatio:h.current&&(w.aspectRatio=h.current),!h.current&&!!_!=!!y?delete w.scale:w.scale=g.current??s,o(w)}}),l.includes("scale")&&v&&(0,Vb.jsx)(eFe,{panelId:e,options:i,defaultValue:s,value:p,onChange:_=>{let y={...t};_?y.scale=_:delete y.scale,o(y)}})]})}var oFe=_wt;var Tz=c(Q(),1),Am=c(X(),1),jre=c(T(),1),rFe=[{label:(0,Am._x)("Thumbnail","Image size option for resolution control"),value:"thumbnail"},{label:(0,Am._x)("Medium","Image size option for resolution control"),value:"medium"},{label:(0,Am._x)("Large","Image size option for resolution control"),value:"large"},{label:(0,Am._x)("Full Size","Image size option for resolution control"),value:"full"}];function nFe({panelId:e,value:t,onChange:o,options:r=rFe,defaultValue:n=rFe[0].value,isShownByDefault:i=!0,resetAllFilter:s}){let a=t??n;return(0,jre.jsx)(Tz.__experimentalToolsPanelItem,{hasValue:()=>a!==n,label:(0,Am.__)("Resolution"),onDeselect:()=>o(n),isShownByDefault:i,panelId:e,resetAllFilter:s,children:(0,jre.jsx)(Tz.SelectControl,{label:(0,Am.__)("Resolution"),value:a,options:r,onChange:o,help:(0,Am.__)("Select the size of the source image.")})})}var Uy=c(X(),1),ES=c(Q(),1),sFe=c(oe(),1);var Jd=c(X(),1),iFe={a:(0,Jd.__)("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,Jd.__)("The <article> element should represent a self-contained, syndicatable portion of the document."),aside:(0,Jd.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content."),button:(0,Jd.__)("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,Jd.__)("The <div> element should only be used if the block is a design element with no semantic meaning."),footer:(0,Jd.__)("The <footer> element should represent a footer for its nearest sectioning element (e.g.: <section>, <article>, <main> etc.)."),header:(0,Jd.__)("The <header> element should represent introductory content, typically a group of introductory or navigational aids."),main:(0,Jd.__)("The <main> element should be used for the primary content of your document only."),nav:(0,Jd.__)("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,Jd.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element.")};var d3=c(T(),1);function aFe({tagName:e,onChange:t,clientId:o,options:r=[{label:(0,Uy.__)("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,sFe.useSelect)(a=>{if(!n)return!1;let{getClientIdsWithDescendants:l,getBlockAttributes:d}=a(P);return l().some(u=>u===o?!1:d(u)?.tagName==="main")},[o,n]),s=r.map(a=>a.value==="main"&&i&&e!=="main"?{...a,disabled:!0,label:(0,Uy.sprintf)((0,Uy.__)("%s (Already in use)"),a.label)}:a);return(0,d3.jsxs)(ES.__experimentalVStack,{spacing:2,className:"block-editor-html-element-control",children:[(0,d3.jsx)(ES.SelectControl,{label:(0,Uy.__)("HTML element"),options:s,value:e,onChange:t,help:iFe[e]}),e==="main"&&i&&(0,d3.jsx)(ES.Notice,{status:"warning",isDismissible:!1,children:(0,Uy.__)("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 Nm=c(Q(),1);var TS=c(D(),1),Rz=c(X(),1);var Nc=c(Q(),1);var lFe=c(Ut(),1);var cl=c(T(),1);function cFe({title:e,url:t,image:o,badges:r}){return(0,cl.jsxs)(Nc.__experimentalHStack,{justify:"space-between",alignment:"top",children:[(0,cl.jsx)(Nc.FlexItem,{className:"link-preview-button__content",children:(0,cl.jsxs)(Nc.__experimentalHStack,{alignment:"top",children:[o&&(0,cl.jsx)(Nc.FlexItem,{className:"link-preview-button__image-container",children:(0,cl.jsx)("img",{className:"link-preview-button__image",src:o,alt:""})}),(0,cl.jsxs)(Nc.__experimentalVStack,{className:"link-preview-button__details",alignment:"topLeft",children:[(0,cl.jsx)(Nc.__experimentalTruncate,{numberOfLines:1,className:"link-preview-button__title",children:(0,lFe.__unstableStripHTML)(e)}),t&&(0,cl.jsx)(Nc.__experimentalTruncate,{numberOfLines:1,className:"link-preview-button__hint",children:t}),r&&r.length>0&&(0,cl.jsx)(Nc.__experimentalHStack,{className:"link-preview-button__badges",alignment:"left",children:r.map(n=>(0,cl.jsx)(cp,{intent:n.intent,children:n.label},`${n.label}|${n.intent}`))})]})]})}),(0,cl.jsx)(St,{icon:Tn,className:"link-preview-button__icon"})]})}var dl=c(T(),1);function Hre({preview:e,onSelect:t,suggestionsQuery:o,label:r,help:n}){let[i,s]=(0,TS.useState)(!1),a=(0,TS.useId)(),l=`link-picker-title-${a}`,d=`link-picker-description-${a}`,u=(0,TS.useRef)(null),{baseControlProps:f,controlProps:p}=(0,Nm.useBaseControlProps)({help:n}),m=g=>{if(s(!1),g){let h={url:g.url,kind:g.kind,type:g.type,id:g.id,title:g.title};t(h)}};return(0,dl.jsxs)(Nm.BaseControl,{...f,children:[(0,dl.jsx)(Nm.BaseControl.VisualLabel,{children:r}),(0,dl.jsxs)(Nm.Button,{ref:u,onClick:()=>s(!i),"aria-haspopup":"dialog","aria-expanded":i,"aria-describedby":p["aria-describedby"],variant:"secondary",__next40pxDefaultSize:!0,className:"link-preview-button",children:[r&&(0,dl.jsxs)(Et,{children:[r,":"]}),(0,dl.jsx)(cFe,{title:e.title||(0,Rz.__)("Add link"),url:e.url,image:e.image,badges:e.badges})]}),i&&(0,dl.jsx)(Nm.Popover,{anchor:u.current,onClose:()=>s(!1),placement:"left-start",offset:36,shift:!0,children:(0,dl.jsxs)("div",{role:"dialog","aria-labelledby":l,"aria-describedby":d,children:[(0,dl.jsxs)(Et,{children:[(0,dl.jsx)("h2",{id:l,children:(0,Rz.__)("Select a link")}),(0,dl.jsx)("p",{id:d,children:(0,Rz.__)("Search for and add a link to the navigation item.")})]}),(0,dl.jsx)(_1,{value:null,onChange:m,suggestionsQuery:o,showInitialSuggestions:!0,forceIsEditingLink:!0,settings:[]})]})})]})}var Pf=c(D(),1),Iz=c(oe(),1),dFe=c(Ut(),1);var RS=c(T(),1),Ure="wp-inner-block-slot",vwt={type:"default",alignments:[]};function uFe({clientId:e}){let{innerContent:t,order:o,selectedClientIds:r}=(0,Iz.useSelect)(l=>{let{getBlock:d,getBlockOrder:u,getSelectedBlockClientIds:f}=l(P);return{innerContent:d(e)?.innerContent,order:u(e),selectedClientIds:f()}},[e]),n=(0,Pf.useMemo)(()=>{let l=0;return(t??[]).map(d=>d===null?`<${Ure} data-slot-index="${l++}" style="display: contents"></${Ure}>`:d).join("")},[t]),i=(0,Pf.useRef)(),[s,a]=(0,Pf.useState)([]);return(0,Pf.useLayoutEffect)(()=>{let l=i.current;l.innerHTML=(0,dFe.safeHTML)(n),a(Array.from(l.querySelectorAll(Ure)).sort((d,u)=>Number(d.dataset.slotIndex)-Number(u.dataset.slotIndex)))},[n]),(0,RS.jsxs)(V9,{value:vwt,children:[(0,RS.jsx)("div",{ref:i,className:"block-editor-inner-content",style:{display:"contents"}}),o.map((l,d)=>s[d]?(0,Pf.createPortal)((0,RS.jsx)(Iz.AsyncModeProvider,{value:!r.includes(l),children:(0,RS.jsx)(E8,{rootClientId:e,clientId:l})}),s[d],l):null)]})}var{getDuotoneFilter:ywt}=Z(Ro),Wre={};Rne(Wre,{...Eoe,ExperimentalBlockCanvas:IJ,BlockCanvasCover:VN,ExperimentalBlockEditorProvider:Px,getDuotoneFilter:ywt,getRichTextValues:KVe,PrivateQuickInserter:KM,SEARCH_RANK:jn,normalizeString:rT,PrivateListView:M2,ResizableBoxPopover:XVe,InspectorControlsLastItem:hV,useHasBlockToolbar:mN,cleanEmptyObject:Qe,isDefaultBlockStyleState:$n,usePrivateStyleOverride:il,BlockQuickNavigation:pV,LayoutStyle:Hae,BlockManager:TV,BlockRemovalWarningModal:ZVe,useLayoutClasses:cF,useLayoutStyles:$oe,DimensionsTool:oFe,ResolutionTool:nFe,TabbedSidebar:HM,TextAlignmentControl:JD,usesContextKey:Yee,useFlashEditableBlocks:_8,HTMLElementControl:aFe,useZoomOut:U5,globalStylesDataKey:Gs,globalStylesLinksDataKey:Jy,selectBlockPatternsKey:Fm,requiresWrapperOnCopy:gZ,PrivateRichText:J2,PrivateInserterLibrary:Qte,reusableBlocksSelectKey:R3,userPatternCategoriesSelectKey:Nf,PrivateBlockPopover:Rv,PrivatePublishDateTimePicker:soe,useSpacingSizes:SD,useBlockDisplayTitle:xs,BlockStyleVariationOverridesWithConfig:bte,setBackgroundStyleDefaults:$D,sectionRootClientIdKey:zm,NoteIconSlotFill:GA,NoteIconToolbarSlotFill:aN,mediaEditKey:I3,getMediaSelectKey:Lne,deviceTypeKey:gl,isIsolatedEditorKey:jm,isNavigationOverlayContextKey:P3,isNavigationPostEditorKey:Dne,mediaUploadOnSuccessKey:LS,mediaSideloadFromUrlKey:Vne,openMediaEditorModalKey:Fne,useBlockElement:eo,useBlockElementRef:nv,LinkPicker:Hre,useRemoteUrlData:QL,PrivateBlockContext:si,useListViewPanelState:vF,isHashLink:Hb,isRelativePath:Ub,InnerContent:uFe,useNativeUndo:cx,usesNativeUndo:M0e,isElementVisible:eZ,getPopulatedCategories:t9,searchItems:lg});return RFe(wwt);})(); | |
| 226 | 227 | /*! Bundled license information: |
| 227 | - | |
| 228 | -autosize/dist/autosize.js: | |
| 229 | - (*! | |
| 230 | - autosize 4.0.2 | |
| 231 | - license: MIT | |
| 232 | - http://www.jacklmoore.com/autosize | |
| 233 | - *) | |
| 234 | 228 | |
| 235 | 229 | use-sync-external-store/cjs/use-sync-external-store-shim.production.js: |
| 236 | 230 | (** |
| 237 | 231 | * @license React |