import{r as Yg,a as h,b as Ww,j as p,g as ko,R as wc,e as Ie,u as Kw,C as qw,D as Zw,c as Xw}from"./CountdownTimer-Bu2d5kUi.js";var xl={exports:{}},wl={};/**
 * @license React
 * use-sync-external-store-with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Df;function Yw(){if(Df)return wl;Df=1;var e=Yg();function t(l,c){return l===c&&(l!==0||1/l===1/c)||l!==l&&c!==c}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,o=e.useRef,i=e.useEffect,s=e.useMemo,a=e.useDebugValue;return wl.useSyncExternalStoreWithSelector=function(l,c,u,d,f){var m=o(null);if(m.current===null){var v={hasValue:!1,value:null};m.current=v}else v=m.current;m=s(function(){function y(w){if(!b){if(b=!0,_=w,w=d(w),f!==void 0&&v.hasValue){var C=v.value;if(f(C,w))return x=C}return x=w}if(C=x,n(_,w))return C;var T=d(w);return f!==void 0&&f(C,T)?(_=w,C):(_=w,x=T)}var b=!1,_,x,S=u===void 0?null:u;return[function(){return y(c())},S===null?void 0:function(){return y(S())}]},[c,u,d,f]);var g=r(l,m[0],m[1]);return i(function(){v.hasValue=!0,v.value=g},[g]),a(g),g},wl}var Nf;function Jw(){return Nf||(Nf=1,xl.exports=Yw()),xl.exports}var Qw=Jw();function eS(e){e()}function tS(){let e=null,t=null;return{clear(){e=null,t=null},notify(){eS(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!r||e===null||(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var Lf={notify(){},get:()=>[]};function nS(e,t){let n,r=Lf,o=0,i=!1;function s(g){u();const y=r.subscribe(g);let b=!1;return()=>{b||(b=!0,y(),d())}}function a(){r.notify()}function l(){v.onStateChange&&v.onStateChange()}function c(){return i}function u(){o++,n||(n=e.subscribe(l),r=tS())}function d(){o--,n&&o===0&&(n(),n=void 0,r.clear(),r=Lf)}function f(){i||(i=!0,u())}function m(){i&&(i=!1,d())}const v={addNestedSub:s,notifyNestedSubs:a,handleChangeWrapper:l,isSubscribed:c,trySubscribe:f,tryUnsubscribe:m,getListeners:()=>r};return v}var rS=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",oS=rS(),iS=()=>typeof navigator<"u"&&navigator.product==="ReactNative",sS=iS(),aS=()=>oS||sS?h.useLayoutEffect:h.useEffect,lS=aS(),Sl=Symbol.for("react-redux-context"),_l=typeof globalThis<"u"?globalThis:{};function cS(){if(!h.createContext)return{};const e=_l[Sl]??(_l[Sl]=new Map);let t=e.get(h.createContext);return t||(t=h.createContext(null),e.set(h.createContext,t)),t}var ir=cS();function uS(e){const{children:t,context:n,serverState:r,store:o}=e,i=h.useMemo(()=>{const l=nS(o);return{store:o,subscription:l,getServerState:r?()=>r:void 0}},[o,r]),s=h.useMemo(()=>o.getState(),[o]);lS(()=>{const{subscription:l}=i;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),s!==o.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[i,s]);const a=n||ir;return h.createElement(a.Provider,{value:i},t)}var dS=uS;function Pu(e=ir){return function(){return h.useContext(e)}}var Jg=Pu();function Qg(e=ir){const t=e===ir?Jg:Pu(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var fS=Qg();function pS(e=ir){const t=e===ir?fS:Qg(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var hS=pS(),mS=(e,t)=>e===t;function gS(e=ir){const t=e===ir?Jg:Pu(e),n=(r,o={})=>{const{equalityFn:i=mS}=typeof o=="function"?{equalityFn:o}:o,s=t(),{store:a,subscription:l,getServerState:c}=s;h.useRef(!0);const u=h.useCallback({[r.name](f){return r(f)}}[r.name],[r]),d=Qw.useSyncExternalStoreWithSelector(l.addNestedSub,a.getState,c||a.getState,u,i);return h.useDebugValue(d),d};return Object.assign(n,{withTypes:()=>n}),n}var vS=gS();function ev(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ev(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function xe(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ev(e))&&(r&&(r+=" "),r+=t);return r}var Dr=Ww();const bS=e=>typeof e=="number"?!1:typeof(e==null?void 0:e.valueOf())=="string"||Array.isArray(e)?!e.length:!e;/*!
 * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */function Ff(e){return Object.prototype.toString.call(e)==="[object Object]"}function tv(e){var t,n;return Ff(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(Ff(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}var fi=function(){return fi=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},fi.apply(this,arguments)};function yS(e){return e.toLowerCase()}var xS=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],wS=/[^A-Z0-9]+/gi;function nv(e,t){t===void 0&&(t={});for(var n=t.splitRegexp,r=n===void 0?xS:n,o=t.stripRegexp,i=o===void 0?wS:o,s=t.transform,a=s===void 0?yS:s,l=t.delimiter,c=l===void 0?" ":l,u=Bf(Bf(e,r,"$1\0$2"),i,"\0"),d=0,f=u.length;u.charAt(d)==="\0";)d++;for(;u.charAt(f-1)==="\0";)f--;return u.slice(d,f).split("\0").map(a).join(c)}function Bf(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce(function(r,o){return r.replace(o,n)},e)}function SS(e,t){var n=e.charAt(0),r=e.substr(1).toLowerCase();return t>0&&n>="0"&&n<="9"?"_"+n+r:""+n.toUpperCase()+r}function _S(e,t){return t===void 0&&(t={}),nv(e,fi({delimiter:"",transform:SS},t))}function CS(e,t){return t===void 0&&(t={}),nv(e,fi({delimiter:"."},t))}function Ws(e,t){return t===void 0&&(t={}),CS(e,fi({delimiter:"-"},t))}function TS(e){return e.replace(/>/g,"&gt;")}const AS=/[\u007F-\u009F "'>/="\uFDD0-\uFDEF]/;function rv(e){return e.replace(/&(?!([a-z0-9]+|#[0-9]+|#x[a-f0-9]+);)/gi,"&amp;")}function ES(e){return e.replace(/"/g,"&quot;")}function PS(e){return e.replace(/</g,"&lt;")}function kS(e){return TS(ES(rv(e)))}function MS(e){return PS(rv(e))}function RS(e){return!AS.test(e)}function ov({children:e,...t}){let n="";return h.Children.toArray(e).forEach(r=>{typeof r=="string"&&r.trim()!==""&&(n+=r)}),h.createElement("div",{dangerouslySetInnerHTML:{__html:n},...t})}const{Provider:IS,Consumer:jS}=h.createContext(void 0),OS=h.forwardRef(()=>null),DS=new Set(["string","boolean","number"]),NS=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),LS=new Set(["allowfullscreen","allowpaymentrequest","allowusermedia","async","autofocus","autoplay","checked","controls","default","defer","disabled","download","formnovalidate","hidden","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","typemustmatch"]),FS=new Set(["autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"]),BS=new Set(["animation","animationIterationCount","baselineShift","borderImageOutset","borderImageSlice","borderImageWidth","columnCount","cx","cy","fillOpacity","flexGrow","flexShrink","floodOpacity","fontWeight","gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart","lineHeight","opacity","order","orphans","r","rx","ry","shapeImageThreshold","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","widows","x","y","zIndex","zoom"]);function iv(e,t){return t.some(n=>e.indexOf(n)===0)}function VS(e){return e==="key"||e==="children"}function zS(e,t){switch(e){case"style":return KS(t)}return t}const Vf=["accentHeight","alignmentBaseline","arabicForm","baselineShift","capHeight","clipPath","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","dominantBaseline","enableBackground","fillOpacity","fillRule","floodColor","floodOpacity","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","horizAdvX","horizOriginX","imageRendering","letterSpacing","lightingColor","markerEnd","markerMid","markerStart","overlinePosition","overlineThickness","paintOrder","panose1","pointerEvents","renderingIntent","shapeRendering","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","textAnchor","textDecoration","textRendering","underlinePosition","underlineThickness","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","vHanging","vIdeographic","vMathematical","vectorEffect","vertAdvY","vertOriginX","vertOriginY","wordSpacing","writingMode","xmlnsXlink","xHeight"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{}),zf=["allowReorder","attributeName","attributeType","autoReverse","baseFrequency","baseProfile","calcMode","clipPathUnits","contentScriptType","contentStyleType","diffuseConstant","edgeMode","externalResourcesRequired","filterRes","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","suppressContentEditableWarning","suppressHydrationWarning","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{}),$f=["xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space","xmlns:xlink"].reduce((e,t)=>(e[t.replace(":","").toLowerCase()]=t,e),{});function $S(e){switch(e){case"htmlFor":return"for";case"className":return"class"}const t=e.toLowerCase();return zf[t]?zf[t]:Vf[t]?Ws(Vf[t]):$f[t]?$f[t]:t}function GS(e){return e.startsWith("--")?e:iv(e,["ms","O","Moz","Webkit"])?"-"+Ws(e):Ws(e)}function US(e,t){return typeof t=="number"&&t!==0&&!BS.has(e)?t+"px":t}function io(e,t,n={}){if(e==null||e===!1)return"";if(Array.isArray(e))return ni(e,t,n);switch(typeof e){case"string":return MS(e);case"number":return e.toString()}const{type:r,props:o}=e;switch(r){case h.StrictMode:case h.Fragment:return ni(o.children,t,n);case ov:const{children:i,...s}=o;return Gf(Object.keys(s).length?"div":null,{...s,dangerouslySetInnerHTML:{__html:i}},t,n)}switch(typeof r){case"string":return Gf(r,o,t,n);case"function":return r.prototype&&typeof r.prototype.render=="function"?HS(r,o,t,n):io(r(o,n),t,n)}switch(r&&r.$$typeof){case IS.$$typeof:return ni(o.children,o.value,n);case jS.$$typeof:return io(o.children(t||r._currentValue),t,n);case OS.$$typeof:return io(r.render(o),t,n)}return""}function Gf(e,t,n,r={}){let o="";if(e==="textarea"&&t.hasOwnProperty("value")){o=ni(t.value,n,r);const{value:s,...a}=t;t=a}else t.dangerouslySetInnerHTML&&typeof t.dangerouslySetInnerHTML.__html=="string"?o=t.dangerouslySetInnerHTML.__html:typeof t.children<"u"&&(o=ni(t.children,n,r));if(!e)return o;const i=WS(t);return NS.has(e)?"<"+e+i+"/>":"<"+e+i+">"+o+"</"+e+">"}function HS(e,t,n,r={}){const o=new e(t,r);return typeof o.getChildContext=="function"&&Object.assign(r,o.getChildContext()),io(o.render(),n,r)}function ni(e,t,n={}){let r="";e=Array.isArray(e)?e:[e];for(let o=0;o<e.length;o++){const i=e[o];r+=io(i,t,n)}return r}function WS(e){let t="";for(const n in e){const r=$S(n);if(!RS(r))continue;let o=zS(n,e[n]);if(!DS.has(typeof o)||VS(n))continue;const i=LS.has(r);if(i&&o===!1)continue;const s=i||iv(n,["data-","aria-"])||FS.has(r);typeof o=="boolean"&&!s||(t+=" "+r,!i&&(typeof o=="string"&&(o=kS(o)),t+='="'+o+'"'))}return t}function KS(e){if(!tv(e))return e;let t;for(const n in e){const r=e[n];if(r==null)continue;t?t+=";":t="";const o=GS(n),i=US(n,r);t+=o+":"+i}return t}const It=e=>h.createElement("path",e),Tt=h.forwardRef(({className:e,isPressed:t,...n},r)=>{const o={...n,className:xe(e,{"is-pressed":t})||void 0,"aria-hidden":!0,focusable:!1};return p.jsx("svg",{...o,ref:r})});Tt.displayName="SVG";function $i(e,t){var n=0,r,o;t=t||{};function i(){var s=r,a=arguments.length,l,c;e:for(;s;){if(s.args.length!==arguments.length){s=s.next;continue}for(c=0;c<a;c++)if(s.args[c]!==arguments[c]){s=s.next;continue e}return s!==r&&(s===o&&(o=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=r,s.prev=null,r.prev=s,r=s),s.val}for(l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];return s={args:l,val:e.apply(null,l)},r?(r.prev=s,s.next=r):o=s,n===t.maxSize?(o=o.prev,o.next=null):n++,r=s,s.val}return i.clear=function(){r=null,o=null,n=0},i}var Cl={},Uf;function qS(){return Uf||(Uf=1,function(e){(function(){var t={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function n(a){return o(s(a),arguments)}function r(a,l){return n.apply(null,[a].concat(l||[]))}function o(a,l){var c=1,u=a.length,d,f="",m,v,g,y,b,_,x,S;for(m=0;m<u;m++)if(typeof a[m]=="string")f+=a[m];else if(typeof a[m]=="object"){if(g=a[m],g.keys)for(d=l[c],v=0;v<g.keys.length;v++){if(d==null)throw new Error(n('[sprintf] Cannot access property "%s" of undefined value "%s"',g.keys[v],g.keys[v-1]));d=d[g.keys[v]]}else g.param_no?d=l[g.param_no]:d=l[c++];if(t.not_type.test(g.type)&&t.not_primitive.test(g.type)&&d instanceof Function&&(d=d()),t.numeric_arg.test(g.type)&&typeof d!="number"&&isNaN(d))throw new TypeError(n("[sprintf] expecting number but found %T",d));switch(t.number.test(g.type)&&(x=d>=0),g.type){case"b":d=parseInt(d,10).toString(2);break;case"c":d=String.fromCharCode(parseInt(d,10));break;case"d":case"i":d=parseInt(d,10);break;case"j":d=JSON.stringify(d,null,g.width?parseInt(g.width):0);break;case"e":d=g.precision?parseFloat(d).toExponential(g.precision):parseFloat(d).toExponential();break;case"f":d=g.precision?parseFloat(d).toFixed(g.precision):parseFloat(d);break;case"g":d=g.precision?String(Number(d.toPrecision(g.precision))):parseFloat(d);break;case"o":d=(parseInt(d,10)>>>0).toString(8);break;case"s":d=String(d),d=g.precision?d.substring(0,g.precision):d;break;case"t":d=String(!!d),d=g.precision?d.substring(0,g.precision):d;break;case"T":d=Object.prototype.toString.call(d).slice(8,-1).toLowerCase(),d=g.precision?d.substring(0,g.precision):d;break;case"u":d=parseInt(d,10)>>>0;break;case"v":d=d.valueOf(),d=g.precision?d.substring(0,g.precision):d;break;case"x":d=(parseInt(d,10)>>>0).toString(16);break;case"X":d=(parseInt(d,10)>>>0).toString(16).toUpperCase();break}t.json.test(g.type)?f+=d:(t.number.test(g.type)&&(!x||g.sign)?(S=x?"+":"-",d=d.toString().replace(t.sign,"")):S="",b=g.pad_char?g.pad_char==="0"?"0":g.pad_char.charAt(1):" ",_=g.width-(S+d).length,y=g.width&&_>0?b.repeat(_):"",f+=g.align?S+d+y:b==="0"?S+y+d:y+S+d)}return f}var i=Object.create(null);function s(a){if(i[a])return i[a];for(var l=a,c,u=[],d=0;l;){if((c=t.text.exec(l))!==null)u.push(c[0]);else if((c=t.modulo.exec(l))!==null)u.push("%");else if((c=t.placeholder.exec(l))!==null){if(c[2]){d|=1;var f=[],m=c[2],v=[];if((v=t.key.exec(m))!==null)for(f.push(v[1]);(m=m.substring(v[0].length))!=="";)if((v=t.key_access.exec(m))!==null)f.push(v[1]);else if((v=t.index_access.exec(m))!==null)f.push(v[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");c[2]=f}else d|=2;if(d===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");u.push({placeholder:c[0],param_no:c[1],keys:c[2],sign:c[3],pad_char:c[4],align:c[5],width:c[6],precision:c[7],type:c[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");l=l.substring(c[0].length)}return i[a]=u}e.sprintf=n,e.vsprintf=r,typeof window<"u"&&(window.sprintf=n,window.vsprintf=r)})()}(Cl)),Cl}var ZS=qS();const XS=ko(ZS),YS=$i(console.error);function Nt(e,...t){try{return XS.sprintf(e,...t)}catch(n){return n instanceof Error&&YS(`sprintf error: 

`+n.toString()),e}}var Sc,sv,qo,av;Sc={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1};sv=["(","?"];qo={")":["("],":":["?","?:"]};av=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;function JS(e){for(var t=[],n=[],r,o,i,s;r=e.match(av);){for(o=r[0],i=e.substr(0,r.index).trim(),i&&t.push(i);s=n.pop();){if(qo[o]){if(qo[o][0]===s){o=qo[o][1]||o;break}}else if(sv.indexOf(s)>=0||Sc[s]<Sc[o]){n.push(s);break}t.push(s)}qo[o]||n.push(o),e=e.substr(r.index+o.length)}return e=e.trim(),e&&t.push(e),t.concat(n.reverse())}var QS={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function e_(e,t){var n=[],r,o,i,s,a,l;for(r=0;r<e.length;r++){if(a=e[r],s=QS[a],s){for(o=s.length,i=Array(o);o--;)i[o]=n.pop();try{l=s.apply(null,i)}catch(c){return c}}else t.hasOwnProperty(a)?l=t[a]:l=+a;n.push(l)}return n[0]}function t_(e){var t=JS(e);return function(n){return e_(t,n)}}function n_(e){var t=t_(e);return function(n){return+t({n})}}var Hf={contextDelimiter:"",onMissingKey:null};function r_(e){var t,n,r;for(t=e.split(";"),n=0;n<t.length;n++)if(r=t[n].trim(),r.indexOf("plural=")===0)return r.substr(7)}function ku(e,t){var n;this.data=e,this.pluralForms={},this.options={};for(n in Hf)this.options[n]=t!==void 0&&n in t?t[n]:Hf[n]}ku.prototype.getPluralForm=function(e,t){var n=this.pluralForms[e],r,o,i;return n||(r=this.data[e][""],i=r["Plural-Forms"]||r["plural-forms"]||r.plural_forms,typeof i!="function"&&(o=r_(r["Plural-Forms"]||r["plural-forms"]||r.plural_forms),i=n_(o)),n=this.pluralForms[e]=i),n(t)};ku.prototype.dcnpgettext=function(e,t,n,r,o){var i,s,a;return o===void 0?i=0:i=this.getPluralForm(e,o),s=n,t&&(s=t+this.options.contextDelimiter+n),a=this.data[e][s],a&&a[i]?a[i]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),i===0?n:r)};const Wf={"":{plural_forms(e){return e===1?0:1}}},o_=/^i18n\.(n?gettext|has_translation)(_|$)/,i_=(e,t,n)=>{const r=new ku({}),o=new Set,i=()=>{o.forEach(S=>S())},s=S=>(o.add(S),()=>o.delete(S)),a=(S="default")=>r.data[S],l=(S,w="default")=>{var C;r.data[w]={...r.data[w],...S},r.data[w][""]={...Wf[""],...(C=r.data[w])==null?void 0:C[""]},delete r.pluralForms[w]},c=(S,w)=>{l(S,w),i()},u=(S,w="default")=>{var C;r.data[w]={...r.data[w],...S,"":{...Wf[""],...(C=r.data[w])==null?void 0:C[""],...S==null?void 0:S[""]}},delete r.pluralForms[w],i()},d=(S,w)=>{r.data={},r.pluralForms={},c(S,w)},f=(S="default",w,C,T,A)=>(r.data[S]||l(void 0,S),r.dcnpgettext(S,w,C,T,A)),m=(S="default")=>S,v=(S,w)=>{let C=f(w,void 0,S);return n?(C=n.applyFilters("i18n.gettext",C,S,w),n.applyFilters("i18n.gettext_"+m(w),C,S,w)):C},g=(S,w,C)=>{let T=f(C,w,S);return n?(T=n.applyFilters("i18n.gettext_with_context",T,S,w,C),n.applyFilters("i18n.gettext_with_context_"+m(C),T,S,w,C)):T},y=(S,w,C,T)=>{let A=f(T,void 0,S,w,C);return n?(A=n.applyFilters("i18n.ngettext",A,S,w,C,T),n.applyFilters("i18n.ngettext_"+m(T),A,S,w,C,T)):A},b=(S,w,C,T,A)=>{let E=f(A,T,S,w,C);return n?(E=n.applyFilters("i18n.ngettext_with_context",E,S,w,C,T,A),n.applyFilters("i18n.ngettext_with_context_"+m(A),E,S,w,C,T,A)):E},_=()=>g("ltr","text direction")==="rtl",x=(S,w,C)=>{var E,P;const T=w?w+""+S:S;let A=!!((P=(E=r.data)==null?void 0:E[C??"default"])!=null&&P[T]);return n&&(A=n.applyFilters("i18n.has_translation",A,S,w,C),A=n.applyFilters("i18n.has_translation_"+m(C),A,S,w,C)),A};if(n){const S=w=>{o_.test(w)&&i()};n.addAction("hookAdded","core/i18n",S),n.addAction("hookRemoved","core/i18n",S)}return{getLocaleData:a,setLocaleData:c,addLocaleData:u,resetLocaleData:d,subscribe:s,__:v,_x:g,_n:y,_nx:b,isRTL:_,hasTranslation:x}};function lv(e){return typeof e!="string"||e===""?(console.error("The namespace must be a non-empty string."),!1):/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)?!0:(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)}function Mu(e){return typeof e!="string"||e===""?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)?!0:(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)}function Kf(e,t){return function(r,o,i,s=10){const a=e[t];if(!Mu(r)||!lv(o))return;if(typeof i!="function"){console.error("The hook callback must be a function.");return}if(typeof s!="number"){console.error("If specified, the hook priority must be a number.");return}const l={callback:i,priority:s,namespace:o};if(a[r]){const c=a[r].handlers;let u;for(u=c.length;u>0&&!(s>=c[u-1].priority);u--);u===c.length?c[u]=l:c.splice(u,0,l),a.__current.forEach(d=>{d.name===r&&d.currentIndex>=u&&d.currentIndex++})}else a[r]={handlers:[l],runs:0};r!=="hookAdded"&&e.doAction("hookAdded",r,o,i,s)}}function ps(e,t,n=!1){return function(o,i){const s=e[t];if(!Mu(o)||!n&&!lv(i))return;if(!s[o])return 0;let a=0;if(n)a=s[o].handlers.length,s[o]={runs:s[o].runs,handlers:[]};else{const l=s[o].handlers;for(let c=l.length-1;c>=0;c--)l[c].namespace===i&&(l.splice(c,1),a++,s.__current.forEach(u=>{u.name===o&&u.currentIndex>=c&&u.currentIndex--}))}return o!=="hookRemoved"&&e.doAction("hookRemoved",o,i),a}}function qf(e,t){return function(r,o){const i=e[t];return typeof o<"u"?r in i&&i[r].handlers.some(s=>s.namespace===o):r in i}}function hs(e,t,n,r){return function(i,...s){const a=e[t];a[i]||(a[i]={handlers:[],runs:0}),a[i].runs++;const l=a[i].handlers;if(!l||!l.length)return n?s[0]:void 0;const c={name:i,currentIndex:0};async function u(){try{a.__current.add(c);let f=n?s[0]:void 0;for(;c.currentIndex<l.length;)f=await l[c.currentIndex].callback.apply(null,s),n&&(s[0]=f),c.currentIndex++;return n?f:void 0}finally{a.__current.delete(c)}}function d(){try{a.__current.add(c);let f=n?s[0]:void 0;for(;c.currentIndex<l.length;)f=l[c.currentIndex].callback.apply(null,s),n&&(s[0]=f),c.currentIndex++;return n?f:void 0}finally{a.__current.delete(c)}}return(r?u:d)()}}function Zf(e,t){return function(){var s;var r;const o=e[t];return(r=(s=Array.from(o.__current).at(-1))==null?void 0:s.name)!==null&&r!==void 0?r:null}}function Xf(e,t){return function(r){const o=e[t];return typeof r>"u"?o.__current.size>0:Array.from(o.__current).some(i=>i.name===r)}}function Yf(e,t){return function(r){const o=e[t];if(Mu(r))return o[r]&&o[r].runs?o[r].runs:0}}class s_{constructor(){this.actions=Object.create(null),this.actions.__current=new Set,this.filters=Object.create(null),this.filters.__current=new Set,this.addAction=Kf(this,"actions"),this.addFilter=Kf(this,"filters"),this.removeAction=ps(this,"actions"),this.removeFilter=ps(this,"filters"),this.hasAction=qf(this,"actions"),this.hasFilter=qf(this,"filters"),this.removeAllActions=ps(this,"actions",!0),this.removeAllFilters=ps(this,"filters",!0),this.doAction=hs(this,"actions",!1,!1),this.doActionAsync=hs(this,"actions",!1,!0),this.applyFilters=hs(this,"filters",!0,!1),this.applyFiltersAsync=hs(this,"filters",!0,!0),this.currentAction=Zf(this,"actions"),this.currentFilter=Zf(this,"filters"),this.doingAction=Xf(this,"actions"),this.doingFilter=Xf(this,"filters"),this.didAction=Yf(this,"actions"),this.didFilter=Yf(this,"filters")}}function a_(){return new s_}const cv=a_(),{addAction:Z5,addFilter:X5,removeAction:Y5,removeFilter:J5,hasAction:Q5,hasFilter:e4,removeAllActions:t4,removeAllFilters:n4,doAction:l_,doActionAsync:r4,applyFilters:o4,applyFiltersAsync:i4,currentAction:s4,currentFilter:a4,doingAction:l4,doingFilter:c4,didAction:u4,didFilter:d4,actions:f4,filters:p4}=cv,it=i_(void 0,void 0,cv);it.getLocaleData.bind(it);it.setLocaleData.bind(it);it.resetLocaleData.bind(it);it.subscribe.bind(it);const W=it.__.bind(it),Jf=it._x.bind(it),c_=it._n.bind(it);it._nx.bind(it);const fn=it.isRTL.bind(it);it.hasTranslation.bind(it);function u_(e,t){return n=>{const r=e(n);return r.displayName=d_(t,n),r}}const d_=(e,t)=>{const n=t.displayName||t.name||"Component";return`${_S(e)}(${n})`},f_=(e,t,n)=>{let r,o,i,s,a,l=!1;function c(T){const A=r,E=o;return r=void 0,o=void 0,i=e.apply(E,A),i}function u(T,A){s=setTimeout(T,A)}function d(){s!==void 0&&clearTimeout(s)}function f(T){return u(y,t),i}function m(T){return T-(a||0)}function v(T){const A=m(T);return t-A}function g(T){const A=m(T);return a===void 0||A>=t||A<0||l}function y(){const T=Date.now();if(g(T))return _();u(y,v(T))}function b(){s=void 0}function _(T){return b(),r?c():(r=o=void 0,i)}function x(){d(),b(),r=a=o=void 0}function S(){return w()?_():i}function w(){return s!==void 0}function C(...T){const A=Date.now(),E=g(A);return r=T,o=this,a=A,E&&!w()?f():(w()||u(y,t),i)}return C.cancel=x,C.flush=S,C.pending=w,C};function Ks(){const e=new Map,t=new Map;function n(r){const o=t.get(r);if(o)for(const i of o)i()}return{get(r){return e.get(r)},set(r,o){e.set(r,o),n(r)},delete(r){e.delete(r),n(r)},subscribe(r,o){let i=t.get(r);return i||(i=new Set,t.set(r,i)),i.add(o),()=>{i.delete(o),i.size===0&&t.delete(r)}}}}const Qf=Object.create(null);function Mt(e,t={}){const{since:n,version:r,alternative:o,plugin:i,link:s,hint:a}=t,l=i?` from ${i}`:"",c=n?` since version ${n}`:"",u=r?` and will be removed${l} in version ${r}`:"",d=o?` Please use ${o} instead.`:"",f=s?` See: ${s}`:"",m=a?` Note: ${a}`:"",v=`${e} is deprecated${c}${u}.${d}${f}${m}`;v in Qf||(l_("deprecated",e,t,v),console.warn(v),Qf[v]=!0)}const ep=new WeakMap;function p_(e){const t=ep.get(e)||0;return ep.set(e,t+1),t}function lt(e,t,n){return h.useMemo(()=>{if(n)return n;const r=p_(e);return t?`${t}-${r}`:r},[e,n,t])}function h_(e){return[e?'[tabindex]:not([tabindex^="-"])':"[tabindex]","a[href]","button:not([disabled])",'input:not([type="hidden"]):not([disabled])',"select:not([disabled])","textarea:not([disabled])",'iframe:not([tabindex^="-"])',"object","embed","area[href]","[contenteditable]:not([contenteditable=false])"].join(",")}function uv(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0}function m_(e){const t=e.closest("map[name]");if(!t)return!1;const n=e.ownerDocument.querySelector('img[usemap="#'+t.name+'"]');return!!n&&uv(n)}function ka(e,{sequential:t=!1}={}){const n=e.querySelectorAll(h_(t));return Array.from(n).filter(r=>{if(!uv(r))return!1;const{nodeName:o}=r;return o==="AREA"?m_(r):!0})}const g_=Object.freeze(Object.defineProperty({__proto__:null,find:ka},Symbol.toStringTag,{value:"Module"}));function _c(e){const t=e.getAttribute("tabindex");return t===null?0:parseInt(t,10)}function dv(e){return _c(e)!==-1}function v_(){const e={};return function(n,r){const{nodeName:o,type:i,checked:s,name:a}=r;if(o!=="INPUT"||i!=="radio"||!a)return n.concat(r);const l=e.hasOwnProperty(a);if(!(s||!l))return n;if(l){const u=e[a];n=n.filter(d=>d!==u)}return e[a]=r,n.concat(r)}}function b_(e,t){return{element:e,index:t}}function y_(e){return e.element}function x_(e,t){const n=_c(e.element),r=_c(t.element);return n===r?e.index-t.index:n-r}function Ru(e){return e.filter(dv).map(b_).sort(x_).map(y_).reduce(v_(),[])}function w_(e){return Ru(ka(e))}function S_(e){return Ru(ka(e.ownerDocument.body)).reverse().find(t=>e.compareDocumentPosition(t)&e.DOCUMENT_POSITION_PRECEDING)}function __(e){return Ru(ka(e.ownerDocument.body)).find(t=>e.compareDocumentPosition(t)&e.DOCUMENT_POSITION_FOLLOWING)}const C_=Object.freeze(Object.defineProperty({__proto__:null,find:w_,findNext:__,findPrevious:S_,isTabbableIndex:dv},Symbol.toStringTag,{value:"Module"})),fv={focusable:g_,tabbable:C_};function Ma(e,t){const n=h.useRef();return h.useCallback(r=>{r?n.current=e(r):n.current&&n.current()},t)}function T_(){return Ma(e=>{function t(n){const{key:r,shiftKey:o,target:i}=n;if(r!=="Tab")return;const s=o?"findPrevious":"findNext",a=fv.tabbable[s](i)||null;if(i.contains(a)){n.preventDefault(),a==null||a.focus();return}if(e.contains(a))return;const l=o?"append":"prepend",{ownerDocument:c}=e,u=c.createElement("div");u.tabIndex=-1,e[l](u),u.addEventListener("blur",()=>e.removeChild(u)),u.focus()}return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}},[])}var js={exports:{}};/*!
 * clipboard.js v2.0.11
 * https://clipboardjs.com/
 *
 * Licensed MIT © Zeno Rocha
 */var A_=js.exports,tp;function E_(){return tp||(tp=1,function(e,t){(function(r,o){e.exports=o()})(A_,function(){return function(){var n={686:function(i,s,a){a.d(s,{default:function(){return U}});var l=a(279),c=a.n(l),u=a(370),d=a.n(u),f=a(817),m=a.n(f);function v(B){try{return document.execCommand(B)}catch{return!1}}var g=function($){var H=m()($);return v("cut"),H},y=g;function b(B){var $=document.documentElement.getAttribute("dir")==="rtl",H=document.createElement("textarea");H.style.fontSize="12pt",H.style.border="0",H.style.padding="0",H.style.margin="0",H.style.position="absolute",H.style[$?"right":"left"]="-9999px";var q=window.pageYOffset||document.documentElement.scrollTop;return H.style.top="".concat(q,"px"),H.setAttribute("readonly",""),H.value=B,H}var _=function($,H){var q=b($);H.container.appendChild(q);var j=m()(q);return v("copy"),q.remove(),j},x=function($){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},q="";return typeof $=="string"?q=_($,H):$ instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes($==null?void 0:$.type)?q=_($.value,H):(q=m()($),v("copy")),q},S=x;function w(B){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(H){return typeof H}:w=function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},w(B)}var C=function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},H=$.action,q=H===void 0?"copy":H,j=$.container,X=$.target,ie=$.text;if(q!=="copy"&&q!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(X!==void 0)if(X&&w(X)==="object"&&X.nodeType===1){if(q==="copy"&&X.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(q==="cut"&&(X.hasAttribute("readonly")||X.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(ie)return S(ie,{container:j});if(X)return q==="cut"?y(X):S(X,{container:j})},T=C;function A(B){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?A=function(H){return typeof H}:A=function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},A(B)}function E(B,$){if(!(B instanceof $))throw new TypeError("Cannot call a class as a function")}function P(B,$){for(var H=0;H<$.length;H++){var q=$[H];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(B,q.key,q)}}function L(B,$,H){return P(B.prototype,$),P(B,H),B}function F(B,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function");B.prototype=Object.create($&&$.prototype,{constructor:{value:B,writable:!0,configurable:!0}}),$&&M(B,$)}function M(B,$){return M=Object.setPrototypeOf||function(q,j){return q.__proto__=j,q},M(B,$)}function N(B){var $=O();return function(){var q=G(B),j;if($){var X=G(this).constructor;j=Reflect.construct(q,arguments,X)}else j=q.apply(this,arguments);return R(this,j)}}function R(B,$){return $&&(A($)==="object"||typeof $=="function")?$:k(B)}function k(B){if(B===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B}function O(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function G(B){return G=Object.setPrototypeOf?Object.getPrototypeOf:function(H){return H.__proto__||Object.getPrototypeOf(H)},G(B)}function I(B,$){var H="data-clipboard-".concat(B);if($.hasAttribute(H))return $.getAttribute(H)}var z=function(B){F(H,B);var $=N(H);function H(q,j){var X;return E(this,H),X=$.call(this),X.resolveOptions(j),X.listenClick(q),X}return L(H,[{key:"resolveOptions",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof j.action=="function"?j.action:this.defaultAction,this.target=typeof j.target=="function"?j.target:this.defaultTarget,this.text=typeof j.text=="function"?j.text:this.defaultText,this.container=A(j.container)==="object"?j.container:document.body}},{key:"listenClick",value:function(j){var X=this;this.listener=d()(j,"click",function(ie){return X.onClick(ie)})}},{key:"onClick",value:function(j){var X=j.delegateTarget||j.currentTarget,ie=this.action(X)||"copy",Ce=T({action:ie,container:this.container,target:this.target(X),text:this.text(X)});this.emit(Ce?"success":"error",{action:ie,text:Ce,trigger:X,clearSelection:function(){X&&X.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(j){return I("action",j)}},{key:"defaultTarget",value:function(j){var X=I("target",j);if(X)return document.querySelector(X)}},{key:"defaultText",value:function(j){return I("text",j)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(j){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return S(j,X)}},{key:"cut",value:function(j){return y(j)}},{key:"isSupported",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],X=typeof j=="string"?[j]:j,ie=!!document.queryCommandSupported;return X.forEach(function(Ce){ie=ie&&!!document.queryCommandSupported(Ce)}),ie}}]),H}(c()),U=z},828:function(i){var s=9;if(typeof Element<"u"&&!Element.prototype.matches){var a=Element.prototype;a.matches=a.matchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.webkitMatchesSelector}function l(c,u){for(;c&&c.nodeType!==s;){if(typeof c.matches=="function"&&c.matches(u))return c;c=c.parentNode}}i.exports=l},438:function(i,s,a){var l=a(828);function c(f,m,v,g,y){var b=d.apply(this,arguments);return f.addEventListener(v,b,y),{destroy:function(){f.removeEventListener(v,b,y)}}}function u(f,m,v,g,y){return typeof f.addEventListener=="function"?c.apply(null,arguments):typeof v=="function"?c.bind(null,document).apply(null,arguments):(typeof f=="string"&&(f=document.querySelectorAll(f)),Array.prototype.map.call(f,function(b){return c(b,m,v,g,y)}))}function d(f,m,v,g){return function(y){y.delegateTarget=l(y.target,m),y.delegateTarget&&g.call(f,y)}}i.exports=u},879:function(i,s){s.node=function(a){return a!==void 0&&a instanceof HTMLElement&&a.nodeType===1},s.nodeList=function(a){var l=Object.prototype.toString.call(a);return a!==void 0&&(l==="[object NodeList]"||l==="[object HTMLCollection]")&&"length"in a&&(a.length===0||s.node(a[0]))},s.string=function(a){return typeof a=="string"||a instanceof String},s.fn=function(a){var l=Object.prototype.toString.call(a);return l==="[object Function]"}},370:function(i,s,a){var l=a(879),c=a(438);function u(v,g,y){if(!v&&!g&&!y)throw new Error("Missing required arguments");if(!l.string(g))throw new TypeError("Second argument must be a String");if(!l.fn(y))throw new TypeError("Third argument must be a Function");if(l.node(v))return d(v,g,y);if(l.nodeList(v))return f(v,g,y);if(l.string(v))return m(v,g,y);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function d(v,g,y){return v.addEventListener(g,y),{destroy:function(){v.removeEventListener(g,y)}}}function f(v,g,y){return Array.prototype.forEach.call(v,function(b){b.addEventListener(g,y)}),{destroy:function(){Array.prototype.forEach.call(v,function(b){b.removeEventListener(g,y)})}}}function m(v,g,y){return c(document.body,v,g,y)}i.exports=u},817:function(i){function s(a){var l;if(a.nodeName==="SELECT")a.focus(),l=a.value;else if(a.nodeName==="INPUT"||a.nodeName==="TEXTAREA"){var c=a.hasAttribute("readonly");c||a.setAttribute("readonly",""),a.select(),a.setSelectionRange(0,a.value.length),c||a.removeAttribute("readonly"),l=a.value}else{a.hasAttribute("contenteditable")&&a.focus();var u=window.getSelection(),d=document.createRange();d.selectNodeContents(a),u.removeAllRanges(),u.addRange(d),l=u.toString()}return l}i.exports=s},279:function(i){function s(){}s.prototype={on:function(a,l,c){var u=this.e||(this.e={});return(u[a]||(u[a]=[])).push({fn:l,ctx:c}),this},once:function(a,l,c){var u=this;function d(){u.off(a,d),l.apply(c,arguments)}return d._=l,this.on(a,d,c)},emit:function(a){var l=[].slice.call(arguments,1),c=((this.e||(this.e={}))[a]||[]).slice(),u=0,d=c.length;for(u;u<d;u++)c[u].fn.apply(c[u].ctx,l);return this},off:function(a,l){var c=this.e||(this.e={}),u=c[a],d=[];if(u&&l)for(var f=0,m=u.length;f<m;f++)u[f].fn!==l&&u[f].fn._!==l&&d.push(u[f]);return d.length?c[a]=d:delete c[a],this}},i.exports=s,i.exports.TinyEmitter=s}},r={};function o(i){if(r[i])return r[i].exports;var s=r[i]={exports:{}};return n[i](s,s.exports,o),s.exports}return function(){o.n=function(i){var s=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(s,{a:s}),s}}(),function(){o.d=function(i,s){for(var a in s)o.o(s,a)&&!o.o(i,a)&&Object.defineProperty(i,a,{enumerable:!0,get:s[a]})}}(),function(){o.o=function(i,s){return Object.prototype.hasOwnProperty.call(i,s)}}(),o(686)}().default})}(js)),js.exports}var P_=E_();const k_=ko(P_);function np(e){const t=h.useRef(e);return h.useLayoutEffect(()=>{t.current=e},[e]),t}function M_(e,t){const n=np(e),r=np(t);return Ma(o=>{const i=new k_(o,{text(){return typeof n.current=="function"?n.current():n.current||""}});return i.on("success",({clearSelection:s})=>{s(),r.current&&r.current()}),()=>{i.destroy()}},[])}const R_=27;function I_(e="firstElement"){const t=h.useRef(e),n=o=>{o.focus({preventScroll:!0})},r=h.useRef();return h.useEffect(()=>{t.current=e},[e]),Ma(o=>{var s;var i;if(!(!o||t.current===!1)&&!o.contains((i=(s=o.ownerDocument)==null?void 0:s.activeElement)!==null&&i!==void 0?i:null)){if(t.current!=="firstElement"){n(o);return}return r.current=setTimeout(()=>{const a=fv.tabbable.find(o)[0];a&&n(a)},0),()=>{r.current&&clearTimeout(r.current)}}},[])}let ms=null;function j_(e){const t=h.useRef(null),n=h.useRef(null),r=h.useRef(e);return h.useEffect(()=>{r.current=e},[e]),h.useCallback(o=>{var a,l,c,u;if(o){var i;if(t.current=o,n.current)return;const d=o.ownerDocument.activeElement instanceof window.HTMLIFrameElement?o.ownerDocument.activeElement.contentDocument:o.ownerDocument;n.current=(i=d==null?void 0:d.activeElement)!==null&&i!==void 0?i:null}else if(n.current){const d=(l=t.current)==null?void 0:l.contains((a=t.current)==null?void 0:a.ownerDocument.activeElement);if((c=t.current)!=null&&c.isConnected&&!d){var s;(s=ms)!==null&&s!==void 0||(ms=n.current);return}r.current?r.current():(u=n.current.isConnected?n.current:ms)==null||u.focus(),ms=null}},[])}const O_=["button","submit"];function D_(e){if(!(e instanceof window.HTMLElement))return!1;switch(e.nodeName){case"A":case"BUTTON":return!0;case"INPUT":return O_.includes(e.type)}return!1}function pv(e){const t=h.useRef(e);h.useEffect(()=>{t.current=e},[e]);const n=h.useRef(!1),r=h.useRef(),o=h.useCallback(()=>{clearTimeout(r.current)},[]);h.useEffect(()=>()=>o(),[]),h.useEffect(()=>{e||o()},[e,o]);const i=h.useCallback(a=>{const{type:l,target:c}=a;["mouseup","touchend"].includes(l)?n.current=!1:D_(c)&&(n.current=!0)},[]),s=h.useCallback(a=>{var c;if(a.persist(),n.current)return;const l=a.target.getAttribute("data-unstable-ignore-focus-outside-for-relatedtarget");l&&((c=a.relatedTarget)!=null&&c.closest(l))||(r.current=setTimeout(()=>{if(!document.hasFocus()){a.preventDefault();return}typeof t.current=="function"&&t.current(a)},0))},[]);return{onFocus:o,onMouseDown:i,onMouseUp:i,onTouchStart:i,onTouchEnd:i,onBlur:s}}function gs(e,t){typeof e=="function"?e(t):e&&e.hasOwnProperty("current")&&(e.current=t)}function Gr(e){const t=h.useRef(),n=h.useRef(!1),r=h.useRef(!1),o=h.useRef([]),i=h.useRef(e);return i.current=e,h.useLayoutEffect(()=>{r.current===!1&&n.current===!0&&e.forEach((s,a)=>{const l=o.current[a];s!==l&&(gs(l,null),gs(s,t.current))}),o.current=e},e),h.useLayoutEffect(()=>{r.current=!1}),h.useCallback(s=>{gs(t,s),r.current=!0,n.current=s!==null;const a=s?i.current:o.current;for(const l of a)gs(l,s)},[])}function N_(e){const t=h.useRef(),{constrainTabbing:n=e.focusOnMount!==!1}=e;h.useEffect(()=>{t.current=e},Object.values(e));const r=T_(),o=I_(e.focusOnMount),i=j_(),s=pv(l=>{var c,u;(c=t.current)!=null&&c.__unstableOnClose?t.current.__unstableOnClose("focus-outside",l):(u=t.current)!=null&&u.onClose&&t.current.onClose()}),a=h.useCallback(l=>{l&&l.addEventListener("keydown",c=>{var u;c.keyCode===R_&&!c.defaultPrevented&&((u=t.current)!=null&&u.onClose)&&(c.preventDefault(),t.current.onClose())})},[]);return[Gr([n?r:null,e.focusOnMount!==!1?i:null,e.focusOnMount!==!1?o:null,a]),{...s,tabIndex:-1}]}function pi(e){const t=h.useRef(()=>{throw new Error("Callbacks created with `useEvent` cannot be called during rendering.")});return h.useInsertionEffect(()=>{t.current=e}),h.useCallback((...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}const rp=new Map;function L_(e){if(!e)return null;let t=rp.get(e);return t||(typeof window<"u"&&typeof window.matchMedia=="function"?(t=window.matchMedia(e),rp.set(e,t),t):null)}function hv(e){const t=h.useMemo(()=>{const n=L_(e);return{subscribe(r){var o;return n?((o=n.addEventListener)==null||o.call(n,"change",r),()=>{var i;(i=n.removeEventListener)==null||i.call(n,"change",r)}):()=>{}},getValue(){var r;return(r=n==null?void 0:n.matches)!==null&&r!==void 0?r:!1}}},[e]);return h.useSyncExternalStore(t.subscribe,t.getValue,()=>!1)}function mv(e){const t=h.useRef();return h.useEffect(()=>{t.current=e},[e]),t.current}const F_=()=>hv("(prefers-reduced-motion: reduce)"),op={xhuge:1920,huge:1440,wide:1280,xlarge:1080,large:960,medium:782,small:600,mobile:480},B_={">=":"min-width","<":"max-width"},V_={">=":(e,t)=>t>=e,"<":(e,t)=>t<e},gv=h.createContext(null),vv=(e,t=">=")=>{const n=h.useContext(gv),r=!n&&`(${B_[t]}: ${op[e]}px)`,o=hv(r||void 0);return n?V_[t](op[e],n):o};vv.__experimentalWidthProvider=gv.Provider;function z_(e,t={}){const n=pi(e),r=h.useRef(),o=h.useRef();return pi(i=>{var s;if(i===r.current)return;(s=o.current)!==null&&s!==void 0||(o.current=new ResizeObserver(n));const{current:a}=o;r.current&&a.unobserve(r.current),r.current=i,i&&a.observe(i,t)})}function $_(e,t={}){return z_(e,t)}function G_(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function U_(e,t){var n=h.useState(function(){return{inputs:t,result:e()}})[0],r=h.useRef(!0),o=h.useRef(n),i=r.current||!!(t&&o.current.inputs&&G_(t,o.current.inputs)),s=i?o.current:{inputs:t,result:e()};return h.useEffect(function(){r.current=!1,o.current=s},[s]),s.result}function H_(e,t,n){const r=U_(()=>f_(e,0),[e,t,n]);return h.useEffect(()=>()=>r.cancel(),[r]),r}function qs(e,t){const[n,r]=h.useMemo(()=>[o=>e.subscribe(t,o),()=>e.get(t)],[e,t]);return h.useSyncExternalStore(n,r,r)}var W_=Object.defineProperty,K_=Object.defineProperties,q_=Object.getOwnPropertyDescriptors,Zs=Object.getOwnPropertySymbols,bv=Object.prototype.hasOwnProperty,yv=Object.prototype.propertyIsEnumerable,ip=(e,t,n)=>t in e?W_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,D=(e,t)=>{for(var n in t||(t={}))bv.call(t,n)&&ip(e,n,t[n]);if(Zs)for(var n of Zs(t))yv.call(t,n)&&ip(e,n,t[n]);return e},ee=(e,t)=>K_(e,q_(t)),pe=(e,t)=>{var n={};for(var r in e)bv.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Zs)for(var r of Zs(e))t.indexOf(r)<0&&yv.call(e,r)&&(n[r]=e[r]);return n},Z_=Object.defineProperty,X_=Object.defineProperties,Y_=Object.getOwnPropertyDescriptors,Xs=Object.getOwnPropertySymbols,xv=Object.prototype.hasOwnProperty,wv=Object.prototype.propertyIsEnumerable,sp=(e,t,n)=>t in e?Z_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ge=(e,t)=>{for(var n in t||(t={}))xv.call(t,n)&&sp(e,n,t[n]);if(Xs)for(var n of Xs(t))wv.call(t,n)&&sp(e,n,t[n]);return e},Ne=(e,t)=>X_(e,Y_(t)),Ra=(e,t)=>{var n={};for(var r in e)xv.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Xs)for(var r of Xs(e))t.indexOf(r)<0&&wv.call(e,r)&&(n[r]=e[r]);return n};function Os(...e){}function J_(e,t){if(Q_(e)){const n=eC(t)?t():t;return e(n)}return e}function Q_(e){return typeof e=="function"}function eC(e){return typeof e=="function"}function Hn(e,t){return typeof Object.hasOwn=="function"?Object.hasOwn(e,t):Object.prototype.hasOwnProperty.call(e,t)}function At(...e){return(...t)=>{for(const n of e)typeof n=="function"&&n(...t)}}function tC(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function nC(e,t){const n=ge({},e);for(const r of t)Hn(n,r)&&delete n[r];return n}function rC(e,t){const n={};for(const r of t)Hn(e,r)&&(n[r]=e[r]);return n}function Sv(e){return e}function Be(e,t){if(!e)throw typeof t!="string"?new Error("Invariant failed"):new Error(t)}function oC(e){return Object.keys(e)}function Ys(e,...t){const n=typeof e=="function"?e(...t):e;return n==null?!1:!n}function Ur(e){return e.disabled||e["aria-disabled"]===!0||e["aria-disabled"]==="true"}function qt(e){const t={};for(const n in e)e[n]!==void 0&&(t[n]=e[n]);return t}function ce(...e){for(const t of e)if(t!==void 0)return t}function Cc(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function iC(e){return!e||!h.isValidElement(e)?!1:"ref"in e.props||"ref"in e}function sC(e){return iC(e)?D({},e.props).ref||e.ref:null}function aC(e,t){const n=D({},e);for(const r in t){if(!Hn(t,r))continue;if(r==="className"){const i="className";n[i]=e[i]?`${e[i]} ${t[i]}`:t[i];continue}if(r==="style"){const i="style";n[i]=e[i]?D(D({},e[i]),t[i]):t[i];continue}const o=t[r];if(typeof o=="function"&&r.startsWith("on")){const i=e[r];if(typeof i=="function"){n[r]=(...s)=>{o(...s),i(...s)};continue}}n[r]=o}return n}var Mo=lC();function lC(){var e;return typeof window<"u"&&!!((e=window.document)!=null&&e.createElement)}function He(e){return e?"self"in e?e.document:e.ownerDocument||document:document}function _v(e){return e?"self"in e?e.self:He(e).defaultView||window:self}function Yn(e,t=!1){const{activeElement:n}=He(e);if(!(n!=null&&n.nodeName))return null;if(Iu(n)&&n.contentDocument)return Yn(n.contentDocument.body,t);if(t){const r=n.getAttribute("aria-activedescendant");if(r){const o=He(n).getElementById(r);if(o)return o}}return n}function Je(e,t){return e===t||e.contains(t)}function Iu(e){return e.tagName==="IFRAME"}function sr(e){const t=e.tagName.toLowerCase();return t==="button"?!0:t==="input"&&e.type?cC.indexOf(e.type)!==-1:!1}var cC=["button","color","file","image","reset","submit"];function Cv(e){if(typeof e.checkVisibility=="function")return e.checkVisibility();const t=e;return t.offsetWidth>0||t.offsetHeight>0||e.getClientRects().length>0}function Jn(e){try{const t=e instanceof HTMLInputElement&&e.selectionStart!==null,n=e.tagName==="TEXTAREA";return t||n||!1}catch{return!1}}function Tc(e){return e.isContentEditable||Jn(e)}function uC(e){if(Jn(e))return e.value;if(e.isContentEditable){const t=He(e).createRange();return t.selectNodeContents(e),t.toString()}return""}function dC(e){let t=0,n=0;if(Jn(e))t=e.selectionStart||0,n=e.selectionEnd||0;else if(e.isContentEditable){const r=He(e).getSelection();if(r!=null&&r.rangeCount&&r.anchorNode&&Je(e,r.anchorNode)&&r.focusNode&&Je(e,r.focusNode)){const o=r.getRangeAt(0),i=o.cloneRange();i.selectNodeContents(e),i.setEnd(o.startContainer,o.startOffset),t=i.toString().length,i.setEnd(o.endContainer,o.endOffset),n=i.toString().length}}return{start:t,end:n}}function ju(e,t){const n=["dialog","menu","listbox","tree","grid"],r=e==null?void 0:e.getAttribute("role");return r&&n.indexOf(r)!==-1?r:t}function fC(e,t){var n;const r={menu:"menuitem",listbox:"option",tree:"treeitem"},o=ju(e);return o&&(n=r[o])!=null?n:t}function Tv(e){if(!e)return null;const t=n=>n==="auto"||n==="scroll";if(e.clientHeight&&e.scrollHeight>e.clientHeight){const{overflowY:n}=getComputedStyle(e);if(t(n))return e}else if(e.clientWidth&&e.scrollWidth>e.clientWidth){const{overflowX:n}=getComputedStyle(e);if(t(n))return e}return Tv(e.parentElement)||document.scrollingElement||document.body}function Av(e,t){const n=e.map((o,i)=>[i,o]);let r=!1;return n.sort(([o,i],[s,a])=>{const l=t(i),c=t(a);return l===c||!l||!c?0:pC(l,c)?(o>s&&(r=!0),-1):(o<s&&(r=!0),1)}),r?n.map(([o,i])=>i):e}function pC(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function hC(){return Mo&&!!navigator.maxTouchPoints}function Ou(){return Mo?/mac|iphone|ipad|ipod/i.test(navigator.platform):!1}function Du(){return Mo&&Ou()&&/apple/i.test(navigator.vendor)}function mC(){return Mo&&/firefox\//i.test(navigator.userAgent)}function gC(){return Mo&&navigator.platform.startsWith("Mac")&&!hC()}function Ev(e){return!!(e.currentTarget&&!Je(e.currentTarget,e.target))}function Lt(e){return e.target===e.currentTarget}function vC(e){const t=e.currentTarget;if(!t)return!1;const n=Ou();if(n&&!e.metaKey||!n&&!e.ctrlKey)return!1;const r=t.tagName.toLowerCase();return r==="a"||r==="button"&&t.type==="submit"||r==="input"&&t.type==="submit"}function bC(e){const t=e.currentTarget;if(!t)return!1;const n=t.tagName.toLowerCase();return e.altKey?n==="a"||n==="button"&&t.type==="submit"||n==="input"&&t.type==="submit":!1}function Kr(e,t){const n=new FocusEvent("blur",t),r=e.dispatchEvent(n),o=Ne(ge({},t),{bubbles:!0});return e.dispatchEvent(new FocusEvent("focusout",o)),r}function yC(e,t,n){const r=new KeyboardEvent(t,n);return e.dispatchEvent(r)}function ap(e,t){const n=new MouseEvent("click",t);return e.dispatchEvent(n)}function Zr(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Je(n,r)}function so(e,t,n,r){const i=(a=>{const l=requestAnimationFrame(a);return()=>cancelAnimationFrame(l)})(()=>{e.removeEventListener(t,s,!0),n()}),s=()=>{i(),n()};return e.addEventListener(t,s,{once:!0,capture:!0}),i}function bt(e,t,n,r=window){const o=[];try{r.document.addEventListener(e,t,n);for(const s of Array.from(r.frames))o.push(bt(e,t,n,s))}catch{}return()=>{try{r.document.removeEventListener(e,t,n)}catch{}for(const s of o)s()}}var Nu=D({},wc),lp=Nu.useId;Nu.useDeferredValue;var cp=Nu.useInsertionEffect,je=Mo?h.useLayoutEffect:h.useEffect;function xC(e){const[t]=h.useState(e);return t}function Pv(e){const t=h.useRef(e);return je(()=>{t.current=e}),t}function fe(e){const t=h.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return cp?cp(()=>{t.current=e}):t.current=e,h.useCallback((...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function kv(e){const[t,n]=h.useState(null);return je(()=>{if(t==null||!e)return;let r=null;return e(o=>(r=o,t)),()=>{e(r)}},[t,e]),[t,n]}function Qe(...e){return h.useMemo(()=>{if(e.some(Boolean))return t=>{for(const n of e)Cc(n,t)}},e)}function Zt(e){if(lp){const r=lp();return e||r}const[t,n]=h.useState(e);return je(()=>{if(e||t)return;const r=Math.random().toString(36).slice(2,8);n(`id-${r}`)},[e,t]),e||t}function Lu(e,t){const n=i=>{if(typeof i=="string")return i},[r,o]=h.useState(()=>n(t));return je(()=>{const i=e&&"current"in e?e.current:e;o((i==null?void 0:i.tagName.toLowerCase())||n(t))},[e,t]),r}function wC(e,t,n){const r=xC(n),[o,i]=h.useState(r);return h.useEffect(()=>{const s=e&&"current"in e?e.current:e;if(!s)return;const a=()=>{const c=s.getAttribute(t);i(c??r)},l=new MutationObserver(a);return l.observe(s,{attributeFilter:[t]}),a(),()=>l.disconnect()},[e,t,r]),o}function mo(e,t){const n=h.useRef(!1);h.useEffect(()=>{if(n.current)return e();n.current=!0},t),h.useEffect(()=>()=>{n.current=!1},[])}function Mv(){return h.useReducer(()=>[],[])}function st(e){return fe(typeof e=="function"?e:()=>e)}function Ge(e,t,n=[]){const r=h.useCallback(o=>(e.wrapElement&&(o=e.wrapElement(o)),t(o)),[...n,e.wrapElement]);return ee(D({},e),{wrapElement:r})}function Fu(e=!1,t){const[n,r]=h.useState(null);return{portalRef:Qe(r,t),portalNode:n,domReady:!e||n}}function Rv(e,t,n){const r=e.onLoadedMetadataCapture,o=h.useMemo(()=>Object.assign(()=>{},ee(D({},r),{[t]:n})),[r,t,n]);return[r==null?void 0:r[t],{onLoadedMetadataCapture:o}]}function Bu(){return h.useEffect(()=>{bt("mousemove",_C,!0),bt("mousedown",vs,!0),bt("mouseup",vs,!0),bt("keydown",vs,!0),bt("scroll",vs,!0)},[]),fe(()=>Vu)}var Vu=!1,up=0,dp=0;function SC(e){const t=e.movementX||e.screenX-up,n=e.movementY||e.screenY-dp;return up=e.screenX,dp=e.screenY,t||n||!1}function _C(e){SC(e)&&(Vu=!0)}function vs(){Vu=!1}function ue(e){const t=h.forwardRef((n,r)=>e(ee(D({},n),{ref:r})));return t.displayName=e.displayName||e.name,t}function Ro(e,t){return h.memo(e,t)}function de(e,t){const n=t,{wrapElement:r,render:o}=n,i=pe(n,["wrapElement","render"]),s=Qe(t.ref,sC(o));let a;if(h.isValidElement(o)){const l=ee(D({},o.props),{ref:s});a=h.cloneElement(o,aC(i,l))}else o?a=o(i):a=p.jsx(e,D({},i));return r?r(a):a}function he(e){const t=(n={})=>e(n);return t.displayName=e.name,t}function gn(e=[],t=[]){const n=h.createContext(void 0),r=h.createContext(void 0),o=()=>h.useContext(n),i=(c=!1)=>{const u=h.useContext(r),d=o();return c?u:u||d},s=()=>{const c=h.useContext(r),u=o();if(!(c&&c===u))return u},a=c=>e.reduceRight((u,d)=>p.jsx(d,ee(D({},c),{children:u})),p.jsx(n.Provider,D({},c)));return{context:n,scopedContext:r,useContext:o,useScopedContext:i,useProviderContext:s,ContextProvider:a,ScopedContextProvider:c=>p.jsx(a,ee(D({},c),{children:t.reduceRight((u,d)=>p.jsx(d,ee(D({},c),{children:u})),p.jsx(r.Provider,D({},c)))}))}}var Gi=gn(),CC=Gi.useContext;Gi.useScopedContext;Gi.useProviderContext;var TC=Gi.ContextProvider,AC=Gi.ScopedContextProvider,Ui=gn([TC],[AC]),Ia=Ui.useContext;Ui.useScopedContext;var EC=Ui.useProviderContext,Hi=Ui.ContextProvider,ja=Ui.ScopedContextProvider,PC=h.createContext(void 0),Iv=h.createContext(void 0);function Io(e,t){const n=e.__unstableInternals;return Be(n,"Invalid store"),n[t]}function Ft(e,...t){let n=e,r=n,o=Symbol(),i=Os;const s=new Set,a=new Set,l=new Set,c=new Set,u=new Set,d=new WeakMap,f=new WeakMap,m=A=>(l.add(A),()=>l.delete(A)),v=()=>{const A=s.size,E=Symbol();s.add(E);const P=()=>{s.delete(E),!s.size&&i()};if(A)return P;const L=oC(n).map(N=>At(...t.map(R=>{var k;const O=(k=R==null?void 0:R.getState)==null?void 0:k.call(R);if(O&&Hn(O,N))return rt(R,[N],G=>{C(N,G[N],!0)})}))),F=[];for(const N of l)F.push(N());const M=t.map(zu);return i=At(...L,...F,...M),P},g=(A,E,P=c)=>(P.add(E),f.set(E,A),()=>{var L;(L=d.get(E))==null||L(),d.delete(E),f.delete(E),P.delete(E)}),y=(A,E)=>g(A,E),b=(A,E)=>(d.set(E,E(n,n)),g(A,E)),_=(A,E)=>(d.set(E,E(n,r)),g(A,E,u)),x=A=>Ft(rC(n,A),T),S=A=>Ft(nC(n,A),T),w=()=>n,C=(A,E,P=!1)=>{var L;if(!Hn(n,A))return;const F=J_(E,n[A]);if(F===n[A])return;if(!P)for(const k of t)(L=k==null?void 0:k.setState)==null||L.call(k,A,F);const M=n;n=Ne(ge({},n),{[A]:F});const N=Symbol();o=N,a.add(A);const R=(k,O,G)=>{var I;const z=f.get(k),U=B=>G?G.has(B):B===A;(!z||z.some(U))&&((I=d.get(k))==null||I(),d.set(k,k(n,O)))};for(const k of c)R(k,M);queueMicrotask(()=>{if(o!==N)return;const k=n;for(const O of u)R(O,r,a);r=k,a.clear()})},T={getState:w,setState:C,__unstableInternals:{setup:m,init:v,subscribe:y,sync:b,batch:_,pick:x,omit:S}};return T}function St(e,...t){if(e)return Io(e,"setup")(...t)}function zu(e,...t){if(e)return Io(e,"init")(...t)}function $u(e,...t){if(e)return Io(e,"subscribe")(...t)}function rt(e,...t){if(e)return Io(e,"sync")(...t)}function hi(e,...t){if(e)return Io(e,"batch")(...t)}function mi(e,...t){if(e)return Io(e,"omit")(...t)}function Oa(...e){const t=e.reduce((r,o)=>{var i;const s=(i=o==null?void 0:o.getState)==null?void 0:i.call(o);return s?Object.assign(r,s):r},{}),n=Ft(t,...e);return Object.assign({},...e,n)}var Tl={exports:{}},Al={};/**
 * @license React
 * use-sync-external-store-shim.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var fp;function kC(){if(fp)return Al;fp=1;var e=Yg();function t(d,f){return d===f&&(d!==0||1/d===1/f)||d!==d&&f!==f}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,s=e.useDebugValue;function a(d,f){var m=f(),v=r({inst:{value:m,getSnapshot:f}}),g=v[0].inst,y=v[1];return i(function(){g.value=m,g.getSnapshot=f,l(g)&&y({inst:g})},[d,m,f]),o(function(){return l(g)&&y({inst:g}),d(function(){l(g)&&y({inst:g})})},[d]),s(m),m}function l(d){var f=d.getSnapshot;d=d.value;try{var m=f();return!n(d,m)}catch{return!0}}function c(d,f){return f()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:a;return Al.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u,Al}var pp;function MC(){return pp||(pp=1,Tl.exports=kC()),Tl.exports}var RC=MC();const IC=ko(RC);var{useSyncExternalStore:jv}=IC,Ov=()=>()=>{};function Xe(e,t=Sv){const n=h.useCallback(o=>e?$u(e,null,o):Ov(),[e]),r=()=>{const o=typeof t=="string"?t:null,i=typeof t=="function"?t:null,s=e==null?void 0:e.getState();if(i)return i(s);if(s&&o&&Hn(s,o))return s[o]};return jv(n,r,r)}function Dv(e,t){const n=h.useRef({}),r=h.useCallback(i=>e?$u(e,null,i):Ov(),[e]),o=()=>{const i=e==null?void 0:e.getState();let s=!1;const a=n.current;for(const l in t){const c=t[l];if(typeof c=="function"){const u=c(i);u!==a[l]&&(a[l]=u,s=!0)}if(typeof c=="string"){if(!i||!Hn(i,c))continue;const u=i[c];u!==a[l]&&(a[l]=u,s=!0)}}return s&&(n.current=D({},a)),n.current};return jv(r,o,o)}function ze(e,t,n,r){const o=Hn(t,n)?t[n]:void 0,i=r?t[r]:void 0,s=Pv({value:o,setValue:i});je(()=>rt(e,[n],(a,l)=>{const{value:c,setValue:u}=s.current;u&&a[n]!==l[n]&&a[n]!==c&&u(a[n])}),[e,n]),je(()=>{if(o!==void 0)return e.setState(n,o),hi(e,[n],()=>{o!==void 0&&e.setState(n,o)})})}function vr(e,t){const[n,r]=h.useState(()=>e(t));je(()=>zu(n),[n]);const o=h.useCallback(a=>Xe(n,a),[n]),i=h.useMemo(()=>ee(D({},n),{useState:o}),[n,o]),s=fe(()=>{r(a=>e(D(D({},t),a.getState())))});return[i,s]}function jC(e){var t;const n=e.find(i=>!!i.element),r=[...e].reverse().find(i=>!!i.element);let o=(t=n==null?void 0:n.element)==null?void 0:t.parentElement;for(;o&&(r!=null&&r.element);){if(r&&o.contains(r.element))return o;o=o.parentElement}return He(o).body}function OC(e){return e==null?void 0:e.__unstablePrivateStore}function Nv(e={}){var t;e.store;const n=(t=e.store)==null?void 0:t.getState(),r=ce(e.items,n==null?void 0:n.items,e.defaultItems,[]),o=new Map(r.map(f=>[f.id,f])),i={items:r,renderedItems:ce(n==null?void 0:n.renderedItems,[])},s=OC(e.store),a=Ft({items:r,renderedItems:i.renderedItems},s),l=Ft(i,e.store),c=f=>{const m=Av(f,v=>v.element);a.setState("renderedItems",m),l.setState("renderedItems",m)};St(l,()=>zu(a)),St(a,()=>hi(a,["items"],f=>{l.setState("items",f.items)})),St(a,()=>hi(a,["renderedItems"],f=>{let m=!0,v=requestAnimationFrame(()=>{const{renderedItems:_}=l.getState();f.renderedItems!==_&&c(f.renderedItems)});if(typeof IntersectionObserver!="function")return()=>cancelAnimationFrame(v);const g=()=>{if(m){m=!1;return}cancelAnimationFrame(v),v=requestAnimationFrame(()=>c(f.renderedItems))},y=jC(f.renderedItems),b=new IntersectionObserver(g,{root:y});for(const _ of f.renderedItems)_.element&&b.observe(_.element);return()=>{cancelAnimationFrame(v),b.disconnect()}}));const u=(f,m,v=!1)=>{let g;return m(b=>{const _=b.findIndex(({id:S})=>S===f.id),x=b.slice();if(_!==-1){g=b[_];const S=ge(ge({},g),f);x[_]=S,o.set(f.id,S)}else x.push(f),o.set(f.id,f);return x}),()=>{m(b=>{if(!g)return v&&o.delete(f.id),b.filter(({id:S})=>S!==f.id);const _=b.findIndex(({id:S})=>S===f.id);if(_===-1)return b;const x=b.slice();return x[_]=g,o.set(f.id,g),x})}},d=f=>u(f,m=>a.setState("items",m),!0);return Ne(ge({},l),{registerItem:d,renderItem:f=>At(d(f),u(f,m=>a.setState("renderedItems",m))),item:f=>{if(!f)return null;let m=o.get(f);if(!m){const{items:v}=a.getState();m=v.find(g=>g.id===f),m&&o.set(f,m)}return m||null},__unstablePrivateStore:a})}function DC(e,t,n){return mo(t,[n.store]),ze(e,n,"items","setItems"),e}function Lv(e){return Array.isArray(e)?e:typeof e<"u"?[e]:[]}function Fv(e){const t=[];for(const n of e)t.push(...n);return t}function Ac(e){return e.slice().reverse()}var NC={id:null};function Fn(e,t){return e.find(n=>t?!n.disabled&&n.id!==t:!n.disabled)}function LC(e,t){return e.filter(n=>t?!n.disabled&&n.id!==t:!n.disabled)}function hp(e,t){return e.filter(n=>n.rowId===t)}function FC(e,t,n=!1){const r=e.findIndex(o=>o.id===t);return[...e.slice(r+1),...n?[NC]:[],...e.slice(0,r)]}function Bv(e){const t=[];for(const n of e){const r=t.find(o=>{var i;return((i=o[0])==null?void 0:i.rowId)===n.rowId});r?r.push(n):t.push([n])}return t}function Vv(e){let t=0;for(const{length:n}of e)n>t&&(t=n);return t}function BC(e){return{id:"__EMPTY_ITEM__",disabled:!0,rowId:e}}function VC(e,t,n){const r=Vv(e);for(const o of e)for(let i=0;i<r;i+=1){const s=o[i];if(!s||n&&s.disabled){const l=i===0&&n?Fn(o):o[i-1];o[i]=l&&t!==l.id&&n?l:BC(l==null?void 0:l.rowId)}}return e}function zC(e){const t=Bv(e),n=Vv(t),r=[];for(let o=0;o<n;o+=1)for(const i of t){const s=i[o];s&&r.push(Ne(ge({},s),{rowId:s.rowId?`${o}`:void 0}))}return r}function Da(e={}){var t;const n=(t=e.store)==null?void 0:t.getState(),r=Nv(e),o=ce(e.activeId,n==null?void 0:n.activeId,e.defaultActiveId),i=Ne(ge({},r.getState()),{id:ce(e.id,n==null?void 0:n.id,`id-${Math.random().toString(36).slice(2,8)}`),activeId:o,baseElement:ce(n==null?void 0:n.baseElement,null),includesBaseElement:ce(e.includesBaseElement,n==null?void 0:n.includesBaseElement,o===null),moves:ce(n==null?void 0:n.moves,0),orientation:ce(e.orientation,n==null?void 0:n.orientation,"both"),rtl:ce(e.rtl,n==null?void 0:n.rtl,!1),virtualFocus:ce(e.virtualFocus,n==null?void 0:n.virtualFocus,!1),focusLoop:ce(e.focusLoop,n==null?void 0:n.focusLoop,!1),focusWrap:ce(e.focusWrap,n==null?void 0:n.focusWrap,!1),focusShift:ce(e.focusShift,n==null?void 0:n.focusShift,!1)}),s=Ft(i,r,e.store);St(s,()=>rt(s,["renderedItems","activeId"],l=>{s.setState("activeId",c=>{var u;return c!==void 0?c:(u=Fn(l.renderedItems))==null?void 0:u.id})}));const a=(l="next",c={})=>{var u,d;const f=s.getState(),{skip:m=0,activeId:v=f.activeId,focusShift:g=f.focusShift,focusLoop:y=f.focusLoop,focusWrap:b=f.focusWrap,includesBaseElement:_=f.includesBaseElement,renderedItems:x=f.renderedItems,rtl:S=f.rtl}=c,w=l==="up"||l==="down",C=l==="next"||l==="down",T=C?S&&!w:!S||w,A=g&&!m;let E=w?Fv(VC(Bv(x),v,A)):x;if(E=T?Ac(E):E,E=w?zC(E):E,v==null)return(u=Fn(E))==null?void 0:u.id;const P=E.find(I=>I.id===v);if(!P)return(d=Fn(E))==null?void 0:d.id;const L=E.some(I=>I.rowId),F=E.indexOf(P),M=E.slice(F+1),N=hp(M,P.rowId);if(m){const I=LC(N,v),z=I.slice(m)[0]||I[I.length-1];return z==null?void 0:z.id}const R=y&&(w?y!=="horizontal":y!=="vertical"),k=L&&b&&(w?b!=="horizontal":b!=="vertical"),O=C?(!L||w)&&R&&_:w?_:!1;if(R){const I=k&&!O?E:hp(E,P.rowId),z=FC(I,v,O),U=Fn(z,v);return U==null?void 0:U.id}if(k){const I=Fn(O?N:M,v);return O?(I==null?void 0:I.id)||null:I==null?void 0:I.id}const G=Fn(N,v);return!G&&O?null:G==null?void 0:G.id};return Ne(ge(ge({},r),s),{setBaseElement:l=>s.setState("baseElement",l),setActiveId:l=>s.setState("activeId",l),move:l=>{l!==void 0&&(s.setState("activeId",l),s.setState("moves",c=>c+1))},first:()=>{var l;return(l=Fn(s.getState().renderedItems))==null?void 0:l.id},last:()=>{var l;return(l=Fn(Ac(s.getState().renderedItems)))==null?void 0:l.id},next:l=>(l!==void 0&&typeof l=="number"&&(l={skip:l}),a("next",l)),previous:l=>(l!==void 0&&typeof l=="number"&&(l={skip:l}),a("previous",l)),down:l=>(l!==void 0&&typeof l=="number"&&(l={skip:l}),a("down",l)),up:l=>(l!==void 0&&typeof l=="number"&&(l={skip:l}),a("up",l))})}function zv(e){const t=Zt(e.id);return D({id:t},e)}function Na(e,t,n){return e=DC(e,t,n),ze(e,n,"activeId","setActiveId"),ze(e,n,"includesBaseElement"),ze(e,n,"virtualFocus"),ze(e,n,"orientation"),ze(e,n,"rtl"),ze(e,n,"focusLoop"),ze(e,n,"focusWrap"),ze(e,n,"focusShift"),e}function $C(e={}){e=zv(e);const[t,n]=vr(Da,e);return Na(t,n,e)}function $v(e={}){const t=Oa(e.store,mi(e.disclosure,["contentElement","disclosureElement"])),n=t==null?void 0:t.getState(),r=ce(e.open,n==null?void 0:n.open,e.defaultOpen,!1),o=ce(e.animated,n==null?void 0:n.animated,!1),i={open:r,animated:o,animating:!!o&&r,mounted:r,contentElement:ce(n==null?void 0:n.contentElement,null),disclosureElement:ce(n==null?void 0:n.disclosureElement,null)},s=Ft(i,t);return St(s,()=>rt(s,["animated","animating"],a=>{a.animated||s.setState("animating",!1)})),St(s,()=>$u(s,["open"],()=>{s.getState().animated&&s.setState("animating",!0)})),St(s,()=>rt(s,["open","animating"],a=>{s.setState("mounted",a.open||a.animating)})),Ne(ge({},s),{disclosure:e.disclosure,setOpen:a=>s.setState("open",a),show:()=>s.setState("open",!0),hide:()=>s.setState("open",!1),toggle:()=>s.setState("open",a=>!a),stopAnimation:()=>s.setState("animating",!1),setContentElement:a=>s.setState("contentElement",a),setDisclosureElement:a=>s.setState("disclosureElement",a)})}function Gv(e,t,n){return mo(t,[n.store,n.disclosure]),ze(e,n,"open","setOpen"),ze(e,n,"mounted","setMounted"),ze(e,n,"animated"),Object.assign(e,{disclosure:n.disclosure})}function Uv(e={}){const[t,n]=vr($v,e);return Gv(t,n,e)}function Hv(e={}){return $v(e)}function Wv(e,t,n){return Gv(e,t,n)}function GC(e={}){const[t,n]=vr(Hv,e);return Wv(t,n,e)}function Kv(e={}){var t=e,{popover:n}=t,r=Ra(t,["popover"]);const o=Oa(r.store,mi(n,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),i=o==null?void 0:o.getState(),s=Hv(Ne(ge({},r),{store:o})),a=ce(r.placement,i==null?void 0:i.placement,"bottom"),l=Ne(ge({},s.getState()),{placement:a,currentPlacement:a,anchorElement:ce(i==null?void 0:i.anchorElement,null),popoverElement:ce(i==null?void 0:i.popoverElement,null),arrowElement:ce(i==null?void 0:i.arrowElement,null),rendered:Symbol("rendered")}),c=Ft(l,s,o);return Ne(ge(ge({},s),c),{setAnchorElement:u=>c.setState("anchorElement",u),setPopoverElement:u=>c.setState("popoverElement",u),setArrowElement:u=>c.setState("arrowElement",u),render:()=>c.setState("rendered",Symbol("rendered"))})}function qv(e,t,n){return mo(t,[n.popover]),ze(e,n,"placement"),Wv(e,t,n)}var Gu=gn(),Uu=Gu.useProviderContext,UC=Gu.ContextProvider,HC=Gu.ScopedContextProvider,Wi=gn([UC],[HC]);Wi.useContext;Wi.useScopedContext;var La=Wi.useProviderContext,WC=Wi.ContextProvider,Hu=Wi.ScopedContextProvider,KC=h.createContext(void 0),qC=h.createContext(void 0),Ki=gn([WC],[Hu]),ZC=Ki.useContext;Ki.useScopedContext;var Fa=Ki.useProviderContext,Wu=Ki.ContextProvider,qi=Ki.ScopedContextProvider;h.createContext(void 0);var Zv=gn([Wu,Hi],[qi,ja]),XC=Zv.useContext,YC=Zv.useProviderContext;h.createContext(void 0);h.createContext(!1);var JC="div",Xv=he(function(t){var n=t,{store:r}=n,o=pe(n,["store"]);const i=Fa();return r=r||i,o=ee(D({},o),{ref:Qe(r==null?void 0:r.setAnchorElement,o.ref)}),o});ue(function(t){const n=Xv(t);return de(JC,n)});var QC={id:null};function eT(e,t,n=!1){const r=e.findIndex(o=>o.id===t);return[...e.slice(r+1),...n?[QC]:[],...e.slice(0,r)]}function tT(e,t){return e.find(n=>!n.disabled)}function rr(e,t){return t&&e.item(t)||null}function nT(e){const t=[];for(const n of e){const r=t.find(o=>{var i;return((i=o[0])==null?void 0:i.rowId)===n.rowId});r?r.push(n):t.push([n])}return t}function rT(e,t=!1){if(Jn(e))e.setSelectionRange(t?e.value.length:0,e.value.length);else if(e.isContentEditable){const n=He(e).getSelection();n==null||n.selectAllChildren(e),t&&(n==null||n.collapseToEnd())}}var Ec=Symbol("FOCUS_SILENTLY");function oT(e){e[Ec]=!0,e.focus({preventScroll:!0})}function iT(e){const t=e[Ec];return delete e[Ec],t}function ri(e,t,n){return!(!t||t===n||!e.item(t.id))}var Yv=h.createContext(!0),Ba="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], summary, iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function sT(e){return Number.parseInt(e.getAttribute("tabindex")||"0",10)<0}function un(e){return!(!e.matches(Ba)||!Cv(e)||e.closest("[inert]"))}function gi(e){if(!un(e)||sT(e))return!1;if(!("form"in e)||!e.form||e.checked||e.type!=="radio")return!0;const t=e.form.elements.namedItem(e.name);if(!t||!("length"in t))return!0;const n=Yn(e);return!n||n===e||!("form"in n)||n.form!==e.form||n.name!==e.name}function Ku(e,t){const n=Array.from(e.querySelectorAll(Ba));t&&n.unshift(e);const r=n.filter(un);return r.forEach((o,i)=>{if(Iu(o)&&o.contentDocument){const s=o.contentDocument.body;r.splice(i,1,...Ku(s))}}),r}function Zi(e,t,n){const r=Array.from(e.querySelectorAll(Ba)),o=r.filter(gi);return t&&gi(e)&&o.unshift(e),o.forEach((i,s)=>{if(Iu(i)&&i.contentDocument){const a=i.contentDocument.body,l=Zi(a,!1,n);o.splice(s,1,...l)}}),!o.length&&n?r:o}function aT(e,t,n){const[r]=Zi(e,t,n);return r||null}function lT(e,t,n,r){const o=Yn(e),i=Ku(e,t),s=i.indexOf(o),a=i.slice(s+1);return a.find(gi)||(n?i.find(gi):null)||(r?a[0]:null)||null}function El(e,t){return lT(document.body,!1,e,t)}function cT(e,t,n,r){const o=Yn(e),i=Ku(e,t).reverse(),s=i.indexOf(o);return i.slice(s+1).find(gi)||null||null||null}function mp(e,t){return cT(document.body,!1)}function uT(e){for(;e&&!un(e);)e=e.closest(Ba);return e||null}function Js(e){const t=Yn(e);if(!t)return!1;if(t===e)return!0;const n=t.getAttribute("aria-activedescendant");return n?n===e.id:!1}function qu(e){const t=Yn(e);if(!t)return!1;if(Je(e,t))return!0;const n=t.getAttribute("aria-activedescendant");return!n||!("id"in e)?!1:n===e.id?!0:!!e.querySelector(`#${CSS.escape(n)}`)}function Jv(e){!qu(e)&&un(e)&&e.focus()}function dT(e){var t;const n=(t=e.getAttribute("tabindex"))!=null?t:"";e.setAttribute("data-tabindex",n),e.setAttribute("tabindex","-1")}function fT(e,t){const n=Zi(e,t);for(const r of n)dT(r)}function pT(e){const t=e.querySelectorAll("[data-tabindex]"),n=r=>{const o=r.getAttribute("data-tabindex");r.removeAttribute("data-tabindex"),o?r.setAttribute("tabindex",o):r.removeAttribute("tabindex")};e.hasAttribute("data-tabindex")&&n(e);for(const r of t)n(r)}function hT(e,t){"scrollIntoView"in e?(e.focus({preventScroll:!0}),e.scrollIntoView(ge({block:"nearest",inline:"nearest"},t))):e.focus()}var mT="div",gp=Du(),gT=["text","search","url","tel","email","password","number","date","month","week","time","datetime","datetime-local"],Qv=Symbol("safariFocusAncestor");function vT(e){return e?!!e[Qv]:!1}function vp(e,t){e&&(e[Qv]=t)}function bT(e){const{tagName:t,readOnly:n,type:r}=e;return t==="TEXTAREA"&&!n||t==="SELECT"&&!n?!0:t==="INPUT"&&!n?gT.includes(r):!!(e.isContentEditable||e.getAttribute("role")==="combobox"&&e.dataset.name)}function yT(e){return"labels"in e?e.labels:null}function bp(e){return e.tagName.toLowerCase()==="input"&&e.type?e.type==="radio"||e.type==="checkbox":!1}function xT(e){return e?e==="button"||e==="summary"||e==="input"||e==="select"||e==="textarea"||e==="a":!0}function wT(e){return e?e==="button"||e==="input"||e==="select"||e==="textarea":!0}function ST(e,t,n,r,o){return e?t?n&&!r?-1:void 0:n?o:o||0:o}function Pl(e,t){return fe(n=>{e==null||e(n),!n.defaultPrevented&&t&&(n.stopPropagation(),n.preventDefault())})}var Zu=!0;function _T(e){const t=e.target;t&&"hasAttribute"in t&&(t.hasAttribute("data-focus-visible")||(Zu=!1))}function CT(e){e.metaKey||e.ctrlKey||e.altKey||(Zu=!0)}var jo=he(function(t){var n=t,{focusable:r=!0,accessibleWhenDisabled:o,autoFocus:i,onFocusVisible:s}=n,a=pe(n,["focusable","accessibleWhenDisabled","autoFocus","onFocusVisible"]);const l=h.useRef(null);h.useEffect(()=>{r&&(bt("mousedown",_T,!0),bt("keydown",CT,!0))},[r]),gp&&h.useEffect(()=>{if(!r)return;const k=l.current;if(!k||!bp(k))return;const O=yT(k);if(!O)return;const G=()=>queueMicrotask(()=>k.focus());for(const I of O)I.addEventListener("mouseup",G);return()=>{for(const I of O)I.removeEventListener("mouseup",G)}},[r]);const c=r&&Ur(a),u=!!c&&!o,[d,f]=h.useState(!1);h.useEffect(()=>{r&&u&&d&&f(!1)},[r,u,d]),h.useEffect(()=>{if(!r||!d)return;const k=l.current;if(!k||typeof IntersectionObserver>"u")return;const O=new IntersectionObserver(()=>{un(k)||f(!1)});return O.observe(k),()=>O.disconnect()},[r,d]);const m=Pl(a.onKeyPressCapture,c),v=Pl(a.onMouseDownCapture,c),g=Pl(a.onClickCapture,c),y=a.onMouseDown,b=fe(k=>{if(y==null||y(k),k.defaultPrevented||!r)return;const O=k.currentTarget;if(!gp||Ev(k)||!sr(O)&&!bp(O))return;let G=!1;const I=()=>{G=!0},z={capture:!0,once:!0};O.addEventListener("focusin",I,z);const U=uT(O.parentElement);vp(U,!0),so(O,"mouseup",()=>{O.removeEventListener("focusin",I,!0),vp(U,!1),!G&&Jv(O)})}),_=(k,O)=>{if(O&&(k.currentTarget=O),!r)return;const G=k.currentTarget;G&&Js(G)&&(s==null||s(k),!k.defaultPrevented&&(G.dataset.focusVisible="true",f(!0)))},x=a.onKeyDownCapture,S=fe(k=>{if(x==null||x(k),k.defaultPrevented||!r||d||k.metaKey||k.altKey||k.ctrlKey||!Lt(k))return;const O=k.currentTarget;so(O,"focusout",()=>_(k,O))}),w=a.onFocusCapture,C=fe(k=>{if(w==null||w(k),k.defaultPrevented||!r)return;if(!Lt(k)){f(!1);return}const O=k.currentTarget,G=()=>_(k,O);Zu||bT(k.target)?so(k.target,"focusout",G):f(!1)}),T=a.onBlur,A=fe(k=>{T==null||T(k),r&&Zr(k)&&f(!1)}),E=h.useContext(Yv),P=fe(k=>{r&&i&&k&&E&&queueMicrotask(()=>{Js(k)||un(k)&&k.focus()})}),L=Lu(l),F=r&&xT(L),M=r&&wT(L),N=a.style,R=h.useMemo(()=>u?D({pointerEvents:"none"},N):N,[u,N]);return a=ee(D({"data-focus-visible":r&&d||void 0,"data-autofocus":i||void 0,"aria-disabled":c||void 0},a),{ref:Qe(l,P,a.ref),style:R,tabIndex:ST(r,u,F,M,a.tabIndex),disabled:M&&u?!0:void 0,contentEditable:c?void 0:a.contentEditable,onKeyPressCapture:m,onClickCapture:g,onMouseDownCapture:v,onMouseDown:b,onKeyDownCapture:S,onFocusCapture:C,onBlur:A}),qt(a)});ue(function(t){const n=jo(t);return de(mT,n)});var TT="div";function AT(e){return e.some(t=>!!t.rowId)}function ET(e){const t=e.target;return t&&!Jn(t)?!1:e.key.length===1&&!e.ctrlKey&&!e.metaKey}function PT(e){return e.key==="Shift"||e.key==="Control"||e.key==="Alt"||e.key==="Meta"}function yp(e,t,n){return fe(r=>{var o;if(t==null||t(r),r.defaultPrevented||r.isPropagationStopped()||!Lt(r)||PT(r)||ET(r))return;const i=e.getState(),s=(o=rr(e,i.activeId))==null?void 0:o.element;if(!s)return;const a=r,l=pe(a,["view"]),c=n==null?void 0:n.current;s!==c&&s.focus(),yC(s,r.type,l)||r.preventDefault(),r.currentTarget.contains(s)&&r.stopPropagation()})}function kT(e){return tT(Fv(Ac(nT(e))))}function MT(e){const[t,n]=h.useState(!1),r=h.useCallback(()=>n(!0),[]),o=e.useState(i=>rr(e,i.activeId));return h.useEffect(()=>{const i=o==null?void 0:o.element;t&&i&&(n(!1),i.focus({preventScroll:!0}))},[o,t]),r}var Va=he(function(t){var n=t,{store:r,composite:o=!0,focusOnMove:i=o,moveOnKeyPress:s=!0}=n,a=pe(n,["store","composite","focusOnMove","moveOnKeyPress"]);const l=EC();r=r||l,Be(r,!1);const c=h.useRef(null),u=h.useRef(null),d=MT(r),f=r.useState("moves"),[,m]=kv(o?r.setBaseElement:null);h.useEffect(()=>{var M;if(!r||!f||!o||!i)return;const{activeId:N}=r.getState(),R=(M=rr(r,N))==null?void 0:M.element;R&&hT(R)},[r,f,o,i]),je(()=>{if(!r||!f||!o)return;const{baseElement:M,activeId:N}=r.getState();if(!(N===null)||!M)return;const k=u.current;u.current=null,k&&Kr(k,{relatedTarget:M}),Js(M)||M.focus()},[r,f,o]);const v=r.useState("activeId"),g=r.useState("virtualFocus");je(()=>{var M;if(!r||!o||!g)return;const N=u.current;if(u.current=null,!N)return;const k=((M=rr(r,v))==null?void 0:M.element)||Yn(N);k!==N&&Kr(N,{relatedTarget:k})},[r,v,g,o]);const y=yp(r,a.onKeyDownCapture,u),b=yp(r,a.onKeyUpCapture,u),_=a.onFocusCapture,x=fe(M=>{if(_==null||_(M),M.defaultPrevented||!r)return;const{virtualFocus:N}=r.getState();if(!N)return;const R=M.relatedTarget,k=iT(M.currentTarget);Lt(M)&&k&&(M.stopPropagation(),u.current=R)}),S=a.onFocus,w=fe(M=>{if(S==null||S(M),M.defaultPrevented||!o||!r)return;const{relatedTarget:N}=M,{virtualFocus:R}=r.getState();R?Lt(M)&&!ri(r,N)&&queueMicrotask(d):Lt(M)&&r.setActiveId(null)}),C=a.onBlurCapture,T=fe(M=>{var N;if(C==null||C(M),M.defaultPrevented||!r)return;const{virtualFocus:R,activeId:k}=r.getState();if(!R)return;const O=(N=rr(r,k))==null?void 0:N.element,G=M.relatedTarget,I=ri(r,G),z=u.current;u.current=null,Lt(M)&&I?(G===O?z&&z!==G&&Kr(z,M):O?Kr(O,M):z&&Kr(z,M),M.stopPropagation()):!ri(r,M.target)&&O&&Kr(O,M)}),A=a.onKeyDown,E=st(s),P=fe(M=>{var N;if(A==null||A(M),M.defaultPrevented||!r||!Lt(M))return;const{orientation:R,renderedItems:k,activeId:O}=r.getState(),G=rr(r,O);if((N=G==null?void 0:G.element)!=null&&N.isConnected)return;const I=R!=="horizontal",z=R!=="vertical",U=AT(k);if((M.key==="ArrowLeft"||M.key==="ArrowRight"||M.key==="Home"||M.key==="End")&&Jn(M.currentTarget))return;const q={ArrowUp:(U||I)&&(()=>{if(U){const j=kT(k);return j==null?void 0:j.id}return r==null?void 0:r.last()}),ArrowRight:(U||z)&&r.first,ArrowDown:(U||I)&&r.first,ArrowLeft:(U||z)&&r.last,Home:r.first,End:r.last,PageUp:r.first,PageDown:r.last}[M.key];if(q){const j=q();if(j!==void 0){if(!E(M))return;M.preventDefault(),r.move(j)}}});a=Ge(a,M=>p.jsx(Hi,{value:r,children:M}),[r]);const L=r.useState(M=>{var N;if(r&&o&&M.virtualFocus)return(N=rr(r,M.activeId))==null?void 0:N.id});a=ee(D({"aria-activedescendant":L},a),{ref:Qe(c,m,a.ref),onKeyDownCapture:y,onKeyUpCapture:b,onFocusCapture:x,onFocus:w,onBlurCapture:T,onKeyDown:P});const F=r.useState(M=>o&&(M.virtualFocus||M.activeId===null));return a=jo(D({focusable:F},a)),a}),RT=ue(function(t){const n=Va(t);return de(TT,n)}),IT="button";function xp(e){if(!e.isTrusted)return!1;const t=e.currentTarget;return e.key==="Enter"?sr(t)||t.tagName==="SUMMARY"||t.tagName==="A":e.key===" "?sr(t)||t.tagName==="SUMMARY"||t.tagName==="INPUT"||t.tagName==="SELECT":!1}var jT=Symbol("command"),Xu=he(function(t){var n=t,{clickOnEnter:r=!0,clickOnSpace:o=!0}=n,i=pe(n,["clickOnEnter","clickOnSpace"]);const s=h.useRef(null),[a,l]=h.useState(!1);h.useEffect(()=>{s.current&&l(sr(s.current))},[]);const[c,u]=h.useState(!1),d=h.useRef(!1),f=Ur(i),[m,v]=Rv(i,jT,!0),g=i.onKeyDown,y=fe(x=>{g==null||g(x);const S=x.currentTarget;if(x.defaultPrevented||m||f||!Lt(x)||Jn(S)||S.isContentEditable)return;const w=r&&x.key==="Enter",C=o&&x.key===" ",T=x.key==="Enter"&&!r,A=x.key===" "&&!o;if(T||A){x.preventDefault();return}if(w||C){const E=xp(x);if(w){if(!E){x.preventDefault();const P=x,L=pe(P,["view"]),F=()=>ap(S,L);mC()?so(S,"keyup",F):queueMicrotask(F)}}else C&&(d.current=!0,E||(x.preventDefault(),u(!0)))}}),b=i.onKeyUp,_=fe(x=>{if(b==null||b(x),x.defaultPrevented||m||f||x.metaKey)return;const S=o&&x.key===" ";if(d.current&&S&&(d.current=!1,!xp(x))){x.preventDefault(),u(!1);const w=x.currentTarget,C=x,T=pe(C,["view"]);queueMicrotask(()=>ap(w,T))}});return i=ee(D(D({"data-active":c||void 0,type:a?"button":void 0},v),i),{ref:Qe(s,i.ref),onKeyDown:y,onKeyUp:_}),i=jo(i),i});ue(function(t){const n=Xu(t);return de(IT,n)});var eb="button",tb=he(function(t){const n=h.useRef(null),r=Lu(n,eb),[o,i]=h.useState(()=>!!r&&sr({tagName:r,type:t.type}));return h.useEffect(()=>{n.current&&i(sr(n.current))},[]),t=ee(D({role:!o&&r!=="a"?"button":void 0},t),{ref:Qe(n,t.ref)}),t=Xu(t),t});ue(function(t){const n=tb(t);return de(eb,n)});var OT="button",DT=Symbol("disclosure"),nb=he(function(t){var n=t,{store:r,toggleOnClick:o=!0}=n,i=pe(n,["store","toggleOnClick"]);const s=Uu();r=r||s,Be(r,!1);const a=h.useRef(null),[l,c]=h.useState(!1),u=r.useState("disclosureElement"),d=r.useState("open");h.useEffect(()=>{let _=u===a.current;u!=null&&u.isConnected||(r==null||r.setDisclosureElement(a.current),_=!0),c(d&&_)},[u,r,d]);const f=i.onClick,m=st(o),[v,g]=Rv(i,DT,!0),y=fe(_=>{f==null||f(_),!_.defaultPrevented&&(v||m(_)&&(r==null||r.setDisclosureElement(_.currentTarget),r==null||r.toggle()))}),b=r.useState("contentElement");return i=ee(D(D({"aria-expanded":l,"aria-controls":b==null?void 0:b.id},g),i),{ref:Qe(a,i.ref),onClick:y}),i=tb(i),i});ue(function(t){const n=nb(t);return de(OT,n)});var NT="button",rb=he(function(t){var n=t,{store:r}=n,o=pe(n,["store"]);const i=La();r=r||i,Be(r,!1);const s=r.useState("contentElement");return o=D({"aria-haspopup":ju(s,"dialog")},o),o=nb(D({store:r},o)),o});ue(function(t){const n=rb(t);return de(NT,n)});var ob=h.createContext(void 0),LT="div",ib=he(function(t){const n=h.useContext(ob),r=Zt(t.id);return je(()=>(n==null||n(r),()=>n==null?void 0:n(void 0)),[n,r]),t=D({id:r,"aria-hidden":!0},t),qt(t)});ue(function(t){const n=ib(t);return de(LT,n)});var FT="div",BT=he(function(t){var n=t,r=pe(n,["store"]);return r=ib(r),r}),VT=ue(function(t){const n=BT(t);return de(FT,n)}),zT="div",sb=he(function(t){const[n,r]=h.useState();return t=Ge(t,o=>p.jsx(ob.Provider,{value:r,children:o}),[]),t=D({role:"group","aria-labelledby":n},t),qt(t)});ue(function(t){const n=sb(t);return de(zT,n)});var $T="div",GT=he(function(t){var n=t,r=pe(n,["store"]);return r=sb(r),r}),UT=ue(function(t){const n=GT(t);return de($T,n)}),HT=h.createContext(!1),WT="span",KT=p.jsx("svg",{display:"block",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,viewBox:"0 0 16 16",height:"1em",width:"1em",children:p.jsx("polyline",{points:"4,8 7,12 12,4"})});function qT(e){return e.checked?e.children||KT:typeof e.children=="function"?e.children:null}var ab=he(function(t){var n=t,{store:r,checked:o}=n,i=pe(n,["store","checked"]);const s=h.useContext(HT);o=o??s;const a=qT({checked:o,children:i.children});return i=ee(D({"aria-hidden":!0},i),{children:a,style:D({width:"1em",height:"1em",pointerEvents:"none"},i.style)}),qt(i)});ue(function(t){const n=ab(t);return de(WT,n)});var ZT="div";function lb(e){const t=e.relatedTarget;return(t==null?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null}function XT(e){const t=lb(e);return t?Je(e.currentTarget,t):!1}var Pc=Symbol("composite-hover");function YT(e){let t=lb(e);if(!t)return!1;do{if(Hn(t,Pc)&&t[Pc])return!0;t=t.parentElement}while(t);return!1}var cb=he(function(t){var n=t,{store:r,focusOnHover:o=!0,blurOnHoverEnd:i=!!o}=n,s=pe(n,["store","focusOnHover","blurOnHoverEnd"]);const a=Ia();r=r||a,Be(r,!1);const l=Bu(),c=s.onMouseMove,u=st(o),d=fe(y=>{if(c==null||c(y),!y.defaultPrevented&&l()&&u(y)){if(!qu(y.currentTarget)){const b=r==null?void 0:r.getState().baseElement;b&&!Js(b)&&b.focus()}r==null||r.setActiveId(y.currentTarget.id)}}),f=s.onMouseLeave,m=st(i),v=fe(y=>{var b;f==null||f(y),!y.defaultPrevented&&l()&&(XT(y)||YT(y)||u(y)&&m(y)&&(r==null||r.setActiveId(null),(b=r==null?void 0:r.getState().baseElement)==null||b.focus()))}),g=h.useCallback(y=>{y&&(y[Pc]=!0)},[]);return s=ee(D({},s),{ref:Qe(g,s.ref),onMouseMove:d,onMouseLeave:v}),qt(s)}),JT=Ro(ue(function(t){const n=cb(t);return de(ZT,n)})),QT="div",Yu=he(function(t){var n=t,{store:r,shouldRegisterItem:o=!0,getItem:i=Sv,element:s}=n,a=pe(n,["store","shouldRegisterItem","getItem","element"]);const l=CC();r=r||l;const c=Zt(a.id),u=h.useRef(s);return h.useEffect(()=>{const d=u.current;if(!c||!d||!o)return;const f=i({id:c,element:d});return r==null?void 0:r.renderItem(f)},[c,o,i,r]),a=ee(D({},a),{ref:Qe(u,a.ref)}),qt(a)});ue(function(t){const n=Yu(t);return de(QT,n)});var e1="button";function t1(e){return Tc(e)?!0:e.tagName==="INPUT"&&!sr(e)}function n1(e,t=!1){const n=e.clientHeight,{top:r}=e.getBoundingClientRect(),o=Math.max(n*.875,n-40)*1.5,i=t?n-o+r:o+r;return e.tagName==="HTML"?i+e.scrollTop:i}function r1(e,t=!1){const{top:n}=e.getBoundingClientRect();return t?n+e.clientHeight:n}function wp(e,t,n,r=!1){var o;if(!t||!n)return;const{renderedItems:i}=t.getState(),s=Tv(e);if(!s)return;const a=n1(s,r);let l,c;for(let u=0;u<i.length;u+=1){const d=l;if(l=n(u),!l)break;if(l===d)continue;const f=(o=rr(t,l))==null?void 0:o.element;if(!f)continue;const v=r1(f,r)-a,g=Math.abs(v);if(r&&v<=0||!r&&v>=0){c!==void 0&&c<g&&(l=d);break}c=g}return l}function o1(e,t){return Lt(e)?!1:ri(t,e.target)}var za=he(function(t){var n=t,{store:r,rowId:o,preventScrollOnKeyDown:i=!1,moveOnKeyPress:s=!0,tabbable:a=!1,getItem:l,"aria-setsize":c,"aria-posinset":u}=n,d=pe(n,["store","rowId","preventScrollOnKeyDown","moveOnKeyPress","tabbable","getItem","aria-setsize","aria-posinset"]);const f=Ia();r=r||f;const m=Zt(d.id),v=h.useRef(null),g=h.useContext(Iv),b=Ur(d)&&!d.accessibleWhenDisabled,{rowId:_,baseElement:x,isActiveItem:S,ariaSetSize:w,ariaPosInSet:C,isTabbable:T}=Dv(r,{rowId(I){if(o)return o;if(I&&g!=null&&g.baseElement&&g.baseElement===I.baseElement)return g.id},baseElement(I){return(I==null?void 0:I.baseElement)||void 0},isActiveItem(I){return!!I&&I.activeId===m},ariaSetSize(I){if(c!=null)return c;if(I&&g!=null&&g.ariaSetSize&&g.baseElement===I.baseElement)return g.ariaSetSize},ariaPosInSet(I){if(u!=null)return u;if(!I||!(g!=null&&g.ariaPosInSet)||g.baseElement!==I.baseElement)return;const z=I.renderedItems.filter(U=>U.rowId===_);return g.ariaPosInSet+z.findIndex(U=>U.id===m)},isTabbable(I){if(!(I!=null&&I.renderedItems.length))return!0;if(I.virtualFocus)return!1;if(a)return!0;if(I.activeId===null)return!1;const z=r==null?void 0:r.item(I.activeId);return z!=null&&z.disabled||!(z!=null&&z.element)?!0:I.activeId===m}}),A=h.useCallback(I=>{var z;const U=ee(D({},I),{id:m||I.id,rowId:_,disabled:!!b,children:(z=I.element)==null?void 0:z.textContent});return l?l(U):U},[m,_,b,l]),E=d.onFocus,P=h.useRef(!1),L=fe(I=>{if(E==null||E(I),I.defaultPrevented||Ev(I)||!m||!r||o1(I,r))return;const{virtualFocus:z,baseElement:U}=r.getState();if(r.setActiveId(m),Tc(I.currentTarget)&&rT(I.currentTarget),!z||!Lt(I)||t1(I.currentTarget)||!(U!=null&&U.isConnected))return;Du()&&I.currentTarget.hasAttribute("data-autofocus")&&I.currentTarget.scrollIntoView({block:"nearest",inline:"nearest"}),P.current=!0,I.relatedTarget===U||ri(r,I.relatedTarget)?oT(U):U.focus()}),F=d.onBlurCapture,M=fe(I=>{if(F==null||F(I),I.defaultPrevented)return;const z=r==null?void 0:r.getState();z!=null&&z.virtualFocus&&P.current&&(P.current=!1,I.preventDefault(),I.stopPropagation())}),N=d.onKeyDown,R=st(i),k=st(s),O=fe(I=>{if(N==null||N(I),I.defaultPrevented||!Lt(I)||!r)return;const{currentTarget:z}=I,U=r.getState(),B=r.item(m),$=!!(B!=null&&B.rowId),H=U.orientation!=="horizontal",q=U.orientation!=="vertical",j=()=>!!($||q||!U.baseElement||!Jn(U.baseElement)),ie={ArrowUp:($||H)&&r.up,ArrowRight:($||q)&&r.next,ArrowDown:($||H)&&r.down,ArrowLeft:($||q)&&r.previous,Home:()=>{if(j())return!$||I.ctrlKey?r==null?void 0:r.first():r==null?void 0:r.previous(-1)},End:()=>{if(j())return!$||I.ctrlKey?r==null?void 0:r.last():r==null?void 0:r.next(-1)},PageUp:()=>wp(z,r,r==null?void 0:r.up,!0),PageDown:()=>wp(z,r,r==null?void 0:r.down)}[I.key];if(ie){if(Tc(z)){const we=dC(z),yt=q&&I.key==="ArrowLeft",ct=q&&I.key==="ArrowRight",Oe=H&&I.key==="ArrowUp",Pt=H&&I.key==="ArrowDown";if(ct||Pt){const{length:Xt}=uC(z);if(we.end!==Xt)return}else if((yt||Oe)&&we.start!==0)return}const Ce=ie();if(R(I)||Ce!==void 0){if(!k(I))return;I.preventDefault(),r.move(Ce)}}}),G=h.useMemo(()=>({id:m,baseElement:x}),[m,x]);return d=Ge(d,I=>p.jsx(PC.Provider,{value:G,children:I}),[G]),d=ee(D({id:m,"data-active-item":S||void 0},d),{ref:Qe(v,d.ref),tabIndex:T?d.tabIndex:-1,onFocus:L,onBlurCapture:M,onKeyDown:O}),d=Xu(d),d=Yu(ee(D({store:r},d),{getItem:A,shouldRegisterItem:m?d.shouldRegisterItem:!1})),qt(ee(D({},d),{"aria-setsize":w,"aria-posinset":C}))}),kc=Ro(ue(function(t){const n=za(t);return de(e1,n)})),i1="div";function Sp(e,t){const n=setTimeout(t,e);return()=>clearTimeout(n)}function s1(e){let t=requestAnimationFrame(()=>{t=requestAnimationFrame(e)});return()=>cancelAnimationFrame(t)}function _p(...e){return e.join(", ").split(", ").reduce((t,n)=>{const r=n.endsWith("ms")?1:1e3,o=Number.parseFloat(n||"0s")*r;return o>t?o:t},0)}function Ju(e,t,n){return!n&&t!==!1&&(!e||!!t)}var $a=he(function(t){var n=t,{store:r,alwaysVisible:o}=n,i=pe(n,["store","alwaysVisible"]);const s=Uu();r=r||s,Be(r,!1);const a=h.useRef(null),l=Zt(i.id),[c,u]=h.useState(null),d=r.useState("open"),f=r.useState("mounted"),m=r.useState("animated"),v=r.useState("contentElement"),g=Xe(r.disclosure,"contentElement");je(()=>{a.current&&(r==null||r.setContentElement(a.current))},[r]),je(()=>{let x;return r==null||r.setState("animated",S=>(x=S,!0)),()=>{x!==void 0&&(r==null||r.setState("animated",x))}},[r]),je(()=>{if(m){if(!(v!=null&&v.isConnected)){u(null);return}return s1(()=>{u(d?"enter":f?"leave":null)})}},[m,v,d,f]),je(()=>{if(!r||!m||!c||!v)return;const x=()=>r==null?void 0:r.setState("animating",!1),S=()=>Dr.flushSync(x);if(c==="leave"&&d||c==="enter"&&!d)return;if(typeof m=="number")return Sp(m,S);const{transitionDuration:w,animationDuration:C,transitionDelay:T,animationDelay:A}=getComputedStyle(v),{transitionDuration:E="0",animationDuration:P="0",transitionDelay:L="0",animationDelay:F="0"}=g?getComputedStyle(g):{},M=_p(T,A,L,F),N=_p(w,C,E,P),R=M+N;if(!R){c==="enter"&&r.setState("animated",!1),x();return}const k=1e3/60,O=Math.max(R-k,0);return Sp(O,S)},[r,m,v,g,d,c]),i=Ge(i,x=>p.jsx(Hu,{value:r,children:x}),[r]);const y=Ju(f,i.hidden,o),b=i.style,_=h.useMemo(()=>y?ee(D({},b),{display:"none"}):b,[y,b]);return i=ee(D({id:l,"data-open":d||void 0,"data-enter":c==="enter"||void 0,"data-leave":c==="leave"||void 0,hidden:y},i),{ref:Qe(l?r.setContentElement:null,a,i.ref),style:_}),qt(i)}),a1=ue(function(t){const n=$a(t);return de(i1,n)});ue(function(t){var n=t,{unmountOnHide:r}=n,o=pe(n,["unmountOnHide"]);const i=Uu(),s=o.store||i;return Xe(s,l=>!r||(l==null?void 0:l.mounted))===!1?null:p.jsx(a1,D({},o))});function ub(e,...t){if(!e)return!1;const n=e.getAttribute("data-backdrop");return n==null?!1:n===""||n==="true"||!t.length?!0:t.some(r=>n===r)}var kl=new WeakMap;function Xi(e,t,n){kl.has(e)||kl.set(e,new Map);const r=kl.get(e),o=r.get(t);if(!o)return r.set(t,n()),()=>{var a;(a=r.get(t))==null||a(),r.delete(t)};const i=n(),s=()=>{i(),o(),r.delete(t)};return r.set(t,s),()=>{r.get(t)===s&&(i(),r.set(t,o))}}function Qu(e,t,n){return Xi(e,t,()=>{const o=e.getAttribute(t);return e.setAttribute(t,n),()=>{o==null?e.removeAttribute(t):e.setAttribute(t,o)}})}function Nr(e,t,n){return Xi(e,t,()=>{const o=t in e,i=e[t];return e[t]=n,()=>{o?e[t]=i:delete e[t]}})}function Mc(e,t){return e?Xi(e,"style",()=>{const r=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=r}}):()=>{}}function l1(e,t,n){return e?Xi(e,t,()=>{const o=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{o?e.style.setProperty(t,o):e.style.removeProperty(t)}}):()=>{}}var c1=["SCRIPT","STYLE"];function Rc(e){return`__ariakit-dialog-snapshot-${e}`}function u1(e,t){const n=He(t),r=Rc(e);if(!n.body[r])return!0;do{if(t===n.body)return!1;if(t[r])return!0;if(!t.parentElement)return!1;t=t.parentElement}while(!0)}function d1(e,t,n){return c1.includes(t.tagName)||!u1(e,t)?!1:!n.some(r=>r&&Je(t,r))}function ed(e,t,n,r){for(let o of t){if(!(o!=null&&o.isConnected))continue;const i=t.some(l=>!l||l===o?!1:l.contains(o)),s=He(o),a=o;for(;o.parentElement&&o!==s.body;){if(r==null||r(o.parentElement,a),!i)for(const l of o.parentElement.children)d1(e,l,t)&&n(l,a);o=o.parentElement}}}function f1(e,t){const{body:n}=He(t[0]),r=[];return ed(e,t,i=>{r.push(Nr(i,Rc(e),!0))}),At(Nr(n,Rc(e),!0),()=>{for(const i of r)i()})}function go(e="",t=!1){return`__ariakit-dialog-${t?"ancestor":"outside"}${e?`-${e}`:""}`}function p1(e,t=""){return At(Nr(e,go(),!0),Nr(e,go(t),!0))}function db(e,t=""){return At(Nr(e,go("",!0),!0),Nr(e,go(t,!0),!0))}function td(e,t){const n=go(t,!0);if(e[n])return!0;const r=go(t);do{if(e[r])return!0;if(!e.parentElement)return!1;e=e.parentElement}while(!0)}function Cp(e,t){const n=[],r=t.map(i=>i==null?void 0:i.id);return ed(e,t,i=>{ub(i,...r)||n.unshift(p1(i,e))},(i,s)=>{s.hasAttribute("data-dialog")&&s.id!==e||n.unshift(db(i,e))}),()=>{for(const i of n)i()}}var h1="div",m1=["a","button","details","dialog","div","form","h1","h2","h3","h4","h5","h6","header","img","input","label","li","nav","ol","p","section","select","span","summary","textarea","ul","svg"];he(function(t){return t});var Qs=ue(function(t){return de(h1,t)});Object.assign(Qs,m1.reduce((e,t)=>(e[t]=ue(function(r){return de(t,r)}),e),{}));function g1({store:e,backdrop:t,alwaysVisible:n,hidden:r}){const o=h.useRef(null),i=Uv({disclosure:e}),s=Xe(e,"contentElement");h.useEffect(()=>{const c=o.current,u=s;c&&u&&(c.style.zIndex=getComputedStyle(u).zIndex)},[s]),je(()=>{const c=s==null?void 0:s.id;if(!c)return;const u=o.current;if(u)return db(u,c)},[s]);const a=$a({ref:o,store:i,role:"presentation","data-backdrop":(s==null?void 0:s.id)||"",alwaysVisible:n,hidden:r??void 0,style:{position:"fixed",top:0,right:0,bottom:0,left:0}});if(!t)return null;if(h.isValidElement(t))return p.jsx(Qs,ee(D({},a),{render:t}));const l=typeof t!="boolean"?t:"div";return p.jsx(Qs,ee(D({},a),{render:p.jsx(l,{})}))}function v1(e,...t){if(!e)return!1;const n=e.getAttribute("data-focus-trap");return n==null?!1:t.length?n===""?!1:t.some(r=>n===r):!0}function b1(e){return Qu(e,"aria-hidden","true")}function fb(){return"inert"in HTMLElement.prototype}function pb(e,t){if(!("style"in e))return Os;if(fb())return Nr(e,"inert",!0);const r=Zi(e,!0).map(o=>{if(t!=null&&t.some(s=>s&&Je(s,o)))return Os;const i=Xi(o,"focus",()=>(o.focus=Os,()=>{delete o.focus}));return At(Qu(o,"tabindex","-1"),i)});return At(...r,b1(e),Mc(e,{pointerEvents:"none",userSelect:"none",cursor:"default"}))}function y1(e,t){const n=[],r=t.map(i=>i==null?void 0:i.id);return ed(e,t,i=>{ub(i,...r)||v1(i,...r)||n.unshift(pb(i,t))},i=>{i.hasAttribute("role")&&(t.some(s=>s&&Je(s,i))||n.unshift(Qu(i,"role","none")))}),()=>{for(const i of n)i()}}function x1({attribute:e,contentId:t,contentElement:n,enabled:r}){const[o,i]=Mv(),s=h.useCallback(()=>{if(!r||!n)return!1;const{body:a}=He(n),l=a.getAttribute(e);return!l||l===t},[o,r,n,e,t]);return h.useEffect(()=>{if(!r||!t||!n)return;const{body:a}=He(n);if(s())return a.setAttribute(e,t),()=>a.removeAttribute(e);const l=new MutationObserver(()=>Dr.flushSync(i));return l.observe(a,{attributeFilter:[e]}),()=>l.disconnect()},[o,r,t,n,s,e]),s}function w1(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function S1(e,t,n){const r=x1({attribute:"data-dialog-prevent-body-scroll",contentElement:e,contentId:t,enabled:n});h.useEffect(()=>{if(!r()||!e)return;const o=He(e),i=_v(e),{documentElement:s,body:a}=o,l=s.style.getPropertyValue("--scrollbar-width"),c=l?Number.parseInt(l):i.innerWidth-s.clientWidth,u=()=>l1(s,"--scrollbar-width",`${c}px`),d=w1(s),f=()=>Mc(a,{overflow:"hidden",[d]:`${c}px`}),m=()=>{var g,y;const{scrollX:b,scrollY:_,visualViewport:x}=i,S=(g=x==null?void 0:x.offsetLeft)!=null?g:0,w=(y=x==null?void 0:x.offsetTop)!=null?y:0,C=Mc(a,{position:"fixed",overflow:"hidden",top:`${-(_-Math.floor(w))}px`,left:`${-(b-Math.floor(S))}px`,right:"0",[d]:`${c}px`});return()=>{C(),i.scrollTo({left:b,top:_,behavior:"instant"})}},v=Ou()&&!gC();return At(u(),v?m():f())},[r,e])}var Tp=h.createContext({});function _1(e){const t=h.useContext(Tp),[n,r]=h.useState([]),o=h.useCallback(a=>{var l;return r(c=>[...c,a]),At((l=t.add)==null?void 0:l.call(t,a),()=>{r(c=>c.filter(u=>u!==a))})},[t]);je(()=>rt(e,["open","contentElement"],a=>{var l;if(a.open&&a.contentElement)return(l=t.add)==null?void 0:l.call(t,e)}),[e,t]);const i=h.useMemo(()=>({store:e,add:o}),[e,o]);return{wrapElement:h.useCallback(a=>p.jsx(Tp.Provider,{value:i,children:a}),[i]),nestedDialogs:n}}function C1(e){const t=h.useRef();return h.useEffect(()=>{if(!e){t.current=null;return}return bt("mousedown",r=>{t.current=r.target},!0)},[e]),t}function T1(e){return e.tagName==="HTML"?!0:Je(He(e).body,e)}function A1(e,t){if(!e)return!1;if(Je(e,t))return!0;const n=t.getAttribute("aria-activedescendant");if(n){const r=He(e).getElementById(n);if(r)return Je(e,r)}return!1}function E1(e,t){if(!("clientY"in e))return!1;const n=t.getBoundingClientRect();return n.width===0||n.height===0?!1:n.top<=e.clientY&&e.clientY<=n.top+n.height&&n.left<=e.clientX&&e.clientX<=n.left+n.width}function Ml({store:e,type:t,listener:n,capture:r,domReady:o}){const i=fe(n),s=Xe(e,"open"),a=h.useRef(!1);je(()=>{if(!s||!o)return;const{contentElement:l}=e.getState();if(!l)return;const c=()=>{a.current=!0};return l.addEventListener("focusin",c,!0),()=>l.removeEventListener("focusin",c,!0)},[e,s,o]),h.useEffect(()=>s?bt(t,c=>{const{contentElement:u,disclosureElement:d}=e.getState(),f=c.target;!u||!f||!T1(f)||Je(u,f)||A1(d,f)||f.hasAttribute("data-focus-trap")||E1(c,u)||a.current&&!td(f,u.id)||vT(f)||i(c)},r):void 0,[s,r])}function Rl(e,t){return typeof e=="function"?e(t):!!e}function P1(e,t,n){const r=Xe(e,"open"),o=C1(r),i={store:e,domReady:n,capture:!0};Ml(ee(D({},i),{type:"click",listener:s=>{const{contentElement:a}=e.getState(),l=o.current;l&&Cv(l)&&td(l,a==null?void 0:a.id)&&Rl(t,s)&&e.hide()}})),Ml(ee(D({},i),{type:"focusin",listener:s=>{const{contentElement:a}=e.getState();a&&s.target!==He(a)&&Rl(t,s)&&e.hide()}})),Ml(ee(D({},i),{type:"contextmenu",listener:s=>{Rl(t,s)&&e.hide()}}))}function k1(e,t){const r=He(e).createElement("button");return r.type="button",r.tabIndex=-1,r.textContent="Dismiss popup",Object.assign(r.style,{border:"0px",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0px",position:"absolute",whiteSpace:"nowrap",width:"1px"}),r.addEventListener("click",t),e.prepend(r),()=>{r.removeEventListener("click",t),r.remove()}}var M1="div",hb=he(function(t){var n=t,{autoFocusOnShow:r=!0}=n,o=pe(n,["autoFocusOnShow"]);return o=Ge(o,i=>p.jsx(Yv.Provider,{value:r,children:i}),[r]),o});ue(function(t){const n=hb(t);return de(M1,n)});var Ap=h.createContext(0);function R1({level:e,children:t}){const n=h.useContext(Ap),r=Math.max(Math.min(e||n+1,6),1);return p.jsx(Ap.Provider,{value:r,children:t})}var I1="span",mb=he(function(t){return t=ee(D({},t),{style:D({border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},t.style)}),t});ue(function(t){const n=mb(t);return de(I1,n)});var j1="span",O1=he(function(t){return t=ee(D({"data-focus-trap":"",tabIndex:0,"aria-hidden":!0},t),{style:D({position:"fixed",top:0,left:0},t.style)}),t=mb(t),t}),bs=ue(function(t){const n=O1(t);return de(j1,n)}),Ep=h.createContext(null),D1="div";function N1(e){return He(e).body}function L1(e,t){return t?typeof t=="function"?t(e):t:He(e).createElement("div")}function F1(e="id"){return`${e?`${e}-`:""}${Math.random().toString(36).slice(2,8)}`}function Qn(e){queueMicrotask(()=>{e==null||e.focus()})}var gb=he(function(t){var n=t,{preserveTabOrder:r,preserveTabOrderAnchor:o,portalElement:i,portalRef:s,portal:a=!0}=n,l=pe(n,["preserveTabOrder","preserveTabOrderAnchor","portalElement","portalRef","portal"]);const c=h.useRef(null),u=Qe(c,l.ref),d=h.useContext(Ep),[f,m]=h.useState(null),[v,g]=h.useState(null),y=h.useRef(null),b=h.useRef(null),_=h.useRef(null),x=h.useRef(null);return je(()=>{const S=c.current;if(!S||!a){m(null);return}const w=L1(S,i);if(!w){m(null);return}const C=w.isConnected;if(C||(d||N1(S)).appendChild(w),w.id||(w.id=S.id?`portal/${S.id}`:F1()),m(w),Cc(s,w),!C)return()=>{w.remove(),Cc(s,null)}},[a,i,d,s]),je(()=>{if(!a||!r||!o)return;const w=He(o).createElement("span");return w.style.position="fixed",o.insertAdjacentElement("afterend",w),g(w),()=>{w.remove(),g(null)}},[a,r,o]),h.useEffect(()=>{if(!f||!r)return;let S=0;const w=C=>{if(!Zr(C))return;const T=C.type==="focusin";if(cancelAnimationFrame(S),T)return pT(f);S=requestAnimationFrame(()=>{fT(f,!0)})};return f.addEventListener("focusin",w,!0),f.addEventListener("focusout",w,!0),()=>{cancelAnimationFrame(S),f.removeEventListener("focusin",w,!0),f.removeEventListener("focusout",w,!0)}},[f,r]),l=Ge(l,S=>{if(S=p.jsx(Ep.Provider,{value:f||d,children:S}),!a)return S;if(!f)return p.jsx("span",{ref:u,id:l.id,style:{position:"fixed"},hidden:!0});S=p.jsxs(p.Fragment,{children:[r&&f&&p.jsx(bs,{ref:b,"data-focus-trap":l.id,className:"__focus-trap-inner-before",onFocus:C=>{Zr(C,f)?Qn(El()):Qn(y.current)}}),S,r&&f&&p.jsx(bs,{ref:_,"data-focus-trap":l.id,className:"__focus-trap-inner-after",onFocus:C=>{Zr(C,f)?Qn(mp()):Qn(x.current)}})]}),f&&(S=Dr.createPortal(S,f));let w=p.jsxs(p.Fragment,{children:[r&&f&&p.jsx(bs,{ref:y,"data-focus-trap":l.id,className:"__focus-trap-outer-before",onFocus:C=>{!(C.relatedTarget===x.current)&&Zr(C,f)?Qn(b.current):Qn(mp())}}),r&&p.jsx("span",{"aria-owns":f==null?void 0:f.id,style:{position:"fixed"}}),r&&f&&p.jsx(bs,{ref:x,"data-focus-trap":l.id,className:"__focus-trap-outer-after",onFocus:C=>{if(Zr(C,f))Qn(_.current);else{const T=El();if(T===b.current){requestAnimationFrame(()=>{var A;return(A=El())==null?void 0:A.focus()});return}Qn(T)}}})]});return v&&r&&(w=Dr.createPortal(w,v)),p.jsxs(p.Fragment,{children:[w,S]})},[f,d,a,l.id,r,v]),l=ee(D({},l),{ref:u}),l});ue(function(t){const n=gb(t);return de(D1,n)});var B1="div",Pp=Du();function V1(e){const t=Yn();return!t||e&&Je(e,t)?!1:!!un(t)}function kp(e,t=!1){if(!e)return null;const n="current"in e?e.current:e;return n?t?un(n)?n:null:n:null}var vb=he(function(t){var n=t,{store:r,open:o,onClose:i,focusable:s=!0,modal:a=!0,portal:l=!!a,backdrop:c=!!a,hideOnEscape:u=!0,hideOnInteractOutside:d=!0,getPersistentElements:f,preventBodyScroll:m=!!a,autoFocusOnShow:v=!0,autoFocusOnHide:g=!0,initialFocus:y,finalFocus:b,unmountOnHide:_,unstable_treeSnapshotKey:x}=n,S=pe(n,["store","open","onClose","focusable","modal","portal","backdrop","hideOnEscape","hideOnInteractOutside","getPersistentElements","preventBodyScroll","autoFocusOnShow","autoFocusOnHide","initialFocus","finalFocus","unmountOnHide","unstable_treeSnapshotKey"]);const w=La(),C=h.useRef(null),T=GC({store:r||w,open:o,setOpen(oe){if(oe)return;const ye=C.current;if(!ye)return;const nt=new Event("close",{bubbles:!1,cancelable:!0});i&&ye.addEventListener("close",i,{once:!0}),ye.dispatchEvent(nt),nt.defaultPrevented&&T.setOpen(!0)}}),{portalRef:A,domReady:E}=Fu(l,S.portalRef),P=S.preserveTabOrder,L=Xe(T,oe=>P&&!a&&oe.mounted),F=Zt(S.id),M=Xe(T,"open"),N=Xe(T,"mounted"),R=Xe(T,"contentElement"),k=Ju(N,S.hidden,S.alwaysVisible);S1(R,F,m&&!k),P1(T,d,E);const{wrapElement:O,nestedDialogs:G}=_1(T);S=Ge(S,O,[O]),je(()=>{if(!M)return;const oe=C.current,ye=Yn(oe,!0);ye&&ye.tagName!=="BODY"&&(oe&&Je(oe,ye)||T.setDisclosureElement(ye))},[T,M]),Pp&&h.useEffect(()=>{if(!N)return;const{disclosureElement:oe}=T.getState();if(!oe||!sr(oe))return;const ye=()=>{let nt=!1;const Se=()=>{nt=!0},pt={capture:!0,once:!0};oe.addEventListener("focusin",Se,pt),so(oe,"mouseup",()=>{oe.removeEventListener("focusin",Se,!0),!nt&&Jv(oe)})};return oe.addEventListener("mousedown",ye),()=>{oe.removeEventListener("mousedown",ye)}},[T,N]),h.useEffect(()=>{if(!N||!E)return;const oe=C.current;if(!oe)return;const ye=_v(oe),nt=ye.visualViewport||ye,Se=()=>{var pt,kt;const Nn=(kt=(pt=ye.visualViewport)==null?void 0:pt.height)!=null?kt:ye.innerHeight;oe.style.setProperty("--dialog-viewport-height",`${Nn}px`)};return Se(),nt.addEventListener("resize",Se),()=>{nt.removeEventListener("resize",Se)}},[N,E]),h.useEffect(()=>{if(!a||!N||!E)return;const oe=C.current;if(!(!oe||oe.querySelector("[data-dialog-dismiss]")))return k1(oe,T.hide)},[T,a,N,E]),je(()=>{if(!fb()||M||!N||!E)return;const oe=C.current;if(oe)return pb(oe)},[M,N,E]);const I=M&&E;je(()=>{if(!F||!I)return;const oe=C.current;return f1(F,[oe])},[F,I,x]);const z=fe(f);je(()=>{if(!F||!I)return;const{disclosureElement:oe}=T.getState(),ye=C.current,nt=z()||[],Se=[ye,...nt,...G.map(pt=>pt.getState().contentElement)];return a?At(Cp(F,Se),y1(F,Se)):Cp(F,[oe,...Se])},[F,T,I,z,G,a,x]);const U=!!v,B=st(v),[$,H]=h.useState(!1);h.useEffect(()=>{if(!M||!U||!E||!(R!=null&&R.isConnected))return;const oe=kp(y,!0)||R.querySelector("[data-autofocus=true],[autofocus]")||aT(R,!0,l&&L)||R,ye=un(oe);B(ye?oe:null)&&(H(!0),queueMicrotask(()=>{oe.focus(),Pp&&oe.scrollIntoView({block:"nearest",inline:"nearest"})}))},[M,U,E,R,y,l,L,B]);const q=!!g,j=st(g),[X,ie]=h.useState(!1);h.useEffect(()=>{if(M)return ie(!0),()=>ie(!1)},[M]);const Ce=h.useCallback((oe,ye=!0)=>{const{disclosureElement:nt}=T.getState();if(V1(oe))return;let Se=kp(b)||nt;if(Se!=null&&Se.id){const kt=He(Se),Nn=`[aria-activedescendant="${Se.id}"]`,yn=kt.querySelector(Nn);yn&&(Se=yn)}if(Se&&!un(Se)){const kt=Se.closest("[data-dialog]");if(kt!=null&&kt.id){const Nn=He(kt),yn=`[aria-controls~="${kt.id}"]`,Wr=Nn.querySelector(yn);Wr&&(Se=Wr)}}const pt=Se&&un(Se);if(!pt&&ye){requestAnimationFrame(()=>Ce(oe,!1));return}j(pt?Se:null)&&pt&&(Se==null||Se.focus())},[T,b,j]),we=h.useRef(!1);je(()=>{if(M||!X||!q)return;const oe=C.current;we.current=!0,Ce(oe)},[M,X,E,q,Ce]),h.useEffect(()=>{if(!X||!q)return;const oe=C.current;return()=>{if(we.current){we.current=!1;return}Ce(oe)}},[X,q,Ce]);const yt=st(u);h.useEffect(()=>!E||!N?void 0:bt("keydown",ye=>{if(ye.key!=="Escape"||ye.defaultPrevented)return;const nt=C.current;if(!nt||td(nt))return;const Se=ye.target;if(!Se)return;const{disclosureElement:pt}=T.getState();!!(Se.tagName==="BODY"||Je(nt,Se)||!pt||Je(pt,Se))&&yt(ye)&&T.hide()},!0),[T,E,N,yt]),S=Ge(S,oe=>p.jsx(R1,{level:a?1:void 0,children:oe}),[a]);const ct=S.hidden,Oe=S.alwaysVisible;S=Ge(S,oe=>c?p.jsxs(p.Fragment,{children:[p.jsx(g1,{store:T,backdrop:c,hidden:ct,alwaysVisible:Oe}),oe]}):oe,[T,c,ct,Oe]);const[Pt,Xt]=h.useState(),[tt,bn]=h.useState();return S=Ge(S,oe=>p.jsx(Hu,{value:T,children:p.jsx(KC.Provider,{value:Xt,children:p.jsx(qC.Provider,{value:bn,children:oe})})}),[T]),S=ee(D({id:F,"data-dialog":"",role:"dialog",tabIndex:s?-1:void 0,"aria-labelledby":Pt,"aria-describedby":tt},S),{ref:Qe(C,S.ref)}),S=hb(ee(D({},S),{autoFocusOnShow:$})),S=$a(D({store:T},S)),S=jo(ee(D({},S),{focusable:s})),S=gb(ee(D({portal:l},S),{portalRef:A,preserveTabOrder:L})),S});function Yi(e,t=La){return ue(function(r){const o=t(),i=r.store||o;return Xe(i,a=>!r.unmountOnHide||(a==null?void 0:a.mounted)||!!r.open)?p.jsx(e,D({},r)):null})}Yi(ue(function(t){const n=vb(t);return de(B1,n)}),La);const ar=Math.min,Vt=Math.max,ea=Math.round,ys=Math.floor,Tn=e=>({x:e,y:e}),z1={left:"right",right:"left",bottom:"top",top:"bottom"},$1={start:"end",end:"start"};function Ic(e,t,n){return Vt(e,ar(t,n))}function lr(e,t){return typeof e=="function"?e(t):e}function Wn(e){return e.split("-")[0]}function Oo(e){return e.split("-")[1]}function nd(e){return e==="x"?"y":"x"}function rd(e){return e==="y"?"height":"width"}function cr(e){return["top","bottom"].includes(Wn(e))?"y":"x"}function od(e){return nd(cr(e))}function G1(e,t,n){n===void 0&&(n=!1);const r=Oo(e),o=od(e),i=rd(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=ta(s)),[s,ta(s)]}function U1(e){const t=ta(e);return[jc(e),t,jc(t)]}function jc(e){return e.replace(/start|end/g,t=>$1[t])}function H1(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function W1(e,t,n,r){const o=Oo(e);let i=H1(Wn(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(jc)))),i}function ta(e){return e.replace(/left|right|bottom|top/g,t=>z1[t])}function K1(e){return{top:0,right:0,bottom:0,left:0,...e}}function bb(e){return typeof e!="number"?K1(e):{top:e,right:e,bottom:e,left:e}}function na(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Mp(e,t,n){let{reference:r,floating:o}=e;const i=cr(t),s=od(t),a=rd(s),l=Wn(t),c=i==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[a]/2-o[a]/2;let m;switch(l){case"top":m={x:u,y:r.y-o.height};break;case"bottom":m={x:u,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-o.width,y:d};break;default:m={x:r.x,y:r.y}}switch(Oo(t)){case"start":m[s]-=f*(n&&c?-1:1);break;case"end":m[s]+=f*(n&&c?-1:1);break}return m}const q1=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Mp(c,r,l),f=r,m={},v=0;for(let g=0;g<a.length;g++){const{name:y,fn:b}=a[g],{x:_,y:x,data:S,reset:w}=await b({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:m,rects:c,platform:s,elements:{reference:e,floating:t}});u=_??u,d=x??d,m={...m,[y]:{...m[y],...S}},w&&v<=50&&(v++,typeof w=="object"&&(w.placement&&(f=w.placement),w.rects&&(c=w.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):w.rects),{x:u,y:d}=Mp(c,f,l)),g=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:m}};async function id(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:m=0}=lr(t,e),v=bb(m),y=a[f?d==="floating"?"reference":"floating":d],b=na(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(y)))==null||n?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),_=d==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),S=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},w=na(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:_,offsetParent:x,strategy:l}):_);return{top:(b.top-w.top+v.top)/S.y,bottom:(w.bottom-b.bottom+v.bottom)/S.y,left:(b.left-w.left+v.left)/S.x,right:(w.right-b.right+v.right)/S.x}}const Z1=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=lr(e,t)||{};if(c==null)return{};const d=bb(u),f={x:n,y:r},m=od(o),v=rd(m),g=await s.getDimensions(c),y=m==="y",b=y?"top":"left",_=y?"bottom":"right",x=y?"clientHeight":"clientWidth",S=i.reference[v]+i.reference[m]-f[m]-i.floating[v],w=f[m]-i.reference[m],C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let T=C?C[x]:0;(!T||!await(s.isElement==null?void 0:s.isElement(C)))&&(T=a.floating[x]||i.floating[v]);const A=S/2-w/2,E=T/2-g[v]/2-1,P=ar(d[b],E),L=ar(d[_],E),F=P,M=T-g[v]-L,N=T/2-g[v]/2+A,R=Ic(F,N,M),k=!l.arrow&&Oo(o)!=null&&N!==R&&i.reference[v]/2-(N<F?P:L)-g[v]/2<0,O=k?N<F?N-F:N-M:0;return{[m]:f[m]+O,data:{[m]:R,centerOffset:N-R-O,...k&&{alignmentOffset:O}},reset:k}}}),X1=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:g=!0,...y}=lr(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const b=Wn(o),_=cr(a),x=Wn(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),w=f||(x||!g?[ta(a)]:U1(a)),C=v!=="none";!f&&C&&w.push(...W1(a,g,v,S));const T=[a,...w],A=await id(t,y),E=[];let P=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&E.push(A[b]),d){const N=G1(o,s,S);E.push(A[N[0]],A[N[1]])}if(P=[...P,{placement:o,overflows:E}],!E.every(N=>N<=0)){var L,F;const N=(((L=i.flip)==null?void 0:L.index)||0)+1,R=T[N];if(R)return{data:{index:N,overflows:P},reset:{placement:R}};let k=(F=P.filter(O=>O.overflows[0]<=0).sort((O,G)=>O.overflows[1]-G.overflows[1])[0])==null?void 0:F.placement;if(!k)switch(m){case"bestFit":{var M;const O=(M=P.filter(G=>{if(C){const I=cr(G.placement);return I===_||I==="y"}return!0}).map(G=>[G.placement,G.overflows.filter(I=>I>0).reduce((I,z)=>I+z,0)]).sort((G,I)=>G[1]-I[1])[0])==null?void 0:M[0];O&&(k=O);break}case"initialPlacement":k=a;break}if(o!==k)return{reset:{placement:k}}}return{}}}};async function Y1(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Wn(n),a=Oo(n),l=cr(n)==="y",c=["left","top"].includes(s)?-1:1,u=i&&l?-1:1,d=lr(t,e);let{mainAxis:f,crossAxis:m,alignmentAxis:v}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof v=="number"&&(m=a==="end"?v*-1:v),l?{x:m*u,y:f*c}:{x:f*c,y:m*u}}const J1=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await Y1(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},Q1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:y=>{let{x:b,y:_}=y;return{x:b,y:_}}},...l}=lr(e,t),c={x:n,y:r},u=await id(t,l),d=cr(Wn(o)),f=nd(d);let m=c[f],v=c[d];if(i){const y=f==="y"?"top":"left",b=f==="y"?"bottom":"right",_=m+u[y],x=m-u[b];m=Ic(_,m,x)}if(s){const y=d==="y"?"top":"left",b=d==="y"?"bottom":"right",_=v+u[y],x=v-u[b];v=Ic(_,v,x)}const g=a.fn({...t,[f]:m,[d]:v});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[f]:i,[d]:s}}}}}},eA=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=lr(e,t),u={x:n,y:r},d=cr(o),f=nd(d);let m=u[f],v=u[d];const g=lr(a,t),y=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const x=f==="y"?"height":"width",S=i.reference[f]-i.floating[x]+y.mainAxis,w=i.reference[f]+i.reference[x]-y.mainAxis;m<S?m=S:m>w&&(m=w)}if(c){var b,_;const x=f==="y"?"width":"height",S=["top","left"].includes(Wn(o)),w=i.reference[d]-i.floating[x]+(S&&((b=s.offset)==null?void 0:b[d])||0)+(S?0:y.crossAxis),C=i.reference[d]+i.reference[x]+(S?0:((_=s.offset)==null?void 0:_[d])||0)-(S?y.crossAxis:0);v<w?v=w:v>C&&(v=C)}return{[f]:m,[d]:v}}}},tA=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...c}=lr(e,t),u=await id(t,c),d=Wn(o),f=Oo(o),m=cr(o)==="y",{width:v,height:g}=i.floating;let y,b;d==="top"||d==="bottom"?(y=d,b=f===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(b=d,y=f==="end"?"top":"bottom");const _=g-u.top-u.bottom,x=v-u.left-u.right,S=ar(g-u[y],_),w=ar(v-u[b],x),C=!t.middlewareData.shift;let T=S,A=w;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(T=_),C&&!f){const P=Vt(u.left,0),L=Vt(u.right,0),F=Vt(u.top,0),M=Vt(u.bottom,0);m?A=v-2*(P!==0||L!==0?P+L:Vt(u.left,u.right)):T=g-2*(F!==0||M!==0?F+M:Vt(u.top,u.bottom))}await l({...t,availableWidth:A,availableHeight:T});const E=await s.getDimensions(a.floating);return v!==E.width||g!==E.height?{reset:{rects:!0}}:{}}}};function Ga(){return typeof window<"u"}function Do(e){return yb(e)?(e.nodeName||"").toLowerCase():"#document"}function zt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Dn(e){var t;return(t=(yb(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function yb(e){return Ga()?e instanceof Node||e instanceof zt(e).Node:!1}function pn(e){return Ga()?e instanceof Element||e instanceof zt(e).Element:!1}function Mn(e){return Ga()?e instanceof HTMLElement||e instanceof zt(e).HTMLElement:!1}function Rp(e){return!Ga()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof zt(e).ShadowRoot}function Ji(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=hn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function nA(e){return["table","td","th"].includes(Do(e))}function Ua(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function sd(e){const t=ad(),n=pn(e)?hn(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function rA(e){let t=ur(e);for(;Mn(t)&&!vo(t);){if(sd(t))return t;if(Ua(t))return null;t=ur(t)}return null}function ad(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function vo(e){return["html","body","#document"].includes(Do(e))}function hn(e){return zt(e).getComputedStyle(e)}function Ha(e){return pn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ur(e){if(Do(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Rp(e)&&e.host||Dn(e);return Rp(t)?t.host:t}function xb(e){const t=ur(e);return vo(t)?e.ownerDocument?e.ownerDocument.body:e.body:Mn(t)&&Ji(t)?t:xb(t)}function vi(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=xb(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=zt(o);if(i){const a=Oc(s);return t.concat(s,s.visualViewport||[],Ji(o)?o:[],a&&n?vi(a):[])}return t.concat(o,vi(o,[],n))}function Oc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function wb(e){const t=hn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Mn(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=ea(n)!==i||ea(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function ld(e){return pn(e)?e:e.contextElement}function ao(e){const t=ld(e);if(!Mn(t))return Tn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=wb(t);let s=(i?ea(n.width):n.width)/r,a=(i?ea(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const oA=Tn(0);function Sb(e){const t=zt(e);return!ad()||!t.visualViewport?oA:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function iA(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==zt(e)?!1:t}function Lr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=ld(e);let s=Tn(1);t&&(r?pn(r)&&(s=ao(r)):s=ao(e));const a=iA(i,n,r)?Sb(i):Tn(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(i){const f=zt(i),m=r&&pn(r)?zt(r):r;let v=f,g=Oc(v);for(;g&&r&&m!==v;){const y=ao(g),b=g.getBoundingClientRect(),_=hn(g),x=b.left+(g.clientLeft+parseFloat(_.paddingLeft))*y.x,S=b.top+(g.clientTop+parseFloat(_.paddingTop))*y.y;l*=y.x,c*=y.y,u*=y.x,d*=y.y,l+=x,c+=S,v=zt(g),g=Oc(v)}}return na({width:u,height:d,x:l,y:c})}function cd(e,t){const n=Ha(e).scrollLeft;return t?t.left+n:Lr(Dn(e)).left+n}function _b(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:cd(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function sA(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=Dn(r),a=t?Ua(t.floating):!1;if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Tn(1);const u=Tn(0),d=Mn(r);if((d||!d&&!i)&&((Do(r)!=="body"||Ji(s))&&(l=Ha(r)),Mn(r))){const m=Lr(r);c=ao(r),u.x=m.x+r.clientLeft,u.y=m.y+r.clientTop}const f=s&&!d&&!i?_b(s,l,!0):Tn(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}}function aA(e){return Array.from(e.getClientRects())}function lA(e){const t=Dn(e),n=Ha(e),r=e.ownerDocument.body,o=Vt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Vt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+cd(e);const a=-n.scrollTop;return hn(r).direction==="rtl"&&(s+=Vt(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function cA(e,t){const n=zt(e),r=Dn(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const c=ad();(!c||c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}function uA(e,t){const n=Lr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Mn(e)?ao(e):Tn(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return{width:s,height:a,x:l,y:c}}function Ip(e,t,n){let r;if(t==="viewport")r=cA(e,n);else if(t==="document")r=lA(Dn(e));else if(pn(t))r=uA(t,n);else{const o=Sb(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return na(r)}function Cb(e,t){const n=ur(e);return n===t||!pn(n)||vo(n)?!1:hn(n).position==="fixed"||Cb(n,t)}function dA(e,t){const n=t.get(e);if(n)return n;let r=vi(e,[],!1).filter(a=>pn(a)&&Do(a)!=="body"),o=null;const i=hn(e).position==="fixed";let s=i?ur(e):e;for(;pn(s)&&!vo(s);){const a=hn(s),l=sd(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Ji(s)&&!l&&Cb(e,s))?r=r.filter(u=>u!==s):o=a,s=ur(s)}return t.set(e,r),r}function fA(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Ua(t)?[]:dA(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((c,u)=>{const d=Ip(t,u,o);return c.top=Vt(d.top,c.top),c.right=ar(d.right,c.right),c.bottom=ar(d.bottom,c.bottom),c.left=Vt(d.left,c.left),c},Ip(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function pA(e){const{width:t,height:n}=wb(e);return{width:t,height:n}}function hA(e,t,n){const r=Mn(t),o=Dn(t),i=n==="fixed",s=Lr(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Tn(0);if(r||!r&&!i)if((Do(t)!=="body"||Ji(o))&&(a=Ha(t)),r){const f=Lr(t,!0,i,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else o&&(l.x=cd(o));const c=o&&!r&&!i?_b(o,a):Tn(0),u=s.left+a.scrollLeft-l.x-c.x,d=s.top+a.scrollTop-l.y-c.y;return{x:u,y:d,width:s.width,height:s.height}}function Il(e){return hn(e).position==="static"}function jp(e,t){if(!Mn(e)||hn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Dn(e)===n&&(n=n.ownerDocument.body),n}function Tb(e,t){const n=zt(e);if(Ua(e))return n;if(!Mn(e)){let o=ur(e);for(;o&&!vo(o);){if(pn(o)&&!Il(o))return o;o=ur(o)}return n}let r=jp(e,t);for(;r&&nA(r)&&Il(r);)r=jp(r,t);return r&&vo(r)&&Il(r)&&!sd(r)?n:r||rA(e)||n}const mA=async function(e){const t=this.getOffsetParent||Tb,n=this.getDimensions,r=await n(e.floating);return{reference:hA(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function gA(e){return hn(e).direction==="rtl"}const vA={convertOffsetParentRelativeRectToViewportRelativeRect:sA,getDocumentElement:Dn,getClippingRect:fA,getOffsetParent:Tb,getElementRects:mA,getClientRects:aA,getDimensions:pA,getScale:ao,isElement:pn,isRTL:gA};function bA(e,t){let n=null,r;const o=Dn(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(a||t(),!d||!f)return;const m=ys(u),v=ys(o.clientWidth-(c+d)),g=ys(o.clientHeight-(u+f)),y=ys(c),_={rootMargin:-m+"px "+-v+"px "+-g+"px "+-y+"px",threshold:Vt(0,ar(1,l))||1};let x=!0;function S(w){const C=w[0].intersectionRatio;if(C!==l){if(!x)return s();C?s(!1,C):r=setTimeout(()=>{s(!1,1e-7)},1e3)}x=!1}try{n=new IntersectionObserver(S,{..._,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,_)}n.observe(e)}return s(!0),i}function Ab(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=ld(e),u=o||i?[...c?vi(c):[],...vi(t)]:[];u.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),i&&b.addEventListener("resize",n)});const d=c&&a?bA(c,n):null;let f=-1,m=null;s&&(m=new ResizeObserver(b=>{let[_]=b;_&&_.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var x;(x=m)==null||x.observe(t)})),n()}),c&&!l&&m.observe(c),m.observe(t));let v,g=l?Lr(e):null;l&&y();function y(){const b=Lr(e);g&&(b.x!==g.x||b.y!==g.y||b.width!==g.width||b.height!==g.height)&&n(),g=b,v=requestAnimationFrame(y)}return n(),()=>{var b;u.forEach(_=>{o&&_.removeEventListener("scroll",n),i&&_.removeEventListener("resize",n)}),d==null||d(),(b=m)==null||b.disconnect(),m=null,l&&cancelAnimationFrame(v)}}const Eb=J1,Pb=Q1,kb=X1,Mb=tA,Dc=Z1,Rb=eA,Ib=(e,t,n)=>{const r=new Map,o={platform:vA,...n},i={...o.platform,_c:r};return q1(e,t,{...o,platform:i})};var yA="div";function Op(e=0,t=0,n=0,r=0){if(typeof DOMRect=="function")return new DOMRect(e,t,n,r);const o={x:e,y:t,width:n,height:r,top:t,right:e+n,bottom:t+r,left:e};return ee(D({},o),{toJSON:()=>o})}function xA(e){if(!e)return Op();const{x:t,y:n,width:r,height:o}=e;return Op(t,n,r,o)}function wA(e,t){return{contextElement:e||void 0,getBoundingClientRect:()=>{const r=e,o=t==null?void 0:t(r);return o||!r?xA(o):r.getBoundingClientRect()}}}function SA(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function Dp(e){const t=window.devicePixelRatio||1;return Math.round(e*t)/t}function _A(e,t){return Eb(({placement:n})=>{var r;const o=((e==null?void 0:e.clientHeight)||0)/2,i=typeof t.gutter=="number"?t.gutter+o:(r=t.gutter)!=null?r:o;return{crossAxis:!!n.split("-")[1]?void 0:t.shift,mainAxis:i,alignmentAxis:t.shift}})}function CA(e){if(e.flip===!1)return;const t=typeof e.flip=="string"?e.flip.split(" "):void 0;return Be(!t||t.every(SA),!1),kb({padding:e.overflowPadding,fallbackPlacements:t})}function TA(e){if(!(!e.slide&&!e.overlap))return Pb({mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:Rb()})}function AA(e){return Mb({padding:e.overflowPadding,apply({elements:t,availableWidth:n,availableHeight:r,rects:o}){const i=t.floating,s=Math.round(o.reference.width);n=Math.floor(n),r=Math.floor(r),i.style.setProperty("--popover-anchor-width",`${s}px`),i.style.setProperty("--popover-available-width",`${n}px`),i.style.setProperty("--popover-available-height",`${r}px`),e.sameWidth&&(i.style.width=`${s}px`),e.fitViewport&&(i.style.maxWidth=`${n}px`,i.style.maxHeight=`${r}px`)}})}function EA(e,t){if(e)return Dc({element:e,padding:t.arrowPadding})}var ud=he(function(t){var n=t,{store:r,modal:o=!1,portal:i=!!o,preserveTabOrder:s=!0,autoFocusOnShow:a=!0,wrapperProps:l,fixed:c=!1,flip:u=!0,shift:d=0,slide:f=!0,overlap:m=!1,sameWidth:v=!1,fitViewport:g=!1,gutter:y,arrowPadding:b=4,overflowPadding:_=8,getAnchorRect:x,updatePosition:S}=n,w=pe(n,["store","modal","portal","preserveTabOrder","autoFocusOnShow","wrapperProps","fixed","flip","shift","slide","overlap","sameWidth","fitViewport","gutter","arrowPadding","overflowPadding","getAnchorRect","updatePosition"]);const C=Fa();r=r||C,Be(r,!1);const T=r.useState("arrowElement"),A=r.useState("anchorElement"),E=r.useState("disclosureElement"),P=r.useState("popoverElement"),L=r.useState("contentElement"),F=r.useState("placement"),M=r.useState("mounted"),N=r.useState("rendered"),R=h.useRef(null),[k,O]=h.useState(!1),{portalRef:G,domReady:I}=Fu(i,w.portalRef),z=fe(x),U=fe(S),B=!!S;je(()=>{if(!(P!=null&&P.isConnected))return;P.style.setProperty("--popover-overflow-padding",`${_}px`);const H=wA(A,z),q=async()=>{if(!M)return;T||(R.current=R.current||document.createElement("div"));const ie=T||R.current,Ce=[_A(ie,{gutter:y,shift:d}),CA({flip:u,overflowPadding:_}),TA({slide:f,shift:d,overlap:m,overflowPadding:_}),EA(ie,{arrowPadding:b}),AA({sameWidth:v,fitViewport:g,overflowPadding:_})],we=await Ib(H,P,{placement:F,strategy:c?"fixed":"absolute",middleware:Ce});r==null||r.setState("currentPlacement",we.placement),O(!0);const yt=Dp(we.x),ct=Dp(we.y);if(Object.assign(P.style,{top:"0",left:"0",transform:`translate3d(${yt}px,${ct}px,0)`}),ie&&we.middlewareData.arrow){const{x:Oe,y:Pt}=we.middlewareData.arrow,Xt=we.placement.split("-")[0],tt=ie.clientWidth/2,bn=ie.clientHeight/2,oe=Oe!=null?Oe+tt:-tt,ye=Pt!=null?Pt+bn:-bn;P.style.setProperty("--popover-transform-origin",{top:`${oe}px calc(100% + ${bn}px)`,bottom:`${oe}px ${-bn}px`,left:`calc(100% + ${tt}px) ${ye}px`,right:`${-tt}px ${ye}px`}[Xt]),Object.assign(ie.style,{left:Oe!=null?`${Oe}px`:"",top:Pt!=null?`${Pt}px`:"",[Xt]:"100%"})}},X=Ab(H,P,async()=>{B?(await U({updatePosition:q}),O(!0)):await q()},{elementResize:typeof ResizeObserver=="function"});return()=>{O(!1),X()}},[r,N,P,T,A,P,F,M,I,c,u,d,f,m,v,g,y,b,_,z,B,U]),je(()=>{if(!M||!I||!(P!=null&&P.isConnected)||!(L!=null&&L.isConnected))return;const H=()=>{P.style.zIndex=getComputedStyle(L).zIndex};H();let q=requestAnimationFrame(()=>{q=requestAnimationFrame(H)});return()=>cancelAnimationFrame(q)},[M,I,P,L]);const $=c?"fixed":"absolute";return w=Ge(w,H=>p.jsx("div",ee(D({},l),{style:D({position:$,top:0,left:0,width:"max-content"},l==null?void 0:l.style),ref:r==null?void 0:r.setPopoverElement,children:H})),[r,$,l]),w=Ge(w,H=>p.jsx(qi,{value:r,children:H}),[r]),w=ee(D({"data-placing":!k||void 0},w),{style:D({position:"relative"},w.style)}),w=vb(ee(D({store:r,modal:o,portal:i,preserveTabOrder:s,preserveTabOrderAnchor:E||A,autoFocusOnShow:k&&a},w),{portalRef:G})),w});Yi(ue(function(t){const n=ud(t);return de(yA,n)}),Fa);var PA="div",kA=he(function(t){var n=t,{store:r,"aria-setsize":o,"aria-posinset":i}=n,s=pe(n,["store","aria-setsize","aria-posinset"]);const a=Ia();r=r||a,Be(r,!1);const l=Zt(s.id),c=r.useState(d=>d.baseElement||void 0),u=h.useMemo(()=>({id:l,baseElement:c,ariaSetSize:o,ariaPosInSet:i}),[l,c,o,i]);return s=Ge(s,d=>p.jsx(Iv.Provider,{value:u,children:d}),[u]),s=D({id:l},s),qt(s)}),MA=ue(function(t){const n=kA(t);return de(PA,n)}),RA="hr",IA=he(function(t){var n=t,{orientation:r="horizontal"}=n,o=pe(n,["orientation"]);return o=D({role:"separator","aria-orientation":r},o),o}),jA=ue(function(t){const n=IA(t);return de(RA,n)}),dd=gn([Hi],[ja]),OA=dd.useContext,DA=dd.useProviderContext,NA=dd.ScopedContextProvider,jb="input";function LA(e,t){if(t!==void 0)return e!=null&&t!=null?t===e:!!t}function FA(e,t){return e==="input"&&(!t||t==="radio")}var BA=he(function(t){var n=t,{store:r,name:o,value:i,checked:s}=n,a=pe(n,["store","name","value","checked"]);const l=OA();r=r||l;const c=Zt(a.id),u=h.useRef(null),d=Xe(r,T=>s??LA(i,T==null?void 0:T.value));h.useEffect(()=>{!c||!d||(r==null?void 0:r.getState().activeId)===c||r==null||r.setActiveId(c)},[r,d,c]);const f=a.onChange,m=Lu(u,jb),v=FA(m,a.type),g=Ur(a),[y,b]=Mv();h.useEffect(()=>{const T=u.current;T&&(v||(d!==void 0&&(T.checked=d),o!==void 0&&(T.name=o),i!==void 0&&(T.value=`${i}`)))},[y,v,d,o,i]);const _=fe(T=>{if(g){T.preventDefault(),T.stopPropagation();return}(r==null?void 0:r.getState().value)!==i&&(v||(T.currentTarget.checked=!0,b()),f==null||f(T),!T.defaultPrevented&&(r==null||r.setValue(i)))}),x=a.onClick,S=fe(T=>{x==null||x(T),!T.defaultPrevented&&(v||_(T))}),w=a.onFocus,C=fe(T=>{if(w==null||w(T),T.defaultPrevented||!v||!r)return;const{moves:A,activeId:E}=r.getState();A&&(c&&E!==c||_(T))});return a=ee(D({id:c,role:v?void 0:"radio",type:v?"radio":void 0,"aria-checked":d},a),{ref:Qe(u,a.ref),onChange:_,onClick:S,onFocus:C}),a=za(D({store:r,clickOnEnter:!v},a)),qt(D({name:v?o:void 0,value:v?i:void 0,checked:d},a))}),VA=Ro(ue(function(t){const n=BA(t);return de(jb,n)})),zA="div",zn="";function jl(){zn=""}function $A(e){const t=e.target;return t&&Jn(t)?!1:e.key===" "&&zn.length?!0:e.key.length===1&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&/^[\p{Letter}\p{Number}]$/u.test(e.key)}function GA(e,t){if(Lt(e))return!0;const n=e.target;return n?t.some(o=>o.element===n):!1}function UA(e){return e.filter(t=>!t.disabled)}function Ds(e,t){var n;const r=((n=e.element)==null?void 0:n.textContent)||e.children||"value"in e&&e.value;return r?tC(r).trim().toLowerCase().startsWith(t.toLowerCase()):!1}function HA(e,t,n){if(!n)return e;const r=e.find(o=>o.id===n);return!r||!Ds(r,t)||zn!==t&&Ds(r,zn)?e:(zn=t,eT(e.filter(o=>Ds(o,zn)),n).filter(o=>o.id!==n))}var fd=he(function(t){var n=t,{store:r,typeahead:o=!0}=n,i=pe(n,["store","typeahead"]);const s=Ia();r=r||s,Be(r,!1);const a=i.onKeyDownCapture,l=h.useRef(0),c=fe(u=>{if(a==null||a(u),u.defaultPrevented||!o||!r)return;if(!$A(u))return jl();const{renderedItems:d,items:f,activeId:m,id:v}=r.getState();let g=UA(f.length>d.length?f:d);const y=He(u.currentTarget),b=`[data-offscreen-id="${v}"]`,_=y.querySelectorAll(b);for(const w of _){const C=w.ariaDisabled==="true"||"disabled"in w&&!!w.disabled;g.push({id:w.id,element:w,disabled:C})}if(_.length&&(g=Av(g,w=>w.element)),!GA(u,g))return jl();u.preventDefault(),window.clearTimeout(l.current),l.current=window.setTimeout(()=>{zn=""},500);const x=u.key.toLowerCase();zn+=x,g=HA(g,x,m);const S=g.find(w=>Ds(w,zn));S?r.move(S.id):jl()});return i=ee(D({},i),{onKeyDownCapture:c}),qt(i)}),WA=ue(function(t){const n=fd(t);return de(zA,n)});function KA(e={}){var t=Ra(e,[]),n;const r=(n=t.store)==null?void 0:n.getState(),o=Da(Ne(ge({},t),{focusLoop:ce(t.focusLoop,r==null?void 0:r.focusLoop,!0)})),i=Ne(ge({},o.getState()),{value:ce(t.value,r==null?void 0:r.value,t.defaultValue,null)}),s=Ft(i,o,t.store);return Ne(ge(ge({},o),s),{setValue:a=>s.setState("value",a)})}function qA(e,t,n){return e=Na(e,t,n),ze(e,n,"value","setValue"),e}function ZA(e={}){const[t,n]=vr(KA,e);return qA(t,n,e)}var XA="div",YA=he(function(t){var n=t,{store:r}=n,o=pe(n,["store"]);const i=DA();return r=r||i,Be(r,!1),o=Ge(o,s=>p.jsx(NA,{value:r,children:s}),[r]),o=D({role:"radiogroup"},o),o=Va(D({store:r},o)),o}),JA=ue(function(t){const n=YA(t);return de(XA,n)}),QA="span",eE={top:"4,10 8,6 12,10",right:"6,4 10,8 6,12",bottom:"4,6 8,10 12,6",left:"10,4 6,8 10,12"},Ob=he(function(t){var n=t,{store:r,placement:o}=n,i=pe(n,["store","placement"]);const s=ZC();r=r||s,Be(r,!1);const l=r.useState(d=>o||d.placement).split("-")[0],c=eE[l],u=h.useMemo(()=>p.jsx("svg",{display:"block",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,viewBox:"0 0 16 16",height:"1em",width:"1em",children:p.jsx("polyline",{points:c})}),[c]);return i=ee(D({children:u,"aria-hidden":!0},i),{style:D({width:"1em",height:"1em",pointerEvents:"none"},i.style)}),qt(i)});ue(function(t){const n=Ob(t);return de(QA,n)});var tE="button",Db=he(function(t){var n=t,{store:r}=n,o=pe(n,["store"]);const i=Fa();r=r||i,Be(r,!1);const s=o.onClick,a=fe(l=>{r==null||r.setAnchorElement(l.currentTarget),s==null||s(l)});return o=Ge(o,l=>p.jsx(qi,{value:r,children:l}),[r]),o=ee(D({},o),{onClick:a}),o=Xv(D({store:r},o)),o=rb(D({store:r},o)),o});ue(function(t){const n=Db(t);return de(tE,n)});var pd=gn([Wu],[qi]),hd=pd.useProviderContext,nE=pd.ContextProvider,Nb=pd.ScopedContextProvider;function rE(e={}){var t;const n=(t=e.store)==null?void 0:t.getState(),r=Kv(Ne(ge({},e),{placement:ce(e.placement,n==null?void 0:n.placement,"bottom")})),o=ce(e.timeout,n==null?void 0:n.timeout,500),i=Ne(ge({},r.getState()),{timeout:o,showTimeout:ce(e.showTimeout,n==null?void 0:n.showTimeout),hideTimeout:ce(e.hideTimeout,n==null?void 0:n.hideTimeout),autoFocusOnShow:ce(n==null?void 0:n.autoFocusOnShow,!1)}),s=Ft(i,r,e.store);return Ne(ge(ge({},r),s),{setAutoFocusOnShow:a=>s.setState("autoFocusOnShow",a)})}function oE(e,t,n){return ze(e,n,"timeout"),ze(e,n,"showTimeout"),ze(e,n,"hideTimeout"),qv(e,t,n)}function Ol(e){return[e.clientX,e.clientY]}function Np(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let s=i,a=0,l=s-1;a<s;l=a++){const[c,u]=t[a],[d,f]=t[l],[,m]=t[l===0?s-1:l-1]||[0,0],v=(u-f)*(n-c)-(c-d)*(r-u);if(f<u){if(r>=f&&r<u){if(v===0)return!0;v>0&&(r===f?r>m&&(o=!o):o=!o)}}else if(u<f){if(r>u&&r<=f){if(v===0)return!0;v<0&&(r===f?r<m&&(o=!o):o=!o)}}else if(r===u&&(n>=d&&n<=c||n>=c&&n<=d))return!0}return o}function iE(e,t){const{top:n,right:r,bottom:o,left:i}=t,[s,a]=e,l=s<i?"left":s>r?"right":null,c=a<n?"top":a>o?"bottom":null;return[l,c]}function Lp(e,t){const n=e.getBoundingClientRect(),{top:r,right:o,bottom:i,left:s}=n,[a,l]=iE(t,n),c=[t];return a?(l!=="top"&&c.push([a==="left"?s:o,r]),c.push([a==="left"?o:s,r]),c.push([a==="left"?o:s,i]),l!=="bottom"&&c.push([a==="left"?s:o,i])):l==="top"?(c.push([s,r]),c.push([s,i]),c.push([o,i]),c.push([o,r])):(c.push([s,i]),c.push([s,r]),c.push([o,r]),c.push([o,i])),c}var sE="div";function Lb(e,t,n,r){return qu(t)?!0:e?!!(Je(t,e)||n&&Je(n,e)||r!=null&&r.some(o=>Lb(e,o,n))):!1}function aE(e){var t=e,{store:n}=t,r=pe(t,["store"]);const[o,i]=h.useState(!1),s=n.useState("mounted");h.useEffect(()=>{s||i(!1)},[s]);const a=r.onFocus,l=fe(u=>{a==null||a(u),!u.defaultPrevented&&i(!0)}),c=h.useRef(null);return h.useEffect(()=>rt(n,["anchorElement"],u=>{c.current=u.anchorElement}),[]),r=ee(D({autoFocusOnHide:o,finalFocus:c},r),{onFocus:l}),r}var Fp=h.createContext(null),Fb=he(function(t){var n=t,{store:r,modal:o=!1,portal:i=!!o,hideOnEscape:s=!0,hideOnHoverOutside:a=!0,disablePointerEventsOnApproach:l=!!a}=n,c=pe(n,["store","modal","portal","hideOnEscape","hideOnHoverOutside","disablePointerEventsOnApproach"]);const u=hd();r=r||u,Be(r,!1);const d=h.useRef(null),[f,m]=h.useState([]),v=h.useRef(0),g=h.useRef(null),{portalRef:y,domReady:b}=Fu(i,c.portalRef),_=Bu(),x=!!a,S=st(a),w=!!l,C=st(l),T=r.useState("open"),A=r.useState("mounted");h.useEffect(()=>{if(!b||!A||!x&&!w)return;const M=d.current;return M?At(bt("mousemove",R=>{if(!r||!_())return;const{anchorElement:k,hideTimeout:O,timeout:G}=r.getState(),I=g.current,[z]=R.composedPath(),U=k;if(Lb(z,M,U,f)){g.current=z&&U&&Je(U,z)?Ol(R):null,window.clearTimeout(v.current),v.current=0;return}if(!v.current){if(I){const B=Ol(R),$=Lp(M,I);if(Np(B,$)){if(g.current=B,!C(R))return;R.preventDefault(),R.stopPropagation();return}}S(R)&&(v.current=window.setTimeout(()=>{v.current=0,r==null||r.hide()},O??G))}},!0),()=>clearTimeout(v.current)):void 0},[r,_,b,A,x,w,f,C,S]),h.useEffect(()=>{if(!b||!A||!w)return;const M=N=>{const R=d.current;if(!R)return;const k=g.current;if(!k)return;const O=Lp(R,k);if(Np(Ol(N),O)){if(!C(N))return;N.preventDefault(),N.stopPropagation()}};return At(bt("mouseenter",M,!0),bt("mouseover",M,!0),bt("mouseout",M,!0),bt("mouseleave",M,!0))},[b,A,w,C]),h.useEffect(()=>{b&&(T||r==null||r.setAutoFocusOnShow(!1))},[r,b,T]);const E=Pv(T);h.useEffect(()=>{if(b)return()=>{E.current||r==null||r.setAutoFocusOnShow(!1)}},[r,b]);const P=h.useContext(Fp);je(()=>{if(o||!i||!A||!b)return;const M=d.current;if(M)return P==null?void 0:P(M)},[o,i,A,b]);const L=h.useCallback(M=>{m(R=>[...R,M]);const N=P==null?void 0:P(M);return()=>{m(R=>R.filter(k=>k!==M)),N==null||N()}},[P]);c=Ge(c,M=>p.jsx(Nb,{value:r,children:p.jsx(Fp.Provider,{value:L,children:M})}),[r,L]),c=ee(D({},c),{ref:Qe(d,c.ref)}),c=aE(D({store:r},c));const F=r.useState(M=>o||M.autoFocusOnShow);return c=ud(ee(D({store:r,modal:o,portal:i,autoFocusOnShow:F},c),{portalRef:y,hideOnEscape(M){return Ys(s,M)?!1:(requestAnimationFrame(()=>{requestAnimationFrame(()=>{r==null||r.hide()})}),!0)}})),c});Yi(ue(function(t){const n=Fb(t);return de(sE,n)}),hd);var lE="a",Bb=he(function(t){var n=t,{store:r,showOnHover:o=!0}=n,i=pe(n,["store","showOnHover"]);const s=hd();r=r||s,Be(r,!1);const a=Ur(i),l=h.useRef(0);h.useEffect(()=>()=>window.clearTimeout(l.current),[]),h.useEffect(()=>bt("mouseleave",b=>{if(!r)return;const{anchorElement:_}=r.getState();_&&b.target===_&&(window.clearTimeout(l.current),l.current=0)},!0),[r]);const c=i.onMouseMove,u=st(o),d=Bu(),f=fe(y=>{if(c==null||c(y),a||!r||y.defaultPrevented||l.current||!d()||!u(y))return;const b=y.currentTarget;r.setAnchorElement(b),r.setDisclosureElement(b);const{showTimeout:_,timeout:x}=r.getState(),S=()=>{l.current=0,d()&&(r==null||r.setAnchorElement(b),r==null||r.show(),queueMicrotask(()=>{r==null||r.setDisclosureElement(b)}))},w=_??x;w===0?S():l.current=window.setTimeout(S,w)}),m=i.onClick,v=fe(y=>{m==null||m(y),r&&(window.clearTimeout(l.current),l.current=0)}),g=h.useCallback(y=>{if(!r)return;const{anchorElement:b}=r.getState();b!=null&&b.isConnected||r.setAnchorElement(y)},[r]);return i=ee(D({},i),{ref:Qe(g,i.ref),onMouseMove:f,onClick:v}),i=jo(i),i});ue(function(t){const n=Bb(t);return de(lE,n)});function cE(e={}){var t;const n=(t=e.store)==null?void 0:t.getState(),r=rE(Ne(ge({},e),{placement:ce(e.placement,n==null?void 0:n.placement,"top"),hideTimeout:ce(e.hideTimeout,n==null?void 0:n.hideTimeout,0)})),o=Ne(ge({},r.getState()),{type:ce(e.type,n==null?void 0:n.type,"description"),skipTimeout:ce(e.skipTimeout,n==null?void 0:n.skipTimeout,300)}),i=Ft(o,r,e.store);return ge(ge({},r),i)}function uE(e,t,n){return ze(e,n,"type"),ze(e,n,"skipTimeout"),oE(e,t,n)}function dE(e={}){const[t,n]=vr(cE,e);return uE(t,n,e)}var Vb=gn([nE],[Nb]),md=Vb.useProviderContext,fE=Vb.ScopedContextProvider,pE="div",hE=he(function(t){var n=t,{store:r,portal:o=!0,gutter:i=8,preserveTabOrder:s=!1,hideOnHoverOutside:a=!0,hideOnInteractOutside:l=!0}=n,c=pe(n,["store","portal","gutter","preserveTabOrder","hideOnHoverOutside","hideOnInteractOutside"]);const u=md();r=r||u,Be(r,!1),c=Ge(c,f=>p.jsx(fE,{value:r,children:f}),[r]);const d=r.useState(f=>f.type==="description"?"tooltip":"none");return c=D({role:d},c),c=Fb(ee(D({},c),{store:r,portal:o,gutter:i,preserveTabOrder:s,hideOnHoverOutside(f){if(Ys(a,f))return!1;const m=r==null?void 0:r.getState().anchorElement;return m?!("focusVisible"in m.dataset):!0},hideOnInteractOutside:f=>{if(Ys(l,f))return!1;const m=r==null?void 0:r.getState().anchorElement;return m?!Je(m,f.target):!0}})),c}),mE=Yi(ue(function(t){const n=hE(t);return de(pE,n)}),md),gE="div",Pr=Ft({activeStore:null});function Bp(e){return()=>{const{activeStore:t}=Pr.getState();t===e&&Pr.setState("activeStore",null)}}var vE=he(function(t){var n=t,{store:r,showOnHover:o=!0}=n,i=pe(n,["store","showOnHover"]);const s=md();r=r||s,Be(r,!1);const a=h.useRef(!1);h.useEffect(()=>rt(r,["mounted"],y=>{y.mounted||(a.current=!1)}),[r]),h.useEffect(()=>{if(r)return At(Bp(r),rt(r,["mounted","skipTimeout"],y=>{if(!r)return;if(y.mounted){const{activeStore:_}=Pr.getState();return _!==r&&(_==null||_.hide()),Pr.setState("activeStore",r)}const b=setTimeout(Bp(r),y.skipTimeout);return()=>clearTimeout(b)}))},[r]);const l=i.onMouseEnter,c=fe(y=>{l==null||l(y),a.current=!0}),u=i.onFocusVisible,d=fe(y=>{u==null||u(y),!y.defaultPrevented&&(r==null||r.setAnchorElement(y.currentTarget),r==null||r.show())}),f=i.onBlur,m=fe(y=>{if(f==null||f(y),y.defaultPrevented)return;const{activeStore:b}=Pr.getState();a.current=!1,b===r&&Pr.setState("activeStore",null)}),v=r.useState("type"),g=r.useState(y=>{var b;return(b=y.contentElement)==null?void 0:b.id});return i=ee(D({"aria-labelledby":v==="label"?g:void 0},i),{onMouseEnter:c,onFocusVisible:d,onBlur:m}),i=Bb(D({store:r,showOnHover(y){if(!a.current||Ys(o,y))return!1;const{activeStore:b}=Pr.getState();return b?(r==null||r.show(),!1):!0}},i)),i}),bE=ue(function(t){const n=vE(t);return de(gE,n)}),Wa=gn([Wu,Hi],[qi,ja]),gd=Wa.useContext,yE=Wa.useScopedContext,Ka=Wa.useProviderContext,zb=Wa.ScopedContextProvider,$b=h.createContext(!1),Vp=h.createContext(null);function xE(e={}){var t=e,{composite:n,combobox:r}=t,o=Ra(t,["composite","combobox"]);const i=["items","renderedItems","moves","orientation","virtualFocus","includesBaseElement","baseElement","focusLoop","focusShift","focusWrap"],s=Oa(o.store,mi(n,i),mi(r,i)),a=s==null?void 0:s.getState(),l=Da(Ne(ge({},o),{store:s,includesBaseElement:ce(o.includesBaseElement,a==null?void 0:a.includesBaseElement,!1),orientation:ce(o.orientation,a==null?void 0:a.orientation,"horizontal"),focusLoop:ce(o.focusLoop,a==null?void 0:a.focusLoop,!0)})),c=Nv(),u=Ne(ge({},l.getState()),{selectedId:ce(o.selectedId,a==null?void 0:a.selectedId,o.defaultSelectedId),selectOnMove:ce(o.selectOnMove,a==null?void 0:a.selectOnMove,!0)}),d=Ft(u,l,s);St(d,()=>rt(d,["moves"],()=>{const{activeId:v,selectOnMove:g}=d.getState();if(!g||!v)return;const y=l.item(v);y&&(y.dimmed||y.disabled||d.setState("selectedId",y.id))}));let f=!0;St(d,()=>hi(d,["selectedId"],(v,g)=>{if(!f){f=!0;return}n&&v.selectedId===g.selectedId||d.setState("activeId",v.selectedId)})),St(d,()=>rt(d,["selectedId","renderedItems"],v=>{if(v.selectedId!==void 0)return;const{activeId:g,renderedItems:y}=d.getState(),b=l.item(g);if(b&&!b.disabled&&!b.dimmed)d.setState("selectedId",b.id);else{const _=y.find(x=>!x.disabled&&!x.dimmed);d.setState("selectedId",_==null?void 0:_.id)}})),St(d,()=>rt(d,["renderedItems"],v=>{const g=v.renderedItems;if(g.length)return rt(c,["renderedItems"],y=>{const b=y.renderedItems;b.some(x=>!x.tabId)&&b.forEach((x,S)=>{if(x.tabId)return;const w=g[S];w&&c.renderItem(Ne(ge({},x),{tabId:w.id}))})})}));let m=null;return St(d,()=>{const v=()=>{m=d.getState().selectedId},g=()=>{f=!1,d.setState("selectedId",m)};if(n&&"setSelectElement"in n)return At(rt(n,["value"],v),rt(n,["mounted"],g));if(r)return At(rt(r,["selectedValue"],v),rt(r,["mounted"],g))}),Ne(ge(ge({},l),d),{panels:c,setSelectedId:v=>d.setState("selectedId",v),select:v=>{d.setState("selectedId",v),l.move(v)}})}function wE(e,t,n){mo(t,[n.composite,n.combobox]),e=Na(e,t,n),ze(e,n,"selectedId","setSelectedId"),ze(e,n,"selectOnMove");const[r,o]=vr(()=>e.panels,{});return mo(o,[e,o]),Object.assign(h.useMemo(()=>ee(D({},e),{panels:r}),[e,r]),{composite:n.composite,combobox:n.combobox})}function SE(e={}){const t=XC(),n=gd()||t;e=ee(D({},e),{composite:e.composite!==void 0?e.composite:n,combobox:e.combobox!==void 0?e.combobox:t});const[r,o]=vr(xE,e);return wE(r,o,e)}var vd=gn([Hi],[ja]),_E=vd.useScopedContext,Gb=vd.useProviderContext,Ub=vd.ScopedContextProvider,CE="button",TE=he(function(t){var n=t,{store:r,getItem:o}=n,i=pe(n,["store","getItem"]),s;const a=_E();r=r||a,Be(r,!1);const l=Zt(),c=i.id||l,u=Ur(i),d=h.useCallback(C=>{const T=ee(D({},C),{dimmed:u});return o?o(T):T},[u,o]),f=i.onClick,m=fe(C=>{f==null||f(C),!C.defaultPrevented&&(r==null||r.setSelectedId(c))}),v=r.panels.useState(C=>{var T;return(T=C.items.find(A=>A.tabId===c))==null?void 0:T.id}),g=l?i.shouldRegisterItem:!1,y=r.useState(C=>!!c&&C.activeId===c),b=r.useState(C=>!!c&&C.selectedId===c),_=r.useState(C=>!!r.item(C.activeId)),x=y||b&&!_,S=b||((s=i.accessibleWhenDisabled)!=null?s:!0);if(Xe(r.combobox||r.composite,"virtualFocus")&&(i=ee(D({},i),{tabIndex:-1})),i=ee(D({id:c,role:"tab","aria-selected":b,"aria-controls":v||void 0},i),{onClick:m}),r.composite){const C={id:c,accessibleWhenDisabled:S,store:r.composite,shouldRegisterItem:x&&g,rowId:i.rowId,render:i.render};i=ee(D({},i),{render:p.jsx(kc,ee(D({},C),{render:r.combobox&&r.composite!==r.combobox?p.jsx(kc,ee(D({},C),{store:r.combobox})):C.render}))})}return i=za(ee(D({store:r},i),{accessibleWhenDisabled:S,getItem:d,shouldRegisterItem:g})),i}),AE=Ro(ue(function(t){const n=TE(t);return de(CE,n)})),EE="div",PE=he(function(t){var n=t,{store:r}=n,o=pe(n,["store"]);const i=Gb();r=r||i,Be(r,!1);const s=r.useState(a=>a.orientation==="both"?void 0:a.orientation);return o=Ge(o,a=>p.jsx(Ub,{value:r,children:a}),[r]),r.composite&&(o=D({focusable:!1},o)),o=D({role:"tablist","aria-orientation":s},o),o=Va(D({store:r},o)),o}),kE=ue(function(t){const n=PE(t);return de(EE,n)}),ME="div",RE=he(function(t){var n=t,{store:r,unmountOnHide:o,tabId:i,getItem:s,scrollRestoration:a,scrollElement:l}=n,c=pe(n,["store","unmountOnHide","tabId","getItem","scrollRestoration","scrollElement"]);const u=Gb();r=r||u,Be(r,!1);const d=h.useRef(null),f=Zt(c.id),m=Xe(r.panels,()=>{var A;return i||((A=r==null?void 0:r.panels.item(f))==null?void 0:A.tabId)}),v=Xe(r,A=>!!m&&A.selectedId===m),g=Uv({open:v}),y=Xe(g,"mounted"),b=h.useRef(new Map),_=fe(()=>{const A=d.current;return A?l?typeof l=="function"?l(A):"current"in l?l.current:l:A:null});h.useEffect(()=>{var A,E;if(!a||!y)return;const P=_();if(!P)return;if(a==="reset"){P.scroll(0,0);return}if(!m)return;const L=b.current.get(m);P.scroll((A=L==null?void 0:L.x)!=null?A:0,(E=L==null?void 0:L.y)!=null?E:0);const F=()=>{b.current.set(m,{x:P.scrollLeft,y:P.scrollTop})};return P.addEventListener("scroll",F),()=>{P.removeEventListener("scroll",F)}},[a,y,m,_,r]);const[x,S]=h.useState(!1);h.useEffect(()=>{const A=d.current;if(!A)return;const E=Zi(A);S(!!E.length)},[]);const w=h.useCallback(A=>{const E=ee(D({},A),{id:f||A.id,tabId:i});return s?s(E):E},[f,i,s]),C=c.onKeyDown,T=fe(A=>{if(C==null||C(A),A.defaultPrevented||!(r!=null&&r.composite))return;const P={ArrowLeft:r.previous,ArrowRight:r.next,Home:r.first,End:r.last}[A.key];if(!P)return;const{selectedId:L}=r.getState(),F=P({activeId:L});F&&(A.preventDefault(),r.move(F))});return c=Ge(c,A=>p.jsx(Ub,{value:r,children:A}),[r]),c=ee(D({id:f,role:"tabpanel","aria-labelledby":m||void 0},c),{children:o&&!y?null:c.children,ref:Qe(d,c.ref),onKeyDown:T}),c=jo(D({focusable:!r.composite&&!x},c)),c=$a(D({store:g},c)),c=Yu(ee(D({store:r.panels},c),{getItem:w})),c}),IE=ue(function(t){const n=RE(t);return de(ME,n)});function jE(e={}){var t=e,{combobox:n}=t,r=Ra(t,["combobox"]);const o=Oa(r.store,mi(n,["value","items","renderedItems","baseElement","arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),i=o.getState(),s=Da(Ne(ge({},r),{store:o,virtualFocus:ce(r.virtualFocus,i.virtualFocus,!0),includesBaseElement:ce(r.includesBaseElement,i.includesBaseElement,!1),activeId:ce(r.activeId,i.activeId,r.defaultActiveId,null),orientation:ce(r.orientation,i.orientation,"vertical")})),a=Kv(Ne(ge({},r),{store:o,placement:ce(r.placement,i.placement,"bottom-start")})),l=new String(""),c=Ne(ge(ge({},s.getState()),a.getState()),{value:ce(r.value,i.value,r.defaultValue,l),setValueOnMove:ce(r.setValueOnMove,i.setValueOnMove,!1),labelElement:ce(i.labelElement,null),selectElement:ce(i.selectElement,null),listElement:ce(i.listElement,null)}),u=Ft(c,s,a,o);return St(u,()=>rt(u,["value","items"],d=>{if(d.value!==l||!d.items.length)return;const f=d.items.find(m=>!m.disabled&&m.value!=null);(f==null?void 0:f.value)!=null&&u.setState("value",f.value)})),St(u,()=>rt(u,["mounted"],d=>{d.mounted||u.setState("activeId",c.activeId)})),St(u,()=>rt(u,["mounted","items","value"],d=>{if(n||d.mounted)return;const f=Lv(d.value),m=f[f.length-1];if(m==null)return;const v=d.items.find(g=>!g.disabled&&g.value===m);v&&u.setState("activeId",v.id)})),St(u,()=>hi(u,["setValueOnMove","moves"],d=>{const{mounted:f,value:m,activeId:v}=u.getState();if(!d.setValueOnMove&&f||Array.isArray(m)||!d.moves||!v)return;const g=s.item(v);!g||g.disabled||g.value==null||u.setState("value",g.value)})),Ne(ge(ge(ge({},s),a),u),{combobox:n,setValue:d=>u.setState("value",d),setLabelElement:d=>u.setState("labelElement",d),setSelectElement:d=>u.setState("selectElement",d),setListElement:d=>u.setState("listElement",d)})}function OE(e){const t=YC();return e=ee(D({},e),{combobox:e.combobox!==void 0?e.combobox:t}),zv(e)}function DE(e,t,n){return mo(t,[n.combobox]),ze(e,n,"value","setValue"),ze(e,n,"setValueOnMove"),Object.assign(qv(Na(e,t,n),t,n),{combobox:n.combobox})}function NE(e={}){e=OE(e);const[t,n]=vr(jE,e);return DE(t,n,e)}var LE="span",FE=he(function(t){var n=t,{store:r}=n,o=pe(n,["store"]);const i=gd();return r=r||i,o=Ob(D({store:r},o)),o}),BE=ue(function(t){const n=FE(t);return de(LE,n)}),VE="button";function zE(e){return Array.from(e.selectedOptions).map(t=>t.value)}function xs(e,t){return()=>{const n=t();if(!n)return;let r=0,o=e.item(n);const i=o;for(;o&&o.value==null;){const s=t(++r);if(!s)return;if(o=e.item(s),o===i)break}return o==null?void 0:o.id}}var $E=he(function(t){var n=t,{store:r,name:o,form:i,required:s,showOnKeyDown:a=!0,moveOnKeyDown:l=!0,toggleOnPress:c=!0,toggleOnClick:u=c}=n,d=pe(n,["store","name","form","required","showOnKeyDown","moveOnKeyDown","toggleOnPress","toggleOnClick"]);const f=Ka();r=r||f,Be(r,!1);const m=d.onKeyDown,v=st(a),g=st(l),b=r.useState("placement").split("-")[0],_=r.useState("value"),x=Array.isArray(_),S=fe(R=>{var k;if(m==null||m(R),R.defaultPrevented||!r)return;const{orientation:O,items:G,activeId:I}=r.getState(),z=O!=="horizontal",U=O!=="vertical",B=!!((k=G.find(we=>!we.disabled&&we.value!=null))!=null&&k.rowId),H={ArrowUp:(B||z)&&xs(r,r.up),ArrowRight:(B||U)&&xs(r,r.next),ArrowDown:(B||z)&&xs(r,r.down),ArrowLeft:(B||U)&&xs(r,r.previous)}[R.key];H&&g(R)&&(R.preventDefault(),r.move(H()));const q=b==="top"||b==="bottom";({ArrowDown:q,ArrowUp:q,ArrowLeft:b==="left",ArrowRight:b==="right"})[R.key]&&v(R)&&(R.preventDefault(),r.move(I),so(R.currentTarget,"keyup",r.show))});d=Ge(d,R=>p.jsx(zb,{value:r,children:R}),[r]);const[w,C]=h.useState(!1),T=h.useRef(!1);h.useEffect(()=>{const R=T.current;T.current=!1,!R&&C(!1)},[_]);const A=r.useState(R=>{var k;return(k=R.labelElement)==null?void 0:k.id}),E=d["aria-label"],P=d["aria-labelledby"]||A,L=r.useState(R=>{if(o)return R.items}),F=h.useMemo(()=>[...new Set(L==null?void 0:L.map(R=>R.value).filter(R=>R!=null))],[L]);d=Ge(d,R=>o?p.jsxs(p.Fragment,{children:[p.jsxs("select",{style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},tabIndex:-1,"aria-hidden":!0,"aria-label":E,"aria-labelledby":P,name:o,form:i,required:s,value:_,multiple:x,onFocus:()=>{var k;return(k=r==null?void 0:r.getState().selectElement)==null?void 0:k.focus()},onChange:k=>{T.current=!0,C(!0),r==null||r.setValue(x?zE(k.target):k.target.value)},children:[Lv(_).map(k=>k==null||F.includes(k)?null:p.jsx("option",{value:k,children:k},k)),F.map(k=>p.jsx("option",{value:k,children:k},k))]}),R]}):R,[r,E,P,o,i,s,_,x,F]);const M=p.jsxs(p.Fragment,{children:[_,p.jsx(BE,{})]}),N=r.useState("contentElement");return d=ee(D({role:"combobox","aria-autocomplete":"none","aria-labelledby":A,"aria-haspopup":ju(N,"listbox"),"data-autofill":w||void 0,"data-name":o,children:M},d),{ref:Qe(r.setSelectElement,d.ref),onKeyDown:S}),d=Db(D({store:r,toggleOnClick:u},d)),d=fd(D({store:r},d)),d}),GE=ue(function(t){const n=$E(t);return de(VE,n)}),UE="span",HE=he(function(t){var n=t,{store:r,checked:o}=n,i=pe(n,["store","checked"]);const s=h.useContext($b);return o=o??s,i=ab(ee(D({},i),{checked:o})),i}),WE=ue(function(t){const n=HE(t);return de(UE,n)}),KE="div";function qE(e,t){if(t!=null)return e==null?!1:Array.isArray(e)?e.includes(t):e===t}var ZE=he(function(t){var n=t,{store:r,value:o,getItem:i,hideOnClick:s,setValueOnClick:a=o!=null,preventScrollOnKeyDown:l=!0,focusOnHover:c=!0}=n,u=pe(n,["store","value","getItem","hideOnClick","setValueOnClick","preventScrollOnKeyDown","focusOnHover"]),d;const f=yE();r=r||f,Be(r,!1);const m=Zt(u.id),v=Ur(u),{listElement:g,multiSelectable:y,selected:b,autoFocus:_}=Dv(r,{listElement:"listElement",multiSelectable(E){return Array.isArray(E.value)},selected(E){return qE(E.value,o)},autoFocus(E){return o==null||E.value==null||E.activeId!==m&&(r!=null&&r.item(E.activeId))?!1:Array.isArray(E.value)?E.value[E.value.length-1]===o:E.value===o}}),x=h.useCallback(E=>{const P=ee(D({},E),{value:v?void 0:o,children:o});return i?i(P):P},[v,o,i]);s=s??(o!=null&&!y);const S=u.onClick,w=st(a),C=st(s),T=fe(E=>{S==null||S(E),!E.defaultPrevented&&(bC(E)||vC(E)||(w(E)&&o!=null&&(r==null||r.setValue(P=>Array.isArray(P)?P.includes(o)?P.filter(L=>L!==o):[...P,o]:o)),C(E)&&(r==null||r.hide())))});u=Ge(u,E=>p.jsx($b.Provider,{value:b??!1,children:E}),[b]),u=ee(D({id:m,role:fC(g),"aria-selected":b,children:o},u),{autoFocus:(d=u.autoFocus)!=null?d:_,onClick:T}),u=za(D({store:r,getItem:x,preventScrollOnKeyDown:l},u));const A=st(c);return u=cb(ee(D({store:r},u),{focusOnHover(E){if(!A(E))return!1;const P=r==null?void 0:r.getState();return!!(P!=null&&P.open)}})),u}),XE=Ro(ue(function(t){const n=ZE(t);return de(KE,n)})),YE="div",JE=he(function(t){var n=t,{store:r}=n,o=pe(n,["store"]);const i=Ka();r=r||i,Be(r,!1);const s=Zt(o.id),a=o.onClick,l=fe(c=>{a==null||a(c),!c.defaultPrevented&&queueMicrotask(()=>{const u=r==null?void 0:r.getState().selectElement;u==null||u.focus()})});return o=ee(D({id:s},o),{ref:Qe(r.setLabelElement,o.ref),onClick:l,style:D({cursor:"default"},o.style)}),qt(o)}),QE=Ro(ue(function(t){const n=JE(t);return de(YE,n)})),eP="div",zp=h.createContext(null),Hb=he(function(t){var n=t,{store:r,resetOnEscape:o=!0,hideOnEnter:i=!0,focusOnMove:s=!0,composite:a,alwaysVisible:l}=n,c=pe(n,["store","resetOnEscape","hideOnEnter","focusOnMove","composite","alwaysVisible"]);const u=gd();r=r||u,Be(r,!1);const d=Zt(c.id),f=r.useState("value"),m=Array.isArray(f),[v,g]=h.useState(f),y=r.useState("mounted");h.useEffect(()=>{y||g(f)},[y,f]),o=o&&!m;const b=c.onKeyDown,_=st(o),x=st(i),S=fe(B=>{b==null||b(B),!B.defaultPrevented&&(B.key==="Escape"&&_(B)&&(r==null||r.setValue(v)),(B.key===" "||B.key==="Enter")&&Lt(B)&&x(B)&&(B.preventDefault(),r==null||r.hide()))}),w=h.useContext(Vp),C=h.useState(),[T,A]=w||C,E=h.useMemo(()=>[T,A],[T]),[P,L]=h.useState(null),F=h.useContext(zp);h.useEffect(()=>{if(F)return F(r),()=>F(null)},[F,r]),c=Ge(c,B=>p.jsx(zb,{value:r,children:p.jsx(zp.Provider,{value:L,children:p.jsx(Vp.Provider,{value:E,children:B})})}),[r,E]);const M=!!r.combobox;a=a??(!M&&P!==r);const[N,R]=kv(a?r.setListElement:null),k=wC(N,"role",c.role),G=(a||(k==="listbox"||k==="menu"||k==="tree"||k==="grid"))&&m||void 0,I=Ju(y,c.hidden,l),z=I?ee(D({},c.style),{display:"none"}):c.style;a&&(c=D({role:"listbox","aria-multiselectable":G},c));const U=r.useState(B=>{var $;return T||(($=B.labelElement)==null?void 0:$.id)});return c=ee(D({id:d,"aria-labelledby":U,hidden:I},c),{ref:Qe(R,c.ref),style:z,onKeyDown:S}),c=Va(ee(D({store:r},c),{composite:a})),c=fd(D({store:r,typeahead:!M},c)),c});ue(function(t){const n=Hb(t);return de(eP,n)});var tP="div",nP=he(function(t){var n=t,{store:r,alwaysVisible:o}=n,i=pe(n,["store","alwaysVisible"]);const s=Ka();return r=r||s,i=Hb(D({store:r,alwaysVisible:o},i)),i=ud(D({store:r,alwaysVisible:o},i)),i}),rP=Yi(ue(function(t){const n=nP(t);return de(tP,n)}),Ka);const Nc=h.createContext({}),No=()=>h.useContext(Nc),oP=h.forwardRef(function(t,n){var r;const o=No(),i=(r=t.store)!==null&&r!==void 0?r:o.store;return p.jsx(UT,{store:i,...t,ref:n})}),iP=h.forwardRef(function(t,n){var r;const o=No(),i=(r=t.store)!==null&&r!==void 0?r:o.store;return p.jsx(VT,{store:i,...t,ref:n})}),sP=h.forwardRef(function(t,n){var r;const o=No(),i=(r=t.store)!==null&&r!==void 0?r:o.store;return p.jsx(JT,{store:i,...t,ref:n})}),aP=h.forwardRef(function(t,n){var r;const o=No(),i=(r=t.store)!==null&&r!==void 0?r:o.store;return p.jsx(kc,{store:i,...t,ref:n})}),lP=h.forwardRef(function(t,n){var r;const o=No(),i=(r=t.store)!==null&&r!==void 0?r:o.store;return p.jsx(MA,{store:i,...t,ref:n})}),cP=h.forwardRef(function(t,n){var r;const o=No(),i=(r=t.store)!==null&&r!==void 0?r:o.store;return p.jsx(WA,{store:i,...t,ref:n})}),Wb=Object.assign(h.forwardRef(function({activeId:t,defaultActiveId:n,setActiveId:r,focusLoop:o=!1,focusWrap:i=!1,focusShift:s=!1,virtualFocus:a=!1,orientation:l="both",rtl:c=fn(),children:u,disabled:d=!1,...f},m){const v=f.store,g=$C({activeId:t,defaultActiveId:n,setActiveId:r,focusLoop:o,focusWrap:i,focusShift:s,virtualFocus:a,orientation:l,rtl:c}),y=v??g,b=h.useMemo(()=>({store:y}),[y]);return p.jsx(RT,{disabled:d,store:y,...f,ref:m,children:p.jsx(Nc.Provider,{value:b,children:u})})}),{Group:Object.assign(oP,{displayName:"Composite.Group"}),GroupLabel:Object.assign(iP,{displayName:"Composite.GroupLabel"}),Item:Object.assign(aP,{displayName:"Composite.Item"}),Row:Object.assign(lP,{displayName:"Composite.Row"}),Hover:Object.assign(sP,{displayName:"Composite.Hover"}),Typeahead:Object.assign(cP,{displayName:"Composite.Typeahead"}),Context:Object.assign(Nc,{displayName:"Composite.Context"})});function uP(e){const{shortcut:t,className:n}=e;if(!t)return null;let r,o;return typeof t=="string"&&(r=t),t!==null&&typeof t=="object"&&(r=t.display,o=t.ariaLabel),p.jsx("span",{className:n,"aria-label":o,children:r})}const dP={bottom:"bottom",top:"top","middle left":"left","middle right":"right","bottom left":"bottom-end","bottom center":"bottom","bottom right":"bottom-start","top left":"top-end","top center":"top","top right":"top-start","middle left left":"left","middle left right":"left","middle left bottom":"left-end","middle left top":"left-start","middle right left":"right","middle right right":"right","middle right bottom":"right-end","middle right top":"right-start","bottom left left":"bottom-end","bottom left right":"bottom-end","bottom left bottom":"bottom-end","bottom left top":"bottom-end","bottom center left":"bottom","bottom center right":"bottom","bottom center bottom":"bottom","bottom center top":"bottom","bottom right left":"bottom-start","bottom right right":"bottom-start","bottom right bottom":"bottom-start","bottom right top":"bottom-start","top left left":"top-end","top left right":"top-end","top left bottom":"top-end","top left top":"top-end","top center left":"top","top center right":"top","top center bottom":"top","top center top":"top","top right left":"top-start","top right right":"top-start","top right bottom":"top-start","top right top":"top-start",middle:"bottom","middle center":"bottom","middle center bottom":"bottom","middle center left":"bottom","middle center right":"bottom","middle center top":"bottom"},bd=e=>{var t;return(t=dP[e])!==null&&t!==void 0?t:"bottom"},fP={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},overlay:{originX:.5,originY:.5}},pP=e=>{const t=e.startsWith("top")||e.startsWith("bottom")?"translateY":"translateX",n=e.startsWith("top")||e.startsWith("left")?1:-1;return{style:fP[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]}}};function hP(e){return!!(e!=null&&e.top)}function mP(e){return!!(e!=null&&e.current)}const gP=({anchor:e,anchorRef:t,anchorRect:n,getAnchorRect:r,fallbackReferenceElement:o})=>{var i;let s=null;return e?s=e:hP(t)?s={getBoundingClientRect(){const a=t.top.getBoundingClientRect(),l=t.bottom.getBoundingClientRect();return new window.DOMRect(a.x,a.y,a.width,l.bottom-a.top)}}:mP(t)?s=t.current:t?s=t:n?s={getBoundingClientRect(){return n}}:r?s={getBoundingClientRect(){var a,l,c,u;const d=r(o);return new window.DOMRect((a=d.x)!==null&&a!==void 0?a:d.left,(l=d.y)!==null&&l!==void 0?l:d.top,(c=d.width)!==null&&c!==void 0?c:d.right-d.left,(u=d.height)!==null&&u!==void 0?u:d.bottom-d.top)}}:o&&(s=o.parentElement),(i=s)!==null&&i!==void 0?i:null},$p=e=>e===null||Number.isNaN(e)?void 0:Math.round(e),Gp=h.createContext({isNestedInTooltip:!1}),vP=700,bP={isNestedInTooltip:!0};function yP(e,t){const{children:n,className:r,delay:o=vP,hideOnClick:i=!0,placement:s,position:a,shortcut:l,text:c,...u}=e,{isNestedInTooltip:d}=h.useContext(Gp),f=lt(Qi,"tooltip"),m=c||l?f:void 0,v=h.Children.count(n)===1;let g;s!==void 0?g=s:a!==void 0&&(g=bd(a),Mt("`position` prop in wp.components.tooltip",{since:"6.4",alternative:"`placement` prop"})),g=g||"bottom";const y=dE({placement:g,showTimeout:o}),b=Xe(y,"mounted");if(d)return v?p.jsx(Qs,{...u,render:n}):n;function _(x){return m&&b&&x.props["aria-describedby"]===void 0&&x.props["aria-label"]!==c?h.cloneElement(x,{"aria-describedby":m}):x}return p.jsxs(Gp.Provider,{value:bP,children:[p.jsx(bE,{onClick:i?y.hide:void 0,store:y,render:v?_(n):void 0,ref:t,children:v?void 0:n}),v&&(c||l)&&p.jsxs(mE,{...u,className:xe("components-tooltip",r),unmountOnHide:!0,gutter:4,id:m,overflowPadding:.5,store:y,children:[c,l&&p.jsx(uP,{className:c?"components-tooltip__shortcut":"",shortcut:l})]})]})}const Qi=h.forwardRef(yP);var Dl,Up;function xP(){if(Up)return Dl;Up=1;var e=function(_){return t(_)&&!n(_)};function t(b){return!!b&&typeof b=="object"}function n(b){var _=Object.prototype.toString.call(b);return _==="[object RegExp]"||_==="[object Date]"||i(b)}var r=typeof Symbol=="function"&&Symbol.for,o=r?Symbol.for("react.element"):60103;function i(b){return b.$$typeof===o}function s(b){return Array.isArray(b)?[]:{}}function a(b,_){return _.clone!==!1&&_.isMergeableObject(b)?g(s(b),b,_):b}function l(b,_,x){return b.concat(_).map(function(S){return a(S,x)})}function c(b,_){if(!_.customMerge)return g;var x=_.customMerge(b);return typeof x=="function"?x:g}function u(b){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(b).filter(function(_){return Object.propertyIsEnumerable.call(b,_)}):[]}function d(b){return Object.keys(b).concat(u(b))}function f(b,_){try{return _ in b}catch{return!1}}function m(b,_){return f(b,_)&&!(Object.hasOwnProperty.call(b,_)&&Object.propertyIsEnumerable.call(b,_))}function v(b,_,x){var S={};return x.isMergeableObject(b)&&d(b).forEach(function(w){S[w]=a(b[w],x)}),d(_).forEach(function(w){m(b,w)||(f(b,w)&&x.isMergeableObject(_[w])?S[w]=c(w,x)(b[w],_[w],x):S[w]=a(_[w],x))}),S}function g(b,_,x){x=x||{},x.arrayMerge=x.arrayMerge||l,x.isMergeableObject=x.isMergeableObject||e,x.cloneUnlessOtherwiseSpecified=a;var S=Array.isArray(_),w=Array.isArray(b),C=S===w;return C?S?x.arrayMerge(b,_,x):v(b,_,x):a(_,x)}g.all=function(_,x){if(!Array.isArray(_))throw new Error("first argument should be an array");return _.reduce(function(S,w){return g(S,w,x)},{})};var y=g;return Dl=y,Dl}var wP=xP();const SP=ko(wP);var Nl,Hp;function _P(){return Hp||(Hp=1,Nl=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(o=r;o--!==0;)if(!e(t[o],n[o]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(o of t.entries())if(!n.has(o[0]))return!1;for(o of t.entries())if(!e(o[1],n.get(o[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(o of t.entries())if(!n.has(o[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if(r=t.length,r!=n.length)return!1;for(o=r;o--!==0;)if(t[o]!==n[o])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),r=i.length,r!==Object.keys(n).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;o--!==0;){var s=i[o];if(!e(t[s],n[s]))return!1}return!0}return t!==t&&n!==n}),Nl}var CP=_P();const TP=ko(CP),Wp=new Set;function AP(){return globalThis.SCRIPT_DEBUG===!0}function qa(e){if(AP()&&!Wp.has(e)){console.warn(e);try{throw Error(e)}catch{}Wp.add(e)}}function en(e){return e!=null}function EP(e){const t=e==="";return!en(e)||t}function PP(e=[],t){var n;return(n=e.find(en))!==null&&n!==void 0?n:t}const kP=e=>parseFloat(e),$o=e=>typeof e=="string"?kP(e):e,Kp={initial:void 0,fallback:""};function Kb(e,t=Kp){const{initial:n,fallback:r}={...Kp,...t},[o,i]=h.useState(e),s=en(e);h.useEffect(()=>{s&&o&&i(void 0)},[s,o]);const a=PP([e,o,n],r),l=h.useCallback(c=>{s||i(c)},[s]);return[a,l]}function MP(e,t){const n=h.useRef(!1);h.useEffect(()=>{if(n.current)return e();n.current=!0},t),h.useEffect(()=>()=>{n.current=!1},[])}function Za({defaultValue:e,onChange:t,value:n}){const r=typeof n<"u",o=r?n:e,[i,s]=h.useState(o),a=r?n:i;let l;return r&&typeof t=="function"?l=t:!r&&typeof t=="function"?l=c=>{t(c),s(c)}:l=s,[a,l]}var RP=!1;function IP(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function jP(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var OP=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!RP:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(jP(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=IP(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),xt="-ms-",ra="-moz-",Te="-webkit-",qb="comm",yd="rule",xd="decl",DP="@import",Zb="@keyframes",NP="@layer",LP=Math.abs,Xa=String.fromCharCode,FP=Object.assign;function BP(e,t){return vt(e,0)^45?(((t<<2^vt(e,0))<<2^vt(e,1))<<2^vt(e,2))<<2^vt(e,3):0}function Xb(e){return e.trim()}function VP(e,t){return(e=t.exec(e))?e[0]:e}function Ae(e,t,n){return e.replace(t,n)}function Lc(e,t){return e.indexOf(t)}function vt(e,t){return e.charCodeAt(t)|0}function bi(e,t,n){return e.slice(t,n)}function Sn(e){return e.length}function wd(e){return e.length}function ws(e,t){return t.push(e),e}function zP(e,t){return e.map(t).join("")}var Ya=1,bo=1,Yb=0,Bt=0,ot=0,Lo="";function Ja(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Ya,column:bo,length:s,return:""}}function Go(e,t){return FP(Ja("",null,null,"",null,null,0),e,{length:-e.length},t)}function $P(){return ot}function GP(){return ot=Bt>0?vt(Lo,--Bt):0,bo--,ot===10&&(bo=1,Ya--),ot}function $t(){return ot=Bt<Yb?vt(Lo,Bt++):0,bo++,ot===10&&(bo=1,Ya++),ot}function An(){return vt(Lo,Bt)}function Ns(){return Bt}function es(e,t){return bi(Lo,e,t)}function yi(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Jb(e){return Ya=bo=1,Yb=Sn(Lo=e),Bt=0,[]}function Qb(e){return Lo="",e}function Ls(e){return Xb(es(Bt-1,Fc(e===91?e+2:e===40?e+1:e)))}function UP(e){for(;(ot=An())&&ot<33;)$t();return yi(e)>2||yi(ot)>3?"":" "}function HP(e,t){for(;--t&&$t()&&!(ot<48||ot>102||ot>57&&ot<65||ot>70&&ot<97););return es(e,Ns()+(t<6&&An()==32&&$t()==32))}function Fc(e){for(;$t();)switch(ot){case e:return Bt;case 34:case 39:e!==34&&e!==39&&Fc(ot);break;case 40:e===41&&Fc(e);break;case 92:$t();break}return Bt}function WP(e,t){for(;$t()&&e+ot!==57;)if(e+ot===84&&An()===47)break;return"/*"+es(t,Bt-1)+"*"+Xa(e===47?e:$t())}function KP(e){for(;!yi(An());)$t();return es(e,Bt)}function qP(e){return Qb(Fs("",null,null,null,[""],e=Jb(e),0,[0],e))}function Fs(e,t,n,r,o,i,s,a,l){for(var c=0,u=0,d=s,f=0,m=0,v=0,g=1,y=1,b=1,_=0,x="",S=o,w=i,C=r,T=x;y;)switch(v=_,_=$t()){case 40:if(v!=108&&vt(T,d-1)==58){Lc(T+=Ae(Ls(_),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:T+=Ls(_);break;case 9:case 10:case 13:case 32:T+=UP(v);break;case 92:T+=HP(Ns()-1,7);continue;case 47:switch(An()){case 42:case 47:ws(ZP(WP($t(),Ns()),t,n),l);break;default:T+="/"}break;case 123*g:a[c++]=Sn(T)*b;case 125*g:case 59:case 0:switch(_){case 0:case 125:y=0;case 59+u:b==-1&&(T=Ae(T,/\f/g,"")),m>0&&Sn(T)-d&&ws(m>32?Zp(T+";",r,n,d-1):Zp(Ae(T," ","")+";",r,n,d-2),l);break;case 59:T+=";";default:if(ws(C=qp(T,t,n,c,u,o,a,x,S=[],w=[],d),i),_===123)if(u===0)Fs(T,t,C,C,S,i,d,a,w);else switch(f===99&&vt(T,3)===110?100:f){case 100:case 108:case 109:case 115:Fs(e,C,C,r&&ws(qp(e,C,C,0,0,o,a,x,o,S=[],d),w),o,w,d,a,r?S:w);break;default:Fs(T,C,C,C,[""],w,0,a,w)}}c=u=m=0,g=b=1,x=T="",d=s;break;case 58:d=1+Sn(T),m=v;default:if(g<1){if(_==123)--g;else if(_==125&&g++==0&&GP()==125)continue}switch(T+=Xa(_),_*g){case 38:b=u>0?1:(T+="\f",-1);break;case 44:a[c++]=(Sn(T)-1)*b,b=1;break;case 64:An()===45&&(T+=Ls($t())),f=An(),u=d=Sn(x=T+=KP(Ns())),_++;break;case 45:v===45&&Sn(T)==2&&(g=0)}}return i}function qp(e,t,n,r,o,i,s,a,l,c,u){for(var d=o-1,f=o===0?i:[""],m=wd(f),v=0,g=0,y=0;v<r;++v)for(var b=0,_=bi(e,d+1,d=LP(g=s[v])),x=e;b<m;++b)(x=Xb(g>0?f[b]+" "+_:Ae(_,/&\f/g,f[b])))&&(l[y++]=x);return Ja(e,t,n,o===0?yd:a,l,c,u)}function ZP(e,t,n){return Ja(e,t,n,qb,Xa($P()),bi(e,2,-2),0)}function Zp(e,t,n,r){return Ja(e,t,n,xd,bi(e,0,r),bi(e,r+1,-1),r)}function lo(e,t){for(var n="",r=wd(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function XP(e,t,n,r){switch(e.type){case NP:if(e.children.length)break;case DP:case xd:return e.return=e.return||e.value;case qb:return"";case Zb:return e.return=e.value+"{"+lo(e.children,r)+"}";case yd:e.value=e.props.join(",")}return Sn(n=lo(e.children,r))?e.return=e.value+"{"+n+"}":""}function YP(e){var t=wd(e);return function(n,r,o,i){for(var s="",a=0;a<t;a++)s+=e[a](n,r,o,i)||"";return s}}function JP(e){return function(t){t.root||(t=t.return)&&e(t)}}function ey(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var QP=function(t,n,r){for(var o=0,i=0;o=i,i=An(),o===38&&i===12&&(n[r]=1),!yi(i);)$t();return es(t,Bt)},ek=function(t,n){var r=-1,o=44;do switch(yi(o)){case 0:o===38&&An()===12&&(n[r]=1),t[r]+=QP(Bt-1,n,r);break;case 2:t[r]+=Ls(o);break;case 4:if(o===44){t[++r]=An()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Xa(o)}while(o=$t());return t},tk=function(t,n){return Qb(ek(Jb(t),n))},Xp=new WeakMap,nk=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Xp.get(r))&&!o){Xp.set(t,!0);for(var i=[],s=tk(n,i),a=r.props,l=0,c=0;l<s.length;l++)for(var u=0;u<a.length;u++,c++)t.props[c]=i[l]?s[l].replace(/&\f/g,a[u]):a[u]+" "+s[l]}}},rk=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function ty(e,t){switch(BP(e,t)){case 5103:return Te+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Te+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Te+e+ra+e+xt+e+e;case 6828:case 4268:return Te+e+xt+e+e;case 6165:return Te+e+xt+"flex-"+e+e;case 5187:return Te+e+Ae(e,/(\w+).+(:[^]+)/,Te+"box-$1$2"+xt+"flex-$1$2")+e;case 5443:return Te+e+xt+"flex-item-"+Ae(e,/flex-|-self/,"")+e;case 4675:return Te+e+xt+"flex-line-pack"+Ae(e,/align-content|flex-|-self/,"")+e;case 5548:return Te+e+xt+Ae(e,"shrink","negative")+e;case 5292:return Te+e+xt+Ae(e,"basis","preferred-size")+e;case 6060:return Te+"box-"+Ae(e,"-grow","")+Te+e+xt+Ae(e,"grow","positive")+e;case 4554:return Te+Ae(e,/([^-])(transform)/g,"$1"+Te+"$2")+e;case 6187:return Ae(Ae(Ae(e,/(zoom-|grab)/,Te+"$1"),/(image-set)/,Te+"$1"),e,"")+e;case 5495:case 3959:return Ae(e,/(image-set\([^]*)/,Te+"$1$`$1");case 4968:return Ae(Ae(e,/(.+:)(flex-)?(.*)/,Te+"box-pack:$3"+xt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Te+e+e;case 4095:case 3583:case 4068:case 2532:return Ae(e,/(.+)-inline(.+)/,Te+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Sn(e)-1-t>6)switch(vt(e,t+1)){case 109:if(vt(e,t+4)!==45)break;case 102:return Ae(e,/(.+:)(.+)-([^]+)/,"$1"+Te+"$2-$3$1"+ra+(vt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Lc(e,"stretch")?ty(Ae(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(vt(e,t+1)!==115)break;case 6444:switch(vt(e,Sn(e)-3-(~Lc(e,"!important")&&10))){case 107:return Ae(e,":",":"+Te)+e;case 101:return Ae(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Te+(vt(e,14)===45?"inline-":"")+"box$3$1"+Te+"$2$3$1"+xt+"$2box$3")+e}break;case 5936:switch(vt(e,t+11)){case 114:return Te+e+xt+Ae(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Te+e+xt+Ae(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Te+e+xt+Ae(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Te+e+xt+e+e}return e}var ok=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case xd:t.return=ty(t.value,t.length);break;case Zb:return lo([Go(t,{value:Ae(t.value,"@","@"+Te)})],o);case yd:if(t.length)return zP(t.props,function(i){switch(VP(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return lo([Go(t,{props:[Ae(i,/:(read-\w+)/,":"+ra+"$1")]})],o);case"::placeholder":return lo([Go(t,{props:[Ae(i,/:(plac\w+)/,":"+Te+"input-$1")]}),Go(t,{props:[Ae(i,/:(plac\w+)/,":"+ra+"$1")]}),Go(t,{props:[Ae(i,/:(plac\w+)/,xt+"input-$1")]})],o)}return""})}},ik=[ok],Sd=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var y=g.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||ik,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var y=g.getAttribute("data-emotion").split(" "),b=1;b<y.length;b++)i[y[b]]=!0;a.push(g)});var l,c=[nk,rk];{var u,d=[XP,JP(function(g){u.insert(g)})],f=YP(c.concat(o,d)),m=function(y){return lo(qP(y),f)};l=function(y,b,_,x){u=_,m(y?y+"{"+b.styles+"}":b.styles),x&&(v.inserted[b.name]=!0)}}var v={key:n,sheet:new OP({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return v.sheet.hydrate(a),v};function Bc(){return Bc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bc.apply(null,arguments)}var Ll={exports:{}},Pe={};/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Yp;function sk(){if(Yp)return Pe;Yp=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function x(w){if(typeof w=="object"&&w!==null){var C=w.$$typeof;switch(C){case t:switch(w=w.type,w){case l:case c:case r:case i:case o:case d:return w;default:switch(w=w&&w.$$typeof,w){case a:case u:case v:case m:case s:return w;default:return C}}case n:return C}}}function S(w){return x(w)===c}return Pe.AsyncMode=l,Pe.ConcurrentMode=c,Pe.ContextConsumer=a,Pe.ContextProvider=s,Pe.Element=t,Pe.ForwardRef=u,Pe.Fragment=r,Pe.Lazy=v,Pe.Memo=m,Pe.Portal=n,Pe.Profiler=i,Pe.StrictMode=o,Pe.Suspense=d,Pe.isAsyncMode=function(w){return S(w)||x(w)===l},Pe.isConcurrentMode=S,Pe.isContextConsumer=function(w){return x(w)===a},Pe.isContextProvider=function(w){return x(w)===s},Pe.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},Pe.isForwardRef=function(w){return x(w)===u},Pe.isFragment=function(w){return x(w)===r},Pe.isLazy=function(w){return x(w)===v},Pe.isMemo=function(w){return x(w)===m},Pe.isPortal=function(w){return x(w)===n},Pe.isProfiler=function(w){return x(w)===i},Pe.isStrictMode=function(w){return x(w)===o},Pe.isSuspense=function(w){return x(w)===d},Pe.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===c||w===i||w===o||w===d||w===f||typeof w=="object"&&w!==null&&(w.$$typeof===v||w.$$typeof===m||w.$$typeof===s||w.$$typeof===a||w.$$typeof===u||w.$$typeof===y||w.$$typeof===b||w.$$typeof===_||w.$$typeof===g)},Pe.typeOf=x,Pe}var Jp;function ak(){return Jp||(Jp=1,Ll.exports=sk()),Ll.exports}var Fl,Qp;function lk(){if(Qp)return Fl;Qp=1;var e=ak(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=r,i[e.Memo]=o;function s(v){return e.isMemo(v)?o:i[v.$$typeof]||t}var a=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;function m(v,g,y){if(typeof g!="string"){if(f){var b=d(g);b&&b!==f&&m(v,b,y)}var _=l(g);c&&(_=_.concat(c(g)));for(var x=s(v),S=s(g),w=0;w<_.length;++w){var C=_[w];if(!n[C]&&!(y&&y[C])&&!(S&&S[C])&&!(x&&x[C])){var T=u(g,C);try{a(v,C,T)}catch{}}}}return v}return Fl=m,Fl}lk();var ck=!0;function Qa(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var _d=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||ck===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},el=function(t,n,r){_d(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function uk(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var dk={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},fk=/[A-Z]|^ms/g,pk=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ny=function(t){return t.charCodeAt(1)===45},eh=function(t){return t!=null&&typeof t!="boolean"},Bl=ey(function(e){return ny(e)?e:e.replace(fk,"-$&").toLowerCase()}),th=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(pk,function(r,o,i){return _n={name:o,styles:i,next:_n},o})}return dk[t]!==1&&!ny(t)&&typeof n=="number"&&n!==0?n+"px":n};function xi(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return _n={name:o.name,styles:o.styles,next:_n},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)_n={name:s.name,styles:s.styles,next:_n},s=s.next;var a=i.styles+";";return a}return hk(e,t,n)}case"function":{if(e!==void 0){var l=_n,c=n(e);return _n=l,xi(e,t,c)}break}}var u=n;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function hk(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=xi(e,t,n[o])+";";else for(var i in n){var s=n[i];if(typeof s!="object"){var a=s;t!=null&&t[a]!==void 0?r+=i+"{"+t[a]+"}":eh(a)&&(r+=Bl(i)+":"+th(i,a)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var l=0;l<s.length;l++)eh(s[l])&&(r+=Bl(i)+":"+th(i,s[l])+";");else{var c=xi(e,t,s);switch(i){case"animation":case"animationName":{r+=Bl(i)+":"+c+";";break}default:r+=i+"{"+c+"}"}}}return r}var nh=/label:\s*([^\s;{]+)\s*(;|$)/g,_n;function co(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";_n=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=xi(n,t,i);else{var s=i;o+=s[0]}for(var a=1;a<e.length;a++)if(o+=xi(n,t,e[a]),r){var l=i;o+=l[a]}nh.lastIndex=0;for(var c="",u;(u=nh.exec(o))!==null;)c+="-"+u[1];var d=uk(o)+c;return{name:d,styles:o,next:_n}}var mk=function(t){return t()},gk=wc.useInsertionEffect?wc.useInsertionEffect:!1,ry=gk||mk,vk=!1,Cd=h.createContext(typeof HTMLElement<"u"?Sd({key:"css"}):null),bk=Cd.Provider,yk=function(){return h.useContext(Cd)},oy=function(t){return h.forwardRef(function(n,r){var o=h.useContext(Cd);return t(n,o,r)})},iy=h.createContext({}),Td={}.hasOwnProperty,Vc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",xk=function(t,n){var r={};for(var o in n)Td.call(n,o)&&(r[o]=n[o]);return r[Vc]=t,r},wk=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return _d(n,r,o),ry(function(){return el(n,r,o)}),null},Sk=oy(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[Vc],i=[r],s="";typeof e.className=="string"?s=Qa(t.registered,i,e.className):e.className!=null&&(s=e.className+" ");var a=co(i,void 0,h.useContext(iy));s+=t.key+"-"+a.name;var l={};for(var c in e)Td.call(e,c)&&c!=="css"&&c!==Vc&&!vk&&(l[c]=e[c]);return l.className=s,n&&(l.ref=n),h.createElement(h.Fragment,null,h.createElement(wk,{cache:t,serialized:a,isStringTag:typeof o=="string"}),h.createElement(o,l))}),_k=Sk,Ck=function(t,n){var r=arguments;if(n==null||!Td.call(n,"css"))return h.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=_k,i[1]=xk(t,n);for(var s=2;s<o;s++)i[s]=r[s];return h.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Ck);function V(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return co(t)}function Tk(){var e=V.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function rh(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function oh(e,t,n){var r=[],o=Qa(e,r,n);return r.length<2?n:o+t(r)}var Ak=function(t){var n=Sd(t);n.sheet.speedy=function(a){this.isSpeedy=a},n.compat=!0;var r=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=co(c,n.registered,void 0);return el(n,d,!1),n.key+"-"+d.name},o=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=co(c,n.registered),f="animation-"+d.name;return rh(n,{name:d.name,styles:"@keyframes "+f+"{"+d.styles+"}"}),f},i=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=co(c,n.registered);rh(n,d)},s=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return oh(n.registered,r,Ek(c))};return{css:r,cx:s,injectGlobal:i,keyframes:o,hydrate:function(l){l.forEach(function(c){n.inserted[c]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:Qa.bind(null,n.registered),merge:oh.bind(null,n.registered,r)}},Ek=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(o!=null){var i=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))i=e(o);else{i="";for(var s in o)o[s]&&s&&(i&&(i+=" "),i+=s)}break}default:i=o}i&&(n&&(n+=" "),n+=i)}}return n},Pk=Ak({key:"css"}),kk=Pk.cx;const Mk=e=>typeof e<"u"&&e!==null&&["name","styles"].every(t=>typeof e[t]<"u"),et=()=>{const e=yk();return h.useCallback((...n)=>{if(e===null)throw new Error("The `useCx` hook should be only used within a valid Emotion Cache Context");return kk(...n.map(r=>Mk(r)?(el(e,r,!1),`${e.key}-${r.name}`):r))},[e])},Ad={name:"kv6lnz",styles:"box-sizing:border-box;*,*::before,*::after{box-sizing:inherit;}"};var Rk={grad:.9,turn:360,rad:360/(2*Math.PI)},Ln=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},ut=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},rn=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e>t?e:t},sy=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},ih=function(e){return{r:rn(e.r,0,255),g:rn(e.g,0,255),b:rn(e.b,0,255),a:rn(e.a)}},Vl=function(e){return{r:ut(e.r),g:ut(e.g),b:ut(e.b),a:ut(e.a,3)}},Ik=/^#([0-9a-f]{3,8})$/i,Ss=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},ay=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),s=i-Math.min(t,n,r),a=s?i===t?(n-r)/s:i===n?2+(r-t)/s:4+(t-n)/s:0;return{h:60*(a<0?a+6:a),s:i?s/i*100:0,v:i/255*100,a:o}},ly=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),s=r*(1-n),a=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),c=i%6;return{r:255*[r,a,s,s,l,r][c],g:255*[l,r,r,a,s,s][c],b:255*[s,s,l,r,r,a][c],a:o}},sh=function(e){return{h:sy(e.h),s:rn(e.s,0,100),l:rn(e.l,0,100),a:rn(e.a)}},ah=function(e){return{h:ut(e.h),s:ut(e.s),l:ut(e.l),a:ut(e.a,3)}},lh=function(e){return ly((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},oi=function(e){return{h:(t=ay(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},jk=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ok=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Dk=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Nk=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,zc={string:[[function(e){var t=Ik.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?ut(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?ut(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Dk.exec(e)||Nk.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:ih({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=jk.exec(e)||Ok.exec(e);if(!t)return null;var n,r,o=sh({h:(n=t[1],r=t[2],r===void 0&&(r="deg"),Number(n)*(Rk[r]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return lh(o)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=o===void 0?1:o;return Ln(t)&&Ln(n)&&Ln(r)?ih({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=o===void 0?1:o;if(!Ln(t)||!Ln(n)||!Ln(r))return null;var s=sh({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return lh(s)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=o===void 0?1:o;if(!Ln(t)||!Ln(n)||!Ln(r))return null;var s=function(a){return{h:sy(a.h),s:rn(a.s,0,100),v:rn(a.v,0,100),a:rn(a.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return ly(s)},"hsv"]]},ch=function(e,t){for(var n=0;n<t.length;n++){var r=t[n][0](e);if(r)return[r,t[n][1]]}return[null,void 0]},Lk=function(e){return typeof e=="string"?ch(e.trim(),zc.string):typeof e=="object"&&e!==null?ch(e,zc.object):[null,void 0]},zl=function(e,t){var n=oi(e);return{h:n.h,s:rn(n.s+100*t,0,100),l:n.l,a:n.a}},$l=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},uh=function(e,t){var n=oi(e);return{h:n.h,s:n.s,l:rn(n.l+100*t,0,100),a:n.a}},$c=function(){function e(t){this.parsed=Lk(t)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return this.parsed!==null},e.prototype.brightness=function(){return ut($l(this.rgba),2)},e.prototype.isDark=function(){return $l(this.rgba)<.5},e.prototype.isLight=function(){return $l(this.rgba)>=.5},e.prototype.toHex=function(){return t=Vl(this.rgba),n=t.r,r=t.g,o=t.b,s=(i=t.a)<1?Ss(ut(255*i)):"","#"+Ss(n)+Ss(r)+Ss(o)+s;var t,n,r,o,i,s},e.prototype.toRgb=function(){return Vl(this.rgba)},e.prototype.toRgbString=function(){return t=Vl(this.rgba),n=t.r,r=t.g,o=t.b,(i=t.a)<1?"rgba("+n+", "+r+", "+o+", "+i+")":"rgb("+n+", "+r+", "+o+")";var t,n,r,o,i},e.prototype.toHsl=function(){return ah(oi(this.rgba))},e.prototype.toHslString=function(){return t=ah(oi(this.rgba)),n=t.h,r=t.s,o=t.l,(i=t.a)<1?"hsla("+n+", "+r+"%, "+o+"%, "+i+")":"hsl("+n+", "+r+"%, "+o+"%)";var t,n,r,o,i},e.prototype.toHsv=function(){return t=ay(this.rgba),{h:ut(t.h),s:ut(t.s),v:ut(t.v),a:ut(t.a,3)};var t},e.prototype.invert=function(){return Le({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},e.prototype.saturate=function(t){return t===void 0&&(t=.1),Le(zl(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),Le(zl(this.rgba,-t))},e.prototype.grayscale=function(){return Le(zl(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),Le(uh(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),Le(uh(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(this.hue()+t)},e.prototype.alpha=function(t){return typeof t=="number"?Le({r:(n=this.rgba).r,g:n.g,b:n.b,a:t}):ut(this.rgba.a,3);var n},e.prototype.hue=function(t){var n=oi(this.rgba);return typeof t=="number"?Le({h:t,s:n.s,l:n.l,a:n.a}):ut(n.h)},e.prototype.isEqual=function(t){return this.toHex()===Le(t).toHex()},e}(),Le=function(e){return e instanceof $c?e:new $c(e)},dh=[],tl=function(e){e.forEach(function(t){dh.indexOf(t)<0&&(t($c,zc),dh.push(t))})};function nl(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(s){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var a,l,c=r[this.toHex()];if(c)return c;if(s!=null&&s.closest){var u=this.toRgb(),d=1/0,f="black";if(!i.length)for(var m in n)i[m]=new e(n[m]).toRgb();for(var v in n){var g=(a=u,l=i[v],Math.pow(a.r-l.r,2)+Math.pow(a.g-l.g,2)+Math.pow(a.b-l.b,2));g<d&&(d=g,f=v)}return f}},t.string.push([function(s){var a=s.toLowerCase(),l=a==="transparent"?"#0000":n[a];return l?new e(l).toRgb():null},"name"])}let Gl;tl([nl]);function Fk(){if(!(typeof document>"u")){if(!Gl){const e=document.createElement("div");e.setAttribute("data-g2-color-computation-node",""),document.body.appendChild(e),Gl=e}return Gl}}function Bk(e){return typeof e!="string"?!1:Le(e).isValid()}function Vk(e){if(typeof e!="string")return"";if(Bk(e))return e;if(!e.includes("var(")||typeof document>"u")return"";const t=Fk();if(!t)return"";t.style.background=e;const n=window==null?void 0:window.getComputedStyle(t).background;return t.style.background="",n||""}const zk=$i(Vk);function $k(e){const t=zk(e);return Le(t).isLight()?"#000000":"#ffffff"}function Gk(e){return $k(e)==="#000000"?"dark":"light"}const fh=new RegExp(/-left/g),ph=new RegExp(/-right/g),hh=new RegExp(/Left/g),mh=new RegExp(/Right/g);function Uk(e){return e==="left"?"right":e==="right"?"left":fh.test(e)?e.replace(fh,"-right"):ph.test(e)?e.replace(ph,"-left"):hh.test(e)?e.replace(hh,"Right"):mh.test(e)?e.replace(mh,"Left"):e}const Hk=(e={})=>Object.fromEntries(Object.entries(e).map(([t,n])=>[Uk(t),n]));function Ye(e={},t){return()=>t?fn()?V(t,"",""):V(e,"",""):fn()?V(Hk(e),"",""):V(e,"","")}Ye.watch=()=>fn();const Wk={"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 uo(e){var t;return(t=Wk[e])!==null&&t!==void 0?t:""}const Kk={huge:"1440px",wide:"1280px","x-large":"1080px",large:"960px",medium:"782px",small:"600px",mobile:"480px","zoomed-in":"280px"},qk=e=>`@media (min-width: ${Kk[e]})`,Zk="4px";function Y(e){var n,r;if(typeof e>"u")return;if(!e)return"0";const t=typeof e=="number"?e:Number(e);return typeof window<"u"&&((r=(n=window.CSS)==null?void 0:n.supports)!=null&&r.call(n,"margin",e.toString()))||Number.isNaN(t)?e.toString():`calc(${Zk} * ${e})`}const Bs="#fff",xn={900:"#1e1e1e",800:"#2f2f2f",700:"#757575",600:"#949494",400:"#ccc",300:"#ddd",200:"#e0e0e0",100:"#f0f0f0"},Xk={yellow:"#f0b849",red:"#d94f4f",green:"#4ab866"},wn={accent:"var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9))",accentDarker10:"var(--wp-components-color-accent-darker-10, var(--wp-admin-theme-color-darker-10, #2145e6))",accentDarker20:"var(--wp-components-color-accent-darker-20, var(--wp-admin-theme-color-darker-20, #183ad6))",accentInverted:`var(--wp-components-color-accent-inverted, ${Bs})`,background:`var(--wp-components-color-background, ${Bs})`,foreground:`var(--wp-components-color-foreground, ${xn[900]})`,foregroundInverted:`var(--wp-components-color-foreground-inverted, ${Bs})`,gray:{900:`var(--wp-components-color-foreground, ${xn[900]})`,800:`var(--wp-components-color-gray-800, ${xn[800]})`,700:`var(--wp-components-color-gray-700, ${xn[700]})`,600:`var(--wp-components-color-gray-600, ${xn[600]})`,400:`var(--wp-components-color-gray-400, ${xn[400]})`,300:`var(--wp-components-color-gray-300, ${xn[300]})`,200:`var(--wp-components-color-gray-200, ${xn[200]})`,100:`var(--wp-components-color-gray-100, ${xn[100]})`}},Yk={background:wn.background,backgroundDisabled:wn.gray[100],border:wn.gray[600],borderHover:wn.gray[700],borderFocus:wn.accent,borderDisabled:wn.gray[400],textDisabled:wn.gray[600],darkGrayPlaceholder:`color-mix(in srgb, ${wn.foreground}, transparent 38%)`,lightGrayPlaceholder:`color-mix(in srgb, ${wn.background}, transparent 35%)`},J=Object.freeze({gray:xn,white:Bs,alert:Xk,theme:wn,ui:Yk}),Uo="36px",Jk={controlPaddingX:12,controlPaddingXSmall:8,controlPaddingXLarge:12*1.3334,controlBoxShadowFocus:`0 0 0 0.5px ${J.theme.accent}`,controlHeight:Uo,controlHeightXSmall:`calc( ${Uo} * 0.6 )`,controlHeightSmall:`calc( ${Uo} * 0.8 )`,controlHeightLarge:`calc( ${Uo} * 1.2 )`,controlHeightXLarge:`calc( ${Uo} * 1.4 )`},Z=Object.assign({},Jk,{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,radiusXSmall:"1px",radiusSmall:"2px",radiusMedium:"4px",radiusLarge:"8px",radiusFull:"9999px",radiusRound:"50%",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.4",fontWeight:"normal",fontWeightHeading:"600",gridBase:"4px",cardPaddingXSmall:`${Y(2)}`,cardPaddingSmall:`${Y(4)}`,cardPaddingMedium:`${Y(4)} ${Y(6)}`,cardPaddingLarge:`${Y(6)} ${Y(8)}`,elevationXSmall:"0 1px 1px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02), 0 3px 3px rgba(0, 0, 0, 0.02), 0 4px 4px rgba(0, 0, 0, 0.01)",elevationSmall:"0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 3px rgba(0, 0, 0, 0.04), 0 6px 6px rgba(0, 0, 0, 0.03), 0 8px 8px rgba(0, 0, 0, 0.02)",elevationMedium:"0 2px 3px rgba(0, 0, 0, 0.05), 0 4px 5px rgba(0, 0, 0, 0.04), 0 12px 12px rgba(0, 0, 0, 0.03), 0 16px 16px rgba(0, 0, 0, 0.02)",elevationLarge:"0 5px 15px rgba(0, 0, 0, 0.08), 0 15px 27px rgba(0, 0, 0, 0.07), 0 30px 36px rgba(0, 0, 0, 0.04), 0 50px 43px rgba(0, 0, 0, 0.02)",surfaceBackgroundColor:J.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:J.white,surfaceColor:J.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)"}),cy={name:"9amh4a",styles:"font-size:11px;font-weight:500;line-height:1.4;text-transform:uppercase"},uy=h.createContext({}),dy=()=>h.useContext(uy);function Qk({value:e}){const t=dy(),n=h.useRef(e);return MP(()=>{TP(n.current,e)&&n.current!==e&&globalThis.SCRIPT_DEBUG===!0&&qa(`Please memoize your context: ${JSON.stringify(e)}`)},[e]),h.useMemo(()=>SP(t??{},e??{},{isMergeableObject:tv}),[t,e])}const eM=({children:e,value:t})=>{const n=Qk({value:t});return p.jsx(uy.Provider,{value:n,children:e})},fy=h.memo(eM),tM="data-wp-component",nM="data-wp-c16t",Jr="__contextSystemKey__";function rM(e){return`components-${Ws(e)}`}const py=$i(rM);function Me(e,t){return hy(e,t,{forwardsRef:!0})}function oM(e,t){return hy(e,t)}function hy(e,t,n){const r=n!=null&&n.forwardsRef?h.forwardRef(e):e;typeof t>"u"&&globalThis.SCRIPT_DEBUG===!0&&qa("contextConnect: Please provide a namespace");let o=r[Jr]||[t];return Array.isArray(t)&&(o=[...o,...t]),typeof t=="string"&&(o=[...o,t]),Object.assign(r,{[Jr]:[...new Set(o)],displayName:t,selector:`.${py(t)}`})}function gh(e){if(!e)return[];let t=[];return e[Jr]&&(t=e[Jr]),e.type&&e.type[Jr]&&(t=e.type[Jr]),t}function my(e,t){return e?typeof t=="string"?gh(e).includes(t):Array.isArray(t)?t.some(n=>gh(e).includes(n)):!1:!1}function iM(e){return{[tM]:e}}function sM(){return{[nM]:!0}}function Ee(e,t){const n=dy();typeof t>"u"&&globalThis.SCRIPT_DEBUG===!0&&qa("useContextSystem: Please provide a namespace");const r=(n==null?void 0:n[t])||{},o={...sM(),...iM(t)},{_overrides:i,...s}=r,a=Object.entries(s).length?Object.assign({},s,e):e,c=et()(py(t),e.className),u=typeof a.renderChildren=="function"?a.renderChildren(a):a.children;for(const d in a)o[d]=a[d];for(const d in i)o[d]=i[d];return u!==void 0&&(o.children=u),o.className=c,o}const aM={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 lM=/^((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|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|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)-.*))$/,cM=ey(function(e){return lM.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),uM=cM,dM=function(t){return t!=="theme"},vh=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?uM:dM},bh=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},fM=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return _d(n,r,o),ry(function(){return el(n,r,o)}),null},ne=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=bh(t,n,r),l=a||vh(o),c=!l("as");return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var m=u.length,v=1;v<m;v++)d.push(u[v],f[v])}var g=oy(function(y,b,_){var x=c&&y.as||o,S="",w=[],C=y;if(y.theme==null){C={};for(var T in y)C[T]=y[T];C.theme=h.useContext(iy)}typeof y.className=="string"?S=Qa(b.registered,w,y.className):y.className!=null&&(S=y.className+" ");var A=co(d.concat(w),b.registered,C);S+=b.key+"-"+A.name,s!==void 0&&(S+=" "+s);var E=c&&a===void 0?vh(x):l,P={};for(var L in y)c&&L==="as"||E(L)&&(P[L]=y[L]);return P.className=S,_&&(P.ref=_),h.createElement(h.Fragment,null,h.createElement(fM,{cache:b,serialized:A,isStringTag:typeof x=="string"}),h.createElement(x,P))});return g.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=o,g.__emotion_styles=d,g.__emotion_forwardProp=a,Object.defineProperty(g,"toString",{value:function(){return"."+s}}),g.withComponent=function(y,b){var _=e(y,Bc({},n,b,{shouldForwardProp:bh(g,b,!0)}));return _.apply(void 0,d)},g}};const pM=ne("div",{target:"e19lxcc00"})("");function hM({as:e,...t},n){return p.jsx(pM,{as:e,ref:n,...t})}const at=Object.assign(h.forwardRef(hM),{selector:".components-view"});function mM(e,t){const{style:n,...r}=Ee(e,"VisuallyHidden");return p.jsx(at,{ref:t,...r,style:{...aM,...n||{}}})}const Rn=Me(mM,"VisuallyHidden");function gM(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,o)=>o==="create"?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}function rl(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Gc=e=>Array.isArray(e);function gy(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function wi(e){return typeof e=="string"||Array.isArray(e)}function yh(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ed(e,t,n,r){if(typeof t=="function"){const[o,i]=yh(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=yh(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function ol(e,t,n){const r=e.getProps();return Ed(r,t,n!==void 0?n:r.custom,e)}const Pd=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],kd=["initial",...Pd],ts=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Hr=new Set(ts),$n=e=>e*1e3,Gn=e=>e/1e3,vM={type:"spring",stiffness:500,damping:25,restSpeed:10},bM=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),yM={type:"keyframes",duration:.8},xM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},wM=(e,{keyframes:t})=>t.length>2?yM:Hr.has(e)?e.startsWith("scale")?bM(t[1]):vM:xM;function Md(e,t){return e?e[t]||e.default||e:void 0}const SM={skipAnimations:!1,useManualTiming:!1},_M=e=>e!==null;function il(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(_M),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}const Gt=e=>e;let Uc=Gt;function CM(e){let t=new Set,n=new Set,r=!1,o=!1;const i=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(c){i.has(c)&&(l.schedule(c),e()),c(s)}const l={schedule:(c,u=!1,d=!1)=>{const m=d&&r?t:n;return u&&i.add(c),m.has(c)||m.add(c),c},cancel:c=>{n.delete(c),i.delete(c)},process:c=>{if(s=c,r){o=!0;return}r=!0,[t,n]=[n,t],t.forEach(a),t.clear(),r=!1,o&&(o=!1,l.process(c))}};return l}const _s=["read","resolveKeyframes","update","preRender","render","postRender"],TM=40;function vy(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=_s.reduce((b,_)=>(b[_]=CM(i),b),{}),{read:a,resolveKeyframes:l,update:c,preRender:u,render:d,postRender:f}=s,m=()=>{const b=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(b-o.timestamp,TM),1),o.timestamp=b,o.isProcessing=!0,a.process(o),l.process(o),c.process(o),u.process(o),d.process(o),f.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(m))},v=()=>{n=!0,r=!0,o.isProcessing||e(m)};return{schedule:_s.reduce((b,_)=>{const x=s[_];return b[_]=(S,w=!1,C=!1)=>(n||v(),x.schedule(S,w,C)),b},{}),cancel:b=>{for(let _=0;_<_s.length;_++)s[_s[_]].cancel(b)},state:o,steps:s}}const{schedule:Fe,cancel:dr,state:gt,steps:Ul}=vy(typeof requestAnimationFrame<"u"?requestAnimationFrame:Gt,!0),by=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,AM=1e-7,EM=12;function PM(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=by(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>AM&&++a<EM);return s}function ns(e,t,n,r){if(e===t&&n===r)return Gt;const o=i=>PM(i,0,1,e,n);return i=>i===0||i===1?i:by(o(i),t,r)}const yy=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,xy=e=>t=>1-e(1-t),wy=ns(.33,1.53,.69,.99),Rd=xy(wy),Sy=yy(Rd),_y=e=>(e*=2)<1?.5*Rd(e):.5*(2-Math.pow(2,-10*(e-1))),Id=e=>1-Math.sin(Math.acos(e)),Cy=xy(Id),Ty=yy(Id),Ay=e=>/^0[^.\s]+$/u.test(e);function kM(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Ay(e):!0}const Ey=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Py=e=>t=>typeof t=="string"&&t.startsWith(e),ky=Py("--"),MM=Py("var(--"),jd=e=>MM(e)?RM.test(e.split("/*")[0].trim()):!1,RM=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,IM=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function jM(e){const t=IM.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function My(e,t,n=1){const[r,o]=jM(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return Ey(s)?parseFloat(s):s}return jd(o)?My(o,t,n+1):o}const Kn=(e,t,n)=>n>t?t:n<e?e:n,Fo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Si={...Fo,transform:e=>Kn(0,1,e)},Cs={...Fo,default:1},rs=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),er=rs("deg"),En=rs("%"),se=rs("px"),OM=rs("vh"),DM=rs("vw"),xh={...En,parse:e=>En.parse(e)/100,transform:e=>En.transform(e*100)},NM=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),wh=e=>e===Fo||e===se,Sh=(e,t)=>parseFloat(e.split(", ")[t]),_h=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return Sh(o[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?Sh(i[1],e):0}},LM=new Set(["x","y","z"]),FM=ts.filter(e=>!LM.has(e));function BM(e){const t=[];return FM.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const yo={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:_h(4,13),y:_h(5,14)};yo.translateX=yo.x;yo.translateY=yo.y;const Ry=e=>t=>t.test(e),VM={test:e=>e==="auto",parse:e=>e},Iy=[Fo,se,En,er,DM,OM,VM],Ch=e=>Iy.find(Ry(e)),Rr=new Set;let Hc=!1,Wc=!1;function jy(){if(Wc){const e=Array.from(Rr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=BM(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,s])=>{var a;(a=r.getValue(i))===null||a===void 0||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Wc=!1,Hc=!1,Rr.forEach(e=>e.complete()),Rr.clear()}function Oy(){Rr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Wc=!0)})}function zM(){Oy(),jy()}class Od{constructor(t,n,r,o,i,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Rr.add(this),Hc||(Hc=!0,Fe.read(Oy),Fe.resolveKeyframes(jy))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let i=0;i<t.length;i++)if(t[i]===null)if(i===0){const s=o==null?void 0:o.get(),a=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const l=r.readValue(n,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),o&&s===void 0&&o.set(t[0])}else t[i]=t[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Rr.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Rr.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const ii=e=>Math.round(e*1e5)/1e5,Dd=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function $M(e){return e==null}const GM=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Nd=(e,t)=>n=>!!(typeof n=="string"&&GM.test(n)&&n.startsWith(e)||t&&!$M(n)&&Object.prototype.hasOwnProperty.call(n,t)),Dy=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(Dd);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},UM=e=>Kn(0,255,e),Hl={...Fo,transform:e=>Math.round(UM(e))},kr={test:Nd("rgb","red"),parse:Dy("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Hl.transform(e)+", "+Hl.transform(t)+", "+Hl.transform(n)+", "+ii(Si.transform(r))+")"};function HM(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Kc={test:Nd("#"),parse:HM,transform:kr.transform},Qr={test:Nd("hsl","hue"),parse:Dy("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+En.transform(ii(t))+", "+En.transform(ii(n))+", "+ii(Si.transform(r))+")"},wt={test:e=>kr.test(e)||Kc.test(e)||Qr.test(e),parse:e=>kr.test(e)?kr.parse(e):Qr.test(e)?Qr.parse(e):Kc.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?kr.transform(e):Qr.transform(e)},WM=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function KM(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Dd))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(WM))===null||n===void 0?void 0:n.length)||0)>0}const Ny="number",Ly="color",qM="var",ZM="var(",Th="${}",XM=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function _i(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(XM,l=>(wt.test(l)?(r.color.push(i),o.push(Ly),n.push(wt.parse(l))):l.startsWith(ZM)?(r.var.push(i),o.push(qM),n.push(l)):(r.number.push(i),o.push(Ny),n.push(parseFloat(l))),++i,Th)).split(Th);return{values:n,split:a,indexes:r,types:o}}function Fy(e){return _i(e).values}function By(e){const{split:t,types:n}=_i(e),r=t.length;return o=>{let i="";for(let s=0;s<r;s++)if(i+=t[s],o[s]!==void 0){const a=n[s];a===Ny?i+=ii(o[s]):a===Ly?i+=wt.transform(o[s]):i+=o[s]}return i}}const YM=e=>typeof e=="number"?0:e;function JM(e){const t=Fy(e);return By(e)(t.map(YM))}const fr={test:KM,parse:Fy,createTransformer:By,getAnimatableNone:JM},QM=new Set(["brightness","contrast","saturate","opacity"]);function eR(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Dd)||[];if(!r)return e;const o=n.replace(r,"");let i=QM.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const tR=/\b([a-z-]*)\(.*?\)/gu,qc={...fr,getAnimatableNone:e=>{const t=e.match(tR);return t?t.map(eR).join(" "):e}},nR={borderWidth:se,borderTopWidth:se,borderRightWidth:se,borderBottomWidth:se,borderLeftWidth:se,borderRadius:se,radius:se,borderTopLeftRadius:se,borderTopRightRadius:se,borderBottomRightRadius:se,borderBottomLeftRadius:se,width:se,maxWidth:se,height:se,maxHeight:se,top:se,right:se,bottom:se,left:se,padding:se,paddingTop:se,paddingRight:se,paddingBottom:se,paddingLeft:se,margin:se,marginTop:se,marginRight:se,marginBottom:se,marginLeft:se,backgroundPositionX:se,backgroundPositionY:se},rR={rotate:er,rotateX:er,rotateY:er,rotateZ:er,scale:Cs,scaleX:Cs,scaleY:Cs,scaleZ:Cs,skew:er,skewX:er,skewY:er,distance:se,translateX:se,translateY:se,translateZ:se,x:se,y:se,z:se,perspective:se,transformPerspective:se,opacity:Si,originX:xh,originY:xh,originZ:se},Ah={...Fo,transform:Math.round},Ld={...nR,...rR,zIndex:Ah,size:se,fillOpacity:Si,strokeOpacity:Si,numOctaves:Ah},oR={...Ld,color:wt,backgroundColor:wt,outlineColor:wt,fill:wt,stroke:wt,borderColor:wt,borderTopColor:wt,borderRightColor:wt,borderBottomColor:wt,borderLeftColor:wt,filter:qc,WebkitFilter:qc},Fd=e=>oR[e];function Vy(e,t){let n=Fd(e);return n!==qc&&(n=fr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const iR=new Set(["auto","none","0"]);function sR(e,t,n){let r=0,o;for(;r<e.length&&!o;){const i=e[r];typeof i=="string"&&!iR.has(i)&&_i(i).values.length&&(o=e[r]),r++}if(o&&n)for(const i of t)e[i]=Vy(n,o)}class zy extends Od{constructor(t,n,r,o,i){super(t,n,r,o,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let c=t[l];if(typeof c=="string"&&(c=c.trim(),jd(c))){const u=My(c,n.current);u!==void 0&&(t[l]=u),l===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!NM.has(r)||t.length!==2)return;const[o,i]=t,s=Ch(o),a=Ch(i);if(s!==a)if(wh(s)&&wh(a))for(let l=0;l<t.length;l++){const c=t[l];typeof c=="string"&&(t[l]=parseFloat(c))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)kM(t[o])&&r.push(o);r.length&&sR(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=yo[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:o}=this;if(!n||!n.current)return;const i=n.getValue(r);i&&i.jump(this.measuredOrigin,!1);const s=o.length-1,a=o[s];o[s]=yo[r](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,c])=>{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function Bd(e){return typeof e=="function"}let Vs;function aR(){Vs=void 0}const Pn={now:()=>(Vs===void 0&&Pn.set(gt.isProcessing||SM.useManualTiming?gt.timestamp:performance.now()),Vs),set:e=>{Vs=e,queueMicrotask(aR)}},Eh=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(fr.test(e)||e==="0")&&!e.startsWith("url("));function lR(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function cR(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],s=Eh(o,t),a=Eh(i,t);return!s||!a?!1:lR(e)||(n==="spring"||Bd(n))&&r}const uR=40;class $y{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:s="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Pn.now(),this.options={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:s,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>uR?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&zM(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Pn.now(),this.hasAttemptedResolve=!0;const{name:r,type:o,velocity:i,delay:s,onComplete:a,onUpdate:l,isGenerator:c}=this.options;if(!c&&!cR(t,r,o,i))if(s)this.options.duration=0;else{l==null||l(il(t,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}const u=this.initPlayback(t,n);u!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...u},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const xo=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Gy=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let i=0;i<o;i++)r+=e(xo(0,o-1,i))+", ";return`linear(${r.substring(0,r.length-2)})`};function Uy(e,t){return t?e*(1e3/t):0}const dR=5;function Hy(e,t,n){const r=Math.max(t-dR,0);return Uy(n-e(r),t-r)}const Ke={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Wl=.001;function fR({duration:e=Ke.duration,bounce:t=Ke.bounce,velocity:n=Ke.velocity,mass:r=Ke.mass}){let o,i,s=1-t;s=Kn(Ke.minDamping,Ke.maxDamping,s),e=Kn(Ke.minDuration,Ke.maxDuration,Gn(e)),s<1?(o=c=>{const u=c*s,d=u*e,f=u-n,m=Zc(c,s),v=Math.exp(-d);return Wl-f/m*v},i=c=>{const d=c*s*e,f=d*n+n,m=Math.pow(s,2)*Math.pow(c,2)*e,v=Math.exp(-d),g=Zc(Math.pow(c,2),s);return(-o(c)+Wl>0?-1:1)*((f-m)*v)/g}):(o=c=>{const u=Math.exp(-c*e),d=(c-n)*e+1;return-Wl+u*d},i=c=>{const u=Math.exp(-c*e),d=(n-c)*(e*e);return u*d});const a=5/e,l=hR(o,i,a);if(e=$n(e),isNaN(l))return{stiffness:Ke.stiffness,damping:Ke.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:s*2*Math.sqrt(r*c),duration:e}}}const pR=12;function hR(e,t,n){let r=n;for(let o=1;o<pR;o++)r=r-e(r)/t(r);return r}function Zc(e,t){return e*Math.sqrt(1-t*t)}const Xc=2e4;function Wy(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Xc;)t+=n,r=e.next(t);return t>=Xc?1/0:t}const mR=["duration","bounce"],gR=["stiffness","damping","mass"];function Ph(e,t){return t.some(n=>e[n]!==void 0)}function vR(e){let t={velocity:Ke.velocity,stiffness:Ke.stiffness,damping:Ke.damping,mass:Ke.mass,isResolvedFromDuration:!1,...e};if(!Ph(e,gR)&&Ph(e,mR))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*Kn(.05,1,1-e.bounce)*Math.sqrt(o);t={...t,mass:Ke.mass,stiffness:o,damping:i}}else{const n=fR(e);t={...t,...n,mass:Ke.mass},t.isResolvedFromDuration=!0}return t}function Ky(e=Ke.visualDuration,t=Ke.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:d,velocity:f,isResolvedFromDuration:m}=vR({...n,velocity:-Gn(n.velocity||0)}),v=f||0,g=c/(2*Math.sqrt(l*u)),y=s-i,b=Gn(Math.sqrt(l/u)),_=Math.abs(y)<5;r||(r=_?Ke.restSpeed.granular:Ke.restSpeed.default),o||(o=_?Ke.restDelta.granular:Ke.restDelta.default);let x;if(g<1){const w=Zc(b,g);x=C=>{const T=Math.exp(-g*b*C);return s-T*((v+g*b*y)/w*Math.sin(w*C)+y*Math.cos(w*C))}}else if(g===1)x=w=>s-Math.exp(-b*w)*(y+(v+b*y)*w);else{const w=b*Math.sqrt(g*g-1);x=C=>{const T=Math.exp(-g*b*C),A=Math.min(w*C,300);return s-T*((v+g*b*y)*Math.sinh(A)+w*y*Math.cosh(A))/w}}const S={calculatedDuration:m&&d||null,next:w=>{const C=x(w);if(m)a.done=w>=d;else{let T=0;g<1&&(T=w===0?$n(v):Hy(x,w,C));const A=Math.abs(T)<=r,E=Math.abs(s-C)<=o;a.done=A&&E}return a.value=a.done?s:C,a},toString:()=>{const w=Math.min(Wy(S),Xc),C=Gy(T=>S.next(w*T).value,w,30);return w+"ms "+C}};return S}function kh({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},m=A=>a!==void 0&&A<a||l!==void 0&&A>l,v=A=>a===void 0?l:l===void 0||Math.abs(a-A)<Math.abs(l-A)?a:l;let g=n*t;const y=d+g,b=s===void 0?y:s(y);b!==y&&(g=b-d);const _=A=>-g*Math.exp(-A/r),x=A=>b+_(A),S=A=>{const E=_(A),P=x(A);f.done=Math.abs(E)<=c,f.value=f.done?b:P};let w,C;const T=A=>{m(f.value)&&(w=A,C=Ky({keyframes:[f.value,v(f.value)],velocity:Hy(x,A,f.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return T(0),{calculatedDuration:null,next:A=>{let E=!1;return!C&&w===void 0&&(E=!0,S(A),T(A)),w!==void 0&&A>=w?C.next(A-w):(!E&&S(A),f)}}}const bR=ns(.42,0,1,1),yR=ns(0,0,.58,1),qy=ns(.42,0,.58,1),xR=e=>Array.isArray(e)&&typeof e[0]!="number",Vd=e=>Array.isArray(e)&&typeof e[0]=="number",Mh={linear:Gt,easeIn:bR,easeInOut:qy,easeOut:yR,circIn:Id,circInOut:Ty,circOut:Cy,backIn:Rd,backInOut:Sy,backOut:wy,anticipate:_y},Rh=e=>{if(Vd(e)){Uc(e.length===4);const[t,n,r,o]=e;return ns(t,n,r,o)}else if(typeof e=="string")return Uc(Mh[e]!==void 0),Mh[e];return e},wR=(e,t)=>n=>t(e(n)),os=(...e)=>e.reduce(wR),$e=(e,t,n)=>e+(t-e)*n;function Kl(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function SR({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=Kl(l,a,e+1/3),i=Kl(l,a,e),s=Kl(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function oa(e,t){return n=>n>0?t:e}const ql=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},_R=[Kc,kr,Qr],CR=e=>_R.find(t=>t.test(e));function Ih(e){const t=CR(e);if(!t)return!1;let n=t.parse(e);return t===Qr&&(n=SR(n)),n}const jh=(e,t)=>{const n=Ih(e),r=Ih(t);if(!n||!r)return oa(e,t);const o={...n};return i=>(o.red=ql(n.red,r.red,i),o.green=ql(n.green,r.green,i),o.blue=ql(n.blue,r.blue,i),o.alpha=$e(n.alpha,r.alpha,i),kr.transform(o))},Yc=new Set(["none","hidden"]);function TR(e,t){return Yc.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function AR(e,t){return n=>$e(e,t,n)}function zd(e){return typeof e=="number"?AR:typeof e=="string"?jd(e)?oa:wt.test(e)?jh:kR:Array.isArray(e)?Zy:typeof e=="object"?wt.test(e)?jh:ER:oa}function Zy(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>zd(i)(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=o[s](i);return n}}function ER(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=zd(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function PR(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const s=t.types[i],a=e.indexes[s][o[s]],l=(n=e.values[a])!==null&&n!==void 0?n:0;r[i]=l,o[s]++}return r}const kR=(e,t)=>{const n=fr.createTransformer(t),r=_i(e),o=_i(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Yc.has(e)&&!o.values.length||Yc.has(t)&&!r.values.length?TR(e,t):os(Zy(PR(r,o),o.values),n):oa(e,t)};function Xy(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?$e(e,t,n):zd(e)(e,t)}function MR(e,t,n){const r=[],o=n||Xy,i=e.length-1;for(let s=0;s<i;s++){let a=o(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||Gt:t;a=os(l,a)}r.push(a)}return r}function RR(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Uc(i===t.length),i===1)return()=>t[0];if(i===2&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=MR(t,r,o),a=s.length,l=c=>{let u=0;if(a>1)for(;u<e.length-2&&!(c<e[u+1]);u++);const d=xo(e[u],e[u+1],c);return s[u](d)};return n?c=>l(Kn(e[0],e[i-1],c)):l}function IR(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=xo(0,t,r);e.push($e(n,1,o))}}function jR(e){const t=[0];return IR(t,e.length-1),t}function OR(e,t){return e.map(n=>n*t)}function DR(e,t){return e.map(()=>t||qy).splice(0,e.length-1)}function ia({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=xR(r)?r.map(Rh):Rh(r),i={done:!1,value:t[0]},s=OR(n&&n.length===t.length?n:jR(t),e),a=RR(s,t,{ease:Array.isArray(o)?o:DR(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const NR=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Fe.update(t,!0),stop:()=>dr(t),now:()=>gt.isProcessing?gt.timestamp:Pn.now()}},LR={decay:kh,inertia:kh,tween:ia,keyframes:ia,spring:Ky},FR=e=>e/100;class $d extends $y{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:o,keyframes:i}=this.options,s=(o==null?void 0:o.KeyframeResolver)||Od,a=(l,c)=>this.onKeyframesResolved(l,c);this.resolver=new s(i,a,n,r,o),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=this.options,a=Bd(n)?n:LR[n]||ia;let l,c;a!==ia&&typeof t[0]!="number"&&(l=os(FR,Xy(t[0],t[1])),t=[0,100]);const u=a({...this.options,keyframes:t});i==="mirror"&&(c=a({...this.options,keyframes:[...t].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=Wy(u));const{calculatedDuration:d}=u,f=d+o,m=f*(r+1)-o;return{generator:u,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,totalDuration:m}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:A}=this.options;return{done:!0,value:A[A.length-1]}}const{finalKeyframe:o,generator:i,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:c,totalDuration:u,resolvedDuration:d}=r;if(this.startTime===null)return i.next(0);const{delay:f,repeat:m,repeatType:v,repeatDelay:g,onUpdate:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const b=this.currentTime-f*(this.speed>=0?1:-1),_=this.speed>=0?b<0:b>u;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let x=this.currentTime,S=i;if(m){const A=Math.min(this.currentTime,u)/d;let E=Math.floor(A),P=A%1;!P&&A>=1&&(P=1),P===1&&E--,E=Math.min(E,m+1),!!(E%2)&&(v==="reverse"?(P=1-P,g&&(P-=g/d)):v==="mirror"&&(S=s)),x=Kn(0,1,P)*d}const w=_?{done:!1,value:l[0]}:S.next(x);a&&(w.value=a(w.value));let{done:C}=w;!_&&c!==null&&(C=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const T=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return T&&o!==void 0&&(w.value=il(l,this.options,o)),y&&y(w.value),T&&this.finish(),w}get duration(){const{resolved:t}=this;return t?Gn(t.calculatedDuration):0}get time(){return Gn(this.currentTime)}set time(t){t=$n(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Gn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=NR,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const BR=new Set(["opacity","clipPath","filter","transform"]);function Gd(e){let t;return()=>(t===void 0&&(t=e()),t)}const VR={linearEasing:void 0};function zR(e,t){const n=Gd(e);return()=>{var r;return(r=VR[t])!==null&&r!==void 0?r:n()}}const sa=zR(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function Yy(e){return!!(typeof e=="function"&&sa()||!e||typeof e=="string"&&(e in Jc||sa())||Vd(e)||Array.isArray(e)&&e.every(Yy))}const Zo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Jc={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Zo([0,.65,.55,1]),circOut:Zo([.55,0,1,.45]),backIn:Zo([.31,.01,.66,-.59]),backOut:Zo([.33,1.53,.69,.99])};function Jy(e,t){if(e)return typeof e=="function"&&sa()?Gy(e,t):Vd(e)?Zo(e):Array.isArray(e)?e.map(n=>Jy(n,t)||Jc.easeOut):Jc[e]}function $R(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeInOut",times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=Jy(a,o);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}function Oh(e,t){e.timeline=t,e.onfinish=null}const GR=Gd(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),aa=10,UR=2e4;function HR(e){return Bd(e.type)||e.type==="spring"||!Yy(e.ease)}function WR(e,t){const n=new $d({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&i<UR;)r=n.sample(i),o.push(r.value),i+=aa;return{times:void 0,keyframes:o,duration:i-aa,ease:"linear"}}const Qy={anticipate:_y,backInOut:Sy,circInOut:Ty};function KR(e){return e in Qy}class Dh extends $y{constructor(t){super(t);const{name:n,motionValue:r,element:o,keyframes:i}=this.options;this.resolver=new zy(i,(s,a)=>this.onKeyframesResolved(s,a),n,r,o),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:o=300,times:i,ease:s,type:a,motionValue:l,name:c,startTime:u}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(typeof s=="string"&&sa()&&KR(s)&&(s=Qy[s]),HR(this.options)){const{onComplete:f,onUpdate:m,motionValue:v,element:g,...y}=this.options,b=WR(t,y);t=b.keyframes,t.length===1&&(t[1]=t[0]),o=b.duration,i=b.times,s=b.ease,a="keyframes"}const d=$R(l.owner.current,c,t,{...this.options,duration:o,times:i,ease:s});return d.startTime=u??this.calcStartTime(),this.pendingTimeline?(Oh(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;l.set(il(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:o,times:i,type:a,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Gn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Gn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=$n(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Gt;const{animation:r}=n;Oh(r,t)}return Gt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:o,type:i,ease:s,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:u,onComplete:d,element:f,...m}=this.options,v=new $d({...m,keyframes:r,duration:o,type:i,ease:s,times:a,isGenerator:!0}),g=$n(this.time);c.setWithVelocity(v.sample(g-aa).value,v.sample(g).value,aa)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:o,repeatType:i,damping:s,type:a}=t;return GR()&&r&&BR.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!o&&i!=="mirror"&&s!==0&&a!=="inertia"}}const qR=Gd(()=>window.ScrollTimeline!==void 0);class ZR{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(o=>qR()&&o.attachTimeline?o.attachTimeline(t):n(o));return()=>{r.forEach((o,i)=>{o&&o(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function XR({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const Ud=(e,t,n,r={},o,i)=>s=>{const a=Md(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-$n(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};XR(a)||(u={...u,...wM(e,u)}),u.duration&&(u.duration=$n(u.duration)),u.repeatDelay&&(u.repeatDelay=$n(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(d=!0)),d&&!i&&t.get()!==void 0){const f=il(u.keyframes,a);if(f!==void 0)return Fe.update(()=>{u.onUpdate(f),u.onComplete()}),new ZR([])}return!i&&Dh.supports(u)?new Dh(u):new $d(u)},YR=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),JR=e=>Gc(e)?e[e.length-1]||0:e;function Hd(e,t){e.indexOf(t)===-1&&e.push(t)}function Wd(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Kd{constructor(){this.subscriptions=[]}add(t){return Hd(this.subscriptions,t),()=>Wd(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const s=this.subscriptions[i];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Nh=30,QR=e=>!isNaN(parseFloat(e));class eI{constructor(t,n={}){this.version="11.15.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{const i=Pn.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Pn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=QR(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Kd);const r=this.events[t].add(n);return t==="change"?()=>{r(),Fe.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Pn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Nh)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Nh);return Uy(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ci(e,t){return new eI(e,t)}function tI(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ci(n))}function nI(e,t){const n=ol(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=JR(i[s]);tI(e,s,a)}}const qd=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),rI="framerAppearId",e0="data-"+qd(rI);function t0(e){return e.props[e0]}const _t=e=>!!(e&&e.getVelocity);function oI(e){return!!(_t(e)&&e.add)}function Qc(e,t){const n=e.getValue("willChange");if(oI(n))return n.add(t)}function iI({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function n0(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(s=r);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const d in l){const f=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),m=l[d];if(m===void 0||u&&iI(u,d))continue;const v={delay:n,...Md(s||{},d)};let g=!1;if(window.MotionHandoffAnimation){const b=t0(e);if(b){const _=window.MotionHandoffAnimation(b,d,Fe);_!==null&&(v.startTime=_,g=!0)}}Qc(e,d),f.start(Ud(d,f,m,e.shouldReduceMotion&&Hr.has(d)?{type:!1}:v,e,g));const y=f.animation;y&&c.push(y)}return a&&Promise.all(c).then(()=>{Fe.update(()=>{a&&nI(e,a)})}),c}function eu(e,t,n={}){var r;const o=ol(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const s=o?()=>Promise.all(n0(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=i;return sI(e,t,u+c,d,f,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[c,u]=l==="beforeChildren"?[s,a]:[a,s];return c().then(()=>u())}else return Promise.all([s(),a(n.delay)])}function sI(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=o===1?(c=0)=>c*r:(c=0)=>a-c*r;return Array.from(e.variantChildren).sort(aI).forEach((c,u)=>{c.notify("AnimationStart",t),s.push(eu(c,t,{...i,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(s)}function aI(e,t){return e.sortNodePosition(t)}function lI(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>eu(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=eu(e,t,n);else{const o=typeof t=="function"?ol(e,t,n.custom):t;r=Promise.all(n0(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const cI=kd.length;function r0(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?r0(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<cI;n++){const r=kd[n],o=e.props[r];(wi(o)||o===!1)&&(t[r]=o)}return t}const uI=[...Pd].reverse(),dI=Pd.length;function fI(e){return t=>Promise.all(t.map(({animation:n,options:r})=>lI(e,n,r)))}function pI(e){let t=fI(e),n=Lh(),r=!0;const o=l=>(c,u)=>{var d;const f=ol(e,u,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:m,transitionEnd:v,...g}=f;c={...c,...g,...v}}return c};function i(l){t=l(e)}function s(l){const{props:c}=e,u=r0(e.parent)||{},d=[],f=new Set;let m={},v=1/0;for(let y=0;y<dI;y++){const b=uI[y],_=n[b],x=c[b]!==void 0?c[b]:u[b],S=wi(x),w=b===l?_.isActive:null;w===!1&&(v=y);let C=x===u[b]&&x!==c[b]&&S;if(C&&r&&e.manuallyAnimateOnMount&&(C=!1),_.protectedKeys={...m},!_.isActive&&w===null||!x&&!_.prevProp||rl(x)||typeof x=="boolean")continue;const T=hI(_.prevProp,x);let A=T||b===l&&_.isActive&&!C&&S||y>v&&S,E=!1;const P=Array.isArray(x)?x:[x];let L=P.reduce(o(b),{});w===!1&&(L={});const{prevResolvedValues:F={}}=_,M={...F,...L},N=O=>{A=!0,f.has(O)&&(E=!0,f.delete(O)),_.needsAnimating[O]=!0;const G=e.getValue(O);G&&(G.liveStyle=!1)};for(const O in M){const G=L[O],I=F[O];if(m.hasOwnProperty(O))continue;let z=!1;Gc(G)&&Gc(I)?z=!gy(G,I):z=G!==I,z?G!=null?N(O):f.add(O):G!==void 0&&f.has(O)?N(O):_.protectedKeys[O]=!0}_.prevProp=x,_.prevResolvedValues=L,_.isActive&&(m={...m,...L}),r&&e.blockInitialAnimation&&(A=!1),A&&(!(C&&T)||E)&&d.push(...P.map(O=>({animation:O,options:{type:b}})))}if(f.size){const y={};f.forEach(b=>{const _=e.getBaseTarget(b),x=e.getValue(b);x&&(x.liveStyle=!0),y[b]=_??null}),d.push({animation:y})}let g=!!d.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,g?t(d):Promise.resolve()}function a(l,c){var u;if(n[l].isActive===c)return Promise.resolve();(u=e.variantChildren)===null||u===void 0||u.forEach(f=>{var m;return(m=f.animationState)===null||m===void 0?void 0:m.setActive(l,c)}),n[l].isActive=c;const d=s(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Lh(),r=!0}}}function hI(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!gy(t,e):!1}function xr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Lh(){return{animate:xr(!0),whileInView:xr(),whileHover:xr(),whileTap:xr(),whileDrag:xr(),whileFocus:xr(),exit:xr()}}class br{constructor(t){this.isMounted=!1,this.node=t}update(){}}class mI extends br{constructor(t){super(t),t.animationState||(t.animationState=pI(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();rl(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let gI=0;class vI extends br{constructor(){super(...arguments),this.id=gI++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const bI={animation:{Feature:mI},exit:{Feature:vI}},an={x:!1,y:!1};function o0(){return an.x||an.y}function yI(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let o=document;const i=(r=void 0)!==null&&r!==void 0?r:o.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function i0(e,t){const n=yI(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function Fh(e){return t=>{t.pointerType==="touch"||o0()||e(t)}}function xI(e,t,n={}){const[r,o,i]=i0(e,n),s=Fh(a=>{const{target:l}=a,c=t(a);if(!c||!l)return;const u=Fh(d=>{c(d),l.removeEventListener("pointerleave",u)});l.addEventListener("pointerleave",u,o)});return r.forEach(a=>{a.addEventListener("pointerenter",s,o)}),i}const Zd=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Xo=new WeakSet;function Bh(e){return t=>{t.key==="Enter"&&e(t)}}function Zl(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const wI=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Bh(()=>{if(Xo.has(n))return;Zl(n,"down");const o=Bh(()=>{Zl(n,"up")}),i=()=>Zl(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)},SI=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function _I(e){return SI.has(e.tagName)||e.tabIndex!==-1}const s0=(e,t)=>t?e===t?!0:s0(e,t.parentElement):!1;function Vh(e){return Zd(e)&&!o0()}function CI(e,t,n={}){const[r,o,i]=i0(e,n),s=a=>{const l=a.currentTarget;if(!Vh(a)||Xo.has(l))return;Xo.add(l);const c=t(a),u=(m,v)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),!(!Vh(m)||!Xo.has(l))&&(Xo.delete(l),c&&c(m,{success:v}))},d=m=>{u(m,n.useGlobalTarget||s0(l,m.target))},f=m=>{u(m,!1)};window.addEventListener("pointerup",d,o),window.addEventListener("pointercancel",f,o)};return r.forEach(a=>{_I(a)||(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,o),a.addEventListener("focus",c=>wI(c,o),o)}),i}function TI(e){return e==="x"||e==="y"?an[e]?null:(an[e]=!0,()=>{an[e]=!1}):an.x||an.y?null:(an.x=an.y=!0,()=>{an.x=an.y=!1})}function is(e){return{point:{x:e.pageX,y:e.pageY}}}const AI=e=>t=>Zd(t)&&e(t,is(t));function Ti(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function si(e,t,n,r){return Ti(e,t,AI(n),r)}const zh=(e,t)=>Math.abs(e-t);function EI(e,t){const n=zh(e.x,t.x),r=zh(e.y,t.y);return Math.sqrt(n**2+r**2)}class a0{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Yl(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,m=EI(d.offset,{x:0,y:0})>=3;if(!f&&!m)return;const{point:v}=d,{timestamp:g}=gt;this.history.push({...v,timestamp:g});const{onStart:y,onMove:b}=this.handlers;f||(y&&y(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Xl(f,this.transformPagePoint),Fe.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:m,onSessionEnd:v,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=Yl(d.type==="pointercancel"?this.lastMoveEventInfo:Xl(f,this.transformPagePoint),this.history);this.startEvent&&m&&m(d,y),v&&v(d,y)},!Zd(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const s=is(t),a=Xl(s,this.transformPagePoint),{point:l}=a,{timestamp:c}=gt;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=n;u&&u(t,Yl(a,this.history)),this.removeListeners=os(si(this.contextWindow,"pointermove",this.handlePointerMove),si(this.contextWindow,"pointerup",this.handlePointerUp),si(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),dr(this.updatePoint)}}function Xl(e,t){return t?{point:t(e.point)}:e}function $h(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Yl({point:e},t){return{point:e,delta:$h(e,l0(t)),offset:$h(e,PI(t)),velocity:kI(t,.1)}}function PI(e){return e[0]}function l0(e){return e[e.length-1]}function kI(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=l0(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>$n(t)));)n--;if(!r)return{x:0,y:0};const i=Gn(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function eo(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const c0=1e-4,MI=1-c0,RI=1+c0,u0=.01,II=0-u0,jI=0+u0;function Ht(e){return e.max-e.min}function OI(e,t,n){return Math.abs(e-t)<=n}function Gh(e,t,n,r=.5){e.origin=r,e.originPoint=$e(t.min,t.max,e.origin),e.scale=Ht(n)/Ht(t),e.translate=$e(n.min,n.max,e.origin)-e.originPoint,(e.scale>=MI&&e.scale<=RI||isNaN(e.scale))&&(e.scale=1),(e.translate>=II&&e.translate<=jI||isNaN(e.translate))&&(e.translate=0)}function ai(e,t,n,r){Gh(e.x,t.x,n.x,r?r.originX:void 0),Gh(e.y,t.y,n.y,r?r.originY:void 0)}function Uh(e,t,n){e.min=n.min+t.min,e.max=e.min+Ht(t)}function DI(e,t,n){Uh(e.x,t.x,n.x),Uh(e.y,t.y,n.y)}function Hh(e,t,n){e.min=t.min-n.min,e.max=e.min+Ht(t)}function li(e,t,n){Hh(e.x,t.x,n.x),Hh(e.y,t.y,n.y)}function NI(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?$e(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?$e(n,e,r.max):Math.min(e,n)),e}function Wh(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function LI(e,{top:t,left:n,bottom:r,right:o}){return{x:Wh(e.x,n,o),y:Wh(e.y,t,r)}}function Kh(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function FI(e,t){return{x:Kh(e.x,t.x),y:Kh(e.y,t.y)}}function BI(e,t){let n=.5;const r=Ht(e),o=Ht(t);return o>r?n=xo(t.min,t.max-r,e.min):r>o&&(n=xo(e.min,e.max-o,t.min)),Kn(0,1,n)}function VI(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const tu=.35;function zI(e=tu){return e===!1?e=0:e===!0&&(e=tu),{x:qh(e,"left","right"),y:qh(e,"top","bottom")}}function qh(e,t,n){return{min:Zh(e,t),max:Zh(e,n)}}function Zh(e,t){return typeof e=="number"?e:e[t]||0}const Xh=()=>({translate:0,scale:1,origin:0,originPoint:0}),to=()=>({x:Xh(),y:Xh()}),Yh=()=>({min:0,max:0}),Ze=()=>({x:Yh(),y:Yh()});function Qt(e){return[e("x"),e("y")]}function d0({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function $I({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function GI(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Jl(e){return e===void 0||e===1}function nu({scale:e,scaleX:t,scaleY:n}){return!Jl(e)||!Jl(t)||!Jl(n)}function Cr(e){return nu(e)||f0(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function f0(e){return Jh(e.x)||Jh(e.y)}function Jh(e){return e&&e!=="0%"}function la(e,t,n){const r=e-n,o=t*r;return n+o}function Qh(e,t,n,r,o){return o!==void 0&&(e=la(e,o,r)),la(e,n,r)+t}function ru(e,t=0,n=1,r,o){e.min=Qh(e.min,t,n,r,o),e.max=Qh(e.max,t,n,r,o)}function p0(e,{x:t,y:n}){ru(e.x,t.translate,t.scale,t.originPoint),ru(e.y,n.translate,n.scale,n.originPoint)}const em=.999999999999,tm=1.0000000000001;function UI(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;a<o;a++){i=n[a],s=i.projectionDelta;const{visualElement:l}=i.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&ro(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,p0(e,s)),r&&Cr(i.latestValues)&&ro(e,i.latestValues))}t.x<tm&&t.x>em&&(t.x=1),t.y<tm&&t.y>em&&(t.y=1)}function no(e,t){e.min=e.min+t,e.max=e.max+t}function nm(e,t,n,r,o=.5){const i=$e(e.min,e.max,o);ru(e,t,n,i,r)}function ro(e,t){nm(e.x,t.x,t.scaleX,t.scale,t.originX),nm(e.y,t.y,t.scaleY,t.scale,t.originY)}function h0(e,t){return d0(GI(e.getBoundingClientRect(),t))}function HI(e,t,n){const r=h0(e,n),{scroll:o}=t;return o&&(no(r.x,o.offset.x),no(r.y,o.offset.y)),r}const m0=({current:e})=>e?e.ownerDocument.defaultView:null,WI=new WeakMap;class KI{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ze(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=u=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(is(u).point)},i=(u,d)=>{const{drag:f,dragPropagation:m,onDragStart:v}=this.getProps();if(f&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=TI(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Qt(y=>{let b=this.getAxisMotionValue(y).get()||0;if(En.test(b)){const{projection:_}=this.visualElement;if(_&&_.layout){const x=_.layout.layoutBox[y];x&&(b=Ht(x)*(parseFloat(b)/100))}}this.originPoint[y]=b}),v&&Fe.postRender(()=>v(u,d)),Qc(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},s=(u,d)=>{const{dragPropagation:f,dragDirectionLock:m,onDirectionLock:v,onDrag:g}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:y}=d;if(m&&this.currentDirection===null){this.currentDirection=qI(y),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",d.point,y),this.updateAxis("y",d.point,y),this.visualElement.render(),g&&g(u,d)},a=(u,d)=>this.stop(u,d),l=()=>Qt(u=>{var d;return this.getAnimationState(u)==="paused"&&((d=this.getAxisMotionValue(u).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new a0(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:m0(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&Fe.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Ts(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=NI(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&eo(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=LI(o.layoutBox,n):this.constraints=!1,this.elastic=zI(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Qt(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=VI(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!eo(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=HI(r,o.root,this.visualElement.getTransformPagePoint());let s=FI(o.layout.layoutBox,i);if(n){const a=n($I(s));this.hasMutatedConstraints=!!a,a&&(s=d0(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=Qt(u=>{if(!Ts(u,n,this.currentDirection))return;let d=l[u]||{};s&&(d={min:0,max:0});const f=o?200:1e6,m=o?40:1e7,v={type:"inertia",velocity:r?t[u]:0,bounceStiffness:f,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,v)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Qc(this.visualElement,t),r.start(Ud(t,r,0,n,this.visualElement,!1))}stopAnimation(){Qt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Qt(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Qt(n=>{const{drag:r}=this.getProps();if(!Ts(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-$e(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!eo(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Qt(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();o[s]=BI({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Qt(s=>{if(!Ts(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];a.set($e(l,c,o[s]))})}addListeners(){if(!this.visualElement.current)return;WI.set(this.visualElement,this);const t=this.visualElement.current,n=si(t,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();eo(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Fe.read(r);const s=Ti(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Qt(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=l[u].translate,d.set(d.get()+l[u].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=tu,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function Ts(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function qI(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class ZI extends br{constructor(t){super(t),this.removeGroupControls=Gt,this.removeListeners=Gt,this.controls=new KI(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Gt}unmount(){this.removeGroupControls(),this.removeListeners()}}const rm=e=>(t,n)=>{e&&Fe.postRender(()=>e(t,n))};class XI extends br{constructor(){super(...arguments),this.removePointerDownListener=Gt}onPointerDown(t){this.session=new a0(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:m0(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:rm(t),onStart:rm(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&Fe.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=si(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Xd=h.createContext(null);function YI(){const e=h.useContext(Xd);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=h.useId();h.useEffect(()=>r(o),[]);const i=h.useCallback(()=>n&&n(o),[o,n]);return!t&&n?[!1,i]:[!0]}const g0=h.createContext({}),v0=h.createContext({}),zs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function om(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ho={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(se.test(e))e=parseFloat(e);else return e;const n=om(e,t.target.x),r=om(e,t.target.y);return`${n}% ${r}%`}},JI={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=fr.parse(e);if(o.length>5)return r;const i=fr.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const c=$e(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=c),typeof o[3+s]=="number"&&(o[3+s]/=c),i(o)}},ca={};function QI(e){Object.assign(ca,e)}const{schedule:Yd,cancel:h4}=vy(queueMicrotask,!1);class ej extends h.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;QI(tj),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),zs.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||Fe.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Yd.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function b0(e){const[t,n]=YI(),r=h.useContext(g0);return p.jsx(ej,{...e,layoutGroup:r,switchLayoutGroup:h.useContext(v0),isPresent:t,safeToRemove:n})}const tj={borderRadius:{...Ho,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ho,borderTopRightRadius:Ho,borderBottomLeftRadius:Ho,borderBottomRightRadius:Ho,boxShadow:JI},y0=["TopLeft","TopRight","BottomLeft","BottomRight"],nj=y0.length,im=e=>typeof e=="string"?parseFloat(e):e,sm=e=>typeof e=="number"||se.test(e);function rj(e,t,n,r,o,i){o?(e.opacity=$e(0,n.opacity!==void 0?n.opacity:1,oj(r)),e.opacityExit=$e(t.opacity!==void 0?t.opacity:1,0,ij(r))):i&&(e.opacity=$e(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<nj;s++){const a=`border${y0[s]}Radius`;let l=am(t,a),c=am(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||sm(l)===sm(c)?(e[a]=Math.max($e(im(l),im(c),r),0),(En.test(c)||En.test(l))&&(e[a]+="%")):e[a]=c}(t.rotate||n.rotate)&&(e.rotate=$e(t.rotate||0,n.rotate||0,r))}function am(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const oj=x0(0,.5,Cy),ij=x0(.5,.95,Gt);function x0(e,t,n){return r=>r<e?0:r>t?1:n(xo(e,t,r))}function lm(e,t){e.min=t.min,e.max=t.max}function Jt(e,t){lm(e.x,t.x),lm(e.y,t.y)}function cm(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function um(e,t,n,r,o){return e-=t,e=la(e,1/n,r),o!==void 0&&(e=la(e,1/o,r)),e}function sj(e,t=0,n=1,r=.5,o,i=e,s=e){if(En.test(t)&&(t=parseFloat(t),t=$e(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=$e(i.min,i.max,r);e===i&&(a-=t),e.min=um(e.min,t,n,a,o),e.max=um(e.max,t,n,a,o)}function dm(e,t,[n,r,o],i,s){sj(e,t[n],t[r],t[o],t.scale,i,s)}const aj=["x","scaleX","originX"],lj=["y","scaleY","originY"];function fm(e,t,n,r){dm(e.x,t,aj,n?n.x:void 0,r?r.x:void 0),dm(e.y,t,lj,n?n.y:void 0,r?r.y:void 0)}function pm(e){return e.translate===0&&e.scale===1}function w0(e){return pm(e.x)&&pm(e.y)}function hm(e,t){return e.min===t.min&&e.max===t.max}function cj(e,t){return hm(e.x,t.x)&&hm(e.y,t.y)}function mm(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function S0(e,t){return mm(e.x,t.x)&&mm(e.y,t.y)}function gm(e){return Ht(e.x)/Ht(e.y)}function vm(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class uj{constructor(){this.members=[]}add(t){Hd(this.members,t),t.scheduleRender()}remove(t){if(Wd(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function dj(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:d,rotateY:f,skewX:m,skewY:v}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),m&&(r+=`skewX(${m}deg) `),v&&(r+=`skewY(${v}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const fj=(e,t)=>e.depth-t.depth;class pj{constructor(){this.children=[],this.isDirty=!1}add(t){Hd(this.children,t),this.isDirty=!0}remove(t){Wd(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(fj),this.isDirty=!1,this.children.forEach(t)}}function $s(e){const t=_t(e)?e.get():e;return YR(t)?t.toValue():t}function hj(e,t){const n=Pn.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(dr(r),e(i-t))};return Fe.read(r,!0),()=>dr(r)}function mj(e){return e instanceof SVGElement&&e.tagName!=="svg"}function gj(e,t,n){const r=_t(e)?e:Ci(e);return r.start(Ud("",r,t,n)),r.animation}const Tr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Yo=typeof window<"u"&&window.MotionDebug!==void 0,Ql=["","X","Y","Z"],vj={visibility:"hidden"},bm=1e3;let bj=0;function ec(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function _0(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=t0(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Fe,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&_0(r)}function C0({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=bj++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Yo&&(Tr.totalNodes=Tr.resolvedTargetDeltas=Tr.recalculatedProjection=0),this.nodes.forEach(wj),this.nodes.forEach(Aj),this.nodes.forEach(Ej),this.nodes.forEach(Sj),Yo&&window.MotionDebug.record(Tr)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new pj)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Kd),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=mj(s),this.instance=s;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(c||l)&&(this.isLayoutDirty=!0),e){let d;const f=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=hj(f,250),zs.hasAnimatedSinceResize&&(zs.hasAnimatedSinceResize=!1,this.nodes.forEach(xm))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:m,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||u.getDefaultTransition()||Ij,{onLayoutAnimationStart:y,onLayoutAnimationComplete:b}=u.getProps(),_=!this.targetLayout||!S0(this.targetLayout,v)||m,x=!f&&m;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||f&&(_||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,x);const S={...Md(g,"layout"),onPlay:y,onComplete:b};(u.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else f||xm(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,dr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Pj),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&_0(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ym);return}this.isUpdating||this.nodes.forEach(Cj),this.isUpdating=!1,this.nodes.forEach(Tj),this.nodes.forEach(yj),this.nodes.forEach(xj),this.clearAllSnapshots();const a=Pn.now();gt.delta=Kn(0,1e3/60,a-gt.timestamp),gt.timestamp=a,gt.isProcessing=!0,Ul.update.process(gt),Ul.preRender.process(gt),Ul.render.process(gt),gt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Yd.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(_j),this.sharedNodes.forEach(kj)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Fe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Fe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ze(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!o)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!w0(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;s&&(a||Cr(this.latestValues)||u)&&(o(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),jj(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var s;const{visualElement:a}=this.options;if(!a)return Ze();const l=a.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(Oj))){const{scroll:u}=this.root;u&&(no(l.x,u.offset.x),no(l.y,u.offset.y))}return l}removeElementScroll(s){var a;const l=Ze();if(Jt(l,s),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return l;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:d,options:f}=u;u!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&Jt(l,s),no(l.x,d.offset.x),no(l.y,d.offset.y))}return l}applyTransform(s,a=!1){const l=Ze();Jt(l,s);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&ro(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Cr(u.latestValues)&&ro(l,u.latestValues)}return Cr(this.latestValues)&&ro(l,this.latestValues),l}removeTransform(s){const a=Ze();Jt(a,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!Cr(c.latestValues))continue;nu(c.latestValues)&&c.updateSnapshot();const u=Ze(),d=c.measurePageBox();Jt(u,d),fm(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return Cr(this.latestValues)&&fm(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==gt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(s||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:f}=this.options;if(!(!this.layout||!(d||f))){if(this.resolvedRelativeTargetAt=gt.timestamp,!this.targetDelta&&!this.relativeTarget){const m=this.getClosestProjectingParent();m&&m.layout&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ze(),this.relativeTargetOrigin=Ze(),li(this.relativeTargetOrigin,this.layout.layoutBox,m.layout.layoutBox),Jt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Ze(),this.targetWithTransforms=Ze()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),DI(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Jt(this.target,this.layout.layoutBox),p0(this.target,this.targetDelta)):Jt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const m=this.getClosestProjectingParent();m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ze(),this.relativeTargetOrigin=Ze(),li(this.relativeTargetOrigin,this.target,m.target),Jt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Yo&&Tr.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||nu(this.parent.latestValues)||f0(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===gt.timestamp&&(c=!1),c)return;const{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;Jt(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,m=this.treeScale.y;UI(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=Ze());const{target:v}=a;if(!v){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(cm(this.prevProjectionDelta.x,this.projectionDelta.x),cm(this.prevProjectionDelta.y,this.projectionDelta.y)),ai(this.projectionDelta,this.layoutCorrected,v,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==m||!vm(this.projectionDelta.x,this.prevProjectionDelta.x)||!vm(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v)),Yo&&Tr.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),s){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=to(),this.projectionDelta=to(),this.projectionDeltaWithTransform=to()}setAnimationOrigin(s,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},d=to();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=Ze(),m=l?l.source:void 0,v=this.layout?this.layout.source:void 0,g=m!==v,y=this.getStack(),b=!y||y.members.length<=1,_=!!(g&&!b&&this.options.crossfade===!0&&!this.path.some(Rj));this.animationProgress=0;let x;this.mixTargetDelta=S=>{const w=S/1e3;wm(d.x,s.x,w),wm(d.y,s.y,w),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(li(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Mj(this.relativeTarget,this.relativeTargetOrigin,f,w),x&&cj(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=Ze()),Jt(x,this.relativeTarget)),g&&(this.animationValues=u,rj(u,c,this.latestValues,w,_,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(dr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Fe.update(()=>{zs.hasAnimatedSinceResize=!0,this.currentAnimation=gj(0,bm,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(bm),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=s;if(!(!a||!l||!c)){if(this!==s&&this.layout&&c&&T0(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Ze();const d=Ht(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=Ht(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}Jt(a,l),ro(a,u),ai(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new uj),this.sharedNodes.get(s).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&ec("z",s,c,this.animationValues);for(let u=0;u<Ql.length;u++)ec(`rotate${Ql[u]}`,s,c,this.animationValues),ec(`skew${Ql[u]}`,s,c,this.animationValues);s.render();for(const u in c)s.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);s.scheduleRender()}getProjectionStyles(s){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return vj;const c={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=$s(s==null?void 0:s.pointerEvents)||"",c.transform=u?u(this.latestValues,""):"none",c;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=$s(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!Cr(this.latestValues)&&(g.transform=u?u({},""):"none",this.hasProjected=!1),g}const f=d.animationValues||d.latestValues;this.applyTransformsToTarget(),c.transform=dj(this.projectionDeltaWithTransform,this.treeScale,f),u&&(c.transform=u(f,c.transform));const{x:m,y:v}=this.projectionDelta;c.transformOrigin=`${m.origin*100}% ${v.origin*100}% 0`,d.animationValues?c.opacity=d===this?(l=(a=f.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:c.opacity=d===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const g in ca){if(f[g]===void 0)continue;const{correct:y,applyTo:b}=ca[g],_=c.transform==="none"?f[g]:y(f[g],d);if(b){const x=b.length;for(let S=0;S<x;S++)c[b[S]]=_}else c[g]=_}return this.options.layoutId&&(c.pointerEvents=d===this?$s(s==null?void 0:s.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(ym),this.root.sharedNodes.clear()}}}function yj(e){e.updateLayout()}function xj(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,s=n.source!==e.layout.source;i==="size"?Qt(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],m=Ht(f);f.min=r[d].min,f.max=f.min+m}):T0(i,n.layoutBox,r)&&Qt(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],m=Ht(r[d]);f.max=f.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+m)});const a=to();ai(a,r,n.layoutBox);const l=to();s?ai(l,e.applyTransform(o,!0),n.measuredBox):ai(l,r,n.layoutBox);const c=!w0(a);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:m}=d;if(f&&m){const v=Ze();li(v,n.layoutBox,f.layoutBox);const g=Ze();li(g,r,m.layoutBox),S0(v,g)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=v,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function wj(e){Yo&&Tr.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Sj(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function _j(e){e.clearSnapshot()}function ym(e){e.clearMeasurements()}function Cj(e){e.isLayoutDirty=!1}function Tj(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function xm(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Aj(e){e.resolveTargetDelta()}function Ej(e){e.calcProjection()}function Pj(e){e.resetSkewAndRotation()}function kj(e){e.removeLeadSnapshot()}function wm(e,t,n){e.translate=$e(t.translate,0,n),e.scale=$e(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Sm(e,t,n,r){e.min=$e(t.min,n.min,r),e.max=$e(t.max,n.max,r)}function Mj(e,t,n,r){Sm(e.x,t.x,n.x,r),Sm(e.y,t.y,n.y,r)}function Rj(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Ij={duration:.45,ease:[.4,0,.1,1]},_m=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Cm=_m("applewebkit/")&&!_m("chrome/")?Math.round:Gt;function Tm(e){e.min=Cm(e.min),e.max=Cm(e.max)}function jj(e){Tm(e.x),Tm(e.y)}function T0(e,t,n){return e==="position"||e==="preserve-aspect"&&!OI(gm(t),gm(n),.2)}function Oj(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const Dj=C0({attachResizeListener:(e,t)=>Ti(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),tc={current:void 0},A0=C0({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!tc.current){const e=new Dj({});e.mount(window),e.setOptions({layoutScroll:!0}),tc.current=e}return tc.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Nj={pan:{Feature:XI},drag:{Feature:ZI,ProjectionNode:A0,MeasureLayout:b0}};function Am(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,i=r[o];i&&Fe.postRender(()=>i(t,is(t)))}class Lj extends br{mount(){const{current:t}=this.node;t&&(this.unmount=xI(t,n=>(Am(this.node,n,"Start"),r=>Am(this.node,r,"End"))))}unmount(){}}class Fj extends br{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=os(Ti(this.node.current,"focus",()=>this.onFocus()),Ti(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Em(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),i=r[o];i&&Fe.postRender(()=>i(t,is(t)))}class Bj extends br{mount(){const{current:t}=this.node;t&&(this.unmount=CI(t,n=>(Em(this.node,n,"Start"),(r,{success:o})=>Em(this.node,r,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ou=new WeakMap,nc=new WeakMap,Vj=e=>{const t=ou.get(e.target);t&&t(e)},zj=e=>{e.forEach(Vj)};function $j({root:e,...t}){const n=e||document;nc.has(n)||nc.set(n,{});const r=nc.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(zj,{root:e,...t})),r[o]}function Gj(e,t,n){const r=$j(t);return ou.set(e,n),r.observe(e),()=>{ou.delete(e),r.unobserve(e)}}const Uj={some:0,all:1};class Hj extends br{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:Uj[o]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),f=c?u:d;f&&f(l)};return Gj(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Wj(t,n))&&this.startObserver()}unmount(){}}function Wj({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Kj={inView:{Feature:Hj},tap:{Feature:Bj},focus:{Feature:Fj},hover:{Feature:Lj}},qj={layout:{ProjectionNode:A0,MeasureLayout:b0}},E0=h.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),sl=h.createContext({}),Jd=typeof window<"u",Zj=Jd?h.useLayoutEffect:h.useEffect,P0=h.createContext({strict:!1});function Xj(e,t,n,r,o){var i,s;const{visualElement:a}=h.useContext(sl),l=h.useContext(P0),c=h.useContext(Xd),u=h.useContext(E0).reducedMotion,d=h.useRef(null);r=r||l.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u}));const f=d.current,m=h.useContext(v0);f&&!f.projection&&o&&(f.type==="html"||f.type==="svg")&&Yj(d.current,n,o,m);const v=h.useRef(!1);h.useInsertionEffect(()=>{f&&v.current&&f.update(n,c)});const g=n[e0],y=h.useRef(!!g&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,g))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,g)));return Zj(()=>{f&&(v.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Yd.render(f.render),y.current&&f.animationState&&f.animationState.animateChanges())}),h.useEffect(()=>{f&&(!y.current&&f.animationState&&f.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)===null||b===void 0||b.call(window,g)}),y.current=!1))}),f}function Yj(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:k0(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&eo(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}function k0(e){if(e)return e.options.allowProjection!==!1?e.projection:k0(e.parent)}function Jj(e,t,n){return h.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):eo(n)&&(n.current=r))},[t])}function al(e){return rl(e.animate)||kd.some(t=>wi(e[t]))}function M0(e){return!!(al(e)||e.variants)}function Qj(e,t){if(al(e)){const{initial:n,animate:r}=e;return{initial:n===!1||wi(n)?n:void 0,animate:wi(r)?r:void 0}}return e.inherit!==!1?t:{}}function eO(e){const{initial:t,animate:n}=Qj(e,h.useContext(sl));return h.useMemo(()=>({initial:t,animate:n}),[Pm(t),Pm(n)])}function Pm(e){return Array.isArray(e)?e.join(" "):e}const km={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},wo={};for(const e in km)wo[e]={isEnabled:t=>km[e].some(n=>!!t[n])};function tO(e){for(const t in e)wo[t]={...wo[t],...e[t]}}const nO=Symbol.for("motionComponentSymbol");function rO({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&tO(e);function i(a,l){let c;const u={...h.useContext(E0),...a,layoutId:oO(a)},{isStatic:d}=u,f=eO(a),m=r(a,d);if(!d&&Jd){iO();const v=sO(u);c=v.MeasureLayout,f.visualElement=Xj(o,m,u,t,v.ProjectionNode)}return p.jsxs(sl.Provider,{value:f,children:[c&&f.visualElement?p.jsx(c,{visualElement:f.visualElement,...u}):null,n(o,a,Jj(m,f.visualElement,l),m,d,f.visualElement)]})}const s=h.forwardRef(i);return s[nO]=o,s}function oO({layoutId:e}){const t=h.useContext(g0).id;return t&&e!==void 0?t+"-"+e:e}function iO(e,t){h.useContext(P0).strict}function sO(e){const{drag:t,layout:n}=wo;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const aO=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Qd(e){return typeof e!="string"||e.includes("-")?!1:!!(aO.indexOf(e)>-1||/[A-Z]/u.test(e))}function R0(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const I0=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function j0(e,t,n,r){R0(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(I0.has(o)?o:qd(o),t.attrs[o])}function O0(e,{layout:t,layoutId:n}){return Hr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ca[e]||e==="opacity")}function ef(e,t,n){var r;const{style:o}=e,i={};for(const s in o)(_t(o[s])||t.style&&_t(t.style[s])||O0(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[s]=o[s]);return i}function D0(e,t,n){const r=ef(e,t,n);for(const o in e)if(_t(e[o])||_t(t[o])){const i=ts.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}function lO(e){const t=h.useRef(null);return t.current===null&&(t.current=e()),t.current}function cO({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:uO(r,o,i,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const N0=e=>(t,n)=>{const r=h.useContext(sl),o=h.useContext(Xd),i=()=>cO(e,t,r,o);return n?i():lO(i)};function uO(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=$s(i[f]);let{initial:s,animate:a}=e;const l=al(e),c=M0(e);t&&c&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||s===!1;const d=u?a:s;if(d&&typeof d!="boolean"&&!rl(d)){const f=Array.isArray(d)?d:[d];for(let m=0;m<f.length;m++){const v=Ed(e,f[m]);if(v){const{transitionEnd:g,transition:y,...b}=v;for(const _ in b){let x=b[_];if(Array.isArray(x)){const S=u?x.length-1:0;x=x[S]}x!==null&&(o[_]=x)}for(const _ in g)o[_]=g[_]}}}return o}const tf=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),L0=()=>({...tf(),attrs:{}}),F0=(e,t)=>t&&typeof e=="number"?t.transform(e):e,dO={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},fO=ts.length;function pO(e,t,n){let r="",o=!0;for(let i=0;i<fO;i++){const s=ts[i],a=e[s];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(s.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const c=F0(a,Ld[s]);if(!l){o=!1;const u=dO[s]||s;r+=`${u}(${c}) `}n&&(t[s]=c)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function nf(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let s=!1,a=!1;for(const l in t){const c=t[l];if(Hr.has(l)){s=!0;continue}else if(ky(l)){o[l]=c;continue}else{const u=F0(c,Ld[l]);l.startsWith("origin")?(a=!0,i[l]=u):r[l]=u}}if(t.transform||(s||n?r.transform=pO(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=i;r.transformOrigin=`${l} ${c} ${u}`}}function Mm(e,t,n){return typeof e=="string"?e:se.transform(t+n*e)}function hO(e,t,n){const r=Mm(t,e.x,e.width),o=Mm(n,e.y,e.height);return`${r} ${o}`}const mO={offset:"stroke-dashoffset",array:"stroke-dasharray"},gO={offset:"strokeDashoffset",array:"strokeDasharray"};function vO(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?mO:gO;e[i.offset]=se.transform(-r);const s=se.transform(t),a=se.transform(n);e[i.array]=`${s} ${a}`}function rf(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...c},u,d){if(nf(e,c,d),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:m,dimensions:v}=e;f.transform&&(v&&(m.transform=f.transform),delete f.transform),v&&(o!==void 0||i!==void 0||m.transform)&&(m.transformOrigin=hO(v,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),s!==void 0&&vO(f,s,a,l,!1)}const of=e=>typeof e=="string"&&e.toLowerCase()==="svg",bO={useVisualState:N0({scrapeMotionValuesFromProps:D0,createRenderState:L0,onMount:(e,t,{renderState:n,latestValues:r})=>{Fe.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Fe.render(()=>{rf(n,r,of(t.tagName),e.transformTemplate),j0(t,n)})}})},yO={useVisualState:N0({scrapeMotionValuesFromProps:ef,createRenderState:tf})};function B0(e,t,n){for(const r in t)!_t(t[r])&&!O0(r,n)&&(e[r]=t[r])}function xO({transformTemplate:e},t){return h.useMemo(()=>{const n=tf();return nf(n,t,e),Object.assign({},n.vars,n.style)},[t])}function wO(e,t){const n=e.style||{},r={};return B0(r,n,e),Object.assign(r,xO(e,t)),r}function SO(e,t){const n={},r=wO(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const _O=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ua(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||_O.has(e)}let V0=e=>!ua(e);function CO(e){e&&(V0=t=>t.startsWith("on")?!ua(t):e(t))}try{CO(require("@emotion/is-prop-valid").default)}catch{}function TO(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(V0(o)||n===!0&&ua(o)||!t&&!ua(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function AO(e,t,n,r){const o=h.useMemo(()=>{const i=L0();return rf(i,t,of(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};B0(i,e.style,e),o.style={...i,...o.style}}return o}function EO(e=!1){return(n,r,o,{latestValues:i},s)=>{const l=(Qd(n)?AO:SO)(r,i,s,n),c=TO(r,typeof n=="string",e),u=n!==h.Fragment?{...c,...l,ref:o}:{},{children:d}=r,f=h.useMemo(()=>_t(d)?d.get():d,[d]);return h.createElement(n,{...u,children:f})}}function PO(e,t){return function(r,{forwardMotionProps:o}={forwardMotionProps:!1}){const s={...Qd(r)?bO:yO,preloadedFeatures:e,useRender:EO(o),createVisualElement:t,Component:r};return rO(s)}}const iu={current:null},z0={current:!1};function kO(){if(z0.current=!0,!!Jd)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>iu.current=e.matches;e.addListener(t),t()}else iu.current=!1}function MO(e,t,n){for(const r in t){const o=t[r],i=n[r];if(_t(o))e.addValue(r,o);else if(_t(i))e.addValue(r,Ci(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(r);e.addValue(r,Ci(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Rm=new WeakMap,RO=[...Iy,wt,fr],IO=e=>RO.find(Ry(e)),Im=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class jO{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Od,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=Pn.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,Fe.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=al(n),this.isVariantNode=M0(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const m=d[f];l[f]!==void 0&&_t(m)&&m.set(l[f],!1)}}mount(t){this.current=t,Rm.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),z0.current||kO(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:iu.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Rm.delete(this.current),this.projection&&this.projection.unmount(),dr(this.notifyUpdate),dr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Hr.has(t),o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Fe.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in wo){const n=wo[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ze()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Im.length;r++){const o=Im[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i="on"+o,s=t[i];s&&(this.propEventSubscriptions[o]=this.on(o,s))}this.prevMotionValues=MO(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Ci(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(Ey(o)||Ay(o))?o=parseFloat(o):!IO(o)&&fr.test(n)&&(o=Vy(t,n)),this.setBaseTarget(t,_t(o)?o.get():o)),_t(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const s=Ed(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(o=s[t])}if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!_t(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Kd),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class $0 extends jO{constructor(){super(...arguments),this.KeyframeResolver=zy}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;_t(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function OO(e){return window.getComputedStyle(e)}class DO extends $0{constructor(){super(...arguments),this.type="html",this.renderInstance=R0}readValueFromInstance(t,n){if(Hr.has(n)){const r=Fd(n);return r&&r.default||0}else{const r=OO(t),o=(ky(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return h0(t,n)}build(t,n,r){nf(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return ef(t,n,r)}}class NO extends $0{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ze}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Hr.has(n)){const r=Fd(n);return r&&r.default||0}return n=I0.has(n)?n:qd(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return D0(t,n,r)}build(t,n,r){rf(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,o){j0(t,n,r,o)}mount(t){this.isSVGTag=of(t.tagName),super.mount(t)}}const LO=(e,t)=>Qd(e)?new NO(t):new DO(t,{allowProjection:e!==h.Fragment}),FO=PO({...bI,...Kj,...Nj,...qj},LO),BO=gM(FO),rc=["40em","52em","64em"],VO=(e={})=>{const{defaultIndex:t=0}=e;if(typeof t!="number")throw new TypeError(`Default breakpoint index should be a number. Got: ${t}, ${typeof t}`);if(t<0||t>rc.length-1)throw new RangeError(`Default breakpoint index out of range. Theme has ${rc.length} breakpoints, got index ${t}`);const[n,r]=h.useState(t);return h.useEffect(()=>{const o=()=>rc.filter(s=>typeof window<"u"?window.matchMedia(`screen and (min-width: ${s})`).matches:!1).length,i=()=>{const s=o();n!==s&&r(s)};return i(),typeof window<"u"&&window.addEventListener("resize",i),()=>{typeof window<"u"&&window.removeEventListener("resize",i)}},[n]),n};function zO(e,t={}){const n=VO(t);if(!Array.isArray(e)&&typeof e!="function")return e;const r=e||[];return r[n>=r.length?r.length-1:n]}const $O={name:"zjik7",styles:"display:flex"},GO={name:"qgaee5",styles:"display:block;max-height:100%;max-width:100%;min-height:0;min-width:0"},UO={name:"82a6rk",styles:"flex:1"},HO={name:"13nosa1",styles:">*{min-height:0;}"},WO={name:"1pwxzk4",styles:">*{min-width:0;}"};function KO(e){const{isReversed:t,...n}=e;return typeof t<"u"?(Mt("Flex isReversed",{alternative:'Flex direction="row-reverse" or "column-reverse"',since:"5.9"}),{...n,direction:t?"row-reverse":"row"}):n}function G0(e){const{align:t,className:n,direction:r="row",expanded:o=!0,gap:i=2,justify:s="space-between",wrap:a=!1,...l}=Ee(KO(e),"Flex"),c=Array.isArray(r)?r:[r],u=zO(c),d=typeof u=="string"&&!!u.includes("column"),f=et(),m=h.useMemo(()=>{const v=V({alignItems:t??(d?"normal":"center"),flexDirection:u,flexWrap:a?"wrap":void 0,gap:Y(i),justifyContent:s,height:d&&o?"100%":void 0,width:!d&&o?"100%":void 0},"","");return f($O,v,d?HO:WO,n)},[t,n,f,u,o,i,d,s,a]);return{...l,className:m,isColumn:d}}const U0=h.createContext({flexItemDisplay:void 0}),qO=()=>h.useContext(U0);function ZO(e,t){const{children:n,isColumn:r,...o}=G0(e);return p.jsx(U0.Provider,{value:{flexItemDisplay:r?"block":void 0},children:p.jsx(at,{...o,ref:t,children:n})})}const De=Me(ZO,"Flex");function H0(e){const{className:t,display:n,isBlock:r=!1,...o}=Ee(e,"FlexItem"),i={},s=qO().flexItemDisplay;i.Base=V({display:n||s},"","");const l=et()(GO,i.Base,r&&UO,t);return{...o,className:l}}function XO(e,t){const n=H0(e);return p.jsx(at,{...n,ref:t})}const Re=Me(XO,"FlexItem");function YO(e){const t=Ee(e,"FlexBlock");return H0({isBlock:!0,...t})}function JO(e,t){const n=YO(e);return p.jsx(at,{...n,ref:t})}const ke=Me(JO,"FlexBlock");function Ot(e){return typeof e<"u"&&e!==null}function QO(e){const{className:t,margin:n,marginBottom:r=2,marginLeft:o,marginRight:i,marginTop:s,marginX:a,marginY:l,padding:c,paddingBottom:u,paddingLeft:d,paddingRight:f,paddingTop:m,paddingX:v,paddingY:g,...y}=Ee(e,"Spacer"),_=et()(Ot(n)&&V("margin:",Y(n),";",""),Ot(l)&&V("margin-bottom:",Y(l),";margin-top:",Y(l),";",""),Ot(a)&&V("margin-left:",Y(a),";margin-right:",Y(a),";",""),Ot(s)&&V("margin-top:",Y(s),";",""),Ot(r)&&V("margin-bottom:",Y(r),";",""),Ot(o)&&Ye({marginLeft:Y(o)})(),Ot(i)&&Ye({marginRight:Y(i)})(),Ot(c)&&V("padding:",Y(c),";",""),Ot(g)&&V("padding-bottom:",Y(g),";padding-top:",Y(g),";",""),Ot(v)&&V("padding-left:",Y(v),";padding-right:",Y(v),";",""),Ot(m)&&V("padding-top:",Y(m),";",""),Ot(u)&&V("padding-bottom:",Y(u),";",""),Ot(d)&&Ye({paddingLeft:Y(d)})(),Ot(f)&&Ye({paddingRight:Y(f)})(),t);return{...y,className:_}}function eD(e,t){const n=QO(e);return p.jsx(at,{...n,ref:t})}const da=Me(eD,"Spacer");function tD({icon:e,size:t=24,...n},r){return h.cloneElement(e,{width:t,height:t,...n,ref:r})}const ll=h.forwardRef(tD),W0=p.jsx(Tt,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:p.jsx(It,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})}),nD=p.jsx(Tt,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:p.jsx(It,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})}),K0=p.jsx(Tt,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:p.jsx(It,{d:"m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z"})}),rD=p.jsx(Tt,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:p.jsx(It,{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"})}),oD=p.jsx(Tt,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:p.jsx(It,{fillRule:"evenodd",clipRule:"evenodd",d:"M5 4.5h11a.5.5 0 0 1 .5.5v11a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V5a.5.5 0 0 1 .5-.5ZM3 5a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm17 3v10.75c0 .69-.56 1.25-1.25 1.25H6v1.5h12.75a2.75 2.75 0 0 0 2.75-2.75V8H20Z"})}),iD=p.jsx(Tt,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:p.jsx(It,{fillRule:"evenodd",d:"M5 11.25h3v1.5H5v-1.5zm5.5 0h3v1.5h-3v-1.5zm8.5 0h-3v1.5h3v-1.5z",clipRule:"evenodd"})}),sD=p.jsx(Tt,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:p.jsx(It,{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"})}),aD=p.jsx(Tt,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:p.jsx(It,{d:"M5 11.25h14v1.5H5z"})}),lD=p.jsx(Tt,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:p.jsx(It,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})}),cD=p.jsx(Tt,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:p.jsx(It,{d:"M7 11.5h10V13H7z"})}),uD=p.jsxs(Tt,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[p.jsx(It,{d:"m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"}),p.jsx(It,{d:"m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"})]}),dD=p.jsx(Tt,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:p.jsx(It,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"})}),fD={name:"hdknak",styles:"display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"},sf="…",Mr={auto:"auto",head:"head",middle:"middle",tail:"tail",none:"none"},pD={ellipsis:sf,ellipsizeMode:Mr.auto,limit:0,numberOfLines:0};function hD(e,t,n,r){if(typeof e!="string")return"";const o=e.length,i=~~t,s=~~n,a=en(r)?r:sf;return i===0&&s===0||i>=o||s>=o||i+s>=o?e:s===0?e.slice(0,i)+a:e.slice(0,i)+a+e.slice(o-s)}function mD(e="",t){const n={...pD,...t},{ellipsis:r,ellipsizeMode:o,limit:i}=n;if(o===Mr.none)return e;let s,a;switch(o){case Mr.head:s=0,a=i;break;case Mr.middle:s=Math.floor(i/2),a=Math.floor(i/2);break;default:s=i,a=0}return o!==Mr.auto?hD(e,s,a,r):e}function q0(e){const{className:t,children:n,ellipsis:r=sf,ellipsizeMode:o=Mr.auto,limit:i=0,numberOfLines:s=0,...a}=Ee(e,"Truncate"),l=et();let c;typeof n=="string"?c=n:typeof n=="number"&&(c=n.toString());const u=c?mD(c,{ellipsis:r,ellipsizeMode:o,limit:i,numberOfLines:s}):n,d=!!c&&o===Mr.auto,f=h.useMemo(()=>l(d&&!s&&fD,d&&!!s&&V(s===1?"word-break: break-all;":""," -webkit-box-orient:vertical;-webkit-line-clamp:",s,";display:-webkit-box;overflow:hidden;",""),t),[t,l,s,d]);return{...a,className:f,children:u}}function gD(e,t){const n=q0(e);return p.jsx(at,{as:"span",...n,ref:t})}const jm=Me(gD,"Truncate"),Z0=V("color:",J.theme.foreground,";line-height:",Z.fontLineHeightBase,";margin:0;text-wrap:balance;text-wrap:pretty;",""),X0={name:"4zleql",styles:"display:block"},vD=V("color:",J.alert.green,";",""),Y0=V("color:",J.alert.red,";",""),J0=V("color:",J.gray[700],";",""),Q0=V("mark{background:",J.alert.yellow,";border-radius:",Z.radiusSmall,";box-shadow:0 0 0 1px rgba( 0, 0, 0, 0.05 ) inset,0 -1px 0 rgba( 0, 0, 0, 0.1 ) inset;}",""),bD={name:"50zrmy",styles:"text-transform:uppercase"},yD=Object.freeze(Object.defineProperty({__proto__:null,Text:Z0,block:X0,destructive:Y0,highlighterText:Q0,muted:J0,positive:vD,upperCase:bD},Symbol.toStringTag,{value:"Module"}));var oc={exports:{}},Om;function xD(){return Om||(Om=1,function(e){e.exports=function(t){var n={};function r(o){if(n[o])return n[o].exports;var i=n[o]={exports:{},id:o,loaded:!1};return t[o].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}return r.m=t,r.c=n,r.p="",r(0)}([function(t,n,r){t.exports=r(1)},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0});var o=r(2);Object.defineProperty(n,"combineChunks",{enumerable:!0,get:function(){return o.combineChunks}}),Object.defineProperty(n,"fillInChunks",{enumerable:!0,get:function(){return o.fillInChunks}}),Object.defineProperty(n,"findAll",{enumerable:!0,get:function(){return o.findAll}}),Object.defineProperty(n,"findChunks",{enumerable:!0,get:function(){return o.findChunks}})},function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.findAll=function(c){var u=c.autoEscape,d=c.caseSensitive,f=d===void 0?!1:d,m=c.findChunks,v=m===void 0?o:m,g=c.sanitize,y=c.searchWords,b=c.textToHighlight;return i({chunksToHighlight:r({chunks:v({autoEscape:u,caseSensitive:f,sanitize:g,searchWords:y,textToHighlight:b})}),totalLength:b?b.length:0})};var r=n.combineChunks=function(c){var u=c.chunks;return u=u.sort(function(d,f){return d.start-f.start}).reduce(function(d,f){if(d.length===0)return[f];var m=d.pop();if(f.start<m.end){var v=Math.max(m.end,f.end);d.push({highlight:!1,start:m.start,end:v})}else d.push(m,f);return d},[]),u},o=function(c){var u=c.autoEscape,d=c.caseSensitive,f=c.sanitize,m=f===void 0?s:f,v=c.searchWords,g=c.textToHighlight;return g=m(g),v.filter(function(y){return y}).reduce(function(y,b){b=m(b),u&&(b=a(b));for(var _=new RegExp(b,d?"g":"gi"),x=void 0;x=_.exec(g);){var S=x.index,w=_.lastIndex;w>S&&y.push({highlight:!1,start:S,end:w}),x.index===_.lastIndex&&_.lastIndex++}return y},[])};n.findChunks=o;var i=n.fillInChunks=function(c){var u=c.chunksToHighlight,d=c.totalLength,f=[],m=function(y,b,_){b-y>0&&f.push({start:y,end:b,highlight:_})};if(u.length===0)m(0,d,!1);else{var v=0;u.forEach(function(g){m(v,g.start,!1),m(g.start,g.end,!0),v=g.end}),m(v,d,!1)}return f};function s(l){return l}function a(l){return l.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}}])}(oc)),oc.exports}var wD=xD();const SD=e=>{const t={};for(const n in e)t[n.toLowerCase()]=e[n];return t},_D=$i(SD);function CD({activeClassName:e="",activeIndex:t=-1,activeStyle:n,autoEscape:r,caseSensitive:o=!1,children:i,findChunks:s,highlightClassName:a="",highlightStyle:l={},highlightTag:c="mark",sanitize:u,searchWords:d=[],unhighlightClassName:f="",unhighlightStyle:m}){if(!i)return null;if(typeof i!="string")return i;const v=i,g=wD.findAll({autoEscape:r,caseSensitive:o,findChunks:s,sanitize:u,searchWords:d,textToHighlight:v}),y=c;let b=-1,_="",x;return g.map((w,C)=>{const T=v.substr(w.start,w.end-w.start);if(w.highlight){b++;let A;typeof a=="object"?o?A=a[T]:(a=_D(a),A=a[T.toLowerCase()]):A=a;const E=b===+t;_=`${A} ${E?e:""}`,x=E===!0&&n!==null?Object.assign({},l,n):l;const P={children:T,className:_,key:C,style:x};return typeof y!="string"&&(P.highlightIndex=b),h.createElement(y,P)}return h.createElement("span",{children:T,className:f,key:C,style:m})})}const su=13,Dm={body:su,caption:10,footnote:11,largeTitle:28,subheadline:12,title:20},TD=[1,2,3,4,5,6].flatMap(e=>[e,e.toString()]);function af(e=su){if(e in Dm)return af(Dm[e]);if(typeof e!="number"){const n=parseFloat(e);if(Number.isNaN(n))return e;e=n}return`calc(${`(${e} / ${su})`} * ${Z.fontSize})`}function AD(e=3){if(!TD.includes(e))return af(e);const t=`fontSizeH${e}`;return Z[t]}function ED(e,t){if(t)return t;if(!e)return;let n=`calc(${Z.controlHeight} + ${Y(2)})`;switch(e){case"large":n=`calc(${Z.controlHeightLarge} + ${Y(2)})`;break;case"small":n=`calc(${Z.controlHeightSmall} + ${Y(2)})`;break;case"xSmall":n=`calc(${Z.controlHeightXSmall} + ${Y(2)})`;break}return n}var PD={name:"50zrmy",styles:"text-transform:uppercase"};function ex(e){const{adjustLineHeightForInnerControls:t,align:n,children:r,className:o,color:i,ellipsizeMode:s,isDestructive:a=!1,display:l,highlightEscape:c=!1,highlightCaseSensitive:u=!1,highlightWords:d,highlightSanitize:f,isBlock:m=!1,letterSpacing:v,lineHeight:g,optimizeReadabilityFor:y,size:b,truncate:_=!1,upperCase:x=!1,variant:S,weight:w=Z.fontWeight,...C}=Ee(e,"Text");let T=r;const A=Array.isArray(d),E=b==="caption";if(A){if(typeof r!="string")throw new TypeError("`children` of `Text` must only be `string` types when `highlightWords` is defined");T=CD({autoEscape:c,children:r,caseSensitive:u,searchWords:d,sanitize:f})}const P=et(),L=h.useMemo(()=>{const R={},k=ED(t,g);if(R.Base=V({color:i,display:l,fontSize:af(b),fontWeight:w,lineHeight:k,letterSpacing:v,textAlign:n},"",""),R.upperCase=PD,R.optimalTextColor=null,y){const O=Gk(y)==="dark";R.optimalTextColor=V(O?{color:J.theme.foreground}:{color:J.theme.foregroundInverted},"","")}return P(Z0,R.Base,R.optimalTextColor,a&&Y0,!!A&&Q0,m&&X0,E&&J0,S&&yD[S],x&&R.upperCase,o)},[t,n,o,i,P,l,m,E,a,A,v,g,y,b,x,S,w]);let F;_===!0&&(F="auto"),_===!1&&(F="none");const M={...C,className:L,children:r,ellipsizeMode:s||F},N=q0(M);return!_&&Array.isArray(r)&&(T=h.Children.map(r,R=>typeof R!="object"||R===null||!("props"in R)?R:my(R,["Link"])?h.cloneElement(R,{size:R.props.size||"inherit"}):R)),{...N,children:_?N.children:T}}function kD(e,t){const n=ex(e);return p.jsx(at,{as:"span",...n,ref:t})}const lf=Me(kD,"Text"),tx=ne("span",{target:"em5sgkm8"})({name:"pvvbxf",styles:"box-sizing:border-box;display:block"}),nx=ne("span",{target:"em5sgkm7"})({name:"jgf79h",styles:"align-items:center;align-self:stretch;box-sizing:border-box;display:flex"}),MD=({disabled:e,isBorderless:t})=>t?"transparent":e?J.ui.borderDisabled:J.ui.border,cf=ne("div",{target:"em5sgkm6"})("&&&{box-sizing:border-box;border-color:",MD,";border-radius:inherit;border-style:solid;border-width:1px;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;",Ye({paddingLeft:2}),";}"),RD=ne(De,{target:"em5sgkm5"})("box-sizing:border-box;position:relative;border-radius:",Z.radiusSmall,";padding-top:0;&:focus-within:not( :has( :is( ",tx,", ",nx," ):focus-within ) ){",cf,"{border-color:",J.ui.borderFocus,";box-shadow:",Z.controlBoxShadowFocus,";outline:2px solid transparent;outline-offset:-2px;}}"),ID=({disabled:e})=>{const t=e?J.ui.backgroundDisabled:J.ui.background;return V({backgroundColor:t},"","")};var jD={name:"1d3w5wq",styles:"width:100%"};const OD=({__unstableInputWidth:e,labelPosition:t})=>e?t==="side"?"":V(t==="edge"?{flex:`0 0 ${e}`}:{width:e},"",""):jD,DD=ne("div",{target:"em5sgkm4"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;",ID," ",OD,";"),ND=({disabled:e})=>e?V({color:J.ui.textDisabled},"",""):"",uf=({inputSize:e})=>{const t={default:"13px",small:"11px",compact:"13px","__unstable-large":"13px"},n=t[e]||t.default,r="16px";return n?V("font-size:",r,";@media ( min-width: 600px ){font-size:",n,";}",""):""},rx=({inputSize:e,__next40pxDefaultSize:t})=>{const n={default:{height:40,lineHeight:1,minHeight:40,paddingLeft:Z.controlPaddingX,paddingRight:Z.controlPaddingX},small:{height:24,lineHeight:1,minHeight:24,paddingLeft:Z.controlPaddingXSmall,paddingRight:Z.controlPaddingXSmall},compact:{height:32,lineHeight:1,minHeight:32,paddingLeft:Z.controlPaddingXSmall,paddingRight:Z.controlPaddingXSmall},"__unstable-large":{height:40,lineHeight:1,minHeight:40,paddingLeft:Z.controlPaddingX,paddingRight:Z.controlPaddingX}};return t||(n.default=n.compact),n[e]||n.default},LD=e=>V(rx(e),"",""),FD=({paddingInlineStart:e,paddingInlineEnd:t})=>V({paddingInlineStart:e,paddingInlineEnd:t},"",""),BD=({isDragging:e,dragCursor:t})=>{let n,r;return e&&(n=V("cursor:",t,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}","")),e&&t&&(r=V("&:active{cursor:",t,";}","")),V(n," ",r,";","")},VD=ne("input",{target:"em5sgkm3"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",J.theme.foreground,";display:block;font-family:inherit;margin:0;outline:none;width:100%;",BD," ",ND," ",uf," ",LD," ",FD," &::-webkit-input-placeholder{line-height:normal;}}"),zD=ne(lf,{target:"em5sgkm2"})("&&&{",cy,";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;}"),$D=e=>p.jsx(zD,{...e,as:"label"}),GD=ne(Re,{target:"em5sgkm1"})({name:"1b6uupn",styles:"max-width:calc( 100% - 10px )"}),UD=({variant:e="default",size:t,__next40pxDefaultSize:n,isPrefix:r})=>{const{paddingLeft:o}=rx({inputSize:t,__next40pxDefaultSize:n}),i=r?"paddingInlineStart":"paddingInlineEnd";return V(e==="default"?{[i]:o}:{display:"flex",[i]:o-4},"","")},ox=ne("div",{target:"em5sgkm0"})(UD,";");function HD({disabled:e=!1,isBorderless:t=!1}){return p.jsx(cf,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:e,isBorderless:t})}const WD=h.memo(HD);function KD({children:e,hideLabelFromVision:t,htmlFor:n,...r}){return e?t?p.jsx(Rn,{as:"label",htmlFor:n,children:e}):p.jsx(GD,{children:p.jsx($D,{htmlFor:n,...r,children:e})}):null}function Bo(e){const{__next36pxDefaultSize:t,__next40pxDefaultSize:n,...r}=e;return{...r,__next40pxDefaultSize:n??t}}function qD(e){const n=`input-base-control-${lt(ix)}`;return e||n}function ZD(e){const t={};switch(e){case"top":t.direction="column",t.expanded=!1,t.gap=0;break;case"bottom":t.direction="column-reverse",t.expanded=!1,t.gap=0;break;case"edge":t.justify="space-between";break}return t}function ix(e,t){const{__next40pxDefaultSize:n,__unstableInputWidth:r,children:o,className:i,disabled:s=!1,hideLabelFromVision:a=!1,labelPosition:l,id:c,isBorderless:u=!1,label:d,prefix:f,size:m="default",suffix:v,...g}=Bo(Ee(e,"InputBase")),y=qD(c),b=a||!d,_=h.useMemo(()=>({InputControlPrefixWrapper:{__next40pxDefaultSize:n,size:m},InputControlSuffixWrapper:{__next40pxDefaultSize:n,size:m}}),[n,m]);return p.jsxs(RD,{...g,...ZD(l),className:i,gap:2,ref:t,children:[p.jsx(KD,{className:"components-input-control__label",hideLabelFromVision:a,labelPosition:l,htmlFor:y,children:d}),p.jsxs(DD,{__unstableInputWidth:r,className:"components-input-control__container",disabled:s,hideLabel:b,labelPosition:l,children:[p.jsxs(fy,{value:_,children:[f&&p.jsx(tx,{className:"components-input-control__prefix",children:f}),o,v&&p.jsx(nx,{className:"components-input-control__suffix",children:v})]}),p.jsx(WD,{disabled:s,isBorderless:u})]})]})}const df=Me(ix,"InputBase");function XD(e,t,n){return Math.max(t,Math.min(e,n))}const Ct={toVector(e,t){return e===void 0&&(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 Nm(e,t,n){return t===0||Math.abs(t)===1/0?Math.pow(e,n*5):e*t*n/(t+n*e)}function Lm(e,t,n,r=.15){return r===0?XD(e,t,n):e<t?-Nm(t-e,n-t,r)+t:e>n?+Nm(e-n,n-t,r)+n:e}function YD(e,[t,n],[r,o]){const[[i,s],[a,l]]=e;return[Lm(t,i,s,r),Lm(n,a,l,o)]}function JD(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function QD(e){var t=JD(e,"string");return typeof t=="symbol"?t:String(t)}function Dt(e,t,n){return t=QD(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ue(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Fm(Object(n),!0).forEach(function(r){Dt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const sx={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function Bm(e){return e?e[0].toUpperCase()+e.slice(1):""}const eN=["enter","leave"];function tN(e=!1,t){return e&&!eN.includes(t)}function nN(e,t="",n=!1){const r=sx[e],o=r&&r[t]||t;return"on"+Bm(e)+Bm(o)+(tN(n,o)?"Capture":"")}const rN=["gotpointercapture","lostpointercapture"];function oN(e){let t=e.substring(2).toLowerCase();const n=!!~t.indexOf("passive");n&&(t=t.replace("passive",""));const r=rN.includes(t)?"capturecapture":"capture",o=!!~t.indexOf(r);return o&&(t=t.replace("capture","")),{device:t,capture:o,passive:n}}function iN(e,t=""){const n=sx[e],r=n&&n[t]||t;return e+r}function cl(e){return"touches"in e}function ax(e){return cl(e)?"touch":"pointerType"in e?e.pointerType:"mouse"}function sN(e){return Array.from(e.touches).filter(t=>{var n,r;return t.target===e.currentTarget||((n=e.currentTarget)===null||n===void 0||(r=n.contains)===null||r===void 0?void 0:r.call(n,t.target))})}function aN(e){return e.type==="touchend"||e.type==="touchcancel"?e.changedTouches:e.targetTouches}function lx(e){return cl(e)?aN(e)[0]:e}function lN(e){return sN(e).map(t=>t.identifier)}function ic(e){const t=lx(e);return cl(e)?t.identifier:t.pointerId}function Vm(e){const t=lx(e);return[t.clientX,t.clientY]}function cN(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}function fa(e,...t){return typeof e=="function"?e(...t):e}function uN(){}function dN(...e){return e.length===0?uN:e.length===1?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function zm(e,t){return Object.assign({},t,e||{})}const fN=32;class pN{constructor(t,n,r){this.ctrl=t,this.args=n,this.key=r,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(t){this.ctrl.state[this.key]=t}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:t,shared:n,ingKey:r,args:o}=this;n[r]=t._active=t.active=t._blocked=t._force=!1,t._step=[!1,!1],t.intentional=!1,t._movement=[0,0],t._distance=[0,0],t._direction=[0,0],t._delta=[0,0],t._bounds=[[-1/0,1/0],[-1/0,1/0]],t.args=o,t.axis=void 0,t.memo=void 0,t.elapsedTime=t.timeDelta=0,t.direction=[0,0],t.distance=[0,0],t.overflow=[0,0],t._movementBound=[!1,!1],t.velocity=[0,0],t.movement=[0,0],t.delta=[0,0],t.timeStamp=0}start(t){const n=this.state,r=this.config;n._active||(this.reset(),this.computeInitial(),n._active=!0,n.target=t.target,n.currentTarget=t.currentTarget,n.lastOffset=r.from?fa(r.from,n):n.offset,n.offset=n.lastOffset,n.startTime=n.timeStamp=t.timeStamp)}computeValues(t){const n=this.state;n._values=t,n.values=this.config.transform(t)}computeInitial(){const t=this.state;t._initial=t._values,t.initial=t.values}compute(t){const{state:n,config:r,shared:o}=this;n.args=this.args;let i=0;if(t&&(n.event=t,r.preventDefault&&t.cancelable&&n.event.preventDefault(),n.type=t.type,o.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,o.locked=!!document.pointerLockElement,Object.assign(o,cN(t)),o.down=o.pressed=o.buttons%2===1||o.touches>0,i=t.timeStamp-n.timeStamp,n.timeStamp=t.timeStamp,n.elapsedTime=n.timeStamp-n.startTime),n._active){const C=n._delta.map(Math.abs);Ct.addTo(n._distance,C)}this.axisIntent&&this.axisIntent(t);const[s,a]=n._movement,[l,c]=r.threshold,{_step:u,values:d}=n;if(r.hasCustomTransform?(u[0]===!1&&(u[0]=Math.abs(s)>=l&&d[0]),u[1]===!1&&(u[1]=Math.abs(a)>=c&&d[1])):(u[0]===!1&&(u[0]=Math.abs(s)>=l&&Math.sign(s)*l),u[1]===!1&&(u[1]=Math.abs(a)>=c&&Math.sign(a)*c)),n.intentional=u[0]!==!1||u[1]!==!1,!n.intentional)return;const f=[0,0];if(r.hasCustomTransform){const[C,T]=d;f[0]=u[0]!==!1?C-u[0]:0,f[1]=u[1]!==!1?T-u[1]:0}else f[0]=u[0]!==!1?s-u[0]:0,f[1]=u[1]!==!1?a-u[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(f);const m=n.offset,v=n._active&&!n._blocked||n.active;v&&(n.first=n._active&&!n.active,n.last=!n._active&&n.active,n.active=o[this.ingKey]=n._active,t&&(n.first&&("bounds"in r&&(n._bounds=fa(r.bounds,n)),this.setup&&this.setup()),n.movement=f,this.computeOffset()));const[g,y]=n.offset,[[b,_],[x,S]]=n._bounds;n.overflow=[g<b?-1:g>_?1:0,y<x?-1:y>S?1:0],n._movementBound[0]=n.overflow[0]?n._movementBound[0]===!1?n._movement[0]:n._movementBound[0]:!1,n._movementBound[1]=n.overflow[1]?n._movementBound[1]===!1?n._movement[1]:n._movementBound[1]:!1;const w=n._active?r.rubberband||[0,0]:[0,0];if(n.offset=YD(n._bounds,n.offset,w),n.delta=Ct.sub(n.offset,m),this.computeMovement(),v&&(!n.last||i>fN)){n.delta=Ct.sub(n.offset,m);const C=n.delta.map(Math.abs);Ct.addTo(n.distance,C),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&i>0&&(n.velocity=[C[0]/i,C[1]/i],n.timeDelta=i)}}emit(){const t=this.state,n=this.shared,r=this.config;if(t._active||this.clean(),(t._blocked||!t.intentional)&&!t._force&&!r.triggerAllEvents)return;const o=this.handler(Ue(Ue(Ue({},n),t),{},{[this.aliasKey]:t.values}));o!==void 0&&(t.memo=o)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function hN([e,t],n){const r=Math.abs(e),o=Math.abs(t);if(r>o&&r>n)return"x";if(o>r&&o>n)return"y"}class mN extends pN{constructor(...t){super(...t),Dt(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=Ct.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=Ct.sub(this.state.offset,this.state.lastOffset)}axisIntent(t){const n=this.state,r=this.config;if(!n.axis&&t){const o=typeof r.axisThreshold=="object"?r.axisThreshold[ax(t)]:r.axisThreshold;n.axis=hN(n._movement,o)}n._blocked=(r.lockDirection||!!r.axis)&&!n.axis||!!r.axis&&r.axis!==n.axis}restrictToAxis(t){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":t[1]=0;break;case"y":t[0]=0;break}}}const gN=e=>e,$m=.15,cx={enabled(e=!0){return e},eventOptions(e,t,n){return Ue(Ue({},n.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[$m,$m];case!1:return[0,0];default:return Ct.toVector(e)}},from(e){if(typeof e=="function")return e;if(e!=null)return Ct.toVector(e)},transform(e,t,n){const r=e||n.shared.transform;return this.hasCustomTransform=!!r,r||gN},threshold(e){return Ct.toVector(e,0)}},vN=0,ss=Ue(Ue({},cx),{},{axis(e,t,{axis:n}){if(this.lockDirection=n==="lock",!this.lockDirection)return n},axisThreshold(e=vN){return e},bounds(e={}){if(typeof e=="function")return i=>ss.bounds(e(i));if("current"in e)return()=>e.current;if(typeof HTMLElement=="function"&&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]]}}),Gm={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]};class bN extends mN{constructor(...t){super(...t),Dt(this,"ingKey","dragging")}reset(){super.reset();const t=this.state;t._pointerId=void 0,t._pointerActive=!1,t._keyboardActive=!1,t._preventScroll=!1,t._delayed=!1,t.swipe=[0,0],t.tap=!1,t.canceled=!1,t.cancel=this.cancel.bind(this)}setup(){const t=this.state;if(t._bounds instanceof HTMLElement){const n=t._bounds.getBoundingClientRect(),r=t.currentTarget.getBoundingClientRect(),o={left:n.left-r.left+t.offset[0],right:n.right-r.right+t.offset[0],top:n.top-r.top+t.offset[1],bottom:n.bottom-r.bottom+t.offset[1]};t._bounds=ss.bounds(o)}}cancel(){const t=this.state;t.canceled||(t.canceled=!0,t._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(t){const n=this.config,r=this.state;if(t.buttons!=null&&(Array.isArray(n.pointerButtons)?!n.pointerButtons.includes(t.buttons):n.pointerButtons!==-1&&n.pointerButtons!==t.buttons))return;const o=this.ctrl.setEventIds(t);n.pointerCapture&&t.target.setPointerCapture(t.pointerId),!(o&&o.size>1&&r._pointerActive)&&(this.start(t),this.setupPointer(t),r._pointerId=ic(t),r._pointerActive=!0,this.computeValues(Vm(t)),this.computeInitial(),n.preventScrollAxis&&ax(t)!=="mouse"?(r._active=!1,this.setupScrollPrevention(t)):n.delay>0?(this.setupDelayTrigger(t),n.triggerAllEvents&&(this.compute(t),this.emit())):this.startPointerDrag(t))}startPointerDrag(t){const n=this.state;n._active=!0,n._preventScroll=!0,n._delayed=!1,this.compute(t),this.emit()}pointerMove(t){const n=this.state,r=this.config;if(!n._pointerActive)return;const o=ic(t);if(n._pointerId!==void 0&&o!==n._pointerId)return;const i=Vm(t);if(document.pointerLockElement===t.target?n._delta=[t.movementX,t.movementY]:(n._delta=Ct.sub(i,n._values),this.computeValues(i)),Ct.addTo(n._movement,n._delta),this.compute(t),n._delayed&&n.intentional){this.timeoutStore.remove("dragDelay"),n.active=!1,this.startPointerDrag(t);return}if(r.preventScrollAxis&&!n._preventScroll)if(n.axis)if(n.axis===r.preventScrollAxis||r.preventScrollAxis==="xy"){n._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(t);return}else return;this.emit()}pointerUp(t){this.ctrl.setEventIds(t);try{this.config.pointerCapture&&t.target.hasPointerCapture(t.pointerId)&&t.target.releasePointerCapture(t.pointerId)}catch{}const n=this.state,r=this.config;if(!n._active||!n._pointerActive)return;const o=ic(t);if(n._pointerId!==void 0&&o!==n._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(t);const[i,s]=n._distance;if(n.tap=i<=r.tapsThreshold&&s<=r.tapsThreshold,n.tap&&r.filterTaps)n._force=!0;else{const[a,l]=n._delta,[c,u]=n._movement,[d,f]=r.swipe.velocity,[m,v]=r.swipe.distance,g=r.swipe.duration;if(n.elapsedTime<g){const y=Math.abs(a/n.timeDelta),b=Math.abs(l/n.timeDelta);y>d&&Math.abs(c)>m&&(n.swipe[0]=Math.sign(a)),b>f&&Math.abs(u)>v&&(n.swipe[1]=Math.sign(l))}}this.emit()}pointerClick(t){!this.state.tap&&t.detail>0&&(t.preventDefault(),t.stopPropagation())}setupPointer(t){const n=this.config,r=n.device;n.pointerLock&&t.currentTarget.requestPointerLock(),n.pointerCapture||(this.eventStore.add(this.sharedConfig.window,r,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(t){this.state._preventScroll&&t.cancelable&&t.preventDefault()}setupScrollPrevention(t){this.state._preventScroll=!1,yN(t);const n=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",n),this.eventStore.add(this.sharedConfig.window,"touch","cancel",n),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,t)}setupDelayTrigger(t){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(t)},this.config.delay)}keyDown(t){const n=Gm[t.key];if(n){const r=this.state,o=t.shiftKey?10:t.altKey?.1:1;this.start(t),r._delta=n(this.config.keyboardDisplacement,o),r._keyboardActive=!0,Ct.addTo(r._movement,r._delta),this.compute(t),this.emit()}}keyUp(t){t.key in Gm&&(this.state._keyboardActive=!1,this.setActive(),this.compute(t),this.emit())}bind(t){const n=this.config.device;t(n,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(t(n,"change",this.pointerMove.bind(this)),t(n,"end",this.pointerUp.bind(this)),t(n,"cancel",this.pointerUp.bind(this)),t("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(t("key","down",this.keyDown.bind(this)),t("key","up",this.keyUp.bind(this))),this.config.filterTaps&&t("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function yN(e){"persist"in e&&typeof e.persist=="function"&&e.persist()}const as=typeof window<"u"&&window.document&&window.document.createElement;function ux(){return as&&"ontouchstart"in window}function xN(){return ux()||as&&window.navigator.maxTouchPoints>1}function wN(){return as&&"onpointerdown"in window}function SN(){return as&&"exitPointerLock"in window.document}function _N(){try{return"constructor"in GestureEvent}catch{return!1}}const tn={isBrowser:as,gesture:_N(),touch:ux(),touchscreen:xN(),pointer:wN(),pointerLock:SN()},CN=250,TN=180,AN=.5,EN=50,PN=250,kN=10,Um={mouse:0,touch:0,pen:8},MN=Ue(Ue({},ss),{},{device(e,t,{pointer:{touch:n=!1,lock:r=!1,mouse:o=!1}={}}){return this.pointerLock=r&&tn.pointerLock,tn.touch&&n?"touch":this.pointerLock?"mouse":tn.pointer&&!o?"pointer":tn.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay=typeof n=="number"?n:n||n===void 0&&e?CN:void 0,!(!tn.touchscreen||n===!1))return e||(n!==void 0?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:r=1,keys:o=!0}={}}){return this.pointerButtons=r,this.keys=o,!this.pointerLock&&this.device==="pointer"&&n},threshold(e,t,{filterTaps:n=!1,tapsThreshold:r=3,axis:o=void 0}){const i=Ct.toVector(e,n?r:o?1:0);return this.filterTaps=n,this.tapsThreshold=r,i},swipe({velocity:e=AN,distance:t=EN,duration:n=PN}={}){return{velocity:this.transform(Ct.toVector(e)),distance:this.transform(Ct.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return TN;case!1:return 0;default:return e}},axisThreshold(e){return e?Ue(Ue({},Um),e):Um},keyboardDisplacement(e=kN){return e}});Ue(Ue({},cx),{},{device(e,t,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!tn.touch&&tn.gesture)return"gesture";if(tn.touch&&r)return"touch";if(tn.touchscreen){if(tn.pointer)return"pointer";if(tn.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){const o=s=>{const a=zm(fa(n,s),{min:-1/0,max:1/0});return[a.min,a.max]},i=s=>{const a=zm(fa(r,s),{min:-1/0,max:1/0});return[a.min,a.max]};return typeof n!="function"&&typeof r!="function"?[o(),i()]:s=>[o(s),i(s)]},threshold(e,t,n){return this.lockDirection=n.axis==="lock",Ct.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return e===void 0?"ctrlKey":e},pinchOnWheel(e=!0){return e}});Ue(Ue({},ss),{},{mouseOnly:(e=!0)=>e});Ue(Ue({},ss),{},{mouseOnly:(e=!0)=>e});const dx=new Map,au=new Map;function RN(e){dx.set(e.key,e.engine),au.set(e.key,e.resolver)}const IN={key:"drag",engine:bN,resolver:MN};function jN(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function ON(e,t){if(e==null)return{};var n=jN(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}const DN={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=tn.isBrowser?window:void 0){return e},eventOptions({passive:e=!0,capture:t=!1}={}){return{passive:e,capture:t}},transform(e){return e}},NN=["target","eventOptions","window","enabled","transform"];function Gs(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]=Gs(e[r],o);break;case"boolean":o&&(n[r]=e[r]);break}return n}function LN(e,t,n={}){const r=e,{target:o,eventOptions:i,window:s,enabled:a,transform:l}=r,c=ON(r,NN);if(n.shared=Gs({target:o,eventOptions:i,window:s,enabled:a,transform:l},DN),t){const u=au.get(t);n[t]=Gs(Ue({shared:n.shared},c),u)}else for(const u in c){const d=au.get(u);d&&(n[u]=Gs(Ue({shared:n.shared},c[u]),d))}return n}class fx{constructor(t,n){Dt(this,"_listeners",new Set),this._ctrl=t,this._gestureKey=n}add(t,n,r,o,i){const s=this._listeners,a=iN(n,r),l=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},c=Ue(Ue({},l),i);t.addEventListener(a,o,c);const u=()=>{t.removeEventListener(a,o,c),s.delete(u)};return s.add(u),u}clean(){this._listeners.forEach(t=>t()),this._listeners.clear()}}class FN{constructor(){Dt(this,"_timeouts",new Map)}add(t,n,r=140,...o){this.remove(t),this._timeouts.set(t,window.setTimeout(n,r,...o))}remove(t){const n=this._timeouts.get(t);n&&window.clearTimeout(n)}clean(){this._timeouts.forEach(t=>void window.clearTimeout(t)),this._timeouts.clear()}}class BN{constructor(t){Dt(this,"gestures",new Set),Dt(this,"_targetEventStore",new fx(this)),Dt(this,"gestureEventStores",{}),Dt(this,"gestureTimeoutStores",{}),Dt(this,"handlers",{}),Dt(this,"config",{}),Dt(this,"pointerIds",new Set),Dt(this,"touchIds",new Set),Dt(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),VN(this,t)}setEventIds(t){if(cl(t))return this.touchIds=new Set(lN(t)),this.touchIds;if("pointerId"in t)return t.type==="pointerup"||t.type==="pointercancel"?this.pointerIds.delete(t.pointerId):t.type==="pointerdown"&&this.pointerIds.add(t.pointerId),this.pointerIds}applyHandlers(t,n){this.handlers=t,this.nativeHandlers=n}applyConfig(t,n){this.config=LN(t,n,this.config)}clean(){this._targetEventStore.clean();for(const t of this.gestures)this.gestureEventStores[t].clean(),this.gestureTimeoutStores[t].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...t){const n=this.config.shared,r={};let o;if(!(n.target&&(o=n.target(),!o))){if(n.enabled){for(const s of this.gestures){const a=this.config[s],l=Hm(r,a.eventOptions,!!o);if(a.enabled){const c=dx.get(s);new c(this,t,s).bind(l)}}const i=Hm(r,n.eventOptions,!!o);for(const s in this.nativeHandlers)i(s,"",a=>this.nativeHandlers[s](Ue(Ue({},this.state.shared),{},{event:a,args:t})),void 0,!0)}for(const i in r)r[i]=dN(...r[i]);if(!o)return r;for(const i in r){const{device:s,capture:a,passive:l}=oN(i);this._targetEventStore.add(o,s,"",r[i],{capture:a,passive:l})}}}}function qr(e,t){e.gestures.add(t),e.gestureEventStores[t]=new fx(e,t),e.gestureTimeoutStores[t]=new FN}function VN(e,t){t.drag&&qr(e,"drag"),t.wheel&&qr(e,"wheel"),t.scroll&&qr(e,"scroll"),t.move&&qr(e,"move"),t.pinch&&qr(e,"pinch"),t.hover&&qr(e,"hover")}const Hm=(e,t,n)=>(r,o,i,s={},a=!1)=>{var l,c;const u=(l=s.capture)!==null&&l!==void 0?l:t.capture,d=(c=s.passive)!==null&&c!==void 0?c:t.passive;let f=a?r:nN(r,o,u);n&&d&&(f+="Passive"),e[f]=e[f]||[],e[f].push(i)};function zN(e,t={},n,r){const o=Ie.useMemo(()=>new BN(e),[]);if(o.applyHandlers(e,r),o.applyConfig(t,n),Ie.useEffect(o.effect.bind(o)),Ie.useEffect(()=>o.clean.bind(o),[]),t.target===void 0)return o.bind.bind(o)}function $N(e,t){return RN(IN),zN({drag:e},t,"drag")}function GN(e){let t="ns-resize";switch(e){case"n":case"s":t="ns-resize";break;case"e":case"w":t="ew-resize";break}return t}function UN(e,t){const n=GN(t);return h.useEffect(()=>{e?document.documentElement.style.cursor=n:document.documentElement.style.cursor=null},[e,n]),n}function HN(e){const t=h.useRef(e.value),[n,r]=h.useState({}),o=n.value!==void 0?n.value:e.value;return h.useLayoutEffect(()=>{const{current:a}=t;t.current=e.value,n.value!==void 0&&!n.isStale?r({...n,isStale:!0}):n.isStale&&e.value!==a&&r({})},[e.value,n]),{value:o,onBlur:a=>{var l;r({}),(l=e.onBlur)==null||l.call(e,a)},onChange:(a,l)=>{r(c=>Object.assign(c,{value:a,isStale:!1})),e.onChange(a,l)}}}const WN=e=>e,lu={error:null,initialValue:"",isDirty:!1,isDragEnabled:!1,isDragging:!1,isPressEnterToChange:!1,value:""},px="CHANGE",ff="COMMIT",hx="CONTROL",mx="DRAG_END",gx="DRAG_START",vx="DRAG",bx="INVALIDATE",pf="PRESS_DOWN",yx="PRESS_ENTER",pa="PRESS_UP",xx="RESET";function KN(e=lu){const{value:t}=e;return{...lu,...e,initialValue:t}}function qN(e){return(t,n)=>{const r={...t};switch(n.type){case hx:return r.value=n.payload.value,r.isDirty=!1,r._event=void 0,r;case pa:r.isDirty=!1;break;case pf:r.isDirty=!1;break;case gx:r.isDragging=!0;break;case mx:r.isDragging=!1;break;case px:r.error=null,r.value=n.payload.value,t.isPressEnterToChange&&(r.isDirty=!0);break;case ff:r.value=n.payload.value,r.isDirty=!1;break;case xx:r.error=null,r.isDirty=!1,r.value=n.payload.value||t.initialValue;break;case bx:r.error=n.payload.error;break}return r._event=n.payload.event,e(r,n)}}function ZN(e=WN,t=lu,n){const[r,o]=h.useReducer(qN(e),KN(t)),i=S=>(w,C)=>{o({type:S,payload:{value:w,event:C}})},s=S=>w=>{o({type:S,payload:{event:w}})},a=S=>w=>{o({type:S,payload:w})},l=i(px),c=(S,w)=>o({type:bx,payload:{error:S,event:w}}),u=i(xx),d=i(ff),f=a(gx),m=a(vx),v=a(mx),g=s(pa),y=s(pf),b=s(yx),_=h.useRef(r),x=h.useRef({value:t.value,onChangeHandler:n});return h.useLayoutEffect(()=>{_.current=r,x.current={value:t.value,onChangeHandler:n}}),h.useLayoutEffect(()=>{if(_.current._event!==void 0&&r.value!==x.current.value&&!r.isDirty){var S;x.current.onChangeHandler((S=r.value)!==null&&S!==void 0?S:"",{event:_.current._event})}},[r.value,r.isDirty]),h.useLayoutEffect(()=>{if(t.value!==_.current.value&&!_.current.isDirty){var S;o({type:hx,payload:{value:(S=t.value)!==null&&S!==void 0?S:""}})}},[t.value]),{change:l,commit:d,dispatch:o,drag:m,dragEnd:v,dragStart:f,invalidate:c,pressDown:y,pressEnter:b,pressUp:g,reset:u,state:r}}function wx(e){return t=>{const{isComposing:n}="nativeEvent"in t?t.nativeEvent:t;n||t.keyCode===229||e(t)}}const wr=()=>{};function XN({disabled:e=!1,dragDirection:t="n",dragThreshold:n=10,id:r,isDragEnabled:o=!1,isPressEnterToChange:i=!1,onBlur:s=wr,onChange:a=wr,onDrag:l=wr,onDragEnd:c=wr,onDragStart:u=wr,onKeyDown:d=wr,onValidate:f=wr,size:m="default",stateReducer:v=x=>x,value:g,type:y,...b},_){const{state:x,change:S,commit:w,drag:C,dragEnd:T,dragStart:A,invalidate:E,pressDown:P,pressEnter:L,pressUp:F,reset:M}=ZN(v,{isDragEnabled:o,value:g,isPressEnterToChange:i},a),{value:N,isDragging:R,isDirty:k}=x,O=h.useRef(!1),G=UN(R,t),I=j=>{s(j),(k||!j.target.validity.valid)&&(O.current=!0,U(j))},z=j=>{const X=j.target.value;S(X,j)},U=j=>{const X=j.currentTarget.value;try{f(X),w(X,j)}catch(ie){E(ie,j)}},B=j=>{const{key:X}=j;switch(d(j),X){case"ArrowUp":F(j);break;case"ArrowDown":P(j);break;case"Enter":L(j),i&&(j.preventDefault(),U(j));break;case"Escape":i&&k&&(j.preventDefault(),M(g,j));break}},$=$N(j=>{const{distance:X,dragging:ie,event:Ce,target:we}=j;if(j.event={...j.event,target:we},!!X){if(Ce.stopPropagation(),!ie){c(j),T(j);return}l(j),C(j),R||(u(j),A(j))}},{axis:t==="e"||t==="w"?"x":"y",threshold:n,enabled:o,pointer:{capture:!1}}),H=o?$():{};let q;return y==="number"&&(q=j=>{var X;(X=b.onMouseDown)==null||X.call(b,j),j.currentTarget!==j.currentTarget.ownerDocument.activeElement&&j.currentTarget.focus()}),p.jsx(VD,{...b,...H,className:"components-input-control__input",disabled:e,dragCursor:G,isDragging:R,id:r,onBlur:I,onChange:z,onKeyDown:wx(B),onMouseDown:q,ref:_,inputSize:m,value:N??"",type:y})}const YN=h.forwardRef(XN),JN=ne("div",{target:"ej5x27r4"})("font-family:",uo("default.fontFamily"),";font-size:",uo("default.fontSize"),";",Ad,";"),QN=({__nextHasNoMarginBottom:e=!1})=>!e&&V("margin-bottom:",Y(2),";",""),e2=ne("div",{target:"ej5x27r3"})(QN," .components-panel__row &{margin-bottom:inherit;}"),Sx=V(cy,";display:block;margin-bottom:",Y(2),";padding:0;",""),ha=ne("label",{target:"ej5x27r2"})(Sx,";");var t2={name:"11yad0w",styles:"margin-bottom:revert"};const n2=({__nextHasNoMarginBottom:e=!1})=>!e&&t2,cu=ne("p",{target:"ej5x27r1"})("margin-top:",Y(2),";margin-bottom:0;font-size:",uo("helpText.fontSize"),";font-style:normal;color:",J.gray[700],";",n2,";"),r2=ne("span",{target:"ej5x27r0"})(Sx,";"),o2=e=>{const{__nextHasNoMarginBottom:t=!1,__associatedWPComponentName:n="BaseControl",id:r,label:o,hideLabelFromVision:i=!1,help:s,className:a,children:l}=Ee(e,"BaseControl");return t||Mt(`Bottom margin styles for wp.components.${n}`,{since:"6.7",version:"7.0",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version."}),p.jsxs(JN,{className:a,children:[p.jsxs(e2,{className:"components-base-control__field",__nextHasNoMarginBottom:t,children:[o&&r&&(i?p.jsx(Rn,{as:"label",htmlFor:r,children:o}):p.jsx(ha,{className:"components-base-control__label",htmlFor:r,children:o})),o&&!r&&(i?p.jsx(Rn,{as:"label",children:o}):p.jsx(_x,{children:o})),l]}),!!s&&p.jsx(cu,{id:r?r+"__help":void 0,className:"components-base-control__help",__nextHasNoMarginBottom:t,children:s})]})},i2=(e,t)=>{const{className:n,children:r,...o}=e;return p.jsx(r2,{ref:t,...o,className:xe("components-base-control__label",n),children:r})},_x=h.forwardRef(i2),dt=Object.assign(oM(o2,"BaseControl"),{VisualLabel:_x});function vn({componentName:e,__next40pxDefaultSize:t,size:n,__shouldNotWarnDeprecated36pxSize:r}){r||t||n!==void 0&&n!=="default"||Mt(`36px default size for wp.components.${e}`,{since:"6.8",version:"7.1",hint:"Set the `__next40pxDefaultSize` prop to true to start opting into the new default size, which will become the default in a future version."})}const sc=()=>{};function s2(e){const n=`inspector-input-control-${lt(hf)}`;return e||n}function a2(e,t){const{__next40pxDefaultSize:n,__shouldNotWarnDeprecated36pxSize:r,__unstableStateReducer:o=L=>L,__unstableInputWidth:i,className:s,disabled:a=!1,help:l,hideLabelFromVision:c=!1,id:u,isPressEnterToChange:d=!1,label:f,labelPosition:m="top",onChange:v=sc,onValidate:g=sc,onKeyDown:y=sc,prefix:b,size:_="default",style:x,suffix:S,value:w,...C}=Bo(e),T=s2(u),A=xe("components-input-control",s),E=HN({value:w,onBlur:C.onBlur,onChange:v}),P=l?{"aria-describedby":`${T}__help`}:{};return vn({componentName:"InputControl",__next40pxDefaultSize:n,size:_,__shouldNotWarnDeprecated36pxSize:r}),p.jsx(dt,{className:A,help:l,id:T,__nextHasNoMarginBottom:!0,children:p.jsx(df,{__next40pxDefaultSize:n,__unstableInputWidth:i,disabled:a,gap:3,hideLabelFromVision:c,id:T,justify:"left",label:f,labelPosition:m,prefix:b,size:_,style:x,suffix:S,children:p.jsx(YN,{...C,...P,__next40pxDefaultSize:n,className:"components-input-control__input",disabled:a,id:T,isPressEnterToChange:d,onKeyDown:y,onValidate:g,paddingInlineStart:b?Y(1):void 0,paddingInlineEnd:S?Y(1):void 0,ref:t,size:_,stateReducer:o,...E})})})}const hf=h.forwardRef(a2);function Wm({icon:e,className:t,size:n=20,style:r={},...o}){const i=["dashicon","dashicons","dashicons-"+e,t].filter(Boolean).join(" "),a={...n!=20?{fontSize:`${n}px`,width:`${n}px`,height:`${n}px`}:{},...r};return p.jsx("span",{className:i,style:a,...o})}function Ai({icon:e=null,size:t=typeof e=="string"?20:24,...n}){if(typeof e=="string")return p.jsx(Wm,{icon:e,size:t,...n});if(h.isValidElement(e)&&Wm===e.type)return h.cloneElement(e,{...n});if(typeof e=="function")return h.createElement(e,{size:t,...n});if(e&&(e.type==="svg"||e.type===Tt)){const r={...e.props,width:t,height:t,...n};return p.jsx(Tt,{...r})}return h.isValidElement(e)?h.cloneElement(e,{size:t,...n}):e}const l2=["onMouseDown","onClick"];function c2({__experimentalIsFocusable:e,isDefault:t,isPrimary:n,isSecondary:r,isTertiary:o,isLink:i,isPressed:s,isSmall:a,size:l,variant:c,describedBy:u,...d}){let f=l,m=c;const v={accessibleWhenDisabled:e,"aria-pressed":s,description:u};if(a){var g;(g=f)!==null&&g!==void 0||(f="small")}if(n){var y;(y=m)!==null&&y!==void 0||(m="primary")}if(o){var b;(b=m)!==null&&b!==void 0||(m="tertiary")}if(r){var _;(_=m)!==null&&_!==void 0||(m="secondary")}if(t){var x;Mt("wp.components.Button `isDefault` prop",{since:"5.4",alternative:'variant="secondary"'}),(x=m)!==null&&x!==void 0||(m="secondary")}if(i){var S;(S=m)!==null&&S!==void 0||(m="link")}return{...v,...d,size:f,variant:m}}function u2(e,t){var X,ie;const{__next40pxDefaultSize:n,accessibleWhenDisabled:r,isBusy:o,isDestructive:i,className:s,disabled:a,icon:l,iconPosition:c="left",iconSize:u,showTooltip:d,tooltipPosition:f,shortcut:m,label:v,children:g,size:y="default",text:b,variant:_,description:x,...S}=c2(e),{href:w,target:C,"aria-checked":T,"aria-pressed":A,"aria-selected":E,...P}="href"in S?S:{href:void 0,target:void 0,...S},L=lt(ft,"components-button__description"),F=typeof g=="string"&&!!g||Array.isArray(g)&&(g==null?void 0:g[0])&&g[0]!==null&&((ie=(X=g==null?void 0:g[0])==null?void 0:X.props)==null?void 0:ie.className)!=="components-tooltip",N=xe("components-button",s,{"is-next-40px-default-size":n,"is-secondary":_==="secondary","is-primary":_==="primary","is-small":y==="small","is-compact":y==="compact","is-tertiary":_==="tertiary","is-pressed":[!0,"true","mixed"].includes(A),"is-pressed-mixed":A==="mixed","is-busy":o,"is-link":_==="link","is-destructive":i,"has-text":!!l&&(F||b),"has-icon":!!l}),R=a&&!r,k=w!==void 0&&!a?"a":"button",O=k==="button"?{type:"button",disabled:R,"aria-checked":T,"aria-pressed":A,"aria-selected":E}:{},G=k==="a"?{href:w,target:C}:{},I={};if(a&&r){O["aria-disabled"]=!0,G["aria-disabled"]=!0;for(const Ce of l2)I[Ce]=we=>{we&&(we.stopPropagation(),we.preventDefault())}}const z=!R&&(d&&!!v||!!m||!!v&&!(g!=null&&g.length)&&d!==!1),U=x?L:void 0,B=P["aria-describedby"]||U,$={className:N,"aria-label":P["aria-label"]||v,"aria-describedby":B,ref:t},H=p.jsxs(p.Fragment,{children:[l&&c==="left"&&p.jsx(Ai,{icon:l,size:u}),b&&p.jsx(p.Fragment,{children:b}),g,l&&c==="right"&&p.jsx(Ai,{icon:l,size:u})]}),q=k==="a"?p.jsx("a",{...G,...P,...I,...$,children:H}):p.jsx("button",{...O,...P,...I,...$,children:H}),j=z?{text:g!=null&&g.length&&x?x:v,shortcut:m,placement:f&&bd(f)}:{};return p.jsxs(p.Fragment,{children:[p.jsx(Qi,{...j,children:q}),x&&p.jsx(Rn,{children:p.jsx("span",{id:U,children:x})})]})}const ft=h.forwardRef(u2);var d2={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 f2=({hideHTMLArrows:e})=>e?d2:"",p2=ne(hf,{target:"ep09it41"})(f2,";"),Km=ne(ft,{target:"ep09it40"})("&&&&&{color:",J.theme.accent,";}"),h2=V("width:",Y(5),";min-width:",Y(5),";height:",Y(5),";",""),m2={smallSpinButtons:h2};function fo(e){const t=Number(e);return isNaN(t)?0:t}function qm(...e){return e.reduce((t,n)=>t+fo(n),0)}function g2(...e){return e.reduce((t,n,r)=>{const o=fo(n);return r===0?o:t-o},0)}function v2(e){const t=(e+"").split(".");return t[1]!==void 0?t[1].length:0}function mf(e,t,n){const r=fo(e);return Math.max(t,Math.min(r,n))}function Zm(e=0,t=1/0,n=1/0,r=1){const o=fo(e),i=fo(r),s=v2(r),a=Math.round(o/i)*i,l=mf(a,t,n);return s?fo(l.toFixed(s)):l}const b2={bottom:{align:"flex-end",justify:"center"},bottomLeft:{align:"flex-end",justify:"flex-start"},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"}},y2={bottom:{justify:"flex-end",align:"center"},bottomLeft:{justify:"flex-end",align:"flex-start"},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:{align:"stretch"},top:{justify:"flex-start",align:"center"},topLeft:{justify:"flex-start",align:"flex-start"},topRight:{justify:"flex-start",align:"flex-end"}};function x2(e,t="row"){if(!en(e))return{};const r=t==="column"?y2:b2;return e in r?r[e]:{align:e}}function w2(e){return typeof e=="string"?[e]:h.Children.toArray(e).filter(t=>h.isValidElement(t))}function Cx(e){const{alignment:t="edge",children:n,direction:r,spacing:o=2,...i}=Ee(e,"HStack"),s=x2(t,r),c={children:w2(n).map((f,m)=>{if(my(f,["Spacer"])){const g=f,y=g.key||`hstack-${m}`;return p.jsx(Re,{isBlock:!0,...g.props},y)}return f}),direction:r,justify:"center",...s,...i,gap:o},{isColumn:u,...d}=G0(c);return d}function S2(e,t){const n=Cx(e);return p.jsx(at,{...n,ref:t})}const Vo=Me(S2,"HStack"),_2=()=>{};function C2(e,t){const{__unstableStateReducer:n,className:r,dragDirection:o="n",hideHTMLArrows:i=!1,spinControls:s=i?"none":"native",isDragEnabled:a=!0,isShiftStepEnabled:l=!0,label:c,max:u=1/0,min:d=-1/0,required:f=!1,shiftStep:m=10,step:v=1,spinFactor:g=1,type:y="number",value:b,size:_="default",suffix:x,onChange:S=_2,__shouldNotWarnDeprecated36pxSize:w,...C}=Bo(e);vn({componentName:"NumberControl",size:_,__next40pxDefaultSize:C.__next40pxDefaultSize,__shouldNotWarnDeprecated36pxSize:w}),i&&Mt("wp.components.NumberControl hideHTMLArrows prop ",{alternative:'spinControls="none"',since:"6.2",version:"6.3"});const T=h.useRef(),A=Gr([T,t]),E=v==="any",P=E?1:$o(v),L=$o(g)*P,F=Zm(0,d,u,P),M=(U,B)=>E?""+Math.min(u,Math.max(d,$o(U))):""+Zm(U,d,u,B??P),N=y==="number"?"off":void 0,R=xe("components-number-control",r),O=et()(_==="small"&&m2.smallSpinButtons),G=(U,B,$)=>{$==null||$.preventDefault();const H=($==null?void 0:$.shiftKey)&&l,q=H?$o(m)*L:L;let j=EP(U)?F:U;return B==="up"?j=qm(j,q):B==="down"&&(j=g2(j,q)),M(j,H?q:void 0)},I=(U,B)=>{const $={...U},{type:H,payload:q}=B,j=q.event,X=$.value;if((H===pa||H===pf)&&($.value=G(X,H===pa?"up":"down",j)),H===vx&&a){const[ie,Ce]=q.delta,we=q.shiftKey&&l,yt=we?$o(m)*L:L;let ct,Oe;switch(o){case"n":Oe=Ce,ct=-1;break;case"e":Oe=ie,ct=fn()?-1:1;break;case"s":Oe=Ce,ct=1;break;case"w":Oe=ie,ct=fn()?1:-1;break}if(Oe!==0){Oe=Math.ceil(Math.abs(Oe))*Math.sign(Oe);const Pt=Oe*yt*ct;$.value=M(qm(X,Pt),we?yt:void 0)}}if(H===yx||H===ff){const ie=f===!1&&X==="";$.value=ie?X:M(X)}return $},z=U=>B=>S(String(G(b,U,B)),{event:{...B,target:T.current}});return p.jsx(p2,{autoComplete:N,inputMode:"numeric",...C,className:R,dragDirection:o,hideHTMLArrows:s!=="native",isDragEnabled:a,label:c,max:u,min:d,ref:A,required:f,step:v,type:y,value:b,__unstableStateReducer:(U,B)=>{var $;const H=I(U,B);return($=n==null?void 0:n(H,B))!==null&&$!==void 0?$:H},size:_,__shouldNotWarnDeprecated36pxSize:!0,suffix:s==="custom"?p.jsxs(p.Fragment,{children:[x,p.jsx(da,{marginBottom:0,marginRight:2,children:p.jsxs(Vo,{spacing:1,children:[p.jsx(Km,{className:O,icon:lD,size:"small",label:W("Increment"),onClick:z("up")}),p.jsx(Km,{className:O,icon:cD,size:"small",label:W("Decrement"),onClick:z("down")})]})})]}):x,onChange:S})}const po=h.forwardRef(C2);var Wo={exports:{}},Xm;function T2(){if(Xm)return Wo.exports;Xm=1;var e={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",Ĳ:"IJ",ĳ:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ŉ:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},t=Object.keys(e).join("|"),n=new RegExp(t,"g"),r=new RegExp(t,"");function o(a){return e[a]}var i=function(a){return a.replace(n,o)},s=function(a){return!!a.match(r)};return Wo.exports=i,Wo.exports.has=s,Wo.exports.remove=i,Wo.exports}var A2=T2();const E2=ko(A2);function mt(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var P2=typeof Symbol=="function"&&Symbol.observable||"@@observable",Ym=P2,ac=()=>Math.random().toString(36).substring(7).split("").join("."),k2={INIT:`@@redux/INIT${ac()}`,REPLACE:`@@redux/REPLACE${ac()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ac()}`},ma=k2;function gf(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Tx(e,t,n){if(typeof e!="function")throw new Error(mt(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(mt(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(mt(1));return n(Tx)(e,t)}let r=e,o=t,i=new Map,s=i,a=0,l=!1;function c(){s===i&&(s=new Map,i.forEach((y,b)=>{s.set(b,y)}))}function u(){if(l)throw new Error(mt(3));return o}function d(y){if(typeof y!="function")throw new Error(mt(4));if(l)throw new Error(mt(5));let b=!0;c();const _=a++;return s.set(_,y),function(){if(b){if(l)throw new Error(mt(6));b=!1,c(),s.delete(_),i=null}}}function f(y){if(!gf(y))throw new Error(mt(7));if(typeof y.type>"u")throw new Error(mt(8));if(typeof y.type!="string")throw new Error(mt(17));if(l)throw new Error(mt(9));try{l=!0,o=r(o,y)}finally{l=!1}return(i=s).forEach(_=>{_()}),y}function m(y){if(typeof y!="function")throw new Error(mt(10));r=y,f({type:ma.REPLACE})}function v(){const y=d;return{subscribe(b){if(typeof b!="object"||b===null)throw new Error(mt(11));function _(){const S=b;S.next&&S.next(u())}return _(),{unsubscribe:y(_)}},[Ym](){return this}}}return f({type:ma.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:m,[Ym]:v}}function M2(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:ma.INIT})>"u")throw new Error(mt(12));if(typeof n(void 0,{type:ma.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(mt(13))})}function R2(e){const t=Object.keys(e),n={};for(let i=0;i<t.length;i++){const s=t[i];typeof e[s]=="function"&&(n[s]=e[s])}const r=Object.keys(n);let o;try{M2(n)}catch(i){o=i}return function(s={},a){if(o)throw o;let l=!1;const c={};for(let u=0;u<r.length;u++){const d=r[u],f=n[d],m=s[d],v=f(m,a);if(typeof v>"u")throw a&&a.type,new Error(mt(14));c[d]=v,l=l||v!==m}return l=l||r.length!==Object.keys(s).length,l?c:s}}function ga(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function I2(...e){return t=>(n,r)=>{const o=t(n,r);let i=()=>{throw new Error(mt(15))};const s={getState:o.getState,dispatch:(l,...c)=>i(l,...c)},a=e.map(l=>l(s));return i=ga(...a)(o.dispatch),{...o,dispatch:i}}}function j2(e){return gf(e)&&"type"in e&&typeof e.type=="string"}function O2(e){if(!(typeof document>"u")){if(document.readyState==="complete"||document.readyState==="interactive")return void e();document.addEventListener("DOMContentLoaded",e)}}function Jm(e="polite"){const t=document.createElement("div");t.id=`a11y-speak-${e}`,t.className="a11y-speak-region",t.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true");const{body:n}=document;return n&&n.appendChild(t),t}function D2(){const e=document.createElement("p");e.id="a11y-speak-intro-text",e.className="a11y-speak-intro-text",e.textContent=W("Notifications"),e.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),e.setAttribute("hidden","hidden");const{body:t}=document;return t&&t.appendChild(e),e}function N2(){const e=document.getElementsByClassName("a11y-speak-region"),t=document.getElementById("a11y-speak-intro-text");for(let n=0;n<e.length;n++)e[n].textContent="";t&&t.setAttribute("hidden","hidden")}let Qm="";function L2(e){return e=e.replace(/<[^<>]+>/g," "),Qm===e&&(e+=" "),Qm=e,e}function uu(e,t){N2(),e=L2(e);const n=document.getElementById("a11y-speak-intro-text"),r=document.getElementById("a11y-speak-assertive"),o=document.getElementById("a11y-speak-polite");r&&t==="assertive"?r.textContent=e:o&&(o.textContent=e),n&&n.removeAttribute("hidden")}function F2(){const e=document.getElementById("a11y-speak-intro-text"),t=document.getElementById("a11y-speak-assertive"),n=document.getElementById("a11y-speak-polite");e===null&&D2(),t===null&&Jm("assertive"),n===null&&Jm("polite")}O2(F2);const B2=new RegExp(/[\u007e\u00ad\u2053\u207b\u208b\u2212\p{Pd}]/gu),eg=e=>E2(e).toLocaleLowerCase().replace(B2,"-");function tg(e){return e.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&")}var Us=typeof document<"u"?h.useLayoutEffect:h.useEffect;function va(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!va(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!va(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Ax(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ng(e,t){const n=Ax(e);return Math.round(t*n)/n}function lc(e){const t=h.useRef(e);return Us(()=>{t.current=e}),t}function V2(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[u,d]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=h.useState(r);va(f,r)||m(r);const[v,g]=h.useState(null),[y,b]=h.useState(null),_=h.useCallback(G=>{G!==C.current&&(C.current=G,g(G))},[]),x=h.useCallback(G=>{G!==T.current&&(T.current=G,b(G))},[]),S=i||v,w=s||y,C=h.useRef(null),T=h.useRef(null),A=h.useRef(u),E=l!=null,P=lc(l),L=lc(o),F=lc(c),M=h.useCallback(()=>{if(!C.current||!T.current)return;const G={placement:t,strategy:n,middleware:f};L.current&&(G.platform=L.current),Ib(C.current,T.current,G).then(I=>{const z={...I,isPositioned:F.current!==!1};N.current&&!va(A.current,z)&&(A.current=z,Dr.flushSync(()=>{d(z)}))})},[f,t,n,L,F]);Us(()=>{c===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,d(G=>({...G,isPositioned:!1})))},[c]);const N=h.useRef(!1);Us(()=>(N.current=!0,()=>{N.current=!1}),[]),Us(()=>{if(S&&(C.current=S),w&&(T.current=w),S&&w){if(P.current)return P.current(S,w,M);M()}},[S,w,M,P,E]);const R=h.useMemo(()=>({reference:C,floating:T,setReference:_,setFloating:x}),[_,x]),k=h.useMemo(()=>({reference:S,floating:w}),[S,w]),O=h.useMemo(()=>{const G={position:n,left:0,top:0};if(!k.floating)return G;const I=ng(k.floating,u.x),z=ng(k.floating,u.y);return a?{...G,transform:"translate("+I+"px, "+z+"px)",...Ax(k.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:I,top:z}},[n,a,k.floating,u.x,u.y]);return h.useMemo(()=>({...u,update:M,refs:R,elements:k,floatingStyles:O}),[u,M,R,k,O])}const z2=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Dc({element:r.current,padding:o}).fn(n):{}:r?Dc({element:r,padding:o}).fn(n):{}}}},$2=(e,t)=>({...Eb(e),options:[e,t]}),G2=(e,t)=>({...Pb(e),options:[e,t]}),U2=(e,t)=>({...Rb(e),options:[e,t]}),H2=(e,t)=>({...kb(e),options:[e,t]}),Ex=(e,t)=>({...Mb(e),options:[e,t]}),W2=(e,t)=>({...z2(e),options:[e,t]});let rg=0;function og(e){const t=document.scrollingElement||document.body;e&&(rg=t.scrollTop);const n=e?"add":"remove";t.classList[n]("lockscroll"),document.documentElement.classList[n]("lockscroll"),e||(t.scrollTop=rg)}let As=0;function K2(){return h.useEffect(()=>(As===0&&og(!0),++As,()=>{As===1&&og(!1),--As}),[]),null}const q2={slots:Ks(),fills:Ks(),registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},updateFill:()=>{}},Px=h.createContext(q2);function Z2({name:e,children:t}){const n=h.useContext(Px),r=h.useRef({}),o=h.useRef(t);return h.useLayoutEffect(()=>{o.current=t},[t]),h.useLayoutEffect(()=>{const i=r.current;return n.registerFill(e,i,o.current),()=>n.unregisterFill(e,i)},[n,e]),h.useLayoutEffect(()=>{n.updateFill(e,r.current,o.current)}),null}function ig(e){return typeof e=="function"}function X2(e){return h.Children.map(e,(t,n)=>{if(!t||typeof t=="string")return t;let r=n;return typeof t=="object"&&"key"in t&&(t!=null&&t.key)&&(r=t.key),h.cloneElement(t,{key:r})})}function Y2(e){var t;const n=h.useContext(Px),r=h.useRef({}),{name:o,children:i,fillProps:s={}}=e;h.useLayoutEffect(()=>{const u=r.current;return n.registerSlot(o,u),()=>n.unregisterSlot(o,u)},[n,o]);let a=(t=qs(n.fills,o))!==null&&t!==void 0?t:[];qs(n.slots,o)!==r.current&&(a=[]);const c=a.map(u=>{const d=ig(u.children)?u.children(s):u.children;return X2(d)}).filter(u=>!bS(u));return p.jsx(p.Fragment,{children:ig(i)?i(c):c})}const J2={slots:Ks(),fills:Ks(),registerSlot:()=>{globalThis.SCRIPT_DEBUG===!0&&qa("Components must be wrapped within `SlotFillProvider`. See https://developer.wordpress.org/block-editor/components/slot-fill/")},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},isDefault:!0},vf=h.createContext(J2);let Es;const Q2=new Uint8Array(16);function eL(){if(!Es&&(Es=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Es))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Es(Q2)}const ht=[];for(let e=0;e<256;++e)ht.push((e+256).toString(16).slice(1));function tL(e,t=0){return ht[e[t+0]]+ht[e[t+1]]+ht[e[t+2]]+ht[e[t+3]]+"-"+ht[e[t+4]]+ht[e[t+5]]+"-"+ht[e[t+6]]+ht[e[t+7]]+"-"+ht[e[t+8]]+ht[e[t+9]]+"-"+ht[e[t+10]]+ht[e[t+11]]+ht[e[t+12]]+ht[e[t+13]]+ht[e[t+14]]+ht[e[t+15]]}const nL=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),sg={randomUUID:nL};function ag(e,t,n){if(sg.randomUUID&&!t&&!e)return sg.randomUUID();e=e||{};const r=e.random||(e.rng||eL)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,tL(r)}const lg=new Set,cc=new WeakMap,rL=e=>{if(cc.has(e))return cc.get(e);let t=ag().replace(/[0-9]/g,"");for(;lg.has(t);)t=ag().replace(/[0-9]/g,"");lg.add(t);const n=Sd({container:e,key:t});return cc.set(e,n),n};function kx(e){const{children:t,document:n}=e;if(!n)return null;const r=rL(n.head);return p.jsx(bk,{value:r,children:t})}function oL({name:e,children:t}){var n;const r=h.useContext(vf),o=qs(r.slots,e),i=h.useRef({});if(h.useEffect(()=>{const a=i.current;return r.registerFill(e,a),()=>r.unregisterFill(e,a)},[r,e]),!o||!o.ref.current)return null;const s=p.jsx(kx,{document:o.ref.current.ownerDocument,children:typeof t=="function"?t((n=o.fillProps)!==null&&n!==void 0?n:{}):t});return Dr.createPortal(s,o.ref.current)}function iL(e,t){const{name:n,fillProps:r={},as:o,children:i,...s}=e,a=h.useContext(vf),l=h.useRef(null),c=h.useRef(r);return h.useLayoutEffect(()=>{c.current=r},[r]),h.useLayoutEffect(()=>(a.registerSlot(n,l,c.current),()=>a.unregisterSlot(n,l)),[a,n]),h.useLayoutEffect(()=>{a.updateSlot(n,l,c.current)}),p.jsx(at,{as:o,ref:Gr([t,l]),...s})}const sL=h.forwardRef(iL);function aL(e){const t=h.useContext(vf);return{...qs(t.slots,e)}}function lL(e){return p.jsxs(p.Fragment,{children:[p.jsx(Z2,{...e}),p.jsx(oL,{...e})]})}function cL(e,t){const{bubblesVirtually:n,...r}=e;return n?p.jsx(sL,{...r,ref:t}):p.jsx(Y2,{...r})}const uL=h.forwardRef(cL);function dL(){return[{name:"overlay",fn({rects:e}){return e.reference}},Ex({apply({rects:e,elements:t}){var n;const{firstElementChild:r}=(n=t.floating)!==null&&n!==void 0?n:{};r instanceof HTMLElement&&Object.assign(r.style,{width:`${e.reference.width}px`,height:`${e.reference.height}px`})}})]}const Mx="Popover",fL=()=>p.jsxs(Tt,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",className:"components-popover__triangle",role:"presentation",children:[p.jsx(It,{className:"components-popover__triangle-bg",d:"M 0 0 L 50 50 L 100 0"}),p.jsx(It,{className:"components-popover__triangle-border",d:"M 0 0 L 50 50 L 100 0",vectorEffect:"non-scaling-stroke"})]}),Rx=h.createContext(void 0),cg="components-popover__fallback-container",pL=()=>{let e=document.body.querySelector("."+cg);return e||(e=document.createElement("div"),e.className=cg,document.body.append(e)),e},hL=(e,t)=>{const{animate:n=!0,headerTitle:r,constrainTabbing:o,onClose:i,children:s,className:a,noArrow:l=!0,position:c,placement:u="bottom-start",offset:d=0,focusOnMount:f="firstElement",anchor:m,expandOnMobile:v,onFocusOutside:g,__unstableSlotName:y=Mx,flip:b=!0,resize:_=!0,shift:x=!1,inline:S=!1,variant:w,style:C,__unstableForcePosition:T,anchorRef:A,anchorRect:E,getAnchorRect:P,isAlternate:L,...F}=Ee(e,"Popover");let M=b,N=_;T!==void 0&&(Mt("`__unstableForcePosition` prop in wp.components.Popover",{since:"6.1",version:"6.3",alternative:"`flip={ false }` and  `resize={ false }`"}),M=!T,N=!T),A!==void 0&&Mt("`anchorRef` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),E!==void 0&&Mt("`anchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),P!==void 0&&Mt("`getAnchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"});const R=L?"toolbar":w;L!==void 0&&Mt("`isAlternate` prop in wp.components.Popover",{since:"6.2",alternative:"`variant` prop with the `'toolbar'` value"});const k=h.useRef(null),[O,G]=h.useState(null),I=h.useCallback(on=>{G(on)},[]),z=vv("medium","<"),U=v&&z,B=!U&&!l,$=c?bd(c):u,H=[...u==="overlay"?dL():[],$2(d),M&&H2(),N&&Ex({apply(on){var yr;const{firstElementChild:fs}=(yr=ct.floating.current)!==null&&yr!==void 0?yr:{};fs instanceof HTMLElement&&Object.assign(fs.style,{maxHeight:`${on.availableHeight}px`,overflow:"auto"})}}),x&&G2({crossAxis:!0,limiter:U2(),padding:1}),W2({element:k})],q=h.useContext(Rx)||y,j=aL(q);let X;(i||g)&&(X=(on,yr)=>{on==="focus-outside"&&g?g(yr):i&&i()});const[ie,Ce]=N_({constrainTabbing:o,focusOnMount:f,__unstableOnClose:X,onClose:X}),{x:we,y:yt,refs:ct,strategy:Oe,update:Pt,placement:Xt,middlewareData:{arrow:tt}}=V2({placement:$==="overlay"?void 0:$,middleware:H,whileElementsMounted:(on,yr,fs)=>Ab(on,yr,fs,{layoutShift:!1,animationFrame:!0})}),bn=h.useCallback(on=>{k.current=on,Pt()},[Pt]),oe=A==null?void 0:A.top,ye=A==null?void 0:A.bottom,nt=A==null?void 0:A.startContainer,Se=A==null?void 0:A.current;h.useLayoutEffect(()=>{const on=gP({anchor:m,anchorRef:A,anchorRect:E,getAnchorRect:P,fallbackReferenceElement:O});ct.setReference(on)},[m,A,oe,ye,nt,Se,E,P,O,ct]);const pt=Gr([ct.setFloating,ie,t]),kt=U?void 0:{position:Oe,top:0,left:0,x:$p(we),y:$p(yt)},Nn=F_(),yn=n&&!U&&!Nn,[Wr,vl]=h.useState(!1),{style:bl,...yl}=h.useMemo(()=>pP(Xt),[Xt]),us=yn?{style:{...C,...bl,...kt},onAnimationComplete:()=>vl(!0),...yl}:{animate:!1,style:{...C,...kt}},ds=(!yn||Wr)&&we!==null&&yt!==null;let qe=p.jsxs(BO.div,{className:xe(a,{"is-expanded":U,"is-positioned":ds,[`is-${R==="toolbar"?"alternate":R}`]:R}),...us,...F,ref:pt,...Ce,tabIndex:-1,children:[U&&p.jsx(K2,{}),U&&p.jsxs("div",{className:"components-popover__header",children:[p.jsx("span",{className:"components-popover__header-title",children:r}),p.jsx(ft,{className:"components-popover__close",size:"small",icon:K0,onClick:i,label:W("Close")})]}),p.jsx("div",{className:"components-popover__content",children:s}),B&&p.jsx("div",{ref:bn,className:["components-popover__arrow",`is-${Xt.split("-")[0]}`].join(" "),style:{left:typeof(tt==null?void 0:tt.x)<"u"&&Number.isFinite(tt.x)?`${tt.x}px`:"",top:typeof(tt==null?void 0:tt.y)<"u"&&Number.isFinite(tt.y)?`${tt.y}px`:""},children:p.jsx(fL,{})})]});const Yt=j.ref&&!S,Hw=A||E||m;return Yt?qe=p.jsx(lL,{name:q,children:qe}):S||(qe=Dr.createPortal(p.jsx(kx,{document,children:qe}),pL())),Hw?qe:p.jsxs(p.Fragment,{children:[p.jsx("span",{ref:I}),qe]})},bf=Me(hL,"Popover");function mL({name:e=Mx},t){return p.jsx(uL,{bubblesVirtually:!0,name:e,className:"popover-slot",ref:t})}bf.Slot=h.forwardRef(mL);bf.__unstableSlotNameProvider=Rx.Provider;const gL=({isBlock:e,isDeselectable:t,size:n})=>V("background:",J.ui.background,";border:1px solid transparent;border-radius:",Z.radiusSmall,";display:inline-flex;min-width:0;position:relative;",xL(n)," ",!t&&vL(e),"@media not ( prefers-reduced-motion ){&[data-indicator-animated]::before{transition-property:transform,border-radius;transition-duration:0.2s;transition-timing-function:ease-out;}}&::before{content:'';position:absolute;pointer-events:none;background:",J.theme.foreground,`;outline:2px solid transparent;outline-offset:-3px;--antialiasing-factor:100;border-radius:calc(
				`,Z.radiusXSmall,` /
					(
						var( --selected-width, 0 ) /
							var( --antialiasing-factor )
					)
			)/`,Z.radiusXSmall,`;left:-1px;width:calc( var( --antialiasing-factor ) * 1px );height:calc( var( --selected-height, 0 ) * 1px );transform-origin:left top;transform:translateX( calc( var( --selected-left, 0 ) * 1px ) ) scaleX(
				calc(
					var( --selected-width, 0 ) / var( --antialiasing-factor )
				)
			);}`,""),vL=e=>{const t=V("border-color:",J.ui.border,";","");return V(e&&t," &:hover{border-color:",J.ui.borderHover,";}&:focus-within{border-color:",J.ui.borderFocus,";box-shadow:",Z.controlBoxShadowFocus,";z-index:1;outline:2px solid transparent;outline-offset:-2px;}","")};var bL={name:"1aqh2c7",styles:"min-height:40px;padding:3px"},yL={name:"1ndywgm",styles:"min-height:36px;padding:2px"};const xL=e=>({default:yL,"__unstable-large":bL})[e],wL={name:"7whenc",styles:"display:flex;width:100%"},SL=ne("div",{target:"eakva830"})({name:"zjik7",styles:"display:flex"}),yf=h.createContext({}),_L=()=>h.useContext(yf);function Ix(e){const t=h.useRef(!0),n=mv(e),r=h.useRef(!1);h.useEffect(()=>{t.current&&(t.current=!1)},[]);const o=r.current||!t.current&&n!==e;return h.useEffect(()=>{r.current=o},[o]),o?{value:e??"",defaultValue:void 0}:{value:void 0,defaultValue:e}}function CL({children:e,isAdaptiveWidth:t,label:n,onChange:r,size:o,value:i,id:s,setSelectedElement:a,...l},c){const u=lt(jx,"toggle-group-control-as-radio-group"),d=s||u,{value:f,defaultValue:m}=Ix(i),g=ZA({defaultValue:m,value:f,setValue:r?x=>{r(x??void 0)}:void 0,rtl:fn()}),y=Xe(g,"value"),b=g.setValue;h.useEffect(()=>{y===""&&g.setActiveId(void 0)},[g,y]);const _=h.useMemo(()=>({activeItemIsNotFirstItem:()=>g.getState().activeId!==g.first(),baseId:d,isBlock:!t,size:o,value:y,setValue:b,setSelectedElement:a}),[d,t,g,y,a,b,o]);return p.jsx(yf.Provider,{value:_,children:p.jsx(JA,{store:g,"aria-label":n,render:p.jsx(at,{}),...l,id:d,ref:c,children:e})})}const jx=h.forwardRef(CL);function TL({children:e,isAdaptiveWidth:t,label:n,onChange:r,size:o,value:i,id:s,setSelectedElement:a,...l},c){const u=lt(Ox,"toggle-group-control-as-button-group"),d=s||u,{value:f,defaultValue:m}=Ix(i),[v,g]=Za({defaultValue:m,value:f,onChange:r}),y=h.useMemo(()=>({baseId:d,value:v,setValue:g,isBlock:!t,isDeselectable:!0,size:o,setSelectedElement:a}),[d,v,g,t,o,a]);return p.jsx(yf.Provider,{value:y,children:p.jsx(at,{"aria-label":n,...l,ref:c,role:"group",children:e})})}const Ox=h.forwardRef(TL),du={element:void 0,top:0,right:0,bottom:0,left:0,width:0,height:0};function AL(e){var t,n,r;const o=e.getBoundingClientRect();if(o.width===0||o.height===0)return;const i=e.offsetParent,s=(t=i==null?void 0:i.getBoundingClientRect())!==null&&t!==void 0?t:du,a=(n=i==null?void 0:i.scrollLeft)!==null&&n!==void 0?n:0,l=(r=i==null?void 0:i.scrollTop)!==null&&r!==void 0?r:0,c=parseFloat(getComputedStyle(e).width),u=parseFloat(getComputedStyle(e).height),d=c/o.width,f=u/o.height;return{element:e,top:(o.top-(s==null?void 0:s.top))*f+l,right:((s==null?void 0:s.right)-o.right)*d-a,bottom:((s==null?void 0:s.bottom)-o.bottom)*f-l,left:(o.left-(s==null?void 0:s.left))*d+a,width:c,height:u}}const EL=100;function PL(e,t=[]){const[n,r]=h.useState(du),o=h.useRef(),i=pi(()=>{if(e&&e.isConnected){const a=AL(e);if(a)return r(a),clearInterval(o.current),!0}else clearInterval(o.current);return!1}),s=$_(()=>{i()||requestAnimationFrame(()=>{i()||(o.current=setInterval(i,EL))})});return h.useLayoutEffect(()=>{s(e),e||r(du)},[s,e]),h.useLayoutEffect(()=>{i()},t),n}function kL(e,t){const n=h.useRef(e),r=pi(t);h.useLayoutEffect(()=>{n.current!==e&&(r({previousValue:n.current}),n.current=e)},[r,e])}function ML(e,t,{prefix:n="subelement",dataAttribute:r=`${n}-animated`,transitionEndFilter:o=()=>!0,roundRect:i=!1}={}){const s=pi(()=>{Object.keys(t).forEach(a=>a!=="element"&&(e==null?void 0:e.style.setProperty(`--${n}-${a}`,String(i?Math.floor(t[a]):t[a]))))});h.useLayoutEffect(()=>{s()},[t,s]),kL(t.element,({previousValue:a})=>{t.element&&a&&(e==null||e.setAttribute(`data-${r}`,""))}),h.useLayoutEffect(()=>{function a(l){o(l)&&(e==null||e.removeAttribute(`data-${r}`))}return e==null||e.addEventListener("transitionend",a),()=>e==null?void 0:e.removeEventListener("transitionend",a)},[r,e,o])}function RL(e,t){const{__nextHasNoMarginBottom:n=!1,__next40pxDefaultSize:r=!1,__shouldNotWarnDeprecated36pxSize:o,className:i,isAdaptiveWidth:s=!1,isBlock:a=!1,isDeselectable:l=!1,label:c,hideLabelFromVision:u=!1,help:d,onChange:f,size:m="default",value:v,children:g,...y}=Ee(e,"ToggleGroupControl"),b=r&&m==="default"?"__unstable-large":m,[_,x]=h.useState(),[S,w]=h.useState(),C=Gr([w,t]),T=PL(v||v===0?_:void 0);ML(S,T,{prefix:"selected",dataAttribute:"indicator-animated",transitionEndFilter:L=>L.pseudoElement==="::before",roundRect:!0});const A=et(),E=h.useMemo(()=>A(gL({isBlock:a,isDeselectable:l,size:b}),a&&wL,i),[i,A,a,l,b]),P=l?Ox:jx;return vn({componentName:"ToggleGroupControl",size:m,__next40pxDefaultSize:r,__shouldNotWarnDeprecated36pxSize:o}),p.jsxs(dt,{help:d,__nextHasNoMarginBottom:n,__associatedWPComponentName:"ToggleGroupControl",children:[!u&&p.jsx(SL,{children:p.jsx(dt.VisualLabel,{children:c})}),p.jsx(P,{...y,setSelectedElement:x,className:E,isAdaptiveWidth:s,label:c,onChange:f,ref:C,size:b,value:v,children:g})]})}const ci=Me(RL,"ToggleGroupControl"),IL=ne("div",{target:"et6ln9s1"})({name:"sln1fl",styles:"display:inline-flex;max-width:100%;min-width:0;position:relative"}),Dx={name:"82a6rk",styles:"flex:1"},Nx=({isDeselectable:e,isIcon:t,isPressed:n,size:r})=>V("align-items:center;appearance:none;background:transparent;border:none;border-radius:",Z.radiusXSmall,";color:",J.theme.gray[700],";fill:currentColor;cursor:pointer;display:flex;font-family:inherit;height:100%;justify-content:center;line-height:100%;outline:none;padding:0 12px;position:relative;text-align:center;@media not ( prefers-reduced-motion ){transition:background ",Z.transitionDurationFast," linear,color ",Z.transitionDurationFast," linear,font-weight 60ms linear;}user-select:none;width:100%;z-index:2;&::-moz-focus-inner{border:0;}&[disabled]{opacity:0.4;cursor:default;}&:active{background:",J.ui.background,";}",e&&OL," ",t&&NL({size:r})," ",n&&jL,";",""),jL=V("color:",J.theme.foregroundInverted,";&:active{background:transparent;}",""),OL=V("color:",J.theme.foreground,";&:focus{box-shadow:inset 0 0 0 1px ",J.ui.background,",0 0 0 ",Z.borderWidthFocus," ",J.theme.accent,";outline:2px solid transparent;}",""),DL=ne("div",{target:"et6ln9s0"})("display:flex;font-size:",Z.fontSize,";line-height:1;"),NL=({size:e="default"})=>{const t={default:"30px","__unstable-large":"32px"};return V("color:",J.theme.foreground,";height:",t[e],";aspect-ratio:1;padding-left:0;padding-right:0;","")},LL=Object.freeze(Object.defineProperty({__proto__:null,ButtonContentView:DL,LabelView:IL,buttonView:Nx,labelBlock:Dx},Symbol.toStringTag,{value:"Module"})),{ButtonContentView:ug,LabelView:FL}=LL,BL=({showTooltip:e,text:t,children:n})=>e&&t?p.jsx(Qi,{text:t,placement:"top",children:n}):p.jsx(p.Fragment,{children:n});function Lx(e,t){const n=_L(),r=lt(Lx,n.baseId||"toggle-group-control-option-base"),o=Ee({...e,id:r},"ToggleGroupControlOptionBase"),{isBlock:i=!1,isDeselectable:s=!1,size:a="default"}=n,{className:l,isIcon:c=!1,value:u,children:d,showTooltip:f=!1,disabled:m,...v}=o,g=n.value===u,y=et(),b=h.useMemo(()=>y(i&&Dx),[y,i]),_=h.useMemo(()=>y(Nx({isDeselectable:s,isIcon:c,isPressed:g,size:a}),l),[y,s,c,g,a,l]),x=()=>{s&&g?n.setValue(void 0):n.setValue(u)},S={...v,className:_,"data-value":u,ref:t},w=h.useRef(null);return h.useLayoutEffect(()=>{g&&w.current&&n.setSelectedElement(w.current)},[g,n]),p.jsx(FL,{ref:w,className:b,children:p.jsx(BL,{showTooltip:f,text:v["aria-label"],children:s?p.jsx("button",{...S,disabled:m,"aria-pressed":g,type:"button",onClick:x,children:p.jsx(ug,{children:d})}):p.jsx(VA,{disabled:m,onFocusVisible:()=>{var T;(!(n.value===null||n.value==="")||(T=n.activeItemIsNotFirstItem)!=null&&T.call(n))&&n.setValue(u)},render:p.jsx("button",{type:"button",...S}),value:u,children:p.jsx(ug,{children:d})})})})}const Fx=Me(Lx,"ToggleGroupControlOptionBase");function VL(e,t){const{label:n,...r}=e,o=r["aria-label"]||n;return p.jsx(Fx,{...r,"aria-label":o,ref:t,children:n})}const tr=h.forwardRef(VL);function zL(e,t){const{icon:n,label:r,...o}=e;return p.jsx(Fx,{...o,isIcon:!0,"aria-label":r,showTooltip:!0,ref:t,children:p.jsx(Ai,{icon:n})})}const $L=h.forwardRef(zL),GL=[{label:W("Solid"),icon:aD,value:"solid"},{label:W("Dashed"),icon:iD,value:"dashed"},{label:W("Dotted"),icon:sD,value:"dotted"}];function UL({onChange:e,...t},n){return p.jsx(ci,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,ref:n,isDeselectable:!0,onChange:r=>{e==null||e(r)},...t,children:GL.map(r=>p.jsx($L,{value:r.value,icon:r.icon,label:r.label},r.value))})}const HL=Me(UL,"BorderControlStylePicker");function WL(e,t){const{className:n,colorValue:r,...o}=e;return p.jsx("span",{className:xe("component-color-indicator",n),style:{background:r},ref:t,...o})}const KL=h.forwardRef(WL);var uc=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},dc=function(e){return .2126*uc(e.r)+.7152*uc(e.g)+.0722*uc(e.b)};function Bx(e){e.prototype.luminance=function(){return t=dc(this.rgba),(n=2)===void 0&&(n=0),r===void 0&&(r=Math.pow(10,n)),Math.round(r*t)/r+0;var t,n,r},e.prototype.contrast=function(t){t===void 0&&(t="#FFF");var n,r,o,i,s,a,l,c=t instanceof e?t:new e(t);return i=this.rgba,s=c.toRgb(),a=dc(i),l=dc(s),n=a>l?(a+.05)/(l+.05):(l+.05)/(a+.05),(r=2)===void 0&&(r=0),o===void 0&&(o=Math.pow(10,r)),Math.floor(o*n)/o+0},e.prototype.isReadable=function(t,n){return t===void 0&&(t="#FFF"),n===void 0&&(n={}),this.contrast(t)>=(a=(s=(r=n).size)===void 0?"normal":s,(i=(o=r.level)===void 0?"AA":o)==="AAA"&&a==="normal"?7:i==="AA"&&a==="large"?3:4.5);var r,o,i,s,a}}const qL=(e,t)=>{const{renderContent:n,renderToggle:r,className:o,contentClassName:i,expandOnMobile:s,headerTitle:a,focusOnMount:l,popoverProps:c,onClose:u,onToggle:d,style:f,open:m,defaultOpen:v,position:g,variant:y}=Ee(e,"Dropdown");g!==void 0&&Mt("`position` prop in wp.components.Dropdown",{since:"6.2",alternative:"`popoverProps.placement` prop",hint:"Note that the `position` prop will override any values passed through the `popoverProps.placement` prop."});const[b,_]=h.useState(null),x=h.useRef(),[S,w]=Za({defaultValue:v,value:m,onChange:d});function C(){var F;if(!x.current)return;const{ownerDocument:P}=x.current,L=(F=P==null?void 0:P.activeElement)==null?void 0:F.closest('[role="dialog"]');!x.current.contains(P.activeElement)&&(!L||L.contains(x.current))&&T()}function T(){u==null||u(),w(!1)}const A={isOpen:!!S,onToggle:()=>w(!S),onClose:T},E=!!(c!=null&&c.anchor)||!!(c!=null&&c.anchorRef)||!!(c!=null&&c.getAnchorRect)||!!(c!=null&&c.anchorRect);return p.jsxs("div",{className:o,ref:Gr([x,t,_]),tabIndex:-1,style:f,children:[r(A),S&&p.jsx(bf,{position:g,onClose:T,onFocusOutside:C,expandOnMobile:s,headerTitle:a,focusOnMount:l,offset:13,anchor:E?void 0:b,variant:y,...c,className:xe("components-dropdown__content",c==null?void 0:c.className,i),children:n(A)})]})},xf=Me(qL,"Dropdown");function ZL(e,t){const n=Ee(e,"InputControlSuffixWrapper");return p.jsx(ox,{...n,ref:t})}const XL=Me(ZL,"InputControlSuffixWrapper"),YL=({disabled:e})=>e?V("color:",J.ui.textDisabled,";cursor:default;",""):"";var JL={name:"1lv1yo7",styles:"display:inline-flex"};const QL=({variant:e})=>e==="minimal"?JL:"",eF=ne(df,{target:"e1mv6sxx3"})("color:",J.theme.foreground,";cursor:pointer;",YL," ",QL,";"),tF=({__next40pxDefaultSize:e,multiple:t,selectSize:n="default"})=>{if(t)return;const r={default:{height:40,minHeight:40,paddingTop:0,paddingBottom:0},small:{height:24,minHeight:24,paddingTop:0,paddingBottom:0},compact:{height:32,minHeight:32,paddingTop:0,paddingBottom:0},"__unstable-large":{height:40,minHeight:40,paddingTop:0,paddingBottom:0}};e||(r.default=r.compact);const o=r[n]||r.default;return V(o,"","")},ui=18,nF=({__next40pxDefaultSize:e,multiple:t,selectSize:n="default"})=>{const r={default:Z.controlPaddingX,small:Z.controlPaddingXSmall,compact:Z.controlPaddingXSmall,"__unstable-large":Z.controlPaddingX};e||(r.default=r.compact);const o=r[n]||r.default;return Ye({paddingLeft:o,paddingRight:o+ui,...t?{paddingTop:o,paddingBottom:o}:{}})},rF=({multiple:e})=>({overflow:e?"auto":"hidden"});var oF={name:"n1jncc",styles:"field-sizing:content"};const iF=({variant:e})=>e==="minimal"?oF:"",sF=ne("select",{target:"e1mv6sxx2"})("&&&{appearance:none;background:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:currentColor;cursor:inherit;display:block;font-family:inherit;margin:0;width:100%;max-width:none;white-space:nowrap;text-overflow:ellipsis;",uf,";",tF,";",nF,";",rF," ",iF,";}"),aF=ne("div",{target:"e1mv6sxx1"})("margin-inline-end:",Y(-1),";line-height:0;path{fill:currentColor;}"),lF=ne(XL,{target:"e1mv6sxx0"})("position:absolute;pointer-events:none;",Ye({right:0}),";"),Vx=()=>p.jsx(lF,{children:p.jsx(aF,{children:p.jsx(ll,{icon:nD,size:ui})})});function cF(e){const n=`inspector-select-control-${lt(zx)}`;return e||n}function uF({options:e}){return e.map(({id:t,label:n,value:r,...o},i)=>{const s=t||`${n}-${r}-${i}`;return p.jsx("option",{value:r,...o,children:n},s)})}function dF(e,t){const{className:n,disabled:r=!1,help:o,hideLabelFromVision:i,id:s,label:a,multiple:l=!1,onChange:c,options:u=[],size:d="default",value:f,labelPosition:m="top",children:v,prefix:g,suffix:y,variant:b="default",__next40pxDefaultSize:_=!1,__nextHasNoMarginBottom:x=!1,__shouldNotWarnDeprecated36pxSize:S,...w}=Bo(e),C=cF(s),T=o?`${C}__help`:void 0;if(!(u!=null&&u.length)&&!v)return null;const A=P=>{var L,F;if(e.multiple){const N=Array.from(P.target.options).filter(({selected:R})=>R).map(({value:R})=>R);(L=e.onChange)==null||L.call(e,N,{event:P});return}(F=e.onChange)==null||F.call(e,P.target.value,{event:P})},E=xe("components-select-control",n);return vn({componentName:"SelectControl",__next40pxDefaultSize:_,size:d,__shouldNotWarnDeprecated36pxSize:S}),p.jsx(dt,{help:o,id:C,__nextHasNoMarginBottom:x,__associatedWPComponentName:"SelectControl",children:p.jsx(eF,{className:E,disabled:r,hideLabelFromVision:i,id:C,isBorderless:b==="minimal",label:a,size:d,suffix:y||!l&&p.jsx(Vx,{}),prefix:g,labelPosition:m,__unstableInputWidth:b==="minimal"?"auto":void 0,variant:b,__next40pxDefaultSize:_,children:p.jsx(sF,{...w,__next40pxDefaultSize:_,"aria-describedby":T,className:"components-select-control__input",disabled:r,id:C,multiple:l,onChange:A,ref:t,selectSize:d,value:f,variant:b,children:v||p.jsx(uF,{options:u})})})})}const zx=h.forwardRef(dF);function Hs(e,t,n){return typeof e!="number"?null:parseFloat(`${mf(e,t,n)}`)}function fF(e){const{min:t,max:n,value:r,initial:o}=e,[i,s]=Kb(Hs(r,t,n),{initial:Hs(o??null,t,n),fallback:null}),a=h.useCallback(l=>{s(l===null?null:Hs(l,t,n))},[t,n,s]);return[i,a]}const So=30,_o=4,wf=()=>V({height:So,minHeight:So},"",""),Ir=12,pF=({__next40pxDefaultSize:e})=>!e&&V({minHeight:So},"",""),hF=ne("div",{target:"e1epgpqk14"})("-webkit-tap-highlight-color:transparent;align-items:center;display:flex;justify-content:flex-start;padding:0;position:relative;touch-action:none;width:100%;min-height:40px;",pF,";"),mF=({color:e=J.ui.borderFocus})=>V({color:e},"",""),gF=({marks:e,__nextHasNoMarginBottom:t})=>t?"":V({marginBottom:e?16:void 0},"",""),vF=ne("div",{shouldForwardProp:e=>!["color","__nextHasNoMarginBottom","marks"].includes(e),target:"e1epgpqk13"})("display:block;flex:1;position:relative;width:100%;",mF,";",wf,";",gF,";"),bF=ne("span",{target:"e1epgpqk12"})("display:flex;margin-top:",_o,"px;",Ye({marginRight:6}),";"),yF=ne("span",{target:"e1epgpqk11"})("display:flex;margin-top:",_o,"px;",Ye({marginLeft:6}),";"),xF=({disabled:e,railColor:t})=>{let n=t||"";return e&&(n=J.ui.backgroundDisabled),V({background:n},"","")},wF=ne("span",{target:"e1epgpqk10"})("background-color:",J.gray[300],";left:0;pointer-events:none;right:0;display:block;height:",_o,"px;position:absolute;margin-top:",(So-_o)/2,"px;top:0;border-radius:",Z.radiusFull,";",xF,";"),SF=({disabled:e,trackColor:t})=>{let n=t||"currentColor";return e&&(n=J.gray[400]),V({background:n},"","")},_F=ne("span",{target:"e1epgpqk9"})("background-color:currentColor;border-radius:",Z.radiusFull,";height:",_o,"px;pointer-events:none;display:block;position:absolute;margin-top:",(So-_o)/2,"px;top:0;.is-marked &{@media not ( prefers-reduced-motion ){transition:width ease 0.1s;}}",SF,";"),CF=ne("span",{target:"e1epgpqk8"})({name:"g5kg28",styles:"display:block;pointer-events:none;position:relative;width:100%;user-select:none;margin-top:17px"}),TF=ne("span",{target:"e1epgpqk7"})("position:absolute;left:0;top:-4px;height:4px;width:2px;transform:translateX( -50% );background-color:",J.ui.background,";z-index:1;"),AF=({isFilled:e})=>V({color:e?J.gray[700]:J.gray[300]},"",""),EF=ne("span",{target:"e1epgpqk6"})("color:",J.gray[300],";font-size:11px;position:absolute;top:8px;white-space:nowrap;",Ye({left:0}),";",Ye({transform:"translateX( -50% )"},{transform:"translateX( 50% )"}),";",AF,";"),$x=({disabled:e})=>e?V("background-color:",J.gray[400],";",""):V("background-color:",J.theme.accent,";",""),PF=ne("span",{target:"e1epgpqk5"})("align-items:center;display:flex;height:",Ir,"px;justify-content:center;margin-top:",(So-Ir)/2,"px;outline:0;pointer-events:none;position:absolute;top:0;user-select:none;width:",Ir,"px;border-radius:",Z.radiusRound,";z-index:3;.is-marked &{@media not ( prefers-reduced-motion ){transition:left ease 0.1s;}}",$x,";",Ye({marginLeft:-10}),";",Ye({transform:"translateX( 4.5px )"},{transform:"translateX( -4.5px )"}),";"),kF=({isFocused:e})=>e?V("&::before{content:' ';position:absolute;background-color:",J.theme.accent,";opacity:0.4;border-radius:",Z.radiusRound,";height:",Ir+8,"px;width:",Ir+8,"px;top:-4px;left:-4px;}",""):"",MF=ne("span",{target:"e1epgpqk4"})("align-items:center;border-radius:",Z.radiusRound,";height:100%;outline:0;position:absolute;user-select:none;width:100%;box-shadow:",Z.elevationXSmall,";",$x,";",kF,";"),RF=ne("input",{target:"e1epgpqk3"})("box-sizing:border-box;cursor:pointer;display:block;height:100%;left:0;margin:0 -",Ir/2,"px;opacity:0;outline:none;position:absolute;right:0;top:0;width:calc( 100% + ",Ir,"px );"),IF=({show:e})=>V("display:",e?"inline-block":"none",";opacity:",e?1:0,";@media not ( prefers-reduced-motion ){transition:opacity 120ms ease,display 120ms ease allow-discrete;}@starting-style{opacity:0;}","");var jF={name:"1cypxip",styles:"top:-80%"},OF={name:"1lr98c4",styles:"bottom:-80%"};const DF=({position:e})=>e==="bottom"?OF:jF,NF=ne("span",{target:"e1epgpqk2"})("background:rgba( 0, 0, 0, 0.8 );border-radius:",Z.radiusSmall,";color:white;font-size:12px;min-width:32px;padding:4px 8px;pointer-events:none;position:absolute;text-align:center;user-select:none;line-height:1.4;",IF,";",DF,";",Ye({transform:"translateX(-50%)"},{transform:"translateX(50%)"}),";"),LF=ne(po,{target:"e1epgpqk1"})("display:inline-block;font-size:13px;margin-top:0;input[type='number']&{",wf,";}",Ye({marginLeft:`${Y(4)} !important`}),";"),FF=ne("span",{target:"e1epgpqk0"})("display:block;margin-top:0;button,button.is-small{margin-left:0;",wf,";}",Ye({marginLeft:8}),";");function BF(e,t){const{describedBy:n,label:r,value:o,...i}=e;return p.jsx(RF,{...i,"aria-describedby":n,"aria-label":r,"aria-hidden":!1,ref:t,tabIndex:0,type:"range",value:o})}const VF=h.forwardRef(BF);function zF(e){const{className:t,isFilled:n=!1,label:r,style:o={},...i}=e,s=xe("components-range-control__mark",n&&"is-filled",t),a=xe("components-range-control__mark-label",n&&"is-filled");return p.jsxs(p.Fragment,{children:[p.jsx(TF,{...i,"aria-hidden":"true",className:s,style:o}),r&&p.jsx(EF,{"aria-hidden":"true",className:a,isFilled:n,style:o,children:r})]})}function $F(e){const{disabled:t=!1,marks:n=!1,min:r=0,max:o=100,step:i=1,value:s=0,...a}=e;return p.jsxs(p.Fragment,{children:[p.jsx(wF,{disabled:t,...a}),n&&p.jsx(GF,{disabled:t,marks:n,min:r,max:o,step:i,value:s})]})}function GF(e){const{disabled:t=!1,marks:n=!1,min:r=0,max:o=100,step:i=1,value:s=0}=e,l=UF({marks:n,min:r,max:o,step:i==="any"?1:i,value:s});return p.jsx(CF,{"aria-hidden":"true",className:"components-range-control__marks",children:l.map(c=>h.createElement(zF,{...c,key:c.key,"aria-hidden":"true",disabled:t}))})}function UF({marks:e,min:t=0,max:n=100,step:r=1,value:o=0}){if(!e)return[];const i=n-t;if(!Array.isArray(e)){e=[];const a=1+Math.round(i/r);for(;a>e.push({value:r*e.length+t}););}const s=[];return e.forEach((a,l)=>{if(a.value<t||a.value>n)return;const c=`mark-${l}`,u=a.value<=o,d=`${(a.value-t)/i*100}%`,f={[fn()?"right":"left"]:d};s.push({...a,isFilled:u,key:c,style:f})}),s}function HF(e){const{className:t,inputRef:n,tooltipPosition:r,show:o=!1,style:i={},value:s=0,renderTooltipContent:a=m=>m,zIndex:l=100,...c}=e,u=WF({inputRef:n,tooltipPosition:r}),d=xe("components-simple-tooltip",t),f={...i,zIndex:l};return p.jsx(NF,{...c,"aria-hidden":"false",className:d,position:u,show:o,role:"tooltip",style:f,children:a(s)})}function WF({inputRef:e,tooltipPosition:t}){const[n,r]=h.useState(),o=h.useCallback(()=>{e&&e.current&&r(t)},[t,e]);return h.useEffect(()=>{o()},[o]),h.useEffect(()=>(window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)})),n}const Ko=()=>{};function KF({resetFallbackValue:e,initialPosition:t}){return e!==void 0?Number.isNaN(e)?null:e:t!==void 0?Number.isNaN(t)?null:t:null}function Gx(e,t){var ds;const{__nextHasNoMarginBottom:n=!1,afterIcon:r,allowReset:o=!1,beforeIcon:i,className:s,color:a=J.theme.accent,currentInput:l,disabled:c=!1,help:u,hideLabelFromVision:d=!1,initialPosition:f,isShiftStepEnabled:m=!0,label:v,marks:g=!1,max:y=100,min:b=0,onBlur:_=Ko,onChange:x=Ko,onFocus:S=Ko,onMouseLeave:w=Ko,onMouseMove:C=Ko,railColor:T,renderTooltipContent:A=qe=>qe,resetFallbackValue:E,__next40pxDefaultSize:P=!1,shiftStep:L=10,showTooltip:F,step:M=1,trackColor:N,value:R,withInputField:k=!0,__shouldNotWarnDeprecated36pxSize:O,...G}=e,[I,z]=fF({min:b,max:y,value:R??null,initial:f}),U=h.useRef(!1);let B=F,$=k;M==="any"&&(B=!1,$=!1);const[H,q]=h.useState(B),[j,X]=h.useState(!1),ie=h.useRef(),Ce=(ds=ie.current)==null?void 0:ds.matches(":focus"),we=!c&&j,yt=I===null,Oe=yt?"":I!==void 0?I:l,Pt=yt?(y-b)/2+b:I,Xt=yt?50:(I-b)/(y-b)*100,tt=`${mf(Xt,0,100)}%`,bn=xe("components-range-control",s),oe=xe("components-range-control__wrapper",!!g&&"is-marked"),ye=lt(Gx,"inspector-range-control"),nt=u?`${ye}__help`:void 0,Se=B!==!1&&Number.isFinite(I),pt=qe=>{const Yt=parseFloat(qe.target.value);z(Yt),x(Yt)},kt=qe=>{let Yt=parseFloat(qe);z(Yt),isNaN(Yt)?o&&(U.current=!0):((Yt<b||Yt>y)&&(Yt=Hs(Yt,b,y)),x(Yt),U.current=!1)},Nn=()=>{U.current&&(yn(),U.current=!1)},yn=()=>{const qe=Number.isNaN(E)?null:E??null;z(qe),x(qe??void 0)},Wr=()=>q(!0),vl=()=>q(!1),bl=qe=>{_(qe),X(!1),vl()},yl=qe=>{S(qe),X(!0),Wr()},us={[fn()?"right":"left"]:tt};return vn({componentName:"RangeControl",__next40pxDefaultSize:P,size:void 0,__shouldNotWarnDeprecated36pxSize:O}),p.jsx(dt,{__nextHasNoMarginBottom:n,__associatedWPComponentName:"RangeControl",className:bn,label:v,hideLabelFromVision:d,id:`${ye}`,help:u,children:p.jsxs(hF,{className:"components-range-control__root",__next40pxDefaultSize:P,children:[i&&p.jsx(bF,{children:p.jsx(Ai,{icon:i})}),p.jsxs(vF,{__nextHasNoMarginBottom:n,className:oe,color:a,marks:!!g,children:[p.jsx(VF,{...G,className:"components-range-control__slider",describedBy:nt,disabled:c,id:`${ye}`,label:v,max:y,min:b,onBlur:bl,onChange:pt,onFocus:yl,onMouseMove:C,onMouseLeave:w,ref:Gr([ie,t]),step:M,value:Oe??void 0}),p.jsx($F,{"aria-hidden":!0,disabled:c,marks:g,max:y,min:b,railColor:T,step:M,value:Pt}),p.jsx(_F,{"aria-hidden":!0,className:"components-range-control__track",disabled:c,style:{width:tt},trackColor:N}),p.jsx(PF,{className:"components-range-control__thumb-wrapper",style:us,disabled:c,children:p.jsx(MF,{"aria-hidden":!0,isFocused:we,disabled:c})}),Se&&p.jsx(HF,{className:"components-range-control__tooltip",inputRef:ie,tooltipPosition:"bottom",renderTooltipContent:A,show:Ce||H,style:us,value:I})]}),r&&p.jsx(yF,{children:p.jsx(Ai,{icon:r})}),$&&p.jsx(LF,{"aria-label":v,className:"components-range-control__number",disabled:c,inputMode:"decimal",isShiftStepEnabled:m,max:y,min:b,onBlur:Nn,onChange:kt,shiftStep:L,size:P?"__unstable-large":"default",__unstableInputWidth:Y(P?20:16),step:M,value:Oe,__shouldNotWarnDeprecated36pxSize:!0}),o&&p.jsx(FF,{children:p.jsx(ft,{className:"components-range-control__reset",accessibleWhenDisabled:!c,disabled:c||I===KF({resetFallbackValue:E,initialPosition:f}),variant:"secondary",size:"small",onClick:yn,children:W("Reset")})})]})})}const Sf=h.forwardRef(Gx),qF=ne(po,{target:"ez9hsf46"})("width:",Y(24),";"),ZF=ne(zx,{target:"ez9hsf45"})("margin-left:",Y(-2),";"),XF=ne(Sf,{target:"ez9hsf44"})("flex:1;margin-right:",Y(2),";"),YF=`
.react-colorful__interactive {
	width: calc( 100% - ${Y(2)} );
	margin-left: ${Y(1)};
}`,JF=ne("div",{target:"ez9hsf43"})("padding-top:",Y(2),";padding-right:0;padding-left:0;padding-bottom:0;"),QF=ne(Vo,{target:"ez9hsf42"})("padding-left:",Y(4),";padding-right:",Y(4),";"),eB=ne(De,{target:"ez9hsf41"})("padding-top:",Y(4),";padding-left:",Y(4),";padding-right:",Y(3),";padding-bottom:",Y(5),";"),tB=ne("div",{target:"ez9hsf40"})(Ad,";width:216px;.react-colorful{display:flex;flex-direction:column;align-items:center;width:216px;height:auto;}.react-colorful__saturation{width:100%;border-radius:0;height:216px;margin-bottom:",Y(4),";border-bottom:none;}.react-colorful__hue,.react-colorful__alpha{width:184px;height:16px;border-radius:",Z.radiusFull,";margin-bottom:",Y(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 ",Z.borderWidthFocus," #fff;}",YF,";"),nB=e=>{const{color:t,colorType:n}=e,[r,o]=h.useState(null),i=h.useRef(),s=M_(()=>{switch(n){case"hsl":return t.toHslString();case"rgb":return t.toRgbString();default:case"hex":return t.toHex()}},()=>{i.current&&clearTimeout(i.current),o(t.toHex()),i.current=setTimeout(()=>{o(null),i.current=void 0},3e3)});h.useEffect(()=>()=>{i.current&&clearTimeout(i.current)},[]);const a=r===t.toHex()?W("Copied!"):W("Copy");return p.jsx(Qi,{delay:0,hideOnClick:!1,text:a,children:p.jsx(ft,{size:"compact","aria-label":a,ref:s,icon:oD,showTooltip:!1})})};function rB(e,t){const n=Ee(e,"InputControlPrefixWrapper");return p.jsx(ox,{...n,isPrefix:!0,ref:t})}const Ux=Me(rB,"InputControlPrefixWrapper"),or=({min:e,max:t,label:n,abbreviation:r,onChange:o,value:i})=>{const s=a=>{if(!a){o(0);return}if(typeof a=="string"){o(parseInt(a,10));return}o(a)};return p.jsxs(Vo,{spacing:4,children:[p.jsx(qF,{__next40pxDefaultSize:!0,min:e,max:t,label:n,hideLabelFromVision:!0,value:i,onChange:s,prefix:p.jsx(Ux,{children:p.jsx(lf,{color:J.theme.accent,lineHeight:1,children:r})}),spinControls:"none"}),p.jsx(XF,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:n,hideLabelFromVision:!0,min:e,max:t,value:i,onChange:o,withInputField:!1})]})},oB=({color:e,onChange:t,enableAlpha:n})=>{const{r,g:o,b:i,a:s}=e.toRgb();return p.jsxs(p.Fragment,{children:[p.jsx(or,{min:0,max:255,label:"Red",abbreviation:"R",value:r,onChange:a=>t(Le({r:a,g:o,b:i,a:s}))}),p.jsx(or,{min:0,max:255,label:"Green",abbreviation:"G",value:o,onChange:a=>t(Le({r,g:a,b:i,a:s}))}),p.jsx(or,{min:0,max:255,label:"Blue",abbreviation:"B",value:i,onChange:a=>t(Le({r,g:o,b:a,a:s}))}),n&&p.jsx(or,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(s*100),onChange:a=>t(Le({r,g:o,b:i,a:a/100}))})]})},iB=({color:e,onChange:t,enableAlpha:n})=>{const r=h.useMemo(()=>e.toHsl(),[e]),[o,i]=h.useState({...r}),s=e.isEqual(Le(o));h.useEffect(()=>{s||i(r)},[r,s]);const a=s?o:r,l=c=>{const u=Le({...a,...c});e.isEqual(u)?i(d=>({...d,...c})):t(u)};return p.jsxs(p.Fragment,{children:[p.jsx(or,{min:0,max:359,label:"Hue",abbreviation:"H",value:a.h,onChange:c=>{l({h:c})}}),p.jsx(or,{min:0,max:100,label:"Saturation",abbreviation:"S",value:a.s,onChange:c=>{l({s:c})}}),p.jsx(or,{min:0,max:100,label:"Lightness",abbreviation:"L",value:a.l,onChange:c=>{l({l:c})}}),n&&p.jsx(or,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*a.a),onChange:c=>{l({a:c/100})}})]})},sB=({color:e,onChange:t,enableAlpha:n})=>{const r=i=>{if(!i)return;const s=i.startsWith("#")?i:"#"+i;t(Le(s))},o=(i,s)=>{var c,u,d,f;const a=(u=(c=s.payload)==null?void 0:c.event)==null?void 0:u.nativeEvent;if((a==null?void 0:a.inputType)!=="insertFromPaste")return{...i};const l=(d=i.value)!=null&&d.startsWith("#")?i.value.slice(1).toUpperCase():(f=i.value)==null?void 0:f.toUpperCase();return{...i,value:l}};return p.jsx(hf,{prefix:p.jsx(Ux,{children:p.jsx(lf,{color:J.theme.accent,lineHeight:1,children:"#"})}),value:e.toHex().slice(1).toUpperCase(),onChange:r,maxLength:n?9:7,label:W("Hex color"),hideLabelFromVision:!0,size:"__unstable-large",__unstableStateReducer:o,__unstableInputWidth:"9em"})},aB=({colorType:e,color:t,onChange:n,enableAlpha:r})=>{const o={color:t,onChange:n,enableAlpha:r};switch(e){case"hsl":return p.jsx(iB,{...o});case"rgb":return p.jsx(oB,{...o});default:case"hex":return p.jsx(sB,{...o})}};function zo(){return(zo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _f(e,t){if(e==null)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}function fu(e){var t=h.useRef(e),n=h.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var Co=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e<t?t:e},di=function(e){return"touches"in e},pu=function(e){return e&&e.ownerDocument.defaultView||self},dg=function(e,t,n){var r=e.getBoundingClientRect(),o=di(t)?function(i,s){for(var a=0;a<i.length;a++)if(i[a].identifier===s)return i[a];return i[0]}(t.touches,n):t;return{left:Co((o.pageX-(r.left+pu(e).pageXOffset))/r.width),top:Co((o.pageY-(r.top+pu(e).pageYOffset))/r.height)}},fg=function(e){!di(e)&&e.preventDefault()},Cf=Ie.memo(function(e){var t=e.onMove,n=e.onKey,r=_f(e,["onMove","onKey"]),o=h.useRef(null),i=fu(t),s=fu(n),a=h.useRef(null),l=h.useRef(!1),c=h.useMemo(function(){var m=function(y){fg(y),(di(y)?y.touches.length>0:y.buttons>0)&&o.current?i(dg(o.current,y,a.current)):g(!1)},v=function(){return g(!1)};function g(y){var b=l.current,_=pu(o.current),x=y?_.addEventListener:_.removeEventListener;x(b?"touchmove":"mousemove",m),x(b?"touchend":"mouseup",v)}return[function(y){var b=y.nativeEvent,_=o.current;if(_&&(fg(b),!function(S,w){return w&&!di(S)}(b,l.current)&&_)){if(di(b)){l.current=!0;var x=b.changedTouches||[];x.length&&(a.current=x[0].identifier)}_.focus(),i(dg(_,b,a.current)),g(!0)}},function(y){var b=y.which||y.keyCode;b<37||b>40||(y.preventDefault(),s({left:b===39?.05:b===37?-.05:0,top:b===40?.05:b===38?-.05:0}))},g]},[s,i]),u=c[0],d=c[1],f=c[2];return h.useEffect(function(){return f},[f]),Ie.createElement("div",zo({},r,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:o,onKeyDown:d,tabIndex:0,role:"slider"}))}),ls=function(e){return e.filter(Boolean).join(" ")},Tf=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,i=ls(["react-colorful__pointer",e.className]);return Ie.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},Ie.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},Rt=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Hx=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:Rt(e.h),s:Rt(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:Rt(o/2),a:Rt(r,2)}},hu=function(e){var t=Hx(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},fc=function(e){var t=Hx(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},Wx=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),s=r*(1-n),a=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),c=i%6;return{r:Rt(255*[r,a,s,s,l,r][c]),g:Rt(255*[l,r,r,a,s,s][c]),b:Rt(255*[s,s,l,r,r,a][c]),a:Rt(o,2)}},Kx=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?cB({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},lB=Kx,cB=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),s=i-Math.min(t,n,r),a=s?i===t?(n-r)/s:i===n?2+(r-t)/s:4+(t-n)/s:0;return{h:Rt(60*(a<0?a+6:a)),s:Rt(i?s/i*100:0),v:Rt(i/255*100),a:o}},qx=Ie.memo(function(e){var t=e.hue,n=e.onChange,r=ls(["react-colorful__hue",e.className]);return Ie.createElement("div",{className:r},Ie.createElement(Cf,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:Co(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":Rt(t),"aria-valuemax":"360","aria-valuemin":"0"},Ie.createElement(Tf,{className:"react-colorful__hue-pointer",left:t/360,color:hu({h:t,s:100,v:100,a:1})})))}),Zx=Ie.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:hu({h:t.h,s:100,v:100,a:1})};return Ie.createElement("div",{className:"react-colorful__saturation",style:r},Ie.createElement(Cf,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:Co(t.s+100*o.left,0,100),v:Co(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+Rt(t.s)+"%, Brightness "+Rt(t.v)+"%"},Ie.createElement(Tf,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:hu(t)})))}),uB=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},Xx=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")};function Yx(e,t,n){var r=fu(n),o=h.useState(function(){return e.toHsva(t)}),i=o[0],s=o[1],a=h.useRef({color:t,hsva:i});h.useEffect(function(){if(!e.equal(t,a.current.color)){var c=e.toHsva(t);a.current={hsva:c,color:t},s(c)}},[t,e]),h.useEffect(function(){var c;uB(i,a.current.hsva)||e.equal(c=e.fromHsva(i),a.current.color)||(a.current={hsva:i,color:c},r(c))},[i,e,r]);var l=h.useCallback(function(c){s(function(u){return Object.assign({},u,c)})},[]);return[i,l]}var dB=typeof window<"u"?h.useLayoutEffect:h.useEffect,fB=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},pg=new Map,Jx=function(e){dB(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!pg.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,pg.set(t,n);var r=fB();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},pB=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,i=e.onChange,s=_f(e,["className","colorModel","color","onChange"]),a=h.useRef(null);Jx(a);var l=Yx(n,o,i),c=l[0],u=l[1],d=ls(["react-colorful",t]);return Ie.createElement("div",zo({},s,{ref:a,className:d}),Ie.createElement(Zx,{hsva:c,onChange:u}),Ie.createElement(qx,{hue:c.h,onChange:u,className:"react-colorful__last-control"}))},hB=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+fc(Object.assign({},n,{a:0}))+", "+fc(Object.assign({},n,{a:1}))+")"},i=ls(["react-colorful__alpha",t]),s=Rt(100*n.a);return Ie.createElement("div",{className:i},Ie.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),Ie.createElement(Cf,{onMove:function(a){r({a:a.left})},onKey:function(a){r({a:Co(n.a+a.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},Ie.createElement(Tf,{className:"react-colorful__alpha-pointer",left:n.a,color:fc(n)})))},mB=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,i=e.onChange,s=_f(e,["className","colorModel","color","onChange"]),a=h.useRef(null);Jx(a);var l=Yx(n,o,i),c=l[0],u=l[1],d=ls(["react-colorful",t]);return Ie.createElement("div",zo({},s,{ref:a,className:d}),Ie.createElement(Zx,{hsva:c,onChange:u}),Ie.createElement(qx,{hue:c.h,onChange:u}),Ie.createElement(hB,{hsva:c,onChange:u,className:"react-colorful__last-control"}))},gB={defaultColor:"rgba(0, 0, 0, 1)",toHsva:Kx,fromHsva:function(e){var t=Wx(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:Xx},vB=function(e){return Ie.createElement(mB,zo({},e,{colorModel:gB}))},bB={defaultColor:"rgb(0, 0, 0)",toHsva:lB,fromHsva:function(e){var t=Wx(e);return"rgb("+t.r+", "+t.g+", "+t.b+")"},equal:Xx},yB=function(e){return Ie.createElement(pB,zo({},e,{colorModel:bB}))};const xB=({color:e,enableAlpha:t,onChange:n})=>{const r=t?vB:yB,o=h.useMemo(()=>e.toRgbString(),[e]);return p.jsx(r,{color:o,onChange:i=>{n(Le(i))},onPointerDown:({currentTarget:i,pointerId:s})=>{i.setPointerCapture(s)},onPointerUp:({currentTarget:i,pointerId:s})=>{i.releasePointerCapture(s)}})};tl([nl]);const wB=[{label:"RGB",value:"rgb"},{label:"HSL",value:"hsl"},{label:"Hex",value:"hex"}],SB=(e,t)=>{const{enableAlpha:n=!1,color:r,onChange:o,defaultValue:i="#fff",copyFormat:s,...a}=Ee(e,"ColorPicker"),[l,c]=Za({onChange:o,value:r,defaultValue:i}),u=h.useMemo(()=>Le(l||""),[l]),d=H_(c),f=h.useCallback(g=>{d(g.toHex())},[d]),[m,v]=h.useState(s||"hex");return p.jsxs(tB,{ref:t,...a,children:[p.jsx(xB,{onChange:f,color:u,enableAlpha:n}),p.jsxs(JF,{children:[p.jsxs(QF,{justify:"space-between",children:[p.jsx(ZF,{__nextHasNoMarginBottom:!0,size:"compact",options:wB,value:m,onChange:g=>v(g),label:W("Color format"),hideLabelFromVision:!0,variant:"minimal"}),p.jsx(nB,{color:u,colorType:s||m})]}),p.jsx(eB,{direction:"column",gap:2,children:p.jsx(aB,{colorType:m,color:u,onChange:f,enableAlpha:n})})]})]})},_B=Me(SB,"ColorPicker");function CB(e){var t;return typeof e.onChangeComplete<"u"||typeof e.disableAlpha<"u"||typeof((t=e.color)==null?void 0:t.hex)=="string"}function TB(e){if(e!==void 0){if(typeof e=="string")return e;if(e.hex)return e.hex}}const AB=$i(e=>{const t=Le(e),n=t.toHex(),r=t.toRgb(),o=t.toHsv(),i=t.toHsl();return{hex:n,rgb:r,hsv:o,hsl:i,source:"hex",oldHue:i.h}});function EB(e){const{onChangeComplete:t}=e,n=h.useCallback(r=>{t(AB(r))},[t]);return CB(e)?{color:TB(e.color),enableAlpha:!e.disableAlpha,onChange:n}:{...e,color:e.color,enableAlpha:e.enableAlpha,onChange:e.onChange}}const Ar=e=>p.jsx(_B,{...EB(e)}),ul=h.createContext({});function PB(e,t){const{isPressed:n,...r}=e;return p.jsx(ft,{...r,"aria-pressed":n,ref:t})}const kB=h.forwardRef(PB);function MB(e,t){const{id:n,isSelected:r,...o}=e,{setActiveId:i,activeId:s}=h.useContext(ul);return h.useEffect(()=>{r&&!s&&window.setTimeout(()=>i==null?void 0:i(n),0)},[r,i,s,n]),p.jsx(Wb.Item,{render:p.jsx(ft,{...o,role:"option","aria-selected":!!r,ref:t}),id:n})}const RB=h.forwardRef(MB);function Qx({className:e,isSelected:t,selectedIconProps:n={},tooltipText:r,...o}){const{baseId:i,setActiveId:s}=h.useContext(ul),l={id:lt(Qx,i||"components-circular-option-picker__option"),className:"components-circular-option-picker__option",__next40pxDefaultSize:!0,...o},u=s!==void 0?p.jsx(RB,{...l,isSelected:t}):p.jsx(kB,{...l,isPressed:t});return p.jsxs("div",{className:xe(e,"components-circular-option-picker__option-wrapper"),children:[r?p.jsx(Qi,{text:r,children:u}):u,t&&p.jsx(ll,{icon:W0,...n})]})}function IB({className:e,options:t,...n}){const r="aria-label"in n||"aria-labelledby"in n?"group":void 0;return p.jsx("div",{...n,role:r,className:xe("components-circular-option-picker__option-group","components-circular-option-picker__swatches",e),children:t})}function jB({buttonProps:e,className:t,dropdownProps:n,linkText:r}){return p.jsx(xf,{className:xe("components-circular-option-picker__dropdown-link-action",t),renderToggle:({isOpen:o,onToggle:i})=>p.jsx(ft,{"aria-expanded":o,"aria-haspopup":"true",onClick:i,variant:"link",...e,children:r}),...n})}function OB({className:e,children:t,...n}){return p.jsx(ft,{__next40pxDefaultSize:!0,className:xe("components-circular-option-picker__clear",e),variant:"tertiary",...n,children:t})}function DB(e){const{actions:t,options:n,baseId:r,className:o,loop:i=!0,children:s,...a}=e,[l,c]=h.useState(void 0),u=h.useMemo(()=>({baseId:r,activeId:l,setActiveId:c}),[r,l,c]);return p.jsx("div",{className:o,children:p.jsxs(ul.Provider,{value:u,children:[p.jsx(Wb,{...a,id:r,focusLoop:i,rtl:fn(),role:"listbox",activeId:l,setActiveId:c,children:n}),s,t]})})}function NB(e){const{actions:t,options:n,children:r,baseId:o,...i}=e,s=h.useMemo(()=>({baseId:o}),[o]);return p.jsx("div",{...i,id:o,children:p.jsxs(ul.Provider,{value:s,children:[n,r,t]})})}function qn(e){const{asButtons:t,actions:n,options:r,children:o,className:i,...s}=e,a=lt(qn,"components-circular-option-picker",s.id),l=t?NB:DB,c=n?p.jsx("div",{className:"components-circular-option-picker__custom-clear-wrapper",children:n}):void 0,u=p.jsx("div",{className:"components-circular-option-picker__swatches",children:r});return p.jsx(l,{...s,baseId:a,className:xe("components-circular-option-picker",i),actions:c,options:u,children:o})}qn.Option=Qx;qn.OptionGroup=IB;qn.ButtonAction=OB;qn.DropdownLinkAction=jB;function LB(e){const{expanded:t=!1,alignment:n="stretch",...r}=Ee(e,"VStack");return Cx({direction:"column",expanded:t,alignment:n,...r})}function FB(e,t){const n=LB(e);return p.jsx(at,{...n,ref:t})}const jr=Me(FB,"VStack");function BB(e){const{as:t,level:n=2,color:r=J.theme.foreground,isBlock:o=!0,weight:i=Z.fontWeightHeading,...s}=Ee(e,"Heading"),a=t||`h${n}`,l={};return typeof a=="string"&&a[0]!=="h"&&(l.role="heading",l["aria-level"]=typeof n=="string"?parseInt(n):n),{...ex({color:r,isBlock:o,weight:i,size:AD(n),...s}),...l,as:a}}function VB(e,t){const n=BB(e);return p.jsx(at,{...n,ref:t})}const zB=Me(VB,"Heading"),$B=ne(zB,{target:"ev9wop70"})({name:"13lxv2o",styles:"text-transform:uppercase;line-height:24px;font-weight:500;&&&{font-size:11px;margin-bottom:0;}"}),GB=({paddingSize:e="small"})=>{if(e==="none")return;const t={small:Y(2),medium:Y(4)};return V("padding:",t[e]||t.small,";","")},UB=ne("div",{target:"eovvns30"})("margin-left:",Y(-2),";margin-right:",Y(-2),";&:first-of-type{margin-top:",Y(-2),";}&:last-of-type{margin-bottom:",Y(-2),";}",GB,";");function HB(e,t){const{paddingSize:n="small",...r}=Ee(e,"DropdownContentWrapper");return p.jsx(UB,{...r,paddingSize:n,ref:t})}const mu=Me(HB,"DropdownContentWrapper");tl([nl,Bx]);const ew=e=>{const t=/var\(/.test(e??""),n=/color-mix\(/.test(e??"");return!t&&!n},WB=(e,t=[],n=!1)=>{if(!e)return"";const r=e?ew(e):!1,o=r?Le(e).toHex():e,i=n?t:[{colors:t}];for(const{colors:s}of i)for(const{name:a,color:l}of s){const c=r?Le(l).toHex():l;if(o===c)return a}return W("Custom")},KB=e=>Array.isArray(e.colors)&&!("color"in e),tw=e=>e.length>0&&e.every(t=>KB(t)),qB=(e,t)=>{if(!e||!t||ew(e))return e;const{ownerDocument:n}=t,{defaultView:r}=n,o=r==null?void 0:r.getComputedStyle(t).backgroundColor;return o?Le(o).toHex():e};tl([nl,Bx]);function nw({className:e,clearColor:t,colors:n,onChange:r,value:o,...i}){const s=h.useMemo(()=>n.map(({color:a,name:l},c)=>{const u=Le(a),d=o===a;return p.jsx(qn.Option,{isSelected:d,selectedIconProps:d?{fill:u.contrast()>u.contrast("#000")?"#fff":"#000"}:{},tooltipText:l||Nt(W("Color code: %s"),a),style:{backgroundColor:a,color:a},onClick:d?t:()=>r(a,c),"aria-label":l?Nt(W("Color: %s"),l):Nt(W("Color code: %s"),a)},`${a}-${c}`)}),[n,o,r,t]);return p.jsx(qn.OptionGroup,{className:e,options:s,...i})}function rw({className:e,clearColor:t,colors:n,onChange:r,value:o,headingLevel:i}){const s=lt(rw,"color-palette");return n.length===0?null:p.jsx(jr,{spacing:3,className:e,children:n.map(({name:a,colors:l},c)=>{const u=`${s}-${c}`;return p.jsxs(jr,{spacing:2,children:[p.jsx($B,{id:u,level:i,children:a}),p.jsx(nw,{clearColor:t,colors:l,onChange:d=>r(d,c),value:o,"aria-labelledby":u})]},c)})})}function ZB({isRenderedInSidebar:e,popoverProps:t,...n}){const r=h.useMemo(()=>({shift:!0,resize:!1,...e?{placement:"left-start",offset:34}:{placement:"bottom",offset:8},...t}),[e,t]);return p.jsx(xf,{contentClassName:"components-color-palette__custom-color-dropdown-content",popoverProps:r,...n})}function XB(e,t){const{asButtons:n,loop:r,clearable:o=!0,colors:i=[],disableCustomColors:s=!1,enableAlpha:a=!1,onChange:l,value:c,__experimentalIsRenderedInSidebar:u=!1,headingLevel:d=2,"aria-label":f,"aria-labelledby":m,...v}=e,[g,y]=h.useState(c),b=h.useCallback(()=>l(void 0),[l]),_=h.useCallback(F=>{y(qB(c,F))},[c]),x=tw(i),S=h.useMemo(()=>WB(c,i,x),[c,i,x]),w=()=>p.jsx(mu,{paddingSize:"none",children:p.jsx(Ar,{color:g,onChange:F=>l(F),enableAlpha:a})}),C=c==null?void 0:c.startsWith("#"),T=c==null?void 0:c.replace(/^var\((.+)\)$/,"$1"),A=T?Nt(W('Custom color picker. The currently selected color is called "%1$s" and has a value of "%2$s".'),S,T):W("Custom color picker."),E={clearColor:b,onChange:l,value:c},P=!!o&&p.jsx(qn.ButtonAction,{onClick:b,accessibleWhenDisabled:!0,disabled:!c,children:W("Clear")});let L;if(n)L={asButtons:!0};else{const F={asButtons:!1,loop:r};f?L={...F,"aria-label":f}:m?L={...F,"aria-labelledby":m}:L={...F,"aria-label":W("Custom color picker.")}}return p.jsxs(jr,{spacing:3,ref:t,...v,children:[!s&&p.jsx(ZB,{isRenderedInSidebar:u,renderContent:w,renderToggle:({isOpen:F,onToggle:M})=>p.jsxs(jr,{className:"components-color-palette__custom-color-wrapper",spacing:0,children:[p.jsx("button",{ref:_,className:"components-color-palette__custom-color-button","aria-expanded":F,"aria-haspopup":"true",onClick:M,"aria-label":A,style:{background:c},type:"button"}),p.jsxs(jr,{className:"components-color-palette__custom-color-text-wrapper",spacing:.5,children:[p.jsx(jm,{className:"components-color-palette__custom-color-name",children:c?S:W("No color selected")}),p.jsx(jm,{className:xe("components-color-palette__custom-color-value",{"components-color-palette__custom-color-value--is-hex":C}),children:T})]})]})}),(i.length>0||P)&&p.jsx(qn,{...L,actions:P,options:x?p.jsx(rw,{...E,headingLevel:d,colors:i,value:c}):p.jsx(nw,{...E,colors:i,value:c})})]})}const YB=h.forwardRef(XB),Af=ne(po,{target:"e1bagdl32"})("&&&{input{display:block;width:100%;}",cf,"{transition:box-shadow 0.1s linear;}}"),ow=({selectSize:e})=>({small:V("box-sizing:border-box;padding:2px 1px;width:20px;font-size:8px;line-height:1;letter-spacing:-0.5px;text-transform:uppercase;text-align-last:center;&:not( :disabled ){color:",J.gray[800],";}",""),default:V("box-sizing:border-box;min-width:24px;max-width:48px;height:24px;margin-inline-end:",Y(2),";padding:",Y(1),";font-size:13px;line-height:1;text-align-last:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;field-sizing:content;&:not( :disabled ){color:",J.theme.accent,";}","")})[e],JB=ne("div",{target:"e1bagdl31"})("&&&{pointer-events:none;",ow,";color:",J.gray[900],";}"),QB=({selectSize:e="default"})=>({small:V("height:100%;border:1px solid transparent;transition:box-shadow 0.1s linear,border 0.1s linear;",Ye({borderTopLeftRadius:0,borderBottomLeftRadius:0})()," &:not(:disabled):hover{background-color:",J.gray[100],";}&:focus{border:1px solid ",J.ui.borderFocus,";box-shadow:inset 0 0 0 ",Z.borderWidth+" "+J.ui.borderFocus,";outline-offset:0;outline:2px solid transparent;z-index:1;}",""),default:V("display:flex;justify-content:center;align-items:center;&:where( :not( :disabled ) ):hover{box-shadow:0 0 0 ",Z.borderWidth+" "+J.ui.borderFocus,";outline:",Z.borderWidth," solid transparent;}&:focus{box-shadow:0 0 0 ",Z.borderWidthFocus+" "+J.ui.borderFocus,";outline:",Z.borderWidthFocus," solid transparent;}","")})[e],iw=ne("select",{target:"e1bagdl30"})("&&&{appearance:none;background:transparent;border-radius:",Z.radiusXSmall,";border:none;display:block;outline:none;margin:0;min-height:auto;font-family:inherit;",ow,";",QB,";&:not( :disabled ){cursor:pointer;}}"),eV=V("box-shadow:inset ",Z.controlBoxShadowFocus,";",""),tV=V("border:0;padding:0;margin:0;",Ad,";",""),nV=()=>V(Af,"{flex:1 1 40%;}&& ",iw,"{min-height:0;}",""),rV=V(Af,"{flex:0 0 auto;}",""),oV=e=>V("height:",e==="__unstable-large"?"40px":"30px",";",""),iV=V("background:#fff;&&>button{aspect-ratio:1;padding:0;display:flex;align-items:center;justify-content:center;",Ye({borderRadius:"2px 0 0 2px"},{borderRadius:"0 2px 2px 0"})()," border:",Z.borderWidth," solid ",J.ui.border,";&:focus,&:hover:not( :disabled ){",eV," border-color:",J.ui.borderFocus,";z-index:1;position:relative;}}",""),sV=e=>{const{color:t,style:n}=e||{},r=n&&n!=="none"?J.gray[300]:void 0;return V("border-style:",n==="none"?"solid":n,";border-color:",t||r,";","")},aV=(e,t)=>{const{style:n}=e||{};return V("border-radius:",Z.radiusFull,";border:2px solid transparent;",n?sV(e):void 0," width:",t==="__unstable-large"?"24px":"22px",";height:",t==="__unstable-large"?"24px":"22px",";padding:",t==="__unstable-large"?"2px":"1px",";&>span{height:",Y(4),";width:",Y(4),`;background:linear-gradient(
				-45deg,
				transparent 48%,
				rgb( 0 0 0 / 20% ) 48%,
				rgb( 0 0 0 / 20% ) 52%,
				transparent 52%
			);}`,"")},lV=28,cV=12,uV=V("width:",lV*6+cV*5,"px;>div:first-of-type>",ha,"{margin-bottom:0;}&& ",ha,"+button:not( .has-text ){min-width:24px;padding:0;}",""),dV=V("",""),fV=V("",""),pV=V("justify-content:center;width:100%;&&{border-top:",Z.borderWidth," solid ",J.gray[400],";border-top-left-radius:0;border-top-right-radius:0;}",""),hV=()=>V("flex:1 1 60%;",Ye({marginRight:Y(3)})(),";",""),Cn={px:{value:"px",label:"px",a11yLabel:W("Pixels (px)"),step:1},"%":{value:"%",label:"%",a11yLabel:W("Percent (%)"),step:.1},em:{value:"em",label:"em",a11yLabel:Jf("ems","Relative to parent font size (em)"),step:.01},rem:{value:"rem",label:"rem",a11yLabel:Jf("rems","Relative to root font size (rem)"),step:.01},vw:{value:"vw",label:"vw",a11yLabel:W("Viewport width (vw)"),step:.1},vh:{value:"vh",label:"vh",a11yLabel:W("Viewport height (vh)"),step:.1},vmin:{value:"vmin",label:"vmin",a11yLabel:W("Viewport smallest dimension (vmin)"),step:.1},vmax:{value:"vmax",label:"vmax",a11yLabel:W("Viewport largest dimension (vmax)"),step:.1},ch:{value:"ch",label:"ch",a11yLabel:W("Width of the zero (0) character (ch)"),step:.01},ex:{value:"ex",label:"ex",a11yLabel:W("x-height of the font (ex)"),step:.01},cm:{value:"cm",label:"cm",a11yLabel:W("Centimeters (cm)"),step:.001},mm:{value:"mm",label:"mm",a11yLabel:W("Millimeters (mm)"),step:.1},in:{value:"in",label:"in",a11yLabel:W("Inches (in)"),step:.001},pc:{value:"pc",label:"pc",a11yLabel:W("Picas (pc)"),step:1},pt:{value:"pt",label:"pt",a11yLabel:W("Points (pt)"),step:1},svw:{value:"svw",label:"svw",a11yLabel:W("Small viewport width (svw)"),step:.1},svh:{value:"svh",label:"svh",a11yLabel:W("Small viewport height (svh)"),step:.1},svi:{value:"svi",label:"svi",a11yLabel:W("Small viewport width or height (svi)"),step:.1},svb:{value:"svb",label:"svb",a11yLabel:W("Small viewport width or height (svb)"),step:.1},svmin:{value:"svmin",label:"svmin",a11yLabel:W("Small viewport smallest dimension (svmin)"),step:.1},lvw:{value:"lvw",label:"lvw",a11yLabel:W("Large viewport width (lvw)"),step:.1},lvh:{value:"lvh",label:"lvh",a11yLabel:W("Large viewport height (lvh)"),step:.1},lvi:{value:"lvi",label:"lvi",a11yLabel:W("Large viewport width or height (lvi)"),step:.1},lvb:{value:"lvb",label:"lvb",a11yLabel:W("Large viewport width or height (lvb)"),step:.1},lvmin:{value:"lvmin",label:"lvmin",a11yLabel:W("Large viewport smallest dimension (lvmin)"),step:.1},dvw:{value:"dvw",label:"dvw",a11yLabel:W("Dynamic viewport width (dvw)"),step:.1},dvh:{value:"dvh",label:"dvh",a11yLabel:W("Dynamic viewport height (dvh)"),step:.1},dvi:{value:"dvi",label:"dvi",a11yLabel:W("Dynamic viewport width or height (dvi)"),step:.1},dvb:{value:"dvb",label:"dvb",a11yLabel:W("Dynamic viewport width or height (dvb)"),step:.1},dvmin:{value:"dvmin",label:"dvmin",a11yLabel:W("Dynamic viewport smallest dimension (dvmin)"),step:.1},dvmax:{value:"dvmax",label:"dvmax",a11yLabel:W("Dynamic viewport largest dimension (dvmax)"),step:.1},svmax:{value:"svmax",label:"svmax",a11yLabel:W("Small viewport largest dimension (svmax)"),step:.1},lvmax:{value:"lvmax",label:"lvmax",a11yLabel:W("Large viewport largest dimension (lvmax)"),step:.1}},ba=Object.values(Cn),sw=[Cn.px,Cn["%"],Cn.em,Cn.rem,Cn.vw,Cn.vh],mV=Cn.px;function aw(e,t,n){const r=t?`${e??""}${t}`:e;return In(r,n)}function Ef(e){return Array.isArray(e)&&!!e.length}function In(e,t=ba){var a;let n,r;if(typeof e<"u"||e===null){n=`${e}`.trim();const l=parseFloat(n);r=isFinite(l)?l:void 0}const o=n==null?void 0:n.match(/[\d.\-\+]*\s*(.*)/),i=(a=o==null?void 0:o[1])==null?void 0:a.toLowerCase();let s;if(Ef(t)){const l=t.find(c=>c.value===i);s=l==null?void 0:l.value}else s=mV.value;return[r,s]}function gV(e,t,n,r){const[o,i]=In(e,t),s=o??n;let a=i||r;return!a&&Ef(t)&&(a=t[0].value),[s,a]}function vV(e=[],t){return Array.isArray(t)?t.filter(n=>e.includes(n.value)):[]}const bV=({units:e=ba,availableUnits:t=[],defaultValues:n})=>{const r=vV(t,e);return n&&r.forEach((o,i)=>{if(n[o.value]){const[s]=In(n[o.value]);r[i].default=s}}),r};function yV(e,t,n=ba){const r=Array.isArray(n)?[...n]:[],[,o]=aw(e,t,ba);return o&&!r.some(i=>i.value===o)&&Cn[o]&&r.unshift(Cn[o]),r}function xV(e){const{border:t,className:n,colors:r=[],enableAlpha:o=!1,enableStyle:i=!0,onChange:s,previousStyleSelection:a,size:l="default",__experimentalIsRenderedInSidebar:c=!1,...u}=Ee(e,"BorderControlDropdown"),[d]=In(t==null?void 0:t.width),f=d===0,m=T=>{const A=(t==null?void 0:t.style)==="none"?a:t==null?void 0:t.style,E=f&&T?"1px":t==null?void 0:t.width;s({color:T,style:A,width:E})},v=T=>{const A=f&&T?"1px":t==null?void 0:t.width;s({...t,style:T,width:A})},g=()=>{s({...t,color:void 0,style:void 0})},y=et(),b=h.useMemo(()=>y(iV,n),[n,y]),_=h.useMemo(()=>y(fV),[y]),x=h.useMemo(()=>y(aV(t,l)),[t,y,l]),S=h.useMemo(()=>y(uV),[y]),w=h.useMemo(()=>y(dV),[y]),C=h.useMemo(()=>y(pV),[y]);return{...u,border:t,className:b,colors:r,enableAlpha:o,enableStyle:i,indicatorClassName:_,indicatorWrapperClassName:x,onColorChange:m,onStyleChange:v,onReset:g,popoverContentClassName:w,popoverControlsClassName:S,resetButtonClassName:C,size:l,__experimentalIsRenderedInSidebar:c}}const Ps=e=>e.replace(/^var\((.+)\)$/,"$1"),wV=(e,t)=>{if(!(!e||!t)){if(tw(t)){let n;return t.some(r=>r.colors.some(o=>o.color===e?(n=o,!0):!1)),n}return t.find(n=>n.color===e)}},SV=(e,t,n,r)=>{if(r){if(t){const o=Ps(t.color);return n?Nt(W('Border color and style picker. The currently selected color is called "%1$s" and has a value of "%2$s". The currently selected style is "%3$s".'),t.name,o,n):Nt(W('Border color and style picker. The currently selected color is called "%1$s" and has a value of "%2$s".'),t.name,o)}if(e){const o=Ps(e);return n?Nt(W('Border color and style picker. The currently selected color has a value of "%1$s". The currently selected style is "%2$s".'),o,n):Nt(W('Border color and style picker. The currently selected color has a value of "%s".'),o)}return W("Border color and style picker.")}return t?Nt(W('Border color picker. The currently selected color is called "%1$s" and has a value of "%2$s".'),t.name,Ps(t.color)):e?Nt(W('Border color picker. The currently selected color has a value of "%s".'),Ps(e)):W("Border color picker.")},_V=(e,t)=>{const{__experimentalIsRenderedInSidebar:n,border:r,colors:o,disableCustomColors:i,enableAlpha:s,enableStyle:a,indicatorClassName:l,indicatorWrapperClassName:c,isStyleSettable:u,onReset:d,onColorChange:f,onStyleChange:m,popoverContentClassName:v,popoverControlsClassName:g,resetButtonClassName:y,size:b,__unstablePopoverProps:_,...x}=xV(e),{color:S,style:w}=r||{},C=wV(S,o),T=SV(S,C,w,a),A=S||w&&w!=="none",E=n?"bottom left":void 0,P=({onToggle:F})=>p.jsx(ft,{onClick:F,variant:"tertiary","aria-label":T,tooltipPosition:E,label:W("Border color and style picker"),showTooltip:!0,__next40pxDefaultSize:b==="__unstable-large",children:p.jsx("span",{className:c,children:p.jsx(KL,{className:l,colorValue:S})})}),L=({onClose:F})=>p.jsxs(p.Fragment,{children:[p.jsx(mu,{paddingSize:"medium",children:p.jsxs(jr,{className:g,spacing:6,children:[p.jsx(YB,{className:v,value:S,onChange:f,colors:o,disableCustomColors:i,__experimentalIsRenderedInSidebar:n,clearable:!1,enableAlpha:s}),a&&u&&p.jsx(HL,{label:W("Style"),value:w,onChange:m})]})}),A&&p.jsx(mu,{paddingSize:"none",children:p.jsx(ft,{className:y,variant:"tertiary",onClick:()=>{d(),F()},__next40pxDefaultSize:!0,children:W("Reset")})})]});return p.jsx(xf,{renderToggle:P,renderContent:L,popoverProps:{..._},...x,ref:t})},CV=Me(_V,"BorderControlDropdown");function TV({className:e,isUnitSelectTabbable:t=!0,onChange:n,size:r="default",unit:o="px",units:i=sw,...s},a){if(!Ef(i)||(i==null?void 0:i.length)===1)return p.jsx(JB,{className:"components-unit-control__unit-label",selectSize:r,children:o});const l=u=>{const{value:d}=u.target,f=i.find(m=>m.value===d);n==null||n(d,{event:u,data:f})},c=xe("components-unit-control__select",e);return p.jsx(iw,{ref:a,className:c,onChange:l,selectSize:r,tabIndex:t?void 0:-1,value:o,...s,children:i.map(u=>p.jsx("option",{value:u.value,children:u.label},u.value))})}const AV=h.forwardRef(TV);function EV(e,t){const{__unstableStateReducer:n,autoComplete:r="off",children:o,className:i,disabled:s=!1,disableUnits:a=!1,isPressEnterToChange:l=!1,isResetValueOnUnitChange:c=!1,isUnitSelectTabbable:u=!0,label:d,onChange:f,onUnitChange:m,size:v="default",unit:g,units:y=sw,value:b,onFocus:_,__shouldNotWarnDeprecated36pxSize:x,...S}=Bo(e);vn({componentName:"UnitControl",__next40pxDefaultSize:S.__next40pxDefaultSize,size:v,__shouldNotWarnDeprecated36pxSize:x}),"unit"in e&&Mt("UnitControl unit prop",{since:"5.6",hint:"The unit should be provided within the `value` prop.",version:"6.2"});const w=b??void 0,[C,T]=h.useMemo(()=>{const z=yV(w,g,y),[{value:U=""}={},...B]=z,$=B.reduce((H,{value:q})=>{const j=tg((q==null?void 0:q.substring(0,1))||"");return H.includes(j)?H:`${H}|${j}`},tg(U.substring(0,1)));return[z,new RegExp(`^(?:${$})$`,"i")]},[w,g,y]),[A,E]=aw(w,g,C),[P,L]=Kb(C.length===1?C[0].value:g,{initial:E,fallback:""});h.useEffect(()=>{E!==void 0&&L(E)},[E,L]);const F=xe("components-unit-control","components-unit-control-wrapper",i),M=(z,U)=>{if(z===""||typeof z>"u"||z===null){f==null||f("",U);return}const B=gV(z,C,A,P).join("");f==null||f(B,U)},N=(z,U)=>{const{data:B}=U;let $=`${A??""}${z}`;c&&(B==null?void 0:B.default)!==void 0&&($=`${B.default}${z}`),f==null||f($,U),m==null||m(z,U),L(z)};let R;!a&&u&&C.length&&(R=z=>{var U,B;(U=S.onKeyDown)==null||U.call(S,z),!z.metaKey&&!z.ctrlKey&&T.test(z.key)&&((B=k.current)==null||B.focus())});const k=h.useRef(null),O=a?null:p.jsx(AV,{ref:k,"aria-label":W("Select unit"),disabled:s,isUnitSelectTabbable:u,onChange:N,size:["small","compact"].includes(v)||v==="default"&&!S.__next40pxDefaultSize?"small":"default",unit:P,units:C,onFocus:_,onBlur:e.onBlur});let G=S.step;if(!G&&C){var I;const z=C.find(U=>U.value===P);G=(I=z==null?void 0:z.step)!==null&&I!==void 0?I:1}return p.jsx(Af,{...S,__shouldNotWarnDeprecated36pxSize:!0,autoComplete:r,className:F,disabled:s,spinControls:"none",isPressEnterToChange:l,label:d,onKeyDown:R,onChange:M,ref:t,size:v,suffix:O,type:l?"text":"number",value:A??"",step:G,onFocus:_,__unstableStateReducer:n})}const lw=h.forwardRef(EV),hg=e=>{const t=(e==null?void 0:e.width)!==void 0&&e.width!=="",n=(e==null?void 0:e.color)!==void 0;return t||n};function PV(e){const{className:t,colors:n=[],isCompact:r,onChange:o,enableAlpha:i=!0,enableStyle:s=!0,shouldSanitizeBorder:a=!0,size:l="default",value:c,width:u,__experimentalIsRenderedInSidebar:d=!1,__next40pxDefaultSize:f,__shouldNotWarnDeprecated36pxSize:m,...v}=Ee(e,"BorderControl");vn({componentName:"BorderControl",__next40pxDefaultSize:f,size:l,__shouldNotWarnDeprecated36pxSize:m});const g=l==="default"&&f?"__unstable-large":l,[y,b]=In(c==null?void 0:c.width),_=b||"px",x=y===0,[S,w]=h.useState(),[C,T]=h.useState(),A=a?hg(c):!0,E=h.useCallback(O=>{if(a&&!hg(O)){o(void 0);return}o(O)},[o,a]),P=h.useCallback(O=>{const G=O===""?void 0:O,[I]=In(O),z=I===0,U={...c,width:G};z&&!x&&(w(c==null?void 0:c.color),T(c==null?void 0:c.style),U.color=void 0,U.style="none"),!z&&x&&(U.color===void 0&&(U.color=S),U.style==="none"&&(U.style=C)),E(U)},[c,x,S,C,E]),L=h.useCallback(O=>{P(`${O}${_}`)},[P,_]),F=et(),M=h.useMemo(()=>F(tV,t),[t,F]);let N=u;r&&(N=l==="__unstable-large"?"116px":"90px");const R=h.useMemo(()=>{const O=!!N&&rV,G=oV(g);return F(nV(),O,G)},[N,F,g]),k=h.useMemo(()=>F(hV()),[F]);return{...v,className:M,colors:n,enableAlpha:i,enableStyle:s,innerWrapperClassName:R,inputWidth:N,isStyleSettable:A,onBorderChange:E,onSliderChange:L,onWidthChange:P,previousStyleSelection:C,sliderClassName:k,value:c,widthUnit:_,widthValue:y,size:g,__experimentalIsRenderedInSidebar:d,__next40pxDefaultSize:f}}const kV=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?p.jsx(Rn,{as:"legend",children:t}):p.jsx(ha,{as:"legend",children:t}):null},MV=(e,t)=>{const{__next40pxDefaultSize:n=!1,colors:r,disableCustomColors:o,disableUnits:i,enableAlpha:s,enableStyle:a,hideLabelFromVision:l,innerWrapperClassName:c,inputWidth:u,isStyleSettable:d,label:f,onBorderChange:m,onSliderChange:v,onWidthChange:g,placeholder:y,__unstablePopoverProps:b,previousStyleSelection:_,showDropdownHeader:x,size:S,sliderClassName:w,value:C,widthUnit:T,widthValue:A,withSlider:E,__experimentalIsRenderedInSidebar:P,...L}=PV(e);return p.jsxs(at,{as:"fieldset",...L,ref:t,children:[p.jsx(kV,{label:f,hideLabelFromVision:l}),p.jsxs(Vo,{spacing:4,className:c,children:[p.jsx(lw,{__next40pxDefaultSize:n,__shouldNotWarnDeprecated36pxSize:!0,prefix:p.jsx(da,{marginRight:1,marginBottom:0,children:p.jsx(CV,{border:C,colors:r,__unstablePopoverProps:b,disableCustomColors:o,enableAlpha:s,enableStyle:a,isStyleSettable:d,onChange:m,previousStyleSelection:_,__experimentalIsRenderedInSidebar:P,size:S})}),label:W("Border width"),hideLabelFromVision:!0,min:0,onChange:g,value:(C==null?void 0:C.width)||"",placeholder:y,disableUnits:i,__unstableInputWidth:u,size:S}),E&&p.jsx(Sf,{__nextHasNoMarginBottom:!0,label:W("Border width"),hideLabelFromVision:!0,className:w,initialPosition:0,max:100,min:0,onChange:v,step:["px","%"].includes(T)?1:.1,value:A||void 0,withInputField:!1,__next40pxDefaultSize:n,__shouldNotWarnDeprecated36pxSize:!0})]})]})},mg=Me(MV,"BorderControl"),RV={name:"12ip69d",styles:"background:transparent;display:block;margin:0!important;pointer-events:none;position:absolute;will-change:box-shadow"};function ks(e){const t=`rgba(0, 0, 0, ${e/20})`;return`0 ${e}px ${e*2}px 0
	${t}`}function IV(e){const{active:t,borderRadius:n="inherit",className:r,focus:o,hover:i,isInteractive:s=!1,offset:a=0,value:l=0,...c}=Ee(e,"Elevation"),u=et(),d=h.useMemo(()=>{let f=en(i)?i:l*2,m=en(t)?t:l/2;s||(f=en(i)?i:void 0,m=en(t)?t:void 0);const v=`box-shadow ${Z.transitionDuration} ${Z.transitionTimingFunction}`,g={};return g.Base=V({borderRadius:n,bottom:a,boxShadow:ks(l),opacity:Z.elevationIntensity,left:a,right:a,top:a},V("@media not ( prefers-reduced-motion ){transition:",v,";}",""),"",""),en(f)&&(g.hover=V("*:hover>&{box-shadow:",ks(f),";}","")),en(m)&&(g.active=V("*:active>&{box-shadow:",ks(m),";}","")),en(o)&&(g.focus=V("*:focus>&{box-shadow:",ks(o),";}","")),u(RV,g.Base,g.hover,g.focus,g.active,r)},[t,n,r,u,o,i,s,a,l]);return{...c,className:d,"aria-hidden":!0}}function jV(e,t){const n=IV(e);return p.jsx(at,{...n,ref:t})}const gg=Me(jV,"Elevation"),Jo=`calc(${Z.radiusLarge} - 1px)`,OV=V("box-shadow:0 0 0 1px ",Z.surfaceBorderColor,";outline:none;",""),DV={name:"1showjb",styles:"border-bottom:1px solid;box-sizing:border-box;&:last-child{border-bottom:none;}"},NV={name:"14n5oej",styles:"border-top:1px solid;box-sizing:border-box;&:first-of-type{border-top:none;}"},LV={name:"13udsys",styles:"height:100%"},FV={name:"6ywzd",styles:"box-sizing:border-box;height:auto;max-height:100%"},BV={name:"c990dr",styles:"box-sizing:border-box;display:block;width:100%"},Pf=V("&:first-of-type{border-top-left-radius:",Jo,";border-top-right-radius:",Jo,";}&:last-of-type{border-bottom-left-radius:",Jo,";border-bottom-right-radius:",Jo,";}",""),kf=V("border-color:",Z.colorDivider,";",""),VV={name:"1t90u8d",styles:"box-shadow:none"},cw={name:"1e1ncky",styles:"border:none"},zV=V("border-radius:",Jo,";",""),vg=V("padding:",Z.cardPaddingXSmall,";",""),Mf={large:V("padding:",Z.cardPaddingLarge,";",""),medium:V("padding:",Z.cardPaddingMedium,";",""),small:V("padding:",Z.cardPaddingSmall,";",""),xSmall:vg,extraSmall:vg},Rf=V("background-color:",J.ui.backgroundDisabled,";",""),$V=V("background-color:",Z.surfaceColor,";color:",J.gray[900],";position:relative;","");Z.surfaceBackgroundColor;function GV({borderBottom:e,borderLeft:t,borderRight:n,borderTop:r}){const o=`1px solid ${Z.surfaceBorderColor}`;return V({borderBottom:e?o:void 0,borderLeft:t?o:void 0,borderRight:n?o:void 0,borderTop:r?o:void 0},"","")}const UV=V("",""),HV=V("background:",Z.surfaceBackgroundTintColor,";",""),WV=V("background:",Z.surfaceBackgroundTertiaryColor,";",""),uw=e=>[e,e].join(" "),KV=e=>["90deg",[Z.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),qV=e=>[[Z.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),ZV=e=>[`linear-gradient( ${KV(e)} ) center`,`linear-gradient( ${qV(e)} ) center`,Z.surfaceBorderBoldColor].join(","),XV=(e,t)=>V("background:",ZV(t),";background-size:",uw(e),";",""),YV=[`${Z.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(","),JV=["90deg",`${Z.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(","),QV=[`linear-gradient( ${YV} )`,`linear-gradient( ${JV} )`].join(","),ez=e=>V("background:",Z.surfaceBackgroundColor,";background-image:",QV,";background-size:",uw(e),";",""),tz=(e,t,n)=>{switch(e){case"dotted":return XV(t,n);case"grid":return ez(t);case"primary":return UV;case"secondary":return HV;case"tertiary":return WV}};function nz(e){const{backgroundSize:t=12,borderBottom:n=!1,borderLeft:r=!1,borderRight:o=!1,borderTop:i=!1,className:s,variant:a="primary",...l}=Ee(e,"Surface"),c=et(),u=h.useMemo(()=>{const d={borders:GV({borderBottom:n,borderLeft:r,borderRight:o,borderTop:i})};return c($V,d.borders,tz(a,`${t}px`,`${t-1}px`),s)},[t,n,r,o,i,s,c,a]);return{...l,className:u}}function rz({elevation:e,isElevated:t,...n}){const r={...n};let o=e;if(t){var i;Mt("Card isElevated prop",{since:"5.9",alternative:"elevation"}),(i=o)!==null&&i!==void 0||(o=2)}return typeof o<"u"&&(r.elevation=o),r}function oz(e){const{className:t,elevation:n=0,isBorderless:r=!1,isRounded:o=!0,size:i="medium",...s}=Ee(rz(e),"Card"),a=et(),l=h.useMemo(()=>a(OV,r&&VV,o&&zV,t),[t,a,r,o]);return{...nz({...s,className:l}),elevation:n,isBorderless:r,isRounded:o,size:i}}function iz(e,t){const{children:n,elevation:r,isBorderless:o,isRounded:i,size:s,...a}=oz(e),l=i?Z.radiusLarge:0,c=et(),u=h.useMemo(()=>c(V({borderRadius:l},"","")),[c,l]),d=h.useMemo(()=>{const f={size:s,isBorderless:o};return{CardBody:f,CardHeader:f,CardFooter:f}},[o,s]);return p.jsx(fy,{value:d,children:p.jsxs(at,{...a,ref:t,children:[p.jsx(at,{className:c(LV),children:n}),p.jsx(gg,{className:u,isInteractive:!1,value:r?1:0}),p.jsx(gg,{className:u,isInteractive:!1,value:r})]})})}const dw=Me(iz,"Card"),sz=V("@media only screen and ( min-device-width: 40em ){&::-webkit-scrollbar{height:12px;width:12px;}&::-webkit-scrollbar-track{background-color:transparent;}&::-webkit-scrollbar-track{background:",Z.colorScrollbarTrack,";border-radius:8px;}&::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:",Z.colorScrollbarThumb,";border:2px solid rgba( 0, 0, 0, 0 );border-radius:7px;}&:hover::-webkit-scrollbar-thumb{background-color:",Z.colorScrollbarThumbHover,";}}",""),az={name:"13udsys",styles:"height:100%"},lz={name:"7zq9w",styles:"scroll-behavior:smooth"},cz={name:"q33xhg",styles:"overflow-x:auto;overflow-y:hidden"},uz={name:"103x71s",styles:"overflow-x:hidden;overflow-y:auto"},dz={name:"umwchj",styles:"overflow-y:auto"};function fz(e){const{className:t,scrollDirection:n="y",smoothScroll:r=!1,...o}=Ee(e,"Scrollable"),i=et(),s=h.useMemo(()=>i(az,sz,r&&lz,n==="x"&&cz,n==="y"&&uz,n==="auto"&&dz,t),[t,i,n,r]);return{...o,className:s}}function pz(e,t){const n=fz(e);return p.jsx(at,{...n,ref:t})}const hz=Me(pz,"Scrollable");function mz(e){const{className:t,isScrollable:n=!1,isShady:r=!1,size:o="medium",...i}=Ee(e,"CardBody"),s=et(),a=h.useMemo(()=>s(FV,Pf,Mf[o],r&&Rf,"components-card__body",t),[t,s,r,o]);return{...i,className:a,isScrollable:n}}function gz(e,t){const{isScrollable:n,...r}=mz(e);return n?p.jsx(hz,{...r,ref:t}):p.jsx(at,{...r,ref:t})}const fw=Me(gz,"CardBody"),bg={vertical:{start:"marginLeft",end:"marginRight"},horizontal:{start:"marginTop",end:"marginBottom"}},vz=({"aria-orientation":e="horizontal",margin:t,marginStart:n,marginEnd:r})=>V(Ye({[bg[e].start]:Y(n??t),[bg[e].end]:Y(r??t)})(),"","");var bz={name:"1u4hpl4",styles:"display:inline"};const yz=({"aria-orientation":e="horizontal"})=>e==="vertical"?bz:void 0,xz=({"aria-orientation":e="horizontal"})=>V({[e==="vertical"?"borderRight":"borderBottom"]:"1px solid currentColor"},"",""),wz=({"aria-orientation":e="horizontal"})=>V({height:e==="vertical"?"auto":0,width:e==="vertical"?0:"auto"},"",""),Sz=ne("hr",{target:"e19on6iw0"})("border:0;margin:0;",yz," ",xz," ",wz," ",vz,";");function _z(e,t){const n=Ee(e,"Divider");return p.jsx(jA,{render:p.jsx(Sz,{}),...n,ref:t})}const Cz=Me(_z,"Divider");function Tz(e){const{className:t,...n}=Ee(e,"CardDivider"),r=et(),o=h.useMemo(()=>r(BV,kf,"components-card__divider",t),[t,r]);return{...n,className:o}}function Az(e,t){const n=Tz(e);return p.jsx(Cz,{...n,ref:t})}const Ez=Me(Az,"CardDivider");function Pz(e){const{className:t,justify:n,isBorderless:r=!1,isShady:o=!1,size:i="medium",...s}=Ee(e,"CardFooter"),a=et(),l=h.useMemo(()=>a(NV,Pf,kf,Mf[i],r&&cw,o&&Rf,"components-card__footer",t),[t,a,r,o,i]);return{...s,className:l,justify:n}}function kz(e,t){const n=Pz(e);return p.jsx(De,{...n,ref:t})}const Mz=Me(kz,"CardFooter");function Rz(e){const{className:t,isBorderless:n=!1,isShady:r=!1,size:o="medium",...i}=Ee(e,"CardHeader"),s=et(),a=h.useMemo(()=>s(DV,Pf,kf,Mf[o],n&&cw,r&&Rf,"components-card__header",t),[t,s,n,r,o]);return{...i,className:a}}function Iz(e,t){const n=Rz(e);return p.jsx(De,{...n,ref:t})}const jz=Me(Iz,"CardHeader"),Oz=({__next40pxDefaultSize:e})=>!e&&V("height:28px;padding-left:",Y(1),";padding-right:",Y(1),";",""),Dz=ne(De,{target:"evuatpg0"})("height:38px;padding-left:",Y(2),";padding-right:",Y(2),";",Oz,";");function Nz(e,t){const{value:n,isExpanded:r,instanceId:o,selectedSuggestionIndex:i,className:s,onChange:a,onFocus:l,onBlur:c,...u}=e,[d,f]=h.useState(!1),m=n?n.length+1:0,v=b=>{a&&a({value:b.target.value})},g=b=>{f(!0),l==null||l(b)},y=b=>{f(!1),c==null||c(b)};return p.jsx("input",{ref:t,id:`components-form-token-input-${o}`,type:"text",...u,value:n||"",onChange:v,onFocus:g,onBlur:y,size:m,className:xe(s,"components-form-token-field__input"),autoComplete:"off",role:"combobox","aria-expanded":r,"aria-autocomplete":"list","aria-owns":r?`components-form-token-suggestions-${o}`:void 0,"aria-activedescendant":d&&i!==-1&&r?`components-form-token-suggestions-${o}-${i}`:void 0,"aria-describedby":`components-form-token-suggestions-howto-${o}`})}const Lz=h.forwardRef(Nz),Fz=e=>{e.preventDefault()};function Bz({selectedIndex:e,scrollIntoView:t,match:n,onHover:r,onSelect:o,suggestions:i=[],displayTransform:s,instanceId:a,__experimentalRenderItem:l}){const c=Ma(m=>(e>-1&&t&&m.children[e]&&m.children[e].scrollIntoView({behavior:"instant",block:"nearest",inline:"nearest"}),()=>{}),[e,t]),u=m=>()=>{r==null||r(m)},d=m=>()=>{o==null||o(m)},f=m=>{const v=s(n).toLocaleLowerCase();if(v.length===0)return null;const g=s(m),y=g.toLocaleLowerCase().indexOf(v);return{suggestionBeforeMatch:g.substring(0,y),suggestionMatch:g.substring(y,y+v.length),suggestionAfterMatch:g.substring(y+v.length)}};return p.jsxs("ul",{ref:c,className:"components-form-token-field__suggestions-list",id:`components-form-token-suggestions-${a}`,role:"listbox",children:[i.map((m,v)=>{const g=f(m),y=v===e,b=typeof m=="object"&&(m==null?void 0:m.disabled),_=typeof m=="object"&&"value"in m?m==null?void 0:m.value:s(m),x=xe("components-form-token-field__suggestion",{"is-selected":y});let S;return typeof l=="function"?S=l({item:m}):g?S=p.jsxs("span",{"aria-label":s(m),children:[g.suggestionBeforeMatch,p.jsx("strong",{className:"components-form-token-field__suggestion-match",children:g.suggestionMatch}),g.suggestionAfterMatch]}):S=s(m),p.jsx("li",{id:`components-form-token-suggestions-${a}-${v}`,role:"option",className:x,onMouseDown:Fz,onClick:d(m),onMouseEnter:u(m),"aria-selected":v===e,"aria-disabled":b,children:S},_)}),i.length===0&&p.jsx("li",{className:"components-form-token-field__suggestion is-empty",children:W("No items found")})]})}const Vz=u_(e=>t=>{const[n,r]=h.useState(void 0),o=h.useCallback(i=>r(()=>i!=null&&i.handleFocusOutside?i.handleFocusOutside.bind(i):void 0),[]);return p.jsx("div",{...pv(n),children:p.jsx(e,{ref:o,...t})})},"withFocusOutside"),zz=()=>{},$z=Vz(class extends h.Component{handleFocusOutside(e){this.props.onFocusOutside(e)}render(){return this.props.children}}),Ms=(e,t)=>e===null?-1:t.indexOf(e);function Xr(e){var t;const{__nextHasNoMarginBottom:n=!1,__next40pxDefaultSize:r=!1,value:o,label:i,options:s,onChange:a,onFilterValueChange:l=zz,hideLabelFromVision:c,help:u,allowReset:d=!0,className:f,messages:m={selected:W("Item selected.")},__experimentalRenderItem:v,expandOnFocus:g=!0,placeholder:y}=Bo(e),[b,_]=Za({value:o,onChange:a}),x=s.find(j=>j.value===b),S=(t=x==null?void 0:x.label)!==null&&t!==void 0?t:"",w=lt(Xr,"combobox-control"),[C,T]=h.useState(x||null),[A,E]=h.useState(!1),[P,L]=h.useState(!1),[F,M]=h.useState(""),N=h.useRef(null),R=h.useMemo(()=>{const j=[],X=[],ie=eg(F);return s.forEach(Ce=>{const we=eg(Ce.label).indexOf(ie);we===0?j.push(Ce):we>0&&X.push(Ce)}),j.concat(X)},[F,s]),k=j=>{j.disabled||(_(j.value),uu(m.selected,"assertive"),T(j),M(""),E(!1))},O=(j=1)=>{let ie=Ms(C,R)+j;ie<0?ie=R.length-1:ie>=R.length&&(ie=0),T(R[ie]),E(!0)},G=wx(j=>{let X=!1;if(!j.defaultPrevented){switch(j.code){case"Enter":C&&(k(C),X=!0);break;case"ArrowUp":O(-1),X=!0;break;case"ArrowDown":O(1),X=!0;break;case"Escape":E(!1),T(null),X=!0;break}X&&j.preventDefault()}}),I=()=>{L(!1)},z=()=>{L(!0),g&&E(!0),l(""),M("")},U=()=>{E(!0)},B=()=>{E(!1)},$=j=>{const X=j.value;M(X),l(X),P&&E(!0)},H=()=>{var j;_(null),(j=N.current)==null||j.focus()},q=j=>{j.stopPropagation()};return h.useEffect(()=>{const j=R.length>0,X=Ms(C,R)>0;j&&!X&&T(R[0])},[R,C]),h.useEffect(()=>{const j=R.length>0;if(A){const X=j?Nt(c_("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",R.length),R.length):W("No results.");uu(X,"polite")}},[R,A]),vn({componentName:"ComboboxControl",__next40pxDefaultSize:r,size:void 0}),p.jsx($z,{onFocusOutside:B,children:p.jsx(dt,{__nextHasNoMarginBottom:n,__associatedWPComponentName:"ComboboxControl",className:xe(f,"components-combobox-control"),label:i,id:`components-form-token-input-${w}`,hideLabelFromVision:c,help:u,children:p.jsxs("div",{className:"components-combobox-control__suggestions-container",tabIndex:-1,onKeyDown:G,children:[p.jsxs(Dz,{__next40pxDefaultSize:r,children:[p.jsx(ke,{children:p.jsx(Lz,{className:"components-combobox-control__input",instanceId:w,ref:N,placeholder:y,value:A?F:S,onFocus:z,onBlur:I,onClick:U,isExpanded:A,selectedSuggestionIndex:Ms(C,R),onChange:$})}),d&&p.jsx(ft,{size:"small",icon:rD,disabled:!b,onClick:H,onKeyDown:q,label:W("Reset")})]}),A&&p.jsx(Bz,{instanceId:w,match:{label:F,value:""},displayTransform:j=>j.label,suggestions:R,selectedIndex:Ms(C,R),onHover:T,onSelect:k,scrollIntoView:!0,__experimentalRenderItem:v})]})})})}const gu={SLIDE_AMOUNT:"2px",DURATION:"400ms",EASING:"cubic-bezier( 0.16, 1, 0.3, 1 )"},nn={compact:Z.controlPaddingXSmall,small:Z.controlPaddingXSmall,default:Z.controlPaddingX},Gz=(e,t)=>{const n={compact:{[t]:32,paddingInlineStart:nn.compact,paddingInlineEnd:nn.compact+ui},default:{[t]:40,paddingInlineStart:nn.default,paddingInlineEnd:nn.default+ui},small:{[t]:24,paddingInlineStart:nn.small,paddingInlineEnd:nn.small+ui}};return n[e]||n.default},Uz=e=>{const n={compact:{paddingInlineStart:nn.compact,paddingInlineEnd:nn.compact-6},default:{paddingInlineStart:nn.default,paddingInlineEnd:nn.default-6},small:{paddingInlineStart:nn.small,paddingInlineEnd:nn.small-6}};return n[e]||n.default},Hz=ne(GE,{shouldForwardProp:e=>e!=="hasCustomRenderProp",target:"e1p3eej77"})(({size:e,hasCustomRenderProp:t})=>V("display:block;background-color:",J.theme.background,";border:none;color:",J.theme.foreground,";cursor:pointer;font-family:inherit;text-align:start;user-select:none;width:100%;&[data-focus-visible]{outline:none;}",Gz(e,t?"minHeight":"height")," ",!t&&pw," ",uf({inputSize:e}),";",""),""),Wz=Tk({"0%":{opacity:0,transform:`translateY(-${gu.SLIDE_AMOUNT})`},"100%":{opacity:1,transform:"translateY(0)"}}),Kz=ne(rP,{target:"e1p3eej76"})("display:flex;flex-direction:column;background-color:",J.theme.background,";border-radius:",Z.radiusSmall,";border:1px solid ",J.theme.foreground,";box-shadow:",Z.elevationMedium,";z-index:1000000;max-height:min( var( --popover-available-height, 400px ), 400px );overflow:auto;overscroll-behavior:contain;min-width:min-content;&[data-open]{@media not ( prefers-reduced-motion ){animation-duration:",gu.DURATION,";animation-timing-function:",gu.EASING,";animation-name:",Wz,";will-change:transform,opacity;}}&[data-focus-visible]{outline:none;}"),qz=ne(XE,{target:"e1p3eej75"})(({size:e})=>V("cursor:default;display:flex;align-items:center;justify-content:space-between;font-size:",Z.fontSize,";line-height:28px;padding-block:",Y(2),";scroll-margin:",Y(1),";user-select:none;&[aria-disabled='true']{cursor:not-allowed;}&[data-active-item]{background-color:",J.theme.gray[300],";}",Uz(e),";",""),""),pw={name:"1h52dri",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap"},Zz=ne("div",{target:"e1p3eej74"})(pw,";"),Xz=ne("span",{target:"e1p3eej73"})("color:",J.theme.gray[600],";margin-inline-start:",Y(2),";"),hw=ne("div",{target:"e1p3eej72"})("display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;flex:1;column-gap:",Y(4),";"),Yz=ne("span",{target:"e1p3eej71"})("color:",J.theme.gray[600],";text-align:initial;line-height:",Z.fontLineHeightBase,";padding-inline-end:",Y(1),";margin-block:",Y(1),";"),Jz=ne(WE,{target:"e1p3eej70"})("display:flex;align-items:center;margin-inline-start:",Y(2),";align-self:start;margin-block-start:2px;font-size:0;",hw,"~&,&:not(:empty){font-size:24px;}"),mw=h.createContext(void 0);function Qz(e){return(Array.isArray(e)?e.length===0:e==null)?W("Select an item"):Array.isArray(e)?e.length===1?e[0]:Nt(W("%s items selected"),e.length):e}const e$=({renderSelectedValue:e,size:t="default",store:n,...r})=>{const{value:o}=Xe(n),i=h.useMemo(()=>e??Qz,[e]);return p.jsx(Hz,{...r,size:t,hasCustomRenderProp:!!e,store:n,children:i(o)})};function t$(e){const{children:t,hideLabelFromVision:n=!1,label:r,size:o,store:i,className:s,isLegacy:a=!1,...l}=e,c=h.useCallback(d=>{a&&d.stopPropagation()},[a]),u=h.useMemo(()=>({store:i,size:o}),[i,o]);return p.jsxs("div",{className:s,children:[p.jsx(QE,{store:i,render:n?p.jsx(Rn,{}):p.jsx(dt.VisualLabel,{as:"div"}),children:r}),p.jsxs(df,{__next40pxDefaultSize:!0,size:o,suffix:p.jsx(Vx,{}),children:[p.jsx(e$,{...l,size:o,store:i,showOnKeyDown:!a}),p.jsx(Kz,{gutter:12,store:i,sameWidth:!0,slide:!1,onKeyDown:c,flip:!a,children:p.jsx(mw.Provider,{value:u,children:t})})]})]})}function gw({children:e,...t}){var n;const r=h.useContext(mw);return p.jsxs(qz,{store:r==null?void 0:r.store,size:(n=r==null?void 0:r.size)!==null&&n!==void 0?n:"default",...t,children:[e??t.value,p.jsx(Jz,{children:p.jsx(ll,{icon:W0})})]})}gw.displayName="CustomSelectControlV2.Item";function n$({__experimentalShowSelectedHint:e,...t}){return{showSelectedHint:e,...t}}function yg({__experimentalHint:e,...t}){return{hint:e,...t}}function r$(e,t){return t||Nt(W("Currently selected: %s"),e)}function vw(e){var b;const{__next40pxDefaultSize:t=!1,__shouldNotWarnDeprecated36pxSize:n,describedBy:r,options:o,onChange:i,size:s="default",value:a,className:l,showSelectedHint:c=!1,...u}=n$(e);vn({componentName:"CustomSelectControl",__next40pxDefaultSize:t,size:s,__shouldNotWarnDeprecated36pxSize:n});const d=lt(vw,"custom-select-control__description"),f=NE({async setValue(_){const x=o.find(C=>C.name===_);if(!i||!x)return;await Promise.resolve();const S=f.getState(),w={highlightedIndex:S.renderedItems.findIndex(C=>C.value===_),inputValue:"",isOpen:S.open,selectedItem:x,type:""};i(w)},value:a==null?void 0:a.name,defaultValue:(b=o[0])==null?void 0:b.name}),m=o.map(yg).map(({name:_,key:x,hint:S,style:w,className:C})=>{const T=p.jsxs(hw,{children:[p.jsx("span",{children:_}),p.jsx(Yz,{className:"components-custom-select-control__item-hint",children:S})]});return p.jsx(gw,{value:_,children:S?T:_,style:w,className:xe(C,"components-custom-select-control__item",{"has-hint":S})},x)}),v=Xe(f,"value"),g=()=>{var x,S;const _=(S=(x=o==null?void 0:o.map(yg))==null?void 0:x.find(({name:w})=>v===w))==null?void 0:S.hint;return p.jsxs(Zz,{children:[v,_&&p.jsx(Xz,{className:"components-custom-select-control__hint",children:_})]})},y=t&&s==="default"||s==="__unstable-large"?"default":!t&&s==="default"?"compact":s;return p.jsxs(p.Fragment,{children:[p.jsx(t$,{"aria-describedby":d,renderSelectedValue:c?g:void 0,size:y,store:f,className:xe("components-custom-select-control",l),isLegacy:!0,...u,children:m}),p.jsx(Rn,{children:p.jsx("span",{id:d,children:r$(v,r)})})]})}function o$(e){return/^[\d\.]+(px|em|rem|vw|vh|%|svw|lvw|dvw|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax)?$/i.test(String(e))}function bw(e){const[t,...n]=e;if(!t)return null;const[,r]=In(t.size);return n.every(i=>{const[,s]=In(i.size);return s===r})?r:null}const i$=ne("fieldset",{target:"e8tqeku4"})({name:"k2q51s",styles:"border:0;margin:0;padding:0;display:contents"}),s$=ne(Vo,{target:"e8tqeku3"})("height:",Y(4),";"),a$=ne(ft,{target:"e8tqeku2"})("margin-top:",Y(-1),";"),l$=ne(dt.VisualLabel,{target:"e8tqeku1"})("display:flex;gap:",Y(1),";justify-content:flex-start;margin-bottom:0;"),c$=ne("span",{target:"e8tqeku0"})("color:",J.gray[700],";"),xg={key:"default",name:W("Default"),value:void 0},pc={key:"custom",name:W("Custom")},u$=e=>{var t;const{__next40pxDefaultSize:n,fontSizes:r,value:o,disableCustomFontSizes:i,size:s,onChange:a,onSelectCustom:l}=e,c=!!bw(r),u=[xg,...r.map(f=>{let m;if(c){const[v]=In(f.size);v!==void 0&&(m=String(v))}else o$(f.size)&&(m=String(f.size));return{key:f.slug,name:f.name||f.slug,value:f.size,hint:m}}),...i?[]:[pc]],d=o?(t=u.find(f=>f.value===o))!==null&&t!==void 0?t:pc:xg;return p.jsx(vw,{__next40pxDefaultSize:n,__shouldNotWarnDeprecated36pxSize:!0,className:"components-font-size-picker__select",label:W("Font size"),hideLabelFromVision:!0,describedBy:Nt(W("Currently selected font size: %s"),d.name),options:u,value:d,showSelectedHint:!0,onChange:({selectedItem:f})=>{f===pc?l():a(f.value)},size:s})},d$=[W("S"),W("M"),W("L"),W("XL"),W("XXL")],yw=[W("Small"),W("Medium"),W("Large"),W("Extra Large"),W("Extra Extra Large")],f$=e=>{const{fontSizes:t,value:n,__next40pxDefaultSize:r,size:o,onChange:i}=e;return p.jsx(ci,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:r,__shouldNotWarnDeprecated36pxSize:!0,label:W("Font size"),hideLabelFromVision:!0,value:n,onChange:i,isBlock:!0,size:o,children:t.map((s,a)=>p.jsx(tr,{value:s.size,label:d$[a],"aria-label":s.name||yw[a],showTooltip:!0},s.slug))})},p$=["px","em","rem","vw","vh"],h$=5,m$=(e,t)=>{var A;const{__next40pxDefaultSize:n=!1,fallbackFontSize:r,fontSizes:o=[],disableCustomFontSizes:i=!1,onChange:s,size:a="default",units:l=p$,value:c,withSlider:u=!1,withReset:d=!0}=e,f=bV({availableUnits:l}),m=o.find(E=>E.size===c),v=!!c&&!m,[g,y]=h.useState(v);let b;!i&&g?b="custom":b=o.length>h$?"select":"togglegroup";const _=h.useMemo(()=>{switch(b){case"custom":return W("Custom");case"togglegroup":if(m)return m.name||yw[o.indexOf(m)];break;case"select":const E=bw(o);if(E)return`(${E})`;break}return""},[b,m,o]);if(o.length===0&&i)return null;const x=typeof c=="string"||typeof((A=o[0])==null?void 0:A.size)=="string",[S,w]=In(c,f),C=!!w&&["em","rem","vw","vh"].includes(w),T=c===void 0;return vn({componentName:"FontSizePicker",__next40pxDefaultSize:n,size:a}),p.jsxs(i$,{ref:t,className:"components-font-size-picker",children:[p.jsx(Rn,{as:"legend",children:W("Font size")}),p.jsx(da,{children:p.jsxs(s$,{className:"components-font-size-picker__header",children:[p.jsxs(l$,{"aria-label":`${W("Size")} ${_||""}`,children:[W("Size"),_&&p.jsx(c$,{className:"components-font-size-picker__header__hint",children:_})]}),!i&&p.jsx(a$,{label:W(b==="custom"?"Use size preset":"Set custom size"),icon:uD,onClick:()=>y(!g),isPressed:b==="custom",size:"small"})]})}),p.jsxs("div",{children:[b==="select"&&p.jsx(u$,{__next40pxDefaultSize:n,fontSizes:o,value:c,disableCustomFontSizes:i,size:a,onChange:E=>{E===void 0?s==null||s(void 0):s==null||s(x?E:Number(E),o.find(P=>P.size===E))},onSelectCustom:()=>y(!0)}),b==="togglegroup"&&p.jsx(f$,{fontSizes:o,value:c,__next40pxDefaultSize:n,size:a,onChange:E=>{E===void 0?s==null||s(void 0):s==null||s(x?E:Number(E),o.find(P=>P.size===E))}}),b==="custom"&&p.jsxs(De,{className:"components-font-size-picker__custom-size-control",children:[p.jsx(Re,{isBlock:!0,children:p.jsx(lw,{__next40pxDefaultSize:n,__shouldNotWarnDeprecated36pxSize:!0,label:W("Custom"),labelPosition:"top",hideLabelFromVision:!0,value:c,onChange:E=>{y(!0),E===void 0?s==null||s(void 0):s==null||s(x?E:parseInt(E,10))},size:a,units:x?f:[],min:0})}),u&&p.jsx(Re,{isBlock:!0,children:p.jsx(da,{marginX:2,marginBottom:0,children:p.jsx(Sf,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:n,__shouldNotWarnDeprecated36pxSize:!0,className:"components-font-size-picker__custom-input",label:W("Custom Size"),hideLabelFromVision:!0,value:S,initialPosition:r,withInputField:!1,onChange:E=>{y(!0),E===void 0?s==null||s(void 0):x?s==null||s(E+(w??"px")):s==null||s(E)},min:0,max:C?10:100,step:C?.1:1})})}),d&&p.jsx(Re,{children:p.jsx(ft,{disabled:T,accessibleWhenDisabled:!0,onClick:()=>{s==null||s(void 0)},variant:"secondary",__next40pxDefaultSize:!0,size:a==="__unstable-large"||e.__next40pxDefaultSize?"default":"small",children:W("Reset")})})]})]})]})},Rs=h.forwardRef(m$),g$=()=>{};function v$(e,t){const{className:n,checked:r,id:o,disabled:i,onChange:s=g$,...a}=e,l=xe("components-form-toggle",n,{"is-checked":r,"is-disabled":i});return p.jsxs("span",{className:l,children:[p.jsx("input",{className:"components-form-toggle__input",id:o,type:"checkbox",checked:r,onChange:s,disabled:i,...a,ref:t}),p.jsx("span",{className:"components-form-toggle__track"}),p.jsx("span",{className:"components-form-toggle__thumb"})]})}const b$=h.forwardRef(v$),wg=()=>{};function y$(e,t){const n=typeof e=="string"?e:io(e);h.useEffect(()=>{n&&uu(n,t)},[n,t])}function x$(e){switch(e){case"success":case"warning":case"info":return"polite";default:return"assertive"}}function w$(e){switch(e){case"warning":return W("Warning notice");case"info":return W("Information notice");case"error":return W("Error notice");default:return W("Notice")}}function S$({className:e,status:t="info",children:n,spokenMessage:r=n,onRemove:o=wg,isDismissible:i=!0,actions:s=[],politeness:a=x$(t),__unstableHTML:l,onDismiss:c=wg}){y$(r,a);const u=xe(e,"components-notice","is-"+t,{"is-dismissible":i});l&&typeof n=="string"&&(n=p.jsx(ov,{children:n}));const d=()=>{c(),o()};return p.jsxs("div",{className:u,children:[p.jsx(Rn,{children:w$(t)}),p.jsxs("div",{className:"components-notice__content",children:[n,p.jsx("div",{className:"components-notice__actions",children:s.map(({className:f,label:m,isPrimary:v,variant:g,noDefaultClasses:y=!1,onClick:b,url:_},x)=>{let S=g;return g!=="primary"&&!y&&(S=_?"link":"secondary"),typeof S>"u"&&v&&(S="primary"),p.jsx(ft,{__next40pxDefaultSize:!0,href:_,variant:S,onClick:_?void 0:b,className:xe("components-notice__action",f),children:m},x)})})]}),i&&p.jsx(ft,{size:"small",className:"components-notice__dismiss",icon:K0,label:W("Close"),onClick:d})]})}function Sg(e,t){return`${e}-${t}-option-description`}function hc(e,t){return`${e}-${t}`}function _g(e){return`${e}__help`}function xw(e){const{label:t,className:n,selected:r,help:o,onChange:i,hideLabelFromVision:s,options:a=[],id:l,...c}=e,u=lt(xw,"inspector-radio-control",l),d=f=>i(f.target.value);return a!=null&&a.length?p.jsxs("fieldset",{id:u,className:xe(n,"components-radio-control"),"aria-describedby":o?_g(u):void 0,children:[s?p.jsx(Rn,{as:"legend",children:t}):p.jsx(dt.VisualLabel,{as:"legend",children:t}),p.jsx(jr,{spacing:3,className:xe("components-radio-control__group-wrapper",{"has-help":!!o}),children:a.map((f,m)=>p.jsxs("div",{className:"components-radio-control__option",children:[p.jsx("input",{id:hc(u,m),className:"components-radio-control__input",type:"radio",name:u,value:f.value,onChange:d,checked:f.value===r,"aria-describedby":f.description?Sg(u,m):void 0,...c}),p.jsx("label",{className:"components-radio-control__label",htmlFor:hc(u,m),children:f.label}),f.description?p.jsx(cu,{__nextHasNoMarginBottom:!0,id:Sg(u,m),className:"components-radio-control__option-description",children:f.description}):null]},hc(u,m)))}),!!o&&p.jsx(cu,{__nextHasNoMarginBottom:!0,id:_g(u),className:"components-base-control__help",children:o})]}):null}const Cg=e=>{var t;if(!(typeof e>"u"||e===null))return(t=e.match(/^tab-panel-[0-9]*-(.*)/))==null?void 0:t[1]},_$=({className:e,children:t,tabs:n,selectOnMove:r=!0,initialTabName:o,orientation:i="horizontal",activeClass:s="is-active",onSelect:a},l)=>{const c=lt(ww,"tab-panel"),u=h.useCallback(y=>{if(!(typeof y>"u"))return`${c}-${y}`},[c]),d=SE({setSelectedId:y=>{if(typeof y>"u"||y===null)return;const b=n.find(x=>u(x.name)===y);if(b!=null&&b.disabled||b===v)return;const _=Cg(y);typeof _>"u"||a==null||a(_)},orientation:i,selectOnMove:r,defaultSelectedId:u(o),rtl:fn()}),f=Cg(Xe(d,"selectedId")),m=h.useCallback(y=>{d.setState("selectedId",u(y))},[u,d]),v=n.find(({name:y})=>y===f),g=mv(f);return h.useEffect(()=>{g!==f&&f===o&&f&&(a==null||a(f))},[f,o,a,g]),h.useLayoutEffect(()=>{if(v)return;const y=n.find(b=>b.name===o);if(!(o&&!y))if(y&&!y.disabled)m(y.name);else{const b=n.find(_=>!_.disabled);b&&m(b.name)}},[n,v,o,c,m]),h.useEffect(()=>{if(!(v!=null&&v.disabled))return;const y=n.find(b=>!b.disabled);y&&m(y.name)},[n,v==null?void 0:v.disabled,m,c]),p.jsxs("div",{className:e,ref:l,children:[p.jsx(kE,{store:d,className:"components-tab-panel__tabs",children:n.map(y=>p.jsx(AE,{id:u(y.name),className:xe("components-tab-panel__tabs-item",y.className,{[s]:y.name===f}),disabled:y.disabled,"aria-controls":`${u(y.name)}-view`,render:p.jsx(ft,{__next40pxDefaultSize:!0,icon:y.icon,label:y.icon&&y.title,showTooltip:!!y.icon}),children:!y.icon&&y.title},y.name))}),v&&p.jsx(IE,{id:`${u(v.name)}-view`,store:d,tabId:u(v.name),className:"components-tab-panel__tab-content",children:t(v)})]})},ww=h.forwardRef(_$);function C$(e,t){const{__nextHasNoMarginBottom:n,__next40pxDefaultSize:r=!1,label:o,hideLabelFromVision:i,value:s,help:a,id:l,className:c,onChange:u,type:d="text",...f}=e,m=lt(sn,"inspector-text-control",l),v=g=>u(g.target.value);return vn({componentName:"TextControl",size:void 0,__next40pxDefaultSize:r}),p.jsx(dt,{__nextHasNoMarginBottom:n,__associatedWPComponentName:"TextControl",label:o,hideLabelFromVision:i,id:m,help:a,className:c,children:p.jsx("input",{className:xe("components-text-control__input",{"is-next-40px-default-size":r}),type:d,id:m,value:s,onChange:v,"aria-describedby":a?m+"__help":void 0,ref:t,...f})})}const sn=h.forwardRef(C$),T$=V("box-shadow:0 0 0 transparent;border-radius:",Z.radiusSmall,";border:",Z.borderWidth," solid ",J.ui.border,";@media not ( prefers-reduced-motion ){transition:box-shadow 0.1s linear;}",""),A$=V("border-color:",J.theme.accent,";box-shadow:0 0 0 calc( ",Z.borderWidthFocus," - ",Z.borderWidth," ) ",J.theme.accent,";outline:2px solid transparent;",""),E$=ne("textarea",{target:"e1w5nnrk0"})("width:100%;display:block;font-family:",uo("default.fontFamily"),";line-height:20px;padding:9px 11px;",T$,";font-size:",uo("mobileTextMinFontSize"),";",qk("small"),"{font-size:",uo("default.fontSize"),";}&:focus{",A$,";}&::-webkit-input-placeholder{color:",J.ui.darkGrayPlaceholder,";}&::-moz-placeholder{opacity:1;color:",J.ui.darkGrayPlaceholder,";}&:-ms-input-placeholder{color:",J.ui.darkGrayPlaceholder,";}.is-dark-theme &{&::-webkit-input-placeholder{color:",J.ui.lightGrayPlaceholder,";}&::-moz-placeholder{opacity:1;color:",J.ui.lightGrayPlaceholder,";}&:-ms-input-placeholder{color:",J.ui.lightGrayPlaceholder,";}}");function P$(e,t){const{__nextHasNoMarginBottom:n,label:r,hideLabelFromVision:o,value:i,help:s,onChange:a,rows:l=4,className:c,...u}=e,f=`inspector-textarea-control-${lt(Sw)}`,m=v=>a(v.target.value);return p.jsx(dt,{__nextHasNoMarginBottom:n,__associatedWPComponentName:"TextareaControl",label:r,hideLabelFromVision:o,id:f,help:s,className:c,children:p.jsx(E$,{className:"components-textarea-control__input",id:f,rows:l,onChange:m,"aria-describedby":s?f+"__help":void 0,value:i,ref:t,...u})})}const Sw=h.forwardRef(P$);function mc(e){const{children:t}=e;return p.jsxs("div",{className:"components-tip",children:[p.jsx(ll,{icon:dD}),p.jsx("p",{children:t})]})}function k$({__nextHasNoMarginBottom:e,label:t,checked:n,help:r,className:o,onChange:i,disabled:s},a){function l(g){i(g.target.checked)}const u=`inspector-toggle-control-${lt(nr)}`,f=et()("components-toggle-control",o,!e&&V({marginBottom:Y(3)},"",""));e||Mt("Bottom margin styles for wp.components.ToggleControl",{since:"6.7",version:"7.0",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version."});let m,v;return r&&(typeof r=="function"?n!==void 0&&(v=r(n)):v=r,v&&(m=u+"__help")),p.jsx(dt,{id:u,help:v&&p.jsx("span",{className:"components-toggle-control__help",children:v}),className:f,__nextHasNoMarginBottom:!0,children:p.jsxs(Vo,{justify:"flex-start",spacing:2,children:[p.jsx(b$,{id:u,checked:n,onChange:l,"aria-describedby":m,disabled:s,ref:a}),p.jsx(ke,{as:"label",htmlFor:u,className:xe("components-toggle-control__label",{"is-disabled":s}),children:t})]})})}const nr=h.forwardRef(k$),gc=[{name:"Small",size:30,slug:"small"},{name:"Normal",size:40,slug:"normal"},{name:"Big",size:60,slug:"big"}],vc=[{value:"400",label:"Regular"},{value:"700",label:"Bold"}],M$=[{name:"Small",size:10,slug:"small"},{name:"Normal",size:13,slug:"normal"},{name:"Big",size:16,slug:"big"}],R$=[{value:"200",label:"Thin"},{value:"400",label:"Regular"},{value:"500",label:"Semibold"},{value:"700",label:"Bold"},{value:"900",label:"Black"}],I$=[{label:"UTC -12:00",value:"UTC-12:00"},{label:"UTC -11:30",value:"UTC-11:30"},{label:"UTC -11:00",value:"UTC-11:00"},{label:"UTC -10:30",value:"UTC-10:30"},{label:"UTC -10:00",value:"UTC-10:00"},{label:"UTC -9:30",value:"UTC-9:30"},{label:"UTC -9:00",value:"UTC-9:00"},{label:"UTC -8:30",value:"UTC-8:30"},{label:"UTC -8:00",value:"UTC-8:00"},{label:"UTC -7:30",value:"UTC-7:30"},{label:"UTC -7:00",value:"UTC-7:00"},{label:"UTC -6:30",value:"UTC-6:30"},{label:"UTC -6:00",value:"UTC-6:00"},{label:"UTC -5:30",value:"UTC-5:30"},{label:"UTC -5:00",value:"UTC-5:00"},{label:"UTC -4:30",value:"UTC-4:30"},{label:"UTC -4:00",value:"UTC-4:00"},{label:"UTC -3:30",value:"UTC-3:30"},{label:"UTC -3:00",value:"UTC-3:00"},{label:"UTC -2:30",value:"UTC-2:30"},{label:"UTC -2:00",value:"UTC-2:00"},{label:"UTC -1:30",value:"UTC-1:30"},{label:"UTC -1:00",value:"UTC-1:00"},{label:"UTC +0:00",value:"UTC+0:00"},{label:"UTC +1:00",value:"UTC+1:00"},{label:"UTC +1:30",value:"UTC+1:30"},{label:"UTC +2:00",value:"UTC+2:00"},{label:"UTC +2:30",value:"UTC+2:30"},{label:"UTC +3:00",value:"UTC+3:00"},{label:"UTC +3:30",value:"UTC+3:30"},{label:"UTC +4:00",value:"UTC+4:00"},{label:"UTC +4:30",value:"UTC+4:30"},{label:"UTC +5:00",value:"UTC+5:00"},{label:"UTC +5:30",value:"UTC+5:30"},{label:"UTC +6:00",value:"UTC+6:00"},{label:"UTC +6:30",value:"UTC+6:30"},{label:"UTC +7:00",value:"UTC+7:00"},{label:"UTC +7:30",value:"UTC+7:30"},{label:"UTC +8:00",value:"UTC+8:00"},{label:"UTC +8:30",value:"UTC+8:30"},{label:"UTC +9:00",value:"UTC+9:00"},{label:"UTC +9:30",value:"UTC+9:30"},{label:"UTC +10:00",value:"UTC+:0010"},{label:"UTC +10:30",value:"UTC+10:30"},{label:"UTC +11:00",value:"UTC+11:00"},{label:"UTC +11:30",value:"UTC+11:30"},{label:"UTC +12:00",value:"UTC+12:00"}],j$=[{value:"Africa/Abidjan",label:"Africa/Abidjan (GMT)"},{value:"Africa/Accra",label:"Africa/Accra (GMT)"},{value:"Africa/Addis_Ababa",label:"Africa/Addis_Ababa (GMT+3)"},{value:"Africa/Algiers",label:"Africa/Algiers (GMT+1)"},{value:"Africa/Asmera",label:"Africa/Asmera (GMT+3)"},{value:"Africa/Bamako",label:"Africa/Bamako (GMT)"},{value:"Africa/Bangui",label:"Africa/Bangui (GMT+1)"},{value:"Africa/Banjul",label:"Africa/Banjul (GMT)"},{value:"Africa/Bissau",label:"Africa/Bissau (GMT)"},{value:"Africa/Blantyre",label:"Africa/Blantyre (GMT+2)"},{value:"Africa/Brazzaville",label:"Africa/Brazzaville (GMT+1)"},{value:"Africa/Bujumbura",label:"Africa/Bujumbura (GMT+2)"},{value:"Africa/Cairo",label:"Africa/Cairo (GMT+3)"},{value:"Africa/Casablanca",label:"Africa/Casablanca (GMT+1)"},{value:"Africa/Ceuta",label:"Africa/Ceuta (GMT+2)"},{value:"Africa/Conakry",label:"Africa/Conakry (GMT)"},{value:"Africa/Dakar",label:"Africa/Dakar (GMT)"},{value:"Africa/Dar_es_Salaam",label:"Africa/Dar_es_Salaam (GMT+3)"},{value:"Africa/Djibouti",label:"Africa/Djibouti (GMT+3)"},{value:"Africa/Douala",label:"Africa/Douala (GMT+1)"},{value:"Africa/El_Aaiun",label:"Africa/El_Aaiun (GMT+1)"},{value:"Africa/Freetown",label:"Africa/Freetown (GMT)"},{value:"Africa/Gaborone",label:"Africa/Gaborone (GMT+2)"},{value:"Africa/Harare",label:"Africa/Harare (GMT+2)"},{value:"Africa/Johannesburg",label:"Africa/Johannesburg (GMT+2)"},{value:"Africa/Juba",label:"Africa/Juba (GMT+2)"},{value:"Africa/Kampala",label:"Africa/Kampala (GMT+3)"},{value:"Africa/Khartoum",label:"Africa/Khartoum (GMT+2)"},{value:"Africa/Kigali",label:"Africa/Kigali (GMT+2)"},{value:"Africa/Kinshasa",label:"Africa/Kinshasa (GMT+1)"},{value:"Africa/Lagos",label:"Africa/Lagos (GMT+1)"},{value:"Africa/Libreville",label:"Africa/Libreville (GMT+1)"},{value:"Africa/Lome",label:"Africa/Lome (GMT)"},{value:"Africa/Luanda",label:"Africa/Luanda (GMT+1)"},{value:"Africa/Lubumbashi",label:"Africa/Lubumbashi (GMT+2)"},{value:"Africa/Lusaka",label:"Africa/Lusaka (GMT+2)"},{value:"Africa/Malabo",label:"Africa/Malabo (GMT+1)"},{value:"Africa/Maputo",label:"Africa/Maputo (GMT+2)"},{value:"Africa/Maseru",label:"Africa/Maseru (GMT+2)"},{value:"Africa/Mbabane",label:"Africa/Mbabane (GMT+2)"},{value:"Africa/Mogadishu",label:"Africa/Mogadishu (GMT+3)"},{value:"Africa/Monrovia",label:"Africa/Monrovia (GMT)"},{value:"Africa/Nairobi",label:"Africa/Nairobi (GMT+3)"},{value:"Africa/Ndjamena",label:"Africa/Ndjamena (GMT+1)"},{value:"Africa/Niamey",label:"Africa/Niamey (GMT+1)"},{value:"Africa/Nouakchott",label:"Africa/Nouakchott (GMT)"},{value:"Africa/Ouagadougou",label:"Africa/Ouagadougou (GMT)"},{value:"Africa/Porto-Novo",label:"Africa/Porto-Novo (GMT+1)"},{value:"Africa/Sao_Tome",label:"Africa/Sao_Tome (GMT)"},{value:"Africa/Tripoli",label:"Africa/Tripoli (GMT+2)"},{value:"Africa/Tunis",label:"Africa/Tunis (GMT+1)"},{value:"Africa/Windhoek",label:"Africa/Windhoek (GMT+2)"},{value:"America/Adak",label:"America/Adak (GMT-9)"},{value:"America/Anchorage",label:"America/Anchorage (GMT-8)"},{value:"America/Anguilla",label:"America/Anguilla (GMT-4)"},{value:"America/Antigua",label:"America/Antigua (GMT-4)"},{value:"America/Araguaina",label:"America/Araguaina (GMT-3)"},{value:"America/Argentina/La_Rioja",label:"America/Argentina/La_Rioja (GMT-3)"},{value:"America/Argentina/Rio_Gallegos",label:"America/Argentina/Rio_Gallegos (GMT-3)"},{value:"America/Argentina/Salta",label:"America/Argentina/Salta (GMT-3)"},{value:"America/Argentina/San_Juan",label:"America/Argentina/San_Juan (GMT-3)"},{value:"America/Argentina/San_Luis",label:"America/Argentina/San_Luis (GMT-3)"},{value:"America/Argentina/Tucuman",label:"America/Argentina/Tucuman (GMT-3)"},{value:"America/Argentina/Ushuaia",label:"America/Argentina/Ushuaia (GMT-3)"},{value:"America/Aruba",label:"America/Aruba (GMT-4)"},{value:"America/Asuncion",label:"America/Asuncion (GMT-4)"},{value:"America/Bahia",label:"America/Bahia (GMT-3)"},{value:"America/Bahia_Banderas",label:"America/Bahia_Banderas (GMT-6)"},{value:"America/Barbados",label:"America/Barbados (GMT-4)"},{value:"America/Belem",label:"America/Belem (GMT-3)"},{value:"America/Belize",label:"America/Belize (GMT-6)"},{value:"America/Blanc-Sablon",label:"America/Blanc-Sablon (GMT-4)"},{value:"America/Boa_Vista",label:"America/Boa_Vista (GMT-4)"},{value:"America/Bogota",label:"America/Bogota (GMT-5)"},{value:"America/Boise",label:"America/Boise (GMT-6)"},{value:"America/Buenos_Aires",label:"America/Buenos_Aires (GMT-3)"},{value:"America/Cambridge_Bay",label:"America/Cambridge_Bay (GMT-6)"},{value:"America/Campo_Grande",label:"America/Campo_Grande (GMT-4)"},{value:"America/Cancun",label:"America/Cancun (GMT-5)"},{value:"America/Caracas",label:"America/Caracas (GMT-4)"},{value:"America/Catamarca",label:"America/Catamarca (GMT-3)"},{value:"America/Cayenne",label:"America/Cayenne (GMT-3)"},{value:"America/Cayman",label:"America/Cayman (GMT-5)"},{value:"America/Chicago",label:"America/Chicago (GMT-5)"},{value:"America/Chihuahua",label:"America/Chihuahua (GMT-6)"},{value:"America/Ciudad_Juarez",label:"America/Ciudad_Juarez (GMT-6)"},{value:"America/Coral_Harbour",label:"America/Coral_Harbour (GMT-5)"},{value:"America/Cordoba",label:"America/Cordoba (GMT-3)"},{value:"America/Costa_Rica",label:"America/Costa_Rica (GMT-6)"},{value:"America/Creston",label:"America/Creston (GMT-7)"},{value:"America/Cuiaba",label:"America/Cuiaba (GMT-4)"},{value:"America/Curacao",label:"America/Curacao (GMT-4)"},{value:"America/Danmarkshavn",label:"America/Danmarkshavn (GMT)"},{value:"America/Dawson",label:"America/Dawson (GMT-7)"},{value:"America/Dawson_Creek",label:"America/Dawson_Creek (GMT-7)"},{value:"America/Denver",label:"America/Denver (GMT-6)"},{value:"America/Detroit",label:"America/Detroit (GMT-4)"},{value:"America/Dominica",label:"America/Dominica (GMT-4)"},{value:"America/Edmonton",label:"America/Edmonton (GMT-6)"},{value:"America/Eirunepe",label:"America/Eirunepe (GMT-5)"},{value:"America/El_Salvador",label:"America/El_Salvador (GMT-6)"},{value:"America/Fort_Nelson",label:"America/Fort_Nelson (GMT-7)"},{value:"America/Fortaleza",label:"America/Fortaleza (GMT-3)"},{value:"America/Glace_Bay",label:"America/Glace_Bay (GMT-3)"},{value:"America/Godthab",label:"America/Godthab (GMT-1)"},{value:"America/Goose_Bay",label:"America/Goose_Bay (GMT-3)"},{value:"America/Grand_Turk",label:"America/Grand_Turk (GMT-4)"},{value:"America/Grenada",label:"America/Grenada (GMT-4)"},{value:"America/Guadeloupe",label:"America/Guadeloupe (GMT-4)"},{value:"America/Guatemala",label:"America/Guatemala (GMT-6)"},{value:"America/Guayaquil",label:"America/Guayaquil (GMT-5)"},{value:"America/Guyana",label:"America/Guyana (GMT-4)"},{value:"America/Halifax",label:"America/Halifax (GMT-3)"},{value:"America/Havana",label:"America/Havana (GMT-4)"},{value:"America/Hermosillo",label:"America/Hermosillo (GMT-7)"},{value:"America/Indiana/Knox",label:"America/Indiana/Knox (GMT-5)"},{value:"America/Indiana/Marengo",label:"America/Indiana/Marengo (GMT-4)"},{value:"America/Indiana/Petersburg",label:"America/Indiana/Petersburg (GMT-4)"},{value:"America/Indiana/Tell_City",label:"America/Indiana/Tell_City (GMT-5)"},{value:"America/Indiana/Vevay",label:"America/Indiana/Vevay (GMT-4)"},{value:"America/Indiana/Vincennes",label:"America/Indiana/Vincennes (GMT-4)"},{value:"America/Indiana/Winamac",label:"America/Indiana/Winamac (GMT-4)"},{value:"America/Indianapolis",label:"America/Indianapolis (GMT-4)"},{value:"America/Inuvik",label:"America/Inuvik (GMT-6)"},{value:"America/Iqaluit",label:"America/Iqaluit (GMT-4)"},{value:"America/Jamaica",label:"America/Jamaica (GMT-5)"},{value:"America/Jujuy",label:"America/Jujuy (GMT-3)"},{value:"America/Juneau",label:"America/Juneau (GMT-8)"},{value:"America/Kentucky/Monticello",label:"America/Kentucky/Monticello (GMT-4)"},{value:"America/Kralendijk",label:"America/Kralendijk (GMT-4)"},{value:"America/La_Paz",label:"America/La_Paz (GMT-4)"},{value:"America/Lima",label:"America/Lima (GMT-5)"},{value:"America/Los_Angeles",label:"America/Los_Angeles (GMT-7)"},{value:"America/Louisville",label:"America/Louisville (GMT-4)"},{value:"America/Lower_Princes",label:"America/Lower_Princes (GMT-4)"},{value:"America/Maceio",label:"America/Maceio (GMT-3)"},{value:"America/Managua",label:"America/Managua (GMT-6)"},{value:"America/Manaus",label:"America/Manaus (GMT-4)"},{value:"America/Marigot",label:"America/Marigot (GMT-4)"},{value:"America/Martinique",label:"America/Martinique (GMT-4)"},{value:"America/Matamoros",label:"America/Matamoros (GMT-5)"},{value:"America/Mazatlan",label:"America/Mazatlan (GMT-7)"},{value:"America/Mendoza",label:"America/Mendoza (GMT-3)"},{value:"America/Menominee",label:"America/Menominee (GMT-5)"},{value:"America/Merida",label:"America/Merida (GMT-6)"},{value:"America/Metlakatla",label:"America/Metlakatla (GMT-8)"},{value:"America/Mexico_City",label:"America/Mexico_City (GMT-6)"},{value:"America/Miquelon",label:"America/Miquelon (GMT-2)"},{value:"America/Moncton",label:"America/Moncton (GMT-3)"},{value:"America/Monterrey",label:"America/Monterrey (GMT-6)"},{value:"America/Montevideo",label:"America/Montevideo (GMT-3)"},{value:"America/Montserrat",label:"America/Montserrat (GMT-4)"},{value:"America/Nassau",label:"America/Nassau (GMT-4)"},{value:"America/New_York",label:"America/New_York (GMT-4)"},{value:"America/Nome",label:"America/Nome (GMT-8)"},{value:"America/Noronha",label:"America/Noronha (GMT-2)"},{value:"America/North_Dakota/Beulah",label:"America/North_Dakota/Beulah (GMT-5)"},{value:"America/North_Dakota/Center",label:"America/North_Dakota/Center (GMT-5)"},{value:"America/North_Dakota/New_Salem",label:"America/North_Dakota/New_Salem (GMT-5)"},{value:"America/Ojinaga",label:"America/Ojinaga (GMT-5)"},{value:"America/Panama",label:"America/Panama (GMT-5)"},{value:"America/Paramaribo",label:"America/Paramaribo (GMT-3)"},{value:"America/Phoenix",label:"America/Phoenix (GMT-7)"},{value:"America/Port-au-Prince",label:"America/Port-au-Prince (GMT-4)"},{value:"America/Port_of_Spain",label:"America/Port_of_Spain (GMT-4)"},{value:"America/Porto_Velho",label:"America/Porto_Velho (GMT-4)"},{value:"America/Puerto_Rico",label:"America/Puerto_Rico (GMT-4)"},{value:"America/Punta_Arenas",label:"America/Punta_Arenas (GMT-3)"},{value:"America/Rankin_Inlet",label:"America/Rankin_Inlet (GMT-5)"},{value:"America/Recife",label:"America/Recife (GMT-3)"},{value:"America/Regina",label:"America/Regina (GMT-6)"},{value:"America/Resolute",label:"America/Resolute (GMT-5)"},{value:"America/Rio_Branco",label:"America/Rio_Branco (GMT-5)"},{value:"America/Santarem",label:"America/Santarem (GMT-3)"},{value:"America/Santiago",label:"America/Santiago (GMT-4)"},{value:"America/Santo_Domingo",label:"America/Santo_Domingo (GMT-4)"},{value:"America/Sao_Paulo",label:"America/Sao_Paulo (GMT-3)"},{value:"America/Scoresbysund",label:"America/Scoresbysund (GMT-1)"},{value:"America/Sitka",label:"America/Sitka (GMT-8)"},{value:"America/St_Barthelemy",label:"America/St_Barthelemy (GMT-4)"},{value:"America/St_Johns",label:"America/St_Johns (GMT-2:30)"},{value:"America/St_Kitts",label:"America/St_Kitts (GMT-4)"},{value:"America/St_Lucia",label:"America/St_Lucia (GMT-4)"},{value:"America/St_Thomas",label:"America/St_Thomas (GMT-4)"},{value:"America/St_Vincent",label:"America/St_Vincent (GMT-4)"},{value:"America/Swift_Current",label:"America/Swift_Current (GMT-6)"},{value:"America/Tegucigalpa",label:"America/Tegucigalpa (GMT-6)"},{value:"America/Thule",label:"America/Thule (GMT-3)"},{value:"America/Tijuana",label:"America/Tijuana (GMT-7)"},{value:"America/Toronto",label:"America/Toronto (GMT-4)"},{value:"America/Tortola",label:"America/Tortola (GMT-4)"},{value:"America/Vancouver",label:"America/Vancouver (GMT-7)"},{value:"America/Whitehorse",label:"America/Whitehorse (GMT-7)"},{value:"America/Winnipeg",label:"America/Winnipeg (GMT-5)"},{value:"America/Yakutat",label:"America/Yakutat (GMT-8)"},{value:"Antarctica/Casey",label:"Antarctica/Casey (GMT+8)"},{value:"Antarctica/Davis",label:"Antarctica/Davis (GMT+7)"},{value:"Antarctica/DumontDUrville",label:"Antarctica/DumontDUrville (GMT+10)"},{value:"Antarctica/Macquarie",label:"Antarctica/Macquarie (GMT+10)"},{value:"Antarctica/Mawson",label:"Antarctica/Mawson (GMT+5)"},{value:"Antarctica/McMurdo",label:"Antarctica/McMurdo (GMT+12)"},{value:"Antarctica/Palmer",label:"Antarctica/Palmer (GMT-3)"},{value:"Antarctica/Rothera",label:"Antarctica/Rothera (GMT-3)"},{value:"Antarctica/Syowa",label:"Antarctica/Syowa (GMT+3)"},{value:"Antarctica/Troll",label:"Antarctica/Troll (GMT+2)"},{value:"Antarctica/Vostok",label:"Antarctica/Vostok (GMT+5)"},{value:"Arctic/Longyearbyen",label:"Arctic/Longyearbyen (GMT+2)"},{value:"Asia/Aden",label:"Asia/Aden (GMT+3)"},{value:"Asia/Almaty",label:"Asia/Almaty (GMT+5)"},{value:"Asia/Amman",label:"Asia/Amman (GMT+3)"},{value:"Asia/Anadyr",label:"Asia/Anadyr (GMT+12)"},{value:"Asia/Aqtau",label:"Asia/Aqtau (GMT+5)"},{value:"Asia/Aqtobe",label:"Asia/Aqtobe (GMT+5)"},{value:"Asia/Ashgabat",label:"Asia/Ashgabat (GMT+5)"},{value:"Asia/Atyrau",label:"Asia/Atyrau (GMT+5)"},{value:"Asia/Baghdad",label:"Asia/Baghdad (GMT+3)"},{value:"Asia/Bahrain",label:"Asia/Bahrain (GMT+3)"},{value:"Asia/Baku",label:"Asia/Baku (GMT+4)"},{value:"Asia/Bangkok",label:"Asia/Bangkok (GMT+7)"},{value:"Asia/Barnaul",label:"Asia/Barnaul (GMT+7)"},{value:"Asia/Beirut",label:"Asia/Beirut (GMT+3)"},{value:"Asia/Bishkek",label:"Asia/Bishkek (GMT+6)"},{value:"Asia/Brunei",label:"Asia/Brunei (GMT+8)"},{value:"Asia/Calcutta",label:"Asia/Calcutta (GMT+5:30)"},{value:"Asia/Chita",label:"Asia/Chita (GMT+9)"},{value:"Asia/Choibalsan",label:"Asia/Choibalsan (GMT+8)"},{value:"Asia/Colombo",label:"Asia/Colombo (GMT+5:30)"},{value:"Asia/Damascus",label:"Asia/Damascus (GMT+3)"},{value:"Asia/Dhaka",label:"Asia/Dhaka (GMT+6)"},{value:"Asia/Dili",label:"Asia/Dili (GMT+9)"},{value:"Asia/Dubai",label:"Asia/Dubai (GMT+4)"},{value:"Asia/Dushanbe",label:"Asia/Dushanbe (GMT+5)"},{value:"Asia/Famagusta",label:"Asia/Famagusta (GMT+3)"},{value:"Asia/Gaza",label:"Asia/Gaza (GMT+3)"},{value:"Asia/Hebron",label:"Asia/Hebron (GMT+3)"},{value:"Asia/Hong_Kong",label:"Asia/Hong_Kong (GMT+8)"},{value:"Asia/Hovd",label:"Asia/Hovd (GMT+7)"},{value:"Asia/Irkutsk",label:"Asia/Irkutsk (GMT+8)"},{value:"Asia/Jakarta",label:"Asia/Jakarta (GMT+7)"},{value:"Asia/Jayapura",label:"Asia/Jayapura (GMT+9)"},{value:"Asia/Jerusalem",label:"Asia/Jerusalem (GMT+3)"},{value:"Asia/Kabul",label:"Asia/Kabul (GMT+4:30)"},{value:"Asia/Kamchatka",label:"Asia/Kamchatka (GMT+12)"},{value:"Asia/Karachi",label:"Asia/Karachi (GMT+5)"},{value:"Asia/Katmandu",label:"Asia/Katmandu (GMT+5:45)"},{value:"Asia/Khandyga",label:"Asia/Khandyga (GMT+9)"},{value:"Asia/Krasnoyarsk",label:"Asia/Krasnoyarsk (GMT+7)"},{value:"Asia/Kuala_Lumpur",label:"Asia/Kuala_Lumpur (GMT+8)"},{value:"Asia/Kuching",label:"Asia/Kuching (GMT+8)"},{value:"Asia/Kuwait",label:"Asia/Kuwait (GMT+3)"},{value:"Asia/Macau",label:"Asia/Macau (GMT+8)"},{value:"Asia/Magadan",label:"Asia/Magadan (GMT+11)"},{value:"Asia/Makassar",label:"Asia/Makassar (GMT+8)"},{value:"Asia/Manila",label:"Asia/Manila (GMT+8)"},{value:"Asia/Muscat",label:"Asia/Muscat (GMT+4)"},{value:"Asia/Nicosia",label:"Asia/Nicosia (GMT+3)"},{value:"Asia/Novokuznetsk",label:"Asia/Novokuznetsk (GMT+7)"},{value:"Asia/Novosibirsk",label:"Asia/Novosibirsk (GMT+7)"},{value:"Asia/Omsk",label:"Asia/Omsk (GMT+6)"},{value:"Asia/Oral",label:"Asia/Oral (GMT+5)"},{value:"Asia/Phnom_Penh",label:"Asia/Phnom_Penh (GMT+7)"},{value:"Asia/Pontianak",label:"Asia/Pontianak (GMT+7)"},{value:"Asia/Pyongyang",label:"Asia/Pyongyang (GMT+9)"},{value:"Asia/Qatar",label:"Asia/Qatar (GMT+3)"},{value:"Asia/Qostanay",label:"Asia/Qostanay (GMT+5)"},{value:"Asia/Qyzylorda",label:"Asia/Qyzylorda (GMT+5)"},{value:"Asia/Rangoon",label:"Asia/Rangoon (GMT+6:30)"},{value:"Asia/Riyadh",label:"Asia/Riyadh (GMT+3)"},{value:"Asia/Saigon",label:"Asia/Saigon (GMT+7)"},{value:"Asia/Sakhalin",label:"Asia/Sakhalin (GMT+11)"},{value:"Asia/Samarkand",label:"Asia/Samarkand (GMT+5)"},{value:"Asia/Seoul",label:"Asia/Seoul (GMT+9)"},{value:"Asia/Shanghai",label:"Asia/Shanghai (GMT+8)"},{value:"Asia/Singapore",label:"Asia/Singapore (GMT+8)"},{value:"Asia/Srednekolymsk",label:"Asia/Srednekolymsk (GMT+11)"},{value:"Asia/Taipei",label:"Asia/Taipei (GMT+8)"},{value:"Asia/Tashkent",label:"Asia/Tashkent (GMT+5)"},{value:"Asia/Tbilisi",label:"Asia/Tbilisi (GMT+4)"},{value:"Asia/Tehran",label:"Asia/Tehran (GMT+3:30)"},{value:"Asia/Thimphu",label:"Asia/Thimphu (GMT+6)"},{value:"Asia/Tokyo",label:"Asia/Tokyo (GMT+9)"},{value:"Asia/Tomsk",label:"Asia/Tomsk (GMT+7)"},{value:"Asia/Ulaanbaatar",label:"Asia/Ulaanbaatar (GMT+8)"},{value:"Asia/Urumqi",label:"Asia/Urumqi (GMT+6)"},{value:"Asia/Ust-Nera",label:"Asia/Ust-Nera (GMT+10)"},{value:"Asia/Vientiane",label:"Asia/Vientiane (GMT+7)"},{value:"Asia/Vladivostok",label:"Asia/Vladivostok (GMT+10)"},{value:"Asia/Yakutsk",label:"Asia/Yakutsk (GMT+9)"},{value:"Asia/Yekaterinburg",label:"Asia/Yekaterinburg (GMT+5)"},{value:"Asia/Yerevan",label:"Asia/Yerevan (GMT+4)"},{value:"Atlantic/Azores",label:"Atlantic/Azores (GMT)"},{value:"Atlantic/Bermuda",label:"Atlantic/Bermuda (GMT-3)"},{value:"Atlantic/Canary",label:"Atlantic/Canary (GMT+1)"},{value:"Atlantic/Cape_Verde",label:"Atlantic/Cape_Verde (GMT-1)"},{value:"Atlantic/Faeroe",label:"Atlantic/Faeroe (GMT+1)"},{value:"Atlantic/Madeira",label:"Atlantic/Madeira (GMT+1)"},{value:"Atlantic/Reykjavik",label:"Atlantic/Reykjavik (GMT)"},{value:"Atlantic/South_Georgia",label:"Atlantic/South_Georgia (GMT-2)"},{value:"Atlantic/St_Helena",label:"Atlantic/St_Helena (GMT)"},{value:"Atlantic/Stanley",label:"Atlantic/Stanley (GMT-3)"},{value:"Australia/Adelaide",label:"Australia/Adelaide (GMT+9:30)"},{value:"Australia/Brisbane",label:"Australia/Brisbane (GMT+10)"},{value:"Australia/Broken_Hill",label:"Australia/Broken_Hill (GMT+9:30)"},{value:"Australia/Darwin",label:"Australia/Darwin (GMT+9:30)"},{value:"Australia/Eucla",label:"Australia/Eucla (GMT+8:45)"},{value:"Australia/Hobart",label:"Australia/Hobart (GMT+10)"},{value:"Australia/Lindeman",label:"Australia/Lindeman (GMT+10)"},{value:"Australia/Lord_Howe",label:"Australia/Lord_Howe (GMT+10:30)"},{value:"Australia/Melbourne",label:"Australia/Melbourne (GMT+10)"},{value:"Australia/Perth",label:"Australia/Perth (GMT+8)"},{value:"Australia/Sydney",label:"Australia/Sydney (GMT+10)"},{value:"Europe/Amsterdam",label:"Europe/Amsterdam (GMT+2)"},{value:"Europe/Andorra",label:"Europe/Andorra (GMT+2)"},{value:"Europe/Astrakhan",label:"Europe/Astrakhan (GMT+4)"},{value:"Europe/Athens",label:"Europe/Athens (GMT+3)"},{value:"Europe/Belgrade",label:"Europe/Belgrade (GMT+2)"},{value:"Europe/Berlin",label:"Europe/Berlin (GMT+2)"},{value:"Europe/Bratislava",label:"Europe/Bratislava (GMT+2)"},{value:"Europe/Brussels",label:"Europe/Brussels (GMT+2)"},{value:"Europe/Bucharest",label:"Europe/Bucharest (GMT+3)"},{value:"Europe/Budapest",label:"Europe/Budapest (GMT+2)"},{value:"Europe/Busingen",label:"Europe/Busingen (GMT+2)"},{value:"Europe/Chisinau",label:"Europe/Chisinau (GMT+3)"},{value:"Europe/Copenhagen",label:"Europe/Copenhagen (GMT+2)"},{value:"Europe/Dublin",label:"Europe/Dublin (GMT+1)"},{value:"Europe/Gibraltar",label:"Europe/Gibraltar (GMT+2)"},{value:"Europe/Guernsey",label:"Europe/Guernsey (GMT+1)"},{value:"Europe/Helsinki",label:"Europe/Helsinki (GMT+3)"},{value:"Europe/Isle_of_Man",label:"Europe/Isle_of_Man (GMT+1)"},{value:"Europe/Istanbul",label:"Europe/Istanbul (GMT+3)"},{value:"Europe/Jersey",label:"Europe/Jersey (GMT+1)"},{value:"Europe/Kaliningrad",label:"Europe/Kaliningrad (GMT+2)"},{value:"Europe/Kiev",label:"Europe/Kiev (GMT+3)"},{value:"Europe/Kirov",label:"Europe/Kirov (GMT+3)"},{value:"Europe/Lisbon",label:"Europe/Lisbon (GMT+1)"},{value:"Europe/Ljubljana",label:"Europe/Ljubljana (GMT+2)"},{value:"Europe/London",label:"Europe/London (GMT+1)"},{value:"Europe/Luxembourg",label:"Europe/Luxembourg (GMT+2)"},{value:"Europe/Madrid",label:"Europe/Madrid (GMT+2)"},{value:"Europe/Malta",label:"Europe/Malta (GMT+2)"},{value:"Europe/Mariehamn",label:"Europe/Mariehamn (GMT+3)"},{value:"Europe/Minsk",label:"Europe/Minsk (GMT+3)"},{value:"Europe/Monaco",label:"Europe/Monaco (GMT+2)"},{value:"Europe/Moscow",label:"Europe/Moscow (GMT+3)"},{value:"Europe/Oslo",label:"Europe/Oslo (GMT+2)"},{value:"Europe/Paris",label:"Europe/Paris (GMT+2)"},{value:"Europe/Podgorica",label:"Europe/Podgorica (GMT+2)"},{value:"Europe/Prague",label:"Europe/Prague (GMT+2)"},{value:"Europe/Riga",label:"Europe/Riga (GMT+3)"},{value:"Europe/Rome",label:"Europe/Rome (GMT+2)"},{value:"Europe/Samara",label:"Europe/Samara (GMT+4)"},{value:"Europe/San_Marino",label:"Europe/San_Marino (GMT+2)"},{value:"Europe/Sarajevo",label:"Europe/Sarajevo (GMT+2)"},{value:"Europe/Saratov",label:"Europe/Saratov (GMT+4)"},{value:"Europe/Simferopol",label:"Europe/Simferopol (GMT+3)"},{value:"Europe/Skopje",label:"Europe/Skopje (GMT+2)"},{value:"Europe/Sofia",label:"Europe/Sofia (GMT+3)"},{value:"Europe/Stockholm",label:"Europe/Stockholm (GMT+2)"},{value:"Europe/Tallinn",label:"Europe/Tallinn (GMT+3)"},{value:"Europe/Tirane",label:"Europe/Tirane (GMT+2)"},{value:"Europe/Ulyanovsk",label:"Europe/Ulyanovsk (GMT+4)"},{value:"Europe/Vaduz",label:"Europe/Vaduz (GMT+2)"},{value:"Europe/Vatican",label:"Europe/Vatican (GMT+2)"},{value:"Europe/Vienna",label:"Europe/Vienna (GMT+2)"},{value:"Europe/Vilnius",label:"Europe/Vilnius (GMT+3)"},{value:"Europe/Volgograd",label:"Europe/Volgograd (GMT+3)"},{value:"Europe/Warsaw",label:"Europe/Warsaw (GMT+2)"},{value:"Europe/Zagreb",label:"Europe/Zagreb (GMT+2)"},{value:"Europe/Zurich",label:"Europe/Zurich (GMT+2)"},{value:"Indian/Antananarivo",label:"Indian/Antananarivo (GMT+3)"},{value:"Indian/Chagos",label:"Indian/Chagos (GMT+6)"},{value:"Indian/Christmas",label:"Indian/Christmas (GMT+7)"},{value:"Indian/Cocos",label:"Indian/Cocos (GMT+6:30)"},{value:"Indian/Comoro",label:"Indian/Comoro (GMT+3)"},{value:"Indian/Kerguelen",label:"Indian/Kerguelen (GMT+5)"},{value:"Indian/Mahe",label:"Indian/Mahe (GMT+4)"},{value:"Indian/Maldives",label:"Indian/Maldives (GMT+5)"},{value:"Indian/Mauritius",label:"Indian/Mauritius (GMT+4)"},{value:"Indian/Mayotte",label:"Indian/Mayotte (GMT+3)"},{value:"Indian/Reunion",label:"Indian/Reunion (GMT+4)"},{value:"Pacific/Apia",label:"Pacific/Apia (GMT+13)"},{value:"Pacific/Auckland",label:"Pacific/Auckland (GMT+12)"},{value:"Pacific/Bougainville",label:"Pacific/Bougainville (GMT+11)"},{value:"Pacific/Chatham",label:"Pacific/Chatham (GMT+12:45)"},{value:"Pacific/Easter",label:"Pacific/Easter (GMT-6)"},{value:"Pacific/Efate",label:"Pacific/Efate (GMT+11)"},{value:"Pacific/Enderbury",label:"Pacific/Enderbury (GMT+13)"},{value:"Pacific/Fakaofo",label:"Pacific/Fakaofo (GMT+13)"},{value:"Pacific/Fiji",label:"Pacific/Fiji (GMT+12)"},{value:"Pacific/Funafuti",label:"Pacific/Funafuti (GMT+12)"},{value:"Pacific/Galapagos",label:"Pacific/Galapagos (GMT-6)"},{value:"Pacific/Gambier",label:"Pacific/Gambier (GMT-9)"},{value:"Pacific/Guadalcanal",label:"Pacific/Guadalcanal (GMT+11)"},{value:"Pacific/Guam",label:"Pacific/Guam (GMT+10)"},{value:"Pacific/Honolulu",label:"Pacific/Honolulu (GMT-10)"},{value:"Pacific/Kiritimati",label:"Pacific/Kiritimati (GMT+14)"},{value:"Pacific/Kosrae",label:"Pacific/Kosrae (GMT+11)"},{value:"Pacific/Kwajalein",label:"Pacific/Kwajalein (GMT+12)"},{value:"Pacific/Majuro",label:"Pacific/Majuro (GMT+12)"},{value:"Pacific/Marquesas",label:"Pacific/Marquesas (GMT-9:30)"},{value:"Pacific/Midway",label:"Pacific/Midway (GMT-11)"},{value:"Pacific/Nauru",label:"Pacific/Nauru (GMT+12)"},{value:"Pacific/Niue",label:"Pacific/Niue (GMT-11)"},{value:"Pacific/Norfolk",label:"Pacific/Norfolk (GMT+11)"},{value:"Pacific/Noumea",label:"Pacific/Noumea (GMT+11)"},{value:"Pacific/Pago_Pago",label:"Pacific/Pago_Pago (GMT-11)"},{value:"Pacific/Palau",label:"Pacific/Palau (GMT+9)"},{value:"Pacific/Pitcairn",label:"Pacific/Pitcairn (GMT-8)"},{value:"Pacific/Ponape",label:"Pacific/Ponape (GMT+11)"},{value:"Pacific/Port_Moresby",label:"Pacific/Port_Moresby (GMT+10)"},{value:"Pacific/Rarotonga",label:"Pacific/Rarotonga (GMT-10)"},{value:"Pacific/Saipan",label:"Pacific/Saipan (GMT+10)"},{value:"Pacific/Tahiti",label:"Pacific/Tahiti (GMT-10)"},{value:"Pacific/Tarawa",label:"Pacific/Tarawa (GMT+12)"},{value:"Pacific/Tongatapu",label:"Pacific/Tongatapu (GMT+13)"},{value:"Pacific/Truk",label:"Pacific/Truk (GMT+10)"},{value:"Pacific/Wake",label:"Pacific/Wake (GMT+12)"},{value:"Pacific/Wallis",label:"Pacific/Wallis (GMT+12)"},...I$],O$=({settings:e,preview:t})=>{const{expired:n}=Kw(e.datetime,e.timezone,e.enabledUnits);return p.jsxs(dw,{style:{marginBottom:"40px"},children:[p.jsx(jz,{children:p.jsx("b",{children:"Preview"})}),p.jsx(fw,{style:{backgroundColor:t.bg,overflowX:"auto"},children:p.jsx(qw,{config:e})}),n&&p.jsx(Mz,{isShady:!0,size:"small",children:p.jsxs("small",{children:["Why are zeros displayed? Set ",p.jsx("u",{children:"future"})," date & time."]})})]})};var _w=Symbol.for("immer-nothing"),Tg=Symbol.for("immer-draftable"),Wt=Symbol.for("immer-state");function ln(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var To=Object.getPrototypeOf;function Fr(e){return!!e&&!!e[Wt]}function Zn(e){var t;return e?Cw(e)||Array.isArray(e)||!!e[Tg]||!!((t=e.constructor)!=null&&t[Tg])||fl(e)||pl(e):!1}var D$=Object.prototype.constructor.toString();function Cw(e){if(!e||typeof e!="object")return!1;const t=To(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===D$}function ya(e,t){dl(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function dl(e){const t=e[Wt];return t?t.type_:Array.isArray(e)?1:fl(e)?2:pl(e)?3:0}function vu(e,t){return dl(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Tw(e,t,n){const r=dl(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function N$(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function fl(e){return e instanceof Map}function pl(e){return e instanceof Set}function Er(e){return e.copy_||e.base_}function bu(e,t){if(fl(e))return new Map(e);if(pl(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Cw(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Wt];let o=Reflect.ownKeys(r);for(let i=0;i<o.length;i++){const s=o[i],a=r[s];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(r[s]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[s]})}return Object.create(To(e),r)}else{const r=To(e);if(r!==null&&n)return{...e};const o=Object.create(r);return Object.assign(o,e)}}function If(e,t=!1){return hl(e)||Fr(e)||!Zn(e)||(dl(e)>1&&(e.set=e.add=e.clear=e.delete=L$),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>If(r,!0))),e}function L$(){ln(2)}function hl(e){return Object.isFrozen(e)}var F$={};function Br(e){const t=F$[e];return t||ln(0,e),t}var Ei;function Aw(){return Ei}function B$(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Ag(e,t){t&&(Br("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function yu(e){xu(e),e.drafts_.forEach(V$),e.drafts_=null}function xu(e){e===Ei&&(Ei=e.parent_)}function Eg(e){return Ei=B$(Ei,e)}function V$(e){const t=e[Wt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Pg(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Wt].modified_&&(yu(t),ln(4)),Zn(e)&&(e=xa(t,e),t.parent_||wa(t,e)),t.patches_&&Br("Patches").generateReplacementPatches_(n[Wt].base_,e,t.patches_,t.inversePatches_)):e=xa(t,n,[]),yu(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==_w?e:void 0}function xa(e,t,n){if(hl(t))return t;const r=t[Wt];if(!r)return ya(t,(o,i)=>kg(e,r,t,o,i,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return wa(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let i=o,s=!1;r.type_===3&&(i=new Set(o),o.clear(),s=!0),ya(i,(a,l)=>kg(e,r,o,a,l,n,s)),wa(e,o,!1),n&&e.patches_&&Br("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function kg(e,t,n,r,o,i,s){if(Fr(o)){const a=i&&t&&t.type_!==3&&!vu(t.assigned_,r)?i.concat(r):void 0,l=xa(e,o,a);if(Tw(n,r,l),Fr(l))e.canAutoFreeze_=!1;else return}else s&&n.add(o);if(Zn(o)&&!hl(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;xa(e,o),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&wa(e,o)}}function wa(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&If(t,n)}function z$(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:Aw(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=jf;n&&(o=[r],i=Pi);const{revoke:s,proxy:a}=Proxy.revocable(o,i);return r.draft_=a,r.revoke_=s,a}var jf={get(e,t){if(t===Wt)return e;const n=Er(e);if(!vu(n,t))return $$(e,n,t);const r=n[t];return e.finalized_||!Zn(r)?r:r===bc(e.base_,t)?(yc(e),e.copy_[t]=Su(r,e)):r},has(e,t){return t in Er(e)},ownKeys(e){return Reflect.ownKeys(Er(e))},set(e,t,n){const r=Ew(Er(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=bc(Er(e),t),i=o==null?void 0:o[Wt];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(N$(n,o)&&(n!==void 0||vu(e.base_,t)))return!0;yc(e),wu(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return bc(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,yc(e),wu(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Er(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){ln(11)},getPrototypeOf(e){return To(e.base_)},setPrototypeOf(){ln(12)}},Pi={};ya(jf,(e,t)=>{Pi[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Pi.deleteProperty=function(e,t){return Pi.set.call(this,e,t,void 0)};Pi.set=function(e,t,n){return jf.set.call(this,e[0],t,n,e[0])};function bc(e,t){const n=e[Wt];return(n?Er(n):e)[t]}function $$(e,t,n){var o;const r=Ew(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function Ew(e,t){if(!(t in e))return;let n=To(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=To(n)}}function wu(e){e.modified_||(e.modified_=!0,e.parent_&&wu(e.parent_))}function yc(e){e.copy_||(e.copy_=bu(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var G$=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const s=this;return function(l=i,...c){return s.produce(l,u=>n.call(this,u,...c))}}typeof n!="function"&&ln(6),r!==void 0&&typeof r!="function"&&ln(7);let o;if(Zn(t)){const i=Eg(this),s=Su(t,void 0);let a=!0;try{o=n(s),a=!1}finally{a?yu(i):xu(i)}return Ag(i,r),Pg(o,i)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===_w&&(o=void 0),this.autoFreeze_&&If(o,!0),r){const i=[],s=[];Br("Patches").generateReplacementPatches_(t,o,i,s),r(i,s)}return o}else ln(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...a)=>this.produceWithPatches(s,l=>t(l,...a));let r,o;return[this.produce(t,n,(s,a)=>{r=s,o=a}),r,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Zn(e)||ln(8),Fr(e)&&(e=U$(e));const t=Eg(this),n=Su(e,void 0);return n[Wt].isManual_=!0,xu(t),n}finishDraft(e,t){const n=e&&e[Wt];(!n||!n.isManual_)&&ln(9);const{scope_:r}=n;return Ag(r,t),Pg(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=Br("Patches").applyPatches_;return Fr(e)?r(e,t):this.produce(e,o=>r(o,t))}};function Su(e,t){const n=fl(e)?Br("MapSet").proxyMap_(e,t):pl(e)?Br("MapSet").proxySet_(e,t):z$(e,t);return(t?t.scope_:Aw()).drafts_.push(n),n}function U$(e){return Fr(e)||ln(10,e),Pw(e)}function Pw(e){if(!Zn(e)||hl(e))return e;const t=e[Wt];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=bu(e,t.scope_.immer_.useStrictShallowCopy_)}else n=bu(e,!0);return ya(n,(r,o)=>{Tw(n,r,Pw(o))}),t&&(t.finalized_=!1),n}var Kt=new G$,kw=Kt.produce;Kt.produceWithPatches.bind(Kt);Kt.setAutoFreeze.bind(Kt);Kt.setUseStrictShallowCopy.bind(Kt);Kt.applyPatches.bind(Kt);Kt.createDraft.bind(Kt);Kt.finishDraft.bind(Kt);function Mw(e){return({dispatch:n,getState:r})=>o=>i=>typeof i=="function"?i(n,r,e):o(i)}var H$=Mw(),W$=Mw,K$=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ga:ga.apply(null,arguments)};function Mg(e,t){function n(...r){if(t){let o=t(...r);if(!o)throw new Error(Un(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>j2(r)&&r.type===e,n}var Rw=class Qo extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Qo.prototype)}static get[Symbol.species](){return Qo}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Qo(...t[0].concat(this)):new Qo(...t.concat(this))}};function Rg(e){return Zn(e)?kw(e,()=>{}):e}function Ig(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function q$(e){return typeof e=="boolean"}var Z$=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:o=!0,actionCreatorCheck:i=!0}=t??{};let s=new Rw;return n&&(q$(n)?s.push(H$):s.push(W$(n.extraArgument))),s},X$="RTK_autoBatch",jg=e=>t=>{setTimeout(t,e)},Y$=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,i=!1,s=!1;const a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:jg(10):e.type==="callback"?e.queueNotification:jg(e.timeout),c=()=>{s=!1,i&&(i=!1,a.forEach(u=>u()))};return Object.assign({},r,{subscribe(u){const d=()=>o&&u(),f=r.subscribe(d);return a.add(u),()=>{f(),a.delete(u)}},dispatch(u){var d;try{return o=!((d=u==null?void 0:u.meta)!=null&&d[X$]),i=!o,i&&(s||(s=!0,l(c))),r.dispatch(u)}finally{o=!0}}})},J$=e=>function(n){const{autoBatch:r=!0}=n??{};let o=new Rw(e);return r&&o.push(Y$(typeof r=="object"?r:void 0)),o};function Q$(e){const t=Z$(),{reducer:n=void 0,middleware:r,devTools:o=!0,preloadedState:i=void 0,enhancers:s=void 0}=e;let a;if(typeof n=="function")a=n;else if(gf(n))a=R2(n);else throw new Error(Un(1));let l;typeof r=="function"?l=r(t):l=t();let c=ga;o&&(c=K$({trace:!1,...typeof o=="object"&&o}));const u=I2(...l),d=J$(u);let f=typeof s=="function"?s(d):d();const m=c(...f);return Tx(a,i,m)}function Iw(e){const t={},n=[];let r;const o={addCase(i,s){const a=typeof i=="string"?i:i.type;if(!a)throw new Error(Un(28));if(a in t)throw new Error(Un(29));return t[a]=s,o},addMatcher(i,s){return n.push({matcher:i,reducer:s}),o},addDefaultCase(i){return r=i,o}};return e(o),[t,n,r]}function eG(e){return typeof e=="function"}function tG(e,t){let[n,r,o]=Iw(t),i;if(eG(e))i=()=>Rg(e());else{const a=Rg(e);i=()=>a}function s(a=i(),l){let c=[n[l.type],...r.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[o]),c.reduce((u,d)=>{if(d)if(Fr(u)){const m=d(u,l);return m===void 0?u:m}else{if(Zn(u))return kw(u,f=>d(f,l));{const f=d(u,l);if(f===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return f}}return u},a)}return s.getInitialState=i,s}var nG=Symbol.for("rtk-slice-createasyncthunk");function rG(e,t){return`${e}/${t}`}function oG({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[nG];return function(o){const{name:i,reducerPath:s=i}=o;if(!i)throw new Error(Un(11));const a=(typeof o.reducers=="function"?o.reducers(aG()):o.reducers)||{},l=Object.keys(a),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(x,S){const w=typeof x=="string"?x:x.type;if(!w)throw new Error(Un(12));if(w in c.sliceCaseReducersByType)throw new Error(Un(13));return c.sliceCaseReducersByType[w]=S,u},addMatcher(x,S){return c.sliceMatchers.push({matcher:x,reducer:S}),u},exposeAction(x,S){return c.actionCreators[x]=S,u},exposeCaseReducer(x,S){return c.sliceCaseReducersByName[x]=S,u}};l.forEach(x=>{const S=a[x],w={reducerName:x,type:rG(i,x),createNotation:typeof o.reducers=="function"};cG(S)?dG(w,S,u,t):lG(w,S,u)});function d(){const[x={},S=[],w=void 0]=typeof o.extraReducers=="function"?Iw(o.extraReducers):[o.extraReducers],C={...x,...c.sliceCaseReducersByType};return tG(o.initialState,T=>{for(let A in C)T.addCase(A,C[A]);for(let A of c.sliceMatchers)T.addMatcher(A.matcher,A.reducer);for(let A of S)T.addMatcher(A.matcher,A.reducer);w&&T.addDefaultCase(w)})}const f=x=>x,m=new Map;let v;function g(x,S){return v||(v=d()),v(x,S)}function y(){return v||(v=d()),v.getInitialState()}function b(x,S=!1){function w(T){let A=T[x];return typeof A>"u"&&S&&(A=y()),A}function C(T=f){const A=Ig(m,S,()=>new WeakMap);return Ig(A,T,()=>{const E={};for(const[P,L]of Object.entries(o.selectors??{}))E[P]=iG(L,T,y,S);return E})}return{reducerPath:x,getSelectors:C,get selectors(){return C(w)},selectSlice:w}}const _={name:i,reducer:g,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:y,...b(s),injectInto(x,{reducerPath:S,...w}={}){const C=S??s;return x.inject({reducerPath:C,reducer:g},w),{..._,...b(C,!0)}}};return _}}function iG(e,t,n,r){function o(i,...s){let a=t(i);return typeof a>"u"&&r&&(a=n()),e(a,...s)}return o.unwrapped=e,o}var sG=oG();function aG(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function lG({type:e,reducerName:t,createNotation:n},r,o){let i,s;if("reducer"in r){if(n&&!uG(r))throw new Error(Un(17));i=r.reducer,s=r.prepare}else i=r;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,s?Mg(e,s):Mg(e))}function cG(e){return e._reducerDefinitionType==="asyncThunk"}function uG(e){return e._reducerDefinitionType==="reducerWithPrepare"}function dG({type:e,reducerName:t},n,r,o){if(!o)throw new Error(Un(18));const{payloadCreator:i,fulfilled:s,pending:a,rejected:l,settled:c,options:u}=n,d=o(e,i,u);r.exposeAction(t,d),s&&r.addCase(d.fulfilled,s),a&&r.addCase(d.pending,a),l&&r.addCase(d.rejected,l),c&&r.addMatcher(d.settled,c),r.exposeCaseReducer(t,{fulfilled:s||Is,pending:a||Is,rejected:l||Is,settled:c||Is})}function Is(){}function Un(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var _e;(function(e){e.assertEqual=o=>o;function t(o){}e.assertIs=t;function n(o){throw new Error}e.assertNever=n,e.arrayToEnum=o=>{const i={};for(const s of o)i[s]=s;return i},e.getValidEnumValues=o=>{const i=e.objectKeys(o).filter(a=>typeof o[o[a]]!="number"),s={};for(const a of i)s[a]=o[a];return e.objectValues(s)},e.objectValues=o=>e.objectKeys(o).map(function(i){return o[i]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const i=[];for(const s in o)Object.prototype.hasOwnProperty.call(o,s)&&i.push(s);return i},e.find=(o,i)=>{for(const s of o)if(i(s))return s},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&isFinite(o)&&Math.floor(o)===o;function r(o,i=" | "){return o.map(s=>typeof s=="string"?`'${s}'`:s).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(o,i)=>typeof i=="bigint"?i.toString():i})(_e||(_e={}));var _u;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(_u||(_u={}));const te=_e.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Vn=e=>{switch(typeof e){case"undefined":return te.undefined;case"string":return te.string;case"number":return isNaN(e)?te.nan:te.number;case"boolean":return te.boolean;case"function":return te.function;case"bigint":return te.bigint;case"symbol":return te.symbol;case"object":return Array.isArray(e)?te.array:e===null?te.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?te.promise:typeof Map<"u"&&e instanceof Map?te.map:typeof Set<"u"&&e instanceof Set?te.set:typeof Date<"u"&&e instanceof Date?te.date:te.object;default:return te.unknown}},K=_e.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),fG=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Ut extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(i){return i.message},r={_errors:[]},o=i=>{for(const s of i.issues)if(s.code==="invalid_union")s.unionErrors.map(o);else if(s.code==="invalid_return_type")o(s.returnTypeError);else if(s.code==="invalid_arguments")o(s.argumentsError);else if(s.path.length===0)r._errors.push(n(s));else{let a=r,l=0;for(;l<s.path.length;){const c=s.path[l];l===s.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(n(s))):a[c]=a[c]||{_errors:[]},a=a[c],l++}}};return o(this),r}static assert(t){if(!(t instanceof Ut))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,_e.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const o of this.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Ut.create=e=>new Ut(e);const Ao=(e,t)=>{let n;switch(e.code){case K.invalid_type:e.received===te.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case K.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,_e.jsonStringifyReplacer)}`;break;case K.unrecognized_keys:n=`Unrecognized key(s) in object: ${_e.joinValues(e.keys,", ")}`;break;case K.invalid_union:n="Invalid input";break;case K.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${_e.joinValues(e.options)}`;break;case K.invalid_enum_value:n=`Invalid enum value. Expected ${_e.joinValues(e.options)}, received '${e.received}'`;break;case K.invalid_arguments:n="Invalid function arguments";break;case K.invalid_return_type:n="Invalid function return type";break;case K.invalid_date:n="Invalid date";break;case K.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:_e.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case K.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case K.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case K.custom:n="Invalid input";break;case K.invalid_intersection_types:n="Intersection results could not be merged";break;case K.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case K.not_finite:n="Number must be finite";break;default:n=t.defaultError,_e.assertNever(e)}return{message:n}};let jw=Ao;function pG(e){jw=e}function Sa(){return jw}const _a=e=>{const{data:t,path:n,errorMaps:r,issueData:o}=e,i=[...n,...o.path||[]],s={...o,path:i};if(o.message!==void 0)return{...o,path:i,message:o.message};let a="";const l=r.filter(c=>!!c).slice().reverse();for(const c of l)a=c(s,{data:t,defaultError:a}).message;return{...o,path:i,message:a}},hG=[];function Q(e,t){const n=Sa(),r=_a({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Ao?void 0:Ao].filter(o=>!!o)});e.common.issues.push(r)}class Et{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const o of n){if(o.status==="aborted")return le;o.status==="dirty"&&t.dirty(),r.push(o.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const o of n){const i=await o.key,s=await o.value;r.push({key:i,value:s})}return Et.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const o of n){const{key:i,value:s}=o;if(i.status==="aborted"||s.status==="aborted")return le;i.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof s.value<"u"||o.alwaysSet)&&(r[i.value]=s.value)}return{status:t.value,value:r}}}const le=Object.freeze({status:"aborted"}),oo=e=>({status:"dirty",value:e}),jt=e=>({status:"valid",value:e}),Cu=e=>e.status==="aborted",Tu=e=>e.status==="dirty",Vr=e=>e.status==="valid",ki=e=>typeof Promise<"u"&&e instanceof Promise;function Ca(e,t,n,r){if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function Ow(e,t,n,r,o){if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var re;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(re||(re={}));var ei,ti;class jn{constructor(t,n,r,o){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=o}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Og=(e,t)=>{if(Vr(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Ut(e.common.issues);return this._error=n,this._error}}};function me(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:o}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(s,a)=>{var l,c;const{message:u}=e;return s.code==="invalid_enum_value"?{message:u??a.defaultError}:typeof a.data>"u"?{message:(l=u??r)!==null&&l!==void 0?l:a.defaultError}:s.code!=="invalid_type"?{message:a.defaultError}:{message:(c=u??n)!==null&&c!==void 0?c:a.defaultError}},description:o}}class ve{get description(){return this._def.description}_getType(t){return Vn(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Vn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Et,ctx:{common:t.parent.common,data:t.data,parsedType:Vn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(ki(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const o={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Vn(t)},i=this._parseSync({data:t,path:o.path,parent:o});return Og(o,i)}"~validate"(t){var n,r;const o={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Vn(t)};if(!this["~standard"].async)try{const i=this._parseSync({data:t,path:[],parent:o});return Vr(i)?{value:i.value}:{issues:o.common.issues}}catch(i){!((r=(n=i==null?void 0:i.message)===null||n===void 0?void 0:n.toLowerCase())===null||r===void 0)&&r.includes("encountered")&&(this["~standard"].async=!0),o.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:o}).then(i=>Vr(i)?{value:i.value}:{issues:o.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Vn(t)},o=this._parse({data:t,path:r.path,parent:r}),i=await(ki(o)?o:Promise.resolve(o));return Og(r,i)}refine(t,n){const r=o=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(o):n;return this._refinement((o,i)=>{const s=t(o),a=()=>i.addIssue({code:K.custom,...r(o)});return typeof Promise<"u"&&s instanceof Promise?s.then(l=>l?!0:(a(),!1)):s?!0:(a(),!1)})}refinement(t,n){return this._refinement((r,o)=>t(r)?!0:(o.addIssue(typeof n=="function"?n(r,o):n),!1))}_refinement(t){return new mn({schema:this,typeName:ae.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return kn.create(this,this._def)}nullable(){return gr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return dn.create(this)}promise(){return Po.create(this,this._def)}or(t){return ji.create([this,t],this._def)}and(t){return Oi.create(this,t,this._def)}transform(t){return new mn({...me(this._def),schema:this,typeName:ae.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Bi({...me(this._def),innerType:this,defaultValue:n,typeName:ae.ZodDefault})}brand(){return new Of({typeName:ae.ZodBranded,type:this,...me(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Vi({...me(this._def),innerType:this,catchValue:n,typeName:ae.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return cs.create(this,t)}readonly(){return zi.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const mG=/^c[^\s-]{8,}$/i,gG=/^[0-9a-z]+$/,vG=/^[0-9A-HJKMNP-TV-Z]{26}$/i,bG=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,yG=/^[a-z0-9_-]{21}$/i,xG=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,wG=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,SG=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,_G="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let xc;const CG=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,TG=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,AG=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,EG=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,PG=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,kG=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Dw="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",MG=new RegExp(`^${Dw}$`);function Nw(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function RG(e){return new RegExp(`^${Nw(e)}$`)}function Lw(e){let t=`${Dw}T${Nw(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function IG(e,t){return!!((t==="v4"||!t)&&CG.test(e)||(t==="v6"||!t)&&AG.test(e))}function jG(e,t){if(!xG.test(e))return!1;try{const[n]=e.split("."),r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),o=JSON.parse(atob(r));return!(typeof o!="object"||o===null||!o.typ||!o.alg||t&&o.alg!==t)}catch{return!1}}function OG(e,t){return!!((t==="v4"||!t)&&TG.test(e)||(t==="v6"||!t)&&EG.test(e))}class cn extends ve{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==te.string){const i=this._getOrReturnCtx(t);return Q(i,{code:K.invalid_type,expected:te.string,received:i.parsedType}),le}const r=new Et;let o;for(const i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(o=this._getOrReturnCtx(t,o),Q(o,{code:K.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="max")t.data.length>i.value&&(o=this._getOrReturnCtx(t,o),Q(o,{code:K.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){const s=t.data.length>i.value,a=t.data.length<i.value;(s||a)&&(o=this._getOrReturnCtx(t,o),s?Q(o,{code:K.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&Q(o,{code:K.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind==="email")SG.test(t.data)||(o=this._getOrReturnCtx(t,o),Q(o,{validation:"email",code:K.invalid_string,message:i.message}),r.dirty());else if(i.kind==="emoji")xc||(xc=new RegExp(_G,"u")),xc.test(t.data)||(o=this._getOrReturnCtx(t,o),Q(o,{validation:"emoji",code:K.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")bG.test(t.data)||(o=this._getOrReturnCtx(t,o),Q(o,{validation:"uuid",code:K.invalid_string,message:i.message}),r.dirty());else if(i.kind==="nanoid")yG.test(t.data)||(o=this._getOrReturnCtx(t,o),Q(o,{validation:"nanoid",code:K.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")mG.test(t.data)||(o=this._getOrReturnCtx(t,o),Q(o,{validation:"cuid",code:K.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")gG.test(t.data)||(o=this._getOrReturnCtx(t,o),Q(o,{validation:"cuid2",code:K.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")vG.test(t.data)||(o=this._getOrReturnCtx(t,o),Q(o,{validation:"ulid",code:K.invalid_string,message:i.message}),r.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{o=this._getOrReturnCtx(t,o),Q(o,{validation:"url",code:K.invalid_string,message:i.message}),r.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(o=this._getOrReturnCtx(t,o),Q(o,{validation:"regex",code:K.invalid_string,message:i.message}),r.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(o=this._getOrReturnCtx(t,o),Q(o,{code:K.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(o=this._getOrReturnCtx(t,o),Q(o,{code:K.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(o=this._getOrReturnCtx(t,o),Q(o,{code:K.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?Lw(i).test(t.data)||(o=this._getOrReturnCtx(t,o),Q(o,{code:K.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="date"?MG.test(t.data)||(o=this._getOrReturnCtx(t,o),Q(o,{code:K.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?RG(i).test(t.data)||(o=this._getOrReturnCtx(t,o),Q(o,{code:K.invalid_string,validation:"time",message:i.message}),r.dirty()):i.kind==="duration"?wG.test(t.data)||(o=this._getOrReturnCtx(t,o),Q(o,{validation:"duration",code:K.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?IG(t.data,i.version)||(o=this._getOrReturnCtx(t,o),Q(o,{validation:"ip",code:K.invalid_string,message:i.message}),r.dirty()):i.kind==="jwt"?jG(t.data,i.alg)||(o=this._getOrReturnCtx(t,o),Q(o,{validation:"jwt",code:K.invalid_string,message:i.message}),r.dirty()):i.kind==="cidr"?OG(t.data,i.version)||(o=this._getOrReturnCtx(t,o),Q(o,{validation:"cidr",code:K.invalid_string,message:i.message}),r.dirty()):i.kind==="base64"?PG.test(t.data)||(o=this._getOrReturnCtx(t,o),Q(o,{validation:"base64",code:K.invalid_string,message:i.message}),r.dirty()):i.kind==="base64url"?kG.test(t.data)||(o=this._getOrReturnCtx(t,o),Q(o,{validation:"base64url",code:K.invalid_string,message:i.message}),r.dirty()):_e.assertNever(i);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(o=>t.test(o),{validation:n,code:K.invalid_string,...re.errToObj(r)})}_addCheck(t){return new cn({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...re.errToObj(t)})}url(t){return this._addCheck({kind:"url",...re.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...re.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...re.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...re.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...re.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...re.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...re.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...re.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...re.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...re.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...re.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...re.errToObj(t)})}datetime(t){var n,r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(r=t==null?void 0:t.local)!==null&&r!==void 0?r:!1,...re.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...re.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...re.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...re.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...re.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...re.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...re.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...re.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...re.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...re.errToObj(n)})}nonempty(t){return this.min(1,re.errToObj(t))}trim(){return new cn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new cn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new cn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}cn.create=e=>{var t;return new cn({checks:[],typeName:ae.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...me(e)})};function DG(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,o=n>r?n:r,i=parseInt(e.toFixed(o).replace(".","")),s=parseInt(t.toFixed(o).replace(".",""));return i%s/Math.pow(10,o)}class pr extends ve{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==te.number){const i=this._getOrReturnCtx(t);return Q(i,{code:K.invalid_type,expected:te.number,received:i.parsedType}),le}let r;const o=new Et;for(const i of this._def.checks)i.kind==="int"?_e.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),Q(r,{code:K.invalid_type,expected:"integer",received:"float",message:i.message}),o.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),Q(r,{code:K.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),o.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),Q(r,{code:K.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),o.dirty()):i.kind==="multipleOf"?DG(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),Q(r,{code:K.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),Q(r,{code:K.not_finite,message:i.message}),o.dirty()):_e.assertNever(i);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,re.toString(n))}gt(t,n){return this.setLimit("min",t,!1,re.toString(n))}lte(t,n){return this.setLimit("max",t,!0,re.toString(n))}lt(t,n){return this.setLimit("max",t,!1,re.toString(n))}setLimit(t,n,r,o){return new pr({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:re.toString(o)}]})}_addCheck(t){return new pr({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:re.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:re.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:re.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:re.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:re.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:re.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:re.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:re.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:re.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&_e.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}pr.create=e=>new pr({checks:[],typeName:ae.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...me(e)});class hr extends ve{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==te.bigint)return this._getInvalidInput(t);let r;const o=new Et;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),Q(r,{code:K.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),o.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),Q(r,{code:K.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),o.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),Q(r,{code:K.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):_e.assertNever(i);return{status:o.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return Q(n,{code:K.invalid_type,expected:te.bigint,received:n.parsedType}),le}gte(t,n){return this.setLimit("min",t,!0,re.toString(n))}gt(t,n){return this.setLimit("min",t,!1,re.toString(n))}lte(t,n){return this.setLimit("max",t,!0,re.toString(n))}lt(t,n){return this.setLimit("max",t,!1,re.toString(n))}setLimit(t,n,r,o){return new hr({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:re.toString(o)}]})}_addCheck(t){return new hr({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:re.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:re.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:re.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:re.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:re.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}hr.create=e=>{var t;return new hr({checks:[],typeName:ae.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...me(e)})};class Mi extends ve{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==te.boolean){const r=this._getOrReturnCtx(t);return Q(r,{code:K.invalid_type,expected:te.boolean,received:r.parsedType}),le}return jt(t.data)}}Mi.create=e=>new Mi({typeName:ae.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...me(e)});class zr extends ve{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==te.date){const i=this._getOrReturnCtx(t);return Q(i,{code:K.invalid_type,expected:te.date,received:i.parsedType}),le}if(isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return Q(i,{code:K.invalid_date}),le}const r=new Et;let o;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(o=this._getOrReturnCtx(t,o),Q(o,{code:K.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(o=this._getOrReturnCtx(t,o),Q(o,{code:K.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):_e.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new zr({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:re.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:re.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}zr.create=e=>new zr({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:ae.ZodDate,...me(e)});class Ta extends ve{_parse(t){if(this._getType(t)!==te.symbol){const r=this._getOrReturnCtx(t);return Q(r,{code:K.invalid_type,expected:te.symbol,received:r.parsedType}),le}return jt(t.data)}}Ta.create=e=>new Ta({typeName:ae.ZodSymbol,...me(e)});class Ri extends ve{_parse(t){if(this._getType(t)!==te.undefined){const r=this._getOrReturnCtx(t);return Q(r,{code:K.invalid_type,expected:te.undefined,received:r.parsedType}),le}return jt(t.data)}}Ri.create=e=>new Ri({typeName:ae.ZodUndefined,...me(e)});class Ii extends ve{_parse(t){if(this._getType(t)!==te.null){const r=this._getOrReturnCtx(t);return Q(r,{code:K.invalid_type,expected:te.null,received:r.parsedType}),le}return jt(t.data)}}Ii.create=e=>new Ii({typeName:ae.ZodNull,...me(e)});class Eo extends ve{constructor(){super(...arguments),this._any=!0}_parse(t){return jt(t.data)}}Eo.create=e=>new Eo({typeName:ae.ZodAny,...me(e)});class Or extends ve{constructor(){super(...arguments),this._unknown=!0}_parse(t){return jt(t.data)}}Or.create=e=>new Or({typeName:ae.ZodUnknown,...me(e)});class Xn extends ve{_parse(t){const n=this._getOrReturnCtx(t);return Q(n,{code:K.invalid_type,expected:te.never,received:n.parsedType}),le}}Xn.create=e=>new Xn({typeName:ae.ZodNever,...me(e)});class Aa extends ve{_parse(t){if(this._getType(t)!==te.undefined){const r=this._getOrReturnCtx(t);return Q(r,{code:K.invalid_type,expected:te.void,received:r.parsedType}),le}return jt(t.data)}}Aa.create=e=>new Aa({typeName:ae.ZodVoid,...me(e)});class dn extends ve{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),o=this._def;if(n.parsedType!==te.array)return Q(n,{code:K.invalid_type,expected:te.array,received:n.parsedType}),le;if(o.exactLength!==null){const s=n.data.length>o.exactLength.value,a=n.data.length<o.exactLength.value;(s||a)&&(Q(n,{code:s?K.too_big:K.too_small,minimum:a?o.exactLength.value:void 0,maximum:s?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),r.dirty())}if(o.minLength!==null&&n.data.length<o.minLength.value&&(Q(n,{code:K.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),r.dirty()),o.maxLength!==null&&n.data.length>o.maxLength.value&&(Q(n,{code:K.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((s,a)=>o.type._parseAsync(new jn(n,s,n.path,a)))).then(s=>Et.mergeArray(r,s));const i=[...n.data].map((s,a)=>o.type._parseSync(new jn(n,s,n.path,a)));return Et.mergeArray(r,i)}get element(){return this._def.type}min(t,n){return new dn({...this._def,minLength:{value:t,message:re.toString(n)}})}max(t,n){return new dn({...this._def,maxLength:{value:t,message:re.toString(n)}})}length(t,n){return new dn({...this._def,exactLength:{value:t,message:re.toString(n)}})}nonempty(t){return this.min(1,t)}}dn.create=(e,t)=>new dn({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ae.ZodArray,...me(t)});function Yr(e){if(e instanceof Ve){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=kn.create(Yr(r))}return new Ve({...e._def,shape:()=>t})}else return e instanceof dn?new dn({...e._def,type:Yr(e.element)}):e instanceof kn?kn.create(Yr(e.unwrap())):e instanceof gr?gr.create(Yr(e.unwrap())):e instanceof On?On.create(e.items.map(t=>Yr(t))):e}class Ve extends ve{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=_e.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==te.object){const c=this._getOrReturnCtx(t);return Q(c,{code:K.invalid_type,expected:te.object,received:c.parsedType}),le}const{status:r,ctx:o}=this._processInputParams(t),{shape:i,keys:s}=this._getCached(),a=[];if(!(this._def.catchall instanceof Xn&&this._def.unknownKeys==="strip"))for(const c in o.data)s.includes(c)||a.push(c);const l=[];for(const c of s){const u=i[c],d=o.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new jn(o,d,o.path,c)),alwaysSet:c in o.data})}if(this._def.catchall instanceof Xn){const c=this._def.unknownKeys;if(c==="passthrough")for(const u of a)l.push({key:{status:"valid",value:u},value:{status:"valid",value:o.data[u]}});else if(c==="strict")a.length>0&&(Q(o,{code:K.unrecognized_keys,keys:a}),r.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const u of a){const d=o.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new jn(o,d,o.path,u)),alwaysSet:u in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const c=[];for(const u of l){const d=await u.key,f=await u.value;c.push({key:d,value:f,alwaysSet:u.alwaysSet})}return c}).then(c=>Et.mergeObjectSync(r,c)):Et.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return re.errToObj,new Ve({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var o,i,s,a;const l=(s=(i=(o=this._def).errorMap)===null||i===void 0?void 0:i.call(o,n,r).message)!==null&&s!==void 0?s:r.defaultError;return n.code==="unrecognized_keys"?{message:(a=re.errToObj(t).message)!==null&&a!==void 0?a:l}:{message:l}}}:{}})}strip(){return new Ve({...this._def,unknownKeys:"strip"})}passthrough(){return new Ve({...this._def,unknownKeys:"passthrough"})}extend(t){return new Ve({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Ve({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:ae.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Ve({...this._def,catchall:t})}pick(t){const n={};return _e.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new Ve({...this._def,shape:()=>n})}omit(t){const n={};return _e.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new Ve({...this._def,shape:()=>n})}deepPartial(){return Yr(this)}partial(t){const n={};return _e.objectKeys(this.shape).forEach(r=>{const o=this.shape[r];t&&!t[r]?n[r]=o:n[r]=o.optional()}),new Ve({...this._def,shape:()=>n})}required(t){const n={};return _e.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof kn;)i=i._def.innerType;n[r]=i}}),new Ve({...this._def,shape:()=>n})}keyof(){return Fw(_e.objectKeys(this.shape))}}Ve.create=(e,t)=>new Ve({shape:()=>e,unknownKeys:"strip",catchall:Xn.create(),typeName:ae.ZodObject,...me(t)});Ve.strictCreate=(e,t)=>new Ve({shape:()=>e,unknownKeys:"strict",catchall:Xn.create(),typeName:ae.ZodObject,...me(t)});Ve.lazycreate=(e,t)=>new Ve({shape:e,unknownKeys:"strip",catchall:Xn.create(),typeName:ae.ZodObject,...me(t)});class ji extends ve{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function o(i){for(const a of i)if(a.result.status==="valid")return a.result;for(const a of i)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const s=i.map(a=>new Ut(a.ctx.common.issues));return Q(n,{code:K.invalid_union,unionErrors:s}),le}if(n.common.async)return Promise.all(r.map(async i=>{const s={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:s}),ctx:s}})).then(o);{let i;const s=[];for(const l of r){const c={...n,common:{...n.common,issues:[]},parent:null},u=l._parseSync({data:n.data,path:n.path,parent:c});if(u.status==="valid")return u;u.status==="dirty"&&!i&&(i={result:u,ctx:c}),c.common.issues.length&&s.push(c.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const a=s.map(l=>new Ut(l));return Q(n,{code:K.invalid_union,unionErrors:a}),le}}get options(){return this._def.options}}ji.create=(e,t)=>new ji({options:e,typeName:ae.ZodUnion,...me(t)});const Bn=e=>e instanceof Ni?Bn(e.schema):e instanceof mn?Bn(e.innerType()):e instanceof Li?[e.value]:e instanceof mr?e.options:e instanceof Fi?_e.objectValues(e.enum):e instanceof Bi?Bn(e._def.innerType):e instanceof Ri?[void 0]:e instanceof Ii?[null]:e instanceof kn?[void 0,...Bn(e.unwrap())]:e instanceof gr?[null,...Bn(e.unwrap())]:e instanceof Of||e instanceof zi?Bn(e.unwrap()):e instanceof Vi?Bn(e._def.innerType):[];class ml extends ve{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==te.object)return Q(n,{code:K.invalid_type,expected:te.object,received:n.parsedType}),le;const r=this.discriminator,o=n.data[r],i=this.optionsMap.get(o);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(Q(n,{code:K.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),le)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const o=new Map;for(const i of n){const s=Bn(i.shape[t]);if(!s.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const a of s){if(o.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);o.set(a,i)}}return new ml({typeName:ae.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:o,...me(r)})}}function Au(e,t){const n=Vn(e),r=Vn(t);if(e===t)return{valid:!0,data:e};if(n===te.object&&r===te.object){const o=_e.objectKeys(t),i=_e.objectKeys(e).filter(a=>o.indexOf(a)!==-1),s={...e,...t};for(const a of i){const l=Au(e[a],t[a]);if(!l.valid)return{valid:!1};s[a]=l.data}return{valid:!0,data:s}}else if(n===te.array&&r===te.array){if(e.length!==t.length)return{valid:!1};const o=[];for(let i=0;i<e.length;i++){const s=e[i],a=t[i],l=Au(s,a);if(!l.valid)return{valid:!1};o.push(l.data)}return{valid:!0,data:o}}else return n===te.date&&r===te.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Oi extends ve{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),o=(i,s)=>{if(Cu(i)||Cu(s))return le;const a=Au(i.value,s.value);return a.valid?((Tu(i)||Tu(s))&&n.dirty(),{status:n.value,value:a.data}):(Q(r,{code:K.invalid_intersection_types}),le)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,s])=>o(i,s)):o(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Oi.create=(e,t,n)=>new Oi({left:e,right:t,typeName:ae.ZodIntersection,...me(n)});class On extends ve{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==te.array)return Q(r,{code:K.invalid_type,expected:te.array,received:r.parsedType}),le;if(r.data.length<this._def.items.length)return Q(r,{code:K.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),le;!this._def.rest&&r.data.length>this._def.items.length&&(Q(r,{code:K.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...r.data].map((s,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new jn(r,s,r.path,a)):null}).filter(s=>!!s);return r.common.async?Promise.all(i).then(s=>Et.mergeArray(n,s)):Et.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new On({...this._def,rest:t})}}On.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new On({items:e,typeName:ae.ZodTuple,rest:null,...me(t)})};class Di extends ve{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==te.object)return Q(r,{code:K.invalid_type,expected:te.object,received:r.parsedType}),le;const o=[],i=this._def.keyType,s=this._def.valueType;for(const a in r.data)o.push({key:i._parse(new jn(r,a,r.path,a)),value:s._parse(new jn(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?Et.mergeObjectAsync(n,o):Et.mergeObjectSync(n,o)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof ve?new Di({keyType:t,valueType:n,typeName:ae.ZodRecord,...me(r)}):new Di({keyType:cn.create(),valueType:t,typeName:ae.ZodRecord,...me(n)})}}class Ea extends ve{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==te.map)return Q(r,{code:K.invalid_type,expected:te.map,received:r.parsedType}),le;const o=this._def.keyType,i=this._def.valueType,s=[...r.data.entries()].map(([a,l],c)=>({key:o._parse(new jn(r,a,r.path,[c,"key"])),value:i._parse(new jn(r,l,r.path,[c,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of s){const c=await l.key,u=await l.value;if(c.status==="aborted"||u.status==="aborted")return le;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(c.value,u.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const l of s){const c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return le;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(c.value,u.value)}return{status:n.value,value:a}}}}Ea.create=(e,t,n)=>new Ea({valueType:t,keyType:e,typeName:ae.ZodMap,...me(n)});class $r extends ve{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==te.set)return Q(r,{code:K.invalid_type,expected:te.set,received:r.parsedType}),le;const o=this._def;o.minSize!==null&&r.data.size<o.minSize.value&&(Q(r,{code:K.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),n.dirty()),o.maxSize!==null&&r.data.size>o.maxSize.value&&(Q(r,{code:K.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),n.dirty());const i=this._def.valueType;function s(l){const c=new Set;for(const u of l){if(u.status==="aborted")return le;u.status==="dirty"&&n.dirty(),c.add(u.value)}return{status:n.value,value:c}}const a=[...r.data.values()].map((l,c)=>i._parse(new jn(r,l,r.path,c)));return r.common.async?Promise.all(a).then(l=>s(l)):s(a)}min(t,n){return new $r({...this._def,minSize:{value:t,message:re.toString(n)}})}max(t,n){return new $r({...this._def,maxSize:{value:t,message:re.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}$r.create=(e,t)=>new $r({valueType:e,minSize:null,maxSize:null,typeName:ae.ZodSet,...me(t)});class ho extends ve{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==te.function)return Q(n,{code:K.invalid_type,expected:te.function,received:n.parsedType}),le;function r(a,l){return _a({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Sa(),Ao].filter(c=>!!c),issueData:{code:K.invalid_arguments,argumentsError:l}})}function o(a,l){return _a({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Sa(),Ao].filter(c=>!!c),issueData:{code:K.invalid_return_type,returnTypeError:l}})}const i={errorMap:n.common.contextualErrorMap},s=n.data;if(this._def.returns instanceof Po){const a=this;return jt(async function(...l){const c=new Ut([]),u=await a._def.args.parseAsync(l,i).catch(m=>{throw c.addIssue(r(l,m)),c}),d=await Reflect.apply(s,this,u);return await a._def.returns._def.type.parseAsync(d,i).catch(m=>{throw c.addIssue(o(d,m)),c})})}else{const a=this;return jt(function(...l){const c=a._def.args.safeParse(l,i);if(!c.success)throw new Ut([r(l,c.error)]);const u=Reflect.apply(s,this,c.data),d=a._def.returns.safeParse(u,i);if(!d.success)throw new Ut([o(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new ho({...this._def,args:On.create(t).rest(Or.create())})}returns(t){return new ho({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new ho({args:t||On.create([]).rest(Or.create()),returns:n||Or.create(),typeName:ae.ZodFunction,...me(r)})}}class Ni extends ve{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Ni.create=(e,t)=>new Ni({getter:e,typeName:ae.ZodLazy,...me(t)});class Li extends ve{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return Q(n,{received:n.data,code:K.invalid_literal,expected:this._def.value}),le}return{status:"valid",value:t.data}}get value(){return this._def.value}}Li.create=(e,t)=>new Li({value:e,typeName:ae.ZodLiteral,...me(t)});function Fw(e,t){return new mr({values:e,typeName:ae.ZodEnum,...me(t)})}class mr extends ve{constructor(){super(...arguments),ei.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return Q(n,{expected:_e.joinValues(r),received:n.parsedType,code:K.invalid_type}),le}if(Ca(this,ei)||Ow(this,ei,new Set(this._def.values)),!Ca(this,ei).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return Q(n,{received:n.data,code:K.invalid_enum_value,options:r}),le}return jt(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return mr.create(t,{...this._def,...n})}exclude(t,n=this._def){return mr.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}ei=new WeakMap;mr.create=Fw;class Fi extends ve{constructor(){super(...arguments),ti.set(this,void 0)}_parse(t){const n=_e.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==te.string&&r.parsedType!==te.number){const o=_e.objectValues(n);return Q(r,{expected:_e.joinValues(o),received:r.parsedType,code:K.invalid_type}),le}if(Ca(this,ti)||Ow(this,ti,new Set(_e.getValidEnumValues(this._def.values))),!Ca(this,ti).has(t.data)){const o=_e.objectValues(n);return Q(r,{received:r.data,code:K.invalid_enum_value,options:o}),le}return jt(t.data)}get enum(){return this._def.values}}ti=new WeakMap;Fi.create=(e,t)=>new Fi({values:e,typeName:ae.ZodNativeEnum,...me(t)});class Po extends ve{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==te.promise&&n.common.async===!1)return Q(n,{code:K.invalid_type,expected:te.promise,received:n.parsedType}),le;const r=n.parsedType===te.promise?n.data:Promise.resolve(n.data);return jt(r.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Po.create=(e,t)=>new Po({type:e,typeName:ae.ZodPromise,...me(t)});class mn extends ve{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ae.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),o=this._def.effect||null,i={addIssue:s=>{Q(r,s),s.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),o.type==="preprocess"){const s=o.transform(r.data,i);if(r.common.async)return Promise.resolve(s).then(async a=>{if(n.value==="aborted")return le;const l=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return l.status==="aborted"?le:l.status==="dirty"||n.value==="dirty"?oo(l.value):l});{if(n.value==="aborted")return le;const a=this._def.schema._parseSync({data:s,path:r.path,parent:r});return a.status==="aborted"?le:a.status==="dirty"||n.value==="dirty"?oo(a.value):a}}if(o.type==="refinement"){const s=a=>{const l=o.refinement(a,i);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?le:(a.status==="dirty"&&n.dirty(),s(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?le:(a.status==="dirty"&&n.dirty(),s(a.value).then(()=>({status:n.value,value:a.value}))))}if(o.type==="transform")if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Vr(s))return s;const a=o.transform(s.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>Vr(s)?Promise.resolve(o.transform(s.value,i)).then(a=>({status:n.value,value:a})):s);_e.assertNever(o)}}mn.create=(e,t,n)=>new mn({schema:e,typeName:ae.ZodEffects,effect:t,...me(n)});mn.createWithPreprocess=(e,t,n)=>new mn({schema:t,effect:{type:"preprocess",transform:e},typeName:ae.ZodEffects,...me(n)});class kn extends ve{_parse(t){return this._getType(t)===te.undefined?jt(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}kn.create=(e,t)=>new kn({innerType:e,typeName:ae.ZodOptional,...me(t)});class gr extends ve{_parse(t){return this._getType(t)===te.null?jt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}gr.create=(e,t)=>new gr({innerType:e,typeName:ae.ZodNullable,...me(t)});class Bi extends ve{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===te.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Bi.create=(e,t)=>new Bi({innerType:e,typeName:ae.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...me(t)});class Vi extends ve{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},o=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return ki(o)?o.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Ut(r.common.issues)},input:r.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Ut(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Vi.create=(e,t)=>new Vi({innerType:e,typeName:ae.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...me(t)});class Pa extends ve{_parse(t){if(this._getType(t)!==te.nan){const r=this._getOrReturnCtx(t);return Q(r,{code:K.invalid_type,expected:te.nan,received:r.parsedType}),le}return{status:"valid",value:t.data}}}Pa.create=e=>new Pa({typeName:ae.ZodNaN,...me(e)});const NG=Symbol("zod_brand");class Of extends ve{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class cs extends ve{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?le:i.status==="dirty"?(n.dirty(),oo(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{const o=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?le:o.status==="dirty"?(n.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:r.path,parent:r})}}static create(t,n){return new cs({in:t,out:n,typeName:ae.ZodPipeline})}}class zi extends ve{_parse(t){const n=this._def.innerType._parse(t),r=o=>(Vr(o)&&(o.value=Object.freeze(o.value)),o);return ki(n)?n.then(o=>r(o)):r(n)}unwrap(){return this._def.innerType}}zi.create=(e,t)=>new zi({innerType:e,typeName:ae.ZodReadonly,...me(t)});function Bw(e,t={},n){return e?Eo.create().superRefine((r,o)=>{var i,s;if(!e(r)){const a=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,l=(s=(i=a.fatal)!==null&&i!==void 0?i:n)!==null&&s!==void 0?s:!0,c=typeof a=="string"?{message:a}:a;o.addIssue({code:"custom",...c,fatal:l})}}):Eo.create()}const LG={object:Ve.lazycreate};var ae;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(ae||(ae={}));const FG=(e,t={message:`Input not instance of ${e.name}`})=>Bw(n=>n instanceof e,t),Vw=cn.create,zw=pr.create,BG=Pa.create,VG=hr.create,$w=Mi.create,zG=zr.create,$G=Ta.create,GG=Ri.create,UG=Ii.create,HG=Eo.create,WG=Or.create,KG=Xn.create,qG=Aa.create,ZG=dn.create,XG=Ve.create,YG=Ve.strictCreate,JG=ji.create,QG=ml.create,e5=Oi.create,t5=On.create,n5=Di.create,r5=Ea.create,o5=$r.create,i5=ho.create,s5=Ni.create,a5=Li.create,l5=mr.create,c5=Fi.create,u5=Po.create,Dg=mn.create,d5=kn.create,f5=gr.create,p5=mn.createWithPreprocess,h5=cs.create,m5=()=>Vw().optional(),g5=()=>zw().optional(),v5=()=>$w().optional(),b5={string:e=>cn.create({...e,coerce:!0}),number:e=>pr.create({...e,coerce:!0}),boolean:e=>Mi.create({...e,coerce:!0}),bigint:e=>hr.create({...e,coerce:!0}),date:e=>zr.create({...e,coerce:!0})},y5=le;var be=Object.freeze({__proto__:null,defaultErrorMap:Ao,setErrorMap:pG,getErrorMap:Sa,makeIssue:_a,EMPTY_PATH:hG,addIssueToContext:Q,ParseStatus:Et,INVALID:le,DIRTY:oo,OK:jt,isAborted:Cu,isDirty:Tu,isValid:Vr,isAsync:ki,get util(){return _e},get objectUtil(){return _u},ZodParsedType:te,getParsedType:Vn,ZodType:ve,datetimeRegex:Lw,ZodString:cn,ZodNumber:pr,ZodBigInt:hr,ZodBoolean:Mi,ZodDate:zr,ZodSymbol:Ta,ZodUndefined:Ri,ZodNull:Ii,ZodAny:Eo,ZodUnknown:Or,ZodNever:Xn,ZodVoid:Aa,ZodArray:dn,ZodObject:Ve,ZodUnion:ji,ZodDiscriminatedUnion:ml,ZodIntersection:Oi,ZodTuple:On,ZodRecord:Di,ZodMap:Ea,ZodSet:$r,ZodFunction:ho,ZodLazy:Ni,ZodLiteral:Li,ZodEnum:mr,ZodNativeEnum:Fi,ZodPromise:Po,ZodEffects:mn,ZodTransformer:mn,ZodOptional:kn,ZodNullable:gr,ZodDefault:Bi,ZodCatch:Vi,ZodNaN:Pa,BRAND:NG,ZodBranded:Of,ZodPipeline:cs,ZodReadonly:zi,custom:Bw,Schema:ve,ZodSchema:ve,late:LG,get ZodFirstPartyTypeKind(){return ae},coerce:b5,any:HG,array:ZG,bigint:VG,boolean:$w,date:zG,discriminatedUnion:QG,effect:Dg,enum:l5,function:i5,instanceof:FG,intersection:e5,lazy:s5,literal:a5,map:r5,nan:BG,nativeEnum:c5,never:KG,null:UG,nullable:f5,number:zw,object:XG,oboolean:v5,onumber:g5,optional:d5,ostring:m5,pipeline:h5,preprocess:p5,promise:u5,record:n5,set:o5,strictObject:YG,string:Vw,symbol:$G,transformer:Dg,tuple:t5,undefined:GG,union:JG,unknown:WG,void:qG,NEVER:y5,ZodIssueCode:K,quotelessJson:fG,ZodError:Ut});const Gw=be.enum(["years","months","weeks","days","hours","minutes","seconds"]),x5=be.array(Gw).default(["days","hours","minutes","seconds"]),w5=be.record(Gw,be.string().optional()).default({years:"Years",months:"Months",weeks:"Weeks",days:"Days",hours:"Hours",minutes:"Minutes",seconds:"Seconds"}),gl=["200","400","500","700","900"],Ng=be.object({family:be.string().default("monospace"),size:be.number().positive().default(60),weight:be.enum(gl).default("700"),color:be.string().default("#000000")}),Lg=be.object({symbol:be.string().default(""),size:be.number().positive().default(60),weight:be.enum(gl).default("700"),color:be.string().default("#000000")}),S5=be.object({numbers:Ng.default({}),units:Ng.default({size:13,weight:"700",family:"monospace",color:"#000000"})}).default({}),_5=be.object({day:Lg.default({}),time:Lg.default({symbol:":",size:60,weight:"700",color:"#000000"})}).default({}),C5=["left","center","right"],T5=be.object({gap:be.coerce.number().nonnegative().default(5),alignment:be.enum(C5).default("left")}).default({}),A5=be.object({width:be.coerce.number().nonnegative(),color:be.string(),style:be.string()}),E5=be.object({width:be.number().nonnegative(),color:be.string()}),P5=be.object({background:be.string().default("transparent"),rounding:be.number().default(0),border:A5.default({width:0,color:"",style:"none"}),shadow:E5.default({width:0,color:""}),padding:be.number().default(0),grow:be.string().default("0"),aspectRatio:be.string().default("auto")}).default({}),k5=["keep","text","hide"],M5=be.object({visibility:be.enum(k5).default("keep"),text:be.string().default("")}).default({}),Eu=be.object({datetime:be.coerce.string().regex(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2})?$/,"Incorrect datetime format (YYYY-MM-DDTHH:mm:ss or YYYY-MM-DDTHH:mm)").transform(e=>e.split(":").length===2?e+":00":e).default(Zw.now().plus({hours:1}).toString().slice(0,19)),timezone:be.string().default("UTC"),enabledUnits:x5,defaultUnits:w5,fonts:S5,separators:_5,container:T5,blocks:P5,expiration:M5}).default({}),Fg=Eu.parse({}),Uw=sG({name:"countdownConfig",initialState:Fg,reducers:{updateSetting:(e,t)=>{const n={...e,[t.payload.key]:t.payload.value},r=Eu.safeParse(n);return r.success?r.data:(console.error("Invalid state update:",r.error.errors),e)},mergeConfig:(e,t)=>Eu.parse({...e,...t.payload}),resetConfig:()=>Fg}}),{updateSetting:We,mergeConfig:Bg,resetConfig:g4}=Uw.actions,R5=Uw.reducer,I5=(e,t)=>{t&&e(We({key:"datetime",value:t}))},j5=(e,t)=>{t&&e(We({key:"timezone",value:t}))},Sr=(e,t,n,r)=>{r||(r=""),e(We({key:"defaultUnits",value:{...t.defaultUnits,[n]:r}}))},_r=(e,t,n,r)=>{const o=i=>["years","months","weeks","days","hours","minutes","seconds"].filter(a=>i.includes(a));e(We(r?{key:"enabledUnits",value:o([...t.enabledUnits,n])}:{key:"enabledUnits",value:o(t.enabledUnits.filter(i=>i!==n))}))},Vg=(e,t,n,r)=>{if(!r)return;const o={...t.fonts,[n]:{...t.fonts[n],size:r}};e(We({key:"fonts",value:o}))},zg=(e,t,n,r)=>{if(!gl.includes(r))return;const o={...t.fonts,[n]:{...t.fonts[n],weight:r}};e(We({key:"fonts",value:o}))},$g=(e,t,n,r)=>{if(!r)return;const o={...t.fonts,[n]:{...t.fonts[n],color:r}};e(We({key:"fonts",value:o}))},Gg=(e,t,n,r)=>{r||(r="");const o={...t.separators,[n]:{...t.separators[n],symbol:r}};e(We({key:"separators",value:o}))},Ug=(e,t,n,r)=>{if(!r)return;const o={...t.separators,[n]:{...t.separators[n],size:r}};e(We({key:"separators",value:o}))},Hg=(e,t,n,r)=>{if(!gl.includes(r))return;const o={...t.separators,[n]:{...t.separators[n],weight:r}};e(We({key:"separators",value:o}))},Wg=(e,t,n,r)=>{if(!r)return;const o={...t.separators,[n]:{...t.separators[n],color:r}};e(We({key:"separators",value:o}))},O5=(e,t,n)=>{n&&e(We({key:"container",value:{...t.container,gap:Number(n)}}))},D5=(e,t,n)=>{n&&e(We({key:"container",value:{...t.container,alignment:n}}))},N5=(e,t,n)=>{n&&e(We({key:"blocks",value:{...t.blocks,background:n}}))},L5=(e,t,n)=>{n&&e(We({key:"blocks",value:{...t.blocks,rounding:Number(n)}}))},F5=(e,t,n)=>{n&&e(We({key:"blocks",value:{...t.blocks,padding:Number(n)}}))},B5=(e,t,n)=>{n&&e(We({key:"blocks",value:{...t.blocks,grow:n}}))},V5=(e,t,n)=>{n&&e(We({key:"blocks",value:{...t.blocks,aspectRatio:n}}))},z5=(e,t,n)=>{n&&e(We({key:"blocks",value:{...t.blocks,border:{width:n.width?Number(n.width.toString().replace("px","")):0,color:String(n.color??""),style:String(n.style??"none")}}}))},$5=(e,t,n)=>{n&&e(We({key:"blocks",value:{...t.blocks,shadow:{width:n.width?Number(n.width.toString().replace("px","")):0,color:String(n.color??"")}}}))},G5=(e,t,n)=>{n&&e(We({key:"expiration",value:{...t.expiration,visibility:n}}))},U5=(e,t,n)=>{n&&e(We({key:"expiration",value:{...t.expiration,text:n}}))},H5=()=>p.jsx("div",{style:{marginTop:"40px"},children:p.jsxs(S$,{status:"warning",politeness:"polite",isDismissible:!1,children:[p.jsx("h4",{style:{margin:"0"},children:"Show some love ❤️"}),p.jsxs("p",{children:["Your support is the ",p.jsx("i",{children:"heartbeat"})," of this project. If you find it useful, please consider making a ",p.jsx("i",{children:"small donation"}),". Your kindness ",p.jsx("i",{children:"keeps"})," this project ",p.jsx("i",{children:"alive"})," and kicking!"]}),p.jsx(ft,{href:"https://buymeacoffee.com/ko.pa",variant:"primary",target:"_blank",children:"I want to support"})]})}),{config:Kg,wpTimezoneName:qg,wpTimezoneOffset:Zg}=window.theCountdownTimerData||{},Xg=qg||Zg||(typeof Intl<"u"?Intl.DateTimeFormat().resolvedOptions().timeZone:"UTC+0:00"),W5=()=>{var f,m,v,g,y,b,_;const e=h.useRef(null),[t,n]=h.useState(""),r=hS(),o=vS(x=>x.countdownConfig);h.useEffect(()=>{r(Bg(Kg))},[Kg]),h.useEffect(()=>{r(Bg({timezone:Xg}))},[Xg]),h.useEffect(()=>{e.current&&(e.current.value=JSON.stringify(o))},[o]);const i=p.jsxs(De,{wrap:!0,align:"flex-start",gap:6,style:{width:"100%"},justify:"unset",children:[p.jsx(Re,{style:{width:"200px"},children:p.jsx(sn,{label:"Target Date & time",__next40pxDefaultSize:!0,type:"datetime-local",step:1,onClick:x=>{"showPicker"in HTMLInputElement.prototype&&x.target.showPicker()},onChange:x=>I5(r,x),value:o.datetime.replace("Z","")})}),p.jsx(Re,{style:{width:"300px"},children:p.jsx(Xr,{label:"Time zone",__next40pxDefaultSize:!0,allowReset:!1,options:j$,onChange:x=>j5(r,x),value:o.timezone})})]}),s=p.jsxs(De,{direction:"column",gap:6,style:{width:"100%"},children:[p.jsx(ke,{children:p.jsxs(De,{wrap:!0,gap:6,align:"flex-start",justify:"unset",children:[p.jsx(Re,{style:{width:"300px"},children:p.jsxs(De,{direction:"column",gap:6,style:{width:"100%"},children:[p.jsx(ke,{children:p.jsx(Xr,{__next40pxDefaultSize:!0,label:"Style",options:vc,allowReset:!1,onChange:x=>zg(r,o,"numbers",x),value:o.fonts.numbers.weight})}),p.jsx(ke,{children:p.jsx(Rs,{__next40pxDefaultSize:!0,fontSizes:gc,withReset:!1,units:["px"],onChange:x=>Vg(r,o,"numbers",x),value:o.fonts.numbers.size})})]})}),p.jsx(Re,{style:{width:"300px"},children:p.jsx(dt,{label:"Color",children:p.jsx(Ar,{copyFormat:"hex",enableAlpha:!0,onChange:x=>$g(r,o,"numbers",x),color:o.fonts.numbers.color})})})]})}),p.jsx(ke,{children:p.jsxs(mc,{children:["The ",p.jsx("u",{children:"monospace"})," font is used to avoid number shifting."]})})]}),a=p.jsxs(De,{direction:"column",gap:6,style:{width:"100%"},children:[p.jsxs(ke,{children:[p.jsxs(De,{wrap:!0,gap:6,justify:"unset",children:[p.jsx(Re,{style:{minWidth:"120px"},children:p.jsx(sn,{label:p.jsx(nr,{__nextHasNoMarginBottom:!0,label:"Years",checked:((f=o==null?void 0:o.enabledUnits)==null?void 0:f.includes("years"))??!1,onChange:x=>_r(r,o,"years",x)}),__next40pxDefaultSize:!0,onChange:x=>Sr(r,o,"years",x),value:o.defaultUnits.years??""})}),p.jsx(Re,{style:{minWidth:"120px"},children:p.jsx(sn,{label:p.jsx(nr,{__nextHasNoMarginBottom:!0,label:"Months",checked:((m=o==null?void 0:o.enabledUnits)==null?void 0:m.includes("months"))??!1,onChange:x=>_r(r,o,"months",x)}),__next40pxDefaultSize:!0,onChange:x=>Sr(r,o,"months",x),value:o.defaultUnits.months??""})}),p.jsx(Re,{style:{minWidth:"120px"},children:p.jsx(sn,{label:p.jsx(nr,{__nextHasNoMarginBottom:!0,label:"Weeks",checked:((v=o==null?void 0:o.enabledUnits)==null?void 0:v.includes("weeks"))??!1,onChange:x=>_r(r,o,"weeks",x)}),__next40pxDefaultSize:!0,onChange:x=>Sr(r,o,"weeks",x),value:o.defaultUnits.weeks??""})}),p.jsx(Re,{style:{minWidth:"120px"},children:p.jsx(sn,{label:p.jsx(nr,{__nextHasNoMarginBottom:!0,label:"Days",checked:((g=o==null?void 0:o.enabledUnits)==null?void 0:g.includes("days"))??!1,onChange:x=>_r(r,o,"days",x)}),__next40pxDefaultSize:!0,onChange:x=>Sr(r,o,"days",x),value:o.defaultUnits.days??""})}),p.jsx(Re,{style:{minWidth:"120px"},children:p.jsx(sn,{label:p.jsx(nr,{__nextHasNoMarginBottom:!0,label:"Hours",checked:((y=o==null?void 0:o.enabledUnits)==null?void 0:y.includes("hours"))??!1,onChange:x=>_r(r,o,"hours",x)}),__next40pxDefaultSize:!0,onChange:x=>Sr(r,o,"hours",x),value:o.defaultUnits.hours??""})}),p.jsx(Re,{style:{minWidth:"120px"},children:p.jsx(sn,{label:p.jsx(nr,{__nextHasNoMarginBottom:!0,label:"Minutes",checked:((b=o==null?void 0:o.enabledUnits)==null?void 0:b.includes("minutes"))??!1,onChange:x=>_r(r,o,"minutes",x)}),__next40pxDefaultSize:!0,onChange:x=>Sr(r,o,"minutes",x),value:o.defaultUnits.minutes??""})}),p.jsx(Re,{style:{minWidth:"120px"},children:p.jsx(sn,{label:p.jsx(nr,{__nextHasNoMarginBottom:!0,label:"Seconds",checked:((_=o==null?void 0:o.enabledUnits)==null?void 0:_.includes("seconds"))??!1,onChange:x=>_r(r,o,"seconds",x)}),__next40pxDefaultSize:!0,onChange:x=>Sr(r,o,"seconds",x),value:o.defaultUnits.seconds??""})})]}),p.jsx(Ez,{margin:5})]}),p.jsx(ke,{children:p.jsxs(De,{wrap:!0,gap:6,align:"flex-start",justify:"unset",children:[p.jsx(Re,{style:{width:"300px"},children:p.jsxs(De,{direction:"column",gap:6,style:{width:"100%"},children:[p.jsx(ke,{children:p.jsx(Xr,{label:"Style",__next40pxDefaultSize:!0,allowReset:!1,options:R$,onChange:x=>zg(r,o,"units",x),value:o.fonts.units.weight})}),p.jsx(ke,{children:p.jsx(Rs,{fontSizes:M$,__next40pxDefaultSize:!0,withReset:!1,units:["px"],onChange:x=>Vg(r,o,"units",x),value:o.fonts.units.size})})]})}),p.jsx(Re,{style:{width:"300px"},children:p.jsx(dt,{label:"Color",children:p.jsx(Ar,{copyFormat:"hex",enableAlpha:!0,onChange:x=>$g(r,o,"units",x),color:o.fonts.units.color})})})]})})]}),l=p.jsxs(De,{wrap:!0,gap:20,justify:"",align:"flex-start",children:[p.jsx(Re,{children:p.jsxs(De,{wrap:!0,gap:6,justify:"",align:"flex-start",children:[p.jsx(Re,{style:{width:"300px"},children:p.jsxs(De,{direction:"column",gap:6,style:{width:"100%"},children:[p.jsx(ke,{children:p.jsx(sn,{label:"Time separator",__next40pxDefaultSize:!0,help:"between hours, minutes and seconds",onChange:x=>Gg(r,o,"time",x),value:o.separators.time.symbol})}),p.jsx(ke,{children:p.jsx(Xr,{label:"Style",__next40pxDefaultSize:!0,allowReset:!1,options:vc,onChange:x=>Hg(r,o,"time",x),value:o.separators.time.weight})}),p.jsx(ke,{children:p.jsx(Rs,{fontSizes:gc,__next40pxDefaultSize:!0,withReset:!1,units:["px"],onChange:x=>Ug(r,o,"time",x),value:o.separators.time.size})})]})}),p.jsx(Re,{children:p.jsx(dt,{label:"Time separator color",children:p.jsx(Ar,{copyFormat:"hex",onChange:x=>Wg(r,o,"time",x),color:o.separators.time.color})})})]})}),p.jsx(Re,{children:p.jsxs(De,{wrap:!0,gap:6,justify:"",align:"flex-start",children:[p.jsx(Re,{style:{width:"300px"},children:p.jsxs(De,{direction:"column",gap:6,style:{width:"100%"},children:[p.jsx(ke,{children:p.jsx(sn,{label:"Day Separator",__next40pxDefaultSize:!0,help:"between days and time",onChange:x=>Gg(r,o,"day",x),value:o.separators.day.symbol})}),p.jsx(ke,{children:p.jsx(Xr,{label:"Style",__next40pxDefaultSize:!0,allowReset:!1,options:vc,onChange:x=>Hg(r,o,"day",x),value:o.separators.day.weight})}),p.jsx(ke,{children:p.jsx(Rs,{fontSizes:gc,__next40pxDefaultSize:!0,withReset:!1,units:["px"],onChange:x=>Ug(r,o,"day",x),value:o.separators.day.size})})]})}),p.jsx(Re,{children:p.jsx(dt,{label:"Day separator color",children:p.jsx(Ar,{copyFormat:"hex",enableAlpha:!0,onChange:x=>Wg(r,o,"day",x),color:o.separators.day.color})})})]})})]}),c=p.jsx(De,{direction:"column",gap:6,style:{width:"100%"},children:p.jsx(ke,{children:p.jsxs(De,{wrap:!0,gap:6,align:"flex-start",justify:"unset",children:[p.jsx(Re,{children:p.jsx(dt,{label:"Background color",children:p.jsx(Ar,{copyFormat:"hex",enableAlpha:!0,onChange:x=>N5(r,o,x),color:o.blocks.background})})}),p.jsx(Re,{style:{width:"300px"},children:p.jsxs(De,{direction:"column",gap:6,style:{width:"100%"},children:[p.jsx(ke,{children:p.jsx(po,{__next40pxDefaultSize:!0,label:"Corner rounding",min:0,spinControls:"custom",required:!0,onChange:x=>L5(r,o,x),value:o.blocks.rounding})}),p.jsx(ke,{children:p.jsx(mg,{__next40pxDefaultSize:!0,shouldSanitizeBorder:!0,label:"Border",disableUnits:!0,placeholder:"Width",onChange:x=>z5(r,o,x),value:o.blocks.border})}),p.jsx(ke,{children:p.jsx(mg,{__next40pxDefaultSize:!0,label:"Shadow",enableStyle:!1,disableUnits:!0,placeholder:"Blur size",onChange:x=>$5(r,o,x),value:o.blocks.shadow})})]})}),p.jsx(Re,{style:{width:"300px"},children:p.jsxs(De,{direction:"column",gap:6,style:{width:"100%"},children:[p.jsx(ke,{children:p.jsx(po,{__next40pxDefaultSize:!0,label:"Spacing between blocks",min:0,spinControls:"custom",required:!0,onChange:x=>O5(r,o,x),value:o.container.gap})}),p.jsx(ke,{children:p.jsx(po,{__next40pxDefaultSize:!0,label:"Spacing within blocks",min:0,spinControls:"custom",required:!0,onChange:x=>F5(r,o,x),value:o.blocks.padding})})]})}),p.jsx(Re,{style:{width:"300px"},children:p.jsxs(De,{direction:"column",gap:6,style:{width:"100%"},children:[p.jsx(ke,{children:p.jsxs(ci,{__next40pxDefaultSize:!0,isBlock:!0,label:"Alignment",onChange:x=>D5(r,o,x),value:o.container.alignment,children:[p.jsx(tr,{label:"Left",value:"left"}),p.jsx(tr,{label:"Center",value:"center"}),p.jsx(tr,{label:"Right",value:"right"})]})}),p.jsx(ke,{children:p.jsxs(ci,{__next40pxDefaultSize:!0,isBlock:!0,label:"Distribution",onChange:x=>B5(r,o,x),value:o.blocks.grow,children:[p.jsx(tr,{label:"Auto",value:"0"}),p.jsx(tr,{label:"Fill container",value:"1"})]})}),p.jsx(ke,{children:p.jsxs(ci,{__next40pxDefaultSize:!0,help:p.jsxs(p.Fragment,{children:["Some older versions of browsers do not support this property. You can check the current level of support by clicking ",p.jsx("a",{target:"_blank",rel:"noreferrer",href:"https://developer.mozilla.org/en-US/docs/Web/CSS/aspect-ratio#browser_compatibility",children:"here"})]}),isBlock:!0,label:"Aspect ratio",onChange:x=>V5(r,o,x),value:o.blocks.aspectRatio,children:[p.jsx(tr,{label:"Auto",value:"auto"}),p.jsx(tr,{label:"Square",value:"1"})]})})]})})]})})}),u=p.jsxs(De,{direction:"column",gap:6,style:{width:"100%"},children:[p.jsx(ke,{children:p.jsx(xw,{options:[{label:"Keep visible",value:"keep"},{label:"Hide",value:"hide"},{label:"Show text",value:"text"}],onChange:x=>G5(r,o,x),selected:o.expiration.visibility})}),o.expiration.visibility==="text"&&p.jsx(ke,{children:p.jsx(Sw,{label:"Text",onChange:x=>U5(r,o,x),value:o.expiration.text})}),p.jsx(ke,{children:p.jsxs(mc,{children:["To see it in action, set an ",p.jsx("u",{children:"expired time"}),' in the "Date & time, time zone" tab.']})})]}),d=p.jsxs(De,{direction:"column",gap:6,style:{width:"100%"},children:[p.jsx(ke,{children:p.jsxs(mc,{children:["This section is designed for preview settings and will be displayed in the ",p.jsx("u",{children:"editor only"}),". For example, feel free to set the same background color for the preview as the section where the countdown timer will be embedded."]})}),p.jsx(ke,{children:p.jsx(dt,{label:"Background color",children:p.jsx(Ar,{copyFormat:"hex",onChange:x=>n(x),color:t})})})]});return p.jsxs("div",{children:[p.jsx(O$,{settings:o,preview:{bg:t}}),p.jsx(ww,{onSelect:()=>{},tabs:[{name:"datetime",title:"Date & time, time zone"},{name:"numbers",title:"Numbers"},{name:"units",title:"Units"},{name:"separators",title:"Separators"},{name:"blocks",title:"Blocks"},{name:"expiration",title:"After expiration"},{name:"preview",title:"Preview"}],children:x=>p.jsx(dw,{style:{marginTop:"10px"},children:p.jsxs(fw,{children:[x.name==="datetime"&&i,x.name==="numbers"&&s,x.name==="units"&&a,x.name==="separators"&&l,x.name==="blocks"&&c,x.name==="expiration"&&u,x.name==="preview"&&d]})})}),p.jsx(H5,{}),p.jsx("input",{type:"hidden",name:"content",ref:e})]})},K5=Q$({reducer:{countdownConfig:R5}});document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".the-countdown-timer-editor-component").forEach(t=>{Xw.createRoot(t).render(p.jsx(dS,{store:K5,children:p.jsx(W5,{})}))})});
//# sourceMappingURL=editor-CasGCq61.js.map
