@revisium/admin 2.2.1 → 2.4.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/assets/index-BDW1amIL.js +1885 -0
- package/dist/assets/{index-6HqKMu_R.css → index-D4XFaIWw.css} +1 -1
- package/dist/assets/vendor-chakra-81WUgB9u.js +16 -0
- package/dist/assets/vendor-graphql-BN0-5miB.js +50 -0
- package/dist/assets/vendor-mobx-RTHsWS6u.js +3 -0
- package/dist/assets/vendor-react-B-wSUMrZ.js +2 -0
- package/dist/index.html +6 -6
- package/package.json +12 -8
- package/dist/assets/index-Cxr1XnaG.js +0 -1473
- package/dist/assets/vendor-chakra-KVZl8JWx.js +0 -9
- package/dist/assets/vendor-graphql-G4Xi1cXi.js +0 -49
- package/dist/assets/vendor-mobx-3H1Pbg0A.js +0 -3
- package/dist/assets/vendor-react-BVJTUrr9.js +0 -9
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
function I0(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var xH=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function T0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function wH(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var i=!1;try{i=this instanceof r}catch{}return i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var eg={exports:{}},fa={},tg={exports:{}},Pe={};var Oy;function UI(){if(Oy)return Pe;Oy=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.iterator;function b(_){return _===null||typeof _!="object"?null:(_=y&&_[y]||_["@@iterator"],typeof _=="function"?_:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,x={};function E(_,G,Ce){this.props=_,this.context=G,this.refs=x,this.updater=Ce||v}E.prototype.isReactComponent={},E.prototype.setState=function(_,G){if(typeof _!="object"&&typeof _!="function"&&_!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,_,G,"setState")},E.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function O(){}O.prototype=E.prototype;function N(_,G,Ce){this.props=_,this.context=G,this.refs=x,this.updater=Ce||v}var R=N.prototype=new O;R.constructor=N,w(R,E.prototype),R.isPureReactComponent=!0;var S=Array.isArray,T=Object.prototype.hasOwnProperty,L={current:null},M={key:!0,ref:!0,__self:!0,__source:!0};function B(_,G,Ce){var Ee,ke={},Te=null,Fe=null;if(G!=null)for(Ee in G.ref!==void 0&&(Fe=G.ref),G.key!==void 0&&(Te=""+G.key),G)T.call(G,Ee)&&!M.hasOwnProperty(Ee)&&(ke[Ee]=G[Ee]);var X=arguments.length-2;if(X===1)ke.children=Ce;else if(1<X){for(var Y=Array(X),we=0;we<X;we++)Y[we]=arguments[we+2];ke.children=Y}if(_&&_.defaultProps)for(Ee in X=_.defaultProps,X)ke[Ee]===void 0&&(ke[Ee]=X[Ee]);return{$$typeof:e,type:_,key:Te,ref:Fe,props:ke,_owner:L.current}}function j(_,G){return{$$typeof:e,type:_.type,key:G,ref:_.ref,props:_.props,_owner:_._owner}}function W(_){return typeof _=="object"&&_!==null&&_.$$typeof===e}function U(_){var G={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(Ce){return G[Ce]})}var $=/\/+/g;function H(_,G){return typeof _=="object"&&_!==null&&_.key!=null?U(""+_.key):G.toString(36)}function ae(_,G,Ce,Ee,ke){var Te=typeof _;(Te==="undefined"||Te==="boolean")&&(_=null);var Fe=!1;if(_===null)Fe=!0;else switch(Te){case"string":case"number":Fe=!0;break;case"object":switch(_.$$typeof){case e:case t:Fe=!0}}if(Fe)return Fe=_,ke=ke(Fe),_=Ee===""?"."+H(Fe,0):Ee,S(ke)?(Ce="",_!=null&&(Ce=_.replace($,"$&/")+"/"),ae(ke,G,Ce,"",function(we){return we})):ke!=null&&(W(ke)&&(ke=j(ke,Ce+(!ke.key||Fe&&Fe.key===ke.key?"":(""+ke.key).replace($,"$&/")+"/")+_)),G.push(ke)),1;if(Fe=0,Ee=Ee===""?".":Ee+":",S(_))for(var X=0;X<_.length;X++){Te=_[X];var Y=Ee+H(Te,X);Fe+=ae(Te,G,Ce,Y,ke)}else if(Y=b(_),typeof Y=="function")for(_=Y.call(_),X=0;!(Te=_.next()).done;)Te=Te.value,Y=Ee+H(Te,X++),Fe+=ae(Te,G,Ce,Y,ke);else if(Te==="object")throw G=String(_),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.");return Fe}function ne(_,G,Ce){if(_==null)return _;var Ee=[],ke=0;return ae(_,Ee,"","",function(Te){return G.call(Ce,Te,ke++)}),Ee}function ce(_){if(_._status===-1){var G=_._result;G=G(),G.then(function(Ce){(_._status===0||_._status===-1)&&(_._status=1,_._result=Ce)},function(Ce){(_._status===0||_._status===-1)&&(_._status=2,_._result=Ce)}),_._status===-1&&(_._status=0,_._result=G)}if(_._status===1)return _._result.default;throw _._result}var me={current:null},oe={transition:null},ee={ReactCurrentDispatcher:me,ReactCurrentBatchConfig:oe,ReactCurrentOwner:L};function Z(){throw Error("act(...) is not supported in production builds of React.")}return Pe.Children={map:ne,forEach:function(_,G,Ce){ne(_,function(){G.apply(this,arguments)},Ce)},count:function(_){var G=0;return ne(_,function(){G++}),G},toArray:function(_){return ne(_,function(G){return G})||[]},only:function(_){if(!W(_))throw Error("React.Children.only expected to receive a single React element child.");return _}},Pe.Component=E,Pe.Fragment=n,Pe.Profiler=i,Pe.PureComponent=N,Pe.StrictMode=r,Pe.Suspense=f,Pe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ee,Pe.act=Z,Pe.cloneElement=function(_,G,Ce){if(_==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+_+".");var Ee=w({},_.props),ke=_.key,Te=_.ref,Fe=_._owner;if(G!=null){if(G.ref!==void 0&&(Te=G.ref,Fe=L.current),G.key!==void 0&&(ke=""+G.key),_.type&&_.type.defaultProps)var X=_.type.defaultProps;for(Y in G)T.call(G,Y)&&!M.hasOwnProperty(Y)&&(Ee[Y]=G[Y]===void 0&&X!==void 0?X[Y]:G[Y])}var Y=arguments.length-2;if(Y===1)Ee.children=Ce;else if(1<Y){X=Array(Y);for(var we=0;we<Y;we++)X[we]=arguments[we+2];Ee.children=X}return{$$typeof:e,type:_.type,key:ke,ref:Te,props:Ee,_owner:Fe}},Pe.createContext=function(_){return _={$$typeof:c,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},_.Provider={$$typeof:a,_context:_},_.Consumer=_},Pe.createElement=B,Pe.createFactory=function(_){var G=B.bind(null,_);return G.type=_,G},Pe.createRef=function(){return{current:null}},Pe.forwardRef=function(_){return{$$typeof:u,render:_}},Pe.isValidElement=W,Pe.lazy=function(_){return{$$typeof:h,_payload:{_status:-1,_result:_},_init:ce}},Pe.memo=function(_,G){return{$$typeof:p,type:_,compare:G===void 0?null:G}},Pe.startTransition=function(_){var G=oe.transition;oe.transition={};try{_()}finally{oe.transition=G}},Pe.unstable_act=Z,Pe.useCallback=function(_,G){return me.current.useCallback(_,G)},Pe.useContext=function(_){return me.current.useContext(_)},Pe.useDebugValue=function(){},Pe.useDeferredValue=function(_){return me.current.useDeferredValue(_)},Pe.useEffect=function(_,G){return me.current.useEffect(_,G)},Pe.useId=function(){return me.current.useId()},Pe.useImperativeHandle=function(_,G,Ce){return me.current.useImperativeHandle(_,G,Ce)},Pe.useInsertionEffect=function(_,G){return me.current.useInsertionEffect(_,G)},Pe.useLayoutEffect=function(_,G){return me.current.useLayoutEffect(_,G)},Pe.useMemo=function(_,G){return me.current.useMemo(_,G)},Pe.useReducer=function(_,G,Ce){return me.current.useReducer(_,G,Ce)},Pe.useRef=function(_){return me.current.useRef(_)},Pe.useState=function(_){return me.current.useState(_)},Pe.useSyncExternalStore=function(_,G,Ce){return me.current.useSyncExternalStore(_,G,Ce)},Pe.useTransition=function(){return me.current.useTransition()},Pe.version="18.3.1",Pe}var Ry;function Sp(){return Ry||(Ry=1,tg.exports=UI()),tg.exports}var Ny;function KI(){if(Ny)return fa;Ny=1;var e=Sp(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function c(u,f,p){var h,y={},b=null,v=null;p!==void 0&&(b=""+p),f.key!==void 0&&(b=""+f.key),f.ref!==void 0&&(v=f.ref);for(h in f)r.call(f,h)&&!a.hasOwnProperty(h)&&(y[h]=f[h]);if(u&&u.defaultProps)for(h in f=u.defaultProps,f)y[h]===void 0&&(y[h]=f[h]);return{$$typeof:t,type:u,key:b,ref:v,props:y,_owner:i.current}}return fa.Fragment=n,fa.jsx=c,fa.jsxs=c,fa}var Ay;function YI(){return Ay||(Ay=1,eg.exports=KI()),eg.exports}var P=YI();function O0(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var XI=/^((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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,qI=O0(function(e){return XI.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),k=Sp();const QI=T0(k),Vy=I0({__proto__:null,default:QI},[k]);function ZI(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 JI(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 eT=(function(){function e(n){var r=this;this._insertTag=function(i){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,a),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0: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(JI(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var a=ZI(i);try{a.insertRule(r,a.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e})(),Mt="-ms-",hu="-moz-",Ve="-webkit-",R0="comm",Ep="rule",kp="decl",tT="@import",N0="@keyframes",nT="@layer",rT=Math.abs,Au=String.fromCharCode,oT=Object.assign;function iT(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 A0(e){return e.trim()}function sT(e,t){return(e=t.exec(e))?e[0]:e}function _e(e,t,n){return e.replace(t,n)}function Gg(e,t){return e.indexOf(t)}function Vt(e,t){return e.charCodeAt(t)|0}function Ka(e,t,n){return e.slice(t,n)}function nr(e){return e.length}function Pp(e){return e.length}function Oc(e,t){return t.push(e),e}function aT(e,t){return e.map(t).join("")}var Vu=1,os=1,V0=0,on=0,st=0,us="";function _u(e,t,n,r,i,a,c){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:Vu,column:os,length:c,return:""}}function ga(e,t){return oT(_u("",null,null,"",null,null,0),e,{length:-e.length},t)}function lT(){return st}function cT(){return st=on>0?Vt(us,--on):0,os--,st===10&&(os=1,Vu--),st}function pn(){return st=on<V0?Vt(us,on++):0,os++,st===10&&(os=1,Vu++),st}function ir(){return Vt(us,on)}function qc(){return on}function tl(e,t){return Ka(us,e,t)}function Ya(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 _0(e){return Vu=os=1,V0=nr(us=e),on=0,[]}function L0(e){return us="",e}function Qc(e){return A0(tl(on-1,Ug(e===91?e+2:e===40?e+1:e)))}function uT(e){for(;(st=ir())&&st<33;)pn();return Ya(e)>2||Ya(st)>3?"":" "}function dT(e,t){for(;--t&&pn()&&!(st<48||st>102||st>57&&st<65||st>70&&st<97););return tl(e,qc()+(t<6&&ir()==32&&pn()==32))}function Ug(e){for(;pn();)switch(st){case e:return on;case 34:case 39:e!==34&&e!==39&&Ug(st);break;case 40:e===41&&Ug(e);break;case 92:pn();break}return on}function fT(e,t){for(;pn()&&e+st!==57;)if(e+st===84&&ir()===47)break;return"/*"+tl(t,on-1)+"*"+Au(e===47?e:pn())}function gT(e){for(;!Ya(ir());)pn();return tl(e,on)}function pT(e){return L0(Zc("",null,null,null,[""],e=_0(e),0,[0],e))}function Zc(e,t,n,r,i,a,c,u,f){for(var p=0,h=0,y=c,b=0,v=0,w=0,x=1,E=1,O=1,N=0,R="",S=i,T=a,L=r,M=R;E;)switch(w=N,N=pn()){case 40:if(w!=108&&Vt(M,y-1)==58){Gg(M+=_e(Qc(N),"&","&\f"),"&\f")!=-1&&(O=-1);break}case 34:case 39:case 91:M+=Qc(N);break;case 9:case 10:case 13:case 32:M+=uT(w);break;case 92:M+=dT(qc()-1,7);continue;case 47:switch(ir()){case 42:case 47:Oc(hT(fT(pn(),qc()),t,n),f);break;default:M+="/"}break;case 123*x:u[p++]=nr(M)*O;case 125*x:case 59:case 0:switch(N){case 0:case 125:E=0;case 59+h:O==-1&&(M=_e(M,/\f/g,"")),v>0&&nr(M)-y&&Oc(v>32?Ly(M+";",r,n,y-1):Ly(_e(M," ","")+";",r,n,y-2),f);break;case 59:M+=";";default:if(Oc(L=_y(M,t,n,p,h,i,u,R,S=[],T=[],y),a),N===123)if(h===0)Zc(M,t,L,L,S,a,y,u,T);else switch(b===99&&Vt(M,3)===110?100:b){case 100:case 108:case 109:case 115:Zc(e,L,L,r&&Oc(_y(e,L,L,0,0,i,u,R,i,S=[],y),T),i,T,y,u,r?S:T);break;default:Zc(M,L,L,L,[""],T,0,u,T)}}p=h=v=0,x=O=1,R=M="",y=c;break;case 58:y=1+nr(M),v=w;default:if(x<1){if(N==123)--x;else if(N==125&&x++==0&&cT()==125)continue}switch(M+=Au(N),N*x){case 38:O=h>0?1:(M+="\f",-1);break;case 44:u[p++]=(nr(M)-1)*O,O=1;break;case 64:ir()===45&&(M+=Qc(pn())),b=ir(),h=y=nr(R=M+=gT(qc())),N++;break;case 45:w===45&&nr(M)==2&&(x=0)}}return a}function _y(e,t,n,r,i,a,c,u,f,p,h){for(var y=i-1,b=i===0?a:[""],v=Pp(b),w=0,x=0,E=0;w<r;++w)for(var O=0,N=Ka(e,y+1,y=rT(x=c[w])),R=e;O<v;++O)(R=A0(x>0?b[O]+" "+N:_e(N,/&\f/g,b[O])))&&(f[E++]=R);return _u(e,t,n,i===0?Ep:u,f,p,h)}function hT(e,t,n){return _u(e,t,n,R0,Au(lT()),Ka(e,2,-2),0)}function Ly(e,t,n,r){return _u(e,t,n,kp,Ka(e,0,r),Ka(e,r+1,-1),r)}function Zi(e,t){for(var n="",r=Pp(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function mT(e,t,n,r){switch(e.type){case nT:if(e.children.length)break;case tT:case kp:return e.return=e.return||e.value;case R0:return"";case N0:return e.return=e.value+"{"+Zi(e.children,r)+"}";case Ep:e.value=e.props.join(",")}return nr(n=Zi(e.children,r))?e.return=e.value+"{"+n+"}":""}function vT(e){var t=Pp(e);return function(n,r,i,a){for(var c="",u=0;u<t;u++)c+=e[u](n,r,i,a)||"";return c}}function yT(e){return function(t){t.root||(t=t.return)&&e(t)}}var bT=function(t,n,r){for(var i=0,a=0;i=a,a=ir(),i===38&&a===12&&(n[r]=1),!Ya(a);)pn();return tl(t,on)},xT=function(t,n){var r=-1,i=44;do switch(Ya(i)){case 0:i===38&&ir()===12&&(n[r]=1),t[r]+=bT(on-1,n,r);break;case 2:t[r]+=Qc(i);break;case 4:if(i===44){t[++r]=ir()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Au(i)}while(i=pn());return t},wT=function(t,n){return L0(xT(_0(t),n))},$y=new WeakMap,CT=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=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&&!$y.get(r))&&!i){$y.set(t,!0);for(var a=[],c=wT(n,a),u=r.props,f=0,p=0;f<c.length;f++)for(var h=0;h<u.length;h++,p++)t.props[p]=a[f]?c[f].replace(/&\f/g,u[h]):u[h]+" "+c[f]}}},ST=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function $0(e,t){switch(iT(e,t)){case 5103:return Ve+"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 Ve+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ve+e+hu+e+Mt+e+e;case 6828:case 4268:return Ve+e+Mt+e+e;case 6165:return Ve+e+Mt+"flex-"+e+e;case 5187:return Ve+e+_e(e,/(\w+).+(:[^]+)/,Ve+"box-$1$2"+Mt+"flex-$1$2")+e;case 5443:return Ve+e+Mt+"flex-item-"+_e(e,/flex-|-self/,"")+e;case 4675:return Ve+e+Mt+"flex-line-pack"+_e(e,/align-content|flex-|-self/,"")+e;case 5548:return Ve+e+Mt+_e(e,"shrink","negative")+e;case 5292:return Ve+e+Mt+_e(e,"basis","preferred-size")+e;case 6060:return Ve+"box-"+_e(e,"-grow","")+Ve+e+Mt+_e(e,"grow","positive")+e;case 4554:return Ve+_e(e,/([^-])(transform)/g,"$1"+Ve+"$2")+e;case 6187:return _e(_e(_e(e,/(zoom-|grab)/,Ve+"$1"),/(image-set)/,Ve+"$1"),e,"")+e;case 5495:case 3959:return _e(e,/(image-set\([^]*)/,Ve+"$1$`$1");case 4968:return _e(_e(e,/(.+:)(flex-)?(.*)/,Ve+"box-pack:$3"+Mt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ve+e+e;case 4095:case 3583:case 4068:case 2532:return _e(e,/(.+)-inline(.+)/,Ve+"$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(nr(e)-1-t>6)switch(Vt(e,t+1)){case 109:if(Vt(e,t+4)!==45)break;case 102:return _e(e,/(.+:)(.+)-([^]+)/,"$1"+Ve+"$2-$3$1"+hu+(Vt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Gg(e,"stretch")?$0(_e(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Vt(e,t+1)!==115)break;case 6444:switch(Vt(e,nr(e)-3-(~Gg(e,"!important")&&10))){case 107:return _e(e,":",":"+Ve)+e;case 101:return _e(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ve+(Vt(e,14)===45?"inline-":"")+"box$3$1"+Ve+"$2$3$1"+Mt+"$2box$3")+e}break;case 5936:switch(Vt(e,t+11)){case 114:return Ve+e+Mt+_e(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ve+e+Mt+_e(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ve+e+Mt+_e(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ve+e+Mt+e+e}return e}var ET=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case kp:t.return=$0(t.value,t.length);break;case N0:return Zi([ga(t,{value:_e(t.value,"@","@"+Ve)})],i);case Ep:if(t.length)return aT(t.props,function(a){switch(sT(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Zi([ga(t,{props:[_e(a,/:(read-\w+)/,":"+hu+"$1")]})],i);case"::placeholder":return Zi([ga(t,{props:[_e(a,/:(plac\w+)/,":"+Ve+"input-$1")]}),ga(t,{props:[_e(a,/:(plac\w+)/,":"+hu+"$1")]}),ga(t,{props:[_e(a,/:(plac\w+)/,Mt+"input-$1")]})],i)}return""})}},kT=[ET],PT=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(x){var E=x.getAttribute("data-emotion");E.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var i=t.stylisPlugins||kT,a={},c,u=[];c=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(x){for(var E=x.getAttribute("data-emotion").split(" "),O=1;O<E.length;O++)a[E[O]]=!0;u.push(x)});var f,p=[CT,ST];{var h,y=[mT,yT(function(x){h.insert(x)})],b=vT(p.concat(i,y)),v=function(E){return Zi(pT(E),b)};f=function(E,O,N,R){h=N,v(E?E+"{"+O.styles+"}":O.styles),R&&(w.inserted[O.name]=!0)}}var w={key:n,sheet:new eT({key:n,container:c,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:f};return w.sheet.hydrate(u),w};function Dy(){return Dy=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},Dy.apply(null,arguments)}var ng={exports:{}},Le={};var zy;function IT(){if(zy)return Le;zy=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,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,O=e?Symbol.for("react.responder"):60118,N=e?Symbol.for("react.scope"):60119;function R(T){if(typeof T=="object"&&T!==null){var L=T.$$typeof;switch(L){case t:switch(T=T.type,T){case f:case p:case r:case a:case i:case y:return T;default:switch(T=T&&T.$$typeof,T){case u:case h:case w:case v:case c:return T;default:return L}}case n:return L}}}function S(T){return R(T)===p}return Le.AsyncMode=f,Le.ConcurrentMode=p,Le.ContextConsumer=u,Le.ContextProvider=c,Le.Element=t,Le.ForwardRef=h,Le.Fragment=r,Le.Lazy=w,Le.Memo=v,Le.Portal=n,Le.Profiler=a,Le.StrictMode=i,Le.Suspense=y,Le.isAsyncMode=function(T){return S(T)||R(T)===f},Le.isConcurrentMode=S,Le.isContextConsumer=function(T){return R(T)===u},Le.isContextProvider=function(T){return R(T)===c},Le.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===t},Le.isForwardRef=function(T){return R(T)===h},Le.isFragment=function(T){return R(T)===r},Le.isLazy=function(T){return R(T)===w},Le.isMemo=function(T){return R(T)===v},Le.isPortal=function(T){return R(T)===n},Le.isProfiler=function(T){return R(T)===a},Le.isStrictMode=function(T){return R(T)===i},Le.isSuspense=function(T){return R(T)===y},Le.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===r||T===p||T===a||T===i||T===y||T===b||typeof T=="object"&&T!==null&&(T.$$typeof===w||T.$$typeof===v||T.$$typeof===c||T.$$typeof===u||T.$$typeof===h||T.$$typeof===E||T.$$typeof===O||T.$$typeof===N||T.$$typeof===x)},Le.typeOf=R,Le}var Fy;function TT(){return Fy||(Fy=1,ng.exports=IT()),ng.exports}var rg,My;function OT(){if(My)return rg;My=1;var e=TT(),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},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[e.ForwardRef]=r,a[e.Memo]=i;function c(w){return e.isMemo(w)?i:a[w.$$typeof]||t}var u=Object.defineProperty,f=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,y=Object.getPrototypeOf,b=Object.prototype;function v(w,x,E){if(typeof x!="string"){if(b){var O=y(x);O&&O!==b&&v(w,O,E)}var N=f(x);p&&(N=N.concat(p(x)));for(var R=c(w),S=c(x),T=0;T<N.length;++T){var L=N[T];if(!n[L]&&!(E&&E[L])&&!(S&&S[L])&&!(R&&R[L])){var M=h(x,L);try{u(w,L,M)}catch{}}}}return w}return rg=v,rg}OT();var RT=!0;function D0(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var Ip=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||RT===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},Tp=function(t,n,r){Ip(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+i:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function NT(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=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(i){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 AT={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},VT=/[A-Z]|^ms/g,_T=/_EMO_([^_]+?)_([^]*?)_EMO_/g,z0=function(t){return t.charCodeAt(1)===45},By=function(t){return t!=null&&typeof t!="boolean"},og=O0(function(e){return z0(e)?e:e.replace(VT,"-$&").toLowerCase()}),Wy=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(_T,function(r,i,a){return rr={name:i,styles:a,next:rr},i})}return AT[t]!==1&&!z0(t)&&typeof n=="number"&&n!==0?n+"px":n};function Xa(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 i=n;if(i.anim===1)return rr={name:i.name,styles:i.styles,next:rr},i.name;var a=n;if(a.styles!==void 0){var c=a.next;if(c!==void 0)for(;c!==void 0;)rr={name:c.name,styles:c.styles,next:rr},c=c.next;var u=a.styles+";";return u}return LT(e,t,n)}case"function":{if(e!==void 0){var f=rr,p=n(e);return rr=f,Xa(e,t,p)}break}}var h=n;if(t==null)return h;var y=t[h];return y!==void 0?y:h}function LT(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Xa(e,t,n[i])+";";else for(var a in n){var c=n[a];if(typeof c!="object"){var u=c;t!=null&&t[u]!==void 0?r+=a+"{"+t[u]+"}":By(u)&&(r+=og(a)+":"+Wy(a,u)+";")}else if(Array.isArray(c)&&typeof c[0]=="string"&&(t==null||t[c[0]]===void 0))for(var f=0;f<c.length;f++)By(c[f])&&(r+=og(a)+":"+Wy(a,c[f])+";");else{var p=Xa(e,t,c);switch(a){case"animation":case"animationName":{r+=og(a)+":"+p+";";break}default:r+=a+"{"+p+"}"}}}return r}var Hy=/label:\s*([^\s;{]+)\s*(;|$)/g,rr;function Op(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,i="";rr=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,i+=Xa(n,t,a);else{var c=a;i+=c[0]}for(var u=1;u<e.length;u++)if(i+=Xa(n,t,e[u]),r){var f=a;i+=f[u]}Hy.lastIndex=0;for(var p="",h;(h=Hy.exec(i))!==null;)p+="-"+h[1];var y=NT(i)+p;return{name:y,styles:i,next:rr}}var $T=function(t){return t()},F0=Vy.useInsertionEffect?Vy.useInsertionEffect:!1,M0=F0||$T,jy=F0||k.useLayoutEffect,B0=k.createContext(typeof HTMLElement<"u"?PT({key:"css"}):null);B0.Provider;var Rp=function(t){return k.forwardRef(function(n,r){var i=k.useContext(B0);return t(n,i,r)})},Np=k.createContext({}),Ap={}.hasOwnProperty,Kg="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",DT=function(t,n){var r={};for(var i in n)Ap.call(n,i)&&(r[i]=n[i]);return r[Kg]=t,r},zT=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Ip(n,r,i),M0(function(){return Tp(n,r,i)}),null},FT=Rp(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Kg],a=[r],c="";typeof e.className=="string"?c=D0(t.registered,a,e.className):e.className!=null&&(c=e.className+" ");var u=Op(a,void 0,k.useContext(Np));c+=t.key+"-"+u.name;var f={};for(var p in e)Ap.call(e,p)&&p!=="css"&&p!==Kg&&(f[p]=e[p]);return f.className=c,n&&(f.ref=n),k.createElement(k.Fragment,null,k.createElement(zT,{cache:t,serialized:u,isStringTag:typeof i=="string"}),k.createElement(i,f))}),MT=FT,Gy=function(t,n){var r=arguments;if(n==null||!Ap.call(n,"css"))return k.createElement.apply(void 0,r);var i=r.length,a=new Array(i);a[0]=MT,a[1]=DT(t,n);for(var c=2;c<i;c++)a[c]=r[c];return k.createElement.apply(null,a)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Gy||(Gy={}));var Uy=Rp(function(e,t){var n=e.styles,r=Op([n],void 0,k.useContext(Np)),i=k.useRef();return jy(function(){var a=t.key+"-global",c=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),u=!1,f=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(c.before=t.sheet.tags[0]),f!==null&&(u=!0,f.setAttribute("data-emotion",a),c.hydrate([f])),i.current=[c,u],function(){c.flush()}},[t]),jy(function(){var a=i.current,c=a[0],u=a[1];if(u){a[1]=!1;return}if(r.next!==void 0&&Tp(t,r.next,!0),c.tags.length){var f=c.tags[c.tags.length-1].nextElementSibling;c.before=f,c.flush()}t.insert("",r,c,!1)},[t,r.name]),null});function BT(...e){return function(...n){e.forEach(r=>r?.(...n))}}const WT=(...e)=>e.map(t=>t?.trim?.()).filter(Boolean).join(" "),HT=/^on[A-Z]/;function qa(...e){let t={};for(let n of e){for(let r in t){if(HT.test(r)&&typeof t[r]=="function"&&typeof n[r]=="function"){t[r]=BT(t[r],n[r]);continue}if(r==="className"||r==="class"){t[r]=WT(t[r],n[r]);continue}if(r==="style"){t[r]=Object.assign({},t[r]??{},n[r]??{});continue}t[r]=n[r]!==void 0?n[r]:t[r]}for(let r in n)t[r]===void 0&&(t[r]=n[r])}return t}const jT=parseInt(k.version.split(".")[0],10),GT=jT>=19;function ig(e,t){if(e!=null){if(typeof e=="function")return e(t);try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function UT(...e){const t=e.filter(n=>n!=null);if(GT){const n=new Map;return r=>(t.forEach(i=>{const a=ig(i,r);a&&n.set(i,a)}),()=>{t.forEach(i=>{const a=n.get(i);a&&typeof a=="function"?a():ig(i,null)}),n.clear()})}else return n=>{t.forEach(r=>{ig(r,n)})}}function nl(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}const nn=e=>e!=null&&typeof e=="object"&&!Array.isArray(e),hn=e=>typeof e=="string",Vp=e=>typeof e=="function",St=(...e)=>{const t=[];for(let n=0;n<e.length;n++){const r=e[n];if(!hn(r))continue;const i=r.trim();i&&t.push(i)}return t.join(" ")};function KT(e){return e.default||e}function YT(e){const t=k.version;return!hn(t)||t.startsWith("18.")?e?.ref:e?.props?.ref}const _p=(...e)=>{const t=e.reduce((n,r)=>(r?.forEach(i=>n.add(i)),n),new Set([]));return Array.from(t)};function XT(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Ji(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:i="Provider",errorMessage:a,defaultValue:c}=e,u=k.createContext(c);u.displayName=t;function f(){const p=k.useContext(u);if(!p&&n){const h=new Error(a??XT(r,i));throw h.name="ContextError",Error.captureStackTrace?.(h,f),h}return p}return[u.Provider,f,u]}const[qT,Jo]=Ji({name:"ChakraContext",strict:!0,providerName:"<ChakraProvider />"});function CH(e){const{value:t,children:n}=e;return P.jsxs(qT,{value:t,children:[!t._config.disableLayers&&P.jsx(Uy,{styles:t.layers.atRule}),P.jsx(Uy,{styles:t._global}),n]})}const QT=(e,t)=>{const n={},r={},i=Object.keys(e);for(const a of i)t(a)?r[a]=e[a]:n[a]=e[a];return[r,n]},es=(e,t)=>{const n=Vp(t)?t:r=>t.includes(r);return QT(e,n)},ZT=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function JT(e){return typeof e=="string"&&ZT.has(e)}function eO(e,t,n){const{css:r,isValidProperty:i}=Jo(),{children:a,...c}=e,u=k.useMemo(()=>{const[b,v]=es(c,N=>n(N,t.variantKeys)),[w,x]=es(v,t.variantKeys),[E,O]=es(x,i);return{forwardedProps:b,variantProps:w,styleProps:E,elementProps:O}},[t.variantKeys,n,c,i]),{css:f,...p}=u.styleProps,h=k.useMemo(()=>{const b={...u.variantProps},v=t.variantKeys.includes("colorPalette"),w=t.variantKeys.includes("orientation");return v||(b.colorPalette=c.colorPalette),w||(b.orientation=c.orientation),t(b)},[t,u.variantProps,c.colorPalette,c.orientation]);return{styles:k.useMemo(()=>r(h,...tO(f),p),[r,h,f,p]),props:{...u.forwardedProps,...u.elementProps,children:a}}}const tO=e=>(Array.isArray(e)?e:[e]).filter(Boolean).flat(),nO=KT(qI),rO=nO,oO=e=>e!=="theme",iO=(e,t,n)=>{let r;if(t){const i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?a=>e.__emotion_forwardProp(a)&&i(a):i}return typeof r!="function"&&n&&(r=e.__emotion_forwardProp),r};let sO=typeof document<"u";const Ky=({cache:e,serialized:t,isStringTag:n})=>{Ip(e,t,n);const r=M0(()=>Tp(e,t,n));if(!sO&&r!==void 0){let i=t.name,a=t.next;for(;a!==void 0;)i=St(i,a.name),a=a.next;return P.jsx("style",{"data-emotion":St(e.key,i),dangerouslySetInnerHTML:{__html:r},nonce:e.sheet.nonce})}return null},Yy={path:["d"],text:["x","y"],circle:["cx","cy","r"],rect:["width","height","x","y","rx","ry"],ellipse:["cx","cy","rx","ry"],g:["transform"],stop:["offset","stopOpacity"]},aO=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),lO=(e,t={},n={})=>{if(aO(Yy,e)){n.forwardProps||(n.forwardProps=[]);const p=Yy[e];n.forwardProps=_p([...n.forwardProps,...p])}const r=e.__emotion_real===e,i=r&&e.__emotion_base||e;let a,c;n!==void 0&&(a=n.label,c=n.target);let u=[];const f=Rp((p,h,y)=>{const{cva:b,isValidProperty:v}=Jo(),w=t.__cva__?t:b(t),x=uO(e.__emotion_cva,w),E=ne=>(ce,me)=>ne.includes(ce)?!0:!me?.includes(ce)&&!v(ce);!n.shouldForwardProp&&n.forwardProps&&(n.shouldForwardProp=E(n.forwardProps));const O=(ne,ce)=>{const me=typeof e=="string"&&e.charCodeAt(0)>96?rO:oO,oe=!ce?.includes(ne)&&!v(ne);return me(ne)&&oe},N=iO(e,n,r)||O,R=k.useMemo(()=>Object.assign({},n.defaultProps,nl(p)),[p]),{props:S,styles:T}=eO(R,x,N);let L="",M=[T],B=S;if(S.theme==null){B={};for(let ne in S)B[ne]=S[ne];B.theme=k.useContext(Np)}typeof S.className=="string"?L=D0(h.registered,M,S.className):S.className!=null&&(L=St(L,S.className));const j=Op(u.concat(M),h.registered,B);j.styles&&(L=St(L,`${h.key}-${j.name}`)),c!==void 0&&(L=St(L,c));const W=!N("as");let U=W&&S.as||i,$={};for(let ne in S)if(!(W&&ne==="as")){if(JT(ne)){const ce=ne.replace("html","").toLowerCase();$[ce]=S[ne];continue}N(ne)&&($[ne]=S[ne])}let H=L.trim();H?$.className=H:Reflect.deleteProperty($,"className"),$.ref=y;const ae=n.forwardAsChild||n.forwardProps?.includes("asChild");if(S.asChild&&!ae){const ne=k.isValidElement(S.children)?k.Children.only(S.children):k.Children.toArray(S.children).find(k.isValidElement);if(!ne)throw new Error("[chakra-ui > factory] No valid child found");U=ne.type,$.children=null,Reflect.deleteProperty($,"asChild"),$=qa($,ne.props),$.ref=UT(y,YT(ne))}return $.as&&ae?($.as=void 0,P.jsxs(k.Fragment,{children:[P.jsx(Ky,{cache:h,serialized:j,isStringTag:typeof U=="string"}),P.jsx(U,{asChild:!0,...$,children:P.jsx(S.as,{children:$.children})})]})):P.jsxs(k.Fragment,{children:[P.jsx(Ky,{cache:h,serialized:j,isStringTag:typeof U=="string"}),P.jsx(U,{...$})]})});return f.displayName=a!==void 0?a:`chakra(${typeof i=="string"?i:i.displayName||i.name||"Component"})`,f.__emotion_real=f,f.__emotion_base=i,f.__emotion_forwardProp=n.shouldForwardProp,f.__emotion_cva=t,Object.defineProperty(f,"toString",{value(){return`.${c}`}}),f},sg=lO.bind(),ag=new Map,cO=new Proxy(sg,{apply(e,t,n){return sg(...n)},get(e,t){return ag.has(t)||ag.set(t,sg(t)),ag.get(t)}}),Ie=cO,uO=(e,t)=>e&&!t?e:!e&&t?t:e.merge(t),W0=Ie("div");W0.displayName="Box";const H0=k.forwardRef(function(t,n){const{size:r,...i}=t;return P.jsx(W0,{...i,ref:n,boxSize:r,css:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexGrow:0,...t.css}})});H0.displayName="Square";const j0=k.forwardRef(function(t,n){const{size:r,...i}=t;return P.jsx(H0,{size:r,ref:n,borderRadius:"9999px",...i})});j0.displayName="Circle";const G0=Object.freeze({}),U0=Object.freeze({});function Lu(e){const{key:t,recipe:n}=e,r=Jo();return k.useMemo(()=>{const i=n||(t!=null?r.getRecipe(t):{});return r.cva(structuredClone(i))},[t,n,r])}const dO=e=>e.charAt(0).toUpperCase()+e.slice(1);function Rn(e){const{key:t,recipe:n}=e,r=dO(t||n.className||"Component"),[i,a]=Ji({strict:!1,name:`${r}PropsContext`,providerName:`${r}PropsContext`});function c(p){const{unstyled:h,...y}=p,b=Lu({key:t,recipe:y.recipe||n}),[v,w]=k.useMemo(()=>b.splitVariantProps(y),[b,y]);return{styles:h?G0:b(v),className:b.className,props:w}}const u=(p,h)=>{const y=Ie(p,{},h),b=k.forwardRef((v,w)=>{const x=a(),E=k.useMemo(()=>qa(x,v),[v,x]),{styles:O,className:N,props:R}=c(E);return P.jsx(y,{...R,ref:w,css:[O,E.css],className:St(N,E.className)})});return b.displayName=p.displayName||p.name,b};function f(){return i}return{withContext:u,PropsProvider:i,withPropsProvider:f,usePropsContext:a,useRecipeResult:c}}const K0=k.forwardRef(function(t,n){const{templateAreas:r,column:i,row:a,autoFlow:c,autoRows:u,templateRows:f,autoColumns:p,templateColumns:h,inline:y,...b}=t;return P.jsx(Ie.div,{...b,ref:n,css:[{display:y?"inline-grid":"grid",gridTemplateAreas:r,gridAutoColumns:p,gridColumn:i,gridRow:a,gridAutoFlow:c,gridAutoRows:u,gridTemplateRows:f,gridTemplateColumns:h},t.css]})});K0.displayName="Grid";var fO=Object.defineProperty,Y0=e=>{throw TypeError(e)},gO=(e,t,n)=>t in e?fO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,no=(e,t,n)=>gO(e,typeof t!="symbol"?t+"":t,n),pO=(e,t,n)=>t.has(e)||Y0("Cannot "+n),Xy=(e,t,n)=>(pO(e,t,"read from private field"),t.get(e)),hO=(e,t,n)=>t.has(e)?Y0("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n);function Jc(e){return e==null?[]:Array.isArray(e)?e:[e]}var Ha=e=>e[0],Lp=e=>e[e.length-1],mO=(e,t)=>e.indexOf(t)!==-1,Mo=(e,...t)=>e.concat(t),Ho=(e,...t)=>e.filter(n=>!t.includes(n)),qy=(e,t)=>e.filter((n,r)=>r!==t),io=e=>Array.from(new Set(e)),lg=(e,t)=>{const n=new Set(t);return e.filter(r=>!n.has(r))},is=(e,t)=>mO(e,t)?Ho(e,t):Mo(e,t);function Qy(e,t){return e.reduce(([n,r],i)=>(t(i)?n.push(i):r.push(i),[n,r]),[[],[]])}var Zy=e=>e?.constructor.name==="Array",vO=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Wt(e[n],t[n]))return!1;return!0},Wt=(e,t)=>{if(Object.is(e,t))return!0;if(e==null&&t!=null||e!=null&&t==null)return!1;if(typeof e?.isEqual=="function"&&typeof t?.isEqual=="function")return e.isEqual(t);if(typeof e=="function"&&typeof t=="function")return e.toString()===t.toString();if(Zy(e)&&Zy(t))return vO(Array.from(e),Array.from(t));if(typeof e!="object"||typeof t!="object")return!1;const n=Object.keys(t??Object.create(null)),r=n.length;for(let i=0;i<r;i++)if(!Reflect.has(e,n[i]))return!1;for(let i=0;i<r;i++){const a=n[i];if(!Wt(e[a],t[a]))return!1}return!0},_a=e=>Array.isArray(e),yO=e=>e===!0||e===!1,X0=e=>e!=null&&typeof e=="object",Bo=e=>X0(e)&&!_a(e),eu=e=>typeof e=="string",Or=e=>typeof e=="function",bO=e=>e==null,Rr=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),xO=e=>Object.prototype.toString.call(e),q0=Function.prototype.toString,wO=q0.call(Object),CO=e=>{if(!X0(e)||xO(e)!="[object Object]"||kO(e))return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;const n=Rr(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&q0.call(n)==wO},SO=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,EO=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,kO=e=>SO(e)||EO(e),Rc=(e,...t)=>(typeof e=="function"?e(...t):e)??void 0,PO=e=>e(),IO=()=>{},ss=(...e)=>(...t)=>{e.forEach(function(n){n?.(...t)})},Q0=(()=>{let e=0;return()=>(e++,e.toString(36))})();function Er(e,t,...n){if(e in t){const i=t[e];return Or(i)?i(...n):i}const r=new Error(`No matching key: ${JSON.stringify(e)} in ${JSON.stringify(Object.keys(t))}`);throw Error.captureStackTrace?.(r,Er),r}var Z0=(e,t)=>{try{return e()}catch(n){return n instanceof Error&&Error.captureStackTrace?.(n,Z0),t?.()}},{floor:J0,abs:Jy,round:$u,min:TO,max:OO,pow:RO,sign:NO}=Math,Yg=e=>Number.isNaN(e),fo=e=>Yg(e)?0:e,ew=(e,t)=>(e%t+t)%t,AO=(e,t)=>(e%t+t)%t,VO=(e,t)=>fo(e)>=t,_O=(e,t)=>fo(e)<=t,LO=(e,t,n)=>{const r=fo(e),i=t==null||r>=t,a=n==null||r<=n;return i&&a},$O=(e,t,n)=>$u((fo(e)-t)/n)*n+t,Bt=(e,t,n)=>TO(OO(fo(e),t),n),DO=(e,t,n)=>(fo(e)-t)/(n-t),zO=(e,t,n,r)=>Bt($O(e*(n-t)+t,t,r),t,n),eb=(e,t)=>{let n=e,r=t.toString(),i=r.indexOf("."),a=i>=0?r.length-i:0;if(a>0){let c=RO(10,a);n=$u(n*c)/c}return n},cg=(e,t)=>typeof t=="number"?J0(e*t+.5)/t:$u(e),tb=(e,t,n,r)=>{const i=t!=null?Number(t):0,a=Number(n),c=(e-i)%r;let u=Jy(c)*2>=r?e+NO(c)*(r-Jy(c)):e-c;if(u=eb(u,r),!Yg(i)&&u<i)u=i;else if(!Yg(a)&&u>a){const f=J0((a-i)/r),p=i+f*r;u=f<=0||p<i?a:p}return eb(u,r)},je=(e,t=0,n=10)=>{const r=Math.pow(n,t);return $u(e*r)/r},nb=e=>{if(!Number.isFinite(e))return 0;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n+=1;return n},tw=(e,t,n)=>{let r=t==="+"?e+n:e-n;if(e%1!==0||n%1!==0){const i=10**Math.max(nb(e),nb(n));e=Math.round(e*i),n=Math.round(n*i),r=t==="+"?e+n:e-n,r/=i}return r},FO=(e,t)=>tw(fo(e),"+",t),MO=(e,t)=>tw(fo(e),"-",t),it=e=>typeof e=="number"?`${e}px`:e;function ds(e){if(!CO(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(r=>typeof r=="string"),n={};for(const r of t){const i=e[r];i!==void 0&&(n[r]=ds(i))}return n}function BO(e,t=Object.is){let n={...e};const r=new Set,i=h=>(r.add(h),()=>r.delete(h)),a=()=>{r.forEach(h=>h())};return{subscribe:i,get:h=>n[h],set:(h,y)=>{t(n[h],y)||(n[h]=y,a())},update:h=>{let y=!1;for(const b in h){const v=h[b];v!==void 0&&!t(n[b],v)&&(n[b]=v,y=!0)}y&&a()},snapshot:()=>({...n})}}var Nc=()=>performance.now(),tu,WO=class{constructor(e){this.onTick=e,no(this,"frameId",null),no(this,"pausedAtMs",null),no(this,"context"),no(this,"cancelFrame",()=>{this.frameId!==null&&(cancelAnimationFrame(this.frameId),this.frameId=null)}),no(this,"setStartMs",t=>{this.context.startMs=t}),no(this,"start",()=>{if(this.frameId!==null)return;const t=Nc();this.pausedAtMs!==null?(this.context.startMs+=t-this.pausedAtMs,this.pausedAtMs=null):this.context.startMs=t,this.frameId=requestAnimationFrame(Xy(this,tu))}),no(this,"pause",()=>{this.frameId!==null&&(this.cancelFrame(),this.pausedAtMs=Nc())}),no(this,"stop",()=>{this.frameId!==null&&(this.cancelFrame(),this.pausedAtMs=null)}),hO(this,tu,t=>{if(this.context.now=t,this.context.deltaMs=t-this.context.startMs,this.onTick(this.context)===!1){this.stop();return}this.frameId=requestAnimationFrame(Xy(this,tu))}),this.context={now:0,startMs:Nc(),deltaMs:0}}get elapsedMs(){return this.pausedAtMs!==null?this.pausedAtMs-this.context.startMs:Nc()-this.context.startMs}};tu=new WeakMap;function ug(e,t){const n=new WO(({deltaMs:r})=>{if(r>=t)return e(),!1});return n.start(),()=>n.stop()}function Go(...e){e.length===1?e[0]:e[1],e.length===2&&e[0]}function nw(e,t){if(e==null)throw new Error(t())}function rw(e,t,n){let r=[];for(const i of t)e[i]==null&&r.push(i);if(r.length>0)throw new Error(`[zag-js${n?` > ${n}`:""}] missing required props: ${r.join(", ")}`)}function HO(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function $e(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:i="Provider",errorMessage:a,defaultValue:c}=e,u=k.createContext(c);u.displayName=t;function f(){const p=k.useContext(u);if(!p&&n){const h=new Error(a??HO(r,i));throw h.name="ContextError",Rr(Error,"captureStackTrace")&&Or(Error.captureStackTrace)&&Error.captureStackTrace(h,f),h}return p}return[u.Provider,f,u]}const[SH,Ht]=$e({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}});var jO=Object.defineProperty,GO=(e,t,n)=>t in e?jO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dg=(e,t,n)=>GO(e,typeof t!="symbol"?t+"":t,n);function UO(e){if(!e)return!1;try{return e.selectionStart===0&&e.selectionEnd===0}catch{return e.value===""}}function KO(e){if(!e)return;const t=e.selectionStart??0,n=e.selectionEnd??0;Math.abs(n-t)===0&&t===0&&e.setSelectionRange(e.value.length,e.value.length)}var rb=e=>Math.max(0,Math.min(1,e)),YO=(e,t)=>e.map((n,r)=>e[(Math.max(t,0)+r)%e.length]),fg=(...e)=>t=>e.reduce((n,r)=>r(n),t),Ui=()=>{},Du=e=>typeof e=="object"&&e!==null,ow=2147483647,se=e=>e?"":void 0,iw=e=>e?"true":void 0,XO=1,qO=9,QO=11,Et=e=>Du(e)&&e.nodeType===XO&&typeof e.nodeName=="string",zu=e=>Du(e)&&e.nodeType===qO,ZO=e=>Du(e)&&e===e.window,sw=e=>Et(e)?e.localName||"":"#document";function JO(e){return["html","body","#document"].includes(sw(e))}var eR=e=>Du(e)&&e.nodeType!==void 0,Uo=e=>eR(e)&&e.nodeType===QO&&"host"in e,tR=e=>Et(e)&&e.localName==="input",nR=e=>!!e?.matches("a[href]"),rR=e=>Et(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1;function Ki(e){if(!e)return!1;const t=e.getRootNode();return ts(t)===e}var oR=/(textarea|select)/;function iR(e){if(e==null||!Et(e))return!1;try{return tR(e)&&e.selectionStart!=null||oR.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch{return!1}}function Hn(e,t){if(!e||!t||!Et(e)||!Et(t))return!1;const n=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(n&&Uo(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Kt(e){return zu(e)?e:ZO(e)?e.document:e?.ownerDocument??document}function sR(e){return Kt(e).documentElement}function et(e){return Uo(e)?et(e.host):zu(e)?e.defaultView??window:Et(e)?e.ownerDocument?.defaultView??window:window}function ts(e){let t=e.activeElement;for(;t?.shadowRoot;){const n=t.shadowRoot.activeElement;if(!n||n===t)break;t=n}return t}function aR(e){if(sw(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Uo(e)&&e.host||sR(e);return Uo(t)?t.host:t}function $p(e){let t;try{if(t=e.getRootNode({composed:!0}),zu(t)||Uo(t))return t}catch{}return e.ownerDocument??document}var gg=new WeakMap;function Ar(e){return gg.has(e)||gg.set(e,et(e).getComputedStyle(e)),gg.get(e)}var Dp=new Set(["menu","listbox","dialog","grid","tree","region"]),lR=e=>Dp.has(e),aw=e=>e.getAttribute("aria-controls")?.split(" ")||[];function lw(e,t){const n=new Set,r=$p(e),i=a=>{const c=a.querySelectorAll("[aria-controls]");for(const u of c){if(u.getAttribute("aria-expanded")!=="true")continue;const f=aw(u);for(const p of f){if(!p||n.has(p))continue;n.add(p);const h=r.getElementById(p);if(h){const y=h.getAttribute("role"),b=h.getAttribute("aria-modal")==="true";if(y&&lR(y)&&!b&&(h===t||h.contains(t)||i(h)))return!0}}}return!1};return i(e)}function cw(e,t){const n=$p(e),r=new Set,i=a=>{const c=a.querySelectorAll("[aria-controls]");for(const u of c){if(u.getAttribute("aria-expanded")!=="true")continue;const f=aw(u);for(const p of f){if(!p||r.has(p))continue;r.add(p);const h=n.getElementById(p);if(h){const y=h.getAttribute("role"),b=h.getAttribute("aria-modal")==="true";y&&Dp.has(y)&&!b&&(t(h),i(h))}}}};i(e)}function cR(e){const t=new Set;return cw(e,n=>{e.contains(n)||t.add(n)}),Array.from(t)}function uR(e){const t=e.getAttribute("role");return!!(t&&Dp.has(t))}function dR(e){return e.hasAttribute("aria-controls")&&e.getAttribute("aria-expanded")==="true"}function fR(e){return dR(e)?!0:!!e.querySelector?.('[aria-controls][aria-expanded="true"]')}function gR(e){if(!e.id)return!1;const t=$p(e),n=CSS.escape(e.id),r=`[aria-controls~="${n}"][aria-expanded="true"], [aria-controls="${n}"][aria-expanded="true"]`;return!!(t.querySelector(r)&&uR(e))}var Fu=()=>typeof document<"u";function pR(){return navigator.userAgentData?.platform??navigator.platform}function hR(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}var zp=e=>Fu()&&e.test(pR()),uw=e=>Fu()&&e.test(hR()),mR=e=>Fu()&&e.test(navigator.vendor),ob=()=>Fu()&&!!navigator.maxTouchPoints,vR=()=>zp(/^iPhone/i),yR=()=>zp(/^iPad/i)||rl()&&navigator.maxTouchPoints>1,Mu=()=>vR()||yR(),bR=()=>rl()||Mu(),rl=()=>zp(/^Mac/i),ei=()=>bR()&&mR(/apple/i),xR=()=>uw(/Firefox/i),wR=()=>uw(/Android/i);function CR(e){return e.composedPath?.()??e.nativeEvent?.composedPath?.()}function at(e){return CR(e)?.[0]??e.target}function SR(e){const t=e.currentTarget;if(!t||!t.matches("a[href], button[type='submit'], input[type='submit']"))return!1;const r=e.button===1,i=ER(e);return r||i}function dw(e){return OR(e).isComposing||e.keyCode===229}function ER(e){return rl()?e.metaKey:e.ctrlKey}function kR(e){return e.pointerType===""&&e.isTrusted?!0:wR()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var Fp=e=>e.button===0,PR=e=>e.button===2||rl()&&e.ctrlKey&&e.button===0,IR=e=>"touches"in e&&e.touches.length>0,TR={Up:"ArrowUp",Down:"ArrowDown",Esc:"Escape"," ":"Space",",":"Comma",Left:"ArrowLeft",Right:"ArrowRight"},ib={ArrowLeft:"ArrowRight",ArrowRight:"ArrowLeft"};function fw(e,t={}){const{dir:n="ltr",orientation:r="horizontal"}=t;let i=e.key;return i=TR[i]??i,n==="rtl"&&r==="horizontal"&&i in ib&&(i=ib[i]),i}function OR(e){return e.nativeEvent??e}function Qa(e,t="client"){const n=IR(e)?e.touches[0]||e.changedTouches[0]:e;return{x:n[`${t}X`],y:n[`${t}Y`]}}var Re=(e,t,n,r)=>{const i=typeof e=="function"?e():e;return i?.addEventListener(t,n,r),()=>{i?.removeEventListener(t,n,r)}};function gw(e,t){const{type:n="HTMLInputElement",property:r="value"}=t,i=et(e)[n].prototype;return Object.getOwnPropertyDescriptor(i,r)??{}}function RR(e){if(e.localName==="input")return"HTMLInputElement";if(e.localName==="textarea")return"HTMLTextAreaElement";if(e.localName==="select")return"HTMLSelectElement"}function Ko(e,t,n="value"){if(!e)return;const r=RR(e);r&&gw(e,{type:r,property:n}).set?.call(e,t),e.setAttribute(n,t)}function Mp(e,t){if(!e)return;gw(e,{type:"HTMLInputElement",property:"checked"}).set?.call(e,t),t?e.setAttribute("checked",""):e.removeAttribute("checked")}function pw(e,t){const{value:n,bubbles:r=!0}=t;if(!e)return;const i=et(e);e instanceof i.HTMLInputElement&&(Ko(e,`${n}`),e.dispatchEvent(new i.Event("input",{bubbles:r})))}function Bp(e,t){const{checked:n,bubbles:r=!0}=t;if(!e)return;const i=et(e);e instanceof i.HTMLInputElement&&(Mp(e,n),e.dispatchEvent(new i.Event("click",{bubbles:r})))}function NR(e){return AR(e)?e.form:e.closest("form")}function AR(e){return e.matches("textarea, input, select, button")}function VR(e,t){if(!e)return;const n=NR(e),r=i=>{i.defaultPrevented||t()};return n?.addEventListener("reset",r,{passive:!0}),()=>n?.removeEventListener("reset",r)}function _R(e,t){const n=e?.closest("fieldset");if(!n)return;t(n.disabled);const r=et(n),i=new r.MutationObserver(()=>t(n.disabled));return i.observe(n,{attributes:!0,attributeFilter:["disabled"]}),()=>i.disconnect()}function ti(e,t){if(!e)return;const{onFieldsetDisabledChange:n,onFormReset:r}=t,i=[VR(e,r),_R(e,n)];return()=>i.forEach(a=>a?.())}var hw=e=>Et(e)&&e.tagName==="IFRAME",LR=/^(audio|video|details)$/;function mw(e){const t=e.getAttribute("tabindex");return t?parseInt(t,10):NaN}var $R=e=>!Number.isNaN(mw(e)),DR=e=>mw(e)<0;function zR(e,t){if(!t)return null;if(t===!0)return e.shadowRoot||null;const n=t(e);return(n===!0?e.shadowRoot:n)||null}function vw(e,t,n){const r=[...e],i=[...e],a=new Set,c=new Map;e.forEach((f,p)=>c.set(f,p));let u=0;for(;u<i.length;){const f=i[u++];if(!f||a.has(f))continue;a.add(f);const p=zR(f,t);if(p){const h=Array.from(p.querySelectorAll(Bu)).filter(n),y=c.get(f);if(y!==void 0){const b=y+1;r.splice(b,0,...h),h.forEach((v,w)=>{c.set(v,b+w)});for(let v=b+h.length;v<r.length;v++)c.set(r[v],v)}else{const b=r.length;r.push(...h),h.forEach((v,w)=>{c.set(v,b+w)})}i.push(...h)}}return r}var Bu="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type",Wp=(e,t={})=>{if(!e)return[];const{includeContainer:n=!1,getShadowRoot:r}=t,i=Array.from(e.querySelectorAll(Bu));(n==!0||n=="if-empty"&&i.length===0)&&Et(e)&&Nr(e)&&i.unshift(e);const c=[];for(const u of i)if(Nr(u)){if(hw(u)&&u.contentDocument){const f=u.contentDocument.body;c.push(...Wp(f,{getShadowRoot:r}));continue}c.push(u)}return r?vw(c,r,Nr):c};function Nr(e){return!Et(e)||e.closest("[inert]")?!1:e.matches(Bu)&&rR(e)}function fs(e,t={}){if(!e)return[];const{includeContainer:n,getShadowRoot:r}=t,i=Array.from(e.querySelectorAll(Bu));n&&Wo(e)&&i.unshift(e);const a=[];for(const c of i)if(Wo(c)){if(hw(c)&&c.contentDocument){const u=c.contentDocument.body;a.push(...fs(u,{getShadowRoot:r}));continue}a.push(c)}if(r){const c=vw(a,r,Wo);return!c.length&&n?i:c}return!a.length&&n?i:a}function Wo(e){return Et(e)&&e.tabIndex>0?!0:Nr(e)&&!DR(e)}function FR(e,t={}){const n=fs(e,t),r=n[0]||null,i=n[n.length-1]||null;return[r,i]}function MR(e,t={}){const{current:n,getShadowRoot:r}=t,i=fs(e,{getShadowRoot:r}),a=e?.ownerDocument||document,c=n??ts(a);if(!c)return null;const u=i.indexOf(c);return i[u+1]||null}function pa(e){return e.tabIndex<0&&(LR.test(e.localName)||iR(e))&&!$R(e)?0:e.tabIndex}function mu(e){const{root:t,getInitialEl:n,filter:r,enabled:i=!0}=e;if(!i)return;let a=null;if(a||(a=typeof n=="function"?n():n),a||(a=t?.querySelector("[data-autofocus],[autofocus]")),!a){const c=fs(t);a=r?c.filter(r)[0]:c[0]}return a||t||void 0}var yw=class bw{constructor(){dg(this,"id",null),dg(this,"fn_cleanup"),dg(this,"cleanup",()=>{this.cancel()})}static create(){return new bw}request(t){this.cancel(),this.id=globalThis.requestAnimationFrame(()=>{this.id=null,this.fn_cleanup=t?.()})}cancel(){this.id!==null&&(globalThis.cancelAnimationFrame(this.id),this.id=null),this.fn_cleanup?.(),this.fn_cleanup=void 0}isActive(){return this.id!==null}};function de(e){const t=yw.create();return t.request(e),t.cleanup}function Wu(e){const t=new Set;function n(r){const i=globalThis.requestAnimationFrame(r);t.add(()=>globalThis.cancelAnimationFrame(i))}return n(()=>n(e)),function(){t.forEach(i=>i())}}function BR(e,t,n){const r=de(()=>{e.removeEventListener(t,i,!0),n()}),i=()=>{r(),n()};return e.addEventListener(t,i,{once:!0,capture:!0}),r}function WR(e,t){if(!e)return;const{attributes:n,callback:r}=t,i=e.ownerDocument.defaultView||window,a=new i.MutationObserver(c=>{for(const u of c)u.type==="attributes"&&u.attributeName&&n.includes(u.attributeName)&&r(u)});return a.observe(e,{attributes:!0,attributeFilter:n}),()=>a.disconnect()}function Hu(e,t){const{defer:n}=t,r=n?de:a=>a(),i=[];return i.push(r(()=>{const a=typeof e=="function"?e():e;i.push(WR(a,t))})),()=>{i.forEach(a=>a?.())}}function HR(e,t){const{callback:n}=t;if(!e)return;const r=e.ownerDocument.defaultView||window,i=new r.MutationObserver(n);return i.observe(e,{childList:!0,subtree:!0}),()=>i.disconnect()}function jR(e,t){const{defer:n}=t,r=n?de:a=>a(),i=[];return i.push(r(()=>{const a=typeof e=="function"?e():e;i.push(HR(a,t))})),()=>{i.forEach(a=>a?.())}}function xw(e){const t=()=>{const n=et(e);e.dispatchEvent(new n.MouseEvent("click"))};xR()?BR(e,"keyup",t):queueMicrotask(t)}function vu(e){const t=aR(e);return JO(t)?Kt(t).body:Et(t)&&Hp(t)?t:vu(t)}function ww(e,t=[]){const n=vu(e),r=n===e.ownerDocument.body,i=et(n);return r?t.concat(i,i.visualViewport||[],Hp(n)?n:[]):t.concat(n,ww(n,[]))}var GR=/auto|scroll|overlay|hidden|clip/,UR=new Set(["inline","contents"]);function Hp(e){const t=et(e),{overflow:n,overflowX:r,overflowY:i,display:a}=t.getComputedStyle(e);return GR.test(n+i+r)&&!UR.has(a)}function KR(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function yu(e,t){const{rootEl:n,...r}=t||{};!e||!n||!Hp(n)||!KR(n)||e.scrollIntoView(r)}function Cw(e,t){const{left:n,top:r,width:i,height:a}=t.getBoundingClientRect(),c={x:e.x-n,y:e.y-r},u={x:rb(c.x/i),y:rb(c.y/a)};function f(p={}){const{dir:h="ltr",orientation:y="horizontal",inverted:b}=p,v=typeof b=="object"?b.x:b,w=typeof b=="object"?b.y:b;return y==="horizontal"?h==="rtl"||v?1-u.x:u.x:w?1-u.y:u.y}return{offset:c,percent:u,getPercentValue:f}}function YR(e,t){const n=e.body,r="pointerLockElement"in e||"mozPointerLockElement"in e,i=()=>!!e.pointerLockElement;function a(){}function c(f){i(),console.error("PointerLock error occurred:",f),e.exitPointerLock()}if(!r)return;try{n.requestPointerLock()}catch{}const u=[Re(e,"pointerlockchange",a,!1),Re(e,"pointerlockerror",c,!1)];return()=>{u.forEach(f=>f()),e.exitPointerLock()}}var Yi="default",Xg="",nu=new WeakMap;function XR(e={}){const{target:t,doc:n}=e,r=n??document,i=r.documentElement;return Mu()?(Yi==="default"&&(Xg=i.style.webkitUserSelect,i.style.webkitUserSelect="none"),Yi="disabled"):t&&(nu.set(t,t.style.userSelect),t.style.userSelect="none"),()=>qR({target:t,doc:r})}function qR(e={}){const{target:t,doc:n}=e,i=(n??document).documentElement;if(Mu()){if(Yi!=="disabled")return;Yi="restoring",setTimeout(()=>{Wu(()=>{Yi==="restoring"&&(i.style.webkitUserSelect==="none"&&(i.style.webkitUserSelect=Xg||""),Xg="",Yi="default")})},300)}else if(t&&nu.has(t)){const a=nu.get(t);t.style.userSelect==="none"&&(t.style.userSelect=a??""),t.getAttribute("style")===""&&t.removeAttribute("style"),nu.delete(t)}}function Sw(e={}){const{defer:t,target:n,...r}=e,i=t?de:c=>c(),a=[];return a.push(i(()=>{const c=typeof n=="function"?n():n;a.push(XR({...r,target:c}))})),()=>{a.forEach(c=>c?.())}}function Ew(e,t){const{onPointerMove:n,onPointerUp:r}=t,i=u=>{const f=Qa(u),p=Math.sqrt(f.x**2+f.y**2),h=u.pointerType==="touch"?10:5;if(!(p<h)){if(u.pointerType==="mouse"&&u.buttons===0){a(u);return}n({point:f,event:u})}},a=u=>{const f=Qa(u);r({point:f,event:u})},c=[Re(e,"pointermove",i,!1),Re(e,"pointerup",a,!1),Re(e,"pointercancel",a,!1),Re(e,"contextmenu",a,!1),Sw({doc:e})];return()=>{c.forEach(u=>u())}}function kw(e){const{pointerNode:t,keyboardNode:n=t,onPress:r,onPressStart:i,onPressEnd:a,isValidKey:c=N=>N.key==="Enter"}=e;if(!t)return Ui;const u=et(t);let f=Ui,p=Ui,h=Ui;const y=N=>({point:Qa(N),event:N});function b(N){i?.(y(N))}function v(N){a?.(y(N))}const x=Re(t,"pointerdown",N=>{p();const S=Re(u,"pointerup",L=>{const M=at(L);Hn(t,M)?r?.(y(L)):a?.(y(L))},{passive:!r,once:!0}),T=Re(u,"pointercancel",v,{passive:!a,once:!0});p=fg(S,T),Ki(n)&&N.pointerType==="mouse"&&N.preventDefault(),b(N)},{passive:!i}),E=Re(n,"focus",O);f=fg(x,E);function O(){const N=L=>{if(!c(L))return;const M=j=>{if(!c(j))return;const W=new u.PointerEvent("pointerup"),U=y(W);r?.(U),a?.(U)};p(),p=Re(n,"keyup",M);const B=new u.PointerEvent("pointerdown");b(B)},R=()=>{const L=new u.PointerEvent("pointercancel");v(L)},S=Re(n,"keydown",N),T=Re(n,"blur",R);h=fg(S,T)}return()=>{f(),p(),h()}}function QR(e,t={}){const{triggerElement:n,onFocus:r,onFocusEnter:i,getShadowRoot:a}=t,c=e?.ownerDocument||document,u=c.body;function f(p){if(p.key!=="Tab")return;let h=null;const[y,b]=FR(e,{includeContainer:!0,getShadowRoot:a}),v=MR(u,{current:n,getShadowRoot:a}),w=!y&&!b;p.shiftKey&&Ki(v)?(i?.(),h=b):p.shiftKey&&(Ki(y)||w)?h=n:!p.shiftKey&&Ki(n)?(i?.(),h=y):!p.shiftKey&&(Ki(b)||w)&&(h=v),h&&(p.preventDefault(),typeof r=="function"?r(h):h.focus())}return Re(c,"keydown",f,!0)}function ZR(e,t){const{defer:n,triggerElement:r,...i}=t,a=n?de:u=>u(),c=[];return c.push(a(()=>{const u=typeof e=="function"?e():e,f=typeof r=="function"?r():r;c.push(QR(u,{triggerElement:f,...i}))})),()=>{c.forEach(u=>u?.())}}function Yo(e,t){return Array.from(e?.querySelectorAll(t)??[])}function gs(e,t){return e?.querySelector(t)??null}var jp=e=>e.id;function Pw(e,t,n=jp){return e.find(r=>n(r)===t)}function ju(e,t,n=jp){const r=Pw(e,t,n);return r?e.indexOf(r):-1}function Gp(e,t,n=!0){let r=ju(e,t);return r=n?(r+1)%e.length:Math.min(r+1,e.length-1),e[r]}function Up(e,t,n=!0){let r=ju(e,t);return r===-1?n?e[e.length-1]:null:(r=n?(r-1+e.length)%e.length:Math.max(0,r-1),e[r])}function JR(e){const t=new WeakMap;let n;const r=new WeakMap,i=u=>n||(n=new u.ResizeObserver(f=>{for(const p of f){r.set(p.target,p);const h=t.get(p.target);if(h)for(const y of h)y(p)}}),n);return{observe:(u,f)=>{let p=t.get(u)||new Set;p.add(f),t.set(u,p);const h=et(u);return i(h).observe(u,e),()=>{const y=t.get(u);y&&(y.delete(f),y.size===0&&(t.delete(u),i(h).unobserve(u)))}},unobserve:u=>{t.delete(u),n?.unobserve(u)}}}var Iw=JR({box:"border-box"}),eN=e=>e.split("").map(t=>{const n=t.charCodeAt(0);return n>0&&n<128?t:n>=128&&n<=255?`/x${n.toString(16)}`.replace("/","\\"):""}).join("").trim(),tN=e=>eN(e.dataset?.valuetext??e.textContent??""),nN=(e,t)=>e.trim().toLowerCase().startsWith(t.toLowerCase());function rN(e,t,n,r=jp){const i=n?ju(e,n,r):-1;let a=n?YO(e,i):e;return t.length===1&&(a=a.filter(u=>r(u)!==n)),a.find(u=>nN(tN(u),t))}function oN(e,t,n){const r=e.getAttribute(t),i=r!=null;return e.setAttribute(t,n),()=>{i?e.setAttribute(t,r):e.removeAttribute(t)}}function Za(e,t){if(!e)return Ui;const n=Object.keys(t).reduce((r,i)=>(r[i]=e.style.getPropertyValue(i),r),{});return Object.assign(e.style,t),()=>{Object.assign(e.style,n),e.style.length===0&&e.removeAttribute("style")}}function iN(e,t,n){if(!e)return Ui;const r=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{e.style.setProperty(t,r),e.style.length===0&&e.removeAttribute("style")}}function sN(e,t){const{state:n,activeId:r,key:i,timeout:a=350,itemToId:c}=t,u=n.keysSoFar+i,p=u.length>1&&Array.from(u).every(w=>w===u[0])?u[0]:u;let h=e.slice();const y=rN(h,p,r,c);function b(){clearTimeout(n.timer),n.timer=-1}function v(w){n.keysSoFar=w,b(),w!==""&&(n.timer=+setTimeout(()=>{v(""),b()},a))}return v(u),y}var bu=Object.assign(sN,{defaultOptions:{keysSoFar:"",timer:-1},isValidEvent:aN});function aN(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}var Kp={border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"};function lN(e,t,n){const{signal:r}=t;return[new Promise((c,u)=>{const f=setTimeout(()=>{u(new Error(`Timeout of ${n}ms exceeded`))},n);r.addEventListener("abort",()=>{clearTimeout(f),u(new Error("Promise aborted"))}),e.then(p=>{r.aborted||(clearTimeout(f),c(p))}).catch(p=>{r.aborted||(clearTimeout(f),u(p))})}),()=>t.abort()]}function cN(e,t){const{timeout:n,rootNode:r}=t,i=et(r),a=Kt(r),c=new i.AbortController;return lN(new Promise(u=>{const f=e();if(f){u(f);return}const p=new i.MutationObserver(()=>{const h=e();h&&h.isConnected&&(p.disconnect(),u(h))});p.observe(a.body,{childList:!0,subtree:!0})}),c,n)}var uN=(...e)=>e.map(t=>t?.trim?.()).filter(Boolean).join(" "),dN=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,sb=e=>{const t={};let n;for(;n=dN.exec(e);)t[n[1]]=n[2];return t},fN=(e,t)=>{if(eu(e)){if(eu(t))return`${e};${t}`;e=sb(e)}else eu(t)&&(t=sb(t));return Object.assign({},e??{},t??{})};function q(...e){let t={};for(let n of e){if(!n)continue;for(let i in t){if(i.startsWith("on")&&typeof t[i]=="function"&&typeof n[i]=="function"){t[i]=ss(n[i],t[i]);continue}if(i==="className"||i==="class"){t[i]=uN(t[i],n[i]);continue}if(i==="style"){t[i]=fN(t[i],n[i]);continue}t[i]=n[i]!==void 0?n[i]:t[i]}for(let i in n)t[i]===void 0&&(t[i]=n[i]);const r=Object.getOwnPropertySymbols(n);for(let i of r)t[i]=n[i]}return t}function ab(e,t,n){let r=[],i;return a=>{const c=e(a);return(c.length!==r.length||c.some((f,p)=>!Wt(r[p],f)))&&(r=c,i=t(c,a)),i}}function Nn(){return{and:(...e)=>function(n){return e.every(r=>n.guard(r))},or:(...e)=>function(n){return e.some(r=>n.guard(r))},not:e=>function(n){return!n.guard(e)}}}function ol(){return{guards:Nn(),createMachine:e=>e,choose:e=>function({choose:n}){return n(e)?.actions}}}var Wi=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(Wi||{}),pg="__init__";function gN(e){const t=()=>e.getRootNode?.()??document,n=()=>Kt(t());return{...e,getRootNode:t,getDoc:n,getWin:()=>n().defaultView??window,getActiveElement:()=>ts(t()),isActiveElement:Ki,getById:c=>t().getElementById(c)}}function cr(...e){return t=>{const n=[];for(const r of e)if(typeof r=="function"){const i=r(t);typeof i=="function"&&n.push(i)}else r&&(r.current=t);if(n.length)return()=>{for(const r of n)r()}}}function pN(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const hg=e=>{const t=k.memo(k.forwardRef((n,r)=>{const{asChild:i,children:a,...c}=n;if(!i)return k.createElement(e,{...c,ref:r},a);if(!k.isValidElement(a))return null;const u=k.Children.only(a),f=pN(u);return k.cloneElement(u,{...q(c,u.props),ref:r?cr(r,f):f})}));return t.displayName=e.displayName||e.name,t},hN=()=>{const e=new Map;return new Proxy(hg,{apply(t,n,r){return hg(r[0])},get(t,n){const r=n;return e.has(r)||e.set(r,hg(r)),e.get(r)}})},re=hN(),[EH,vn]=$e({name:"LocaleContext",hookName:"useLocaleContext",providerName:"<LocaleProvider />",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}}),{withContext:mN}=Rn({key:"heading"}),vN=mN("h2");vN.displayName="Heading";const ze=()=>(e,t)=>t.reduce((n,r)=>{const[i,a]=n,c=r;return a[c]!==void 0&&(i[c]=a[c]),delete a[c],[i,a]},[{},{...e}]),ur=e=>ze()(e,["immediate","lazyMount","onExitComplete","present","skipAnimationOnMount","unmountOnExit"]);function yN(e){return new Proxy({},{get(t,n){return n==="style"?r=>e({style:r}).style:e}})}var he=()=>e=>Array.from(new Set(e));function bN(e,t){const{state:n,send:r,context:i}=e,a=n.matches("mounted","unmountSuspended");return{skip:!i.get("initial"),present:a,setNode(c){c&&r({type:"NODE.SET",node:c})},unmount(){r({type:"UNMOUNT"})}}}var xN={props({props:e}){return{...e,present:!!e.present}},initialState({prop:e}){return e("present")?"mounted":"unmounted"},refs(){return{node:null,styles:null}},context({bindable:e}){return{unmountAnimationName:e(()=>({defaultValue:null})),prevAnimationName:e(()=>({defaultValue:null})),present:e(()=>({defaultValue:!1})),initial:e(()=>({sync:!0,defaultValue:!1}))}},exit:["cleanupNode"],watch({track:e,prop:t,send:n}){e([()=>t("present")],()=>{n({type:"PRESENCE.CHANGED"})})},on:{"NODE.SET":{actions:["setupNode"]},"PRESENCE.CHANGED":{actions:["setInitial","syncPresence"]}},states:{mounted:{on:{UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]},"UNMOUNT.SUSPEND":{target:"unmountSuspended"}}},unmountSuspended:{effects:["trackAnimationEvents"],on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]},UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]}}},unmounted:{on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]}}}},implementations:{actions:{setInitial:({context:e})=>{e.get("initial")||queueMicrotask(()=>{e.set("initial",!0)})},invokeOnExitComplete:({prop:e,refs:t})=>{e("onExitComplete")?.();const n=t.get("node");if(!n)return;const r=et(n),i=new r.CustomEvent("exitcomplete",{bubbles:!1});n.dispatchEvent(i)},setupNode:({refs:e,event:t})=>{e.get("node")!==t.node&&(e.set("node",t.node),e.set("styles",Ar(t.node)))},cleanupNode:({refs:e})=>{e.set("node",null),e.set("styles",null)},syncPresence:({context:e,refs:t,send:n,prop:r})=>{const i=r("present");if(i)return n({type:"MOUNT",src:"presence.changed"});const a=t.get("node");if(!i&&a?.ownerDocument.visibilityState==="hidden")return n({type:"UNMOUNT",src:"visibilitychange"});de(()=>{const c=Ac(t.get("styles"));e.set("unmountAnimationName",c),c==="none"||c===e.get("prevAnimationName")||t.get("styles")?.display==="none"||t.get("styles")?.animationDuration==="0s"?n({type:"UNMOUNT",src:"presence.changed"}):n({type:"UNMOUNT.SUSPEND"})})},setPrevAnimationName:({context:e,refs:t})=>{de(()=>{e.set("prevAnimationName",Ac(t.get("styles")))})},clearPrevAnimationName:({context:e})=>{e.set("prevAnimationName",null)}},effects:{trackAnimationEvents:({context:e,refs:t,send:n,prop:r})=>{const i=t.get("node");if(!i)return;const a=p=>{(p.composedPath?.()?.[0]??p.target)===i&&e.set("prevAnimationName",Ac(t.get("styles")))},c=p=>{const h=Ac(t.get("styles"));at(p)===i&&h===e.get("unmountAnimationName")&&!r("present")&&n({type:"UNMOUNT",src:"animationend"})},u=p=>{at(p)===i&&!r("present")&&n({type:"UNMOUNT",src:"animationcancel"})};i.addEventListener("animationstart",a),i.addEventListener("animationcancel",u),i.addEventListener("animationend",c);const f=Za(i,{animationFillMode:"forwards"});return()=>{i.removeEventListener("animationstart",a),i.removeEventListener("animationcancel",u),i.removeEventListener("animationend",c),Wu(()=>f())}}}}};function Ac(e){return e?.animationName||"none"}he()(["onExitComplete","present","immediate"]);var mg={exports:{}},en={},vg={exports:{}},yg={};var lb;function wN(){return lb||(lb=1,(function(e){function t(oe,ee){var Z=oe.length;oe.push(ee);e:for(;0<Z;){var _=Z-1>>>1,G=oe[_];if(0<i(G,ee))oe[_]=ee,oe[Z]=G,Z=_;else break e}}function n(oe){return oe.length===0?null:oe[0]}function r(oe){if(oe.length===0)return null;var ee=oe[0],Z=oe.pop();if(Z!==ee){oe[0]=Z;e:for(var _=0,G=oe.length,Ce=G>>>1;_<Ce;){var Ee=2*(_+1)-1,ke=oe[Ee],Te=Ee+1,Fe=oe[Te];if(0>i(ke,Z))Te<G&&0>i(Fe,ke)?(oe[_]=Fe,oe[Te]=Z,_=Te):(oe[_]=ke,oe[Ee]=Z,_=Ee);else if(Te<G&&0>i(Fe,Z))oe[_]=Fe,oe[Te]=Z,_=Te;else break e}}return ee}function i(oe,ee){var Z=oe.sortIndex-ee.sortIndex;return Z!==0?Z:oe.id-ee.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var c=Date,u=c.now();e.unstable_now=function(){return c.now()-u}}var f=[],p=[],h=1,y=null,b=3,v=!1,w=!1,x=!1,E=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function R(oe){for(var ee=n(p);ee!==null;){if(ee.callback===null)r(p);else if(ee.startTime<=oe)r(p),ee.sortIndex=ee.expirationTime,t(f,ee);else break;ee=n(p)}}function S(oe){if(x=!1,R(oe),!w)if(n(f)!==null)w=!0,ce(T);else{var ee=n(p);ee!==null&&me(S,ee.startTime-oe)}}function T(oe,ee){w=!1,x&&(x=!1,O(B),B=-1),v=!0;var Z=b;try{for(R(ee),y=n(f);y!==null&&(!(y.expirationTime>ee)||oe&&!U());){var _=y.callback;if(typeof _=="function"){y.callback=null,b=y.priorityLevel;var G=_(y.expirationTime<=ee);ee=e.unstable_now(),typeof G=="function"?y.callback=G:y===n(f)&&r(f),R(ee)}else r(f);y=n(f)}if(y!==null)var Ce=!0;else{var Ee=n(p);Ee!==null&&me(S,Ee.startTime-ee),Ce=!1}return Ce}finally{y=null,b=Z,v=!1}}var L=!1,M=null,B=-1,j=5,W=-1;function U(){return!(e.unstable_now()-W<j)}function $(){if(M!==null){var oe=e.unstable_now();W=oe;var ee=!0;try{ee=M(!0,oe)}finally{ee?H():(L=!1,M=null)}}else L=!1}var H;if(typeof N=="function")H=function(){N($)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,ne=ae.port2;ae.port1.onmessage=$,H=function(){ne.postMessage(null)}}else H=function(){E($,0)};function ce(oe){M=oe,L||(L=!0,H())}function me(oe,ee){B=E(function(){oe(e.unstable_now())},ee)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(oe){oe.callback=null},e.unstable_continueExecution=function(){w||v||(w=!0,ce(T))},e.unstable_forceFrameRate=function(oe){0>oe||125<oe?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<oe?Math.floor(1e3/oe):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_getFirstCallbackNode=function(){return n(f)},e.unstable_next=function(oe){switch(b){case 1:case 2:case 3:var ee=3;break;default:ee=b}var Z=b;b=ee;try{return oe()}finally{b=Z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(oe,ee){switch(oe){case 1:case 2:case 3:case 4:case 5:break;default:oe=3}var Z=b;b=oe;try{return ee()}finally{b=Z}},e.unstable_scheduleCallback=function(oe,ee,Z){var _=e.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?_+Z:_):Z=_,oe){case 1:var G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=Z+G,oe={id:h++,callback:ee,priorityLevel:oe,startTime:Z,expirationTime:G,sortIndex:-1},Z>_?(oe.sortIndex=Z,t(p,oe),n(f)===null&&oe===n(p)&&(x?(O(B),B=-1):x=!0,me(S,Z-_))):(oe.sortIndex=G,t(f,oe),w||v||(w=!0,ce(T))),oe},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(oe){var ee=b;return function(){var Z=b;b=ee;try{return oe.apply(this,arguments)}finally{b=Z}}}})(yg)),yg}var cb;function CN(){return cb||(cb=1,vg.exports=wN()),vg.exports}var ub;function SN(){if(ub)return en;ub=1;var e=Sp(),t=CN();function n(o){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+o,l=1;l<arguments.length;l++)s+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+o+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,i={};function a(o,s){c(o,s),c(o+"Capture",s)}function c(o,s){for(i[o]=s,o=0;o<s.length;o++)r.add(s[o])}var u=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},y={};function b(o){return f.call(y,o)?!0:f.call(h,o)?!1:p.test(o)?y[o]=!0:(h[o]=!0,!1)}function v(o,s,l,d){if(l!==null&&l.type===0)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":return d?!1:l!==null?!l.acceptsBooleans:(o=o.toLowerCase().slice(0,5),o!=="data-"&&o!=="aria-");default:return!1}}function w(o,s,l,d){if(s===null||typeof s>"u"||v(o,s,l,d))return!0;if(d)return!1;if(l!==null)switch(l.type){case 3:return!s;case 4:return s===!1;case 5:return isNaN(s);case 6:return isNaN(s)||1>s}return!1}function x(o,s,l,d,g,m,C){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=d,this.attributeNamespace=g,this.mustUseProperty=l,this.propertyName=o,this.type=s,this.sanitizeURL=m,this.removeEmptyString=C}var E={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(o){E[o]=new x(o,0,!1,o,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(o){var s=o[0];E[s]=new x(s,1,!1,o[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(o){E[o]=new x(o,2,!1,o.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(o){E[o]=new x(o,2,!1,o,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(o){E[o]=new x(o,3,!1,o.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(o){E[o]=new x(o,3,!0,o,null,!1,!1)}),["capture","download"].forEach(function(o){E[o]=new x(o,4,!1,o,null,!1,!1)}),["cols","rows","size","span"].forEach(function(o){E[o]=new x(o,6,!1,o,null,!1,!1)}),["rowSpan","start"].forEach(function(o){E[o]=new x(o,5,!1,o.toLowerCase(),null,!1,!1)});var O=/[\-:]([a-z])/g;function N(o){return o[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(o){var s=o.replace(O,N);E[s]=new x(s,1,!1,o,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(o){var s=o.replace(O,N);E[s]=new x(s,1,!1,o,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(o){var s=o.replace(O,N);E[s]=new x(s,1,!1,o,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(o){E[o]=new x(o,1,!1,o.toLowerCase(),null,!1,!1)}),E.xlinkHref=new x("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(o){E[o]=new x(o,1,!1,o.toLowerCase(),null,!0,!0)});function R(o,s,l,d){var g=E.hasOwnProperty(s)?E[s]:null;(g!==null?g.type!==0:d||!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(w(s,l,g,d)&&(l=null),d||g===null?b(s)&&(l===null?o.removeAttribute(s):o.setAttribute(s,""+l)):g.mustUseProperty?o[g.propertyName]=l===null?g.type===3?!1:"":l:(s=g.attributeName,d=g.attributeNamespace,l===null?o.removeAttribute(s):(g=g.type,l=g===3||g===4&&l===!0?"":""+l,d?o.setAttributeNS(d,s,l):o.setAttribute(s,l))))}var S=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,T=Symbol.for("react.element"),L=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),W=Symbol.for("react.provider"),U=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),ae=Symbol.for("react.suspense_list"),ne=Symbol.for("react.memo"),ce=Symbol.for("react.lazy"),me=Symbol.for("react.offscreen"),oe=Symbol.iterator;function ee(o){return o===null||typeof o!="object"?null:(o=oe&&o[oe]||o["@@iterator"],typeof o=="function"?o:null)}var Z=Object.assign,_;function G(o){if(_===void 0)try{throw Error()}catch(l){var s=l.stack.trim().match(/\n( *(at )?)/);_=s&&s[1]||""}return`
|
|
2
|
+
`+_+o}var Ce=!1;function Ee(o,s){if(!o||Ce)return"";Ce=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(s)if(s=function(){throw Error()},Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(F){var d=F}Reflect.construct(o,[],s)}else{try{s.call()}catch(F){d=F}o.call(s.prototype)}else{try{throw Error()}catch(F){d=F}o()}}catch(F){if(F&&d&&typeof F.stack=="string"){for(var g=F.stack.split(`
|
|
3
|
+
`),m=d.stack.split(`
|
|
4
|
+
`),C=g.length-1,I=m.length-1;1<=C&&0<=I&&g[C]!==m[I];)I--;for(;1<=C&&0<=I;C--,I--)if(g[C]!==m[I]){if(C!==1||I!==1)do if(C--,I--,0>I||g[C]!==m[I]){var A=`
|
|
5
|
+
`+g[C].replace(" at new "," at ");return o.displayName&&A.includes("<anonymous>")&&(A=A.replace("<anonymous>",o.displayName)),A}while(1<=C&&0<=I);break}}}finally{Ce=!1,Error.prepareStackTrace=l}return(o=o?o.displayName||o.name:"")?G(o):""}function ke(o){switch(o.tag){case 5:return G(o.type);case 16:return G("Lazy");case 13:return G("Suspense");case 19:return G("SuspenseList");case 0:case 2:case 15:return o=Ee(o.type,!1),o;case 11:return o=Ee(o.type.render,!1),o;case 1:return o=Ee(o.type,!0),o;default:return""}}function Te(o){if(o==null)return null;if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case M:return"Fragment";case L:return"Portal";case j:return"Profiler";case B:return"StrictMode";case H:return"Suspense";case ae:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case U:return(o.displayName||"Context")+".Consumer";case W:return(o._context.displayName||"Context")+".Provider";case $:var s=o.render;return o=o.displayName,o||(o=s.displayName||s.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case ne:return s=o.displayName||null,s!==null?s:Te(o.type)||"Memo";case ce:s=o._payload,o=o._init;try{return Te(o(s))}catch{}}return null}function Fe(o){var s=o.type;switch(o.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return o=s.render,o=o.displayName||o.name||"",s.displayName||(o!==""?"ForwardRef("+o+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Te(s);case 8:return s===B?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function X(o){switch(typeof o){case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function Y(o){var s=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function we(o){var s=Y(o)?"checked":"value",l=Object.getOwnPropertyDescriptor(o.constructor.prototype,s),d=""+o[s];if(!o.hasOwnProperty(s)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var g=l.get,m=l.set;return Object.defineProperty(o,s,{configurable:!0,get:function(){return g.call(this)},set:function(C){d=""+C,m.call(this,C)}}),Object.defineProperty(o,s,{enumerable:l.enumerable}),{getValue:function(){return d},setValue:function(C){d=""+C},stopTracking:function(){o._valueTracker=null,delete o[s]}}}}function Oe(o){o._valueTracker||(o._valueTracker=we(o))}function Ge(o){if(!o)return!1;var s=o._valueTracker;if(!s)return!0;var l=s.getValue(),d="";return o&&(d=Y(o)?o.checked?"true":"false":o.value),o=d,o!==l?(s.setValue(o),!0):!1}function Ze(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}function an(o,s){var l=s.checked;return Z({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??o._wrapperState.initialChecked})}function vo(o,s){var l=s.defaultValue==null?"":s.defaultValue,d=s.checked!=null?s.checked:s.defaultChecked;l=X(s.value!=null?s.value:l),o._wrapperState={initialChecked:d,initialValue:l,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function ri(o,s){s=s.checked,s!=null&&R(o,"checked",s,!1)}function Is(o,s){ri(o,s);var l=X(s.value),d=s.type;if(l!=null)d==="number"?(l===0&&o.value===""||o.value!=l)&&(o.value=""+l):o.value!==""+l&&(o.value=""+l);else if(d==="submit"||d==="reset"){o.removeAttribute("value");return}s.hasOwnProperty("value")?oi(o,s.type,l):s.hasOwnProperty("defaultValue")&&oi(o,s.type,X(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(o.defaultChecked=!!s.defaultChecked)}function xl(o,s,l){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var d=s.type;if(!(d!=="submit"&&d!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+o._wrapperState.initialValue,l||s===o.value||(o.value=s),o.defaultValue=s}l=o.name,l!==""&&(o.name=""),o.defaultChecked=!!o._wrapperState.initialChecked,l!==""&&(o.name=l)}function oi(o,s,l){(s!=="number"||Ze(o.ownerDocument)!==o)&&(l==null?o.defaultValue=""+o._wrapperState.initialValue:o.defaultValue!==""+l&&(o.defaultValue=""+l))}var yo=Array.isArray;function pr(o,s,l,d){if(o=o.options,s){s={};for(var g=0;g<l.length;g++)s["$"+l[g]]=!0;for(l=0;l<o.length;l++)g=s.hasOwnProperty("$"+o[l].value),o[l].selected!==g&&(o[l].selected=g),g&&d&&(o[l].defaultSelected=!0)}else{for(l=""+X(l),s=null,g=0;g<o.length;g++){if(o[g].value===l){o[g].selected=!0,d&&(o[g].defaultSelected=!0);return}s!==null||o[g].disabled||(s=o[g])}s!==null&&(s.selected=!0)}}function ii(o,s){if(s.dangerouslySetInnerHTML!=null)throw Error(n(91));return Z({},s,{value:void 0,defaultValue:void 0,children:""+o._wrapperState.initialValue})}function si(o,s){var l=s.value;if(l==null){if(l=s.children,s=s.defaultValue,l!=null){if(s!=null)throw Error(n(92));if(yo(l)){if(1<l.length)throw Error(n(93));l=l[0]}s=l}s==null&&(s=""),l=s}o._wrapperState={initialValue:X(l)}}function Mh(o,s){var l=X(s.value),d=X(s.defaultValue);l!=null&&(l=""+l,l!==o.value&&(o.value=l),s.defaultValue==null&&o.defaultValue!==l&&(o.defaultValue=l)),d!=null&&(o.defaultValue=""+d)}function Bh(o){var s=o.textContent;s===o._wrapperState.initialValue&&s!==""&&s!==null&&(o.value=s)}function Wh(o){switch(o){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ud(o,s){return o==null||o==="http://www.w3.org/1999/xhtml"?Wh(s):o==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":o}var wl,Hh=(function(o){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(s,l,d,g){MSApp.execUnsafeLocalFunction(function(){return o(s,l,d,g)})}:o})(function(o,s){if(o.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in o)o.innerHTML=s;else{for(wl=wl||document.createElement("div"),wl.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=wl.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;s.firstChild;)o.appendChild(s.firstChild)}});function Ts(o,s){if(s){var l=o.firstChild;if(l&&l===o.lastChild&&l.nodeType===3){l.nodeValue=s;return}}o.textContent=s}var Os={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qk=["Webkit","ms","Moz","O"];Object.keys(Os).forEach(function(o){qk.forEach(function(s){s=s+o.charAt(0).toUpperCase()+o.substring(1),Os[s]=Os[o]})});function jh(o,s,l){return s==null||typeof s=="boolean"||s===""?"":l||typeof s!="number"||s===0||Os.hasOwnProperty(o)&&Os[o]?(""+s).trim():s+"px"}function Gh(o,s){o=o.style;for(var l in s)if(s.hasOwnProperty(l)){var d=l.indexOf("--")===0,g=jh(l,s[l],d);l==="float"&&(l="cssFloat"),d?o.setProperty(l,g):o[l]=g}}var Qk=Z({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function dd(o,s){if(s){if(Qk[o]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(n(137,o));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(n(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(n(61))}if(s.style!=null&&typeof s.style!="object")throw Error(n(62))}}function fd(o,s){if(o.indexOf("-")===-1)return typeof s.is=="string";switch(o){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var gd=null;function pd(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var hd=null,ai=null,li=null;function Uh(o){if(o=Qs(o)){if(typeof hd!="function")throw Error(n(280));var s=o.stateNode;s&&(s=jl(s),hd(o.stateNode,o.type,s))}}function Kh(o){ai?li?li.push(o):li=[o]:ai=o}function Yh(){if(ai){var o=ai,s=li;if(li=ai=null,Uh(o),s)for(o=0;o<s.length;o++)Uh(s[o])}}function Xh(o,s){return o(s)}function qh(){}var md=!1;function Qh(o,s,l){if(md)return o(s,l);md=!0;try{return Xh(o,s,l)}finally{md=!1,(ai!==null||li!==null)&&(qh(),Yh())}}function Rs(o,s){var l=o.stateNode;if(l===null)return null;var d=jl(l);if(d===null)return null;l=d[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(o=o.type,d=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!d;break e;default:o=!1}if(o)return null;if(l&&typeof l!="function")throw Error(n(231,s,typeof l));return l}var vd=!1;if(u)try{var Ns={};Object.defineProperty(Ns,"passive",{get:function(){vd=!0}}),window.addEventListener("test",Ns,Ns),window.removeEventListener("test",Ns,Ns)}catch{vd=!1}function Zk(o,s,l,d,g,m,C,I,A){var F=Array.prototype.slice.call(arguments,3);try{s.apply(l,F)}catch(J){this.onError(J)}}var As=!1,Cl=null,Sl=!1,yd=null,Jk={onError:function(o){As=!0,Cl=o}};function eP(o,s,l,d,g,m,C,I,A){As=!1,Cl=null,Zk.apply(Jk,arguments)}function tP(o,s,l,d,g,m,C,I,A){if(eP.apply(this,arguments),As){if(As){var F=Cl;As=!1,Cl=null}else throw Error(n(198));Sl||(Sl=!0,yd=F)}}function bo(o){var s=o,l=o;if(o.alternate)for(;s.return;)s=s.return;else{o=s;do s=o,(s.flags&4098)!==0&&(l=s.return),o=s.return;while(o)}return s.tag===3?l:null}function Zh(o){if(o.tag===13){var s=o.memoizedState;if(s===null&&(o=o.alternate,o!==null&&(s=o.memoizedState)),s!==null)return s.dehydrated}return null}function Jh(o){if(bo(o)!==o)throw Error(n(188))}function nP(o){var s=o.alternate;if(!s){if(s=bo(o),s===null)throw Error(n(188));return s!==o?null:o}for(var l=o,d=s;;){var g=l.return;if(g===null)break;var m=g.alternate;if(m===null){if(d=g.return,d!==null){l=d;continue}break}if(g.child===m.child){for(m=g.child;m;){if(m===l)return Jh(g),o;if(m===d)return Jh(g),s;m=m.sibling}throw Error(n(188))}if(l.return!==d.return)l=g,d=m;else{for(var C=!1,I=g.child;I;){if(I===l){C=!0,l=g,d=m;break}if(I===d){C=!0,d=g,l=m;break}I=I.sibling}if(!C){for(I=m.child;I;){if(I===l){C=!0,l=m,d=g;break}if(I===d){C=!0,d=m,l=g;break}I=I.sibling}if(!C)throw Error(n(189))}}if(l.alternate!==d)throw Error(n(190))}if(l.tag!==3)throw Error(n(188));return l.stateNode.current===l?o:s}function em(o){return o=nP(o),o!==null?tm(o):null}function tm(o){if(o.tag===5||o.tag===6)return o;for(o=o.child;o!==null;){var s=tm(o);if(s!==null)return s;o=o.sibling}return null}var nm=t.unstable_scheduleCallback,rm=t.unstable_cancelCallback,rP=t.unstable_shouldYield,oP=t.unstable_requestPaint,tt=t.unstable_now,iP=t.unstable_getCurrentPriorityLevel,bd=t.unstable_ImmediatePriority,om=t.unstable_UserBlockingPriority,El=t.unstable_NormalPriority,sP=t.unstable_LowPriority,im=t.unstable_IdlePriority,kl=null,Yn=null;function aP(o){if(Yn&&typeof Yn.onCommitFiberRoot=="function")try{Yn.onCommitFiberRoot(kl,o,void 0,(o.current.flags&128)===128)}catch{}}var _n=Math.clz32?Math.clz32:uP,lP=Math.log,cP=Math.LN2;function uP(o){return o>>>=0,o===0?32:31-(lP(o)/cP|0)|0}var Pl=64,Il=4194304;function Vs(o){switch(o&-o){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return o&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return o}}function Tl(o,s){var l=o.pendingLanes;if(l===0)return 0;var d=0,g=o.suspendedLanes,m=o.pingedLanes,C=l&268435455;if(C!==0){var I=C&~g;I!==0?d=Vs(I):(m&=C,m!==0&&(d=Vs(m)))}else C=l&~g,C!==0?d=Vs(C):m!==0&&(d=Vs(m));if(d===0)return 0;if(s!==0&&s!==d&&(s&g)===0&&(g=d&-d,m=s&-s,g>=m||g===16&&(m&4194240)!==0))return s;if((d&4)!==0&&(d|=l&16),s=o.entangledLanes,s!==0)for(o=o.entanglements,s&=d;0<s;)l=31-_n(s),g=1<<l,d|=o[l],s&=~g;return d}function dP(o,s){switch(o){case 1:case 2:case 4:return s+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function fP(o,s){for(var l=o.suspendedLanes,d=o.pingedLanes,g=o.expirationTimes,m=o.pendingLanes;0<m;){var C=31-_n(m),I=1<<C,A=g[C];A===-1?((I&l)===0||(I&d)!==0)&&(g[C]=dP(I,s)):A<=s&&(o.expiredLanes|=I),m&=~I}}function xd(o){return o=o.pendingLanes&-1073741825,o!==0?o:o&1073741824?1073741824:0}function sm(){var o=Pl;return Pl<<=1,(Pl&4194240)===0&&(Pl=64),o}function wd(o){for(var s=[],l=0;31>l;l++)s.push(o);return s}function _s(o,s,l){o.pendingLanes|=s,s!==536870912&&(o.suspendedLanes=0,o.pingedLanes=0),o=o.eventTimes,s=31-_n(s),o[s]=l}function gP(o,s){var l=o.pendingLanes&~s;o.pendingLanes=s,o.suspendedLanes=0,o.pingedLanes=0,o.expiredLanes&=s,o.mutableReadLanes&=s,o.entangledLanes&=s,s=o.entanglements;var d=o.eventTimes;for(o=o.expirationTimes;0<l;){var g=31-_n(l),m=1<<g;s[g]=0,d[g]=-1,o[g]=-1,l&=~m}}function Cd(o,s){var l=o.entangledLanes|=s;for(o=o.entanglements;l;){var d=31-_n(l),g=1<<d;g&s|o[d]&s&&(o[d]|=s),l&=~g}}var De=0;function am(o){return o&=-o,1<o?4<o?(o&268435455)!==0?16:536870912:4:1}var lm,Sd,cm,um,dm,Ed=!1,Ol=[],Dr=null,zr=null,Fr=null,Ls=new Map,$s=new Map,Mr=[],pP="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function fm(o,s){switch(o){case"focusin":case"focusout":Dr=null;break;case"dragenter":case"dragleave":zr=null;break;case"mouseover":case"mouseout":Fr=null;break;case"pointerover":case"pointerout":Ls.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":$s.delete(s.pointerId)}}function Ds(o,s,l,d,g,m){return o===null||o.nativeEvent!==m?(o={blockedOn:s,domEventName:l,eventSystemFlags:d,nativeEvent:m,targetContainers:[g]},s!==null&&(s=Qs(s),s!==null&&Sd(s)),o):(o.eventSystemFlags|=d,s=o.targetContainers,g!==null&&s.indexOf(g)===-1&&s.push(g),o)}function hP(o,s,l,d,g){switch(s){case"focusin":return Dr=Ds(Dr,o,s,l,d,g),!0;case"dragenter":return zr=Ds(zr,o,s,l,d,g),!0;case"mouseover":return Fr=Ds(Fr,o,s,l,d,g),!0;case"pointerover":var m=g.pointerId;return Ls.set(m,Ds(Ls.get(m)||null,o,s,l,d,g)),!0;case"gotpointercapture":return m=g.pointerId,$s.set(m,Ds($s.get(m)||null,o,s,l,d,g)),!0}return!1}function gm(o){var s=xo(o.target);if(s!==null){var l=bo(s);if(l!==null){if(s=l.tag,s===13){if(s=Zh(l),s!==null){o.blockedOn=s,dm(o.priority,function(){cm(l)});return}}else if(s===3&&l.stateNode.current.memoizedState.isDehydrated){o.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}o.blockedOn=null}function Rl(o){if(o.blockedOn!==null)return!1;for(var s=o.targetContainers;0<s.length;){var l=Pd(o.domEventName,o.eventSystemFlags,s[0],o.nativeEvent);if(l===null){l=o.nativeEvent;var d=new l.constructor(l.type,l);gd=d,l.target.dispatchEvent(d),gd=null}else return s=Qs(l),s!==null&&Sd(s),o.blockedOn=l,!1;s.shift()}return!0}function pm(o,s,l){Rl(o)&&l.delete(s)}function mP(){Ed=!1,Dr!==null&&Rl(Dr)&&(Dr=null),zr!==null&&Rl(zr)&&(zr=null),Fr!==null&&Rl(Fr)&&(Fr=null),Ls.forEach(pm),$s.forEach(pm)}function zs(o,s){o.blockedOn===s&&(o.blockedOn=null,Ed||(Ed=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,mP)))}function Fs(o){function s(g){return zs(g,o)}if(0<Ol.length){zs(Ol[0],o);for(var l=1;l<Ol.length;l++){var d=Ol[l];d.blockedOn===o&&(d.blockedOn=null)}}for(Dr!==null&&zs(Dr,o),zr!==null&&zs(zr,o),Fr!==null&&zs(Fr,o),Ls.forEach(s),$s.forEach(s),l=0;l<Mr.length;l++)d=Mr[l],d.blockedOn===o&&(d.blockedOn=null);for(;0<Mr.length&&(l=Mr[0],l.blockedOn===null);)gm(l),l.blockedOn===null&&Mr.shift()}var ci=S.ReactCurrentBatchConfig,Nl=!0;function vP(o,s,l,d){var g=De,m=ci.transition;ci.transition=null;try{De=1,kd(o,s,l,d)}finally{De=g,ci.transition=m}}function yP(o,s,l,d){var g=De,m=ci.transition;ci.transition=null;try{De=4,kd(o,s,l,d)}finally{De=g,ci.transition=m}}function kd(o,s,l,d){if(Nl){var g=Pd(o,s,l,d);if(g===null)Hd(o,s,d,Al,l),fm(o,d);else if(hP(g,o,s,l,d))d.stopPropagation();else if(fm(o,d),s&4&&-1<pP.indexOf(o)){for(;g!==null;){var m=Qs(g);if(m!==null&&lm(m),m=Pd(o,s,l,d),m===null&&Hd(o,s,d,Al,l),m===g)break;g=m}g!==null&&d.stopPropagation()}else Hd(o,s,d,null,l)}}var Al=null;function Pd(o,s,l,d){if(Al=null,o=pd(d),o=xo(o),o!==null)if(s=bo(o),s===null)o=null;else if(l=s.tag,l===13){if(o=Zh(s),o!==null)return o;o=null}else if(l===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;o=null}else s!==o&&(o=null);return Al=o,null}function hm(o){switch(o){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(iP()){case bd:return 1;case om:return 4;case El:case sP:return 16;case im:return 536870912;default:return 16}default:return 16}}var Br=null,Id=null,Vl=null;function mm(){if(Vl)return Vl;var o,s=Id,l=s.length,d,g="value"in Br?Br.value:Br.textContent,m=g.length;for(o=0;o<l&&s[o]===g[o];o++);var C=l-o;for(d=1;d<=C&&s[l-d]===g[m-d];d++);return Vl=g.slice(o,1<d?1-d:void 0)}function _l(o){var s=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&s===13&&(o=13)):o=s,o===10&&(o=13),32<=o||o===13?o:0}function Ll(){return!0}function vm(){return!1}function ln(o){function s(l,d,g,m,C){this._reactName=l,this._targetInst=g,this.type=d,this.nativeEvent=m,this.target=C,this.currentTarget=null;for(var I in o)o.hasOwnProperty(I)&&(l=o[I],this[I]=l?l(m):m[I]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?Ll:vm,this.isPropagationStopped=vm,this}return Z(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Ll)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ll)},persist:function(){},isPersistent:Ll}),s}var ui={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Td=ln(ui),Ms=Z({},ui,{view:0,detail:0}),bP=ln(Ms),Od,Rd,Bs,$l=Z({},Ms,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ad,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==Bs&&(Bs&&o.type==="mousemove"?(Od=o.screenX-Bs.screenX,Rd=o.screenY-Bs.screenY):Rd=Od=0,Bs=o),Od)},movementY:function(o){return"movementY"in o?o.movementY:Rd}}),ym=ln($l),xP=Z({},$l,{dataTransfer:0}),wP=ln(xP),CP=Z({},Ms,{relatedTarget:0}),Nd=ln(CP),SP=Z({},ui,{animationName:0,elapsedTime:0,pseudoElement:0}),EP=ln(SP),kP=Z({},ui,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),PP=ln(kP),IP=Z({},ui,{data:0}),bm=ln(IP),TP={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},OP={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},RP={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function NP(o){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(o):(o=RP[o])?!!s[o]:!1}function Ad(){return NP}var AP=Z({},Ms,{key:function(o){if(o.key){var s=TP[o.key]||o.key;if(s!=="Unidentified")return s}return o.type==="keypress"?(o=_l(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?OP[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ad,charCode:function(o){return o.type==="keypress"?_l(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?_l(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),VP=ln(AP),_P=Z({},$l,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xm=ln(_P),LP=Z({},Ms,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ad}),$P=ln(LP),DP=Z({},ui,{propertyName:0,elapsedTime:0,pseudoElement:0}),zP=ln(DP),FP=Z({},$l,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),MP=ln(FP),BP=[9,13,27,32],Vd=u&&"CompositionEvent"in window,Ws=null;u&&"documentMode"in document&&(Ws=document.documentMode);var WP=u&&"TextEvent"in window&&!Ws,wm=u&&(!Vd||Ws&&8<Ws&&11>=Ws),Cm=" ",Sm=!1;function Em(o,s){switch(o){case"keyup":return BP.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function km(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var di=!1;function HP(o,s){switch(o){case"compositionend":return km(s);case"keypress":return s.which!==32?null:(Sm=!0,Cm);case"textInput":return o=s.data,o===Cm&&Sm?null:o;default:return null}}function jP(o,s){if(di)return o==="compositionend"||!Vd&&Em(o,s)?(o=mm(),Vl=Id=Br=null,di=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return wm&&s.locale!=="ko"?null:s.data;default:return null}}var GP={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Pm(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s==="input"?!!GP[o.type]:s==="textarea"}function Im(o,s,l,d){Kh(d),s=Bl(s,"onChange"),0<s.length&&(l=new Td("onChange","change",null,l,d),o.push({event:l,listeners:s}))}var Hs=null,js=null;function UP(o){Gm(o,0)}function Dl(o){var s=mi(o);if(Ge(s))return o}function KP(o,s){if(o==="change")return s}var Tm=!1;if(u){var _d;if(u){var Ld="oninput"in document;if(!Ld){var Om=document.createElement("div");Om.setAttribute("oninput","return;"),Ld=typeof Om.oninput=="function"}_d=Ld}else _d=!1;Tm=_d&&(!document.documentMode||9<document.documentMode)}function Rm(){Hs&&(Hs.detachEvent("onpropertychange",Nm),js=Hs=null)}function Nm(o){if(o.propertyName==="value"&&Dl(js)){var s=[];Im(s,js,o,pd(o)),Qh(UP,s)}}function YP(o,s,l){o==="focusin"?(Rm(),Hs=s,js=l,Hs.attachEvent("onpropertychange",Nm)):o==="focusout"&&Rm()}function XP(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return Dl(js)}function qP(o,s){if(o==="click")return Dl(s)}function QP(o,s){if(o==="input"||o==="change")return Dl(s)}function ZP(o,s){return o===s&&(o!==0||1/o===1/s)||o!==o&&s!==s}var Ln=typeof Object.is=="function"?Object.is:ZP;function Gs(o,s){if(Ln(o,s))return!0;if(typeof o!="object"||o===null||typeof s!="object"||s===null)return!1;var l=Object.keys(o),d=Object.keys(s);if(l.length!==d.length)return!1;for(d=0;d<l.length;d++){var g=l[d];if(!f.call(s,g)||!Ln(o[g],s[g]))return!1}return!0}function Am(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function Vm(o,s){var l=Am(o);o=0;for(var d;l;){if(l.nodeType===3){if(d=o+l.textContent.length,o<=s&&d>=s)return{node:l,offset:s-o};o=d}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Am(l)}}function _m(o,s){return o&&s?o===s?!0:o&&o.nodeType===3?!1:s&&s.nodeType===3?_m(o,s.parentNode):"contains"in o?o.contains(s):o.compareDocumentPosition?!!(o.compareDocumentPosition(s)&16):!1:!1}function Lm(){for(var o=window,s=Ze();s instanceof o.HTMLIFrameElement;){try{var l=typeof s.contentWindow.location.href=="string"}catch{l=!1}if(l)o=s.contentWindow;else break;s=Ze(o.document)}return s}function $d(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s&&(s==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||s==="textarea"||o.contentEditable==="true")}function JP(o){var s=Lm(),l=o.focusedElem,d=o.selectionRange;if(s!==l&&l&&l.ownerDocument&&_m(l.ownerDocument.documentElement,l)){if(d!==null&&$d(l)){if(s=d.start,o=d.end,o===void 0&&(o=s),"selectionStart"in l)l.selectionStart=s,l.selectionEnd=Math.min(o,l.value.length);else if(o=(s=l.ownerDocument||document)&&s.defaultView||window,o.getSelection){o=o.getSelection();var g=l.textContent.length,m=Math.min(d.start,g);d=d.end===void 0?m:Math.min(d.end,g),!o.extend&&m>d&&(g=d,d=m,m=g),g=Vm(l,m);var C=Vm(l,d);g&&C&&(o.rangeCount!==1||o.anchorNode!==g.node||o.anchorOffset!==g.offset||o.focusNode!==C.node||o.focusOffset!==C.offset)&&(s=s.createRange(),s.setStart(g.node,g.offset),o.removeAllRanges(),m>d?(o.addRange(s),o.extend(C.node,C.offset)):(s.setEnd(C.node,C.offset),o.addRange(s)))}}for(s=[],o=l;o=o.parentNode;)o.nodeType===1&&s.push({element:o,left:o.scrollLeft,top:o.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<s.length;l++)o=s[l],o.element.scrollLeft=o.left,o.element.scrollTop=o.top}}var eI=u&&"documentMode"in document&&11>=document.documentMode,fi=null,Dd=null,Us=null,zd=!1;function $m(o,s,l){var d=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;zd||fi==null||fi!==Ze(d)||(d=fi,"selectionStart"in d&&$d(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Us&&Gs(Us,d)||(Us=d,d=Bl(Dd,"onSelect"),0<d.length&&(s=new Td("onSelect","select",null,s,l),o.push({event:s,listeners:d}),s.target=fi)))}function zl(o,s){var l={};return l[o.toLowerCase()]=s.toLowerCase(),l["Webkit"+o]="webkit"+s,l["Moz"+o]="moz"+s,l}var gi={animationend:zl("Animation","AnimationEnd"),animationiteration:zl("Animation","AnimationIteration"),animationstart:zl("Animation","AnimationStart"),transitionend:zl("Transition","TransitionEnd")},Fd={},Dm={};u&&(Dm=document.createElement("div").style,"AnimationEvent"in window||(delete gi.animationend.animation,delete gi.animationiteration.animation,delete gi.animationstart.animation),"TransitionEvent"in window||delete gi.transitionend.transition);function Fl(o){if(Fd[o])return Fd[o];if(!gi[o])return o;var s=gi[o],l;for(l in s)if(s.hasOwnProperty(l)&&l in Dm)return Fd[o]=s[l];return o}var zm=Fl("animationend"),Fm=Fl("animationiteration"),Mm=Fl("animationstart"),Bm=Fl("transitionend"),Wm=new Map,Hm="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Wr(o,s){Wm.set(o,s),a(s,[o])}for(var Md=0;Md<Hm.length;Md++){var Bd=Hm[Md],tI=Bd.toLowerCase(),nI=Bd[0].toUpperCase()+Bd.slice(1);Wr(tI,"on"+nI)}Wr(zm,"onAnimationEnd"),Wr(Fm,"onAnimationIteration"),Wr(Mm,"onAnimationStart"),Wr("dblclick","onDoubleClick"),Wr("focusin","onFocus"),Wr("focusout","onBlur"),Wr(Bm,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ks="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),rI=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ks));function jm(o,s,l){var d=o.type||"unknown-event";o.currentTarget=l,tP(d,s,void 0,o),o.currentTarget=null}function Gm(o,s){s=(s&4)!==0;for(var l=0;l<o.length;l++){var d=o[l],g=d.event;d=d.listeners;e:{var m=void 0;if(s)for(var C=d.length-1;0<=C;C--){var I=d[C],A=I.instance,F=I.currentTarget;if(I=I.listener,A!==m&&g.isPropagationStopped())break e;jm(g,I,F),m=A}else for(C=0;C<d.length;C++){if(I=d[C],A=I.instance,F=I.currentTarget,I=I.listener,A!==m&&g.isPropagationStopped())break e;jm(g,I,F),m=A}}}if(Sl)throw o=yd,Sl=!1,yd=null,o}function Ue(o,s){var l=s[Xd];l===void 0&&(l=s[Xd]=new Set);var d=o+"__bubble";l.has(d)||(Um(s,o,2,!1),l.add(d))}function Wd(o,s,l){var d=0;s&&(d|=4),Um(l,o,d,s)}var Ml="_reactListening"+Math.random().toString(36).slice(2);function Ys(o){if(!o[Ml]){o[Ml]=!0,r.forEach(function(l){l!=="selectionchange"&&(rI.has(l)||Wd(l,!1,o),Wd(l,!0,o))});var s=o.nodeType===9?o:o.ownerDocument;s===null||s[Ml]||(s[Ml]=!0,Wd("selectionchange",!1,s))}}function Um(o,s,l,d){switch(hm(s)){case 1:var g=vP;break;case 4:g=yP;break;default:g=kd}l=g.bind(null,s,l,o),g=void 0,!vd||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(g=!0),d?g!==void 0?o.addEventListener(s,l,{capture:!0,passive:g}):o.addEventListener(s,l,!0):g!==void 0?o.addEventListener(s,l,{passive:g}):o.addEventListener(s,l,!1)}function Hd(o,s,l,d,g){var m=d;if((s&1)===0&&(s&2)===0&&d!==null)e:for(;;){if(d===null)return;var C=d.tag;if(C===3||C===4){var I=d.stateNode.containerInfo;if(I===g||I.nodeType===8&&I.parentNode===g)break;if(C===4)for(C=d.return;C!==null;){var A=C.tag;if((A===3||A===4)&&(A=C.stateNode.containerInfo,A===g||A.nodeType===8&&A.parentNode===g))return;C=C.return}for(;I!==null;){if(C=xo(I),C===null)return;if(A=C.tag,A===5||A===6){d=m=C;continue e}I=I.parentNode}}d=d.return}Qh(function(){var F=m,J=pd(l),te=[];e:{var Q=Wm.get(o);if(Q!==void 0){var le=Td,fe=o;switch(o){case"keypress":if(_l(l)===0)break e;case"keydown":case"keyup":le=VP;break;case"focusin":fe="focus",le=Nd;break;case"focusout":fe="blur",le=Nd;break;case"beforeblur":case"afterblur":le=Nd;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":le=ym;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":le=wP;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":le=$P;break;case zm:case Fm:case Mm:le=EP;break;case Bm:le=zP;break;case"scroll":le=bP;break;case"wheel":le=MP;break;case"copy":case"cut":case"paste":le=PP;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":le=xm}var ge=(s&4)!==0,nt=!ge&&o==="scroll",D=ge?Q!==null?Q+"Capture":null:Q;ge=[];for(var V=F,z;V!==null;){z=V;var ie=z.stateNode;if(z.tag===5&&ie!==null&&(z=ie,D!==null&&(ie=Rs(V,D),ie!=null&&ge.push(Xs(V,ie,z)))),nt)break;V=V.return}0<ge.length&&(Q=new le(Q,fe,null,l,J),te.push({event:Q,listeners:ge}))}}if((s&7)===0){e:{if(Q=o==="mouseover"||o==="pointerover",le=o==="mouseout"||o==="pointerout",Q&&l!==gd&&(fe=l.relatedTarget||l.fromElement)&&(xo(fe)||fe[hr]))break e;if((le||Q)&&(Q=J.window===J?J:(Q=J.ownerDocument)?Q.defaultView||Q.parentWindow:window,le?(fe=l.relatedTarget||l.toElement,le=F,fe=fe?xo(fe):null,fe!==null&&(nt=bo(fe),fe!==nt||fe.tag!==5&&fe.tag!==6)&&(fe=null)):(le=null,fe=F),le!==fe)){if(ge=ym,ie="onMouseLeave",D="onMouseEnter",V="mouse",(o==="pointerout"||o==="pointerover")&&(ge=xm,ie="onPointerLeave",D="onPointerEnter",V="pointer"),nt=le==null?Q:mi(le),z=fe==null?Q:mi(fe),Q=new ge(ie,V+"leave",le,l,J),Q.target=nt,Q.relatedTarget=z,ie=null,xo(J)===F&&(ge=new ge(D,V+"enter",fe,l,J),ge.target=z,ge.relatedTarget=nt,ie=ge),nt=ie,le&&fe)t:{for(ge=le,D=fe,V=0,z=ge;z;z=pi(z))V++;for(z=0,ie=D;ie;ie=pi(ie))z++;for(;0<V-z;)ge=pi(ge),V--;for(;0<z-V;)D=pi(D),z--;for(;V--;){if(ge===D||D!==null&&ge===D.alternate)break t;ge=pi(ge),D=pi(D)}ge=null}else ge=null;le!==null&&Km(te,Q,le,ge,!1),fe!==null&&nt!==null&&Km(te,nt,fe,ge,!0)}}e:{if(Q=F?mi(F):window,le=Q.nodeName&&Q.nodeName.toLowerCase(),le==="select"||le==="input"&&Q.type==="file")var pe=KP;else if(Pm(Q))if(Tm)pe=QP;else{pe=XP;var be=YP}else(le=Q.nodeName)&&le.toLowerCase()==="input"&&(Q.type==="checkbox"||Q.type==="radio")&&(pe=qP);if(pe&&(pe=pe(o,F))){Im(te,pe,l,J);break e}be&&be(o,Q,F),o==="focusout"&&(be=Q._wrapperState)&&be.controlled&&Q.type==="number"&&oi(Q,"number",Q.value)}switch(be=F?mi(F):window,o){case"focusin":(Pm(be)||be.contentEditable==="true")&&(fi=be,Dd=F,Us=null);break;case"focusout":Us=Dd=fi=null;break;case"mousedown":zd=!0;break;case"contextmenu":case"mouseup":case"dragend":zd=!1,$m(te,l,J);break;case"selectionchange":if(eI)break;case"keydown":case"keyup":$m(te,l,J)}var xe;if(Vd)e:{switch(o){case"compositionstart":var Se="onCompositionStart";break e;case"compositionend":Se="onCompositionEnd";break e;case"compositionupdate":Se="onCompositionUpdate";break e}Se=void 0}else di?Em(o,l)&&(Se="onCompositionEnd"):o==="keydown"&&l.keyCode===229&&(Se="onCompositionStart");Se&&(wm&&l.locale!=="ko"&&(di||Se!=="onCompositionStart"?Se==="onCompositionEnd"&&di&&(xe=mm()):(Br=J,Id="value"in Br?Br.value:Br.textContent,di=!0)),be=Bl(F,Se),0<be.length&&(Se=new bm(Se,o,null,l,J),te.push({event:Se,listeners:be}),xe?Se.data=xe:(xe=km(l),xe!==null&&(Se.data=xe)))),(xe=WP?HP(o,l):jP(o,l))&&(F=Bl(F,"onBeforeInput"),0<F.length&&(J=new bm("onBeforeInput","beforeinput",null,l,J),te.push({event:J,listeners:F}),J.data=xe))}Gm(te,s)})}function Xs(o,s,l){return{instance:o,listener:s,currentTarget:l}}function Bl(o,s){for(var l=s+"Capture",d=[];o!==null;){var g=o,m=g.stateNode;g.tag===5&&m!==null&&(g=m,m=Rs(o,l),m!=null&&d.unshift(Xs(o,m,g)),m=Rs(o,s),m!=null&&d.push(Xs(o,m,g))),o=o.return}return d}function pi(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5);return o||null}function Km(o,s,l,d,g){for(var m=s._reactName,C=[];l!==null&&l!==d;){var I=l,A=I.alternate,F=I.stateNode;if(A!==null&&A===d)break;I.tag===5&&F!==null&&(I=F,g?(A=Rs(l,m),A!=null&&C.unshift(Xs(l,A,I))):g||(A=Rs(l,m),A!=null&&C.push(Xs(l,A,I)))),l=l.return}C.length!==0&&o.push({event:s,listeners:C})}var oI=/\r\n?/g,iI=/\u0000|\uFFFD/g;function Ym(o){return(typeof o=="string"?o:""+o).replace(oI,`
|
|
6
|
+
`).replace(iI,"")}function Wl(o,s,l){if(s=Ym(s),Ym(o)!==s&&l)throw Error(n(425))}function Hl(){}var jd=null,Gd=null;function Ud(o,s){return o==="textarea"||o==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Kd=typeof setTimeout=="function"?setTimeout:void 0,sI=typeof clearTimeout=="function"?clearTimeout:void 0,Xm=typeof Promise=="function"?Promise:void 0,aI=typeof queueMicrotask=="function"?queueMicrotask:typeof Xm<"u"?function(o){return Xm.resolve(null).then(o).catch(lI)}:Kd;function lI(o){setTimeout(function(){throw o})}function Yd(o,s){var l=s,d=0;do{var g=l.nextSibling;if(o.removeChild(l),g&&g.nodeType===8)if(l=g.data,l==="/$"){if(d===0){o.removeChild(g),Fs(s);return}d--}else l!=="$"&&l!=="$?"&&l!=="$!"||d++;l=g}while(l);Fs(s)}function Hr(o){for(;o!=null;o=o.nextSibling){var s=o.nodeType;if(s===1||s===3)break;if(s===8){if(s=o.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return o}function qm(o){o=o.previousSibling;for(var s=0;o;){if(o.nodeType===8){var l=o.data;if(l==="$"||l==="$!"||l==="$?"){if(s===0)return o;s--}else l==="/$"&&s++}o=o.previousSibling}return null}var hi=Math.random().toString(36).slice(2),Xn="__reactFiber$"+hi,qs="__reactProps$"+hi,hr="__reactContainer$"+hi,Xd="__reactEvents$"+hi,cI="__reactListeners$"+hi,uI="__reactHandles$"+hi;function xo(o){var s=o[Xn];if(s)return s;for(var l=o.parentNode;l;){if(s=l[hr]||l[Xn]){if(l=s.alternate,s.child!==null||l!==null&&l.child!==null)for(o=qm(o);o!==null;){if(l=o[Xn])return l;o=qm(o)}return s}o=l,l=o.parentNode}return null}function Qs(o){return o=o[Xn]||o[hr],!o||o.tag!==5&&o.tag!==6&&o.tag!==13&&o.tag!==3?null:o}function mi(o){if(o.tag===5||o.tag===6)return o.stateNode;throw Error(n(33))}function jl(o){return o[qs]||null}var qd=[],vi=-1;function jr(o){return{current:o}}function Ke(o){0>vi||(o.current=qd[vi],qd[vi]=null,vi--)}function We(o,s){vi++,qd[vi]=o.current,o.current=s}var Gr={},$t=jr(Gr),Xt=jr(!1),wo=Gr;function yi(o,s){var l=o.type.contextTypes;if(!l)return Gr;var d=o.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===s)return d.__reactInternalMemoizedMaskedChildContext;var g={},m;for(m in l)g[m]=s[m];return d&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=s,o.__reactInternalMemoizedMaskedChildContext=g),g}function qt(o){return o=o.childContextTypes,o!=null}function Gl(){Ke(Xt),Ke($t)}function Qm(o,s,l){if($t.current!==Gr)throw Error(n(168));We($t,s),We(Xt,l)}function Zm(o,s,l){var d=o.stateNode;if(s=s.childContextTypes,typeof d.getChildContext!="function")return l;d=d.getChildContext();for(var g in d)if(!(g in s))throw Error(n(108,Fe(o)||"Unknown",g));return Z({},l,d)}function Ul(o){return o=(o=o.stateNode)&&o.__reactInternalMemoizedMergedChildContext||Gr,wo=$t.current,We($t,o),We(Xt,Xt.current),!0}function Jm(o,s,l){var d=o.stateNode;if(!d)throw Error(n(169));l?(o=Zm(o,s,wo),d.__reactInternalMemoizedMergedChildContext=o,Ke(Xt),Ke($t),We($t,o)):Ke(Xt),We(Xt,l)}var mr=null,Kl=!1,Qd=!1;function ev(o){mr===null?mr=[o]:mr.push(o)}function dI(o){Kl=!0,ev(o)}function Ur(){if(!Qd&&mr!==null){Qd=!0;var o=0,s=De;try{var l=mr;for(De=1;o<l.length;o++){var d=l[o];do d=d(!0);while(d!==null)}mr=null,Kl=!1}catch(g){throw mr!==null&&(mr=mr.slice(o+1)),nm(bd,Ur),g}finally{De=s,Qd=!1}}return null}var bi=[],xi=0,Yl=null,Xl=0,xn=[],wn=0,Co=null,vr=1,yr="";function So(o,s){bi[xi++]=Xl,bi[xi++]=Yl,Yl=o,Xl=s}function tv(o,s,l){xn[wn++]=vr,xn[wn++]=yr,xn[wn++]=Co,Co=o;var d=vr;o=yr;var g=32-_n(d)-1;d&=~(1<<g),l+=1;var m=32-_n(s)+g;if(30<m){var C=g-g%5;m=(d&(1<<C)-1).toString(32),d>>=C,g-=C,vr=1<<32-_n(s)+g|l<<g|d,yr=m+o}else vr=1<<m|l<<g|d,yr=o}function Zd(o){o.return!==null&&(So(o,1),tv(o,1,0))}function Jd(o){for(;o===Yl;)Yl=bi[--xi],bi[xi]=null,Xl=bi[--xi],bi[xi]=null;for(;o===Co;)Co=xn[--wn],xn[wn]=null,yr=xn[--wn],xn[wn]=null,vr=xn[--wn],xn[wn]=null}var cn=null,un=null,Ye=!1,$n=null;function nv(o,s){var l=kn(5,null,null,0);l.elementType="DELETED",l.stateNode=s,l.return=o,s=o.deletions,s===null?(o.deletions=[l],o.flags|=16):s.push(l)}function rv(o,s){switch(o.tag){case 5:var l=o.type;return s=s.nodeType!==1||l.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(o.stateNode=s,cn=o,un=Hr(s.firstChild),!0):!1;case 6:return s=o.pendingProps===""||s.nodeType!==3?null:s,s!==null?(o.stateNode=s,cn=o,un=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(l=Co!==null?{id:vr,overflow:yr}:null,o.memoizedState={dehydrated:s,treeContext:l,retryLane:1073741824},l=kn(18,null,null,0),l.stateNode=s,l.return=o,o.child=l,cn=o,un=null,!0):!1;default:return!1}}function ef(o){return(o.mode&1)!==0&&(o.flags&128)===0}function tf(o){if(Ye){var s=un;if(s){var l=s;if(!rv(o,s)){if(ef(o))throw Error(n(418));s=Hr(l.nextSibling);var d=cn;s&&rv(o,s)?nv(d,l):(o.flags=o.flags&-4097|2,Ye=!1,cn=o)}}else{if(ef(o))throw Error(n(418));o.flags=o.flags&-4097|2,Ye=!1,cn=o}}}function ov(o){for(o=o.return;o!==null&&o.tag!==5&&o.tag!==3&&o.tag!==13;)o=o.return;cn=o}function ql(o){if(o!==cn)return!1;if(!Ye)return ov(o),Ye=!0,!1;var s;if((s=o.tag!==3)&&!(s=o.tag!==5)&&(s=o.type,s=s!=="head"&&s!=="body"&&!Ud(o.type,o.memoizedProps)),s&&(s=un)){if(ef(o))throw iv(),Error(n(418));for(;s;)nv(o,s),s=Hr(s.nextSibling)}if(ov(o),o.tag===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(n(317));e:{for(o=o.nextSibling,s=0;o;){if(o.nodeType===8){var l=o.data;if(l==="/$"){if(s===0){un=Hr(o.nextSibling);break e}s--}else l!=="$"&&l!=="$!"&&l!=="$?"||s++}o=o.nextSibling}un=null}}else un=cn?Hr(o.stateNode.nextSibling):null;return!0}function iv(){for(var o=un;o;)o=Hr(o.nextSibling)}function wi(){un=cn=null,Ye=!1}function nf(o){$n===null?$n=[o]:$n.push(o)}var fI=S.ReactCurrentBatchConfig;function Zs(o,s,l){if(o=l.ref,o!==null&&typeof o!="function"&&typeof o!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(n(309));var d=l.stateNode}if(!d)throw Error(n(147,o));var g=d,m=""+o;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===m?s.ref:(s=function(C){var I=g.refs;C===null?delete I[m]:I[m]=C},s._stringRef=m,s)}if(typeof o!="string")throw Error(n(284));if(!l._owner)throw Error(n(290,o))}return o}function Ql(o,s){throw o=Object.prototype.toString.call(s),Error(n(31,o==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":o))}function sv(o){var s=o._init;return s(o._payload)}function av(o){function s(D,V){if(o){var z=D.deletions;z===null?(D.deletions=[V],D.flags|=16):z.push(V)}}function l(D,V){if(!o)return null;for(;V!==null;)s(D,V),V=V.sibling;return null}function d(D,V){for(D=new Map;V!==null;)V.key!==null?D.set(V.key,V):D.set(V.index,V),V=V.sibling;return D}function g(D,V){return D=eo(D,V),D.index=0,D.sibling=null,D}function m(D,V,z){return D.index=z,o?(z=D.alternate,z!==null?(z=z.index,z<V?(D.flags|=2,V):z):(D.flags|=2,V)):(D.flags|=1048576,V)}function C(D){return o&&D.alternate===null&&(D.flags|=2),D}function I(D,V,z,ie){return V===null||V.tag!==6?(V=Yf(z,D.mode,ie),V.return=D,V):(V=g(V,z),V.return=D,V)}function A(D,V,z,ie){var pe=z.type;return pe===M?J(D,V,z.props.children,ie,z.key):V!==null&&(V.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===ce&&sv(pe)===V.type)?(ie=g(V,z.props),ie.ref=Zs(D,V,z),ie.return=D,ie):(ie=wc(z.type,z.key,z.props,null,D.mode,ie),ie.ref=Zs(D,V,z),ie.return=D,ie)}function F(D,V,z,ie){return V===null||V.tag!==4||V.stateNode.containerInfo!==z.containerInfo||V.stateNode.implementation!==z.implementation?(V=Xf(z,D.mode,ie),V.return=D,V):(V=g(V,z.children||[]),V.return=D,V)}function J(D,V,z,ie,pe){return V===null||V.tag!==7?(V=No(z,D.mode,ie,pe),V.return=D,V):(V=g(V,z),V.return=D,V)}function te(D,V,z){if(typeof V=="string"&&V!==""||typeof V=="number")return V=Yf(""+V,D.mode,z),V.return=D,V;if(typeof V=="object"&&V!==null){switch(V.$$typeof){case T:return z=wc(V.type,V.key,V.props,null,D.mode,z),z.ref=Zs(D,null,V),z.return=D,z;case L:return V=Xf(V,D.mode,z),V.return=D,V;case ce:var ie=V._init;return te(D,ie(V._payload),z)}if(yo(V)||ee(V))return V=No(V,D.mode,z,null),V.return=D,V;Ql(D,V)}return null}function Q(D,V,z,ie){var pe=V!==null?V.key:null;if(typeof z=="string"&&z!==""||typeof z=="number")return pe!==null?null:I(D,V,""+z,ie);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case T:return z.key===pe?A(D,V,z,ie):null;case L:return z.key===pe?F(D,V,z,ie):null;case ce:return pe=z._init,Q(D,V,pe(z._payload),ie)}if(yo(z)||ee(z))return pe!==null?null:J(D,V,z,ie,null);Ql(D,z)}return null}function le(D,V,z,ie,pe){if(typeof ie=="string"&&ie!==""||typeof ie=="number")return D=D.get(z)||null,I(V,D,""+ie,pe);if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case T:return D=D.get(ie.key===null?z:ie.key)||null,A(V,D,ie,pe);case L:return D=D.get(ie.key===null?z:ie.key)||null,F(V,D,ie,pe);case ce:var be=ie._init;return le(D,V,z,be(ie._payload),pe)}if(yo(ie)||ee(ie))return D=D.get(z)||null,J(V,D,ie,pe,null);Ql(V,ie)}return null}function fe(D,V,z,ie){for(var pe=null,be=null,xe=V,Se=V=0,wt=null;xe!==null&&Se<z.length;Se++){xe.index>Se?(wt=xe,xe=null):wt=xe.sibling;var Ae=Q(D,xe,z[Se],ie);if(Ae===null){xe===null&&(xe=wt);break}o&&xe&&Ae.alternate===null&&s(D,xe),V=m(Ae,V,Se),be===null?pe=Ae:be.sibling=Ae,be=Ae,xe=wt}if(Se===z.length)return l(D,xe),Ye&&So(D,Se),pe;if(xe===null){for(;Se<z.length;Se++)xe=te(D,z[Se],ie),xe!==null&&(V=m(xe,V,Se),be===null?pe=xe:be.sibling=xe,be=xe);return Ye&&So(D,Se),pe}for(xe=d(D,xe);Se<z.length;Se++)wt=le(xe,D,Se,z[Se],ie),wt!==null&&(o&&wt.alternate!==null&&xe.delete(wt.key===null?Se:wt.key),V=m(wt,V,Se),be===null?pe=wt:be.sibling=wt,be=wt);return o&&xe.forEach(function(to){return s(D,to)}),Ye&&So(D,Se),pe}function ge(D,V,z,ie){var pe=ee(z);if(typeof pe!="function")throw Error(n(150));if(z=pe.call(z),z==null)throw Error(n(151));for(var be=pe=null,xe=V,Se=V=0,wt=null,Ae=z.next();xe!==null&&!Ae.done;Se++,Ae=z.next()){xe.index>Se?(wt=xe,xe=null):wt=xe.sibling;var to=Q(D,xe,Ae.value,ie);if(to===null){xe===null&&(xe=wt);break}o&&xe&&to.alternate===null&&s(D,xe),V=m(to,V,Se),be===null?pe=to:be.sibling=to,be=to,xe=wt}if(Ae.done)return l(D,xe),Ye&&So(D,Se),pe;if(xe===null){for(;!Ae.done;Se++,Ae=z.next())Ae=te(D,Ae.value,ie),Ae!==null&&(V=m(Ae,V,Se),be===null?pe=Ae:be.sibling=Ae,be=Ae);return Ye&&So(D,Se),pe}for(xe=d(D,xe);!Ae.done;Se++,Ae=z.next())Ae=le(xe,D,Se,Ae.value,ie),Ae!==null&&(o&&Ae.alternate!==null&&xe.delete(Ae.key===null?Se:Ae.key),V=m(Ae,V,Se),be===null?pe=Ae:be.sibling=Ae,be=Ae);return o&&xe.forEach(function(GI){return s(D,GI)}),Ye&&So(D,Se),pe}function nt(D,V,z,ie){if(typeof z=="object"&&z!==null&&z.type===M&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case T:e:{for(var pe=z.key,be=V;be!==null;){if(be.key===pe){if(pe=z.type,pe===M){if(be.tag===7){l(D,be.sibling),V=g(be,z.props.children),V.return=D,D=V;break e}}else if(be.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===ce&&sv(pe)===be.type){l(D,be.sibling),V=g(be,z.props),V.ref=Zs(D,be,z),V.return=D,D=V;break e}l(D,be);break}else s(D,be);be=be.sibling}z.type===M?(V=No(z.props.children,D.mode,ie,z.key),V.return=D,D=V):(ie=wc(z.type,z.key,z.props,null,D.mode,ie),ie.ref=Zs(D,V,z),ie.return=D,D=ie)}return C(D);case L:e:{for(be=z.key;V!==null;){if(V.key===be)if(V.tag===4&&V.stateNode.containerInfo===z.containerInfo&&V.stateNode.implementation===z.implementation){l(D,V.sibling),V=g(V,z.children||[]),V.return=D,D=V;break e}else{l(D,V);break}else s(D,V);V=V.sibling}V=Xf(z,D.mode,ie),V.return=D,D=V}return C(D);case ce:return be=z._init,nt(D,V,be(z._payload),ie)}if(yo(z))return fe(D,V,z,ie);if(ee(z))return ge(D,V,z,ie);Ql(D,z)}return typeof z=="string"&&z!==""||typeof z=="number"?(z=""+z,V!==null&&V.tag===6?(l(D,V.sibling),V=g(V,z),V.return=D,D=V):(l(D,V),V=Yf(z,D.mode,ie),V.return=D,D=V),C(D)):l(D,V)}return nt}var Ci=av(!0),lv=av(!1),Zl=jr(null),Jl=null,Si=null,rf=null;function of(){rf=Si=Jl=null}function sf(o){var s=Zl.current;Ke(Zl),o._currentValue=s}function af(o,s,l){for(;o!==null;){var d=o.alternate;if((o.childLanes&s)!==s?(o.childLanes|=s,d!==null&&(d.childLanes|=s)):d!==null&&(d.childLanes&s)!==s&&(d.childLanes|=s),o===l)break;o=o.return}}function Ei(o,s){Jl=o,rf=Si=null,o=o.dependencies,o!==null&&o.firstContext!==null&&((o.lanes&s)!==0&&(Qt=!0),o.firstContext=null)}function Cn(o){var s=o._currentValue;if(rf!==o)if(o={context:o,memoizedValue:s,next:null},Si===null){if(Jl===null)throw Error(n(308));Si=o,Jl.dependencies={lanes:0,firstContext:o}}else Si=Si.next=o;return s}var Eo=null;function lf(o){Eo===null?Eo=[o]:Eo.push(o)}function cv(o,s,l,d){var g=s.interleaved;return g===null?(l.next=l,lf(s)):(l.next=g.next,g.next=l),s.interleaved=l,br(o,d)}function br(o,s){o.lanes|=s;var l=o.alternate;for(l!==null&&(l.lanes|=s),l=o,o=o.return;o!==null;)o.childLanes|=s,l=o.alternate,l!==null&&(l.childLanes|=s),l=o,o=o.return;return l.tag===3?l.stateNode:null}var Kr=!1;function cf(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function uv(o,s){o=o.updateQueue,s.updateQueue===o&&(s.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,effects:o.effects})}function xr(o,s){return{eventTime:o,lane:s,tag:0,payload:null,callback:null,next:null}}function Yr(o,s,l){var d=o.updateQueue;if(d===null)return null;if(d=d.shared,(Ne&2)!==0){var g=d.pending;return g===null?s.next=s:(s.next=g.next,g.next=s),d.pending=s,br(o,l)}return g=d.interleaved,g===null?(s.next=s,lf(d)):(s.next=g.next,g.next=s),d.interleaved=s,br(o,l)}function ec(o,s,l){if(s=s.updateQueue,s!==null&&(s=s.shared,(l&4194240)!==0)){var d=s.lanes;d&=o.pendingLanes,l|=d,s.lanes=l,Cd(o,l)}}function dv(o,s){var l=o.updateQueue,d=o.alternate;if(d!==null&&(d=d.updateQueue,l===d)){var g=null,m=null;if(l=l.firstBaseUpdate,l!==null){do{var C={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};m===null?g=m=C:m=m.next=C,l=l.next}while(l!==null);m===null?g=m=s:m=m.next=s}else g=m=s;l={baseState:d.baseState,firstBaseUpdate:g,lastBaseUpdate:m,shared:d.shared,effects:d.effects},o.updateQueue=l;return}o=l.lastBaseUpdate,o===null?l.firstBaseUpdate=s:o.next=s,l.lastBaseUpdate=s}function tc(o,s,l,d){var g=o.updateQueue;Kr=!1;var m=g.firstBaseUpdate,C=g.lastBaseUpdate,I=g.shared.pending;if(I!==null){g.shared.pending=null;var A=I,F=A.next;A.next=null,C===null?m=F:C.next=F,C=A;var J=o.alternate;J!==null&&(J=J.updateQueue,I=J.lastBaseUpdate,I!==C&&(I===null?J.firstBaseUpdate=F:I.next=F,J.lastBaseUpdate=A))}if(m!==null){var te=g.baseState;C=0,J=F=A=null,I=m;do{var Q=I.lane,le=I.eventTime;if((d&Q)===Q){J!==null&&(J=J.next={eventTime:le,lane:0,tag:I.tag,payload:I.payload,callback:I.callback,next:null});e:{var fe=o,ge=I;switch(Q=s,le=l,ge.tag){case 1:if(fe=ge.payload,typeof fe=="function"){te=fe.call(le,te,Q);break e}te=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=ge.payload,Q=typeof fe=="function"?fe.call(le,te,Q):fe,Q==null)break e;te=Z({},te,Q);break e;case 2:Kr=!0}}I.callback!==null&&I.lane!==0&&(o.flags|=64,Q=g.effects,Q===null?g.effects=[I]:Q.push(I))}else le={eventTime:le,lane:Q,tag:I.tag,payload:I.payload,callback:I.callback,next:null},J===null?(F=J=le,A=te):J=J.next=le,C|=Q;if(I=I.next,I===null){if(I=g.shared.pending,I===null)break;Q=I,I=Q.next,Q.next=null,g.lastBaseUpdate=Q,g.shared.pending=null}}while(!0);if(J===null&&(A=te),g.baseState=A,g.firstBaseUpdate=F,g.lastBaseUpdate=J,s=g.shared.interleaved,s!==null){g=s;do C|=g.lane,g=g.next;while(g!==s)}else m===null&&(g.shared.lanes=0);Io|=C,o.lanes=C,o.memoizedState=te}}function fv(o,s,l){if(o=s.effects,s.effects=null,o!==null)for(s=0;s<o.length;s++){var d=o[s],g=d.callback;if(g!==null){if(d.callback=null,d=l,typeof g!="function")throw Error(n(191,g));g.call(d)}}}var Js={},qn=jr(Js),ea=jr(Js),ta=jr(Js);function ko(o){if(o===Js)throw Error(n(174));return o}function uf(o,s){switch(We(ta,s),We(ea,o),We(qn,Js),o=s.nodeType,o){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:ud(null,"");break;default:o=o===8?s.parentNode:s,s=o.namespaceURI||null,o=o.tagName,s=ud(s,o)}Ke(qn),We(qn,s)}function ki(){Ke(qn),Ke(ea),Ke(ta)}function gv(o){ko(ta.current);var s=ko(qn.current),l=ud(s,o.type);s!==l&&(We(ea,o),We(qn,l))}function df(o){ea.current===o&&(Ke(qn),Ke(ea))}var qe=jr(0);function nc(o){for(var s=o;s!==null;){if(s.tag===13){var l=s.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var ff=[];function gf(){for(var o=0;o<ff.length;o++)ff[o]._workInProgressVersionPrimary=null;ff.length=0}var rc=S.ReactCurrentDispatcher,pf=S.ReactCurrentBatchConfig,Po=0,Qe=null,gt=null,bt=null,oc=!1,na=!1,ra=0,gI=0;function Dt(){throw Error(n(321))}function hf(o,s){if(s===null)return!1;for(var l=0;l<s.length&&l<o.length;l++)if(!Ln(o[l],s[l]))return!1;return!0}function mf(o,s,l,d,g,m){if(Po=m,Qe=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,rc.current=o===null||o.memoizedState===null?vI:yI,o=l(d,g),na){m=0;do{if(na=!1,ra=0,25<=m)throw Error(n(301));m+=1,bt=gt=null,s.updateQueue=null,rc.current=bI,o=l(d,g)}while(na)}if(rc.current=ac,s=gt!==null&>.next!==null,Po=0,bt=gt=Qe=null,oc=!1,s)throw Error(n(300));return o}function vf(){var o=ra!==0;return ra=0,o}function Qn(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return bt===null?Qe.memoizedState=bt=o:bt=bt.next=o,bt}function Sn(){if(gt===null){var o=Qe.alternate;o=o!==null?o.memoizedState:null}else o=gt.next;var s=bt===null?Qe.memoizedState:bt.next;if(s!==null)bt=s,gt=o;else{if(o===null)throw Error(n(310));gt=o,o={memoizedState:gt.memoizedState,baseState:gt.baseState,baseQueue:gt.baseQueue,queue:gt.queue,next:null},bt===null?Qe.memoizedState=bt=o:bt=bt.next=o}return bt}function oa(o,s){return typeof s=="function"?s(o):s}function yf(o){var s=Sn(),l=s.queue;if(l===null)throw Error(n(311));l.lastRenderedReducer=o;var d=gt,g=d.baseQueue,m=l.pending;if(m!==null){if(g!==null){var C=g.next;g.next=m.next,m.next=C}d.baseQueue=g=m,l.pending=null}if(g!==null){m=g.next,d=d.baseState;var I=C=null,A=null,F=m;do{var J=F.lane;if((Po&J)===J)A!==null&&(A=A.next={lane:0,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null}),d=F.hasEagerState?F.eagerState:o(d,F.action);else{var te={lane:J,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null};A===null?(I=A=te,C=d):A=A.next=te,Qe.lanes|=J,Io|=J}F=F.next}while(F!==null&&F!==m);A===null?C=d:A.next=I,Ln(d,s.memoizedState)||(Qt=!0),s.memoizedState=d,s.baseState=C,s.baseQueue=A,l.lastRenderedState=d}if(o=l.interleaved,o!==null){g=o;do m=g.lane,Qe.lanes|=m,Io|=m,g=g.next;while(g!==o)}else g===null&&(l.lanes=0);return[s.memoizedState,l.dispatch]}function bf(o){var s=Sn(),l=s.queue;if(l===null)throw Error(n(311));l.lastRenderedReducer=o;var d=l.dispatch,g=l.pending,m=s.memoizedState;if(g!==null){l.pending=null;var C=g=g.next;do m=o(m,C.action),C=C.next;while(C!==g);Ln(m,s.memoizedState)||(Qt=!0),s.memoizedState=m,s.baseQueue===null&&(s.baseState=m),l.lastRenderedState=m}return[m,d]}function pv(){}function hv(o,s){var l=Qe,d=Sn(),g=s(),m=!Ln(d.memoizedState,g);if(m&&(d.memoizedState=g,Qt=!0),d=d.queue,xf(yv.bind(null,l,d,o),[o]),d.getSnapshot!==s||m||bt!==null&&bt.memoizedState.tag&1){if(l.flags|=2048,ia(9,vv.bind(null,l,d,g,s),void 0,null),xt===null)throw Error(n(349));(Po&30)!==0||mv(l,s,g)}return g}function mv(o,s,l){o.flags|=16384,o={getSnapshot:s,value:l},s=Qe.updateQueue,s===null?(s={lastEffect:null,stores:null},Qe.updateQueue=s,s.stores=[o]):(l=s.stores,l===null?s.stores=[o]:l.push(o))}function vv(o,s,l,d){s.value=l,s.getSnapshot=d,bv(s)&&xv(o)}function yv(o,s,l){return l(function(){bv(s)&&xv(o)})}function bv(o){var s=o.getSnapshot;o=o.value;try{var l=s();return!Ln(o,l)}catch{return!0}}function xv(o){var s=br(o,1);s!==null&&Mn(s,o,1,-1)}function wv(o){var s=Qn();return typeof o=="function"&&(o=o()),s.memoizedState=s.baseState=o,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:oa,lastRenderedState:o},s.queue=o,o=o.dispatch=mI.bind(null,Qe,o),[s.memoizedState,o]}function ia(o,s,l,d){return o={tag:o,create:s,destroy:l,deps:d,next:null},s=Qe.updateQueue,s===null?(s={lastEffect:null,stores:null},Qe.updateQueue=s,s.lastEffect=o.next=o):(l=s.lastEffect,l===null?s.lastEffect=o.next=o:(d=l.next,l.next=o,o.next=d,s.lastEffect=o)),o}function Cv(){return Sn().memoizedState}function ic(o,s,l,d){var g=Qn();Qe.flags|=o,g.memoizedState=ia(1|s,l,void 0,d===void 0?null:d)}function sc(o,s,l,d){var g=Sn();d=d===void 0?null:d;var m=void 0;if(gt!==null){var C=gt.memoizedState;if(m=C.destroy,d!==null&&hf(d,C.deps)){g.memoizedState=ia(s,l,m,d);return}}Qe.flags|=o,g.memoizedState=ia(1|s,l,m,d)}function Sv(o,s){return ic(8390656,8,o,s)}function xf(o,s){return sc(2048,8,o,s)}function Ev(o,s){return sc(4,2,o,s)}function kv(o,s){return sc(4,4,o,s)}function Pv(o,s){if(typeof s=="function")return o=o(),s(o),function(){s(null)};if(s!=null)return o=o(),s.current=o,function(){s.current=null}}function Iv(o,s,l){return l=l!=null?l.concat([o]):null,sc(4,4,Pv.bind(null,s,o),l)}function wf(){}function Tv(o,s){var l=Sn();s=s===void 0?null:s;var d=l.memoizedState;return d!==null&&s!==null&&hf(s,d[1])?d[0]:(l.memoizedState=[o,s],o)}function Ov(o,s){var l=Sn();s=s===void 0?null:s;var d=l.memoizedState;return d!==null&&s!==null&&hf(s,d[1])?d[0]:(o=o(),l.memoizedState=[o,s],o)}function Rv(o,s,l){return(Po&21)===0?(o.baseState&&(o.baseState=!1,Qt=!0),o.memoizedState=l):(Ln(l,s)||(l=sm(),Qe.lanes|=l,Io|=l,o.baseState=!0),s)}function pI(o,s){var l=De;De=l!==0&&4>l?l:4,o(!0);var d=pf.transition;pf.transition={};try{o(!1),s()}finally{De=l,pf.transition=d}}function Nv(){return Sn().memoizedState}function hI(o,s,l){var d=Zr(o);if(l={lane:d,action:l,hasEagerState:!1,eagerState:null,next:null},Av(o))Vv(s,l);else if(l=cv(o,s,l,d),l!==null){var g=Gt();Mn(l,o,d,g),_v(l,s,d)}}function mI(o,s,l){var d=Zr(o),g={lane:d,action:l,hasEagerState:!1,eagerState:null,next:null};if(Av(o))Vv(s,g);else{var m=o.alternate;if(o.lanes===0&&(m===null||m.lanes===0)&&(m=s.lastRenderedReducer,m!==null))try{var C=s.lastRenderedState,I=m(C,l);if(g.hasEagerState=!0,g.eagerState=I,Ln(I,C)){var A=s.interleaved;A===null?(g.next=g,lf(s)):(g.next=A.next,A.next=g),s.interleaved=g;return}}catch{}finally{}l=cv(o,s,g,d),l!==null&&(g=Gt(),Mn(l,o,d,g),_v(l,s,d))}}function Av(o){var s=o.alternate;return o===Qe||s!==null&&s===Qe}function Vv(o,s){na=oc=!0;var l=o.pending;l===null?s.next=s:(s.next=l.next,l.next=s),o.pending=s}function _v(o,s,l){if((l&4194240)!==0){var d=s.lanes;d&=o.pendingLanes,l|=d,s.lanes=l,Cd(o,l)}}var ac={readContext:Cn,useCallback:Dt,useContext:Dt,useEffect:Dt,useImperativeHandle:Dt,useInsertionEffect:Dt,useLayoutEffect:Dt,useMemo:Dt,useReducer:Dt,useRef:Dt,useState:Dt,useDebugValue:Dt,useDeferredValue:Dt,useTransition:Dt,useMutableSource:Dt,useSyncExternalStore:Dt,useId:Dt,unstable_isNewReconciler:!1},vI={readContext:Cn,useCallback:function(o,s){return Qn().memoizedState=[o,s===void 0?null:s],o},useContext:Cn,useEffect:Sv,useImperativeHandle:function(o,s,l){return l=l!=null?l.concat([o]):null,ic(4194308,4,Pv.bind(null,s,o),l)},useLayoutEffect:function(o,s){return ic(4194308,4,o,s)},useInsertionEffect:function(o,s){return ic(4,2,o,s)},useMemo:function(o,s){var l=Qn();return s=s===void 0?null:s,o=o(),l.memoizedState=[o,s],o},useReducer:function(o,s,l){var d=Qn();return s=l!==void 0?l(s):s,d.memoizedState=d.baseState=s,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:s},d.queue=o,o=o.dispatch=hI.bind(null,Qe,o),[d.memoizedState,o]},useRef:function(o){var s=Qn();return o={current:o},s.memoizedState=o},useState:wv,useDebugValue:wf,useDeferredValue:function(o){return Qn().memoizedState=o},useTransition:function(){var o=wv(!1),s=o[0];return o=pI.bind(null,o[1]),Qn().memoizedState=o,[s,o]},useMutableSource:function(){},useSyncExternalStore:function(o,s,l){var d=Qe,g=Qn();if(Ye){if(l===void 0)throw Error(n(407));l=l()}else{if(l=s(),xt===null)throw Error(n(349));(Po&30)!==0||mv(d,s,l)}g.memoizedState=l;var m={value:l,getSnapshot:s};return g.queue=m,Sv(yv.bind(null,d,m,o),[o]),d.flags|=2048,ia(9,vv.bind(null,d,m,l,s),void 0,null),l},useId:function(){var o=Qn(),s=xt.identifierPrefix;if(Ye){var l=yr,d=vr;l=(d&~(1<<32-_n(d)-1)).toString(32)+l,s=":"+s+"R"+l,l=ra++,0<l&&(s+="H"+l.toString(32)),s+=":"}else l=gI++,s=":"+s+"r"+l.toString(32)+":";return o.memoizedState=s},unstable_isNewReconciler:!1},yI={readContext:Cn,useCallback:Tv,useContext:Cn,useEffect:xf,useImperativeHandle:Iv,useInsertionEffect:Ev,useLayoutEffect:kv,useMemo:Ov,useReducer:yf,useRef:Cv,useState:function(){return yf(oa)},useDebugValue:wf,useDeferredValue:function(o){var s=Sn();return Rv(s,gt.memoizedState,o)},useTransition:function(){var o=yf(oa)[0],s=Sn().memoizedState;return[o,s]},useMutableSource:pv,useSyncExternalStore:hv,useId:Nv,unstable_isNewReconciler:!1},bI={readContext:Cn,useCallback:Tv,useContext:Cn,useEffect:xf,useImperativeHandle:Iv,useInsertionEffect:Ev,useLayoutEffect:kv,useMemo:Ov,useReducer:bf,useRef:Cv,useState:function(){return bf(oa)},useDebugValue:wf,useDeferredValue:function(o){var s=Sn();return gt===null?s.memoizedState=o:Rv(s,gt.memoizedState,o)},useTransition:function(){var o=bf(oa)[0],s=Sn().memoizedState;return[o,s]},useMutableSource:pv,useSyncExternalStore:hv,useId:Nv,unstable_isNewReconciler:!1};function Dn(o,s){if(o&&o.defaultProps){s=Z({},s),o=o.defaultProps;for(var l in o)s[l]===void 0&&(s[l]=o[l]);return s}return s}function Cf(o,s,l,d){s=o.memoizedState,l=l(d,s),l=l==null?s:Z({},s,l),o.memoizedState=l,o.lanes===0&&(o.updateQueue.baseState=l)}var lc={isMounted:function(o){return(o=o._reactInternals)?bo(o)===o:!1},enqueueSetState:function(o,s,l){o=o._reactInternals;var d=Gt(),g=Zr(o),m=xr(d,g);m.payload=s,l!=null&&(m.callback=l),s=Yr(o,m,g),s!==null&&(Mn(s,o,g,d),ec(s,o,g))},enqueueReplaceState:function(o,s,l){o=o._reactInternals;var d=Gt(),g=Zr(o),m=xr(d,g);m.tag=1,m.payload=s,l!=null&&(m.callback=l),s=Yr(o,m,g),s!==null&&(Mn(s,o,g,d),ec(s,o,g))},enqueueForceUpdate:function(o,s){o=o._reactInternals;var l=Gt(),d=Zr(o),g=xr(l,d);g.tag=2,s!=null&&(g.callback=s),s=Yr(o,g,d),s!==null&&(Mn(s,o,d,l),ec(s,o,d))}};function Lv(o,s,l,d,g,m,C){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(d,m,C):s.prototype&&s.prototype.isPureReactComponent?!Gs(l,d)||!Gs(g,m):!0}function $v(o,s,l){var d=!1,g=Gr,m=s.contextType;return typeof m=="object"&&m!==null?m=Cn(m):(g=qt(s)?wo:$t.current,d=s.contextTypes,m=(d=d!=null)?yi(o,g):Gr),s=new s(l,m),o.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=lc,o.stateNode=s,s._reactInternals=o,d&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=g,o.__reactInternalMemoizedMaskedChildContext=m),s}function Dv(o,s,l,d){o=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(l,d),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(l,d),s.state!==o&&lc.enqueueReplaceState(s,s.state,null)}function Sf(o,s,l,d){var g=o.stateNode;g.props=l,g.state=o.memoizedState,g.refs={},cf(o);var m=s.contextType;typeof m=="object"&&m!==null?g.context=Cn(m):(m=qt(s)?wo:$t.current,g.context=yi(o,m)),g.state=o.memoizedState,m=s.getDerivedStateFromProps,typeof m=="function"&&(Cf(o,s,m,l),g.state=o.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(s=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),s!==g.state&&lc.enqueueReplaceState(g,g.state,null),tc(o,l,g,d),g.state=o.memoizedState),typeof g.componentDidMount=="function"&&(o.flags|=4194308)}function Pi(o,s){try{var l="",d=s;do l+=ke(d),d=d.return;while(d);var g=l}catch(m){g=`
|
|
7
|
+
Error generating stack: `+m.message+`
|
|
8
|
+
`+m.stack}return{value:o,source:s,stack:g,digest:null}}function Ef(o,s,l){return{value:o,source:null,stack:l??null,digest:s??null}}function kf(o,s){try{console.error(s.value)}catch(l){setTimeout(function(){throw l})}}var xI=typeof WeakMap=="function"?WeakMap:Map;function zv(o,s,l){l=xr(-1,l),l.tag=3,l.payload={element:null};var d=s.value;return l.callback=function(){hc||(hc=!0,Mf=d),kf(o,s)},l}function Fv(o,s,l){l=xr(-1,l),l.tag=3;var d=o.type.getDerivedStateFromError;if(typeof d=="function"){var g=s.value;l.payload=function(){return d(g)},l.callback=function(){kf(o,s)}}var m=o.stateNode;return m!==null&&typeof m.componentDidCatch=="function"&&(l.callback=function(){kf(o,s),typeof d!="function"&&(qr===null?qr=new Set([this]):qr.add(this));var C=s.stack;this.componentDidCatch(s.value,{componentStack:C!==null?C:""})}),l}function Mv(o,s,l){var d=o.pingCache;if(d===null){d=o.pingCache=new xI;var g=new Set;d.set(s,g)}else g=d.get(s),g===void 0&&(g=new Set,d.set(s,g));g.has(l)||(g.add(l),o=_I.bind(null,o,s,l),s.then(o,o))}function Bv(o){do{var s;if((s=o.tag===13)&&(s=o.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return o;o=o.return}while(o!==null);return null}function Wv(o,s,l,d,g){return(o.mode&1)===0?(o===s?o.flags|=65536:(o.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(s=xr(-1,1),s.tag=2,Yr(l,s,1))),l.lanes|=1),o):(o.flags|=65536,o.lanes=g,o)}var wI=S.ReactCurrentOwner,Qt=!1;function jt(o,s,l,d){s.child=o===null?lv(s,null,l,d):Ci(s,o.child,l,d)}function Hv(o,s,l,d,g){l=l.render;var m=s.ref;return Ei(s,g),d=mf(o,s,l,d,m,g),l=vf(),o!==null&&!Qt?(s.updateQueue=o.updateQueue,s.flags&=-2053,o.lanes&=~g,wr(o,s,g)):(Ye&&l&&Zd(s),s.flags|=1,jt(o,s,d,g),s.child)}function jv(o,s,l,d,g){if(o===null){var m=l.type;return typeof m=="function"&&!Kf(m)&&m.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(s.tag=15,s.type=m,Gv(o,s,m,d,g)):(o=wc(l.type,null,d,s,s.mode,g),o.ref=s.ref,o.return=s,s.child=o)}if(m=o.child,(o.lanes&g)===0){var C=m.memoizedProps;if(l=l.compare,l=l!==null?l:Gs,l(C,d)&&o.ref===s.ref)return wr(o,s,g)}return s.flags|=1,o=eo(m,d),o.ref=s.ref,o.return=s,s.child=o}function Gv(o,s,l,d,g){if(o!==null){var m=o.memoizedProps;if(Gs(m,d)&&o.ref===s.ref)if(Qt=!1,s.pendingProps=d=m,(o.lanes&g)!==0)(o.flags&131072)!==0&&(Qt=!0);else return s.lanes=o.lanes,wr(o,s,g)}return Pf(o,s,l,d,g)}function Uv(o,s,l){var d=s.pendingProps,g=d.children,m=o!==null?o.memoizedState:null;if(d.mode==="hidden")if((s.mode&1)===0)s.memoizedState={baseLanes:0,cachePool:null,transitions:null},We(Ti,dn),dn|=l;else{if((l&1073741824)===0)return o=m!==null?m.baseLanes|l:l,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:o,cachePool:null,transitions:null},s.updateQueue=null,We(Ti,dn),dn|=o,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},d=m!==null?m.baseLanes:l,We(Ti,dn),dn|=d}else m!==null?(d=m.baseLanes|l,s.memoizedState=null):d=l,We(Ti,dn),dn|=d;return jt(o,s,g,l),s.child}function Kv(o,s){var l=s.ref;(o===null&&l!==null||o!==null&&o.ref!==l)&&(s.flags|=512,s.flags|=2097152)}function Pf(o,s,l,d,g){var m=qt(l)?wo:$t.current;return m=yi(s,m),Ei(s,g),l=mf(o,s,l,d,m,g),d=vf(),o!==null&&!Qt?(s.updateQueue=o.updateQueue,s.flags&=-2053,o.lanes&=~g,wr(o,s,g)):(Ye&&d&&Zd(s),s.flags|=1,jt(o,s,l,g),s.child)}function Yv(o,s,l,d,g){if(qt(l)){var m=!0;Ul(s)}else m=!1;if(Ei(s,g),s.stateNode===null)uc(o,s),$v(s,l,d),Sf(s,l,d,g),d=!0;else if(o===null){var C=s.stateNode,I=s.memoizedProps;C.props=I;var A=C.context,F=l.contextType;typeof F=="object"&&F!==null?F=Cn(F):(F=qt(l)?wo:$t.current,F=yi(s,F));var J=l.getDerivedStateFromProps,te=typeof J=="function"||typeof C.getSnapshotBeforeUpdate=="function";te||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(I!==d||A!==F)&&Dv(s,C,d,F),Kr=!1;var Q=s.memoizedState;C.state=Q,tc(s,d,C,g),A=s.memoizedState,I!==d||Q!==A||Xt.current||Kr?(typeof J=="function"&&(Cf(s,l,J,d),A=s.memoizedState),(I=Kr||Lv(s,l,I,d,Q,A,F))?(te||typeof C.UNSAFE_componentWillMount!="function"&&typeof C.componentWillMount!="function"||(typeof C.componentWillMount=="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount=="function"&&C.UNSAFE_componentWillMount()),typeof C.componentDidMount=="function"&&(s.flags|=4194308)):(typeof C.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=d,s.memoizedState=A),C.props=d,C.state=A,C.context=F,d=I):(typeof C.componentDidMount=="function"&&(s.flags|=4194308),d=!1)}else{C=s.stateNode,uv(o,s),I=s.memoizedProps,F=s.type===s.elementType?I:Dn(s.type,I),C.props=F,te=s.pendingProps,Q=C.context,A=l.contextType,typeof A=="object"&&A!==null?A=Cn(A):(A=qt(l)?wo:$t.current,A=yi(s,A));var le=l.getDerivedStateFromProps;(J=typeof le=="function"||typeof C.getSnapshotBeforeUpdate=="function")||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(I!==te||Q!==A)&&Dv(s,C,d,A),Kr=!1,Q=s.memoizedState,C.state=Q,tc(s,d,C,g);var fe=s.memoizedState;I!==te||Q!==fe||Xt.current||Kr?(typeof le=="function"&&(Cf(s,l,le,d),fe=s.memoizedState),(F=Kr||Lv(s,l,F,d,Q,fe,A)||!1)?(J||typeof C.UNSAFE_componentWillUpdate!="function"&&typeof C.componentWillUpdate!="function"||(typeof C.componentWillUpdate=="function"&&C.componentWillUpdate(d,fe,A),typeof C.UNSAFE_componentWillUpdate=="function"&&C.UNSAFE_componentWillUpdate(d,fe,A)),typeof C.componentDidUpdate=="function"&&(s.flags|=4),typeof C.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof C.componentDidUpdate!="function"||I===o.memoizedProps&&Q===o.memoizedState||(s.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||I===o.memoizedProps&&Q===o.memoizedState||(s.flags|=1024),s.memoizedProps=d,s.memoizedState=fe),C.props=d,C.state=fe,C.context=A,d=F):(typeof C.componentDidUpdate!="function"||I===o.memoizedProps&&Q===o.memoizedState||(s.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||I===o.memoizedProps&&Q===o.memoizedState||(s.flags|=1024),d=!1)}return If(o,s,l,d,m,g)}function If(o,s,l,d,g,m){Kv(o,s);var C=(s.flags&128)!==0;if(!d&&!C)return g&&Jm(s,l,!1),wr(o,s,m);d=s.stateNode,wI.current=s;var I=C&&typeof l.getDerivedStateFromError!="function"?null:d.render();return s.flags|=1,o!==null&&C?(s.child=Ci(s,o.child,null,m),s.child=Ci(s,null,I,m)):jt(o,s,I,m),s.memoizedState=d.state,g&&Jm(s,l,!0),s.child}function Xv(o){var s=o.stateNode;s.pendingContext?Qm(o,s.pendingContext,s.pendingContext!==s.context):s.context&&Qm(o,s.context,!1),uf(o,s.containerInfo)}function qv(o,s,l,d,g){return wi(),nf(g),s.flags|=256,jt(o,s,l,d),s.child}var Tf={dehydrated:null,treeContext:null,retryLane:0};function Of(o){return{baseLanes:o,cachePool:null,transitions:null}}function Qv(o,s,l){var d=s.pendingProps,g=qe.current,m=!1,C=(s.flags&128)!==0,I;if((I=C)||(I=o!==null&&o.memoizedState===null?!1:(g&2)!==0),I?(m=!0,s.flags&=-129):(o===null||o.memoizedState!==null)&&(g|=1),We(qe,g&1),o===null)return tf(s),o=s.memoizedState,o!==null&&(o=o.dehydrated,o!==null)?((s.mode&1)===0?s.lanes=1:o.data==="$!"?s.lanes=8:s.lanes=1073741824,null):(C=d.children,o=d.fallback,m?(d=s.mode,m=s.child,C={mode:"hidden",children:C},(d&1)===0&&m!==null?(m.childLanes=0,m.pendingProps=C):m=Cc(C,d,0,null),o=No(o,d,l,null),m.return=s,o.return=s,m.sibling=o,s.child=m,s.child.memoizedState=Of(l),s.memoizedState=Tf,o):Rf(s,C));if(g=o.memoizedState,g!==null&&(I=g.dehydrated,I!==null))return CI(o,s,C,d,I,g,l);if(m){m=d.fallback,C=s.mode,g=o.child,I=g.sibling;var A={mode:"hidden",children:d.children};return(C&1)===0&&s.child!==g?(d=s.child,d.childLanes=0,d.pendingProps=A,s.deletions=null):(d=eo(g,A),d.subtreeFlags=g.subtreeFlags&14680064),I!==null?m=eo(I,m):(m=No(m,C,l,null),m.flags|=2),m.return=s,d.return=s,d.sibling=m,s.child=d,d=m,m=s.child,C=o.child.memoizedState,C=C===null?Of(l):{baseLanes:C.baseLanes|l,cachePool:null,transitions:C.transitions},m.memoizedState=C,m.childLanes=o.childLanes&~l,s.memoizedState=Tf,d}return m=o.child,o=m.sibling,d=eo(m,{mode:"visible",children:d.children}),(s.mode&1)===0&&(d.lanes=l),d.return=s,d.sibling=null,o!==null&&(l=s.deletions,l===null?(s.deletions=[o],s.flags|=16):l.push(o)),s.child=d,s.memoizedState=null,d}function Rf(o,s){return s=Cc({mode:"visible",children:s},o.mode,0,null),s.return=o,o.child=s}function cc(o,s,l,d){return d!==null&&nf(d),Ci(s,o.child,null,l),o=Rf(s,s.pendingProps.children),o.flags|=2,s.memoizedState=null,o}function CI(o,s,l,d,g,m,C){if(l)return s.flags&256?(s.flags&=-257,d=Ef(Error(n(422))),cc(o,s,C,d)):s.memoizedState!==null?(s.child=o.child,s.flags|=128,null):(m=d.fallback,g=s.mode,d=Cc({mode:"visible",children:d.children},g,0,null),m=No(m,g,C,null),m.flags|=2,d.return=s,m.return=s,d.sibling=m,s.child=d,(s.mode&1)!==0&&Ci(s,o.child,null,C),s.child.memoizedState=Of(C),s.memoizedState=Tf,m);if((s.mode&1)===0)return cc(o,s,C,null);if(g.data==="$!"){if(d=g.nextSibling&&g.nextSibling.dataset,d)var I=d.dgst;return d=I,m=Error(n(419)),d=Ef(m,d,void 0),cc(o,s,C,d)}if(I=(C&o.childLanes)!==0,Qt||I){if(d=xt,d!==null){switch(C&-C){case 4:g=2;break;case 16:g=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:g=32;break;case 536870912:g=268435456;break;default:g=0}g=(g&(d.suspendedLanes|C))!==0?0:g,g!==0&&g!==m.retryLane&&(m.retryLane=g,br(o,g),Mn(d,o,g,-1))}return Uf(),d=Ef(Error(n(421))),cc(o,s,C,d)}return g.data==="$?"?(s.flags|=128,s.child=o.child,s=LI.bind(null,o),g._reactRetry=s,null):(o=m.treeContext,un=Hr(g.nextSibling),cn=s,Ye=!0,$n=null,o!==null&&(xn[wn++]=vr,xn[wn++]=yr,xn[wn++]=Co,vr=o.id,yr=o.overflow,Co=s),s=Rf(s,d.children),s.flags|=4096,s)}function Zv(o,s,l){o.lanes|=s;var d=o.alternate;d!==null&&(d.lanes|=s),af(o.return,s,l)}function Nf(o,s,l,d,g){var m=o.memoizedState;m===null?o.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:d,tail:l,tailMode:g}:(m.isBackwards=s,m.rendering=null,m.renderingStartTime=0,m.last=d,m.tail=l,m.tailMode=g)}function Jv(o,s,l){var d=s.pendingProps,g=d.revealOrder,m=d.tail;if(jt(o,s,d.children,l),d=qe.current,(d&2)!==0)d=d&1|2,s.flags|=128;else{if(o!==null&&(o.flags&128)!==0)e:for(o=s.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&Zv(o,l,s);else if(o.tag===19)Zv(o,l,s);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break e;for(;o.sibling===null;){if(o.return===null||o.return===s)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}d&=1}if(We(qe,d),(s.mode&1)===0)s.memoizedState=null;else switch(g){case"forwards":for(l=s.child,g=null;l!==null;)o=l.alternate,o!==null&&nc(o)===null&&(g=l),l=l.sibling;l=g,l===null?(g=s.child,s.child=null):(g=l.sibling,l.sibling=null),Nf(s,!1,g,l,m);break;case"backwards":for(l=null,g=s.child,s.child=null;g!==null;){if(o=g.alternate,o!==null&&nc(o)===null){s.child=g;break}o=g.sibling,g.sibling=l,l=g,g=o}Nf(s,!0,l,null,m);break;case"together":Nf(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function uc(o,s){(s.mode&1)===0&&o!==null&&(o.alternate=null,s.alternate=null,s.flags|=2)}function wr(o,s,l){if(o!==null&&(s.dependencies=o.dependencies),Io|=s.lanes,(l&s.childLanes)===0)return null;if(o!==null&&s.child!==o.child)throw Error(n(153));if(s.child!==null){for(o=s.child,l=eo(o,o.pendingProps),s.child=l,l.return=s;o.sibling!==null;)o=o.sibling,l=l.sibling=eo(o,o.pendingProps),l.return=s;l.sibling=null}return s.child}function SI(o,s,l){switch(s.tag){case 3:Xv(s),wi();break;case 5:gv(s);break;case 1:qt(s.type)&&Ul(s);break;case 4:uf(s,s.stateNode.containerInfo);break;case 10:var d=s.type._context,g=s.memoizedProps.value;We(Zl,d._currentValue),d._currentValue=g;break;case 13:if(d=s.memoizedState,d!==null)return d.dehydrated!==null?(We(qe,qe.current&1),s.flags|=128,null):(l&s.child.childLanes)!==0?Qv(o,s,l):(We(qe,qe.current&1),o=wr(o,s,l),o!==null?o.sibling:null);We(qe,qe.current&1);break;case 19:if(d=(l&s.childLanes)!==0,(o.flags&128)!==0){if(d)return Jv(o,s,l);s.flags|=128}if(g=s.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),We(qe,qe.current),d)break;return null;case 22:case 23:return s.lanes=0,Uv(o,s,l)}return wr(o,s,l)}var ey,Af,ty,ny;ey=function(o,s){for(var l=s.child;l!==null;){if(l.tag===5||l.tag===6)o.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===s)break;for(;l.sibling===null;){if(l.return===null||l.return===s)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},Af=function(){},ty=function(o,s,l,d){var g=o.memoizedProps;if(g!==d){o=s.stateNode,ko(qn.current);var m=null;switch(l){case"input":g=an(o,g),d=an(o,d),m=[];break;case"select":g=Z({},g,{value:void 0}),d=Z({},d,{value:void 0}),m=[];break;case"textarea":g=ii(o,g),d=ii(o,d),m=[];break;default:typeof g.onClick!="function"&&typeof d.onClick=="function"&&(o.onclick=Hl)}dd(l,d);var C;l=null;for(F in g)if(!d.hasOwnProperty(F)&&g.hasOwnProperty(F)&&g[F]!=null)if(F==="style"){var I=g[F];for(C in I)I.hasOwnProperty(C)&&(l||(l={}),l[C]="")}else F!=="dangerouslySetInnerHTML"&&F!=="children"&&F!=="suppressContentEditableWarning"&&F!=="suppressHydrationWarning"&&F!=="autoFocus"&&(i.hasOwnProperty(F)?m||(m=[]):(m=m||[]).push(F,null));for(F in d){var A=d[F];if(I=g?.[F],d.hasOwnProperty(F)&&A!==I&&(A!=null||I!=null))if(F==="style")if(I){for(C in I)!I.hasOwnProperty(C)||A&&A.hasOwnProperty(C)||(l||(l={}),l[C]="");for(C in A)A.hasOwnProperty(C)&&I[C]!==A[C]&&(l||(l={}),l[C]=A[C])}else l||(m||(m=[]),m.push(F,l)),l=A;else F==="dangerouslySetInnerHTML"?(A=A?A.__html:void 0,I=I?I.__html:void 0,A!=null&&I!==A&&(m=m||[]).push(F,A)):F==="children"?typeof A!="string"&&typeof A!="number"||(m=m||[]).push(F,""+A):F!=="suppressContentEditableWarning"&&F!=="suppressHydrationWarning"&&(i.hasOwnProperty(F)?(A!=null&&F==="onScroll"&&Ue("scroll",o),m||I===A||(m=[])):(m=m||[]).push(F,A))}l&&(m=m||[]).push("style",l);var F=m;(s.updateQueue=F)&&(s.flags|=4)}},ny=function(o,s,l,d){l!==d&&(s.flags|=4)};function sa(o,s){if(!Ye)switch(o.tailMode){case"hidden":s=o.tail;for(var l=null;s!==null;)s.alternate!==null&&(l=s),s=s.sibling;l===null?o.tail=null:l.sibling=null;break;case"collapsed":l=o.tail;for(var d=null;l!==null;)l.alternate!==null&&(d=l),l=l.sibling;d===null?s||o.tail===null?o.tail=null:o.tail.sibling=null:d.sibling=null}}function zt(o){var s=o.alternate!==null&&o.alternate.child===o.child,l=0,d=0;if(s)for(var g=o.child;g!==null;)l|=g.lanes|g.childLanes,d|=g.subtreeFlags&14680064,d|=g.flags&14680064,g.return=o,g=g.sibling;else for(g=o.child;g!==null;)l|=g.lanes|g.childLanes,d|=g.subtreeFlags,d|=g.flags,g.return=o,g=g.sibling;return o.subtreeFlags|=d,o.childLanes=l,s}function EI(o,s,l){var d=s.pendingProps;switch(Jd(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zt(s),null;case 1:return qt(s.type)&&Gl(),zt(s),null;case 3:return d=s.stateNode,ki(),Ke(Xt),Ke($t),gf(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(o===null||o.child===null)&&(ql(s)?s.flags|=4:o===null||o.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,$n!==null&&(Hf($n),$n=null))),Af(o,s),zt(s),null;case 5:df(s);var g=ko(ta.current);if(l=s.type,o!==null&&s.stateNode!=null)ty(o,s,l,d,g),o.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!d){if(s.stateNode===null)throw Error(n(166));return zt(s),null}if(o=ko(qn.current),ql(s)){d=s.stateNode,l=s.type;var m=s.memoizedProps;switch(d[Xn]=s,d[qs]=m,o=(s.mode&1)!==0,l){case"dialog":Ue("cancel",d),Ue("close",d);break;case"iframe":case"object":case"embed":Ue("load",d);break;case"video":case"audio":for(g=0;g<Ks.length;g++)Ue(Ks[g],d);break;case"source":Ue("error",d);break;case"img":case"image":case"link":Ue("error",d),Ue("load",d);break;case"details":Ue("toggle",d);break;case"input":vo(d,m),Ue("invalid",d);break;case"select":d._wrapperState={wasMultiple:!!m.multiple},Ue("invalid",d);break;case"textarea":si(d,m),Ue("invalid",d)}dd(l,m),g=null;for(var C in m)if(m.hasOwnProperty(C)){var I=m[C];C==="children"?typeof I=="string"?d.textContent!==I&&(m.suppressHydrationWarning!==!0&&Wl(d.textContent,I,o),g=["children",I]):typeof I=="number"&&d.textContent!==""+I&&(m.suppressHydrationWarning!==!0&&Wl(d.textContent,I,o),g=["children",""+I]):i.hasOwnProperty(C)&&I!=null&&C==="onScroll"&&Ue("scroll",d)}switch(l){case"input":Oe(d),xl(d,m,!0);break;case"textarea":Oe(d),Bh(d);break;case"select":case"option":break;default:typeof m.onClick=="function"&&(d.onclick=Hl)}d=g,s.updateQueue=d,d!==null&&(s.flags|=4)}else{C=g.nodeType===9?g:g.ownerDocument,o==="http://www.w3.org/1999/xhtml"&&(o=Wh(l)),o==="http://www.w3.org/1999/xhtml"?l==="script"?(o=C.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild)):typeof d.is=="string"?o=C.createElement(l,{is:d.is}):(o=C.createElement(l),l==="select"&&(C=o,d.multiple?C.multiple=!0:d.size&&(C.size=d.size))):o=C.createElementNS(o,l),o[Xn]=s,o[qs]=d,ey(o,s,!1,!1),s.stateNode=o;e:{switch(C=fd(l,d),l){case"dialog":Ue("cancel",o),Ue("close",o),g=d;break;case"iframe":case"object":case"embed":Ue("load",o),g=d;break;case"video":case"audio":for(g=0;g<Ks.length;g++)Ue(Ks[g],o);g=d;break;case"source":Ue("error",o),g=d;break;case"img":case"image":case"link":Ue("error",o),Ue("load",o),g=d;break;case"details":Ue("toggle",o),g=d;break;case"input":vo(o,d),g=an(o,d),Ue("invalid",o);break;case"option":g=d;break;case"select":o._wrapperState={wasMultiple:!!d.multiple},g=Z({},d,{value:void 0}),Ue("invalid",o);break;case"textarea":si(o,d),g=ii(o,d),Ue("invalid",o);break;default:g=d}dd(l,g),I=g;for(m in I)if(I.hasOwnProperty(m)){var A=I[m];m==="style"?Gh(o,A):m==="dangerouslySetInnerHTML"?(A=A?A.__html:void 0,A!=null&&Hh(o,A)):m==="children"?typeof A=="string"?(l!=="textarea"||A!=="")&&Ts(o,A):typeof A=="number"&&Ts(o,""+A):m!=="suppressContentEditableWarning"&&m!=="suppressHydrationWarning"&&m!=="autoFocus"&&(i.hasOwnProperty(m)?A!=null&&m==="onScroll"&&Ue("scroll",o):A!=null&&R(o,m,A,C))}switch(l){case"input":Oe(o),xl(o,d,!1);break;case"textarea":Oe(o),Bh(o);break;case"option":d.value!=null&&o.setAttribute("value",""+X(d.value));break;case"select":o.multiple=!!d.multiple,m=d.value,m!=null?pr(o,!!d.multiple,m,!1):d.defaultValue!=null&&pr(o,!!d.multiple,d.defaultValue,!0);break;default:typeof g.onClick=="function"&&(o.onclick=Hl)}switch(l){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}}d&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return zt(s),null;case 6:if(o&&s.stateNode!=null)ny(o,s,o.memoizedProps,d);else{if(typeof d!="string"&&s.stateNode===null)throw Error(n(166));if(l=ko(ta.current),ko(qn.current),ql(s)){if(d=s.stateNode,l=s.memoizedProps,d[Xn]=s,(m=d.nodeValue!==l)&&(o=cn,o!==null))switch(o.tag){case 3:Wl(d.nodeValue,l,(o.mode&1)!==0);break;case 5:o.memoizedProps.suppressHydrationWarning!==!0&&Wl(d.nodeValue,l,(o.mode&1)!==0)}m&&(s.flags|=4)}else d=(l.nodeType===9?l:l.ownerDocument).createTextNode(d),d[Xn]=s,s.stateNode=d}return zt(s),null;case 13:if(Ke(qe),d=s.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(Ye&&un!==null&&(s.mode&1)!==0&&(s.flags&128)===0)iv(),wi(),s.flags|=98560,m=!1;else if(m=ql(s),d!==null&&d.dehydrated!==null){if(o===null){if(!m)throw Error(n(318));if(m=s.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(n(317));m[Xn]=s}else wi(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;zt(s),m=!1}else $n!==null&&(Hf($n),$n=null),m=!0;if(!m)return s.flags&65536?s:null}return(s.flags&128)!==0?(s.lanes=l,s):(d=d!==null,d!==(o!==null&&o.memoizedState!==null)&&d&&(s.child.flags|=8192,(s.mode&1)!==0&&(o===null||(qe.current&1)!==0?pt===0&&(pt=3):Uf())),s.updateQueue!==null&&(s.flags|=4),zt(s),null);case 4:return ki(),Af(o,s),o===null&&Ys(s.stateNode.containerInfo),zt(s),null;case 10:return sf(s.type._context),zt(s),null;case 17:return qt(s.type)&&Gl(),zt(s),null;case 19:if(Ke(qe),m=s.memoizedState,m===null)return zt(s),null;if(d=(s.flags&128)!==0,C=m.rendering,C===null)if(d)sa(m,!1);else{if(pt!==0||o!==null&&(o.flags&128)!==0)for(o=s.child;o!==null;){if(C=nc(o),C!==null){for(s.flags|=128,sa(m,!1),d=C.updateQueue,d!==null&&(s.updateQueue=d,s.flags|=4),s.subtreeFlags=0,d=l,l=s.child;l!==null;)m=l,o=d,m.flags&=14680066,C=m.alternate,C===null?(m.childLanes=0,m.lanes=o,m.child=null,m.subtreeFlags=0,m.memoizedProps=null,m.memoizedState=null,m.updateQueue=null,m.dependencies=null,m.stateNode=null):(m.childLanes=C.childLanes,m.lanes=C.lanes,m.child=C.child,m.subtreeFlags=0,m.deletions=null,m.memoizedProps=C.memoizedProps,m.memoizedState=C.memoizedState,m.updateQueue=C.updateQueue,m.type=C.type,o=C.dependencies,m.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),l=l.sibling;return We(qe,qe.current&1|2),s.child}o=o.sibling}m.tail!==null&&tt()>Oi&&(s.flags|=128,d=!0,sa(m,!1),s.lanes=4194304)}else{if(!d)if(o=nc(C),o!==null){if(s.flags|=128,d=!0,l=o.updateQueue,l!==null&&(s.updateQueue=l,s.flags|=4),sa(m,!0),m.tail===null&&m.tailMode==="hidden"&&!C.alternate&&!Ye)return zt(s),null}else 2*tt()-m.renderingStartTime>Oi&&l!==1073741824&&(s.flags|=128,d=!0,sa(m,!1),s.lanes=4194304);m.isBackwards?(C.sibling=s.child,s.child=C):(l=m.last,l!==null?l.sibling=C:s.child=C,m.last=C)}return m.tail!==null?(s=m.tail,m.rendering=s,m.tail=s.sibling,m.renderingStartTime=tt(),s.sibling=null,l=qe.current,We(qe,d?l&1|2:l&1),s):(zt(s),null);case 22:case 23:return Gf(),d=s.memoizedState!==null,o!==null&&o.memoizedState!==null!==d&&(s.flags|=8192),d&&(s.mode&1)!==0?(dn&1073741824)!==0&&(zt(s),s.subtreeFlags&6&&(s.flags|=8192)):zt(s),null;case 24:return null;case 25:return null}throw Error(n(156,s.tag))}function kI(o,s){switch(Jd(s),s.tag){case 1:return qt(s.type)&&Gl(),o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 3:return ki(),Ke(Xt),Ke($t),gf(),o=s.flags,(o&65536)!==0&&(o&128)===0?(s.flags=o&-65537|128,s):null;case 5:return df(s),null;case 13:if(Ke(qe),o=s.memoizedState,o!==null&&o.dehydrated!==null){if(s.alternate===null)throw Error(n(340));wi()}return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 19:return Ke(qe),null;case 4:return ki(),null;case 10:return sf(s.type._context),null;case 22:case 23:return Gf(),null;case 24:return null;default:return null}}var dc=!1,Ft=!1,PI=typeof WeakSet=="function"?WeakSet:Set,ue=null;function Ii(o,s){var l=o.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(d){Je(o,s,d)}else l.current=null}function Vf(o,s,l){try{l()}catch(d){Je(o,s,d)}}var ry=!1;function II(o,s){if(jd=Nl,o=Lm(),$d(o)){if("selectionStart"in o)var l={start:o.selectionStart,end:o.selectionEnd};else e:{l=(l=o.ownerDocument)&&l.defaultView||window;var d=l.getSelection&&l.getSelection();if(d&&d.rangeCount!==0){l=d.anchorNode;var g=d.anchorOffset,m=d.focusNode;d=d.focusOffset;try{l.nodeType,m.nodeType}catch{l=null;break e}var C=0,I=-1,A=-1,F=0,J=0,te=o,Q=null;t:for(;;){for(var le;te!==l||g!==0&&te.nodeType!==3||(I=C+g),te!==m||d!==0&&te.nodeType!==3||(A=C+d),te.nodeType===3&&(C+=te.nodeValue.length),(le=te.firstChild)!==null;)Q=te,te=le;for(;;){if(te===o)break t;if(Q===l&&++F===g&&(I=C),Q===m&&++J===d&&(A=C),(le=te.nextSibling)!==null)break;te=Q,Q=te.parentNode}te=le}l=I===-1||A===-1?null:{start:I,end:A}}else l=null}l=l||{start:0,end:0}}else l=null;for(Gd={focusedElem:o,selectionRange:l},Nl=!1,ue=s;ue!==null;)if(s=ue,o=s.child,(s.subtreeFlags&1028)!==0&&o!==null)o.return=s,ue=o;else for(;ue!==null;){s=ue;try{var fe=s.alternate;if((s.flags&1024)!==0)switch(s.tag){case 0:case 11:case 15:break;case 1:if(fe!==null){var ge=fe.memoizedProps,nt=fe.memoizedState,D=s.stateNode,V=D.getSnapshotBeforeUpdate(s.elementType===s.type?ge:Dn(s.type,ge),nt);D.__reactInternalSnapshotBeforeUpdate=V}break;case 3:var z=s.stateNode.containerInfo;z.nodeType===1?z.textContent="":z.nodeType===9&&z.documentElement&&z.removeChild(z.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(ie){Je(s,s.return,ie)}if(o=s.sibling,o!==null){o.return=s.return,ue=o;break}ue=s.return}return fe=ry,ry=!1,fe}function aa(o,s,l){var d=s.updateQueue;if(d=d!==null?d.lastEffect:null,d!==null){var g=d=d.next;do{if((g.tag&o)===o){var m=g.destroy;g.destroy=void 0,m!==void 0&&Vf(s,l,m)}g=g.next}while(g!==d)}}function fc(o,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var l=s=s.next;do{if((l.tag&o)===o){var d=l.create;l.destroy=d()}l=l.next}while(l!==s)}}function _f(o){var s=o.ref;if(s!==null){var l=o.stateNode;switch(o.tag){case 5:o=l;break;default:o=l}typeof s=="function"?s(o):s.current=o}}function oy(o){var s=o.alternate;s!==null&&(o.alternate=null,oy(s)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(s=o.stateNode,s!==null&&(delete s[Xn],delete s[qs],delete s[Xd],delete s[cI],delete s[uI])),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}function iy(o){return o.tag===5||o.tag===3||o.tag===4}function sy(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||iy(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Lf(o,s,l){var d=o.tag;if(d===5||d===6)o=o.stateNode,s?l.nodeType===8?l.parentNode.insertBefore(o,s):l.insertBefore(o,s):(l.nodeType===8?(s=l.parentNode,s.insertBefore(o,l)):(s=l,s.appendChild(o)),l=l._reactRootContainer,l!=null||s.onclick!==null||(s.onclick=Hl));else if(d!==4&&(o=o.child,o!==null))for(Lf(o,s,l),o=o.sibling;o!==null;)Lf(o,s,l),o=o.sibling}function $f(o,s,l){var d=o.tag;if(d===5||d===6)o=o.stateNode,s?l.insertBefore(o,s):l.appendChild(o);else if(d!==4&&(o=o.child,o!==null))for($f(o,s,l),o=o.sibling;o!==null;)$f(o,s,l),o=o.sibling}var Tt=null,zn=!1;function Xr(o,s,l){for(l=l.child;l!==null;)ay(o,s,l),l=l.sibling}function ay(o,s,l){if(Yn&&typeof Yn.onCommitFiberUnmount=="function")try{Yn.onCommitFiberUnmount(kl,l)}catch{}switch(l.tag){case 5:Ft||Ii(l,s);case 6:var d=Tt,g=zn;Tt=null,Xr(o,s,l),Tt=d,zn=g,Tt!==null&&(zn?(o=Tt,l=l.stateNode,o.nodeType===8?o.parentNode.removeChild(l):o.removeChild(l)):Tt.removeChild(l.stateNode));break;case 18:Tt!==null&&(zn?(o=Tt,l=l.stateNode,o.nodeType===8?Yd(o.parentNode,l):o.nodeType===1&&Yd(o,l),Fs(o)):Yd(Tt,l.stateNode));break;case 4:d=Tt,g=zn,Tt=l.stateNode.containerInfo,zn=!0,Xr(o,s,l),Tt=d,zn=g;break;case 0:case 11:case 14:case 15:if(!Ft&&(d=l.updateQueue,d!==null&&(d=d.lastEffect,d!==null))){g=d=d.next;do{var m=g,C=m.destroy;m=m.tag,C!==void 0&&((m&2)!==0||(m&4)!==0)&&Vf(l,s,C),g=g.next}while(g!==d)}Xr(o,s,l);break;case 1:if(!Ft&&(Ii(l,s),d=l.stateNode,typeof d.componentWillUnmount=="function"))try{d.props=l.memoizedProps,d.state=l.memoizedState,d.componentWillUnmount()}catch(I){Je(l,s,I)}Xr(o,s,l);break;case 21:Xr(o,s,l);break;case 22:l.mode&1?(Ft=(d=Ft)||l.memoizedState!==null,Xr(o,s,l),Ft=d):Xr(o,s,l);break;default:Xr(o,s,l)}}function ly(o){var s=o.updateQueue;if(s!==null){o.updateQueue=null;var l=o.stateNode;l===null&&(l=o.stateNode=new PI),s.forEach(function(d){var g=$I.bind(null,o,d);l.has(d)||(l.add(d),d.then(g,g))})}}function Fn(o,s){var l=s.deletions;if(l!==null)for(var d=0;d<l.length;d++){var g=l[d];try{var m=o,C=s,I=C;e:for(;I!==null;){switch(I.tag){case 5:Tt=I.stateNode,zn=!1;break e;case 3:Tt=I.stateNode.containerInfo,zn=!0;break e;case 4:Tt=I.stateNode.containerInfo,zn=!0;break e}I=I.return}if(Tt===null)throw Error(n(160));ay(m,C,g),Tt=null,zn=!1;var A=g.alternate;A!==null&&(A.return=null),g.return=null}catch(F){Je(g,s,F)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)cy(s,o),s=s.sibling}function cy(o,s){var l=o.alternate,d=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:if(Fn(s,o),Zn(o),d&4){try{aa(3,o,o.return),fc(3,o)}catch(ge){Je(o,o.return,ge)}try{aa(5,o,o.return)}catch(ge){Je(o,o.return,ge)}}break;case 1:Fn(s,o),Zn(o),d&512&&l!==null&&Ii(l,l.return);break;case 5:if(Fn(s,o),Zn(o),d&512&&l!==null&&Ii(l,l.return),o.flags&32){var g=o.stateNode;try{Ts(g,"")}catch(ge){Je(o,o.return,ge)}}if(d&4&&(g=o.stateNode,g!=null)){var m=o.memoizedProps,C=l!==null?l.memoizedProps:m,I=o.type,A=o.updateQueue;if(o.updateQueue=null,A!==null)try{I==="input"&&m.type==="radio"&&m.name!=null&&ri(g,m),fd(I,C);var F=fd(I,m);for(C=0;C<A.length;C+=2){var J=A[C],te=A[C+1];J==="style"?Gh(g,te):J==="dangerouslySetInnerHTML"?Hh(g,te):J==="children"?Ts(g,te):R(g,J,te,F)}switch(I){case"input":Is(g,m);break;case"textarea":Mh(g,m);break;case"select":var Q=g._wrapperState.wasMultiple;g._wrapperState.wasMultiple=!!m.multiple;var le=m.value;le!=null?pr(g,!!m.multiple,le,!1):Q!==!!m.multiple&&(m.defaultValue!=null?pr(g,!!m.multiple,m.defaultValue,!0):pr(g,!!m.multiple,m.multiple?[]:"",!1))}g[qs]=m}catch(ge){Je(o,o.return,ge)}}break;case 6:if(Fn(s,o),Zn(o),d&4){if(o.stateNode===null)throw Error(n(162));g=o.stateNode,m=o.memoizedProps;try{g.nodeValue=m}catch(ge){Je(o,o.return,ge)}}break;case 3:if(Fn(s,o),Zn(o),d&4&&l!==null&&l.memoizedState.isDehydrated)try{Fs(s.containerInfo)}catch(ge){Je(o,o.return,ge)}break;case 4:Fn(s,o),Zn(o);break;case 13:Fn(s,o),Zn(o),g=o.child,g.flags&8192&&(m=g.memoizedState!==null,g.stateNode.isHidden=m,!m||g.alternate!==null&&g.alternate.memoizedState!==null||(Ff=tt())),d&4&&ly(o);break;case 22:if(J=l!==null&&l.memoizedState!==null,o.mode&1?(Ft=(F=Ft)||J,Fn(s,o),Ft=F):Fn(s,o),Zn(o),d&8192){if(F=o.memoizedState!==null,(o.stateNode.isHidden=F)&&!J&&(o.mode&1)!==0)for(ue=o,J=o.child;J!==null;){for(te=ue=J;ue!==null;){switch(Q=ue,le=Q.child,Q.tag){case 0:case 11:case 14:case 15:aa(4,Q,Q.return);break;case 1:Ii(Q,Q.return);var fe=Q.stateNode;if(typeof fe.componentWillUnmount=="function"){d=Q,l=Q.return;try{s=d,fe.props=s.memoizedProps,fe.state=s.memoizedState,fe.componentWillUnmount()}catch(ge){Je(d,l,ge)}}break;case 5:Ii(Q,Q.return);break;case 22:if(Q.memoizedState!==null){fy(te);continue}}le!==null?(le.return=Q,ue=le):fy(te)}J=J.sibling}e:for(J=null,te=o;;){if(te.tag===5){if(J===null){J=te;try{g=te.stateNode,F?(m=g.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none"):(I=te.stateNode,A=te.memoizedProps.style,C=A!=null&&A.hasOwnProperty("display")?A.display:null,I.style.display=jh("display",C))}catch(ge){Je(o,o.return,ge)}}}else if(te.tag===6){if(J===null)try{te.stateNode.nodeValue=F?"":te.memoizedProps}catch(ge){Je(o,o.return,ge)}}else if((te.tag!==22&&te.tag!==23||te.memoizedState===null||te===o)&&te.child!==null){te.child.return=te,te=te.child;continue}if(te===o)break e;for(;te.sibling===null;){if(te.return===null||te.return===o)break e;J===te&&(J=null),te=te.return}J===te&&(J=null),te.sibling.return=te.return,te=te.sibling}}break;case 19:Fn(s,o),Zn(o),d&4&&ly(o);break;case 21:break;default:Fn(s,o),Zn(o)}}function Zn(o){var s=o.flags;if(s&2){try{e:{for(var l=o.return;l!==null;){if(iy(l)){var d=l;break e}l=l.return}throw Error(n(160))}switch(d.tag){case 5:var g=d.stateNode;d.flags&32&&(Ts(g,""),d.flags&=-33);var m=sy(o);$f(o,m,g);break;case 3:case 4:var C=d.stateNode.containerInfo,I=sy(o);Lf(o,I,C);break;default:throw Error(n(161))}}catch(A){Je(o,o.return,A)}o.flags&=-3}s&4096&&(o.flags&=-4097)}function TI(o,s,l){ue=o,uy(o)}function uy(o,s,l){for(var d=(o.mode&1)!==0;ue!==null;){var g=ue,m=g.child;if(g.tag===22&&d){var C=g.memoizedState!==null||dc;if(!C){var I=g.alternate,A=I!==null&&I.memoizedState!==null||Ft;I=dc;var F=Ft;if(dc=C,(Ft=A)&&!F)for(ue=g;ue!==null;)C=ue,A=C.child,C.tag===22&&C.memoizedState!==null?gy(g):A!==null?(A.return=C,ue=A):gy(g);for(;m!==null;)ue=m,uy(m),m=m.sibling;ue=g,dc=I,Ft=F}dy(o)}else(g.subtreeFlags&8772)!==0&&m!==null?(m.return=g,ue=m):dy(o)}}function dy(o){for(;ue!==null;){var s=ue;if((s.flags&8772)!==0){var l=s.alternate;try{if((s.flags&8772)!==0)switch(s.tag){case 0:case 11:case 15:Ft||fc(5,s);break;case 1:var d=s.stateNode;if(s.flags&4&&!Ft)if(l===null)d.componentDidMount();else{var g=s.elementType===s.type?l.memoizedProps:Dn(s.type,l.memoizedProps);d.componentDidUpdate(g,l.memoizedState,d.__reactInternalSnapshotBeforeUpdate)}var m=s.updateQueue;m!==null&&fv(s,m,d);break;case 3:var C=s.updateQueue;if(C!==null){if(l=null,s.child!==null)switch(s.child.tag){case 5:l=s.child.stateNode;break;case 1:l=s.child.stateNode}fv(s,C,l)}break;case 5:var I=s.stateNode;if(l===null&&s.flags&4){l=I;var A=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":A.autoFocus&&l.focus();break;case"img":A.src&&(l.src=A.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var F=s.alternate;if(F!==null){var J=F.memoizedState;if(J!==null){var te=J.dehydrated;te!==null&&Fs(te)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Ft||s.flags&512&&_f(s)}catch(Q){Je(s,s.return,Q)}}if(s===o){ue=null;break}if(l=s.sibling,l!==null){l.return=s.return,ue=l;break}ue=s.return}}function fy(o){for(;ue!==null;){var s=ue;if(s===o){ue=null;break}var l=s.sibling;if(l!==null){l.return=s.return,ue=l;break}ue=s.return}}function gy(o){for(;ue!==null;){var s=ue;try{switch(s.tag){case 0:case 11:case 15:var l=s.return;try{fc(4,s)}catch(A){Je(s,l,A)}break;case 1:var d=s.stateNode;if(typeof d.componentDidMount=="function"){var g=s.return;try{d.componentDidMount()}catch(A){Je(s,g,A)}}var m=s.return;try{_f(s)}catch(A){Je(s,m,A)}break;case 5:var C=s.return;try{_f(s)}catch(A){Je(s,C,A)}}}catch(A){Je(s,s.return,A)}if(s===o){ue=null;break}var I=s.sibling;if(I!==null){I.return=s.return,ue=I;break}ue=s.return}}var OI=Math.ceil,gc=S.ReactCurrentDispatcher,Df=S.ReactCurrentOwner,En=S.ReactCurrentBatchConfig,Ne=0,xt=null,rt=null,Ot=0,dn=0,Ti=jr(0),pt=0,la=null,Io=0,pc=0,zf=0,ca=null,Zt=null,Ff=0,Oi=1/0,Cr=null,hc=!1,Mf=null,qr=null,mc=!1,Qr=null,vc=0,ua=0,Bf=null,yc=-1,bc=0;function Gt(){return(Ne&6)!==0?tt():yc!==-1?yc:yc=tt()}function Zr(o){return(o.mode&1)===0?1:(Ne&2)!==0&&Ot!==0?Ot&-Ot:fI.transition!==null?(bc===0&&(bc=sm()),bc):(o=De,o!==0||(o=window.event,o=o===void 0?16:hm(o.type)),o)}function Mn(o,s,l,d){if(50<ua)throw ua=0,Bf=null,Error(n(185));_s(o,l,d),((Ne&2)===0||o!==xt)&&(o===xt&&((Ne&2)===0&&(pc|=l),pt===4&&Jr(o,Ot)),Jt(o,d),l===1&&Ne===0&&(s.mode&1)===0&&(Oi=tt()+500,Kl&&Ur()))}function Jt(o,s){var l=o.callbackNode;fP(o,s);var d=Tl(o,o===xt?Ot:0);if(d===0)l!==null&&rm(l),o.callbackNode=null,o.callbackPriority=0;else if(s=d&-d,o.callbackPriority!==s){if(l!=null&&rm(l),s===1)o.tag===0?dI(hy.bind(null,o)):ev(hy.bind(null,o)),aI(function(){(Ne&6)===0&&Ur()}),l=null;else{switch(am(d)){case 1:l=bd;break;case 4:l=om;break;case 16:l=El;break;case 536870912:l=im;break;default:l=El}l=Sy(l,py.bind(null,o))}o.callbackPriority=s,o.callbackNode=l}}function py(o,s){if(yc=-1,bc=0,(Ne&6)!==0)throw Error(n(327));var l=o.callbackNode;if(Ri()&&o.callbackNode!==l)return null;var d=Tl(o,o===xt?Ot:0);if(d===0)return null;if((d&30)!==0||(d&o.expiredLanes)!==0||s)s=xc(o,d);else{s=d;var g=Ne;Ne|=2;var m=vy();(xt!==o||Ot!==s)&&(Cr=null,Oi=tt()+500,Oo(o,s));do try{AI();break}catch(I){my(o,I)}while(!0);of(),gc.current=m,Ne=g,rt!==null?s=0:(xt=null,Ot=0,s=pt)}if(s!==0){if(s===2&&(g=xd(o),g!==0&&(d=g,s=Wf(o,g))),s===1)throw l=la,Oo(o,0),Jr(o,d),Jt(o,tt()),l;if(s===6)Jr(o,d);else{if(g=o.current.alternate,(d&30)===0&&!RI(g)&&(s=xc(o,d),s===2&&(m=xd(o),m!==0&&(d=m,s=Wf(o,m))),s===1))throw l=la,Oo(o,0),Jr(o,d),Jt(o,tt()),l;switch(o.finishedWork=g,o.finishedLanes=d,s){case 0:case 1:throw Error(n(345));case 2:Ro(o,Zt,Cr);break;case 3:if(Jr(o,d),(d&130023424)===d&&(s=Ff+500-tt(),10<s)){if(Tl(o,0)!==0)break;if(g=o.suspendedLanes,(g&d)!==d){Gt(),o.pingedLanes|=o.suspendedLanes&g;break}o.timeoutHandle=Kd(Ro.bind(null,o,Zt,Cr),s);break}Ro(o,Zt,Cr);break;case 4:if(Jr(o,d),(d&4194240)===d)break;for(s=o.eventTimes,g=-1;0<d;){var C=31-_n(d);m=1<<C,C=s[C],C>g&&(g=C),d&=~m}if(d=g,d=tt()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*OI(d/1960))-d,10<d){o.timeoutHandle=Kd(Ro.bind(null,o,Zt,Cr),d);break}Ro(o,Zt,Cr);break;case 5:Ro(o,Zt,Cr);break;default:throw Error(n(329))}}}return Jt(o,tt()),o.callbackNode===l?py.bind(null,o):null}function Wf(o,s){var l=ca;return o.current.memoizedState.isDehydrated&&(Oo(o,s).flags|=256),o=xc(o,s),o!==2&&(s=Zt,Zt=l,s!==null&&Hf(s)),o}function Hf(o){Zt===null?Zt=o:Zt.push.apply(Zt,o)}function RI(o){for(var s=o;;){if(s.flags&16384){var l=s.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var d=0;d<l.length;d++){var g=l[d],m=g.getSnapshot;g=g.value;try{if(!Ln(m(),g))return!1}catch{return!1}}}if(l=s.child,s.subtreeFlags&16384&&l!==null)l.return=s,s=l;else{if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Jr(o,s){for(s&=~zf,s&=~pc,o.suspendedLanes|=s,o.pingedLanes&=~s,o=o.expirationTimes;0<s;){var l=31-_n(s),d=1<<l;o[l]=-1,s&=~d}}function hy(o){if((Ne&6)!==0)throw Error(n(327));Ri();var s=Tl(o,0);if((s&1)===0)return Jt(o,tt()),null;var l=xc(o,s);if(o.tag!==0&&l===2){var d=xd(o);d!==0&&(s=d,l=Wf(o,d))}if(l===1)throw l=la,Oo(o,0),Jr(o,s),Jt(o,tt()),l;if(l===6)throw Error(n(345));return o.finishedWork=o.current.alternate,o.finishedLanes=s,Ro(o,Zt,Cr),Jt(o,tt()),null}function jf(o,s){var l=Ne;Ne|=1;try{return o(s)}finally{Ne=l,Ne===0&&(Oi=tt()+500,Kl&&Ur())}}function To(o){Qr!==null&&Qr.tag===0&&(Ne&6)===0&&Ri();var s=Ne;Ne|=1;var l=En.transition,d=De;try{if(En.transition=null,De=1,o)return o()}finally{De=d,En.transition=l,Ne=s,(Ne&6)===0&&Ur()}}function Gf(){dn=Ti.current,Ke(Ti)}function Oo(o,s){o.finishedWork=null,o.finishedLanes=0;var l=o.timeoutHandle;if(l!==-1&&(o.timeoutHandle=-1,sI(l)),rt!==null)for(l=rt.return;l!==null;){var d=l;switch(Jd(d),d.tag){case 1:d=d.type.childContextTypes,d!=null&&Gl();break;case 3:ki(),Ke(Xt),Ke($t),gf();break;case 5:df(d);break;case 4:ki();break;case 13:Ke(qe);break;case 19:Ke(qe);break;case 10:sf(d.type._context);break;case 22:case 23:Gf()}l=l.return}if(xt=o,rt=o=eo(o.current,null),Ot=dn=s,pt=0,la=null,zf=pc=Io=0,Zt=ca=null,Eo!==null){for(s=0;s<Eo.length;s++)if(l=Eo[s],d=l.interleaved,d!==null){l.interleaved=null;var g=d.next,m=l.pending;if(m!==null){var C=m.next;m.next=g,d.next=C}l.pending=d}Eo=null}return o}function my(o,s){do{var l=rt;try{if(of(),rc.current=ac,oc){for(var d=Qe.memoizedState;d!==null;){var g=d.queue;g!==null&&(g.pending=null),d=d.next}oc=!1}if(Po=0,bt=gt=Qe=null,na=!1,ra=0,Df.current=null,l===null||l.return===null){pt=1,la=s,rt=null;break}e:{var m=o,C=l.return,I=l,A=s;if(s=Ot,I.flags|=32768,A!==null&&typeof A=="object"&&typeof A.then=="function"){var F=A,J=I,te=J.tag;if((J.mode&1)===0&&(te===0||te===11||te===15)){var Q=J.alternate;Q?(J.updateQueue=Q.updateQueue,J.memoizedState=Q.memoizedState,J.lanes=Q.lanes):(J.updateQueue=null,J.memoizedState=null)}var le=Bv(C);if(le!==null){le.flags&=-257,Wv(le,C,I,m,s),le.mode&1&&Mv(m,F,s),s=le,A=F;var fe=s.updateQueue;if(fe===null){var ge=new Set;ge.add(A),s.updateQueue=ge}else fe.add(A);break e}else{if((s&1)===0){Mv(m,F,s),Uf();break e}A=Error(n(426))}}else if(Ye&&I.mode&1){var nt=Bv(C);if(nt!==null){(nt.flags&65536)===0&&(nt.flags|=256),Wv(nt,C,I,m,s),nf(Pi(A,I));break e}}m=A=Pi(A,I),pt!==4&&(pt=2),ca===null?ca=[m]:ca.push(m),m=C;do{switch(m.tag){case 3:m.flags|=65536,s&=-s,m.lanes|=s;var D=zv(m,A,s);dv(m,D);break e;case 1:I=A;var V=m.type,z=m.stateNode;if((m.flags&128)===0&&(typeof V.getDerivedStateFromError=="function"||z!==null&&typeof z.componentDidCatch=="function"&&(qr===null||!qr.has(z)))){m.flags|=65536,s&=-s,m.lanes|=s;var ie=Fv(m,I,s);dv(m,ie);break e}}m=m.return}while(m!==null)}by(l)}catch(pe){s=pe,rt===l&&l!==null&&(rt=l=l.return);continue}break}while(!0)}function vy(){var o=gc.current;return gc.current=ac,o===null?ac:o}function Uf(){(pt===0||pt===3||pt===2)&&(pt=4),xt===null||(Io&268435455)===0&&(pc&268435455)===0||Jr(xt,Ot)}function xc(o,s){var l=Ne;Ne|=2;var d=vy();(xt!==o||Ot!==s)&&(Cr=null,Oo(o,s));do try{NI();break}catch(g){my(o,g)}while(!0);if(of(),Ne=l,gc.current=d,rt!==null)throw Error(n(261));return xt=null,Ot=0,pt}function NI(){for(;rt!==null;)yy(rt)}function AI(){for(;rt!==null&&!rP();)yy(rt)}function yy(o){var s=Cy(o.alternate,o,dn);o.memoizedProps=o.pendingProps,s===null?by(o):rt=s,Df.current=null}function by(o){var s=o;do{var l=s.alternate;if(o=s.return,(s.flags&32768)===0){if(l=EI(l,s,dn),l!==null){rt=l;return}}else{if(l=kI(l,s),l!==null){l.flags&=32767,rt=l;return}if(o!==null)o.flags|=32768,o.subtreeFlags=0,o.deletions=null;else{pt=6,rt=null;return}}if(s=s.sibling,s!==null){rt=s;return}rt=s=o}while(s!==null);pt===0&&(pt=5)}function Ro(o,s,l){var d=De,g=En.transition;try{En.transition=null,De=1,VI(o,s,l,d)}finally{En.transition=g,De=d}return null}function VI(o,s,l,d){do Ri();while(Qr!==null);if((Ne&6)!==0)throw Error(n(327));l=o.finishedWork;var g=o.finishedLanes;if(l===null)return null;if(o.finishedWork=null,o.finishedLanes=0,l===o.current)throw Error(n(177));o.callbackNode=null,o.callbackPriority=0;var m=l.lanes|l.childLanes;if(gP(o,m),o===xt&&(rt=xt=null,Ot=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||mc||(mc=!0,Sy(El,function(){return Ri(),null})),m=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||m){m=En.transition,En.transition=null;var C=De;De=1;var I=Ne;Ne|=4,Df.current=null,II(o,l),cy(l,o),JP(Gd),Nl=!!jd,Gd=jd=null,o.current=l,TI(l),oP(),Ne=I,De=C,En.transition=m}else o.current=l;if(mc&&(mc=!1,Qr=o,vc=g),m=o.pendingLanes,m===0&&(qr=null),aP(l.stateNode),Jt(o,tt()),s!==null)for(d=o.onRecoverableError,l=0;l<s.length;l++)g=s[l],d(g.value,{componentStack:g.stack,digest:g.digest});if(hc)throw hc=!1,o=Mf,Mf=null,o;return(vc&1)!==0&&o.tag!==0&&Ri(),m=o.pendingLanes,(m&1)!==0?o===Bf?ua++:(ua=0,Bf=o):ua=0,Ur(),null}function Ri(){if(Qr!==null){var o=am(vc),s=En.transition,l=De;try{if(En.transition=null,De=16>o?16:o,Qr===null)var d=!1;else{if(o=Qr,Qr=null,vc=0,(Ne&6)!==0)throw Error(n(331));var g=Ne;for(Ne|=4,ue=o.current;ue!==null;){var m=ue,C=m.child;if((ue.flags&16)!==0){var I=m.deletions;if(I!==null){for(var A=0;A<I.length;A++){var F=I[A];for(ue=F;ue!==null;){var J=ue;switch(J.tag){case 0:case 11:case 15:aa(8,J,m)}var te=J.child;if(te!==null)te.return=J,ue=te;else for(;ue!==null;){J=ue;var Q=J.sibling,le=J.return;if(oy(J),J===F){ue=null;break}if(Q!==null){Q.return=le,ue=Q;break}ue=le}}}var fe=m.alternate;if(fe!==null){var ge=fe.child;if(ge!==null){fe.child=null;do{var nt=ge.sibling;ge.sibling=null,ge=nt}while(ge!==null)}}ue=m}}if((m.subtreeFlags&2064)!==0&&C!==null)C.return=m,ue=C;else e:for(;ue!==null;){if(m=ue,(m.flags&2048)!==0)switch(m.tag){case 0:case 11:case 15:aa(9,m,m.return)}var D=m.sibling;if(D!==null){D.return=m.return,ue=D;break e}ue=m.return}}var V=o.current;for(ue=V;ue!==null;){C=ue;var z=C.child;if((C.subtreeFlags&2064)!==0&&z!==null)z.return=C,ue=z;else e:for(C=V;ue!==null;){if(I=ue,(I.flags&2048)!==0)try{switch(I.tag){case 0:case 11:case 15:fc(9,I)}}catch(pe){Je(I,I.return,pe)}if(I===C){ue=null;break e}var ie=I.sibling;if(ie!==null){ie.return=I.return,ue=ie;break e}ue=I.return}}if(Ne=g,Ur(),Yn&&typeof Yn.onPostCommitFiberRoot=="function")try{Yn.onPostCommitFiberRoot(kl,o)}catch{}d=!0}return d}finally{De=l,En.transition=s}}return!1}function xy(o,s,l){s=Pi(l,s),s=zv(o,s,1),o=Yr(o,s,1),s=Gt(),o!==null&&(_s(o,1,s),Jt(o,s))}function Je(o,s,l){if(o.tag===3)xy(o,o,l);else for(;s!==null;){if(s.tag===3){xy(s,o,l);break}else if(s.tag===1){var d=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(qr===null||!qr.has(d))){o=Pi(l,o),o=Fv(s,o,1),s=Yr(s,o,1),o=Gt(),s!==null&&(_s(s,1,o),Jt(s,o));break}}s=s.return}}function _I(o,s,l){var d=o.pingCache;d!==null&&d.delete(s),s=Gt(),o.pingedLanes|=o.suspendedLanes&l,xt===o&&(Ot&l)===l&&(pt===4||pt===3&&(Ot&130023424)===Ot&&500>tt()-Ff?Oo(o,0):zf|=l),Jt(o,s)}function wy(o,s){s===0&&((o.mode&1)===0?s=1:(s=Il,Il<<=1,(Il&130023424)===0&&(Il=4194304)));var l=Gt();o=br(o,s),o!==null&&(_s(o,s,l),Jt(o,l))}function LI(o){var s=o.memoizedState,l=0;s!==null&&(l=s.retryLane),wy(o,l)}function $I(o,s){var l=0;switch(o.tag){case 13:var d=o.stateNode,g=o.memoizedState;g!==null&&(l=g.retryLane);break;case 19:d=o.stateNode;break;default:throw Error(n(314))}d!==null&&d.delete(s),wy(o,l)}var Cy;Cy=function(o,s,l){if(o!==null)if(o.memoizedProps!==s.pendingProps||Xt.current)Qt=!0;else{if((o.lanes&l)===0&&(s.flags&128)===0)return Qt=!1,SI(o,s,l);Qt=(o.flags&131072)!==0}else Qt=!1,Ye&&(s.flags&1048576)!==0&&tv(s,Xl,s.index);switch(s.lanes=0,s.tag){case 2:var d=s.type;uc(o,s),o=s.pendingProps;var g=yi(s,$t.current);Ei(s,l),g=mf(null,s,d,o,g,l);var m=vf();return s.flags|=1,typeof g=="object"&&g!==null&&typeof g.render=="function"&&g.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,qt(d)?(m=!0,Ul(s)):m=!1,s.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,cf(s),g.updater=lc,s.stateNode=g,g._reactInternals=s,Sf(s,d,o,l),s=If(null,s,d,!0,m,l)):(s.tag=0,Ye&&m&&Zd(s),jt(null,s,g,l),s=s.child),s;case 16:d=s.elementType;e:{switch(uc(o,s),o=s.pendingProps,g=d._init,d=g(d._payload),s.type=d,g=s.tag=zI(d),o=Dn(d,o),g){case 0:s=Pf(null,s,d,o,l);break e;case 1:s=Yv(null,s,d,o,l);break e;case 11:s=Hv(null,s,d,o,l);break e;case 14:s=jv(null,s,d,Dn(d.type,o),l);break e}throw Error(n(306,d,""))}return s;case 0:return d=s.type,g=s.pendingProps,g=s.elementType===d?g:Dn(d,g),Pf(o,s,d,g,l);case 1:return d=s.type,g=s.pendingProps,g=s.elementType===d?g:Dn(d,g),Yv(o,s,d,g,l);case 3:e:{if(Xv(s),o===null)throw Error(n(387));d=s.pendingProps,m=s.memoizedState,g=m.element,uv(o,s),tc(s,d,null,l);var C=s.memoizedState;if(d=C.element,m.isDehydrated)if(m={element:d,isDehydrated:!1,cache:C.cache,pendingSuspenseBoundaries:C.pendingSuspenseBoundaries,transitions:C.transitions},s.updateQueue.baseState=m,s.memoizedState=m,s.flags&256){g=Pi(Error(n(423)),s),s=qv(o,s,d,l,g);break e}else if(d!==g){g=Pi(Error(n(424)),s),s=qv(o,s,d,l,g);break e}else for(un=Hr(s.stateNode.containerInfo.firstChild),cn=s,Ye=!0,$n=null,l=lv(s,null,d,l),s.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(wi(),d===g){s=wr(o,s,l);break e}jt(o,s,d,l)}s=s.child}return s;case 5:return gv(s),o===null&&tf(s),d=s.type,g=s.pendingProps,m=o!==null?o.memoizedProps:null,C=g.children,Ud(d,g)?C=null:m!==null&&Ud(d,m)&&(s.flags|=32),Kv(o,s),jt(o,s,C,l),s.child;case 6:return o===null&&tf(s),null;case 13:return Qv(o,s,l);case 4:return uf(s,s.stateNode.containerInfo),d=s.pendingProps,o===null?s.child=Ci(s,null,d,l):jt(o,s,d,l),s.child;case 11:return d=s.type,g=s.pendingProps,g=s.elementType===d?g:Dn(d,g),Hv(o,s,d,g,l);case 7:return jt(o,s,s.pendingProps,l),s.child;case 8:return jt(o,s,s.pendingProps.children,l),s.child;case 12:return jt(o,s,s.pendingProps.children,l),s.child;case 10:e:{if(d=s.type._context,g=s.pendingProps,m=s.memoizedProps,C=g.value,We(Zl,d._currentValue),d._currentValue=C,m!==null)if(Ln(m.value,C)){if(m.children===g.children&&!Xt.current){s=wr(o,s,l);break e}}else for(m=s.child,m!==null&&(m.return=s);m!==null;){var I=m.dependencies;if(I!==null){C=m.child;for(var A=I.firstContext;A!==null;){if(A.context===d){if(m.tag===1){A=xr(-1,l&-l),A.tag=2;var F=m.updateQueue;if(F!==null){F=F.shared;var J=F.pending;J===null?A.next=A:(A.next=J.next,J.next=A),F.pending=A}}m.lanes|=l,A=m.alternate,A!==null&&(A.lanes|=l),af(m.return,l,s),I.lanes|=l;break}A=A.next}}else if(m.tag===10)C=m.type===s.type?null:m.child;else if(m.tag===18){if(C=m.return,C===null)throw Error(n(341));C.lanes|=l,I=C.alternate,I!==null&&(I.lanes|=l),af(C,l,s),C=m.sibling}else C=m.child;if(C!==null)C.return=m;else for(C=m;C!==null;){if(C===s){C=null;break}if(m=C.sibling,m!==null){m.return=C.return,C=m;break}C=C.return}m=C}jt(o,s,g.children,l),s=s.child}return s;case 9:return g=s.type,d=s.pendingProps.children,Ei(s,l),g=Cn(g),d=d(g),s.flags|=1,jt(o,s,d,l),s.child;case 14:return d=s.type,g=Dn(d,s.pendingProps),g=Dn(d.type,g),jv(o,s,d,g,l);case 15:return Gv(o,s,s.type,s.pendingProps,l);case 17:return d=s.type,g=s.pendingProps,g=s.elementType===d?g:Dn(d,g),uc(o,s),s.tag=1,qt(d)?(o=!0,Ul(s)):o=!1,Ei(s,l),$v(s,d,g),Sf(s,d,g,l),If(null,s,d,!0,o,l);case 19:return Jv(o,s,l);case 22:return Uv(o,s,l)}throw Error(n(156,s.tag))};function Sy(o,s){return nm(o,s)}function DI(o,s,l,d){this.tag=o,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function kn(o,s,l,d){return new DI(o,s,l,d)}function Kf(o){return o=o.prototype,!(!o||!o.isReactComponent)}function zI(o){if(typeof o=="function")return Kf(o)?1:0;if(o!=null){if(o=o.$$typeof,o===$)return 11;if(o===ne)return 14}return 2}function eo(o,s){var l=o.alternate;return l===null?(l=kn(o.tag,s,o.key,o.mode),l.elementType=o.elementType,l.type=o.type,l.stateNode=o.stateNode,l.alternate=o,o.alternate=l):(l.pendingProps=s,l.type=o.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=o.flags&14680064,l.childLanes=o.childLanes,l.lanes=o.lanes,l.child=o.child,l.memoizedProps=o.memoizedProps,l.memoizedState=o.memoizedState,l.updateQueue=o.updateQueue,s=o.dependencies,l.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},l.sibling=o.sibling,l.index=o.index,l.ref=o.ref,l}function wc(o,s,l,d,g,m){var C=2;if(d=o,typeof o=="function")Kf(o)&&(C=1);else if(typeof o=="string")C=5;else e:switch(o){case M:return No(l.children,g,m,s);case B:C=8,g|=8;break;case j:return o=kn(12,l,s,g|2),o.elementType=j,o.lanes=m,o;case H:return o=kn(13,l,s,g),o.elementType=H,o.lanes=m,o;case ae:return o=kn(19,l,s,g),o.elementType=ae,o.lanes=m,o;case me:return Cc(l,g,m,s);default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case W:C=10;break e;case U:C=9;break e;case $:C=11;break e;case ne:C=14;break e;case ce:C=16,d=null;break e}throw Error(n(130,o==null?o:typeof o,""))}return s=kn(C,l,s,g),s.elementType=o,s.type=d,s.lanes=m,s}function No(o,s,l,d){return o=kn(7,o,d,s),o.lanes=l,o}function Cc(o,s,l,d){return o=kn(22,o,d,s),o.elementType=me,o.lanes=l,o.stateNode={isHidden:!1},o}function Yf(o,s,l){return o=kn(6,o,null,s),o.lanes=l,o}function Xf(o,s,l){return s=kn(4,o.children!==null?o.children:[],o.key,s),s.lanes=l,s.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},s}function FI(o,s,l,d,g){this.tag=s,this.containerInfo=o,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=wd(0),this.expirationTimes=wd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wd(0),this.identifierPrefix=d,this.onRecoverableError=g,this.mutableSourceEagerHydrationData=null}function qf(o,s,l,d,g,m,C,I,A){return o=new FI(o,s,l,I,A),s===1?(s=1,m===!0&&(s|=8)):s=0,m=kn(3,null,null,s),o.current=m,m.stateNode=o,m.memoizedState={element:d,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},cf(m),o}function MI(o,s,l){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:L,key:d==null?null:""+d,children:o,containerInfo:s,implementation:l}}function Ey(o){if(!o)return Gr;o=o._reactInternals;e:{if(bo(o)!==o||o.tag!==1)throw Error(n(170));var s=o;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(qt(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(n(171))}if(o.tag===1){var l=o.type;if(qt(l))return Zm(o,l,s)}return s}function ky(o,s,l,d,g,m,C,I,A){return o=qf(l,d,!0,o,g,m,C,I,A),o.context=Ey(null),l=o.current,d=Gt(),g=Zr(l),m=xr(d,g),m.callback=s??null,Yr(l,m,g),o.current.lanes=g,_s(o,g,d),Jt(o,d),o}function Sc(o,s,l,d){var g=s.current,m=Gt(),C=Zr(g);return l=Ey(l),s.context===null?s.context=l:s.pendingContext=l,s=xr(m,C),s.payload={element:o},d=d===void 0?null:d,d!==null&&(s.callback=d),o=Yr(g,s,C),o!==null&&(Mn(o,g,C,m),ec(o,g,C)),C}function Ec(o){if(o=o.current,!o.child)return null;switch(o.child.tag){case 5:return o.child.stateNode;default:return o.child.stateNode}}function Py(o,s){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var l=o.retryLane;o.retryLane=l!==0&&l<s?l:s}}function Qf(o,s){Py(o,s),(o=o.alternate)&&Py(o,s)}function BI(){return null}var Iy=typeof reportError=="function"?reportError:function(o){console.error(o)};function Zf(o){this._internalRoot=o}kc.prototype.render=Zf.prototype.render=function(o){var s=this._internalRoot;if(s===null)throw Error(n(409));Sc(o,s,null,null)},kc.prototype.unmount=Zf.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var s=o.containerInfo;To(function(){Sc(null,o,null,null)}),s[hr]=null}};function kc(o){this._internalRoot=o}kc.prototype.unstable_scheduleHydration=function(o){if(o){var s=um();o={blockedOn:null,target:o,priority:s};for(var l=0;l<Mr.length&&s!==0&&s<Mr[l].priority;l++);Mr.splice(l,0,o),l===0&&gm(o)}};function Jf(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function Pc(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11&&(o.nodeType!==8||o.nodeValue!==" react-mount-point-unstable "))}function Ty(){}function WI(o,s,l,d,g){if(g){if(typeof d=="function"){var m=d;d=function(){var F=Ec(C);m.call(F)}}var C=ky(s,d,o,0,null,!1,!1,"",Ty);return o._reactRootContainer=C,o[hr]=C.current,Ys(o.nodeType===8?o.parentNode:o),To(),C}for(;g=o.lastChild;)o.removeChild(g);if(typeof d=="function"){var I=d;d=function(){var F=Ec(A);I.call(F)}}var A=qf(o,0,!1,null,null,!1,!1,"",Ty);return o._reactRootContainer=A,o[hr]=A.current,Ys(o.nodeType===8?o.parentNode:o),To(function(){Sc(s,A,l,d)}),A}function Ic(o,s,l,d,g){var m=l._reactRootContainer;if(m){var C=m;if(typeof g=="function"){var I=g;g=function(){var A=Ec(C);I.call(A)}}Sc(s,C,o,g)}else C=WI(l,s,o,g,d);return Ec(C)}lm=function(o){switch(o.tag){case 3:var s=o.stateNode;if(s.current.memoizedState.isDehydrated){var l=Vs(s.pendingLanes);l!==0&&(Cd(s,l|1),Jt(s,tt()),(Ne&6)===0&&(Oi=tt()+500,Ur()))}break;case 13:To(function(){var d=br(o,1);if(d!==null){var g=Gt();Mn(d,o,1,g)}}),Qf(o,1)}},Sd=function(o){if(o.tag===13){var s=br(o,134217728);if(s!==null){var l=Gt();Mn(s,o,134217728,l)}Qf(o,134217728)}},cm=function(o){if(o.tag===13){var s=Zr(o),l=br(o,s);if(l!==null){var d=Gt();Mn(l,o,s,d)}Qf(o,s)}},um=function(){return De},dm=function(o,s){var l=De;try{return De=o,s()}finally{De=l}},hd=function(o,s,l){switch(s){case"input":if(Is(o,l),s=l.name,l.type==="radio"&&s!=null){for(l=o;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<l.length;s++){var d=l[s];if(d!==o&&d.form===o.form){var g=jl(d);if(!g)throw Error(n(90));Ge(d),Is(d,g)}}}break;case"textarea":Mh(o,l);break;case"select":s=l.value,s!=null&&pr(o,!!l.multiple,s,!1)}},Xh=jf,qh=To;var HI={usingClientEntryPoint:!1,Events:[Qs,mi,jl,Kh,Yh,jf]},da={findFiberByHostInstance:xo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},jI={bundleType:da.bundleType,version:da.version,rendererPackageName:da.rendererPackageName,rendererConfig:da.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:S.ReactCurrentDispatcher,findHostInstanceByFiber:function(o){return o=em(o),o===null?null:o.stateNode},findFiberByHostInstance:da.findFiberByHostInstance||BI,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Tc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Tc.isDisabled&&Tc.supportsFiber)try{kl=Tc.inject(jI),Yn=Tc}catch{}}return en.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=HI,en.createPortal=function(o,s){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Jf(s))throw Error(n(200));return MI(o,s,null,l)},en.createRoot=function(o,s){if(!Jf(o))throw Error(n(299));var l=!1,d="",g=Iy;return s!=null&&(s.unstable_strictMode===!0&&(l=!0),s.identifierPrefix!==void 0&&(d=s.identifierPrefix),s.onRecoverableError!==void 0&&(g=s.onRecoverableError)),s=qf(o,1,!1,null,null,l,!1,d,g),o[hr]=s.current,Ys(o.nodeType===8?o.parentNode:o),new Zf(s)},en.findDOMNode=function(o){if(o==null)return null;if(o.nodeType===1)return o;var s=o._reactInternals;if(s===void 0)throw typeof o.render=="function"?Error(n(188)):(o=Object.keys(o).join(","),Error(n(268,o)));return o=em(s),o=o===null?null:o.stateNode,o},en.flushSync=function(o){return To(o)},en.hydrate=function(o,s,l){if(!Pc(s))throw Error(n(200));return Ic(null,o,s,!0,l)},en.hydrateRoot=function(o,s,l){if(!Jf(o))throw Error(n(405));var d=l!=null&&l.hydratedSources||null,g=!1,m="",C=Iy;if(l!=null&&(l.unstable_strictMode===!0&&(g=!0),l.identifierPrefix!==void 0&&(m=l.identifierPrefix),l.onRecoverableError!==void 0&&(C=l.onRecoverableError)),s=ky(s,null,o,1,l??null,g,!1,m,C),o[hr]=s.current,Ys(o),d)for(o=0;o<d.length;o++)l=d[o],g=l._getVersion,g=g(l._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[l,g]:s.mutableSourceEagerHydrationData.push(l,g);return new kc(s)},en.render=function(o,s,l){if(!Pc(s))throw Error(n(200));return Ic(null,o,s,!1,l)},en.unmountComponentAtNode=function(o){if(!Pc(o))throw Error(n(40));return o._reactRootContainer?(To(function(){Ic(null,null,o,!1,function(){o._reactRootContainer=null,o[hr]=null})}),!0):!1},en.unstable_batchedUpdates=jf,en.unstable_renderSubtreeIntoContainer=function(o,s,l,d){if(!Pc(l))throw Error(n(200));if(o==null||o._reactInternals===void 0)throw Error(n(38));return Ic(o,s,l,!1,d)},en.version="18.3.1-next-f1338f8080-20240426",en}var db;function EN(){if(db)return mg.exports;db=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),mg.exports=SN(),mg.exports}var ps=EN();const kN=T0(ps),kH=I0({__proto__:null,default:kN},[ps]);var Tw=typeof globalThis.document<"u"?k.useLayoutEffect:k.useEffect;function xu(e){const t=e().value??e().defaultValue,n=e().isEqual??Object.is,[r]=k.useState(t),[i,a]=k.useState(r),c=e().value!==void 0,u=k.useRef(i);u.current=c?e().value:i;const f=k.useRef(u.current);Tw(()=>{f.current=u.current},[i,e().value]);const p=y=>{const b=f.current,v=Or(y)?y(b):y;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:v,prev:b}),c||a(v),n(v,b)||e().onChange?.(v,b)};function h(){return c?e().value:i}return{initial:r,ref:u,get:h,set(y){(e().sync?ps.flushSync:PO)(()=>p(y))},invoke(y,b){e().onChange?.(y,b)},hash(y){return e().hash?.(y)??String(y)}}}xu.cleanup=e=>{k.useEffect(()=>e,[])};xu.ref=e=>{const t=k.useRef(e);return{get:()=>t.current,set:n=>{t.current=n}}};function PN(e){const t=k.useRef(e);return{get(n){return t.current[n]},set(n,r){t.current[n]=r}}}var IN=(e,t)=>{const n=k.useRef(!1),r=k.useRef(!1);k.useEffect(()=>{if(n.current&&r.current)return t();r.current=!0},[...(e??[]).map(i=>typeof i=="function"?i():i)]),k.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function Yt(e,t={}){const n=k.useMemo(()=>{const{id:U,ids:$,getRootNode:H}=t;return gN({id:U,ids:$,getRootNode:H})},[t]),r=(...U)=>{e.debug&&console.log(...U)},i=e.props?.({props:ds(t),scope:n})??t,a=TN(i),c=e.context?.({prop:a,bindable:xu,scope:n,flush:fb,getContext(){return f},getComputed(){return T},getRefs(){return x},getEvent(){return v()}}),u=Ow(c),f={get(U){return u.current?.[U].ref.current},set(U,$){u.current?.[U].set($)},initial(U){return u.current?.[U].initial},hash(U){const $=u.current?.[U].get();return u.current?.[U].hash($)}},p=k.useRef(new Map),h=k.useRef(null),y=k.useRef(null),b=k.useRef({type:""}),v=()=>({...b.current,current(){return b.current},previous(){return y.current}}),w=()=>({...L,matches(...U){return U.includes(L.ref.current)},hasTag(U){return!!e.states[L.ref.current]?.tags?.includes(U)}}),x=PN(e.refs?.({prop:a,context:f})??{}),E=()=>({state:w(),context:f,event:v(),prop:a,send:W,action:O,guard:N,track:IN,refs:x,computed:T,flush:fb,scope:n,choose:S}),O=U=>{const $=Or(U)?U(E()):U;if(!$)return;const H=$.map(ae=>{const ne=e.implementations?.actions?.[ae];return ne||Go(`[zag-js] No implementation found for action "${JSON.stringify(ae)}"`),ne});for(const ae of H)ae?.(E())},N=U=>Or(U)?U(E()):e.implementations?.guards?.[U](E()),R=U=>{const $=Or(U)?U(E()):U;if(!$)return;const H=$.map(ne=>{const ce=e.implementations?.effects?.[ne];return ce||Go(`[zag-js] No implementation found for effect "${JSON.stringify(ne)}"`),ce}),ae=[];for(const ne of H){const ce=ne?.(E());ce&&ae.push(ce)}return()=>ae.forEach(ne=>ne?.())},S=U=>Jc(U).find($=>{let H=!$.guard;return eu($.guard)?H=!!N($.guard):Or($.guard)&&(H=$.guard(E())),H}),T=U=>{nw(e.computed,()=>"[zag-js] No computed object found on machine");const $=e.computed[U];return $({context:f,event:v(),prop:a,refs:x,scope:n,computed:T})},L=xu(()=>({defaultValue:e.initialState({prop:a}),onChange(U,$){$&&(p.current.get($)?.(),p.current.delete($)),$&&O(e.states[$]?.exit),O(h.current?.actions);const H=R(e.states[U]?.effects);if(H&&p.current.set(U,H),$===pg){O(e.entry);const ae=R(e.effects);ae&&p.current.set(pg,ae)}O(e.states[U]?.entry)}})),M=k.useRef(void 0),B=k.useRef(Wi.NotStarted);Tw(()=>{queueMicrotask(()=>{const H=B.current===Wi.Started;B.current=Wi.Started,r(H?"rehydrating...":"initializing...");const ae=M.current??L.initial;L.invoke(ae,H?L.get():pg)});const U=p.current,$=L.ref.current;return()=>{r("unmounting..."),M.current=$,B.current=Wi.Stopped,U.forEach(H=>H?.()),p.current=new Map,h.current=null,queueMicrotask(()=>{O(e.exit)})}},[]);const j=()=>"ref"in L?L.ref.current:L.get(),W=U=>{queueMicrotask(()=>{if(B.current!==Wi.Started)return;y.current=b.current,b.current=U;let $=j();const H=e.states[$].on?.[U.type]??e.on?.[U.type],ae=S(H);if(!ae)return;h.current=ae;const ne=ae.target??$;r("transition",U.type,ae.target||$,`(${ae.actions})`);const ce=ne!==$;ce?ps.flushSync(()=>L.set(ne)):ae.reenter&&!ce?L.invoke($,$):O(ae.actions??[])})};return e.watch?.(E()),{state:w(),send:W,context:f,prop:a,scope:n,refs:x,computed:T,event:v(),getStatus:()=>B.current}}function Ow(e){const t=k.useRef(e);return t.current=e,t}function TN(e){const t=Ow(e);return function(r){return t.current[r]}}function fb(e){queueMicrotask(()=>{ps.flushSync(()=>e())})}var sn=yN(e=>e);function Rw(e,t={}){const{sync:n=!1}=t,r=ON(e);return k.useCallback((...i)=>n?queueMicrotask(()=>r.current?.(...i)):r.current?.(...i),[n,r])}function ON(e){const t=k.useRef(e);return t.current=e,t}const An=(e={})=>{const{lazyMount:t,unmountOnExit:n,present:r,skipAnimationOnMount:i=!1,...a}=e,c=k.useRef(!1),u={...a,present:r,onExitComplete:Rw(e.onExitComplete)},f=Yt(xN,u),p=bN(f);p.present&&(c.current=!0);const h=!p.present&&!c.current&&t||n&&!p.present&&c.current,y=()=>({"data-state":p.skip&&i?void 0:r?"open":"closed",hidden:!p.present});return{ref:p.setNode,getPresenceProps:y,present:p.present,unmounted:h}},[Kn,yn]=$e({name:"PresenceContext",hookName:"usePresenceContext",providerName:"<PresenceProvider />"}),La=Ie("span");La.displayName="Span";const{withContext:RN}=Rn({key:"text"}),NN=RN("p");NN.displayName="Text";function qg(e,t=[]){const n=k.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return k.useInsertionEffect(()=>{n.current=e}),k.useCallback((...r)=>n.current?.(...r),t)}function AN(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch{return e.addListener(t),()=>e.removeListener(t)}}function VN(e,t={}){const{fallback:n=[],ssr:r=!0,getWindow:i}=t,a=qg(i),c=Array.isArray(e)?e:[e],u=n?.filter(h=>h!=null),[f,p]=k.useState(()=>c.map((h,y)=>{if(!r){const{media:b,matches:v}=(i?.()??window).matchMedia(h);return{media:b,matches:v}}return{media:h,matches:!!u[y]}}));return k.useEffect(()=>{const h=a()??window;p(w=>{const x=c.map(E=>{const{media:O,matches:N}=h.matchMedia(E);return{media:O,matches:N}});return w.every((E,O)=>E.matches===x[O].matches&&E.media===x[O].media)?w:x});const y=c.map(w=>h.matchMedia(w)),b=w=>{p(x=>x.slice().map(E=>E.media===w.media?{...E,matches:w.matches}:E))},v=y.map(w=>AN(w,b));return()=>v.forEach(w=>w())},[a]),f.map(h=>h.matches)}function _N(e={}){e.fallback||(e.fallback="base");const t=Jo();let n=!1;const i=t.breakpoints.values.map(({min:f,name:p})=>{const h={breakpoint:p,query:`(min-width: ${f})`,fallback:!n};return p===e.fallback&&(n=!0),h}).filter(({breakpoint:f})=>!!e.breakpoints?.includes(f)),a=i.map(({fallback:f})=>f),u=VN(i.map(f=>f.query),{fallback:a,ssr:e.ssr}).lastIndexOf(!0);return i[u]?.breakpoint??e.fallback}function PH(e,t){const r=Jo().normalizeValue(e),i=_N({breakpoints:Object.keys(r),...t});return r[i]}function IH(e={}){const t=qg(e.onOpen),n=qg(e.onClose),[r,i]=k.useState(e.defaultOpen||!1),a=e.open!==void 0?e.open:r,c=e.open!==void 0,u=k.useCallback(()=>{c||i(!1),n?.()},[c,n]),f=k.useCallback(()=>{c||i(!0),t?.()},[c,t]),p=k.useCallback(()=>{a?u():f()},[a,f,u]);return{open:a,onOpen:f,onClose:u,onToggle:p,setOpen:i}}const[Nw,Gu]=$e({name:"AccordionContext",hookName:"useAccordionContext",providerName:"<AccordionProvider />"}),[LN]=$e({name:"AccordionItemContext",hookName:"useAccordionItemContext",providerName:"<AccordionItemProvider />"}),$N=e=>ze()(e,["collapsedHeight","collapsedWidth","defaultOpen","disabled","id","ids","lazyMount","onExitComplete","onOpenChange","open","unmountOnExit"]);var ve=(e,t=[])=>({parts:(...n)=>{if(DN(t))return ve(e,n);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...n)=>ve(e,[...t,...n]),omit:(...n)=>ve(e,t.filter(r=>!n.includes(r))),rename:n=>ve(n,t),keys:()=>t,build:()=>[...new Set(t)].reduce((n,r)=>Object.assign(n,{[r]:{selector:[`&[data-scope="${Ni(e)}"][data-part="${Ni(r)}"]`,`& [data-scope="${Ni(e)}"][data-part="${Ni(r)}"]`].join(", "),attrs:{"data-scope":Ni(e),"data-part":Ni(r)}}}),{})}),Ni=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),DN=e=>e.length===0,Aw=ve("collapsible").parts("root","trigger","content","indicator"),Vc=Aw.build(),zN=e=>e.ids?.root??`collapsible:${e.id}`,Qg=e=>e.ids?.content??`collapsible:${e.id}:content`,FN=e=>e.ids?.trigger??`collapsible:${e.id}:trigger`,ha=e=>e.getById(Qg(e));function MN(e,t){const{state:n,send:r,context:i,scope:a,prop:c}=e,u=n.matches("open")||n.matches("closing"),f=n.matches("open"),p=n.matches("closed"),{width:h,height:y}=i.get("size"),b=!!c("disabled"),v=c("collapsedHeight"),w=c("collapsedWidth"),x=v!=null,E=w!=null,O=x||E,N=!i.get("initial")&&f;return{disabled:b,visible:u,open:f,measureSize(){r({type:"size.measure"})},setOpen(R){n.matches("open")!==R&&r({type:R?"open":"close"})},getRootProps(){return t.element({...Vc.root.attrs,"data-state":f?"open":"closed",dir:c("dir"),id:zN(a)})},getContentProps(){return t.element({...Vc.content.attrs,id:Qg(a),"data-collapsible":"","data-state":N?void 0:f?"open":"closed","data-disabled":se(b),"data-has-collapsed-size":se(O),hidden:!u&&!O,dir:c("dir"),style:{"--height":it(y),"--width":it(h),"--collapsed-height":it(v),"--collapsed-width":it(w),...p&&x&&{overflow:"hidden",minHeight:it(v),maxHeight:it(v)},...p&&E&&{overflow:"hidden",minWidth:it(w),maxWidth:it(w)}}})},getTriggerProps(){return t.element({...Vc.trigger.attrs,id:FN(a),dir:c("dir"),type:"button","data-state":f?"open":"closed","data-disabled":se(b),"aria-controls":Qg(a),"aria-expanded":u||!1,onClick(R){R.defaultPrevented||b||r({type:f?"close":"open"})}})},getIndicatorProps(){return t.element({...Vc.indicator.attrs,dir:c("dir"),"data-state":f?"open":"closed","data-disabled":se(b)})}}}var BN={initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e}){return{size:e(()=>({defaultValue:{height:0,width:0},sync:!0})),initial:e(()=>({defaultValue:!1}))}},refs(){return{cleanup:void 0,stylesRef:void 0}},watch({track:e,prop:t,action:n}){e([()=>t("open")],()=>{n(["setInitial","computeSize","toggleVisibility"])})},exit:["cleanupNode"],states:{closed:{effects:["trackTabbableElements"],on:{"controlled.open":{target:"open"},open:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitial","computeSize","invokeOnOpen"]}]}},closing:{effects:["trackExitAnimation"],on:{"controlled.close":{target:"closed"},"controlled.open":{target:"open"},open:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitial","invokeOnOpen"]}],close:[{guard:"isOpenControlled",actions:["invokeOnExitComplete"]},{target:"closed",actions:["setInitial","computeSize","invokeOnExitComplete"]}],"animation.end":{target:"closed",actions:["invokeOnExitComplete","clearInitial"]}}},open:{effects:["trackEnterAnimation"],on:{"controlled.close":{target:"closing"},close:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closing",actions:["setInitial","computeSize","invokeOnClose"]}],"size.measure":{actions:["measureSize"]},"animation.end":{actions:["clearInitial"]}}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackEnterAnimation:({send:e,scope:t})=>{let n;const r=de(()=>{const i=ha(t);if(!i)return;const a=Ar(i).animationName;if(!a||a==="none"){e({type:"animation.end"});return}const u=f=>{at(f)===i&&e({type:"animation.end"})};i.addEventListener("animationend",u),n=()=>{i.removeEventListener("animationend",u)}});return()=>{r(),n?.()}},trackExitAnimation:({send:e,scope:t})=>{let n;const r=de(()=>{const i=ha(t);if(!i)return;const a=Ar(i).animationName;if(!a||a==="none"){e({type:"animation.end"});return}const u=p=>{at(p)===i&&e({type:"animation.end"})};i.addEventListener("animationend",u);const f=Za(i,{animationFillMode:"forwards"});n=()=>{i.removeEventListener("animationend",u),Wu(()=>f())}});return()=>{r(),n?.()}},trackTabbableElements:({scope:e,prop:t})=>{if(!t("collapsedHeight")&&!t("collapsedWidth"))return;const n=ha(e);if(!n)return;const r=()=>{const u=fs(n).map(f=>oN(f,"inert",""));return()=>{u.forEach(f=>f())}};let i=r();const a=jR(n,{callback(){i(),i=r()}});return()=>{i(),a()}}},actions:{setInitial:({context:e,flush:t})=>{t(()=>{e.set("initial",!0)})},clearInitial:({context:e})=>{e.set("initial",!1)},cleanupNode:({refs:e})=>{e.set("stylesRef",null)},measureSize:({context:e,scope:t})=>{const n=ha(t);if(!n)return;const{height:r,width:i}=n.getBoundingClientRect();e.set("size",{height:r,width:i})},computeSize:({refs:e,scope:t,context:n})=>{e.get("cleanup")?.();const r=de(()=>{const i=ha(t);if(!i)return;const a=i.hidden;i.style.animationName="none",i.style.animationDuration="0s",i.hidden=!1;const c=i.getBoundingClientRect();n.set("size",{height:c.height,width:c.width}),n.get("initial")&&(i.style.animationName="",i.style.animationDuration=""),i.hidden=a});e.set("cleanup",r)},invokeOnOpen:({prop:e})=>{e("onOpenChange")?.({open:!0})},invokeOnClose:({prop:e})=>{e("onOpenChange")?.({open:!1})},invokeOnExitComplete:({prop:e})=>{e("onExitComplete")?.()},toggleVisibility:({prop:e,send:t})=>{t({type:e("open")?"controlled.open":"controlled.close"})}}}};he()(["dir","disabled","getRootNode","id","ids","collapsedHeight","collapsedWidth","onExitComplete","onOpenChange","defaultOpen","open"]);const WN=(e={})=>{const{lazyMount:t,unmountOnExit:n,...r}=e,i=k.useId(),a=k.useRef(!1),{dir:c}=vn(),{getRootNode:u}=Ht(),f={id:i,dir:c,getRootNode:u,...r},p=Yt(BN,f),h=MN(p,sn);h.visible&&(a.current=!0);const y=!h.visible&&!a.current&&t||n&&!h.visible&&a.current;return{...h,isUnmounted:y}},[HN,Vw]=$e({name:"CollapsibleContext",hookName:"useCollapsibleContext",providerName:"<CollapsibleProvider />"}),_w=k.forwardRef((e,t)=>{const[n,r]=$N(e),i=WN(n),a=q(i.getRootProps(),r);return P.jsx(HN,{value:i,children:P.jsx(re.div,{...a,ref:t})})});_w.displayName="CollapsibleRoot";var jN=Object.defineProperty,GN=(e,t,n)=>t in e?jN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Yp=(e,t,n)=>GN(e,t+"",n),UN=(e,t)=>{if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0},Xp=class{toHexInt(){return this.toFormat("rgba").toHexInt()}getChannelValue(e){if(e in this)return this[e];throw new Error("Unsupported color channel: "+e)}getChannelValuePercent(e,t){const n=t??this.getChannelValue(e),{minValue:r,maxValue:i}=this.getChannelRange(e);return DO(n,r,i)}getChannelPercentValue(e,t){const{minValue:n,maxValue:r,step:i}=this.getChannelRange(e),a=zO(t,n,r,i);return tb(a,n,r,i)}withChannelValue(e,t){const{minValue:n,maxValue:r}=this.getChannelRange(e);if(e in this){let i=this.clone();return i[e]=Bt(t,n,r),i}throw new Error("Unsupported color channel: "+e)}getColorAxes(e){let{xChannel:t,yChannel:n}=e,r=t||this.getChannels().find(c=>c!==n),i=n||this.getChannels().find(c=>c!==r),a=this.getChannels().find(c=>c!==r&&c!==i);return{xChannel:r,yChannel:i,zChannel:a}}incrementChannel(e,t){const{minValue:n,maxValue:r,step:i}=this.getChannelRange(e),a=tb(Bt(this.getChannelValue(e)+t,n,r),n,r,i);return this.withChannelValue(e,a)}decrementChannel(e,t){return this.incrementChannel(e,-t)}isEqual(e){return UN(this.toJSON(),e.toJSON())&&this.getChannelValue("alpha")===e.getChannelValue("alpha")}},KN=/^#[\da-f]+$/i,YN=/^rgba?\((.*)\)$/,XN=/[^#]/gi,Lw=class ru extends Xp{constructor(t,n,r,i){super(),this.red=t,this.green=n,this.blue=r,this.alpha=i}static parse(t){let n=[];if(KN.test(t)&&[4,5,7,9].includes(t.length)){const i=(t.length<6?t.replace(XN,"$&$&"):t).slice(1).split("");for(;i.length>0;)n.push(parseInt(i.splice(0,2).join(""),16));n[3]=n[3]!==void 0?n[3]/255:void 0}const r=t.match(YN);return r?.[1]&&(n=r[1].split(",").map(i=>Number(i.trim())).map((i,a)=>Bt(i,0,a<3?255:1))),n.length<3?void 0:new ru(n[0],n[1],n[2],n[3]??1)}toString(t){switch(t){case"hex":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")).toUpperCase();case"hexa":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")+Math.round(this.alpha*255).toString(16).padStart(2,"0")).toUpperCase();case"rgb":return`rgb(${this.red}, ${this.green}, ${this.blue})`;case"css":case"rgba":return`rgba(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"hsb":return this.toHSB().toString("hsb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"rgba":return this;case"hsba":return this.toHSB();case"hsla":return this.toHSL();default:throw new Error("Unsupported color conversion: rgb -> "+t)}}toHexInt(){return this.red<<16|this.green<<8|this.blue}toHSB(){const t=this.red/255,n=this.green/255,r=this.blue/255,i=Math.min(t,n,r),a=Math.max(t,n,r),c=a-i,u=a===0?0:c/a;let f=0;if(c!==0){switch(a){case t:f=(n-r)/c+(n<r?6:0);break;case n:f=(r-t)/c+2;break;case r:f=(t-n)/c+4;break}f/=6}return new Zp(je(f*360,2),je(u*100,2),je(a*100,2),je(this.alpha,2))}toHSL(){const t=this.red/255,n=this.green/255,r=this.blue/255,i=Math.min(t,n,r),a=Math.max(t,n,r),c=(a+i)/2,u=a-i;let f=-1,p=-1;if(u===0)f=p=0;else{switch(p=u/(c<.5?a+i:2-a-i),a){case t:f=(n-r)/u+(n<r?6:0);break;case n:f=(r-t)/u+2;break;case r:f=(t-n)/u+4;break}f/=6}return new Qp(je(f*360,2),je(p*100,2),je(c*100,2),je(this.alpha,2))}clone(){return new ru(this.red,this.green,this.blue,this.alpha)}getChannelFormatOptions(t){switch(t){case"red":case"green":case"blue":return{style:"decimal"};case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+t)}}formatChannelValue(t,n){let r=this.getChannelFormatOptions(t),i=this.getChannelValue(t);return new Intl.NumberFormat(n,r).format(i)}getChannelRange(t){switch(t){case"red":case"green":case"blue":return{minValue:0,maxValue:255,step:1,pageSize:17};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+t)}}toJSON(){return{r:this.red,g:this.green,b:this.blue,a:this.alpha}}getFormat(){return"rgba"}getChannels(){return ru.colorChannels}};Yp(Lw,"colorChannels",["red","green","blue"]);var qp=Lw,qN=/hsl\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsla\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/,$w=class ou extends Xp{constructor(t,n,r,i){super(),this.hue=t,this.saturation=n,this.lightness=r,this.alpha=i}static parse(t){let n;if(n=t.match(qN)){const[r,i,a,c]=(n[1]??n[2]).split(",").map(u=>Number(u.trim().replace("%","")));return new ou(ew(r,360),Bt(i,0,100),Bt(a,0,100),Bt(c??1,0,1))}}toString(t){switch(t){case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsl":return`hsl(${this.hue}, ${je(this.saturation,2)}%, ${je(this.lightness,2)}%)`;case"css":case"hsla":return`hsla(${this.hue}, ${je(this.saturation,2)}%, ${je(this.lightness,2)}%, ${this.alpha})`;case"hsb":return this.toHSB().toString("hsb");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"hsla":return this;case"hsba":return this.toHSB();case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsl -> "+t)}}toHSB(){let t=this.saturation/100,n=this.lightness/100,r=n+t*Math.min(n,1-n);return t=r===0?0:2*(1-n/r),new Zp(je(this.hue,2),je(t*100,2),je(r*100,2),je(this.alpha,2))}toRGB(){let t=this.hue,n=this.saturation/100,r=this.lightness/100,i=n*Math.min(r,1-r),a=(c,u=(c+t/30)%12)=>r-i*Math.max(Math.min(u-3,9-u,1),-1);return new qp(Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255),je(this.alpha,2))}clone(){return new ou(this.hue,this.saturation,this.lightness,this.alpha)}getChannelFormatOptions(t){switch(t){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"lightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+t)}}formatChannelValue(t,n){let r=this.getChannelFormatOptions(t),i=this.getChannelValue(t);return(t==="saturation"||t==="lightness")&&(i/=100),new Intl.NumberFormat(n,r).format(i)}getChannelRange(t){switch(t){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"lightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+t)}}toJSON(){return{h:this.hue,s:this.saturation,l:this.lightness,a:this.alpha}}getFormat(){return"hsla"}getChannels(){return ou.colorChannels}};Yp($w,"colorChannels",["hue","saturation","lightness"]);var Qp=$w,QN=/hsb\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsba\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/,Dw=class iu extends Xp{constructor(t,n,r,i){super(),this.hue=t,this.saturation=n,this.brightness=r,this.alpha=i}static parse(t){let n;if(n=t.match(QN)){const[r,i,a,c]=(n[1]??n[2]).split(",").map(u=>Number(u.trim().replace("%","")));return new iu(ew(r,360),Bt(i,0,100),Bt(a,0,100),Bt(c??1,0,1))}}toString(t){switch(t){case"css":return this.toHSL().toString("css");case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsb":return`hsb(${this.hue}, ${je(this.saturation,2)}%, ${je(this.brightness,2)}%)`;case"hsba":return`hsba(${this.hue}, ${je(this.saturation,2)}%, ${je(this.brightness,2)}%, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"hsba":return this;case"hsla":return this.toHSL();case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsb -> "+t)}}toHSL(){let t=this.saturation/100,n=this.brightness/100,r=n*(1-t/2);return t=r===0||r===1?0:(n-r)/Math.min(r,1-r),new Qp(je(this.hue,2),je(t*100,2),je(r*100,2),je(this.alpha,2))}toRGB(){let t=this.hue,n=this.saturation/100,r=this.brightness/100,i=(a,c=(a+t/60)%6)=>r-n*r*Math.max(Math.min(c,4-c,1),0);return new qp(Math.round(i(5)*255),Math.round(i(3)*255),Math.round(i(1)*255),je(this.alpha,2))}clone(){return new iu(this.hue,this.saturation,this.brightness,this.alpha)}getChannelFormatOptions(t){switch(t){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"brightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+t)}}formatChannelValue(t,n){let r=this.getChannelFormatOptions(t),i=this.getChannelValue(t);return(t==="saturation"||t==="brightness")&&(i/=100),new Intl.NumberFormat(n,r).format(i)}getChannelRange(t){switch(t){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"brightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+t)}}toJSON(){return{h:this.hue,s:this.saturation,b:this.brightness,a:this.alpha}}getFormat(){return"hsba"}getChannels(){return iu.colorChannels}};Yp(Dw,"colorChannels",["hue","saturation","brightness"]);var Zp=Dw,ZN="aliceblue:f0f8ff,antiquewhite:faebd7,aqua:00ffff,aquamarine:7fffd4,azure:f0ffff,beige:f5f5dc,bisque:ffe4c4,black:000000,blanchedalmond:ffebcd,blue:0000ff,blueviolet:8a2be2,brown:a52a2a,burlywood:deb887,cadetblue:5f9ea0,chartreuse:7fff00,chocolate:d2691e,coral:ff7f50,cornflowerblue:6495ed,cornsilk:fff8dc,crimson:dc143c,cyan:00ffff,darkblue:00008b,darkcyan:008b8b,darkgoldenrod:b8860b,darkgray:a9a9a9,darkgreen:006400,darkkhaki:bdb76b,darkmagenta:8b008b,darkolivegreen:556b2f,darkorange:ff8c00,darkorchid:9932cc,darkred:8b0000,darksalmon:e9967a,darkseagreen:8fbc8f,darkslateblue:483d8b,darkslategray:2f4f4f,darkturquoise:00ced1,darkviolet:9400d3,deeppink:ff1493,deepskyblue:00bfff,dimgray:696969,dodgerblue:1e90ff,firebrick:b22222,floralwhite:fffaf0,forestgreen:228b22,fuchsia:ff00ff,gainsboro:dcdcdc,ghostwhite:f8f8ff,gold:ffd700,goldenrod:daa520,gray:808080,green:008000,greenyellow:adff2f,honeydew:f0fff0,hotpink:ff69b4,indianred:cd5c5c,indigo:4b0082,ivory:fffff0,khaki:f0e68c,lavender:e6e6fa,lavenderblush:fff0f5,lawngreen:7cfc00,lemonchiffon:fffacd,lightblue:add8e6,lightcoral:f08080,lightcyan:e0ffff,lightgoldenrodyellow:fafad2,lightgrey:d3d3d3,lightgreen:90ee90,lightpink:ffb6c1,lightsalmon:ffa07a,lightseagreen:20b2aa,lightskyblue:87cefa,lightslategray:778899,lightsteelblue:b0c4de,lightyellow:ffffe0,lime:00ff00,limegreen:32cd32,linen:faf0e6,magenta:ff00ff,maroon:800000,mediumaquamarine:66cdaa,mediumblue:0000cd,mediumorchid:ba55d3,mediumpurple:9370d8,mediumseagreen:3cb371,mediumslateblue:7b68ee,mediumspringgreen:00fa9a,mediumturquoise:48d1cc,mediumvioletred:c71585,midnightblue:191970,mintcream:f5fffa,mistyrose:ffe4e1,moccasin:ffe4b5,navajowhite:ffdead,navy:000080,oldlace:fdf5e6,olive:808000,olivedrab:6b8e23,orange:ffa500,orangered:ff4500,orchid:da70d6,palegoldenrod:eee8aa,palegreen:98fb98,paleturquoise:afeeee,palevioletred:d87093,papayawhip:ffefd5,peachpuff:ffdab9,peru:cd853f,pink:ffc0cb,plum:dda0dd,powderblue:b0e0e6,purple:800080,rebeccapurple:663399,red:ff0000,rosybrown:bc8f8f,royalblue:4169e1,saddlebrown:8b4513,salmon:fa8072,sandybrown:f4a460,seagreen:2e8b57,seashell:fff5ee,sienna:a0522d,silver:c0c0c0,skyblue:87ceeb,slateblue:6a5acd,slategray:708090,snow:fffafa,springgreen:00ff7f,steelblue:4682b4,tan:d2b48c,teal:008080,thistle:d8bfd8,tomato:ff6347,turquoise:40e0d0,violet:ee82ee,wheat:f5deb3,white:ffffff,whitesmoke:f5f5f5,yellow:ffff00,yellowgreen:9acd32",JN=e=>{const t=new Map,n=e.split(",");for(let r=0;r<n.length;r++){const[i,a]=n[r].split(":");t.set(i,`#${a}`),i.includes("gray")&&t.set(i.replace("gray","grey"),`#${a}`)}return t},gb=JN(ZN),wu=e=>{if(gb.has(e))return wu(gb.get(e));const t=qp.parse(e)||Zp.parse(e)||Qp.parse(e);if(!t){const n=new Error("Invalid color value: "+e);throw Error.captureStackTrace?.(n,wu),n}return t};const eA=["top","right","bottom","left"],Gn=Math.min,mt=Math.max,lo=Math.round,so=Math.floor,lt=e=>({x:e,y:e}),tA={left:"right",right:"left",bottom:"top",top:"bottom"},nA={start:"end",end:"start"};function Zg(e,t,n){return mt(e,Gn(t,n))}function Vr(e,t){return typeof e=="function"?e(t):e}function _r(e){return e.split("-")[0]}function hs(e){return e.split("-")[1]}function Jp(e){return e==="x"?"y":"x"}function eh(e){return e==="y"?"height":"width"}const rA=new Set(["top","bottom"]);function or(e){return rA.has(_r(e))?"y":"x"}function th(e){return Jp(or(e))}function oA(e,t,n){n===void 0&&(n=!1);const r=hs(e),i=th(e),a=eh(i);let c=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(c=Cu(c)),[c,Cu(c)]}function iA(e){const t=Cu(e);return[Jg(e),t,Jg(t)]}function Jg(e){return e.replace(/start|end/g,t=>nA[t])}const pb=["left","right"],hb=["right","left"],sA=["top","bottom"],aA=["bottom","top"];function lA(e,t,n){switch(e){case"top":case"bottom":return n?t?hb:pb:t?pb:hb;case"left":case"right":return t?sA:aA;default:return[]}}function cA(e,t,n,r){const i=hs(e);let a=lA(_r(e),n==="start",r);return i&&(a=a.map(c=>c+"-"+i),t&&(a=a.concat(a.map(Jg)))),a}function Cu(e){return e.replace(/left|right|bottom|top/g,t=>tA[t])}function uA(e){return{top:0,right:0,bottom:0,left:0,...e}}function zw(e){return typeof e!="number"?uA(e):{top:e,right:e,bottom:e,left:e}}function as(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function mb(e,t,n){let{reference:r,floating:i}=e;const a=or(t),c=th(t),u=eh(c),f=_r(t),p=a==="y",h=r.x+r.width/2-i.width/2,y=r.y+r.height/2-i.height/2,b=r[u]/2-i[u]/2;let v;switch(f){case"top":v={x:h,y:r.y-i.height};break;case"bottom":v={x:h,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y};break;case"left":v={x:r.x-i.width,y};break;default:v={x:r.x,y:r.y}}switch(hs(t)){case"start":v[c]-=b*(n&&p?-1:1);break;case"end":v[c]+=b*(n&&p?-1:1);break}return v}async function dA(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:a,rects:c,elements:u,strategy:f}=e,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:y="floating",altBoundary:b=!1,padding:v=0}=Vr(t,e),w=zw(v),E=u[b?y==="floating"?"reference":"floating":y],O=as(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(E)))==null||n?E:E.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(u.floating)),boundary:p,rootBoundary:h,strategy:f})),N=y==="floating"?{x:r,y:i,width:c.floating.width,height:c.floating.height}:c.reference,R=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u.floating)),S=await(a.isElement==null?void 0:a.isElement(R))?await(a.getScale==null?void 0:a.getScale(R))||{x:1,y:1}:{x:1,y:1},T=as(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:N,offsetParent:R,strategy:f}):N);return{top:(O.top-T.top+w.top)/S.y,bottom:(T.bottom-O.bottom+w.bottom)/S.y,left:(O.left-T.left+w.left)/S.x,right:(T.right-O.right+w.right)/S.x}}const Fw=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:c}=n,u=a.filter(Boolean),f=await(c.isRTL==null?void 0:c.isRTL(t));let p=await c.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y}=mb(p,r,f),b=r,v={},w=0;for(let E=0;E<u.length;E++){var x;const{name:O,fn:N}=u[E],{x:R,y:S,data:T,reset:L}=await N({x:h,y,initialPlacement:r,placement:b,strategy:i,middlewareData:v,rects:p,platform:{...c,detectOverflow:(x=c.detectOverflow)!=null?x:dA},elements:{reference:e,floating:t}});h=R??h,y=S??y,v={...v,[O]:{...v[O],...T}},L&&w<=50&&(w++,typeof L=="object"&&(L.placement&&(b=L.placement),L.rects&&(p=L.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:i}):L.rects),{x:h,y}=mb(p,b,f)),E=-1)}return{x:h,y,placement:b,strategy:i,middlewareData:v}},Mw=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:a,platform:c,elements:u,middlewareData:f}=t,{element:p,padding:h=0}=Vr(e,t)||{};if(p==null)return{};const y=zw(h),b={x:n,y:r},v=th(i),w=eh(v),x=await c.getDimensions(p),E=v==="y",O=E?"top":"left",N=E?"bottom":"right",R=E?"clientHeight":"clientWidth",S=a.reference[w]+a.reference[v]-b[v]-a.floating[w],T=b[v]-a.reference[v],L=await(c.getOffsetParent==null?void 0:c.getOffsetParent(p));let M=L?L[R]:0;(!M||!await(c.isElement==null?void 0:c.isElement(L)))&&(M=u.floating[R]||a.floating[w]);const B=S/2-T/2,j=M/2-x[w]/2-1,W=Gn(y[O],j),U=Gn(y[N],j),$=W,H=M-x[w]-U,ae=M/2-x[w]/2+B,ne=Zg($,ae,H),ce=!f.arrow&&hs(i)!=null&&ae!==ne&&a.reference[w]/2-(ae<$?W:U)-x[w]/2<0,me=ce?ae<$?ae-$:ae-H:0;return{[v]:b[v]+me,data:{[v]:ne,centerOffset:ae-ne-me,...ce&&{alignmentOffset:me}},reset:ce}}}),Bw=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:a,rects:c,initialPlacement:u,platform:f,elements:p}=t,{mainAxis:h=!0,crossAxis:y=!0,fallbackPlacements:b,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:x=!0,...E}=Vr(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const O=_r(i),N=or(u),R=_r(u)===u,S=await(f.isRTL==null?void 0:f.isRTL(p.floating)),T=b||(R||!x?[Cu(u)]:iA(u)),L=w!=="none";!b&&L&&T.push(...cA(u,x,w,S));const M=[u,...T],B=await f.detectOverflow(t,E),j=[];let W=((r=a.flip)==null?void 0:r.overflows)||[];if(h&&j.push(B[O]),y){const ae=oA(i,c,S);j.push(B[ae[0]],B[ae[1]])}if(W=[...W,{placement:i,overflows:j}],!j.every(ae=>ae<=0)){var U,$;const ae=(((U=a.flip)==null?void 0:U.index)||0)+1,ne=M[ae];if(ne&&(!(y==="alignment"?N!==or(ne):!1)||W.every(oe=>or(oe.placement)===N?oe.overflows[0]>0:!0)))return{data:{index:ae,overflows:W},reset:{placement:ne}};let ce=($=W.filter(me=>me.overflows[0]<=0).sort((me,oe)=>me.overflows[1]-oe.overflows[1])[0])==null?void 0:$.placement;if(!ce)switch(v){case"bestFit":{var H;const me=(H=W.filter(oe=>{if(L){const ee=or(oe.placement);return ee===N||ee==="y"}return!0}).map(oe=>[oe.placement,oe.overflows.filter(ee=>ee>0).reduce((ee,Z)=>ee+Z,0)]).sort((oe,ee)=>oe[1]-ee[1])[0])==null?void 0:H[0];me&&(ce=me);break}case"initialPlacement":ce=u;break}if(i!==ce)return{reset:{placement:ce}}}return{}}}};function vb(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function yb(e){return eA.some(t=>e[t]>=0)}const Ww=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:i="referenceHidden",...a}=Vr(e,t);switch(i){case"referenceHidden":{const c=await r.detectOverflow(t,{...a,elementContext:"reference"}),u=vb(c,n.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:yb(u)}}}case"escaped":{const c=await r.detectOverflow(t,{...a,altBoundary:!0}),u=vb(c,n.floating);return{data:{escapedOffsets:u,escaped:yb(u)}}}default:return{}}}}},Hw=new Set(["left","top"]);async function fA(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),c=_r(n),u=hs(n),f=or(n)==="y",p=Hw.has(c)?-1:1,h=a&&f?-1:1,y=Vr(t,e);let{mainAxis:b,crossAxis:v,alignmentAxis:w}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return u&&typeof w=="number"&&(v=u==="end"?w*-1:w),f?{x:v*h,y:b*p}:{x:b*p,y:v*h}}const jw=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:a,placement:c,middlewareData:u}=t,f=await fA(t,e);return c===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:i+f.x,y:a+f.y,data:{...f,placement:c}}}}},Gw=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i,platform:a}=t,{mainAxis:c=!0,crossAxis:u=!1,limiter:f={fn:O=>{let{x:N,y:R}=O;return{x:N,y:R}}},...p}=Vr(e,t),h={x:n,y:r},y=await a.detectOverflow(t,p),b=or(_r(i)),v=Jp(b);let w=h[v],x=h[b];if(c){const O=v==="y"?"top":"left",N=v==="y"?"bottom":"right",R=w+y[O],S=w-y[N];w=Zg(R,w,S)}if(u){const O=b==="y"?"top":"left",N=b==="y"?"bottom":"right",R=x+y[O],S=x-y[N];x=Zg(R,x,S)}const E=f.fn({...t,[v]:w,[b]:x});return{...E,data:{x:E.x-n,y:E.y-r,enabled:{[v]:c,[b]:u}}}}}},Uw=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:a,middlewareData:c}=t,{offset:u=0,mainAxis:f=!0,crossAxis:p=!0}=Vr(e,t),h={x:n,y:r},y=or(i),b=Jp(y);let v=h[b],w=h[y];const x=Vr(u,t),E=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(f){const R=b==="y"?"height":"width",S=a.reference[b]-a.floating[R]+E.mainAxis,T=a.reference[b]+a.reference[R]-E.mainAxis;v<S?v=S:v>T&&(v=T)}if(p){var O,N;const R=b==="y"?"width":"height",S=Hw.has(_r(i)),T=a.reference[y]-a.floating[R]+(S&&((O=c.offset)==null?void 0:O[y])||0)+(S?0:E.crossAxis),L=a.reference[y]+a.reference[R]+(S?0:((N=c.offset)==null?void 0:N[y])||0)-(S?E.crossAxis:0);w<T?w=T:w>L&&(w=L)}return{[b]:v,[y]:w}}}},Kw=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:a,platform:c,elements:u}=t,{apply:f=()=>{},...p}=Vr(e,t),h=await c.detectOverflow(t,p),y=_r(i),b=hs(i),v=or(i)==="y",{width:w,height:x}=a.floating;let E,O;y==="top"||y==="bottom"?(E=y,O=b===(await(c.isRTL==null?void 0:c.isRTL(u.floating))?"start":"end")?"left":"right"):(O=y,E=b==="end"?"top":"bottom");const N=x-h.top-h.bottom,R=w-h.left-h.right,S=Gn(x-h[E],N),T=Gn(w-h[O],R),L=!t.middlewareData.shift;let M=S,B=T;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(B=R),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(M=N),L&&!b){const W=mt(h.left,0),U=mt(h.right,0),$=mt(h.top,0),H=mt(h.bottom,0);v?B=w-2*(W!==0||U!==0?W+U:mt(h.left,h.right)):M=x-2*($!==0||H!==0?$+H:mt(h.top,h.bottom))}await f({...t,availableWidth:B,availableHeight:M});const j=await c.getDimensions(u.floating);return w!==j.width||x!==j.height?{reset:{rects:!0}}:{}}}};function Uu(){return typeof window<"u"}function Lr(e){return Yw(e)?(e.nodeName||"").toLowerCase():"#document"}function ct(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function vt(e){var t;return(t=(Yw(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Yw(e){return Uu()?e instanceof Node||e instanceof ct(e).Node:!1}function ut(e){return Uu()?e instanceof Element||e instanceof ct(e).Element:!1}function kt(e){return Uu()?e instanceof HTMLElement||e instanceof ct(e).HTMLElement:!1}function bb(e){return!Uu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ct(e).ShadowRoot}const gA=new Set(["inline","contents"]);function go(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=dt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!gA.has(i)}const pA=new Set(["table","td","th"]);function Xw(e){return pA.has(Lr(e))}const hA=[":popover-open",":modal"];function ni(e){return hA.some(t=>{try{return e.matches(t)}catch{return!1}})}const mA=["transform","translate","scale","rotate","perspective"],vA=["transform","translate","scale","rotate","perspective","filter"],yA=["paint","layout","strict","content"];function il(e){const t=sl(),n=ut(e)?dt(e):e;return mA.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||vA.some(r=>(n.willChange||"").includes(r))||yA.some(r=>(n.contain||"").includes(r))}function qw(e){let t=mn(e);for(;kt(t)&&!ar(t);){if(il(t))return t;if(ni(t))return null;t=mn(t)}return null}function sl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const bA=new Set(["html","body","#document"]);function ar(e){return bA.has(Lr(e))}function dt(e){return ct(e).getComputedStyle(e)}function po(e){return ut(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function mn(e){if(Lr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||bb(e)&&e.host||vt(e);return bb(t)?t.host:t}function Qw(e){const t=mn(e);return ar(t)?e.ownerDocument?e.ownerDocument.body:e.body:kt(t)&&go(t)?t:Qw(t)}function co(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Qw(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),c=ct(i);if(a){const u=Ja(c);return t.concat(c,c.visualViewport||[],go(i)?i:[],u&&n?co(u):[])}return t.concat(i,co(i,[],n))}function Ja(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Zw(e){const t=dt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=kt(e),a=i?e.offsetWidth:n,c=i?e.offsetHeight:r,u=lo(n)!==a||lo(r)!==c;return u&&(n=a,r=c),{width:n,height:r,$:u}}function nh(e){return ut(e)?e:e.contextElement}function ns(e){const t=nh(e);if(!kt(t))return lt(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Zw(t);let c=(a?lo(n.width):n.width)/r,u=(a?lo(n.height):n.height)/i;return(!c||!Number.isFinite(c))&&(c=1),(!u||!Number.isFinite(u))&&(u=1),{x:c,y:u}}const xA=lt(0);function Jw(e){const t=ct(e);return!sl()||!t.visualViewport?xA:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function wA(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ct(e)?!1:t}function Xo(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=nh(e);let c=lt(1);t&&(r?ut(r)&&(c=ns(r)):c=ns(e));const u=wA(a,n,r)?Jw(a):lt(0);let f=(i.left+u.x)/c.x,p=(i.top+u.y)/c.y,h=i.width/c.x,y=i.height/c.y;if(a){const b=ct(a),v=r&&ut(r)?ct(r):r;let w=b,x=Ja(w);for(;x&&r&&v!==w;){const E=ns(x),O=x.getBoundingClientRect(),N=dt(x),R=O.left+(x.clientLeft+parseFloat(N.paddingLeft))*E.x,S=O.top+(x.clientTop+parseFloat(N.paddingTop))*E.y;f*=E.x,p*=E.y,h*=E.x,y*=E.y,f+=R,p+=S,w=ct(x),x=Ja(w)}}return as({width:h,height:y,x:f,y:p})}function Ku(e,t){const n=po(e).scrollLeft;return t?t.left+n:Xo(vt(e)).left+n}function eC(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Ku(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function CA(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",c=vt(r),u=t?ni(t.floating):!1;if(r===c||u&&a)return n;let f={scrollLeft:0,scrollTop:0},p=lt(1);const h=lt(0),y=kt(r);if((y||!y&&!a)&&((Lr(r)!=="body"||go(c))&&(f=po(r)),kt(r))){const v=Xo(r);p=ns(r),h.x=v.x+r.clientLeft,h.y=v.y+r.clientTop}const b=c&&!y&&!a?eC(c,f):lt(0);return{width:n.width*p.x,height:n.height*p.y,x:n.x*p.x-f.scrollLeft*p.x+h.x+b.x,y:n.y*p.y-f.scrollTop*p.y+h.y+b.y}}function SA(e){return Array.from(e.getClientRects())}function EA(e){const t=vt(e),n=po(e),r=e.ownerDocument.body,i=mt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=mt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let c=-n.scrollLeft+Ku(e);const u=-n.scrollTop;return dt(r).direction==="rtl"&&(c+=mt(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:c,y:u}}const xb=25;function kA(e,t){const n=ct(e),r=vt(e),i=n.visualViewport;let a=r.clientWidth,c=r.clientHeight,u=0,f=0;if(i){a=i.width,c=i.height;const h=sl();(!h||h&&t==="fixed")&&(u=i.offsetLeft,f=i.offsetTop)}const p=Ku(r);if(p<=0){const h=r.ownerDocument,y=h.body,b=getComputedStyle(y),v=h.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,w=Math.abs(r.clientWidth-y.clientWidth-v);w<=xb&&(a-=w)}else p<=xb&&(a+=p);return{width:a,height:c,x:u,y:f}}const PA=new Set(["absolute","fixed"]);function IA(e,t){const n=Xo(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=kt(e)?ns(e):lt(1),c=e.clientWidth*a.x,u=e.clientHeight*a.y,f=i*a.x,p=r*a.y;return{width:c,height:u,x:f,y:p}}function wb(e,t,n){let r;if(t==="viewport")r=kA(e,n);else if(t==="document")r=EA(vt(e));else if(ut(t))r=IA(t,n);else{const i=Jw(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return as(r)}function tC(e,t){const n=mn(e);return n===t||!ut(n)||ar(n)?!1:dt(n).position==="fixed"||tC(n,t)}function TA(e,t){const n=t.get(e);if(n)return n;let r=co(e,[],!1).filter(u=>ut(u)&&Lr(u)!=="body"),i=null;const a=dt(e).position==="fixed";let c=a?mn(e):e;for(;ut(c)&&!ar(c);){const u=dt(c),f=il(c);!f&&u.position==="fixed"&&(i=null),(a?!f&&!i:!f&&u.position==="static"&&!!i&&PA.has(i.position)||go(c)&&!f&&tC(e,c))?r=r.filter(h=>h!==c):i=u,c=mn(c)}return t.set(e,r),r}function OA(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const c=[...n==="clippingAncestors"?ni(t)?[]:TA(t,this._c):[].concat(n),r],u=c[0],f=c.reduce((p,h)=>{const y=wb(t,h,i);return p.top=mt(y.top,p.top),p.right=Gn(y.right,p.right),p.bottom=Gn(y.bottom,p.bottom),p.left=mt(y.left,p.left),p},wb(t,u,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function RA(e){const{width:t,height:n}=Zw(e);return{width:t,height:n}}function NA(e,t,n){const r=kt(t),i=vt(t),a=n==="fixed",c=Xo(e,!0,a,t);let u={scrollLeft:0,scrollTop:0};const f=lt(0);function p(){f.x=Ku(i)}if(r||!r&&!a)if((Lr(t)!=="body"||go(i))&&(u=po(t)),r){const v=Xo(t,!0,a,t);f.x=v.x+t.clientLeft,f.y=v.y+t.clientTop}else i&&p();a&&!r&&i&&p();const h=i&&!r&&!a?eC(i,u):lt(0),y=c.left+u.scrollLeft-f.x-h.x,b=c.top+u.scrollTop-f.y-h.y;return{x:y,y:b,width:c.width,height:c.height}}function bg(e){return dt(e).position==="static"}function Cb(e,t){if(!kt(e)||dt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return vt(e)===n&&(n=n.ownerDocument.body),n}function nC(e,t){const n=ct(e);if(ni(e))return n;if(!kt(e)){let i=mn(e);for(;i&&!ar(i);){if(ut(i)&&!bg(i))return i;i=mn(i)}return n}let r=Cb(e,t);for(;r&&Xw(r)&&bg(r);)r=Cb(r,t);return r&&ar(r)&&bg(r)&&!il(r)?n:r||qw(e)||n}const AA=async function(e){const t=this.getOffsetParent||nC,n=this.getDimensions,r=await n(e.floating);return{reference:NA(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function VA(e){return dt(e).direction==="rtl"}const _A={convertOffsetParentRelativeRectToViewportRelativeRect:CA,getDocumentElement:vt,getClippingRect:OA,getOffsetParent:nC,getElementRects:AA,getClientRects:SA,getDimensions:RA,getScale:ns,isElement:ut,isRTL:VA};function rC(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function LA(e,t){let n=null,r;const i=vt(e);function a(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function c(u,f){u===void 0&&(u=!1),f===void 0&&(f=1),a();const p=e.getBoundingClientRect(),{left:h,top:y,width:b,height:v}=p;if(u||t(),!b||!v)return;const w=so(y),x=so(i.clientWidth-(h+b)),E=so(i.clientHeight-(y+v)),O=so(h),R={rootMargin:-w+"px "+-x+"px "+-E+"px "+-O+"px",threshold:mt(0,Gn(1,f))||1};let S=!0;function T(L){const M=L[0].intersectionRatio;if(M!==f){if(!S)return c();M?c(!1,M):r=setTimeout(()=>{c(!1,1e-7)},1e3)}M===1&&!rC(p,e.getBoundingClientRect())&&c(),S=!1}try{n=new IntersectionObserver(T,{...R,root:i.ownerDocument})}catch{n=new IntersectionObserver(T,R)}n.observe(e)}return c(!0),a}function $A(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,p=nh(e),h=i||a?[...p?co(p):[],...co(t)]:[];h.forEach(O=>{i&&O.addEventListener("scroll",n,{passive:!0}),a&&O.addEventListener("resize",n)});const y=p&&u?LA(p,n):null;let b=-1,v=null;c&&(v=new ResizeObserver(O=>{let[N]=O;N&&N.target===p&&v&&(v.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var R;(R=v)==null||R.observe(t)})),n()}),p&&!f&&v.observe(p),v.observe(t));let w,x=f?Xo(e):null;f&&E();function E(){const O=Xo(e);x&&!rC(x,O)&&n(),x=O,w=requestAnimationFrame(E)}return n(),()=>{var O;h.forEach(N=>{i&&N.removeEventListener("scroll",n),a&&N.removeEventListener("resize",n)}),y?.(),(O=v)==null||O.disconnect(),v=null,f&&cancelAnimationFrame(w)}}const DA=jw,zA=Gw,FA=Bw,MA=Kw,BA=Ww,WA=Mw,HA=Uw,jA=(e,t,n)=>{const r=new Map,i={platform:_A,...n},a={...i.platform,_c:r};return Fw(e,t,{...i,platform:a})};function Sb(e=0,t=0,n=0,r=0){if(typeof DOMRect=="function")return new DOMRect(e,t,n,r);const i={x:e,y:t,width:n,height:r,top:t,right:e+n,bottom:t+r,left:e};return{...i,toJSON:()=>i}}function GA(e){if(!e)return Sb();const{x:t,y:n,width:r,height:i}=e;return Sb(t,n,r,i)}function UA(e,t){return{contextElement:Et(e)?e:e?.contextElement,getBoundingClientRect:()=>{const n=e,r=t?.(n);return r||!n?GA(r):n.getBoundingClientRect()}}}var ma=e=>({variable:e,reference:`var(${e})`}),Pr={arrowSize:ma("--arrow-size"),arrowSizeHalf:ma("--arrow-size-half"),arrowBg:ma("--arrow-background"),transformOrigin:ma("--transform-origin"),arrowOffset:ma("--arrow-offset")},KA=e=>e==="top"||e==="bottom"?"y":"x";function YA(e,t){return{name:"transformOrigin",fn(n){const{elements:r,middlewareData:i,placement:a,rects:c,y:u}=n,f=a.split("-")[0],p=KA(f),h=i.arrow?.x||0,y=i.arrow?.y||0,b=t?.clientWidth||0,v=t?.clientHeight||0,w=h+b/2,x=y+v/2,E=Math.abs(i.shift?.y||0),O=c.reference.height/2,N=v/2,R=e.offset?.mainAxis??e.gutter,S=typeof R=="number"?R+N:R??N,T=E>S,L={top:`${w}px calc(100% + ${S}px)`,bottom:`${w}px ${-S}px`,left:`calc(100% + ${S}px) ${x}px`,right:`${-S}px ${x}px`}[f],M=`${w}px ${c.reference.y+O-u}px`,B=!!e.overlap&&p==="y"&&T;return r.floating.style.setProperty(Pr.transformOrigin.variable,B?M:L),{data:{transformOrigin:B?M:L}}}}}var XA={name:"rects",fn({rects:e}){return{data:e}}},qA=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:n}){if(!n.arrow)return{};const{x:r,y:i}=n.arrow,a=t.split("-")[0];return Object.assign(e.style,{left:r!=null?`${r}px`:"",top:i!=null?`${i}px`:"",[a]:`calc(100% + ${Pr.arrowOffset.reference})`}),{}}}};function QA(e){const[t,n]=e.split("-");return{side:t,align:n,hasAlign:n!=null}}var ZA={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function Eb(e,t){const n=e.devicePixelRatio||1;return Math.round(t*n)/n}function rh(e){return typeof e=="function"?e():e==="clipping-ancestors"?"clippingAncestors":e}function JA(e,t,n){const r=e||t.createElement("div");return WA({element:r,padding:n.arrowPadding})}function eV(e,t){if(!bO(t.offset??t.gutter))return DA(({placement:n})=>{const r=(e?.clientHeight||0)/2,i=t.offset?.mainAxis??t.gutter,a=typeof i=="number"?i+r:i??r,{hasAlign:c}=QA(n),u=c?void 0:t.shift,f=t.offset?.crossAxis??u;return ds({crossAxis:f,mainAxis:a,alignmentAxis:t.shift})})}function tV(e){if(!e.flip)return;const t=rh(e.boundary);return FA({...t?{boundary:t}:void 0,padding:e.overflowPadding,fallbackPlacements:e.flip===!0?void 0:e.flip})}function nV(e){if(!e.slide&&!e.overlap)return;const t=rh(e.boundary);return zA({...t?{boundary:t}:void 0,mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:HA()})}function rV(e){return MA({padding:e.overflowPadding,apply({elements:t,rects:n,availableHeight:r,availableWidth:i}){const a=t.floating,c=Math.round(n.reference.width),u=Math.round(n.reference.height);i=Math.floor(i),r=Math.floor(r),a.style.setProperty("--reference-width",`${c}px`),a.style.setProperty("--reference-height",`${u}px`),a.style.setProperty("--available-width",`${i}px`),a.style.setProperty("--available-height",`${r}px`)}})}function oV(e){if(e.hideWhenDetached)return BA({strategy:"referenceHidden",boundary:rh(e.boundary)??"clippingAncestors"})}function iV(e){return e?e===!0?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}function sV(e,t,n={}){const r=n.getAnchorElement?.()??e,i=UA(r,n.getAnchorRect);if(!t||!i)return;const a=Object.assign({},ZA,n),c=t.querySelector("[data-part=arrow]"),u=[eV(c,a),tV(a),nV(a),JA(c,t.ownerDocument,a),qA(c),YA({gutter:a.gutter,offset:a.offset,overlap:a.overlap},c),rV(a),oV(a),XA],{placement:f,strategy:p,onComplete:h,onPositioned:y}=a,b=async()=>{if(!i||!t)return;const E=await jA(i,t,{placement:f,middleware:u,strategy:p});h?.(E),y?.({placed:!0});const O=et(t),N=Eb(O,E.x),R=Eb(O,E.y);t.style.setProperty("--x",`${N}px`),t.style.setProperty("--y",`${R}px`),a.hideWhenDetached&&(E.middlewareData.hide?.referenceHidden?(t.style.setProperty("visibility","hidden"),t.style.setProperty("pointer-events","none")):(t.style.removeProperty("visibility"),t.style.removeProperty("pointer-events")));const S=t.firstElementChild;if(S){const T=Ar(S);t.style.setProperty("--z-index",T.zIndex)}},v=async()=>{n.updatePosition?(await n.updatePosition({updatePosition:b,floatingElement:t}),y?.({placed:!0})):await b()},w=iV(a.listeners),x=a.listeners?$A(i,t,v,w):IO;return v(),()=>{x?.(),y?.({placed:!1})}}function Un(e,t,n={}){const{defer:r,...i}=n,a=r?de:u=>u(),c=[];return c.push(a(()=>{const u=typeof e=="function"?e():e,f=typeof t=="function"?t():t;c.push(sV(u,f,i))})),()=>{c.forEach(u=>u?.())}}var aV={bottom:"rotate(45deg)",left:"rotate(135deg)",top:"rotate(225deg)",right:"rotate(315deg)"};function oh(e={}){const{placement:t,sameWidth:n,fitViewport:r,strategy:i="absolute"}=e;return{arrow:{position:"absolute",width:Pr.arrowSize.reference,height:Pr.arrowSize.reference,[Pr.arrowSizeHalf.variable]:`calc(${Pr.arrowSize.reference} / 2)`,[Pr.arrowOffset.variable]:`calc(${Pr.arrowSizeHalf.reference} * -1)`},arrowTip:{transform:t?aV[t.split("-")[0]]:void 0,background:Pr.arrowBg.reference,top:"0",left:"0",width:"100%",height:"100%",position:"absolute",zIndex:"inherit"},floating:{position:i,isolation:"isolate",minWidth:n?void 0:"max-content",width:n?"var(--reference-width)":void 0,maxWidth:r?"var(--available-width)":void 0,maxHeight:r?"var(--available-height)":void 0,pointerEvents:t?void 0:"none",top:"0px",left:"0px",transform:t?"translate3d(var(--x), var(--y), 0)":"translate3d(0, -100vh, 0)",zIndex:"var(--z-index)"}}}function lV(e){const t={each(n){for(let r=0;r<e.frames?.length;r+=1){const i=e.frames[r];i&&n(i)}},addEventListener(n,r,i){return t.each(a=>{try{a.document.addEventListener(n,r,i)}catch{}}),()=>{try{t.removeEventListener(n,r,i)}catch{}}},removeEventListener(n,r,i){t.each(a=>{try{a.document.removeEventListener(n,r,i)}catch{}})}};return t}function cV(e){const t=e.frameElement!=null?e.parent:null;return{addEventListener:(n,r,i)=>{try{t?.addEventListener(n,r,i)}catch{}return()=>{try{t?.removeEventListener(n,r,i)}catch{}}},removeEventListener:(n,r,i)=>{try{t?.removeEventListener(n,r,i)}catch{}}}}var kb="pointerdown.outside",Pb="focus.outside";function uV(e){for(const t of e)if(Et(t)&&Nr(t))return!0;return!1}var oC=e=>"clientY"in e;function dV(e,t){if(!oC(t)||!e)return!1;const n=e.getBoundingClientRect();return n.width===0||n.height===0?!1:n.top<=t.clientY&&t.clientY<=n.top+n.height&&n.left<=t.clientX&&t.clientX<=n.left+n.width}function fV(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function Ib(e,t){if(!t||!oC(e))return!1;const n=t.scrollHeight>t.clientHeight,r=n&&e.clientX>t.offsetLeft+t.clientWidth,i=t.scrollWidth>t.clientWidth,a=i&&e.clientY>t.offsetTop+t.clientHeight,c={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(n?16:0),height:t.clientHeight+(i?16:0)},u={x:e.clientX,y:e.clientY};return fV(c,u)?r||a:!1}function gV(e,t){const{exclude:n,onFocusOutside:r,onPointerDownOutside:i,onInteractOutside:a,defer:c,followControlledElements:u=!0}=t;if(!e)return;const f=Kt(e),p=et(e),h=lV(p),y=cV(p);function b(R,S){if(!Et(S)||!S.isConnected||Hn(e,S)||dV(e,R)||u&&lw(e,S))return!1;const T=f.querySelector(`[aria-controls="${e.id}"]`);if(T){const M=vu(T);if(Ib(R,M))return!1}const L=vu(e);return Ib(R,L)?!1:!n?.(S)}const v=new Set,w=Uo(e?.getRootNode());function x(R){function S(T){const L=c&&!ob()?de:j=>j(),M=T??R,B=M?.composedPath?.()??[M?.target];L(()=>{const j=w?B[0]:at(R);if(!(!e||!b(R,j))){if(i||a){const W=ss(i,a);e.addEventListener(kb,W,{once:!0})}Tb(e,kb,{bubbles:!1,cancelable:!0,detail:{originalEvent:M,contextmenu:PR(M),focusable:uV(B),target:j}})}})}R.pointerType==="touch"?(v.forEach(T=>T()),v.add(Re(f,"click",S,{once:!0})),v.add(y.addEventListener("click",S,{once:!0})),v.add(h.addEventListener("click",S,{once:!0}))):S()}const E=new Set,O=setTimeout(()=>{E.add(Re(f,"pointerdown",x,!0)),E.add(y.addEventListener("pointerdown",x,!0)),E.add(h.addEventListener("pointerdown",x,!0))},0);function N(R){(c?de:T=>T())(()=>{const T=R?.composedPath?.()??[R?.target],L=w?T[0]:at(R);if(!(!e||!b(R,L))){if(r||a){const M=ss(r,a);e.addEventListener(Pb,M,{once:!0})}Tb(e,Pb,{bubbles:!1,cancelable:!0,detail:{originalEvent:R,contextmenu:!1,focusable:Nr(L),target:L}})}})}return ob()||(E.add(Re(f,"focusin",N,!0)),E.add(y.addEventListener("focusin",N,!0)),E.add(h.addEventListener("focusin",N,!0))),()=>{clearTimeout(O),v.forEach(R=>R()),E.forEach(R=>R())}}function iC(e,t){const{defer:n}=t,r=n?de:a=>a(),i=[];return i.push(r(()=>{const a=typeof e=="function"?e():e;i.push(gV(a,t))})),()=>{i.forEach(a=>a?.())}}function Tb(e,t,n){const r=e.ownerDocument.defaultView||window,i=new r.CustomEvent(t,n);return e.dispatchEvent(i)}function pV(e,t){const n=r=>{r.key==="Escape"&&(r.isComposing||t?.(r))};return Re(Kt(e),"keydown",n,{capture:!0})}var Ob="layer:request-dismiss",tn={layers:[],branches:[],count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){const t=this.indexOf(e),n=this.topMostPointerBlockingLayer()?this.indexOf(this.topMostPointerBlockingLayer()?.node):-1;return t<n},isTopMost(e){return this.layers[this.count()-1]?.node===e},getNestedLayers(e){return Array.from(this.layers).slice(this.indexOf(e)+1)},getLayersByType(e){return this.layers.filter(t=>t.type===e)},getNestedLayersByType(e,t){const n=this.indexOf(e);return n===-1?[]:this.layers.slice(n+1).filter(r=>r.type===t)},getParentLayerOfType(e,t){const n=this.indexOf(e);if(!(n<=0))return this.layers.slice(0,n).reverse().find(r=>r.type===t)},countNestedLayersOfType(e,t){return this.getNestedLayersByType(e,t).length},isInNestedLayer(e,t){return this.getNestedLayers(e).some(n=>Hn(n.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>Hn(t,e))},add(e){this.layers.push(e),this.syncLayers()},addBranch(e){this.branches.push(e)},remove(e){const t=this.indexOf(e);t<0||(t<this.count()-1&&this.getNestedLayers(e).forEach(r=>tn.dismiss(r.node,e)),this.layers.splice(t,1),this.syncLayers())},removeBranch(e){const t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},syncLayers(){this.layers.forEach((e,t)=>{e.node.style.setProperty("--layer-index",`${t}`),e.node.removeAttribute("data-nested"),e.node.removeAttribute("data-has-nested"),this.getParentLayerOfType(e.node,e.type)&&e.node.setAttribute("data-nested",e.type);const r=this.countNestedLayersOfType(e.node,e.type);r>0&&e.node.setAttribute("data-has-nested",e.type),e.node.style.setProperty("--nested-layer-count",`${r}`)})},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e,t){const n=this.indexOf(e);if(n===-1)return;const r=this.layers[n];mV(e,Ob,i=>{r.requestDismiss?.(i),i.defaultPrevented||r?.dismiss()}),hV(e,Ob,{originalLayer:e,targetLayer:t,originalIndex:n,targetIndex:t?this.indexOf(t):-1}),this.syncLayers()},clear(){this.remove(this.layers[0].node)}};function hV(e,t,n){const r=e.ownerDocument.defaultView||window,i=new r.CustomEvent(t,{cancelable:!0,bubbles:!0,detail:n});return e.dispatchEvent(i)}function mV(e,t,n){e.addEventListener(t,n,{once:!0})}var Rb;function Nb(){tn.layers.forEach(({node:e})=>{e.style.pointerEvents=tn.isBelowPointerBlockingLayer(e)?"none":"auto"})}function vV(e){e.style.pointerEvents=""}function yV(e,t){const n=Kt(e),r=[];return tn.hasPointerBlockingLayer()&&!n.body.hasAttribute("data-inert")&&(Rb=document.body.style.pointerEvents,queueMicrotask(()=>{n.body.style.pointerEvents="none",n.body.setAttribute("data-inert","")})),t?.forEach(i=>{const[a,c]=cN(()=>{const u=i();return Et(u)?u:null},{timeout:1e3});a.then(u=>r.push(Za(u,{pointerEvents:"auto"}))),r.push(c)}),()=>{tn.hasPointerBlockingLayer()||(queueMicrotask(()=>{n.body.style.pointerEvents=Rb,n.body.removeAttribute("data-inert"),n.body.style.length===0&&n.body.removeAttribute("style")}),r.forEach(i=>i()))}}function bV(e,t){const{warnOnMissingNode:n=!0}=t;if(n&&!e){Go("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;const{onDismiss:r,onRequestDismiss:i,pointerBlocking:a,exclude:c,debug:u,type:f="dialog"}=t,p={dismiss:r,node:e,type:f,pointerBlocking:a,requestDismiss:i};tn.add(p),Nb();function h(x){const E=at(x.detail.originalEvent);tn.isBelowPointerBlockingLayer(e)||tn.isInBranch(E)||(t.onPointerDownOutside?.(x),t.onInteractOutside?.(x),!x.defaultPrevented&&(u&&console.log("onPointerDownOutside:",x.detail.originalEvent),r?.()))}function y(x){const E=at(x.detail.originalEvent);tn.isInBranch(E)||(t.onFocusOutside?.(x),t.onInteractOutside?.(x),!x.defaultPrevented&&(u&&console.log("onFocusOutside:",x.detail.originalEvent),r?.()))}function b(x){tn.isTopMost(e)&&(t.onEscapeKeyDown?.(x),!x.defaultPrevented&&r&&(x.preventDefault(),r()))}function v(x){if(!e)return!1;const E=typeof c=="function"?c():c,O=Array.isArray(E)?E:[E],N=t.persistentElements?.map(R=>R()).filter(Et);return N&&O.push(...N),O.some(R=>Hn(R,x))||tn.isInNestedLayer(e,x)}const w=[a?yV(e,t.persistentElements):void 0,pV(e,b),iC(e,{exclude:v,onFocusOutside:y,onPointerDownOutside:h,defer:t.defer})];return()=>{tn.remove(e),Nb(),vV(e),w.forEach(x=>x?.())}}function ms(e,t){const{defer:n}=t,r=n?de:a=>a(),i=[];return i.push(r(()=>{const a=Or(e)?e():e;i.push(bV(a,t))})),()=>{i.forEach(a=>a?.())}}function xV(e,t={}){const{defer:n}=t,r=n?de:a=>a(),i=[];return i.push(r(()=>{const a=Or(e)?e():e;if(!a){Go("[@zag-js/dismissable] branch node is `null` or `undefined`");return}tn.addBranch(a),i.push(()=>{tn.removeBranch(a)})})),()=>{i.forEach(a=>a?.())}}var sC=ve("color-picker",["root","label","control","trigger","positioner","content","area","areaThumb","valueText","areaBackground","channelSlider","channelSliderLabel","channelSliderTrack","channelSliderThumb","channelSliderValueText","channelInput","transparencyGrid","swatchGroup","swatchTrigger","swatchIndicator","swatch","eyeDropperTrigger","formatTrigger","formatSelect"]);sC.build();var wV=e=>e.ids?.hiddenInput??`color-picker:${e.id}:hidden-input`,CV=e=>e.ids?.control??`color-picker:${e.id}:control`,SV=e=>e.ids?.trigger??`color-picker:${e.id}:trigger`,EV=e=>e.ids?.content??`color-picker:${e.id}:content`,kV=e=>e.ids?.positioner??`color-picker:${e.id}:positioner`,PV=e=>e.ids?.formatSelect??`color-picker:${e.id}:format-select`,IV=e=>e.ids?.area??`color-picker:${e.id}:area`,TV=e=>e.ids?.areaThumb??`color-picker:${e.id}:area-thumb`,OV=(e,t)=>e.ids?.channelSliderTrack?.(t)??`color-picker:${e.id}:slider-track:${t}`,RV=(e,t)=>e.ids?.channelSliderThumb?.(t)??`color-picker:${e.id}:slider-thumb:${t}`,su=e=>e.getById(EV(e)),NV=e=>e.getById(TV(e)),AV=(e,t)=>e.getById(RV(e,t)),VV=e=>e.getById(PV(e)),Ab=e=>e.getById(wV(e)),_V=e=>e.getById(IV(e)),LV=(e,t,n)=>{const r=_V(e);if(!r)return;const{getPercentValue:i}=Cw(t,r);return{x:i({dir:n,orientation:"horizontal"}),y:i({orientation:"vertical"})}},$V=e=>e.getById(CV(e)),xg=e=>e.getById(SV(e)),DV=e=>e.getById(kV(e)),zV=(e,t)=>e.getById(OV(e,t)),FV=(e,t,n,r)=>{const i=zV(e,n);if(!i)return;const{getPercentValue:a}=Cw(t,i);return{x:a({dir:r,orientation:"horizontal"}),y:a({orientation:"vertical"})}},MV=e=>[...Yo(su(e),"input[data-channel]"),...Yo($V(e),"input[data-channel]")];function BV(e,t){if(t==null)return"";if(t==="hex")return e.toString("hex");if(t==="css")return e.toString("css");if(t in e)return e.getChannelValue(t).toString();const n=e.getFormat()==="hsla";switch(t){case"hue":return n?e.toFormat("hsla").getChannelValue("hue").toString():e.toFormat("hsba").getChannelValue("hue").toString();case"saturation":return n?e.toFormat("hsla").getChannelValue("saturation").toString():e.toFormat("hsba").getChannelValue("saturation").toString();case"lightness":return e.toFormat("hsla").getChannelValue("lightness").toString();case"brightness":return e.toFormat("hsba").getChannelValue("brightness").toString();case"red":case"green":case"blue":return e.toFormat("rgba").getChannelValue(t).toString();default:return e.getChannelValue(t).toString()}}var Vb=e=>wu(e),WV=/^[0-9a-fA-F]{3,8}$/;function HV(e){return WV.test(e)}function jV(e){return e.startsWith("#")?e:HV(e)?`#${e}`:e}var{and:GV}=Nn();GV("isOpenControlled","closeOnSelect");function _b(e,t,n){const r=MV(e);de(()=>{r.forEach(i=>{const a=i.dataset.channel;Ko(i,BV(n||t,a))})})}function UV(e,t){const n=VV(e);n&&de(()=>Ko(n,t))}he()(["closeOnSelect","dir","disabled","format","defaultFormat","getRootNode","id","ids","initialFocusEl","inline","name","positioning","onFocusOutside","onFormatChange","onInteractOutside","onOpenChange","onPointerDownOutside","onValueChange","onValueChangeEnd","defaultOpen","open","positioning","required","readOnly","value","defaultValue","invalid","openAutoFocus"]);he()(["xChannel","yChannel"]);he()(["channel","orientation"]);he()(["value","disabled"]);he()(["value","respectAlpha"]);he()(["size"]);var _c="__live-region__";function KV(e={}){const{level:t="polite",document:n=document,root:r,delay:i=0}=e,a=n.defaultView??window,c=r??n.body;function u(p,h){n.getElementById(_c)?.remove(),h=h??i;const b=n.createElement("span");b.id=_c,b.dataset.liveAnnouncer="true";const v=t!=="assertive"?"status":"alert";b.setAttribute("aria-live",t),b.setAttribute("role",v),Object.assign(b.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}),c.appendChild(b),a.setTimeout(()=>{b.textContent=p},h)}function f(){n.getElementById(_c)?.remove()}return{announce:u,destroy:f,toJSON(){return _c}}}var aC=ve("splitter").parts("root","panel","resizeTrigger","resizeTriggerIndicator");aC.build();he()(["dir","getRootNode","id","ids","onResize","onResizeStart","onResizeEnd","onCollapse","onExpand","orientation","size","defaultSize","panels","keyboardResizeBy","nonce"]);he()(["id"]);he()(["disabled","id"]);const[vs,ih]=$e({name:"RenderStrategyContext",hookName:"useRenderStrategyContext",providerName:"<RenderStrategyPropsProvider />"}),ys=e=>ze()(e,["lazyMount","unmountOnExit"]),[YV,sh]=$e({name:"AccordionItemPropsContext",hookName:"useAccordionItemPropsContext",providerName:"<AccordionItemPropsProvider />"}),XV=ze(),lC=k.forwardRef((e,t)=>{const[n,r]=XV(e,["value","disabled"]),i=Gu(),a=ih(),c=q(i.getItemProps(n),r),u=i.getItemState(n),f=i.getItemContentProps(n);return P.jsx(YV,{value:n,children:P.jsx(LN,{value:u,children:P.jsx(_w,{ref:t,open:u.expanded,ids:{content:f.id},...a,...c})})})});lC.displayName="AccordionItem";const cC=k.forwardRef((e,t)=>{const n=Vw();if(n.isUnmounted)return null;const r=q(n.getContentProps(),e);return P.jsx(re.div,{...r,ref:t})});cC.displayName="CollapsibleContent";const qV=ze(),uC=k.forwardRef((e,t)=>{const n=Gu(),r=sh(),i=n.getItemContentProps(r),[,a]=qV(i,["hidden","data-state"]),c=q(a,e);return P.jsx(cC,{ref:t,...c})});uC.displayName="AccordionItemContent";const dC=k.forwardRef((e,t)=>{const n=Gu(),r=sh(),i=q(n.getItemIndicatorProps(r),e);return P.jsx(re.div,{...i,ref:t})});dC.displayName="AccordionItemIndicator";const fC=k.forwardRef((e,t)=>{const n=Gu(),r=sh(),i=Vw(),a=n.getItemTriggerProps(r),c=q({...a,"aria-controls":i.isUnmounted?void 0:a["aria-controls"]},e);return P.jsx(re.button,{...c,ref:t})});fC.displayName="AccordionItemTrigger";var gC=ve("accordion").parts("root","item","itemTrigger","itemContent","itemIndicator"),va=gC.build(),Su=e=>e.ids?.root??`accordion:${e.id}`,QV=(e,t)=>e.ids?.item?.(t)??`accordion:${e.id}:item:${t}`,wg=(e,t)=>e.ids?.itemContent?.(t)??`accordion:${e.id}:content:${t}`,Eu=(e,t)=>e.ids?.itemTrigger?.(t)??`accordion:${e.id}:trigger:${t}`,ZV=e=>e.getById(Su(e)),Yu=e=>{const n=`[data-controls][data-ownedby='${CSS.escape(Su(e))}']:not([disabled])`;return Yo(ZV(e),n)},JV=e=>Ha(Yu(e)),e2=e=>Lp(Yu(e)),t2=(e,t)=>Gp(Yu(e),Eu(e,t)),n2=(e,t)=>Up(Yu(e),Eu(e,t));function r2(e,t){const{send:n,context:r,prop:i,scope:a,computed:c}=e,u=r.get("focusedValue"),f=r.get("value"),p=i("multiple");function h(b){let v=b;!p&&v.length>1&&(v=[v[0]]),n({type:"VALUE.SET",value:v})}function y(b){return{expanded:f.includes(b.value),focused:u===b.value,disabled:!!(b.disabled??i("disabled"))}}return{focusedValue:u,value:f,setValue:h,getItemState:y,getRootProps(){return t.element({...va.root.attrs,dir:i("dir"),id:Su(a),"data-orientation":i("orientation")})},getItemProps(b){const v=y(b);return t.element({...va.item.attrs,dir:i("dir"),id:QV(a,b.value),"data-state":v.expanded?"open":"closed","data-focus":se(v.focused),"data-disabled":se(v.disabled),"data-orientation":i("orientation")})},getItemContentProps(b){const v=y(b);return t.element({...va.itemContent.attrs,dir:i("dir"),role:"region",id:wg(a,b.value),"aria-labelledby":Eu(a,b.value),hidden:!v.expanded,"data-state":v.expanded?"open":"closed","data-disabled":se(v.disabled),"data-focus":se(v.focused),"data-orientation":i("orientation")})},getItemIndicatorProps(b){const v=y(b);return t.element({...va.itemIndicator.attrs,dir:i("dir"),"aria-hidden":!0,"data-state":v.expanded?"open":"closed","data-disabled":se(v.disabled),"data-focus":se(v.focused),"data-orientation":i("orientation")})},getItemTriggerProps(b){const{value:v}=b,w=y(b);return t.button({...va.itemTrigger.attrs,type:"button",dir:i("dir"),id:Eu(a,v),"aria-controls":wg(a,v),"data-controls":wg(a,v),"aria-expanded":w.expanded,disabled:w.disabled,"data-orientation":i("orientation"),"aria-disabled":w.disabled,"data-state":w.expanded?"open":"closed","data-ownedby":Su(a),onFocus(){w.disabled||n({type:"TRIGGER.FOCUS",value:v})},onBlur(){w.disabled||n({type:"TRIGGER.BLUR"})},onClick(x){w.disabled||(ei()&&x.currentTarget.focus(),n({type:"TRIGGER.CLICK",value:v}))},onKeyDown(x){if(x.defaultPrevented||w.disabled)return;const E={ArrowDown(){c("isHorizontal")||n({type:"GOTO.NEXT",value:v})},ArrowUp(){c("isHorizontal")||n({type:"GOTO.PREV",value:v})},ArrowRight(){c("isHorizontal")&&n({type:"GOTO.NEXT",value:v})},ArrowLeft(){c("isHorizontal")&&n({type:"GOTO.PREV",value:v})},Home(){n({type:"GOTO.FIRST",value:v})},End(){n({type:"GOTO.LAST",value:v})}},O=fw(x,{dir:i("dir"),orientation:i("orientation")}),N=E[O];N&&(N(x),x.preventDefault())}})}}}var{and:o2,not:i2}=Nn(),s2={props({props:e}){return{collapsible:!1,multiple:!1,orientation:"vertical",defaultValue:[],...e}},initialState(){return"idle"},context({prop:e,bindable:t}){return{focusedValue:t(()=>({defaultValue:null,sync:!0,onChange(n){e("onFocusChange")?.({value:n})}})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(n){e("onValueChange")?.({value:n})}}))}},computed:{isHorizontal:({prop:e})=>e("orientation")==="horizontal"},on:{"VALUE.SET":{actions:["setValue"]}},states:{idle:{on:{"TRIGGER.FOCUS":{target:"focused",actions:["setFocusedValue"]}}},focused:{on:{"GOTO.NEXT":{actions:["focusNextTrigger"]},"GOTO.PREV":{actions:["focusPrevTrigger"]},"TRIGGER.CLICK":[{guard:o2("isExpanded","canToggle"),actions:["collapse"]},{guard:i2("isExpanded"),actions:["expand"]}],"GOTO.FIRST":{actions:["focusFirstTrigger"]},"GOTO.LAST":{actions:["focusLastTrigger"]},"TRIGGER.BLUR":{target:"idle",actions:["clearFocusedValue"]}}}},implementations:{guards:{canToggle:({prop:e})=>!!e("collapsible")||!!e("multiple"),isExpanded:({context:e,event:t})=>e.get("value").includes(t.value)},actions:{collapse({context:e,prop:t,event:n}){const r=t("multiple")?Ho(e.get("value"),n.value):[];e.set("value",r)},expand({context:e,prop:t,event:n}){const r=t("multiple")?Mo(e.get("value"),n.value):[n.value];e.set("value",r)},focusFirstTrigger({scope:e}){JV(e)?.focus()},focusLastTrigger({scope:e}){e2(e)?.focus()},focusNextTrigger({context:e,scope:t}){const n=e.get("focusedValue");if(!n)return;t2(t,n)?.focus()},focusPrevTrigger({context:e,scope:t}){const n=e.get("focusedValue");if(!n)return;n2(t,n)?.focus()},setFocusedValue({context:e,event:t}){e.set("focusedValue",t.value)},clearFocusedValue({context:e}){e.set("focusedValue",null)},setValue({context:e,event:t}){e.set("value",t.value)},coarseValue({context:e,prop:t}){!t("multiple")&&e.get("value").length>1&&(Go("The value of accordion should be a single value when multiple is false."),e.set("value",[e.get("value")[0]]))}}}};he()(["collapsible","dir","disabled","getRootNode","id","ids","multiple","onFocusChange","onValueChange","orientation","value","defaultValue"]);he()(["value","disabled"]);const a2=e=>{const t=k.useId(),{getRootNode:n}=Ht(),{dir:r}=vn(),i={id:t,dir:r,getRootNode:n,...e},a=Yt(s2,i);return r2(a,sn)},l2=ze(),pC=k.forwardRef((e,t)=>{const[n,r]=ys(e),[i,a]=l2(r,["collapsible","defaultValue","disabled","id","ids","multiple","onFocusChange","onValueChange","orientation","value"]),c=a2(i),u=q(c.getRootProps(),a);return P.jsx(Nw,{value:c,children:P.jsx(vs,{value:n,children:P.jsx(re.div,{...u,ref:t})})})});pC.displayName="AccordionRoot";const c2=ze(),hC=k.forwardRef((e,t)=>{const[n,r]=ys(e),[{value:i},a]=c2(r,["value"]),c=q(i.getRootProps(),a);return P.jsx(Nw,{value:i,children:P.jsx(vs,{value:n,children:P.jsx(re.div,{...c,ref:t})})})});hC.displayName="AccordionRootProvider";var mC=ve("avatar").parts("root","image","fallback");mC.build();he()(["dir","id","ids","onStatusChange","getRootNode"]);var Ai=new WeakMap,Lc=new WeakMap,$c={},Cg=0,vC=e=>e&&(e.host||vC(e.parentNode)),u2=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=vC(n);return r&&e.contains(r)?r:(console.error("[zag-js > ariaHidden] target",n,"in not contained inside",e,". Doing nothing"),null)}).filter(n=>!!n),d2=new Set(["script","output","status","next-route-announcer"]),f2=e=>d2.has(e.localName)||e.role==="status"||e.hasAttribute("aria-live")?!0:e.matches("[data-live-announcer]"),g2=(e,t)=>{const{parentNode:n,markerName:r,controlAttribute:i,followControlledElements:a=!0}=t,c=u2(n,Array.isArray(e)?e:[e]);$c[r]||($c[r]=new WeakMap);const u=$c[r],f=[],p=new Set,h=new Set(c),y=v=>{!v||p.has(v)||(p.add(v),y(v.parentNode))};c.forEach(v=>{y(v),a&&Et(v)&&cw(v,w=>{y(w)})});const b=v=>{!v||h.has(v)||Array.prototype.forEach.call(v.children,w=>{if(p.has(w))b(w);else try{if(f2(w))return;const E=w.getAttribute(i)==="true",O=(Ai.get(w)||0)+1,N=(u.get(w)||0)+1;Ai.set(w,O),u.set(w,N),f.push(w),O===1&&E&&Lc.set(w,!0),N===1&&w.setAttribute(r,""),E||w.setAttribute(i,"true")}catch(x){console.error("[zag-js > ariaHidden] cannot operate on ",w,x)}})};return b(n),p.clear(),Cg++,()=>{f.forEach(v=>{const w=Ai.get(v)-1,x=u.get(v)-1;Ai.set(v,w),u.set(v,x),w||(Lc.has(v)||v.removeAttribute(i),Lc.delete(v)),x||v.removeAttribute(r)}),Cg--,Cg||(Ai=new WeakMap,Ai=new WeakMap,Lc=new WeakMap,$c={})}},p2=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,h2=(e,t=p2(e),n="data-aria-hidden",r=!0)=>{if(t)return g2(e,{parentNode:t,markerName:n,controlAttribute:"aria-hidden",followControlledElements:r})},m2=e=>{const t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};function yC(e,t={}){const{defer:n=!0}=t,r=n?m2:a=>a(),i=[];return i.push(r(()=>{const c=(typeof e=="function"?e():e).filter(Boolean);c.length!==0&&i.push(h2(c))})),()=>{i.forEach(a=>a?.())}}var v2=Object.defineProperty,y2=(e,t,n)=>t in e?v2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xe=(e,t,n)=>y2(e,typeof t!="symbol"?t+"":t,n),Lb={activateTrap(e,t){if(e.length>0){const r=e[e.length-1];r!==t&&r.pause()}const n=e.indexOf(t);n===-1||e.splice(n,1),e.push(t)},deactivateTrap(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}},b2=[],x2=class{constructor(e,t){Xe(this,"trapStack"),Xe(this,"config"),Xe(this,"doc"),Xe(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),Xe(this,"portalContainers",new Set),Xe(this,"listenerCleanups",[]),Xe(this,"handleFocus",r=>{const i=at(r),a=this.findContainerIndex(i,r)>=0;if(a||zu(i))a&&(this.state.mostRecentlyFocusedNode=i);else{r.stopImmediatePropagation();let c,u=!0;if(this.state.mostRecentlyFocusedNode)if(pa(this.state.mostRecentlyFocusedNode)>0){const f=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:p}=this.state.containerGroups[f];if(p.length>0){const h=p.findIndex(y=>y===this.state.mostRecentlyFocusedNode);h>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?h+1<p.length&&(c=p[h+1],u=!1):h-1>=0&&(c=p[h-1],u=!1))}}else this.state.containerGroups.some(f=>f.tabbableNodes.some(p=>pa(p)>0))||(u=!1);else u=!1;u&&(c=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),c?this.tryFocus(c):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0}),Xe(this,"handlePointerDown",r=>{const i=at(r);if(!(this.findContainerIndex(i,r)>=0)){if(ba(this.config.clickOutsideDeactivates,r)){this.deactivate({returnFocus:this.config.returnFocusOnDeactivate});return}ba(this.config.allowOutsideClick,r)||r.preventDefault()}}),Xe(this,"handleClick",r=>{const i=at(r);this.findContainerIndex(i,r)>=0||ba(this.config.clickOutsideDeactivates,r)||ba(this.config.allowOutsideClick,r)||(r.preventDefault(),r.stopImmediatePropagation())}),Xe(this,"handleTabKey",r=>{if(this.config.isKeyForward(r)||this.config.isKeyBackward(r)){this.state.recentNavEvent=r;const i=this.config.isKeyBackward(r),a=this.findNextNavNode({event:r,isBackward:i});if(!a)return;ya(r)&&r.preventDefault(),this.tryFocus(a)}}),Xe(this,"handleEscapeKey",r=>{w2(r)&&ba(this.config.escapeDeactivates,r)!==!1&&(r.preventDefault(),this.deactivate())}),Xe(this,"_mutationObserver"),Xe(this,"setupMutationObserver",()=>{const r=this.doc.defaultView||window;this._mutationObserver=new r.MutationObserver(i=>{i.some(u=>Array.from(u.removedNodes).some(p=>p===this.state.mostRecentlyFocusedNode))&&this.tryFocus(this.getInitialFocusNode()),i.some(u=>u.type==="attributes"&&(u.attributeName==="aria-controls"||u.attributeName==="aria-expanded")?!0:u.type==="childList"&&u.addedNodes.length>0?Array.from(u.addedNodes).some(f=>{if(f.nodeType!==Node.ELEMENT_NODE)return!1;const p=f;return fR(p)?!0:p.id&&!this.state.containers.some(h=>h.contains(p))?gR(p):!1}):!1)&&this.state.active&&!this.state.paused&&(this.updateTabbableNodes(),this.updatePortalContainers())})}),Xe(this,"updateObservedNodes",()=>{this._mutationObserver?.disconnect(),this.state.active&&!this.state.paused&&(this.state.containers.map(r=>{this._mutationObserver?.observe(r,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}),this.portalContainers.forEach(r=>{this.observePortalContainer(r)}))}),Xe(this,"getInitialFocusNode",()=>{let r=this.getNodeForOption("initialFocus",{hasFallback:!0});if(r===!1)return!1;if(r===void 0||r&&!Nr(r)){const i=ts(this.doc);if(i&&this.findContainerIndex(i)>=0)r=i;else{const a=this.state.tabbableGroups[0];r=a&&a.firstTabbableNode||this.getNodeForOption("fallbackFocus")}}else r===null&&(r=this.getNodeForOption("fallbackFocus"));if(!r)throw new Error("Your focus-trap needs to have at least one focusable element");return r.isConnected||(r=this.getNodeForOption("fallbackFocus")),r}),Xe(this,"tryFocus",r=>{if(r!==!1&&r!==ts(this.doc)){if(!r||!r.focus){this.tryFocus(this.getInitialFocusNode());return}r.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=r,C2(r)&&r.select()}}),Xe(this,"deactivate",r=>{if(!this.state.active)return this;const i={onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus,...r};clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),Lb.deactivateTrap(this.trapStack,this),this.portalContainers.clear();const a=this.getOption(i,"onDeactivate"),c=this.getOption(i,"onPostDeactivate"),u=this.getOption(i,"checkCanReturnFocus"),f=this.getOption(i,"returnFocus","returnFocusOnDeactivate");a?.();const p=()=>{$b(()=>{if(f){const h=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(h)}c?.()})};if(f&&u){const h=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);return u(h).then(p,p),this}return p(),this}),Xe(this,"pause",r=>{if(this.state.paused||!this.state.active)return this;const i=this.getOption(r,"onPause"),a=this.getOption(r,"onPostPause");return this.state.paused=!0,i?.(),this.removeListeners(),this.updateObservedNodes(),a?.(),this}),Xe(this,"unpause",r=>{if(!this.state.paused||!this.state.active)return this;const i=this.getOption(r,"onUnpause"),a=this.getOption(r,"onPostUnpause");return this.state.paused=!1,i?.(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),a?.(),this}),Xe(this,"updateContainerElements",r=>(this.state.containers=Array.isArray(r)?r.filter(Boolean):[r].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),Xe(this,"getReturnFocusNode",r=>{const i=this.getNodeForOption("setReturnFocus",{params:[r]});return i||(i===!1?!1:r)}),Xe(this,"getOption",(r,i,a)=>r&&r[i]!==void 0?r[i]:this.config[a||i]),Xe(this,"getNodeForOption",(r,{hasFallback:i=!1,params:a=[]}={})=>{let c=this.config[r];if(typeof c=="function"&&(c=c(...a)),c===!0&&(c=void 0),!c){if(c===void 0||c===!1)return c;throw new Error(`\`${r}\` was specified but was not a node, or did not return a node`)}let u=c;if(typeof c=="string"){try{u=this.doc.querySelector(c)}catch(f){throw new Error(`\`${r}\` appears to be an invalid selector; error="${f.message}"`)}if(!u&&!i)throw new Error(`\`${r}\` as selector refers to no known node`)}return u}),Xe(this,"findNextNavNode",r=>{const{event:i,isBackward:a=!1}=r,c=r.target||at(i);this.updateTabbableNodes();let u=null;if(this.state.tabbableGroups.length>0){const f=this.findContainerIndex(c,i),p=f>=0?this.state.containerGroups[f]:void 0;if(f<0)a?u=this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:u=this.state.tabbableGroups[0].firstTabbableNode;else if(a){let h=this.state.tabbableGroups.findIndex(({firstTabbableNode:y})=>c===y);if(h<0&&(p?.container===c||Nr(c)&&!Wo(c)&&!p?.nextTabbableNode(c,!1))&&(h=f),h>=0){const y=h===0?this.state.tabbableGroups.length-1:h-1,b=this.state.tabbableGroups[y];u=pa(c)>=0?b.lastTabbableNode:b.lastDomTabbableNode}else ya(i)||(u=p?.nextTabbableNode(c,!1))}else{let h=this.state.tabbableGroups.findIndex(({lastTabbableNode:y})=>c===y);if(h<0&&(p?.container===c||Nr(c)&&!Wo(c)&&!p?.nextTabbableNode(c))&&(h=f),h>=0){const y=h===this.state.tabbableGroups.length-1?0:h+1,b=this.state.tabbableGroups[y];u=pa(c)>=0?b.firstTabbableNode:b.firstDomTabbableNode}else ya(i)||(u=p?.nextTabbableNode(c))}}else u=this.getNodeForOption("fallbackFocus");return u}),this.trapStack=t.trapStack||b2;const n={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,followControlledElements:!0,isKeyForward(r){return ya(r)&&!r.shiftKey},isKeyBackward(r){return ya(r)&&r.shiftKey},...t};this.doc=n.document||Kt(Array.isArray(e)?e[0]:e),this.config=n,this.updateContainerElements(e),this.setupMutationObserver()}addPortalContainer(e){const t=e.parentElement;t&&!this.portalContainers.has(t)&&(this.portalContainers.add(t),this.state.active&&!this.state.paused&&this.observePortalContainer(t))}observePortalContainer(e){this._mutationObserver?.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}updatePortalContainers(){this.config.followControlledElements&&this.state.containers.forEach(e=>{cR(e).forEach(n=>{this.addPortalContainer(n)})})}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){const n=typeof t?.composedPath=="function"?t.composedPath():void 0;return this.state.containerGroups.findIndex(({container:r,tabbableNodes:i})=>r.contains(e)||n?.includes(r)||i.find(a=>a===e)||this.isControlledElement(r,e))}isControlledElement(e,t){return this.config.followControlledElements?lw(e,t):!1}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{const t=fs(e,{getShadowRoot:this.config.getShadowRoot}),n=Wp(e,{getShadowRoot:this.config.getShadowRoot}),r=t[0],i=t[t.length-1],a=r,c=i;let u=!1;for(let p=0;p<t.length;p++)if(pa(t[p])>0){u=!0;break}function f(p,h=!0){const y=t.indexOf(p);if(y>=0)return t[y+(h?1:-1)];const b=n.indexOf(p);if(!(b<0)){if(h){for(let v=b+1;v<n.length;v++)if(Wo(n[v]))return n[v]}else for(let v=b-1;v>=0;v--)if(Wo(n[v]))return n[v]}}return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:u,firstTabbableNode:r,lastTabbableNode:i,firstDomTabbableNode:a,lastDomTabbableNode:c,nextTabbableNode:f}}),this.state.tabbableGroups=this.state.containerGroups.filter(e=>e.tabbableNodes.length>0),this.state.tabbableGroups.length<=0&&!this.getNodeForOption("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(this.state.containerGroups.find(e=>e.posTabIndexesFound)&&this.state.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}addListeners(){if(this.state.active)return Lb.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?$b(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(Re(this.doc,"focusin",this.handleFocus,!0),Re(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),Re(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),Re(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),Re(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),Re(this.doc,"keydown",this.handleEscapeKey)),this}removeListeners(){if(this.state.active)return this.listenerCleanups.forEach(e=>e()),this.listenerCleanups=[],this}activate(e){if(this.state.active)return this;const t=this.getOption(e,"onActivate"),n=this.getOption(e,"onPostActivate"),r=this.getOption(e,"checkCanFocusTrap");r||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=ts(this.doc),t?.();const i=()=>{r&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),n?.()};return r?(r(this.state.containers.concat()).then(i,i),this):(i(),this)}},ya=e=>e.key==="Tab",ba=(e,...t)=>typeof e=="function"?e(...t):e,w2=e=>!e.isComposing&&e.key==="Escape",$b=e=>setTimeout(e,0),C2=e=>e.localName==="input"&&"select"in e&&typeof e.select=="function";function bC(e,t={}){let n;const r=de(()=>{const i=typeof e=="function"?e():e;if(i){n=new x2(i,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:i,...t,document:Kt(i)});try{n.activate()}catch{}}});return function(){n?.deactivate(),r()}}var Sg="data-scroll-lock";function S2(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function Db(e){const n=Ar(e)?.scrollbarGutter;return n==="stable"||n?.startsWith("stable ")===!0}function xC(e){const t=e??document,n=t.defaultView??window,{documentElement:r,body:i}=t;if(i.hasAttribute(Sg))return;const c=Db(r)||Db(i),u=n.innerWidth-r.clientWidth;i.setAttribute(Sg,"");const f=()=>iN(r,"--scrollbar-width",`${u}px`),p=S2(r),h=()=>{const v={overflow:"hidden"};return!c&&u>0&&(v[p]=`${u}px`),Za(i,v)},y=()=>{const{scrollX:v,scrollY:w,visualViewport:x}=n,E=x?.offsetLeft??0,O=x?.offsetTop??0,N={position:"fixed",overflow:"hidden",top:`${-(w-Math.floor(O))}px`,left:`${-(v-Math.floor(E))}px`,right:"0"};!c&&u>0&&(N[p]=`${u}px`);const R=Za(i,N);return()=>{R?.(),n.scrollTo({left:v,top:w,behavior:"instant"})}},b=[f(),Mu()?y():h()];return()=>{b.forEach(v=>v?.()),i.removeAttribute(Sg)}}var wC=ve("carousel").parts("root","itemGroup","item","control","nextTrigger","prevTrigger","indicatorGroup","indicator","autoplayTrigger","progressText");wC.build();he()(["dir","getRootNode","id","ids","loop","page","defaultPage","onPageChange","orientation","slideCount","slidesPerPage","slidesPerMove","spacing","padding","autoplay","allowMouseDrag","inViewThreshold","translations","snapType","autoSize","onDragStatusChange","onAutoplayStatusChange"]);he()(["index","readOnly"]);he()(["index","snapAlign"]);const E2=wC.extendWith("progressText","autoplayIndicator"),[CC,Xu]=$e({name:"CheckboxContext",hookName:"useCheckboxContext",providerName:"<CheckboxProvider />"}),SC=k.forwardRef((e,t)=>{const n=Xu(),r=q(n.getControlProps(),e);return P.jsx(re.div,{...r,ref:t})});SC.displayName="CheckboxControl";function k2(e){return!(e.metaKey||!rl()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}var P2=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function I2(e,t,n){const r=n?at(n):null,i=et(r);return e=e||r instanceof i.HTMLInputElement&&!P2.has(r?.type)||r instanceof i.HTMLTextAreaElement||r instanceof i.HTMLElement&&r.isContentEditable,!(e&&t==="keyboard"&&n instanceof i.KeyboardEvent&&!Reflect.has(T2,n.key))}var ho=null,ep=new Set,ku=new Map,qo=!1,tp=!1,T2={Tab:!0,Escape:!0};function qu(e,t){for(let n of ep)n(e,t)}function Pu(e){qo=!0,k2(e)&&(ho="keyboard",qu("keyboard",e))}function On(e){ho="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(qo=!0,qu("pointer",e))}function EC(e){kR(e)&&(qo=!0,ho="virtual")}function kC(e){const t=at(e);t===et(t)||t===Kt(t)||(!qo&&!tp&&(ho="virtual",qu("virtual",e)),qo=!1,tp=!1)}function PC(){qo=!1,tp=!0}function O2(e){if(typeof window>"u"||ku.get(et(e)))return;const t=et(e),n=Kt(e);let r=t.HTMLElement.prototype.focus;function i(){ho="virtual",qu("virtual",null),qo=!0,r.apply(this,arguments)}try{Object.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,value:i})}catch{}n.addEventListener("keydown",Pu,!0),n.addEventListener("keyup",Pu,!0),n.addEventListener("click",EC,!0),t.addEventListener("focus",kC,!0),t.addEventListener("blur",PC,!1),typeof t.PointerEvent<"u"?(n.addEventListener("pointerdown",On,!0),n.addEventListener("pointermove",On,!0),n.addEventListener("pointerup",On,!0)):(n.addEventListener("mousedown",On,!0),n.addEventListener("mousemove",On,!0),n.addEventListener("mouseup",On,!0)),t.addEventListener("beforeunload",()=>{R2(e)},{once:!0}),ku.set(t,{focus:r})}var R2=(e,t)=>{const n=et(e),r=Kt(e),i=ku.get(n);if(i){try{Object.defineProperty(n.HTMLElement.prototype,"focus",{configurable:!0,value:i.focus})}catch{}r.removeEventListener("keydown",Pu,!0),r.removeEventListener("keyup",Pu,!0),r.removeEventListener("click",EC,!0),n.removeEventListener("focus",kC,!0),n.removeEventListener("blur",PC,!1),typeof n.PointerEvent<"u"?(r.removeEventListener("pointerdown",On,!0),r.removeEventListener("pointermove",On,!0),r.removeEventListener("pointerup",On,!0)):(r.removeEventListener("mousedown",On,!0),r.removeEventListener("mousemove",On,!0),r.removeEventListener("mouseup",On,!0)),ku.delete(n)}};function N2(){return ho}function ls(){return ho==="keyboard"}function al(e={}){const{isTextInput:t,autoFocus:n,onChange:r,root:i}=e;O2(i),r?.({isFocusVisible:n||ls(),modality:ho});const a=(c,u)=>{I2(!!t,c,u)&&r?.({isFocusVisible:ls(),modality:c})};return ep.add(a),()=>{ep.delete(a)}}var IC=ve("checkbox").parts("root","label","control","indicator"),Dc=IC.build(),TC=e=>e.ids?.root??`checkbox:${e.id}`,zb=e=>e.ids?.label??`checkbox:${e.id}:label`,A2=e=>e.ids?.control??`checkbox:${e.id}:control`,np=e=>e.ids?.hiddenInput??`checkbox:${e.id}:input`,V2=e=>e.getById(TC(e)),$a=e=>e.getById(np(e));function _2(e,t){const{send:n,context:r,prop:i,computed:a,scope:c}=e,u=!!i("disabled"),f=!!i("readOnly"),p=!!i("required"),h=!!i("invalid"),y=!u&&r.get("focused"),b=!u&&r.get("focusVisible"),v=a("checked"),w=a("indeterminate"),x=r.get("checked"),E={"data-active":se(r.get("active")),"data-focus":se(y),"data-focus-visible":se(b),"data-readonly":se(f),"data-hover":se(r.get("hovered")),"data-disabled":se(u),"data-state":w?"indeterminate":v?"checked":"unchecked","data-invalid":se(h),"data-required":se(p)};return{checked:v,disabled:u,indeterminate:w,focused:y,checkedState:x,setChecked(O){n({type:"CHECKED.SET",checked:O,isTrusted:!1})},toggleChecked(){n({type:"CHECKED.TOGGLE",checked:v,isTrusted:!1})},getRootProps(){return t.label({...Dc.root.attrs,...E,dir:i("dir"),id:TC(c),htmlFor:np(c),onPointerMove(){u||n({type:"CONTEXT.SET",context:{hovered:!0}})},onPointerLeave(){u||n({type:"CONTEXT.SET",context:{hovered:!1}})},onClick(O){at(O)===$a(c)&&O.stopPropagation()}})},getLabelProps(){return t.element({...Dc.label.attrs,...E,dir:i("dir"),id:zb(c)})},getControlProps(){return t.element({...Dc.control.attrs,...E,dir:i("dir"),id:A2(c),"aria-hidden":!0})},getIndicatorProps(){return t.element({...Dc.indicator.attrs,...E,dir:i("dir"),hidden:!w&&!v})},getHiddenInputProps(){return t.input({id:np(c),type:"checkbox",required:i("required"),defaultChecked:v,disabled:u,"aria-labelledby":zb(c),"aria-invalid":h,name:i("name"),form:i("form"),value:i("value"),style:Kp,onFocus(){const O=ls();n({type:"CONTEXT.SET",context:{focused:!0,focusVisible:O}})},onBlur(){n({type:"CONTEXT.SET",context:{focused:!1,focusVisible:!1}})},onClick(O){if(f){O.preventDefault();return}const N=O.currentTarget.checked;n({type:"CHECKED.SET",checked:N,isTrusted:!0})}})}}}var{not:Fb}=Nn(),L2={props({props:e}){return{value:"on",...e,defaultChecked:e.defaultChecked??!1}},initialState(){return"ready"},context({prop:e,bindable:t}){return{checked:t(()=>({defaultValue:e("defaultChecked"),value:e("checked"),onChange(n){e("onCheckedChange")?.({checked:n})}})),fieldsetDisabled:t(()=>({defaultValue:!1})),focusVisible:t(()=>({defaultValue:!1})),active:t(()=>({defaultValue:!1})),focused:t(()=>({defaultValue:!1})),hovered:t(()=>({defaultValue:!1}))}},watch({track:e,context:t,prop:n,action:r}){e([()=>n("disabled")],()=>{r(["removeFocusIfNeeded"])}),e([()=>t.get("checked")],()=>{r(["syncInputElement"])})},effects:["trackFormControlState","trackPressEvent","trackFocusVisible"],on:{"CHECKED.TOGGLE":[{guard:Fb("isTrusted"),actions:["toggleChecked","dispatchChangeEvent"]},{actions:["toggleChecked"]}],"CHECKED.SET":[{guard:Fb("isTrusted"),actions:["setChecked","dispatchChangeEvent"]},{actions:["setChecked"]}],"CONTEXT.SET":{actions:["setContext"]}},computed:{indeterminate:({context:e})=>au(e.get("checked")),checked:({context:e})=>$2(e.get("checked")),disabled:({context:e,prop:t})=>!!t("disabled")||e.get("fieldsetDisabled")},states:{ready:{}},implementations:{guards:{isTrusted:({event:e})=>!!e.isTrusted},effects:{trackPressEvent({context:e,computed:t,scope:n}){if(!t("disabled"))return kw({pointerNode:V2(n),keyboardNode:$a(n),isValidKey:r=>r.key===" ",onPress:()=>e.set("active",!1),onPressStart:()=>e.set("active",!0),onPressEnd:()=>e.set("active",!1)})},trackFocusVisible({computed:e,scope:t}){if(!e("disabled"))return al({root:t.getRootNode?.()})},trackFormControlState({context:e,scope:t}){return ti($a(t),{onFieldsetDisabledChange(n){e.set("fieldsetDisabled",n)},onFormReset(){e.set("checked",e.initial("checked"))}})}},actions:{setContext({context:e,event:t}){for(const n in t.context)e.set(n,t.context[n])},syncInputElement({context:e,computed:t,scope:n}){const r=$a(n);r&&(Mp(r,t("checked")),r.indeterminate=au(e.get("checked")))},removeFocusIfNeeded({context:e,prop:t}){t("disabled")&&e.get("focused")&&(e.set("focused",!1),e.set("focusVisible",!1))},setChecked({context:e,event:t}){e.set("checked",t.checked)},toggleChecked({context:e,computed:t}){const n=au(t("checked"))?!0:!t("checked");e.set("checked",n)},dispatchChangeEvent({computed:e,scope:t}){queueMicrotask(()=>{const n=$a(t);Bp(n,{checked:e("checked")})})}}}};function au(e){return e==="indeterminate"}function $2(e){return au(e)?!1:!!e}he()(["defaultChecked","checked","dir","disabled","form","getRootNode","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]);const OC=IC.extendWith("group");function D2(e){const{value:t,onChange:n,defaultValue:r}=e,[i,a]=k.useState(r),c=t!==void 0,u=c?t:i,f=k.useCallback(p=>(c||a(p),n?.(p)),[c,n]);return[u,f]}const[TH,RC]=$e({name:"FieldsetContext",hookName:"useFieldsetContext",providerName:"<FieldsetProvider />",strict:!1});function z2(e={}){const t=RC(),{defaultValue:n,value:r,onValueChange:i,disabled:a=t?.disabled,readOnly:c,name:u,invalid:f=t?.invalid}=e,p=!(a||c),h=Rw(i,{sync:!0}),[y,b]=D2({value:r,defaultValue:n||[],onChange:h}),v=N=>y.some(R=>String(R)===String(N)),w=N=>{v(N)?E(N):x(N)},x=N=>{p&&(v(N)||b(y.concat(N)))},E=N=>{p&&b(y.filter(R=>String(R)!==String(N)))};return{isChecked:v,value:y,name:u,disabled:!!a,readOnly:!!c,invalid:!!f,setValue:b,addValue:x,toggleValue:w,getItemProps:N=>({checked:N.value!=null?v(N.value):void 0,onCheckedChange(){N.value!=null&&w(N.value)},name:u,disabled:a,readOnly:c,invalid:f})}}const[F2,M2]=$e({name:"CheckboxGroupContext",hookName:"useCheckboxGroupContext",providerName:"<CheckboxGroupProvider />",strict:!1}),B2=ze(),NC=k.forwardRef((e,t)=>{const[n,r]=B2(e,["defaultValue","value","onValueChange","disabled","invalid","readOnly","name"]),i=z2(n);return P.jsx(F2,{value:i,children:P.jsx(re.div,{ref:t,role:"group",...r,...OC.build().group.attrs})})});NC.displayName="CheckboxGroup";const[W2,Vn]=$e({name:"FieldContext",hookName:"useFieldContext",providerName:"<FieldProvider />",strict:!1}),AC=k.forwardRef((e,t)=>{const n=Xu(),r=q(n.getHiddenInputProps(),e),i=Vn();return P.jsx(re.input,{"aria-describedby":i?.ariaDescribedby,...r,ref:t})});AC.displayName="CheckboxHiddenInput";const VC=k.forwardRef((e,t)=>{const n=Xu(),r=q(n.getLabelProps(),e);return P.jsx(re.span,{...r,ref:t})});VC.displayName="CheckboxLabel";const H2=(e={})=>{const t=M2(),n=Vn(),r=k.useMemo(()=>q(e,t?.getItemProps({value:e.value})??{}),[e,t]),i=k.useId(),{getRootNode:a}=Ht(),{dir:c}=vn(),u={id:i,ids:{label:n?.ids.label,hiddenInput:n?.ids.control},dir:c,disabled:n?.disabled,readOnly:n?.readOnly,invalid:n?.invalid,required:n?.required,getRootNode:a,...r},f=Yt(L2,u);return _2(f,sn)},j2=ze(),_C=k.forwardRef((e,t)=>{const[n,r]=j2(e,["checked","defaultChecked","disabled","form","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]),i=H2(n),a=q(i.getRootProps(),r);return P.jsx(CC,{value:i,children:P.jsx(re.label,{...a,ref:t})})});_C.displayName="CheckboxRoot";const G2=ze(),LC=k.forwardRef((e,t)=>{const[{value:n},r]=G2(e,["value"]),i=q(n.getRootProps(),r);return P.jsx(CC,{value:n,children:P.jsx(re.label,{...i,ref:t})})});LC.displayName="CheckboxRootProvider";var $C=ve("clipboard").parts("root","control","trigger","indicator","input","label");$C.build();he()(["getRootNode","id","ids","value","defaultValue","timeout","onStatusChange","onValueChange"]);he()(["copied"]);const U2=sC.extendWith("view");var K2=Object.defineProperty,Y2=(e,t,n)=>t in e?K2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,K=(e,t,n)=>Y2(e,typeof t!="symbol"?t+"":t,n),lu={itemToValue(e){return typeof e=="string"?e:Bo(e)&&Rr(e,"value")?e.value:""},itemToString(e){return typeof e=="string"?e:Bo(e)&&Rr(e,"label")?e.label:lu.itemToValue(e)},isItemDisabled(e){return Bo(e)&&Rr(e,"disabled")?!!e.disabled:!1}},bs=class DC{constructor(t){this.options=t,K(this,"items"),K(this,"indexMap",null),K(this,"copy",n=>new DC({...this.options,items:n??[...this.items]})),K(this,"isEqual",n=>Wt(this.items,n.items)),K(this,"setItems",n=>this.copy(n)),K(this,"getValues",(n=this.items)=>{const r=[];for(const i of n){const a=this.getItemValue(i);a!=null&&r.push(a)}return r}),K(this,"find",n=>{if(n==null)return null;const r=this.indexOf(n);return r!==-1?this.at(r):null}),K(this,"findMany",n=>{const r=[];for(const i of n){const a=this.find(i);a!=null&&r.push(a)}return r}),K(this,"at",n=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[n]??null;let r=0;const i=this.group();for(const[,a]of i)for(const c of a){if(r===n)return c;r++}return null}),K(this,"sortFn",(n,r)=>{const i=this.indexOf(n),a=this.indexOf(r);return(i??0)-(a??0)}),K(this,"sort",n=>[...n].sort(this.sortFn.bind(this))),K(this,"getItemValue",n=>n==null?null:this.options.itemToValue?.(n)??lu.itemToValue(n)),K(this,"getItemDisabled",n=>n==null?!1:this.options.isItemDisabled?.(n)??lu.isItemDisabled(n)),K(this,"stringifyItem",n=>n==null?null:this.options.itemToString?.(n)??lu.itemToString(n)),K(this,"stringify",n=>n==null?null:this.stringifyItem(this.find(n))),K(this,"stringifyItems",(n,r=", ")=>{const i=[];for(const a of n){const c=this.stringifyItem(a);c!=null&&i.push(c)}return i.join(r)}),K(this,"stringifyMany",(n,r)=>this.stringifyItems(this.findMany(n),r)),K(this,"has",n=>this.indexOf(n)!==-1),K(this,"hasItem",n=>n==null?!1:this.has(this.getItemValue(n))),K(this,"group",()=>{const{groupBy:n,groupSort:r}=this.options;if(!n)return[["",[...this.items]]];const i=new Map;this.items.forEach((c,u)=>{const f=n(c,u);i.has(f)||i.set(f,[]),i.get(f).push(c)});let a=Array.from(i.entries());return r&&a.sort(([c],[u])=>{if(typeof r=="function")return r(c,u);if(Array.isArray(r)){const f=r.indexOf(c),p=r.indexOf(u);return f===-1?1:p===-1?-1:f-p}return r==="asc"?c.localeCompare(u):r==="desc"?u.localeCompare(c):0}),a}),K(this,"getNextValue",(n,r=1,i=!1)=>{let a=this.indexOf(n);if(a===-1)return null;for(a=i?Math.min(a+r,this.size-1):a+r;a<=this.size&&this.getItemDisabled(this.at(a));)a++;return this.getItemValue(this.at(a))}),K(this,"getPreviousValue",(n,r=1,i=!1)=>{let a=this.indexOf(n);if(a===-1)return null;for(a=i?Math.max(a-r,0):a-r;a>=0&&this.getItemDisabled(this.at(a));)a--;return this.getItemValue(this.at(a))}),K(this,"indexOf",n=>{if(n==null)return-1;if(!this.options.groupBy&&!this.options.groupSort)return this.items.findIndex(r=>this.getItemValue(r)===n);if(!this.indexMap){this.indexMap=new Map;let r=0;const i=this.group();for(const[,a]of i)for(const c of a){const u=this.getItemValue(c);u!=null&&this.indexMap.set(u,r),r++}}return this.indexMap.get(n)??-1}),K(this,"getByText",(n,r)=>{const i=r!=null?this.indexOf(r):-1,a=n.length===1;for(let c=0;c<this.items.length;c++){const u=this.items[(i+c+1)%this.items.length];if(!(a&&this.getItemValue(u)===r)&&!this.getItemDisabled(u)&&X2(this.stringifyItem(u),n))return u}}),K(this,"search",(n,r)=>{const{state:i,currentValue:a,timeout:c=350}=r,u=i.keysSoFar+n,p=u.length>1&&Array.from(u).every(w=>w===u[0])?u[0]:u,h=this.getByText(p,a),y=this.getItemValue(h);function b(){clearTimeout(i.timer),i.timer=-1}function v(w){i.keysSoFar=w,b(),w!==""&&(i.timer=+setTimeout(()=>{v(""),b()},c))}return v(u),y}),K(this,"update",(n,r)=>{let i=this.indexOf(n);return i===-1?this:this.copy([...this.items.slice(0,i),r,...this.items.slice(i+1)])}),K(this,"upsert",(n,r,i="append")=>{let a=this.indexOf(n);return a===-1?(i==="append"?this.append:this.prepend)(r):this.copy([...this.items.slice(0,a),r,...this.items.slice(a+1)])}),K(this,"insert",(n,...r)=>this.copy(xa(this.items,n,...r))),K(this,"insertBefore",(n,...r)=>{let i=this.indexOf(n);if(i===-1)if(this.items.length===0)i=0;else return this;return this.copy(xa(this.items,i,...r))}),K(this,"insertAfter",(n,...r)=>{let i=this.indexOf(n);if(i===-1)if(this.items.length===0)i=0;else return this;return this.copy(xa(this.items,i+1,...r))}),K(this,"prepend",(...n)=>this.copy(xa(this.items,0,...n))),K(this,"append",(...n)=>this.copy(xa(this.items,this.items.length,...n))),K(this,"filter",n=>{const r=this.items.filter((i,a)=>n(this.stringifyItem(i),a,i));return this.copy(r)}),K(this,"remove",(...n)=>{const r=n.map(i=>typeof i=="string"?i:this.getItemValue(i));return this.copy(this.items.filter(i=>{const a=this.getItemValue(i);return a==null?!1:!r.includes(a)}))}),K(this,"move",(n,r)=>{const i=this.indexOf(n);return i===-1?this:this.copy(zc(this.items,[i],r))}),K(this,"moveBefore",(n,...r)=>{let i=this.items.findIndex(c=>this.getItemValue(c)===n);if(i===-1)return this;let a=r.map(c=>this.items.findIndex(u=>this.getItemValue(u)===c)).sort((c,u)=>c-u);return this.copy(zc(this.items,a,i))}),K(this,"moveAfter",(n,...r)=>{let i=this.items.findIndex(c=>this.getItemValue(c)===n);if(i===-1)return this;let a=r.map(c=>this.items.findIndex(u=>this.getItemValue(u)===c)).sort((c,u)=>c-u);return this.copy(zc(this.items,a,i+1))}),K(this,"reorder",(n,r)=>this.copy(zc(this.items,[n],r))),K(this,"compareValue",(n,r)=>{const i=this.indexOf(n),a=this.indexOf(r);return i<a?-1:i>a?1:0}),K(this,"range",(n,r)=>{let i=[],a=n;for(;a!=null;){if(this.find(a)&&i.push(a),a===r)return i;a=this.getNextValue(a)}return[]}),K(this,"getValueRange",(n,r)=>n&&r?this.compareValue(n,r)<=0?this.range(n,r):this.range(r,n):[]),K(this,"toString",()=>{let n="";for(const r of this.items){const i=this.getItemValue(r),a=this.stringifyItem(r),c=this.getItemDisabled(r),u=[i,a,c].filter(Boolean).join(":");n+=u+","}return n}),K(this,"toJSON",()=>({size:this.size,first:this.firstValue,last:this.lastValue})),this.items=[...t.items]}get size(){return this.items.length}get firstValue(){let t=0;for(;this.getItemDisabled(this.at(t));)t++;return this.getItemValue(this.at(t))}get lastValue(){let t=this.size-1;for(;this.getItemDisabled(this.at(t));)t--;return this.getItemValue(this.at(t))}*[Symbol.iterator](){yield*this.items}},X2=(e,t)=>!!e?.toLowerCase().startsWith(t.toLowerCase());function xa(e,t,...n){return[...e.slice(0,t),...n,...e.slice(t)]}function zc(e,t,n){t=[...t].sort((i,a)=>i-a);const r=t.map(i=>e[i]);for(let i=t.length-1;i>=0;i--)e=[...e.slice(0,t[i]),...e.slice(t[i]+1)];return n=Math.max(0,n-t.filter(i=>i<n).length),[...e.slice(0,n),...r,...e.slice(n)]}var q2=class cu extends Set{constructor(t=[]){super(t),K(this,"selectionMode","single"),K(this,"deselectable",!0),K(this,"copy",()=>{const n=new cu([...this]);return this.sync(n)}),K(this,"sync",n=>(n.selectionMode=this.selectionMode,n.deselectable=this.deselectable,n)),K(this,"isEmpty",()=>this.size===0),K(this,"isSelected",n=>this.selectionMode==="none"||n==null?!1:this.has(n)),K(this,"canSelect",(n,r)=>this.selectionMode!=="none"||!n.getItemDisabled(n.find(r))),K(this,"firstSelectedValue",n=>{let r=null;for(let i of this)(!r||n.compareValue(i,r)<0)&&(r=i);return r}),K(this,"lastSelectedValue",n=>{let r=null;for(let i of this)(!r||n.compareValue(i,r)>0)&&(r=i);return r}),K(this,"extendSelection",(n,r,i)=>{if(this.selectionMode==="none")return this;if(this.selectionMode==="single")return this.replaceSelection(n,i);const a=this.copy(),c=Array.from(this).pop();for(let u of n.getValueRange(r,c??i))a.delete(u);for(let u of n.getValueRange(i,r))this.canSelect(n,u)&&a.add(u);return a}),K(this,"toggleSelection",(n,r)=>{if(this.selectionMode==="none")return this;if(this.selectionMode==="single"&&!this.isSelected(r))return this.replaceSelection(n,r);const i=this.copy();return i.has(r)?i.delete(r):i.canSelect(n,r)&&i.add(r),i}),K(this,"replaceSelection",(n,r)=>{if(this.selectionMode==="none")return this;if(r==null)return this;if(!this.canSelect(n,r))return this;const i=new cu([r]);return this.sync(i)}),K(this,"setSelection",n=>{if(this.selectionMode==="none")return this;let r=new cu;for(let i of n)if(i!=null&&(r.add(i),this.selectionMode==="single"))break;return this.sync(r)}),K(this,"clearSelection",()=>{const n=this.copy();return n.deselectable&&n.size>0&&n.clear(),n}),K(this,"select",(n,r,i)=>this.selectionMode==="none"?this:this.selectionMode==="single"?this.isSelected(r)&&this.deselectable?this.toggleSelection(n,r):this.replaceSelection(n,r):this.selectionMode==="multiple"||i?this.toggleSelection(n,r):this.replaceSelection(n,r)),K(this,"deselect",n=>{const r=this.copy();return r.delete(n),r}),K(this,"isEqual",n=>Wt(Array.from(this),Array.from(n)))}};function zC(e,t,n){for(let r=0;r<t.length;r++)e=n.getChildren(e,t.slice(r+1))[t[r]];return e}function Q2(e){const t=Z2(e),n=[],r=new Set;for(const i of t){const a=i.join();r.has(a)||(r.add(a),n.push(i))}return n}function FC(e,t){for(let n=0;n<Math.min(e.length,t.length);n++){if(e[n]<t[n])return-1;if(e[n]>t[n])return 1}return e.length-t.length}function Z2(e){return e.sort(FC)}function J2(e,t){let n;return gn(e,{...t,onEnter:(r,i)=>{if(t.predicate(r,i))return n=r,"stop"}}),n}function e_(e,t){const n=[];return gn(e,{onEnter:(r,i)=>{t.predicate(r,i)&&n.push(r)},getChildren:t.getChildren}),n}function Mb(e,t){let n;return gn(e,{onEnter:(r,i)=>{if(t.predicate(r,i))return n=[...i],"stop"},getChildren:t.getChildren}),n}function t_(e,t){let n=t.initialResult;return gn(e,{...t,onEnter:(r,i)=>{n=t.nextResult(n,r,i)}}),n}function n_(e,t){return t_(e,{...t,initialResult:[],nextResult:(n,r,i)=>(n.push(...t.transform(r,i)),n)})}function r_(e,t){const{predicate:n,create:r,getChildren:i}=t,a=(c,u)=>{const f=i(c,u),p=[];f.forEach((v,w)=>{const x=[...u,w],E=a(v,x);E&&p.push(E)});const h=u.length===0,y=n(c,u),b=p.length>0;return h||y||b?r(c,p,u):null};return a(e,[])||r(e,[],[])}function o_(e,t){const n=[];let r=0;const i=new Map,a=new Map;return gn(e,{getChildren:t.getChildren,onEnter:(c,u)=>{i.has(c)||i.set(c,r++);const f=t.getChildren(c,u);f.forEach(v=>{a.has(v)||a.set(v,c),i.has(v)||i.set(v,r++)});const p=f.length>0?f.map(v=>i.get(v)):void 0,h=a.get(c),y=h?i.get(h):void 0,b=i.get(c);n.push({...c,_children:p,_parent:y,_index:b})}}),n}function i_(e,t){return{type:"insert",index:e,nodes:t}}function s_(e){return{type:"remove",indexes:e}}function ah(){return{type:"replace"}}function MC(e){return[e.slice(0,-1),e[e.length-1]]}function BC(e,t,n=new Map){const[r,i]=MC(e);for(let c=r.length-1;c>=0;c--){const u=r.slice(0,c).join();switch(n.get(u)?.type){case"remove":continue}n.set(u,ah())}const a=n.get(r.join());switch(a?.type){case"remove":n.set(r.join(),{type:"removeThenInsert",removeIndexes:a.indexes,insertIndex:i,insertNodes:t});break;default:n.set(r.join(),i_(i,t))}return n}function WC(e){const t=new Map,n=new Map;for(const r of e){const i=r.slice(0,-1).join(),a=n.get(i)??[];a.push(r[r.length-1]),n.set(i,a.sort((c,u)=>c-u))}for(const r of e)for(let i=r.length-2;i>=0;i--){const a=r.slice(0,i).join();t.has(a)||t.set(a,ah())}for(const[r,i]of n)t.set(r,s_(i));return t}function a_(e,t){const n=new Map,[r,i]=MC(e);for(let a=r.length-1;a>=0;a--){const c=r.slice(0,a).join();n.set(c,ah())}return n.set(r.join(),{type:"removeThenInsert",removeIndexes:[i],insertIndex:i,insertNodes:[t]}),n}function Qu(e,t,n){return l_(e,{...n,getChildren:(r,i)=>{const a=i.join();switch(t.get(a)?.type){case"replace":case"remove":case"removeThenInsert":case"insert":return n.getChildren(r,i);default:return[]}},transform:(r,i,a)=>{const c=a.join(),u=t.get(c);switch(u?.type){case"remove":return n.create(r,i.filter((h,y)=>!u.indexes.includes(y)),a);case"removeThenInsert":const f=i.filter((h,y)=>!u.removeIndexes.includes(y)),p=u.removeIndexes.reduce((h,y)=>y<h?h-1:h,u.insertIndex);return n.create(r,Bb(f,p,0,...u.insertNodes),a);case"insert":return n.create(r,Bb(i,u.index,0,...u.nodes),a);case"replace":return n.create(r,i,a);default:return r}}})}function Bb(e,t,n,...r){return[...e.slice(0,t),...r,...e.slice(t+n)]}function l_(e,t){const n={};return gn(e,{...t,onLeave:(r,i)=>{const a=[0,...i],c=a.join(),u=t.transform(r,n[c]??[],i),f=a.slice(0,-1).join(),p=n[f]??[];p.push(u),n[f]=p}}),n[""][0]}function c_(e,t){const{nodes:n,at:r}=t;if(r.length===0)throw new Error("Can't insert nodes at the root");const i=BC(r,n);return Qu(e,i,t)}function u_(e,t){if(t.at.length===0)return t.node;const n=a_(t.at,t.node);return Qu(e,n,t)}function d_(e,t){if(t.indexPaths.length===0)return e;for(const r of t.indexPaths)if(r.length===0)throw new Error("Can't remove the root node");const n=WC(t.indexPaths);return Qu(e,n,t)}function f_(e,t){if(t.indexPaths.length===0)return e;for(const a of t.indexPaths)if(a.length===0)throw new Error("Can't move the root node");if(t.to.length===0)throw new Error("Can't move nodes to the root");const n=Q2(t.indexPaths),r=n.map(a=>zC(e,a,t)),i=BC(t.to,r,WC(n));return Qu(e,i,t)}function gn(e,t){const{onEnter:n,onLeave:r,getChildren:i}=t;let a=[],c=[{node:e}];const u=t.reuseIndexPath?()=>a:()=>a.slice();for(;c.length>0;){let f=c[c.length-1];if(f.state===void 0){const h=n?.(f.node,u());if(h==="stop")return;f.state=h==="skip"?-1:0}const p=f.children||i(f.node,u());if(f.children||(f.children=p),f.state!==-1){if(f.state<p.length){let y=f.state;a.push(y),c.push({node:p[y]}),f.state=y+1;continue}if(r?.(f.node,u())==="stop")return}a.pop(),c.pop()}}var HC=class jC{constructor(t){this.options=t,K(this,"rootNode"),K(this,"isEqual",n=>Wt(this.rootNode,n.rootNode)),K(this,"getNodeChildren",n=>this.options.nodeToChildren?.(n)??Hi.nodeToChildren(n)??[]),K(this,"resolveIndexPath",n=>typeof n=="string"?this.getIndexPath(n):n),K(this,"resolveNode",n=>{const r=this.resolveIndexPath(n);return r?this.at(r):void 0}),K(this,"getNodeChildrenCount",n=>this.options.nodeToChildrenCount?.(n)??Hi.nodeToChildrenCount(n)),K(this,"getNodeValue",n=>this.options.nodeToValue?.(n)??Hi.nodeToValue(n)),K(this,"getNodeDisabled",n=>this.options.isNodeDisabled?.(n)??Hi.isNodeDisabled(n)),K(this,"stringify",n=>{const r=this.findNode(n);return r?this.stringifyNode(r):null}),K(this,"stringifyNode",n=>this.options.nodeToString?.(n)??Hi.nodeToString(n)),K(this,"getFirstNode",(n=this.rootNode)=>{let r;return gn(n,{getChildren:this.getNodeChildren,onEnter:(i,a)=>{if(!r&&a.length>0&&!this.getNodeDisabled(i))return r=i,"stop"}}),r}),K(this,"getLastNode",(n=this.rootNode,r={})=>{let i;return gn(n,{getChildren:this.getNodeChildren,onEnter:(a,c)=>{if(!this.isSameNode(a,n)){if(r.skip?.({value:this.getNodeValue(a),node:a,indexPath:c}))return"skip";c.length>0&&!this.getNodeDisabled(a)&&(i=a)}}}),i}),K(this,"at",n=>zC(this.rootNode,n,{getChildren:this.getNodeChildren})),K(this,"findNode",(n,r=this.rootNode)=>J2(r,{getChildren:this.getNodeChildren,predicate:i=>this.getNodeValue(i)===n})),K(this,"findNodes",(n,r=this.rootNode)=>{const i=new Set(n.filter(a=>a!=null));return e_(r,{getChildren:this.getNodeChildren,predicate:a=>i.has(this.getNodeValue(a))})}),K(this,"sort",n=>n.reduce((r,i)=>{const a=this.getIndexPath(i);return a&&r.push({value:i,indexPath:a}),r},[]).sort((r,i)=>FC(r.indexPath,i.indexPath)).map(({value:r})=>r)),K(this,"getIndexPath",n=>Mb(this.rootNode,{getChildren:this.getNodeChildren,predicate:r=>this.getNodeValue(r)===n})),K(this,"getValue",n=>{const r=this.at(n);return r?this.getNodeValue(r):void 0}),K(this,"getValuePath",n=>{if(!n)return[];const r=[];let i=[...n];for(;i.length>0;){const a=this.at(i);a&&r.unshift(this.getNodeValue(a)),i.pop()}return r}),K(this,"getDepth",n=>Mb(this.rootNode,{getChildren:this.getNodeChildren,predicate:i=>this.getNodeValue(i)===n})?.length??0),K(this,"isSameNode",(n,r)=>this.getNodeValue(n)===this.getNodeValue(r)),K(this,"isRootNode",n=>this.isSameNode(n,this.rootNode)),K(this,"contains",(n,r)=>!n||!r?!1:r.slice(0,n.length).every((i,a)=>n[a]===r[a])),K(this,"getNextNode",(n,r={})=>{let i=!1,a;return gn(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(c,u)=>{if(this.isRootNode(c))return;const f=this.getNodeValue(c);if(r.skip?.({value:f,node:c,indexPath:u}))return f===n&&(i=!0),"skip";if(i&&!this.getNodeDisabled(c))return a=c,"stop";f===n&&(i=!0)}}),a}),K(this,"getPreviousNode",(n,r={})=>{let i,a=!1;return gn(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(c,u)=>{if(this.isRootNode(c))return;const f=this.getNodeValue(c);if(r.skip?.({value:f,node:c,indexPath:u}))return"skip";if(f===n)return a=!0,"stop";this.getNodeDisabled(c)||(i=c)}}),a?i:void 0}),K(this,"getParentNodes",n=>{const r=this.resolveIndexPath(n)?.slice();if(!r)return[];const i=[];for(;r.length>0;){r.pop();const a=this.at(r);a&&!this.isRootNode(a)&&i.unshift(a)}return i}),K(this,"getDescendantNodes",(n,r)=>{const i=this.resolveNode(n);if(!i)return[];const a=[];return gn(i,{getChildren:this.getNodeChildren,onEnter:(c,u)=>{u.length!==0&&(!r?.withBranch&&this.isBranchNode(c)||a.push(c))}}),a}),K(this,"getDescendantValues",(n,r)=>this.getDescendantNodes(n,r).map(a=>this.getNodeValue(a))),K(this,"getParentIndexPath",n=>n.slice(0,-1)),K(this,"getParentNode",n=>{const r=this.resolveIndexPath(n);return r?this.at(this.getParentIndexPath(r)):void 0}),K(this,"visit",n=>{const{skip:r,...i}=n;gn(this.rootNode,{...i,getChildren:this.getNodeChildren,onEnter:(a,c)=>{if(!this.isRootNode(a))return r?.({value:this.getNodeValue(a),node:a,indexPath:c})?"skip":i.onEnter?.(a,c)}})}),K(this,"getPreviousSibling",n=>{const r=this.getParentNode(n);if(!r)return;const i=this.getNodeChildren(r);let a=n[n.length-1];for(;--a>=0;){const c=i[a];if(!this.getNodeDisabled(c))return c}}),K(this,"getNextSibling",n=>{const r=this.getParentNode(n);if(!r)return;const i=this.getNodeChildren(r);let a=n[n.length-1];for(;++a<i.length;){const c=i[a];if(!this.getNodeDisabled(c))return c}}),K(this,"getSiblingNodes",n=>{const r=this.getParentNode(n);return r?this.getNodeChildren(r):[]}),K(this,"getValues",(n=this.rootNode)=>n_(n,{getChildren:this.getNodeChildren,transform:i=>[this.getNodeValue(i)]}).slice(1)),K(this,"isValidDepth",(n,r)=>r==null?!0:typeof r=="function"?r(n.length):n.length===r),K(this,"isBranchNode",n=>this.getNodeChildren(n).length>0||this.getNodeChildrenCount(n)!=null),K(this,"getBranchValues",(n=this.rootNode,r={})=>{let i=[];return gn(n,{getChildren:this.getNodeChildren,onEnter:(a,c)=>{if(c.length===0)return;const u=this.getNodeValue(a);if(r.skip?.({value:u,node:a,indexPath:c}))return"skip";this.isBranchNode(a)&&this.isValidDepth(c,r.depth)&&i.push(this.getNodeValue(a))}}),i}),K(this,"flatten",(n=this.rootNode)=>o_(n,{getChildren:this.getNodeChildren})),K(this,"_create",(n,r)=>this.getNodeChildren(n).length>0||r.length>0?{...n,children:r}:{...n}),K(this,"_insert",(n,r,i)=>this.copy(c_(n,{at:r,nodes:i,getChildren:this.getNodeChildren,create:this._create}))),K(this,"copy",n=>new jC({...this.options,rootNode:n})),K(this,"_replace",(n,r,i)=>this.copy(u_(n,{at:r,node:i,getChildren:this.getNodeChildren,create:this._create}))),K(this,"_move",(n,r,i)=>this.copy(f_(n,{indexPaths:r,to:i,getChildren:this.getNodeChildren,create:this._create}))),K(this,"_remove",(n,r)=>this.copy(d_(n,{indexPaths:r,getChildren:this.getNodeChildren,create:this._create}))),K(this,"replace",(n,r)=>this._replace(this.rootNode,n,r)),K(this,"remove",n=>this._remove(this.rootNode,n)),K(this,"insertBefore",(n,r)=>this.getParentNode(n)?this._insert(this.rootNode,n,r):void 0),K(this,"insertAfter",(n,r)=>{if(!this.getParentNode(n))return;const a=[...n.slice(0,-1),n[n.length-1]+1];return this._insert(this.rootNode,a,r)}),K(this,"move",(n,r)=>this._move(this.rootNode,n,r)),K(this,"filter",n=>{const r=r_(this.rootNode,{predicate:n,getChildren:this.getNodeChildren,create:this._create});return this.copy(r)}),K(this,"toJSON",()=>this.getValues(this.rootNode)),this.rootNode=t.rootNode}},Hi={nodeToValue(e){return typeof e=="string"?e:Bo(e)&&Rr(e,"value")?e.value:""},nodeToString(e){return typeof e=="string"?e:Bo(e)&&Rr(e,"label")?e.label:Hi.nodeToValue(e)},isNodeDisabled(e){return Bo(e)&&Rr(e,"disabled")?!!e.disabled:!1},nodeToChildren(e){return e.children},nodeToChildrenCount(e){if(Bo(e)&&Rr(e,"childrenCount"))return e.childrenCount}},GC=ve("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger");GC.build();var UC=e=>new bs(e);UC.empty=()=>new bs({items:[]});var g_=e=>e.ids?.control??`combobox:${e.id}:control`,p_=e=>e.ids?.input??`combobox:${e.id}:input`,h_=e=>e.ids?.content??`combobox:${e.id}:content`,m_=e=>e.ids?.positioner??`combobox:${e.id}:popper`,v_=e=>e.ids?.trigger??`combobox:${e.id}:toggle-btn`,y_=e=>e.ids?.clearTrigger??`combobox:${e.id}:clear-btn`,Fo=e=>e.getById(h_(e)),Da=e=>e.getById(p_(e)),Wb=e=>e.getById(m_(e)),Hb=e=>e.getById(g_(e)),uu=e=>e.getById(v_(e)),b_=e=>e.getById(y_(e)),wa=(e,t)=>{if(t==null)return null;const n=`[role=option][data-value="${CSS.escape(t)}"]`;return gs(Fo(e),n)},jb=e=>{const t=Da(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})},x_=e=>{const t=uu(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})},{guards:w_,createMachine:C_,choose:S_}=ol(),{and:ht,not:fn}=w_;C_({props({props:e}){return{loopFocus:!0,openOnClick:!1,defaultValue:[],defaultInputValue:"",closeOnSelect:!e.multiple,allowCustomValue:!1,alwaysSubmitOnEnter:!1,inputBehavior:"none",selectionBehavior:e.multiple?"clear":"replace",openOnKeyPress:!0,openOnChange:!0,composite:!0,navigate({node:t}){xw(t)},collection:UC.empty(),...e,positioning:{placement:"bottom",sameWidth:!0,...e.positioning},translations:{triggerLabel:"Toggle suggestions",clearTriggerLabel:"Clear value",...e.translations}}},initialState({prop:e}){return e("open")||e("defaultOpen")?"suggesting":"idle"},context({prop:e,bindable:t,getContext:n,getEvent:r}){return{currentPlacement:t(()=>({defaultValue:void 0})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:Wt,hash(i){return i.join(",")},onChange(i){const a=n(),c=a.get("selectedItems"),u=e("collection"),f=i.map(p=>c.find(y=>u.getItemValue(y)===p)||u.find(p));a.set("selectedItems",f),e("onValueChange")?.({value:i,items:f})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(i){const a=e("collection").find(i);e("onHighlightChange")?.({highlightedValue:i,highlightedItem:a})}})),inputValue:t(()=>{let i=e("inputValue")||e("defaultInputValue");const a=e("value")||e("defaultValue");if(!i.trim()&&!e("multiple")){const c=e("collection").stringifyMany(a);i=Er(e("selectionBehavior"),{preserve:i||c,replace:c,clear:""})}return{defaultValue:i,value:e("inputValue"),onChange(c){const u=r(),f=(u.previousEvent||u).src;e("onInputValueChange")?.({inputValue:c,reason:f})}}}),highlightedItem:t(()=>{const i=e("highlightedValue");return{defaultValue:e("collection").find(i)}}),selectedItems:t(()=>{const i=e("value")||e("defaultValue")||[];return{defaultValue:e("collection").findMany(i)}})}},computed:{isInputValueEmpty:({context:e})=>e.get("inputValue").length===0,isInteractive:({prop:e})=>!(e("readOnly")||e("disabled")),autoComplete:({prop:e})=>e("inputBehavior")==="autocomplete",autoHighlight:({prop:e})=>e("inputBehavior")==="autohighlight",hasSelectedItems:({context:e})=>e.get("value").length>0,valueAsString:({context:e,prop:t})=>t("collection").stringifyItems(e.get("selectedItems")),isCustomValue:({context:e,computed:t})=>e.get("inputValue")!==t("valueAsString")},watch({context:e,prop:t,track:n,action:r,send:i}){n([()=>e.hash("value")],()=>{r(["syncSelectedItems"])}),n([()=>e.get("inputValue")],()=>{r(["syncInputValue"])}),n([()=>e.get("highlightedValue")],()=>{r(["syncHighlightedItem","autofillInputValue"])}),n([()=>t("open")],()=>{r(["toggleVisibility"])}),n([()=>t("collection").toString()],()=>{i({type:"CHILDREN_CHANGE"})})},on:{"SELECTED_ITEMS.SYNC":{actions:["syncSelectedItems"]},"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedValue"]},"HIGHLIGHTED_VALUE.CLEAR":{actions:["clearHighlightedValue"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setValue"]},"INPUT_VALUE.SET":{actions:["setInputValue"]},"POSITIONING.SET":{actions:["reposition"]}},entry:S_([{guard:"autoFocus",actions:["setInitialFocus"]}]),states:{idle:{tags:["idle","closed"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":{target:"interacting"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{target:"focused",actions:["clearInputValue","clearSelectedItems","setInitialFocus"]}}},focused:{tags:["focused","closed"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":[{guard:"isChangeEvent",target:"suggesting"},{target:"interacting"}],"INPUT.CHANGE":[{guard:ht("isOpenControlled","openOnChange"),actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{guard:"openOnChange",target:"suggesting",actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{actions:["setInputValue"]}],"LAYER.INTERACT_OUTSIDE":{target:"idle"},"INPUT.ESCAPE":{guard:ht("isCustomValue",fn("allowCustomValue")),actions:["revertInputValue"]},"INPUT.BLUR":{target:"idle"},"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_DOWN":[{guard:ht("isOpenControlled","autoComplete"),actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"isOpenControlled",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_UP":[{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{actions:["clearInputValue","clearSelectedItems"]}}},interacting:{tags:["open","focused"],entry:["setInitialFocus"],effects:["scrollToHighlightedItem","trackDismissableLayer","trackPlacement"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{actions:["scrollToHighlightedItem"]}],"INPUT.HOME":{actions:["highlightFirstItem"]},"INPUT.END":{actions:["highlightLastItem"]},"INPUT.ARROW_DOWN":[{guard:ht("autoComplete","isLastItemHighlighted"),actions:["clearHighlightedValue","scrollContentToTop"]},{actions:["highlightNextItem"]}],"INPUT.ARROW_UP":[{guard:ht("autoComplete","isFirstItemHighlighted"),actions:["clearHighlightedValue"]},{actions:["highlightPrevItem"]}],"INPUT.ENTER":[{guard:ht("isOpenControlled","isCustomValue",fn("hasHighlightedItem"),fn("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:ht("isCustomValue",fn("hasHighlightedItem"),fn("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:ht("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":[{guard:"autoComplete",target:"suggesting",actions:["setInputValue"]},{target:"suggesting",actions:["clearHighlightedValue","setInputValue"]}],"ITEM.POINTER_MOVE":{actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"ITEM.CLICK":[{guard:ht("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],"LAYER.ESCAPE":[{guard:ht("isOpenControlled","autoComplete"),actions:["syncInputValue","invokeOnClose"]},{guard:"autoComplete",target:"focused",actions:["syncInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"LAYER.INTERACT_OUTSIDE":[{guard:ht("isOpenControlled","isCustomValue",fn("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:ht("isCustomValue",fn("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}},suggesting:{tags:["open","focused"],effects:["trackDismissableLayer","scrollToHighlightedItem","trackPlacement"],entry:["setInitialFocus"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:ht("isHighlightedItemRemoved","hasCollectionItems","autoHighlight"),actions:["clearHighlightedValue","highlightFirstItem"]},{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{guard:"autoHighlight",actions:["highlightFirstItem"]}],"INPUT.ARROW_DOWN":{target:"interacting",actions:["highlightNextItem"]},"INPUT.ARROW_UP":{target:"interacting",actions:["highlightPrevItem"]},"INPUT.HOME":{target:"interacting",actions:["highlightFirstItem"]},"INPUT.END":{target:"interacting",actions:["highlightLastItem"]},"INPUT.ENTER":[{guard:ht("isOpenControlled","isCustomValue",fn("hasHighlightedItem"),fn("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:ht("isCustomValue",fn("hasHighlightedItem"),fn("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:ht("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":{actions:["setInputValue"]},"LAYER.ESCAPE":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.POINTER_MOVE":{target:"interacting",actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"LAYER.INTERACT_OUTSIDE":[{guard:ht("isOpenControlled","isCustomValue",fn("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:ht("isCustomValue",fn("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.CLICK":[{guard:ht("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}}},implementations:{guards:{isInputValueEmpty:({computed:e})=>e("isInputValueEmpty"),autoComplete:({computed:e,prop:t})=>e("autoComplete")&&!t("multiple"),autoHighlight:({computed:e})=>e("autoHighlight"),isFirstItemHighlighted:({prop:e,context:t})=>e("collection").firstValue===t.get("highlightedValue"),isLastItemHighlighted:({prop:e,context:t})=>e("collection").lastValue===t.get("highlightedValue"),isCustomValue:({computed:e})=>e("isCustomValue"),allowCustomValue:({prop:e})=>!!e("allowCustomValue"),hasHighlightedItem:({context:e})=>e.get("highlightedValue")!=null,closeOnSelect:({prop:e})=>!!e("closeOnSelect"),isOpenControlled:({prop:e})=>e("open")!=null,openOnChange:({prop:e,context:t})=>{const n=e("openOnChange");return yO(n)?n:!!n?.({inputValue:t.get("inputValue")})},restoreFocus:({event:e})=>{const t=e.restoreFocus??e.previousEvent?.restoreFocus;return t==null?!0:!!t},isChangeEvent:({event:e})=>e.previousEvent?.type==="INPUT.CHANGE",autoFocus:({prop:e})=>!!e("autoFocus"),isHighlightedItemRemoved:({prop:e,context:t})=>!e("collection").has(t.get("highlightedValue")),hasCollectionItems:({prop:e})=>e("collection").size>0},effects:{trackDismissableLayer({send:e,prop:t,scope:n}){return t("disableLayer")?void 0:ms(()=>Fo(n),{type:"listbox",defer:!0,exclude:()=>[Da(n),uu(n),b_(n)],onFocusOutside:t("onFocusOutside"),onPointerDownOutside:t("onPointerDownOutside"),onInteractOutside:t("onInteractOutside"),onEscapeKeyDown(i){i.preventDefault(),i.stopPropagation(),e({type:"LAYER.ESCAPE",src:"escape-key"})},onDismiss(){e({type:"LAYER.INTERACT_OUTSIDE",src:"interact-outside",restoreFocus:!1})}})},trackPlacement({context:e,prop:t,scope:n}){const r=()=>Hb(n)||uu(n),i=()=>Wb(n);return e.set("currentPlacement",t("positioning").placement),Un(r,i,{...t("positioning"),defer:!0,onComplete(a){e.set("currentPlacement",a.placement)}})},scrollToHighlightedItem({context:e,prop:t,scope:n,event:r}){const i=Da(n);let a=[];const c=p=>{const h=r.current().type.includes("POINTER"),y=e.get("highlightedValue");if(h||!y)return;const b=Fo(n),v=t("scrollToIndexFn");if(v){const E=t("collection").indexOf(y);v({index:E,immediate:p,getElement:()=>wa(n,y)});return}const w=wa(n,y),x=de(()=>{yu(w,{rootEl:b,block:"nearest"})});a.push(x)},u=de(()=>c(!0));a.push(u);const f=Hu(i,{attributes:["aria-activedescendant"],callback:()=>c(!1)});return a.push(f),()=>{a.forEach(p=>p())}}},actions:{reposition({context:e,prop:t,scope:n,event:r}){Un(()=>Hb(n),()=>Wb(n),{...t("positioning"),...r.options,defer:!0,listeners:!1,onComplete(c){e.set("currentPlacement",c.placement)}})},setHighlightedValue({context:e,event:t}){t.value!=null&&e.set("highlightedValue",t.value)},clearHighlightedValue({context:e}){e.set("highlightedValue",null)},selectHighlightedItem(e){const{context:t,prop:n}=e,r=n("collection"),i=t.get("highlightedValue");if(!i||!r.has(i))return;const a=n("multiple")?is(t.get("value"),i):[i];n("onSelect")?.({value:a,itemValue:i}),t.set("value",a);const c=Er(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(a),clear:""});t.set("inputValue",c)},scrollToHighlightedItem({context:e,prop:t,scope:n}){Wu(()=>{const r=e.get("highlightedValue");if(r==null)return;const i=wa(n,r),a=Fo(n),c=t("scrollToIndexFn");if(c){const u=t("collection").indexOf(r);c({index:u,immediate:!0,getElement:()=>wa(n,r)});return}yu(i,{rootEl:a,block:"nearest"})})},selectItem(e){const{context:t,event:n,flush:r,prop:i}=e;n.value!=null&&r(()=>{const a=i("multiple")?is(t.get("value"),n.value):[n.value];i("onSelect")?.({value:a,itemValue:n.value}),t.set("value",a);const c=Er(i("selectionBehavior"),{preserve:t.get("inputValue"),replace:i("collection").stringifyMany(a),clear:""});t.set("inputValue",c)})},clearItem(e){const{context:t,event:n,flush:r,prop:i}=e;n.value!=null&&r(()=>{const a=Ho(t.get("value"),n.value);t.set("value",a);const c=Er(i("selectionBehavior"),{preserve:t.get("inputValue"),replace:i("collection").stringifyMany(a),clear:""});t.set("inputValue",c)})},setInitialFocus({scope:e}){de(()=>{jb(e)})},setFinalFocus({scope:e}){de(()=>{uu(e)?.dataset.focusable==null?jb(e):x_(e)})},syncInputValue({context:e,scope:t,event:n}){const r=Da(t);r&&(r.value=e.get("inputValue"),queueMicrotask(()=>{n.current().type!=="INPUT.CHANGE"&&KO(r)}))},setInputValue({context:e,event:t}){e.set("inputValue",t.value)},clearInputValue({context:e}){e.set("inputValue","")},revertInputValue({context:e,prop:t,computed:n}){const r=t("selectionBehavior"),i=Er(r,{replace:n("hasSelectedItems")?n("valueAsString"):"",preserve:e.get("inputValue"),clear:""});e.set("inputValue",i)},setValue(e){const{context:t,flush:n,event:r,prop:i}=e;n(()=>{t.set("value",r.value);const a=Er(i("selectionBehavior"),{preserve:t.get("inputValue"),replace:i("collection").stringifyMany(r.value),clear:""});t.set("inputValue",a)})},clearSelectedItems(e){const{context:t,flush:n,prop:r}=e;n(()=>{t.set("value",[]);const i=Er(r("selectionBehavior"),{preserve:t.get("inputValue"),replace:r("collection").stringifyMany([]),clear:""});t.set("inputValue",i)})},scrollContentToTop({prop:e,scope:t}){const n=e("scrollToIndexFn");if(n){const r=e("collection").firstValue;n({index:0,immediate:!0,getElement:()=>wa(t,r)})}else{const r=Fo(t);if(!r)return;r.scrollTop=0}},invokeOnOpen({prop:e,event:t,context:n}){const r=Gb(t);e("onOpenChange")?.({open:!0,reason:r,value:n.get("value")})},invokeOnClose({prop:e,event:t,context:n}){const r=Gb(t);e("onOpenChange")?.({open:!1,reason:r,value:n.get("value")})},highlightFirstItem({context:e,prop:t,scope:n}){(Fo(n)?queueMicrotask:de)(()=>{const i=t("collection").firstValue;i&&e.set("highlightedValue",i)})},highlightFirstItemIfNeeded({computed:e,action:t}){e("autoHighlight")&&t(["highlightFirstItem"])},highlightLastItem({context:e,prop:t,scope:n}){(Fo(n)?queueMicrotask:de)(()=>{const i=t("collection").lastValue;i&&e.set("highlightedValue",i)})},highlightNextItem({context:e,prop:t}){let n=null;const r=e.get("highlightedValue"),i=t("collection");r?(n=i.getNextValue(r),!n&&t("loopFocus")&&(n=i.firstValue)):n=i.firstValue,n&&e.set("highlightedValue",n)},highlightPrevItem({context:e,prop:t}){let n=null;const r=e.get("highlightedValue"),i=t("collection");r?(n=i.getPreviousValue(r),!n&&t("loopFocus")&&(n=i.lastValue)):n=i.lastValue,n&&e.set("highlightedValue",n)},highlightFirstSelectedItem({context:e,prop:t}){de(()=>{const[n]=t("collection").sort(e.get("value"));n&&e.set("highlightedValue",n)})},highlightFirstOrSelectedItem({context:e,prop:t,computed:n}){de(()=>{let r=null;n("hasSelectedItems")?r=t("collection").sort(e.get("value"))[0]:r=t("collection").firstValue,r&&e.set("highlightedValue",r)})},highlightLastOrSelectedItem({context:e,prop:t,computed:n}){de(()=>{const r=t("collection");let i=null;n("hasSelectedItems")?i=r.sort(e.get("value"))[0]:i=r.lastValue,i&&e.set("highlightedValue",i)})},autofillInputValue({context:e,computed:t,prop:n,event:r,scope:i}){const a=Da(i),c=n("collection");if(!t("autoComplete")||!a||!r.keypress)return;const u=c.stringify(e.get("highlightedValue"));de(()=>{a.value=u||e.get("inputValue")})},syncSelectedItems(e){queueMicrotask(()=>{const{context:t,prop:n}=e,r=n("collection"),i=t.get("value"),a=i.map(u=>t.get("selectedItems").find(p=>r.getItemValue(p)===u)||r.find(u));t.set("selectedItems",a);const c=Er(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(i),clear:""});t.set("inputValue",c)})},syncHighlightedItem({context:e,prop:t}){const n=t("collection").find(e.get("highlightedValue"));e.set("highlightedItem",n)},toggleVisibility({event:e,send:t,prop:n}){t({type:n("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}});function Gb(e){return(e.previousEvent||e).src}he()(["allowCustomValue","autoFocus","closeOnSelect","collection","composite","defaultHighlightedValue","defaultInputValue","defaultOpen","defaultValue","dir","disabled","disableLayer","form","getRootNode","highlightedValue","id","ids","inputBehavior","inputValue","invalid","loopFocus","multiple","name","navigate","onFocusOutside","onHighlightChange","onInputValueChange","onInteractOutside","onOpenChange","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","openOnChange","openOnClick","openOnKeyPress","placeholder","positioning","readOnly","required","scrollToIndexFn","selectionBehavior","translations","value","alwaysSubmitOnEnter"]);he()(["htmlFor"]);he()(["id"]);he()(["item","persistFocus"]);const E_=GC.extendWith("empty"),[KC,$r]=$e({name:"DialogContext",hookName:"useDialogContext",providerName:"<DialogProvider />"}),lh=k.forwardRef((e,t)=>{const n=$r(),r=ih(),i=An({...r,present:n.open}),a=q(n.getBackdropProps(),i.getPresenceProps(),e);return i.unmounted?null:P.jsx(re.div,{...a,ref:cr(i.ref,t)})});lh.displayName="DialogBackdrop";const ch=k.forwardRef((e,t)=>{const n=$r(),r=q(n.getCloseTriggerProps(),e);return P.jsx(re.button,{...r,ref:t})});ch.displayName="DialogCloseTrigger";const uh=k.forwardRef((e,t)=>{const n=$r(),r=yn(),i=q(n.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:P.jsx(re.div,{...i,ref:cr(r.ref,t)})});uh.displayName="DialogContent";const dh=k.forwardRef((e,t)=>{const n=$r(),r=q(n.getDescriptionProps(),e);return P.jsx(re.div,{...r,ref:t})});dh.displayName="DialogDescription";const fh=k.forwardRef((e,t)=>{const n=$r(),r=q(n.getPositionerProps(),e);return yn().unmounted?null:P.jsx(re.div,{...r,ref:t})});fh.displayName="DialogPositioner";var gh=ve("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),Ao=gh.build(),YC=e=>e.ids?.positioner??`dialog:${e.id}:positioner`,XC=e=>e.ids?.backdrop??`dialog:${e.id}:backdrop`,rp=e=>e.ids?.content??`dialog:${e.id}:content`,qC=e=>e.ids?.trigger??`dialog:${e.id}:trigger`,op=e=>e.ids?.title??`dialog:${e.id}:title`,ip=e=>e.ids?.description??`dialog:${e.id}:description`,QC=e=>e.ids?.closeTrigger??`dialog:${e.id}:close`,Fc=e=>e.getById(rp(e)),k_=e=>e.getById(YC(e)),P_=e=>e.getById(XC(e)),I_=e=>e.getById(qC(e)),T_=e=>e.getById(op(e)),O_=e=>e.getById(ip(e)),R_=e=>e.getById(QC(e));function N_(e,t){const{state:n,send:r,context:i,prop:a,scope:c}=e,u=a("aria-label"),f=n.matches("open");return{open:f,setOpen(p){n.matches("open")!==p&&r({type:p?"OPEN":"CLOSE"})},getTriggerProps(){return t.button({...Ao.trigger.attrs,dir:a("dir"),id:qC(c),"aria-haspopup":"dialog",type:"button","aria-expanded":f,"data-state":f?"open":"closed","aria-controls":rp(c),onClick(p){p.defaultPrevented||r({type:"TOGGLE"})}})},getBackdropProps(){return t.element({...Ao.backdrop.attrs,dir:a("dir"),hidden:!f,id:XC(c),"data-state":f?"open":"closed"})},getPositionerProps(){return t.element({...Ao.positioner.attrs,dir:a("dir"),id:YC(c),style:{pointerEvents:f?void 0:"none"}})},getContentProps(){const p=i.get("rendered");return t.element({...Ao.content.attrs,dir:a("dir"),role:a("role"),hidden:!f,id:rp(c),tabIndex:-1,"data-state":f?"open":"closed","aria-modal":!0,"aria-label":u||void 0,"aria-labelledby":u||!p.title?void 0:op(c),"aria-describedby":p.description?ip(c):void 0})},getTitleProps(){return t.element({...Ao.title.attrs,dir:a("dir"),id:op(c)})},getDescriptionProps(){return t.element({...Ao.description.attrs,dir:a("dir"),id:ip(c)})},getCloseTriggerProps(){return t.button({...Ao.closeTrigger.attrs,dir:a("dir"),id:QC(c),type:"button",onClick(p){p.defaultPrevented||(p.stopPropagation(),r({type:"CLOSE"}))}})}}}var A_={props({props:e,scope:t}){const n=e.role==="alertdialog",r=n?()=>R_(t):void 0,i=typeof e.modal=="boolean"?e.modal:!0;return{role:"dialog",modal:i,trapFocus:i,preventScroll:i,closeOnInteractOutside:!n,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:r,...e}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e}){return{rendered:e(()=>({defaultValue:{title:!0,description:!0}}))}},watch({track:e,action:t,prop:n}){e([()=>n("open")],()=>{t(["toggleVisibility"])})},states:{open:{entry:["checkRenderedElements","syncZIndex"],effects:["trackDismissableElement","trapFocus","preventScroll","hideContentBelow"],on:{"CONTROLLED.CLOSE":{target:"closed"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}]}},closed:{on:{"CONTROLLED.OPEN":{target:"open"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackDismissableElement({scope:e,send:t,prop:n}){return ms(()=>Fc(e),{type:"dialog",defer:!0,pointerBlocking:n("modal"),exclude:[I_(e)],onInteractOutside(i){n("onInteractOutside")?.(i),n("closeOnInteractOutside")||i.preventDefault()},persistentElements:n("persistentElements"),onFocusOutside:n("onFocusOutside"),onPointerDownOutside:n("onPointerDownOutside"),onRequestDismiss:n("onRequestDismiss"),onEscapeKeyDown(i){n("onEscapeKeyDown")?.(i),n("closeOnEscape")||i.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}})},preventScroll({scope:e,prop:t}){if(t("preventScroll"))return xC(e.getDoc())},trapFocus({scope:e,prop:t}){return t("trapFocus")?bC(()=>Fc(e),{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:t("initialFocusEl"),setReturnFocus:r=>t("finalFocusEl")?.()??r,getShadowRoot:!0}):void 0},hideContentBelow({scope:e,prop:t}){return t("modal")?yC(()=>[Fc(e)],{defer:!0}):void 0}},actions:{checkRenderedElements({context:e,scope:t}){de(()=>{e.set("rendered",{title:!!T_(t),description:!!O_(t)})})},syncZIndex({scope:e}){de(()=>{const t=Fc(e);if(!t)return;const n=Ar(t);[k_(e),P_(e)].forEach(i=>{i?.style.setProperty("--z-index",n.zIndex),i?.style.setProperty("--layer-index",n.getPropertyValue("--layer-index"))})})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},toggleVisibility({prop:e,send:t,event:n}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:n})}}}};he()(["aria-label","closeOnEscape","closeOnInteractOutside","dir","finalFocusEl","getRootNode","getRootNode","id","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","preventScroll","restoreFocus","role","trapFocus"]);const V_=e=>{const t=k.useId(),{getRootNode:n}=Ht(),{dir:r}=vn(),i={id:t,getRootNode:n,dir:r,...e},a=Yt(A_,i);return N_(a,sn)},ZC=e=>{const[t,{children:n,...r}]=ur(e),[i]=ys(t),a=V_(r),c=An(q({present:a.open},t));return P.jsx(KC,{value:a,children:P.jsx(vs,{value:i,children:P.jsx(Kn,{value:c,children:n})})})},JC=e=>{const[t,{value:n,children:r}]=ur(e),[i]=ys(t),a=An(q({present:n.open},t));return P.jsx(KC,{value:n,children:P.jsx(vs,{value:i,children:P.jsx(Kn,{value:a,children:r})})})},ph=k.forwardRef((e,t)=>{const n=$r(),r=q(n.getTitleProps(),e);return P.jsx(re.h2,{...r,ref:t})});ph.displayName="DialogTitle";const hh=k.forwardRef((e,t)=>{const n=$r(),r=yn(),i=q({...n.getTriggerProps(),"aria-controls":r.unmounted?void 0:n.getTriggerProps()["aria-controls"]},e);return P.jsx(re.button,{...i,ref:t})});hh.displayName="DialogTrigger";var eS=ve("editable").parts("root","area","label","preview","input","editTrigger","submitTrigger","cancelTrigger","control");eS.build();he()(["activationMode","autoResize","dir","disabled","finalFocusEl","form","getRootNode","id","ids","invalid","maxLength","name","onEditChange","onFocusOutside","onInteractOutside","onPointerDownOutside","onValueChange","onValueCommit","onValueRevert","placeholder","readOnly","required","selectOnFocus","edit","defaultEdit","submitMode","translations","defaultValue","value"]);const tS=k.forwardRef((e,t)=>{const n=Vn(),r=q(n.getErrorTextProps(),e);return n?.invalid?P.jsx(re.span,{...r,ref:t}):null});tS.displayName="FieldErrorText";const nS=k.forwardRef((e,t)=>{const n=Vn(),r=q(n?.getHelperTextProps(),e);return P.jsx(re.span,{...r,ref:t})});nS.displayName="FieldHelperText";const rS=k.forwardRef((e,t)=>{const n=Vn(),r=q(n?.getInputProps(),e);return P.jsx(re.input,{...r,ref:t})});rS.displayName="FieldInput";const oS=k.forwardRef((e,t)=>{const n=Vn(),r=q(n?.getLabelProps(),e);return P.jsx(re.label,{...r,ref:t})});oS.displayName="FieldLabel";const __=typeof window<"u"?k.useLayoutEffect:k.useEffect,iS=ve("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator"),ro=iS.build(),L_=(e={})=>{const t=RC(),n=Ht(),{ids:r,disabled:i=!!t?.disabled,invalid:a=!1,readOnly:c=!1,required:u=!1}=e,[f,p]=k.useState(!1),[h,y]=k.useState(!1),b=k.useId(),v=e.id??b,w=k.useRef(null),x=r?.control??`field::${v}`,E=r?.errorText??`field::${v}::error-text`,O=r?.helperText??`field::${v}::helper-text`,N=r?.label??`field::${v}::label`;__(()=>{const H=w.current;if(!H)return;const ae=()=>{const me=n.getRootNode();p(!!me.getElementById(E)),y(!!me.getElementById(O))};ae();const ne=n.getWindow(),ce=new ne.MutationObserver(ae);return ce.observe(H,{childList:!0,subtree:!0}),()=>ce.disconnect()},[n,E,O]);const R=k.useMemo(()=>{const H=[];return f&&a&&H.push(E),h&&H.push(O),H.join(" ")||void 0},[a,E,O,f,h]),S=k.useMemo(()=>()=>({...ro.root.attrs,id:x,ref:w,role:"group","data-disabled":se(i),"data-invalid":se(a),"data-readonly":se(c)}),[i,a,c,x]),T=k.useMemo(()=>()=>({...ro.label.attrs,id:N,"data-disabled":se(i),"data-invalid":se(a),"data-readonly":se(c),"data-required":se(u),htmlFor:v}),[i,a,c,u,v,N]),L=k.useMemo(()=>()=>({"aria-describedby":R,"aria-invalid":iw(a),"data-invalid":se(a),"data-required":se(u),"data-readonly":se(c),id:v,required:u,disabled:i,readOnly:c}),[R,a,u,c,v,i]),M=k.useMemo(()=>()=>({...L(),...ro.input.attrs}),[L]),B=k.useMemo(()=>()=>({...L(),...ro.textarea.attrs}),[L]),j=k.useMemo(()=>()=>({...L(),...ro.select.attrs}),[L]),W=k.useMemo(()=>()=>({id:O,...ro.helperText.attrs,"data-disabled":se(i)}),[i,O]),U=k.useMemo(()=>()=>({id:E,...ro.errorText.attrs,"aria-live":"polite"}),[E]),$=k.useMemo(()=>()=>({"aria-hidden":!0,...ro.requiredIndicator.attrs}),[]);return{ariaDescribedby:R,ids:{root:x,control:v,label:N,errorText:E,helperText:O},refs:{rootRef:w},disabled:i,invalid:a,readOnly:c,required:u,getLabelProps:T,getRootProps:S,getInputProps:M,getTextareaProps:B,getSelectProps:j,getHelperTextProps:W,getErrorTextProps:U,getRequiredIndicatorProps:$}},$_=ze(),sS=k.forwardRef((e,t)=>{const[n,r]=$_(e,["id","ids","disabled","invalid","readOnly","required"]),i=L_(n),a=q(i.getRootProps(),r);return P.jsx(W2,{value:i,children:P.jsx(re.div,{...a,ref:cr(t,i.refs.rootRef)})})});sS.displayName="FieldRoot";const aS=k.forwardRef((e,t)=>{const n=Vn(),r=q(n?.getSelectProps(),e);return P.jsx(re.select,{...r,ref:t})});aS.displayName="FieldSelect";function D_(e){if(!e)return;const t=Ar(e);return"box-sizing:"+t.boxSizing+";border-left:"+t.borderLeftWidth+" solid red;border-right:"+t.borderRightWidth+" solid red;font-family:"+t.fontFamily+";font-feature-settings:"+t.fontFeatureSettings+";font-kerning:"+t.fontKerning+";font-size:"+t.fontSize+";font-stretch:"+t.fontStretch+";font-style:"+t.fontStyle+";font-variant:"+t.fontVariant+";font-variant-caps:"+t.fontVariantCaps+";font-variant-ligatures:"+t.fontVariantLigatures+";font-variant-numeric:"+t.fontVariantNumeric+";font-weight:"+t.fontWeight+";letter-spacing:"+t.letterSpacing+";margin-left:"+t.marginLeft+";margin-right:"+t.marginRight+";padding-left:"+t.paddingLeft+";padding-right:"+t.paddingRight+";text-indent:"+t.textIndent+";text-transform:"+t.textTransform}function z_(e){var t=e.createElement("div");return t.id="ghost",t.style.cssText="display:inline-block;height:0;overflow:hidden;position:absolute;top:0;visibility:hidden;white-space:nowrap;",e.body.appendChild(t),t}function F_(e){if(!e)return;const t=Kt(e),n=et(e),r=z_(t),i=D_(e);i&&(r.style.cssText+=i);function a(){n.requestAnimationFrame(()=>{r.innerHTML=e.value;const c=n.getComputedStyle(r);e?.style.setProperty("width",c.width)})}return a(),e?.addEventListener("input",a),e?.addEventListener("change",a),()=>{t.body.removeChild(r),e?.removeEventListener("input",a),e?.removeEventListener("change",a)}}var M_=e=>{if(!e)return;const t=Ar(e),n=et(e),r=Kt(e),i=()=>{requestAnimationFrame(()=>{e.style.height="auto";let p;t.boxSizing==="content-box"?p=e.scrollHeight-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):p=e.scrollHeight+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),t.maxHeight!=="none"&&p>parseFloat(t.maxHeight)?(t.overflowY==="hidden"&&(e.style.overflowY="scroll"),p=parseFloat(t.maxHeight)):t.overflowY!=="hidden"&&(e.style.overflowY="hidden"),e.style.height=`${p}px`})};e.addEventListener("input",i),e.form?.addEventListener("reset",i);const a=Object.getPrototypeOf(e),c=Object.getOwnPropertyDescriptor(a,"value");Object.defineProperty(e,"value",{...c,set(){c?.set?.apply(this,arguments),i()}});const u=new n.ResizeObserver(()=>{requestAnimationFrame(()=>i())});u.observe(e);const f=new n.MutationObserver(()=>i());return f.observe(e,{attributes:!0,attributeFilter:["rows","placeholder"]}),r.fonts?.addEventListener("loadingdone",i),()=>{e.removeEventListener("input",i),e.form?.removeEventListener("reset",i),r.fonts?.removeEventListener("loadingdone",i),u.disconnect(),f.disconnect()}};const lS=k.forwardRef((e,t)=>{const{autoresize:n,...r}=e,i=k.useRef(null),a=Vn(),c=q(a?.getTextareaProps(),{style:{resize:n?"none":void 0}},r);return k.useEffect(()=>{if(n)return M_(i.current)},[n]),P.jsx(re.textarea,{...c,ref:cr(t,i)})});lS.displayName="FieldTextarea";const cS=ve("fieldset").parts("root","errorText","helperText","legend");cS.build();var uS=ve("file-upload").parts("root","dropzone","item","itemDeleteTrigger","itemGroup","itemName","itemPreview","itemPreviewImage","itemSizeText","label","trigger","clearTrigger");uS.build();he()(["accept","acceptedFiles","allowDrop","capture","defaultAcceptedFiles","dir","directory","disabled","getRootNode","id","ids","invalid","locale","maxFiles","maxFileSize","minFileSize","name","onFileAccept","onFileChange","onFileReject","preventDocumentDrop","required","transformFiles","translations","validate"]);he()(["file","type"]);const[dS,ll]=$e({name:"HoverCardContext",hookName:"useHoverCardContext",providerName:"<HoverCardProvider />"}),fS=k.forwardRef((e,t)=>{const n=ll(),r=q(n.getArrowProps(),e);return P.jsx(re.div,{...r,ref:t})});fS.displayName="HoverCardArrow";const gS=k.forwardRef((e,t)=>{const n=ll(),r=q(n.getArrowTipProps(),e);return P.jsx(re.div,{...r,ref:t})});gS.displayName="HoverCardArrowTip";const pS=k.forwardRef((e,t)=>{const n=ll(),r=yn(),i=q(n.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:P.jsx(re.div,{...i,ref:cr(r.ref,t)})});pS.displayName="HoverCardContent";const hS=k.forwardRef((e,t)=>{const n=ll(),r=q(n.getPositionerProps(),e);return yn().unmounted?null:P.jsx(re.div,{...r,ref:t})});hS.displayName="HoverCardPositioner";var mS=ve("hoverCard").parts("arrow","arrowTip","trigger","positioner","content"),Ca=mS.build(),vS=e=>e.ids?.trigger??`hover-card:${e.id}:trigger`,yS=e=>e.ids?.content??`hover-card:${e.id}:content`,bS=e=>e.ids?.positioner??`hover-card:${e.id}:popper`,B_=e=>e.ids?.arrow??`hover-card:${e.id}:arrow`,Eg=e=>e.getById(vS(e)),W_=e=>e.getById(yS(e)),Ub=e=>e.getById(bS(e));function H_(e,t){const{state:n,send:r,prop:i,context:a,scope:c}=e,u=n.hasTag("open"),f=oh({...i("positioning"),placement:a.get("currentPlacement")});return{open:u,setOpen(p){n.hasTag("open")!==p&&(i("disabled")||r({type:p?"OPEN":"CLOSE"}))},reposition(p={}){r({type:"POSITIONING.SET",options:p})},getArrowProps(){return t.element({id:B_(c),...Ca.arrow.attrs,dir:i("dir"),style:f.arrow})},getArrowTipProps(){return t.element({...Ca.arrowTip.attrs,dir:i("dir"),style:f.arrowTip})},getTriggerProps(){return t.element({...Ca.trigger.attrs,dir:i("dir"),"data-placement":a.get("currentPlacement"),id:vS(c),"data-state":u?"open":"closed",onPointerEnter(p){p.pointerType!=="touch"&&(i("disabled")||r({type:"POINTER_ENTER",src:"trigger"}))},onPointerLeave(p){p.pointerType!=="touch"&&(i("disabled")||r({type:"POINTER_LEAVE",src:"trigger"}))},onFocus(){i("disabled")||r({type:"TRIGGER_FOCUS"})},onBlur(){i("disabled")||r({type:"TRIGGER_BLUR"})}})},getPositionerProps(){return t.element({id:bS(c),...Ca.positioner.attrs,dir:i("dir"),style:f.floating})},getContentProps(){return t.element({...Ca.content.attrs,dir:i("dir"),id:yS(c),hidden:!u,tabIndex:-1,"data-state":u?"open":"closed","data-placement":a.get("currentPlacement"),onPointerEnter(p){p.pointerType!=="touch"&&(i("disabled")||r({type:"POINTER_ENTER",src:"content"}))},onPointerLeave(p){p.pointerType!=="touch"&&(i("disabled")||r({type:"POINTER_LEAVE",src:"content"}))}})}}}var{not:Mc,and:Kb}=Nn(),j_={props({props:e}){return{disabled:!1,openDelay:600,closeDelay:300,...e,positioning:{placement:"bottom",...e.positioning}}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({prop:e,bindable:t}){return{open:t(()=>({defaultValue:e("defaultOpen"),value:e("open"),onChange(n){e("onOpenChange")?.({open:n})}})),currentPlacement:t(()=>({defaultValue:void 0})),isPointer:t(()=>({defaultValue:!1}))}},watch({track:e,context:t,action:n,prop:r,send:i}){e([()=>r("disabled")],()=>{r("disabled")&&i({type:"CLOSE",src:"disabled.change"})}),e([()=>t.get("open")],()=>{n(["toggleVisibility"])})},states:{closed:{tags:["closed"],entry:["clearIsPointer"],on:{"CONTROLLED.OPEN":{target:"open"},POINTER_ENTER:{target:"opening",actions:["setIsPointer"]},TRIGGER_FOCUS:{target:"opening"},OPEN:{target:"opening"}}},opening:{tags:["closed"],effects:["waitForOpenDelay"],on:{OPEN_DELAY:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed"},POINTER_LEAVE:[{guard:"isOpenControlled",actions:["invokeOnClose","toggleVisibility"]},{target:"closed",actions:["invokeOnClose"]}],TRIGGER_BLUR:[{guard:Kb("isOpenControlled",Mc("isPointer")),actions:["invokeOnClose","toggleVisibility"]},{guard:Mc("isPointer"),target:"closed",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose","toggleVisibility"]},{target:"closed",actions:["invokeOnClose"]}]}},open:{tags:["open"],effects:["trackDismissableElement","trackPositioning"],on:{"CONTROLLED.CLOSE":{target:"closed"},POINTER_ENTER:{actions:["setIsPointer"]},POINTER_LEAVE:{target:"closing"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TRIGGER_BLUR:[{guard:Kb("isOpenControlled",Mc("isPointer")),actions:["invokeOnClose"]},{guard:Mc("isPointer"),target:"closed",actions:["invokeOnClose"]}],"POSITIONING.SET":{actions:["reposition"]}}},closing:{tags:["open"],effects:["trackPositioning","waitForCloseDelay"],on:{CLOSE_DELAY:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"CONTROLLED.CLOSE":{target:"closed"},"CONTROLLED.OPEN":{target:"open"},POINTER_ENTER:{target:"open",actions:["setIsPointer"]}}}},implementations:{guards:{isPointer:({context:e})=>!!e.get("isPointer"),isOpenControlled:({prop:e})=>e("open")!=null},effects:{waitForOpenDelay({send:e,prop:t}){const n=setTimeout(()=>{e({type:"OPEN_DELAY"})},t("openDelay"));return()=>clearTimeout(n)},waitForCloseDelay({send:e,prop:t}){const n=setTimeout(()=>{e({type:"CLOSE_DELAY"})},t("closeDelay"));return()=>clearTimeout(n)},trackPositioning({context:e,prop:t,scope:n}){e.get("currentPlacement")||e.set("currentPlacement",t("positioning").placement);const r=()=>Ub(n);return Un(Eg(n),r,{...t("positioning"),defer:!0,onComplete(i){e.set("currentPlacement",i.placement)}})},trackDismissableElement({send:e,scope:t,prop:n}){return ms(()=>W_(t),{type:"popover",defer:!0,exclude:[Eg(t)],onDismiss(){e({type:"CLOSE",src:"interact-outside"})},onInteractOutside:n("onInteractOutside"),onPointerDownOutside:n("onPointerDownOutside"),onFocusOutside(i){i.preventDefault(),n("onFocusOutside")?.(i)}})}},actions:{invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},setIsPointer({context:e}){e.set("isPointer",!0)},clearIsPointer({context:e}){e.set("isPointer",!1)},reposition({context:e,prop:t,scope:n,event:r}){const i=()=>Ub(n);Un(Eg(n),i,{...t("positioning"),...r.options,defer:!0,listeners:!1,onComplete(a){e.set("currentPlacement",a.placement)}})},toggleVisibility({prop:e,event:t,send:n}){queueMicrotask(()=>{n({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:t})})}}}};he()(["closeDelay","dir","getRootNode","id","ids","disabled","onOpenChange","defaultOpen","open","openDelay","positioning","onInteractOutside","onPointerDownOutside","onFocusOutside"]);const G_=e=>{const t=k.useId(),{getRootNode:n}=Ht(),{dir:r}=vn(),i={id:t,dir:r,getRootNode:n,...e},a=Yt(j_,i);return H_(a,sn)},U_=e=>{const[t,{children:n,...r}]=ur(e),i=G_(r),a=An(q({present:i.open},t));return P.jsx(dS,{value:i,children:P.jsx(Kn,{value:a,children:n})})},K_=e=>{const[t,{value:n,children:r}]=ur(e),i=An(q({present:n.open},t));return P.jsx(dS,{value:n,children:P.jsx(Kn,{value:i,children:r})})},xS=k.forwardRef((e,t)=>{const n=ll(),r=q(n.getTriggerProps(),e);return P.jsx(re.button,{...r,ref:t})});xS.displayName="HoverCardTrigger";var wS=ve("tree-view").parts("branch","branchContent","branchControl","branchIndentGuide","branchIndicator","branchText","branchTrigger","item","itemIndicator","itemText","label","nodeCheckbox","nodeRenameInput","root","tree");wS.build();var CS=e=>new HC(e);CS.empty=()=>new HC({rootNode:{children:[]}});var SS=(e,t)=>e.ids?.node?.(t)??`tree:${e.id}:node:${t}`,Rt=(e,t)=>{t!=null&&e.getById(SS(e,t))?.focus()},Y_=(e,t)=>`tree:${e.id}:rename-input:${t}`,Yb=(e,t)=>e.getById(Y_(e,t));function X_(e,t,n){const r=e.getDescendantValues(t),i=r.every(a=>n.includes(a));return io(i?Ho(n,...r):Mo(n,...r))}function Bc(e,t){const{context:n,prop:r,refs:i}=e;if(!r("loadChildren")){n.set("expandedValue",x=>io(Mo(x,...t)));return}const a=n.get("loadingStatus"),[c,u]=Qy(t,x=>a[x]==="loaded");if(c.length>0&&n.set("expandedValue",x=>io(Mo(x,...c))),u.length===0)return;const f=r("collection"),[p,h]=Qy(u,x=>{const E=f.findNode(x);return f.getNodeChildren(E).length>0});if(p.length>0&&n.set("expandedValue",x=>io(Mo(x,...p))),h.length===0)return;n.set("loadingStatus",x=>({...x,...h.reduce((E,O)=>({...E,[O]:"loading"}),{})}));const y=h.map(x=>{const E=f.getIndexPath(x),O=f.getValuePath(E),N=f.findNode(x);return{id:x,indexPath:E,valuePath:O,node:N}}),b=i.get("pendingAborts"),v=r("loadChildren");nw(v,()=>"[zag-js/tree-view] `loadChildren` is required for async expansion");const w=y.map(({id:x,indexPath:E,valuePath:O,node:N})=>{const R=b.get(x);R&&(R.abort(),b.delete(x));const S=new AbortController;return b.set(x,S),v({valuePath:O,indexPath:E,node:N,signal:S.signal})});Promise.allSettled(w).then(x=>{const E=[],O=[],N=n.get("loadingStatus");let R=r("collection");x.forEach((S,T)=>{const{id:L,indexPath:M,node:B,valuePath:j}=y[T];S.status==="fulfilled"?(N[L]="loaded",E.push(L),R=R.replace(M,{...B,children:S.value})):(b.delete(L),Reflect.deleteProperty(N,L),O.push({node:B,error:S.reason,indexPath:M,valuePath:j}))}),n.set("loadingStatus",N),E.length&&(n.set("expandedValue",S=>io(Mo(S,...E))),r("onLoadChildrenComplete")?.({collection:R})),O.length&&r("onLoadChildrenError")?.({nodes:O})})}function oo(e){const{prop:t,context:n}=e;return function({indexPath:i}){return t("collection").getValuePath(i).slice(0,-1).some(c=>!n.get("expandedValue").includes(c))}}var{and:Jn}=Nn();Jn("isMultipleSelection","moveFocus"),Jn("isShiftKey","isMultipleSelection"),Jn("isShiftKey","isMultipleSelection"),Jn("isBranchFocused","isBranchExpanded"),Jn("isShiftKey","isMultipleSelection"),Jn("isShiftKey","isMultipleSelection"),Jn("isCtrlKey","isMultipleSelection"),Jn("isShiftKey","isMultipleSelection"),Jn("isCtrlKey","isMultipleSelection"),Jn("isShiftKey","isMultipleSelection");function Vo(e,t){const{prop:n,scope:r,computed:i}=e,a=n("scrollToIndexFn");if(!a)return!1;const c=n("collection"),u=i("visibleNodes");for(let f=0;f<u.length;f++){const{node:p,indexPath:h}=u[f];if(c.getNodeValue(p)===t)return a({index:f,node:p,indexPath:h,getElement:()=>r.getById(SS(r,t))}),!0}return!1}he()(["ids","collection","dir","expandedValue","expandOnClick","defaultFocusedValue","focusedValue","getRootNode","id","onExpandedChange","onFocusChange","onSelectionChange","checkedValue","selectedValue","selectionMode","typeahead","defaultExpandedValue","defaultSelectedValue","defaultCheckedValue","onCheckedChange","onLoadChildrenComplete","onLoadChildrenError","loadChildren","canRename","onRenameStart","onBeforeRename","onRenameComplete","scrollToIndexFn"]);he()(["node","indexPath"]);var ES=ve("listbox").parts("label","input","item","itemText","itemIndicator","itemGroup","itemGroupLabel","content","root","valueText");ES.build();var kS=e=>new bs(e);kS.empty=()=>new bs({items:[]});var q_=e=>e.ids?.content??`select:${e.id}:content`,Q_=(e,t)=>e.ids?.item?.(t)??`select:${e.id}:option:${t}`,Xb=e=>e.getById(q_(e)),qb=(e,t)=>e.getById(Q_(e,t)),{guards:Z_,createMachine:J_}=ol(),{or:eL}=Z_;J_({props({props:e}){return{loopFocus:!1,composite:!0,defaultValue:[],multiple:!1,typeahead:!0,collection:kS.empty(),orientation:"vertical",selectionMode:"single",...e}},context({prop:e,bindable:t}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:Wt,onChange(n){const r=e("collection").findMany(n);return e("onValueChange")?.({value:n,items:r})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),sync:!0,onChange(n){e("onHighlightChange")?.({highlightedValue:n,highlightedItem:e("collection").find(n),highlightedIndex:e("collection").indexOf(n)})}})),highlightedItem:t(()=>({defaultValue:null})),selectedItems:t(()=>{const n=e("value")??e("defaultValue")??[];return{defaultValue:e("collection").findMany(n)}}),focused:t(()=>({sync:!0,defaultValue:!1}))}},refs(){return{typeahead:{...bu.defaultOptions},focusVisible:!1,inputState:{autoHighlight:!1,focused:!1}}},computed:{hasSelectedItems:({context:e})=>e.get("value").length>0,isTypingAhead:({refs:e})=>e.get("typeahead").keysSoFar!=="",isInteractive:({prop:e})=>!e("disabled"),selection:({context:e,prop:t})=>{const n=new q2(e.get("value"));return n.selectionMode=t("selectionMode"),n.deselectable=!!t("deselectable"),n},multiple:({prop:e})=>e("selectionMode")==="multiple"||e("selectionMode")==="extended",valueAsString:({context:e,prop:t})=>t("collection").stringifyItems(e.get("selectedItems"))},initialState(){return"idle"},watch({context:e,prop:t,track:n,action:r}){n([()=>e.get("value").toString()],()=>{r(["syncSelectedItems"])}),n([()=>e.get("highlightedValue")],()=>{r(["syncHighlightedItem"])}),n([()=>t("collection").toString()],()=>{r(["syncHighlightedValue"])})},effects:["trackFocusVisible"],on:{"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedItem"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setSelectedItems"]},"VALUE.CLEAR":{actions:["clearSelectedItems"]}},states:{idle:{effects:["scrollToHighlightedItem"],on:{"INPUT.FOCUS":{actions:["setFocused","setInputState"]},"CONTENT.FOCUS":[{guard:eL("hasSelectedValue","hasHighlightedValue"),actions:["setFocused"]},{actions:["setFocused","setDefaultHighlightedValue"]}],"CONTENT.BLUR":{actions:["clearFocused","clearInputState"]},"ITEM.CLICK":{actions:["setHighlightedItem","selectHighlightedItem"]},"CONTENT.TYPEAHEAD":{actions:["setFocused","highlightMatchingItem"]},"ITEM.POINTER_MOVE":{actions:["highlightItem"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedItem"]},NAVIGATE:{actions:["setFocused","setHighlightedItem","selectWithKeyboard"]}}}},implementations:{guards:{hasSelectedValue:({context:e})=>e.get("value").length>0,hasHighlightedValue:({context:e})=>e.get("highlightedValue")!=null},effects:{trackFocusVisible:({scope:e,refs:t})=>al({root:e.getRootNode?.(),onChange(n){t.set("focusVisible",n.isFocusVisible)}}),scrollToHighlightedItem({context:e,prop:t,scope:n}){const r=a=>{const c=e.get("highlightedValue");if(c==null||N2()!=="keyboard")return;const f=Xb(n),p=t("scrollToIndexFn");if(p){const y=t("collection").indexOf(c);p?.({index:y,immediate:a,getElement(){return qb(n,c)}});return}const h=qb(n,c);yu(h,{rootEl:f,block:"nearest"})};return de(()=>r(!0)),Hu(()=>Xb(n),{defer:!0,attributes:["data-activedescendant"],callback(){r(!1)}})}},actions:{selectHighlightedItem({context:e,prop:t,event:n,computed:r}){const i=n.value??e.get("highlightedValue"),a=t("collection");if(i==null||!a.has(i))return;const c=r("selection");if(n.shiftKey&&r("multiple")&&n.anchorValue){const u=c.extendSelection(a,n.anchorValue,i);Sa(c,u,t("onSelect")),e.set("value",Array.from(u))}else{const u=c.select(a,i,n.metaKey);Sa(c,u,t("onSelect")),e.set("value",Array.from(u))}},selectWithKeyboard({context:e,prop:t,event:n,computed:r}){const i=r("selection"),a=t("collection");if(n.shiftKey&&r("multiple")&&n.anchorValue){const c=i.extendSelection(a,n.anchorValue,n.value);Sa(i,c,t("onSelect")),e.set("value",Array.from(c));return}if(t("selectOnHighlight")){const c=i.replaceSelection(a,n.value);Sa(i,c,t("onSelect")),e.set("value",Array.from(c))}},highlightItem({context:e,event:t}){e.set("highlightedValue",t.value)},highlightMatchingItem({context:e,prop:t,event:n,refs:r}){const i=t("collection").search(n.key,{state:r.get("typeahead"),currentValue:e.get("highlightedValue")});i!=null&&e.set("highlightedValue",i)},setHighlightedItem({context:e,event:t}){e.set("highlightedValue",t.value)},clearHighlightedItem({context:e}){e.set("highlightedValue",null)},selectItem({context:e,prop:t,event:n,computed:r}){const i=t("collection"),a=r("selection"),c=a.select(i,n.value);Sa(a,c,t("onSelect")),e.set("value",Array.from(c))},clearItem({context:e,event:t,computed:n}){const i=n("selection").deselect(t.value);e.set("value",Array.from(i))},setSelectedItems({context:e,event:t}){e.set("value",t.value)},clearSelectedItems({context:e}){e.set("value",[])},syncSelectedItems({context:e,prop:t}){const n=t("collection"),r=e.get("selectedItems"),a=e.get("value").map(c=>r.find(f=>n.getItemValue(f)===c)||n.find(c));e.set("selectedItems",a)},syncHighlightedItem({context:e,prop:t}){const n=t("collection"),r=e.get("highlightedValue"),i=r?n.find(r):null;e.set("highlightedItem",i)},syncHighlightedValue({context:e,prop:t,refs:n}){const r=t("collection"),i=e.get("highlightedValue"),{autoHighlight:a}=n.get("inputState");if(a){queueMicrotask(()=>{e.set("highlightedValue",t("collection").firstValue??null)});return}i!=null&&!r.has(i)&&queueMicrotask(()=>{e.set("highlightedValue",null)})},setFocused({context:e}){e.set("focused",!0)},setDefaultHighlightedValue({context:e,prop:t}){const r=t("collection").firstValue;r!=null&&e.set("highlightedValue",r)},clearFocused({context:e}){e.set("focused",!1)},setInputState({refs:e,event:t}){e.set("inputState",{autoHighlight:!!t.autoHighlight,focused:!0})},clearInputState({refs:e}){e.set("inputState",{autoHighlight:!1,focused:!1})}}}});var tL=(e,t)=>{const n=new Set(e);for(const r of t)n.delete(r);return n};function Sa(e,t,n){const r=tL(t,e);for(const i of r)n?.({value:i})}he()(["collection","defaultHighlightedValue","defaultValue","dir","disabled","deselectable","disallowSelectAll","getRootNode","highlightedValue","id","ids","loopFocus","onHighlightChange","onSelect","onValueChange","orientation","scrollToIndexFn","selectionMode","selectOnHighlight","typeahead","value"]);he()(["item","highlightOnHover"]);he()(["id"]);he()(["htmlFor"]);const nL=ES.extendWith("empty"),[PS,Pt]=$e({name:"MenuContext",hookName:"useMenuContext",providerName:"<MenuProvider />",strict:!1}),IS=k.forwardRef((e,t)=>{const n=Pt(),r=q(n.getArrowProps(),e);return P.jsx(re.div,{...r,ref:t})});IS.displayName="MenuArrow";const TS=k.forwardRef((e,t)=>{const n=Pt(),r=q(n.getArrowTipProps(),e);return P.jsx(re.div,{...r,ref:t})});TS.displayName="MenuArrowTip";const[mh]=$e({name:"MenuItemContext",hookName:"useMenuItemContext",providerName:"<MenuItemProvider />"}),[Zu,OS]=$e({name:"MenuItemPropsContext",hookName:"useMenuItemPropsContext",providerName:"<MenuItemPropsProvider />"}),rL=ze(),RS=k.forwardRef((e,t)=>{const[n,r]=rL(e,["checked","closeOnSelect","disabled","onCheckedChange","value","valueText"]),i={...n,type:"checkbox"},a=Pt(),c=q(a.getOptionItemProps(i),r),u=a.getOptionItemState(i);return P.jsx(Zu,{value:i,children:P.jsx(mh,{value:u,children:P.jsx(re.div,{...c,ref:t})})})});RS.displayName="MenuCheckboxItem";const NS=k.forwardRef((e,t)=>{const n=Pt(),r=yn(),i=q(n.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:P.jsx(re.div,{...i,ref:cr(r.ref,t)})});NS.displayName="MenuContent";const AS=k.forwardRef((e,t)=>{const n=Pt(),r=q(n.getContextTriggerProps(),e);return P.jsx(re.button,{...r,ref:t})});AS.displayName="MenuContextTrigger";const VS=k.forwardRef((e,t)=>{const n=Pt(),r=q(n.getIndicatorProps(),e);return P.jsx(re.div,{...r,ref:t})});VS.displayName="MenuIndicator";const oL=ze(),_S=k.forwardRef((e,t)=>{const[n,r]=oL(e,["closeOnSelect","disabled","value","valueText","onSelect"]),i=Pt(),a=q(i.getItemProps(n),r),c=i.getItemState(n);return k.useEffect(()=>i.addItemListener({id:c.id,onSelect:n.onSelect}),[c.id,n.onSelect]),P.jsx(Zu,{value:n,children:P.jsx(mh,{value:c,children:P.jsx(re.div,{...a,ref:t})})})});_S.displayName="MenuItem";const[LS,$S]=$e({name:"MenuItemGroupContext",hookName:"useMenuItemGroupContext",providerName:"<MenuItemGroupProvider />"}),iL=ze(),DS=k.forwardRef((e,t)=>{const[n,r]=iL(e,["id"]),i=Pt(),c={id:k.useId(),...n},u=q(i.getItemGroupProps(c),r);return P.jsx(LS,{value:c,children:P.jsx(re.div,{...u,ref:t})})});DS.displayName="MenuItemGroup";const zS=k.forwardRef((e,t)=>{const n=Pt(),r=$S(),i=q(n.getItemGroupLabelProps({htmlFor:r.id}),e);return P.jsx(re.div,{...i,ref:t})});zS.displayName="MenuItemGroupLabel";const FS=k.forwardRef((e,t)=>{const n=Pt(),r=OS(),i=q(n.getItemIndicatorProps(r),e);return P.jsx(re.div,{...i,ref:t})});FS.displayName="MenuItemIndicator";const MS=k.forwardRef((e,t)=>{const n=Pt(),r=OS(),i=q(n.getItemTextProps(r),e);return P.jsx(re.div,{...i,ref:t})});MS.displayName="MenuItemText";const BS=k.forwardRef((e,t)=>{const n=Pt(),r=q(n.getPositionerProps(),e);return yn().unmounted?null:P.jsx(re.div,{...r,ref:t})});BS.displayName="MenuPositioner";const sL=ze(),WS=k.forwardRef((e,t)=>{const[n,r]=sL(e,["closeOnSelect","disabled","value","valueText"]),i=Pt(),a=$S(),c={...n,checked:a.value===n.value,type:"radio",onCheckedChange:()=>a.onValueChange?.({value:n.value})},u=q(i.getOptionItemProps(c),r),f=i.getOptionItemState(c);return P.jsx(Zu,{value:c,children:P.jsx(mh,{value:f,children:P.jsx(re.div,{...u,ref:t})})})});WS.displayName="MenuRadioItem";const aL=ze(),HS=k.forwardRef((e,t)=>{const[n,r]=aL(e,["id","onValueChange","value"]),i=Pt(),c={id:k.useId(),...n},u=q(i.getItemGroupProps({id:c.id}),r);return P.jsx(LS,{value:c,children:P.jsx(re.div,{...u,ref:t})})});HS.displayName="MenuRadioItemGroup";const jS=e=>{const t=k.useRef(e),n=k.useRef(!1);k.useEffect(()=>{t.current=e}),k.useEffect(()=>{n.current!==!0&&(n.current=!0,t.current())},[])};var za=(e,t=[])=>({parts:(...n)=>{if(lL(t))return za(e,n);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...n)=>za(e,[...t,...n]),omit:(...n)=>za(e,t.filter(r=>!n.includes(r))),rename:n=>za(n,t),keys:()=>t,build:()=>[...new Set(t)].reduce((n,r)=>Object.assign(n,{[r]:{selector:[`&[data-scope="${Vi(e)}"][data-part="${Vi(r)}"]`,`& [data-scope="${Vi(e)}"][data-part="${Vi(r)}"]`].join(", "),attrs:{"data-scope":Vi(e),"data-part":Vi(r)}}}),{})}),Vi=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),lL=e=>e.length===0,cL=e=>e[0],uL=e=>e[e.length-1];function GS(e,t,n={}){const{step:r=1,loop:i=!0}=n,a=t+r,c=e.length,u=c-1;return t===-1?r>0?0:u:a<0?i?u:0:a>=c?i?0:t>c?c:t:a}function dL(e,t,n={}){return e[GS(e,t,n)]}function fL(e,t,n={}){const{step:r=1,loop:i=!0}=n;return GS(e,t,{step:-r,loop:i})}function gL(e,t,n={}){return e[fL(e,t,n)]}var Qb=e=>e?.constructor.name==="Array",pL=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!vh(e[n],t[n]))return!1;return!0},vh=(e,t)=>{if(Object.is(e,t))return!0;if(e==null&&t!=null||e!=null&&t==null)return!1;if(typeof e?.isEqual=="function"&&typeof t?.isEqual=="function")return e.isEqual(t);if(typeof e=="function"&&typeof t=="function")return e.toString()===t.toString();if(Qb(e)&&Qb(t))return pL(Array.from(e),Array.from(t));if(typeof e!="object"||typeof t!="object")return!1;const n=Object.keys(t??Object.create(null)),r=n.length;for(let i=0;i<r;i++)if(!Reflect.has(e,n[i]))return!1;for(let i=0;i<r;i++){const a=n[i];if(!vh(e[a],t[a]))return!1}return!0},hL=e=>e!=null&&typeof e=="object",kg=e=>typeof e=="string",mL=e=>typeof e=="function",vL=e=>e==null,du=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),yL=e=>Object.prototype.toString.call(e),US=Function.prototype.toString,bL=US.call(Object),xL=e=>{if(!hL(e)||yL(e)!="[object Object]"||SL(e))return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;const n=du(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&US.call(n)==bL},wL=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,CL=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,SL=e=>wL(e)||CL(e),Zb=e=>e,EL=()=>{},sp=(...e)=>(...t)=>{e.forEach(function(n){n?.(...t)})};function KS(e){if(!xL(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(r=>typeof r=="string"),n={};for(const r of t){const i=e[r];i!==void 0&&(n[r]=KS(i))}return n}function kL(...e){e.length===1?e[0]:e[1],e.length===2&&e[0]}var PL=Object.defineProperty,IL=(e,t,n)=>t in e?PL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Pg=(e,t,n)=>IL(e,typeof t!="symbol"?t+"":t,n),TL=(e,t)=>e.map((n,r)=>e[(Math.max(t,0)+r)%e.length]),Jb=()=>{},Ju=e=>typeof e=="object"&&e!==null,_i=e=>e?"":void 0,OL=e=>e?"true":void 0,RL=1,NL=9,AL=11,_t=e=>Ju(e)&&e.nodeType===RL&&typeof e.nodeName=="string",yh=e=>Ju(e)&&e.nodeType===NL,VL=e=>Ju(e)&&e===e.window,YS=e=>_t(e)?e.localName||"":"#document";function _L(e){return["html","body","#document"].includes(YS(e))}var LL=e=>Ju(e)&&e.nodeType!==void 0,cs=e=>LL(e)&&e.nodeType===AL&&"host"in e,$L=e=>_t(e)&&e.localName==="input",DL=e=>!!e?.matches("a[href]"),zL=e=>_t(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1;function ex(e){if(!e)return!1;const t=e.getRootNode();return BL(t)===e}var FL=/(textarea|select)/;function XS(e){if(e==null||!_t(e))return!1;try{return $L(e)&&e.selectionStart!=null||FL.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch{return!1}}function ao(e,t){if(!e||!t||!_t(e)||!_t(t))return!1;const n=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(n&&cs(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function xs(e){return yh(e)?e:VL(e)?e.document:e?.ownerDocument??document}function ML(e){return xs(e).documentElement}function mo(e){return cs(e)?mo(e.host):yh(e)?e.defaultView??window:_t(e)?e.ownerDocument?.defaultView??window:window}function BL(e){let t=e.activeElement;for(;t?.shadowRoot;){const n=t.shadowRoot.activeElement;if(!n||n===t)break;t=n}return t}function WL(e){if(YS(e)==="html")return e;const t=e.assignedSlot||e.parentNode||cs(e)&&e.host||ML(e);return cs(t)?t.host:t}function HL(e){let t;try{if(t=e.getRootNode({composed:!0}),yh(t)||cs(t))return t}catch{}return e.ownerDocument??document}var Ig=new WeakMap;function jL(e){return Ig.has(e)||Ig.set(e,mo(e).getComputedStyle(e)),Ig.get(e)}var GL=new Set(["menu","listbox","dialog","grid","tree","region"]),UL=e=>GL.has(e),KL=e=>e.getAttribute("aria-controls")?.split(" ")||[];function YL(e,t){const n=new Set,r=HL(e),i=a=>{const c=a.querySelectorAll("[aria-controls]");for(const u of c){if(u.getAttribute("aria-expanded")!=="true")continue;const f=KL(u);for(const p of f){if(!p||n.has(p))continue;n.add(p);const h=r.getElementById(p);if(h){const y=h.getAttribute("role"),b=h.getAttribute("aria-modal")==="true";if(y&&UL(y)&&!b&&(h===t||h.contains(t)||i(h)))return!0}}}return!1};return i(e)}var bh=()=>typeof document<"u";function XL(){return navigator.userAgentData?.platform??navigator.platform}function qL(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}var QL=e=>bh()&&e.test(XL()),ZL=e=>bh()&&e.test(qL()),tx=()=>bh()&&!!navigator.maxTouchPoints,qS=()=>QL(/^Mac/i),JL=()=>ZL(/Firefox/i);function e$(e){return e.composedPath?.()??e.nativeEvent?.composedPath?.()}function uo(e){return e$(e)?.[0]??e.target}function nx(e){const t=e.currentTarget;if(!t||!t.matches("a[href], button[type='submit'], input[type='submit']"))return!1;const r=e.button===1,i=t$(e);return r||i}function rx(e){const t=e.currentTarget;if(!t)return!1;const n=t.localName;return e.altKey?n==="a"||n==="button"&&t.type==="submit"||n==="input"&&t.type==="submit":!1}function t$(e){return qS()?e.metaKey:e.ctrlKey}function n$(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}var QS=e=>e.button===2||qS()&&e.ctrlKey&&e.button===0,r$=e=>e.ctrlKey||e.altKey||e.metaKey,o$=e=>"touches"in e&&e.touches.length>0,i$={Up:"ArrowUp",Down:"ArrowDown",Esc:"Escape"," ":"Space",",":"Comma",Left:"ArrowLeft",Right:"ArrowRight"},ox={ArrowLeft:"ArrowRight",ArrowRight:"ArrowLeft"};function ix(e,t={}){const{dir:n="ltr",orientation:r="horizontal"}=t;let i=e.key;return i=i$[i]??i,n==="rtl"&&r==="horizontal"&&i in ox&&(i=ox[i]),i}function Ea(e,t="client"){const n=o$(e)?e.touches[0]||e.changedTouches[0]:e;return{x:n[`${t}X`],y:n[`${t}Y`]}}var ja=(e,t,n,r)=>{const i=typeof e=="function"?e():e;return i?.addEventListener(t,n,r),()=>{i?.removeEventListener(t,n,r)}},s$=e=>_t(e)&&e.tagName==="IFRAME";function a$(e){const t=e.getAttribute("tabindex");return t?parseInt(t,10):NaN}var l$=e=>a$(e)<0;function c$(e,t){if(!t)return null;if(t===!0)return e.shadowRoot||null;const n=t(e);return(n===!0?e.shadowRoot:n)||null}function u$(e,t,n){const r=[...e],i=[...e],a=new Set,c=new Map;e.forEach((f,p)=>c.set(f,p));let u=0;for(;u<i.length;){const f=i[u++];if(!f||a.has(f))continue;a.add(f);const p=c$(f,t);if(p){const h=Array.from(p.querySelectorAll(xh)).filter(n),y=c.get(f);if(y!==void 0){const b=y+1;r.splice(b,0,...h),h.forEach((v,w)=>{c.set(v,b+w)});for(let v=b+h.length;v<r.length;v++)c.set(r[v],v)}else{const b=r.length;r.push(...h),h.forEach((v,w)=>{c.set(v,b+w)})}i.push(...h)}}return r}var xh="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type";function wh(e){return!_t(e)||e.closest("[inert]")?!1:e.matches(xh)&&zL(e)}function Ch(e,t={}){if(!e)return[];const{includeContainer:n,getShadowRoot:r}=t,i=Array.from(e.querySelectorAll(xh));n&&Tg(e)&&i.unshift(e);const a=[];for(const c of i)if(Tg(c)){if(s$(c)&&c.contentDocument){const u=c.contentDocument.body;a.push(...Ch(u,{getShadowRoot:r}));continue}a.push(c)}if(r){const c=u$(a,r,Tg);return!c.length&&n?i:c}return!a.length&&n?i:a}function Tg(e){return _t(e)&&e.tabIndex>0?!0:wh(e)&&!l$(e)}function d$(e,t={}){const n=Ch(e,t),r=n[0]||null,i=n[n.length-1]||null;return[r,i]}function f$(e){const{root:t,getInitialEl:n,filter:r,enabled:i=!0}=e;if(!i)return;let a=null;if(a||(a=typeof n=="function"?n():n),a||(a=t?.querySelector("[data-autofocus],[autofocus]")),!a){const c=Ch(t);a=r?c.filter(r)[0]:c[0]}return a||t||void 0}function g$(e){const t=e.currentTarget;if(!t)return!1;const[n,r]=d$(t);return!(ex(n)&&e.shiftKey||ex(r)&&!e.shiftKey||!n&&!r)}var p$=class ZS{constructor(){Pg(this,"id",null),Pg(this,"fn_cleanup"),Pg(this,"cleanup",()=>{this.cancel()})}static create(){return new ZS}request(t){this.cancel(),this.id=globalThis.requestAnimationFrame(()=>{this.id=null,this.fn_cleanup=t?.()})}cancel(){this.id!==null&&(globalThis.cancelAnimationFrame(this.id),this.id=null),this.fn_cleanup?.(),this.fn_cleanup=void 0}isActive(){return this.id!==null}};function Wn(e){const t=p$.create();return t.request(e),t.cleanup}function h$(e){const t=new Set;function n(r){const i=globalThis.requestAnimationFrame(r);t.add(()=>globalThis.cancelAnimationFrame(i))}return n(()=>n(e)),function(){t.forEach(i=>i())}}function m$(e,t,n){const r=Wn(()=>{e.removeEventListener(t,i,!0),n()}),i=()=>{r(),n()};return e.addEventListener(t,i,{once:!0,capture:!0}),r}function v$(e,t){if(!e)return;const{attributes:n,callback:r}=t,i=e.ownerDocument.defaultView||window,a=new i.MutationObserver(c=>{for(const u of c)u.type==="attributes"&&u.attributeName&&n.includes(u.attributeName)&&r(u)});return a.observe(e,{attributes:!0,attributeFilter:n}),()=>a.disconnect()}function y$(e,t){const n=Wn,r=[];return r.push(n(()=>{const i=typeof e=="function"?e():e;r.push(v$(i,t))})),()=>{r.forEach(i=>i?.())}}function b$(e){const t=()=>{const n=mo(e);e.dispatchEvent(new n.MouseEvent("click"))};JL()?m$(e,"keyup",t):queueMicrotask(t)}function ap(e){const t=WL(e);return _L(t)?xs(t).body:_t(t)&&JS(t)?t:ap(t)}var x$=/auto|scroll|overlay|hidden|clip/,w$=new Set(["inline","contents"]);function JS(e){const t=mo(e),{overflow:n,overflowX:r,overflowY:i,display:a}=t.getComputedStyle(e);return x$.test(n+i+r)&&!w$.has(a)}function C$(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function S$(e,t){const{rootEl:n,...r}=t||{};!e||!n||!JS(n)||!C$(n)||e.scrollIntoView(r)}function E$(e,t){return Array.from(e?.querySelectorAll(t)??[])}var Sh=e=>e.id;function k$(e,t,n=Sh){return e.find(r=>n(r)===t)}function P$(e,t,n=Sh){const r=k$(e,t,n);return r?e.indexOf(r):-1}var I$=e=>e.split("").map(t=>{const n=t.charCodeAt(0);return n>0&&n<128?t:n>=128&&n<=255?`/x${n.toString(16)}`.replace("/","\\"):""}).join("").trim(),T$=e=>I$(e.dataset?.valuetext??e.textContent??""),O$=(e,t)=>e.trim().toLowerCase().startsWith(t.toLowerCase());function R$(e,t,n,r=Sh){const i=n?P$(e,n,r):-1;let a=n?TL(e,i):e;return t.length===1&&(a=a.filter(u=>r(u)!==n)),a.find(u=>O$(T$(u),t))}function N$(e,t){if(!e)return Jb;const n=Object.keys(t).reduce((r,i)=>(r[i]=e.style.getPropertyValue(i),r),{});return A$(n,t)?Jb:(Object.assign(e.style,t),()=>{Object.assign(e.style,n),e.style.length===0&&e.removeAttribute("style")})}function A$(e,t){return Object.keys(e).every(n=>e[n]===t[n])}function V$(e,t){const{state:n,activeId:r,key:i,timeout:a=350,itemToId:c}=t,u=n.keysSoFar+i,p=u.length>1&&Array.from(u).every(w=>w===u[0])?u[0]:u;let h=e.slice();const y=R$(h,p,r,c);function b(){clearTimeout(n.timer),n.timer=-1}function v(w){n.keysSoFar=w,b(),w!==""&&(n.timer=+setTimeout(()=>{v(""),b()},a))}return v(u),y}var eE=Object.assign(V$,{defaultOptions:{keysSoFar:"",timer:-1},isValidEvent:_$});function _$(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}function L$(e,t,n){const{signal:r}=t;return[new Promise((c,u)=>{const f=setTimeout(()=>{u(new Error(`Timeout of ${n}ms exceeded`))},n);r.addEventListener("abort",()=>{clearTimeout(f),u(new Error("Promise aborted"))}),e.then(p=>{r.aborted||(clearTimeout(f),c(p))}).catch(p=>{r.aborted||(clearTimeout(f),u(p))})}),()=>t.abort()]}function $$(e,t){const{timeout:n,rootNode:r}=t,i=mo(r),a=xs(r),c=new i.AbortController;return L$(new Promise(u=>{const f=e();if(f){u(f);return}const p=new i.MutationObserver(()=>{const h=e();h&&h.isConnected&&(p.disconnect(),u(h))});p.observe(a.body,{childList:!0,subtree:!0})}),c,n)}var D$=(...e)=>e.map(t=>t?.trim?.()).filter(Boolean).join(" "),z$=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,sx=e=>{const t={};let n;for(;n=z$.exec(e);)t[n[1]]=n[2];return t},F$=(e,t)=>{if(kg(e)){if(kg(t))return`${e};${t}`;e=sx(e)}else kg(t)&&(t=sx(t));return Object.assign({},e??{},t??{})};function M$(...e){let t={};for(let n of e){if(!n)continue;for(let i in t){if(i.startsWith("on")&&typeof t[i]=="function"&&typeof n[i]=="function"){t[i]=sp(n[i],t[i]);continue}if(i==="className"||i==="class"){t[i]=D$(t[i],n[i]);continue}if(i==="style"){t[i]=F$(t[i],n[i]);continue}t[i]=n[i]!==void 0?n[i]:t[i]}for(let i in n)t[i]===void 0&&(t[i]=n[i]);const r=Object.getOwnPropertySymbols(n);for(let i of r)t[i]=n[i]}return t}function B$(){return{and:(...e)=>function(n){return e.every(r=>n.guard(r))},or:(...e)=>function(n){return e.some(r=>n.guard(r))},not:e=>function(n){return!n.guard(e)}}}function tE(e){const t=dt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=kt(e),a=i?e.offsetWidth:n,c=i?e.offsetHeight:r,u=lo(n)!==a||lo(r)!==c;return u&&(n=a,r=c),{width:n,height:r,$:u}}function Eh(e){return ut(e)?e:e.contextElement}function rs(e){const t=Eh(e);if(!kt(t))return lt(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=tE(t);let c=(a?lo(n.width):n.width)/r,u=(a?lo(n.height):n.height)/i;return(!c||!Number.isFinite(c))&&(c=1),(!u||!Number.isFinite(u))&&(u=1),{x:c,y:u}}const W$=lt(0);function nE(e){const t=ct(e);return!sl()||!t.visualViewport?W$:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function H$(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ct(e)?!1:t}function Qo(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=Eh(e);let c=lt(1);t&&(r?ut(r)&&(c=rs(r)):c=rs(e));const u=H$(a,n,r)?nE(a):lt(0);let f=(i.left+u.x)/c.x,p=(i.top+u.y)/c.y,h=i.width/c.x,y=i.height/c.y;if(a){const b=ct(a),v=r&&ut(r)?ct(r):r;let w=b,x=Ja(w);for(;x&&r&&v!==w;){const E=rs(x),O=x.getBoundingClientRect(),N=dt(x),R=O.left+(x.clientLeft+parseFloat(N.paddingLeft))*E.x,S=O.top+(x.clientTop+parseFloat(N.paddingTop))*E.y;f*=E.x,p*=E.y,h*=E.x,y*=E.y,f+=R,p+=S,w=ct(x),x=Ja(w)}}return as({width:h,height:y,x:f,y:p})}function ed(e,t){const n=po(e).scrollLeft;return t?t.left+n:Qo(vt(e)).left+n}function rE(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-ed(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function j$(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",c=vt(r),u=t?ni(t.floating):!1;if(r===c||u&&a)return n;let f={scrollLeft:0,scrollTop:0},p=lt(1);const h=lt(0),y=kt(r);if((y||!y&&!a)&&((Lr(r)!=="body"||go(c))&&(f=po(r)),kt(r))){const v=Qo(r);p=rs(r),h.x=v.x+r.clientLeft,h.y=v.y+r.clientTop}const b=c&&!y&&!a?rE(c,f):lt(0);return{width:n.width*p.x,height:n.height*p.y,x:n.x*p.x-f.scrollLeft*p.x+h.x+b.x,y:n.y*p.y-f.scrollTop*p.y+h.y+b.y}}function G$(e){return Array.from(e.getClientRects())}function U$(e){const t=vt(e),n=po(e),r=e.ownerDocument.body,i=mt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=mt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let c=-n.scrollLeft+ed(e);const u=-n.scrollTop;return dt(r).direction==="rtl"&&(c+=mt(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:c,y:u}}const ax=25;function K$(e,t){const n=ct(e),r=vt(e),i=n.visualViewport;let a=r.clientWidth,c=r.clientHeight,u=0,f=0;if(i){a=i.width,c=i.height;const h=sl();(!h||h&&t==="fixed")&&(u=i.offsetLeft,f=i.offsetTop)}const p=ed(r);if(p<=0){const h=r.ownerDocument,y=h.body,b=getComputedStyle(y),v=h.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,w=Math.abs(r.clientWidth-y.clientWidth-v);w<=ax&&(a-=w)}else p<=ax&&(a+=p);return{width:a,height:c,x:u,y:f}}const Y$=new Set(["absolute","fixed"]);function X$(e,t){const n=Qo(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=kt(e)?rs(e):lt(1),c=e.clientWidth*a.x,u=e.clientHeight*a.y,f=i*a.x,p=r*a.y;return{width:c,height:u,x:f,y:p}}function lx(e,t,n){let r;if(t==="viewport")r=K$(e,n);else if(t==="document")r=U$(vt(e));else if(ut(t))r=X$(t,n);else{const i=nE(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return as(r)}function oE(e,t){const n=mn(e);return n===t||!ut(n)||ar(n)?!1:dt(n).position==="fixed"||oE(n,t)}function q$(e,t){const n=t.get(e);if(n)return n;let r=co(e,[],!1).filter(u=>ut(u)&&Lr(u)!=="body"),i=null;const a=dt(e).position==="fixed";let c=a?mn(e):e;for(;ut(c)&&!ar(c);){const u=dt(c),f=il(c);!f&&u.position==="fixed"&&(i=null),(a?!f&&!i:!f&&u.position==="static"&&!!i&&Y$.has(i.position)||go(c)&&!f&&oE(e,c))?r=r.filter(h=>h!==c):i=u,c=mn(c)}return t.set(e,r),r}function Q$(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const c=[...n==="clippingAncestors"?ni(t)?[]:q$(t,this._c):[].concat(n),r],u=c[0],f=c.reduce((p,h)=>{const y=lx(t,h,i);return p.top=mt(y.top,p.top),p.right=Gn(y.right,p.right),p.bottom=Gn(y.bottom,p.bottom),p.left=mt(y.left,p.left),p},lx(t,u,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function Z$(e){const{width:t,height:n}=tE(e);return{width:t,height:n}}function J$(e,t,n){const r=kt(t),i=vt(t),a=n==="fixed",c=Qo(e,!0,a,t);let u={scrollLeft:0,scrollTop:0};const f=lt(0);function p(){f.x=ed(i)}if(r||!r&&!a)if((Lr(t)!=="body"||go(i))&&(u=po(t)),r){const v=Qo(t,!0,a,t);f.x=v.x+t.clientLeft,f.y=v.y+t.clientTop}else i&&p();a&&!r&&i&&p();const h=i&&!r&&!a?rE(i,u):lt(0),y=c.left+u.scrollLeft-f.x-h.x,b=c.top+u.scrollTop-f.y-h.y;return{x:y,y:b,width:c.width,height:c.height}}function Og(e){return dt(e).position==="static"}function cx(e,t){if(!kt(e)||dt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return vt(e)===n&&(n=n.ownerDocument.body),n}function iE(e,t){const n=ct(e);if(ni(e))return n;if(!kt(e)){let i=mn(e);for(;i&&!ar(i);){if(ut(i)&&!Og(i))return i;i=mn(i)}return n}let r=cx(e,t);for(;r&&Xw(r)&&Og(r);)r=cx(r,t);return r&&ar(r)&&Og(r)&&!il(r)?n:r||qw(e)||n}const eD=async function(e){const t=this.getOffsetParent||iE,n=this.getDimensions,r=await n(e.floating);return{reference:J$(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function tD(e){return dt(e).direction==="rtl"}const nD={convertOffsetParentRelativeRectToViewportRelativeRect:j$,getDocumentElement:vt,getClippingRect:Q$,getOffsetParent:iE,getElementRects:eD,getClientRects:G$,getDimensions:Z$,getScale:rs,isElement:ut,isRTL:tD};function sE(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function rD(e,t){let n=null,r;const i=vt(e);function a(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function c(u,f){u===void 0&&(u=!1),f===void 0&&(f=1),a();const p=e.getBoundingClientRect(),{left:h,top:y,width:b,height:v}=p;if(u||t(),!b||!v)return;const w=so(y),x=so(i.clientWidth-(h+b)),E=so(i.clientHeight-(y+v)),O=so(h),R={rootMargin:-w+"px "+-x+"px "+-E+"px "+-O+"px",threshold:mt(0,Gn(1,f))||1};let S=!0;function T(L){const M=L[0].intersectionRatio;if(M!==f){if(!S)return c();M?c(!1,M):r=setTimeout(()=>{c(!1,1e-7)},1e3)}M===1&&!sE(p,e.getBoundingClientRect())&&c(),S=!1}try{n=new IntersectionObserver(T,{...R,root:i.ownerDocument})}catch{n=new IntersectionObserver(T,R)}n.observe(e)}return c(!0),a}function oD(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,p=Eh(e),h=i||a?[...p?co(p):[],...co(t)]:[];h.forEach(O=>{i&&O.addEventListener("scroll",n,{passive:!0}),a&&O.addEventListener("resize",n)});const y=p&&u?rD(p,n):null;let b=-1,v=null;c&&(v=new ResizeObserver(O=>{let[N]=O;N&&N.target===p&&v&&(v.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var R;(R=v)==null||R.observe(t)})),n()}),p&&!f&&v.observe(p),v.observe(t));let w,x=f?Qo(e):null;f&&E();function E(){const O=Qo(e);x&&!sE(x,O)&&n(),x=O,w=requestAnimationFrame(E)}return n(),()=>{var O;h.forEach(N=>{i&&N.removeEventListener("scroll",n),a&&N.removeEventListener("resize",n)}),y?.(),(O=v)==null||O.disconnect(),v=null,f&&cancelAnimationFrame(w)}}const iD=jw,sD=Gw,aD=Bw,lD=Kw,cD=Ww,uD=Mw,dD=Uw,fD=(e,t,n)=>{const r=new Map,i={platform:nD,...n},a={...i.platform,_c:r};return Fw(e,t,{...i,platform:a})};function ux(e=0,t=0,n=0,r=0){if(typeof DOMRect=="function")return new DOMRect(e,t,n,r);const i={x:e,y:t,width:n,height:r,top:t,right:e+n,bottom:t+r,left:e};return{...i,toJSON:()=>i}}function gD(e){if(!e)return ux();const{x:t,y:n,width:r,height:i}=e;return ux(t,n,r,i)}function pD(e,t){return{contextElement:_t(e)?e:e?.contextElement,getBoundingClientRect:()=>{const n=e,r=t?.(n);return r||!n?gD(r):n.getBoundingClientRect()}}}var ka=e=>({variable:e,reference:`var(${e})`}),Ir={arrowSize:ka("--arrow-size"),arrowSizeHalf:ka("--arrow-size-half"),arrowBg:ka("--arrow-background"),transformOrigin:ka("--transform-origin"),arrowOffset:ka("--arrow-offset")},hD=e=>e==="top"||e==="bottom"?"y":"x";function mD(e,t){return{name:"transformOrigin",fn(n){const{elements:r,middlewareData:i,placement:a,rects:c,y:u}=n,f=a.split("-")[0],p=hD(f),h=i.arrow?.x||0,y=i.arrow?.y||0,b=t?.clientWidth||0,v=t?.clientHeight||0,w=h+b/2,x=y+v/2,E=Math.abs(i.shift?.y||0),O=c.reference.height/2,N=v/2,R=e.offset?.mainAxis??e.gutter,S=typeof R=="number"?R+N:R??N,T=E>S,L={top:`${w}px calc(100% + ${S}px)`,bottom:`${w}px ${-S}px`,left:`calc(100% + ${S}px) ${x}px`,right:`${-S}px ${x}px`}[f],M=`${w}px ${c.reference.y+O-u}px`,B=!!e.overlap&&p==="y"&&T;return r.floating.style.setProperty(Ir.transformOrigin.variable,B?M:L),{data:{transformOrigin:B?M:L}}}}}var vD={name:"rects",fn({rects:e}){return{data:e}}},yD=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:n}){if(!n.arrow)return{};const{x:r,y:i}=n.arrow,a=t.split("-")[0];return Object.assign(e.style,{left:r!=null?`${r}px`:"",top:i!=null?`${i}px`:"",[a]:`calc(100% + ${Ir.arrowOffset.reference})`}),{}}}};function bD(e){const[t,n]=e.split("-");return{side:t,align:n,hasAlign:n!=null}}function xD(e){return e.split("-")[0]}var wD={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function dx(e,t){const n=e.devicePixelRatio||1;return Math.round(t*n)/n}function kh(e){return typeof e=="function"?e():e==="clipping-ancestors"?"clippingAncestors":e}function CD(e,t,n){const r=e||t.createElement("div");return uD({element:r,padding:n.arrowPadding})}function SD(e,t){if(!vL(t.offset??t.gutter))return iD(({placement:n})=>{const r=(e?.clientHeight||0)/2,i=t.offset?.mainAxis??t.gutter,a=typeof i=="number"?i+r:i??r,{hasAlign:c}=bD(n),u=c?void 0:t.shift,f=t.offset?.crossAxis??u;return KS({crossAxis:f,mainAxis:a,alignmentAxis:t.shift})})}function ED(e){if(!e.flip)return;const t=kh(e.boundary);return aD({...t?{boundary:t}:void 0,padding:e.overflowPadding,fallbackPlacements:e.flip===!0?void 0:e.flip})}function kD(e){if(!e.slide&&!e.overlap)return;const t=kh(e.boundary);return sD({...t?{boundary:t}:void 0,mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:dD()})}function PD(e){return lD({padding:e.overflowPadding,apply({elements:t,rects:n,availableHeight:r,availableWidth:i}){const a=t.floating,c=Math.round(n.reference.width),u=Math.round(n.reference.height);i=Math.floor(i),r=Math.floor(r),a.style.setProperty("--reference-width",`${c}px`),a.style.setProperty("--reference-height",`${u}px`),a.style.setProperty("--available-width",`${i}px`),a.style.setProperty("--available-height",`${r}px`)}})}function ID(e){if(e.hideWhenDetached)return cD({strategy:"referenceHidden",boundary:kh(e.boundary)??"clippingAncestors"})}function TD(e){return e?e===!0?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}function OD(e,t,n={}){const r=n.getAnchorElement?.()??e,i=pD(r,n.getAnchorRect);if(!t||!i)return;const a=Object.assign({},wD,n),c=t.querySelector("[data-part=arrow]"),u=[SD(c,a),ED(a),kD(a),CD(c,t.ownerDocument,a),yD(c),mD({gutter:a.gutter,offset:a.offset,overlap:a.overlap},c),PD(a),ID(a),vD],{placement:f,strategy:p,onComplete:h,onPositioned:y}=a,b=async()=>{if(!i||!t)return;const E=await fD(i,t,{placement:f,middleware:u,strategy:p});h?.(E),y?.({placed:!0});const O=mo(t),N=dx(O,E.x),R=dx(O,E.y);t.style.setProperty("--x",`${N}px`),t.style.setProperty("--y",`${R}px`),a.hideWhenDetached&&(E.middlewareData.hide?.referenceHidden?(t.style.setProperty("visibility","hidden"),t.style.setProperty("pointer-events","none")):(t.style.removeProperty("visibility"),t.style.removeProperty("pointer-events")));const S=t.firstElementChild;if(S){const T=jL(S);t.style.setProperty("--z-index",T.zIndex)}},v=async()=>{n.updatePosition?(await n.updatePosition({updatePosition:b,floatingElement:t}),y?.({placed:!0})):await b()},w=TD(a.listeners),x=a.listeners?oD(i,t,v,w):EL;return v(),()=>{x?.(),y?.({placed:!1})}}function fx(e,t,n={}){const{defer:r,...i}=n,a=r?Wn:u=>u(),c=[];return c.push(a(()=>{const u=typeof e=="function"?e():e,f=typeof t=="function"?t():t;c.push(OD(u,f,i))})),()=>{c.forEach(u=>u?.())}}var RD={bottom:"rotate(45deg)",left:"rotate(135deg)",top:"rotate(225deg)",right:"rotate(315deg)"};function ND(e={}){const{placement:t,sameWidth:n,fitViewport:r,strategy:i="absolute"}=e;return{arrow:{position:"absolute",width:Ir.arrowSize.reference,height:Ir.arrowSize.reference,[Ir.arrowSizeHalf.variable]:`calc(${Ir.arrowSize.reference} / 2)`,[Ir.arrowOffset.variable]:`calc(${Ir.arrowSizeHalf.reference} * -1)`},arrowTip:{transform:t?RD[t.split("-")[0]]:void 0,background:Ir.arrowBg.reference,top:"0",left:"0",width:"100%",height:"100%",position:"absolute",zIndex:"inherit"},floating:{position:i,isolation:"isolate",minWidth:n?void 0:"max-content",width:n?"var(--reference-width)":void 0,maxWidth:r?"var(--available-width)":void 0,maxHeight:r?"var(--available-height)":void 0,pointerEvents:t?void 0:"none",top:"0px",left:"0px",transform:t?"translate3d(var(--x), var(--y), 0)":"translate3d(0, -100vh, 0)",zIndex:"var(--z-index)"}}}function AD(e){const t={each(n){for(let r=0;r<e.frames?.length;r+=1){const i=e.frames[r];i&&n(i)}},addEventListener(n,r,i){return t.each(a=>{try{a.document.addEventListener(n,r,i)}catch{}}),()=>{try{t.removeEventListener(n,r,i)}catch{}}},removeEventListener(n,r,i){t.each(a=>{try{a.document.removeEventListener(n,r,i)}catch{}})}};return t}function VD(e){const t=e.frameElement!=null?e.parent:null;return{addEventListener:(n,r,i)=>{try{t?.addEventListener(n,r,i)}catch{}return()=>{try{t?.removeEventListener(n,r,i)}catch{}}},removeEventListener:(n,r,i)=>{try{t?.removeEventListener(n,r,i)}catch{}}}}var gx="pointerdown.outside",px="focus.outside";function _D(e){for(const t of e)if(_t(t)&&wh(t))return!0;return!1}var aE=e=>"clientY"in e;function LD(e,t){if(!aE(t)||!e)return!1;const n=e.getBoundingClientRect();return n.width===0||n.height===0?!1:n.top<=t.clientY&&t.clientY<=n.top+n.height&&n.left<=t.clientX&&t.clientX<=n.left+n.width}function $D(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function hx(e,t){if(!t||!aE(e))return!1;const n=t.scrollHeight>t.clientHeight,r=n&&e.clientX>t.offsetLeft+t.clientWidth,i=t.scrollWidth>t.clientWidth,a=i&&e.clientY>t.offsetTop+t.clientHeight,c={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(n?16:0),height:t.clientHeight+(i?16:0)},u={x:e.clientX,y:e.clientY};return $D(c,u)?r||a:!1}function DD(e,t){const{exclude:n,onFocusOutside:r,onPointerDownOutside:i,onInteractOutside:a,defer:c,followControlledElements:u=!0}=t;if(!e)return;const f=xs(e),p=mo(e),h=AD(p),y=VD(p);function b(R,S){if(!_t(S)||!S.isConnected||ao(e,S)||LD(e,R)||u&&YL(e,S))return!1;const T=f.querySelector(`[aria-controls="${e.id}"]`);if(T){const M=ap(T);if(hx(R,M))return!1}const L=ap(e);return hx(R,L)?!1:!n?.(S)}const v=new Set,w=cs(e?.getRootNode());function x(R){function S(T){const L=c&&!tx()?Wn:j=>j(),M=T??R,B=M?.composedPath?.()??[M?.target];L(()=>{const j=w?B[0]:uo(R);if(!(!e||!b(R,j))){if(i||a){const W=sp(i,a);e.addEventListener(gx,W,{once:!0})}mx(e,gx,{bubbles:!1,cancelable:!0,detail:{originalEvent:M,contextmenu:QS(M),focusable:_D(B),target:j}})}})}R.pointerType==="touch"?(v.forEach(T=>T()),v.add(ja(f,"click",S,{once:!0})),v.add(y.addEventListener("click",S,{once:!0})),v.add(h.addEventListener("click",S,{once:!0}))):S()}const E=new Set,O=setTimeout(()=>{E.add(ja(f,"pointerdown",x,!0)),E.add(y.addEventListener("pointerdown",x,!0)),E.add(h.addEventListener("pointerdown",x,!0))},0);function N(R){(c?Wn:T=>T())(()=>{const T=R?.composedPath?.()??[R?.target],L=w?T[0]:uo(R);if(!(!e||!b(R,L))){if(r||a){const M=sp(r,a);e.addEventListener(px,M,{once:!0})}mx(e,px,{bubbles:!1,cancelable:!0,detail:{originalEvent:R,contextmenu:!1,focusable:wh(L),target:L}})}})}return tx()||(E.add(ja(f,"focusin",N,!0)),E.add(y.addEventListener("focusin",N,!0)),E.add(h.addEventListener("focusin",N,!0))),()=>{clearTimeout(O),v.forEach(R=>R()),E.forEach(R=>R())}}function zD(e,t){const{defer:n}=t,r=n?Wn:a=>a(),i=[];return i.push(r(()=>{const a=typeof e=="function"?e():e;i.push(DD(a,t))})),()=>{i.forEach(a=>a?.())}}function mx(e,t,n){const r=e.ownerDocument.defaultView||window,i=new r.CustomEvent(t,n);return e.dispatchEvent(i)}function FD(e,t){const n=r=>{r.key==="Escape"&&(r.isComposing||t?.(r))};return ja(xs(e),"keydown",n,{capture:!0})}var vx="layer:request-dismiss",Tn={layers:[],branches:[],recentlyRemoved:new Set,count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){const t=this.indexOf(e),n=this.topMostPointerBlockingLayer()?this.indexOf(this.topMostPointerBlockingLayer()?.node):-1;return t<n},isTopMost(e){return this.layers[this.count()-1]?.node===e},getNestedLayers(e){return Array.from(this.layers).slice(this.indexOf(e)+1)},getLayersByType(e){return this.layers.filter(t=>t.type===e)},getNestedLayersByType(e,t){const n=this.indexOf(e);return n===-1?[]:this.layers.slice(n+1).filter(r=>r.type===t)},getParentLayerOfType(e,t){const n=this.indexOf(e);if(!(n<=0))return this.layers.slice(0,n).reverse().find(r=>r.type===t)},countNestedLayersOfType(e,t){return this.getNestedLayersByType(e,t).length},isInNestedLayer(e,t){return!!(this.getNestedLayers(e).some(r=>ao(r.node,t))||this.recentlyRemoved.size>0)},isInBranch(e){return Array.from(this.branches).some(t=>ao(t,e))},add(e){this.layers.push(e),this.syncLayers()},addBranch(e){this.branches.push(e)},remove(e){const t=this.indexOf(e);t<0||(this.recentlyRemoved.add(e),h$(()=>this.recentlyRemoved.delete(e)),t<this.count()-1&&this.getNestedLayers(e).forEach(r=>Tn.dismiss(r.node,e)),this.layers.splice(t,1),this.syncLayers())},removeBranch(e){const t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},syncLayers(){this.layers.forEach((e,t)=>{e.node.style.setProperty("--layer-index",`${t}`),e.node.removeAttribute("data-nested"),e.node.removeAttribute("data-has-nested"),this.getParentLayerOfType(e.node,e.type)&&e.node.setAttribute("data-nested",e.type);const r=this.countNestedLayersOfType(e.node,e.type);r>0&&e.node.setAttribute("data-has-nested",e.type),e.node.style.setProperty("--nested-layer-count",`${r}`)})},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e,t){const n=this.indexOf(e);if(n===-1)return;const r=this.layers[n];BD(e,vx,i=>{r.requestDismiss?.(i),i.defaultPrevented||r?.dismiss()}),MD(e,vx,{originalLayer:e,targetLayer:t,originalIndex:n,targetIndex:t?this.indexOf(t):-1}),this.syncLayers()},clear(){this.remove(this.layers[0].node)}};function MD(e,t,n){const r=e.ownerDocument.defaultView||window,i=new r.CustomEvent(t,{cancelable:!0,bubbles:!0,detail:n});return e.dispatchEvent(i)}function BD(e,t,n){e.addEventListener(t,n,{once:!0})}var yx;function bx(){Tn.layers.forEach(({node:e})=>{e.style.pointerEvents=Tn.isBelowPointerBlockingLayer(e)?"none":"auto"})}function WD(e){e.style.pointerEvents=""}function HD(e,t){const n=xs(e),r=[];return Tn.hasPointerBlockingLayer()&&!n.body.hasAttribute("data-inert")&&(yx=document.body.style.pointerEvents,queueMicrotask(()=>{n.body.style.pointerEvents="none",n.body.setAttribute("data-inert","")})),t?.forEach(i=>{const[a,c]=$$(()=>{const u=i();return _t(u)?u:null},{timeout:1e3});a.then(u=>r.push(N$(u,{pointerEvents:"auto"}))),r.push(c)}),()=>{Tn.hasPointerBlockingLayer()||(queueMicrotask(()=>{n.body.style.pointerEvents=yx,n.body.removeAttribute("data-inert"),n.body.style.length===0&&n.body.removeAttribute("style")}),r.forEach(i=>i()))}}function jD(e,t){const{warnOnMissingNode:n=!0}=t;if(n&&!e){kL("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;const{onDismiss:r,onRequestDismiss:i,pointerBlocking:a,exclude:c,debug:u,type:f="dialog"}=t,p={dismiss:r,node:e,type:f,pointerBlocking:a,requestDismiss:i};Tn.add(p),bx();function h(x){const E=uo(x.detail.originalEvent);Tn.isBelowPointerBlockingLayer(e)||Tn.isInBranch(E)||(t.onPointerDownOutside?.(x),t.onInteractOutside?.(x),!x.defaultPrevented&&(u&&console.log("onPointerDownOutside:",x.detail.originalEvent),r?.()))}function y(x){const E=uo(x.detail.originalEvent);Tn.isInBranch(E)||(t.onFocusOutside?.(x),t.onInteractOutside?.(x),!x.defaultPrevented&&(u&&console.log("onFocusOutside:",x.detail.originalEvent),r?.()))}function b(x){Tn.isTopMost(e)&&(t.onEscapeKeyDown?.(x),!x.defaultPrevented&&r&&(x.preventDefault(),r()))}function v(x){if(!e)return!1;const E=typeof c=="function"?c():c,O=Array.isArray(E)?E:[E],N=t.persistentElements?.map(R=>R()).filter(_t);return N&&O.push(...N),O.some(R=>ao(R,x))||Tn.isInNestedLayer(e,x)}const w=[a?HD(e,t.persistentElements):void 0,FD(e,b),zD(e,{exclude:v,onFocusOutside:y,onPointerDownOutside:h,defer:t.defer})];return()=>{Tn.remove(e),bx(),WD(e),w.forEach(x=>x?.())}}function GD(e,t){const{defer:n}=t,r=n?Wn:a=>a(),i=[];return i.push(r(()=>{const a=mL(e)?e():e;i.push(jD(a,t))})),()=>{i.forEach(a=>a?.())}}var Fa=(e,t)=>({x:e,y:t});function UD(e){const{x:t,y:n,width:r,height:i}=e,a=t+r/2,c=n+i/2;return{x:t,y:n,width:r,height:i,minX:t,minY:n,maxX:t+r,maxY:n+i,midX:a,midY:c,center:Fa(a,c)}}function KD(e){const t=Fa(e.minX,e.minY),n=Fa(e.maxX,e.minY),r=Fa(e.maxX,e.maxY),i=Fa(e.minX,e.maxY);return{top:t,right:n,bottom:r,left:i}}function YD(e,t){const n=UD(e),{top:r,right:i,left:a,bottom:c}=KD(n),[u]=t.split("-");return{top:[a,r,i,c],right:[r,i,c,a],bottom:[r,a,c,i],left:[i,r,a,c]}[u]}function lE(e,t){const{x:n,y:r}=t;let i=!1;for(let a=0,c=e.length-1;a<e.length;c=a++){const u=e[a].x,f=e[a].y,p=e[c].x,h=e[c].y;f>r!=h>r&&n<(p-u)*(r-f)/(h-f)+u&&(i=!i)}return i}var cl=()=>e=>Array.from(new Set(e)),cE=za("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem"),Ut=cE.build(),Iu=e=>e.ids?.trigger??`menu:${e.id}:trigger`,uE=e=>e.ids?.contextTrigger??`menu:${e.id}:ctx-trigger`,Xi=e=>e.ids?.content??`menu:${e.id}:content`,XD=e=>e.ids?.arrow??`menu:${e.id}:arrow`,dE=e=>e.ids?.positioner??`menu:${e.id}:popper`,qD=(e,t)=>e.ids?.group?.(t)??`menu:${e.id}:group:${t}`,el=(e,t)=>`${e.id}/${t}`,_o=e=>e?.dataset.value??null,xx=(e,t)=>e.ids?.groupLabel?.(t)??`menu:${e.id}:group-label:${t}`,kr=e=>e.getById(Xi(e)),wx=e=>e.getById(dE(e)),Wc=e=>e.getById(Iu(e)),QD=(e,t)=>t?e.getById(el(e,t)):null,Rg=e=>e.getById(uE(e)),ul=e=>{const n=`[role^="menuitem"][data-ownedby=${CSS.escape(Xi(e))}]:not([data-disabled])`;return E$(kr(e),n)},ZD=e=>cL(ul(e)),JD=e=>uL(ul(e)),Ph=(e,t)=>t?e.id===t||e.dataset.value===t:!1,ez=(e,t)=>{const n=ul(e),r=n.findIndex(i=>Ph(i,t.value));return dL(n,r,{loop:t.loop??t.loopFocus})},tz=(e,t)=>{const n=ul(e),r=n.findIndex(i=>Ph(i,t.value));return gL(n,r,{loop:t.loop??t.loopFocus})},nz=(e,t)=>{const n=ul(e),r=n.find(i=>Ph(i,t.value));return eE(n,{state:t.typeaheadState,key:t.key,activeId:r?.id??null})},Hc=e=>_t(e)&&(e.dataset.disabled===""||e.hasAttribute("disabled")),Cx=e=>!!e?.getAttribute("role")?.startsWith("menuitem")&&!!e?.hasAttribute("data-controls"),lp="menu:select";function rz(e,t){if(!e)return;const n=mo(e),r=new n.CustomEvent(lp,{detail:{value:t}});e.dispatchEvent(r)}function oz(e,t){const{context:n,send:r,state:i,computed:a,prop:c,scope:u}=e,f=i.hasTag("open"),p=n.get("isSubmenu"),h=a("isTypingAhead"),y=c("composite"),b=n.get("currentPlacement"),v=n.get("anchorPoint"),w=n.get("highlightedValue"),x=ND({...c("positioning"),placement:v?"bottom":b});function E(S){return{id:el(u,S.value),disabled:!!S.disabled,highlighted:w===S.value}}function O(S){const T=S.valueText??S.value;return{...S,id:S.value,valueText:T}}function N(S){return{...E(O(S)),checked:!!S.checked}}function R(S){const{closeOnSelect:T,valueText:L,value:M}=S,B=E(S),j=el(u,M);return t.element({...Ut.item.attrs,id:j,role:"menuitem","aria-disabled":OL(B.disabled),"data-disabled":_i(B.disabled),"data-ownedby":Xi(u),"data-highlighted":_i(B.highlighted),"data-value":M,"data-valuetext":L,onDragStart(W){W.currentTarget.matches("a[href]")&&W.preventDefault()},onPointerMove(W){if(B.disabled||W.pointerType!=="mouse")return;const U=W.currentTarget;if(B.highlighted)return;const $=Ea(W);r({type:"ITEM_POINTERMOVE",id:j,target:U,closeOnSelect:T,point:$})},onPointerLeave(W){if(B.disabled||W.pointerType!=="mouse"||!e.event.previous()?.type.includes("POINTER"))return;const $=W.currentTarget;r({type:"ITEM_POINTERLEAVE",id:j,target:$,closeOnSelect:T})},onPointerDown(W){if(B.disabled)return;const U=W.currentTarget;r({type:"ITEM_POINTERDOWN",target:U,id:j,closeOnSelect:T})},onClick(W){if(rx(W)||nx(W)||B.disabled)return;const U=W.currentTarget;r({type:"ITEM_CLICK",target:U,id:j,closeOnSelect:T})}})}return{highlightedValue:w,open:f,setOpen(S){i.hasTag("open")!==S&&r({type:S?"OPEN":"CLOSE"})},setHighlightedValue(S){r({type:"HIGHLIGHTED.SET",value:S})},setParent(S){r({type:"PARENT.SET",value:S,id:S.prop("id")})},setChild(S){r({type:"CHILD.SET",value:S,id:S.prop("id")})},reposition(S={}){r({type:"POSITIONING.SET",options:S})},addItemListener(S){const T=u.getById(S.id);if(!T)return;const L=()=>S.onSelect?.();return T.addEventListener(lp,L),()=>T.removeEventListener(lp,L)},getContextTriggerProps(){return t.element({...Ut.contextTrigger.attrs,dir:c("dir"),id:uE(u),"data-state":f?"open":"closed",onPointerDown(S){if(S.pointerType==="mouse")return;const T=Ea(S);r({type:"CONTEXT_MENU_START",point:T})},onPointerCancel(S){S.pointerType!=="mouse"&&r({type:"CONTEXT_MENU_CANCEL"})},onPointerMove(S){S.pointerType!=="mouse"&&r({type:"CONTEXT_MENU_CANCEL"})},onPointerUp(S){S.pointerType!=="mouse"&&r({type:"CONTEXT_MENU_CANCEL"})},onContextMenu(S){const T=Ea(S);r({type:"CONTEXT_MENU",point:T}),S.preventDefault()},style:{WebkitTouchCallout:"none",WebkitUserSelect:"none",userSelect:"none"}})},getTriggerItemProps(S){const T=S.getTriggerProps();return M$(R({value:T.id}),T)},getTriggerProps(){return t.button({...p?Ut.triggerItem.attrs:Ut.trigger.attrs,"data-placement":n.get("currentPlacement"),type:"button",dir:c("dir"),id:Iu(u),"data-uid":c("id"),"aria-haspopup":y?"menu":"dialog","aria-controls":Xi(u),"data-controls":Xi(u),"aria-expanded":f||void 0,"data-state":f?"open":"closed",onPointerMove(S){if(S.pointerType!=="mouse"||Hc(S.currentTarget)||!p)return;const L=Ea(S);r({type:"TRIGGER_POINTERMOVE",target:S.currentTarget,point:L})},onPointerLeave(S){if(Hc(S.currentTarget)||S.pointerType!=="mouse"||!p)return;const T=Ea(S);r({type:"TRIGGER_POINTERLEAVE",target:S.currentTarget,point:T})},onPointerDown(S){Hc(S.currentTarget)||QS(S)||S.preventDefault()},onClick(S){S.defaultPrevented||Hc(S.currentTarget)||r({type:"TRIGGER_CLICK",target:S.currentTarget})},onBlur(){r({type:"TRIGGER_BLUR"})},onFocus(){r({type:"TRIGGER_FOCUS"})},onKeyDown(S){if(S.defaultPrevented)return;const T={ArrowDown(){r({type:"ARROW_DOWN"})},ArrowUp(){r({type:"ARROW_UP"})},Enter(){r({type:"ARROW_DOWN",src:"enter"})},Space(){r({type:"ARROW_DOWN",src:"space"})}},L=ix(S,{orientation:"vertical",dir:c("dir")}),M=T[L];M&&(S.preventDefault(),M(S))}})},getIndicatorProps(){return t.element({...Ut.indicator.attrs,dir:c("dir"),"data-state":f?"open":"closed"})},getPositionerProps(){return t.element({...Ut.positioner.attrs,dir:c("dir"),id:dE(u),style:x.floating})},getArrowProps(){return t.element({id:XD(u),...Ut.arrow.attrs,dir:c("dir"),style:x.arrow})},getArrowTipProps(){return t.element({...Ut.arrowTip.attrs,dir:c("dir"),style:x.arrowTip})},getContentProps(){return t.element({...Ut.content.attrs,id:Xi(u),"aria-label":c("aria-label"),hidden:!f,"data-state":f?"open":"closed",role:y?"menu":"dialog",tabIndex:0,dir:c("dir"),"aria-activedescendant":a("highlightedId")||void 0,"aria-labelledby":Iu(u),"data-placement":b,onPointerEnter(S){S.pointerType==="mouse"&&r({type:"MENU_POINTERENTER"})},onKeyDown(S){if(S.defaultPrevented||!ao(S.currentTarget,uo(S)))return;const T=uo(S);if(!(T?.closest("[role=menu]")===S.currentTarget||T===S.currentTarget))return;if(S.key==="Tab"&&!g$(S)){S.preventDefault();return}const M={ArrowDown(){r({type:"ARROW_DOWN"})},ArrowUp(){r({type:"ARROW_UP"})},ArrowLeft(){r({type:"ARROW_LEFT"})},ArrowRight(){r({type:"ARROW_RIGHT"})},Enter(){r({type:"ENTER"})},Space(W){h?r({type:"TYPEAHEAD",key:W.key}):M.Enter?.(W)},Home(){r({type:"HOME"})},End(){r({type:"END"})}},B=ix(S,{dir:c("dir")}),j=M[B];if(j){j(S),S.stopPropagation(),S.preventDefault();return}c("typeahead")&&n$(S)&&(r$(S)||XS(T)||(r({type:"TYPEAHEAD",key:S.key}),S.preventDefault()))}})},getSeparatorProps(){return t.element({...Ut.separator.attrs,role:"separator",dir:c("dir"),"aria-orientation":"horizontal"})},getItemState:E,getItemProps:R,getOptionItemState:N,getOptionItemProps(S){const{type:T,disabled:L,closeOnSelect:M}=S,B=O(S),j=N(S);return{...R(B),...t.element({"data-type":T,...Ut.item.attrs,dir:c("dir"),"data-value":B.value,role:`menuitem${T}`,"aria-checked":!!j.checked,"data-state":j.checked?"checked":"unchecked",onClick(W){if(L||rx(W)||nx(W))return;const U=W.currentTarget;r({type:"ITEM_CLICK",target:U,option:B,closeOnSelect:M})}})}},getItemIndicatorProps(S){const T=N(Zb(S)),L=T.checked?"checked":"unchecked";return t.element({...Ut.itemIndicator.attrs,dir:c("dir"),"data-disabled":_i(T.disabled),"data-highlighted":_i(T.highlighted),"data-state":du(S,"checked")?L:void 0,hidden:du(S,"checked")?!T.checked:void 0})},getItemTextProps(S){const T=N(Zb(S)),L=T.checked?"checked":"unchecked";return t.element({...Ut.itemText.attrs,dir:c("dir"),"data-disabled":_i(T.disabled),"data-highlighted":_i(T.highlighted),"data-state":du(S,"checked")?L:void 0})},getItemGroupLabelProps(S){return t.element({...Ut.itemGroupLabel.attrs,id:xx(u,S.htmlFor),dir:c("dir")})},getItemGroupProps(S){return t.element({id:qD(u,S.id),...Ut.itemGroup.attrs,dir:c("dir"),"aria-labelledby":xx(u,S.id),role:"group"})}}}var{not:Pn,and:Li,or:iz}=B$(),sz={props({props:e}){return{closeOnSelect:!0,typeahead:!0,composite:!0,loopFocus:!1,navigate(t){b$(t.node)},...e,positioning:{placement:"bottom-start",gutter:8,...e.positioning}}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"idle"},context({bindable:e,prop:t}){return{suspendPointer:e(()=>({defaultValue:!1})),highlightedValue:e(()=>({defaultValue:t("defaultHighlightedValue")||null,value:t("highlightedValue"),onChange(n){t("onHighlightChange")?.({highlightedValue:n})}})),lastHighlightedValue:e(()=>({defaultValue:null})),currentPlacement:e(()=>({defaultValue:void 0})),intentPolygon:e(()=>({defaultValue:null})),anchorPoint:e(()=>({defaultValue:null,hash(n){return`x: ${n?.x}, y: ${n?.y}`}})),isSubmenu:e(()=>({defaultValue:!1}))}},refs(){return{parent:null,children:{},typeaheadState:{...eE.defaultOptions},positioningOverride:{}}},computed:{isRtl:({prop:e})=>e("dir")==="rtl",isTypingAhead:({refs:e})=>e.get("typeaheadState").keysSoFar!=="",highlightedId:({context:e,scope:t,refs:n})=>lz(n.get("children"),e.get("highlightedValue"),t)},watch({track:e,action:t,context:n,prop:r}){e([()=>n.get("isSubmenu")],()=>{t(["setSubmenuPlacement"])}),e([()=>n.hash("anchorPoint")],()=>{n.get("anchorPoint")&&t(["reposition"])}),e([()=>r("open")],()=>{t(["toggleVisibility"])})},on:{"PARENT.SET":{actions:["setParentMenu"]},"CHILD.SET":{actions:["setChildMenu"]},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],OPEN_AUTOFOCUS:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["highlightFirstItem","invokeOnOpen"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"HIGHLIGHTED.RESTORE":{actions:["restoreHighlightedItem"]},"HIGHLIGHTED.SET":{actions:["setHighlightedItem"]}},states:{idle:{tags:["closed"],on:{"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed"},CONTEXT_MENU_START:{target:"opening:contextmenu",actions:["setAnchorPoint"]},CONTEXT_MENU:[{guard:"isOpenControlled",actions:["setAnchorPoint","invokeOnOpen"]},{target:"open",actions:["setAnchorPoint","invokeOnOpen"]}],TRIGGER_CLICK:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TRIGGER_FOCUS:{guard:Pn("isSubmenu"),target:"closed"},TRIGGER_POINTERMOVE:{guard:"isSubmenu",target:"opening"}}},"opening:contextmenu":{tags:["closed"],effects:["waitForLongPress"],on:{"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed"},CONTEXT_MENU_CANCEL:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"LONG_PRESS.OPEN":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}},opening:{tags:["closed"],effects:["waitForOpenDelay"],on:{"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed"},BLUR:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TRIGGER_POINTERLEAVE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"DELAY.OPEN":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}},closing:{tags:["open"],effects:["trackPointerMove","trackInteractOutside","waitForCloseDelay"],on:{"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed",actions:["focusParentMenu","restoreParentHighlightedItem"]},MENU_POINTERENTER:{target:"open",actions:["clearIntentPolygon"]},POINTER_MOVED_AWAY_FROM_SUBMENU:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["focusParentMenu","restoreParentHighlightedItem"]}],"DELAY.CLOSE":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["focusParentMenu","restoreParentHighlightedItem","invokeOnClose"]}]}},closed:{tags:["closed"],entry:["clearHighlightedItem","focusTrigger","resumePointer","clearAnchorPoint"],on:{"CONTROLLED.OPEN":[{guard:iz("isOpenAutoFocusEvent","isArrowDownEvent"),target:"open",actions:["highlightFirstItem"]},{guard:"isArrowUpEvent",target:"open",actions:["highlightLastItem"]},{target:"open"}],CONTEXT_MENU_START:{target:"opening:contextmenu",actions:["setAnchorPoint"]},CONTEXT_MENU:[{guard:"isOpenControlled",actions:["setAnchorPoint","invokeOnOpen"]},{target:"open",actions:["setAnchorPoint","invokeOnOpen"]}],TRIGGER_CLICK:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TRIGGER_POINTERMOVE:{guard:"isTriggerItem",target:"opening"},TRIGGER_BLUR:{target:"idle"},ARROW_DOWN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["highlightFirstItem","invokeOnOpen"]}],ARROW_UP:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["highlightLastItem","invokeOnOpen"]}]}},open:{tags:["open"],effects:["trackInteractOutside","trackPositioning","scrollToHighlightedItem"],entry:["focusMenu","resumePointer"],on:{"CONTROLLED.CLOSE":[{target:"closed",guard:"isArrowLeftEvent",actions:["focusParentMenu"]},{target:"closed"}],TRIGGER_CLICK:[{guard:Li(Pn("isTriggerItem"),"isOpenControlled"),actions:["invokeOnClose"]},{guard:Pn("isTriggerItem"),target:"closed",actions:["invokeOnClose"]}],CONTEXT_MENU:{actions:["setAnchorPoint","focusMenu"]},ARROW_UP:{actions:["highlightPrevItem","focusMenu"]},ARROW_DOWN:{actions:["highlightNextItem","focusMenu"]},ARROW_LEFT:[{guard:Li("isSubmenu","isOpenControlled"),actions:["invokeOnClose"]},{guard:"isSubmenu",target:"closed",actions:["focusParentMenu","invokeOnClose"]}],HOME:{actions:["highlightFirstItem","focusMenu"]},END:{actions:["highlightLastItem","focusMenu"]},ARROW_RIGHT:{guard:"isTriggerItemHighlighted",actions:["openSubmenu"]},ENTER:[{guard:"isTriggerItemHighlighted",actions:["openSubmenu"]},{actions:["clickHighlightedItem"]}],ITEM_POINTERMOVE:[{guard:Pn("isPointerSuspended"),actions:["setHighlightedItem","focusMenu","closeSiblingMenus"]},{actions:["setLastHighlightedItem","closeSiblingMenus"]}],ITEM_POINTERLEAVE:{guard:Li(Pn("isPointerSuspended"),Pn("isTriggerItem")),actions:["clearHighlightedItem"]},ITEM_CLICK:[{guard:Li(Pn("isTriggerItemHighlighted"),Pn("isHighlightedItemEditable"),"closeOnSelect","isOpenControlled"),actions:["invokeOnSelect","setOptionState","closeRootMenu","invokeOnClose"]},{guard:Li(Pn("isTriggerItemHighlighted"),Pn("isHighlightedItemEditable"),"closeOnSelect"),target:"closed",actions:["invokeOnSelect","setOptionState","closeRootMenu","invokeOnClose"]},{guard:Li(Pn("isTriggerItemHighlighted"),Pn("isHighlightedItemEditable")),actions:["invokeOnSelect","setOptionState"]},{actions:["setHighlightedItem"]}],TRIGGER_POINTERMOVE:{guard:"isTriggerItem",actions:["setIntentPolygon"]},TRIGGER_POINTERLEAVE:{target:"closing",actions:["setIntentPolygon"]},ITEM_POINTERDOWN:{actions:["setHighlightedItem"]},TYPEAHEAD:{actions:["highlightMatchedItem"]},FOCUS_MENU:{actions:["focusMenu"]},"POSITIONING.SET":{actions:["reposition"]}}}},implementations:{guards:{closeOnSelect:({prop:e,event:t})=>!!(t?.closeOnSelect??e("closeOnSelect")),isTriggerItem:({event:e})=>Cx(e.target),isTriggerItemHighlighted:({event:e,scope:t,computed:n})=>!!(e.target??t.getById(n("highlightedId")))?.hasAttribute("data-controls"),isSubmenu:({context:e})=>e.get("isSubmenu"),isPointerSuspended:({context:e})=>e.get("suspendPointer"),isHighlightedItemEditable:({scope:e,computed:t})=>XS(e.getById(t("highlightedId"))),isOpenControlled:({prop:e})=>e("open")!==void 0,isArrowLeftEvent:({event:e})=>e.previousEvent?.type==="ARROW_LEFT",isArrowUpEvent:({event:e})=>e.previousEvent?.type==="ARROW_UP",isArrowDownEvent:({event:e})=>e.previousEvent?.type==="ARROW_DOWN",isOpenAutoFocusEvent:({event:e})=>e.previousEvent?.type==="OPEN_AUTOFOCUS"},effects:{waitForOpenDelay({send:e}){const t=setTimeout(()=>{e({type:"DELAY.OPEN"})},200);return()=>clearTimeout(t)},waitForCloseDelay({send:e}){const t=setTimeout(()=>{e({type:"DELAY.CLOSE"})},100);return()=>clearTimeout(t)},waitForLongPress({send:e}){const t=setTimeout(()=>{e({type:"LONG_PRESS.OPEN"})},700);return()=>clearTimeout(t)},trackPositioning({context:e,prop:t,scope:n,refs:r}){if(Rg(n))return;const i={...t("positioning"),...r.get("positioningOverride")};e.set("currentPlacement",i.placement);const a=()=>wx(n);return fx(Wc(n),a,{...i,defer:!0,onComplete(c){e.set("currentPlacement",c.placement)}})},trackInteractOutside({refs:e,scope:t,prop:n,context:r,send:i}){const a=()=>kr(t);let c=!0;return GD(a,{type:"menu",defer:!0,exclude:[Wc(t)],onInteractOutside:n("onInteractOutside"),onRequestDismiss:n("onRequestDismiss"),onFocusOutside(u){n("onFocusOutside")?.(u);const f=uo(u.detail.originalEvent);if(ao(Rg(t),f)){u.preventDefault();return}},onEscapeKeyDown(u){n("onEscapeKeyDown")?.(u),r.get("isSubmenu")&&u.preventDefault(),Sx({parent:e.get("parent")})},onPointerDownOutside(u){n("onPointerDownOutside")?.(u);const f=uo(u.detail.originalEvent);if(ao(Rg(t),f)&&u.detail.contextmenu){u.preventDefault();return}c=!u.detail.focusable},onDismiss(){i({type:"CLOSE",src:"interact-outside",restoreFocus:c})}})},trackPointerMove({context:e,scope:t,send:n,refs:r,flush:i}){const a=r.get("parent");i(()=>{a.context.set("suspendPointer",!0)});const c=t.getDoc();return ja(c,"pointermove",u=>{az(e.get("intentPolygon"),{x:u.clientX,y:u.clientY})||(n({type:"POINTER_MOVED_AWAY_FROM_SUBMENU"}),a.context.set("suspendPointer",!1))})},scrollToHighlightedItem({event:e,scope:t,computed:n}){const r=()=>{if(e.current().type.startsWith("ITEM_POINTER"))return;const a=t.getById(n("highlightedId")),c=kr(t);S$(a,{rootEl:c,block:"nearest"})};return Wn(()=>r()),y$(()=>kr(t),{attributes:["aria-activedescendant"],callback:r})}},actions:{setAnchorPoint({context:e,event:t}){e.set("anchorPoint",n=>vh(n,t.point)?n:t.point)},setSubmenuPlacement({context:e,computed:t,refs:n}){if(!e.get("isSubmenu"))return;const r=t("isRtl")?"left-start":"right-start";n.set("positioningOverride",{placement:r,gutter:0})},reposition({context:e,scope:t,prop:n,event:r,refs:i}){const a=()=>wx(t),c=e.get("anchorPoint"),u=c?()=>({width:0,height:0,...c}):void 0,f={...n("positioning"),...i.get("positioningOverride")};fx(Wc(t),a,{...f,defer:!0,getAnchorRect:u,...r.options??{},listeners:!1,onComplete(p){e.set("currentPlacement",p.placement)}})},setOptionState({event:e}){if(!e.option)return;const{checked:t,onCheckedChange:n,type:r}=e.option;r==="radio"?n?.(!0):r==="checkbox"&&n?.(!t)},clickHighlightedItem({scope:e,computed:t,prop:n,context:r}){const i=e.getById(t("highlightedId"));if(!i||i.dataset.disabled)return;const a=r.get("highlightedValue");DL(i)?n("navigate")?.({value:a,node:i,href:i.href}):queueMicrotask(()=>i.click())},setIntentPolygon({context:e,scope:t,event:n}){const r=kr(t),i=e.get("currentPlacement");if(!r||!i)return;const a=r.getBoundingClientRect(),c=YD(a,i);if(!c)return;const f=xD(i)==="right"?-5:5;e.set("intentPolygon",[{...n.point,x:n.point.x+f},...c])},clearIntentPolygon({context:e}){e.set("intentPolygon",null)},clearAnchorPoint({context:e}){e.set("anchorPoint",null)},resumePointer({refs:e,flush:t}){const n=e.get("parent");n&&t(()=>{n.context.set("suspendPointer",!1)})},setHighlightedItem({context:e,event:t}){const n=t.value||_o(t.target);e.set("highlightedValue",n)},clearHighlightedItem({context:e}){e.set("highlightedValue",null)},focusMenu({scope:e}){Wn(()=>{const t=kr(e);f$({root:t,enabled:!ao(t,e.getActiveElement()),filter(r){return!r.role?.startsWith("menuitem")}})?.focus({preventScroll:!0})})},highlightFirstItem({context:e,scope:t}){(kr(t)?queueMicrotask:Wn)(()=>{const r=ZD(t);r&&e.set("highlightedValue",_o(r))})},highlightLastItem({context:e,scope:t}){(kr(t)?queueMicrotask:Wn)(()=>{const r=JD(t);r&&e.set("highlightedValue",_o(r))})},highlightNextItem({context:e,scope:t,event:n,prop:r}){const i=ez(t,{loop:n.loop,value:e.get("highlightedValue"),loopFocus:r("loopFocus")});e.set("highlightedValue",_o(i))},highlightPrevItem({context:e,scope:t,event:n,prop:r}){const i=tz(t,{loop:n.loop,value:e.get("highlightedValue"),loopFocus:r("loopFocus")});e.set("highlightedValue",_o(i))},invokeOnSelect({context:e,prop:t,scope:n}){const r=e.get("highlightedValue");if(r==null)return;const i=QD(n,r);rz(i,r),t("onSelect")?.({value:r})},focusTrigger({scope:e,context:t,event:n}){t.get("isSubmenu")||t.get("anchorPoint")||n.restoreFocus===!1||queueMicrotask(()=>Wc(e)?.focus({preventScroll:!0}))},highlightMatchedItem({scope:e,context:t,event:n,refs:r}){const i=nz(e,{key:n.key,value:t.get("highlightedValue"),typeaheadState:r.get("typeaheadState")});i&&t.set("highlightedValue",_o(i))},setParentMenu({refs:e,event:t,context:n}){e.set("parent",t.value),n.set("isSubmenu",!0)},setChildMenu({refs:e,event:t}){const n=e.get("children");n[t.id]=t.value,e.set("children",n)},closeSiblingMenus({refs:e,event:t,scope:n}){const r=t.target;if(!Cx(r))return;const i=r?.getAttribute("data-uid"),a=e.get("children");for(const c in a){if(c===i)continue;const u=a[c],f=u.context.get("intentPolygon");f&&t.point&&lE(f,t.point)||(kr(n)?.focus({preventScroll:!0}),u.send({type:"CLOSE"}))}},closeRootMenu({refs:e}){Sx({parent:e.get("parent")})},openSubmenu({refs:e,scope:t,computed:n}){const i=t.getById(n("highlightedId"))?.getAttribute("data-uid"),a=e.get("children");(i?a[i]:null)?.send({type:"OPEN_AUTOFOCUS"})},focusParentMenu({refs:e}){e.get("parent")?.send({type:"FOCUS_MENU"})},setLastHighlightedItem({context:e,event:t}){e.set("lastHighlightedValue",_o(t.target))},restoreHighlightedItem({context:e}){e.get("lastHighlightedValue")&&(e.set("highlightedValue",e.get("lastHighlightedValue")),e.set("lastHighlightedValue",null))},restoreParentHighlightedItem({refs:e}){e.get("parent")?.send({type:"HIGHLIGHTED.RESTORE"})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},toggleVisibility({prop:e,event:t,send:n}){n({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:t})}}}};function Sx(e){let t=e.parent;for(;t&&t.context.get("isSubmenu");)t=t.refs.get("parent");t?.send({type:"CLOSE"})}function az(e,t){return e?lE(e,t):!1}function lz(e,t,n){const r=Object.keys(e).length>0;if(!t)return null;if(!r)return el(n,t);for(const i in e){const a=e[i],c=Iu(a.scope);if(c===t)return c}return el(n,t)}cl()(["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","dir","getRootNode","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","onSelect","open","positioning","typeahead"]);cl()(["closeOnSelect","disabled","value","valueText"]);cl()(["htmlFor"]);cl()(["id"]);cl()(["checked","closeOnSelect","disabled","onCheckedChange","type","value","valueText"]);const cz=e=>{const t=k.useId(),{getRootNode:n}=Ht(),{dir:r}=vn(),i={id:t,dir:r,getRootNode:n,...e},a=Yt(sz,i);return{api:oz(a,sn),service:a}},[fE,gE]=$e({name:"MenuMachineContext",hookName:"useMenuMachineContext",providerName:"<MenuMachineProvider />",strict:!1}),[pE,uz]=$e({name:"MenuMachineContext",hookName:"useMenuMachineContext",providerName:"<MenuMachineProvider />",strict:!1}),dz=ze(),fz=e=>{const[t,n]=ur(e),[r,i]=dz(n,["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","onSelect","open","positioning","typeahead"]),a=Pt(),c=gE(),{api:u,service:f}=cz(r),p=An(q({present:u.open},t));jS(()=>{c&&a&&(a.setChild(f),u.setParent(c))});const h=k.useCallback(()=>a?.getTriggerItemProps(u),[u,a]);return P.jsx(pE,{value:h,children:P.jsx(fE,{value:f,children:P.jsx(PS,{value:u,children:P.jsx(Kn,{value:p,...i})})})})},gz=e=>{const t=Pt(),n=gE(),[r,{value:i,children:a}]=ur(e),{api:c,service:u}=i,f=An(q({present:c.open},r));jS(()=>{n&&t&&(t.setChild(u),c.setParent(n))});const p=k.useCallback(()=>t?.getTriggerItemProps(c),[c,t]);return P.jsx(pE,{value:p,children:P.jsx(fE,{value:u,children:P.jsx(PS,{value:c,children:P.jsx(Kn,{value:f,children:a})})})})},hE=k.forwardRef((e,t)=>{const n=Pt(),r=q(n.getSeparatorProps(),e);return P.jsx(re.hr,{...r,ref:t})});hE.displayName="MenuSeparator";const mE=k.forwardRef((e,t)=>{const n=Pt(),r=yn(),i=q({...n.getTriggerProps(),"aria-controls":r.unmounted?void 0:n.getTriggerProps()["aria-controls"]},e);return P.jsx(re.button,{...i,ref:t})});mE.displayName="MenuTrigger";const vE=k.forwardRef((e,t)=>{const n=uz(),r=q(n?.()??{},e);return P.jsx(Zu,{value:{value:r["data-value"]},children:P.jsx(re.div,{...r,ref:t})})});vE.displayName="MenuTriggerItem";const OH=e=>{const{children:t,disabled:n}=e,[r,i]=k.useState(e.container?.current),a=k.useSyncExternalStore(hz,()=>!1,()=>!0),{getRootNode:c}=Ht();if(k.useEffect(()=>{i(()=>e.container?.current)},[e.container]),a||n)return P.jsx(P.Fragment,{children:t});const u=r??pz(c);return P.jsx(P.Fragment,{children:k.Children.map(t,f=>ps.createPortal(f,u))})},pz=e=>{const t=e?.(),n=t.getRootNode();return Uo(n)?n:Kt(t).body},hz=()=>()=>{};let Ng=new Map,cp=!1;try{cp=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Tu=!1;try{Tu=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const yE={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class mz{format(t){let n="";if(!cp&&this.options.signDisplay!=null?n=yz(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Tu){var r;let{unit:i,unitDisplay:a="short",locale:c}=this.resolvedOptions();if(!i)return n;let u=(r=yE[i])===null||r===void 0?void 0:r[a];n+=u[c]||u.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(n);return[...r.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!cp&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Tu&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=vz(t,n),this.options=n}}function vz(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Tu){var r;let{unit:c,unitDisplay:u="short"}=t;if(!c)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=yE[c])===null||r===void 0)&&r[u]))throw new Error(`Unsupported unit ${c} with unitDisplay = ${u}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((c,u)=>c[0]<u[0]?-1:1).join():"");if(Ng.has(i))return Ng.get(i);let a=new Intl.NumberFormat(e,t);return Ng.set(i,a),a}function yz(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let i=e.format(-n),a=e.format(n),c=i.replace(a,"").replace(/\u200e|\u061C/,"");return[...c].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(a,"!!!").replace(c,"+").replace("!!!",a)}else return e.format(n)}}const bz=new RegExp("^.*\\(.*\\).*$"),xz=["latn","arab","hanidec","deva","beng","fullwide"];class bE{parse(t){return Ag(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return Ag(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return Ag(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const Ex=new Map;function Ag(e,t,n){let r=kx(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of xz)if(i!==r.options.numberingSystem){let a=kx(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(a.isValidPartialNumber(n))return a}}return r}function kx(e,t){let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():""),r=Ex.get(n);return r||(r=new wz(e,t),Ex.set(n,r)),r}class wz{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=$i(n,this.symbols.group,"")),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,"-")),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let c=n.indexOf("-");n=n.replace("-",""),n=n.replace("+","");let u=n.indexOf(".");u===-1&&(u=n.length),n=n.replace(".",""),u-2===0?n=`0.${n}`:u-2===-1?n=`0.0${n}`:u-2===-2?n="0.00":n=`${n.slice(0,u-2)}.${n.slice(u-2)}`,c>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var i,a;let c={...this.options,style:"decimal",minimumFractionDigits:Math.min(((i=this.options.minimumFractionDigits)!==null&&i!==void 0?i:0)+2,20),maximumFractionDigits:Math.min(((a=this.options.maximumFractionDigits)!==null&&a!==void 0?a:0)+2,20)};return new bE(this.locale,c).parse(new mz(this.locale,c).format(r))}return this.options.currencySign==="accounting"&&bz.test(t)&&(r=-1*r),r}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace("،",this.symbols.decimal)),this.symbols.group&&(t=$i(t,".",this.symbols.group))),this.symbols.group==="’"&&t.includes("'")&&(t=$i(t,"'",this.symbols.group)),this.options.locale==="fr-FR"&&this.symbols.group&&(t=$i(t," ",this.symbols.group),t=$i(t,/\u00A0/g,this.symbols.group)),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=$i(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,n.roundingIncrement!==1&&n.roundingIncrement!=null&&(n.maximumFractionDigits==null&&n.minimumFractionDigits==null?(n.maximumFractionDigits=0,n.minimumFractionDigits=0):n.maximumFractionDigits==null?n.maximumFractionDigits=n.minimumFractionDigits:n.minimumFractionDigits==null&&(n.minimumFractionDigits=n.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=Sz(t,this.formatter,this.options,n);var r,i;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)>18||((i=this.options.maximumFractionDigits)!==null&&i!==void 0?i:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const Px=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),Cz=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function Sz(e,t,n,r){var i,a,c,u;let f=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),p=f.formatToParts(-10000.111),h=f.formatToParts(10000.111),y=Cz.map(W=>f.formatToParts(W));var b;let v=(b=(i=p.find(W=>W.type==="minusSign"))===null||i===void 0?void 0:i.value)!==null&&b!==void 0?b:"-",w=(a=h.find(W=>W.type==="plusSign"))===null||a===void 0?void 0:a.value;!w&&(r?.signDisplay==="exceptZero"||r?.signDisplay==="always")&&(w="+");let E=(c=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(W=>W.type==="decimal"))===null||c===void 0?void 0:c.value,O=(u=p.find(W=>W.type==="group"))===null||u===void 0?void 0:u.value,N=p.filter(W=>!Px.has(W.type)).map(W=>Ix(W.value)),R=y.flatMap(W=>W.filter(U=>!Px.has(U.type)).map(U=>Ix(U.value))),S=[...new Set([...N,...R])].sort((W,U)=>U.length-W.length),T=S.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${S.join("|")}|[\\p{White_Space}]`,"gu"),L=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),M=new Map(L.map((W,U)=>[W,U])),B=new RegExp(`[${L.join("")}]`,"g");return{minusSign:v,plusSign:w,decimal:E,group:O,literals:T,numeral:B,index:W=>String(M.get(W))}}function $i(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function Ix(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var xE=ve("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber");xE.build();var Ez=e=>e.ids?.input??`number-input:${e.id}:input`,kz=e=>e.ids?.incrementTrigger??`number-input:${e.id}:inc`,Pz=e=>e.ids?.decrementTrigger??`number-input:${e.id}:dec`,wE=e=>`number-input:${e.id}:cursor`,jc=e=>e.getById(Ez(e)),Iz=e=>e.getById(kz(e)),Tz=e=>e.getById(Pz(e)),CE=e=>e.getDoc().getElementById(wE(e)),Oz=(e,t)=>{let n=null;return t==="increment"&&(n=Iz(e)),t==="decrement"&&(n=Tz(e)),n},Rz=(e,t)=>{if(!ei())return Vz(e,t),()=>{CE(e)?.remove()}},Nz=e=>{const t=e.getDoc(),n=t.documentElement,r=t.body;return r.style.pointerEvents="none",n.style.userSelect="none",n.style.cursor="ew-resize",()=>{r.style.pointerEvents="",n.style.userSelect="",n.style.cursor="",n.style.length||n.removeAttribute("style"),r.style.length||r.removeAttribute("style")}},Az=(e,t)=>{const{point:n,isRtl:r,event:i}=t,a=e.getWin(),c=cg(i.movementX,a.devicePixelRatio),u=cg(i.movementY,a.devicePixelRatio);let f=c>0?"increment":c<0?"decrement":null;r&&f==="increment"&&(f="decrement"),r&&f==="decrement"&&(f="increment");const p={x:n.x+c,y:n.y+u},h=a.innerWidth,y=cg(7.5,a.devicePixelRatio);return p.x=AO(p.x+y,h)-y,{hint:f,point:p}},Vz=(e,t)=>{const n=e.getDoc(),r=n.createElement("div");r.className="scrubber--cursor",r.id=wE(e),Object.assign(r.style,{width:"15px",height:"15px",position:"fixed",pointerEvents:"none",left:"0px",top:"0px",zIndex:ow,transform:t?`translate3d(${t.x}px, ${t.y}px, 0px)`:void 0,willChange:"transform"}),r.innerHTML=`
|
|
9
|
+
<svg width="46" height="15" style="left: -15.5px; position: absolute; top: 0; filter: drop-shadow(rgba(0, 0, 0, 0.4) 0px 1px 1.1px);">
|
|
10
|
+
<g transform="translate(2 3)">
|
|
11
|
+
<path fill-rule="evenodd" d="M 15 4.5L 15 2L 11.5 5.5L 15 9L 15 6.5L 31 6.5L 31 9L 34.5 5.5L 31 2L 31 4.5Z" style="stroke-width: 2px; stroke: white;"></path>
|
|
12
|
+
<path fill-rule="evenodd" d="M 15 4.5L 15 2L 11.5 5.5L 15 9L 15 6.5L 31 6.5L 31 9L 34.5 5.5L 31 2L 31 4.5Z"></path>
|
|
13
|
+
</g>
|
|
14
|
+
</svg>`,n.body.appendChild(r)};function _z(e,t){if(!(!e||!t.isActiveElement(e)))try{const{selectionStart:n,selectionEnd:r,value:i}=e;return n==null||r==null?void 0:{start:n,end:r,value:i}}catch{return}}function Lz(e,t,n){if(!(!e||!n.isActiveElement(e))){if(!t){const r=e.value.length;e.setSelectionRange(r,r);return}try{const r=e.value,{start:i,end:a,value:c}=t;if(r===c){e.setSelectionRange(i,a);return}const u=Tx(c,r,i),f=i===a?u:Tx(c,r,a),p=Math.max(0,Math.min(u,r.length)),h=Math.max(p,Math.min(f,r.length));e.setSelectionRange(p,h)}catch{const r=e.value.length;e.setSelectionRange(r,r)}}}function Tx(e,t,n){const r=e.slice(0,n),i=e.slice(n);let a=0;const c=Math.min(r.length,t.length);for(let p=0;p<c&&r[p]===t[p];p++)a=p+1;let u=0;const f=Math.min(i.length,t.length-a);for(let p=0;p<f;p++){const h=i.length-1-p,y=t.length-1-p;if(i[h]===t[y])u=p+1;else break}if(a>=r.length)return a;if(u>=i.length)return t.length-u;if(a>0)return a;if(u>0)return t.length-u;if(e.length>0){const p=n/e.length;return Math.round(p*t.length)}return t.length}var $z=(e,t={})=>new Intl.NumberFormat(e,t),Dz=(e,t={})=>new bE(e,t),Vg=(e,t)=>{const{prop:n,computed:r}=t;return n("formatOptions")?e===""?Number.NaN:r("parser").parse(e):parseFloat(e)},Lo=(e,t)=>{const{prop:n,computed:r}=t;return Number.isNaN(e)?"":n("formatOptions")?r("formatter").format(e):e.toString()},zz=(e,t)=>{let n=e!==void 0&&!Number.isNaN(e)?e:1;return t?.style==="percent"&&(e===void 0||Number.isNaN(e))&&(n=.01),n},{choose:Fz,guards:Mz,createMachine:Bz}=ol(),{not:Ox,and:Rx}=Mz;Bz({props({props:e}){const t=zz(e.step,e.formatOptions);return{dir:"ltr",locale:"en-US",focusInputOnChange:!0,clampValueOnBlur:!e.allowOverflow,allowOverflow:!1,inputMode:"decimal",pattern:"-?[0-9]*(.[0-9]+)?",defaultValue:"",step:t,min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,spinOnPress:!0,...e,translations:{incrementLabel:"increment value",decrementLabel:"decrease value",...e.translations}}},initialState(){return"idle"},context({prop:e,bindable:t,getComputed:n}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(r){const i=n(),a=Vg(r,{computed:i,prop:e});e("onValueChange")?.({value:r,valueAsNumber:a})}})),hint:t(()=>({defaultValue:null})),scrubberCursorPoint:t(()=>({defaultValue:null,hash(r){return r?`x:${r.x}, y:${r.y}`:""}})),fieldsetDisabled:t(()=>({defaultValue:!1}))}},computed:{isRtl:({prop:e})=>e("dir")==="rtl",valueAsNumber:({context:e,computed:t,prop:n})=>Vg(e.get("value"),{computed:t,prop:n}),formattedValue:({computed:e,prop:t})=>Lo(e("valueAsNumber"),{computed:e,prop:t}),isAtMin:({computed:e,prop:t})=>_O(e("valueAsNumber"),t("min")),isAtMax:({computed:e,prop:t})=>VO(e("valueAsNumber"),t("max")),isOutOfRange:({computed:e,prop:t})=>!LO(e("valueAsNumber"),t("min"),t("max")),isValueEmpty:({context:e})=>e.get("value")==="",isDisabled:({prop:e,context:t})=>!!e("disabled")||t.get("fieldsetDisabled"),canIncrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMax"),canDecrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMin"),valueText:({prop:e,context:t})=>e("translations").valueText?.(t.get("value")),formatter:ab(({prop:e})=>[e("locale"),e("formatOptions")],([e,t])=>$z(e,t)),parser:ab(({prop:e})=>[e("locale"),e("formatOptions")],([e,t])=>Dz(e,t))},watch({track:e,action:t,context:n,computed:r,prop:i}){e([()=>n.get("value"),()=>i("locale"),()=>JSON.stringify(i("formatOptions"))],()=>{t(["syncInputElement"])}),e([()=>r("isOutOfRange")],()=>{t(["invokeOnInvalid"])}),e([()=>n.hash("scrubberCursorPoint")],()=>{t(["setVirtualCursorPosition"])})},effects:["trackFormControl"],on:{"VALUE.SET":{actions:["setRawValue"]},"VALUE.CLEAR":{actions:["clearValue"]},"VALUE.INCREMENT":{actions:["increment"]},"VALUE.DECREMENT":{actions:["decrement"]}},states:{idle:{on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","invokeOnFocus","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","invokeOnFocus","setHint","setCursorPoint"]},"INPUT.FOCUS":{target:"focused",actions:["focusInput","invokeOnFocus"]}}},focused:{tags:["focus"],effects:["attachWheelListener"],on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","setHint","setCursorPoint"]},"INPUT.ARROW_UP":{actions:["increment"]},"INPUT.ARROW_DOWN":{actions:["decrement"]},"INPUT.HOME":{actions:["decrementToMin"]},"INPUT.END":{actions:["incrementToMax"]},"INPUT.CHANGE":{actions:["setValue","setHint"]},"INPUT.BLUR":[{guard:Rx("clampValueOnBlur",Ox("isInRange")),target:"idle",actions:["setClampedValue","clearHint","invokeOnBlur","invokeOnValueCommit"]},{guard:Ox("isInRange"),target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnInvalid","invokeOnValueCommit"]},{target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnValueCommit"]}],"INPUT.ENTER":{actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnValueCommit"]}}},"before:spin":{tags:["focus"],effects:["trackButtonDisabled","waitForChangeDelay"],entry:Fz([{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}]),on:{CHANGE_DELAY:{target:"spinning",guard:Rx("isInRange","spinOnPress")},"TRIGGER.PRESS_UP":[{guard:"isTouchPointer",target:"focused",actions:["clearHint"]},{target:"focused",actions:["focusInput","clearHint"]}]}},spinning:{tags:["focus"],effects:["trackButtonDisabled","spinValue"],on:{SPIN:[{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}],"TRIGGER.PRESS_UP":{target:"focused",actions:["focusInput","clearHint"]}}},scrubbing:{tags:["focus"],effects:["activatePointerLock","trackMousemove","setupVirtualCursor","preventTextSelection"],on:{"SCRUBBER.POINTER_UP":{target:"focused",actions:["focusInput","clearCursorPoint"]},"SCRUBBER.POINTER_MOVE":[{guard:"isIncrementHint",actions:["increment","setCursorPoint"]},{guard:"isDecrementHint",actions:["decrement","setCursorPoint"]}]}}},implementations:{guards:{clampValueOnBlur:({prop:e})=>e("clampValueOnBlur"),spinOnPress:({prop:e})=>!!e("spinOnPress"),isInRange:({computed:e})=>!e("isOutOfRange"),isDecrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="decrement",isIncrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="increment",isTouchPointer:({event:e})=>e.pointerType==="touch"},effects:{waitForChangeDelay({send:e}){const t=setTimeout(()=>{e({type:"CHANGE_DELAY"})},300);return()=>clearTimeout(t)},spinValue({send:e}){const t=setInterval(()=>{e({type:"SPIN"})},50);return()=>clearInterval(t)},trackFormControl({context:e,scope:t}){const n=jc(t);return ti(n,{onFieldsetDisabledChange(r){e.set("fieldsetDisabled",r)},onFormReset(){e.set("value",e.initial("value"))}})},setupVirtualCursor({context:e,scope:t}){const n=e.get("scrubberCursorPoint");return Rz(t,n)},preventTextSelection({scope:e}){return Nz(e)},trackButtonDisabled({context:e,scope:t,send:n}){const r=e.get("hint"),i=Oz(t,r);return Hu(i,{attributes:["disabled"],callback(){n({type:"TRIGGER.PRESS_UP",src:"attr"})}})},attachWheelListener({scope:e,send:t,prop:n}){const r=jc(e);if(!r||!e.isActiveElement(r)||!n("allowMouseWheel"))return;function i(a){a.preventDefault();const c=Math.sign(a.deltaY)*-1;c===1?t({type:"VALUE.INCREMENT"}):c===-1&&t({type:"VALUE.DECREMENT"})}return Re(r,"wheel",i,{passive:!1})},activatePointerLock({scope:e}){if(!ei())return YR(e.getDoc())},trackMousemove({scope:e,send:t,context:n,computed:r}){const i=e.getDoc();function a(u){const f=n.get("scrubberCursorPoint"),p=r("isRtl"),h=Az(e,{point:f,isRtl:p,event:u});h.hint&&t({type:"SCRUBBER.POINTER_MOVE",hint:h.hint,point:h.point})}function c(){t({type:"SCRUBBER.POINTER_UP"})}return ss(Re(i,"mousemove",a,!1),Re(i,"mouseup",c,!1))}},actions:{focusInput({scope:e,prop:t}){if(!t("focusInputOnChange"))return;const n=jc(e);e.isActiveElement(n)||de(()=>n?.focus({preventScroll:!0}))},increment({context:e,event:t,prop:n,computed:r}){let i=FO(r("valueAsNumber"),t.step??n("step"));n("allowOverflow")||(i=Bt(i,n("min"),n("max"))),e.set("value",Lo(i,{computed:r,prop:n}))},decrement({context:e,event:t,prop:n,computed:r}){let i=MO(r("valueAsNumber"),t.step??n("step"));n("allowOverflow")||(i=Bt(i,n("min"),n("max"))),e.set("value",Lo(i,{computed:r,prop:n}))},setClampedValue({context:e,prop:t,computed:n}){const r=Bt(n("valueAsNumber"),t("min"),t("max"));e.set("value",Lo(r,{computed:n,prop:t}))},setRawValue({context:e,event:t,prop:n,computed:r}){let i=Vg(t.value,{computed:r,prop:n});n("allowOverflow")||(i=Bt(i,n("min"),n("max"))),e.set("value",Lo(i,{computed:r,prop:n}))},setValue({context:e,event:t}){const n=t.target?.value??t.value;e.set("value",n)},clearValue({context:e}){e.set("value","")},incrementToMax({context:e,prop:t,computed:n}){const r=Lo(t("max"),{computed:n,prop:t});e.set("value",r)},decrementToMin({context:e,prop:t,computed:n}){const r=Lo(t("min"),{computed:n,prop:t});e.set("value",r)},setHint({context:e,event:t}){e.set("hint",t.hint)},clearHint({context:e}){e.set("hint",null)},invokeOnFocus({computed:e,prop:t}){t("onFocusChange")?.({focused:!0,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnBlur({computed:e,prop:t}){t("onFocusChange")?.({focused:!1,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnInvalid({computed:e,prop:t,event:n}){if(n.type==="INPUT.CHANGE")return;const r=e("valueAsNumber")>t("max")?"rangeOverflow":"rangeUnderflow";t("onValueInvalid")?.({reason:r,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnValueCommit({computed:e,prop:t}){t("onValueCommit")?.({value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},syncInputElement({context:e,event:t,computed:n,scope:r}){const i=t.type.endsWith("CHANGE")?e.get("value"):n("formattedValue"),a=jc(r),c=t.selection??_z(a,r);de(()=>{Ko(a,i),Lz(a,c,r)})},setFormattedValue({context:e,computed:t,action:n}){e.set("value",t("formattedValue")),n(["syncInputElement"])},setCursorPoint({context:e,event:t}){e.set("scrubberCursorPoint",t.point)},clearCursorPoint({context:e}){e.set("scrubberCursorPoint",null)},setVirtualCursorPosition({context:e,scope:t}){const n=CE(t),r=e.get("scrubberCursorPoint");!n||!r||(n.style.transform=`translate3d(${r.x}px, ${r.y}px, 0px)`)}}}});he()(["allowMouseWheel","allowOverflow","clampValueOnBlur","dir","disabled","focusInputOnChange","form","formatOptions","getRootNode","id","ids","inputMode","invalid","locale","max","min","name","onFocusChange","onValueChange","onValueCommit","onValueInvalid","pattern","required","readOnly","spinOnPress","step","translations","value","defaultValue"]);var SE=ve("pinInput").parts("root","label","input","control");SE.build();he()(["autoFocus","blurOnComplete","count","defaultValue","dir","disabled","form","getRootNode","id","ids","invalid","mask","name","onValueChange","onValueComplete","onValueInvalid","otp","pattern","placeholder","readOnly","required","selectOnFocus","translations","type","value"]);const[EE,dr]=$e({name:"PopoverContext",hookName:"usePopoverContext",providerName:"<PopoverProvider />"}),kE=k.forwardRef((e,t)=>{const n=dr(),r=q(n.getAnchorProps(),e);return P.jsx(re.div,{...r,ref:t})});kE.displayName="PopoverAnchor";const PE=k.forwardRef((e,t)=>{const n=dr(),r=q(n.getArrowProps(),e);return P.jsx(re.div,{...r,ref:t})});PE.displayName="PopoverArrow";const IE=k.forwardRef((e,t)=>{const n=dr(),r=q(n.getArrowTipProps(),e);return P.jsx(re.div,{...r,ref:t})});IE.displayName="PopoverArrowTip";const Ih=k.forwardRef((e,t)=>{const n=dr(),r=q(n.getCloseTriggerProps(),e);return P.jsx(re.button,{...r,ref:t})});Ih.displayName="PopoverCloseTrigger";const Th=k.forwardRef((e,t)=>{const n=dr(),r=yn(),i=q(n.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:P.jsx(re.div,{...i,ref:cr(r.ref,t)})});Th.displayName="PopoverContent";const TE=k.forwardRef((e,t)=>{const n=dr(),r=q(n.getDescriptionProps(),e);return P.jsx(re.div,{...r,ref:t})});TE.displayName="PopoverDescription";const OE=k.forwardRef((e,t)=>{const n=dr(),r=q(n.getIndicatorProps(),e);return P.jsx(re.div,{...r,ref:t})});OE.displayName="PopoverIndicator";const RE=k.forwardRef((e,t)=>{const n=dr(),r=yn(),i=q(n.getPositionerProps(),e);return r.unmounted?null:P.jsx(re.div,{...i,ref:t})});RE.displayName="PopoverPositioner";var NE=ve("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger"),er=NE.build(),AE=e=>e.ids?.anchor??`popover:${e.id}:anchor`,VE=e=>e.ids?.trigger??`popover:${e.id}:trigger`,up=e=>e.ids?.content??`popover:${e.id}:content`,_E=e=>e.ids?.positioner??`popover:${e.id}:popper`,Wz=e=>e.ids?.arrow??`popover:${e.id}:arrow`,dp=e=>e.ids?.title??`popover:${e.id}:title`,fp=e=>e.ids?.description??`popover:${e.id}:desc`,Hz=e=>e.ids?.closeTrigger??`popover:${e.id}:close`,Nx=e=>e.getById(AE(e)),Di=e=>e.getById(VE(e)),zi=e=>e.getById(up(e)),Ax=e=>e.getById(_E(e)),jz=e=>e.getById(dp(e)),Gz=e=>e.getById(fp(e));function Uz(e,t){const{state:n,context:r,send:i,computed:a,prop:c,scope:u}=e,f=n.matches("open"),p=r.get("currentPlacement"),h=a("currentPortalled"),y=r.get("renderedElements"),b=oh({...c("positioning"),placement:p});return{portalled:h,open:f,setOpen(v){n.matches("open")!==v&&i({type:v?"OPEN":"CLOSE"})},reposition(v={}){i({type:"POSITIONING.SET",options:v})},getArrowProps(){return t.element({id:Wz(u),...er.arrow.attrs,dir:c("dir"),style:b.arrow})},getArrowTipProps(){return t.element({...er.arrowTip.attrs,dir:c("dir"),style:b.arrowTip})},getAnchorProps(){return t.element({...er.anchor.attrs,dir:c("dir"),id:AE(u)})},getTriggerProps(){return t.button({...er.trigger.attrs,dir:c("dir"),type:"button","data-placement":p,id:VE(u),"aria-haspopup":"dialog","aria-expanded":f,"data-state":f?"open":"closed","aria-controls":up(u),onPointerDown(v){Fp(v)&&ei()&&v.currentTarget.focus()},onClick(v){v.defaultPrevented||i({type:"TOGGLE"})},onBlur(v){i({type:"TRIGGER_BLUR",target:v.relatedTarget})}})},getIndicatorProps(){return t.element({...er.indicator.attrs,dir:c("dir"),"data-state":f?"open":"closed"})},getPositionerProps(){return t.element({id:_E(u),...er.positioner.attrs,dir:c("dir"),style:b.floating})},getContentProps(){return t.element({...er.content.attrs,dir:c("dir"),id:up(u),tabIndex:-1,role:"dialog","aria-modal":iw(c("modal")),hidden:!f,"data-state":f?"open":"closed","data-expanded":se(f),"aria-labelledby":y.title?dp(u):void 0,"aria-describedby":y.description?fp(u):void 0,"data-placement":p})},getTitleProps(){return t.element({...er.title.attrs,id:dp(u),dir:c("dir")})},getDescriptionProps(){return t.element({...er.description.attrs,id:fp(u),dir:c("dir")})},getCloseTriggerProps(){return t.button({...er.closeTrigger.attrs,dir:c("dir"),id:Hz(u),type:"button","aria-label":"close",onClick(v){v.defaultPrevented||(v.stopPropagation(),i({type:"CLOSE"}))}})}}}var Kz={props({props:e}){return{closeOnInteractOutside:!0,closeOnEscape:!0,autoFocus:!0,modal:!1,portalled:!0,...e,positioning:{placement:"bottom",...e.positioning}}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e}){return{currentPlacement:e(()=>({defaultValue:void 0})),renderedElements:e(()=>({defaultValue:{title:!0,description:!0}}))}},computed:{currentPortalled:({prop:e})=>!!e("modal")||!!e("portalled")},watch({track:e,prop:t,action:n}){e([()=>t("open")],()=>{n(["toggleVisibility"])})},entry:["checkRenderedElements"],states:{closed:{on:{"CONTROLLED.OPEN":{target:"open",actions:["setInitialFocus"]},TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}]}},open:{effects:["trapFocus","preventScroll","hideContentBelow","trackPositioning","trackDismissableElement","proxyTabFocus"],on:{"CONTROLLED.CLOSE":{target:"closed",actions:["setFinalFocus"]},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose","setFinalFocus"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"POSITIONING.SET":{actions:["reposition"]}}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackPositioning({context:e,prop:t,scope:n}){e.set("currentPlacement",t("positioning").placement);const r=Nx(n)??Di(n);return Un(r,()=>Ax(n),{...t("positioning"),defer:!0,onComplete(a){e.set("currentPlacement",a.placement)}})},trackDismissableElement({send:e,prop:t,scope:n}){const r=()=>zi(n);let i=!0;return ms(r,{type:"popover",pointerBlocking:t("modal"),exclude:Di(n),defer:!0,onEscapeKeyDown(a){t("onEscapeKeyDown")?.(a),!t("closeOnEscape")&&a.preventDefault()},onInteractOutside(a){t("onInteractOutside")?.(a),!a.defaultPrevented&&(i=!(a.detail.focusable||a.detail.contextmenu),t("closeOnInteractOutside")||a.preventDefault())},onPointerDownOutside:t("onPointerDownOutside"),onFocusOutside:t("onFocusOutside"),persistentElements:t("persistentElements"),onRequestDismiss:t("onRequestDismiss"),onDismiss(){e({type:"CLOSE",src:"interact-outside",restoreFocus:i})}})},proxyTabFocus({prop:e,scope:t}){return e("modal")||!e("portalled")?void 0:ZR(()=>zi(t),{triggerElement:Di(t),defer:!0,getShadowRoot:!0,onFocus(r){r.focus({preventScroll:!0})}})},hideContentBelow({prop:e,scope:t}){return e("modal")?yC(()=>[zi(t),Di(t)],{defer:!0}):void 0},preventScroll({prop:e,scope:t}){if(e("modal"))return xC(t.getDoc())},trapFocus({prop:e,scope:t}){return e("modal")?bC(()=>zi(t),{initialFocus:()=>mu({root:zi(t),getInitialEl:e("initialFocusEl"),enabled:e("autoFocus")}),getShadowRoot:!0}):void 0}},actions:{reposition({event:e,prop:t,scope:n,context:r}){const i=Nx(n)??Di(n);Un(i,()=>Ax(n),{...t("positioning"),...e.options,defer:!0,listeners:!1,onComplete(c){r.set("currentPlacement",c.placement)}})},checkRenderedElements({context:e,scope:t}){de(()=>{Object.assign(e.get("renderedElements"),{title:!!jz(t),description:!!Gz(t)})})},setInitialFocus({prop:e,scope:t}){e("modal")||de(()=>{mu({root:zi(t),getInitialEl:e("initialFocusEl"),enabled:e("autoFocus")})?.focus({preventScroll:!0})})},setFinalFocus({event:e,scope:t}){const n=e.restoreFocus??e.previousEvent?.restoreFocus;n!=null&&!n||de(()=>{Di(t)?.focus({preventScroll:!0})})},invokeOnOpen({prop:e,flush:t}){t(()=>{e("onOpenChange")?.({open:!0})})},invokeOnClose({prop:e,flush:t}){t(()=>{e("onOpenChange")?.({open:!1})})},toggleVisibility({event:e,send:t,prop:n}){t({type:n("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}};he()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","portalled","positioning"]);const Yz=e=>{const t=k.useId(),{getRootNode:n}=Ht(),{dir:r}=vn(),i={id:t,dir:r,getRootNode:n,...e},a=Yt(Kz,i);return Uz(a,sn)},LE=e=>{const[t,{children:n,...r}]=ur(e),i=Yz(r),a=An(q({present:i.open},t));return P.jsx(EE,{value:i,children:P.jsx(Kn,{value:a,children:n})})},$E=e=>{const[t,{value:n,children:r}]=ur(e),i=An(q({present:n.open},t));return P.jsx(EE,{value:n,children:P.jsx(Kn,{value:i,children:r})})},DE=k.forwardRef((e,t)=>{const n=dr(),r=q(n.getTitleProps(),e);return P.jsx(re.div,{...r,ref:t})});DE.displayName="PopoverTitle";const zE=k.forwardRef((e,t)=>{const n=dr(),r=yn(),i=q({...n.getTriggerProps(),"aria-controls":r.unmounted?void 0:n.getTriggerProps()["aria-controls"]},e);return P.jsx(re.button,{...i,ref:t})});zE.displayName="PopoverTrigger";var Oh=ve("progress").parts("root","label","track","range","valueText","view","circle","circleTrack","circleRange");Oh.build();he()(["dir","getRootNode","id","ids","max","min","orientation","translations","value","onValueChange","defaultValue","formatOptions","locale"]);var FE=ve("qr-code").parts("root","frame","pattern","overlay","downloadTrigger");FE.build();he()(["ids","defaultValue","value","id","encoding","dir","getRootNode","onValueChange","pixelSize"]);var Rh=ve("radio-group").parts("root","label","item","itemText","itemControl","indicator"),Fi=Rh.build(),Ou=e=>e.ids?.root??`radio-group:${e.id}`,Vx=e=>e.ids?.label??`radio-group:${e.id}:label`,ME=(e,t)=>e.ids?.item?.(t)??`radio-group:${e.id}:radio:${t}`,gp=(e,t)=>e.ids?.itemHiddenInput?.(t)??`radio-group:${e.id}:radio:input:${t}`,Xz=(e,t)=>e.ids?.itemControl?.(t)??`radio-group:${e.id}:radio:control:${t}`,qz=(e,t)=>e.ids?.itemLabel?.(t)??`radio-group:${e.id}:radio:label:${t}`,BE=e=>e.ids?.indicator??`radio-group:${e.id}:indicator`,td=e=>e.getById(Ou(e)),Qz=(e,t)=>e.getById(gp(e,t)),Zz=e=>e.getById(BE(e)),Jz=e=>td(e)?.querySelector("input:not(:disabled)"),eF=e=>td(e)?.querySelector("input:not(:disabled):checked"),_x=e=>{const n=`input[type=radio][data-ownedby='${CSS.escape(Ou(e))}']:not([disabled])`;return Yo(td(e),n)},tF=(e,t)=>{if(t)return e.getById(ME(e,t))},nF=e=>({x:e?.offsetLeft??0,y:e?.offsetTop??0,width:e?.offsetWidth??0,height:e?.offsetHeight??0});function rF(e,t){const{context:n,send:r,computed:i,prop:a,scope:c}=e,u=i("isDisabled"),f=a("invalid"),p=a("readOnly");function h(v){return{value:v.value,invalid:!!v.invalid||!!f,disabled:!!v.disabled||u,checked:n.get("value")===v.value,focused:n.get("focusedValue")===v.value,focusVisible:n.get("focusVisibleValue")===v.value,hovered:n.get("hoveredValue")===v.value,active:n.get("activeValue")===v.value}}function y(v){const w=h(v);return{"data-focus":se(w.focused),"data-focus-visible":se(w.focusVisible),"data-disabled":se(w.disabled),"data-readonly":se(p),"data-state":w.checked?"checked":"unchecked","data-hover":se(w.hovered),"data-invalid":se(w.invalid),"data-orientation":a("orientation"),"data-ssr":se(n.get("ssr"))}}const b=()=>{(eF(c)??Jz(c))?.focus()};return{focus:b,value:n.get("value"),setValue(v){r({type:"SET_VALUE",value:v,isTrusted:!1})},clearValue(){r({type:"SET_VALUE",value:null,isTrusted:!1})},getRootProps(){return t.element({...Fi.root.attrs,role:"radiogroup",id:Ou(c),"aria-labelledby":Vx(c),"aria-required":a("required")||void 0,"aria-disabled":u||void 0,"aria-readonly":p||void 0,"data-orientation":a("orientation"),"data-disabled":se(u),"data-invalid":se(f),"data-required":se(a("required")),"aria-orientation":a("orientation"),dir:a("dir"),style:{position:"relative"}})},getLabelProps(){return t.element({...Fi.label.attrs,dir:a("dir"),"data-orientation":a("orientation"),"data-disabled":se(u),"data-invalid":se(f),"data-required":se(a("required")),id:Vx(c),onClick:b})},getItemState:h,getItemProps(v){const w=h(v);return t.label({...Fi.item.attrs,dir:a("dir"),id:ME(c,v.value),htmlFor:gp(c,v.value),...y(v),onPointerMove(){w.disabled||w.hovered||r({type:"SET_HOVERED",value:v.value,hovered:!0})},onPointerLeave(){w.disabled||r({type:"SET_HOVERED",value:null})},onPointerDown(x){w.disabled||Fp(x)&&(w.focused&&x.pointerType==="mouse"&&x.preventDefault(),r({type:"SET_ACTIVE",value:v.value,active:!0}))},onPointerUp(){w.disabled||r({type:"SET_ACTIVE",value:null})},onClick(){!w.disabled&&ei()&&Qz(c,v.value)?.focus()}})},getItemTextProps(v){return t.element({...Fi.itemText.attrs,dir:a("dir"),id:qz(c,v.value),...y(v)})},getItemControlProps(v){const w=h(v);return t.element({...Fi.itemControl.attrs,dir:a("dir"),id:Xz(c,v.value),"data-active":se(w.active),"aria-hidden":!0,...y(v)})},getItemHiddenInputProps(v){const w=h(v);return t.input({"data-ownedby":Ou(c),id:gp(c,v.value),type:"radio",name:a("name")||a("id"),form:a("form"),value:v.value,required:a("required"),"aria-invalid":w.invalid||void 0,onClick(x){if(p){x.preventDefault();return}x.currentTarget.checked&&r({type:"SET_VALUE",value:v.value,isTrusted:!0})},onBlur(){r({type:"SET_FOCUSED",value:null,focused:!1,focusVisible:!1})},onFocus(){const x=ls();r({type:"SET_FOCUSED",value:v.value,focused:!0,focusVisible:x})},onKeyDown(x){x.defaultPrevented||x.key===" "&&r({type:"SET_ACTIVE",value:v.value,active:!0})},onKeyUp(x){x.defaultPrevented||x.key===" "&&r({type:"SET_ACTIVE",value:null})},disabled:w.disabled||p,defaultChecked:w.checked,style:Kp})},getIndicatorProps(){const v=n.get("indicatorRect"),w=v==null||v.width===0&&v.height===0&&v.x===0&&v.y===0;return t.element({id:BE(c),...Fi.indicator.attrs,dir:a("dir"),hidden:n.get("value")==null||w,"data-disabled":se(u),"data-orientation":a("orientation"),style:{"--transition-property":"left, top, width, height","--left":it(v?.x),"--top":it(v?.y),"--width":it(v?.width),"--height":it(v?.height),position:"absolute",willChange:"var(--transition-property)",transitionProperty:"var(--transition-property)",transitionDuration:"var(--transition-duration, 150ms)",transitionTimingFunction:"var(--transition-timing-function)",[a("orientation")==="horizontal"?"left":"top"]:a("orientation")==="horizontal"?"var(--left)":"var(--top)"}})}}}var{not:oF}=Nn(),iF={props({props:e}){return{orientation:"vertical",...e}},initialState(){return"idle"},context({prop:e,bindable:t}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(n){e("onValueChange")?.({value:n})}})),activeValue:t(()=>({defaultValue:null})),focusedValue:t(()=>({defaultValue:null})),focusVisibleValue:t(()=>({defaultValue:null})),hoveredValue:t(()=>({defaultValue:null})),indicatorRect:t(()=>({defaultValue:null})),fieldsetDisabled:t(()=>({defaultValue:!1})),ssr:t(()=>({defaultValue:!0}))}},refs(){return{indicatorCleanup:null,focusVisibleValue:null}},computed:{isDisabled:({prop:e,context:t})=>!!e("disabled")||t.get("fieldsetDisabled")},entry:["syncIndicatorRect","syncSsr"],exit:["cleanupObserver"],effects:["trackFormControlState","trackFocusVisible"],watch({track:e,action:t,context:n}){e([()=>n.get("value")],()=>{t(["syncIndicatorRect","syncInputElements"])})},on:{SET_VALUE:[{guard:oF("isTrusted"),actions:["setValue","dispatchChangeEvent"]},{actions:["setValue"]}],SET_HOVERED:{actions:["setHovered"]},SET_ACTIVE:{actions:["setActive"]},SET_FOCUSED:{actions:["setFocused"]}},states:{idle:{}},implementations:{guards:{isTrusted:({event:e})=>!!e.isTrusted},effects:{trackFormControlState({context:e,scope:t}){return ti(td(t),{onFieldsetDisabledChange(n){e.set("fieldsetDisabled",n)},onFormReset(){e.set("value",e.initial("value"))}})},trackFocusVisible({scope:e}){return al({root:e.getRootNode?.()})}},actions:{setValue({context:e,event:t}){e.set("value",t.value)},setHovered({context:e,event:t}){e.set("hoveredValue",t.value)},setActive({context:e,event:t}){e.set("activeValue",t.value)},setFocused({context:e,event:t}){e.set("focusedValue",t.value);const n=t.value!=null&&t.focusVisible?t.value:null;e.set("focusVisibleValue",n)},syncInputElements({context:e,scope:t}){_x(t).forEach(r=>{r.checked=r.value===e.get("value")})},cleanupObserver({refs:e}){e.get("indicatorCleanup")?.()},syncSsr({context:e}){e.set("ssr",!1)},syncIndicatorRect({context:e,scope:t,refs:n}){if(n.get("indicatorCleanup")?.(),!Zz(t))return;const r=e.get("value"),i=tF(t,r);if(r==null||!i){e.set("indicatorRect",null);return}const a=()=>{e.set("indicatorRect",nF(i))};a();const c=Iw.observe(i,a);n.set("indicatorCleanup",c)},dispatchChangeEvent({context:e,scope:t}){_x(t).forEach(r=>{const i=r.value===e.get("value");i!==r.checked&&Bp(r,{checked:i})})}}}};he()(["dir","disabled","form","getRootNode","id","ids","invalid","name","onValueChange","orientation","readOnly","required","value","defaultValue"]);he()(["value","disabled","invalid"]);var WE=ve("rating-group").parts("root","label","item","control");WE.build();he()(["allowHalf","autoFocus","count","dir","disabled","form","getRootNode","id","ids","name","onHoverChange","onValueChange","required","readOnly","translations","value","defaultValue"]);he()(["index"]);const[HE,dl]=$e({name:"ScrollAreaContext",hookName:"useScrollAreaContext",providerName:"<ScrollAreaProvider />"}),jE=k.forwardRef((e,t)=>{const n=dl(),r=q(n.getContentProps(),e);return P.jsx(re.div,{...r,ref:t})});jE.displayName="ScrollAreaContent";const GE=k.forwardRef((e,t)=>{const n=dl(),r=q(n.getCornerProps(),e);return P.jsx(re.div,{...r,ref:t})});GE.displayName="ScrollAreaCorner";var sF=Object.defineProperty,aF=(e,t,n)=>t in e?sF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_g=(e,t,n)=>aF(e,typeof t!="symbol"?t+"":t,n),UE=ve("scroll-area").parts("root","viewport","content","scrollbar","thumb","corner"),Mi=UE.build(),Bn=e=>e.ids?.root??`scroll-area-${e.id}`,KE=e=>e.ids?.viewport??`scroll-area-${e.id}:viewport`,YE=e=>e.ids?.content??`scroll-area-${e.id}:content`,nd=e=>e.getById(Bn(e)),tr=e=>e.getById(KE(e)),lF=e=>e.getById(YE(e)),Ma=e=>gs(nd(e),`[data-part=scrollbar][data-orientation=horizontal][data-ownedby="${Bn(e)}"]`),Ba=e=>gs(nd(e),`[data-part=scrollbar][data-orientation=vertical][data-ownedby="${Bn(e)}"]`),Lg=e=>gs(Ma(e),`[data-part=thumb][data-orientation=horizontal][data-ownedby="${Bn(e)}"]`),$g=e=>gs(Ba(e),`[data-part=thumb][data-orientation=vertical][data-ownedby="${Bn(e)}"]`),cF=e=>gs(nd(e),`[data-part=corner][data-ownedby="${Bn(e)}"]`);function uF(e,t){if(!e)return dF;let n=0,r=0;const i=e.scrollWidth-e.clientWidth;i>t&&(n=Math.min(1,Math.max(0,e.scrollLeft/i)));const a=e.scrollHeight-e.clientHeight;return a>t&&(r=Math.min(1,Math.max(0,e.scrollTop/a))),{x:n,y:r}}var dF={x:0,y:0},fF=300,gF=e=>e*(2-e);function XE(e,t={}){const{top:n,left:r,duration:i=fF,easing:a=gF,onComplete:c}=t;if(!e)return;const u={startTime:0,startScrollTop:e.scrollTop,startScrollLeft:e.scrollLeft,targetScrollTop:n??e.scrollTop,targetScrollLeft:r??e.scrollLeft};let f=!1;const p=()=>{u.rafId&&(cancelAnimationFrame(u.rafId),u.rafId=void 0),f=!0},h=y=>{if(f)return;u.startTime===0&&(u.startTime=y);const b=y-u.startTime,v=Math.min(b/i,1),w=a(v),x=u.targetScrollTop-u.startScrollTop,E=u.targetScrollLeft-u.startScrollLeft;e.scrollTop=u.startScrollTop+x*w,e.scrollLeft=u.startScrollLeft+E*w,v<1?u.rafId=requestAnimationFrame(h):c?.()};return u.rafId=requestAnimationFrame(h),p}function pF(e,t={}){if(!e)return;const{top:n,left:r,behavior:i="smooth",easing:a,duration:c}=t;if(i==="smooth")XE(e,{top:n,left:r,easing:a,duration:c});else{const u=ds({behavior:i,top:n,left:r});e.scrollTo(u)}}function hF(e,t,n,r="smooth",i,a){if(!e)return;const c=e.scrollWidth-e.clientWidth,u=e.scrollHeight-e.clientHeight,f=n==="rtl";let p,h;switch(t){case"top":p=0;break;case"bottom":p=u;break;case"left":f?h=e.scrollLeft<=0?-c:0:h=0;break;case"right":f?h=e.scrollLeft<=0?0:c:h=c;break}if(r==="smooth")XE(e,{top:p,left:h,easing:i,duration:a});else{const y=ds({left:h,top:p,behavior:r});e.scrollTo(y)}}function mF(e,t){const{state:n,send:r,context:i,prop:a,scope:c}=e,u=n.matches("dragging"),f=i.get("hovering"),p=i.get("cornerSize"),h=i.get("thumbSize"),y=i.get("hiddenState"),b=i.get("atSides");return{isAtTop:b.top,isAtBottom:b.bottom,isAtLeft:b.left,isAtRight:b.right,hasOverflowX:!y.scrollbarXHidden,hasOverflowY:!y.scrollbarYHidden,getScrollProgress(){return uF(tr(c),0)},scrollToEdge(v){const{edge:w,behavior:x}=v;return hF(tr(c),w,a("dir"),x)},scrollTo(v){return pF(tr(c),v)},getScrollbarState(v){const w=v.orientation==="horizontal";return{hovering:f,dragging:u,scrolling:i.get(w?"scrollingX":"scrollingY"),hidden:w?y.scrollbarXHidden:y.scrollbarYHidden}},getRootProps(){return t.element({...Mi.root.attrs,id:Bn(c),dir:a("dir"),role:"presentation","data-overflow-x":se(!y.scrollbarXHidden),"data-overflow-y":se(!y.scrollbarYHidden),onPointerEnter(v){const w=at(v);Hn(v.currentTarget,w)&&r({type:"root.pointerenter",pointerType:v.pointerType})},onPointerMove(v){const w=at(v);Hn(v.currentTarget,w)&&r({type:"root.pointerenter",pointerType:v.pointerType})},onPointerDown({pointerType:v}){r({type:"root.pointerdown",pointerType:v})},onPointerLeave(v){Hn(v.currentTarget,v.relatedTarget)||r({type:"root.pointerleave"})},style:{position:"relative","--corner-width":it(p?.width),"--corner-height":it(p?.height),"--thumb-width":it(h?.width),"--thumb-height":it(h?.height)}})},getViewportProps(){const v=()=>{r({type:"user.scroll"})};return t.element({...Mi.viewport.attrs,role:"presentation","data-ownedby":Bn(c),id:KE(c),"data-at-top":se(b.top),"data-at-bottom":se(b.bottom),"data-at-left":se(b.left),"data-at-right":se(b.right),"data-overflow-x":se(!y.scrollbarXHidden),"data-overflow-y":se(!y.scrollbarYHidden),tabIndex:y.scrollbarXHidden||y.scrollbarYHidden?void 0:0,style:{overflow:"auto"},onScroll(w){r({type:"viewport.scroll",target:w.currentTarget})},onWheel:v,onTouchMove:v,onPointerMove:v,onPointerEnter:v,onKeyDown:v})},getContentProps(){return t.element({...Mi.content.attrs,id:YE(c),role:"presentation","data-overflow-x":se(!y.scrollbarXHidden),"data-overflow-y":se(!y.scrollbarYHidden),style:{minWidth:"fit-content"}})},getScrollbarProps(v={}){const{orientation:w="vertical"}=v;return t.element({...Mi.scrollbar.attrs,"data-ownedby":Bn(c),"data-orientation":w,"data-scrolling":se(i.get(w==="horizontal"?"scrollingX":"scrollingY")),"data-hover":se(f),"data-dragging":se(u),"data-overflow-x":se(!y.scrollbarXHidden),"data-overflow-y":se(!y.scrollbarYHidden),onPointerUp(){r({type:"scrollbar.pointerup",orientation:w})},onPointerDown(x){if(x.button!==0||x.currentTarget!==x.target)return;const E=Qa(x);r({type:"scrollbar.pointerdown",orientation:w,point:E}),x.stopPropagation()},style:{position:"absolute",touchAction:"none",WebkitUserSelect:"none",userSelect:"none",...w==="vertical"&&{top:0,bottom:"var(--corner-height)",insetInlineEnd:0},...w==="horizontal"&&{insetInlineStart:0,insetInlineEnd:"var(--corner-width)",bottom:0}}})},getThumbProps(v={}){const{orientation:w="vertical"}=v;return t.element({...Mi.thumb.attrs,"data-ownedby":Bn(c),"data-orientation":w,"data-hover":se(f),"data-dragging":se(u),onPointerDown(x){if(x.button!==0)return;const E=Qa(x);r({type:"thumb.pointerdown",orientation:w,point:E})},style:{...w==="vertical"&&{height:"var(--thumb-height)"},...w==="horizontal"&&{width:"var(--thumb-width)"}}})},getCornerProps(){return t.element({...Mi.corner.attrs,"data-ownedby":Bn(c),"data-hover":se(f),"data-state":y.cornerHidden?"hidden":"visible","data-overflow-x":se(!y.scrollbarXHidden),"data-overflow-y":se(!y.scrollbarYHidden),style:{position:"absolute",bottom:0,insetInlineEnd:0,width:"var(--corner-width)",height:"var(--corner-height)"}})}}}function In(e,t,n){if(!e)return 0;const r=Ar(e),i=n==="x"?"Inline":"Block";return n==="x"&&t==="margin"?parseFloat(r[`${t}InlineStart`])*2:parseFloat(r[`${t}${i}Start`])+parseFloat(r[`${t}${i}End`])}function Lx(e,t){const n=e.scrollTop,r=e.scrollLeft,i=t==="rtl",a=1,c=e.scrollHeight-e.clientHeight>a,u=e.scrollWidth-e.clientWidth>a,f=e.scrollWidth-e.clientWidth,p=e.scrollHeight-e.clientHeight;let h=!1,y=!1,b=!1,v=!1;return u&&(i&&r<=0?(h=Math.abs(r)>=f-a,y=Math.abs(r)<=a):(h=r<=a,y=r>=f-a)),c&&(b=n<=a,v=n>=p-a),{top:b,right:y,bottom:v,left:h}}var Pa=0,Dg=class{constructor(){_g(this,"currentId",Pa),_g(this,"clear",()=>{this.currentId!==Pa&&(clearTimeout(this.currentId),this.currentId=Pa)}),_g(this,"disposeEffect",()=>this.clear)}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Pa,t()},e)}isStarted(){return this.currentId!==Pa}},$x=20,Gc=1e3,vF={props({props:e}){return rw(e,["id"]),e},context({bindable:e}){return{scrollingX:e(()=>({defaultValue:!1})),scrollingY:e(()=>({defaultValue:!1})),hovering:e(()=>({defaultValue:!1})),dragging:e(()=>({defaultValue:!1})),touchModality:e(()=>({defaultValue:!1})),atSides:e(()=>({defaultValue:{top:!0,right:!1,bottom:!1,left:!0}})),cornerSize:e(()=>({defaultValue:{width:0,height:0}})),thumbSize:e(()=>({defaultValue:{width:0,height:0}})),hiddenState:e(()=>({defaultValue:{scrollbarYHidden:!1,scrollbarXHidden:!1,cornerHidden:!1},hash(t){return`Y:${t.scrollbarYHidden} X:${t.scrollbarXHidden} C:${t.cornerHidden}`}}))}},refs(){return{orientation:"vertical",scrollPosition:{x:0,y:0},scrollYTimeout:new Dg,scrollXTimeout:new Dg,scrollEndTimeout:new Dg,startX:0,startY:0,startScrollTop:0,startScrollLeft:0,programmaticScroll:!0}},initialState(){return"idle"},watch({track:e,prop:t,context:n,send:r}){e([()=>t("dir"),()=>n.hash("hiddenState")],()=>{r({type:"thumb.measure"})})},effects:["trackContentResize","trackViewportVisibility","trackWheelEvent"],entry:["checkHovering"],exit:["clearTimeouts"],on:{"thumb.measure":{actions:["setThumbSize"]},"viewport.scroll":{actions:["setThumbSize","setScrolling","setProgrammaticScroll"]},"root.pointerenter":{actions:["setTouchModality","setHovering"]},"root.pointerdown":{actions:["setTouchModality"]},"root.pointerleave":{actions:["clearHovering"]}},states:{idle:{on:{"scrollbar.pointerdown":{target:"dragging",actions:["scrollToPointer","startDragging"]},"thumb.pointerdown":{target:"dragging",actions:["startDragging"]}}},dragging:{effects:["trackPointerMove"],on:{"thumb.pointermove":{actions:["setDraggingScroll"]},"scrollbar.pointerup":{target:"idle",actions:["stopDragging"]},"thumb.pointerup":{target:"idle",actions:["clearScrolling","stopDragging"]}}}},implementations:{actions:{setTouchModality({context:e,event:t}){e.set("touchModality",t.pointerType==="touch")},setHovering({context:e}){e.set("hovering",!0)},clearHovering({context:e}){e.set("hovering",!1)},setProgrammaticScroll({refs:e}){e.get("scrollEndTimeout").start(100,()=>{e.set("programmaticScroll",!0)})},clearScrolling({context:e,event:t}){e.set(t.orientation==="vertical"?"scrollingY":"scrollingX",!1)},setThumbSize({context:e,scope:t,prop:n}){const r=tr(t);if(!r)return;const i=r.scrollHeight,a=r.scrollWidth;if(i===0||a===0)return;const c=Ba(t),u=Ma(t),f=$g(t),p=Lg(t),h=r.clientHeight,y=r.clientWidth,b=r.scrollTop,v=r.scrollLeft,w=h>=i,x=y>=a,E=y/a,O=h/i,N=x?0:y,R=w?0:h,S=In(u,"padding","x"),T=In(c,"padding","y"),L=In(p,"margin","x"),M=In(f,"margin","y"),B=N-S-L,j=R-T-M,W=u?Math.min(u.offsetWidth,B):B,U=c?Math.min(c.offsetHeight,j):j,$=Math.max($x,W*E),H=Math.max($x,U*O);if(e.set("thumbSize",ne=>ne.height===H&&ne.width===$?ne:{width:$,height:H}),c&&f){const ne=c.offsetHeight-H-T-M,ce=b/(i-h),me=Math.min(ne,Math.max(0,ce*ne));f.style.transform=`translate3d(0,${me}px,0)`}if(u&&p){const ne=u.offsetWidth-$-S-L,ce=v/(a-y),me=n("dir")==="rtl"?Bt(ce*ne,-ne,0):Bt(ce*ne,0,ne);p.style.transform=`translate3d(${me}px,0,0)`}if(cF(t)){if(x||w)e.set("cornerSize",{width:0,height:0});else if(!x&&!w){const ne=c?.offsetWidth||0,ce=u?.offsetHeight||0;e.set("cornerSize",{width:ne,height:ce})}}e.set("hiddenState",ne=>{const ce=w||x;return ne.scrollbarYHidden===w&&ne.scrollbarXHidden===x&&ne.cornerHidden===ce?ne:{scrollbarYHidden:w,scrollbarXHidden:x,cornerHidden:ce}}),e.set("atSides",ne=>{const ce=Lx(r,n("dir"));return Wt(ne,ce)?ne:ce})},checkHovering({scope:e,context:t}){tr(e)?.matches(":hover")&&t.set("hovering",!0)},setScrolling({event:e,refs:t,context:n,prop:r}){const i={x:e.target.scrollLeft,y:e.target.scrollTop},a=t.get("scrollPosition"),c=i.x-a.x,u=i.y-a.y;t.set("scrollPosition",i),n.set("atSides",f=>{const p=Lx(e.target,r("dir"));return Wt(f,p)?f:p}),u!==0&&(n.set("scrollingY",!0),t.get("scrollYTimeout").start(Gc,()=>{n.set("scrollingY",!1)})),c!==0&&(n.set("scrollingX",!0),t.get("scrollXTimeout").start(Gc,()=>{n.set("scrollingX",!1)}))},scrollToPointer({event:e,scope:t,prop:n}){const r=tr(t);if(!r)return;const i=$g(t),a=Ba(t),c=Lg(t),u=Ma(t),f=e.point;if(i&&a&&e.orientation==="vertical"){const p=In(i,"margin","y"),h=In(a,"padding","y"),y=i.offsetHeight,b=a.getBoundingClientRect(),v=f.y-b.top-y/2-h+p/2,w=r.scrollHeight,x=r.clientHeight,E=a.offsetHeight-y-h-p,N=v/E*(w-x);r.scrollTop=N}if(c&&u&&e.orientation==="horizontal"){const p=In(c,"margin","x"),h=In(u,"padding","x"),y=c.offsetWidth,b=u.getBoundingClientRect(),v=f.x-b.left-y/2-h+p/2,w=r.scrollWidth,x=r.clientWidth,E=u.offsetWidth-y-h-p,O=v/E;let N;n("dir")==="rtl"?(N=(1-O)*(w-x),r.scrollLeft<=0&&(N=-N)):N=O*(w-x),r.scrollLeft=N}},startDragging({event:e,refs:t,scope:n}){t.set("startX",e.point.x),t.set("startY",e.point.y),t.set("orientation",e.orientation);const r=tr(n);r&&(t.set("startScrollTop",r.scrollTop),t.set("startScrollLeft",r.scrollLeft))},setDraggingScroll({event:e,refs:t,scope:n,context:r}){const i=t.get("startY"),a=t.get("startX"),c=t.get("startScrollTop"),u=t.get("startScrollLeft"),f=e.point,p=f.y-i,h=f.x-a,y=tr(n);if(!y)return;const b=y.scrollHeight,v=y.clientHeight,w=y.scrollWidth,x=y.clientWidth,E=t.get("orientation"),O=$g(n),N=Ba(n);if(O&&N&&E==="vertical"){const T=In(N,"padding","y"),L=In(O,"margin","y"),M=O.offsetHeight,B=N.offsetHeight-M-T-L,j=p/B;y.scrollTop=c+j*(b-v),r.set("scrollingY",!0),t.get("scrollYTimeout").start(Gc,()=>{r.set("scrollingY",!1)})}const R=Lg(n),S=Ma(n);if(R&&S&&E==="horizontal"){const T=In(S,"padding","x"),L=In(R,"margin","x"),M=R.offsetWidth,B=S.offsetWidth-M-T-L,j=h/B;y.scrollLeft=u+j*(w-x),r.set("scrollingX",!0),t.get("scrollXTimeout").start(Gc,()=>{r.set("scrollingX",!1)})}},stopDragging({refs:e}){e.set("orientation",null)},clearTimeouts({refs:e}){e.get("scrollYTimeout").clear(),e.get("scrollXTimeout").clear(),e.get("scrollEndTimeout").clear()}},effects:{trackContentResize({scope:e,send:t}){const n=lF(e),r=nd(e);if(!n||!r)return;const i=e.getWin(),a=new i.ResizeObserver(()=>{setTimeout(()=>{t({type:"thumb.measure"})},1)});return a.observe(n),a.observe(r),()=>{a.disconnect()}},trackViewportVisibility({scope:e,send:t}){const n=e.getWin(),r=tr(e);if(!r)return;const i=new n.IntersectionObserver(a=>{a.forEach(c=>{c.intersectionRatio>0&&(t({type:"thumb.measure"}),i.disconnect())})});return i.observe(r),()=>{i.disconnect()}},trackWheelEvent({scope:e}){const t=Ba(e),n=Ma(e);if(!t&&!n)return;const r=i=>{const a=tr(e);if(!a||i.ctrlKey)return;const c=i.currentTarget.dataset.orientation;if(c==="vertical"){const u=a.scrollHeight>a.clientHeight,f=a.scrollTop===0&&i.deltaY<0,p=a.scrollTop===a.scrollHeight-a.clientHeight&&i.deltaY>0;if(!(u&&i.deltaY!==0&&!(f||p)))return;i.preventDefault(),a.scrollTop+=i.deltaY}else if(c==="horizontal"){const u=a.scrollWidth>a.clientWidth,f=a.scrollLeft===0&&i.deltaX<0,p=a.scrollLeft===a.scrollWidth-a.clientWidth&&i.deltaX>0;if(!(u&&i.deltaX!==0&&!(f||p)))return;i.preventDefault(),a.scrollLeft+=i.deltaX}};return ss(t&&Re(t,"wheel",r,{passive:!1}),n&&Re(n,"wheel",r,{passive:!1}))},trackPointerMove({scope:e,send:t,refs:n}){const r=e.getDoc(),i=n.get("orientation");return Ew(r,{onPointerMove({point:a}){t({type:"thumb.pointermove",orientation:i,point:a})},onPointerUp(){t({type:"thumb.pointerup",orientation:i})}})}}}};he()(["dir","getRootNode","ids","id"]);const yF=e=>{const t=k.useId(),{getRootNode:n}=Ht(),{dir:r}=vn(),i={id:t,dir:r,getRootNode:n,...e},a=Yt(vF,i);return mF(a,sn)},bF=ze(),qE=k.forwardRef((e,t)=>{const[n,r]=bF(e,["id","ids"]),i=yF(n),a=q(i.getRootProps(),r);return P.jsx(HE,{value:i,children:P.jsx(re.div,{...a,ref:t})})});qE.displayName="ScrollAreaRoot";const xF=ze(),QE=k.forwardRef((e,t)=>{const[{value:n},r]=xF(e,["value"]),i=q(n.getRootProps(),r);return P.jsx(HE,{value:n,children:P.jsx(re.div,{...i,ref:t})})});QE.displayName="ScrollAreaRootProvider";const[wF,CF]=$e({name:"ScrollAreaScrollbarContext",hookName:"useScrollAreaScrollbarContext",providerName:"<ScrollAreaScrollbarProvider />"}),SF=ze(),ZE=k.forwardRef((e,t)=>{const[n,r]=SF(e,["orientation"]),i=dl(),a=q(i.getScrollbarProps(n),r);return P.jsx(wF,{value:n,children:P.jsx(re.div,{...a,ref:t})})});ZE.displayName="ScrollAreaScrollbar";const JE=k.forwardRef((e,t)=>{const n=dl(),r=CF(),i=q(n.getThumbProps(r),e);return P.jsx(re.div,{...i,ref:t})});JE.displayName="ScrollAreaThumb";const e1=k.forwardRef((e,t)=>{const n=dl(),r=q(n.getViewportProps(),e);return P.jsx(re.div,{...r,ref:t})});e1.displayName="ScrollAreaViewport";const[t1,rd]=$e({name:"SegmentGroupContext",hookName:"useSegmentGroupContext",providerName:"<SegmentGroupProvider />"}),n1=Rh.rename("segment-group"),fl=n1.build(),r1=k.forwardRef((e,t)=>{const n=rd(),r=q(n.getIndicatorProps(),fl.indicator.attrs,e);return P.jsx(re.div,{...r,ref:t})});r1.displayName="SegmentGroupIndicator";const[EF]=$e({name:"SegmentGroupItemContext",hookName:"useSegmentGroupItemContext",providerName:"<SegmentGroupItemProvider />"}),[kF,o1]=$e({name:"SegmentGroupItemPropsContext",hookName:"useSegmentGroupItemPropsContext",providerName:"<SegmentGroupItemPropsProvider />"}),PF=ze(),i1=k.forwardRef((e,t)=>{const[n,r]=PF(e,["value","disabled","invalid"]),i=rd(),a=q(i.getItemProps(n),fl.item.attrs,r),c=i.getItemState(n);return P.jsx(kF,{value:n,children:P.jsx(EF,{value:c,children:P.jsx(re.label,{...a,ref:t})})})});i1.displayName="SegmentGroupItem";const s1=k.forwardRef((e,t)=>{const n=rd(),r=o1(),i=q(n.getItemHiddenInputProps(r),e);return P.jsx(re.input,{...i,ref:t})});s1.displayName="SegmentGroupItemHiddenInput";const a1=k.forwardRef((e,t)=>{const n=rd(),r=o1(),i=q(n.getItemTextProps(r),fl.itemText.attrs,e);return P.jsx(re.span,{...i,ref:t})});a1.displayName="SegmentGroupItemText";const IF=e=>{const t=k.useId(),{getRootNode:n}=Ht(),{dir:r}=vn(),i={id:t,dir:r,getRootNode:n,...e},a=Yt(iF,i);return rF(a,sn)},TF=ze(),l1=k.forwardRef((e,t)=>{const[n,r]=TF(e,["defaultValue","disabled","form","id","ids","invalid","name","onValueChange","orientation","readOnly","required","value"]),i=IF(n),a=q(i.getRootProps(),fl.root.attrs,r);return P.jsx(t1,{value:i,children:P.jsx(re.div,{...a,ref:t})})});l1.displayName="SegmentGroupRoot";const OF=ze(),c1=k.forwardRef((e,t)=>{const[{value:n},r]=OF(e,["value"]),i=q(n.getRootProps(),fl.root.attrs,r);return P.jsx(t1,{value:n,children:P.jsx(re.div,{...i,ref:t})})});c1.displayName="SegmentGroupRootProvider";var u1=ve("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText");u1.build();var d1=e=>new bs(e);d1.empty=()=>new bs({items:[]});var RF=e=>e.ids?.content??`select:${e.id}:content`,NF=e=>e.ids?.trigger??`select:${e.id}:trigger`,AF=e=>e.ids?.clearTrigger??`select:${e.id}:clear-trigger`,VF=(e,t)=>e.ids?.item?.(t)??`select:${e.id}:option:${t}`,_F=e=>e.ids?.hiddenSelect??`select:${e.id}:select`,LF=e=>e.ids?.positioner??`select:${e.id}:positioner`,zg=e=>e.getById(_F(e)),Ia=e=>e.getById(RF(e)),Uc=e=>e.getById(NF(e)),$F=e=>e.getById(AF(e)),Dx=e=>e.getById(LF(e)),Fg=(e,t)=>t==null?null:e.getById(VF(e,t)),{and:Ta,not:$o,or:DF}=Nn();DF("isTriggerArrowDownEvent","isTriggerEnterEvent"),Ta($o("multiple"),"hasSelectedItems"),$o("multiple"),Ta($o("multiple"),"hasSelectedItems"),$o("multiple"),$o("multiple"),$o("multiple"),$o("multiple"),Ta("closeOnSelect","isOpenControlled"),Ta("hasHighlightedItem","loop","isLastItemHighlighted"),Ta("hasHighlightedItem","loop","isFirstItemHighlighted");function zx(e){const t=e.restoreFocus??e.previousEvent?.restoreFocus;return t==null||!!t}he()(["closeOnSelect","collection","composite","defaultHighlightedValue","defaultOpen","defaultValue","deselectable","dir","disabled","form","getRootNode","highlightedValue","id","ids","invalid","loopFocus","multiple","name","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","positioning","readOnly","required","scrollToIndexFn","value"]);he()(["item","persistFocus"]);he()(["id"]);he()(["htmlFor"]);var f1=ve("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker","draggingIndicator");f1.build();he()(["aria-label","aria-labelledby","dir","disabled","form","getAriaValueText","getRootNode","id","ids","invalid","max","min","minStepsBetweenThumbs","name","onFocusChange","onValueChange","onValueChangeEnd","orientation","origin","readOnly","step","thumbAlignment","thumbAlignment","thumbSize","value","defaultValue"]);he()(["index","name"]);he()(["value"]);const[g1,ws]=$e({name:"SwitchContext",hookName:"useSwitchContext",providerName:"<SwitchProvider />"}),p1=k.forwardRef((e,t)=>{const n=ws(),r=q(n.getControlProps(),e);return P.jsx(re.span,{...r,ref:t})});p1.displayName="SwitchControl";const h1=k.forwardRef((e,t)=>{const n=ws(),r=q(n.getHiddenInputProps(),e),i=Vn();return P.jsx(re.input,{"aria-describedby":i?.ariaDescribedby,...r,ref:t})});h1.displayName="SwitchHiddenInput";const m1=k.forwardRef((e,t)=>{const n=ws(),r=q(n.getLabelProps(),e);return P.jsx(re.span,{...r,ref:t})});m1.displayName="SwitchLabel";var v1=ve("switch").parts("root","label","control","thumb"),Kc=v1.build(),y1=e=>e.ids?.root??`switch:${e.id}`,Fx=e=>e.ids?.label??`switch:${e.id}:label`,zF=e=>e.ids?.thumb??`switch:${e.id}:thumb`,FF=e=>e.ids?.control??`switch:${e.id}:control`,pp=e=>e.ids?.hiddenInput??`switch:${e.id}:input`,MF=e=>e.getById(y1(e)),qi=e=>e.getById(pp(e));function BF(e,t){const{context:n,send:r,prop:i,scope:a}=e,c=!!i("disabled"),u=!!i("readOnly"),f=!!i("required"),p=!!n.get("checked"),h=!c&&n.get("focused"),y=!c&&n.get("focusVisible"),b=!c&&n.get("active"),v={"data-active":se(b),"data-focus":se(h),"data-focus-visible":se(y),"data-readonly":se(u),"data-hover":se(n.get("hovered")),"data-disabled":se(c),"data-state":p?"checked":"unchecked","data-invalid":se(i("invalid")),"data-required":se(f)};return{checked:p,disabled:c,focused:h,setChecked(w){r({type:"CHECKED.SET",checked:w,isTrusted:!1})},toggleChecked(){r({type:"CHECKED.TOGGLE",checked:p,isTrusted:!1})},getRootProps(){return t.label({...Kc.root.attrs,...v,dir:i("dir"),id:y1(a),htmlFor:pp(a),onPointerMove(){c||r({type:"CONTEXT.SET",context:{hovered:!0}})},onPointerLeave(){c||r({type:"CONTEXT.SET",context:{hovered:!1}})},onClick(w){if(c)return;at(w)===qi(a)&&w.stopPropagation(),ei()&&qi(a)?.focus()}})},getLabelProps(){return t.element({...Kc.label.attrs,...v,dir:i("dir"),id:Fx(a)})},getThumbProps(){return t.element({...Kc.thumb.attrs,...v,dir:i("dir"),id:zF(a),"aria-hidden":!0})},getControlProps(){return t.element({...Kc.control.attrs,...v,dir:i("dir"),id:FF(a),"aria-hidden":!0})},getHiddenInputProps(){return t.input({id:pp(a),type:"checkbox",required:i("required"),defaultChecked:p,disabled:c,"aria-labelledby":Fx(a),"aria-invalid":i("invalid"),name:i("name"),form:i("form"),value:i("value"),style:Kp,onFocus(){const w=ls();r({type:"CONTEXT.SET",context:{focused:!0,focusVisible:w}})},onBlur(){r({type:"CONTEXT.SET",context:{focused:!1,focusVisible:!1}})},onClick(w){if(u){w.preventDefault();return}const x=w.currentTarget.checked;r({type:"CHECKED.SET",checked:x,isTrusted:!0})}})}}}var{not:Mx}=Nn(),WF={props({props:e}){return{defaultChecked:!1,label:"switch",value:"on",...e}},initialState(){return"ready"},context({prop:e,bindable:t}){return{checked:t(()=>({defaultValue:e("defaultChecked"),value:e("checked"),onChange(n){e("onCheckedChange")?.({checked:n})}})),fieldsetDisabled:t(()=>({defaultValue:!1})),focusVisible:t(()=>({defaultValue:!1})),active:t(()=>({defaultValue:!1})),focused:t(()=>({defaultValue:!1})),hovered:t(()=>({defaultValue:!1}))}},computed:{isDisabled:({context:e,prop:t})=>t("disabled")||e.get("fieldsetDisabled")},watch({track:e,prop:t,context:n,action:r}){e([()=>t("disabled")],()=>{r(["removeFocusIfNeeded"])}),e([()=>n.get("checked")],()=>{r(["syncInputElement"])})},effects:["trackFormControlState","trackPressEvent","trackFocusVisible"],on:{"CHECKED.TOGGLE":[{guard:Mx("isTrusted"),actions:["toggleChecked","dispatchChangeEvent"]},{actions:["toggleChecked"]}],"CHECKED.SET":[{guard:Mx("isTrusted"),actions:["setChecked","dispatchChangeEvent"]},{actions:["setChecked"]}],"CONTEXT.SET":{actions:["setContext"]}},states:{ready:{}},implementations:{guards:{isTrusted:({event:e})=>!!e.isTrusted},effects:{trackPressEvent({computed:e,scope:t,context:n}){if(!e("isDisabled"))return kw({pointerNode:MF(t),keyboardNode:qi(t),isValidKey:r=>r.key===" ",onPress:()=>n.set("active",!1),onPressStart:()=>n.set("active",!0),onPressEnd:()=>n.set("active",!1)})},trackFocusVisible({computed:e,scope:t}){if(!e("isDisabled"))return al({root:t.getRootNode()})},trackFormControlState({context:e,send:t,scope:n}){return ti(qi(n),{onFieldsetDisabledChange(r){e.set("fieldsetDisabled",r)},onFormReset(){const r=e.initial("checked");t({type:"CHECKED.SET",checked:!!r,src:"form-reset"})}})}},actions:{setContext({context:e,event:t}){for(const n in t.context)e.set(n,t.context[n])},syncInputElement({context:e,scope:t}){const n=qi(t);n&&Mp(n,!!e.get("checked"))},removeFocusIfNeeded({context:e,prop:t}){t("disabled")&&e.set("focused",!1)},setChecked({context:e,event:t}){e.set("checked",t.checked)},toggleChecked({context:e}){e.set("checked",!e.get("checked"))},dispatchChangeEvent({context:e,scope:t}){const n=qi(t);Bp(n,{checked:e.get("checked")})}}}};he()(["checked","defaultChecked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]);const HF=e=>{const t=k.useId(),{getRootNode:n}=Ht(),{dir:r}=vn(),i=Vn(),a={id:t,ids:{label:i?.ids.label,hiddenInput:i?.ids.control},dir:r,disabled:i?.disabled,readOnly:i?.readOnly,invalid:i?.invalid,required:i?.required,getRootNode:n,...e},c=Yt(WF,a);return BF(c,sn)},jF=ze(),b1=k.forwardRef((e,t)=>{const[n,r]=jF(e,["checked","defaultChecked","disabled","form","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]),i=HF(n),a=q(i.getRootProps(),r);return P.jsx(g1,{value:i,children:P.jsx(re.label,{...a,ref:t})})});b1.displayName="SwitchRoot";const GF=ze(),x1=k.forwardRef((e,t)=>{const[{value:n},r]=GF(e,["value"]),i=q(n.getRootProps(),r);return P.jsx(g1,{value:n,children:P.jsx(re.label,{...i,ref:t})})});x1.displayName="SwitchRootProvider";const w1=k.forwardRef((e,t)=>{const n=ws(),r=q(n.getThumbProps(),e);return P.jsx(re.span,{...r,ref:t})});w1.displayName="SwitchThumb";const[C1,od]=$e({name:"TabsContext",hookName:"useTabsContext",providerName:"<TabsProvider />"}),UF=ze(),S1=k.forwardRef((e,t)=>{const[n,r]=UF(e,["value"]),i=od(),a=ih(),c=An({...a,present:i.value===e.value,immediate:!0}),u=q(i.getContentProps(n),c.getPresenceProps(),r);return P.jsx(Kn,{value:c,children:c.unmounted?null:P.jsx(re.div,{...u,ref:cr(c.ref,t)})})});S1.displayName="TabContent";const E1=k.forwardRef((e,t)=>{const n=od(),r=q(n.getIndicatorProps(),e);return P.jsx(re.div,{...r,ref:t})});E1.displayName="TabIndicator";const k1=k.forwardRef((e,t)=>{const n=od(),r=q(n.getListProps(),e);return P.jsx(re.div,{...r,ref:t})});k1.displayName="TabList";const KF=ze(),P1=k.forwardRef((e,t)=>{const[n,r]=KF(e,["disabled","value"]),i=od(),a=q(i.getTriggerProps(n),r);return P.jsx(re.button,{...a,ref:t})});P1.displayName="TabTrigger";var YF=ve("tabs").parts("root","list","trigger","content","indicator"),Oa=YF.build(),XF=e=>e.ids?.root??`tabs:${e.id}`,Ga=e=>e.ids?.list??`tabs:${e.id}:list`,hp=(e,t)=>e.ids?.content?.(t)??`tabs:${e.id}:content-${t}`,jo=(e,t)=>e.ids?.trigger?.(t)??`tabs:${e.id}:trigger-${t}`,I1=e=>e.ids?.indicator??`tabs:${e.id}:indicator`,qF=e=>e.getById(Ga(e)),QF=(e,t)=>e.getById(hp(e,t)),fu=(e,t)=>t!=null?e.getById(jo(e,t)):null,Bx=e=>e.getById(I1(e)),Cs=e=>{const n=`[role=tab][data-ownedby='${CSS.escape(Ga(e))}']:not([disabled])`;return Yo(qF(e),n)},ZF=e=>Ha(Cs(e)),JF=e=>Lp(Cs(e)),eM=(e,t)=>Gp(Cs(e),jo(e,t.value),t.loopFocus),tM=(e,t)=>Up(Cs(e),jo(e,t.value),t.loopFocus),T1=e=>({x:e?.offsetLeft??0,y:e?.offsetTop??0,width:e?.offsetWidth??0,height:e?.offsetHeight??0}),nM=(e,t)=>{const n=Pw(Cs(e),jo(e,t));return T1(n)};function rM(e,t){const{state:n,send:r,context:i,prop:a,scope:c}=e,u=a("translations"),f=n.matches("focused"),p=a("orientation")==="vertical",h=a("orientation")==="horizontal",y=a("composite");function b(v){return{selected:i.get("value")===v.value,focused:i.get("focusedValue")===v.value,disabled:!!v.disabled}}return{value:i.get("value"),focusedValue:i.get("focusedValue"),setValue(v){r({type:"SET_VALUE",value:v})},clearValue(){r({type:"CLEAR_VALUE"})},setIndicatorRect(v){const w=jo(c,v);r({type:"SET_INDICATOR_RECT",id:w})},syncTabIndex(){r({type:"SYNC_TAB_INDEX"})},selectNext(v){r({type:"TAB_FOCUS",value:v,src:"selectNext"}),r({type:"ARROW_NEXT",src:"selectNext"})},selectPrev(v){r({type:"TAB_FOCUS",value:v,src:"selectPrev"}),r({type:"ARROW_PREV",src:"selectPrev"})},focus(){const v=i.get("value");v&&fu(c,v)?.focus()},getRootProps(){return t.element({...Oa.root.attrs,id:XF(c),"data-orientation":a("orientation"),"data-focus":se(f),dir:a("dir")})},getListProps(){return t.element({...Oa.list.attrs,id:Ga(c),role:"tablist",dir:a("dir"),"data-focus":se(f),"aria-orientation":a("orientation"),"data-orientation":a("orientation"),"aria-label":u?.listLabel,onKeyDown(v){if(v.defaultPrevented||dw(v)||!Hn(v.currentTarget,at(v)))return;const w={ArrowDown(){h||r({type:"ARROW_NEXT",key:"ArrowDown"})},ArrowUp(){h||r({type:"ARROW_PREV",key:"ArrowUp"})},ArrowLeft(){p||r({type:"ARROW_PREV",key:"ArrowLeft"})},ArrowRight(){p||r({type:"ARROW_NEXT",key:"ArrowRight"})},Home(){r({type:"HOME"})},End(){r({type:"END"})}};let x=fw(v,{dir:a("dir"),orientation:a("orientation")});const E=w[x];if(E){v.preventDefault(),E(v);return}}})},getTriggerState:b,getTriggerProps(v){const{value:w,disabled:x}=v,E=b(v);return t.button({...Oa.trigger.attrs,role:"tab",type:"button",disabled:x,dir:a("dir"),"data-orientation":a("orientation"),"data-disabled":se(x),"aria-disabled":x,"data-value":w,"aria-selected":E.selected,"data-selected":se(E.selected),"data-focus":se(E.focused),"aria-controls":E.selected?hp(c,w):void 0,"data-ownedby":Ga(c),"data-ssr":se(i.get("ssr")),id:jo(c,w),tabIndex:E.selected&&y?0:-1,onFocus(){r({type:"TAB_FOCUS",value:w})},onBlur(O){O.relatedTarget?.getAttribute("role")!=="tab"&&r({type:"TAB_BLUR"})},onClick(O){O.defaultPrevented||SR(O)||x||(ei()&&O.currentTarget.focus(),r({type:"TAB_CLICK",value:w}))}})},getContentProps(v){const{value:w}=v,x=i.get("value")===w;return t.element({...Oa.content.attrs,dir:a("dir"),id:hp(c,w),tabIndex:y?0:-1,"aria-labelledby":jo(c,w),role:"tabpanel","data-ownedby":Ga(c),"data-selected":se(x),"data-orientation":a("orientation"),hidden:!x})},getIndicatorProps(){const v=i.get("indicatorRect"),w=v==null||v.width===0&&v.height===0&&v.x===0&&v.y===0;return t.element({id:I1(c),...Oa.indicator.attrs,dir:a("dir"),"data-orientation":a("orientation"),hidden:w,style:{"--transition-property":"left, right, top, bottom, width, height","--left":it(v?.x),"--top":it(v?.y),"--width":it(v?.width),"--height":it(v?.height),position:"absolute",willChange:"var(--transition-property)",transitionProperty:"var(--transition-property)",transitionDuration:"var(--transition-duration, 150ms)",transitionTimingFunction:"var(--transition-timing-function)",[h?"left":"top"]:h?"var(--left)":"var(--top)"}})}}}var{createMachine:oM}=ol(),iM=oM({props({props:e}){return{dir:"ltr",orientation:"horizontal",activationMode:"automatic",loopFocus:!0,composite:!0,navigate(t){xw(t.node)},defaultValue:null,...e}},initialState(){return"idle"},context({prop:e,bindable:t}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(n){e("onValueChange")?.({value:n})}})),focusedValue:t(()=>({defaultValue:e("value")||e("defaultValue"),sync:!0,onChange(n){e("onFocusChange")?.({focusedValue:n})}})),ssr:t(()=>({defaultValue:!0})),indicatorRect:t(()=>({defaultValue:null}))}},watch({context:e,prop:t,track:n,action:r}){n([()=>e.get("value")],()=>{r(["syncIndicatorRect","syncTabIndex","navigateIfNeeded"])}),n([()=>t("dir"),()=>t("orientation")],()=>{r(["syncIndicatorRect"])})},on:{SET_VALUE:{actions:["setValue"]},CLEAR_VALUE:{actions:["clearValue"]},SET_INDICATOR_RECT:{actions:["setIndicatorRect"]},SYNC_TAB_INDEX:{actions:["syncTabIndex"]}},entry:["syncIndicatorRect","syncTabIndex","syncSsr"],exit:["cleanupObserver"],states:{idle:{on:{TAB_FOCUS:{target:"focused",actions:["setFocusedValue"]},TAB_CLICK:{target:"focused",actions:["setFocusedValue","setValue"]}}},focused:{on:{TAB_CLICK:{actions:["setFocusedValue","setValue"]},ARROW_PREV:[{guard:"selectOnFocus",actions:["focusPrevTab","selectFocusedTab"]},{actions:["focusPrevTab"]}],ARROW_NEXT:[{guard:"selectOnFocus",actions:["focusNextTab","selectFocusedTab"]},{actions:["focusNextTab"]}],HOME:[{guard:"selectOnFocus",actions:["focusFirstTab","selectFocusedTab"]},{actions:["focusFirstTab"]}],END:[{guard:"selectOnFocus",actions:["focusLastTab","selectFocusedTab"]},{actions:["focusLastTab"]}],TAB_FOCUS:{actions:["setFocusedValue"]},TAB_BLUR:{target:"idle",actions:["clearFocusedValue"]}}}},implementations:{guards:{selectOnFocus:({prop:e})=>e("activationMode")==="automatic"},actions:{selectFocusedTab({context:e,prop:t}){de(()=>{const n=e.get("focusedValue");if(!n)return;const i=t("deselectable")&&e.get("value")===n?null:n;e.set("value",i)})},setFocusedValue({context:e,event:t,flush:n}){t.value!=null&&n(()=>{e.set("focusedValue",t.value)})},clearFocusedValue({context:e}){e.set("focusedValue",null)},setValue({context:e,event:t,prop:n}){const r=n("deselectable")&&e.get("value")===e.get("focusedValue");e.set("value",r?null:t.value)},clearValue({context:e}){e.set("value",null)},focusFirstTab({scope:e}){de(()=>{ZF(e)?.focus()})},focusLastTab({scope:e}){de(()=>{JF(e)?.focus()})},focusNextTab({context:e,prop:t,scope:n,event:r}){const i=r.value??e.get("focusedValue");if(!i)return;const a=eM(n,{value:i,loopFocus:t("loopFocus")});de(()=>{t("composite")?a?.focus():a?.dataset.value!=null&&e.set("focusedValue",a.dataset.value)})},focusPrevTab({context:e,prop:t,scope:n,event:r}){const i=r.value??e.get("focusedValue");if(!i)return;const a=tM(n,{value:i,loopFocus:t("loopFocus")});de(()=>{t("composite")?a?.focus():a?.dataset.value!=null&&e.set("focusedValue",a.dataset.value)})},syncTabIndex({context:e,scope:t}){de(()=>{const n=e.get("value");if(!n)return;const r=QF(t,n);if(!r)return;Wp(r).length>0?r.removeAttribute("tabindex"):r.setAttribute("tabindex","0")})},cleanupObserver({refs:e}){const t=e.get("indicatorCleanup");t&&t()},setIndicatorRect({context:e,event:t,scope:n}){const r=t.id??e.get("value");!Bx(n)||!r||!fu(n,r)||e.set("indicatorRect",nM(n,r))},syncSsr({context:e}){e.set("ssr",!1)},syncIndicatorRect({context:e,refs:t,scope:n}){const r=t.get("indicatorCleanup");if(r&&r(),!Bx(n))return;const a=()=>{const f=fu(n,e.get("value"));if(!f)return;const p=T1(f);e.set("indicatorRect",h=>Wt(h,p)?h:p)};a();const c=Cs(n),u=ss(...c.map(f=>Iw.observe(f,a)));t.set("indicatorCleanup",u)},navigateIfNeeded({context:e,prop:t,scope:n}){const r=e.get("value");if(!r)return;const i=fu(n,r);nR(i)&&t("navigate")?.({value:r,node:i,href:i.href})}}}});he()(["activationMode","composite","deselectable","dir","getRootNode","id","ids","loopFocus","navigate","onFocusChange","onValueChange","orientation","translations","value","defaultValue"]);he()(["disabled","value"]);he()(["value"]);const sM=e=>{const t=k.useId(),{getRootNode:n}=Ht(),{dir:r}=vn(),i={id:t,dir:r,getRootNode:n,...e},a=Yt(iM,i);return rM(a,sn)},aM=ze(),O1=k.forwardRef((e,t)=>{const[n,r]=ys(e),[i,a]=aM(r,["activationMode","composite","defaultValue","deselectable","id","ids","loopFocus","navigate","onFocusChange","onValueChange","orientation","translations","value"]),c=sM(i),u=q(c.getRootProps(),a);return P.jsx(C1,{value:c,children:P.jsx(vs,{value:n,children:P.jsx(re.div,{...u,ref:t})})})});O1.displayName="TabsRoot";const lM=ze(),R1=k.forwardRef((e,t)=>{const[n,r]=ys(e),[{value:i},a]=lM(r,["value"]),c=q(i.getRootProps(),a);return P.jsx(C1,{value:i,children:P.jsx(vs,{value:n,children:P.jsx(re.div,{...c,ref:t})})})});R1.displayName="TabsRootProvider";var N1=ve("tagsInput").parts("root","label","control","input","clearTrigger","item","itemPreview","itemInput","itemText","itemDeleteTrigger");N1.build();var cM=e=>e.ids?.root??`tags-input:${e.id}`,uM=e=>e.ids?.input??`tags-input:${e.id}:input`,dM=e=>e.ids?.hiddenInput??`tags-input:${e.id}:hidden-input`,mp=(e,t)=>e.ids?.item?.(t)??`tags-input:${e.id}:tag:${t.value}:${t.index}`,fM=(e,t)=>e.ids?.itemInput?.(t)??`${mp(e,t)}:input`,gM=e=>`${e}:input`,Wx=(e,t)=>e.getById(gM(t)),pM=e=>Yo(A1(e),"[data-part=item]"),hM=(e,t)=>e.getById(fM(e,t)),A1=e=>e.getById(cM(e)),Ra=e=>e.getById(uM(e)),V1=e=>e.getById(dM(e)),Zo=e=>Yo(A1(e),"[data-part=item-preview]:not([data-disabled])"),mM=e=>Zo(e)[0],vM=e=>Zo(e)[Zo(e).length-1],yM=(e,t)=>Up(Zo(e),t,!1),bM=(e,t)=>Gp(Zo(e),t,!1),xM=(e,t)=>Zo(e)[t],Na=(e,t)=>ju(Zo(e),t),wM=(e,t)=>{const n=V1(e);n&&pw(n,{value:t})},{and:Aa,not:Do,or:CM}=Nn();Aa(CM(Do("isAtMax"),"allowOverflow"),Do("isInputValueEmpty")),Do("hasHighlightedTag"),Aa("hasTags","isCaretAtStart"),Aa("hasTags","isCaretAtStart"),Aa("hasTags","isCaretAtStart",Do("isLastTagHighlighted")),Do("isCaretAtStart"),Aa("isTagEditable","hasHighlightedTag"),Do("isCaretAtStart"),Do("isCaretAtStart");he()(["addOnPaste","allowOverflow","autoFocus","blurBehavior","delimiter","dir","disabled","editable","form","getRootNode","id","ids","inputValue","invalid","max","maxLength","name","onFocusOutside","onHighlightChange","onInputValueChange","onInteractOutside","onPointerDownOutside","onValueChange","onValueInvalid","required","readOnly","translations","validate","value","defaultValue","defaultInputValue"]);he()(["index","disabled","value"]);var SM=ve("toast").parts("group","root","title","description","actionTrigger","closeTrigger"),ji=SM.build(),EM=e=>`toast-group:${e}`,Hx=(e,t)=>e.getById(`toast-group:${t}`),_1=e=>`toast:${e.id}`,jx=e=>e.getById(_1(e)),Gx=e=>`toast:${e.id}:title`,Ux=e=>`toast:${e.id}:description`,kM=e=>`toast${e.id}:close`,Kx={info:5e3,error:5e3,success:2e3,loading:1/0,DEFAULT:5e3};function Mg(e,t){return e??Kx[t]??Kx.DEFAULT}var PM=e=>typeof e=="string"?{left:e,right:e,bottom:e,top:e}:e;function IM(e,t){const{prop:n,computed:r,context:i}=e,{offsets:a,gap:c}=n("store").attrs,u=i.get("heights"),f=PM(a),p=n("dir")==="rtl",h=t.replace("-start",p?"-right":"-left").replace("-end",p?"-left":"-right"),y=h.includes("right"),b=h.includes("left"),v={position:"fixed",pointerEvents:r("count")>0?void 0:"none",display:"flex",flexDirection:"column","--gap":`${c}px`,"--first-height":`${u[0]?.height||0}px`,"--viewport-offset-left":f.left,"--viewport-offset-right":f.right,"--viewport-offset-top":f.top,"--viewport-offset-bottom":f.bottom,zIndex:ow};let w="center";if(y&&(w="flex-end"),b&&(w="flex-start"),v.alignItems=w,h.includes("top")){const x=f.top;v.top=`max(env(safe-area-inset-top, 0px), ${x})`}if(h.includes("bottom")){const x=f.bottom;v.bottom=`max(env(safe-area-inset-bottom, 0px), ${x})`}if(!h.includes("left")){const x=f.right;v.insetInlineEnd=`calc(env(safe-area-inset-right, 0px) + ${x})`}if(!h.includes("right")){const x=f.left;v.insetInlineStart=`calc(env(safe-area-inset-left, 0px) + ${x})`}return v}function TM(e,t){const{prop:n,context:r,computed:i}=e,a=n("parent"),c=a.computed("placement"),{gap:u}=a.prop("store").attrs,[f]=c.split("-"),p=r.get("mounted"),h=r.get("remainingTime"),y=i("height"),b=i("frontmost"),v=!b,w=!n("stacked"),x=n("stacked"),O=n("type")==="loading"?Number.MAX_SAFE_INTEGER:h,N=i("heightIndex")*u+i("heightBefore"),R={position:"absolute",pointerEvents:"auto","--opacity":"0","--remove-delay":`${n("removeDelay")}ms`,"--duration":`${O}ms`,"--initial-height":`${y}px`,"--offset":`${N}px`,"--index":n("index"),"--z-index":i("zIndex"),"--lift-amount":"calc(var(--lift) * var(--gap))","--y":"100%","--x":"0"},S=T=>Object.assign(R,T);return f==="top"?S({top:"0","--sign":"-1","--y":"-100%","--lift":"1"}):f==="bottom"&&S({bottom:"0","--sign":"1","--y":"100%","--lift":"-1"}),p&&(S({"--y":"0","--opacity":"1"}),x&&S({"--y":"calc(var(--lift) * var(--offset))","--height":"var(--initial-height)"})),t||S({"--opacity":"0",pointerEvents:"none"}),v&&w&&(S({"--base-scale":"var(--index) * 0.05 + 1","--y":"calc(var(--lift-amount) * var(--index))","--scale":"calc(-1 * var(--base-scale))","--height":"var(--first-height)"}),t||S({"--y":"calc(var(--sign) * 40%)"})),v&&x&&!t&&S({"--y":"calc(var(--lift) * var(--offset) + var(--lift) * -100%)"}),b&&!t&&S({"--y":"calc(var(--lift) * -100%)"}),R}function OM(e,t){const{computed:n}=e,r={position:"absolute",inset:"0",scale:"1 2",pointerEvents:t?"none":"auto"},i=a=>Object.assign(r,a);return n("frontmost")&&!t&&i({height:"calc(var(--initial-height) + 80%)"}),r}function RM(){return{position:"absolute",left:"0",height:"calc(var(--gap) + 2px)",bottom:"100%",width:"100%"}}function NM(e,t){const{context:n,prop:r,send:i,refs:a,computed:c}=e;return{getCount(){return n.get("toasts").length},getToasts(){return n.get("toasts")},getGroupProps(u={}){const{label:f="Notifications"}=u,{hotkey:p}=r("store").attrs,h=p.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=c("placement"),[b,v="center"]=y.split("-");return t.element({...ji.group.attrs,dir:r("dir"),tabIndex:-1,"aria-label":`${y} ${f} ${h}`,id:EM(y),"data-placement":y,"data-side":b,"data-align":v,"aria-live":"polite",role:"region",style:IM(e,y),onMouseEnter(){a.get("ignoreMouseTimer").isActive()||i({type:"REGION.POINTER_ENTER",placement:y})},onMouseMove(){a.get("ignoreMouseTimer").isActive()||i({type:"REGION.POINTER_ENTER",placement:y})},onMouseLeave(){a.get("ignoreMouseTimer").isActive()||i({type:"REGION.POINTER_LEAVE",placement:y})},onFocus(w){i({type:"REGION.FOCUS",target:w.relatedTarget})},onBlur(w){a.get("isFocusWithin")&&!Hn(w.currentTarget,w.relatedTarget)&&queueMicrotask(()=>i({type:"REGION.BLUR"}))}})},subscribe(u){return r("store").subscribe(()=>u(n.get("toasts")))}}}var{guards:AM,createMachine:VM}=ol(),{and:_M}=AM,LM=VM({props({props:e}){return{dir:"ltr",id:Q0(),...e,store:e.store}},initialState({prop:e}){return e("store").attrs.overlap?"overlap":"stack"},refs(){return{lastFocusedEl:null,isFocusWithin:!1,isPointerWithin:!1,ignoreMouseTimer:yw.create(),dismissableCleanup:void 0}},context({bindable:e}){return{toasts:e(()=>({defaultValue:[],sync:!0,hash:t=>t.map(n=>n.id).join(",")})),heights:e(()=>({defaultValue:[],sync:!0}))}},computed:{count:({context:e})=>e.get("toasts").length,overlap:({prop:e})=>e("store").attrs.overlap,placement:({prop:e})=>e("store").attrs.placement},effects:["subscribeToStore","trackDocumentVisibility","trackHotKeyPress"],watch({track:e,context:t,action:n}){e([()=>t.hash("toasts")],()=>{queueMicrotask(()=>{n(["collapsedIfEmpty","setDismissableBranch"])})})},exit:["clearDismissableBranch","clearLastFocusedEl","clearMouseEventTimer"],on:{"DOC.HOTKEY":{actions:["focusRegionEl"]},"REGION.BLUR":[{guard:_M("isOverlapping","isPointerOut"),target:"overlap",actions:["collapseToasts","resumeToasts","restoreFocusIfPointerOut"]},{guard:"isPointerOut",target:"stack",actions:["resumeToasts","restoreFocusIfPointerOut"]},{actions:["clearFocusWithin"]}],"TOAST.REMOVE":{actions:["removeToast","removeHeight","ignoreMouseEventsTemporarily"]},"TOAST.PAUSE":{actions:["pauseToasts"]}},states:{stack:{on:{"REGION.POINTER_LEAVE":[{guard:"isOverlapping",target:"overlap",actions:["clearPointerWithin","resumeToasts","collapseToasts"]},{actions:["clearPointerWithin","resumeToasts"]}],"REGION.OVERLAP":{target:"overlap",actions:["collapseToasts"]},"REGION.FOCUS":{actions:["setLastFocusedEl","pauseToasts"]},"REGION.POINTER_ENTER":{actions:["setPointerWithin","pauseToasts"]}}},overlap:{on:{"REGION.STACK":{target:"stack",actions:["expandToasts"]},"REGION.POINTER_ENTER":{target:"stack",actions:["setPointerWithin","pauseToasts","expandToasts"]},"REGION.FOCUS":{target:"stack",actions:["setLastFocusedEl","pauseToasts","expandToasts"]}}}},implementations:{guards:{isOverlapping:({computed:e})=>e("overlap"),isPointerOut:({refs:e})=>!e.get("isPointerWithin")},effects:{subscribeToStore({context:e,prop:t}){return t("store").subscribe(n=>{if(n.dismiss){e.set("toasts",r=>r.filter(i=>i.id!==n.id));return}e.set("toasts",r=>{const i=r.findIndex(a=>a.id===n.id);return i!==-1?[...r.slice(0,i),{...r[i],...n},...r.slice(i+1)]:[n,...r]})})},trackHotKeyPress({prop:e,send:t}){return Re(document,"keydown",r=>{const{hotkey:i}=e("store").attrs;i.every(c=>r[c]||r.code===c)&&t({type:"DOC.HOTKEY"})},{capture:!0})},trackDocumentVisibility({prop:e,send:t,scope:n}){const{pauseOnPageIdle:r}=e("store").attrs;if(!r)return;const i=n.getDoc();return Re(i,"visibilitychange",()=>{const a=i.visibilityState==="hidden";t({type:a?"PAUSE_ALL":"RESUME_ALL"})})}},actions:{setDismissableBranch({refs:e,context:t,computed:n,scope:r}){const i=t.get("toasts"),a=n("placement"),c=i.length>0;if(!c){e.get("dismissableCleanup")?.();return}if(c&&e.get("dismissableCleanup"))return;const f=xV(()=>Hx(r,a),{defer:!0});e.set("dismissableCleanup",f)},clearDismissableBranch({refs:e}){e.get("dismissableCleanup")?.()},focusRegionEl({scope:e,computed:t}){queueMicrotask(()=>{Hx(e,t("placement"))?.focus()})},pauseToasts({prop:e}){e("store").pause()},resumeToasts({prop:e}){e("store").resume()},expandToasts({prop:e}){e("store").expand()},collapseToasts({prop:e}){e("store").collapse()},removeToast({prop:e,event:t}){e("store").remove(t.id)},removeHeight({event:e,context:t}){e?.id!=null&&queueMicrotask(()=>{t.set("heights",n=>n.filter(r=>r.id!==e.id))})},collapsedIfEmpty({send:e,computed:t}){!t("overlap")||t("count")>1||e({type:"REGION.OVERLAP"})},setLastFocusedEl({refs:e,event:t}){e.get("isFocusWithin")||!t.target||(e.set("isFocusWithin",!0),e.set("lastFocusedEl",t.target))},restoreFocusIfPointerOut({refs:e}){!e.get("lastFocusedEl")||e.get("isPointerWithin")||(e.get("lastFocusedEl")?.focus({preventScroll:!0}),e.set("lastFocusedEl",null),e.set("isFocusWithin",!1))},setPointerWithin({refs:e}){e.set("isPointerWithin",!0)},clearPointerWithin({refs:e}){e.set("isPointerWithin",!1),e.get("lastFocusedEl")&&!e.get("isFocusWithin")&&(e.get("lastFocusedEl")?.focus({preventScroll:!0}),e.set("lastFocusedEl",null))},clearFocusWithin({refs:e}){e.set("isFocusWithin",!1)},clearLastFocusedEl({refs:e}){e.get("lastFocusedEl")&&(e.get("lastFocusedEl")?.focus({preventScroll:!0}),e.set("lastFocusedEl",null),e.set("isFocusWithin",!1))},ignoreMouseEventsTemporarily({refs:e}){e.get("ignoreMouseTimer").request()},clearMouseEventTimer({refs:e}){e.get("ignoreMouseTimer").cancel()}}}});function $M(e,t){const{state:n,send:r,prop:i,scope:a,context:c,computed:u}=e,f=n.hasTag("visible"),p=n.hasTag("paused"),h=c.get("mounted"),y=u("frontmost"),b=i("parent").computed("placement"),v=i("type"),w=i("stacked"),x=i("title"),E=i("description"),O=i("action"),[N,R="center"]=b.split("-");return{type:v,title:x,description:E,placement:b,visible:f,paused:p,closable:!!i("closable"),pause(){r({type:"PAUSE"})},resume(){r({type:"RESUME"})},dismiss(){r({type:"DISMISS",src:"programmatic"})},getRootProps(){return t.element({...ji.root.attrs,dir:i("dir"),id:_1(a),"data-state":f?"open":"closed","data-type":v,"data-placement":b,"data-align":R,"data-side":N,"data-mounted":se(h),"data-paused":se(p),"data-first":se(y),"data-sibling":se(!y),"data-stack":se(w),"data-overlap":se(!w),role:"status","aria-atomic":"true","aria-describedby":E?Ux(a):void 0,"aria-labelledby":x?Gx(a):void 0,tabIndex:0,style:TM(e,f),onKeyDown(S){S.defaultPrevented||S.key=="Escape"&&(r({type:"DISMISS",src:"keyboard"}),S.preventDefault())}})},getGhostBeforeProps(){return t.element({"data-ghost":"before",style:OM(e,f)})},getGhostAfterProps(){return t.element({"data-ghost":"after",style:RM()})},getTitleProps(){return t.element({...ji.title.attrs,id:Gx(a)})},getDescriptionProps(){return t.element({...ji.description.attrs,id:Ux(a)})},getActionTriggerProps(){return t.button({...ji.actionTrigger.attrs,type:"button",onClick(S){S.defaultPrevented||(O?.onClick?.(),r({type:"DISMISS",src:"user"}))}})},getCloseTriggerProps(){return t.button({id:kM(a),...ji.closeTrigger.attrs,type:"button","aria-label":"Dismiss notification",onClick(S){S.defaultPrevented||r({type:"DISMISS",src:"user"})}})}}}var{not:DM}=Nn(),zM={props({props:e}){return rw(e,["id","type","parent","removeDelay"],"toast"),{closable:!0,...e,duration:Mg(e.duration,e.type)}},initialState({prop:e}){return e("type")==="loading"||e("duration")===1/0?"visible:persist":"visible"},context({prop:e,bindable:t}){return{remainingTime:t(()=>({defaultValue:Mg(e("duration"),e("type"))})),createdAt:t(()=>({defaultValue:Date.now()})),mounted:t(()=>({defaultValue:!1})),initialHeight:t(()=>({defaultValue:0}))}},refs(){return{closeTimerStartTime:Date.now(),lastCloseStartTimerStartTime:0}},computed:{zIndex:({prop:e})=>{const t=e("parent").context.get("toasts"),n=t.findIndex(r=>r.id===e("id"));return t.length-n},height:({prop:e})=>e("parent").context.get("heights").find(r=>r.id===e("id"))?.height??0,heightIndex:({prop:e})=>e("parent").context.get("heights").findIndex(n=>n.id===e("id")),frontmost:({prop:e})=>e("index")===0,heightBefore:({prop:e})=>{const t=e("parent").context.get("heights"),n=t.findIndex(r=>r.id===e("id"));return t.reduce((r,i,a)=>a>=n?r:r+i.height,0)},shouldPersist:({prop:e})=>e("type")==="loading"||e("duration")===1/0},watch({track:e,prop:t,send:n}){e([()=>t("message")],()=>{const r=t("message");r&&n({type:r,src:"programmatic"})}),e([()=>t("type"),()=>t("duration")],()=>{n({type:"UPDATE"})})},on:{UPDATE:[{guard:"shouldPersist",target:"visible:persist",actions:["resetCloseTimer"]},{target:"visible:updating",actions:["resetCloseTimer"]}],MEASURE:{actions:["measureHeight"]}},entry:["setMounted","measureHeight","invokeOnVisible"],effects:["trackHeight"],states:{"visible:updating":{tags:["visible","updating"],effects:["waitForNextTick"],on:{SHOW:{target:"visible"}}},"visible:persist":{tags:["visible","paused"],on:{RESUME:{guard:DM("isLoadingType"),target:"visible",actions:["setCloseTimer"]},DISMISS:{target:"dismissing"}}},visible:{tags:["visible"],effects:["waitForDuration"],on:{DISMISS:{target:"dismissing"},PAUSE:{target:"visible:persist",actions:["syncRemainingTime"]}}},dismissing:{entry:["invokeOnDismiss"],effects:["waitForRemoveDelay"],on:{REMOVE:{target:"unmounted",actions:["notifyParentToRemove"]}}},unmounted:{entry:["invokeOnUnmount"]}},implementations:{effects:{waitForRemoveDelay({prop:e,send:t}){return ug(()=>{t({type:"REMOVE",src:"timer"})},e("removeDelay"))},waitForDuration({send:e,context:t,computed:n}){if(!n("shouldPersist"))return ug(()=>{e({type:"DISMISS",src:"timer"})},t.get("remainingTime"))},waitForNextTick({send:e}){return ug(()=>{e({type:"SHOW",src:"timer"})},0)},trackHeight({scope:e,prop:t}){let n;return de(()=>{const r=jx(e);if(!r)return;const i=()=>{const u=r.style.height;r.style.height="auto";const f=r.getBoundingClientRect().height;r.style.height=u;const p={id:t("id"),height:f};Yx(t("parent"),p)},a=e.getWin(),c=new a.MutationObserver(i);c.observe(r,{childList:!0,subtree:!0,characterData:!0}),n=()=>c.disconnect()}),()=>n?.()}},guards:{isLoadingType:({prop:e})=>e("type")==="loading",shouldPersist:({computed:e})=>e("shouldPersist")},actions:{setMounted({context:e}){de(()=>{e.set("mounted",!0)})},measureHeight({scope:e,prop:t,context:n}){queueMicrotask(()=>{const r=jx(e);if(!r)return;const i=r.style.height;r.style.height="auto";const a=r.getBoundingClientRect().height;r.style.height=i,n.set("initialHeight",a);const c={id:t("id"),height:a};Yx(t("parent"),c)})},setCloseTimer({refs:e}){e.set("closeTimerStartTime",Date.now())},resetCloseTimer({context:e,refs:t,prop:n}){t.set("closeTimerStartTime",Date.now()),e.set("remainingTime",Mg(n("duration"),n("type")))},syncRemainingTime({context:e,refs:t}){e.set("remainingTime",n=>{const r=t.get("closeTimerStartTime"),i=Date.now()-r;return t.set("lastCloseStartTimerStartTime",Date.now()),n-i})},notifyParentToRemove({prop:e}){e("parent").send({type:"TOAST.REMOVE",id:e("id")})},invokeOnDismiss({prop:e,event:t}){e("onStatusChange")?.({status:"dismissing",src:t.src})},invokeOnUnmount({prop:e}){e("onStatusChange")?.({status:"unmounted"})},invokeOnVisible({prop:e}){e("onStatusChange")?.({status:"visible"})}}}};function Yx(e,t){const{id:n,height:r}=t;e.context.set("heights",i=>i.find(c=>c.id===n)?i.map(c=>c.id===n?{...c,height:r}:c):[{id:n,height:r},...i])}var FM=(e,t)=>({...t,...ds(e)});function MM(e={}){const t=FM(e,{placement:"bottom",overlap:!1,max:24,gap:16,offsets:"1rem",hotkey:["altKey","KeyT"],removeDelay:200,pauseOnPageIdle:!0});let n=[],r=[],i=new Set,a=[];const c=$=>(n.push($),()=>{const H=n.indexOf($);n.splice(H,1)}),u=$=>(n.forEach(H=>H($)),$),f=$=>{if(r.length>=t.max){a.push($);return}u($),r.unshift($)},p=()=>{for(;a.length>0&&r.length<t.max;){const $=a.shift();$&&(u($),r.unshift($))}},h=$=>{const H=$.id??`toast:${Q0()}`,ae=r.find(ne=>ne.id===H);return i.has(H)&&i.delete(H),ae?r=r.map(ne=>ne.id===H?u({...ne,...$,id:H}):ne):f({id:H,duration:t.duration,removeDelay:t.removeDelay,type:"info",...$,stacked:!t.overlap,gap:t.gap}),H},y=$=>(i.add($),$?(n.forEach(H=>H({id:$,dismiss:!0})),r=r.filter(H=>H.id!==$),p()):(r.forEach(H=>{n.forEach(ae=>ae({id:H.id,dismiss:!0}))}),r=[],a=[]),$);return{attrs:t,subscribe:c,create:h,update:($,H)=>h({id:$,...H}),remove:y,dismiss:$=>{$!=null?r=r.map(H=>H.id===$?u({...H,message:"DISMISS"}):H):r=r.map(H=>u({...H,message:"DISMISS"}))},error:$=>h({...$,type:"error"}),success:$=>h({...$,type:"success"}),info:$=>h({...$,type:"info"}),warning:$=>h({...$,type:"warning"}),loading:$=>h({...$,type:"loading"}),getVisibleToasts:()=>r.filter($=>!i.has($.id)),getCount:()=>r.length,promise:($,H,ae={})=>{if(!H||!H.loading){Go("[zag-js > toast] toaster.promise() requires at least a 'loading' option to be specified");return}const ne=h({...ae,...H.loading,promise:$,type:"loading"});let ce=!0,me;const oe=Rc($).then(async Z=>{if(me=["resolve",Z],BM(Z)&&!Z.ok){ce=!1;const _=Rc(H.error,`HTTP Error! status: ${Z.status}`);h({...ae,..._,id:ne,type:"error"})}else if(H.success!==void 0){ce=!1;const _=Rc(H.success,Z);h({...ae,..._,id:ne,type:"success"})}}).catch(async Z=>{if(me=["reject",Z],H.error!==void 0){ce=!1;const _=Rc(H.error,Z);h({...ae,..._,id:ne,type:"error"})}}).finally(()=>{ce&&y(ne),H.finally?.()});return{id:ne,unwrap:()=>new Promise((Z,_)=>oe.then(()=>me[0]==="reject"?_(me[1]):Z(me[1])).catch(_))}},pause:$=>{$!=null?r=r.map(H=>H.id===$?u({...H,message:"PAUSE"}):H):r=r.map(H=>u({...H,message:"PAUSE"}))},resume:$=>{$!=null?r=r.map(H=>H.id===$?u({...H,message:"RESUME"}):H):r=r.map(H=>u({...H,message:"RESUME"}))},isVisible:$=>!i.has($)&&!!r.find(H=>H.id===$),isDismissed:$=>i.has($),expand:()=>{r=r.map($=>u({...$,stacked:!0}))},collapse:()=>{r=r.map($=>u({...$,stacked:!1}))}}}var BM=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Xx={connect:NM,machine:LM};const RH=e=>MM(e),[WM,Ss]=$e({name:"ToastContext",hookName:"useToastContext",providerName:"<ToastProvider />"}),L1=k.forwardRef((e,t)=>{const n=Ss(),r=q(n.getActionTriggerProps(),e);return P.jsx(re.button,{...r,ref:t})});L1.displayName="ToastActionTrigger";const $1=k.forwardRef((e,t)=>{const n=Ss(),r=q(n.getCloseTriggerProps(),e);return P.jsx(re.button,{...r,ref:t})});$1.displayName="ToastCloseTrigger";const D1=k.forwardRef((e,t)=>{const n=Ss(),r=q(n.getDescriptionProps(),e);return P.jsx(re.div,{...r,ref:t})});D1.displayName="ToastDescription";const z1=k.forwardRef((e,t)=>{const n=Ss(),r=q(n.getRootProps(),e);return P.jsxs("div",{...r,ref:t,children:[P.jsx("div",{...n.getGhostBeforeProps()}),e.children,P.jsx("div",{...n.getGhostAfterProps()})]})});z1.displayName="ToastRoot";const F1=k.forwardRef((e,t)=>{const n=Ss(),r=q(n.getTitleProps(),e);return P.jsx(re.div,{...r,ref:t})});F1.displayName="ToastTitle";const M1=k.forwardRef((e,t)=>{const{toaster:n,children:r,...i}=e,a=vn(),c=Ht(),u=Yt(Xx.machine,{store:n,id:k.useId(),dir:a?.dir,getRootNode:c?.getRootNode}),f=Xx.connect(u,sn),p=q(f.getGroupProps(),i);return P.jsx(re.div,{...p,ref:t,children:f.getToasts().map((h,y)=>P.jsx(B1,{value:h,parent:u,index:y,children:b=>r(b)},h.id))})});M1.displayName="Toaster";const B1=e=>{const t=Ht(),n={...e.value,parent:e.parent,index:e.index,getRootNode:t.getRootNode},r=Yt(zM,{...n}),i=$M(r,sn);return P.jsx(WM,{value:i,children:e.children(e.value)})};B1.displayName="ToastActor";const[W1,gl]=$e({name:"TooltipContext",hookName:"useTooltipContext",providerName:"<TooltipProvider />"}),H1=k.forwardRef((e,t)=>{const n=gl(),r=q(n.getArrowProps(),e);return P.jsx(re.div,{...r,ref:t})});H1.displayName="TooltipArrow";const j1=k.forwardRef((e,t)=>{const n=gl(),r=q(n.getArrowTipProps(),e);return P.jsx(re.div,{...r,ref:t})});j1.displayName="TooltipArrowTip";const G1=k.forwardRef((e,t)=>{const n=gl(),r=yn(),i=q(n.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:P.jsx(re.div,{...i,ref:cr(r.ref,t)})});G1.displayName="TooltipContent";const U1=k.forwardRef((e,t)=>{const n=gl(),r=q(n.getPositionerProps(),e);return yn().unmounted?null:P.jsx(re.div,{...r,ref:t})});U1.displayName="TooltipPositioner";var K1=ve("tooltip").parts("trigger","arrow","arrowTip","positioner","content"),Va=K1.build(),Y1=e=>e.ids?.trigger??`tooltip:${e.id}:trigger`,HM=e=>e.ids?.content??`tooltip:${e.id}:content`,jM=e=>e.ids?.arrow??`tooltip:${e.id}:arrow`,X1=e=>e.ids?.positioner??`tooltip:${e.id}:popper`,Bg=e=>e.getById(Y1(e)),qx=e=>e.getById(X1(e)),Tr=BO({id:null});function GM(e,t){const{state:n,context:r,send:i,scope:a,prop:c,event:u}=e,f=c("id"),p=!!c("aria-label"),h=n.matches("open","closing"),y=Y1(a),b=HM(a),v=c("disabled"),w=oh({...c("positioning"),placement:r.get("currentPlacement")});return{open:h,setOpen(x){n.matches("open","closing")!==x&&i({type:x?"open":"close"})},reposition(x={}){i({type:"positioning.set",options:x})},getTriggerProps(){return t.button({...Va.trigger.attrs,id:y,dir:c("dir"),"data-expanded":se(h),"data-state":h?"open":"closed","aria-describedby":h?b:void 0,onClick(x){x.defaultPrevented||v||c("closeOnClick")&&i({type:"close",src:"trigger.click"})},onFocus(x){queueMicrotask(()=>{x.defaultPrevented||v||u.src!=="trigger.pointerdown"&&ls()&&i({type:"open",src:"trigger.focus"})})},onBlur(x){x.defaultPrevented||v||f===Tr.get("id")&&i({type:"close",src:"trigger.blur"})},onPointerDown(x){x.defaultPrevented||v||Fp(x)&&c("closeOnPointerDown")&&f===Tr.get("id")&&i({type:"close",src:"trigger.pointerdown"})},onPointerMove(x){x.defaultPrevented||v||x.pointerType!=="touch"&&i({type:"pointer.move"})},onPointerOver(x){x.defaultPrevented||v||x.pointerType!=="touch"&&i({type:"pointer.move"})},onPointerLeave(){v||i({type:"pointer.leave"})},onPointerCancel(){v||i({type:"pointer.leave"})}})},getArrowProps(){return t.element({id:jM(a),...Va.arrow.attrs,dir:c("dir"),style:w.arrow})},getArrowTipProps(){return t.element({...Va.arrowTip.attrs,dir:c("dir"),style:w.arrowTip})},getPositionerProps(){return t.element({id:X1(a),...Va.positioner.attrs,dir:c("dir"),style:w.floating})},getContentProps(){return t.element({...Va.content.attrs,dir:c("dir"),hidden:!h,"data-state":h?"open":"closed",role:p?void 0:"tooltip",id:p?void 0:b,"data-placement":r.get("currentPlacement"),onPointerEnter(){i({type:"content.pointer.move"})},onPointerLeave(){i({type:"content.pointer.leave"})},style:{pointerEvents:c("interactive")?"auto":"none"}})}}}var{and:UM,not:Qx}=Nn(),KM={initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"closed",props({props:e}){const t=e.closeOnClick??!0,n=e.closeOnPointerDown??t;return{id:"x",openDelay:400,closeDelay:150,closeOnEscape:!0,interactive:!1,closeOnScroll:!0,disabled:!1,...e,closeOnPointerDown:n,closeOnClick:t,positioning:{placement:"bottom",...e.positioning}}},effects:["trackFocusVisible","trackStore"],context:({bindable:e})=>({currentPlacement:e(()=>({defaultValue:void 0})),hasPointerMoveOpened:e(()=>({defaultValue:!1}))}),watch({track:e,action:t,prop:n}){e([()=>n("disabled")],()=>{t(["closeIfDisabled"])}),e([()=>n("open")],()=>{t(["toggleVisibility"])})},states:{closed:{entry:["clearGlobalId"],on:{"controlled.open":{target:"open"},open:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],"pointer.leave":{actions:["clearPointerMoveOpened"]},"pointer.move":[{guard:UM("noVisibleTooltip",Qx("hasPointerMoveOpened")),target:"opening"},{guard:Qx("hasPointerMoveOpened"),target:"open",actions:["setPointerMoveOpened","invokeOnOpen"]}]}},opening:{effects:["trackScroll","trackPointerlockChange","waitForOpenDelay"],on:{"after.openDelay":[{guard:"isOpenControlled",actions:["setPointerMoveOpened","invokeOnOpen"]},{target:"open",actions:["setPointerMoveOpened","invokeOnOpen"]}],"controlled.open":{target:"open"},"controlled.close":{target:"closed"},open:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],"pointer.leave":[{guard:"isOpenControlled",actions:["clearPointerMoveOpened","invokeOnClose","toggleVisibility"]},{target:"closed",actions:["clearPointerMoveOpened","invokeOnClose"]}],close:[{guard:"isOpenControlled",actions:["invokeOnClose","toggleVisibility"]},{target:"closed",actions:["invokeOnClose"]}]}},open:{effects:["trackEscapeKey","trackScroll","trackPointerlockChange","trackPositioning"],entry:["setGlobalId"],on:{"controlled.close":{target:"closed"},close:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"pointer.leave":[{guard:"isVisible",target:"closing",actions:["clearPointerMoveOpened"]},{guard:"isOpenControlled",actions:["clearPointerMoveOpened","invokeOnClose"]},{target:"closed",actions:["clearPointerMoveOpened","invokeOnClose"]}],"content.pointer.leave":{guard:"isInteractive",target:"closing"},"positioning.set":{actions:["reposition"]}}},closing:{effects:["trackPositioning","waitForCloseDelay"],on:{"after.closeDelay":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"controlled.close":{target:"closed"},"controlled.open":{target:"open"},close:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"pointer.move":[{guard:"isOpenControlled",actions:["setPointerMoveOpened","invokeOnOpen","toggleVisibility"]},{target:"open",actions:["setPointerMoveOpened","invokeOnOpen"]}],"content.pointer.move":{guard:"isInteractive",target:"open"},"positioning.set":{actions:["reposition"]}}}},implementations:{guards:{noVisibleTooltip:()=>Tr.get("id")===null,isVisible:({prop:e})=>e("id")===Tr.get("id"),isInteractive:({prop:e})=>!!e("interactive"),hasPointerMoveOpened:({context:e})=>e.get("hasPointerMoveOpened"),isOpenControlled:({prop:e})=>e("open")!==void 0},actions:{setGlobalId:({prop:e})=>{Tr.set("id",e("id"))},clearGlobalId:({prop:e})=>{e("id")===Tr.get("id")&&Tr.set("id",null)},invokeOnOpen:({prop:e})=>{e("onOpenChange")?.({open:!0})},invokeOnClose:({prop:e})=>{e("onOpenChange")?.({open:!1})},closeIfDisabled:({prop:e,send:t})=>{e("disabled")&&t({type:"close",src:"disabled.change"})},reposition:({context:e,event:t,prop:n,scope:r})=>{if(t.type!=="positioning.set")return;const i=()=>qx(r);return Un(Bg(r),i,{...n("positioning"),...t.options,defer:!0,listeners:!1,onComplete(a){e.set("currentPlacement",a.placement)}})},toggleVisibility:({prop:e,event:t,send:n})=>{queueMicrotask(()=>{n({type:e("open")?"controlled.open":"controlled.close",previousEvent:t})})},setPointerMoveOpened:({context:e})=>{e.set("hasPointerMoveOpened",!0)},clearPointerMoveOpened:({context:e})=>{e.set("hasPointerMoveOpened",!1)}},effects:{trackFocusVisible:({scope:e})=>al({root:e.getRootNode?.()}),trackPositioning:({context:e,prop:t,scope:n})=>{e.get("currentPlacement")||e.set("currentPlacement",t("positioning").placement);const r=()=>qx(n);return Un(Bg(n),r,{...t("positioning"),defer:!0,onComplete(i){e.set("currentPlacement",i.placement)}})},trackPointerlockChange:({send:e,scope:t})=>{const n=t.getDoc();return Re(n,"pointerlockchange",()=>e({type:"close",src:"pointerlock:change"}),!1)},trackScroll:({send:e,prop:t,scope:n})=>{if(!t("closeOnScroll"))return;const r=Bg(n);if(!r)return;const a=ww(r).map(c=>Re(c,"scroll",()=>{e({type:"close",src:"scroll"})},{passive:!0,capture:!0}));return()=>{a.forEach(c=>c?.())}},trackStore:({prop:e,send:t})=>{let n;return queueMicrotask(()=>{n=Tr.subscribe(()=>{Tr.get("id")!==e("id")&&t({type:"close",src:"id.change"})})}),()=>n?.()},trackEscapeKey:({send:e,prop:t})=>t("closeOnEscape")?Re(document,"keydown",r=>{dw(r)||r.key==="Escape"&&(r.stopPropagation(),e({type:"close",src:"keydown.escape"}))},!0):void 0,waitForOpenDelay:({send:e,prop:t})=>{const n=setTimeout(()=>{e({type:"after.openDelay"})},t("openDelay"));return()=>clearTimeout(n)},waitForCloseDelay:({send:e,prop:t})=>{const n=setTimeout(()=>{e({type:"after.closeDelay"})},t("closeDelay"));return()=>clearTimeout(n)}}}};he()(["aria-label","closeDelay","closeOnEscape","closeOnPointerDown","closeOnScroll","closeOnClick","dir","disabled","getRootNode","id","ids","interactive","onOpenChange","defaultOpen","open","openDelay","positioning"]);const YM=e=>{const t=k.useId(),{getRootNode:n}=Ht(),{dir:r}=vn(),i={id:t,dir:r,getRootNode:n,...e},a=Yt(KM,i);return GM(a,sn)},XM=e=>{const[t,{children:n,...r}]=ur(e),i=YM(r),a=An(q({present:i.open},t));return P.jsx(W1,{value:i,children:P.jsx(Kn,{value:a,children:n})})},qM=e=>{const[t,{value:n,children:r}]=ur(e),i=An(q({present:n.open},t));return P.jsx(W1,{value:n,children:P.jsx(Kn,{value:i,children:r})})},q1=k.forwardRef((e,t)=>{const n=gl(),r=q(n.getTriggerProps(),e);return P.jsx(re.button,{...r,ref:t})});q1.displayName="TooltipTrigger";function Nh(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}const QM=(e,t)=>{if(!e||typeof e!="string")return{invalid:!0,value:e};const[n,r]=e.split("/");if(!n||!r||n==="currentBg")return{invalid:!0,value:n};const i=t(`colors.${n}`),a=t.raw(`opacity.${r}`)?.value;if(!a&&isNaN(Number(r)))return{invalid:!0,value:n};const c=a?Number(a)*100+"%":`${r}%`,u=i??n;return{invalid:!1,color:u,value:`color-mix(in srgb, ${u} ${c}, transparent)`}},Be=e=>(t,n)=>{const r=n.utils.colorMix(t);if(r.invalid)return{[e]:t};const i="--mix-"+e;return{[i]:r.value,[e]:`var(${i}, ${r.color})`}};function vp(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(n=>vp(n));const t=Object.create(Object.getPrototypeOf(e));for(const n of Object.keys(e))t[n]=vp(e[n]);return t}function yp(e,t){if(t==null)return e;for(const n of Object.keys(t))if(!(t[n]===void 0||n==="__proto__"))if(!nn(e[n])&&nn(t[n]))Object.assign(e,{[n]:t[n]});else if(e[n]&&nn(t[n]))yp(e[n],t[n]);else if(Array.isArray(t[n])&&Array.isArray(e[n])){let r=0;for(;r<t[n].length;r++)nn(e[n][r])&&nn(t[n][r])?yp(e[n][r],t[n][r]):e[n][r]=t[n][r]}else Object.assign(e,{[n]:t[n]});return e}function Es(e,...t){for(const n of t)yp(e,n);return e}const bp=e=>e!=null;function lr(e,t,n={}){const{stop:r,getKey:i}=n;function a(c,u=[]){if(nn(c)||Array.isArray(c)){const f={};for(const[p,h]of Object.entries(c)){const y=i?.(p,h)??p,b=[...u,y];if(r?.(c,b))return t(c,u);const v=a(h,b);bp(v)&&(f[y]=v)}return f}return t(c,u)}return a(e)}function id(e,t){return Array.isArray(e)?e.map(n=>bp(n)?t(n):n):nn(e)?lr(e,n=>t(n)):bp(e)?t(e):e}const Yc=["value","type","description"],ZM=e=>e&&typeof e=="object"&&!Array.isArray(e),Q1=(...e)=>{const t=Es({},...e.map(vp));return t.theme?.tokens&&lr(t.theme.tokens,n=>{const a=Object.keys(n).filter(u=>!Yc.includes(u)).length>0,c=Yc.some(u=>n[u]!=null);return a&&c&&(n.DEFAULT||(n.DEFAULT={}),Yc.forEach(u=>{var f;n[u]!=null&&((f=n.DEFAULT)[u]||(f[u]=n[u]),delete n[u])})),n},{stop(n){return ZM(n)&&Object.keys(n).some(r=>Yc.includes(r)||r!==r.toLowerCase()&&r!==r.toUpperCase())}}),t},JM=e=>e,yt=e=>e,ye=e=>e,e5=e=>e,t5=e=>e,ks=e=>e,n5=e=>e,r5=e=>e,o5=e=>e;function Z1(){const e=t=>t;return new Proxy(e,{get(){return e}})}const ft=Z1(),Ah=Z1(),J1=e=>e,i5=/[^a-zA-Z0-9_\u0081-\uffff-]/g;function s5(e){return`${e}`.replace(i5,t=>`\\${t}`)}const a5=/[A-Z]/g;function l5(e){return e.replace(a5,t=>`-${t.toLowerCase()}`)}function ek(e,t={}){const{fallback:n="",prefix:r=""}=t,i=l5(["-",r,s5(e)].filter(Boolean).join("-"));return{var:i,ref:`var(${i}${n?`, ${n}`:""})`}}const c5=e=>/^var\(--.+\)$/.test(e),Ct=(e,t)=>t!=null?`${e}(${t})`:t,zo=e=>{if(c5(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},Zx=e=>({values:["outside","inside","mixed","none"],transform(t,{token:n}){const r=n("colors.colorPalette.focusRing");return{inside:{"--focus-ring-color":r,[e]:{outlineOffset:"0px",outlineWidth:"var(--focus-ring-width, 1px)",outlineColor:"var(--focus-ring-color)",outlineStyle:"var(--focus-ring-style, solid)",borderColor:"var(--focus-ring-color)"}},outside:{"--focus-ring-color":r,[e]:{outlineWidth:"var(--focus-ring-width, 2px)",outlineOffset:"var(--focus-ring-offset, 2px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"var(--focus-ring-color)"}},mixed:{"--focus-ring-color":r,[e]:{outlineWidth:"var(--focus-ring-width, 3px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"color-mix(in srgb, var(--focus-ring-color), transparent 60%)",borderColor:"var(--focus-ring-color)"}},none:{"--focus-ring-color":r,[e]:{outline:"none"}}}[t]??{}}}),u5=Be("borderColor"),Sr=e=>({transition:e,transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"}),d5=JM({hover:["@media (hover: hover)","&:is(:hover, [data-hover]):not(:disabled, [data-disabled])"],active:"&:is(:active, [data-active]):not(:disabled, [data-disabled], [data-state=open])",focus:"&:is(:focus, [data-focus])",focusWithin:"&:is(:focus-within, [data-focus-within])",focusVisible:"&:is(:focus-visible, [data-focus-visible])",disabled:"&:is(:disabled, [disabled], [data-disabled], [aria-disabled=true])",visited:"&:visited",target:"&:target",readOnly:"&:is([data-readonly], [aria-readonly=true], [readonly])",readWrite:"&:read-write",empty:"&:is(:empty, [data-empty])",checked:"&:is(:checked, [data-checked], [aria-checked=true], [data-state=checked])",enabled:"&:enabled",expanded:"&:is([aria-expanded=true], [data-expanded], [data-state=expanded])",highlighted:"&[data-highlighted]",complete:"&[data-complete]",incomplete:"&[data-incomplete]",dragging:"&[data-dragging]",before:"&::before",after:"&::after",firstLetter:"&::first-letter",firstLine:"&::first-line",marker:"&::marker",selection:"&::selection",file:"&::file-selector-button",backdrop:"&::backdrop",first:"&:first-of-type",last:"&:last-of-type",notFirst:"&:not(:first-of-type)",notLast:"&:not(:last-of-type)",only:"&:only-child",even:"&:nth-of-type(even)",odd:"&:nth-of-type(odd)",peerFocus:".peer:is(:focus, [data-focus]) ~ &",peerHover:".peer:is(:hover, [data-hover]):not(:disabled, [data-disabled]) ~ &",peerActive:".peer:is(:active, [data-active]):not(:disabled, [data-disabled]) ~ &",peerFocusWithin:".peer:focus-within ~ &",peerFocusVisible:".peer:is(:focus-visible, [data-focus-visible]) ~ &",peerDisabled:".peer:is(:disabled, [disabled], [data-disabled]) ~ &",peerChecked:".peer:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) ~ &",peerInvalid:".peer:is(:invalid, [data-invalid], [aria-invalid=true]) ~ &",peerExpanded:".peer:is([aria-expanded=true], [data-expanded], [data-state=expanded]) ~ &",peerPlaceholderShown:".peer:placeholder-shown ~ &",groupFocus:".group:is(:focus, [data-focus]) &",groupHover:".group:is(:hover, [data-hover]):not(:disabled, [data-disabled]) &",groupActive:".group:is(:active, [data-active]):not(:disabled, [data-disabled]) &",groupFocusWithin:".group:focus-within &",groupFocusVisible:".group:is(:focus-visible, [data-focus-visible]) &",groupDisabled:".group:is(:disabled, [disabled], [data-disabled]) &",groupChecked:".group:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) &",groupExpanded:".group:is([aria-expanded=true], [data-expanded], [data-state=expanded]) &",groupInvalid:".group:invalid &",indeterminate:"&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state=indeterminate])",required:"&:is([data-required], [aria-required=true])",valid:"&:is([data-valid], [data-state=valid])",invalid:"&:is([data-invalid], [aria-invalid=true], [data-state=invalid])",autofill:"&:autofill",inRange:"&:is(:in-range, [data-in-range])",outOfRange:"&:is(:out-of-range, [data-outside-range])",placeholder:"&::placeholder, &[data-placeholder]",placeholderShown:"&:is(:placeholder-shown, [data-placeholder-shown])",pressed:"&:is([aria-pressed=true], [data-pressed])",selected:"&:is([aria-selected=true], [data-selected])",grabbed:"&:is([aria-grabbed=true], [data-grabbed])",underValue:"&[data-state=under-value]",overValue:"&[data-state=over-value]",atValue:"&[data-state=at-value]",default:"&:default",optional:"&:optional",open:"&:is([open], [data-open], [data-state=open])",closed:"&:is([closed], [data-closed], [data-state=closed])",fullscreen:"&:is(:fullscreen, [data-fullscreen])",loading:"&:is([data-loading], [aria-busy=true])",hidden:"&:is([hidden], [data-hidden])",current:"&[data-current]",currentPage:"&[aria-current=page]",currentStep:"&[aria-current=step]",today:"&[data-today]",unavailable:"&[data-unavailable]",rangeStart:"&[data-range-start]",rangeEnd:"&[data-range-end]",now:"&[data-now]",topmost:"&[data-topmost]",motionReduce:"@media (prefers-reduced-motion: reduce)",motionSafe:"@media (prefers-reduced-motion: no-preference)",print:"@media print",landscape:"@media (orientation: landscape)",portrait:"@media (orientation: portrait)",dark:".dark &, .dark .chakra-theme:not(.light) &",light:":root &, .light &",osDark:"@media (prefers-color-scheme: dark)",osLight:"@media (prefers-color-scheme: light)",highContrast:"@media (forced-colors: active)",lessContrast:"@media (prefers-contrast: less)",moreContrast:"@media (prefers-contrast: more)",ltr:"[dir=ltr] &",rtl:"[dir=rtl] &",scrollbar:"&::-webkit-scrollbar",scrollbarThumb:"&::-webkit-scrollbar-thumb",scrollbarTrack:"&::-webkit-scrollbar-track",horizontal:"&[data-orientation=horizontal]",vertical:"&[data-orientation=vertical]",icon:"& :where(svg)",starting:"@starting-style"}),Qi=ek("bg-currentcolor"),Jx=e=>e===Qi.ref||e==="currentBg",Me=e=>({...e("colors"),currentBg:Qi}),f5=J1({conditions:d5,utilities:{background:{values:Me,shorthand:["bg"],transform(e,t){if(Jx(t.raw))return{background:Qi.ref};const n=Be("background")(e,t);return{...n,[Qi.var]:n?.background}}},backgroundColor:{values:Me,shorthand:["bgColor"],transform(e,t){if(Jx(t.raw))return{backgroundColor:Qi.ref};const n=Be("backgroundColor")(e,t);return{...n,[Qi.var]:n?.backgroundColor}}},backgroundSize:{shorthand:["bgSize"]},backgroundPosition:{shorthand:["bgPos"]},backgroundRepeat:{shorthand:["bgRepeat"]},backgroundAttachment:{shorthand:["bgAttachment"]},backgroundClip:{shorthand:["bgClip"],values:["text"],transform(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}}},backgroundGradient:{shorthand:["bgGradient"],values(e){return{...e("gradients"),"to-t":"linear-gradient(to top, var(--gradient))","to-tr":"linear-gradient(to top right, var(--gradient))","to-r":"linear-gradient(to right, var(--gradient))","to-br":"linear-gradient(to bottom right, var(--gradient))","to-b":"linear-gradient(to bottom, var(--gradient))","to-bl":"linear-gradient(to bottom left, var(--gradient))","to-l":"linear-gradient(to left, var(--gradient))","to-tl":"linear-gradient(to top left, var(--gradient))"}},transform(e){return{"--gradient-stops":"var(--gradient-from), var(--gradient-to)","--gradient":"var(--gradient-via-stops, var(--gradient-stops))",backgroundImage:e}}},gradientFrom:{values:Me,transform:Be("--gradient-from")},gradientTo:{values:Me,transform:Be("--gradient-to")},gradientVia:{values:Me,transform(e,t){return{...Be("--gradient-via")(e,t),"--gradient-via-stops":"var(--gradient-from), var(--gradient-via), var(--gradient-to)"}}},backgroundImage:{values(e){return{...e("gradients"),...e("assets")}},shorthand:["bgImg","bgImage"]},border:{values:"borders"},borderTop:{values:"borders"},borderLeft:{values:"borders"},borderBlockStart:{values:"borders"},borderRight:{values:"borders"},borderBottom:{values:"borders"},borderBlockEnd:{values:"borders"},borderInlineStart:{values:"borders",shorthand:["borderStart"]},borderInlineEnd:{values:"borders",shorthand:["borderEnd"]},borderInline:{values:"borders",shorthand:["borderX"]},borderBlock:{values:"borders",shorthand:["borderY"]},borderColor:{values:Me,transform:Be("borderColor")},borderTopColor:{values:Me,transform:Be("borderTopColor")},borderBlockStartColor:{values:Me,transform:Be("borderBlockStartColor")},borderBottomColor:{values:Me,transform:Be("borderBottomColor")},borderBlockEndColor:{values:Me,transform:Be("borderBlockEndColor")},borderLeftColor:{values:Me,transform:Be("borderLeftColor")},borderInlineStartColor:{values:Me,shorthand:["borderStartColor"],transform:Be("borderInlineStartColor")},borderRightColor:{values:Me,transform:Be("borderRightColor")},borderInlineEndColor:{values:Me,shorthand:["borderEndColor"],transform:Be("borderInlineEndColor")},borderStyle:{values:"borderStyles"},borderTopStyle:{values:"borderStyles"},borderBlockStartStyle:{values:"borderStyles"},borderBottomStyle:{values:"borderStyles"},borderBlockEndStyle:{values:"borderStyles"},borderInlineStartStyle:{values:"borderStyles",shorthand:["borderStartStyle"]},borderInlineEndStyle:{values:"borderStyles",shorthand:["borderEndStyle"]},borderLeftStyle:{values:"borderStyles"},borderRightStyle:{values:"borderStyles"},borderRadius:{values:"radii",shorthand:["rounded"]},borderTopLeftRadius:{values:"radii",shorthand:["roundedTopLeft"]},borderStartStartRadius:{values:"radii",shorthand:["roundedStartStart","borderTopStartRadius"]},borderEndStartRadius:{values:"radii",shorthand:["roundedEndStart","borderBottomStartRadius"]},borderTopRightRadius:{values:"radii",shorthand:["roundedTopRight"]},borderStartEndRadius:{values:"radii",shorthand:["roundedStartEnd","borderTopEndRadius"]},borderEndEndRadius:{values:"radii",shorthand:["roundedEndEnd","borderBottomEndRadius"]},borderBottomLeftRadius:{values:"radii",shorthand:["roundedBottomLeft"]},borderBottomRightRadius:{values:"radii",shorthand:["roundedBottomRight"]},borderInlineStartRadius:{values:"radii",property:"borderRadius",shorthand:["roundedStart","borderStartRadius"],transform:e=>({borderStartStartRadius:e,borderEndStartRadius:e})},borderInlineEndRadius:{values:"radii",property:"borderRadius",shorthand:["roundedEnd","borderEndRadius"],transform:e=>({borderStartEndRadius:e,borderEndEndRadius:e})},borderTopRadius:{values:"radii",property:"borderRadius",shorthand:["roundedTop"],transform:e=>({borderTopLeftRadius:e,borderTopRightRadius:e})},borderBottomRadius:{values:"radii",property:"borderRadius",shorthand:["roundedBottom"],transform:e=>({borderBottomLeftRadius:e,borderBottomRightRadius:e})},borderLeftRadius:{values:"radii",property:"borderRadius",shorthand:["roundedLeft"],transform:e=>({borderTopLeftRadius:e,borderBottomLeftRadius:e})},borderRightRadius:{values:"radii",property:"borderRadius",shorthand:["roundedRight"],transform:e=>({borderTopRightRadius:e,borderBottomRightRadius:e})},borderWidth:{values:"borderWidths"},borderBlockStartWidth:{values:"borderWidths"},borderTopWidth:{values:"borderWidths"},borderBottomWidth:{values:"borderWidths"},borderBlockEndWidth:{values:"borderWidths"},borderRightWidth:{values:"borderWidths"},borderInlineWidth:{values:"borderWidths",shorthand:["borderXWidth"]},borderInlineStartWidth:{values:"borderWidths",shorthand:["borderStartWidth"]},borderInlineEndWidth:{values:"borderWidths",shorthand:["borderEndWidth"]},borderLeftWidth:{values:"borderWidths"},borderBlockWidth:{values:"borderWidths",shorthand:["borderYWidth"]},color:{values:Me,transform:Be("color")},fill:{values:Me,transform:Be("fill")},stroke:{values:Me,transform:Be("stroke")},accentColor:{values:Me,transform:Be("accentColor")},divideX:{values:{type:"string"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderInlineStartWidth:e,borderInlineEndWidth:"0px"}}}},divideY:{values:{type:"string"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderTopWidth:e,borderBottomWidth:"0px"}}}},divideColor:{values:Me,transform(e,t){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":u5(e,t)}}},divideStyle:{property:"borderStyle",transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderStyle:e}}}},boxShadow:{values:"shadows",shorthand:["shadow"]},boxShadowColor:{values:Me,transform:Be("--shadow-color"),shorthand:["shadowColor"]},mixBlendMode:{shorthand:["blendMode"]},backgroundBlendMode:{shorthand:["bgBlendMode"]},opacity:{values:"opacity"},filter:{transform(e){return e!=="auto"?{filter:e}:{filter:"var(--blur) var(--brightness) var(--contrast) var(--grayscale) var(--hue-rotate) var(--invert) var(--saturate) var(--sepia) var(--drop-shadow)"}}},blur:{values:"blurs",transform:e=>({"--blur":Ct("blur",e)})},brightness:{transform:e=>({"--brightness":Ct("brightness",e)})},contrast:{transform:e=>({"--contrast":Ct("contrast",e)})},grayscale:{transform:e=>({"--grayscale":Ct("grayscale",e)})},hueRotate:{transform:e=>({"--hue-rotate":Ct("hue-rotate",zo(e))})},invert:{transform:e=>({"--invert":Ct("invert",e)})},saturate:{transform:e=>({"--saturate":Ct("saturate",e)})},sepia:{transform:e=>({"--sepia":Ct("sepia",e)})},dropShadow:{transform:e=>({"--drop-shadow":Ct("drop-shadow",e)})},backdropFilter:{transform(e){return e!=="auto"?{backdropFilter:e}:{backdropFilter:"var(--backdrop-blur) var(--backdrop-brightness) var(--backdrop-contrast) var(--backdrop-grayscale) var(--backdrop-hue-rotate) var(--backdrop-invert) var(--backdrop-opacity) var(--backdrop-saturate) var(--backdrop-sepia)"}}},backdropBlur:{values:"blurs",transform:e=>({"--backdrop-blur":Ct("blur",e)})},backdropBrightness:{transform:e=>({"--backdrop-brightness":Ct("brightness",e)})},backdropContrast:{transform:e=>({"--backdrop-contrast":Ct("contrast",e)})},backdropGrayscale:{transform:e=>({"--backdrop-grayscale":Ct("grayscale",e)})},backdropHueRotate:{transform:e=>({"--backdrop-hue-rotate":Ct("hue-rotate",zo(e))})},backdropInvert:{transform:e=>({"--backdrop-invert":Ct("invert",e)})},backdropOpacity:{transform:e=>({"--backdrop-opacity":Ct("opacity",e)})},backdropSaturate:{transform:e=>({"--backdrop-saturate":Ct("saturate",e)})},backdropSepia:{transform:e=>({"--backdrop-sepia":Ct("sepia",e)})},flexBasis:{values:"sizes"},gap:{values:"spacing"},rowGap:{values:"spacing",shorthand:["gapY"]},columnGap:{values:"spacing",shorthand:["gapX"]},flexDirection:{shorthand:["flexDir"]},gridGap:{values:"spacing"},gridColumnGap:{values:"spacing"},gridRowGap:{values:"spacing"},outlineColor:{values:Me,transform:Be("outlineColor")},focusRing:Zx("&:is(:focus, [data-focus])"),focusVisibleRing:Zx("&:is(:focus-visible, [data-focus-visible])"),focusRingColor:{values:Me,transform:Be("--focus-ring-color")},focusRingOffset:{values:"spacing",transform:e=>({"--focus-ring-offset":e})},focusRingWidth:{values:"borderWidths",property:"outlineWidth",transform:e=>({"--focus-ring-width":e})},focusRingStyle:{values:"borderStyles",property:"outlineStyle",transform:e=>({"--focus-ring-style":e})},aspectRatio:{values:"aspectRatios"},width:{values:"sizes",shorthand:["w"]},inlineSize:{values:"sizes"},height:{values:"sizes",shorthand:["h"]},blockSize:{values:"sizes"},boxSize:{values:"sizes",property:"width",transform:e=>({width:e,height:e})},minWidth:{values:"sizes",shorthand:["minW"]},minInlineSize:{values:"sizes"},minHeight:{values:"sizes",shorthand:["minH"]},minBlockSize:{values:"sizes"},maxWidth:{values:"sizes",shorthand:["maxW"]},maxInlineSize:{values:"sizes"},maxHeight:{values:"sizes",shorthand:["maxH"]},maxBlockSize:{values:"sizes"},hideFrom:{values:"breakpoints",transform:(e,{raw:t,token:n})=>({[n.raw(`breakpoints.${t}`)?`@breakpoint ${t}`:`@media screen and (min-width: ${e})`]:{display:"none"}})},hideBelow:{values:"breakpoints",transform(e,{raw:t,token:n}){return{[n.raw(`breakpoints.${t}`)?`@breakpoint ${t}Down`:`@media screen and (max-width: ${e})`]:{display:"none"}}}},overscrollBehavior:{shorthand:["overscroll"]},overscrollBehaviorX:{shorthand:["overscrollX"]},overscrollBehaviorY:{shorthand:["overscrollY"]},scrollbar:{values:["visible","hidden"],transform(e){switch(e){case"visible":return{msOverflowStyle:"auto",scrollbarWidth:"auto","&::-webkit-scrollbar":{display:"block"}};case"hidden":return{msOverflowStyle:"none",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}};default:return{}}}},scrollbarColor:{values:Me,transform:Be("scrollbarColor")},scrollbarGutter:{values:"spacing"},scrollbarWidth:{values:"sizes"},scrollMargin:{values:"spacing"},scrollMarginTop:{values:"spacing"},scrollMarginBottom:{values:"spacing"},scrollMarginLeft:{values:"spacing"},scrollMarginRight:{values:"spacing"},scrollMarginX:{values:"spacing",transform:e=>({scrollMarginLeft:e,scrollMarginRight:e})},scrollMarginY:{values:"spacing",transform:e=>({scrollMarginTop:e,scrollMarginBottom:e})},scrollPadding:{values:"spacing"},scrollPaddingTop:{values:"spacing"},scrollPaddingBottom:{values:"spacing"},scrollPaddingLeft:{values:"spacing"},scrollPaddingRight:{values:"spacing"},scrollPaddingInline:{values:"spacing",shorthand:["scrollPaddingX"]},scrollPaddingBlock:{values:"spacing",shorthand:["scrollPaddingY"]},scrollSnapType:{values:{none:"none",x:"x var(--scroll-snap-strictness)",y:"y var(--scroll-snap-strictness)",both:"both var(--scroll-snap-strictness)"}},scrollSnapStrictness:{values:["mandatory","proximity"],transform:e=>({"--scroll-snap-strictness":e})},scrollSnapMargin:{values:"spacing"},scrollSnapMarginTop:{values:"spacing"},scrollSnapMarginBottom:{values:"spacing"},scrollSnapMarginLeft:{values:"spacing"},scrollSnapMarginRight:{values:"spacing"},listStylePosition:{shorthand:["listStylePos"]},listStyleImage:{values:"assets",shorthand:["listStyleImg"]},position:{shorthand:["pos"]},zIndex:{values:"zIndex"},inset:{values:"spacing"},insetInline:{values:"spacing",shorthand:["insetX"]},insetBlock:{values:"spacing",shorthand:["insetY"]},top:{values:"spacing"},insetBlockStart:{values:"spacing"},bottom:{values:"spacing"},insetBlockEnd:{values:"spacing"},left:{values:"spacing"},right:{values:"spacing"},insetInlineStart:{values:"spacing",shorthand:["insetStart"]},insetInlineEnd:{values:"spacing",shorthand:["insetEnd"]},ring:{transform(e){return{"--ring-offset-shadow":"var(--ring-inset) 0 0 0 var(--ring-offset-width) var(--ring-offset-color)","--ring-shadow":"var(--ring-inset) 0 0 0 calc(var(--ring-width) + var(--ring-offset-width)) var(--ring-color)","--ring-width":e,boxShadow:"var(--ring-offset-shadow), var(--ring-shadow), var(--shadow, 0 0 #0000)"}}},ringColor:{values:Me,transform:Be("--ring-color")},ringOffset:{transform:e=>({"--ring-offset-width":e})},ringOffsetColor:{values:Me,transform:Be("--ring-offset-color")},ringInset:{transform:e=>({"--ring-inset":e})},margin:{values:"spacing",shorthand:["m"]},marginTop:{values:"spacing",shorthand:["mt"]},marginBlockStart:{values:"spacing"},marginRight:{values:"spacing",shorthand:["mr"]},marginBottom:{values:"spacing",shorthand:["mb"]},marginBlockEnd:{values:"spacing"},marginLeft:{values:"spacing",shorthand:["ml"]},marginInlineStart:{values:"spacing",shorthand:["ms","marginStart"]},marginInlineEnd:{values:"spacing",shorthand:["me","marginEnd"]},marginInline:{values:"spacing",shorthand:["mx","marginX"]},marginBlock:{values:"spacing",shorthand:["my","marginY"]},padding:{values:"spacing",shorthand:["p"]},paddingTop:{values:"spacing",shorthand:["pt"]},paddingRight:{values:"spacing",shorthand:["pr"]},paddingBottom:{values:"spacing",shorthand:["pb"]},paddingBlockStart:{values:"spacing"},paddingBlockEnd:{values:"spacing"},paddingLeft:{values:"spacing",shorthand:["pl"]},paddingInlineStart:{values:"spacing",shorthand:["ps","paddingStart"]},paddingInlineEnd:{values:"spacing",shorthand:["pe","paddingEnd"]},paddingInline:{values:"spacing",shorthand:["px","paddingX"]},paddingBlock:{values:"spacing",shorthand:["py","paddingY"]},textDecoration:{shorthand:["textDecor"]},textDecorationColor:{values:Me,transform:Be("textDecorationColor")},textShadow:{values:"shadows"},transform:{transform:e=>{let t=e;return e==="auto"&&(t="translateX(var(--translate-x, 0)) translateY(var(--translate-y, 0)) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),e==="auto-gpu"&&(t="translate3d(var(--translate-x, 0), var(--translate-y, 0), 0) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),{transform:t}}},skewX:{transform:e=>({"--skew-x":zo(e)})},skewY:{transform:e=>({"--skew-y":zo(e)})},scaleX:{transform:e=>({"--scale-x":e})},scaleY:{transform:e=>({"--scale-y":e})},scale:{transform(e){return e!=="auto"?{scale:e}:{scale:"var(--scale-x, 1) var(--scale-y, 1)"}}},spaceXReverse:{values:{type:"boolean"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":e?"1":void 0}}}},spaceX:{property:"marginInlineStart",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":"0",marginInlineStart:`calc(${e} * calc(1 - var(--space-x-reverse)))`,marginInlineEnd:`calc(${e} * var(--space-x-reverse))`}})},spaceYReverse:{values:{type:"boolean"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":e?"1":void 0}}}},spaceY:{property:"marginTop",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":"0",marginTop:`calc(${e} * calc(1 - var(--space-y-reverse)))`,marginBottom:`calc(${e} * var(--space-y-reverse))`}})},rotate:{transform(e){return e!=="auto"?{rotate:zo(e)}:{rotate:"var(--rotate-x, 0) var(--rotate-y, 0) var(--rotate-z, 0)"}}},rotateX:{transform(e){return{"--rotate-x":zo(e)}}},rotateY:{transform(e){return{"--rotate-y":zo(e)}}},translate:{transform(e){return e!=="auto"?{translate:e}:{translate:"var(--translate-x) var(--translate-y)"}}},translateX:{values:"spacing",transform:e=>({"--translate-x":e})},translateY:{values:"spacing",transform:e=>({"--translate-y":e})},transition:{values:["all","common","colors","opacity","position","backgrounds","size","shadow","transform"],transform(e){switch(e){case"all":return Sr("all");case"position":return Sr("left, right, top, bottom, inset-inline, inset-block");case"colors":return Sr("color, background-color, border-color, text-decoration-color, fill, stroke");case"opacity":return Sr("opacity");case"shadow":return Sr("box-shadow");case"transform":return Sr("transform");case"size":return Sr("width, height");case"backgrounds":return Sr("background, background-color, background-image, background-position");case"common":return Sr("color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter");default:return{transition:e}}}},transitionDuration:{values:"durations"},transitionProperty:{values:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, translate, transform",colors:"background-color, border-color, color, fill, stroke",size:"width, height",position:"left, right, top, bottom, inset-inline, inset-block",background:"background, background-color, background-image, background-position"}},transitionTimingFunction:{values:"easings"},animation:{values:"animations"},animationDuration:{values:"durations"},animationDelay:{values:"durations"},animationTimingFunction:{values:"easings"},fontFamily:{values:"fonts"},fontSize:{values:"fontSizes"},fontWeight:{values:"fontWeights"},lineHeight:{values:"lineHeights"},letterSpacing:{values:"letterSpacings"},textIndent:{values:"spacing"},truncate:{values:{type:"boolean"},transform(e){return e===!0?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{}}},lineClamp:{transform(e){return e==="none"?{WebkitLineClamp:"unset"}:{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",textWrap:"wrap"}}},borderSpacing:{values:e=>({...e("spacing"),auto:"var(--border-spacing-x, 0) var(--border-spacing-y, 0)"})},borderSpacingX:{values:"spacing",transform(e){return{"--border-spacing-x":e}}},borderSpacingY:{values:"spacing",transform(e){return{"--border-spacing-y":e}}},srOnly:{values:{type:"boolean"},transform(e){return g5[e]||{}}},debug:{values:{type:"boolean"},transform(e){return e?{outline:"1px solid blue !important","& > *":{outline:"1px solid red !important"}}:{}}},caretColor:{values:Me,transform:Be("caretColor")},cursor:{values:"cursor"}}}),g5={true:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},false:{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto",whiteSpace:"normal"}};var p5="",h5=p5.split(","),m5="WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,WebkitUserSelect,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,anchorName,anchorScope,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationRange,animationRangeEnd,animationRangeStart,animationTimeline,animationTimingFunction,appearance,aspectRatio,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockSize,border,borderBlock,borderBlockColor,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBlockStyle,borderBlockWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineColor,borderInlineEnd,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderInlineStyle,borderInlineWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,clipRule,color,colorInterpolationFilters,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,cx,cy,d,direction,display,dominantBaseline,emptyCells,fieldSizing,fill,fillOpacity,fillRule,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,floodColor,floodOpacity,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontVariationSettings,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,interpolateSize,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lightingColor,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,marker,markerEnd,markerMid,markerStart,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overlay,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,positionAnchor,positionArea,positionTry,positionTryFallbacks,positionTryOrder,positionVisibility,printColorAdjust,quotes,r,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,rx,ry,scale,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginBottom,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockEnd,scrollPaddingBlockStart,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,scrollbarColor,scrollbarGutter,scrollbarWidth,shapeImageThreshold,shapeMargin,shapeOutside,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,tabSize,tableLayout,textAlign,textAlignLast,textAnchor,textBox,textBoxEdge,textBoxTrim,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textSpacingTrim,textTransform,textUnderlineOffset,textUnderlinePosition,textWrap,textWrapMode,textWrapStyle,timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,vectorEffect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,visibility,whiteSpace,whiteSpaceCollapse,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,x,y,zIndex,zoom,alignmentBaseline,baselineShift,colorInterpolation,colorRendering,glyphOrientationVertical",v5=m5.split(",").concat(h5),y5=new Map(v5.map(e=>[e,!0]));function b5(e){const t=Object.create(null);return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}var x5=/&|@/,w5=b5(e=>y5.has(e)||e.startsWith("--")||x5.test(e));function jn(e,t){const n={};for(const r in e){const i=t(r,e[r]);n[i[0]]=i[1]}return n}function tk(e,t){const n={};return lr(e,(r,i)=>{r&&(n[i.join(".")]=r.value)},{stop:t}),n}var C5=Object.defineProperty,S5=(e,t,n)=>t in e?C5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,e0=(e,t,n)=>S5(e,typeof t!="symbol"?t+"":t,n);function Ru(e){if(e===null)return"null";if(e===void 0)return"undefined";const t=typeof e;return t==="string"?`s:${e}`:t==="number"?`n:${e}`:t==="boolean"?`b:${e}`:t==="function"?`f:${e.name||"anonymous"}`:Array.isArray(e)?`a:[${e.map(Ru).join(",")}]`:t==="object"?`o:{${Object.keys(e).sort().map(r=>`${r}:${Ru(e[r])}`).join(",")}}`:String(e)}class E5{constructor(t=500){e0(this,"cache",new Map),e0(this,"maxSize"),this.maxSize=t}get(t){const n=this.cache.get(t);return n!==void 0&&(this.cache.delete(t),this.cache.set(t,n)),n}set(t,n){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){const r=this.cache.keys().next().value;r!==void 0&&this.cache.delete(r)}this.cache.set(t,n)}clear(){this.cache.clear()}}const rn=e=>{const t=new E5;function n(...r){const i=r.length===1?Ru(r[0]):r.map(Ru).join("|");let a=t.get(i);return a===void 0&&(a=e.apply(this,r),t.set(i,a)),a}return n},nk=16,Nu="px",Vh="em",Ua="rem";function rk(e=""){const t=new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`),n=new RegExp(`${Nu}|${Vh}|${Ua}`);return e.match(new RegExp(`${t.source}(${n.source})`))?.[1]}function ok(e=""){if(typeof e=="number")return`${e}px`;const t=rk(e);if(!t||t===Nu)return e;if(t===Vh||t===Ua)return`${parseFloat(e)*nk}${Nu}`}function ik(e=""){const t=rk(e);if(!t||t===Ua)return e;if(t===Vh)return`${parseFloat(e)}${Ua}`;if(t===Nu)return`${parseFloat(e)/nk}${Ua}`}const k5=e=>e.charAt(0).toUpperCase()+e.slice(1);function P5(e){const t=I5(e),n=Object.fromEntries(t);function r(b){return n[b]}function i(b){return Bi(r(b))}function a(){const b=Object.keys(n),v=T5(b),w=b.flatMap(x=>{const E=r(x),O=[`${x}Down`,Bi({max:gu(E.min)})],N=[x,Bi({min:E.min})],R=[`${x}Only`,i(x)];return[N,R,O]}).filter(([,x])=>x!=="").concat(v.map(([x,E])=>{const O=r(x),N=r(E);return[`${x}To${k5(E)}`,Bi({min:O.min,max:gu(N.min)})]}));return Object.fromEntries(w)}function c(){const b=a();return Object.fromEntries(Object.entries(b))}const u=c(),f=b=>u[b];function p(){return _p(["base",...Object.keys(n)])}function h(b){return Bi({min:r(b).min})}function y(b){return Bi({max:gu(r(b).min)})}return{values:Object.values(n),only:i,keys:p,conditions:u,getCondition:f,up:h,down:y}}function gu(e){const t=parseFloat(ok(e)??"")-.04;return ik(`${t}px`)}function I5(e){return Object.entries(e).sort(([,n],[,r])=>parseInt(n,10)<parseInt(r,10)?-1:1).map(([n,r],i,a)=>{let c=null;return i<=a.length-1&&(c=a[i+1]?.[1]),c!=null&&(c=gu(c)),[n,{name:n,min:ik(r),max:c}]})}function T5(e){const t=[];return e.forEach((n,r)=>{let i=r;i++;let a=e[i];for(;a;)t.push([n,a]),i++,a=e[i]}),t}function Bi({min:e,max:t}){return e==null&&t==null?"":["@media screen",e&&`(min-width: ${e})`,t&&`(max-width: ${t})`].filter(Boolean).join(" and ")}const O5=/^@|&|&$/,R5=e=>{const{breakpoints:t,conditions:n={}}=e,r=jn(n,(h,y)=>[`_${h}`,y]),i=Object.assign({},r,t.conditions);function a(){return Object.keys(i)}function c(h){return a().includes(h)||O5.test(h)||h.startsWith("_")}const u=rn(h=>h.filter(y=>y!=="base").sort((y,b)=>{const v=c(y),w=c(b);return v&&!w?1:!v&&w?-1:0}));function f(h){return h.startsWith("@breakpoint")?t.getCondition(h.replace("@breakpoint ","")):h}function p(h){return Reflect.get(i,h)||h}return{keys:a,sort:u,has:c,resolve:p,breakpoints:t.keys(),expandAtRule:f}},He=Object.freeze(Object.create(null)),N5=Object.freeze([]);function sd(){return Object.create(null)}const sk=e=>({minMax:new RegExp(`(!?\\(\\s*min(-device-)?-${e})(.|
|
|
15
|
+
)+\\(\\s*max(-device)?-${e}`,"i"),min:new RegExp(`\\(\\s*min(-device)?-${e}`,"i"),maxMin:new RegExp(`(!?\\(\\s*max(-device)?-${e})(.|
|
|
16
|
+
)+\\(\\s*min(-device)?-${e}`,"i"),max:new RegExp(`\\(\\s*max(-device)?-${e}`,"i")}),A5=sk("width"),V5=sk("height"),ak=e=>({isMin:s0(e.minMax,e.maxMin,e.min),isMax:s0(e.maxMin,e.minMax,e.max)}),{isMin:xp,isMax:t0}=ak(A5),{isMin:wp,isMax:n0}=ak(V5),r0=/print/i,o0=/^print$/i,_5=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/,L5=/(\d)/,Wa=Number.MAX_VALUE,$5={ch:8.8984375,em:16,rem:16,ex:8.296875,px:1};function i0(e){const t=_5.exec(e)||(xp(e)||wp(e)?L5.exec(e):null);if(!t)return Wa;if(t[0]==="0")return 0;const n=parseFloat(t[1]),r=t[2];return n*($5[r]||1)}function s0(e,t,n){return r=>e.test(r)||!t.test(r)&&n.test(r)}function D5(e,t){const n=r0.test(e),r=o0.test(e),i=r0.test(t),a=o0.test(t);return n&&i?!r&&a?1:r&&!a?-1:e.localeCompare(t):n?1:i?-1:null}const z5=rn((e,t)=>{const n=D5(e,t);if(n!==null)return n;const r=xp(e)||wp(e),i=t0(e)||n0(e),a=xp(t)||wp(t),c=t0(t)||n0(t);if(r&&c)return-1;if(i&&a)return 1;const u=i0(e),f=i0(t);return u===Wa&&f===Wa?e.localeCompare(t):u===Wa?1:f===Wa?-1:u!==f?u>f?i?-1:1:i?1:-1:e.localeCompare(t)});function a0(e){return e.sort(([t],[n])=>z5(t,n))}function lk(e){const t=[],n=[],r={};for(const[c,u]of Object.entries(e))c.startsWith("@media")?t.push([c,u]):c.startsWith("@container")?n.push([c,u]):nn(u)?r[c]=lk(u):r[c]=u;const i=a0(t),a=a0(n);return{...r,...Object.fromEntries(i),...Object.fromEntries(a)}}const ck=/\s*!(important)?/i,F5=rn(e=>hn(e)?ck.test(e):!1),M5=rn(e=>hn(e)?e.replace(ck,"").trim():e);function uk(e){const{transform:t,conditions:n,normalize:r}=e,i=H5(e);return rn(function(...c){const u=i(...c),f=r(u),p=sd();return lr(f,(h,y)=>{const b=F5(h);if(h==null)return;const[v,...w]=n.sort(y).map(n.resolve);b&&(h=M5(h));let x=t(v,h)??He;x=lr(x,E=>hn(E)&&b?`${E} !important`:E,{getKey:E=>n.expandAtRule(E)}),B5(p,w.flat(),x)}),lk(p)})}function B5(e,t,n){let r=e;for(const i of t)i&&(r[i]||(r[i]=sd()),r=r[i]);Es(r,n)}function W5(...e){return e.filter(t=>{if(!nn(t))return!1;const n=nl(t);return Object.keys(n).length>0})}function H5(e){function t(n){const r=W5(...n);return r.length===1?r:r.map(i=>e.normalize(i))}return rn(function(...r){return Es({},...t(r))})}const dk=e=>({base:He,variants:He,defaultVariants:He,compoundVariants:[],...e});function j5(e){const{css:t,conditions:n,normalize:r,layers:i}=e;function a(u={}){const f=dk(u),{base:p,defaultVariants:h,compoundVariants:y}=f,b=jn(f.variants,(R,S)=>[R,jn(S,(T,L)=>[T,r(L)])]),v=uk({conditions:n,normalize:r,transform(R,S){return b[R]?.[S]}}),w=(R={})=>{const S=r({...h,...nl(R)});let T={...p};Es(T,v(S));const L=c(y,S);return i.wrap("recipes",t(T,L))},x=Object.keys(b),E=R=>{const S=Nh(R,["recipe"]),[T,L]=es(S,x),M=x.includes("colorPalette"),B=x.includes("orientation");return M||(T.colorPalette=R.colorPalette||h.colorPalette),B&&(L.orientation=R.orientation),[T,L]},O=jn(b,(R,S)=>[R,Object.keys(S)]);return Object.assign(R=>t(w(R)),{className:u.className,__cva__:!0,variantMap:O,variantKeys:x,raw:w,config:u,splitVariantProps:E,merge(R){return a(G5(e)(this,R))}})}function c(u,f){let p=He;return u.forEach(h=>{Object.entries(h).every(([b,v])=>b==="css"?!0:(Array.isArray(v)?v:[v]).some(x=>f[b]===x))&&(p=t(p,h.css))}),p}return a}function G5(e){const{css:t}=e;return function(r,i){const a=dk(i.config),c=_p(r.variantKeys,Object.keys(i.variants)),u=t(r.base,a.base),f=Object.fromEntries(c.map(b=>[b,t(r.config.variants[b],a.variants[b])])),p=Es(r.config.defaultVariants,a.defaultVariants),h=[...r.compoundVariants,...a.compoundVariants];return{className:St(r.className,i.className),base:u,variants:f,defaultVariants:p,compoundVariants:h}}}const U5={reset:"reset",base:"base",tokens:"tokens",recipes:"recipes"},l0={reset:0,base:1,tokens:2,recipes:3};function K5(e){const t=e.layers??U5,r=Object.values(t).sort((i,a)=>l0[i]-l0[a]);return{names:r,atRule:`@layer ${r.join(", ")};`,wrap(i,a){return e.disableLayers?a:{[`@layer ${t[i]}`]:a}}}}function Y5(e){const{utility:t,normalize:n}=e,{hasShorthand:r,resolveShorthand:i}=t;return function(a){return lr(a,n,{stop:c=>Array.isArray(c),getKey:r?i:void 0})}}function X5(e){const{preflight:t}=e;if(!t)return{};const{scope:n="",level:r="parent"}=nn(t)?t:{};let i="";n&&r==="parent"?i=`${n} `:n&&r==="element"&&(i=`&${n}`);const a={"*":{margin:"0px",padding:"0px",font:"inherit",wordWrap:"break-word",WebkitTapHighlightColor:"transparent"},"*, *::before, *::after, *::backdrop":{boxSizing:"border-box",borderWidth:"0px",borderStyle:"solid",borderColor:"var(--global-color-border, currentColor)"},hr:{height:"0px",color:"inherit",borderTopWidth:"1px"},body:{minHeight:"100dvh",position:"relative"},img:{borderStyle:"none"},"img, svg, video, canvas, audio, iframe, embed, object":{display:"block",verticalAlign:"middle"},iframe:{border:"none"},"img, video":{maxWidth:"100%",height:"auto"},"p, h1, h2, h3, h4, h5, h6":{overflowWrap:"break-word"},"ol, ul":{listStyle:"none"},"code, kbd, pre, samp":{fontSize:"1em"},"button, [type='button'], [type='reset'], [type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},"button, input, optgroup, select, textarea":{color:"inherit"},"button, select":{textTransform:"none"},table:{textIndent:"0px",borderColor:"inherit",borderCollapse:"collapse"},"*::placeholder":{opacity:"unset",color:"#9ca3af",userSelect:"none"},textarea:{resize:"vertical"},summary:{display:"list-item"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},dialog:{padding:"0px"},a:{color:"inherit",textDecoration:"inherit"},"abbr:where([title])":{textDecoration:"underline dotted"},"b, strong":{fontWeight:"bolder"},"code, kbd, samp, pre":{fontSize:"1em","--font-mono-fallback":"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New'",fontFamily:"var(--global-font-mono, var(--font-mono-fallback))"},'input[type="text"], input[type="email"], input[type="search"], input[type="password"]':{WebkitAppearance:"none",MozAppearance:"none"},"input[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration, ::-webkit-search-cancel-button":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},'input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button':{height:"auto"},"input[type='number']":{MozAppearance:"textfield"},":-moz-ui-invalid":{boxShadow:"none"},":-moz-focusring":{outline:"auto"},"[hidden]:where(:not([hidden='until-found']))":{display:"none !important"}},c={[n||"html"]:{lineHeight:1.5,"--font-fallback":"ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",WebkitTextSizeAdjust:"100%",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",textRendering:"optimizeLegibility",touchAction:"manipulation",MozTabSize:"4",tabSize:"4",fontFamily:"var(--global-font-body, var(--font-fallback))"}};if(r==="element"){const u=Object.entries(a).reduce((f,[p,h])=>(f[p]={[i]:h},f),{});Object.assign(c,u)}else i?c[i]=a:Object.assign(c,a);return c}function q5(e){const{conditions:t,isValidProperty:n}=e;return function(i){return lr(i,a=>a,{getKey:(a,c)=>nn(c)&&!t.has(a)&&!n(a)?Z5(a).map(u=>{const f=u.startsWith("&")?u.slice(1):u;return Q5(f)?`${f} &`:`&${f}`}).join(", "):a})}}function Q5(e){const t=e.toLowerCase();return t.startsWith(":host-context")||t.startsWith(":host")||t.startsWith("::slotted")}function Z5(e){const t=[];let n=0,r="",i=!1;for(let a=0;a<e.length;a++){const c=e[a];if(c==="\\"&&!i){i=!0,r+=c;continue}if(i){i=!1,r+=c;continue}c==="("?n++:c===")"&&n--,c===","&&n===0?(t.push(r.trim()),r=""):r+=c}return r&&t.push(r.trim()),t}const J5=(e=He)=>{const t=i=>({base:e.base?.[i]??He,variants:sd(),defaultVariants:e.defaultVariants??He,compoundVariants:e.compoundVariants?e3(e.compoundVariants,i):N5}),r=(e.slots??[]).map(i=>[i,t(i)]);for(const[i,a]of Object.entries(e.variants??{}))for(const[c,u]of Object.entries(a))r.forEach(([f,p])=>{var h;(h=p.variants)[i]??(h[i]={}),p.variants[i][c]=u[f]??He});return Object.fromEntries(r)},e3=(e,t)=>e.filter(n=>n.css[t]).map(n=>({...n,css:n.css[t]}));function t3(e){const{cva:t}=e;return function(r=He){const i=Object.entries(J5(r)).map(([y,b])=>[y,t(b)]);function a(y){const b=i.map(([v,w])=>[v,w(y)]);return Object.fromEntries(b)}const c=r.variants??He,u=Object.keys(c);function f(y){const b=Nh(y,["recipe"]),[v,w]=es(b,u),x=u.includes("colorPalette"),E=u.includes("orientation");return x||(v.colorPalette=y.colorPalette||r.defaultVariants?.colorPalette),E&&(w.orientation=y.orientation),[v,w]}const p=jn(c,(y,b)=>[y,Object.keys(b)]);let h={};return r.className&&(h=Object.fromEntries(r.slots.map(y=>[y,`${r.className}__${y}`]))),Object.assign(a,{variantMap:p,variantKeys:u,splitVariantProps:f,classNameMap:h})}}const n3=()=>e=>Array.from(new Set(e)),r3=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,o3=function(e,t){return t?e==="\0"?"�":e==="-"&&e.length===1?"\\-":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16):"\\"+e},fk=e=>(e+"").replace(r3,o3),gk=(e,t)=>{let n="",r=0,i="char",a="",c="";const u=[];for(;r<e.length;){const f=e[r];if(f==="{"){const h=e.indexOf("}",r);if(h===-1)break;const y=e.slice(r+1,h),b=t(y);n+=b??y,r=h+1;continue}if(i==="token"&&f===","){e[r]===""&&r++,i="fallback",u.push(i);const h=t(a);h?.endsWith(")")&&(n+=h.slice(0,-1)),a="",c="";continue}if(i==="fallback"&&c+f===", var("){const b=i3(e.slice(r+1))+r+1,v=e.slice(r+1,b);if(b===-1)break;n+=", var("+v+")",r=b+1,i=u.pop()??i,c="";continue}if(i==="token"||i==="fallback"){if(r++,f===")"){i=u.pop()??i??"char",c+=f;const h=a&&(t(a)??fk(a));if(c){if(c=c.slice(1).trim(),!c.startsWith("token(")&&c.endsWith(")")&&(c=c.slice(0,-1)),c.includes("token(")){const b=gk(c,t);b&&(c=b.slice(0,-1))}else if(c){const b=t(c);b&&(c=b)}}const y=n.at(-1);c?y?.trim()?n+=h.slice(0,-1)+(", "+c+")"):n+=c:n+=h||")",a="",c="",i="char";continue}i==="token"&&(a+=f),i==="fallback"&&(c+=f);continue}const p=e.indexOf("token(",r);if(p!==-1){const h=p+6;n+=e.slice(r,p),r=h,i="token",u.push(i);continue}n+=f,r++}return n},i3=e=>{let t=0;const n=["("];for(;t<e.length;){const r=e[t];if(r==="(")n.push(r);else if(r===")"&&(n.pop(),n.length===0))return t;t++}return t};function pk(e){const t={};return e.forEach((n,r)=>{n instanceof Map?t[r]=Object.fromEntries(n):t[r]=n}),t}const hk=/({([^}]*)})/g,s3=/[{}]/g,a3=/\w+\.\w+/,mk=e=>{if(!hn(e))return[];const t=e.match(hk);return t?t.map(n=>n.replace(s3,"").trim()):[]},l3=e=>hk.test(e);function vk(e){if(!e.extensions?.references)return e.extensions?.cssVar?.ref??e.value;const t=e.extensions.references??{};let n=e.value;const r=Object.keys(t);for(let i=0;i<r.length;i++){const a=r[i],c=t[a];if(c.extensions.conditions)continue;const u=vk(c);n=n.replace(`{${a}}`,u)}return e.value=n,delete e.extensions.references,e.value}const c3=/calc/g;function yk(e){return nn(e)&&e.reference?e.reference:String(e)}const ad=(e,...t)=>t.map(yk).join(` ${e} `).replace(c3,""),c0=(...e)=>`calc(${ad("+",...e)})`,u0=(...e)=>`calc(${ad("-",...e)})`,Cp=(...e)=>`calc(${ad("*",...e)})`,d0=(...e)=>`calc(${ad("/",...e)})`,f0=e=>{const t=yk(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Cp(t,-1)},Gi=Object.assign(e=>({add:(...t)=>Gi(c0(e,...t)),subtract:(...t)=>Gi(u0(e,...t)),multiply:(...t)=>Gi(Cp(e,...t)),divide:(...t)=>Gi(d0(e,...t)),negate:()=>Gi(f0(e)),toString:()=>e.toString()}),{add:c0,subtract:u0,multiply:Cp,divide:d0,negate:f0}),u3={enforce:"pre",transform(e){const{prefix:t,allTokens:n,formatCssVar:r,formatTokenName:i,registerToken:a}=e;n.filter(({extensions:u})=>u.category==="spacing").forEach(u=>{const f=u.path.slice(),p=r(f,t);if(hn(u.value)&&u.value==="0rem")return;const h=[...u.path],y=h[h.length-1];y!=null&&(h[h.length-1]=`-${y}`);const b={...u,value:Gi.negate(p.ref),name:i(h),path:h,extensions:{...u.extensions,negative:!0,prop:`-${u.extensions.prop}`,originalPath:f}};a(b)})}},d3=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),f3={enforce:"post",transform(e){e.allTokens.filter(n=>d3.has(n.extensions.category)&&!n.extensions.negative).forEach(n=>{Object.assign(n.extensions,{pixelValue:ok(n.value)})})}},g3={enforce:"post",transform(e){const{allTokens:t,registerToken:n,formatTokenName:r}=e,i=t.filter(({extensions:u})=>u.category==="colors"),a=new Map,c=new Map;i.forEach(u=>{const{colorPalette:f}=u.extensions;f&&(f.keys.forEach(p=>{a.set(r(p),p)}),f.roots.forEach(p=>{const h=r(p),y=c.get(h)||[];if(y.push(u),c.set(h,y),u.extensions.default&&p.length===1){const b=f.keys[0]?.filter(Boolean);if(!b.length)return;const v=p.concat(b);a.set(r(v),[])}}))}),a.forEach(u=>{const f=["colors","colorPalette",...u].filter(Boolean),p=r(f),h=r(f.slice(1));n({name:p,value:p,originalValue:p,path:f,extensions:{condition:"base",originalPath:f,category:"colors",prop:h,virtual:!0}},"pre")})}},p3={enforce:"post",transform(e){e.allTokens=e.allTokens.filter(t=>t.value!=="")}},h3=[u3,g3,f3,p3],m3={type:"extensions",enforce:"pre",name:"tokens/css-var",transform(e,t){const{prefix:n,formatCssVar:r}=t,{negative:i,originalPath:a}=e.extensions,c=i?a:e.path;return{cssVar:r(c.filter(Boolean),n)}}},v3={enforce:"post",type:"value",name:"tokens/conditionals",transform(e,t){const{prefix:n,formatCssVar:r}=t,i=mk(e.value);return i.length&&i.forEach(a=>{const c=r(a.split("."),n);e.value=e.value.replace(`{${c.ref}}`,c)}),e.value}},y3={type:"extensions",enforce:"pre",name:"tokens/colors/colorPalette",match(e){return e.extensions.category==="colors"&&!e.extensions.virtual},transform(e,t){let n=e.path.slice();if(n.pop(),n.shift(),n.length===0){const u=[...e.path];u.shift(),n=u}if(n.length===0)return{};const r=n.reduce((u,f,p,h)=>{const y=h.slice(0,p+1);return u.push(y),u},[]),i=n[0],a=t.formatTokenName(n),c=e.path.slice(e.path.indexOf(i)+1).reduce((u,f,p,h)=>(u.push(h.slice(p)),u),[]);return c.length===0&&c.push([""]),{colorPalette:{value:a,roots:r,keys:c}}}},b3=[m3,v3,y3],g0=e=>nn(e)&&Object.prototype.hasOwnProperty.call(e,"value");function x3(e){return e?{breakpoints:id(e,t=>({value:t})),sizes:jn(e,(t,n)=>[`breakpoint-${t}`,{value:n}])}:{breakpoints:{},sizes:{}}}function w3(e){const{prefix:t="",tokens:n={},semanticTokens:r={},breakpoints:i={}}=e,a=X=>X.join("."),c=(X,Y)=>ek(X.join("-"),{prefix:Y}),u=[],f=new Map,p=new Map,h=new Map,y=new Map,b=new Map,v=new Map,w=new Map,x=new Map,E=[];function O(X,Y){u.push(X),f.set(X.name,X),Y&&x.forEach(we=>{we.enforce===Y&&Z(we,X)})}const N=x3(i),R=nl({...n,breakpoints:N.breakpoints,sizes:{...n.sizes,...N.sizes}});function S(){lr(R,(X,Y)=>{const we=Y.includes("DEFAULT");Y=p0(Y);const Oe=Y[0],Ge=a(Y),Ze=hn(X)?{value:X}:X,an={value:Ze.value,originalValue:Ze.value,name:Ge,path:Y,extensions:{condition:"base",originalPath:Y,category:Oe,prop:a(Y.slice(1))}};we&&(an.extensions.default=!0),O(an)},{stop:g0}),lr(r,(X,Y)=>{const we=Y.includes("DEFAULT");Y=bk(p0(Y));const Oe=Y[0],Ge=a(Y),Ze=hn(X.value)?{value:{base:X.value}}:X,an={value:Ze.value.base||"",originalValue:Ze.value.base||"",name:Ge,path:Y,extensions:{originalPath:Y,category:Oe,conditions:Ze.value,condition:"base",prop:a(Y.slice(1))}};we&&(an.extensions.default=!0),O(an)},{stop:g0})}function T(X){return f.get(X)}function L(X){const{condition:Y}=X.extensions;Y&&(p.has(Y)||p.set(Y,new Set),p.get(Y).add(X))}function M(X){const{category:Y,prop:we}=X.extensions;Y&&(w.has(Y)||w.set(Y,new Map),w.get(Y).set(we,X))}function B(X){const{condition:Y,negative:we,virtual:Oe,cssVar:Ge}=X.extensions;we||Oe||!Y||!Ge||(h.has(Y)||h.set(Y,new Map),h.get(Y).set(Ge.var,X.value))}function j(X){const{category:Y,prop:we,cssVar:Oe,negative:Ge}=X.extensions;if(!Y)return;v.has(Y)||v.set(Y,new Map);const Ze=Ge?X.extensions.conditions?X.originalValue:X.value:Oe.ref;v.get(Y).set(we,Ze),b.set([Y,we].join("."),Ze)}function W(X){const{colorPalette:Y,virtual:we,default:Oe}=X.extensions;!Y||we||Y.roots.forEach(Ge=>{const Ze=a(Ge);y.has(Ze)||y.set(Ze,new Map);const an=S3([...X.path],[...Ge]),vo=a(an),ri=T(vo);if(!ri||!ri.extensions.cssVar)return;const{var:Is}=ri.extensions.cssVar;if(y.get(Ze).set(Is,X.extensions.cssVar.ref),Oe&&Ge.length===1){const xl=a(["colors","colorPalette"]),oi=T(xl);if(!oi)return;const yo=a(X.path),pr=T(yo);if(!pr)return;const ii=Y.keys[0]?.filter(Boolean);if(!ii.length)return;const si=a(Ge.concat(ii));y.has(si)||y.set(si,new Map),y.get(si).set(oi.extensions.cssVar.var,pr.extensions.cssVar.ref)}})}let U={};function $(){u.forEach(X=>{L(X),M(X),B(X),j(X),W(X)}),U=pk(v)}const H=(X,Y)=>{if(!X||typeof X!="string")return{invalid:!0,value:X};const[we,Oe]=X.split("/");if(!we||!Oe)return{invalid:!0,value:we};const Ge=Y(we),Ze=T(`opacity.${Oe}`)?.value;if(!Ze&&isNaN(Number(Oe)))return{invalid:!0,value:we};const an=Ze?Number(Ze)*100+"%":`${Oe}%`,vo=Ge??we;return{invalid:!1,color:vo,value:`color-mix(in srgb, ${vo} ${an}, transparent)`}},ae=rn((X,Y)=>b.get(X)??Y),ne=rn(X=>U[X]||null),ce=rn(X=>gk(X,Y=>{if(!Y)return;if(Y.includes("/")){const Oe=H(Y,Ge=>ae(Ge));if(Oe.invalid)throw new Error("Invalid color mix at "+Y+": "+Oe.value);return Oe.value}const we=ae(Y);return we||(a3.test(Y)?fk(Y):Y)})),me={prefix:t,allTokens:u,tokenMap:f,registerToken:O,getByName:T,formatTokenName:a,formatCssVar:c,flatMap:b,cssVarMap:h,categoryMap:w,colorPaletteMap:y,getVar:ae,getCategoryValues:ne,expandReferenceInValue:ce};function oe(...X){X.forEach(Y=>{x.set(Y.name,Y)})}function ee(...X){E.push(...X)}function Z(X,Y){if(Y.extensions.references||Vp(X.match)&&!X.match(Y))return;const Oe=(Ge=>X.transform(Ge,me))(Y);switch(!0){case X.type==="extensions":Object.assign(Y.extensions,Oe);break;case X.type==="value":Y.value=Oe;break;default:Y[X.type]=Oe;break}}function _(X){E.forEach(Y=>{Y.enforce===X&&Y.transform(me)})}function G(X){x.forEach(Y=>{Y.enforce===X&&u.forEach(we=>{Z(Y,we)})})}function Ce(){u.forEach(X=>{const Y=C3(X);!Y||Y.length===0||Y.forEach(we=>{O(we)})})}function Ee(X){const Y=mk(X),we=[];for(let Oe=0;Oe<Y.length;Oe++){const Ge=T(Y[Oe]);Ge&&we.push(Ge)}return we}function ke(){u.forEach(X=>{if(!l3(X.value))return;const Y=Ee(X.value);X.extensions.references=Y.reduce((we,Oe)=>(we[Oe.name]=Oe,we),{})})}function Te(){u.forEach(X=>{vk(X)})}function Fe(){_("pre"),G("pre"),Ce(),ke(),Te(),_("post"),G("post"),$()}return S(),oe(...b3),ee(...h3),Fe(),me}function p0(e){return e[0]==="DEFAULT"?e:e.filter(t=>t!=="DEFAULT")}function bk(e){return e.filter(t=>t!=="base")}function C3(e){if(!e.extensions.conditions)return;const{conditions:t}=e.extensions,n=[];return lr(t,(r,i)=>{const a=bk(i);if(!a.length)return;const c={...e,value:r,extensions:{...e.extensions,condition:a.join(":")}};n.push(c)}),n}function S3(e,t){const n=e.findIndex((r,i)=>t.every((a,c)=>e[i+c]===a));return n===-1||(e.splice(n,t.length),e.splice(n,0,"colorPalette")),e}n3()(["aspectRatios","zIndex","opacity","colors","fonts","fontSizes","fontWeights","lineHeights","letterSpacings","sizes","shadows","spacing","radii","cursor","borders","borderWidths","borderStyles","durations","easings","animations","blurs","gradients","breakpoints","assets"]);function E3(e){return jn(e,(t,n)=>[t,n])}function k3(e){const t=E3(e.config),n=e.tokens,r=new Map,i=new Map;function a(B,j){t[B]=j,c(B,j)}const c=(B,j)=>{const W=x(j);W&&(i.set(B,W),y(B,j))},u=()=>{for(const[B,j]of Object.entries(t))j&&c(B,j)},f=()=>{for(const[B,j]of Object.entries(t)){const{shorthand:W}=j??{};if(!W)continue;(Array.isArray(W)?W:[W]).forEach($=>r.set($,B))}},p=()=>{const B=pk(n.colorPaletteMap);a("colorPalette",{values:Object.keys(B),transform:rn(j=>B[j])})},h=new Map,y=(B,j)=>{if(!j)return;const W=x(j,$=>`type:Tokens["${$}"]`);if(typeof W=="object"&&W.type){h.set(B,new Set([`type:${W.type}`]));return}if(W){const $=new Set(Object.keys(W));h.set(B,$)}const U=h.get(B)??new Set;j.property&&h.set(B,U.add(`CssProperties["${j.property}"]`))},b=()=>{for(const[B,j]of Object.entries(t))j&&y(B,j)},v=(B,j)=>{const W=h.get(B)??new Set;h.set(B,new Set([...W,...j]))},w=()=>{const B=new Map;for(const[j,W]of h.entries()){if(W.size===0){B.set(j,["string"]);continue}const U=Array.from(W).map($=>$.startsWith("CssProperties")?$:$.startsWith("type:")?$.replace("type:",""):JSON.stringify($));B.set(j,U)}return B},x=(B,j)=>{const{values:W}=B,U=$=>{const H=j?.($);return H?{[H]:H}:void 0};if(hn(W))return U?.(W)??n.getCategoryValues(W)??He;if(Array.isArray(W)){const $={};for(let H=0;H<W.length;H++)$[W[H]]=W[H];return $}return Vp(W)?W(j?U:n.getCategoryValues):W},E=rn((B,j)=>({[B]:B.startsWith("--")?n.getVar(j,j):j})),O=Object.assign(n.getVar,{raw:B=>n.getByName(B)}),N=rn((B,j)=>{const W=T(B);hn(j)&&!j.includes("_EMO_")&&(j=n.expandReferenceInValue(j));const U=t[W];if(!U)return E(W,j);const $=i.get(W)?.[j];if(!U.transform)return E(B,$??j);const H=ae=>QM(ae,O);return U.transform($??j,{raw:j,token:O,utils:{colorMix:H}})});function R(){f(),p(),u(),b()}R();const S=r.size>0,T=rn(B=>r.get(B)??B);return{keys:()=>[...Array.from(r.keys()),...Object.keys(t)],hasShorthand:S,transform:N,shorthands:r,resolveShorthand:T,register:a,getTypes:w,addPropertyType:v}}function P3(...e){const t=Q1(...e),{theme:n={},utilities:r={},globalCss:i={},cssVarsRoot:a=":where(:root, :host)",cssVarsPrefix:c="chakra",preflight:u}=t,f=K5(t),p=w3({breakpoints:n.breakpoints,tokens:n.tokens,semanticTokens:n.semanticTokens,prefix:c}),h=P5(n.breakpoints??He),y=R5({conditions:t.conditions??He,breakpoints:h}),b=k3({config:r,tokens:p});function v(){const{textStyles:ee,layerStyles:Z,animationStyles:_}=n,G=nl({textStyle:ee,layerStyle:Z,animationStyle:_});for(const[Ce,Ee]of Object.entries(G)){const ke=tk(Ee??He,xk);b.register(Ce,{values:Object.keys(ke),transform(Te){return R(ke[Te])}})}}v(),b.addPropertyType("animationName",Object.keys(n.keyframes??He));const w=new Set(["css",...b.keys(),...y.keys()]),x=rn(ee=>w.has(ee)||w5(ee)),E=ee=>{if(Array.isArray(ee)){const Z=sd();for(let _=0;_<ee.length;_++){const G=ee[_];if(G!=null){const Ce=y.breakpoints[_];Z[Ce]=G}}return Z}return ee},O=Y5({utility:b,normalize:E}),N=q5({conditions:y,isValidProperty:x}),R=uk({transform:b.transform,conditions:y,normalize:O}),S=j5({css:R,conditions:y,normalize:O,layers:f}),T=t3({cva:S});function L(){const ee={};for(const[Z,_]of p.cssVarMap.entries()){const G=Object.fromEntries(_);if(Object.keys(G).length===0)continue;const Ce=Z==="base"?a:y.resolve(Z),Ee=Ce.startsWith("@"),ke=R(N({[Ce]:Ee?{[a]:G}:G}));Es(ee,ke)}return f.wrap("tokens",ee)}function M(){const ee=jn(n.keyframes??He,(_,G)=>[`@keyframes ${_}`,G]),Z=Object.assign({},ee,R(N(i)));return f.wrap("base",Z)}function B(ee){return es(ee,x)}function j(){const ee=X5({preflight:u});return f.wrap("reset",ee)}const W=I3(p),U=(ee,Z)=>W.get(ee)?.value||Z;U.var=(ee,Z)=>W.get(ee)?.variable||Z;function $(ee,Z){return n.recipes?.[ee]??Z}function H(ee,Z){return n.slotRecipes?.[ee]??Z}function ae(ee){return Object.hasOwnProperty.call(n.recipes??He,ee)}function ne(ee){return Object.hasOwnProperty.call(n.slotRecipes??He,ee)}function ce(ee){return ae(ee)||ne(ee)}const me=[j(),M(),L()],oe={layerStyles:Wg(n.layerStyles??He),textStyles:Wg(n.textStyles??He),animationStyles:Wg(n.animationStyles??He),tokens:h0(p,Object.keys(n.tokens??He),(ee,Z)=>!ee.extensions.conditions&&!Z.includes("colorPalette")),semanticTokens:h0(p,Object.keys(n.semanticTokens??He),ee=>!!ee.extensions.conditions),keyframes:m0(n.keyframes??He),breakpoints:m0(n.breakpoints??He)};return{$$chakra:!0,_config:t,_global:me,breakpoints:h,tokens:p,conditions:y,utility:b,token:U,properties:w,layers:f,isValidProperty:x,splitCssProps:B,normalizeValue:E,getTokenCss:L,getGlobalCss:M,getPreflightCss:j,css:R,cva:S,sva:T,getRecipe:$,getSlotRecipe:H,hasRecipe:ce,isRecipe:ae,isSlotRecipe:ne,query:oe}}function I3(e){const t=new Map;return e.allTokens.forEach(n=>{const{cssVar:r,virtual:i,conditions:a}=n.extensions,c=a||i?r.ref:n.value;t.set(n.name,{value:c,variable:r.ref})}),t}const xk=e=>nn(e)&&"value"in e,Wg=e=>({list(){return Object.keys(tk(e,xk))},search(t){return this.list().filter(n=>n.includes(t))}}),h0=(e,t,n)=>({categoryKeys:t,list(r){const i=e.categoryMap.get(r),a=i?[...i.entries()]:[],c=[];for(let u=0;u<a.length;u++){const[f,p]=a[u];n(p,f)&&c.push(f)}return c},search(r,i){return this.list(r).filter(a=>a.includes(i))}}),m0=e=>({list(){return Object.keys(e)},search(t){return this.list().filter(n=>n.includes(t))}}),T3={sm:"480px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},Hg="var(--chakra-empty,/*!*/ /*!*/)",O3=t5({"*":{fontFeatureSettings:'"cv11"',"--ring-inset":Hg,"--ring-offset-width":"0px","--ring-offset-color":"#fff","--ring-color":"rgba(66, 153, 225, 0.6)","--ring-offset-shadow":"0 0 #0000","--ring-shadow":"0 0 #0000",...Object.fromEntries(["brightness","contrast","grayscale","hue-rotate","invert","saturate","sepia","drop-shadow"].map(e=>[`--${e}`,Hg])),...Object.fromEntries(["blur","brightness","contrast","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(e=>[`--backdrop-${e}`,Hg])),"--global-font-mono":"fonts.mono","--global-font-body":"fonts.body","--global-color-border":"colors.border"},html:{color:"fg",bg:"bg",lineHeight:"1.5",colorPalette:"gray"},"*::placeholder, *[data-placeholder]":{color:"fg.muted/80"},"*::selection":{bg:"colorPalette.emphasized/80"}}),R3=o5({"fill.muted":{value:{background:"colorPalette.muted",color:"colorPalette.fg"}},"fill.subtle":{value:{background:"colorPalette.subtle",color:"colorPalette.fg"}},"fill.surface":{value:{background:"colorPalette.subtle",color:"colorPalette.fg",boxShadow:"0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.muted"}},"fill.solid":{value:{background:"colorPalette.solid",color:"colorPalette.contrast"}},"outline.subtle":{value:{color:"colorPalette.fg",boxShadow:"inset 0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.subtle"}},"outline.solid":{value:{borderWidth:"1px",borderColor:"colorPalette.solid",color:"colorPalette.fg"}},"indicator.bottom":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",bottom:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.top":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",top:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.start":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineStart:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.end":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineEnd:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},disabled:{value:{opacity:"0.5",cursor:"not-allowed"}},none:{value:{}}}),N3=r5({"slide-fade-in":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-from-bottom, fade-in"},"&[data-placement^=bottom]":{animationName:"slide-from-top, fade-in"},"&[data-placement^=left]":{animationName:"slide-from-right, fade-in"},"&[data-placement^=right]":{animationName:"slide-from-left, fade-in"}}},"slide-fade-out":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-to-bottom, fade-out"},"&[data-placement^=bottom]":{animationName:"slide-to-top, fade-out"},"&[data-placement^=left]":{animationName:"slide-to-right, fade-out"},"&[data-placement^=right]":{animationName:"slide-to-left, fade-out"}}},"scale-fade-in":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-in, fade-in"}},"scale-fade-out":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-out, fade-out"}}}),_h=yt({className:"chakra-badge",base:{display:"inline-flex",alignItems:"center",borderRadius:"l2",gap:"1",fontWeight:"medium",fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap",userSelect:"none"},variants:{variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg"},outline:{color:"colorPalette.fg","--outline-shadow-legacy":"colors.colorPalette.muted","--outline-shadow":"colors.colorPalette.border",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"var(--outline-shadow, var(--outline-shadow-legacy))"},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},plain:{color:"colorPalette.fg"}},size:{xs:{textStyle:"2xs",px:"1",minH:"4"},sm:{textStyle:"xs",px:"1.5",minH:"5"},md:{textStyle:"sm",px:"2",minH:"6"},lg:{textStyle:"sm",px:"2.5",minH:"7"}}},defaultVariants:{variant:"subtle",size:"sm"}}),A3=yt({className:"chakra-button",base:{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",borderRadius:"l2",whiteSpace:"nowrap",verticalAlign:"middle",borderWidth:"1px",borderColor:"transparent",cursor:"button",flexShrink:"0",outline:"0",lineHeight:"1.2",isolation:"isolate",fontWeight:"medium",transitionProperty:"common",transitionDuration:"moderate",focusVisibleRing:"outside",_disabled:{layerStyle:"disabled"},_icon:{flexShrink:"0"}},variants:{size:{"2xs":{h:"6",minW:"6",textStyle:"xs",px:"2",gap:"1",_icon:{width:"3.5",height:"3.5"}},xs:{h:"8",minW:"8",textStyle:"xs",px:"2.5",gap:"1",_icon:{width:"4",height:"4"}},sm:{h:"9",minW:"9",px:"3.5",textStyle:"sm",gap:"2",_icon:{width:"4",height:"4"}},md:{h:"10",minW:"10",textStyle:"sm",px:"4",gap:"2",_icon:{width:"5",height:"5"}},lg:{h:"11",minW:"11",textStyle:"md",px:"5",gap:"3",_icon:{width:"5",height:"5"}},xl:{h:"12",minW:"12",textStyle:"md",px:"5",gap:"2.5",_icon:{width:"5",height:"5"}},"2xl":{h:"16",minW:"16",textStyle:"lg",px:"7",gap:"3",_icon:{width:"6",height:"6"}}},variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"transparent",_hover:{bg:"colorPalette.solid/90"},_expanded:{bg:"colorPalette.solid/90"}},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"transparent",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},outline:{borderWidth:"1px","--outline-color-legacy":"colors.colorPalette.muted","--outline-color":"colors.colorPalette.border",borderColor:"var(--outline-color, var(--outline-color-legacy))",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},ghost:{bg:"transparent",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},plain:{color:"colorPalette.fg"}}},defaultVariants:{size:"md",variant:"solid"}}),Nt=yt({className:"chakra-checkmark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"l1",cursor:"checkbox",focusVisibleRing:"outside",_icon:{boxSize:"full"},_invalid:{colorPalette:"red",borderColor:"border.error"},_disabled:{opacity:"0.5",cursor:"disabled"}},variants:{size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5",p:"0.5"},lg:{boxSize:"6",p:"0.5"}},variant:{solid:{borderColor:"border.emphasized","&:is([data-state=checked], [data-state=indeterminate])":{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},outline:{borderColor:"border","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg",borderColor:"colorPalette.solid"}},subtle:{bg:"colorPalette.muted",borderColor:"colorPalette.muted","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},plain:{"&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},inverted:{borderColor:"border",color:"colorPalette.fg","&:is([data-state=checked], [data-state=indeterminate])":{borderColor:"colorPalette.solid"}}},filled:{true:{bg:"bg"}}},defaultVariants:{variant:"solid",size:"md"}}),{variants:V3,defaultVariants:_3}=_h,L3=yt({className:"chakra-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"l2"},variants:V3,defaultVariants:_3}),wk=yt({className:"color-swatch",base:{boxSize:"var(--swatch-size)",shadow:"inset 0 0 0 1px rgba(0, 0, 0, 0.1)","--checker-size":"8px","--checker-bg":"colors.bg","--checker-fg":"colors.bg.emphasized",background:"linear-gradient(var(--color), var(--color)), repeating-conic-gradient(var(--checker-fg) 0%, var(--checker-fg) 25%, var(--checker-bg) 0%, var(--checker-bg) 50%) 0% 50% / var(--checker-size) var(--checker-size) !important",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},variants:{size:{"2xs":{"--swatch-size":"sizes.3.5"},xs:{"--swatch-size":"sizes.4"},sm:{"--swatch-size":"sizes.4.5"},md:{"--swatch-size":"sizes.5"},lg:{"--swatch-size":"sizes.6"},xl:{"--swatch-size":"sizes.7"},"2xl":{"--swatch-size":"sizes.8"},inherit:{"--swatch-size":"inherit"},full:{"--swatch-size":"100%"}},shape:{square:{borderRadius:"none"},circle:{borderRadius:"full"},rounded:{borderRadius:"l1"}}},defaultVariants:{size:"md",shape:"rounded"}}),$3=yt({className:"chakra-container",base:{position:"relative",maxWidth:"8xl",w:"100%",mx:"auto",px:{base:"4",md:"6",lg:"8"}},variants:{centerContent:{true:{display:"flex",flexDirection:"column",alignItems:"center"}},fluid:{true:{maxWidth:"full"}}}}),D3=yt({className:"chakra-heading",base:{fontFamily:"heading",fontWeight:"semibold"},variants:{size:{xs:{textStyle:"xs"},sm:{textStyle:"sm"},md:{textStyle:"md"},lg:{textStyle:"lg"},xl:{textStyle:"xl"},"2xl":{textStyle:"2xl"},"3xl":{textStyle:"3xl"},"4xl":{textStyle:"4xl"},"5xl":{textStyle:"5xl"},"6xl":{textStyle:"6xl"},"7xl":{textStyle:"7xl"}}},defaultVariants:{size:"xl"}}),z3=yt({className:"chakra-icon",base:{display:"inline-block",lineHeight:"1em",flexShrink:"0",color:"currentcolor",verticalAlign:"middle"},variants:{size:{inherit:{},xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"},xl:{boxSize:"7"},"2xl":{boxSize:"8"}}},defaultVariants:{size:"inherit"}}),ot=yt({className:"chakra-input",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},height:"var(--input-height)",minW:"var(--input-height)","--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{"2xs":{textStyle:"xs",px:"2","--input-height":"sizes.7"},xs:{textStyle:"xs",px:"2","--input-height":"sizes.8"},sm:{textStyle:"sm",px:"2.5","--input-height":"sizes.9"},md:{textStyle:"sm",px:"3","--input-height":"sizes.10"},lg:{textStyle:"md",px:"4","--input-height":"sizes.11"},xl:{textStyle:"md",px:"4.5","--input-height":"sizes.12"},"2xl":{textStyle:"lg",px:"5","--input-height":"sizes.16"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)",_invalid:{borderColor:"var(--error-color)",boxShadow:"0px 1px 0px 0px var(--error-color)"}}}}},defaultVariants:{size:"md",variant:"outline"}}),F3=yt({className:"chakra-input-addon",base:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap",alignSelf:"stretch",borderRadius:"l2"},variants:{size:ot.variants.size,variant:{outline:{borderWidth:"1px",borderColor:"border",bg:"bg.muted"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.emphasized"},flushed:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}},defaultVariants:{size:"md",variant:"outline"}}),M3=yt({className:"chakra-kbd",base:{display:"inline-flex",alignItems:"center",fontWeight:"medium",fontFamily:"mono",flexShrink:"0",whiteSpace:"nowrap",wordSpacing:"-0.5em",userSelect:"none",px:"1",borderRadius:"l2"},variants:{variant:{raised:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderWidth:"1px",borderBottomWidth:"2px",borderColor:"colorPalette.muted"},outline:{borderWidth:"1px",color:"colorPalette.fg"},subtle:{bg:"colorPalette.muted",color:"colorPalette.fg"},plain:{color:"colorPalette.fg"}},size:{sm:{textStyle:"xs",height:"4.5"},md:{textStyle:"sm",height:"5"},lg:{textStyle:"md",height:"6"}}},defaultVariants:{size:"md",variant:"raised"}}),B3=yt({className:"chakra-link",base:{display:"inline-flex",alignItems:"center",outline:"none",gap:"1.5",cursor:"pointer",borderRadius:"l1",focusRing:"outside"},variants:{variant:{underline:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"},plain:{color:"colorPalette.fg",_hover:{textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"}}}},defaultVariants:{variant:"plain"}}),W3=yt({className:"chakra-mark",base:{bg:"transparent",color:"inherit",whiteSpace:"nowrap"},variants:{variant:{subtle:{bg:"colorPalette.subtle",color:"inherit"},solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},text:{fontWeight:"medium"},plain:{}}}}),At=yt({className:"chakra-radiomark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,verticalAlign:"top",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"full",cursor:"radio",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing",outlineOffset:"2px"},_invalid:{colorPalette:"red",borderColor:"red.500"},_disabled:{opacity:"0.5",cursor:"disabled"},"& .dot":{height:"100%",width:"100%",borderRadius:"full",bg:"currentColor",scale:"0.4"}},variants:{variant:{solid:{borderWidth:"1px",borderColor:"border.emphasized",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},subtle:{borderWidth:"1px",bg:"colorPalette.muted",borderColor:"colorPalette.muted",color:"transparent",_checked:{color:"colorPalette.fg"}},outline:{borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.fg",borderColor:"colorPalette.solid"},"& .dot":{scale:"0.6"}},inverted:{bg:"bg",borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.solid",borderColor:"currentcolor"}}},size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"}},filled:{true:{bg:"bg"}}},defaultVariants:{variant:"solid",size:"md"}}),H3=yt({className:"chakra-separator",base:{display:"block",borderColor:"border"},variants:{variant:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"},dotted:{borderStyle:"dotted"}},orientation:{vertical:{borderInlineStartWidth:"var(--separator-thickness)"},horizontal:{borderTopWidth:"var(--separator-thickness)"}},size:{xs:{"--separator-thickness":"0.5px"},sm:{"--separator-thickness":"1px"},md:{"--separator-thickness":"2px"},lg:{"--separator-thickness":"3px"}}},defaultVariants:{size:"sm",variant:"solid",orientation:"horizontal"}}),j3=yt({className:"chakra-skeleton",base:{},variants:{loading:{true:{borderRadius:"l2",boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none",flexShrink:"0","&::before, &::after, *":{visibility:"hidden"}},false:{background:"unset",animation:"fade-in var(--fade-duration, 0.1s) ease-out !important"}},variant:{pulse:{background:"bg.emphasized",animation:"pulse",animationDuration:"var(--duration, 1.2s)"},shine:{"--animate-from":"200%","--animate-to":"-200%","--start-color":"colors.bg.muted","--end-color":"colors.bg.emphasized",backgroundImage:"linear-gradient(270deg,var(--start-color),var(--end-color),var(--end-color),var(--start-color))",backgroundSize:"400% 100%",animation:"bg-position var(--duration, 5s) ease-in-out infinite"},none:{animation:"none"}}},defaultVariants:{variant:"pulse",loading:!0}}),G3=yt({className:"chakra-skip-nav",base:{display:"inline-flex",bg:"bg.panel",padding:"2.5",borderRadius:"l2",fontWeight:"semibold",focusVisibleRing:"outside",textStyle:"sm",userSelect:"none",border:"0",height:"1px",width:"1px",margin:"-1px",outline:"0",overflow:"hidden",position:"absolute",clip:"rect(0 0 0 0)",_focusVisible:{clip:"auto",width:"auto",height:"auto",position:"fixed",top:"6",insetStart:"6"}}}),U3=yt({className:"chakra-spinner",base:{display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderWidth:"2px",borderRadius:"full",width:"var(--spinner-size)",height:"var(--spinner-size)",animation:"spin",animationDuration:"slowest","--spinner-track-color":"transparent",borderBottomColor:"var(--spinner-track-color)",borderInlineStartColor:"var(--spinner-track-color)"},variants:{size:{inherit:{"--spinner-size":"1em"},xs:{"--spinner-size":"sizes.3"},sm:{"--spinner-size":"sizes.4"},md:{"--spinner-size":"sizes.5"},lg:{"--spinner-size":"sizes.8"},xl:{"--spinner-size":"sizes.10"}}},defaultVariants:{size:"md"}}),K3=yt({className:"chakra-textarea",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{xs:{textStyle:"xs",px:"2",py:"1.5",scrollPaddingBottom:"1.5"},sm:{textStyle:"sm",px:"2.5",py:"2",scrollPaddingBottom:"2"},md:{textStyle:"sm",px:"3",py:"2",scrollPaddingBottom:"2"},lg:{textStyle:"md",px:"4",py:"3",scrollPaddingBottom:"3"},xl:{textStyle:"md",px:"4.5",py:"3.5",scrollPaddingBottom:"3.5"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}}}},defaultVariants:{size:"md",variant:"outline"}}),Y3={badge:_h,button:A3,code:L3,container:$3,heading:D3,input:ot,inputAddon:F3,kbd:M3,link:B3,mark:W3,separator:H3,skeleton:j3,skipNavLink:G3,spinner:U3,textarea:K3,icon:z3,checkmark:Nt,radiomark:At,colorSwatch:wk},X3=Ah.colors({bg:{DEFAULT:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},emphasized:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},inverted:{value:{_light:"{colors.black}",_dark:"{colors.white}"}},panel:{value:{_light:"{colors.white}",_dark:"{colors.gray.950}"}},error:{value:{_light:"{colors.red.50}",_dark:"{colors.red.950}"}},warning:{value:{_light:"{colors.orange.50}",_dark:"{colors.orange.950}"}},success:{value:{_light:"{colors.green.50}",_dark:"{colors.green.950}"}},info:{value:{_light:"{colors.blue.50}",_dark:"{colors.blue.950}"}}},fg:{DEFAULT:{value:{_light:"{colors.black}",_dark:"{colors.gray.50}"}},muted:{value:{_light:"{colors.gray.600}",_dark:"{colors.gray.400}"}},subtle:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.500}"}},inverted:{value:{_light:"{colors.gray.50}",_dark:"{colors.black}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.300}"}},success:{value:{_light:"{colors.green.600}",_dark:"{colors.green.300}"}},info:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.300}"}}},border:{DEFAULT:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},inverted:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.400}"}},success:{value:{_light:"{colors.green.500}",_dark:"{colors.green.400}"}},info:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.400}"}}},gray:{contrast:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},fg:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},subtle:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},muted:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},solid:{value:{_light:"{colors.gray.900}",_dark:"{colors.white}"}},focusRing:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.400}"}},border:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}}},red:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.red.700}",_dark:"{colors.red.300}"}},subtle:{value:{_light:"{colors.red.100}",_dark:"{colors.red.900}"}},muted:{value:{_light:"{colors.red.200}",_dark:"{colors.red.800}"}},emphasized:{value:{_light:"{colors.red.300}",_dark:"{colors.red.700}"}},solid:{value:{_light:"{colors.red.600}",_dark:"{colors.red.600}"}},focusRing:{value:{_light:"{colors.red.500}",_dark:"{colors.red.500}"}},border:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}}},orange:{contrast:{value:{_light:"white",_dark:"black"}},fg:{value:{_light:"{colors.orange.700}",_dark:"{colors.orange.300}"}},subtle:{value:{_light:"{colors.orange.100}",_dark:"{colors.orange.900}"}},muted:{value:{_light:"{colors.orange.200}",_dark:"{colors.orange.800}"}},emphasized:{value:{_light:"{colors.orange.300}",_dark:"{colors.orange.700}"}},solid:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.500}"}},focusRing:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.500}"}},border:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.400}"}}},green:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.green.700}",_dark:"{colors.green.300}"}},subtle:{value:{_light:"{colors.green.100}",_dark:"{colors.green.900}"}},muted:{value:{_light:"{colors.green.200}",_dark:"{colors.green.800}"}},emphasized:{value:{_light:"{colors.green.300}",_dark:"{colors.green.700}"}},solid:{value:{_light:"{colors.green.600}",_dark:"{colors.green.600}"}},focusRing:{value:{_light:"{colors.green.500}",_dark:"{colors.green.500}"}},border:{value:{_light:"{colors.green.500}",_dark:"{colors.green.400}"}}},blue:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.blue.700}",_dark:"{colors.blue.300}"}},subtle:{value:{_light:"{colors.blue.100}",_dark:"{colors.blue.900}"}},muted:{value:{_light:"{colors.blue.200}",_dark:"{colors.blue.800}"}},emphasized:{value:{_light:"{colors.blue.300}",_dark:"{colors.blue.700}"}},solid:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.600}"}},focusRing:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.500}"}},border:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.400}"}}},yellow:{contrast:{value:{_light:"black",_dark:"black"}},fg:{value:{_light:"{colors.yellow.800}",_dark:"{colors.yellow.300}"}},subtle:{value:{_light:"{colors.yellow.100}",_dark:"{colors.yellow.900}"}},muted:{value:{_light:"{colors.yellow.200}",_dark:"{colors.yellow.800}"}},emphasized:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.700}"}},solid:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.300}"}},focusRing:{value:{_light:"{colors.yellow.500}",_dark:"{colors.yellow.500}"}},border:{value:{_light:"{colors.yellow.500}",_dark:"{colors.yellow.500}"}}},teal:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.teal.700}",_dark:"{colors.teal.300}"}},subtle:{value:{_light:"{colors.teal.100}",_dark:"{colors.teal.900}"}},muted:{value:{_light:"{colors.teal.200}",_dark:"{colors.teal.800}"}},emphasized:{value:{_light:"{colors.teal.300}",_dark:"{colors.teal.700}"}},solid:{value:{_light:"{colors.teal.600}",_dark:"{colors.teal.600}"}},focusRing:{value:{_light:"{colors.teal.500}",_dark:"{colors.teal.500}"}},border:{value:{_light:"{colors.teal.500}",_dark:"{colors.teal.400}"}}},purple:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.purple.700}",_dark:"{colors.purple.300}"}},subtle:{value:{_light:"{colors.purple.100}",_dark:"{colors.purple.900}"}},muted:{value:{_light:"{colors.purple.200}",_dark:"{colors.purple.800}"}},emphasized:{value:{_light:"{colors.purple.300}",_dark:"{colors.purple.700}"}},solid:{value:{_light:"{colors.purple.600}",_dark:"{colors.purple.600}"}},focusRing:{value:{_light:"{colors.purple.500}",_dark:"{colors.purple.500}"}},border:{value:{_light:"{colors.purple.500}",_dark:"{colors.purple.400}"}}},pink:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.pink.700}",_dark:"{colors.pink.300}"}},subtle:{value:{_light:"{colors.pink.100}",_dark:"{colors.pink.900}"}},muted:{value:{_light:"{colors.pink.200}",_dark:"{colors.pink.800}"}},emphasized:{value:{_light:"{colors.pink.300}",_dark:"{colors.pink.700}"}},solid:{value:{_light:"{colors.pink.600}",_dark:"{colors.pink.600}"}},focusRing:{value:{_light:"{colors.pink.500}",_dark:"{colors.pink.500}"}},border:{value:{_light:"{colors.pink.500}",_dark:"{colors.pink.400}"}}},cyan:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.cyan.700}",_dark:"{colors.cyan.300}"}},subtle:{value:{_light:"{colors.cyan.100}",_dark:"{colors.cyan.900}"}},muted:{value:{_light:"{colors.cyan.200}",_dark:"{colors.cyan.800}"}},emphasized:{value:{_light:"{colors.cyan.300}",_dark:"{colors.cyan.700}"}},solid:{value:{_light:"{colors.cyan.600}",_dark:"{colors.cyan.600}"}},focusRing:{value:{_light:"{colors.cyan.500}",_dark:"{colors.cyan.500}"}},border:{value:{_light:"{colors.cyan.500}",_dark:"{colors.cyan.400}"}}}}),q3=Ah.radii({l1:{value:"{radii.xs}"},l2:{value:"{radii.sm}"},l3:{value:"{radii.md}"}}),Q3=Ah.shadows({xs:{value:{_light:"0px 1px 2px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/20}",_dark:"0px 1px 1px {black/64}, 0px 0px 1px inset {colors.gray.300/20}"}},sm:{value:{_light:"0px 2px 4px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 2px 4px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},md:{value:{_light:"0px 4px 8px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 4px 8px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},lg:{value:{_light:"0px 8px 16px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 8px 16px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},xl:{value:{_light:"0px 16px 24px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 16px 24px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},"2xl":{value:{_light:"0px 24px 40px {colors.gray.900/16}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 24px 40px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},inner:{value:{_light:"inset 0 2px 4px 0 {black/5}",_dark:"inset 0 2px 4px 0 black"}},inset:{value:{_light:"inset 0 0 0 1px {black/5}",_dark:"inset 0 0 0 1px {colors.gray.300/5}"}}}),Z3=gC.extendWith("itemBody"),J3=ve("action-bar").parts("positioner","content","separator","selectionTrigger","closeTrigger"),e4=ve("alert").parts("title","description","root","indicator","content"),t4=ve("breadcrumb").parts("link","currentLink","item","list","root","ellipsis","separator"),n4=ve("blockquote").parts("root","icon","content","caption"),r4=ve("card").parts("root","header","body","footer","title","description"),o4=ve("checkbox-card",["root","control","label","description","addon","indicator","content"]),i4=ve("data-list").parts("root","item","itemLabel","itemValue"),s4=gh.extendWith("header","body","footer","backdrop"),a4=gh.extendWith("header","body","footer","backdrop"),l4=eS.extendWith("textarea"),c4=ve("empty-state",["root","content","indicator","title","description"]),u4=iS.extendWith("requiredIndicator"),d4=cS.extendWith("content"),f4=uS.extendWith("itemContent","dropzoneContent","fileText"),g4=ve("list").parts("root","item","indicator"),p4=cE.extendWith("itemCommand"),h4=ve("select").parts("root","field","indicator"),m4=NE.extendWith("header","body","footer"),Ck=Rh.extendWith("itemAddon","itemIndicator"),v4=Ck.extendWith("itemContent","itemDescription"),y4=WE.extendWith("itemIndicator"),b4=u1.extendWith("indicatorGroup"),x4=E_.extendWith("indicatorGroup","empty"),w4=f1.extendWith("markerIndicator"),C4=ve("stat").parts("root","label","helpText","valueText","valueUnit","indicator"),S4=ve("status").parts("root","indicator"),E4=ve("steps",["root","list","item","trigger","indicator","separator","content","title","description","nextTrigger","prevTrigger","progress"]),k4=v1.extendWith("indicator"),P4=ve("table").parts("root","header","body","row","columnHeader","cell","footer","caption"),I4=ve("toast").parts("root","title","description","indicator","closeTrigger","actionTrigger"),T4=ve("tabs").parts("root","trigger","list","content","contentGroup","indicator"),O4=ve("tag").parts("root","label","closeTrigger","startElement","endElement"),R4=ve("timeline").parts("root","item","content","separator","indicator","connector","title","description"),N4=U2.extendWith("channelText"),A4=ve("code-block",["root","content","title","header","footer","control","overlay","code","codeText","copyTrigger","copyIndicator","collapseTrigger","collapseIndicator","collapseText"]),V4=aC.extendWith("resizeTriggerSeparator","resizeTriggerIndicator");$C.extendWith("valueText");const _4=nL,L4=ye({className:"chakra-accordion",slots:Z3.keys(),base:{root:{width:"full","--accordion-radius":"radii.l2"},item:{overflowAnchor:"none"},itemTrigger:{display:"flex",alignItems:"center",textAlign:"start",width:"full",outline:"0",gap:"3",fontWeight:"medium",borderRadius:"var(--accordion-radius)",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{layerStyle:"disabled"}},itemBody:{pt:"var(--accordion-padding-y)",pb:"calc(var(--accordion-padding-y) * 2)"},itemContent:{overflow:"hidden",borderRadius:"var(--accordion-radius)",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}},itemIndicator:{transition:"rotate 0.2s",transformOrigin:"center",color:"fg.subtle",_open:{rotate:"180deg"},_icon:{width:"1.2em",height:"1.2em"}}},variants:{variant:{outline:{item:{borderBottomWidth:"1px"}},subtle:{itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{borderRadius:"var(--accordion-radius)",_open:{bg:"colorPalette.subtle"}}},enclosed:{root:{borderWidth:"1px",borderRadius:"var(--accordion-radius)",divideY:"1px",overflow:"hidden"},itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{_open:{bg:"bg.subtle"}}},plain:{}},size:{sm:{root:{"--accordion-padding-x":"spacing.3","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"sm",py:"var(--accordion-padding-y)"}},md:{root:{"--accordion-padding-x":"spacing.4","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"md",py:"var(--accordion-padding-y)"}},lg:{root:{"--accordion-padding-x":"spacing.4.5","--accordion-padding-y":"spacing.2.5"},itemTrigger:{textStyle:"lg",py:"var(--accordion-padding-y)"}}}},defaultVariants:{size:"md",variant:"outline"}}),$4=ye({className:"chakra-action-bar",slots:J3.keys(),base:{positioner:{position:"fixed",display:"flex",justifyContent:"center",pointerEvents:"none",insetInline:"0",top:"unset",bottom:"calc(env(safe-area-inset-bottom) + 20px)"},content:{bg:"bg.panel",shadow:"md",display:"flex",alignItems:"center",gap:"3",borderRadius:"l3",py:"2.5",px:"3",pointerEvents:"auto",translate:"calc(-1 * var(--scrollbar-width) / 2) 0px",_open:{animationName:"slide-from-bottom, fade-in",animationDuration:"moderate"},_closed:{animationName:"slide-to-bottom, fade-out",animationDuration:"faster"}},separator:{width:"1px",height:"5",bg:"border"},selectionTrigger:{display:"inline-flex",alignItems:"center",gap:"2",alignSelf:"stretch",textStyle:"sm",px:"4",py:"1",borderRadius:"l2",borderWidth:"1px",borderStyle:"dashed"}}}),D4=ye({slots:e4.keys(),className:"chakra-alert",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",borderRadius:"l3"},title:{fontWeight:"medium"},description:{display:"inline"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",width:"1em",height:"1em",_icon:{boxSize:"full"}},content:{display:"flex",flex:"1",gap:"1"}},variants:{status:{info:{root:{colorPalette:"blue"}},warning:{root:{colorPalette:"orange"}},success:{root:{colorPalette:"green"}},error:{root:{colorPalette:"red"}},neutral:{root:{colorPalette:"gray"}}},inline:{true:{content:{display:"inline-flex",flexDirection:"row",alignItems:"center"}},false:{content:{display:"flex",flexDirection:"column"}}},variant:{subtle:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg"}},surface:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)","--outline-shadow-legacy":"colors.colorPalette.muted","--outline-shadow":"colors.colorPalette.border",shadowColor:"var(--outline-shadow, var(--outline-shadow-legacy))"},indicator:{color:"colorPalette.fg"}},solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"},indicator:{color:"colorPalette.contrast"}}},size:{sm:{root:{gap:"2",px:"3",py:"3",textStyle:"xs"},indicator:{textStyle:"lg"}},md:{root:{gap:"3",px:"4",py:"4",textStyle:"sm"},indicator:{textStyle:"xl"}},lg:{root:{gap:"3",px:"4",py:"4",textStyle:"md"},indicator:{textStyle:"2xl"}}}},defaultVariants:{status:"info",variant:"subtle",size:"md",inline:!1}}),z4=ye({slots:mC.keys(),className:"chakra-avatar",base:{root:{display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:"medium",position:"relative",verticalAlign:"top",flexShrink:"0",userSelect:"none",width:"var(--avatar-size)",height:"var(--avatar-size)",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)","&[data-group-item]":{borderWidth:"2px",borderColor:"bg"}},image:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"var(--avatar-radius)"},fallback:{lineHeight:"1",textTransform:"uppercase",fontWeight:"medium",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)"}},variants:{size:{full:{root:{"--avatar-size":"100%","--avatar-font-size":"100%"}},"2xs":{root:{"--avatar-font-size":"fontSizes.2xs","--avatar-size":"sizes.6"}},xs:{root:{"--avatar-font-size":"fontSizes.xs","--avatar-size":"sizes.8"}},sm:{root:{"--avatar-font-size":"fontSizes.sm","--avatar-size":"sizes.9"}},md:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.10"}},lg:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.11"}},xl:{root:{"--avatar-font-size":"fontSizes.lg","--avatar-size":"sizes.12"}},"2xl":{root:{"--avatar-font-size":"fontSizes.xl","--avatar-size":"sizes.16"}}},variant:{solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},subtle:{root:{bg:"colorPalette.muted",color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",borderWidth:"1px","--outline-shadow-legacy":"colors.colorPalette.muted","--outline-shadow":"colors.colorPalette.border",borderColor:"var(--outline-shadow, var(--outline-shadow-legacy))"}}},shape:{square:{},rounded:{root:{"--avatar-radius":"radii.l3"}},full:{root:{"--avatar-radius":"radii.full"}}},borderless:{true:{root:{"&[data-group-item]":{borderWidth:"0px"}}}}},defaultVariants:{size:"md",shape:"full",variant:"subtle"}}),F4=ye({className:"chakra-blockquote",slots:n4.keys(),base:{root:{position:"relative",display:"flex",flexDirection:"column",gap:"2"},caption:{textStyle:"sm",color:"fg.muted"},icon:{boxSize:"5"}},variants:{justify:{start:{root:{alignItems:"flex-start",textAlign:"start"}},center:{root:{alignItems:"center",textAlign:"center"}},end:{root:{alignItems:"flex-end",textAlign:"end"}}},variant:{subtle:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.muted"},icon:{color:"colorPalette.fg"}},solid:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.solid"},icon:{color:"colorPalette.solid"}},plain:{root:{paddingX:"5"},icon:{color:"colorPalette.solid"}}}},defaultVariants:{variant:"subtle",justify:"start"}}),M4=ye({className:"chakra-breadcrumb",slots:t4.keys(),base:{list:{display:"flex",alignItems:"center",wordBreak:"break-word",color:"fg.muted",listStyle:"none"},link:{outline:"0",textDecoration:"none",borderRadius:"l1",focusRing:"outside",display:"inline-flex",alignItems:"center",gap:"2"},item:{display:"inline-flex",alignItems:"center"},separator:{color:"fg.muted",opacity:"0.8",_icon:{boxSize:"1em"},_rtl:{rotate:"180deg"}},ellipsis:{display:"inline-flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"1em"}}},variants:{variant:{underline:{link:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"0.2em",textDecorationColor:"colorPalette.muted"},currentLink:{color:"colorPalette.fg"}},plain:{link:{color:"fg.muted",_hover:{color:"fg"}},currentLink:{color:"fg"}}},size:{sm:{list:{gap:"1",textStyle:"xs"}},md:{list:{gap:"1.5",textStyle:"sm"}},lg:{list:{gap:"2",textStyle:"md"}}}},defaultVariants:{variant:"plain",size:"md"}}),B4=ye({className:"chakra-card",slots:r4.keys(),base:{root:{display:"flex",flexDirection:"column",position:"relative",minWidth:"0",wordWrap:"break-word",borderRadius:"l3",color:"fg",textAlign:"start"},title:{fontWeight:"semibold"},description:{color:"fg.muted",fontSize:"sm"},header:{paddingInline:"var(--card-padding)",paddingTop:"var(--card-padding)",display:"flex",flexDirection:"column",gap:"1.5"},body:{padding:"var(--card-padding)",flex:"1",display:"flex",flexDirection:"column"},footer:{display:"flex",alignItems:"center",gap:"2",paddingInline:"var(--card-padding)",paddingBottom:"var(--card-padding)"}},variants:{size:{sm:{root:{"--card-padding":"spacing.4"},title:{textStyle:"md"}},md:{root:{"--card-padding":"spacing.6"},title:{textStyle:"lg"}},lg:{root:{"--card-padding":"spacing.7"},title:{textStyle:"xl"}}},variant:{elevated:{root:{bg:"bg.panel",boxShadow:"md"}},outline:{root:{bg:"bg.panel",borderWidth:"1px",borderColor:"border"}},subtle:{root:{bg:"bg.muted"}}}},defaultVariants:{variant:"outline",size:"md"}}),W4=ye({className:"carousel",slots:E2.keys(),base:{root:{position:"relative",display:"flex",gap:"2",_horizontal:{flexDirection:"column"},_vertical:{flexDirection:"row"}},item:{_horizontal:{width:"100%"},_vertical:{height:"100%"}},control:{display:"flex",alignItems:"center",_horizontal:{flexDirection:"row",width:"100%"},_vertical:{flexDirection:"column",height:"100%"}},indicatorGroup:{display:"flex",justifyContent:"center",gap:"3",_horizontal:{flexDirection:"row"},_vertical:{flexDirection:"column"}},indicator:{width:"2.5",height:"2.5",borderRadius:"full",bg:"colorPalette.subtle",cursor:"button",_current:{bg:"colorPalette.solid"}}},defaultVariants:{}}),H4=ye({slots:OC.keys(),className:"chakra-checkbox",base:{root:{display:"inline-flex",gap:"2",alignItems:"center",verticalAlign:"top",position:"relative"},control:Nt.base,label:{fontWeight:"medium",userSelect:"none",_disabled:{opacity:"0.5"}}},variants:{size:{xs:{root:{gap:"1.5"},label:{textStyle:"xs"},control:Nt.variants?.size?.xs},sm:{root:{gap:"2"},label:{textStyle:"sm"},control:Nt.variants?.size?.sm},md:{root:{gap:"2.5"},label:{textStyle:"sm"},control:Nt.variants?.size?.md},lg:{root:{gap:"3"},label:{textStyle:"md"},control:Nt.variants?.size?.lg}},variant:{outline:{control:Nt.variants?.variant?.outline},solid:{control:Nt.variants?.variant?.solid},subtle:{control:Nt.variants?.variant?.subtle}}},defaultVariants:{variant:"solid",size:"md"}}),j4=ye({slots:o4.keys(),className:"chakra-checkbox-card",base:{root:{display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",flex:"1",focusVisibleRing:"outside",_disabled:{opacity:"0.8"},_invalid:{outline:"2px solid",outlineColor:"border.error"}},control:{display:"inline-flex",flex:"1",position:"relative",borderRadius:"inherit",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"},label:{fontWeight:"medium",display:"flex",alignItems:"center",gap:"2",flex:"1",_disabled:{opacity:"0.5"}},description:{opacity:"0.64",textStyle:"sm",_disabled:{opacity:"0.5"}},addon:{_disabled:{opacity:"0.5"}},indicator:Nt.base,content:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"}},variants:{size:{sm:{root:{textStyle:"sm"},control:{padding:"3",gap:"1.5"},addon:{px:"3",py:"1.5",borderTopWidth:"1px"},indicator:Nt.variants?.size.sm},md:{root:{textStyle:"sm"},control:{padding:"4",gap:"2.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:Nt.variants?.size.md},lg:{root:{textStyle:"md"},control:{padding:"4",gap:"3.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:Nt.variants?.size.lg}},variant:{surface:{root:{borderWidth:"1px",borderColor:"border",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"},_disabled:{bg:"bg.muted"}},indicator:Nt.variants?.variant.solid},subtle:{root:{bg:"bg.muted"},control:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},indicator:Nt.variants?.variant.plain},outline:{root:{borderWidth:"1px",borderColor:"border",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},indicator:Nt.variants?.variant.solid},solid:{root:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},indicator:Nt.variants?.variant.inverted}},justify:{start:{root:{"--checkbox-card-justify":"flex-start"}},end:{root:{"--checkbox-card-justify":"flex-end"}},center:{root:{"--checkbox-card-justify":"center"}}},align:{start:{root:{"--checkbox-card-align":"flex-start"},content:{textAlign:"start"}},end:{root:{"--checkbox-card-align":"flex-end"},content:{textAlign:"end"}},center:{root:{"--checkbox-card-align":"center"},content:{textAlign:"center"}}},orientation:{vertical:{control:{flexDirection:"column"}},horizontal:{control:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}}),G4=ye({slots:A4.keys(),className:"code-block",base:{root:{colorPalette:"gray",rounded:"var(--code-block-radius)",overflow:"hidden",bg:"bg",color:"fg",borderWidth:"1px","--code-block-max-height":"320px","--code-block-bg":"colors.bg","--code-block-fg":"colors.fg","--code-block-obscured-opacity":"0.5","--code-block-obscured-blur":"1px","--code-block-line-number-width":"sizes.3","--code-block-line-number-margin":"spacing.4","--code-block-highlight-bg":"{colors.teal.focusRing/20}","--code-block-highlight-border":"colors.teal.focusRing","--code-block-highlight-added-bg":"{colors.green.focusRing/20}","--code-block-highlight-added-border":"colors.green.focusRing","--code-block-highlight-removed-bg":"{colors.red.focusRing/20}","--code-block-highlight-removed-border":"colors.red.focusRing"},header:{display:"flex",alignItems:"center",gap:"2",position:"relative",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)",mb:"calc(var(--code-block-padding) / 2 * -1)"},title:{display:"inline-flex",alignItems:"center",gap:"1.5",flex:"1",color:"fg.muted"},control:{gap:"1.5",display:"inline-flex",alignItems:"center"},footer:{display:"flex",alignItems:"center",justifyContent:"center",gap:"2",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)"},content:{position:"relative",colorScheme:"dark",overflowX:"auto",overflowY:"hidden",borderBottomRadius:"var(--code-block-radius)",maxHeight:"var(--code-block-max-height)","& ::selection":{bg:"blue.500/40"},_expanded:{maxHeight:"unset"}},overlay:{"--bg":"{colors.black/50}",display:"flex",alignItems:"flex-end",justifyContent:"center",padding:"4",bgImage:"linear-gradient(0deg,var(--bg) 25%,transparent 100%)",color:"white",minH:"5rem",pos:"absolute",bottom:"0",insetInline:"0",zIndex:"1",fontWeight:"medium",_expanded:{display:"none"}},code:{fontFamily:"mono",lineHeight:"tall",whiteSpace:"pre",counterReset:"line 0"},codeText:{px:"var(--code-block-padding)",py:"var(--code-block-padding)",position:"relative",display:"block",width:"100%","&[data-has-focused]":{"& [data-line]:not([data-focused])":{transitionProperty:"opacity, filter",transitionDuration:"moderate",transitionTimingFunction:"ease-in-out",opacity:"var(--code-block-obscured-opacity)",filter:"blur(var(--code-block-obscured-blur))"},"&:hover":{"--code-block-obscured-opacity":"1","--code-block-obscured-blur":"0px"}},"&[data-has-line-numbers][data-plaintext]":{paddingInlineStart:"calc(var(--code-block-line-number-width) + var(--code-block-line-number-margin) + var(--code-block-padding))"},"& [data-line]":{position:"relative",paddingInlineEnd:"var(--code-block-padding)","--highlight-bg":"var(--code-block-highlight-bg)","--highlight-border":"var(--code-block-highlight-border)","&[data-highlight], &[data-diff]":{display:"inline-block",width:"full","&:after":{content:"''",display:"block",position:"absolute",top:"0",insetStart:"calc(var(--code-block-padding) * -1)",insetEnd:"0px",width:"calc(100% + var(--code-block-padding) * 2)",height:"100%",bg:"var(--highlight-bg)",borderStartWidth:"2px",borderStartColor:"var(--highlight-border)"}},"&[data-diff='added']":{"--highlight-bg":"var(--code-block-highlight-added-bg)","--highlight-border":"var(--code-block-highlight-added-border)"},"&[data-diff='removed']":{"--highlight-bg":"var(--code-block-highlight-removed-bg)","--highlight-border":"var(--code-block-highlight-removed-border)"}},"&[data-word-wrap]":{"&[data-plaintext], & [data-line]":{whiteSpace:"pre-wrap",wordBreak:"break-all"}},"&[data-has-line-numbers]":{"--content":"counter(line)","& [data-line]:before":{content:"var(--content)",counterIncrement:"line",width:"var(--code-block-line-number-width)",marginRight:"var(--code-block-line-number-margin)",display:"inline-block",textAlign:"end",userSelect:"none",whiteSpace:"nowrap",opacity:.4},"& [data-diff='added']:before":{content:"'+'"},"& [data-diff='removed']:before":{content:"'-'"}}}},variants:{size:{sm:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.md","--code-block-header-height":"sizes.8"},title:{textStyle:"xs"},code:{fontSize:"xs"}},md:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.lg","--code-block-header-height":"sizes.10"},title:{textStyle:"xs"},code:{fontSize:"sm"}},lg:{root:{"--code-block-padding":"spacing.5","--code-block-radius":"radii.xl","--code-block-header-height":"sizes.12"},title:{textStyle:"sm"},code:{fontSize:"sm"}}}},defaultVariants:{size:"md"}}),U4=ye({slots:Aw.keys(),className:"chakra-collapsible",base:{content:{overflow:"hidden",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate","&[data-has-collapsed-size]":{animationName:"expand-height"}},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate","&[data-has-collapsed-size]":{animationName:"collapse-height"}}}}}),K4=ye({className:"colorPicker",slots:N4.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5"},label:{color:"fg",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},valueText:{textAlign:"start"},control:{display:"flex",alignItems:"center",flexDirection:"row",gap:"2",position:"relative"},swatchTrigger:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"row",flexShrink:"0",gap:"2",textStyle:"sm",minH:"var(--input-height)",minW:"var(--input-height)",px:"1",rounded:"l2",_disabled:{opacity:"0.5"},"--focus-color":"colors.colorPalette.focusRing","&:focus-visible":{borderColor:"var(--focus-color)",outline:"1px solid var(--focus-color)"},"&[data-fit-content]":{"--input-height":"unset",px:"0",border:"0"}},content:{display:"flex",flexDirection:"column",bg:"bg.panel",borderRadius:"l3",boxShadow:"lg",width:"64",p:"4",gap:"3",zIndex:"dropdown",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},area:{height:"180px",borderRadius:"l2",overflow:"hidden"},areaThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",focusVisibleRing:"mixed",focusRingColor:"white"},areaBackground:{height:"full"},channelSlider:{borderRadius:"l2",flex:"1"},channelSliderTrack:{height:"var(--slider-height)",borderRadius:"inherit",boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"},channelText:{textStyle:"xs",color:"fg.muted",fontWeight:"medium",textTransform:"capitalize"},swatchGroup:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"2"},swatch:{...wk.base,borderRadius:"l1"},swatchIndicator:{color:"white",rounded:"full"},channelSliderThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",transform:"translate(-50%, -50%)",focusVisibleRing:"outside",focusRingOffset:"1px"},channelInput:{...ot.base,"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0}},formatSelect:{textStyle:"xs",textTransform:"uppercase",borderWidth:"1px",minH:"6",focusRing:"inside",rounded:"l2"},transparencyGrid:{borderRadius:"l2"},view:{display:"flex",flexDirection:"column",gap:"2"}},variants:{size:{"2xs":{channelInput:ot.variants?.size?.["2xs"],swatch:{"--swatch-size":"sizes.4.5"},trigger:{"--input-height":"sizes.7"},area:{"--thumb-size":"sizes.3"},channelSlider:{"--slider-height":"sizes.3","--thumb-size":"sizes.3"}},xs:{channelInput:ot.variants?.size?.xs,swatch:{"--swatch-size":"sizes.5"},trigger:{"--input-height":"sizes.8"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},sm:{channelInput:ot.variants?.size?.sm,swatch:{"--swatch-size":"sizes.6"},trigger:{"--input-height":"sizes.9"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},md:{channelInput:ot.variants?.size?.md,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.10"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},lg:{channelInput:ot.variants?.size?.lg,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.11"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},xl:{channelInput:ot.variants?.size?.xl,swatch:{"--swatch-size":"sizes.8"},trigger:{"--input-height":"sizes.12"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},"2xl":{channelInput:ot.variants?.size?.["2xl"],swatch:{"--swatch-size":"sizes.10"},trigger:{"--input-height":"sizes.16"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}}},variant:{outline:{channelInput:ot.variants?.variant?.outline,trigger:{borderWidth:"1px"}},subtle:{channelInput:ot.variants?.variant?.subtle,trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}}},defaultVariants:{size:"md",variant:"outline"}}),Y4=ye({className:"chakra-combobox",slots:x4.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},control:{pos:"relative","--padding-factor":"1","--combobox-input-padding-end":"var(--combobox-input-padding-x)","&:has([data-part=trigger]), &:has([data-part=clear-trigger])":{"--combobox-input-padding-end":"calc(var(--combobox-input-height) * var(--padding-factor))"},"&:has([data-part=trigger]):has([data-part=clear-trigger]:not([hidden]))":{"--padding-factor":"1.5"}},input:{display:"flex",alignItems:"center",justifyContent:"space-between",background:"bg.panel",width:"full",minH:"var(--combobox-input-height)",ps:"var(--combobox-input-padding-x)",pe:"var(--combobox-input-padding-end)","--input-height":"var(--combobox-input-height)",borderRadius:"l2",outline:0,userSelect:"none",textAlign:"start",_placeholderShown:{color:"fg.muted"},_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},trigger:{display:"inline-flex",alignItems:"center",justifyContent:"center","--input-height":"var(--combobox-input-height)"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"},indicatorGroup:{display:"flex",alignItems:"center",justifyContent:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--combobox-input-padding-x)",_icon:{boxSize:"var(--combobox-indicator-size)"},"[data-disabled] &":{opacity:.5}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"0s"},"&[data-empty]:not(:has([data-scope=combobox][data-part=empty]))":{opacity:0}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{boxSize:"var(--combobox-indicator-size)"}},empty:{py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{pb:"var(--combobox-item-padding-y)",_last:{pb:"0"}},itemGroupLabel:{fontWeight:"medium",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"}},variants:{variant:{outline:{input:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"}},subtle:{input:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"}},flushed:{input:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}},indicatorGroup:{px:"0"}}},size:{xs:{root:{"--combobox-input-height":"sizes.8","--combobox-input-padding-x":"spacing.2","--combobox-indicator-size":"sizes.3.5"},input:{textStyle:"xs"},content:{"--combobox-item-padding-x":"spacing.1.5","--combobox-item-padding-y":"spacing.1","--combobox-indicator-size":"sizes.3.5",p:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"}},sm:{root:{"--combobox-input-height":"sizes.9","--combobox-input-padding-x":"spacing.2.5","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"}},md:{root:{"--combobox-input-height":"sizes.10","--combobox-input-padding-x":"spacing.3","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{textStyle:"sm",gap:"2"}},lg:{root:{"--combobox-input-height":"sizes.12","--combobox-input-padding-x":"spacing.4","--combobox-indicator-size":"sizes.5"},input:{textStyle:"md"},content:{"--combobox-item-padding-y":"spacing.2","--combobox-item-padding-x":"spacing.3","--combobox-indicator-size":"sizes.5",p:"1.5",textStyle:"md"},trigger:{textStyle:"md",py:"3",gap:"2"}}}},defaultVariants:{size:"md",variant:"outline"}}),X4=ye({slots:i4.keys(),className:"chakra-data-list",base:{itemLabel:{display:"flex",alignItems:"center",gap:"1"},itemValue:{display:"flex",minWidth:"0",flex:"1"}},variants:{orientation:{horizontal:{root:{display:"flex",flexDirection:"column"},item:{display:"inline-flex",alignItems:"center",gap:"4"},itemLabel:{minWidth:"120px"}},vertical:{root:{display:"flex",flexDirection:"column"},item:{display:"flex",flexDirection:"column",gap:"1"}}},size:{sm:{root:{gap:"3"},item:{textStyle:"xs"}},md:{root:{gap:"4"},item:{textStyle:"sm"}},lg:{root:{gap:"5"},item:{textStyle:"md"}}},variant:{subtle:{itemLabel:{color:"fg.muted"}},bold:{itemLabel:{fontWeight:"medium"},itemValue:{color:"fg.muted"}}}},defaultVariants:{size:"md",orientation:"vertical",variant:"subtle"}}),q4=ye({slots:s4.keys(),className:"chakra-dialog",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",left:0,top:0,w:"100dvw",h:"100dvh",zIndex:"var(--z-index)",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100dvw",height:"100dvh",position:"fixed",left:0,top:0,"--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",justifyContent:"center",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,borderRadius:"l3",textStyle:"sm",my:"var(--dialog-margin, var(--dialog-base-margin))","--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"moderate"},_closed:{animationDuration:"faster"}},header:{display:"flex",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{flex:"1",px:"6",pt:"2",pb:"6"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"2",insetEnd:"2"}},variants:{placement:{center:{positioner:{alignItems:"center"},content:{"--dialog-base-margin":"auto",mx:"auto"}},top:{positioner:{alignItems:"flex-start"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}},bottom:{positioner:{alignItems:"flex-end"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}}},scrollBehavior:{inside:{positioner:{overflow:"hidden"},content:{maxH:"calc(100% - 7.5rem)"},body:{overflow:"auto"}},outside:{positioner:{overflow:"auto",pointerEvents:"auto"}}},size:{xs:{content:{maxW:"sm"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},cover:{positioner:{padding:"10"},content:{width:"100%",height:"100%","--dialog-margin":"0"}},full:{content:{maxW:"100dvw",minH:"100dvh","--dialog-margin":"0",borderRadius:"0"}}},motionPreset:{scale:{content:{_open:{animationName:"scale-in, fade-in"},_closed:{animationName:"scale-out, fade-out"}}},"slide-in-bottom":{content:{_open:{animationName:"slide-from-bottom, fade-in"},_closed:{animationName:"slide-to-bottom, fade-out"}}},"slide-in-top":{content:{_open:{animationName:"slide-from-top, fade-in"},_closed:{animationName:"slide-to-top, fade-out"}}},"slide-in-left":{content:{_open:{animationName:"slide-from-left, fade-in"},_closed:{animationName:"slide-to-left, fade-out"}}},"slide-in-right":{content:{_open:{animationName:"slide-from-right, fade-in"},_closed:{animationName:"slide-to-right, fade-out"}}},none:{}}},defaultVariants:{size:"md",scrollBehavior:"outside",placement:"top",motionPreset:"scale"}}),Q4=ye({slots:a4.keys(),className:"chakra-drawer",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",insetInlineStart:0,top:0,w:"100vw",h:"100dvh",zIndex:"overlay",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100vw",height:"100dvh",position:"fixed",insetInlineStart:0,top:0,zIndex:"modal",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,zIndex:"modal",textStyle:"sm",maxH:"100dvh",color:"inherit",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"slowest",animationTimingFunction:"ease-in-smooth"},_closed:{animationDuration:"slower",animationTimingFunction:"ease-in-smooth"}},header:{display:"flex",alignItems:"center",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{px:"6",py:"2",flex:"1",overflow:"auto"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{flex:"1",textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"3",insetEnd:"2"}},variants:{size:{xs:{content:{maxW:"xs"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},full:{content:{maxW:"100vw",h:"100dvh"}}},placement:{start:{positioner:{justifyContent:"flex-start",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-left-full, fade-in",_rtl:"slide-from-right-full, fade-in"}},_closed:{animationName:{base:"slide-to-left-full, fade-out",_rtl:"slide-to-right-full, fade-out"}}}},end:{positioner:{justifyContent:"flex-end",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-right-full, fade-in",_rtl:"slide-from-left-full, fade-in"}},_closed:{animationName:{base:"slide-to-right-full, fade-out",_rtl:"slide-to-left-full, fade-out"}}}},top:{positioner:{justifyContent:"stretch",alignItems:"flex-start"},content:{maxW:"100%",_open:{animationName:"slide-from-top-full, fade-in"},_closed:{animationName:"slide-to-top-full, fade-out"}}},bottom:{positioner:{justifyContent:"stretch",alignItems:"flex-end"},content:{maxW:"100%",_open:{animationName:"slide-from-bottom-full, fade-in"},_closed:{animationName:"slide-to-bottom-full, fade-out"}}}},contained:{true:{positioner:{padding:"4"},content:{borderRadius:"l3"}}}},defaultVariants:{size:"xs",placement:"end"}}),v0=ks({fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent",borderRadius:"l2"}),Z4=ye({slots:l4.keys(),className:"chakra-editable",base:{root:{display:"inline-flex",alignItems:"center",position:"relative",gap:"1.5",width:"full"},preview:{...v0,py:"1",px:"1",display:"inline-flex",alignItems:"center",transitionProperty:"common",transitionDuration:"moderate",cursor:"text",_hover:{bg:"bg.muted"},_disabled:{userSelect:"none"}},input:{...v0,outline:"0",py:"1",px:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",focusVisibleRing:"inside",focusRingWidth:"2px",_placeholder:{opacity:.6}},control:{display:"inline-flex",alignItems:"center",gap:"1.5"}},variants:{size:{sm:{root:{textStyle:"sm"},preview:{minH:"8"},input:{minH:"8"}},md:{root:{textStyle:"sm"},preview:{minH:"9"},input:{minH:"9"}},lg:{root:{textStyle:"md"},preview:{minH:"10"},input:{minH:"10"}}}},defaultVariants:{size:"md"}}),J4=ye({slots:c4.keys(),className:"chakra-empty-state",base:{root:{width:"full"},content:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:"fg.subtle",_icon:{boxSize:"1em"}},title:{fontWeight:"semibold"},description:{textStyle:"sm",color:"fg.muted"}},variants:{size:{sm:{root:{px:"4",py:"6"},title:{textStyle:"md"},content:{gap:"4"},indicator:{textStyle:"2xl"}},md:{root:{px:"8",py:"12"},title:{textStyle:"lg"},content:{gap:"6"},indicator:{textStyle:"4xl"}},lg:{root:{px:"12",py:"16"},title:{textStyle:"xl"},content:{gap:"8"},indicator:{textStyle:"6xl"}}}},defaultVariants:{size:"md"}}),eB=ye({className:"chakra-field",slots:u4.keys(),base:{requiredIndicator:{color:"fg.error",lineHeight:"1"},root:{display:"flex",width:"100%",position:"relative",gap:"1.5"},label:{display:"flex",alignItems:"center",textAlign:"start",textStyle:"sm",fontWeight:"medium",gap:"1",userSelect:"none",_disabled:{opacity:"0.5"}},errorText:{display:"inline-flex",alignItems:"center",fontWeight:"medium",gap:"1",color:"fg.error",textStyle:"xs"},helperText:{color:"fg.muted",textStyle:"xs"}},variants:{orientation:{vertical:{root:{flexDirection:"column",alignItems:"flex-start"}},horizontal:{root:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},label:{flex:"0 0 var(--field-label-width, 80px)"}}}},defaultVariants:{orientation:"vertical"}}),tB=ye({className:"fieldset",slots:d4.keys(),base:{root:{display:"flex",flexDirection:"column",width:"full"},content:{display:"flex",flexDirection:"column",width:"full"},legend:{color:"fg",fontWeight:"medium",_disabled:{opacity:"0.5"}},helperText:{color:"fg.muted",textStyle:"sm"},errorText:{display:"inline-flex",alignItems:"center",color:"fg.error",gap:"2",fontWeight:"medium",textStyle:"sm"}},variants:{size:{sm:{root:{spaceY:"2"},content:{gap:"1.5"},legend:{textStyle:"sm"}},md:{root:{spaceY:"4"},content:{gap:"4"},legend:{textStyle:"sm"}},lg:{root:{spaceY:"6"},content:{gap:"4"},legend:{textStyle:"md"}}}},defaultVariants:{size:"md"}}),nB=ye({className:"chakra-file-upload",slots:f4.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"4",width:"100%",alignItems:"flex-start"},label:{fontWeight:"medium",textStyle:"sm"},dropzone:{background:"bg",borderRadius:"l3",borderWidth:"2px",borderStyle:"dashed",display:"flex",alignItems:"center",flexDirection:"column",gap:"4",justifyContent:"center",minHeight:"2xs",px:"3",py:"2",transition:"backgrounds",focusVisibleRing:"outside",_hover:{bg:"bg.subtle"},_dragging:{bg:"colorPalette.subtle",borderStyle:"solid",borderColor:"colorPalette.solid"}},dropzoneContent:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",gap:"1",textStyle:"sm"},item:{pos:"relative",textStyle:"sm",animationName:"fade-in",animationDuration:"moderate",background:"bg",borderRadius:"l2",borderWidth:"1px",width:"100%",display:"flex",alignItems:"center",gap:"3",p:"4"},itemGroup:{width:"100%",display:"flex",flexDirection:"column",gap:"3",_empty:{display:"none"}},itemName:{color:"fg",fontWeight:"medium",lineClamp:"1"},itemContent:{display:"flex",flexDirection:"column",gap:"0.5",flex:"1"},itemSizeText:{color:"fg.muted",textStyle:"xs"},itemDeleteTrigger:{display:"flex",alignItems:"center",justifyContent:"center",alignSelf:"flex-start",boxSize:"5",p:"2px",color:"fg.muted",cursor:"button"},itemPreview:{color:"fg.muted",_icon:{boxSize:"4.5"}}},defaultVariants:{}}),rB=ye({className:"chakra-hover-card",slots:mS.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--hovercard-bg":"colors.bg.panel",bg:"var(--hovercard-bg)",boxShadow:"lg",maxWidth:"80",borderRadius:"l3",zIndex:"popover",transformOrigin:"var(--transform-origin)",outline:"0",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--hovercard-bg)"},arrowTip:{borderTopWidth:"0.5px",borderLeftWidth:"0.5px"}},variants:{size:{xs:{content:{padding:"3"}},sm:{content:{padding:"4"}},md:{content:{padding:"5"}},lg:{content:{padding:"6"}}}},defaultVariants:{size:"md"}}),oB=ye({className:"chakra-list",slots:g4.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"var(--list-gap)","& :where(ul, ol)":{marginTop:"var(--list-gap)"}},item:{whiteSpace:"normal",display:"list-item"},indicator:{marginEnd:"2",minHeight:"1lh",flexShrink:0,display:"inline-block",verticalAlign:"middle"}},variants:{variant:{marker:{root:{listStyle:"revert"},item:{_marker:{color:"fg.subtle"}}},plain:{item:{alignItems:"flex-start",display:"inline-flex"}}},align:{center:{item:{alignItems:"center"}},start:{item:{alignItems:"flex-start"}},end:{item:{alignItems:"flex-end"}}}},defaultVariants:{variant:"marker"}}),iB=ye({className:"chakra-listbox",slots:_4.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},content:{display:"flex",maxH:"96",p:"1",gap:"1",textStyle:"sm",outline:"none",scrollPadding:"1",_horizontal:{flexDirection:"row",overflowX:"auto"},_vertical:{flexDirection:"column",overflowY:"auto"},"--listbox-item-padding-x":"spacing.2","--listbox-item-padding-y":"spacing.1.5"},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"pointer",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",py:"var(--listbox-item-padding-y)",px:"var(--listbox-item-padding-x)",_highlighted:{outline:"2px solid",outlineColor:"border.emphasized"},_disabled:{pointerEvents:"none",opacity:"0.5"}},empty:{py:"var(--listbox-item-padding-y)",px:"var(--listbox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{mt:"1.5",_first:{mt:"0"}},itemGroupLabel:{py:"1.5",px:"2",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"4"}}},variants:{variant:{subtle:{content:{bg:"bg.panel",borderWidth:"1px",borderRadius:"l2"},item:{_hover:{bg:"bg.emphasized/60"},_selected:{bg:"bg.muted"}}},solid:{content:{bg:"bg.panel",borderWidth:"1px",borderRadius:"l2"},item:{_selected:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}},plain:{}}},defaultVariants:{variant:"subtle"}}),sB=ye({className:"chakra-menu",slots:p4.keys(),base:{content:{outline:0,bg:"bg.panel",boxShadow:"lg",color:"fg",maxHeight:"var(--available-height)","--menu-z-index":"zIndex.dropdown",zIndex:"calc(var(--menu-z-index) + var(--layer-index, 0))",borderRadius:"l2",overflow:"hidden",overflowY:"auto",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},item:{textDecoration:"none",color:"fg",userSelect:"none",borderRadius:"l1",width:"100%",display:"flex",cursor:"menuitem",alignItems:"center",textAlign:"start",position:"relative",flex:"0 0 auto",outline:0,_disabled:{layerStyle:"disabled"},"&[data-type]":{ps:"8"}},itemText:{flex:"1"},itemIndicator:{position:"absolute",insetStart:"2",transform:"translateY(-50%)",top:"50%"},itemGroupLabel:{px:"2",py:"1.5",fontWeight:"semibold",textStyle:"sm"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},itemCommand:{opacity:"0.6",textStyle:"xs",ms:"auto",ps:"4",letterSpacing:"widest",fontFamily:"inherit"},separator:{height:"1px",bg:"bg.muted",my:"1",mx:"-1"}},variants:{variant:{subtle:{item:{_highlighted:{bg:"bg.emphasized/60"}}},solid:{item:{_highlighted:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}}},size:{sm:{content:{minW:"8rem",padding:"1",scrollPadding:"1"},item:{gap:"1",textStyle:"xs",py:"1",px:"1.5"}},md:{content:{minW:"8rem",padding:"1.5",scrollPadding:"1.5"},item:{gap:"2",textStyle:"sm",py:"1.5",px:"2"}}}},defaultVariants:{size:"md",variant:"subtle"}}),pu=ye({className:"chakra-select",slots:b4.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},trigger:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"full",minH:"var(--select-trigger-height)","--input-height":"var(--select-trigger-height)",px:"var(--select-trigger-padding-x)",borderRadius:"l2",userSelect:"none",textAlign:"start",focusVisibleRing:"inside",_placeholderShown:{color:"fg.muted/80"},_disabled:{layerStyle:"disabled"},_invalid:{borderColor:"border.error"}},indicatorGroup:{display:"flex",alignItems:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--select-trigger-padding-x)",pointerEvents:"none"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:{base:"fg.muted",_disabled:"fg.subtle",_invalid:"fg.error"}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"fastest"}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{width:"4",height:"4"}},control:{pos:"relative"},itemText:{flex:"1"},itemGroup:{_first:{mt:"0"}},itemGroupLabel:{py:"1",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"}},variants:{variant:{outline:{trigger:{bg:"transparent",borderWidth:"1px",borderColor:"border",_expanded:{borderColor:"border.emphasized"}}},subtle:{trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}},size:{xs:{root:{"--select-trigger-height":"sizes.8","--select-trigger-padding-x":"spacing.2"},content:{p:"1",gap:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"},item:{py:"1",px:"2"},itemGroupLabel:{py:"1",px:"2"},indicator:{_icon:{width:"3.5",height:"3.5"}}},sm:{root:{"--select-trigger-height":"sizes.9","--select-trigger-padding-x":"spacing.2.5"},content:{p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"},indicator:{_icon:{width:"4",height:"4"}},item:{py:"1",px:"1.5"},itemGroup:{mt:"1"},itemGroupLabel:{py:"1",px:"1.5"}},md:{root:{"--select-trigger-height":"sizes.10","--select-trigger-padding-x":"spacing.3"},content:{p:"1",textStyle:"sm"},itemGroup:{mt:"1.5"},item:{py:"1.5",px:"2"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},itemGroupLabel:{py:"1.5",px:"2"},trigger:{textStyle:"sm",gap:"2"},indicator:{_icon:{width:"4",height:"4"}}},lg:{root:{"--select-trigger-height":"sizes.12","--select-trigger-padding-x":"spacing.4"},content:{p:"1.5",textStyle:"md"},itemGroup:{mt:"2"},item:{py:"2",px:"3"},itemGroupLabel:{py:"2",px:"3"},trigger:{textStyle:"md",py:"3",gap:"2"},indicator:{_icon:{width:"5",height:"5"}}}}},defaultVariants:{size:"md",variant:"outline"}}),aB=ye({className:"chakra-native-select",slots:h4.keys(),base:{root:{height:"fit-content",display:"flex",width:"100%",position:"relative"},field:{width:"100%",minWidth:"0",outline:"0",appearance:"none",borderRadius:"l2","--error-color":"colors.border.error","--input-height":"var(--select-field-height)",height:"var(--select-field-height)",_disabled:{layerStyle:"disabled"},_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"},focusVisibleRing:"inside",lineHeight:"normal","& > option, & > optgroup":{bg:"bg"}},indicator:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)",height:"100%",color:"fg.muted",_disabled:{opacity:"0.5"},_invalid:{color:"fg.error"},_icon:{width:"1em",height:"1em"}}},variants:{variant:{outline:{field:pu.variants?.variant.outline.trigger},subtle:{field:pu.variants?.variant.subtle.trigger},plain:{field:{bg:"transparent",color:"fg",focusRingWidth:"2px"}}},size:{xs:{root:{"--select-field-height":"sizes.8"},field:{textStyle:"xs",ps:"2",pe:"6"},indicator:{textStyle:"sm",insetEnd:"1.5"}},sm:{root:{"--select-field-height":"sizes.9"},field:{textStyle:"sm",ps:"2.5",pe:"8"},indicator:{textStyle:"md",insetEnd:"2"}},md:{root:{"--select-field-height":"sizes.10"},field:{textStyle:"sm",ps:"3",pe:"8"},indicator:{textStyle:"lg",insetEnd:"2"}},lg:{root:{"--select-field-height":"sizes.11"},field:{textStyle:"md",ps:"4",pe:"8"},indicator:{textStyle:"xl",insetEnd:"3"}},xl:{root:{"--select-field-height":"sizes.12"},field:{textStyle:"md",ps:"4.5",pe:"10"},indicator:{textStyle:"xl",insetEnd:"3"}}}},defaultVariants:pu.defaultVariants}),y0=ks({display:"flex",justifyContent:"center",alignItems:"center",flex:"1",userSelect:"none",cursor:"button",lineHeight:"1",color:"fg.muted","--stepper-base-radius":"radii.l1","--stepper-radius":"calc(var(--stepper-base-radius) + 1px)",_icon:{boxSize:"1em"},_disabled:{opacity:"0.5"},_hover:{bg:"bg.muted"},_active:{bg:"bg.emphasized"}}),lB=ye({className:"chakra-number-input",slots:xE.keys(),base:{root:{position:"relative",zIndex:"0",isolation:"isolate"},input:{...ot.base,verticalAlign:"top",pe:"calc(var(--stepper-width) + 0.5rem)"},control:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",width:"var(--stepper-width)",height:"calc(100% - 2px)",zIndex:"1",borderStartWidth:"1px",divideY:"1px"},incrementTrigger:{...y0,borderTopEndRadius:"var(--stepper-radius)"},decrementTrigger:{...y0,borderBottomEndRadius:"var(--stepper-radius)"},valueText:{fontWeight:"medium",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}},variants:{size:{xs:{input:ot.variants.size.xs,control:{fontSize:"2xs","--stepper-width":"sizes.4"}},sm:{input:ot.variants.size.sm,control:{fontSize:"xs","--stepper-width":"sizes.5"}},md:{input:ot.variants.size.md,control:{fontSize:"sm","--stepper-width":"sizes.6"}},lg:{input:ot.variants.size.lg,control:{fontSize:"sm","--stepper-width":"sizes.6"}}},variant:jn(ot.variants.variant,(e,t)=>[e,{input:t}])},defaultVariants:{size:"md",variant:"outline"}}),{variants:b0,defaultVariants:cB}=ot,uB=ye({className:"chakra-pin-input",slots:SE.keys(),base:{input:{...ot.base,textAlign:"center",width:"var(--input-height)"},control:{display:"inline-flex",gap:"2",isolation:"isolate"}},variants:{size:jn(b0.size,(e,t)=>[e,{input:{...t,px:"1"}}]),variant:jn(b0.variant,(e,t)=>[e,{input:t}]),attached:{true:{control:{gap:"0",spaceX:"-1px"},input:{_notFirst:{borderStartRadius:"0"},_notLast:{borderEndRadius:"0"},_focusVisible:{zIndex:"1"}}}}},defaultVariants:cB}),dB=ye({className:"chakra-popover",slots:m4.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--popover-bg":"colors.bg.panel",bg:"var(--popover-bg)",boxShadow:"lg","--popover-size":"sizes.xs","--popover-mobile-size":"calc(100dvw - 1rem)",width:{base:"min(var(--popover-mobile-size), var(--popover-size))",sm:"var(--popover-size)"},borderRadius:"l3","--popover-z-index":"zIndex.popover",zIndex:"calc(var(--popover-z-index) + var(--layer-index, 0))",outline:"0",transformOrigin:"var(--transform-origin)",maxHeight:"var(--available-height)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"faster"}},header:{paddingInline:"var(--popover-padding)",paddingTop:"var(--popover-padding)"},body:{padding:"var(--popover-padding)",flex:"1"},footer:{display:"flex",alignItems:"center",paddingInline:"var(--popover-padding)",paddingBottom:"var(--popover-padding)"},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--popover-bg)"},arrowTip:{borderTopWidth:"1px",borderLeftWidth:"1px"}},variants:{size:{xs:{content:{"--popover-padding":"spacing.3"}},sm:{content:{"--popover-padding":"spacing.4"}},md:{content:{"--popover-padding":"spacing.5"}},lg:{content:{"--popover-padding":"spacing.6"}}}},defaultVariants:{size:"md"}}),fB=ye({slots:Oh.keys(),className:"chakra-progress",base:{root:{textStyle:"sm",position:"relative"},track:{overflow:"hidden",position:"relative"},range:{display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"width, height",transitionDuration:"slow",height:"100%",bgColor:"var(--track-color)",_indeterminate:{"--animate-from-x":"-40%","--animate-to-x":"100%",position:"absolute",willChange:"left",minWidth:"50%",animation:"position 1s ease infinite normal none running",backgroundImage:"linear-gradient(to right, transparent 0%, var(--track-color) 50%, transparent 100%)"}},label:{display:"inline-flex",fontWeight:"medium",alignItems:"center",gap:"1"},valueText:{textStyle:"xs",lineHeight:"1",fontWeight:"medium"}},variants:{variant:{outline:{track:{shadow:"inset",bgColor:"bg.muted"},range:{bgColor:"colorPalette.solid"}},subtle:{track:{bgColor:"colorPalette.muted"},range:{bgColor:"colorPalette.solid/72"}}},shape:{square:{},rounded:{track:{borderRadius:"l1"}},full:{track:{borderRadius:"full"}}},striped:{true:{range:{backgroundImage:"linear-gradient(45deg, var(--stripe-color) 25%, transparent 25%, transparent 50%, var(--stripe-color) 50%, var(--stripe-color) 75%, transparent 75%, transparent)",backgroundSize:"var(--stripe-size) var(--stripe-size)","--stripe-size":"1rem","--stripe-color":{_light:"rgba(255, 255, 255, 0.3)",_dark:"rgba(0, 0, 0, 0.3)"}}}},animated:{true:{range:{"--animate-from":"var(--stripe-size)",animation:"bg-position 1s linear infinite"}}},size:{xs:{track:{h:"1.5"}},sm:{track:{h:"2"}},md:{track:{h:"2.5"}},lg:{track:{h:"3"}},xl:{track:{h:"4"}}}},defaultVariants:{variant:"outline",size:"md",shape:"rounded"}}),gB=ye({className:"chakra-progress-circle",slots:Oh.keys(),base:{root:{display:"inline-flex",textStyle:"sm",position:"relative"},circle:{_indeterminate:{animation:"spin 2s linear infinite"}},circleTrack:{"--track-color":"colors.colorPalette.muted",stroke:"var(--track-color)"},circleRange:{stroke:"colorPalette.solid",transitionProperty:"stroke-dashoffset, stroke-dasharray",transitionDuration:"0.6s",_indeterminate:{animation:"circular-progress 1.5s linear infinite"}},label:{display:"inline-flex"},valueText:{lineHeight:"1",fontWeight:"medium",letterSpacing:"tight",fontVariantNumeric:"tabular-nums"}},variants:{size:{xs:{circle:{"--size":"24px","--thickness":"4px"},valueText:{textStyle:"2xs"}},sm:{circle:{"--size":"32px","--thickness":"5px"},valueText:{textStyle:"2xs"}},md:{circle:{"--size":"40px","--thickness":"6px"},valueText:{textStyle:"xs"}},lg:{circle:{"--size":"48px","--thickness":"7px"},valueText:{textStyle:"sm"}},xl:{circle:{"--size":"64px","--thickness":"8px"},valueText:{textStyle:"sm"}}}},defaultVariants:{size:"md"}}),pB=ye({slots:FE.keys(),className:"chakra-qr-code",base:{root:{position:"relative",width:"fit-content","--qr-code-overlay-size":"calc(var(--qr-code-size) / 3)"},frame:{width:"var(--qr-code-size)",height:"var(--qr-code-size)",fill:"currentColor"},overlay:{display:"flex",alignItems:"center",justifyContent:"center",width:"var(--qr-code-overlay-size)",height:"var(--qr-code-overlay-size)",padding:"1",bg:"bg",rounded:"l1"}},variants:{size:{"2xs":{root:{"--qr-code-size":"40px"}},xs:{root:{"--qr-code-size":"64px"}},sm:{root:{"--qr-code-size":"80px"}},md:{root:{"--qr-code-size":"120px"}},lg:{root:{"--qr-code-size":"160px"}},xl:{root:{"--qr-code-size":"200px"}},"2xl":{root:{"--qr-code-size":"240px"}},full:{root:{"--qr-code-size":"100%"}}}},defaultVariants:{size:"md"}}),hB=ye({className:"chakra-radio-card",slots:v4.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",isolation:"isolate"},item:{flex:"1",display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",_focus:{bg:"colorPalette.muted/20"},_disabled:{opacity:"0.8",borderColor:"border.disabled"},_checked:{zIndex:"1"}},label:{display:"inline-flex",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},itemText:{fontWeight:"medium",flex:"1"},itemDescription:{opacity:"0.64",textStyle:"sm"},itemControl:{display:"inline-flex",flex:"1",pos:"relative",rounded:"inherit",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)",_disabled:{bg:"bg.muted"}},itemIndicator:At.base,itemAddon:{roundedBottom:"inherit",_disabled:{color:"fg.muted"}},itemContent:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)"}},variants:{size:{sm:{item:{textStyle:"sm"},itemControl:{padding:"3",gap:"1.5"},itemAddon:{px:"3",py:"1.5",borderTopWidth:"1px"},itemIndicator:At.variants?.size.sm},md:{item:{textStyle:"sm"},itemControl:{padding:"4",gap:"2.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:At.variants?.size.md},lg:{item:{textStyle:"md"},itemControl:{padding:"4",gap:"3.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:At.variants?.size.lg}},variant:{surface:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"}},itemIndicator:At.variants?.variant.solid},subtle:{item:{bg:"bg.muted"},itemControl:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},itemIndicator:At.variants?.variant.outline},outline:{item:{borderWidth:"1px",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},itemIndicator:At.variants?.variant.solid},solid:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},itemIndicator:At.variants?.variant.inverted}},justify:{start:{item:{"--radio-card-justify":"flex-start"}},end:{item:{"--radio-card-justify":"flex-end"}},center:{item:{"--radio-card-justify":"center"}}},align:{start:{item:{"--radio-card-align":"flex-start"},itemControl:{textAlign:"start"}},end:{item:{"--radio-card-align":"flex-end"},itemControl:{textAlign:"end"}},center:{item:{"--radio-card-align":"center"},itemControl:{textAlign:"center"}}},orientation:{vertical:{itemControl:{flexDirection:"column"}},horizontal:{itemControl:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}}),mB=ye({className:"chakra-radio-group",slots:Ck.keys(),base:{item:{display:"inline-flex",alignItems:"center",position:"relative",fontWeight:"medium",_disabled:{cursor:"disabled"}},itemControl:At.base,label:{userSelect:"none",textStyle:"sm",_disabled:{opacity:"0.5"}}},variants:{variant:{outline:{itemControl:At.variants?.variant?.outline},subtle:{itemControl:At.variants?.variant?.subtle},solid:{itemControl:At.variants?.variant?.solid}},size:{xs:{item:{textStyle:"xs",gap:"1.5"},itemControl:At.variants?.size?.xs},sm:{item:{textStyle:"sm",gap:"2"},itemControl:At.variants?.size?.sm},md:{item:{textStyle:"sm",gap:"2.5"},itemControl:At.variants?.size?.md},lg:{item:{textStyle:"md",gap:"3"},itemControl:At.variants?.size?.lg}}},defaultVariants:{size:"md",variant:"solid"}}),vB=ye({className:"chakra-rating-group",slots:y4.keys(),base:{root:{display:"inline-flex"},control:{display:"inline-flex",alignItems:"center"},item:{display:"inline-flex",alignItems:"center",justifyContent:"center",userSelect:"none"},itemIndicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"1em",height:"1em",position:"relative","--clip-path":{base:"inset(0 50% 0 0)",_rtl:"inset(0 0 0 50%)"},_icon:{stroke:"currentColor",width:"100%",height:"100%",display:"inline-block",flexShrink:0,position:"absolute",left:0,top:0},"& [data-bg]":{color:"bg.emphasized"},"& [data-fg]":{color:"transparent"},"&[data-highlighted]:not([data-half])":{"& [data-fg]":{color:"colorPalette.solid"}},"&[data-half]":{"& [data-fg]":{color:"colorPalette.solid",clipPath:"var(--clip-path)"}}}},variants:{size:{xs:{item:{textStyle:"sm"}},sm:{item:{textStyle:"md"}},md:{item:{textStyle:"xl"}},lg:{item:{textStyle:"2xl"}}}},defaultVariants:{size:"md"}}),yB=ye({className:"chakra-scroll-area",slots:UE.keys(),base:{root:{display:"flex",flexDirection:"column",width:"100%",height:"100%",position:"relative",overflow:"hidden","--scrollbar-margin":"2px","--scrollbar-click-area":"calc(var(--scrollbar-size) + calc(var(--scrollbar-margin) * 2))"},viewport:{display:"flex",flexDirection:"column",height:"100%",width:"100%",borderRadius:"inherit",WebkitOverflowScrolling:"touch",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},content:{minWidth:"100%"},scrollbar:{display:"flex",userSelect:"none",touchAction:"none",borderRadius:"full",colorPalette:"gray",transition:"opacity 150ms 300ms",position:"relative",margin:"var(--scrollbar-margin)","&:not([data-overflow-x], [data-overflow-y])":{display:"none"},bg:"{colors.colorPalette.solid/10}","--thumb-bg":"{colors.colorPalette.solid/25}","&:is(:hover, :active)":{"--thumb-bg":"{colors.colorPalette.solid/50}"},_before:{content:'""',position:"absolute"},_vertical:{width:"var(--scrollbar-size)",flexDirection:"column","&::before":{width:"var(--scrollbar-click-area)",height:"100%",insetInlineStart:"calc(var(--scrollbar-margin) * -1)"}},_horizontal:{height:"var(--scrollbar-size)",flexDirection:"row","&::before":{height:"var(--scrollbar-click-area)",width:"100%",top:"calc(var(--scrollbar-margin) * -1)"}}},thumb:{borderRadius:"inherit",bg:"var(--thumb-bg)",transition:"backgrounds",_vertical:{width:"full"},_horizontal:{height:"full"}},corner:{bg:"bg.muted",margin:"var(--scrollbar-margin)",opacity:0,transition:"opacity 150ms 300ms","&[data-hover]":{transitionDelay:"0ms",opacity:1}}},variants:{variant:{hover:{scrollbar:{opacity:"0","&[data-hover], &[data-scrolling]":{opacity:"1",transitionDuration:"faster",transitionDelay:"0ms"}}},always:{scrollbar:{opacity:"1"}}},size:{xs:{root:{"--scrollbar-size":"sizes.1"}},sm:{root:{"--scrollbar-size":"sizes.1.5"}},md:{root:{"--scrollbar-size":"sizes.2"}},lg:{root:{"--scrollbar-size":"sizes.3"}}}},defaultVariants:{size:"md",variant:"hover"}}),bB=ye({className:"chakra-segment-group",slots:n1.keys(),base:{root:{"--segment-radius":"radii.l2","--segment-indicator-bg":{_light:"colors.bg",_dark:"colors.bg.emphasized"},"--segment-indicator-shadow":"shadows.sm",borderRadius:"var(--segment-radius)",display:"inline-flex",boxShadow:"inset",minW:"max-content",textAlign:"center",position:"relative",isolation:"isolate",bg:"bg.muted",_vertical:{flexDirection:"column"}},item:{display:"flex",alignItems:"center",justifyContent:"center",userSelect:"none",fontSize:"sm",position:"relative",color:"fg",borderRadius:"var(--segment-radius)",_disabled:{opacity:"0.5"},"&:has(input:focus-visible)":{focusRing:"outside"},_before:{content:'""',position:"absolute",bg:"border",transition:"opacity 0.2s"},_horizontal:{_before:{insetInlineStart:0,insetBlock:"1.5",width:"1px"}},_vertical:{_before:{insetBlockStart:0,insetInline:"1.5",height:"1px"}},"& + &[data-state=checked], &[data-state=checked] + &, &:first-of-type":{_before:{opacity:"0"}},"&[data-state=checked][data-ssr]":{shadow:"sm",bg:"bg",borderRadius:"var(--segment-radius)"}},indicator:{shadow:"var(--segment-indicator-shadow)",pos:"absolute",bg:"var(--segment-indicator-bg)",width:"var(--width)",height:"var(--height)",top:"var(--top)",left:"var(--left)",zIndex:-1,borderRadius:"var(--segment-radius)"}},variants:{size:{xs:{item:{textStyle:"xs",px:"3",gap:"1",height:"6"}},sm:{item:{textStyle:"sm",px:"4",gap:"2",height:"8"}},md:{item:{textStyle:"sm",px:"4",gap:"2",height:"10"}},lg:{item:{textStyle:"md",px:"4.5",gap:"3",height:"11"}}}},defaultVariants:{size:"md"}}),xB=ye({className:"chakra-slider",slots:w4.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",textStyle:"sm",position:"relative",isolation:"isolate",touchAction:"none"},label:{fontWeight:"medium",textStyle:"sm"},control:{display:"inline-flex",alignItems:"center",position:"relative"},track:{overflow:"hidden",borderRadius:"full",flex:"1"},range:{width:"inherit",height:"inherit",_disabled:{bg:"border.emphasized!"}},markerGroup:{position:"absolute!",zIndex:"1"},marker:{"--marker-bg":{base:"white",_underValue:"colors.bg"},display:"flex",alignItems:"center",gap:"calc(var(--slider-thumb-size) / 2)",color:"fg.muted",textStyle:"xs"},markerIndicator:{width:"var(--slider-marker-size)",height:"var(--slider-marker-size)",borderRadius:"full",bg:"var(--marker-bg)"},thumb:{width:"var(--slider-thumb-size)",height:"var(--slider-thumb-size)",display:"flex",alignItems:"center",justifyContent:"center",outline:0,zIndex:"2",borderRadius:"full",_focusVisible:{ring:"2px",ringColor:"colorPalette.focusRing",ringOffset:"2px",ringOffsetColor:"bg"}}},variants:{size:{sm:{root:{"--slider-thumb-size":"sizes.4","--slider-track-size":"sizes.1.5","--slider-marker-center":"6px","--slider-marker-size":"sizes.1","--slider-marker-inset":"3px"}},md:{root:{"--slider-thumb-size":"sizes.5","--slider-track-size":"sizes.2","--slider-marker-center":"8px","--slider-marker-size":"sizes.1","--slider-marker-inset":"4px"}},lg:{root:{"--slider-thumb-size":"sizes.6","--slider-track-size":"sizes.2.5","--slider-marker-center":"9px","--slider-marker-size":"sizes.1.5","--slider-marker-inset":"5px"}}},variant:{outline:{track:{shadow:"inset",bg:"bg.emphasized/72"},range:{bg:"colorPalette.solid"},thumb:{borderWidth:"2px",borderColor:"colorPalette.solid",bg:"bg",_disabled:{bg:"border.emphasized",borderColor:"border.emphasized"}}},solid:{track:{bg:"colorPalette.subtle",_disabled:{bg:"bg.muted"}},range:{bg:"colorPalette.solid"},thumb:{bg:"colorPalette.solid",_disabled:{bg:"border.emphasized"}}}},orientation:{vertical:{root:{display:"inline-flex"},control:{flexDirection:"column",height:"100%",minWidth:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginEnd:"4"}},track:{width:"var(--slider-track-size)"},thumb:{left:"50%",translate:"-50% 0"},markerGroup:{insetStart:"var(--slider-marker-center)",insetBlock:"var(--slider-marker-inset)"},marker:{flexDirection:"row"}},horizontal:{control:{flexDirection:"row",width:"100%",minHeight:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginBottom:"4"}},track:{height:"var(--slider-track-size)"},thumb:{top:"50%",translate:"0 -50%"},markerGroup:{top:"var(--slider-marker-center)",insetInline:"var(--slider-marker-inset)"},marker:{flexDirection:"column"}}}},defaultVariants:{size:"md",variant:"outline",orientation:"horizontal"}}),wB=ye({slots:V4.keys(),className:"splitter",base:{resizeTrigger:{"--splitter-border-color":"colors.border","--splitter-thumb-color":"colors.bg","--splitter-thumb-size":"sizes.2","--splitter-thumb-inset":"calc(var(--splitter-thumb-size) * -0.5)","--splitter-border-size":"1px","--splitter-handle-size":"sizes.6",outline:"0",display:"grid",placeItems:"center",position:"relative",_focus:{"--splitter-border-color":"colors.border.emphasized","--splitter-thumb-color":"colors.colorPalette.subtle"},_dragging:{"--splitter-thumb-color":"colors.colorPalette.focusRing"},_horizontal:{minWidth:"var(--splitter-thumb-size)",marginInline:"var(--splitter-thumb-inset)"},_vertical:{minHeight:"var(--splitter-thumb-size)",marginBlock:"var(--splitter-thumb-inset)"}},resizeTriggerSeparator:{position:"absolute",bg:"var(--splitter-border-color)","[data-part='resize-trigger'][data-orientation=horizontal] &":{insetInlineEnd:"calc(var(--splitter-thumb-size) * 0.5)",insetBlock:"0",insetInlineStart:"auto",w:"var(--splitter-border-size)"},"[data-part='resize-trigger'][data-orientation=vertical] &":{insetBlockEnd:"calc(var(--splitter-thumb-size) * 0.5)",insetInline:"0",insetBlockStart:"auto",h:"var(--splitter-border-size)"}},resizeTriggerIndicator:{position:"relative",rounded:"full",bg:"var(--splitter-thumb-color)",shadow:"xs",borderWidth:"1px",zIndex:"1","[data-part='resize-trigger'][data-orientation=horizontal] &":{w:"full",h:"var(--splitter-handle-size)"},"[data-part='resize-trigger'][data-orientation=vertical] &":{w:"var(--splitter-handle-size)",h:"full"},"[data-part='resize-trigger'][data-focus]:focus-visible &":{outlineWidth:"2px",outlineColor:"colorPalette.focusRing",outlineStyle:"solid"},"[data-part='resize-trigger'][data-disabled] &":{visibility:"hidden"}}}}),CB=ye({className:"chakra-stat",slots:C4.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",position:"relative",flex:"1"},label:{display:"inline-flex",gap:"1.5",alignItems:"center",color:"fg.muted",textStyle:"sm"},helpText:{color:"fg.muted",textStyle:"xs"},valueUnit:{color:"fg.muted",textStyle:"xs",fontWeight:"initial",letterSpacing:"initial"},valueText:{verticalAlign:"baseline",fontWeight:"semibold",letterSpacing:"tight",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums",display:"inline-flex",gap:"1"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",marginEnd:1,"& :where(svg)":{w:"1em",h:"1em"},"&[data-type=up]":{color:"fg.success"},"&[data-type=down]":{color:"fg.error"}}},variants:{size:{sm:{valueText:{textStyle:"xl"}},md:{valueText:{textStyle:"2xl"}},lg:{valueText:{textStyle:"3xl"}}}},defaultVariants:{size:"md"}}),SB=ye({className:"chakra-status",slots:S4.keys(),base:{root:{display:"inline-flex",alignItems:"center",gap:"2"},indicator:{width:"0.64em",height:"0.64em",flexShrink:0,borderRadius:"full",forcedColorAdjust:"none",bg:"colorPalette.solid"}},variants:{size:{sm:{root:{textStyle:"xs"}},md:{root:{textStyle:"sm"}},lg:{root:{textStyle:"md"}}}},defaultVariants:{size:"md"}}),EB=ye({className:"chakra-steps",slots:E4.keys(),base:{root:{display:"flex",width:"full"},list:{display:"flex",justifyContent:"space-between","--steps-gutter":"spacing.3","--steps-thickness":"2px"},title:{fontWeight:"medium",color:"fg"},description:{color:"fg.muted"},separator:{bg:"border",flex:"1"},indicator:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:"0",borderRadius:"full",fontWeight:"medium",width:"var(--steps-size)",height:"var(--steps-size)",_icon:{flexShrink:"0",width:"var(--steps-icon-size)",height:"var(--steps-icon-size)"}},item:{position:"relative",display:"flex",gap:"3",flex:"1 0 0","&:last-of-type":{flex:"initial","& [data-part=separator]":{display:"none"}}},trigger:{display:"flex",alignItems:"center",gap:"3",textAlign:"start",focusVisibleRing:"outside",borderRadius:"l2"},content:{focusVisibleRing:"outside"}},variants:{orientation:{vertical:{root:{flexDirection:"row",height:"100%"},list:{flexDirection:"column",alignItems:"flex-start"},separator:{position:"absolute",width:"var(--steps-thickness)",height:"100%",maxHeight:"calc(100% - var(--steps-size) - var(--steps-gutter) * 2)",top:"calc(var(--steps-size) + var(--steps-gutter))",insetStart:"calc(var(--steps-size) / 2 - 1px)"},item:{alignItems:"flex-start"}},horizontal:{root:{flexDirection:"column",width:"100%"},list:{flexDirection:"row",alignItems:"center"},separator:{width:"100%",height:"var(--steps-thickness)",marginX:"var(--steps-gutter)"},item:{alignItems:"center"}}},variant:{solid:{indicator:{_incomplete:{borderWidth:"var(--steps-thickness)"},_current:{bg:"colorPalette.muted",borderWidth:"var(--steps-thickness)",borderColor:"colorPalette.solid",color:"colorPalette.fg"},_complete:{bg:"colorPalette.solid",borderColor:"colorPalette.solid",color:"colorPalette.contrast"}},separator:{_complete:{bg:"colorPalette.solid"}}},subtle:{indicator:{_incomplete:{bg:"bg.muted"},_current:{bg:"colorPalette.muted",color:"colorPalette.fg"},_complete:{bg:"colorPalette.emphasized",color:"colorPalette.fg"}},separator:{_complete:{bg:"colorPalette.emphasized"}}}},size:{xs:{root:{gap:"2.5"},list:{"--steps-size":"sizes.6","--steps-icon-size":"sizes.3.5",textStyle:"xs"},title:{textStyle:"sm"}},sm:{root:{gap:"3"},list:{"--steps-size":"sizes.8","--steps-icon-size":"sizes.4",textStyle:"xs"},title:{textStyle:"sm"}},md:{root:{gap:"4"},list:{"--steps-size":"sizes.10","--steps-icon-size":"sizes.4",textStyle:"sm"},title:{textStyle:"sm"}},lg:{root:{gap:"6"},list:{"--steps-size":"sizes.11","--steps-icon-size":"sizes.5",textStyle:"md"},title:{textStyle:"md"}}}},defaultVariants:{size:"md",variant:"solid",orientation:"horizontal"}}),kB=ye({slots:k4.keys(),className:"chakra-switch",base:{root:{display:"inline-flex",gap:"2.5",alignItems:"center",position:"relative",verticalAlign:"middle","--switch-diff":"calc(var(--switch-width) - var(--switch-height))","--switch-x":{base:"var(--switch-diff)",_rtl:"calc(var(--switch-diff) * -1)"}},label:{lineHeight:"1",userSelect:"none",fontSize:"sm",fontWeight:"medium",_disabled:{opacity:"0.5"}},indicator:{position:"absolute",height:"var(--switch-height)",width:"var(--switch-height)",fontSize:"var(--switch-indicator-font-size)",fontWeight:"medium",flexShrink:0,userSelect:"none",display:"grid",placeContent:"center",transition:"inset-inline-start 0.12s ease",insetInlineStart:"calc(var(--switch-x) - 2px)",_checked:{insetInlineStart:"2px"}},control:{display:"inline-flex",gap:"0.5rem",flexShrink:0,justifyContent:"flex-start",cursor:"switch",borderRadius:"full",position:"relative",width:"var(--switch-width)",height:"var(--switch-height)",transition:"backgrounds",_disabled:{opacity:"0.5",cursor:"not-allowed"},_invalid:{outline:"2px solid",outlineColor:"border.error",outlineOffset:"2px"}},thumb:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,transitionProperty:"translate",transitionDuration:"fast",borderRadius:"inherit",_checked:{translate:"var(--switch-x) 0"}}},variants:{variant:{solid:{control:{borderRadius:"full",bg:"bg.emphasized",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}},thumb:{bg:"white",width:"var(--switch-height)",height:"var(--switch-height)",scale:"0.8",boxShadow:"sm",_checked:{bg:"colorPalette.contrast"}}},raised:{control:{borderRadius:"full",height:"calc(var(--switch-height) / 2)",bg:"bg.muted",boxShadow:"inset",_checked:{bg:"colorPalette.solid/60"}},thumb:{width:"var(--switch-height)",height:"var(--switch-height)",position:"relative",top:"calc(var(--switch-height) * -0.25)",bg:"white",boxShadow:"xs",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}}}},size:{xs:{root:{"--switch-width":"sizes.6","--switch-height":"sizes.3","--switch-indicator-font-size":"fontSizes.xs"}},sm:{root:{"--switch-width":"sizes.8","--switch-height":"sizes.4","--switch-indicator-font-size":"fontSizes.xs"}},md:{root:{"--switch-width":"sizes.10","--switch-height":"sizes.5","--switch-indicator-font-size":"fontSizes.sm"}},lg:{root:{"--switch-width":"sizes.12","--switch-height":"sizes.6","--switch-indicator-font-size":"fontSizes.md"}}}},defaultVariants:{variant:"solid",size:"md"}}),PB=ye({className:"chakra-table",slots:P4.keys(),base:{root:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full",textAlign:"start",verticalAlign:"top"},row:{_selected:{bg:"colorPalette.subtle"}},cell:{textAlign:"start",alignItems:"center"},columnHeader:{fontWeight:"medium",textAlign:"start",color:"fg"},caption:{fontWeight:"medium",textStyle:"xs"},footer:{fontWeight:"medium"}},variants:{interactive:{true:{body:{"& tr":{_hover:{bg:"colorPalette.subtle"}}}}},stickyHeader:{true:{header:{"& :where(tr)":{top:"var(--table-sticky-offset, 0)",position:"sticky",zIndex:1}}}},striped:{true:{row:{"&:nth-of-type(odd) td":{bg:"bg.muted"}}}},showColumnBorder:{true:{columnHeader:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}},cell:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}}}},variant:{line:{columnHeader:{borderBottomWidth:"1px"},cell:{borderBottomWidth:"1px"},row:{bg:"bg"}},outline:{root:{boxShadow:"0 0 0 1px {colors.border}"},columnHeader:{borderBottomWidth:"1px"},header:{bg:"bg.muted"},row:{"&:not(:last-of-type)":{borderBottomWidth:"1px"}},footer:{borderTopWidth:"1px"}}},size:{sm:{root:{textStyle:"sm"},columnHeader:{px:"2",py:"2"},cell:{px:"2",py:"2"}},md:{root:{textStyle:"sm"},columnHeader:{px:"3",py:"3"},cell:{px:"3",py:"3"}},lg:{root:{textStyle:"md"},columnHeader:{px:"4",py:"3"},cell:{px:"4",py:"3"}}}},defaultVariants:{variant:"line",size:"md"}}),IB=ye({slots:T4.keys(),className:"chakra-tabs",base:{root:{"--tabs-trigger-radius":"radii.l2","--tabs-indicator-shadow":"shadows.xs","--tabs-indicator-bg":"colors.bg",position:"relative",_horizontal:{display:"block"},_vertical:{display:"flex"}},list:{display:"inline-flex",position:"relative",isolation:"isolate",minH:"var(--tabs-height)",_horizontal:{flexDirection:"row"},_vertical:{flexDirection:"column"}},trigger:{outline:"0",minW:"var(--tabs-height)",height:"var(--tabs-height)",display:"flex",alignItems:"center",fontWeight:"medium",position:"relative",cursor:"button",gap:"2",_focusVisible:{zIndex:1,outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{cursor:"not-allowed",opacity:.5}},content:{focusVisibleRing:"inside",_horizontal:{width:"100%",pt:"var(--tabs-content-padding)"},_vertical:{height:"100%",ps:"var(--tabs-content-padding)"}},indicator:{width:"var(--width)",height:"var(--height)",borderRadius:"var(--tabs-trigger-radius)",bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",zIndex:-1}},variants:{fitted:{true:{list:{display:"flex"},trigger:{flex:1,textAlign:"center",justifyContent:"center"}}},justify:{start:{list:{justifyContent:"flex-start"}},center:{list:{justifyContent:"center"}},end:{list:{justifyContent:"flex-end"}}},size:{sm:{root:{"--tabs-height":"sizes.9","--tabs-content-padding":"spacing.3"},trigger:{py:"1",px:"3",textStyle:"sm"}},md:{root:{"--tabs-height":"sizes.10","--tabs-content-padding":"spacing.4"},trigger:{py:"2",px:"4",textStyle:"sm"}},lg:{root:{"--tabs-height":"sizes.11","--tabs-content-padding":"spacing.4.5"},trigger:{py:"2",px:"4.5",textStyle:"md"}}},variant:{line:{list:{display:"flex",borderColor:"border",_horizontal:{borderBottomWidth:"1px"},_vertical:{borderEndWidth:"1px"}},trigger:{color:"fg.muted",_disabled:{_active:{bg:"initial"}},_selected:{color:"fg",_horizontal:{layerStyle:"indicator.bottom","--indicator-offset-y":"-1px","--indicator-color":"colors.colorPalette.solid"},_vertical:{layerStyle:"indicator.end","--indicator-offset-x":"-1px"}}}},subtle:{trigger:{borderRadius:"var(--tabs-trigger-radius)",color:"fg.muted",_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}},enclosed:{list:{bg:"bg.muted",padding:"1",borderRadius:"l3",minH:"calc(var(--tabs-height) - 4px)"},trigger:{justifyContent:"center",color:"fg.muted",borderRadius:"var(--tabs-trigger-radius)",_selected:{bg:"bg",color:"colorPalette.fg",shadow:"xs"}}},outline:{list:{"--line-thickness":"1px","--line-offset":"calc(var(--line-thickness) * -1)",borderColor:"border",display:"flex",_horizontal:{_before:{content:'""',position:"absolute",bottom:"0px",width:"100%",borderBottomWidth:"var(--line-thickness)",borderBottomColor:"border"}},_vertical:{_before:{content:'""',position:"absolute",insetInline:"var(--line-offset)",height:"calc(100% - calc(var(--line-thickness) * 2))",borderEndWidth:"var(--line-thickness)",borderEndColor:"border"}}},trigger:{color:"fg.muted",borderWidth:"1px",borderColor:"transparent",_selected:{bg:"currentBg",color:"colorPalette.fg"},_horizontal:{borderTopRadius:"var(--tabs-trigger-radius)",marginBottom:"var(--line-offset)",marginEnd:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderBottomColor:"transparent"}},_vertical:{borderStartRadius:"var(--tabs-trigger-radius)",marginEnd:"var(--line-offset)",marginBottom:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderEndColor:"transparent"}}}},plain:{trigger:{color:"fg.muted",_selected:{color:"colorPalette.fg"},borderRadius:"var(--tabs-trigger-radius)","&[data-selected][data-ssr]":{bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",borderRadius:"var(--tabs-trigger-radius)"}}}}},defaultVariants:{size:"md",variant:"line"}}),Xc=_h.variants?.variant,TB=ye({slots:O4.keys(),className:"chakra-tag",base:{root:{display:"inline-flex",alignItems:"center",verticalAlign:"top",maxWidth:"100%",userSelect:"none",borderRadius:"l2",focusVisibleRing:"outside"},label:{lineClamp:"1"},closeTrigger:{display:"flex",alignItems:"center",justifyContent:"center",outline:"0",borderRadius:"l1",color:"currentColor",focusVisibleRing:"inside",focusRingWidth:"2px"},startElement:{flexShrink:0,boxSize:"var(--tag-element-size)",ms:"var(--tag-element-offset)","&:has([data-scope=avatar])":{boxSize:"var(--tag-avatar-size)",ms:"calc(var(--tag-element-offset) * 1.5)"},_icon:{boxSize:"100%"}},endElement:{flexShrink:0,boxSize:"var(--tag-element-size)",me:"var(--tag-element-offset)",_icon:{boxSize:"100%"},"&:has(button)":{ms:"calc(var(--tag-element-offset) * -1)"}}},variants:{size:{sm:{root:{px:"1.5",minH:"4.5",gap:"1","--tag-avatar-size":"spacing.3","--tag-element-size":"spacing.3","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},md:{root:{px:"1.5",minH:"5",gap:"1","--tag-avatar-size":"spacing.3.5","--tag-element-size":"spacing.3.5","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},lg:{root:{px:"2",minH:"6",gap:"1.5","--tag-avatar-size":"spacing.4.5","--tag-element-size":"spacing.4","--tag-element-offset":"-3px"},label:{textStyle:"sm"}},xl:{root:{px:"2.5",minH:"8",gap:"1.5","--tag-avatar-size":"spacing.6","--tag-element-size":"spacing.4.5","--tag-element-offset":"-4px"},label:{textStyle:"sm"}}},variant:{subtle:{root:Xc?.subtle},solid:{root:Xc?.solid},outline:{root:Xc?.outline},surface:{root:Xc?.surface}}},defaultVariants:{size:"md",variant:"surface"}}),OB=ye({slots:N1.keys(),className:"tags-input",base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},label:{fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},control:{"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",minH:"var(--tags-input-height)","--input-height":"var(--tags-input-height)",px:"var(--tags-input-px)",py:"var(--tags-input-py)",gap:"var(--tags-input-gap)",display:"flex",flexWrap:"wrap",alignItems:"center",borderRadius:"l2",pos:"relative",transitionProperty:"border-color, box-shadow",transitionDuration:"normal",_disabled:{opacity:"0.5"},_invalid:{borderColor:"var(--error-color)"}},input:{flex:"1",minWidth:"20",outline:"none",bg:"transparent",color:"fg",px:"calc(var(--tags-input-item-px) / 1.25)",height:"var(--tags-input-item-height)",_readOnly:{display:"none"}},item:{maxWidth:"100%",minWidth:"0"},itemText:{lineClamp:"1",minWidth:"0"},itemInput:{outline:"none",bg:"transparent",minWidth:"2ch",color:"inherit",px:"var(--tags-input-item-px)",height:"var(--tags-input-item-height)"},itemPreview:{height:"var(--tags-input-item-height)",userSelect:"none",display:"inline-flex",alignItems:"center",gap:"1",rounded:"l1",px:"var(--tags-input-item-px)",maxWidth:"100%"},itemDeleteTrigger:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:"0",boxSize:"calc(var(--tags-input-item-height) / 1.5)",cursor:{base:"button",_disabled:"initial"},me:"-1",opacity:"0.4",_hover:{opacity:"1"},"[data-highlighted] &":{opacity:"1"},_icon:{boxSize:"80%"}},clearTrigger:{display:"flex",alignItems:"center",justifyContent:"center",boxSize:"calc(var(--tags-input-item-height) / 1.5)",cursor:{base:"button",_disabled:"initial"},color:"fg.muted",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1",_icon:{boxSize:"5"}}},variants:{size:{xs:{root:{"--tags-input-height":"sizes.8","--tags-input-px":"spacing.1.5","--tags-input-py":"spacing.1","--tags-input-gap":"spacing.1","--tags-input-item-height":"sizes.6","--tags-input-item-px":"spacing.2",textStyle:"xs"}},sm:{root:{"--tags-input-height":"sizes.9","--tags-input-px":"spacing.1.5","--tags-input-py":"spacing.1","--tags-input-gap":"spacing.1","--tags-input-item-height":"sizes.6","--tags-input-item-px":"spacing.2",textStyle:"sm"}},md:{root:{"--tags-input-height":"sizes.10","--tags-input-px":"spacing.1.5","--tags-input-py":"spacing.1","--tags-input-gap":"spacing.1","--tags-input-item-height":"sizes.7","--tags-input-item-px":"spacing.2",textStyle:"sm"}},lg:{root:{"--tags-input-height":"sizes.11","--tags-input-px":"spacing.1.5","--tags-input-py":"spacing.1","--tags-input-gap":"spacing.1","--tags-input-item-height":"sizes.8","--tags-input-item-px":"spacing.2",textStyle:"md"}}},variant:{outline:{control:{borderWidth:"1px",bg:"bg",_focus:{outlineWidth:"1px",outlineStyle:"solid",outlineColor:"var(--focus-color)",borderColor:"var(--focus-color)",_invalid:{outlineColor:"var(--error-color)",borderColor:"var(--error-color)"}}},itemPreview:{bg:"colorPalette.subtle",_highlighted:{bg:"colorPalette.muted"}}},subtle:{control:{bg:"bg.muted",borderWidth:"1px",borderColor:"transparent",_focus:{outlineWidth:"1px",outlineStyle:"solid",outlineColor:"var(--focus-color)",borderColor:"var(--focus-color)",_invalid:{outlineColor:"var(--error-color)",borderColor:"var(--error-color)"}}},itemPreview:{bg:"bg",borderWidth:"1px",_highlighted:{bg:"colorPalette.subtle",borderColor:"colorPalette.emphasized"}}},flushed:{control:{borderRadius:"0",px:"0",bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",_focus:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}},itemPreview:{bg:"colorPalette.subtle",_highlighted:{bg:"colorPalette.muted"}}}}},defaultVariants:{size:"md",variant:"outline"}}),RB=ye({slots:R4.keys(),className:"chakra-timeline",base:{root:{display:"flex",flexDirection:"column",width:"full","--timeline-thickness":"1px","--timeline-gutter":"4px"},item:{"--timeline-content-gap":"spacing.6",display:"flex",position:"relative",alignItems:"flex-start",flexShrink:0,gap:"4",_last:{"--timeline-content-gap":"0"}},separator:{display:"var(--timeline-separator-display)",position:"absolute",borderStartWidth:"var(--timeline-thickness)",ms:"calc(-1 * var(--timeline-thickness) / 2)",insetInlineStart:"calc(var(--timeline-indicator-size) / 2)",insetBlock:"0",borderColor:"border"},indicator:{outline:"2px solid {colors.bg}",position:"relative",flexShrink:"0",boxSize:"var(--timeline-indicator-size)",fontSize:"var(--timeline-font-size)",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontWeight:"medium"},connector:{alignSelf:"stretch",position:"relative"},content:{pb:"var(--timeline-content-gap)",display:"flex",flexDirection:"column",width:"full",gap:"2"},title:{display:"flex",fontWeight:"medium",flexWrap:"wrap",gap:"1.5",alignItems:"center",mt:"var(--timeline-margin)"},description:{color:"fg.muted",textStyle:"xs"}},variants:{variant:{subtle:{indicator:{bg:"colorPalette.muted"}},solid:{indicator:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},outline:{indicator:{bg:"currentBg",borderWidth:"1px",borderColor:"colorPalette.muted"}},plain:{}},showLastSeparator:{true:{item:{_last:{"--timeline-separator-display":"initial"}}},false:{item:{_last:{"--timeline-separator-display":"none"}}}},size:{sm:{root:{"--timeline-indicator-size":"sizes.4","--timeline-font-size":"fontSizes.2xs"},title:{textStyle:"xs"}},md:{root:{"--timeline-indicator-size":"sizes.5","--timeline-font-size":"fontSizes.xs"},title:{textStyle:"sm"}},lg:{root:{"--timeline-indicator-size":"sizes.6","--timeline-font-size":"fontSizes.xs"},title:{mt:"0.5",textStyle:"sm"}},xl:{root:{"--timeline-indicator-size":"sizes.8","--timeline-font-size":"fontSizes.sm"},title:{mt:"1.5",textStyle:"sm"}}}},defaultVariants:{size:"md",variant:"solid",showLastSeparator:!1}}),NB=ye({slots:I4.keys(),className:"chakra-toast",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",gap:"3",py:"4",ps:"4",pe:"6",borderRadius:"l2",translate:"var(--x) var(--y)",scale:"var(--scale)",zIndex:"var(--z-index)",height:"var(--height)",opacity:"var(--opacity)",willChange:"translate, opacity, scale",transition:"translate 400ms, scale 400ms, opacity 400ms, height 400ms, box-shadow 200ms",transitionTimingFunction:"cubic-bezier(0.21, 1.02, 0.73, 1)",_closed:{transition:"translate 400ms, scale 400ms, opacity 200ms",transitionTimingFunction:"cubic-bezier(0.06, 0.71, 0.55, 1)"},bg:"bg.panel",color:"fg",boxShadow:"xl","--toast-trigger-bg":"colors.bg.muted","&[data-type=warning]":{bg:"orange.solid",color:"orange.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=success]":{bg:"green.solid",color:"green.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=error]":{bg:"red.solid",color:"red.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"}},title:{fontWeight:"medium",textStyle:"sm",marginEnd:"2"},description:{display:"inline",textStyle:"sm",opacity:"0.8"},indicator:{flexShrink:"0",boxSize:"5"},actionTrigger:{textStyle:"sm",fontWeight:"medium",height:"8",px:"3",borderRadius:"l2",alignSelf:"center",borderWidth:"1px",borderColor:"var(--toast-border-color, inherit)",transition:"background 200ms",_hover:{bg:"var(--toast-trigger-bg)"}},closeTrigger:{position:"absolute",top:"1",insetEnd:"1",padding:"1",display:"inline-flex",alignItems:"center",justifyContent:"center",color:"{currentColor/60}",borderRadius:"l2",textStyle:"md",transition:"background 200ms",_icon:{boxSize:"1em"}}}}),AB=ye({slots:K1.keys(),className:"chakra-tooltip",base:{content:{"--tooltip-bg":"colors.bg.inverted",bg:"var(--tooltip-bg)",color:"fg.inverted",px:"2.5",py:"1",borderRadius:"l2",fontWeight:"medium",textStyle:"xs",boxShadow:"md",maxW:"xs",zIndex:"tooltip",transformOrigin:"var(--transform-origin)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"fast"}},arrow:{"--arrow-size":"sizes.2","--arrow-background":"var(--tooltip-bg)"},arrowTip:{borderTopWidth:"1px",borderLeftWidth:"1px",borderColor:"var(--tooltip-bg)"}}}),x0=ks({display:"flex",alignItems:"center",gap:"var(--tree-item-gap)",rounded:"l2",userSelect:"none",position:"relative","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-icon-offset":"calc(var(--tree-icon-size) * var(--tree-depth) * 0.5)","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset) + var(--tree-icon-offset))",ps:"var(--tree-offset)",pe:"var(--tree-padding-inline)",py:"var(--tree-padding-block)",focusVisibleRing:"inside",focusRingColor:"border.emphasized",focusRingWidth:"2px","&:hover, &:focus-visible":{bg:"bg.muted"},_disabled:{layerStyle:"disabled"}}),w0=ks({flex:"1"}),C0=ks({_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}),S0=ks({_selected:{layerStyle:"fill.solid"}}),VB=ye({slots:wS.keys(),className:"chakra-tree-view",base:{root:{width:"full",display:"flex",flexDirection:"column",gap:"2"},tree:{display:"flex",flexDirection:"column","--tree-item-gap":"spacing.2",_icon:{boxSize:"var(--tree-icon-size)"}},label:{fontWeight:"medium",textStyle:"sm"},branch:{position:"relative"},branchContent:{position:"relative"},branchIndentGuide:{height:"100%",width:"1px",bg:"border",position:"absolute","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset))","--tree-icon-offset":"calc(var(--tree-icon-size) * 0.5 * var(--depth))",insetInlineStart:"calc(var(--tree-offset) + var(--tree-icon-offset))",zIndex:"1"},branchIndicator:{color:"fg.muted",transformOrigin:"center",transitionDuration:"normal",transitionProperty:"transform",transitionTimingFunction:"default",_open:{transform:"rotate(90deg)"}},branchTrigger:{display:"inline-flex",alignItems:"center",justifyContent:"center"},branchControl:x0,item:x0,itemText:w0,branchText:w0,nodeCheckbox:{display:"inline-flex"}},variants:{size:{md:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1.5","--tree-icon-size":"spacing.4"}},sm:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}},xs:{tree:{textStyle:"xs","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.2","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}}},variant:{subtle:{branchControl:C0,item:C0},solid:{branchControl:S0,item:S0}},animateContent:{true:{branchContent:{_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}},defaultVariants:{size:"md",variant:"subtle"}}),_B={accordion:L4,actionBar:$4,alert:D4,avatar:z4,blockquote:F4,breadcrumb:M4,card:B4,carousel:W4,checkbox:H4,checkboxCard:j4,codeBlock:G4,collapsible:U4,dataList:X4,dialog:q4,drawer:Q4,editable:Z4,emptyState:J4,field:eB,fieldset:tB,fileUpload:nB,hoverCard:rB,list:oB,listbox:iB,menu:sB,nativeSelect:aB,numberInput:lB,pinInput:uB,popover:dB,progress:fB,progressCircle:gB,radioCard:hB,radioGroup:mB,ratingGroup:vB,scrollArea:yB,segmentGroup:bB,select:pu,combobox:Y4,slider:xB,splitter:wB,stat:CB,steps:EB,switch:kB,table:PB,tabs:IB,tag:TB,tagsInput:OB,toast:NB,tooltip:AB,status:SB,timeline:RB,colorPicker:K4,qrCode:pB,treeView:VB},LB=n5({"2xs":{value:{fontSize:"2xs",lineHeight:"0.75rem"}},xs:{value:{fontSize:"xs",lineHeight:"1rem"}},sm:{value:{fontSize:"sm",lineHeight:"1.25rem"}},md:{value:{fontSize:"md",lineHeight:"1.5rem"}},lg:{value:{fontSize:"lg",lineHeight:"1.75rem"}},xl:{value:{fontSize:"xl",lineHeight:"1.875rem"}},"2xl":{value:{fontSize:"2xl",lineHeight:"2rem"}},"3xl":{value:{fontSize:"3xl",lineHeight:"2.375rem"}},"4xl":{value:{fontSize:"4xl",lineHeight:"2.75rem",letterSpacing:"-0.025em"}},"5xl":{value:{fontSize:"5xl",lineHeight:"3.75rem",letterSpacing:"-0.025em"}},"6xl":{value:{fontSize:"6xl",lineHeight:"4.5rem",letterSpacing:"-0.025em"}},"7xl":{value:{fontSize:"7xl",lineHeight:"5.75rem",letterSpacing:"-0.025em"}},none:{value:{}},label:{value:{fontSize:"sm",lineHeight:"1.25rem",fontWeight:"medium"}}}),$B=ft.animations({spin:{value:"spin 1s linear infinite"},ping:{value:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite"},pulse:{value:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"},bounce:{value:"bounce 1s infinite"}}),DB=ft.aspectRatios({square:{value:"1 / 1"},landscape:{value:"4 / 3"},portrait:{value:"3 / 4"},wide:{value:"16 / 9"},ultrawide:{value:"18 / 5"},golden:{value:"1.618 / 1"}}),zB=ft.blurs({none:{value:" "},sm:{value:"4px"},md:{value:"8px"},lg:{value:"12px"},xl:{value:"16px"},"2xl":{value:"24px"},"3xl":{value:"40px"},"4xl":{value:"64px"}}),FB=ft.borders({xs:{value:"0.5px solid"},sm:{value:"1px solid"},md:{value:"2px solid"},lg:{value:"4px solid"},xl:{value:"8px solid"}}),MB=ft.colors({transparent:{value:"transparent"},current:{value:"currentColor"},black:{value:"#09090B"},white:{value:"#FFFFFF"},whiteAlpha:{50:{value:"rgba(255, 255, 255, 0.04)"},100:{value:"rgba(255, 255, 255, 0.06)"},200:{value:"rgba(255, 255, 255, 0.08)"},300:{value:"rgba(255, 255, 255, 0.16)"},400:{value:"rgba(255, 255, 255, 0.24)"},500:{value:"rgba(255, 255, 255, 0.36)"},600:{value:"rgba(255, 255, 255, 0.48)"},700:{value:"rgba(255, 255, 255, 0.64)"},800:{value:"rgba(255, 255, 255, 0.80)"},900:{value:"rgba(255, 255, 255, 0.92)"},950:{value:"rgba(255, 255, 255, 0.95)"}},blackAlpha:{50:{value:"rgba(0, 0, 0, 0.04)"},100:{value:"rgba(0, 0, 0, 0.06)"},200:{value:"rgba(0, 0, 0, 0.08)"},300:{value:"rgba(0, 0, 0, 0.16)"},400:{value:"rgba(0, 0, 0, 0.24)"},500:{value:"rgba(0, 0, 0, 0.36)"},600:{value:"rgba(0, 0, 0, 0.48)"},700:{value:"rgba(0, 0, 0, 0.64)"},800:{value:"rgba(0, 0, 0, 0.80)"},900:{value:"rgba(0, 0, 0, 0.92)"},950:{value:"rgba(0, 0, 0, 0.95)"}},gray:{50:{value:"#fafafa"},100:{value:"#f4f4f5"},200:{value:"#e4e4e7"},300:{value:"#d4d4d8"},400:{value:"#a1a1aa"},500:{value:"#71717a"},600:{value:"#52525b"},700:{value:"#3f3f46"},800:{value:"#27272a"},900:{value:"#18181b"},950:{value:"#111111"}},red:{50:{value:"#fef2f2"},100:{value:"#fee2e2"},200:{value:"#fecaca"},300:{value:"#fca5a5"},400:{value:"#f87171"},500:{value:"#ef4444"},600:{value:"#dc2626"},700:{value:"#991919"},800:{value:"#511111"},900:{value:"#300c0c"},950:{value:"#1f0808"}},orange:{50:{value:"#fff7ed"},100:{value:"#ffedd5"},200:{value:"#fed7aa"},300:{value:"#fdba74"},400:{value:"#fb923c"},500:{value:"#f97316"},600:{value:"#ea580c"},700:{value:"#92310a"},800:{value:"#6c2710"},900:{value:"#3b1106"},950:{value:"#220a04"}},yellow:{50:{value:"#fefce8"},100:{value:"#fef9c3"},200:{value:"#fef08a"},300:{value:"#fde047"},400:{value:"#facc15"},500:{value:"#eab308"},600:{value:"#ca8a04"},700:{value:"#845209"},800:{value:"#713f12"},900:{value:"#422006"},950:{value:"#281304"}},green:{50:{value:"#f0fdf4"},100:{value:"#dcfce7"},200:{value:"#bbf7d0"},300:{value:"#86efac"},400:{value:"#4ade80"},500:{value:"#22c55e"},600:{value:"#16a34a"},700:{value:"#116932"},800:{value:"#124a28"},900:{value:"#042713"},950:{value:"#03190c"}},teal:{50:{value:"#f0fdfa"},100:{value:"#ccfbf1"},200:{value:"#99f6e4"},300:{value:"#5eead4"},400:{value:"#2dd4bf"},500:{value:"#14b8a6"},600:{value:"#0d9488"},700:{value:"#0c5d56"},800:{value:"#114240"},900:{value:"#032726"},950:{value:"#021716"}},blue:{50:{value:"#eff6ff"},100:{value:"#dbeafe"},200:{value:"#bfdbfe"},300:{value:"#a3cfff"},400:{value:"#60a5fa"},500:{value:"#3b82f6"},600:{value:"#2563eb"},700:{value:"#173da6"},800:{value:"#1a3478"},900:{value:"#14204a"},950:{value:"#0c142e"}},cyan:{50:{value:"#ecfeff"},100:{value:"#cffafe"},200:{value:"#a5f3fc"},300:{value:"#67e8f9"},400:{value:"#22d3ee"},500:{value:"#06b6d4"},600:{value:"#0891b2"},700:{value:"#0c5c72"},800:{value:"#134152"},900:{value:"#072a38"},950:{value:"#051b24"}},purple:{50:{value:"#faf5ff"},100:{value:"#f3e8ff"},200:{value:"#e9d5ff"},300:{value:"#d8b4fe"},400:{value:"#c084fc"},500:{value:"#a855f7"},600:{value:"#9333ea"},700:{value:"#641ba3"},800:{value:"#4a1772"},900:{value:"#2f0553"},950:{value:"#1a032e"}},pink:{50:{value:"#fdf2f8"},100:{value:"#fce7f3"},200:{value:"#fbcfe8"},300:{value:"#f9a8d4"},400:{value:"#f472b6"},500:{value:"#ec4899"},600:{value:"#db2777"},700:{value:"#a41752"},800:{value:"#6d0e34"},900:{value:"#45061f"},950:{value:"#2c0514"}}}),BB=ft.cursor({button:{value:"pointer"},checkbox:{value:"default"},disabled:{value:"not-allowed"},menuitem:{value:"default"},option:{value:"default"},radio:{value:"default"},slider:{value:"default"},switch:{value:"pointer"}}),WB=ft.durations({fastest:{value:"50ms"},faster:{value:"100ms"},fast:{value:"150ms"},moderate:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),HB=ft.easings({"ease-in":{value:"cubic-bezier(0.42, 0, 1, 1)"},"ease-out":{value:"cubic-bezier(0, 0, 0.58, 1)"},"ease-in-out":{value:"cubic-bezier(0.42, 0, 0.58, 1)"},"ease-in-smooth":{value:"cubic-bezier(0.32, 0.72, 0, 1)"}}),jB=ft.fontSizes({"2xs":{value:"0.625rem"},xs:{value:"0.75rem"},sm:{value:"0.875rem"},md:{value:"1rem"},lg:{value:"1.125rem"},xl:{value:"1.25rem"},"2xl":{value:"1.5rem"},"3xl":{value:"1.875rem"},"4xl":{value:"2.25rem"},"5xl":{value:"3rem"},"6xl":{value:"3.75rem"},"7xl":{value:"4.5rem"},"8xl":{value:"6rem"},"9xl":{value:"8rem"}}),GB=ft.fontWeights({thin:{value:"100"},extralight:{value:"200"},light:{value:"300"},normal:{value:"400"},medium:{value:"500"},semibold:{value:"600"},bold:{value:"700"},extrabold:{value:"800"},black:{value:"900"}}),E0='-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',UB=ft.fonts({heading:{value:`Inter, ${E0}`},body:{value:`Inter, ${E0}`},mono:{value:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'}}),KB=e5({spin:{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}},pulse:{"50%":{opacity:"0.5"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}},"bg-position":{from:{backgroundPosition:"var(--animate-from, 1rem) 0"},to:{backgroundPosition:"var(--animate-to, 0) 0"}},position:{from:{insetInlineStart:"var(--animate-from-x)",insetBlockStart:"var(--animate-from-y)"},to:{insetInlineStart:"var(--animate-to-x)",insetBlockStart:"var(--animate-to-y)"}},"circular-progress":{"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100%"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260%"}},"expand-height":{from:{height:"var(--collapsed-height, 0)"},to:{height:"var(--height)"}},"collapse-height":{from:{height:"var(--height)"},to:{height:"var(--collapsed-height, 0)"}},"expand-width":{from:{width:"var(--collapsed-width, 0)"},to:{width:"var(--width)"}},"collapse-width":{from:{height:"var(--width)"},to:{height:"var(--collapsed-width, 0)"}},"fade-in":{from:{opacity:0},to:{opacity:1}},"fade-out":{from:{opacity:1},to:{opacity:0}},"slide-from-left-full":{from:{translate:"-100% 0"},to:{translate:"0 0"}},"slide-from-right-full":{from:{translate:"100% 0"},to:{translate:"0 0"}},"slide-from-top-full":{from:{translate:"0 -100%"},to:{translate:"0 0"}},"slide-from-bottom-full":{from:{translate:"0 100%"},to:{translate:"0 0"}},"slide-to-left-full":{from:{translate:"0 0"},to:{translate:"-100% 0"}},"slide-to-right-full":{from:{translate:"0 0"},to:{translate:"100% 0"}},"slide-to-top-full":{from:{translate:"0 0"},to:{translate:"0 -100%"}},"slide-to-bottom-full":{from:{translate:"0 0"},to:{translate:"0 100%"}},"slide-from-top":{"0%":{translate:"0 -0.5rem"},to:{translate:"0"}},"slide-from-bottom":{"0%":{translate:"0 0.5rem"},to:{translate:"0"}},"slide-from-left":{"0%":{translate:"-0.5rem 0"},to:{translate:"0"}},"slide-from-right":{"0%":{translate:"0.5rem 0"},to:{translate:"0"}},"slide-to-top":{"0%":{translate:"0"},to:{translate:"0 -0.5rem"}},"slide-to-bottom":{"0%":{translate:"0"},to:{translate:"0 0.5rem"}},"slide-to-left":{"0%":{translate:"0"},to:{translate:"-0.5rem 0"}},"slide-to-right":{"0%":{translate:"0"},to:{translate:"0.5rem 0"}},"scale-in":{from:{scale:"0.95"},to:{scale:"1"}},"scale-out":{from:{scale:"1"},to:{scale:"0.95"}}}),YB=ft.letterSpacings({tighter:{value:"-0.05em"},tight:{value:"-0.025em"},wide:{value:"0.025em"},wider:{value:"0.05em"},widest:{value:"0.1em"}}),XB=ft.lineHeights({shorter:{value:1.25},short:{value:1.375},moderate:{value:1.5},tall:{value:1.625},taller:{value:2}}),qB=ft.radii({none:{value:"0"},"2xs":{value:"0.0625rem"},xs:{value:"0.125rem"},sm:{value:"0.25rem"},md:{value:"0.375rem"},lg:{value:"0.5rem"},xl:{value:"0.75rem"},"2xl":{value:"1rem"},"3xl":{value:"1.5rem"},"4xl":{value:"2rem"},full:{value:"9999px"}}),Sk=ft.spacing({.5:{value:"0.125rem"},1:{value:"0.25rem"},1.5:{value:"0.375rem"},2:{value:"0.5rem"},2.5:{value:"0.625rem"},3:{value:"0.75rem"},3.5:{value:"0.875rem"},4:{value:"1rem"},4.5:{value:"1.125rem"},5:{value:"1.25rem"},6:{value:"1.5rem"},7:{value:"1.75rem"},8:{value:"2rem"},9:{value:"2.25rem"},10:{value:"2.5rem"},11:{value:"2.75rem"},12:{value:"3rem"},14:{value:"3.5rem"},16:{value:"4rem"},20:{value:"5rem"},24:{value:"6rem"},28:{value:"7rem"},32:{value:"8rem"},36:{value:"9rem"},40:{value:"10rem"},44:{value:"11rem"},48:{value:"12rem"},52:{value:"13rem"},56:{value:"14rem"},60:{value:"15rem"},64:{value:"16rem"},72:{value:"18rem"},80:{value:"20rem"},96:{value:"24rem"}}),QB=ft.sizes({"3xs":{value:"14rem"},"2xs":{value:"16rem"},xs:{value:"20rem"},sm:{value:"24rem"},md:{value:"28rem"},lg:{value:"32rem"},xl:{value:"36rem"},"2xl":{value:"42rem"},"3xl":{value:"48rem"},"4xl":{value:"56rem"},"5xl":{value:"64rem"},"6xl":{value:"72rem"},"7xl":{value:"80rem"},"8xl":{value:"90rem"}}),ZB=ft.sizes({max:{value:"max-content"},min:{value:"min-content"},fit:{value:"fit-content"},prose:{value:"60ch"},full:{value:"100%"},dvh:{value:"100dvh"},svh:{value:"100svh"},lvh:{value:"100lvh"},dvw:{value:"100dvw"},svw:{value:"100svw"},lvw:{value:"100lvw"},vw:{value:"100vw"},vh:{value:"100vh"}}),JB=ft.sizes({"1/2":{value:"50%"},"1/3":{value:"33.333333%"},"2/3":{value:"66.666667%"},"1/4":{value:"25%"},"3/4":{value:"75%"},"1/5":{value:"20%"},"2/5":{value:"40%"},"3/5":{value:"60%"},"4/5":{value:"80%"},"1/6":{value:"16.666667%"},"2/6":{value:"33.333333%"},"3/6":{value:"50%"},"4/6":{value:"66.666667%"},"5/6":{value:"83.333333%"},"1/12":{value:"8.333333%"},"2/12":{value:"16.666667%"},"3/12":{value:"25%"},"4/12":{value:"33.333333%"},"5/12":{value:"41.666667%"},"6/12":{value:"50%"},"7/12":{value:"58.333333%"},"8/12":{value:"66.666667%"},"9/12":{value:"75%"},"10/12":{value:"83.333333%"},"11/12":{value:"91.666667%"}}),eW=ft.sizes({...QB,...Sk,...JB,...ZB}),tW=ft.zIndex({hide:{value:-1},base:{value:0},docked:{value:10},dropdown:{value:1e3},sticky:{value:1100},banner:{value:1200},overlay:{value:1300},modal:{value:1400},popover:{value:1500},skipNav:{value:1600},toast:{value:1700},tooltip:{value:1800},max:{value:2147483647}}),nW={aspectRatios:DB,animations:$B,blurs:zB,borders:FB,colors:MB,durations:WB,easings:HB,fonts:UB,fontSizes:jB,fontWeights:GB,letterSpacings:YB,lineHeights:XB,radii:qB,spacing:Sk,sizes:eW,zIndex:tW,cursor:BB},rW={colors:X3,shadows:Q3,radii:q3},oW="chakra",iW=":where(html, .chakra-theme)",sW=J1({preflight:!0,cssVarsPrefix:oW,cssVarsRoot:iW,globalCss:O3,theme:{breakpoints:T3,keyframes:KB,tokens:nW,semanticTokens:rW,recipes:Y3,slotRecipes:_B,textStyles:LB,layerStyles:R3,animationStyles:N3}}),aW=Q1(f5,sW);P3(aW);function lW(e){const{key:t,recipe:n}=e,r=Jo();return k.useMemo(()=>{const i=n||(t!=null?r.getSlotRecipe(t):{});return r.sva(structuredClone(i))},[t,n,r])}const cW=e=>e.charAt(0).toUpperCase()+e.slice(1),Lt=e=>{const{key:t,recipe:n}=e,r=cW(t||n.className||"Component"),[i,a]=Ji({name:`${r}StylesContext`,errorMessage:`use${r}Styles returned is 'undefined'. Seems you forgot to wrap the components in "<${r}.Root />" `}),[c,u]=Ji({name:`${r}ClassNameContext`,errorMessage:`use${r}ClassNames returned is 'undefined'. Seems you forgot to wrap the components in "<${r}.Root />" `,strict:!1}),[f,p]=Ji({strict:!1,name:`${r}PropsContext`,providerName:`${r}PropsContext`,defaultValue:{}});function h(w){const{unstyled:x,...E}=w,O=lW({key:t,recipe:E.recipe||n}),[N,R]=k.useMemo(()=>O.splitVariantProps(E),[E,O]);return{styles:k.useMemo(()=>x?U0:O(N),[x,N,O]),classNames:O.classNameMap,props:R}}function y(w,x={}){const{defaultProps:E}=x,O=N=>{const R=p(),S=k.useMemo(()=>qa(E,R,N),[R,N]),{styles:T,classNames:L,props:M}=h(S);return P.jsx(i,{value:T,children:P.jsx(c,{value:L,children:P.jsx(w,{...M})})})};return O.displayName=w.displayName||w.name,O}return{StylesProvider:i,ClassNamesProvider:c,PropsProvider:f,usePropsContext:p,useRecipeResult:h,withProvider:(w,x,E)=>{const{defaultProps:O,...N}=E??{},R=Ie(w,{},N),S=k.forwardRef((T,L)=>{const M=p(),B=k.useMemo(()=>qa(O??{},M,T),[M,T]),{styles:j,props:W,classNames:U}=h(B),$=U[x],H=P.jsx(i,{value:j,children:P.jsx(c,{value:U,children:P.jsx(R,{ref:L,...W,css:[j[x],B.css],className:St(B.className,$)})})});return E?.wrapElement?.(H,B)??H});return S.displayName=w.displayName||w.name,S},withContext:(w,x,E)=>{const O=Ie(w,{},E),N=k.forwardRef((R,S)=>{const{unstyled:T,...L}=R,M=a(),j=u()?.[x];return P.jsx(O,{...L,css:[!T&&x?M[x]:void 0,R.css],ref:S,className:St(R.className,j)})});return N.displayName=w.displayName||w.name,N},withRootProvider:y,useStyles:a,useClassNames:u}},Ek=Ie("div",{base:{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},variants:{axis:{horizontal:{insetStart:"50%",translate:"-50%",_rtl:{translate:"50%"}},vertical:{top:"50%",translate:"0 -50%"},both:{insetStart:"50%",top:"50%",translate:"-50% -50%",_rtl:{translate:"50% -50%"}}}},defaultVariants:{axis:"both"}});Ek.displayName="AbsoluteCenter";const uW=e=>P.jsx(Ie.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:P.jsx("path",{d:"M20 6 9 17l-5-5"})}),kk=e=>P.jsx(Ie.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:P.jsx("path",{d:"m6 9 6 6 6-6"})}),dW=e=>P.jsx(Ie.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:P.jsx("path",{d:"m9 18 6-6-6-6"})}),fW=e=>P.jsxs(Ie.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[P.jsx("circle",{cx:"12",cy:"12",r:"1"}),P.jsx("circle",{cx:"19",cy:"12",r:"1"}),P.jsx("circle",{cx:"5",cy:"12",r:"1"})]}),gW=e=>P.jsx(Ie.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:P.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11.0026 16L6.75999 11.7574L8.17421 10.3431L11.0026 13.1716L16.6595 7.51472L18.0737 8.92893L11.0026 16Z"})}),k0=e=>P.jsx(Ie.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:P.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z"})}),Pk=e=>P.jsx(Ie.svg,{viewBox:"0 0 24 24",fill:"currentColor",...e,children:P.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711Z"})}),{withProvider:Ik,withContext:pl}=Lt({key:"accordion"});Ik(hC,"root",{forwardAsChild:!0});const NH=Ik(pC,"root",{forwardAsChild:!0}),AH=pl(lC,"item",{forwardAsChild:!0}),VH=pl(uC,"itemContent",{forwardAsChild:!0});pl("div","itemBody");const _H=pl(fC,"itemTrigger",{forwardAsChild:!0}),LH=pl(dC,"itemIndicator",{forwardAsChild:!0,defaultProps:{children:P.jsx(kk,{})}}),{withRootProvider:Tk,withContext:hl}=Lt({key:"actionBar"});Tk($E,{defaultProps:{lazyMount:!0,unmountOnExit:!0}});const $H=Tk(LE,{defaultProps:{autoFocus:!1,lazyMount:!0,unmountOnExit:!0}}),DH=hl("div","positioner",{forwardAsChild:!0}),zH=hl(Th,"content",{forwardAsChild:!0}),FH=hl("div","separator"),MH=hl("button","selectionTrigger"),BH=hl(Ih,"closeTrigger",{forwardAsChild:!0}),sr=e=>e?"":void 0,pW=Ie("div",{base:{display:"inline-flex",gap:"var(--group-gap, 0.5rem)",isolation:"isolate",position:"relative","& [data-group-item]":{_focusVisible:{zIndex:1}}},variants:{orientation:{horizontal:{flexDirection:"row"},vertical:{flexDirection:"column"}},attached:{true:{gap:"0!"}},grow:{true:{display:"flex","& > *":{flex:1}}},stacking:{"first-on-top":{"& > [data-group-item]":{zIndex:"calc(var(--group-count) - var(--group-index))"}},"last-on-top":{"& > [data-group-item]":{zIndex:"var(--group-index)"}}}},compoundVariants:[{orientation:"horizontal",attached:!0,css:{"& > *[data-first]":{borderEndRadius:"0!",marginEnd:"-1px"},"& > *[data-between]":{borderRadius:"0!",marginEnd:"-1px"},"& > *[data-last]":{borderStartRadius:"0!"}}},{orientation:"vertical",attached:!0,css:{"& > *[data-first]":{borderBottomRadius:"0!",marginBottom:"-1px"},"& > *[data-between]":{borderRadius:"0!",marginBottom:"-1px"},"& > *[data-last]":{borderTopRadius:"0!"}}}],defaultVariants:{orientation:"horizontal"}}),Lh=k.memo(k.forwardRef(function(t,n){const{align:r="center",justify:i="flex-start",children:a,wrap:c,skip:u,...f}=t,p=k.useMemo(()=>{let h=k.Children.toArray(a).filter(k.isValidElement);if(h.length===1)return h;const y=h.filter(v=>!u?.(v)),b=y.length;return y.length===1?h:h.map(v=>{const w=v.props;if(u?.(v))return v;const x=y.indexOf(v);return k.cloneElement(v,{...w,"data-group-item":"","data-first":sr(x===0),"data-last":sr(x===b-1),"data-between":sr(x>0&&x<b-1),style:{"--group-count":b,"--group-index":x,...w?.style??{}}})})},[a,u]);return P.jsx(pW,{ref:n,alignItems:r,justifyContent:i,flexWrap:c,...f,className:St("chakra-group",t.className),children:p})}));Lh.displayName="Group";const{withContext:hW}=Rn({key:"badge"}),mW=hW("span");mW.displayName="Badge";const{withProvider:vW,withContext:Ps}=Lt({key:"breadcrumb"}),WH=vW("nav","root",{defaultProps:{"aria-label":"breadcrumb"}}),HH=Ps("ol","list"),jH=Ps("li","item"),GH=Ps("a","link"),UH=Ps("span","currentLink",{defaultProps:{role:"link","aria-current":"page"}}),KH=Ps("li","separator",{defaultProps:{"aria-hidden":!0,children:P.jsx(dW,{})}});Ps("li","ellipsis",{defaultProps:{role:"presentation","aria-hidden":!0,children:P.jsx(fW,{})}});const{withContext:yW}=Rn({key:"spinner"}),Ok=yW("span");Ok.displayName="Spinner";const Rk=k.forwardRef(function(t,n){const{spinner:r=P.jsx(Ok,{size:"inherit",borderWidth:"0.125em",color:"inherit"}),spinnerPlacement:i="start",children:a,text:c,visible:u=!0,...f}=t;return u?c?P.jsxs(La,{ref:n,display:"contents",...f,children:[i==="start"&&r,c,i==="end"&&r]}):r?P.jsxs(La,{ref:n,display:"contents",...f,children:[P.jsx(Ek,{display:"inline-flex",children:r}),P.jsx(La,{visibility:"hidden",display:"contents",children:a})]}):P.jsx(La,{ref:n,display:"contents",...f,children:a}):a});Rk.displayName="Loader";const{useRecipeResult:bW,PropsProvider:xW,usePropsContext:wW}=Rn({key:"button"}),Nk=k.forwardRef(function(t,n){const r=wW(),i=k.useMemo(()=>qa(r,t),[r,t]),a=bW(i),{loading:c,loadingText:u,children:f,spinner:p,spinnerPlacement:h,...y}=a.props;return P.jsx(Ie.button,{type:"button",ref:n,...y,"data-loading":sr(c),disabled:c||y.disabled,className:St(a.className,i.className),css:[a.styles,i.css],children:!i.asChild&&c?P.jsx(Rk,{spinner:p,text:u,spinnerPlacement:h,children:f}):f})});Nk.displayName="Button";const CW=xW,Ak=k.forwardRef(function(t,n){return P.jsx(Nk,{px:"0",py:"0",_icon:{fontSize:"1.2em"},ref:n,...t})});Ak.displayName="IconButton";const SW=k.forwardRef(function(t,n){const r=Lu({key:"button"}),[i,a]=k.useMemo(()=>r.splitVariantProps(t),[t,r]);return P.jsx(CW,{value:i,children:P.jsx(Lh,{ref:n,...a})})});SW.displayName="ButtonGroup";const EW=k.forwardRef(function(t,n){return P.jsx(Ak,{variant:"ghost","aria-label":"Close",ref:n,...t,children:t.children??P.jsx(Pk,{})})});EW.displayName="CloseButton";const kW=Ie("div",{base:{display:"flex",alignItems:"center",justifyContent:"center"},variants:{inline:{true:{display:"inline-flex"}}}});kW.displayName="Center";const Vk=k.forwardRef(function(t,n){const r=Lu({key:"checkmark",recipe:t.recipe}),[i,a]=r.splitVariantProps(t),{checked:c,indeterminate:u,disabled:f,unstyled:p,children:h,...y}=a,b=p?G0:r(i);return P.jsx(Ie.svg,{ref:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3px",strokeLinecap:"round",strokeLinejoin:"round","data-state":u?"indeterminate":c?"checked":"unchecked","data-disabled":sr(f),css:[b,t.css],...y,children:u?P.jsx("path",{d:"M5 12h14"}):c?P.jsx("polyline",{points:"20 6 9 17 4 12"}):null})});Vk.displayName="Checkmark";const{withProvider:_k,withContext:Lk,useStyles:PW}=Lt({key:"checkbox"});_k(LC,"root",{forwardAsChild:!0});const YH=_k(_C,"root",{forwardAsChild:!0});Lk(VC,"label",{forwardAsChild:!0});const IW=k.forwardRef(function(t,n){const{checked:r,indeterminate:i,...a}=t,c=Xu(),u=PW();return r&&c.checked?P.jsx(Ie.svg,{ref:n,asChild:!0,...a,css:[u.indicator,t.css],children:r}):i&&c.indeterminate?P.jsx(Ie.svg,{ref:n,asChild:!0,...a,css:[u.indicator,t.css],children:i}):P.jsx(Vk,{ref:n,checked:c.checked,indeterminate:c.indeterminate,disabled:c.disabled,unstyled:!0,...a,css:[u.indicator,t.css]})}),XH=Lk(SC,"control",{forwardAsChild:!0,defaultProps:{children:P.jsx(IW,{})}});Ie(NC,{base:{display:"flex",flexDirection:"column",gap:"1.5"}},{forwardAsChild:!0});const qH=AC,{withContext:TW}=Rn({key:"code"}),OW=TW("code");OW.displayName="Code";function RW(e){const{gap:t,direction:n}=e,r={column:{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},"column-reverse":{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},row:{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0},"row-reverse":{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0}};return{"&":id(n,i=>r[i])}}function NW(e){return k.Children.toArray(e).filter(t=>k.isValidElement(t))}const ld=k.forwardRef(function(t,n){const{direction:r="column",align:i,justify:a,gap:c="0.5rem",wrap:u,children:f,separator:p,className:h,...y}=t,b=k.useMemo(()=>RW({gap:c,direction:r}),[c,r]),v=k.useMemo(()=>k.isValidElement(p)?NW(f).map((w,x,E)=>{const O=typeof w.key<"u"?w.key:x,N=p,R=k.cloneElement(N,{css:[b,N.props.css]});return P.jsxs(k.Fragment,{children:[w,x===E.length-1?null:R]},O)}):f,[f,p,b]);return P.jsx(Ie.div,{ref:n,display:"flex",alignItems:i,justifyContent:a,flexDirection:r,flexWrap:u,gap:p?void 0:c,className:St("chakra-stack",h),...y,children:v})});ld.displayName="Stack";const{withRootProvider:$k,withContext:fr}=Lt({key:"dialog"});$k(JC,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});const QH=$k(ZC,{defaultProps:{unmountOnExit:!0,lazyMount:!0}}),ZH=fr(hh,"trigger",{forwardAsChild:!0}),JH=fr(fh,"positioner",{forwardAsChild:!0}),ej=fr(uh,"content",{forwardAsChild:!0});fr(dh,"description",{forwardAsChild:!0});const tj=fr(ph,"title",{forwardAsChild:!0}),nj=fr(ch,"closeTrigger",{forwardAsChild:!0}),rj=k.forwardRef(function(t,n){const r=$r();return P.jsx(Ie.button,{...t,ref:n,onClick:()=>r.setOpen(!1)})}),oj=fr(lh,"backdrop",{forwardAsChild:!0}),ij=fr("div","body"),sj=fr("div","footer"),aj=fr("div","header"),{withRootProvider:Dk,withContext:gr}=Lt({key:"drawer"});Dk(JC,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});const lj=Dk(ZC,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});gr(hh,"trigger",{forwardAsChild:!0});const cj=gr(fh,"positioner",{forwardAsChild:!0}),uj=gr(uh,"content",{forwardAsChild:!0});gr(dh,"description",{forwardAsChild:!0});const dj=gr(ph,"title",{forwardAsChild:!0}),fj=gr(ch,"closeTrigger",{forwardAsChild:!0});k.forwardRef(function(t,n){const r=$r();return P.jsx(Ie.button,{...t,ref:n,onClick:()=>r.setOpen(!1)})});const gj=gr(lh,"backdrop",{forwardAsChild:!0}),pj=gr("div","body"),hj=gr("div","footer"),mj=gr("div","header"),{useRecipeResult:AW}=Rn({key:"icon"}),zk=k.forwardRef(function(t,n){const{styles:r,className:i,props:a}=AW({asChild:!t.as,...t});return P.jsx(Ie.svg,{ref:n,focusable:!1,"aria-hidden":"true",...a,css:[r,t.css],className:St(i,t.className)})});zk.displayName="Icon";function VW(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:i={}}=e,a=k.Children.toArray(e.path),c=k.forwardRef((u,f)=>P.jsx(zk,{ref:f,asChild:!1,viewBox:t,...i,...u,children:a.length?a:P.jsx("path",{fill:"currentColor",d:n})}));return c.displayName=r,c}const{withProvider:_W,withContext:$h,useStyles:LW,useClassNames:$W}=Lt({key:"field"}),vj=_W(sS,"root",{forwardAsChild:!0}),yj=$h(oS,"label",{forwardAsChild:!0});$h(nS,"helperText",{forwardAsChild:!0});$h(tS,"errorText",{forwardAsChild:!0});VW({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"});k.forwardRef(function(t,n){const{fallback:r,children:i="*",...a}=t,c=Vn(),u=$W(),f=LW();return c?.required?P.jsx(Ie.span,{ref:n,"aria-hidden":"true",...a,className:St(u.requiredIndicator,t.className),css:[f.requiredIndicator,t.css],children:i}):r});function DW(e){const{each:t,fallback:n,children:r}=e;return t?.length===0?n||null:t?.map(r)}const zW=k.forwardRef(function(t,n){const{direction:r,align:i,justify:a,wrap:c,basis:u,grow:f,shrink:p,inline:h,...y}=t;return P.jsx(Ie.div,{ref:n,...y,css:{display:h?"inline-flex":"flex",flexDirection:r,alignItems:i,justifyContent:a,flexWrap:c,flexBasis:u,flexGrow:f,flexShrink:p,...t.css}})});zW.displayName="Flex";const{withRootProvider:Fk,withContext:ml}=Lt({key:"hoverCard"});Fk(K_);const bj=Fk(U_),xj=ml(xS,"trigger",{forwardAsChild:!0}),wj=ml(hS,"positioner",{forwardAsChild:!0}),Cj=ml(pS,"content",{forwardAsChild:!0}),FW=ml(gS,"arrowTip",{forwardAsChild:!0}),Sj=ml(fS,"arrow",{forwardAsChild:!0,defaultProps:{children:P.jsx(FW,{})}}),MW=k.forwardRef(function(t,n){const{align:r,fit:i="cover",...a}=t;return P.jsx(Ie.img,{ref:n,objectFit:i,objectPosition:r,className:St("chakra-image",t.className),...a})});MW.displayName="Image";const{withContext:BW}=Rn({key:"input"}),Ej=BW(rS),P0=k.forwardRef(function({unstyled:t,...n},r){const i=Lu({key:"inputAddon",recipe:n.recipe}),[a,c]=i.splitVariantProps(n),u=t?U0:i(a);return P.jsx(Ie.div,{ref:r,...c,css:[u,n.css]})}),jg=Ie("div",{base:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",zIndex:2,color:"fg.muted",height:"full",fontSize:"sm",px:"3"},variants:{placement:{start:{insetInlineStart:"0"},end:{insetInlineEnd:"0"}}}}),kj=k.forwardRef(function(t,n){const{startElement:r,startElementProps:i,endElement:a,endElementProps:c,startAddon:u,startAddonProps:f,endAddon:p,endAddonProps:h,children:y,startOffset:b="0px",endOffset:v="0px",...w}=t,x=k.Children.only(y),E=!!(u||p);return P.jsxs(Lh,{width:"full",ref:n,attached:E,skip:O=>O.type===jg,...w,children:[u&&P.jsx(P0,{...f,children:u}),r&&P.jsx(jg,{pointerEvents:"none",...i,children:r}),k.cloneElement(x,{...r&&{ps:`calc(var(--input-height) - ${b})`},...a&&{pe:`calc(var(--input-height) - ${v})`},...y.props}),a&&P.jsx(jg,{placement:"end",...c,children:a}),p&&P.jsx(P0,{...h,children:p})]})}),{withContext:WW}=Rn({key:"link"}),HW=WW("a");HW.displayName="Link";const{withRootProvider:Mk,withContext:It}=Lt({key:"menu"});Mk(gz);const Pj=Mk(fz,{defaultProps:{lazyMount:!0,unmountOnExit:!0}}),Ij=It(mE,"trigger",{forwardAsChild:!0});It(AS,"contextTrigger",{forwardAsChild:!0});const Tj=It(BS,"positioner",{forwardAsChild:!0}),Oj=It(hE,"separator",{forwardAsChild:!0}),Rj=It(NS,"content",{forwardAsChild:!0}),jW=It(TS,"arrowTip",{forwardAsChild:!0});It(IS,"arrow",{forwardAsChild:!0,defaultProps:{children:P.jsx(jW,{})}});It(VS,"indicator",{forwardAsChild:!0});const Nj=It(DS,"itemGroup",{forwardAsChild:!0}),Aj=It(zS,"itemGroupLabel",{forwardAsChild:!0}),Vj=It(_S,"item",{forwardAsChild:!0}),_j=It(vE,"item",{forwardAsChild:!0});It(MS,"itemText",{forwardAsChild:!0});It("kbd","itemCommand");const Lj=It(FS,"itemIndicator",{forwardAsChild:!0,defaultProps:{children:P.jsx(uW,{boxSize:"4"})}}),$j=It(RS,"item",{forwardAsChild:!0}),Dj=It(HS,"itemGroup",{forwardAsChild:!0}),zj=It(WS,"item",{forwardAsChild:!0}),[GW,Bk]=Ji({name:"NativeSelectBasePropsContext",hookName:"useNativeSelectBaseProps",providerName:"<NativeSelectRoot />",strict:!1}),{withProvider:UW,useClassNames:Wk,useStyles:Hk}=Lt({key:"nativeSelect"}),Fj=UW("div","root",{wrapElement(e,t){const n=Vn(),r=!!(n?.disabled??t.disabled),i=!!(n?.invalid??t.invalid);return P.jsx(GW,{value:{disabled:r,invalid:i},children:e})}}),KW=Ie(aS,{},{forwardAsChild:!0}),Mj=k.forwardRef(function(t,n){const{children:r,placeholder:i,unstyled:a,...c}=t,{disabled:u,invalid:f}=Bk(),p=Hk(),h=Wk();return P.jsxs(KW,{disabled:u,"data-invalid":sr(f),...c,ref:n,className:St(h.field,t.className),css:[a?void 0:p.field,t.css],children:[i&&P.jsx("option",{value:"",children:i}),r]})});function Bj(e){const{unstyled:t,...n}=e,r=Hk(),{disabled:i,invalid:a}=Bk(),c=Wk();return P.jsx(Ie.div,{...n,"data-disabled":sr(i),"data-invalid":sr(a),className:St(c.indicator,e.className),css:[t?void 0:r.indicator,e.css],children:e.children??P.jsx(kk,{})})}const{withRootProvider:jk,withContext:bn}=Lt({key:"popover"});jk($E);const Wj=jk(LE),Hj=bn(zE,"trigger",{forwardAsChild:!0}),jj=bn(RE,"positioner",{forwardAsChild:!0}),Gj=bn(Th,"content",{forwardAsChild:!0}),YW=bn(IE,"arrowTip",{forwardAsChild:!0}),Uj=bn(PE,"arrow",{forwardAsChild:!0,defaultProps:{children:P.jsx(YW,{})}}),Kj=bn(Ih,"closeTrigger",{forwardAsChild:!0});bn(OE,"indicator",{forwardAsChild:!0});const Yj=bn(DE,"title",{forwardAsChild:!0});bn(TE,"description",{forwardAsChild:!0});const Xj=bn("footer","footer"),qj=bn("header","header"),Qj=bn("div","body"),Zj=bn(kE,void 0,{forwardAsChild:!0}),{withProvider:Gk,withContext:vl}=Lt({key:"scrollArea"});Gk(QE,"root",{forwardAsChild:!0});const Jj=Gk(qE,"root",{forwardAsChild:!0}),e6=vl(e1,"viewport",{forwardAsChild:!0}),t6=vl(jE,"content",{forwardAsChild:!0}),XW=vl(JE,"thumb",{forwardAsChild:!0}),n6=vl(ZE,"scrollbar",{forwardAsChild:!0,defaultProps:{children:P.jsx(XW,{})}});vl(GE,"corner",{forwardAsChild:!0});const{withProvider:Uk,withContext:Dh}=Lt({key:"segmentGroup"});Uk(c1,"root",{forwardAsChild:!0});const r6=Uk(l1,"root",{forwardAsChild:!0,forwardProps:["orientation"],defaultProps:{orientation:"horizontal"}}),qW=Dh(i1,"item",{forwardAsChild:!0}),QW=Dh(a1,"itemText",{forwardAsChild:!0}),o6=Dh(r1,"indicator",{forwardAsChild:!0});function ZW(e){return e.map(t=>typeof t=="string"?{value:t,label:t}:t)}const i6=e=>{const{items:t,...n}=e,r=k.useMemo(()=>ZW(t),[t]);return P.jsx(DW,{each:r,children:i=>P.jsxs(qW,{value:i.value,disabled:i.disabled,...n,children:[P.jsx(QW,{children:i.label}),P.jsx(JW,{})]},i.value)})},JW=s1,{useRecipeResult:eH}=Rn({key:"separator"}),tH=k.forwardRef(function(t,n){const{styles:r,className:i,props:a}=eH(t),c=t.orientation||"horizontal";return P.jsx(Ie.span,{ref:n,role:hn(c)?"separator":"presentation","aria-orientation":hn(c)?c:void 0,...Nh(a,["orientation"]),className:St(i,t.className),css:[r,t.css]})});tH.displayName="Separator";const nH=k.forwardRef(function(t,n){const{columns:r,minChildWidth:i,...a}=t,c=Jo(),u=i?oH(i,c):iH(r);return P.jsx(K0,{ref:n,templateColumns:u,...a})});nH.displayName="SimpleGrid";function rH(e){return typeof e=="number"?`${e}px`:e}function oH(e,t){return id(e,n=>{const r=t.tokens.getVar(`sizes.${n}`,rH(n));return n===null?null:`repeat(auto-fit, minmax(${r}, 1fr))`})}function iH(e){return id(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}const{withContext:sH}=Rn({key:"skeleton"}),zh=sH("div");zh.displayName="Skeleton";const aH=k.forwardRef(function(t,n){const{size:r,...i}=t;return P.jsx(j0,{size:r,asChild:!0,ref:n,children:P.jsx(zh,{...i})})});aH.displayName="SkeletonCircle";const lH=k.forwardRef(function(t,n){const{noOfLines:r=3,gap:i,rootProps:a,...c}=t;return P.jsx(ld,{gap:i,width:"full",ref:n,...a,children:Array.from({length:r}).map((u,f)=>P.jsx(zh,{height:"4",_last:{maxW:r===1?"100%":"80%"},...c},f))})});lH.displayName="SkeletonText";const cH=Ie("div",{base:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});cH.displayName="Spacer";const uH=k.forwardRef(function(t,n){return P.jsx(ld,{align:"center",...t,direction:"row",ref:n})});uH.displayName="HStack";const dH=k.forwardRef(function(t,n){return P.jsx(ld,{align:"center",...t,direction:"column",ref:n})});dH.displayName="VStack";const{withProvider:Kk,withContext:Fh,useStyles:fH}=Lt({key:"switch"});Kk(x1,"root",{forwardAsChild:!0});const s6=Kk(b1,"root",{forwardAsChild:!0});Fh(m1,"label",{forwardAsChild:!0});const gH=Fh(w1,"thumb",{forwardAsChild:!0}),a6=Fh(p1,"control",{forwardAsChild:!0,defaultProps:{children:P.jsx(gH,{})}});k.forwardRef(function(t,n){const r=ws(),i=fH(),{fallback:a,children:c,unstyled:u,...f}=t;return P.jsx(Ie.span,{ref:n,"data-checked":sr(r.checked),...f,css:[u?void 0:i.indicator,t.css],children:r.checked?c:a})});k.forwardRef(function(t,n){const r=ws(),{fallback:i,children:a,...c}=t;return P.jsx(Ie.span,{ref:n,"data-checked":sr(r.checked),...c,children:r.checked?a:i})});const l6=h1,{withProvider:Yk,withContext:yl}=Lt({key:"tabs"});Yk(R1,"root",{forwardAsChild:!0});const c6=Yk(O1,"root",{forwardAsChild:!0}),u6=yl(P1,"trigger",{forwardAsChild:!0}),d6=yl(S1,"content",{forwardAsChild:!0});yl("div","contentGroup");const f6=yl(k1,"list",{forwardAsChild:!0});yl(E1,"indicator",{forwardAsChild:!0});const{withContext:pH}=Rn({key:"textarea"}),hH=pH(lS);hH.displayName="Textarea";const{withProvider:mH,withContext:cd,useStyles:vH}=Lt({key:"toast"}),g6=Ie(M1,{},{forwardAsChild:!0}),p6=mH(z1,"root",{forwardAsChild:!0}),h6=cd($1,"closeTrigger",{forwardAsChild:!0,defaultProps:{children:P.jsx(Pk,{})}}),m6=cd(F1,"title",{forwardAsChild:!0}),v6=cd(D1,"description",{forwardAsChild:!0}),y6=cd(L1,"actionTrigger",{forwardAsChild:!0}),yH={warning:k0,success:gW,error:k0},b6=k.forwardRef(function(t,n){const{unstyled:r,...i}=t,a=Ss(),c=vH(),u=yH[a.type];return u?P.jsx(u,{ref:n,...i,css:[r?void 0:c.indicator,t.css]}):null}),{withRootProvider:Xk,withContext:bl}=Lt({key:"tooltip"});Xk(qM);const x6=Xk(XM,{defaultProps:{lazyMount:!0,unmountOnExit:!0}}),w6=bl(q1,"trigger",{forwardAsChild:!0}),C6=bl(U1,"positioner",{forwardAsChild:!0}),S6=bl(G1,"content",{forwardAsChild:!0}),bH=bl(j1,"arrowTip",{forwardAsChild:!0}),E6=bl(H1,"arrow",{forwardAsChild:!0,defaultProps:{children:P.jsx(bH,{})}});export{_j as $,ej as A,W0 as B,aj as C,QH as D,tj as E,zW as F,ij as G,sj as H,zk as I,nj as J,Wj as K,Hj as L,Pj as M,jj as N,Gj as O,OH as P,Uj as Q,QI as R,r6 as S,x6 as T,Qj as U,dH as V,Kj as W,Ak as X,mW as Y,Oj as Z,Dy as _,Sp as a,rj as a$,Vj as a0,bj as a1,xj as a2,wj as a3,Cj as a4,Sj as a5,FW as a6,MW as a7,Ok as a8,hH as a9,Mj as aA,wH as aB,Nj as aC,HW as aD,qj as aE,Xj as aF,SW as aG,Zj as aH,YW as aI,vj as aJ,yj as aK,Bj as aL,kW as aM,IH as aN,Yj as aO,s6 as aP,l6 as aQ,a6 as aR,nH as aS,OW as aT,NH as aU,AH as aV,_H as aW,LH as aX,VH as aY,zh as aZ,ZH as a_,$j as aa,Ej as ab,uH as ac,EN as ad,RH as ae,g6 as af,p6 as ag,b6 as ah,ld as ai,m6 as aj,v6 as ak,y6 as al,h6 as am,WH as an,HH as ao,jH as ap,UH as aq,c6 as ar,f6 as as,u6 as at,d6 as au,tH as av,cH as aw,GH as ax,KH as ay,Fj as az,ps as b,j0 as b0,Jj as b1,e6 as b2,n6 as b3,XW as b4,Aj as b5,gH as b6,$H as b7,DH as b8,zH as b9,MH as ba,FH as bb,BH as bc,t6 as bd,kj as be,EW as bf,YH as bg,qH as bh,XH as bi,lj as bj,gj as bk,cj as bl,uj as bm,mj as bn,dj as bo,fj as bp,pj as bq,vN as br,hj as bs,PH as bt,P3 as bu,aW as bv,CH as bw,Vy as c,kH as d,xH as e,w6 as f,T0 as g,C6 as h,kN as i,P as j,S6 as k,E6 as l,bH as m,Nk as n,o6 as o,i6 as p,NN as q,k as r,Ij as s,Tj as t,Rj as u,Dj as v,zj as w,Lj as x,oj as y,JH as z};
|