Ku(t)?(ju(e,t,!1),`${e.key}-${t.name}`):t)))}),[e]);return t};function Zu(e,t){const n=fc();void 0===t&&"undefined"!=typeof process&&process.env;const r=(null==n?void 0:n[t])||{},o={"data-wp-c16t":!0,...(i=t,{"data-wp-component":i})};var i;const{_overrides:a,...s}=r,l=Object.entries(s).length?Object.assign({},s,e):e,c=Xu()(bc(t),e.className),u="function"==typeof l.renderChildren?l.renderChildren(l):l.children;for(const e in l)o[e]=l[e];for(const e in a)o[e]=a[e];return void 0!==u&&(o.children=u),o.className=c,o}function Ju(e,t){return Qu(e,t,{forwardsRef:!0})}function Qu(e,t,n){const r=null!=n&&n.forwardsRef?(0,s.forwardRef)(e):e;void 0===t&&"undefined"!=typeof process&&process.env;let o=r.__contextSystemKey__||[t];return Array.isArray(t)&&(o=[...o,...t]),"string"==typeof t&&(o=[...o,t]),Object.assign(r,{[hc]:[...new Set(o)],displayName:t,selector:`.${bc(t)}`})}function ed(e){if(!e)return[];let t=[];return e.__contextSystemKey__&&(t=e.__contextSystemKey__),e.type&&e.type.__contextSystemKey__&&(t=e.type.__contextSystemKey__),t}function td(e,t){return!!e&&("string"==typeof t?ed(e).includes(t):!!Array.isArray(t)&&t.some((t=>ed(e).includes(t))))}const nd={border:0,clip:"rect(1px, 1px, 1px, 1px)",WebkitClipPath:"inset( 50% )",clipPath:"inset( 50% )",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",wordWrap:"normal"};var rd=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,od=Eu((function(e){return rd.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),id=function(e){return"theme"!==e},ad=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?od:id},sd=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},ld=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Vu(t,n,r);Au((function(){return ju(t,n,r)}));return null},cd=function e(t,n){var r,o,i=t.__emotion_real===t,s=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var l=sd(t,n,i),c=l||ad(s),u=!c("as");return function(){var d=arguments,f=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&f.push("label:"+r+";"),null==d[0]||void 0===d[0].raw)f.push.apply(f,d);else{0,f.push(d[0][0]);for(var p=d.length,m=1;m{e.stopPropagation(),e.preventDefault()}}const O=!M&&(b&&x||w||!!x&&!(null!=_&&_.length)&&!1!==b),D=S?N:null,A=T["aria-describedby"]||D,L=(0,s.createElement)(I,a({},P,T,{className:R,"aria-label":T["aria-label"]||x,"aria-describedby":A,ref:n}),h&&"left"===v&&(0,s.createElement)(cc,{icon:h,size:g}),E&&(0,s.createElement)(s.Fragment,null,E),h&&"right"===v&&(0,s.createElement)(cc,{icon:h,size:g}),_);return O?(0,s.createElement)(s.Fragment,null,(0,s.createElement)(vf,{text:null!=_&&_.length&&S?S:x,shortcut:w,position:y},L),S&&(0,s.createElement)(fd,null,(0,s.createElement)("span",{id:D},S))):(0,s.createElement)(s.Fragment,null,L,S&&(0,s.createElement)(fd,null,(0,s.createElement)("span",{id:D},S)))}));let hd=0;function vd(e){const t=document.scrollingElement||document.body;e&&(hd=t.scrollTop);const n=e?"add":"remove";t.classList[n]("lockscroll"),document.documentElement.classList[n]("lockscroll"),e||(t.scrollTop=hd)}let gd=0;var bd=function(){return(0,s.useEffect)((()=>(0===gd&&vd(!0),++gd,()=>{1===gd&&vd(!1),--gd})),[]),null};var yd=(0,s.createContext)({slots:{},fills:{},registerSlot:()=>{"undefined"!=typeof process&&process.env},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{}});function wd(e){const t=(0,s.useContext)(yd),n=t.slots[e]||{},r=t.fills[e],o=(0,s.useMemo)((()=>r||[]),[r]);return{...n,updateSlot:(0,s.useCallback)((n=>{t.updateSlot(e,n)}),[e,t.updateSlot]),unregisterSlot:(0,s.useCallback)((n=>{t.unregisterSlot(e,n)}),[e,t.unregisterSlot]),fills:o,registerFill:(0,s.useCallback)((n=>{t.registerFill(e,n)}),[e,t.registerFill]),unregisterFill:(0,s.useCallback)((n=>{t.unregisterFill(e,n)}),[e,t.unregisterFill])}}var xd=(0,s.createContext)({registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},getSlot:()=>{},getFills:()=>{},subscribe:()=>{}});var _d=e=>{const{getSlot:t,subscribe:n}=(0,s.useContext)(xd),[r,o]=(0,s.useState)(t(e));return(0,s.useEffect)((()=>{o(t(e));return n((()=>{o(t(e))}))}),[e]),r};function Ed(e){let{name:t,children:n,registerFill:r,unregisterFill:o}=e;const i=_d(t),a=(0,s.useRef)({name:t,children:n});return(0,s.useLayoutEffect)((()=>(r(t,a.current),()=>o(t,a.current))),[]),(0,s.useLayoutEffect)((()=>{a.current.children=n,i&&i.forceUpdate()}),[n]),(0,s.useLayoutEffect)((()=>{t!==a.current.name&&(o(a.current.name,a.current),a.current.name=t,r(t,a.current))}),[t]),i&&i.node?("function"==typeof n&&(n=n(i.props.fillProps)),(0,s.createPortal)(n,i.node)):null}var Cd=e=>(0,s.createElement)(xd.Consumer,null,(t=>{let{registerFill:n,unregisterFill:r}=t;return(0,s.createElement)(Ed,a({},e,{registerFill:n,unregisterFill:r}))}));function kd(e){return"function"==typeof e}class Sd extends s.Component{constructor(){super(...arguments),this.isUnmounted=!1,this.bindNode=this.bindNode.bind(this)}componentDidMount(){const{registerSlot:e}=this.props;e(this.props.name,this)}componentWillUnmount(){const{unregisterSlot:e}=this.props;this.isUnmounted=!0,e(this.props.name,this)}componentDidUpdate(e){const{name:t,unregisterSlot:n,registerSlot:r}=this.props;e.name!==t&&(n(e.name),r(t,this))}bindNode(e){this.node=e}forceUpdate(){this.isUnmounted||super.forceUpdate()}render(){var e;const{children:t,name:n,fillProps:r={},getFills:o}=this.props,i=(null!==(e=o(n,this))&&void 0!==e?e:[]).map((e=>{const t=kd(e.children)?e.children(r):e.children;return s.Children.map(t,((e,t)=>{if(!e||"string"==typeof e)return e;const n=e.key||t;return(0,s.cloneElement)(e,{key:n})}))})).filter((e=>!(0,s.isEmptyElement)(e)));return(0,s.createElement)(s.Fragment,null,kd(t)?t(i):i)}}var Td,Nd=e=>(0,s.createElement)(xd.Consumer,null,(t=>{let{registerSlot:n,unregisterSlot:r,getFills:o}=t;return(0,s.createElement)(Sd,a({},e,{registerSlot:n,unregisterSlot:r,getFills:o}))})),Rd=new Uint8Array(16);function Md(){if(!Td&&!(Td="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Td(Rd)}var Id=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var Pd=function(e){return"string"==typeof e&&Id.test(e)},Od=[],Dd=0;Dd<256;++Dd)Od.push((Dd+256).toString(16).substr(1));var Ad=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Od[e[t+0]]+Od[e[t+1]]+Od[e[t+2]]+Od[e[t+3]]+"-"+Od[e[t+4]]+Od[e[t+5]]+"-"+Od[e[t+6]]+Od[e[t+7]]+"-"+Od[e[t+8]]+Od[e[t+9]]+"-"+Od[e[t+10]]+Od[e[t+11]]+Od[e[t+12]]+Od[e[t+13]]+Od[e[t+14]]+Od[e[t+15]]).toLowerCase();if(!Pd(n))throw TypeError("Stringified UUID is invalid");return n};var Ld=function(e,t,n){var r=(e=e||{}).random||(e.rng||Md)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return Ad(r)};const zd=new Set,Bd=gc()((e=>{let t=Ld().replace(/[0-9]/g,"");for(;zd.has(t);)t=Ld().replace(/[0-9]/g,"");return zd.add(t),wu({container:e,key:t})}));var Fd=function(e){const{children:t,document:n}=e;if(!n)return null;const r=Bd(n.head);return(0,s.createElement)(zu,{value:r},t)};function Hd(){const[,e]=(0,s.useState)({}),t=(0,s.useRef)(!0);return(0,s.useEffect)((()=>()=>{t.current=!1}),[]),()=>{t.current&&e({})}}function Vd(e){let{name:t,children:n}=e;const r=wd(t),o=(0,s.useRef)({rerender:Hd()});if((0,s.useEffect)((()=>(r.registerFill(o),()=>{r.unregisterFill(o)})),[r.registerFill,r.unregisterFill]),!r.ref||!r.ref.current)return null;"function"==typeof n&&(n=n(r.fillProps));const i=(0,s.createElement)(Fd,{document:r.ref.current.ownerDocument},n);return(0,s.createPortal)(i,r.ref.current)}var jd=(0,s.forwardRef)((function(e,t){let{name:n,fillProps:r={},as:o="div",...i}=e;const l=(0,s.useContext)(yd),c=(0,s.useRef)();return(0,s.useLayoutEffect)((()=>(l.registerSlot(n,c,r),()=>{l.unregisterSlot(n,c)})),[l.registerSlot,l.unregisterSlot,n]),(0,s.useLayoutEffect)((()=>{l.updateSlot(n,r)})),(0,s.createElement)(o,a({ref:(0,d.useMergeRefs)([t,c])},i))})),$d=window.wp.isShallowEqual,Wd=n.n($d);function Ud(e){let{children:t}=e;const n=function(){const[e,t]=(0,s.useState)({}),[n,r]=(0,s.useState)({}),o=(0,s.useCallback)(((e,n,r)=>{t((t=>{const o=t[e]||{};return{...t,[e]:{...o,ref:n||o.ref,fillProps:r||o.fillProps||{}}}}))}),[]),i=(0,s.useCallback)(((e,n)=>{t((t=>{const{[e]:r,...o}=t;return(null==r?void 0:r.ref)===n?o:t}))}),[]),a=(0,s.useCallback)(((t,r)=>{const o=e[t];if(o&&!Wd()(o.fillProps,r)){o.fillProps=r;const e=n[t];e&&e.map((e=>e.current.rerender()))}}),[e,n]),l=(0,s.useCallback)(((e,t)=>{r((n=>({...n,[e]:[...n[e]||[],t]})))}),[]),c=(0,s.useCallback)(((e,t)=>{r((n=>n[e]?{...n,[e]:n[e].filter((e=>e!==t))}:n))}),[]);return(0,s.useMemo)((()=>({slots:e,fills:n,registerSlot:o,updateSlot:a,unregisterSlot:i,registerFill:l,unregisterFill:c})),[e,n,o,a,i,l,c])}();return(0,s.createElement)(yd.Provider,{value:n},t)}class Gd extends s.Component{constructor(){super(...arguments),this.registerSlot=this.registerSlot.bind(this),this.registerFill=this.registerFill.bind(this),this.unregisterSlot=this.unregisterSlot.bind(this),this.unregisterFill=this.unregisterFill.bind(this),this.getSlot=this.getSlot.bind(this),this.getFills=this.getFills.bind(this),this.hasFills=this.hasFills.bind(this),this.subscribe=this.subscribe.bind(this),this.slots={},this.fills={},this.listeners=[],this.contextValue={registerSlot:this.registerSlot,unregisterSlot:this.unregisterSlot,registerFill:this.registerFill,unregisterFill:this.unregisterFill,getSlot:this.getSlot,getFills:this.getFills,hasFills:this.hasFills,subscribe:this.subscribe}}registerSlot(e,t){const n=this.slots[e];this.slots[e]=t,this.triggerListeners(),this.forceUpdateSlot(e),n&&n.forceUpdate()}registerFill(e,t){this.fills[e]=[...this.fills[e]||[],t],this.forceUpdateSlot(e)}unregisterSlot(e,t){this.slots[e]===t&&(delete this.slots[e],this.triggerListeners())}unregisterFill(e,t){var n,r;this.fills[e]=null!==(n=null===(r=this.fills[e])||void 0===r?void 0:r.filter((e=>e!==t)))&&void 0!==n?n:[],this.forceUpdateSlot(e)}getSlot(e){return this.slots[e]}getFills(e,t){return this.slots[e]!==t?[]:this.fills[e]}hasFills(e){return this.fills[e]&&!!this.fills[e].length}forceUpdateSlot(e){const t=this.getSlot(e);t&&t.forceUpdate()}triggerListeners(){this.listeners.forEach((e=>e()))}subscribe(e){return this.listeners.push(e),()=>{this.listeners=this.listeners.filter((t=>t!==e))}}render(){return(0,s.createElement)(xd.Provider,{value:this.contextValue},this.props.children)}}function qd(e){return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Cd,e),(0,s.createElement)(Vd,e))}const Yd=(0,s.forwardRef)(((e,t)=>{let{bubblesVirtually:n,...r}=e;return n?(0,s.createElement)(jd,a({},r,{ref:t})):(0,s.createElement)(Nd,r)}));function Kd(e){let{children:t,...n}=e;return(0,s.createElement)(Gd,n,(0,s.createElement)(Ud,null,t))}function Xd(e){const t=t=>(0,s.createElement)(qd,a({name:e},t));t.displayName=e+"Fill";const n=t=>(0,s.createElement)(Yd,a({name:e},t));return n.displayName=e+"Slot",n.__unstableName=e,{Fill:t,Slot:n}}const Zd={top:{originX:.5,originY:1},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},right:{originX:0,originY:.5},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},bottom:{originX:.5,originY:0},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},left:{originX:1,originY:.5},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1}},Jd=e=>{var t;const n=null==e||null===(t=e.defaultView)||void 0===t?void 0:t.frameElement;if(!n)return;const r=n.getBoundingClientRect();return{x:r.left,y:r.top}};function Qd(e){return e.split("-")[0]}function ef(e){return["top","bottom"].includes(Qd(e))?"x":"y"}function tf(e){return"x"===e?"y":"x"}const nf=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{options:e,fn(t){var n;const{x:r,y:o,placement:i,rects:a,middlewareData:s}=t,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=e,d={x:r,y:o},f=ef(i),p=tf(f);let m=d[f],h=d[p];const v="function"==typeof l?l(t):l,g="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v},b={x:0,y:0,...null===(n=s.frameOffset)||void 0===n?void 0:n.amount};if(c){const e="y"===f?"height":"width",t=a.reference[f]-a.floating[e]+g.mainAxis+b[f],n=a.reference[f]+a.reference[e]-g.mainAxis+b[f];mn&&(m=n)}if(u){var y,w,x,_;const e="y"===f?"width":"height",t=["top","left"].includes(Qd(i)),n=a.reference[p]-a.floating[e]+(t&&null!==(y=null===(w=s.offset)||void 0===w?void 0:w[p])&&void 0!==y?y:0)+(t?0:g.crossAxis)+b[p],r=a.reference[p]+a.reference[e]+(t?0:null!==(x=null===(_=s.offset)||void 0===_?void 0:_[p])&&void 0!==x?x:0)-(t?g.crossAxis:0)+b[p];hr&&(h=r)}return{[f]:m,[p]:h}}}},rf="Popover",of=()=>(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",className:"components-popover__triangle",role:"presentation"},(0,s.createElement)(i.Path,{className:"components-popover__triangle-bg",d:"M 0 0 L 50 50 L 100 0"}),(0,s.createElement)(i.Path,{className:"components-popover__triangle-border",d:"M 0 0 L 50 50 L 100 0",vectorEffect:"non-scaling-stroke"})),af=(0,s.forwardRef)(((e,t)=>{let{style:n,placement:r,shouldAnimate:o=!1,...i}=e;const[l,c]=(0,s.useState)(!1),u=jt(),{style:d,...f}=(0,s.useMemo)((()=>(e=>{const t=e.startsWith("top")||e.startsWith("bottom")?"translateY":"translateX",n=e.startsWith("top")||e.startsWith("left")?1:-1;return{style:Zd[e],initial:{opacity:0,scale:0,[t]:2*n+"em"},animate:{opacity:1,scale:1,[t]:0},transition:{duration:.1,ease:[0,0,.2,1]}}})(r)),[r]),p=(0,s.useCallback)((()=>c(!0)),[]),m=o&&!u?{style:{...d,...n},...f,onAnimationComplete:p,animate:!l&&f.animate}:{animate:!1,style:n};return(0,s.createElement)(oc.div,a({},m,i,{ref:t}))})),sf=(0,s.createContext)(void 0),lf=(0,s.forwardRef)(((e,t)=>{var n,r,o,i;const{animate:l=!0,headerTitle:u,onClose:f,children:p,className:m,noArrow:h=!0,isAlternate:v,position:g,placement:b="bottom-start",offset:y=0,focusOnMount:w="firstElement",anchor:x,expandOnMobile:_,onFocusOutside:E,__unstableSlotName:C=rf,flip:k=!0,resize:S=!0,shift:T=!1,__unstableForcePosition:N,__unstableShift:R,anchorRef:M,anchorRect:I,getAnchorRect:P,range:O,...D}=e;O&&sc()("`range` prop in wp.components.Popover",{since:"6.1",version:"6.3"});let A=k,L=S;void 0!==N&&(sc()("`__unstableForcePosition` prop wp.components.Popover",{since:"6.1",version:"6.3",alternative:"`flip={ false }` and `resize={ false }`"}),A=!N,L=!N);let z=T;void 0!==R&&(sc()("`__unstableShift` prop in wp.components.Popover",{since:"6.1",version:"6.3",alternative:"`shift` prop`"}),z=R),void 0!==M&&sc()("`anchorRef` prop in wp.components.Popover",{since:"6.1",version:"6.3",alternative:"`anchor` prop"}),void 0!==I&&sc()("`anchorRect` prop in wp.components.Popover",{since:"6.1",version:"6.3",alternative:"`anchor` prop"}),void 0!==P&&sc()("`getAnchorRect` prop in wp.components.Popover",{since:"6.1",version:"6.3",alternative:"`anchor` prop"});const B=(0,s.useRef)(null),[F,H]=(0,s.useState)(null),[V,j]=(0,s.useState)(),$=(0,s.useCallback)((e=>{H(e)}),[]),W=(0,d.useViewportMatch)("medium","<"),U=_&&W,G=!U&&!h,q=g?(e=>{const[t,n,r]=e.split(" ");if(["top","bottom"].includes(t)){let e="";return r&&"left"===r||"right"===n?e="-start":(r&&"right"===r||"left"===n)&&(e="-end"),t+e}return n})(g):b,Y=(0,s.useRef)(Jd(V)),K=[{name:"frameOffset",fn(e){let{x:t,y:n}=e;return Y.current?{x:t+Y.current.x,y:n+Y.current.y,data:{amount:Y.current}}:{x:t,y:n}}},Ge(y),A?Ue():void 0,L?Ke({apply(e){var t;const{firstElementChild:n}=null!==(t=ie.floating.current)&&void 0!==t?t:{};n instanceof HTMLElement&&Object.assign(n.style,{maxHeight:`${e.availableHeight}px`,overflow:"auto"})}}):void 0,z?Ye({crossAxis:!0,limiter:nf(),padding:1}):void 0,Mt({element:B})].filter((e=>void 0!==e)),X=(0,s.useContext)(sf)||C,Z=wd(X);let J;(f||E)&&(J=(e,t)=>{"focus-outside"===e&&E?E(t):f&&f()});const[Q,ee]=(0,d.__experimentalUseDialog)({focusOnMount:w,__unstableOnClose:J,onClose:J}),{x:te,y:ne,reference:re,floating:oe,refs:ie,strategy:ae,update:se,placement:le,middlewareData:{arrow:ce}}=Rt({placement:q,middleware:K,whileElementsMounted:(e,t,n)=>function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=r,l=o&&!s,c=i&&!s,u=l||c?[...nt(e)?xt(e):[],...xt(t)]:[];u.forEach((e=>{l&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)}));let d,f=null;if(a){let r=!0;f=new ResizeObserver((()=>{r||n(),r=!1})),nt(e)&&!s&&f.observe(e),f.observe(t)}let p=s?dt(e):null;return s&&function t(){const r=dt(e);!p||r.x===p.x&&r.y===p.y&&r.width===p.width&&r.height===p.height||n(),p=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{l&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)})),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(d)}}(e,t,n,{animationFrame:!0})}),ue=(0,s.useCallback)((e=>{B.current=e,se()}),[se]);(0,s.useLayoutEffect)((()=>{const e=(e=>{var t;let n,{anchor:r,anchorRef:o,anchorRect:i,getAnchorRect:a,fallbackReferenceElement:s,fallbackDocument:l}=e;if(r)n=r.ownerDocument;else if(null!=o&&o.top)n=null==o?void 0:o.top.ownerDocument;else if(null!=o&&o.startContainer)n=o.startContainer.ownerDocument;else if(null!=o&&o.current)n=o.current.ownerDocument;else if(o)n=o.ownerDocument;else if(i&&null!=i&&i.ownerDocument)n=i.ownerDocument;else if(a){var c;n=null===(c=a(s))||void 0===c?void 0:c.ownerDocument}return null!==(t=n)&&void 0!==t?t:l})({anchor:x,anchorRef:M,anchorRect:I,getAnchorRect:P,fallbackReferenceElement:F,fallbackDocument:document}),t=(e=>{var t;let{anchor:n,anchorRef:r,anchorRect:o,getAnchorRect:i,fallbackReferenceElement:a}=e,s=null;return n?s=n:null!=r&&r.top?s={getBoundingClientRect(){const e=r.top.getBoundingClientRect(),t=r.bottom.getBoundingClientRect();return new window.DOMRect(e.x,e.y,e.width,t.bottom-e.top)}}:null!=r&&r.current?s=r.current:r?s=r:o?s={getBoundingClientRect(){return o}}:i?s={getBoundingClientRect(){var e,t,n,r;const o=i(a);return new window.DOMRect(null!==(e=o.x)&&void 0!==e?e:o.left,null!==(t=o.y)&&void 0!==t?t:o.top,null!==(n=o.width)&&void 0!==n?n:o.right-o.left,null!==(r=o.height)&&void 0!==r?r:o.bottom-o.top)}}:a&&(s=a.parentElement),null!==(t=s)&&void 0!==t?t:null})({anchor:x,anchorRef:M,anchorRect:I,getAnchorRect:P,fallbackReferenceElement:F});re(t),j(e)}),[x,M,null==M?void 0:M.top,null==M?void 0:M.bottom,null==M?void 0:M.startContainer,null==M?void 0:M.current,I,P,F,re]),(0,s.useLayoutEffect)((()=>{var e,t,n;if(V===document||V===(null==ie||null===(e=ie.floating)||void 0===e||null===(t=e.current)||void 0===t?void 0:t.ownerDocument)||null==V||null===(n=V.defaultView)||void 0===n||!n.frameElement)return void(Y.current=void 0);const{defaultView:r}=V,o=()=>{Y.current=Jd(V),se()};return r.addEventListener("resize",o),o(),()=>{r.removeEventListener("resize",o)}}),[V,se]);const de=(0,d.useMergeRefs)([oe,Q,t]);let fe=(0,s.createElement)(af,a({shouldAnimate:l&&!U,placement:le,className:c()("components-popover",m,{"is-expanded":U,"is-alternate":v})},D,{ref:de},ee,{tabIndex:-1,style:U?void 0:{position:ae,left:Number.isNaN(te)?0:null!=te?te:void 0,top:Number.isNaN(ne)?0:null!=ne?ne:void 0}}),U&&(0,s.createElement)(bd,null),U&&(0,s.createElement)("div",{className:"components-popover__header"},(0,s.createElement)("span",{className:"components-popover__header-title"},u),(0,s.createElement)(md,{className:"components-popover__close",icon:ic,onClick:f})),(0,s.createElement)("div",{className:"components-popover__content"},p),G&&(0,s.createElement)("div",{ref:ue,className:["components-popover__arrow",`is-${le.split("-")[0]}`].join(" "),style:{left:void 0!==(null==ce?void 0:ce.x)&&Number.isFinite(ce.x)?`${ce.x+(null!==(n=null===(r=Y.current)||void 0===r?void 0:r.x)&&void 0!==n?n:0)}px`:"",top:void 0!==(null==ce?void 0:ce.y)&&Number.isFinite(ce.y)?`${ce.y+(null!==(o=null===(i=Y.current)||void 0===i?void 0:i.y)&&void 0!==o?o:0)}px`:""}},(0,s.createElement)(of,null)));return Z.ref&&(fe=(0,s.createElement)(qd,{name:X},fe)),M||I||x?fe:(0,s.createElement)("span",{ref:$},fe)}));lf.Slot=(0,s.forwardRef)((function(e,t){let{name:n=rf}=e;return(0,s.createElement)(Yd,{bubblesVirtually:!0,name:n,className:"popover-slot",ref:t})})),lf.__unstableSlotNameProvider=sf.Provider;var cf=lf;var uf=function(e){const{shortcut:t,className:n}=e;if(!t)return null;let r,o;return"string"==typeof t&&(r=t),null!==t&&"object"==typeof t&&(r=t.display,o=t.ariaLabel),(0,s.createElement)("span",{className:n,"aria-label":o},r)};const df=700,ff=(0,s.createElement)("div",{className:"event-catcher"}),pf=e=>{let{eventHandlers:t,child:n,childrenWithPopover:r,mergedRefs:o}=e;return(0,s.cloneElement)((0,s.createElement)("span",{className:"disabled-element-wrapper"},(0,s.cloneElement)(ff,t),(0,s.cloneElement)(n,{children:r,ref:o})),{...t})},mf=e=>{let{child:t,eventHandlers:n,childrenWithPopover:r,mergedRefs:o}=e;return(0,s.cloneElement)(t,{...n,children:r,ref:o})},hf=(e,t,n)=>{if(1!==s.Children.count(e))return;const r=s.Children.only(e);r.props.disabled||"function"==typeof r.props[t]&&r.props[t](n)};var vf=function(e){var t;const{children:n,position:r="bottom middle",text:o,shortcut:i,delay:a=df}=e,[l,c]=(0,s.useState)(!1),[u,f]=(0,s.useState)(!1),p=(0,d.useDebounce)(f,a),[m,h]=(0,s.useState)(null),v=null===(t=s.Children.toArray(n)[0])||void 0===t?void 0:t.ref,g=(0,d.useMergeRefs)([h,v]),b=e=>{"OPTION"!==e.target.tagName&&(hf(n,"onMouseDown",e),document.addEventListener("mouseup",x),c(!0))},y=e=>{"OPTION"!==e.target.tagName&&(hf(n,"onMouseUp",e),document.removeEventListener("mouseup",x),c(!1))},w=e=>"mouseUp"===e?y:"mouseDown"===e?b:void 0,x=w("mouseUp"),_=(e,t)=>r=>{if(hf(n,e,r),r.currentTarget.disabled)return;if("focus"===r.type&&l)return;p.cancel();const o=["focus","mouseenter"].includes(r.type);o!==u&&(t?p(o):f(o))},E=()=>{p.cancel(),document.removeEventListener("mouseup",x)};if((0,s.useEffect)((()=>E),[]),1!==s.Children.count(n))return n;const C={onMouseEnter:_("onMouseEnter",!0),onMouseLeave:_("onMouseLeave"),onClick:_("onClick"),onFocus:_("onFocus"),onBlur:_("onBlur"),onMouseDown:w("mouseDown")},k=s.Children.only(n),{children:S,disabled:T}=k.props,N=T?pf:mf,R=(e=>{let{anchor:t,grandchildren:n,isOver:r,offset:o,position:i,shortcut:a,text:l}=e;return(0,s.concatChildren)(n,r&&(0,s.createElement)(cf,{focusOnMount:!1,position:i,className:"components-tooltip","aria-hidden":"true",animate:!1,offset:o,anchor:t,shift:!0},l,(0,s.createElement)(uf,{className:"components-tooltip__shortcut",shortcut:a})))})({grandchildren:S,...{anchor:m,isOver:u,offset:4,position:r,shortcut:i,text:o}});return N({child:k,eventHandlers:C,childrenWithPopover:R,mergedRefs:g})};const gf=[["top left","top center","top right"],["center left","center center","center right"],["bottom left","bottom center","bottom right"]],bf={"top left":(0,u.__)("Top Left"),"top center":(0,u.__)("Top Center"),"top right":(0,u.__)("Top Right"),"center left":(0,u.__)("Center Left"),"center center":(0,u.__)("Center Center"),"center right":(0,u.__)("Center Right"),"bottom left":(0,u.__)("Bottom Left"),"bottom center":(0,u.__)("Bottom Center"),"bottom right":(0,u.__)("Bottom Right")},yf=gf.flat();function wf(e){return("center"===e?"center center":e).replace("-"," ")}function xf(e,t){return`${e}-${wf(t).replace(" ","-")}`}n(1281);function _f(){for(var e=arguments.length,t=new Array(e),n=0;n0:"number"==typeof e},kf=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},Sf=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},Tf=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Nf=function(e){return{r:Sf(e.r,0,255),g:Sf(e.g,0,255),b:Sf(e.b,0,255),a:Sf(e.a)}},Rf=function(e){return{r:kf(e.r),g:kf(e.g),b:kf(e.b),a:kf(e.a,3)}},Mf=/^#([0-9a-f]{3,8})$/i,If=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Pf=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),a=i-Math.min(t,n,r),s=a?i===t?(n-r)/a:i===n?2+(r-t)/a:4+(t-n)/a:0;return{h:60*(s<0?s+6:s),s:i?a/i*100:0,v:i/255*100,a:o}},Of=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),a=r*(1-n),s=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),c=i%6;return{r:255*[r,s,a,a,l,r][c],g:255*[l,r,r,s,a,a][c],b:255*[a,a,l,r,r,s][c],a:o}},Df=function(e){return{h:Tf(e.h),s:Sf(e.s,0,100),l:Sf(e.l,0,100),a:Sf(e.a)}},Af=function(e){return{h:kf(e.h),s:kf(e.s),l:kf(e.l),a:kf(e.a,3)}},Lf=function(e){return Of((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},zf=function(e){return{h:(t=Pf(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},Bf=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ff=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Hf=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Vf=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,jf={string:[[function(e){var t=Mf.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:4===e.length?kf(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?kf(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Hf.exec(e)||Vf.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Nf({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:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=Bf.exec(e)||Ff.exec(e);if(!t)return null;var n,r,o=Df({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*(Ef[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return Lf(o)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=void 0===o?1:o;return Cf(t)&&Cf(n)&&Cf(r)?Nf({r:Number(t),g:Number(n),b:Number(r),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,o=e.a,i=void 0===o?1:o;if(!Cf(t)||!Cf(n)||!Cf(r))return null;var a=Df({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return Lf(a)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=void 0===o?1:o;if(!Cf(t)||!Cf(n)||!Cf(r))return null;var a=function(e){return{h:Tf(e.h),s:Sf(e.s,0,100),v:Sf(e.v,0,100),a:Sf(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return Of(a)},"hsv"]]},$f=function(e,t){for(var n=0;n=.5},e.prototype.toHex=function(){return t=(e=Rf(this.rgba)).r,n=e.g,r=e.b,i=(o=e.a)<1?If(kf(255*o)):"","#"+If(t)+If(n)+If(r)+i;var e,t,n,r,o,i},e.prototype.toRgb=function(){return Rf(this.rgba)},e.prototype.toRgbString=function(){return t=(e=Rf(this.rgba)).r,n=e.g,r=e.b,(o=e.a)<1?"rgba("+t+", "+n+", "+r+", "+o+")":"rgb("+t+", "+n+", "+r+")";var e,t,n,r,o},e.prototype.toHsl=function(){return Af(zf(this.rgba))},e.prototype.toHslString=function(){return t=(e=Af(zf(this.rgba))).h,n=e.s,r=e.l,(o=e.a)<1?"hsla("+t+", "+n+"%, "+r+"%, "+o+")":"hsl("+t+", "+n+"%, "+r+"%)";var e,t,n,r,o},e.prototype.toHsv=function(){return e=Pf(this.rgba),{h:kf(e.h),s:kf(e.s),v:kf(e.v),a:kf(e.a,3)};var e},e.prototype.invert=function(){return Kf({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),Kf(Uf(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),Kf(Uf(this.rgba,-e))},e.prototype.grayscale=function(){return Kf(Uf(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),Kf(qf(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),Kf(qf(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?Kf({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):kf(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=zf(this.rgba);return"number"==typeof e?Kf({h:e,s:t.s,l:t.l,a:t.a}):kf(t.h)},e.prototype.isEqual=function(e){return this.toHex()===Kf(e).toHex()},e}(),Kf=function(e){return e instanceof Yf?e:new Yf(e)},Xf=[],Zf=function(e){e.forEach((function(e){Xf.indexOf(e)<0&&(e(Yf,jf),Xf.push(e))}))};function Jf(e,t){var n={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 o in n)r[n[o]]=o;var i={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var o,a,s=r[this.toHex()];if(s)return s;if(null==t?void 0:t.closest){var l=this.toRgb(),c=1/0,u="black";if(!i.length)for(var d in n)i[d]=new e(n[d]).toRgb();for(var f in n){var p=(o=l,a=i[f],Math.pow(o.r-a.r,2)+Math.pow(o.g-a.g,2)+Math.pow(o.b-a.b,2));p0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Kf(e).alpha(t).toRgbString()}Zf([Jf]);const ep="#fff",tp={900:"#1e1e1e",800:"#2f2f2f",700:"#757575",600:"#949494",400:"#ccc",300:"#ddd",200:"#e0e0e0",100:"#f0f0f0"},np={theme:"var( --wp-admin-theme-color, #007cba)",background:ep,backgroundDisabled:tp[100],border:tp[700],borderHover:tp[700],borderFocus:"var( --wp-admin-theme-color-darker-10, #006ba1)",borderDisabled:tp[400],textDisabled:tp[600],textDark:ep,darkGrayPlaceholder:Qf(tp[900],.62),lightGrayPlaceholder:Qf(ep,.65)},rp=Object.freeze({gray:tp,white:ep,alert:{yellow:"#f0b849",red:"#d94f4f",green:"#4ab866"},ui:np});function op(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transition";switch(t){case"transition":e="transition-duration: 0ms;";break;case"animation":e="animation-duration: 1ms;";break;default:e="\n\t\t\t\tanimation-duration: 1ms;\n\t\t\t\ttransition-duration: 0ms;\n\t\t\t"}return`\n\t\t@media ( prefers-reduced-motion: reduce ) {\n\t\t\t${e};\n\t\t}\n\t`}var ip={name:"93uojk",styles:"border-radius:2px;box-sizing:border-box;direction:ltr;display:grid;grid-template-columns:repeat( 3, 1fr );outline:none"};const ap=()=>ip,sp=cd("div",{target:"e1od1u4s3"})(ap,";border:1px solid transparent;cursor:pointer;grid-template-columns:auto;",(e=>{let{size:t=92}=e;return _f("grid-template-rows:repeat( 3, calc( ",t,"px / 3 ) );width:",t,"px;","")}),";"),lp=cd("div",{target:"e1od1u4s2"})({name:"1x5gbbj",styles:"box-sizing:border-box;display:grid;grid-template-columns:repeat( 3, 1fr )"}),cp=e=>_f("background:currentColor;box-sizing:border-box;display:grid;margin:auto;transition:all 120ms linear;",op("transition")," ",(e=>{let{isActive:t}=e;return _f("box-shadow:",t?`0 0 0 2px ${rp.gray[900]}`:null,";color:",t?rp.gray[900]:rp.gray[400],";*:hover>&{color:",t?rp.gray[900]:rp.ui.theme,";}","")})(e),";",""),up=cd("span",{target:"e1od1u4s1"})("height:6px;width:6px;",cp,";"),dp=cd("span",{target:"e1od1u4s0"})({name:"rjf3ub",styles:"appearance:none;border:none;box-sizing:border-box;margin:0;display:flex;position:relative;outline:none;align-items:center;justify-content:center;padding:0"});function fp(e){let{isActive:t=!1,value:n,...r}=e;const o=bf[n];return(0,s.createElement)(vf,{text:o},(0,s.createElement)(Se,a({as:dp,role:"gridcell"},r),(0,s.createElement)(fd,null,n),(0,s.createElement)(up,{isActive:t,role:"presentation"})))}function pp(e){return(0,b.useState)(e)[0]}function mp(e){for(var t,n=[[]],r=function(){var e=t.value,r=n.find((function(t){return!t[0]||t[0].groupId===e.groupId}));r?r.push(e):n.push([e])},o=g(e);!(t=o()).done;)r();return n}function hp(e){for(var t,n=[],r=g(e);!(t=r()).done;){var o=t.value;n.push.apply(n,o)}return n}function vp(e){return e.slice().reverse()}function gp(e,t){if(t)return null==e?void 0:e.find((function(e){return e.id===t&&!e.disabled}))}function bp(e,t){return function(e){return"function"==typeof e}(e)?e(t):e}function yp(e){void 0===e&&(e={});var t=pp(e).baseId,n=(0,b.useContext)(we),r=(0,b.useRef)(0),o=(0,b.useState)((function(){return t||n()}));return{baseId:o[0],setBaseId:o[1],unstable_idCountRef:r}}function wp(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function xp(e,t){return e.findIndex((function(e){return!(!e.ref.current||!t.ref.current)&&wp(t.ref.current,e.ref.current)}))}function _p(e){for(var t,n=0,r=g(e);!(t=r()).done;){var o=t.value.length;o>n&&(n=o)}return n}function Ep(e){for(var t=mp(e),n=_p(t),r=[],o=0;oi&&(n=!0),-1):(r_f({gridTemplateRows:"repeat( 3, calc( 21px / 3))",padding:1.5,maxHeight:24,maxWidth:24},"","")),";",(e=>{let{disablePointerEvents:t}=e;return _f({pointerEvents:t?"none":null},"","")}),";"),Kp=cd("span",{target:"elqsdmc0"})("height:2px;width:2px;",cp,";",(e=>{let{isActive:t}=e;return _f("box-shadow:",t?"0 0 0 1px currentColor":null,";color:currentColor;*:hover>&{color:currentColor;}","")}),";"),Xp=dp,Zp=24;const Jp=()=>{};function Qp(e){let{className:t,id:n,label:r=(0,u.__)("Alignment Matrix Control"),defaultValue:o="center center",value:i,onChange:l=Jp,width:f=92,...p}=e;const[m]=(0,s.useState)(null!=i?i:o),h=function(e){const t=(0,d.useInstanceId)(Qp,"alignment-matrix-control");return e||t}(n),v=xf(h,m),g=Ap({baseId:h,currentId:v,rtl:(0,u.isRTL)()}),{setCurrentId:b}=g;(0,s.useEffect)((()=>{void 0!==i&&b(xf(h,i))}),[i,b,h]);const y=c()("component-alignment-matrix-control",t);return(0,s.createElement)(Wp,a({},p,g,{"aria-label":r,as:sp,className:y,role:"grid",size:f}),gf.map(((e,t)=>(0,s.createElement)(qp,a({},g,{as:lp,role:"row",key:t}),e.map((e=>{const t=xf(h,e),n=g.currentId===t;return(0,s.createElement)(fp,a({},g,{id:t,isActive:n,key:e,value:e,onFocus:()=>{l(e)},tabIndex:n?0:-1}))}))))))}function em(e){return"appear"===e?"top":"left"}function tm(e){if("loading"===e.type)return c()("components-animate__loading");const{type:t,origin:n=em(t)}=e;if("appear"===t){const[e,t="center"]=n.split(" ");return c()("components-animate__appear",{["is-from-"+t]:"center"!==t,["is-from-"+e]:"middle"!==e})}return"slide-in"===t?c()("components-animate__slide-in","is-from-"+n):void 0}function nm(e){let{type:t,options:n={},children:r}=e;return r({className:tm({type:t,...n})})}Qp.Icon=function(e){let{className:t,disablePointerEvents:n=!0,size:r=Zp,style:o={},value:i="center",...l}=e;const u=function(){const e=wf(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"center").replace("-"," "),t=yf.indexOf(e);return t>-1?t:void 0}(i),d=(r/Zp).toFixed(2),f=c()("component-alignment-matrix-control-icon",t),p={...o,transform:`scale(${d})`};return(0,s.createElement)(Yp,a({},l,{className:f,disablePointerEvents:n,role:"presentation",size:r,style:p}),yf.map(((e,t)=>{const n=u===t;return(0,s.createElement)(Xp,{key:e},(0,s.createElement)(Kp,{isActive:n}))})))};const rm=(0,s.createContext)({flexItemDisplay:void 0});const om={name:"zjik7",styles:"display:flex"},im={name:"qgaee5",styles:"display:block;max-height:100%;max-width:100%;min-height:0;min-width:0"},am={name:"82a6rk",styles:"flex:1"},sm={name:"13nosa1",styles:">*{min-height:0;}"},lm={name:"1pwxzk4",styles:">*{min-width:0;}"};function cm(e){const{className:t,display:n,isBlock:r=!1,...o}=Zu(e,"FlexItem"),i={},a=(0,s.useContext)(rm).flexItemDisplay;i.Base=_f({display:n||a},"","");return{...o,className:Xu()(im,i.Base,r&&am,t)}}var um=Ju((function(e,t){const n=function(e){return cm({isBlock:!0,...Zu(e,"FlexBlock")})}(e);return(0,s.createElement)(dd,a({},n,{ref:t}))}),"FlexBlock");var dm=Ju((function(e,t){const n=cm(e);return(0,s.createElement)(dd,a({},n,{ref:t}))}),"FlexItem");const fm=["40em","52em","64em"],pm=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{defaultIndex:t=0}=e;if("number"!=typeof t)throw new TypeError(`Default breakpoint index should be a number. Got: ${t}, ${typeof t}`);if(t<0||t>fm.length-1)throw new RangeError(`Default breakpoint index out of range. Theme has ${fm.length} breakpoints, got index ${t}`);const[n,r]=(0,s.useState)(t);return(0,s.useEffect)((()=>{const e=()=>{const e=fm.filter((e=>"undefined"!=typeof window&&window.matchMedia(`screen and (min-width: ${e})`).matches)).length;n!==e&&r(e)};return e(),"undefined"!=typeof window&&window.addEventListener("resize",e),()=>{"undefined"!=typeof window&&window.removeEventListener("resize",e)}}),[n]),n};function mm(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=pm(t);if(!Array.isArray(e)&&"function"!=typeof e)return e;const r=e||[];return r[n>=r.length?r.length-1:n]}function hm(e){var t,n;if(void 0===e)return;if(!e)return"0";const r="number"==typeof e?e:Number(e);return"undefined"!=typeof window&&null!==(t=window.CSS)&&void 0!==t&&null!==(n=t.supports)&&void 0!==n&&n.call(t,"margin",e.toString())||Number.isNaN(r)?e.toString():`calc(4px * ${e})`}function vm(e){const{align:t="center",className:n,direction:r="row",expanded:o=!0,gap:i=2,justify:a="space-between",wrap:l=!1,...c}=Zu(function(e){const{isReversed:t,...n}=e;return void 0!==t?(sc()("Flex isReversed",{alternative:'Flex direction="row-reverse" or "column-reverse"',since:"5.9"}),{...n,direction:t?"row-reverse":"row"}):n}(e),"Flex"),u=mm(Array.isArray(r)?r:[r]),d="string"==typeof u&&!!u.includes("column"),f="string"==typeof u&&u.includes("reverse"),p=Xu();return{...c,className:(0,s.useMemo)((()=>{const e=_f({alignItems:d?"normal":t,flexDirection:u,flexWrap:l?"wrap":void 0,gap:hm(i),justifyContent:a,height:d&&o?"100%":void 0,width:!d&&o?"100%":void 0},"","");return p(om,e,d?sm:lm,n)}),[t,n,p,u,o,i,d,f,a,l]),isColumn:d}}var gm=Ju((function(e,t){const{children:n,isColumn:r,...o}=vm(e);return(0,s.createElement)(rm.Provider,{value:{flexItemDisplay:r?"block":void 0}},(0,s.createElement)(dd,a({},o,{ref:t}),n))}),"Flex");const bm={name:"hdknak",styles:"display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"};function ym(e){return null!=e}function wm(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;return null!==(e=t.find(ym))&&void 0!==e?e:n}const xm=e=>"string"==typeof e?(e=>parseFloat(e))(e):e,_m="…",Em={auto:"auto",head:"head",middle:"middle",tail:"tail",none:"none"},Cm={ellipsis:_m,ellipsizeMode:Em.auto,limit:0,numberOfLines:0};function km(e,t,n,r){if("string"!=typeof e)return"";const o=e.length,i=~~t,a=~~n,s=ym(r)?r:_m;return 0===i&&0===a||i>=o||a>=o||i+a>=o?e:0===a?e.slice(0,i)+s:e.slice(0,i)+s+e.slice(o-a)}function Sm(e){const{className:t,children:n,ellipsis:r=_m,ellipsizeMode:o=Em.auto,limit:i=0,numberOfLines:a=0,...l}=Zu(e,"Truncate"),c=Xu(),u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;const n={...Cm,...t},{ellipsis:r,ellipsizeMode:o,limit:i}=n;if(o===Em.none)return e;let a,s;switch(o){case Em.head:a=0,s=i;break;case Em.middle:a=Math.floor(i/2),s=Math.floor(i/2);break;default:a=i,s=0}return o!==Em.auto?km(e,a,s,r):e}("string"==typeof n?n:"",{ellipsis:r,ellipsizeMode:o,limit:i,numberOfLines:a}),d=o===Em.auto;return{...l,className:(0,s.useMemo)((()=>c(d&&!a&&bm,d&&!!a&&_f("-webkit-box-orient:vertical;-webkit-line-clamp:",a,";display:-webkit-box;overflow:hidden;",""),t)),[t,c,a,d]),children:u}}let Tm;Zf([Jf]);const Nm=gc()((function(e){var t,n;if("string"!=typeof e)return"";if("string"==typeof(n=e)&&Kf(n).isValid())return e;if(!e.includes("var("))return"";if("undefined"==typeof document)return"";const r=function(){if("undefined"!=typeof document){if(!Tm){const e=document.createElement("div");e.setAttribute("data-g2-color-computation-node",""),document.body.appendChild(e),Tm=e}return Tm}}();if(!r)return"";r.style.background=e;const o=null===(t=window)||void 0===t?void 0:t.getComputedStyle(r).background;return r.style.background="",o||""}));function Rm(e){const t=function(e){const t=Nm(e);return Kf(t).isLight()?"#000000":"#ffffff"}(e);return"#000000"===t?"dark":"light"}const Mm="36px",Im="12px",Pm={controlSurfaceColor:rp.white,controlTextActiveColor:rp.ui.theme,controlPaddingX:Im,controlPaddingXLarge:"calc(12px * 1.3334)",controlPaddingXSmall:"calc(12px / 1.3334)",controlBackgroundColor:rp.white,controlBorderRadius:"2px",controlBorderColor:rp.gray[700],controlBoxShadow:"transparent",controlBorderColorHover:rp.gray[700],controlBoxShadowFocus:`0 0 0 0.5px ${rp.ui.theme}`,controlDestructiveBorderColor:rp.alert.red,controlHeight:Mm,controlHeightXSmall:"calc( 36px * 0.6 )",controlHeightSmall:"calc( 36px * 0.8 )",controlHeightLarge:"calc( 36px * 1.2 )",controlHeightXLarge:"calc( 36px * 1.4 )"},Om={toggleGroupControlBackgroundColor:Pm.controlBackgroundColor,toggleGroupControlBorderColor:rp.ui.border,toggleGroupControlBackdropBackgroundColor:Pm.controlSurfaceColor,toggleGroupControlBackdropBorderColor:rp.ui.border,toggleGroupControlBackdropBoxShadow:"transparent",toggleGroupControlButtonColorActive:Pm.controlBackgroundColor};var Dm=Object.assign({},Pm,Om,{colorDivider:"rgba(0, 0, 0, 0.1)",colorScrollbarThumb:"rgba(0, 0, 0, 0.2)",colorScrollbarThumbHover:"rgba(0, 0, 0, 0.5)",colorScrollbarTrack:"rgba(0, 0, 0, 0.04)",elevationIntensity:1,radiusBlockUi:"2px",borderWidth:"1px",borderWidthFocus:"1.5px",borderWidthTab:"4px",spinnerSize:16,fontSize:"13px",fontSizeH1:"calc(2.44 * 13px)",fontSizeH2:"calc(1.95 * 13px)",fontSizeH3:"calc(1.56 * 13px)",fontSizeH4:"calc(1.25 * 13px)",fontSizeH5:"13px",fontSizeH6:"calc(0.8 * 13px)",fontSizeInputMobile:"16px",fontSizeMobile:"15px",fontSizeSmall:"calc(0.92 * 13px)",fontSizeXSmall:"calc(0.75 * 13px)",fontLineHeightBase:"1.2",fontWeight:"normal",fontWeightHeading:"600",gridBase:"4px",cardBorderRadius:"2px",cardPaddingXSmall:`${hm(2)}`,cardPaddingSmall:`${hm(4)}`,cardPaddingMedium:`${hm(4)} ${hm(6)}`,cardPaddingLarge:`${hm(6)} ${hm(8)}`,surfaceBackgroundColor:rp.white,surfaceBackgroundSubtleColor:"#F3F3F3",surfaceBackgroundTintColor:"#F5F5F5",surfaceBorderColor:"rgba(0, 0, 0, 0.1)",surfaceBorderBoldColor:"rgba(0, 0, 0, 0.15)",surfaceBorderSubtleColor:"rgba(0, 0, 0, 0.05)",surfaceBackgroundTertiaryColor:rp.white,surfaceColor:rp.white,transitionDuration:"200ms",transitionDurationFast:"160ms",transitionDurationFaster:"120ms",transitionDurationFastest:"100ms",transitionTimingFunction:"cubic-bezier(0.08, 0.52, 0.52, 1)",transitionTimingFunctionControl:"cubic-bezier(0.12, 0.8, 0.32, 1)"});const Am=_f("color:",rp.gray[900],";line-height:",Dm.fontLineHeightBase,";margin:0;",""),Lm={name:"4zleql",styles:"display:block"},zm=_f("color:",rp.alert.green,";",""),Bm=_f("color:",rp.alert.red,";",""),Fm=_f("color:",rp.gray[700],";",""),Hm=_f("mark{background:",rp.alert.yellow,";border-radius:2px;box-shadow:0 0 0 1px rgba( 0, 0, 0, 0.05 ) inset,0 -1px 0 rgba( 0, 0, 0, 0.1 ) inset;}",""),Vm={name:"50zrmy",styles:"text-transform:uppercase"};var jm=n(3138);const $m=gc()((e=>{const t={};for(const n in e)t[n.toLowerCase()]=e[n];return t}));const Wm={body:13,caption:10,footnote:11,largeTitle:28,subheadline:12,title:20},Um=[1,2,3,4,5,6].flatMap((e=>[e,e.toString()]));function Gm(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:13;if(e in Wm)return Gm(Wm[e]);if("number"!=typeof e){const t=parseFloat(e);if(Number.isNaN(t))return e;e=t}const t=`(${e} / 13)`;return`calc(${t} * ${Dm.fontSize})`}function qm(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3;if(!Um.includes(e))return Gm(e);const t=`fontSizeH${e}`;return Dm[t]}var Ym={name:"50zrmy",styles:"text-transform:uppercase"};function Km(t){const{adjustLineHeightForInnerControls:n,align:r,children:o,className:i,color:a,ellipsizeMode:l,isDestructive:c=!1,display:u,highlightEscape:d=!1,highlightCaseSensitive:f=!1,highlightWords:p,highlightSanitize:m,isBlock:h=!1,letterSpacing:v,lineHeight:g,optimizeReadabilityFor:b,size:y,truncate:w=!1,upperCase:x=!1,variant:_,weight:E=Dm.fontWeight,...C}=Zu(t,"Text");let k=o;const S=Array.isArray(p),T="caption"===y;if(S){if("string"!=typeof o)throw new TypeError("`children` of `Text` must only be `string` types when `highlightWords` is defined");k=function(e){let{activeClassName:t="",activeIndex:n=-1,activeStyle:r,autoEscape:o,caseSensitive:i=!1,children:a,findChunks:l,highlightClassName:c="",highlightStyle:u={},highlightTag:d="mark",sanitize:f,searchWords:p=[],unhighlightClassName:m="",unhighlightStyle:h}=e;if(!a)return null;if("string"!=typeof a)return a;const v=a,g=(0,jm.findAll)({autoEscape:o,caseSensitive:i,findChunks:l,sanitize:f,searchWords:p,textToHighlight:v}),b=d;let y,w=-1,x="";const _=g.map(((e,o)=>{const a=v.substr(e.start,e.end-e.start);if(e.highlight){let e;w++,"object"==typeof c?i?e=c[a]:(c=$m(c),e=c[a.toLowerCase()]):e=c;const l=w===+n;x=`${e} ${l?t:""}`,y=!0===l&&null!==r?Object.assign({},u,r):u;const d={children:a,className:x,key:o,style:y};return"string"!=typeof b&&(d.highlightIndex=w),(0,s.createElement)(b,d)}return(0,s.createElement)("span",{children:a,className:m,key:o,style:h})}));return _}({autoEscape:d,children:o,caseSensitive:f,searchWords:p,sanitize:m})}const N=Xu();let R;!0===w&&(R="auto"),!1===w&&(R="none");const M=Sm({...C,className:(0,s.useMemo)((()=>{const t={},o=function(e,t){if(t)return t;if(!e)return;let n=`calc(${Dm.controlHeight} + ${hm(2)})`;switch(e){case"large":n=`calc(${Dm.controlHeightLarge} + ${hm(2)})`;break;case"small":n=`calc(${Dm.controlHeightSmall} + ${hm(2)})`;break;case"xSmall":n=`calc(${Dm.controlHeightXSmall} + ${hm(2)})`}return n}(n,g);if(t.Base=_f({color:a,display:u,fontSize:Gm(y),fontWeight:E,lineHeight:o,letterSpacing:v,textAlign:r},"",""),t.upperCase=Ym,t.optimalTextColor=null,b){const e="dark"===Rm(b);t.optimalTextColor=_f(e?{color:rp.gray[900]}:{color:rp.white},"","")}return N(Am,t.Base,t.optimalTextColor,c&&Bm,!!S&&Hm,h&&Lm,T&&Fm,_&&e[_],x&&t.upperCase,i)}),[n,r,i,a,N,u,h,T,c,S,v,g,b,y,x,_,E]),children:o,ellipsizeMode:l||R});return!w&&Array.isArray(o)&&(k=s.Children.map(o,(e=>{if("object"!=typeof e||null===e||!("props"in e))return e;return td(e,["Link"])?(0,s.cloneElement)(e,{size:e.props.size||"inherit"}):e}))),{...M,children:w?M.children:k}}var Xm=Ju((function(e,t){const n=Km(e);return(0,s.createElement)(dd,a({as:"span"},n,{ref:t}))}),"Text");const Zm={name:"9amh4a",styles:"font-size:11px;font-weight:500;line-height:1.4;text-transform:uppercase"},Jm=new RegExp(/-left/g),Qm=new RegExp(/-right/g),eh=new RegExp(/Left/g),th=new RegExp(/Right/g);function nh(e){return"left"===e?"right":"right"===e?"left":Jm.test(e)?e.replace(Jm,"-right"):Qm.test(e)?e.replace(Qm,"-left"):eh.test(e)?e.replace(eh,"Right"):th.test(e)?e.replace(th,"Left"):e}const rh=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.fromEntries(Object.entries(e).map((e=>{let[t,n]=e;return[nh(t),n]})))};function oh(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return()=>t?(0,u.isRTL)()?_f(t,""):_f(e,""):(0,u.isRTL)()?_f(rh(e),""):_f(e,"")}oh.watch=()=>(0,u.isRTL)();var ih={name:"1739oy8",styles:"z-index:1"};const ah=e=>{let{isFocused:t}=e;return t?ih:""},sh=cd(gm,{target:"em5sgkm7"})("position:relative;border-radius:2px;padding-top:0;",ah,";");var lh={name:"1d3w5wq",styles:"width:100%"};const ch=cd("div",{target:"em5sgkm6"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;",(e=>{let{disabled:t}=e;return _f({backgroundColor:t?rp.ui.backgroundDisabled:rp.ui.background},"","")})," ",(e=>{let{__unstableInputWidth:t,labelPosition:n}=e;return t?"side"===n?"":_f("edge"===n?{flex:`0 0 ${t}`}:{width:t},"",""):lh}),";"),uh=e=>{let{inputSize:t,__next36pxDefaultSize:n}=e;const r={default:{height:36,lineHeight:1,minHeight:36,paddingLeft:hm(4),paddingRight:hm(4)},small:{height:24,lineHeight:1,minHeight:24,paddingLeft:hm(2),paddingRight:hm(2)},"__unstable-large":{height:40,lineHeight:1,minHeight:40,paddingLeft:hm(4),paddingRight:hm(4)}};return n||(r.default={height:30,lineHeight:1,minHeight:30,paddingLeft:hm(2),paddingRight:hm(2)}),r[t]||r.default},dh=cd("input",{target:"em5sgkm5"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",rp.gray[900],";display:block;font-family:inherit;margin:0;outline:none;width:100%;",(e=>{let t,n,{isDragging:r,dragCursor:o}=e;return r&&(t=_f("cursor:",o,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}","")),r&&o&&(n=_f("&:active{cursor:",o,";}","")),_f(t," ",n,";","")})," ",(e=>{let{disabled:t}=e;return t?_f({color:rp.ui.textDisabled},"",""):""})," ",(e=>{let{inputSize:t}=e;const n={default:"13px",small:"11px","__unstable-large":"13px"},r=n[t]||n.default;return r?_f("font-size:","16px",";@media ( min-width: 600px ){font-size:",r,";}",""):""})," ",(e=>_f(uh(e),"",""))," ",(e=>{let{paddingInlineStart:t,paddingInlineEnd:n}=e;return _f({paddingInlineStart:t,paddingInlineEnd:n},"","")})," &::-webkit-input-placeholder{line-height:normal;}}"),fh=cd(Xm,{target:"em5sgkm4"})("&&&{",Zm,";box-sizing:border-box;display:block;padding-top:0;padding-bottom:0;max-width:100%;z-index:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}"),ph=e=>(0,s.createElement)(fh,a({},e,{as:"label"})),mh=cd(dm,{target:"em5sgkm3"})({name:"1b6uupn",styles:"max-width:calc( 100% - 10px )"}),hh=cd("div",{target:"em5sgkm2"})("&&&{box-sizing:border-box;border-radius:inherit;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;",(e=>{let t,{disabled:n,isFocused:r}=e,o=r?rp.ui.borderFocus:rp.ui.border;return r&&(t=`0 0 0 1px ${rp.ui.borderFocus} inset`),n&&(o=rp.ui.borderDisabled),_f({boxShadow:t,borderColor:o,borderStyle:"solid",borderWidth:1},"","")})," ",oh({paddingLeft:2}),";}"),vh=cd("span",{target:"em5sgkm1"})({name:"pvvbxf",styles:"box-sizing:border-box;display:block"}),gh=cd("span",{target:"em5sgkm0"})({name:"jgf79h",styles:"align-items:center;align-self:stretch;box-sizing:border-box;display:flex"});const bh=(0,s.memo)((function(e){let{disabled:t=!1,isFocused:n=!1}=e;return(0,s.createElement)(hh,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:t,isFocused:n})}));var yh=bh;function wh(e){let{children:t,hideLabelFromVision:n,htmlFor:r,...o}=e;return t?n?(0,s.createElement)(fd,{as:"label",htmlFor:r},t):(0,s.createElement)(mh,null,(0,s.createElement)(ph,a({htmlFor:r},o),t)):null}function xh(e,t){let{__next36pxDefaultSize:n,__unstableInputWidth:r,children:o,className:i,disabled:l=!1,hideLabelFromVision:c=!1,labelPosition:u,id:f,isFocused:p=!1,label:m,prefix:h,size:v="default",suffix:g,...b}=e;const y=function(e){const t=(0,d.useInstanceId)(xh);return e||`input-base-control-${t}`}(f),w=c||!m,{paddingLeft:x,paddingRight:_}=uh({inputSize:v,__next36pxDefaultSize:n}),E=(0,s.useMemo)((()=>({InputControlPrefixWrapper:{paddingLeft:x},InputControlSuffixWrapper:{paddingRight:_}})),[x,_]);return(0,s.createElement)(sh,a({},b,function(e){const t={};switch(e){case"top":t.direction="column",t.gap=0;break;case"bottom":t.direction="column-reverse",t.gap=0;break;case"edge":t.justify="space-between"}return t}(u),{className:i,gap:2,isFocused:p,labelPosition:u,ref:t}),(0,s.createElement)(wh,{className:"components-input-control__label",hideLabelFromVision:c,labelPosition:u,htmlFor:y},m),(0,s.createElement)(ch,{__unstableInputWidth:r,className:"components-input-control__container",disabled:l,hideLabel:w,labelPosition:u},(0,s.createElement)(mc,{value:E},h&&(0,s.createElement)(vh,{className:"components-input-control__prefix"},h),o,g&&(0,s.createElement)(gh,{className:"components-input-control__suffix"},g)),(0,s.createElement)(yh,{disabled:l,isFocused:p})))}var _h=(0,s.forwardRef)(xh);const Eh={toVector(e,t){return void 0===e&&(e=t),Array.isArray(e)?e:[e,e]},add(e,t){return[e[0]+t[0],e[1]+t[1]]},sub(e,t){return[e[0]-t[0],e[1]-t[1]]},addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function Ch(e,t,n){return 0===t||Math.abs(t)===1/0?Math.pow(e,5*n):e*t*n/(t+n*e)}function kh(e,t,n,r=.15){return 0===r?function(e,t,n){return Math.max(t,Math.min(e,n))}(e,t,n):en?+Ch(e-n,n-t,r)+n:e}function Sh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Th(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nh(e){for(var t=1;t{var n,r;return t.target===e.currentTarget||(null===(n=e.currentTarget)||void 0===n||null===(r=n.contains)||void 0===r?void 0:r.call(n,t.target))}))}(e).map((e=>e.identifier))}function Fh(e){const t=zh(e);return Ah(e)?t.identifier:t.pointerId}function Hh(e){const t=zh(e);return[t.clientX,t.clientY]}function Vh(e,...t){return"function"==typeof e?e(...t):e}function jh(){}function $h(...e){return 0===e.length?jh:1===e.length?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function Wh(e,t){return Object.assign({},t,e||{})}class Uh{constructor(e,t,n){this.ctrl=e,this.args=t,this.key=n,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(e){this.ctrl.state[this.key]=e}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:e,shared:t,ingKey:n,args:r}=this;t[n]=e._active=e.active=e._blocked=e._force=!1,e._step=[!1,!1],e.intentional=!1,e._movement=[0,0],e._distance=[0,0],e._direction=[0,0],e._delta=[0,0],e._bounds=[[-1/0,1/0],[-1/0,1/0]],e.args=r,e.axis=void 0,e.memo=void 0,e.elapsedTime=0,e.direction=[0,0],e.distance=[0,0],e.overflow=[0,0],e._movementBound=[!1,!1],e.velocity=[0,0],e.movement=[0,0],e.delta=[0,0],e.timeStamp=0}start(e){const t=this.state,n=this.config;t._active||(this.reset(),this.computeInitial(),t._active=!0,t.target=e.target,t.currentTarget=e.currentTarget,t.lastOffset=n.from?Vh(n.from,t):t.offset,t.offset=t.lastOffset),t.startTime=t.timeStamp=e.timeStamp}computeValues(e){const t=this.state;t._values=e,t.values=this.config.transform(e)}computeInitial(){const e=this.state;e._initial=e._values,e.initial=e.values}compute(e){const{state:t,config:n,shared:r}=this;t.args=this.args;let o=0;if(e&&(t.event=e,n.preventDefault&&e.cancelable&&t.event.preventDefault(),t.type=e.type,r.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,r.locked=!!document.pointerLockElement,Object.assign(r,function(e){const t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){const{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i}=e;Object.assign(t,{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i})}return t}(e)),r.down=r.pressed=r.buttons%2==1||r.touches>0,o=e.timeStamp-t.timeStamp,t.timeStamp=e.timeStamp,t.elapsedTime=t.timeStamp-t.startTime),t._active){const e=t._delta.map(Math.abs);Eh.addTo(t._distance,e)}this.axisIntent&&this.axisIntent(e);const[i,a]=t._movement,[s,l]=n.threshold,{_step:c,values:u}=t;if(n.hasCustomTransform?(!1===c[0]&&(c[0]=Math.abs(i)>=s&&u[0]),!1===c[1]&&(c[1]=Math.abs(a)>=l&&u[1])):(!1===c[0]&&(c[0]=Math.abs(i)>=s&&Math.sign(i)*s),!1===c[1]&&(c[1]=Math.abs(a)>=l&&Math.sign(a)*l)),t.intentional=!1!==c[0]||!1!==c[1],!t.intentional)return;const d=[0,0];if(n.hasCustomTransform){const[e,t]=u;d[0]=!1!==c[0]?e-c[0]:0,d[1]=!1!==c[1]?t-c[1]:0}else d[0]=!1!==c[0]?i-c[0]:0,d[1]=!1!==c[1]?a-c[1]:0;this.restrictToAxis&&!t._blocked&&this.restrictToAxis(d);const f=t.offset,p=t._active&&!t._blocked||t.active;p&&(t.first=t._active&&!t.active,t.last=!t._active&&t.active,t.active=r[this.ingKey]=t._active,e&&(t.first&&("bounds"in n&&(t._bounds=Vh(n.bounds,t)),this.setup&&this.setup()),t.movement=d,this.computeOffset()));const[m,h]=t.offset,[[v,g],[b,y]]=t._bounds;t.overflow=[mg?1:0,hy?1:0],t._movementBound[0]=!!t.overflow[0]&&(!1===t._movementBound[0]?t._movement[0]:t._movementBound[0]),t._movementBound[1]=!!t.overflow[1]&&(!1===t._movementBound[1]?t._movement[1]:t._movementBound[1]);const w=t._active&&n.rubberband||[0,0];if(t.offset=function(e,[t,n],[r,o]){const[[i,a],[s,l]]=e;return[kh(t,i,a,r),kh(n,s,l,o)]}(t._bounds,t.offset,w),t.delta=Eh.sub(t.offset,f),this.computeMovement(),p&&(!t.last||o>32)){t.delta=Eh.sub(t.offset,f);const e=t.delta.map(Math.abs);Eh.addTo(t.distance,e),t.direction=t.delta.map(Math.sign),t._direction=t._delta.map(Math.sign),!t.first&&o>0&&(t.velocity=[e[0]/o,e[1]/o])}}emit(){const e=this.state,t=this.shared,n=this.config;if(e._active||this.clean(),(e._blocked||!e.intentional)&&!e._force&&!n.triggerAllEvents)return;const r=this.handler(Nh(Nh(Nh({},t),e),{},{[this.aliasKey]:e.values}));void 0!==r&&(e.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}class Gh extends Uh{constructor(...e){super(...e),Sh(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=Eh.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=Eh.sub(this.state.offset,this.state.lastOffset)}axisIntent(e){const t=this.state,n=this.config;if(!t.axis&&e){const r="object"==typeof n.axisThreshold?n.axisThreshold[Lh(e)]:n.axisThreshold;t.axis=function([e,t],n){const r=Math.abs(e),o=Math.abs(t);return r>o&&r>n?"x":o>r&&o>n?"y":void 0}(t._movement,r)}t._blocked=(n.lockDirection||!!n.axis)&&!t.axis||!!n.axis&&n.axis!==t.axis}restrictToAxis(e){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":e[1]=0;break;case"y":e[0]=0}}}const qh=e=>e,Yh={enabled(e=!0){return e},eventOptions(e,t,n){return Nh(Nh({},n.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[.15,.15];case!1:return[0,0];default:return Eh.toVector(e)}},from(e){return"function"==typeof e?e:null!=e?Eh.toVector(e):void 0},transform(e,t,n){const r=e||n.shared.transform;return this.hasCustomTransform=!!r,r||qh},threshold(e){return Eh.toVector(e,0)}};const Kh=Nh(Nh({},Yh),{},{axis(e,t,{axis:n}){if(this.lockDirection="lock"===n,!this.lockDirection)return n},axisThreshold(e=0){return e},bounds(e={}){if("function"==typeof e)return t=>Kh.bounds(e(t));if("current"in e)return()=>e.current;if("function"==typeof HTMLElement&&e instanceof HTMLElement)return e;const{left:t=-1/0,right:n=1/0,top:r=-1/0,bottom:o=1/0}=e;return[[t,n],[r,o]]}}),Xh={ArrowRight:(e=1)=>[10*e,0],ArrowLeft:(e=1)=>[-10*e,0],ArrowUp:(e=1)=>[0,-10*e],ArrowDown:(e=1)=>[0,10*e]};const Zh="undefined"!=typeof window&&window.document&&window.document.createElement;function Jh(){return Zh&&"ontouchstart"in window||Zh&&window.navigator.maxTouchPoints>1}const Qh={isBrowser:Zh,gesture:function(){try{return"constructor"in GestureEvent}catch(e){return!1}}(),touch:Jh(),touchscreen:Jh(),pointer:Zh&&"onpointerdown"in window,pointerLock:Zh&&"exitPointerLock"in window.document},ev={mouse:0,touch:0,pen:8},tv=Nh(Nh({},Kh),{},{device(e,t,{pointer:{touch:n=!1,lock:r=!1,mouse:o=!1}={}}){return this.pointerLock=r&&Qh.pointerLock,Qh.touch&&n?"touch":this.pointerLock?"mouse":Qh.pointer&&!o?"pointer":Qh.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay="number"==typeof n?n:n||void 0===n&&e?250:void 0,Qh.touchscreen&&!1!==n)return e||(void 0!==n?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:r=1}={}}){return this.pointerButtons=r,!this.pointerLock&&"pointer"===this.device&&n},keys(e=!0){return e},threshold(e,t,{filterTaps:n=!1,tapsThreshold:r=3,axis:o}){const i=Eh.toVector(e,n?r:o?1:0);return this.filterTaps=n,this.tapsThreshold=r,i},swipe({velocity:e=.5,distance:t=50,duration:n=250}={}){return{velocity:this.transform(Eh.toVector(e)),distance:this.transform(Eh.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return 180;case!1:return 0;default:return e}},axisThreshold(e){return e?Nh(Nh({},ev),e):ev}});Nh(Nh({},Yh),{},{device(e,t,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!Qh.touch&&Qh.gesture)return"gesture";if(Qh.touch&&r)return"touch";if(Qh.touchscreen){if(Qh.pointer)return"pointer";if(Qh.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){const o=e=>{const t=Wh(Vh(n,e),{min:-1/0,max:1/0});return[t.min,t.max]},i=e=>{const t=Wh(Vh(r,e),{min:-1/0,max:1/0});return[t.min,t.max]};return"function"!=typeof n&&"function"!=typeof r?[o(),i()]:e=>[o(e),i(e)]},threshold(e,t,n){this.lockDirection="lock"===n.axis;return Eh.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return void 0===e?"ctrlKey":e}});Nh(Nh({},Kh),{},{mouseOnly:(e=!0)=>e});const nv=Nh(Nh({},Kh),{},{mouseOnly:(e=!0)=>e}),rv=new Map,ov=new Map;function iv(e){rv.set(e.key,e.engine),ov.set(e.key,e.resolver)}const av={key:"drag",engine:class extends Gh{constructor(...e){super(...e),Sh(this,"ingKey","dragging")}reset(){super.reset();const e=this.state;e._pointerId=void 0,e._pointerActive=!1,e._keyboardActive=!1,e._preventScroll=!1,e._delayed=!1,e.swipe=[0,0],e.tap=!1,e.canceled=!1,e.cancel=this.cancel.bind(this)}setup(){const e=this.state;if(e._bounds instanceof HTMLElement){const t=e._bounds.getBoundingClientRect(),n=e.currentTarget.getBoundingClientRect(),r={left:t.left-n.left+e.offset[0],right:t.right-n.right+e.offset[0],top:t.top-n.top+e.offset[1],bottom:t.bottom-n.bottom+e.offset[1]};e._bounds=Kh.bounds(r)}}cancel(){const e=this.state;e.canceled||(e.canceled=!0,e._active=!1,setTimeout((()=>{this.compute(),this.emit()}),0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(e){const t=this.config,n=this.state;if(null!=e.buttons&&(Array.isArray(t.pointerButtons)?!t.pointerButtons.includes(e.buttons):-1!==t.pointerButtons&&t.pointerButtons!==e.buttons))return;const r=this.ctrl.setEventIds(e);t.pointerCapture&&e.target.setPointerCapture(e.pointerId),r&&r.size>1&&n._pointerActive||(this.start(e),this.setupPointer(e),n._pointerId=Fh(e),n._pointerActive=!0,this.computeValues(Hh(e)),this.computeInitial(),t.preventScrollAxis&&"mouse"!==Lh(e)?(n._active=!1,this.setupScrollPrevention(e)):t.delay>0?(this.setupDelayTrigger(e),t.triggerAllEvents&&(this.compute(e),this.emit())):this.startPointerDrag(e))}startPointerDrag(e){const t=this.state;t._active=!0,t._preventScroll=!0,t._delayed=!1,this.compute(e),this.emit()}pointerMove(e){const t=this.state,n=this.config;if(!t._pointerActive)return;if(t.type===e.type&&e.timeStamp===t.timeStamp)return;const r=Fh(e);if(void 0!==t._pointerId&&r!==t._pointerId)return;const o=Hh(e);return document.pointerLockElement===e.target?t._delta=[e.movementX,e.movementY]:(t._delta=Eh.sub(o,t._values),this.computeValues(o)),Eh.addTo(t._movement,t._delta),this.compute(e),t._delayed&&t.intentional?(this.timeoutStore.remove("dragDelay"),t.active=!1,void this.startPointerDrag(e)):n.preventScrollAxis&&!t._preventScroll?t.axis?t.axis===n.preventScrollAxis||"xy"===n.preventScrollAxis?(t._active=!1,void this.clean()):(this.timeoutStore.remove("startPointerDrag"),void this.startPointerDrag(e)):void 0:void this.emit()}pointerUp(e){this.ctrl.setEventIds(e);try{this.config.pointerCapture&&e.target.hasPointerCapture(e.pointerId)&&e.target.releasePointerCapture(e.pointerId)}catch(e){0}const t=this.state,n=this.config;if(!t._active||!t._pointerActive)return;const r=Fh(e);if(void 0!==t._pointerId&&r!==t._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(e);const[o,i]=t._distance;if(t.tap=o<=n.tapsThreshold&&i<=n.tapsThreshold,t.tap&&n.filterTaps)t._force=!0;else{const[e,r]=t.direction,[o,i]=t.velocity,[a,s]=t.movement,[l,c]=n.swipe.velocity,[u,d]=n.swipe.distance,f=n.swipe.duration;t.elapsedTimel&&Math.abs(a)>u&&(t.swipe[0]=e),Math.abs(i)>c&&Math.abs(s)>d&&(t.swipe[1]=r))}this.emit()}pointerClick(e){!this.state.tap&&e.detail>0&&(e.preventDefault(),e.stopPropagation())}setupPointer(e){const t=this.config,n=t.device;t.pointerLock&&e.currentTarget.requestPointerLock(),t.pointerCapture||(this.eventStore.add(this.sharedConfig.window,n,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(e){this.state._preventScroll&&e.cancelable&&e.preventDefault()}setupScrollPrevention(e){this.state._preventScroll=!1,function(e){"persist"in e&&"function"==typeof e.persist&&e.persist()}(e);const t=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",t),this.eventStore.add(this.sharedConfig.window,"touch","cancel",t),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,e)}setupDelayTrigger(e){this.state._delayed=!0,this.timeoutStore.add("dragDelay",(()=>{this.state._step=[0,0],this.startPointerDrag(e)}),this.config.delay)}keyDown(e){const t=Xh[e.key];if(t){const n=this.state,r=e.shiftKey?10:e.altKey?.1:1;this.start(e),n._delta=t(r),n._keyboardActive=!0,Eh.addTo(n._movement,n._delta),this.compute(e),this.emit()}}keyUp(e){e.key in Xh&&(this.state._keyboardActive=!1,this.setActive(),this.compute(e),this.emit())}bind(e){const t=this.config.device;e(t,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(e(t,"change",this.pointerMove.bind(this)),e(t,"end",this.pointerUp.bind(this)),e(t,"cancel",this.pointerUp.bind(this)),e("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(e("key","down",this.keyDown.bind(this)),e("key","up",this.keyUp.bind(this))),this.config.filterTaps&&e("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}},resolver:tv},sv={key:"hover",engine:class extends Gh{constructor(...e){super(...e),Sh(this,"ingKey","hovering")}enter(e){this.config.mouseOnly&&"mouse"!==e.pointerType||(this.start(e),this.computeValues(Hh(e)),this.compute(e),this.emit())}leave(e){if(this.config.mouseOnly&&"mouse"!==e.pointerType)return;const t=this.state;if(!t._active)return;t._active=!1;const n=Hh(e);t._movement=t._delta=Eh.sub(n,t._values),this.computeValues(n),this.compute(e),t.delta=t.movement,this.emit()}bind(e){e("pointer","enter",this.enter.bind(this)),e("pointer","leave",this.leave.bind(this))}},resolver:nv};function lv(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const cv={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=(Qh.isBrowser?window:void 0)){return e},eventOptions({passive:e=!0,capture:t=!1}={}){return{passive:e,capture:t}},transform(e){return e}},uv=["target","eventOptions","window","enabled","transform"];function dv(e={},t){const n={};for(const[r,o]of Object.entries(t))switch(typeof o){case"function":n[r]=o.call(n,e[r],r,e);break;case"object":n[r]=dv(e[r],o);break;case"boolean":o&&(n[r]=e[r])}return n}class fv{constructor(e,t){Sh(this,"_listeners",new Set),this._ctrl=e,this._gestureKey=t}add(e,t,n,r,o){const i=this._listeners,a=function(e,t=""){const n=Rh[e];return e+(n&&n[t]||t)}(t,n),s=Nh(Nh({},this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{}),o);e.addEventListener(a,r,s);const l=()=>{e.removeEventListener(a,r,s),i.delete(l)};return i.add(l),l}clean(){this._listeners.forEach((e=>e())),this._listeners.clear()}}class pv{constructor(){Sh(this,"_timeouts",new Map)}add(e,t,n=140,...r){this.remove(e),this._timeouts.set(e,window.setTimeout(t,n,...r))}remove(e){const t=this._timeouts.get(e);t&&window.clearTimeout(t)}clean(){this._timeouts.forEach((e=>{window.clearTimeout(e)})),this._timeouts.clear()}}class mv{constructor(e){Sh(this,"gestures",new Set),Sh(this,"_targetEventStore",new fv(this)),Sh(this,"gestureEventStores",{}),Sh(this,"gestureTimeoutStores",{}),Sh(this,"handlers",{}),Sh(this,"config",{}),Sh(this,"pointerIds",new Set),Sh(this,"touchIds",new Set),Sh(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),function(e,t){t.drag&&hv(e,"drag");t.wheel&&hv(e,"wheel");t.scroll&&hv(e,"scroll");t.move&&hv(e,"move");t.pinch&&hv(e,"pinch");t.hover&&hv(e,"hover")}(this,e)}setEventIds(e){return Ah(e)?(this.touchIds=new Set(Bh(e)),this.touchIds):"pointerId"in e?("pointerup"===e.type||"pointercancel"===e.type?this.pointerIds.delete(e.pointerId):"pointerdown"===e.type&&this.pointerIds.add(e.pointerId),this.pointerIds):void 0}applyHandlers(e,t){this.handlers=e,this.nativeHandlers=t}applyConfig(e,t){this.config=function(e,t,n={}){const r=e,{target:o,eventOptions:i,window:a,enabled:s,transform:l}=r,c=lv(r,uv);if(n.shared=dv({target:o,eventOptions:i,window:a,enabled:s,transform:l},cv),t){const e=ov.get(t);n[t]=dv(Nh({shared:n.shared},c),e)}else for(const e in c){const t=ov.get(e);t&&(n[e]=dv(Nh({shared:n.shared},c[e]),t))}return n}(e,t,this.config)}clean(){this._targetEventStore.clean();for(const e of this.gestures)this.gestureEventStores[e].clean(),this.gestureTimeoutStores[e].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...e){const t=this.config.shared,n={};let r;if(!t.target||(r=t.target(),r)){if(t.enabled){for(const t of this.gestures){const o=this.config[t],i=vv(n,o.eventOptions,!!r);if(o.enabled){new(rv.get(t))(this,e,t).bind(i)}}const o=vv(n,t.eventOptions,!!r);for(const t in this.nativeHandlers)o(t,"",(n=>this.nativeHandlers[t](Nh(Nh({},this.state.shared),{},{event:n,args:e}))),void 0,!0)}for(const e in n)n[e]=$h(...n[e]);if(!r)return n;for(const e in n){const{device:t,capture:o,passive:i}=Dh(e);this._targetEventStore.add(r,t,"",n[e],{capture:o,passive:i})}}}}function hv(e,t){e.gestures.add(t),e.gestureEventStores[t]=new fv(e,t),e.gestureTimeoutStores[t]=new pv}const vv=(e,t,n)=>(r,o,i,a={},s=!1)=>{var l,c;const u=null!==(l=a.capture)&&void 0!==l?l:t.capture,d=null!==(c=a.passive)&&void 0!==c?c:t.passive;let f=s?r:Ph(r,o,u);n&&d&&(f+="Passive"),e[f]=e[f]||[],e[f].push(i)};function gv(e,t={},n,r){const o=y().useMemo((()=>new mv(e)),[]);if(o.applyHandlers(e,r),o.applyConfig(t,n),y().useEffect(o.effect.bind(o)),y().useEffect((()=>o.clean.bind(o)),[]),void 0===t.target)return o.bind.bind(o)}const bv=e=>e,yv={error:null,initialValue:"",isDirty:!1,isDragEnabled:!1,isDragging:!1,isPressEnterToChange:!1,value:""},wv="CHANGE",xv="COMMIT",_v="CONTROL",Ev="DRAG_END",Cv="DRAG_START",kv="DRAG",Sv="INVALIDATE",Tv="PRESS_DOWN",Nv="PRESS_ENTER",Rv="PRESS_UP",Mv="RESET";function Iv(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:yv;const{value:t}=e;return{...yv,...e,initialValue:t}}function Pv(e){return(t,n)=>{const r={...t};switch(n.type){case _v:return r.value=n.payload.value,r.isDirty=!1,r._event=void 0,r;case Rv:case Tv:r.isDirty=!1;break;case Cv:r.isDragging=!0;break;case Ev:r.isDragging=!1;break;case wv:r.error=null,r.value=n.payload.value,t.isPressEnterToChange&&(r.isDirty=!0);break;case xv:r.value=n.payload.value,r.isDirty=!1;break;case Mv:r.error=null,r.isDirty=!1,r.value=n.payload.value||t.initialValue;break;case Sv:r.error=n.payload.error}return r._event=n.payload.event,e(r,n)}}const Ov=()=>{};const Dv=(0,s.forwardRef)((function(e,t){let{disabled:n=!1,dragDirection:r="n",dragThreshold:o=10,id:i,isDragEnabled:l=!1,isFocused:c,isPressEnterToChange:u=!1,onBlur:d=Ov,onChange:f=Ov,onDrag:p=Ov,onDragEnd:m=Ov,onDragStart:h=Ov,onFocus:v=Ov,onKeyDown:g=Ov,onValidate:b=Ov,size:y="default",setIsFocused:w,stateReducer:x=(e=>e),value:_,type:E,...C}=e;const{state:k,change:S,commit:T,drag:N,dragEnd:R,dragStart:M,invalidate:I,pressDown:P,pressEnter:O,pressUp:D,reset:A}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bv,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yv,n=arguments.length>2?arguments[2]:void 0;const[r,o]=(0,s.useReducer)(Pv(e),Iv(t)),i=e=>(t,n)=>{o({type:e,payload:{value:t,event:n}})},a=e=>t=>{o({type:e,payload:{event:t}})},l=e=>t=>{o({type:e,payload:t})},c=i(wv),u=(e,t)=>o({type:Sv,payload:{error:e,event:t}}),d=i(Mv),f=i(xv),p=l(Cv),m=l(kv),h=l(Ev),v=a(Rv),g=a(Tv),b=a(Nv),y=(0,s.useRef)(r),w=(0,s.useRef)({value:t.value,onChangeHandler:n});return(0,s.useLayoutEffect)((()=>{y.current=r,w.current={value:t.value,onChangeHandler:n}})),(0,s.useLayoutEffect)((()=>{var e;void 0===y.current._event||r.value===w.current.value||r.isDirty||w.current.onChangeHandler(null!==(e=r.value)&&void 0!==e?e:"",{event:y.current._event})}),[r.value,r.isDirty]),(0,s.useLayoutEffect)((()=>{var e;t.value===y.current.value||y.current.isDirty||o({type:_v,payload:{value:null!==(e=t.value)&&void 0!==e?e:""}})}),[t.value]),{change:c,commit:f,dispatch:o,drag:m,dragEnd:h,dragStart:p,invalidate:u,pressDown:g,pressEnter:b,pressUp:v,reset:d,state:r}}(x,{isDragEnabled:l,value:_,isPressEnterToChange:u},f),{value:L,isDragging:z,isDirty:B}=k,F=(0,s.useRef)(!1),H=function(e,t){const n=function(e){let t="ns-resize";switch(e){case"n":case"s":t="ns-resize";break;case"e":case"w":t="ew-resize"}return t}(t);return(0,s.useEffect)((()=>{document.documentElement.style.cursor=e?n:null}),[e,n]),n}(z,r),V=e=>{const t=e.currentTarget.value;try{b(t),T(t,e)}catch(t){I(t,e)}},j=($=e=>{const{distance:t,dragging:n,event:r,target:o}=e;if(e.event={...e.event,target:o},t){if(r.stopPropagation(),!n)return m(e),void R(e);p(e),N(e),z||(h(e),M(e))}},W={axis:"e"===r||"w"===r?"x":"y",threshold:o,enabled:l,pointer:{capture:!1}},iv(av),gv({drag:$},W||{},"drag"));var $,W;const U=l?j():{};let G;return"number"===E&&(G=e=>{var t;null===(t=C.onMouseDown)||void 0===t||t.call(C,e),e.currentTarget!==e.currentTarget.ownerDocument.activeElement&&e.currentTarget.focus()}),(0,s.createElement)(dh,a({},C,U,{className:"components-input-control__input",disabled:n,dragCursor:H,isDragging:z,id:i,onBlur:e=>{d(e),null==w||w(!1),!B&&e.target.validity.valid||(F.current=!0,V(e))},onChange:e=>{const t=e.target.value;S(t,e)},onFocus:e=>{v(e),null==w||w(!0)},onKeyDown:e=>{const{key:t}=e;switch(g(e),t){case"ArrowUp":D(e);break;case"ArrowDown":P(e);break;case"Enter":O(e),u&&(e.preventDefault(),V(e));break;case"Escape":u&&B&&(e.preventDefault(),A(_,e))}},onMouseDown:G,ref:t,inputSize:y,value:L,type:E}))}));var Av=Dv;const Lv=()=>{};const zv=(0,s.forwardRef)((function(e,t){let{__next36pxDefaultSize:n,__unstableStateReducer:r=(e=>e),__unstableInputWidth:o,className:i,disabled:l=!1,hideLabelFromVision:u=!1,id:f,isPressEnterToChange:p=!1,label:m,labelPosition:h="top",onChange:v=Lv,onValidate:g=Lv,onKeyDown:b=Lv,prefix:y,size:w="default",suffix:x,value:_,...E}=e;const[C,k]=(0,s.useState)(!1),S=function(e){const t=(0,d.useInstanceId)(zv);return e||`inspector-input-control-${t}`}(f),T=c()("components-input-control",i),N=function(e){const t=(0,s.useRef)(e.value),[n,r]=(0,s.useState)({}),o=void 0!==n.value?n.value:e.value;return(0,s.useLayoutEffect)((()=>{const{current:o}=t;t.current=e.value,void 0===n.value||n.isStale?n.isStale&&e.value!==o&&r({}):r({...n,isStale:!0})}),[e.value,n]),{value:o,onBlur:t=>{var n;r({}),null===(n=e.onBlur)||void 0===n||n.call(e,t)},onChange:(t,n)=>{r((e=>Object.assign(e,{value:t,isStale:!1}))),e.onChange(t,n)}}}({value:_,onBlur:E.onBlur,onChange:v});return(0,s.createElement)(_h,{__next36pxDefaultSize:n,__unstableInputWidth:o,className:T,disabled:l,gap:3,hideLabelFromVision:u,id:S,isFocused:C,justify:"left",label:m,labelPosition:h,prefix:y,size:w,suffix:x},(0,s.createElement)(Av,a({},E,{__next36pxDefaultSize:n,className:"components-input-control__input",disabled:l,id:S,isFocused:C,isPressEnterToChange:p,onKeyDown:b,onValidate:g,paddingInlineStart:y?hm(2):void 0,paddingInlineEnd:x?hm(2):void 0,ref:t,setIsFocused:k,size:w,stateReducer:r},N)))}));var Bv=zv;var Fv={name:"euqsgg",styles:"input[type='number']::-webkit-outer-spin-button,input[type='number']::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}input[type='number']{-moz-appearance:textfield;}"};const Hv=e=>{let{hideHTMLArrows:t}=e;return t?Fv:""},Vv=cd(Bv,{target:"ep48uk90"})(Hv,";");function jv(e){const t=Number(e);return isNaN(t)?0:t}function $v(){for(var e=arguments.length,t=new Array(e),n=0;ne+jv(t)),0)}function Wv(e){const t=(e+"").split(".");return void 0!==t[1]?t[1].length:0}function Uv(e,t,n){const r=jv(e);return Math.max(t,Math.min(r,n))}function Gv(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const o=jv(e),i=jv(r),a=Wv(r),s=Math.round(o/i)*i,l=Uv(s,t,n);return a?jv(l.toFixed(a)):l}const qv=(0,s.forwardRef)((function(e,t){let{__unstableStateReducer:n,className:r,dragDirection:o="n",hideHTMLArrows:i=!1,isDragEnabled:l=!0,isShiftStepEnabled:d=!0,label:f,max:p=1/0,min:m=-1/0,required:h=!1,shiftStep:v=10,step:g=1,type:b="number",value:y,...w}=e;const x="any"===g,_=x?1:xm(g),E=Gv(0,m,p,_),C=(e,t)=>x?Math.min(p,Math.max(m,xm(e))):Gv(e,m,p,null!=t?t:_),k="number"===b?"off":void 0,S=c()("components-number-control",r),T=(e,t)=>{const n={...e},{type:r,payload:i}=t,a=i.event,s=n.value;if(r===Rv||r===Tv){const e=(null==a?void 0:a.shiftKey)&&d,t=e?xm(v)*_:_;let o=function(e){const t=""===e;return!ym(e)||t}(s)?E:s;null!=a&&a.preventDefault&&a.preventDefault(),r===Rv&&(o=$v(o,t)),r===Tv&&(o=function(){for(var e=arguments.length,t=new Array(e),n=0;n{const r=jv(t);return 0===n?r:e-r}),0)}(o,t)),n.value=C(o,e?t:void 0)}if(r===kv&&l){const[e,t]=i.delta,r=i.shiftKey&&d,a=r?xm(v)*_:_;let l,c;switch(o){case"n":c=t,l=-1;break;case"e":c=e,l=(0,u.isRTL)()?-1:1;break;case"s":c=t,l=1;break;case"w":c=e,l=(0,u.isRTL)()?1:-1}if(0!==c){c=Math.ceil(Math.abs(c))*Math.sign(c);const e=c*a*l;n.value=C($v(s,e),r?a:void 0)}}if(r===Nv||r===xv){const e=!1===h&&""===s;n.value=e?s:C(s)}return n};return(0,s.createElement)(Vv,a({autoComplete:k,inputMode:"numeric"},w,{className:S,dragDirection:o,hideHTMLArrows:i,isDragEnabled:l,label:f,max:p,min:m,ref:t,required:h,step:g,type:b,value:y,__unstableStateReducer:(e,t)=>{var r;const o=T(e,t);return null!==(r=null==n?void 0:n(o,t))&&void 0!==r?r:o}}))}));var Yv=qv;const Kv=e=>{let{__nextHasNoMarginBottom:t}=e;return t?"":_f("margin-bottom:",hm(2),";","")},Xv=cd(gm,{target:"e65ony43"})(Kv,";"),Zv=cd("div",{target:"e65ony42"})("border-radius:50%;border:",Dm.borderWidth," solid ",rp.ui.border,";box-sizing:border-box;cursor:grab;height:",32,"px;overflow:hidden;width:",32,"px;"),Jv=cd("div",{target:"e65ony41"})({name:"1bhd2sw",styles:"box-sizing:border-box;position:relative;width:100%;height:100%"}),Qv=cd("div",{target:"e65ony40"})("background:",rp.ui.theme,";border-radius:50%;border:",3,"px solid ",rp.ui.theme,";bottom:0;box-sizing:border-box;display:block;height:0px;left:0;margin:auto;position:absolute;right:0;top:-",16,"px;width:0px;");var eg=function(e){let{value:t,onChange:n,...r}=e;const o=(0,s.useRef)(),i=(0,s.useRef)(),l=(0,s.useRef)(),c=e=>{const{x:t,y:r}=i.current;e.preventDefault(),e.target.focus(),n(function(e,t,n,r){const o=r-t,i=n-e,a=Math.atan2(o,i),s=Math.round(a*(180/Math.PI))+90;if(s<0)return 360+s;return s}(t,r,e.clientX,e.clientY))},{startDrag:u,isDragging:f}=(0,d.__experimentalUseDragging)({onDragStart:e=>{(()=>{const e=o.current.getBoundingClientRect();i.current={x:e.x+e.width/2,y:e.y+e.height/2}})(),c(e)},onDragMove:c,onDragEnd:c});return(0,s.useEffect)((()=>{f?(void 0===l.current&&(l.current=document.body.style.cursor),document.body.style.cursor="grabbing"):(document.body.style.cursor=l.current||null,l.current=void 0)}),[f]),(0,s.createElement)(Zv,a({ref:o,onMouseDown:u,className:"components-angle-picker-control__angle-circle",style:f?{cursor:"grabbing"}:void 0},r),(0,s.createElement)(Jv,{style:t?{transform:`rotate(${t}deg)`}:void 0,className:"components-angle-picker-control__angle-circle-indicator-wrapper",tabIndex:-1},(0,s.createElement)(Qv,{className:"components-angle-picker-control__angle-circle-indicator"})))};const tg=e=>null!=e;const ng=Ju((function(e,t){const n=function(e){const{className:t,margin:n,marginBottom:r=2,marginLeft:o,marginRight:i,marginTop:a,marginX:s,marginY:l,padding:c,paddingBottom:u,paddingLeft:d,paddingRight:f,paddingTop:p,paddingX:m,paddingY:h,...v}=Zu(e,"Spacer");return{...v,className:Xu()(tg(n)&&_f("margin:",hm(n),";",""),tg(l)&&_f("margin-bottom:",hm(l),";margin-top:",hm(l),";",""),tg(s)&&_f("margin-left:",hm(s),";margin-right:",hm(s),";",""),tg(a)&&_f("margin-top:",hm(a),";",""),tg(r)&&_f("margin-bottom:",hm(r),";",""),tg(o)&&oh({marginLeft:hm(o)})(),tg(i)&&oh({marginRight:hm(i)})(),tg(c)&&_f("padding:",hm(c),";",""),tg(h)&&_f("padding-bottom:",hm(h),";padding-top:",hm(h),";",""),tg(m)&&_f("padding-left:",hm(m),";padding-right:",hm(m),";",""),tg(p)&&_f("padding-top:",hm(p),";",""),tg(u)&&_f("padding-bottom:",hm(u),";",""),tg(d)&&oh({paddingLeft:hm(d)})(),tg(f)&&oh({paddingRight:hm(f)})(),t)}}(e);return(0,s.createElement)(dd,a({},n,{ref:t}))}),"Spacer");var rg=ng;function og(e){let{__nextHasNoMarginBottom:t=!1,className:n,label:r=(0,u.__)("Angle"),onChange:o,value:i}=e;t||sc()("Bottom margin styles for wp.components.AnglePickerControl",{since:"6.1",version:"6.4",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version."});const a=c()("components-angle-picker-control",n);return(0,s.createElement)(Xv,{__nextHasNoMarginBottom:t,className:a,gap:4},(0,s.createElement)(um,null,(0,s.createElement)(Yv,{label:r,className:"components-angle-picker-control__input-field",max:360,min:0,onChange:e=>{const t=""!==e?parseInt(e,10):0;o(t)},size:"__unstable-large",step:"1",value:i,hideHTMLArrows:!0,suffix:(0,s.createElement)(rg,{as:Xm,marginBottom:0,marginRight:hm(3),style:{color:"var( --wp-admin-theme-color )"}},"°")})),(0,s.createElement)(dm,{style:{marginBottom:hm(1),marginTop:"auto"}},(0,s.createElement)(eg,{"aria-hidden":"true",value:i,onChange:o})))}var ig=n(4793),ag=n.n(ig),sg=window.wp.richText,lg=window.wp.a11y;const cg=new RegExp(`[${["-","~","","֊","־","᐀","᠆","‐","‑","‒","–","—","―","⁓","⁻","₋","−","⸗","⸺","⸻","〜","〰","゠","︱","︲","﹘","﹣","-"].join("")}]`,"g"),ug=e=>ag()(e).toLocaleLowerCase().replace(cg,"-");function dg(e){return e.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&")}function fg(e){return t=>{const[n,r]=(0,s.useState)([]);return(0,s.useLayoutEffect)((()=>{const{options:n,isDebounced:o}=e,i=(0,uc.debounce)((()=>{const o=Promise.resolve("function"==typeof n?n(t):n).then((n=>{if(o.canceled)return;const i=n.map(((t,n)=>({key:`${e.name}-${n}`,value:t,label:e.getOptionLabel(t),keywords:e.getOptionKeywords?e.getOptionKeywords(t):[],isDisabled:!!e.isOptionDisabled&&e.isOptionDisabled(t)}))),a=new RegExp("(?:\\b|\\s|^)"+dg(t),"i");r(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;const r=[];for(let o=0;oe.test(ag()(t))))&&(r.push(i),r.length===n))break}return r}(a,i))}));return o}),o?250:0),a=i();return()=>{i.cancel(),a&&(a.canceled=!0)}}),[t]),[n]}}function pg(e){let{record:t,onChange:n,onReplace:r,completers:o,contentRef:i}=e;const a=(0,d.useDebounce)(lg.speak,500),l=(0,d.useInstanceId)(pg),[f,p]=(0,s.useState)(0),[m,h]=(0,s.useState)([]),[v,g]=(0,s.useState)(""),[b,y]=(0,s.useState)(null),[w,x]=(0,s.useState)(null),_=(0,s.useRef)(!1);function E(e){const{getOptionCompletion:o}=b||{};if(!e.isDisabled){if(o){const i=o(e.value,v),{action:a,value:l}=void 0===i.action||void 0===i.value?{action:"insert-at-caret",value:i}:i;if("replace"===a)return void r([l]);"insert-at-caret"===a&&function(e){const r=t.start,o=r-b.triggerPrefix.length-v.length,i=(0,sg.create)({html:(0,s.renderToString)(e)});n((0,sg.insert)(t,i,o,r))}(l)}C()}}function C(){p(0),h([]),g(""),y(null),x(null)}const k=(0,s.useMemo)((()=>{if((0,sg.isCollapsed)(t))return(0,sg.getTextContent)((0,sg.slice)(t,0))}),[t]);(0,s.useEffect)((()=>{if(!k)return void C();const e=ag()(k),n=(0,sg.getTextContent)((0,sg.slice)(t,void 0,(0,sg.getTextContent)(t).length)),r=(0,uc.find)(o,(t=>{let{triggerPrefix:r,allowContext:o}=t;const i=e.lastIndexOf(r);if(-1===i)return!1;const a=e.slice(i+r.length);if(a.length>50)return!1;const s=0===m.length,l=1===a.split(/\s/).length,c=_.current&&a.split(/\s/).length<=3;return!(s&&!c&&!l)&&(!(o&&!o(e.slice(0,i),n))&&(!/^\s/.test(a)&&!/\s\s+$/.test(a)&&/[\u0000-\uFFFF]*$/.test(a)))}));if(!r)return void C();const i=dg(r.triggerPrefix),a=e.slice(e.lastIndexOf(r.triggerPrefix)).match(new RegExp(`${i}([\0-]*)$`)),l=a&&a[1];y(r),x((()=>r!==b?function(e){const t=e.useItems?e.useItems:fg(e);return function(e){let{filterValue:n,instanceId:r,listBoxId:o,className:i,selectedIndex:a,onChangeOptions:l,onSelect:u,onReset:d,value:f,contentRef:p}=e;const[m]=t(n),h=(0,sg.useAnchor)({editableContentElement:p.current,value:f});return(0,s.useLayoutEffect)((()=>{l(m)}),[m]),!m.length>0?null:(0,s.createElement)(cf,{focusOnMount:!1,onClose:d,position:"top right",className:"components-autocomplete__popover",anchor:h},(0,s.createElement)("div",{id:o,role:"listbox",className:"components-autocomplete__results"},(0,uc.map)(m,((e,t)=>(0,s.createElement)(md,{key:e.key,id:`components-autocomplete-item-${r}-${e.key}`,role:"option","aria-selected":t===a,disabled:e.isDisabled,className:c()("components-autocomplete__result",i,{"is-selected":t===a}),onClick:()=>u(e)},e.label)))))}}(r):w)),g(l)}),[k]);const{key:S=""}=m[f]||{},{className:T}=b||{},N=!!b&&m.length>0,R=N?`components-autocomplete-listbox-${l}`:null;return{listBoxId:R,activeId:N?`components-autocomplete-item-${l}-${S}`:null,onKeyDown:function(e){if(_.current="Backspace"===e.code,b&&0!==m.length&&!e.defaultPrevented){switch(e.code){case"ArrowUp":p((0===f?m.length:f)-1);break;case"ArrowDown":p((f+1)%m.length);break;case"Escape":y(null),x(null),e.preventDefault();break;case"Enter":E(m[f]);break;case"ArrowLeft":case"ArrowRight":return void C();default:return}e.preventDefault()}},popover:void 0!==t.start&&w&&(0,s.createElement)(w,{className:T,filterValue:v,instanceId:l,listBoxId:R,selectedIndex:f,onChangeOptions:function(e){p(e.length===m.length?f:0),h(e),function(e){a&&(e.length?a((0,u.sprintf)((0,u._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",e.length),e.length),"assertive"):a((0,u.__)("No results."),"assertive"))}(e)},onSelect:E,value:t,contentRef:i,reset:C})}}function mg(e){const t=(0,s.useRef)(),n=(0,s.useRef)(),{popover:r,listBoxId:o,activeId:i,onKeyDown:a}=pg({...e,contentRef:t});return n.current=a,{ref:(0,d.useMergeRefs)([t,(0,d.useRefEffect)((e=>{function t(e){n.current(e)}return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}}),[])]),children:r,"aria-autocomplete":o?"list":void 0,"aria-owns":o,"aria-activedescendant":i}}function hg(e){let{children:t,isSelected:n,...r}=e;const{popover:o,...i}=pg(r);return(0,s.createElement)(s.Fragment,null,t(i),n&&o)}var vg={"default.fontFamily":"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif","default.fontSize":"13px","helpText.fontSize":"12px",mobileTextMinFontSize:"16px"};function gg(e){return(0,uc.get)(vg,e,"")}const bg={name:"kv6lnz",styles:"box-sizing:border-box;*,*::before,*::after{box-sizing:inherit;}"};const yg=cd("div",{target:"ej5x27r4"})("font-family:",gg("default.fontFamily"),";font-size:",gg("default.fontSize"),";",bg,";"),wg=cd("div",{target:"ej5x27r3"})((e=>{let{__nextHasNoMarginBottom:t=!1}=e;return!t&&_f("margin-bottom:",hm(2),";","")})," .components-panel__row &{margin-bottom:inherit;}"),xg=_f(Zm,";display:inline-block;margin-bottom:",hm(2),";padding:0;",""),_g=cd("label",{target:"ej5x27r2"})(xg,";");var Eg={name:"11yad0w",styles:"margin-bottom:revert"};const Cg=cd("p",{target:"ej5x27r1"})("margin-top:",hm(2),";margin-bottom:0;font-size:",gg("helpText.fontSize"),";font-style:normal;color:",rp.gray[700],";",(e=>{let{__nextHasNoMarginBottom:t=!1}=e;return!t&&Eg}),";"),kg=cd("span",{target:"ej5x27r0"})(xg,";"),Sg=e=>{let{__nextHasNoMarginBottom:t=!1,id:n,label:r,hideLabelFromVision:o=!1,help:i,className:a,children:l}=e;return(0,s.createElement)(yg,{className:c()("components-base-control",a)},(0,s.createElement)(wg,{className:"components-base-control__field",__nextHasNoMarginBottom:t},r&&n&&(o?(0,s.createElement)(fd,{as:"label",htmlFor:n},r):(0,s.createElement)(_g,{className:"components-base-control__label",htmlFor:n},r)),r&&!n&&(o?(0,s.createElement)(fd,{as:"label"},r):(0,s.createElement)(Sg.VisualLabel,null,r)),l),!!i&&(0,s.createElement)(Cg,{id:n?n+"__help":void 0,className:"components-base-control__help",__nextHasNoMarginBottom:t},i))};Sg.VisualLabel=e=>{let{className:t,children:n,...r}=e;return(0,s.createElement)(kg,a({},r,{className:c()("components-base-control__label",t)}),n)};var Tg=Sg;var Ng=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"}));var Rg=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z"}));const Mg=_f("",""),Ig={name:"82a6rk",styles:"flex:1"},Pg=e=>{const{color:t=rp.gray[200],style:n="solid",width:r=Dm.borderWidth}=e||{};return`${t} ${!!r&&"0"!==r||!!t?n||"solid":n} ${r!==Dm.borderWidth?`clamp(1px, ${r}, 10px)`:r}`},Og={name:"1nwbfnf",styles:"grid-column:span 2;margin:0 auto"};function Dg(e){const{className:t,__next36pxDefaultSize:n=!1,...r}=Zu(e,"BorderBoxControlLinkedButton"),o=Xu();return{...r,className:(0,s.useMemo)((()=>o((e=>_f("flex:0;flex-basis:24px;line-height:0;margin-top:",e?"6px":"3px",";",""))(n),t)),[t,o,n])}}var Ag=Ju(((e,t)=>{const{className:n,isLinked:r,...o}=Dg(e),i=r?(0,u.__)("Unlink sides"):(0,u.__)("Link sides");return(0,s.createElement)(vf,{text:i},(0,s.createElement)(dd,{className:n},(0,s.createElement)(md,a({},o,{isSmall:!0,icon:r?Ng:Rg,iconSize:24,"aria-label":i,ref:t}))))}),"BorderBoxControlLinkedButton");function Lg(e){const{className:t,value:n,__next36pxDefaultSize:r=!1,...o}=Zu(e,"BorderBoxControlVisualizer"),i=Xu(),a=oh.watch(),l=(0,s.useMemo)((()=>i(((e,t)=>_f("position:absolute;top:",t?"18px":"15px",";right:30px;bottom:",t?"18px":"15px",";left:30px;border-top:",Pg(null==e?void 0:e.top),";border-bottom:",Pg(null==e?void 0:e.bottom),";",oh({borderLeft:Pg(null==e?void 0:e.left)})()," ",oh({borderRight:Pg(null==e?void 0:e.right)})(),";",""))(n,r),t)),[i,t,n,r,a]);return{...o,className:l,value:n}}var zg=Ju(((e,t)=>{const{value:n,...r}=Lg(e);return(0,s.createElement)(dd,a({},r,{ref:t}))}),"BorderBoxControlVisualizer");var Bg=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.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 Fg=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M5 11.25h14v1.5H5z"}));var Hg=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{fillRule:"evenodd",d:"M5 11.25h3v1.5H5v-1.5zm5.5 0h3v1.5h-3v-1.5zm8.5 0h-3v1.5h3v-1.5z",clipRule:"evenodd"}));var Vg=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{fillRule:"evenodd",d:"M5.25 11.25h1.5v1.5h-1.5v-1.5zm3 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5zm1.5 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5z",clipRule:"evenodd"}));const jg=cd("div",{target:"e1bagdl33"})("box-sizing:border-box;position:relative;&&& ",hh,"{transition:box-shadow 0.1s linear;}");var $g={name:"1y65o8",styles:"&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}"};const Wg=e=>{let{disableUnits:t}=e;return t?"":$g},Ug=cd(Yv,{target:"e1bagdl32"})("&&&{input{appearance:none;-moz-appearance:textfield;display:block;width:100%;",Wg,";}}"),Gg=e=>{let{selectSize:t}=e;const n={default:_f("box-sizing:border-box;padding:2px 1px;width:20px;color:",rp.gray[800],";font-size:8px;line-height:1;letter-spacing:-0.5px;text-transform:uppercase;text-align-last:center;",""),large:_f("box-sizing:border-box;min-width:24px;max-width:48px;height:24px;margin-inline-end:",hm(2),";padding:",hm(1),";color:",rp.ui.theme,";font-size:13px;line-height:1;text-align-last:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;","")};return"__unstable-large"===t?n.large:n.default},qg=cd("div",{target:"e1bagdl31"})("&&&{pointer-events:none;",Gg,";color:",rp.gray[900],";}"),Yg=cd("select",{target:"e1bagdl30"})("&&{appearance:none;background:transparent;border-radius:2px;border:none;display:block;outline:none;margin:0;min-height:auto;font-family:inherit;",Gg,";",(e=>{let{selectSize:t="default"}=e;const n={default:_f("height:100%;border:1px solid transparent;transition:box-shadow 0.1s linear,border 0.1s linear;",oh({borderTopLeftRadius:0,borderBottomLeftRadius:0})()," &:not(:disabled):hover{background-color:",rp.gray[100],";}&:focus{border:1px solid ",rp.ui.borderFocus,";box-shadow:inset 0 0 0 ",Dm.borderWidth+" "+rp.ui.borderFocus,";outline-offset:0;outline:2px solid transparent;z-index:1;}",""),large:_f("display:flex;justify-content:center;align-items:center;&:hover{color:",rp.ui.borderFocus,";box-shadow:inset 0 0 0 ",Dm.borderWidth+" "+rp.ui.borderFocus,";outline:",Dm.borderWidth," solid transparent;}&:focus{box-shadow:0 0 0 ",Dm.borderWidthFocus+" "+rp.ui.borderFocus,";outline:",Dm.borderWidthFocus," solid transparent;}","")};return"__unstable-large"===t?n.large:n.default}),";&:not( :disabled ){cursor:pointer;}}");const Kg={name:"f3vz0n",styles:"font-weight:500"},Xg=_f("box-shadow:inset 0 0 0 ",Dm.borderWidth," ",rp.ui.borderFocus,";",""),Zg=_f("border:0;padding:0;margin:0;",bg,";",""),Jg=_f(jg,"{flex:0 0 auto;}","");var Qg={name:"6g24ce",styles:"height:16px;width:16px"};const eb=(e,t)=>{const{style:n}=e||{};return _f("border-radius:9999px;border:2px solid transparent;",n?(e=>{const{color:t,style:n}=e||{},r=n&&"none"!==n?rp.gray[300]:void 0;return _f("border-style:","none"===n?"solid":n,";border-color:",t||r,";","")})(e):void 0," width:",t?"28px":"22px",";height:",t?"28px":"22px",";padding:",t?"2px":"1px",";&>span{",t?"":Qg," background:linear-gradient(\n\t\t\t\t-45deg,\n\t\t\t\ttransparent 48%,\n\t\t\t\trgb( 0 0 0 / 20% ) 48%,\n\t\t\t\trgb( 0 0 0 / 20% ) 52%,\n\t\t\t\ttransparent 52%\n\t\t\t);}","")},tb=_f("width:",228,"px;>div:first-of-type>",_g,"{margin-bottom:0;",Kg,";}&& ",_g,"+button:not( .has-text ){min-width:24px;padding:0;}",""),nb=_f("",""),rb=_f("",""),ob=_f("justify-content:center;width:100%;&&{border-top:",Dm.borderWidth," solid ",rp.gray[200],";border-top-left-radius:0;border-top-right-radius:0;height:46px;}",""),ib=_f(_g,"{",Kg,";}",""),ab={name:"1486260",styles:"&&&&&{min-width:30px;width:30px;height:30px;padding:3px;}"};const sb=[{label:(0,u.__)("Solid"),icon:Fg,value:"solid"},{label:(0,u.__)("Dashed"),icon:Hg,value:"dashed"},{label:(0,u.__)("Dotted"),icon:Vg,value:"dotted"}],lb=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,s.createElement)(fd,{as:"label"},t):(0,s.createElement)(_g,null,t):null};var cb=Ju(((e,t)=>{const{buttonClassName:n,hideLabelFromVision:r,label:o,onChange:i,value:l,...c}=function(e){const{className:t,...n}=Zu(e,"BorderControlStylePicker"),r=Xu();return{...n,className:(0,s.useMemo)((()=>r(ib,t)),[t,r]),buttonClassName:(0,s.useMemo)((()=>r(ab)),[r])}}(e);return(0,s.createElement)(dd,a({},c,{ref:t}),(0,s.createElement)(lb,{label:o,hideLabelFromVision:r}),(0,s.createElement)(gm,{justify:"flex-start",gap:1},sb.map((e=>(0,s.createElement)(md,{key:e.value,className:n,icon:e.icon,isSmall:!0,isPressed:e.value===l,onClick:()=>i(e.value===l?void 0:e.value),"aria-label":e.label,label:e.label,showTooltip:!0})))))}),"BorderControlStylePicker");var ub=(0,s.forwardRef)((function(e,t){const{className:n,colorValue:r,...o}=e;return(0,s.createElement)("span",a({className:c()("component-color-indicator",n),style:{background:r},ref:t},o))})),db=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},fb=function(e){return.2126*db(e.r)+.7152*db(e.g)+.0722*db(e.b)};function pb(e){const{renderContent:t,renderToggle:n,className:r,contentClassName:o,expandOnMobile:i,headerTitle:l,focusOnMount:u,position:f,popoverProps:p,onClose:m,onToggle:h,style:v}=e,[g,b]=(0,s.useState)(null),y=(0,s.useRef)(),[w,x]=function(e,t){const[n,r]=(0,s.useState)(e);return[n,e=>{r(e),t&&t(e)}]}(!1,h);function _(){m&&m(),x(!1)}(0,s.useEffect)((()=>()=>{h&&w&&h(!1)}),[h,w]);const E={isOpen:w,onToggle:function(){x(!w)},onClose:_},C=!!(null!=p&&p.anchor||null!=p&&p.anchorRef||null!=p&&p.getAnchorRect||null!=p&&p.anchorRect);return(0,s.createElement)("div",{className:c()("components-dropdown",r),ref:(0,d.useMergeRefs)([b,y]),tabIndex:"-1",style:v},n(E),w&&(0,s.createElement)(cf,a({position:f,onClose:_,onFocusOutside:function(){const{ownerDocument:e}=y.current,t=e.activeElement.closest('[role="dialog"]');y.current.contains(e.activeElement)||t&&!t.contains(y.current)||_()},expandOnMobile:i,headerTitle:l,focusOnMount:u,offset:13,anchor:C?void 0:g},p,{className:c()("components-dropdown__content",p?p.className:void 0,o)}),t(E)))}var mb=Ju((function(e,t){const n=Zu(e,"InputControlSuffixWrapper");return(0,s.createElement)(rg,a({marginBottom:0},n,{ref:t}))}),"InputControlSuffixWrapper");const hb=cd("select",{target:"e1mv6sxx2"})("&&&{appearance:none;background:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",rp.gray[900],";display:block;font-family:inherit;margin:0;width:100%;max-width:none;cursor:pointer;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;",(e=>{let{disabled:t}=e;return t?_f({color:rp.ui.textDisabled},"",""):""}),";",(e=>{let{selectSize:t="default"}=e;const n={default:"13px",small:"11px","__unstable-large":"13px"}[t];return n?_f("font-size:","16px",";@media ( min-width: 600px ){font-size:",n,";}",""):""}),";",(e=>{let{__next36pxDefaultSize:t,selectSize:n="default"}=e;const r={default:{height:36,minHeight:36,paddingTop:0,paddingBottom:0},small:{height:24,minHeight:24,paddingTop:0,paddingBottom:0},"__unstable-large":{height:40,minHeight:40,paddingTop:0,paddingBottom:0}};t||(r.default={height:30,minHeight:30,paddingTop:0,paddingBottom:0});return _f(r[n]||r.default,"","")}),";",(e=>{let{__next36pxDefaultSize:t,selectSize:n="default"}=e;const r={default:{paddingLeft:16,paddingRight:34},small:{paddingLeft:8,paddingRight:26},"__unstable-large":{paddingLeft:16,paddingRight:34}};return t||(r.default={paddingLeft:8,paddingRight:26}),oh(r[n]||r.default)}),";}"),vb=cd("div",{target:"e1mv6sxx1"})("margin-inline-end:",hm(-1),";line-height:0;"),gb=cd(mb,{target:"e1mv6sxx0"})("position:absolute;pointer-events:none;",oh({right:0}),";");var bb=function(e){let{icon:t,size:n=24,...r}=e;return(0,s.cloneElement)(t,{width:n,height:n,...r})};var yb=(0,s.createElement)(i.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(i.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));var wb=()=>(0,s.createElement)(gb,null,(0,s.createElement)(vb,null,(0,s.createElement)(bb,{icon:yb,size:18})));const xb=()=>{};const _b=(0,s.forwardRef)((function(e,t){let{className:n,disabled:r=!1,help:o,hideLabelFromVision:i,id:l,label:u,multiple:f=!1,onBlur:p=xb,onChange:m=xb,onFocus:h=xb,options:v=[],size:g="default",value:b,labelPosition:y="top",children:w,prefix:x,suffix:_,__next36pxDefaultSize:E=!1,__nextHasNoMarginBottom:C=!1,...k}=e;const[S,T]=(0,s.useState)(!1),N=function(e){const t=(0,d.useInstanceId)(_b);return e||`inspector-select-control-${t}`}(l),R=o?`${N}__help`:void 0;if(!(null!=v&&v.length||w))return null;const M=c()("components-select-control",n);return(0,s.createElement)(Tg,{help:o,id:N,__nextHasNoMarginBottom:C},(0,s.createElement)(_h,{className:M,disabled:r,hideLabelFromVision:i,id:N,isFocused:S,label:u,size:g,suffix:_||(0,s.createElement)(wb,null),prefix:x,labelPosition:y,__next36pxDefaultSize:E},(0,s.createElement)(hb,a({},k,{__next36pxDefaultSize:E,"aria-describedby":R,className:"components-select-control__input",disabled:r,id:N,multiple:f,onBlur:e=>{p(e),T(!1)},onChange:e=>{if(f){const t=Array.from(e.target.options).filter((e=>{let{selected:t}=e;return t})),n=t.map((e=>{let{value:t}=e;return t}));m(n)}else m(e.target.value,{event:e})},onFocus:e=>{h(e),T(!0)},ref:t,selectSize:g,value:b}),w||v.map(((e,t)=>{const n=e.id||`${e.label}-${e.value}-${t}`;return(0,s.createElement)("option",{key:n,value:e.value,disabled:e.disabled},e.label)})))))}));var Eb=_b;const Cb={initial:void 0,fallback:""};var kb=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Cb;const{initial:n,fallback:r}={...Cb,...t},[o,i]=(0,s.useState)(e),a=ym(e);(0,s.useEffect)((()=>{a&&o&&i(void 0)}),[a,o]);const l=wm([e,o,n],r),c=e=>{a||i(e)};return[l,c]};const Sb=()=>{};function Tb(e,t,n){return"number"!=typeof e?null:parseFloat(`${Uv(e,t,n)}`)}const Nb=()=>_f({height:30,minHeight:30},"",""),Rb=12,Mb=cd("div",{target:"e1epgpqk14"})({name:"1se47kl",styles:"-webkit-tap-highlight-color:transparent;align-items:flex-start;display:flex;justify-content:flex-start;padding:0;position:relative;touch-action:none;width:100%"}),Ib=cd("div",{target:"e1epgpqk13"})("display:block;flex:1;position:relative;width:100%;",(e=>{let{color:t=rp.ui.borderFocus}=e;return _f({color:t},"","")}),";",Nb,";",(e=>{let{marks:t,__nextHasNoMarginBottom:n}=e;return n?"":_f({marginBottom:t?16:void 0},"","")}),";"),Pb=cd("span",{target:"e1epgpqk12"})("display:flex;margin-top:",4,"px;",oh({marginRight:6}),";"),Ob=cd("span",{target:"e1epgpqk11"})("display:flex;margin-top:",4,"px;",oh({marginLeft:6}),";"),Db=cd("span",{target:"e1epgpqk10"})("background-color:",rp.gray[300],";left:0;pointer-events:none;right:0;display:block;height:",4,"px;position:absolute;margin-top:",13,"px;top:0;border-radius:",4,"px;",(e=>{let{disabled:t,railColor:n}=e,r=n||"";return t&&(r=rp.ui.backgroundDisabled),_f({background:r},"","")}),";"),Ab=cd("span",{target:"e1epgpqk9"})("background-color:currentColor;border-radius:",4,"px;height:",4,"px;pointer-events:none;display:block;position:absolute;margin-top:",13,"px;top:0;",(e=>{let{disabled:t,trackColor:n}=e,r=n||"currentColor";return t&&(r=rp.gray[400]),_f({background:r},"","")}),";"),Lb=cd("span",{target:"e1epgpqk8"})({name:"l7tjj5",styles:"display:block;pointer-events:none;position:relative;width:100%;user-select:none"}),zb=cd("span",{target:"e1epgpqk7"})("height:",Rb,"px;left:0;position:absolute;top:-4px;width:1px;",(e=>{let{disabled:t,isFilled:n}=e,r=n?"currentColor":rp.gray[300];return t&&(r=rp.gray[400]),_f({backgroundColor:r},"","")}),";"),Bb=cd("span",{target:"e1epgpqk6"})("color:",rp.gray[300],";left:0;font-size:11px;position:absolute;top:12px;transform:translateX( -50% );white-space:nowrap;",(e=>{let{isFilled:t}=e;return _f({color:t?rp.gray[700]:rp.gray[300]},"","")}),";");var Fb={name:"1sb75b3",styles:"background-color:var( --wp-admin-theme-color )"};const Hb=e=>{let{disabled:t}=e;return t?_f("background-color:",rp.gray[400],";",""):Fb},Vb=cd("span",{target:"e1epgpqk5"})("align-items:center;display:flex;height:",Rb,"px;justify-content:center;margin-top:",9,"px;outline:0;pointer-events:none;position:absolute;top:0;user-select:none;width:",Rb,"px;border-radius:50%;",Hb,";",oh({marginLeft:-10}),";",oh({transform:"translateX( 4.5px )"},{transform:"translateX( -4.5px )"}),";"),jb=cd("span",{target:"e1epgpqk4"})("align-items:center;border-radius:50%;height:100%;outline:0;position:absolute;user-select:none;width:100%;",Hb,";",(e=>{let{isFocused:t}=e;return t?_f("&::before{content:' ';position:absolute;background-color:var( --wp-admin-theme-color );opacity:0.4;border-radius:50%;height:",20,"px;width:",20,"px;top:-4px;left:-4px;}",""):""}),";"),$b=cd("input",{target:"e1epgpqk3"})("box-sizing:border-box;cursor:pointer;display:block;height:100%;left:0;margin:0 -",6,"px;opacity:0;outline:none;position:absolute;right:0;top:0;width:calc( 100% + ",Rb,"px );");var Wb={name:"1cypxip",styles:"top:-80%"},Ub={name:"1lr98c4",styles:"bottom:-80%"};const Gb=cd("span",{target:"e1epgpqk2"})("background:rgba( 0, 0, 0, 0.8 );border-radius:2px;color:white;display:inline-block;font-size:12px;min-width:32px;opacity:0;padding:4px 8px;pointer-events:none;position:absolute;text-align:center;transition:opacity 120ms ease;user-select:none;line-height:1.4;",(e=>{let{show:t}=e;return _f({opacity:t?1:0},"","")}),";",(e=>{let{position:t}=e;return"bottom"===t?Ub:Wb}),";",op("transition"),";",oh({transform:"translateX(-50%)"},{transform:"translateX(50%)"}),";"),qb=cd(Yv,{target:"e1epgpqk1"})("display:inline-block;font-size:13px;margin-top:0;width:",hm(16),"!important;input[type='number']&{",Nb,";}",oh({marginLeft:`${hm(4)} !important`}),";"),Yb=cd("span",{target:"e1epgpqk0"})("display:block;margin-top:0;button,button.is-small{margin-left:0;",Nb,";}",oh({marginLeft:8}),";"),Kb=()=>{};const Xb=(0,s.forwardRef)((function(e,t){const{describedBy:n,label:r,onHideTooltip:o=Kb,onMouseLeave:i=Kb,onMouseMove:l=Kb,onShowTooltip:c=Kb,value:u,...d}=e,f=function(e){const{onHide:t=Sb,onMouseLeave:n=Sb,onMouseMove:r=Sb,onShow:o=Sb,timeout:i=300}=e,[a,l]=(0,s.useState)(!1),c=(0,s.useRef)(),u=(0,s.useCallback)((e=>{window.clearTimeout(c.current),c.current=window.setTimeout(e,i)}),[i]),d=(0,s.useCallback)((e=>{r(e),u((()=>{a||(l(!0),o())}))}),[]),f=(0,s.useCallback)((e=>{n(e),u((()=>{l(!1),t()}))}),[]);return(0,s.useEffect)((()=>()=>{window.clearTimeout(c.current)})),{onMouseMove:d,onMouseLeave:f}}({onHide:o,onMouseLeave:i,onMouseMove:l,onShow:c});return(0,s.createElement)($b,a({},d,f,{"aria-describedby":n,"aria-label":r,"aria-hidden":!1,ref:t,tabIndex:0,type:"range",value:u}))}));var Zb=Xb;function Jb(e){const{className:t,isFilled:n=!1,label:r,style:o={},...i}=e,l=c()("components-range-control__mark",n&&"is-filled",t),u=c()("components-range-control__mark-label",n&&"is-filled");return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(zb,a({},i,{"aria-hidden":"true",className:l,isFilled:n,style:o})),r&&(0,s.createElement)(Bb,{"aria-hidden":"true",className:u,isFilled:n,style:o},r))}function Qb(e){const{disabled:t=!1,marks:n=!1,min:r=0,max:o=100,step:i=1,value:l=0,...c}=e;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Db,a({disabled:t},c)),n&&(0,s.createElement)(ey,{disabled:t,marks:n,min:r,max:o,step:i,value:l}))}function ey(e){const{disabled:t=!1,marks:n=!1,min:r=0,max:o=100,step:i=1,value:l=0}=e,c=function(e){let{marks:t,min:n=0,max:r=100,step:o=1,value:i=0}=e;if(!t)return[];const a=r-n;if(!Array.isArray(t)){t=[];const e=1+Math.round(a/o);for(;e>t.push({value:o*t.length+n}););}const s=[];return t.forEach(((e,t)=>{if(e.valuer)return;const o=`mark-${t}`,l=e.value<=i,c=(e.value-n)/a*100+"%",d={[(0,u.isRTL)()?"right":"left"]:c};s.push({...e,isFilled:l,key:o,style:d})})),s}({marks:n,min:r,max:o,step:"any"===i?1:i,value:l});return(0,s.createElement)(Lb,{"aria-hidden":"true",className:"components-range-control__marks"},c.map((e=>(0,s.createElement)(Jb,a({},e,{key:e.key,"aria-hidden":"true",disabled:t})))))}function ty(e){const{className:t,inputRef:n,tooltipPosition:r,show:o=!1,style:i={},value:l=0,renderTooltipContent:u=(e=>e),zIndex:d=100,...f}=e,p=function(e){let{inputRef:t,tooltipPosition:n}=e;const[r,o]=(0,s.useState)(),i=(0,s.useCallback)((()=>{t&&t.current&&o(n)}),[n]);return(0,s.useEffect)((()=>{i()}),[i]),(0,s.useEffect)((()=>(window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}))),r}({inputRef:n,tooltipPosition:r}),m=c()("components-simple-tooltip",t),h={...i,zIndex:d};return(0,s.createElement)(Gb,a({},f,{"aria-hidden":o,className:m,position:p,show:o,role:"tooltip",style:h}),u(l))}const ny=()=>{};const ry=(0,s.forwardRef)((function e(t,n){var r;const{__nextHasNoMarginBottom:o=!1,afterIcon:i,allowReset:l=!1,beforeIcon:f,className:p,color:m=rp.ui.theme,currentInput:h,disabled:v=!1,help:g,hideLabelFromVision:b=!1,initialPosition:y,isShiftStepEnabled:w=!0,label:x,marks:_=!1,max:E=100,min:C=0,onBlur:k=ny,onChange:S=ny,onFocus:T=ny,onMouseLeave:N=ny,onMouseMove:R=ny,railColor:M,renderTooltipContent:I=(e=>e),resetFallbackValue:P,shiftStep:O=10,showTooltip:D,step:A=1,trackColor:L,value:z,withInputField:B=!0,...F}=t,[H,V]=function(e){const{min:t,max:n,value:r,initial:o}=e,[i,a]=kb(Tb(r,t,n),{initial:Tb(null!=o?o:null,t,n),fallback:null});return[i,(0,s.useCallback)((e=>{a(null===e?null:Tb(e,t,n))}),[t,n])]}({min:C,max:E,value:null!=z?z:null,initial:y}),j=(0,s.useRef)(!1);let $=D,W=B;"any"===A&&($=!1,W=!1);const[U,G]=(0,s.useState)($),[q,Y]=(0,s.useState)(!1),K=(0,s.useRef)(),X=null===(r=K.current)||void 0===r?void 0:r.matches(":focus"),Z=!v&&q,J=null===H,Q=J?"":void 0!==H?H:h,ee=J?(E-C)/2+C:H,te=`${Uv(J?50:(H-C)/(E-C)*100,0,100)}%`,ne=c()("components-range-control",p),re=c()("components-range-control__wrapper",!!_&&"is-marked"),oe=(0,d.useInstanceId)(e,"inspector-range-control"),ie=g?`${oe}__help`:void 0,ae=!1!==$&&Number.isFinite(H),se=()=>{let e=parseFloat(`${P}`),t=e;isNaN(e)&&(e=null,t=void 0),V(e),S(t)},le={[(0,u.isRTL)()?"right":"left"]:te};return(0,s.createElement)(Tg,{__nextHasNoMarginBottom:o,className:ne,label:x,hideLabelFromVision:b,id:`${oe}`,help:g},(0,s.createElement)(Mb,{className:"components-range-control__root"},f&&(0,s.createElement)(Pb,null,(0,s.createElement)(cc,{icon:f})),(0,s.createElement)(Ib,{__nextHasNoMarginBottom:o,className:re,color:m,marks:!!_},(0,s.createElement)(Zb,a({},F,{className:"components-range-control__slider",describedBy:ie,disabled:v,id:`${oe}`,label:x,max:E,min:C,onBlur:e=>{k(e),Y(!1),G(!1)},onChange:e=>{const t=parseFloat(e.target.value);V(t),S(t)},onFocus:e=>{T(e),Y(!0),G(!0)},onMouseMove:R,onMouseLeave:N,ref:(0,d.useMergeRefs)([K,n]),step:A,value:null!=Q?Q:void 0})),(0,s.createElement)(Qb,{"aria-hidden":!0,disabled:v,marks:_,max:E,min:C,railColor:M,step:A,value:ee}),(0,s.createElement)(Ab,{"aria-hidden":!0,className:"components-range-control__track",disabled:v,style:{width:te},trackColor:L}),(0,s.createElement)(Vb,{style:le,disabled:v},(0,s.createElement)(jb,{"aria-hidden":!0,isFocused:Z,disabled:v})),ae&&(0,s.createElement)(ty,{className:"components-range-control__tooltip",inputRef:K,tooltipPosition:"bottom",renderTooltipContent:I,show:X||U,style:le,value:H})),i&&(0,s.createElement)(Ob,null,(0,s.createElement)(cc,{icon:i})),W&&(0,s.createElement)(qb,{"aria-label":x,className:"components-range-control__number",disabled:v,inputMode:"decimal",isShiftStepEnabled:w,max:E,min:C,onBlur:()=>{j.current&&(se(),j.current=!1)},onChange:e=>{let t=parseFloat(e);V(t),isNaN(t)?l&&(j.current=!0):((tE)&&(t=Tb(t,C,E)),S(t),j.current=!1)},shiftStep:O,step:A,value:Q}),l&&(0,s.createElement)(Yb,null,(0,s.createElement)(md,{className:"components-range-control__reset",disabled:v||void 0===H,variant:"secondary",isSmall:!0,onClick:se},(0,u.__)("Reset")))))}));var oy=ry;const iy={bottom:{align:"flex-end",justify:"center"},bottomLeft:{align:"flex-start",justify:"flex-end"},bottomRight:{align:"flex-end",justify:"flex-end"},center:{align:"center",justify:"center"},edge:{align:"center",justify:"space-between"},left:{align:"center",justify:"flex-start"},right:{align:"center",justify:"flex-end"},stretch:{align:"stretch"},top:{align:"flex-start",justify:"center"},topLeft:{align:"flex-start",justify:"flex-start"},topRight:{align:"flex-start",justify:"flex-end"}},ay={bottom:{justify:"flex-end",align:"center"},bottomLeft:{justify:"flex-start",align:"flex-end"},bottomRight:{justify:"flex-end",align:"flex-end"},center:{justify:"center",align:"center"},edge:{justify:"space-between",align:"center"},left:{justify:"center",align:"flex-start"},right:{justify:"center",align:"flex-end"},stretch:{justify:"stretch"},top:{justify:"flex-start",align:"center"},topLeft:{justify:"flex-start",align:"flex-start"},topRight:{justify:"flex-start",align:"flex-end"}};function sy(e){return"string"==typeof e?[e]:s.Children.toArray(e).filter((e=>(0,s.isValidElement)(e)))}function ly(e){const{alignment:t="edge",children:n,direction:r,spacing:o=2,...i}=Zu(e,"HStack"),l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"row";if(!ym(e))return{};const n="column"===t?ay:iy;return e in n?n[e]:{align:e}}(t,r),c=sy(n).map(((e,t)=>{if(td(e,["Spacer"])){const n=e,r=n.key||`hstack-${t}`;return(0,s.createElement)(dm,a({isBlock:!0,key:r},n.props))}return e}));return vm({children:c,direction:r,justify:"center",...l,...i,gap:o})}var cy=Ju((function(e,t){const n=ly(e);return(0,s.createElement)(dd,a({},n,{ref:t}))}),"HStack");const uy=cd(Yv,{target:"ez9hsf47"})(ch,"{width:",hm(24),";}"),dy=cd(Eb,{target:"ez9hsf46"})("margin-left:",hm(-2),";width:5em;",hh,"{display:none;}"),fy=cd(oy,{target:"ez9hsf45"})("flex:1;margin-right:",hm(2),";",wg,"{margin-bottom:0;}"),py=`\n.react-colorful__interactive {\n\twidth: calc( 100% - ${hm(2)} );\n\tmargin-left: ${hm(1)};\n}`,my=cd("div",{target:"ez9hsf44"})("padding-top:",hm(2),";padding-right:0;padding-left:0;padding-bottom:0;"),hy=cd(cy,{target:"ez9hsf43"})("padding-left:",hm(4),";padding-right:",hm(4),";"),vy=cd(gm,{target:"ez9hsf42"})("padding-top:",hm(4),";padding-left:",hm(4),";padding-right:",hm(3),";padding-bottom:",hm(5),";"),gy=cd("div",{target:"ez9hsf41"})(bg,";width:216px;.react-colorful{display:flex;flex-direction:column;align-items:center;width:216px;height:auto;overflow:hidden;}.react-colorful__saturation{width:100%;border-radius:0;height:216px;margin-bottom:",hm(4),";border-bottom:none;}.react-colorful__hue,.react-colorful__alpha{width:184px;height:16px;border-radius:16px;margin-bottom:",hm(2),";}.react-colorful__pointer{height:16px;width:16px;border:none;box-shadow:0 0 2px 0 rgba( 0, 0, 0, 0.25 );outline:2px solid transparent;}.react-colorful__pointer-fill{box-shadow:inset 0 0 0 ",Dm.borderWidthFocus," #fff;}",py," ",wg,"{margin-bottom:0;}"),by=cd(md,{target:"ez9hsf40"})("&&&&&{min-width:",hm(6),";padding:0;>svg{margin-right:0;}}");var yy=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zm-13.5 0V4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1v11.8c0 .1-.1.1-.1.1H4.6l-.1-.1z"}));function wy(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function xy(e){return e instanceof wy(e).Element||e instanceof Element}function _y(e){return e instanceof wy(e).HTMLElement||e instanceof HTMLElement}function Ey(e){return"undefined"!=typeof ShadowRoot&&(e instanceof wy(e).ShadowRoot||e instanceof ShadowRoot)}var Cy=Math.max,ky=Math.min,Sy=Math.round;function Ty(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Ny(){return!/^((?!chrome|android).)*safari/i.test(Ty())}function Ry(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&_y(e)&&(o=e.offsetWidth>0&&Sy(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Sy(r.height)/e.offsetHeight||1);var a=(xy(e)?wy(e):window).visualViewport,s=!Ny()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/o,c=(r.top+(s&&a?a.offsetTop:0))/i,u=r.width/o,d=r.height/i;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function My(e){var t=wy(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Iy(e){return e?(e.nodeName||"").toLowerCase():null}function Py(e){return((xy(e)?e.ownerDocument:e.document)||window.document).documentElement}function Oy(e){return Ry(Py(e)).left+My(e).scrollLeft}function Dy(e){return wy(e).getComputedStyle(e)}function Ay(e){var t=Dy(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Ly(e,t,n){void 0===n&&(n=!1);var r=_y(t),o=_y(t)&&function(e){var t=e.getBoundingClientRect(),n=Sy(t.width)/e.offsetWidth||1,r=Sy(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=Py(t),a=Ry(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==Iy(t)||Ay(i))&&(s=function(e){return e!==wy(e)&&_y(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:My(e);var t}(t)),_y(t)?((l=Ry(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Oy(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function zy(e){var t=Ry(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function By(e){return"html"===Iy(e)?e:e.assignedSlot||e.parentNode||(Ey(e)?e.host:null)||Py(e)}function Fy(e){return["html","body","#document"].indexOf(Iy(e))>=0?e.ownerDocument.body:_y(e)&&Ay(e)?e:Fy(By(e))}function Hy(e,t){var n;void 0===t&&(t=[]);var r=Fy(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=wy(r),a=o?[i].concat(i.visualViewport||[],Ay(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Hy(By(a)))}function Vy(e){return["table","td","th"].indexOf(Iy(e))>=0}function jy(e){return _y(e)&&"fixed"!==Dy(e).position?e.offsetParent:null}function $y(e){for(var t=wy(e),n=jy(e);n&&Vy(n)&&"static"===Dy(n).position;)n=jy(n);return n&&("html"===Iy(n)||"body"===Iy(n)&&"static"===Dy(n).position)?t:n||function(e){var t=/firefox/i.test(Ty());if(/Trident/i.test(Ty())&&_y(e)&&"fixed"===Dy(e).position)return null;var n=By(e);for(Ey(n)&&(n=n.host);_y(n)&&["html","body"].indexOf(Iy(n))<0;){var r=Dy(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var Wy="top",Uy="bottom",Gy="right",qy="left",Yy="auto",Ky=[Wy,Uy,Gy,qy],Xy="start",Zy="end",Jy="viewport",Qy="popper",ew=Ky.reduce((function(e,t){return e.concat([t+"-"+Xy,t+"-"+Zy])}),[]),tw=[].concat(Ky,[Yy]).reduce((function(e,t){return e.concat([t,t+"-"+Xy,t+"-"+Zy])}),[]),nw=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function rw(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var ow={placement:"bottom",modifiers:[],strategy:"absolute"};function iw(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function fw(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?cw(o):null,a=o?uw(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case Wy:t={x:s,y:n.y-r.height};break;case Uy:t={x:s,y:n.y+n.height};break;case Gy:t={x:n.x+n.width,y:l};break;case qy:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=i?dw(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case Xy:t[c]=t[c]-(n[u]/2-r[u]/2);break;case Zy:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var pw={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=fw({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},mw={top:"auto",right:"auto",bottom:"auto",left:"auto"};function hw(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,p=void 0===f?0:f,m=a.y,h=void 0===m?0:m,v="function"==typeof u?u({x:p,y:h}):{x:p,y:h};p=v.x,h=v.y;var g=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),y=qy,w=Wy,x=window;if(c){var _=$y(n),E="clientHeight",C="clientWidth";if(_===wy(n)&&"static"!==Dy(_=Py(n)).position&&"absolute"===s&&(E="scrollHeight",C="scrollWidth"),o===Wy||(o===qy||o===Gy)&&i===Zy)w=Uy,h-=(d&&_===x&&x.visualViewport?x.visualViewport.height:_[E])-r.height,h*=l?1:-1;if(o===qy||(o===Wy||o===Uy)&&i===Zy)y=Gy,p-=(d&&_===x&&x.visualViewport?x.visualViewport.width:_[C])-r.width,p*=l?1:-1}var k,S=Object.assign({position:s},c&&mw),T=!0===u?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:Sy(t*r)/r||0,y:Sy(n*r)/r||0}}({x:p,y:h}):{x:p,y:h};return p=T.x,h=T.y,l?Object.assign({},S,((k={})[w]=b?"0":"",k[y]=g?"0":"",k.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",k)):Object.assign({},S,((t={})[w]=b?h+"px":"",t[y]=g?p+"px":"",t.transform="",t))}var vw={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,l=void 0===s||s,c={placement:cw(t.placement),variation:uw(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,hw(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,hw(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var gw={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];_y(o)&&Iy(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});_y(r)&&Iy(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};var bw={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=tw.reduce((function(e,n){return e[n]=function(e,t,n){var r=cw(e),o=[qy,Wy].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[qy,Gy].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}},yw={left:"right",right:"left",bottom:"top",top:"bottom"};function ww(e){return e.replace(/left|right|bottom|top/g,(function(e){return yw[e]}))}var xw={start:"end",end:"start"};function _w(e){return e.replace(/start|end/g,(function(e){return xw[e]}))}function Ew(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ey(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Cw(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function kw(e,t,n){return t===Jy?Cw(function(e,t){var n=wy(e),r=Py(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=Ny();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+Oy(e),y:l}}(e,n)):xy(t)?function(e,t){var n=Ry(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Cw(function(e){var t,n=Py(e),r=My(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Cy(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Cy(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Oy(e),l=-r.scrollTop;return"rtl"===Dy(o||n).direction&&(s+=Cy(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(Py(e)))}function Sw(e,t,n,r){var o="clippingParents"===t?function(e){var t=Hy(By(e)),n=["absolute","fixed"].indexOf(Dy(e).position)>=0&&_y(e)?$y(e):e;return xy(n)?t.filter((function(e){return xy(e)&&Ew(e,n)&&"body"!==Iy(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce((function(t,n){var o=kw(e,n,r);return t.top=Cy(o.top,t.top),t.right=ky(o.right,t.right),t.bottom=ky(o.bottom,t.bottom),t.left=Cy(o.left,t.left),t}),kw(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Tw(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Nw(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Rw(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,l=void 0===s?"clippingParents":s,c=n.rootBoundary,u=void 0===c?Jy:c,d=n.elementContext,f=void 0===d?Qy:d,p=n.altBoundary,m=void 0!==p&&p,h=n.padding,v=void 0===h?0:h,g=Tw("number"!=typeof v?v:Nw(v,Ky)),b=f===Qy?"reference":Qy,y=e.rects.popper,w=e.elements[m?b:f],x=Sw(xy(w)?w:w.contextElement||Py(e.elements.popper),l,u,a),_=Ry(e.elements.reference),E=fw({reference:_,element:y,strategy:"absolute",placement:o}),C=Cw(Object.assign({},y,E)),k=f===Qy?C:_,S={top:x.top-k.top+g.top,bottom:k.bottom-x.bottom+g.bottom,left:x.left-k.left+g.left,right:k.right-x.right+g.right},T=e.modifiersData.offset;if(f===Qy&&T){var N=T[o];Object.keys(S).forEach((function(e){var t=[Gy,Uy].indexOf(e)>=0?1:-1,n=[Wy,Uy].indexOf(e)>=0?"y":"x";S[e]+=N[n]*t}))}return S}var Mw={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=void 0===p||p,h=n.allowedAutoPlacements,v=t.options.placement,g=cw(v),b=l||(g===v||!m?[ww(v)]:function(e){if(cw(e)===Yy)return[];var t=ww(e);return[_w(e),t,_w(t)]}(v)),y=[v].concat(b).reduce((function(e,n){return e.concat(cw(n)===Yy?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?tw:l,u=uw(r),d=u?s?ew:ew.filter((function(e){return uw(e)===u})):Ky,f=d.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=Rw(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[cw(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:h}):n)}),[]),w=t.rects.reference,x=t.rects.popper,_=new Map,E=!0,C=y[0],k=0;k=0,M=R?"width":"height",I=Rw(t,{placement:S,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),P=R?N?Gy:qy:N?Uy:Wy;w[M]>x[M]&&(P=ww(P));var O=ww(P),D=[];if(i&&D.push(I[T]<=0),s&&D.push(I[P]<=0,I[O]<=0),D.every((function(e){return e}))){C=S,E=!1;break}_.set(S,D)}if(E)for(var A=function(e){var t=y.find((function(t){var n=_.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},L=m?3:1;L>0;L--){if("break"===A(L))break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Iw(e,t,n){return Cy(e,ky(t,n))}var Pw={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,m=n.tetherOffset,h=void 0===m?0:m,v=Rw(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),g=cw(t.placement),b=uw(t.placement),y=!b,w=dw(g),x="x"===w?"y":"x",_=t.modifiersData.popperOffsets,E=t.rects.reference,C=t.rects.popper,k="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,S="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(_){if(i){var R,M="y"===w?Wy:qy,I="y"===w?Uy:Gy,P="y"===w?"height":"width",O=_[w],D=O+v[M],A=O-v[I],L=p?-C[P]/2:0,z=b===Xy?E[P]:C[P],B=b===Xy?-C[P]:-E[P],F=t.elements.arrow,H=p&&F?zy(F):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},j=V[M],$=V[I],W=Iw(0,E[P],H[P]),U=y?E[P]/2-L-W-j-S.mainAxis:z-W-j-S.mainAxis,G=y?-E[P]/2+L+W+$+S.mainAxis:B+W+$+S.mainAxis,q=t.elements.arrow&&$y(t.elements.arrow),Y=q?"y"===w?q.clientTop||0:q.clientLeft||0:0,K=null!=(R=null==T?void 0:T[w])?R:0,X=O+G-K,Z=Iw(p?ky(D,O+U-K-Y):D,O,p?Cy(A,X):A);_[w]=Z,N[w]=Z-O}if(s){var J,Q="x"===w?Wy:qy,ee="x"===w?Uy:Gy,te=_[x],ne="y"===x?"height":"width",re=te+v[Q],oe=te-v[ee],ie=-1!==[Wy,qy].indexOf(g),ae=null!=(J=null==T?void 0:T[x])?J:0,se=ie?re:te-E[ne]-C[ne]-ae+S.altAxis,le=ie?te+E[ne]+C[ne]-ae-S.altAxis:oe,ce=p&&ie?function(e,t,n){var r=Iw(e,t,n);return r>n?n:r}(se,te,le):Iw(p?se:re,te,p?le:oe);_[x]=ce,N[x]=ce-te}t.modifiersData[r]=N}},requiresIfExists:["offset"]};var Ow={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=cw(n.placement),l=dw(s),c=[qy,Gy].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(e,t){return Tw("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Nw(e,Ky))}(o.padding,n),d=zy(i),f="y"===l?Wy:qy,p="y"===l?Uy:Gy,m=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],h=a[l]-n.rects.reference[l],v=$y(i),g=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,b=m/2-h/2,y=u[f],w=g-d[c]-u[p],x=g/2-d[c]/2+b,_=Iw(y,x,w),E=l;n.modifiersData[r]=((t={})[E]=_,t.centerOffset=_-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Ew(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Dw(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Aw(e){return[Wy,Gy,Uy,qy].some((function(t){return e[t]>=0}))}var Lw={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Rw(t,{elementContext:"reference"}),s=Rw(t,{altBoundary:!0}),l=Dw(a,r),c=Dw(s,o,i),u=Aw(l),d=Aw(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}},zw=aw({defaultModifiers:[lw,pw,vw,gw,bw,Mw,Pw,Ow,Lw]});function Bw(e){void 0===e&&(e={});var t,n,r=pp(e),o=r.visible,i=void 0!==o&&o,a=r.animated,s=void 0!==a&&a,l=yp(h(r,["visible","animated"])),c=(0,b.useState)(i),u=c[0],d=c[1],f=(0,b.useState)(s),p=f[0],v=f[1],g=(0,b.useState)(!1),y=g[0],w=g[1],x=(t=u,n=(0,b.useRef)(null),U((function(){n.current=t}),[t]),n),_=null!=x.current&&x.current!==u;p&&!y&&_&&w(!0),(0,b.useEffect)((function(){if("number"==typeof p&&y){var e=setTimeout((function(){return w(!1)}),p);return function(){clearTimeout(e)}}return function(){}}),[p,y]);var E=(0,b.useCallback)((function(){return d(!0)}),[]),C=(0,b.useCallback)((function(){return d(!1)}),[]),k=(0,b.useCallback)((function(){return d((function(e){return!e}))}),[]),S=(0,b.useCallback)((function(){return w(!1)}),[]);return m(m({},l),{},{visible:u,animated:p,animating:y,show:E,hide:C,toggle:k,setVisible:d,setAnimated:v,stopAnimation:S})}var Fw=ee("Mac")&&!ee("Chrome")&&ee("Safari");function Hw(e){return function(t){return e&&!A(t,e)?e:t}}function Vw(e){void 0===e&&(e={});var t=pp(e),n=t.gutter,r=void 0===n?12:n,o=t.placement,i=void 0===o?"bottom":o,a=t.unstable_flip,s=void 0===a||a,l=t.unstable_offset,c=t.unstable_preventOverflow,u=void 0===c||c,d=t.unstable_fixed,f=void 0!==d&&d,p=t.modal,v=void 0!==p&&p,g=h(t,["gutter","placement","unstable_flip","unstable_offset","unstable_preventOverflow","unstable_fixed","modal"]),y=(0,b.useRef)(null),w=(0,b.useRef)(null),x=(0,b.useRef)(null),_=(0,b.useRef)(null),E=(0,b.useState)(i),C=E[0],k=E[1],S=(0,b.useState)(i),T=S[0],N=S[1],R=(0,b.useState)(l||[0,r])[0],M=(0,b.useState)({position:"fixed",left:"100%",top:"100%"}),I=M[0],P=M[1],O=(0,b.useState)({}),D=O[0],A=O[1],L=function(e){void 0===e&&(e={});var t=pp(e),n=t.modal,r=void 0===n||n,o=Bw(h(t,["modal"])),i=(0,b.useState)(r),a=i[0],s=i[1],l=(0,b.useRef)(null);return m(m({},o),{},{modal:a,setModal:s,unstable_disclosureRef:l})}(m({modal:v},g)),z=(0,b.useCallback)((function(){return!!y.current&&(y.current.forceUpdate(),!0)}),[]),B=(0,b.useCallback)((function(e){e.placement&&N(e.placement),e.styles&&(P(Hw(e.styles.popper)),_.current&&A(Hw(e.styles.arrow)))}),[]);return U((function(){return w.current&&x.current&&(y.current=zw(w.current,x.current,{placement:C,strategy:f?"fixed":"absolute",onFirstUpdate:Fw?B:void 0,modifiers:[{name:"eventListeners",enabled:L.visible},{name:"applyStyles",enabled:!1},{name:"flip",enabled:s,options:{padding:8}},{name:"offset",options:{offset:R}},{name:"preventOverflow",enabled:u,options:{tetherOffset:function(){var e;return(null===(e=_.current)||void 0===e?void 0:e.clientWidth)||0}}},{name:"arrow",enabled:!!_.current,options:{element:_.current}},{name:"updateState",phase:"write",requires:["computeStyles"],enabled:L.visible&&!0,fn:function(e){var t=e.state;return B(t)}}]})),function(){y.current&&(y.current.destroy(),y.current=null)}}),[C,f,L.visible,s,R,u]),(0,b.useEffect)((function(){if(L.visible){var e=window.requestAnimationFrame((function(){var e;null===(e=y.current)||void 0===e||e.forceUpdate()}));return function(){window.cancelAnimationFrame(e)}}}),[L.visible]),m(m({},L),{},{unstable_referenceRef:w,unstable_popoverRef:x,unstable_arrowRef:_,unstable_popoverStyles:I,unstable_arrowStyles:D,unstable_update:z,unstable_originalPlacement:C,placement:T,place:k})}var jw={currentTooltipId:null,listeners:new Set,subscribe:function(e){var t=this;return this.listeners.add(e),function(){t.listeners.delete(e)}},show:function(e){this.currentTooltipId=e,this.listeners.forEach((function(t){return t(e)}))},hide:function(e){this.currentTooltipId===e&&(this.currentTooltipId=null,this.listeners.forEach((function(e){return e(null)})))}};var $w=["baseId","unstable_idCountRef","visible","animated","animating","setBaseId","show","hide","toggle","setVisible","setAnimated","stopAnimation","unstable_disclosureRef","unstable_referenceRef","unstable_popoverRef","unstable_arrowRef","unstable_popoverStyles","unstable_arrowStyles","unstable_originalPlacement","unstable_update","placement","place","unstable_timeout","unstable_setTimeout"],Ww=[].concat($w,["unstable_portal"]),Uw=F({name:"TooltipReference",compose:re,keys:$w,useProps:function(e,t){var n=t.ref,r=t.onFocus,o=t.onBlur,i=t.onMouseEnter,a=t.onMouseLeave,s=h(t,["ref","onFocus","onBlur","onMouseEnter","onMouseLeave"]),l=G(r),c=G(o),u=G(i),d=G(a),f=(0,b.useCallback)((function(t){var n,r;null===(n=l.current)||void 0===n||n.call(l,t),t.defaultPrevented||null===(r=e.show)||void 0===r||r.call(e)}),[e.show]),p=(0,b.useCallback)((function(t){var n,r;null===(n=c.current)||void 0===n||n.call(c,t),t.defaultPrevented||null===(r=e.hide)||void 0===r||r.call(e)}),[e.hide]),v=(0,b.useCallback)((function(t){var n,r;null===(n=u.current)||void 0===n||n.call(u,t),t.defaultPrevented||null===(r=e.show)||void 0===r||r.call(e)}),[e.show]),g=(0,b.useCallback)((function(t){var n,r;null===(n=d.current)||void 0===n||n.call(d,t),t.defaultPrevented||null===(r=e.hide)||void 0===r||r.call(e)}),[e.hide]);return m({ref:V(e.unstable_referenceRef,n),tabIndex:0,onFocus:f,onBlur:p,onMouseEnter:v,onMouseLeave:g,"aria-describedby":e.baseId},s)}}),Gw=z({as:"div",useHook:Uw});const qw=(0,s.createContext)({});var Yw=F({name:"DisclosureContent",compose:re,keys:["baseId","unstable_idCountRef","visible","animated","animating","setBaseId","show","hide","toggle","setVisible","setAnimated","stopAnimation"],useProps:function(e,t){var n=t.onTransitionEnd,r=t.onAnimationEnd,o=t.style,i=h(t,["onTransitionEnd","onAnimationEnd","style"]),a=e.animated&&e.animating,s=(0,b.useState)(null),l=s[0],c=s[1],u=!e.visible&&!a,d=u?m({display:"none"},o):o,f=G(n),p=G(r),v=(0,b.useRef)(0);(0,b.useEffect)((function(){if(e.animated)return v.current=window.requestAnimationFrame((function(){v.current=window.requestAnimationFrame((function(){e.visible?c("enter"):c(a?"leave":null)}))})),function(){return window.cancelAnimationFrame(v.current)}}),[e.animated,e.visible,a]);var g=(0,b.useCallback)((function(t){var n;q(t)&&(a&&!0===e.animated&&(null===(n=e.stopAnimation)||void 0===n||n.call(e)))}),[e.animated,a,e.stopAnimation]),y=(0,b.useCallback)((function(e){var t;null===(t=f.current)||void 0===t||t.call(f,e),g(e)}),[g]),w=(0,b.useCallback)((function(e){var t;null===(t=p.current)||void 0===t||t.call(p,e),g(e)}),[g]);return m({id:e.baseId,"data-enter":"enter"===l?"":void 0,"data-leave":"leave"===l?"":void 0,onTransitionEnd:y,onAnimationEnd:w,hidden:u,style:d},i)}}),Kw=z({as:"div",useHook:Yw});function Xw(){return W?document.body:null}var Zw=(0,b.createContext)(Xw());function Jw(e){var t=e.children,n=(0,b.useContext)(Zw)||Xw(),r=(0,b.useState)((function(){if(W){var e=document.createElement("div");return e.className=Jw.__className,e}return null}))[0];return U((function(){if(r&&n)return n.appendChild(r),function(){n.removeChild(r)}}),[r,n]),r?(0,St.createPortal)((0,b.createElement)(Zw.Provider,{value:r},t),r):null}function Qw(e){e.defaultPrevented||"Escape"===e.key&&jw.show(null)}Jw.__className="__reakit-portal",Jw.__selector="."+Jw.__className;var ex=F({name:"Tooltip",compose:Yw,keys:Ww,useOptions:function(e){var t=e.unstable_portal;return m({unstable_portal:void 0===t||t},h(e,["unstable_portal"]))},useProps:function(e,t){var n=t.ref,r=t.style,o=t.wrapElement,i=h(t,["ref","style","wrapElement"]);(0,b.useEffect)((function(){var t;j(null===(t=e.unstable_popoverRef)||void 0===t?void 0:t.current).addEventListener("keydown",Qw)}),[]);var a=(0,b.useCallback)((function(t){return e.unstable_portal&&(t=(0,b.createElement)(Jw,null,t)),o?o(t):t}),[e.unstable_portal,o]);return m({ref:V(e.unstable_popoverRef,n),role:"tooltip",style:m(m({},e.unstable_popoverStyles),{},{pointerEvents:"none"},r),wrapElement:a},i)}}),tx=z({as:"div",memo:!0,useHook:ex});var nx=Ju((function(e,t){const{as:n="span",shortcut:r,className:o,...i}=Zu(e,"Shortcut");if(!r)return null;let l,c;return"string"==typeof r?l=r:(l=r.display,c=r.ariaLabel),(0,s.createElement)(dd,a({as:n,className:o,"aria-label":c,ref:t},i),l)}),"Shortcut");const rx=_f("z-index:",1000002,";box-sizing:border-box;opacity:0;outline:none;transform-origin:top center;transition:opacity ",Dm.transitionDurationFastest," ease;font-size:",Dm.fontSize,";&[data-enter]{opacity:1;}",""),ox=cd("div",{target:"e7tfjmw1"})("background:rgba( 0, 0, 0, 0.8 );border-radius:2px;box-shadow:0 0 0 1px rgba( 255, 255, 255, 0.04 );color:",rp.white,";padding:4px 8px;"),ix={name:"12mkfdx",styles:"outline:none"},ax=cd(nx,{target:"e7tfjmw0"})("display:inline-block;margin-left:",hm(1),";"),{TooltipPopoverView:sx}=t;var lx=Ju((function(e,t){const{children:n,className:r,...o}=Zu(e,"TooltipContent"),{tooltip:i}=(0,s.useContext)(qw),l=Xu()(rx,r);return(0,s.createElement)(tx,a({as:dd},o,i,{className:l,ref:t}),(0,s.createElement)(sx,null,n))}),"TooltipContent");const cx=Ju((function(e,t){const{animated:n=!0,animationDuration:r=160,baseId:o,children:i,content:l,focusable:c=!0,gutter:u=4,id:d,modal:f=!0,placement:p,visible:v=!1,shortcut:g,...y}=Zu(e,"Tooltip"),w=function(e){void 0===e&&(e={});var t=pp(e),n=t.placement,r=void 0===n?"top":n,o=t.unstable_timeout,i=void 0===o?0:o,a=h(t,["placement","unstable_timeout"]),s=(0,b.useState)(i),l=s[0],c=s[1],u=(0,b.useRef)(null),d=(0,b.useRef)(null),f=Vw(m(m({},a),{},{placement:r})),p=(f.modal,f.setModal,h(f,["modal","setModal"])),v=(0,b.useCallback)((function(){null!==u.current&&window.clearTimeout(u.current),null!==d.current&&window.clearTimeout(d.current)}),[]),g=(0,b.useCallback)((function(){v(),p.hide(),d.current=window.setTimeout((function(){jw.hide(p.baseId)}),l)}),[v,p.hide,l,p.baseId]),y=(0,b.useCallback)((function(){v(),!l||jw.currentTooltipId?(jw.show(p.baseId),p.show()):(jw.show(null),u.current=window.setTimeout((function(){jw.show(p.baseId),p.show()}),l))}),[v,l,p.show,p.baseId]);return(0,b.useEffect)((function(){return jw.subscribe((function(e){e!==p.baseId&&(v(),p.visible&&p.hide())}))}),[p.baseId,v,p.visible,p.hide]),(0,b.useEffect)((function(){return function(){v(),jw.hide(p.baseId)}}),[v,p.baseId]),m(m({},p),{},{hide:g,show:y,unstable_timeout:l,unstable_setTimeout:c})}({animated:n?r:void 0,baseId:o||d,gutter:u,placement:p,visible:v,...y}),x=(0,s.useMemo)((()=>({tooltip:w})),[w]);return(0,s.createElement)(qw.Provider,{value:x},l&&(0,s.createElement)(lx,{unstable_portal:f,ref:t},l,g&&(0,s.createElement)(ax,{shortcut:g})),i&&(0,s.createElement)(Gw,a({},w,i.props,{ref:null==i?void 0:i.ref}),(e=>(c||(e.tabIndex=void 0),(0,s.cloneElement)(i,e)))))}),"Tooltip");var ux=cx;const dx=e=>{const{color:t,colorType:n}=e,[r,o]=(0,s.useState)(null),i=(0,s.useRef)(),a=(0,d.useCopyToClipboard)((()=>{switch(n){case"hsl":return t.toHslString();case"rgb":return t.toRgbString();default:return t.toHex()}}),(()=>{i.current&&clearTimeout(i.current),o(t.toHex()),i.current=setTimeout((()=>{o(null),i.current=void 0}),3e3)}));return(0,s.useEffect)((()=>()=>{i.current&&clearTimeout(i.current)}),[]),(0,s.createElement)(ux,{content:(0,s.createElement)(Xm,{color:"white"},r===t.toHex()?(0,u.__)("Copied!"):(0,u.__)("Copy")),placement:"bottom"},(0,s.createElement)(by,{isSmall:!0,ref:a,icon:yy,showTooltip:!1}))},fx=e=>{let{min:t,max:n,label:r,abbreviation:o,onChange:i,value:a}=e;return(0,s.createElement)(cy,{spacing:4},(0,s.createElement)(uy,{min:t,max:n,label:r,hideLabelFromVision:!0,value:a,onChange:i,prefix:(0,s.createElement)(rg,{as:Xm,paddingLeft:hm(4),color:rp.ui.theme,lineHeight:1},o),hideHTMLArrows:!0,size:"__unstable-large"}),(0,s.createElement)(fy,{label:r,hideLabelFromVision:!0,min:t,max:n,value:a,onChange:i,withInputField:!1}))},px=e=>{let{color:t,onChange:n,enableAlpha:r}=e;const{r:o,g:i,b:a,a:l}=t.toRgb();return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(fx,{min:0,max:255,label:"Red",abbreviation:"R",value:o,onChange:e=>n(Kf({r:e,g:i,b:a,a:l}))}),(0,s.createElement)(fx,{min:0,max:255,label:"Green",abbreviation:"G",value:i,onChange:e=>n(Kf({r:o,g:e,b:a,a:l}))}),(0,s.createElement)(fx,{min:0,max:255,label:"Blue",abbreviation:"B",value:a,onChange:e=>n(Kf({r:o,g:i,b:e,a:l}))}),r&&(0,s.createElement)(fx,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*l),onChange:e=>n(Kf({r:o,g:i,b:a,a:e/100}))}))},mx=e=>{let{color:t,onChange:n,enableAlpha:r}=e;const{h:o,s:i,l:a,a:l}=t.toHsl();return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(fx,{min:0,max:359,label:"Hue",abbreviation:"H",value:o,onChange:e=>{n(Kf({h:e,s:i,l:a,a:l}))}}),(0,s.createElement)(fx,{min:0,max:100,label:"Saturation",abbreviation:"S",value:i,onChange:e=>{n(Kf({h:o,s:e,l:a,a:l}))}}),(0,s.createElement)(fx,{min:0,max:100,label:"Lightness",abbreviation:"L",value:a,onChange:e=>{n(Kf({h:o,s:i,l:e,a:l}))}}),r&&(0,s.createElement)(fx,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*l),onChange:e=>{n(Kf({h:o,s:i,l:a,a:e/100}))}}))},hx=e=>{let{color:t,onChange:n,enableAlpha:r}=e;return(0,s.createElement)(zv,{prefix:(0,s.createElement)(rg,{as:Xm,marginLeft:hm(4),color:rp.ui.theme,lineHeight:1},"#"),value:t.toHex().slice(1).toUpperCase(),onChange:e=>{if(!e)return;const t=e.startsWith("#")?e:"#"+e;n(Kf(t))},maxLength:r?9:7,label:(0,u.__)("Hex color"),hideLabelFromVision:!0,size:"__unstable-large",__unstableStateReducer:(e,t)=>{var n,r,o,i;const a=null===(n=t.payload)||void 0===n||null===(r=n.event)||void 0===r?void 0:r.nativeEvent;if("insertFromPaste"!==(null==a?void 0:a.inputType))return{...e};const s=null!==(o=e.value)&&void 0!==o&&o.startsWith("#")?e.value.slice(1).toUpperCase():null===(i=e.value)||void 0===i?void 0:i.toUpperCase();return{...e,value:s}},__unstableInputWidth:"9em"})},vx=e=>{let{colorType:t,color:n,onChange:r,enableAlpha:o}=e;const i={color:n,onChange:r,enableAlpha:o};switch(t){case"hsl":return(0,s.createElement)(mx,i);case"rgb":return(0,s.createElement)(px,i);default:return(0,s.createElement)(hx,i)}};function gx(){return(gx=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function yx(e){var t=(0,b.useRef)(e),n=(0,b.useRef)((function(e){t.current&&t.current(e)}));return t.current=e,n.current}var wx=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e