@l10nmonster/server 3.0.0-alpha.8 → 3.1.0

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.
Files changed (36) hide show
  1. package/.releaserc.json +1 -1
  2. package/CHANGELOG.md +38 -0
  3. package/CLAUDE.md +808 -0
  4. package/index.js +121 -17
  5. package/package.json +9 -8
  6. package/routes/dispatcher.js +116 -0
  7. package/routes/info.js +25 -0
  8. package/routes/providers.js +17 -0
  9. package/routes/sources.js +49 -7
  10. package/routes/status.js +27 -27
  11. package/routes/tm.js +156 -6
  12. package/ui/dist/assets/Cart-CiY5V__G.js +1 -0
  13. package/ui/dist/assets/Job-D-5ikxga.js +1 -0
  14. package/ui/dist/assets/Providers-BZVmclS1.js +1 -0
  15. package/ui/dist/assets/Sources-BwZ8Vub0.js +1 -0
  16. package/ui/dist/assets/SourcesDetail-CXgslRDb.js +1 -0
  17. package/ui/dist/assets/SourcesResource-Br3Bspz2.js +1 -0
  18. package/ui/dist/assets/Status-Bx0Ui7d2.js +1 -0
  19. package/ui/dist/assets/StatusDetail-BzJ2TIme.js +1 -0
  20. package/ui/dist/assets/TMByProvider-B2MrTxO0.js +1 -0
  21. package/ui/dist/assets/TMDetail-BxbKr57p.js +1 -0
  22. package/ui/dist/assets/TMToc-CQ1zhmPh.js +1 -0
  23. package/ui/dist/assets/Welcome-Tp-UfiIW.js +1 -0
  24. package/ui/dist/assets/index-543A5WcJ.js +1 -0
  25. package/ui/dist/assets/index-CPrLFF-N.js +2 -0
  26. package/ui/dist/assets/vendor-BVgSJH5C.js +19 -0
  27. package/ui/dist/index.html +3 -1
  28. package/ui/dist/assets/Sources-D0R-Sgwf.js +0 -1
  29. package/ui/dist/assets/Status-XBRD-MuK.js +0 -1
  30. package/ui/dist/assets/TM-DZ2x6--n.js +0 -1
  31. package/ui/dist/assets/Welcome-p4gi31Lo.js +0 -1
  32. package/ui/dist/assets/api-DXOYnFyU.js +0 -1
  33. package/ui/dist/assets/badge-CveKztw5.js +0 -1
  34. package/ui/dist/assets/grid-DetiGbYY.js +0 -1
  35. package/ui/dist/assets/index-Ce8PP-0Z.js +0 -76
  36. package/ui/dist/assets/v-stack-CQ6LIfdw.js +0 -1
@@ -0,0 +1,19 @@
1
+ function _N(e,t){for(var i=0;i<t.length;i++){const r=t[i];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const c=Object.getOwnPropertyDescriptor(r,o);c&&Object.defineProperty(e,o,c.get?c:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function wC(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mg={exports:{}},qs={};var W0;function VN(){if(W0)return qs;W0=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function i(r,o,c){var u=null;if(c!==void 0&&(u=""+c),o.key!==void 0&&(u=""+o.key),"key"in o){c={};for(var d in o)d!=="key"&&(c[d]=o[d])}else c=o;return o=c.ref,{$$typeof:e,type:r,key:u,ref:o!==void 0?o:null,props:c}}return qs.Fragment=t,qs.jsx=i,qs.jsxs=i,qs}var q0;function zN(){return q0||(q0=1,mg.exports=VN()),mg.exports}var V=zN(),vg={exports:{}},Ce={};var Y0;function DN(){if(Y0)return Ce;Y0=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),y=Symbol.iterator;function x(A){return A===null||typeof A!="object"?null:(A=y&&A[y]||A["@@iterator"],typeof A=="function"?A:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,w={};function R(A,Y,ie){this.props=A,this.context=Y,this.refs=w,this.updater=ie||T}R.prototype.isReactComponent={},R.prototype.setState=function(A,Y){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,Y,"setState")},R.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function P(){}P.prototype=R.prototype;function I(A,Y,ie){this.props=A,this.context=Y,this.refs=w,this.updater=ie||T}var O=I.prototype=new P;O.constructor=I,E(O,R.prototype),O.isPureReactComponent=!0;var k=Array.isArray;function U(){}var H={H:null,A:null,T:null,S:null},G=Object.prototype.hasOwnProperty;function z(A,Y,ie){var oe=ie.ref;return{$$typeof:e,type:A,key:Y,ref:oe!==void 0?oe:null,props:ie}}function M(A,Y){return z(A.type,Y,A.props)}function W(A){return typeof A=="object"&&A!==null&&A.$$typeof===e}function Q(A){var Y={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(ie){return Y[ie]})}var ue=/\/+/g;function he(A,Y){return typeof A=="object"&&A!==null&&A.key!=null?Q(""+A.key):Y.toString(36)}function ge(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(U,U):(A.status="pending",A.then(function(Y){A.status==="pending"&&(A.status="fulfilled",A.value=Y)},function(Y){A.status==="pending"&&(A.status="rejected",A.reason=Y)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function F(A,Y,ie,oe,Se){var Te=typeof A;(Te==="undefined"||Te==="boolean")&&(A=null);var _e=!1;if(A===null)_e=!0;else switch(Te){case"bigint":case"string":case"number":_e=!0;break;case"object":switch(A.$$typeof){case e:case t:_e=!0;break;case m:return _e=A._init,F(_e(A._payload),Y,ie,oe,Se)}}if(_e)return Se=Se(A),_e=oe===""?"."+he(A,0):oe,k(Se)?(ie="",_e!=null&&(ie=_e.replace(ue,"$&/")+"/"),F(Se,Y,ie,"",function(we){return we})):Se!=null&&(W(Se)&&(Se=M(Se,ie+(Se.key==null||A&&A.key===Se.key?"":(""+Se.key).replace(ue,"$&/")+"/")+_e)),Y.push(Se)),1;_e=0;var te=oe===""?".":oe+":";if(k(A))for(var J=0;J<A.length;J++)oe=A[J],Te=te+he(oe,J),_e+=F(oe,Y,ie,Te,Se);else if(J=x(A),typeof J=="function")for(A=J.call(A),J=0;!(oe=A.next()).done;)oe=oe.value,Te=te+he(oe,J++),_e+=F(oe,Y,ie,Te,Se);else if(Te==="object"){if(typeof A.then=="function")return F(ge(A),Y,ie,oe,Se);throw Y=String(A),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return _e}function ee(A,Y,ie){if(A==null)return A;var oe=[],Se=0;return F(A,oe,"","",function(Te){return Y.call(ie,Te,Se++)}),oe}function se(A){if(A._status===-1){var Y=A._result;Y=Y(),Y.then(function(ie){(A._status===0||A._status===-1)&&(A._status=1,A._result=ie)},function(ie){(A._status===0||A._status===-1)&&(A._status=2,A._result=ie)}),A._status===-1&&(A._status=0,A._result=Y)}if(A._status===1)return A._result.default;throw A._result}var ae=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},ye={map:ee,forEach:function(A,Y,ie){ee(A,function(){Y.apply(this,arguments)},ie)},count:function(A){var Y=0;return ee(A,function(){Y++}),Y},toArray:function(A){return ee(A,function(Y){return Y})||[]},only:function(A){if(!W(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return Ce.Activity=b,Ce.Children=ye,Ce.Component=R,Ce.Fragment=i,Ce.Profiler=o,Ce.PureComponent=I,Ce.StrictMode=r,Ce.Suspense=g,Ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,Ce.__COMPILER_RUNTIME={__proto__:null,c:function(A){return H.H.useMemoCache(A)}},Ce.cache=function(A){return function(){return A.apply(null,arguments)}},Ce.cacheSignal=function(){return null},Ce.cloneElement=function(A,Y,ie){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var oe=E({},A.props),Se=A.key;if(Y!=null)for(Te in Y.key!==void 0&&(Se=""+Y.key),Y)!G.call(Y,Te)||Te==="key"||Te==="__self"||Te==="__source"||Te==="ref"&&Y.ref===void 0||(oe[Te]=Y[Te]);var Te=arguments.length-2;if(Te===1)oe.children=ie;else if(1<Te){for(var _e=Array(Te),te=0;te<Te;te++)_e[te]=arguments[te+2];oe.children=_e}return z(A.type,Se,oe)},Ce.createContext=function(A){return A={$$typeof:u,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:c,_context:A},A},Ce.createElement=function(A,Y,ie){var oe,Se={},Te=null;if(Y!=null)for(oe in Y.key!==void 0&&(Te=""+Y.key),Y)G.call(Y,oe)&&oe!=="key"&&oe!=="__self"&&oe!=="__source"&&(Se[oe]=Y[oe]);var _e=arguments.length-2;if(_e===1)Se.children=ie;else if(1<_e){for(var te=Array(_e),J=0;J<_e;J++)te[J]=arguments[J+2];Se.children=te}if(A&&A.defaultProps)for(oe in _e=A.defaultProps,_e)Se[oe]===void 0&&(Se[oe]=_e[oe]);return z(A,Te,Se)},Ce.createRef=function(){return{current:null}},Ce.forwardRef=function(A){return{$$typeof:d,render:A}},Ce.isValidElement=W,Ce.lazy=function(A){return{$$typeof:m,_payload:{_status:-1,_result:A},_init:se}},Ce.memo=function(A,Y){return{$$typeof:p,type:A,compare:Y===void 0?null:Y}},Ce.startTransition=function(A){var Y=H.T,ie={};H.T=ie;try{var oe=A(),Se=H.S;Se!==null&&Se(ie,oe),typeof oe=="object"&&oe!==null&&typeof oe.then=="function"&&oe.then(U,ae)}catch(Te){ae(Te)}finally{Y!==null&&ie.types!==null&&(Y.types=ie.types),H.T=Y}},Ce.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()},Ce.use=function(A){return H.H.use(A)},Ce.useActionState=function(A,Y,ie){return H.H.useActionState(A,Y,ie)},Ce.useCallback=function(A,Y){return H.H.useCallback(A,Y)},Ce.useContext=function(A){return H.H.useContext(A)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(A,Y){return H.H.useDeferredValue(A,Y)},Ce.useEffect=function(A,Y){return H.H.useEffect(A,Y)},Ce.useEffectEvent=function(A){return H.H.useEffectEvent(A)},Ce.useId=function(){return H.H.useId()},Ce.useImperativeHandle=function(A,Y,ie){return H.H.useImperativeHandle(A,Y,ie)},Ce.useInsertionEffect=function(A,Y){return H.H.useInsertionEffect(A,Y)},Ce.useLayoutEffect=function(A,Y){return H.H.useLayoutEffect(A,Y)},Ce.useMemo=function(A,Y){return H.H.useMemo(A,Y)},Ce.useOptimistic=function(A,Y){return H.H.useOptimistic(A,Y)},Ce.useReducer=function(A,Y,ie){return H.H.useReducer(A,Y,ie)},Ce.useRef=function(A){return H.H.useRef(A)},Ce.useState=function(A){return H.H.useState(A)},Ce.useSyncExternalStore=function(A,Y,ie){return H.H.useSyncExternalStore(A,Y,ie)},Ce.useTransition=function(){return H.H.useTransition()},Ce.version="19.2.0",Ce}var K0;function Fp(){return K0||(K0=1,vg.exports=DN()),vg.exports}var C=Fp();const MN=wC(C),X0=_N({__proto__:null,default:MN},[C]);var bg={exports:{}},Ys={},yg={exports:{}},xg={};var Q0;function LN(){return Q0||(Q0=1,(function(e){function t(F,ee){var se=F.length;F.push(ee);e:for(;0<se;){var ae=se-1>>>1,ye=F[ae];if(0<o(ye,ee))F[ae]=ee,F[se]=ye,se=ae;else break e}}function i(F){return F.length===0?null:F[0]}function r(F){if(F.length===0)return null;var ee=F[0],se=F.pop();if(se!==ee){F[0]=se;e:for(var ae=0,ye=F.length,A=ye>>>1;ae<A;){var Y=2*(ae+1)-1,ie=F[Y],oe=Y+1,Se=F[oe];if(0>o(ie,se))oe<ye&&0>o(Se,ie)?(F[ae]=Se,F[oe]=se,ae=oe):(F[ae]=ie,F[Y]=se,ae=Y);else if(oe<ye&&0>o(Se,se))F[ae]=Se,F[oe]=se,ae=oe;else break e}}return ee}function o(F,ee){var se=F.sortIndex-ee.sortIndex;return se!==0?se:F.id-ee.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var u=Date,d=u.now();e.unstable_now=function(){return u.now()-d}}var g=[],p=[],m=1,b=null,y=3,x=!1,T=!1,E=!1,w=!1,R=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;function O(F){for(var ee=i(p);ee!==null;){if(ee.callback===null)r(p);else if(ee.startTime<=F)r(p),ee.sortIndex=ee.expirationTime,t(g,ee);else break;ee=i(p)}}function k(F){if(E=!1,O(F),!T)if(i(g)!==null)T=!0,U||(U=!0,Q());else{var ee=i(p);ee!==null&&ge(k,ee.startTime-F)}}var U=!1,H=-1,G=5,z=-1;function M(){return w?!0:!(e.unstable_now()-z<G)}function W(){if(w=!1,U){var F=e.unstable_now();z=F;var ee=!0;try{e:{T=!1,E&&(E=!1,P(H),H=-1),x=!0;var se=y;try{t:{for(O(F),b=i(g);b!==null&&!(b.expirationTime>F&&M());){var ae=b.callback;if(typeof ae=="function"){b.callback=null,y=b.priorityLevel;var ye=ae(b.expirationTime<=F);if(F=e.unstable_now(),typeof ye=="function"){b.callback=ye,O(F),ee=!0;break t}b===i(g)&&r(g),O(F)}else r(g);b=i(g)}if(b!==null)ee=!0;else{var A=i(p);A!==null&&ge(k,A.startTime-F),ee=!1}}break e}finally{b=null,y=se,x=!1}ee=void 0}}finally{ee?Q():U=!1}}}var Q;if(typeof I=="function")Q=function(){I(W)};else if(typeof MessageChannel<"u"){var ue=new MessageChannel,he=ue.port2;ue.port1.onmessage=W,Q=function(){he.postMessage(null)}}else Q=function(){R(W,0)};function ge(F,ee){H=R(function(){F(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(F){F.callback=null},e.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):G=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(F){switch(y){case 1:case 2:case 3:var ee=3;break;default:ee=y}var se=y;y=ee;try{return F()}finally{y=se}},e.unstable_requestPaint=function(){w=!0},e.unstable_runWithPriority=function(F,ee){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var se=y;y=F;try{return ee()}finally{y=se}},e.unstable_scheduleCallback=function(F,ee,se){var ae=e.unstable_now();switch(typeof se=="object"&&se!==null?(se=se.delay,se=typeof se=="number"&&0<se?ae+se:ae):se=ae,F){case 1:var ye=-1;break;case 2:ye=250;break;case 5:ye=1073741823;break;case 4:ye=1e4;break;default:ye=5e3}return ye=se+ye,F={id:m++,callback:ee,priorityLevel:F,startTime:se,expirationTime:ye,sortIndex:-1},se>ae?(F.sortIndex=se,t(p,F),i(g)===null&&F===i(p)&&(E?(P(H),H=-1):E=!0,ge(k,se-ae))):(F.sortIndex=ye,t(g,F),T||x||(T=!0,U||(U=!0,Q()))),F},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(F){var ee=y;return function(){var se=y;y=ee;try{return F.apply(this,arguments)}finally{y=se}}}})(xg)),xg}var Z0;function BN(){return Z0||(Z0=1,yg.exports=LN()),yg.exports}var Sg={exports:{}},Bt={};var J0;function HN(){if(J0)return Bt;J0=1;var e=Fp();function t(g){var p="https://react.dev/errors/"+g;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)p+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+g+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var r={d:{f:i,r:function(){throw Error(t(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");function c(g,p,m){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:b==null?null:""+b,children:g,containerInfo:p,implementation:m}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(g,p){if(g==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Bt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Bt.createPortal=function(g,p){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(t(299));return c(g,p,null,m)},Bt.flushSync=function(g){var p=u.T,m=r.p;try{if(u.T=null,r.p=2,g)return g()}finally{u.T=p,r.p=m,r.d.f()}},Bt.preconnect=function(g,p){typeof g=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(g,p))},Bt.prefetchDNS=function(g){typeof g=="string"&&r.d.D(g)},Bt.preinit=function(g,p){if(typeof g=="string"&&p&&typeof p.as=="string"){var m=p.as,b=d(m,p.crossOrigin),y=typeof p.integrity=="string"?p.integrity:void 0,x=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;m==="style"?r.d.S(g,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:b,integrity:y,fetchPriority:x}):m==="script"&&r.d.X(g,{crossOrigin:b,integrity:y,fetchPriority:x,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Bt.preinitModule=function(g,p){if(typeof g=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var m=d(p.as,p.crossOrigin);r.d.M(g,{crossOrigin:m,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(g)},Bt.preload=function(g,p){if(typeof g=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var m=p.as,b=d(m,p.crossOrigin);r.d.L(g,m,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Bt.preloadModule=function(g,p){if(typeof g=="string")if(p){var m=d(p.as,p.crossOrigin);r.d.m(g,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:m,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(g)},Bt.requestFormReset=function(g){r.d.r(g)},Bt.unstable_batchedUpdates=function(g,p){return g(p)},Bt.useFormState=function(g,p,m){return u.H.useFormState(g,p,m)},Bt.useFormStatus=function(){return u.H.useHostTransitionStatus()},Bt.version="19.2.0",Bt}var ex;function OC(){if(ex)return Sg.exports;ex=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(),Sg.exports=HN(),Sg.exports}var tx;function FN(){if(tx)return Ys;tx=1;var e=BN(),t=Fp(),i=OC();function r(n){var a="https://react.dev/errors/"+n;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)a+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+n+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function c(n){var a=n,s=n;if(n.alternate)for(;a.return;)a=a.return;else{n=a;do a=n,(a.flags&4098)!==0&&(s=a.return),n=a.return;while(n)}return a.tag===3?s:null}function u(n){if(n.tag===13){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function d(n){if(n.tag===31){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function g(n){if(c(n)!==n)throw Error(r(188))}function p(n){var a=n.alternate;if(!a){if(a=c(n),a===null)throw Error(r(188));return a!==n?null:n}for(var s=n,l=a;;){var f=s.return;if(f===null)break;var h=f.alternate;if(h===null){if(l=f.return,l!==null){s=l;continue}break}if(f.child===h.child){for(h=f.child;h;){if(h===s)return g(f),n;if(h===l)return g(f),a;h=h.sibling}throw Error(r(188))}if(s.return!==l.return)s=f,l=h;else{for(var v=!1,S=f.child;S;){if(S===s){v=!0,s=f,l=h;break}if(S===l){v=!0,l=f,s=h;break}S=S.sibling}if(!v){for(S=h.child;S;){if(S===s){v=!0,s=h,l=f;break}if(S===l){v=!0,l=h,s=f;break}S=S.sibling}if(!v)throw Error(r(189))}}if(s.alternate!==l)throw Error(r(190))}if(s.tag!==3)throw Error(r(188));return s.stateNode.current===s?n:a}function m(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n;for(n=n.child;n!==null;){if(a=m(n),a!==null)return a;n=n.sibling}return null}var b=Object.assign,y=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),I=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),M=Symbol.for("react.memo_cache_sentinel"),W=Symbol.iterator;function Q(n){return n===null||typeof n!="object"?null:(n=W&&n[W]||n["@@iterator"],typeof n=="function"?n:null)}var ue=Symbol.for("react.client.reference");function he(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===ue?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case E:return"Fragment";case R:return"Profiler";case w:return"StrictMode";case k:return"Suspense";case U:return"SuspenseList";case z:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case T:return"Portal";case I:return n.displayName||"Context";case P:return(n._context.displayName||"Context")+".Consumer";case O:var a=n.render;return n=n.displayName,n||(n=a.displayName||a.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case H:return a=n.displayName||null,a!==null?a:he(n.type)||"Memo";case G:a=n._payload,n=n._init;try{return he(n(a))}catch{}}return null}var ge=Array.isArray,F=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se={pending:!1,data:null,method:null,action:null},ae=[],ye=-1;function A(n){return{current:n}}function Y(n){0>ye||(n.current=ae[ye],ae[ye]=null,ye--)}function ie(n,a){ye++,ae[ye]=n.current,n.current=a}var oe=A(null),Se=A(null),Te=A(null),_e=A(null);function te(n,a){switch(ie(Te,a),ie(Se,n),ie(oe,null),a.nodeType){case 9:case 11:n=(n=a.documentElement)&&(n=n.namespaceURI)?p0(n):0;break;default:if(n=a.tagName,a=a.namespaceURI)a=p0(a),n=m0(a,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}Y(oe),ie(oe,n)}function J(){Y(oe),Y(Se),Y(Te)}function we(n){n.memoizedState!==null&&ie(_e,n);var a=oe.current,s=m0(a,n.type);a!==s&&(ie(Se,n),ie(oe,s))}function Ae(n){Se.current===n&&(Y(oe),Y(Se)),_e.current===n&&(Y(_e),Us._currentValue=se)}var Ke,ft;function It(n){if(Ke===void 0)try{throw Error()}catch(s){var a=s.stack.trim().match(/\n( *(at )?)/);Ke=a&&a[1]||"",ft=-1<s.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+Ke+n+ft}var tr=!1;function Fr(n,a){if(!n||tr)return"";tr=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(a){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(j){var $=j}Reflect.construct(n,[],X)}else{try{X.call()}catch(j){$=j}n.call(X.prototype)}}else{try{throw Error()}catch(j){$=j}(X=n())&&typeof X.catch=="function"&&X.catch(function(){})}}catch(j){if(j&&$&&typeof j.stack=="string")return[j.stack,$.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=l.DetermineComponentFrameRoot(),v=h[0],S=h[1];if(v&&S){var N=v.split(`
4
+ `),B=S.split(`
5
+ `);for(f=l=0;l<N.length&&!N[l].includes("DetermineComponentFrameRoot");)l++;for(;f<B.length&&!B[f].includes("DetermineComponentFrameRoot");)f++;if(l===N.length||f===B.length)for(l=N.length-1,f=B.length-1;1<=l&&0<=f&&N[l]!==B[f];)f--;for(;1<=l&&0<=f;l--,f--)if(N[l]!==B[f]){if(l!==1||f!==1)do if(l--,f--,0>f||N[l]!==B[f]){var q=`
6
+ `+N[l].replace(" at new "," at ");return n.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",n.displayName)),q}while(1<=l&&0<=f);break}}}finally{tr=!1,Error.prepareStackTrace=s}return(s=n?n.displayName||n.name:"")?It(s):""}function nf(n,a){switch(n.tag){case 26:case 27:case 5:return It(n.type);case 16:return It("Lazy");case 13:return n.child!==a&&a!==null?It("Suspense Fallback"):It("Suspense");case 19:return It("SuspenseList");case 0:case 15:return Fr(n.type,!1);case 11:return Fr(n.type.render,!1);case 1:return Fr(n.type,!0);case 31:return It("Activity");default:return""}}function Jl(n){try{var a="",s=null;do a+=nf(n,s),s=n,n=n.return;while(n);return a}catch(l){return`
7
+ Error generating stack: `+l.message+`
8
+ `+l.stack}}var Pa=Object.prototype.hasOwnProperty,Jo=e.unstable_scheduleCallback,Aa=e.unstable_cancelCallback,ec=e.unstable_shouldYield,es=e.unstable_requestPaint,on=e.unstable_now,hR=e.unstable_getCurrentPriorityLevel,qm=e.unstable_ImmediatePriority,Ym=e.unstable_UserBlockingPriority,tc=e.unstable_NormalPriority,gR=e.unstable_LowPriority,Km=e.unstable_IdlePriority,pR=e.log,mR=e.unstable_setDisableYieldValue,ts=null,sn=null;function nr(n){if(typeof pR=="function"&&mR(n),sn&&typeof sn.setStrictMode=="function")try{sn.setStrictMode(ts,n)}catch{}}var ln=Math.clz32?Math.clz32:yR,vR=Math.log,bR=Math.LN2;function yR(n){return n>>>=0,n===0?32:31-(vR(n)/bR|0)|0}var nc=256,ic=262144,rc=4194304;function $r(n){var a=n&42;if(a!==0)return a;switch(n&-n){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function ac(n,a,s){var l=n.pendingLanes;if(l===0)return 0;var f=0,h=n.suspendedLanes,v=n.pingedLanes;n=n.warmLanes;var S=l&134217727;return S!==0?(l=S&~h,l!==0?f=$r(l):(v&=S,v!==0?f=$r(v):s||(s=S&~n,s!==0&&(f=$r(s))))):(S=l&~h,S!==0?f=$r(S):v!==0?f=$r(v):s||(s=l&~n,s!==0&&(f=$r(s)))),f===0?0:a!==0&&a!==f&&(a&h)===0&&(h=f&-f,s=a&-a,h>=s||h===32&&(s&4194048)!==0)?a:f}function ns(n,a){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&a)===0}function xR(n,a){switch(n){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32: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 a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Xm(){var n=rc;return rc<<=1,(rc&62914560)===0&&(rc=4194304),n}function rf(n){for(var a=[],s=0;31>s;s++)a.push(n);return a}function is(n,a){n.pendingLanes|=a,a!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function SR(n,a,s,l,f,h){var v=n.pendingLanes;n.pendingLanes=s,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=s,n.entangledLanes&=s,n.errorRecoveryDisabledLanes&=s,n.shellSuspendCounter=0;var S=n.entanglements,N=n.expirationTimes,B=n.hiddenUpdates;for(s=v&~s;0<s;){var q=31-ln(s),X=1<<q;S[q]=0,N[q]=-1;var $=B[q];if($!==null)for(B[q]=null,q=0;q<$.length;q++){var j=$[q];j!==null&&(j.lane&=-536870913)}s&=~X}l!==0&&Qm(n,l,0),h!==0&&f===0&&n.tag!==0&&(n.suspendedLanes|=h&~(v&~a))}function Qm(n,a,s){n.pendingLanes|=a,n.suspendedLanes&=~a;var l=31-ln(a);n.entangledLanes|=a,n.entanglements[l]=n.entanglements[l]|1073741824|s&261930}function Zm(n,a){var s=n.entangledLanes|=a;for(n=n.entanglements;s;){var l=31-ln(s),f=1<<l;f&a|n[l]&a&&(n[l]|=a),s&=~f}}function Jm(n,a){var s=a&-a;return s=(s&42)!==0?1:af(s),(s&(n.suspendedLanes|a))!==0?0:s}function af(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;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:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function of(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function ev(){var n=ee.p;return n!==0?n:(n=window.event,n===void 0?32:B0(n.type))}function tv(n,a){var s=ee.p;try{return ee.p=n,a()}finally{ee.p=s}}var ir=Math.random().toString(36).slice(2),Pt="__reactFiber$"+ir,qt="__reactProps$"+ir,_a="__reactContainer$"+ir,sf="__reactEvents$"+ir,CR="__reactListeners$"+ir,ER="__reactHandles$"+ir,nv="__reactResources$"+ir,rs="__reactMarker$"+ir;function lf(n){delete n[Pt],delete n[qt],delete n[sf],delete n[CR],delete n[ER]}function Va(n){var a=n[Pt];if(a)return a;for(var s=n.parentNode;s;){if(a=s[_a]||s[Pt]){if(s=a.alternate,a.child!==null||s!==null&&s.child!==null)for(n=E0(n);n!==null;){if(s=n[Pt])return s;n=E0(n)}return a}n=s,s=n.parentNode}return null}function za(n){if(n=n[Pt]||n[_a]){var a=n.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return n}return null}function as(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n.stateNode;throw Error(r(33))}function Da(n){var a=n[nv];return a||(a=n[nv]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function wt(n){n[rs]=!0}var iv=new Set,rv={};function Ur(n,a){Ma(n,a),Ma(n+"Capture",a)}function Ma(n,a){for(rv[n]=a,n=0;n<a.length;n++)iv.add(a[n])}var TR=RegExp("^[: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]*$"),av={},ov={};function wR(n){return Pa.call(ov,n)?!0:Pa.call(av,n)?!1:TR.test(n)?ov[n]=!0:(av[n]=!0,!1)}function oc(n,a,s){if(wR(a))if(s===null)n.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":n.removeAttribute(a);return;case"boolean":var l=a.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){n.removeAttribute(a);return}}n.setAttribute(a,""+s)}}function sc(n,a,s){if(s===null)n.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(a);return}n.setAttribute(a,""+s)}}function Ei(n,a,s,l){if(l===null)n.removeAttribute(s);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(s);return}n.setAttributeNS(a,s,""+l)}}function wn(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function sv(n){var a=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function OR(n,a,s){var l=Object.getOwnPropertyDescriptor(n.constructor.prototype,a);if(!n.hasOwnProperty(a)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var f=l.get,h=l.set;return Object.defineProperty(n,a,{configurable:!0,get:function(){return f.call(this)},set:function(v){s=""+v,h.call(this,v)}}),Object.defineProperty(n,a,{enumerable:l.enumerable}),{getValue:function(){return s},setValue:function(v){s=""+v},stopTracking:function(){n._valueTracker=null,delete n[a]}}}}function cf(n){if(!n._valueTracker){var a=sv(n)?"checked":"value";n._valueTracker=OR(n,a,""+n[a])}}function lv(n){if(!n)return!1;var a=n._valueTracker;if(!a)return!0;var s=a.getValue(),l="";return n&&(l=sv(n)?n.checked?"true":"false":n.value),n=l,n!==s?(a.setValue(n),!0):!1}function lc(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var RR=/[\n"\\]/g;function On(n){return n.replace(RR,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function uf(n,a,s,l,f,h,v,S){n.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?n.type=v:n.removeAttribute("type"),a!=null?v==="number"?(a===0&&n.value===""||n.value!=a)&&(n.value=""+wn(a)):n.value!==""+wn(a)&&(n.value=""+wn(a)):v!=="submit"&&v!=="reset"||n.removeAttribute("value"),a!=null?df(n,v,wn(a)):s!=null?df(n,v,wn(s)):l!=null&&n.removeAttribute("value"),f==null&&h!=null&&(n.defaultChecked=!!h),f!=null&&(n.checked=f&&typeof f!="function"&&typeof f!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?n.name=""+wn(S):n.removeAttribute("name")}function cv(n,a,s,l,f,h,v,S){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(n.type=h),a!=null||s!=null){if(!(h!=="submit"&&h!=="reset"||a!=null)){cf(n);return}s=s!=null?""+wn(s):"",a=a!=null?""+wn(a):s,S||a===n.value||(n.value=a),n.defaultValue=a}l=l??f,l=typeof l!="function"&&typeof l!="symbol"&&!!l,n.checked=S?n.checked:!!l,n.defaultChecked=!!l,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(n.name=v),cf(n)}function df(n,a,s){a==="number"&&lc(n.ownerDocument)===n||n.defaultValue===""+s||(n.defaultValue=""+s)}function La(n,a,s,l){if(n=n.options,a){a={};for(var f=0;f<s.length;f++)a["$"+s[f]]=!0;for(s=0;s<n.length;s++)f=a.hasOwnProperty("$"+n[s].value),n[s].selected!==f&&(n[s].selected=f),f&&l&&(n[s].defaultSelected=!0)}else{for(s=""+wn(s),a=null,f=0;f<n.length;f++){if(n[f].value===s){n[f].selected=!0,l&&(n[f].defaultSelected=!0);return}a!==null||n[f].disabled||(a=n[f])}a!==null&&(a.selected=!0)}}function uv(n,a,s){if(a!=null&&(a=""+wn(a),a!==n.value&&(n.value=a),s==null)){n.defaultValue!==a&&(n.defaultValue=a);return}n.defaultValue=s!=null?""+wn(s):""}function dv(n,a,s,l){if(a==null){if(l!=null){if(s!=null)throw Error(r(92));if(ge(l)){if(1<l.length)throw Error(r(93));l=l[0]}s=l}s==null&&(s=""),a=s}s=wn(a),n.defaultValue=s,l=n.textContent,l===s&&l!==""&&l!==null&&(n.value=l),cf(n)}function Ba(n,a){if(a){var s=n.firstChild;if(s&&s===n.lastChild&&s.nodeType===3){s.nodeValue=a;return}}n.textContent=a}var kR=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function fv(n,a,s){var l=a.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?l?n.setProperty(a,""):a==="float"?n.cssFloat="":n[a]="":l?n.setProperty(a,s):typeof s!="number"||s===0||kR.has(a)?a==="float"?n.cssFloat=s:n[a]=(""+s).trim():n[a]=s+"px"}function hv(n,a,s){if(a!=null&&typeof a!="object")throw Error(r(62));if(n=n.style,s!=null){for(var l in s)!s.hasOwnProperty(l)||a!=null&&a.hasOwnProperty(l)||(l.indexOf("--")===0?n.setProperty(l,""):l==="float"?n.cssFloat="":n[l]="");for(var f in a)l=a[f],a.hasOwnProperty(f)&&s[f]!==l&&fv(n,f,l)}else for(var h in a)a.hasOwnProperty(h)&&fv(n,h,a[h])}function ff(n){if(n.indexOf("-")===-1)return!1;switch(n){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 NR=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),IR=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function cc(n){return IR.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function Ti(){}var hf=null;function gf(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Ha=null,Fa=null;function gv(n){var a=za(n);if(a&&(n=a.stateNode)){var s=n[qt]||null;e:switch(n=a.stateNode,a.type){case"input":if(uf(n,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),a=s.name,s.type==="radio"&&a!=null){for(s=n;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+On(""+a)+'"][type="radio"]'),a=0;a<s.length;a++){var l=s[a];if(l!==n&&l.form===n.form){var f=l[qt]||null;if(!f)throw Error(r(90));uf(l,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(a=0;a<s.length;a++)l=s[a],l.form===n.form&&lv(l)}break e;case"textarea":uv(n,s.value,s.defaultValue);break e;case"select":a=s.value,a!=null&&La(n,!!s.multiple,a,!1)}}}var pf=!1;function pv(n,a,s){if(pf)return n(a,s);pf=!0;try{var l=n(a);return l}finally{if(pf=!1,(Ha!==null||Fa!==null)&&(Xc(),Ha&&(a=Ha,n=Fa,Fa=Ha=null,gv(a),n)))for(a=0;a<n.length;a++)gv(n[a])}}function os(n,a){var s=n.stateNode;if(s===null)return null;var l=s[qt]||null;if(l===null)return null;s=l[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(n=n.type,l=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!l;break e;default:n=!1}if(n)return null;if(s&&typeof s!="function")throw Error(r(231,a,typeof s));return s}var wi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),mf=!1;if(wi)try{var ss={};Object.defineProperty(ss,"passive",{get:function(){mf=!0}}),window.addEventListener("test",ss,ss),window.removeEventListener("test",ss,ss)}catch{mf=!1}var rr=null,vf=null,uc=null;function mv(){if(uc)return uc;var n,a=vf,s=a.length,l,f="value"in rr?rr.value:rr.textContent,h=f.length;for(n=0;n<s&&a[n]===f[n];n++);var v=s-n;for(l=1;l<=v&&a[s-l]===f[h-l];l++);return uc=f.slice(n,1<l?1-l:void 0)}function dc(n){var a=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&a===13&&(n=13)):n=a,n===10&&(n=13),32<=n||n===13?n:0}function fc(){return!0}function vv(){return!1}function Yt(n){function a(s,l,f,h,v){this._reactName=s,this._targetInst=f,this.type=l,this.nativeEvent=h,this.target=v,this.currentTarget=null;for(var S in n)n.hasOwnProperty(S)&&(s=n[S],this[S]=s?s(h):h[S]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?fc:vv,this.isPropagationStopped=vv,this}return b(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=fc)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=fc)},persist:function(){},isPersistent:fc}),a}var jr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hc=Yt(jr),ls=b({},jr,{view:0,detail:0}),PR=Yt(ls),bf,yf,cs,gc=b({},ls,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sf,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==cs&&(cs&&n.type==="mousemove"?(bf=n.screenX-cs.screenX,yf=n.screenY-cs.screenY):yf=bf=0,cs=n),bf)},movementY:function(n){return"movementY"in n?n.movementY:yf}}),bv=Yt(gc),AR=b({},gc,{dataTransfer:0}),_R=Yt(AR),VR=b({},ls,{relatedTarget:0}),xf=Yt(VR),zR=b({},jr,{animationName:0,elapsedTime:0,pseudoElement:0}),DR=Yt(zR),MR=b({},jr,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),LR=Yt(MR),BR=b({},jr,{data:0}),yv=Yt(BR),HR={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},FR={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"},$R={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function UR(n){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(n):(n=$R[n])?!!a[n]:!1}function Sf(){return UR}var jR=b({},ls,{key:function(n){if(n.key){var a=HR[n.key]||n.key;if(a!=="Unidentified")return a}return n.type==="keypress"?(n=dc(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?FR[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sf,charCode:function(n){return n.type==="keypress"?dc(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?dc(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),GR=Yt(jR),WR=b({},gc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xv=Yt(WR),qR=b({},ls,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sf}),YR=Yt(qR),KR=b({},jr,{propertyName:0,elapsedTime:0,pseudoElement:0}),XR=Yt(KR),QR=b({},gc,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),ZR=Yt(QR),JR=b({},jr,{newState:0,oldState:0}),ek=Yt(JR),tk=[9,13,27,32],Cf=wi&&"CompositionEvent"in window,us=null;wi&&"documentMode"in document&&(us=document.documentMode);var nk=wi&&"TextEvent"in window&&!us,Sv=wi&&(!Cf||us&&8<us&&11>=us),Cv=" ",Ev=!1;function Tv(n,a){switch(n){case"keyup":return tk.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wv(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var $a=!1;function ik(n,a){switch(n){case"compositionend":return wv(a);case"keypress":return a.which!==32?null:(Ev=!0,Cv);case"textInput":return n=a.data,n===Cv&&Ev?null:n;default:return null}}function rk(n,a){if($a)return n==="compositionend"||!Cf&&Tv(n,a)?(n=mv(),uc=vf=rr=null,$a=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Sv&&a.locale!=="ko"?null:a.data;default:return null}}var ak={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 Ov(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a==="input"?!!ak[n.type]:a==="textarea"}function Rv(n,a,s,l){Ha?Fa?Fa.push(l):Fa=[l]:Ha=l,a=iu(a,"onChange"),0<a.length&&(s=new hc("onChange","change",null,s,l),n.push({event:s,listeners:a}))}var ds=null,fs=null;function ok(n){c0(n,0)}function pc(n){var a=as(n);if(lv(a))return n}function kv(n,a){if(n==="change")return a}var Nv=!1;if(wi){var Ef;if(wi){var Tf="oninput"in document;if(!Tf){var Iv=document.createElement("div");Iv.setAttribute("oninput","return;"),Tf=typeof Iv.oninput=="function"}Ef=Tf}else Ef=!1;Nv=Ef&&(!document.documentMode||9<document.documentMode)}function Pv(){ds&&(ds.detachEvent("onpropertychange",Av),fs=ds=null)}function Av(n){if(n.propertyName==="value"&&pc(fs)){var a=[];Rv(a,fs,n,gf(n)),pv(ok,a)}}function sk(n,a,s){n==="focusin"?(Pv(),ds=a,fs=s,ds.attachEvent("onpropertychange",Av)):n==="focusout"&&Pv()}function lk(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return pc(fs)}function ck(n,a){if(n==="click")return pc(a)}function uk(n,a){if(n==="input"||n==="change")return pc(a)}function dk(n,a){return n===a&&(n!==0||1/n===1/a)||n!==n&&a!==a}var cn=typeof Object.is=="function"?Object.is:dk;function hs(n,a){if(cn(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;var s=Object.keys(n),l=Object.keys(a);if(s.length!==l.length)return!1;for(l=0;l<s.length;l++){var f=s[l];if(!Pa.call(a,f)||!cn(n[f],a[f]))return!1}return!0}function _v(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Vv(n,a){var s=_v(n);n=0;for(var l;s;){if(s.nodeType===3){if(l=n+s.textContent.length,n<=a&&l>=a)return{node:s,offset:a-n};n=l}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=_v(s)}}function zv(n,a){return n&&a?n===a?!0:n&&n.nodeType===3?!1:a&&a.nodeType===3?zv(n,a.parentNode):"contains"in n?n.contains(a):n.compareDocumentPosition?!!(n.compareDocumentPosition(a)&16):!1:!1}function Dv(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var a=lc(n.document);a instanceof n.HTMLIFrameElement;){try{var s=typeof a.contentWindow.location.href=="string"}catch{s=!1}if(s)n=a.contentWindow;else break;a=lc(n.document)}return a}function wf(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a&&(a==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||a==="textarea"||n.contentEditable==="true")}var fk=wi&&"documentMode"in document&&11>=document.documentMode,Ua=null,Of=null,gs=null,Rf=!1;function Mv(n,a,s){var l=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Rf||Ua==null||Ua!==lc(l)||(l=Ua,"selectionStart"in l&&wf(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),gs&&hs(gs,l)||(gs=l,l=iu(Of,"onSelect"),0<l.length&&(a=new hc("onSelect","select",null,a,s),n.push({event:a,listeners:l}),a.target=Ua)))}function Gr(n,a){var s={};return s[n.toLowerCase()]=a.toLowerCase(),s["Webkit"+n]="webkit"+a,s["Moz"+n]="moz"+a,s}var ja={animationend:Gr("Animation","AnimationEnd"),animationiteration:Gr("Animation","AnimationIteration"),animationstart:Gr("Animation","AnimationStart"),transitionrun:Gr("Transition","TransitionRun"),transitionstart:Gr("Transition","TransitionStart"),transitioncancel:Gr("Transition","TransitionCancel"),transitionend:Gr("Transition","TransitionEnd")},kf={},Lv={};wi&&(Lv=document.createElement("div").style,"AnimationEvent"in window||(delete ja.animationend.animation,delete ja.animationiteration.animation,delete ja.animationstart.animation),"TransitionEvent"in window||delete ja.transitionend.transition);function Wr(n){if(kf[n])return kf[n];if(!ja[n])return n;var a=ja[n],s;for(s in a)if(a.hasOwnProperty(s)&&s in Lv)return kf[n]=a[s];return n}var Bv=Wr("animationend"),Hv=Wr("animationiteration"),Fv=Wr("animationstart"),hk=Wr("transitionrun"),gk=Wr("transitionstart"),pk=Wr("transitioncancel"),$v=Wr("transitionend"),Uv=new Map,Nf="abort auxClick beforeToggle 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(" ");Nf.push("scrollEnd");function Gn(n,a){Uv.set(n,a),Ur(a,[n])}var mc=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},Rn=[],Ga=0,If=0;function vc(){for(var n=Ga,a=If=Ga=0;a<n;){var s=Rn[a];Rn[a++]=null;var l=Rn[a];Rn[a++]=null;var f=Rn[a];Rn[a++]=null;var h=Rn[a];if(Rn[a++]=null,l!==null&&f!==null){var v=l.pending;v===null?f.next=f:(f.next=v.next,v.next=f),l.pending=f}h!==0&&jv(s,f,h)}}function bc(n,a,s,l){Rn[Ga++]=n,Rn[Ga++]=a,Rn[Ga++]=s,Rn[Ga++]=l,If|=l,n.lanes|=l,n=n.alternate,n!==null&&(n.lanes|=l)}function Pf(n,a,s,l){return bc(n,a,s,l),yc(n)}function qr(n,a){return bc(n,null,null,a),yc(n)}function jv(n,a,s){n.lanes|=s;var l=n.alternate;l!==null&&(l.lanes|=s);for(var f=!1,h=n.return;h!==null;)h.childLanes|=s,l=h.alternate,l!==null&&(l.childLanes|=s),h.tag===22&&(n=h.stateNode,n===null||n._visibility&1||(f=!0)),n=h,h=h.return;return n.tag===3?(h=n.stateNode,f&&a!==null&&(f=31-ln(s),n=h.hiddenUpdates,l=n[f],l===null?n[f]=[a]:l.push(a),a.lane=s|536870912),h):null}function yc(n){if(50<Ds)throw Ds=0,Hh=null,Error(r(185));for(var a=n.return;a!==null;)n=a,a=n.return;return n.tag===3?n.stateNode:null}var Wa={};function mk(n,a,s,l){this.tag=n,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function un(n,a,s,l){return new mk(n,a,s,l)}function Af(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Oi(n,a){var s=n.alternate;return s===null?(s=un(n.tag,a,n.key,n.mode),s.elementType=n.elementType,s.type=n.type,s.stateNode=n.stateNode,s.alternate=n,n.alternate=s):(s.pendingProps=a,s.type=n.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=n.flags&65011712,s.childLanes=n.childLanes,s.lanes=n.lanes,s.child=n.child,s.memoizedProps=n.memoizedProps,s.memoizedState=n.memoizedState,s.updateQueue=n.updateQueue,a=n.dependencies,s.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},s.sibling=n.sibling,s.index=n.index,s.ref=n.ref,s.refCleanup=n.refCleanup,s}function Gv(n,a){n.flags&=65011714;var s=n.alternate;return s===null?(n.childLanes=0,n.lanes=a,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=s.childLanes,n.lanes=s.lanes,n.child=s.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=s.memoizedProps,n.memoizedState=s.memoizedState,n.updateQueue=s.updateQueue,n.type=s.type,a=s.dependencies,n.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),n}function xc(n,a,s,l,f,h){var v=0;if(l=n,typeof n=="function")Af(n)&&(v=1);else if(typeof n=="string")v=SN(n,s,oe.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case z:return n=un(31,s,a,f),n.elementType=z,n.lanes=h,n;case E:return Yr(s.children,f,h,a);case w:v=8,f|=24;break;case R:return n=un(12,s,a,f|2),n.elementType=R,n.lanes=h,n;case k:return n=un(13,s,a,f),n.elementType=k,n.lanes=h,n;case U:return n=un(19,s,a,f),n.elementType=U,n.lanes=h,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case I:v=10;break e;case P:v=9;break e;case O:v=11;break e;case H:v=14;break e;case G:v=16,l=null;break e}v=29,s=Error(r(130,n===null?"null":typeof n,"")),l=null}return a=un(v,s,a,f),a.elementType=n,a.type=l,a.lanes=h,a}function Yr(n,a,s,l){return n=un(7,n,l,a),n.lanes=s,n}function _f(n,a,s){return n=un(6,n,null,a),n.lanes=s,n}function Wv(n){var a=un(18,null,null,0);return a.stateNode=n,a}function Vf(n,a,s){return a=un(4,n.children!==null?n.children:[],n.key,a),a.lanes=s,a.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},a}var qv=new WeakMap;function kn(n,a){if(typeof n=="object"&&n!==null){var s=qv.get(n);return s!==void 0?s:(a={value:n,source:a,stack:Jl(a)},qv.set(n,a),a)}return{value:n,source:a,stack:Jl(a)}}var qa=[],Ya=0,Sc=null,ps=0,Nn=[],In=0,ar=null,ti=1,ni="";function Ri(n,a){qa[Ya++]=ps,qa[Ya++]=Sc,Sc=n,ps=a}function Yv(n,a,s){Nn[In++]=ti,Nn[In++]=ni,Nn[In++]=ar,ar=n;var l=ti;n=ni;var f=32-ln(l)-1;l&=~(1<<f),s+=1;var h=32-ln(a)+f;if(30<h){var v=f-f%5;h=(l&(1<<v)-1).toString(32),l>>=v,f-=v,ti=1<<32-ln(a)+f|s<<f|l,ni=h+n}else ti=1<<h|s<<f|l,ni=n}function zf(n){n.return!==null&&(Ri(n,1),Yv(n,1,0))}function Df(n){for(;n===Sc;)Sc=qa[--Ya],qa[Ya]=null,ps=qa[--Ya],qa[Ya]=null;for(;n===ar;)ar=Nn[--In],Nn[In]=null,ni=Nn[--In],Nn[In]=null,ti=Nn[--In],Nn[In]=null}function Kv(n,a){Nn[In++]=ti,Nn[In++]=ni,Nn[In++]=ar,ti=a.id,ni=a.overflow,ar=n}var At=null,Ze=null,Pe=!1,or=null,Pn=!1,Mf=Error(r(519));function sr(n){var a=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ms(kn(a,n)),Mf}function Xv(n){var a=n.stateNode,s=n.type,l=n.memoizedProps;switch(a[Pt]=n,a[qt]=l,s){case"dialog":ke("cancel",a),ke("close",a);break;case"iframe":case"object":case"embed":ke("load",a);break;case"video":case"audio":for(s=0;s<Ls.length;s++)ke(Ls[s],a);break;case"source":ke("error",a);break;case"img":case"image":case"link":ke("error",a),ke("load",a);break;case"details":ke("toggle",a);break;case"input":ke("invalid",a),cv(a,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":ke("invalid",a);break;case"textarea":ke("invalid",a),dv(a,l.value,l.defaultValue,l.children)}s=l.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||a.textContent===""+s||l.suppressHydrationWarning===!0||h0(a.textContent,s)?(l.popover!=null&&(ke("beforetoggle",a),ke("toggle",a)),l.onScroll!=null&&ke("scroll",a),l.onScrollEnd!=null&&ke("scrollend",a),l.onClick!=null&&(a.onclick=Ti),a=!0):a=!1,a||sr(n,!0)}function Qv(n){for(At=n.return;At;)switch(At.tag){case 5:case 31:case 13:Pn=!1;return;case 27:case 3:Pn=!0;return;default:At=At.return}}function Ka(n){if(n!==At)return!1;if(!Pe)return Qv(n),Pe=!0,!1;var a=n.tag,s;if((s=a!==3&&a!==27)&&((s=a===5)&&(s=n.type,s=!(s!=="form"&&s!=="button")||tg(n.type,n.memoizedProps)),s=!s),s&&Ze&&sr(n),Qv(n),a===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));Ze=C0(n)}else if(a===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));Ze=C0(n)}else a===27?(a=Ze,Sr(n.type)?(n=og,og=null,Ze=n):Ze=a):Ze=At?_n(n.stateNode.nextSibling):null;return!0}function Kr(){Ze=At=null,Pe=!1}function Lf(){var n=or;return n!==null&&(Zt===null?Zt=n:Zt.push.apply(Zt,n),or=null),n}function ms(n){or===null?or=[n]:or.push(n)}var Bf=A(null),Xr=null,ki=null;function lr(n,a,s){ie(Bf,a._currentValue),a._currentValue=s}function Ni(n){n._currentValue=Bf.current,Y(Bf)}function Hf(n,a,s){for(;n!==null;){var l=n.alternate;if((n.childLanes&a)!==a?(n.childLanes|=a,l!==null&&(l.childLanes|=a)):l!==null&&(l.childLanes&a)!==a&&(l.childLanes|=a),n===s)break;n=n.return}}function Ff(n,a,s,l){var f=n.child;for(f!==null&&(f.return=n);f!==null;){var h=f.dependencies;if(h!==null){var v=f.child;h=h.firstContext;e:for(;h!==null;){var S=h;h=f;for(var N=0;N<a.length;N++)if(S.context===a[N]){h.lanes|=s,S=h.alternate,S!==null&&(S.lanes|=s),Hf(h.return,s,n),l||(v=null);break e}h=S.next}}else if(f.tag===18){if(v=f.return,v===null)throw Error(r(341));v.lanes|=s,h=v.alternate,h!==null&&(h.lanes|=s),Hf(v,s,n),v=null}else v=f.child;if(v!==null)v.return=f;else for(v=f;v!==null;){if(v===n){v=null;break}if(f=v.sibling,f!==null){f.return=v.return,v=f;break}v=v.return}f=v}}function Xa(n,a,s,l){n=null;for(var f=a,h=!1;f!==null;){if(!h){if((f.flags&524288)!==0)h=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var v=f.alternate;if(v===null)throw Error(r(387));if(v=v.memoizedProps,v!==null){var S=f.type;cn(f.pendingProps.value,v.value)||(n!==null?n.push(S):n=[S])}}else if(f===_e.current){if(v=f.alternate,v===null)throw Error(r(387));v.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(n!==null?n.push(Us):n=[Us])}f=f.return}n!==null&&Ff(a,n,s,l),a.flags|=262144}function Cc(n){for(n=n.firstContext;n!==null;){if(!cn(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function Qr(n){Xr=n,ki=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function _t(n){return Zv(Xr,n)}function Ec(n,a){return Xr===null&&Qr(n),Zv(n,a)}function Zv(n,a){var s=a._currentValue;if(a={context:a,memoizedValue:s,next:null},ki===null){if(n===null)throw Error(r(308));ki=a,n.dependencies={lanes:0,firstContext:a},n.flags|=524288}else ki=ki.next=a;return s}var vk=typeof AbortController<"u"?AbortController:function(){var n=[],a=this.signal={aborted:!1,addEventListener:function(s,l){n.push(l)}};this.abort=function(){a.aborted=!0,n.forEach(function(s){return s()})}},bk=e.unstable_scheduleCallback,yk=e.unstable_NormalPriority,ht={$$typeof:I,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function $f(){return{controller:new vk,data:new Map,refCount:0}}function vs(n){n.refCount--,n.refCount===0&&bk(yk,function(){n.controller.abort()})}var bs=null,Uf=0,Qa=0,Za=null;function xk(n,a){if(bs===null){var s=bs=[];Uf=0,Qa=Wh(),Za={status:"pending",value:void 0,then:function(l){s.push(l)}}}return Uf++,a.then(Jv,Jv),a}function Jv(){if(--Uf===0&&bs!==null){Za!==null&&(Za.status="fulfilled");var n=bs;bs=null,Qa=0,Za=null;for(var a=0;a<n.length;a++)(0,n[a])()}}function Sk(n,a){var s=[],l={status:"pending",value:null,reason:null,then:function(f){s.push(f)}};return n.then(function(){l.status="fulfilled",l.value=a;for(var f=0;f<s.length;f++)(0,s[f])(a)},function(f){for(l.status="rejected",l.reason=f,f=0;f<s.length;f++)(0,s[f])(void 0)}),l}var eb=F.S;F.S=function(n,a){My=on(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&xk(n,a),eb!==null&&eb(n,a)};var Zr=A(null);function jf(){var n=Zr.current;return n!==null?n:We.pooledCache}function Tc(n,a){a===null?ie(Zr,Zr.current):ie(Zr,a.pool)}function tb(){var n=jf();return n===null?null:{parent:ht._currentValue,pool:n}}var Ja=Error(r(460)),Gf=Error(r(474)),wc=Error(r(542)),Oc={then:function(){}};function nb(n){return n=n.status,n==="fulfilled"||n==="rejected"}function ib(n,a,s){switch(s=n[s],s===void 0?n.push(a):s!==a&&(a.then(Ti,Ti),a=s),a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,ab(n),n;default:if(typeof a.status=="string")a.then(Ti,Ti);else{if(n=We,n!==null&&100<n.shellSuspendCounter)throw Error(r(482));n=a,n.status="pending",n.then(function(l){if(a.status==="pending"){var f=a;f.status="fulfilled",f.value=l}},function(l){if(a.status==="pending"){var f=a;f.status="rejected",f.reason=l}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,ab(n),n}throw ea=a,Ja}}function Jr(n){try{var a=n._init;return a(n._payload)}catch(s){throw s!==null&&typeof s=="object"&&typeof s.then=="function"?(ea=s,Ja):s}}var ea=null;function rb(){if(ea===null)throw Error(r(459));var n=ea;return ea=null,n}function ab(n){if(n===Ja||n===wc)throw Error(r(483))}var eo=null,ys=0;function Rc(n){var a=ys;return ys+=1,eo===null&&(eo=[]),ib(eo,n,a)}function xs(n,a){a=a.props.ref,n.ref=a!==void 0?a:null}function kc(n,a){throw a.$$typeof===y?Error(r(525)):(n=Object.prototype.toString.call(a),Error(r(31,n==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":n)))}function ob(n){function a(D,_){if(n){var L=D.deletions;L===null?(D.deletions=[_],D.flags|=16):L.push(_)}}function s(D,_){if(!n)return null;for(;_!==null;)a(D,_),_=_.sibling;return null}function l(D){for(var _=new Map;D!==null;)D.key!==null?_.set(D.key,D):_.set(D.index,D),D=D.sibling;return _}function f(D,_){return D=Oi(D,_),D.index=0,D.sibling=null,D}function h(D,_,L){return D.index=L,n?(L=D.alternate,L!==null?(L=L.index,L<_?(D.flags|=67108866,_):L):(D.flags|=67108866,_)):(D.flags|=1048576,_)}function v(D){return n&&D.alternate===null&&(D.flags|=67108866),D}function S(D,_,L,K){return _===null||_.tag!==6?(_=_f(L,D.mode,K),_.return=D,_):(_=f(_,L),_.return=D,_)}function N(D,_,L,K){var me=L.type;return me===E?q(D,_,L.props.children,K,L.key):_!==null&&(_.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===G&&Jr(me)===_.type)?(_=f(_,L.props),xs(_,L),_.return=D,_):(_=xc(L.type,L.key,L.props,null,D.mode,K),xs(_,L),_.return=D,_)}function B(D,_,L,K){return _===null||_.tag!==4||_.stateNode.containerInfo!==L.containerInfo||_.stateNode.implementation!==L.implementation?(_=Vf(L,D.mode,K),_.return=D,_):(_=f(_,L.children||[]),_.return=D,_)}function q(D,_,L,K,me){return _===null||_.tag!==7?(_=Yr(L,D.mode,K,me),_.return=D,_):(_=f(_,L),_.return=D,_)}function X(D,_,L){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return _=_f(""+_,D.mode,L),_.return=D,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case x:return L=xc(_.type,_.key,_.props,null,D.mode,L),xs(L,_),L.return=D,L;case T:return _=Vf(_,D.mode,L),_.return=D,_;case G:return _=Jr(_),X(D,_,L)}if(ge(_)||Q(_))return _=Yr(_,D.mode,L,null),_.return=D,_;if(typeof _.then=="function")return X(D,Rc(_),L);if(_.$$typeof===I)return X(D,Ec(D,_),L);kc(D,_)}return null}function $(D,_,L,K){var me=_!==null?_.key:null;if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return me!==null?null:S(D,_,""+L,K);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case x:return L.key===me?N(D,_,L,K):null;case T:return L.key===me?B(D,_,L,K):null;case G:return L=Jr(L),$(D,_,L,K)}if(ge(L)||Q(L))return me!==null?null:q(D,_,L,K,null);if(typeof L.then=="function")return $(D,_,Rc(L),K);if(L.$$typeof===I)return $(D,_,Ec(D,L),K);kc(D,L)}return null}function j(D,_,L,K,me){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return D=D.get(L)||null,S(_,D,""+K,me);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case x:return D=D.get(K.key===null?L:K.key)||null,N(_,D,K,me);case T:return D=D.get(K.key===null?L:K.key)||null,B(_,D,K,me);case G:return K=Jr(K),j(D,_,L,K,me)}if(ge(K)||Q(K))return D=D.get(L)||null,q(_,D,K,me,null);if(typeof K.then=="function")return j(D,_,L,Rc(K),me);if(K.$$typeof===I)return j(D,_,L,Ec(_,K),me);kc(_,K)}return null}function le(D,_,L,K){for(var me=null,Ve=null,de=_,Oe=_=0,Ie=null;de!==null&&Oe<L.length;Oe++){de.index>Oe?(Ie=de,de=null):Ie=de.sibling;var ze=$(D,de,L[Oe],K);if(ze===null){de===null&&(de=Ie);break}n&&de&&ze.alternate===null&&a(D,de),_=h(ze,_,Oe),Ve===null?me=ze:Ve.sibling=ze,Ve=ze,de=Ie}if(Oe===L.length)return s(D,de),Pe&&Ri(D,Oe),me;if(de===null){for(;Oe<L.length;Oe++)de=X(D,L[Oe],K),de!==null&&(_=h(de,_,Oe),Ve===null?me=de:Ve.sibling=de,Ve=de);return Pe&&Ri(D,Oe),me}for(de=l(de);Oe<L.length;Oe++)Ie=j(de,D,Oe,L[Oe],K),Ie!==null&&(n&&Ie.alternate!==null&&de.delete(Ie.key===null?Oe:Ie.key),_=h(Ie,_,Oe),Ve===null?me=Ie:Ve.sibling=Ie,Ve=Ie);return n&&de.forEach(function(Or){return a(D,Or)}),Pe&&Ri(D,Oe),me}function xe(D,_,L,K){if(L==null)throw Error(r(151));for(var me=null,Ve=null,de=_,Oe=_=0,Ie=null,ze=L.next();de!==null&&!ze.done;Oe++,ze=L.next()){de.index>Oe?(Ie=de,de=null):Ie=de.sibling;var Or=$(D,de,ze.value,K);if(Or===null){de===null&&(de=Ie);break}n&&de&&Or.alternate===null&&a(D,de),_=h(Or,_,Oe),Ve===null?me=Or:Ve.sibling=Or,Ve=Or,de=Ie}if(ze.done)return s(D,de),Pe&&Ri(D,Oe),me;if(de===null){for(;!ze.done;Oe++,ze=L.next())ze=X(D,ze.value,K),ze!==null&&(_=h(ze,_,Oe),Ve===null?me=ze:Ve.sibling=ze,Ve=ze);return Pe&&Ri(D,Oe),me}for(de=l(de);!ze.done;Oe++,ze=L.next())ze=j(de,D,Oe,ze.value,K),ze!==null&&(n&&ze.alternate!==null&&de.delete(ze.key===null?Oe:ze.key),_=h(ze,_,Oe),Ve===null?me=ze:Ve.sibling=ze,Ve=ze);return n&&de.forEach(function(AN){return a(D,AN)}),Pe&&Ri(D,Oe),me}function Ge(D,_,L,K){if(typeof L=="object"&&L!==null&&L.type===E&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case x:e:{for(var me=L.key;_!==null;){if(_.key===me){if(me=L.type,me===E){if(_.tag===7){s(D,_.sibling),K=f(_,L.props.children),K.return=D,D=K;break e}}else if(_.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===G&&Jr(me)===_.type){s(D,_.sibling),K=f(_,L.props),xs(K,L),K.return=D,D=K;break e}s(D,_);break}else a(D,_);_=_.sibling}L.type===E?(K=Yr(L.props.children,D.mode,K,L.key),K.return=D,D=K):(K=xc(L.type,L.key,L.props,null,D.mode,K),xs(K,L),K.return=D,D=K)}return v(D);case T:e:{for(me=L.key;_!==null;){if(_.key===me)if(_.tag===4&&_.stateNode.containerInfo===L.containerInfo&&_.stateNode.implementation===L.implementation){s(D,_.sibling),K=f(_,L.children||[]),K.return=D,D=K;break e}else{s(D,_);break}else a(D,_);_=_.sibling}K=Vf(L,D.mode,K),K.return=D,D=K}return v(D);case G:return L=Jr(L),Ge(D,_,L,K)}if(ge(L))return le(D,_,L,K);if(Q(L)){if(me=Q(L),typeof me!="function")throw Error(r(150));return L=me.call(L),xe(D,_,L,K)}if(typeof L.then=="function")return Ge(D,_,Rc(L),K);if(L.$$typeof===I)return Ge(D,_,Ec(D,L),K);kc(D,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,_!==null&&_.tag===6?(s(D,_.sibling),K=f(_,L),K.return=D,D=K):(s(D,_),K=_f(L,D.mode,K),K.return=D,D=K),v(D)):s(D,_)}return function(D,_,L,K){try{ys=0;var me=Ge(D,_,L,K);return eo=null,me}catch(de){if(de===Ja||de===wc)throw de;var Ve=un(29,de,null,D.mode);return Ve.lanes=K,Ve.return=D,Ve}finally{}}}var ta=ob(!0),sb=ob(!1),cr=!1;function Wf(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function qf(n,a){n=n.updateQueue,a.updateQueue===n&&(a.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function ur(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function dr(n,a,s){var l=n.updateQueue;if(l===null)return null;if(l=l.shared,(De&2)!==0){var f=l.pending;return f===null?a.next=a:(a.next=f.next,f.next=a),l.pending=a,a=yc(n),jv(n,null,s),a}return bc(n,l,a,s),yc(n)}function Ss(n,a,s){if(a=a.updateQueue,a!==null&&(a=a.shared,(s&4194048)!==0)){var l=a.lanes;l&=n.pendingLanes,s|=l,a.lanes=s,Zm(n,s)}}function Yf(n,a){var s=n.updateQueue,l=n.alternate;if(l!==null&&(l=l.updateQueue,s===l)){var f=null,h=null;if(s=s.firstBaseUpdate,s!==null){do{var v={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};h===null?f=h=v:h=h.next=v,s=s.next}while(s!==null);h===null?f=h=a:h=h.next=a}else f=h=a;s={baseState:l.baseState,firstBaseUpdate:f,lastBaseUpdate:h,shared:l.shared,callbacks:l.callbacks},n.updateQueue=s;return}n=s.lastBaseUpdate,n===null?s.firstBaseUpdate=a:n.next=a,s.lastBaseUpdate=a}var Kf=!1;function Cs(){if(Kf){var n=Za;if(n!==null)throw n}}function Es(n,a,s,l){Kf=!1;var f=n.updateQueue;cr=!1;var h=f.firstBaseUpdate,v=f.lastBaseUpdate,S=f.shared.pending;if(S!==null){f.shared.pending=null;var N=S,B=N.next;N.next=null,v===null?h=B:v.next=B,v=N;var q=n.alternate;q!==null&&(q=q.updateQueue,S=q.lastBaseUpdate,S!==v&&(S===null?q.firstBaseUpdate=B:S.next=B,q.lastBaseUpdate=N))}if(h!==null){var X=f.baseState;v=0,q=B=N=null,S=h;do{var $=S.lane&-536870913,j=$!==S.lane;if(j?(Ne&$)===$:(l&$)===$){$!==0&&$===Qa&&(Kf=!0),q!==null&&(q=q.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var le=n,xe=S;$=a;var Ge=s;switch(xe.tag){case 1:if(le=xe.payload,typeof le=="function"){X=le.call(Ge,X,$);break e}X=le;break e;case 3:le.flags=le.flags&-65537|128;case 0:if(le=xe.payload,$=typeof le=="function"?le.call(Ge,X,$):le,$==null)break e;X=b({},X,$);break e;case 2:cr=!0}}$=S.callback,$!==null&&(n.flags|=64,j&&(n.flags|=8192),j=f.callbacks,j===null?f.callbacks=[$]:j.push($))}else j={lane:$,tag:S.tag,payload:S.payload,callback:S.callback,next:null},q===null?(B=q=j,N=X):q=q.next=j,v|=$;if(S=S.next,S===null){if(S=f.shared.pending,S===null)break;j=S,S=j.next,j.next=null,f.lastBaseUpdate=j,f.shared.pending=null}}while(!0);q===null&&(N=X),f.baseState=N,f.firstBaseUpdate=B,f.lastBaseUpdate=q,h===null&&(f.shared.lanes=0),mr|=v,n.lanes=v,n.memoizedState=X}}function lb(n,a){if(typeof n!="function")throw Error(r(191,n));n.call(a)}function cb(n,a){var s=n.callbacks;if(s!==null)for(n.callbacks=null,n=0;n<s.length;n++)lb(s[n],a)}var to=A(null),Nc=A(0);function ub(n,a){n=Li,ie(Nc,n),ie(to,a),Li=n|a.baseLanes}function Xf(){ie(Nc,Li),ie(to,to.current)}function Qf(){Li=Nc.current,Y(to),Y(Nc)}var dn=A(null),An=null;function fr(n){var a=n.alternate;ie(ut,ut.current&1),ie(dn,n),An===null&&(a===null||to.current!==null||a.memoizedState!==null)&&(An=n)}function Zf(n){ie(ut,ut.current),ie(dn,n),An===null&&(An=n)}function db(n){n.tag===22?(ie(ut,ut.current),ie(dn,n),An===null&&(An=n)):hr()}function hr(){ie(ut,ut.current),ie(dn,dn.current)}function fn(n){Y(dn),An===n&&(An=null),Y(ut)}var ut=A(0);function Ic(n){for(var a=n;a!==null;){if(a.tag===13){var s=a.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||rg(s)||ag(s)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Ii=0,Ee=null,Ue=null,gt=null,Pc=!1,no=!1,na=!1,Ac=0,Ts=0,io=null,Ck=0;function st(){throw Error(r(321))}function Jf(n,a){if(a===null)return!1;for(var s=0;s<a.length&&s<n.length;s++)if(!cn(n[s],a[s]))return!1;return!0}function eh(n,a,s,l,f,h){return Ii=h,Ee=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,F.H=n===null||n.memoizedState===null?Yb:ph,na=!1,h=s(l,f),na=!1,no&&(h=hb(a,s,l,f)),fb(n),h}function fb(n){F.H=Rs;var a=Ue!==null&&Ue.next!==null;if(Ii=0,gt=Ue=Ee=null,Pc=!1,Ts=0,io=null,a)throw Error(r(300));n===null||pt||(n=n.dependencies,n!==null&&Cc(n)&&(pt=!0))}function hb(n,a,s,l){Ee=n;var f=0;do{if(no&&(io=null),Ts=0,no=!1,25<=f)throw Error(r(301));if(f+=1,gt=Ue=null,n.updateQueue!=null){var h=n.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}F.H=Kb,h=a(s,l)}while(no);return h}function Ek(){var n=F.H,a=n.useState()[0];return a=typeof a.then=="function"?ws(a):a,n=n.useState()[0],(Ue!==null?Ue.memoizedState:null)!==n&&(Ee.flags|=1024),a}function th(){var n=Ac!==0;return Ac=0,n}function nh(n,a,s){a.updateQueue=n.updateQueue,a.flags&=-2053,n.lanes&=~s}function ih(n){if(Pc){for(n=n.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}Pc=!1}Ii=0,gt=Ue=Ee=null,no=!1,Ts=Ac=0,io=null}function Ft(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return gt===null?Ee.memoizedState=gt=n:gt=gt.next=n,gt}function dt(){if(Ue===null){var n=Ee.alternate;n=n!==null?n.memoizedState:null}else n=Ue.next;var a=gt===null?Ee.memoizedState:gt.next;if(a!==null)gt=a,Ue=n;else{if(n===null)throw Ee.alternate===null?Error(r(467)):Error(r(310));Ue=n,n={memoizedState:Ue.memoizedState,baseState:Ue.baseState,baseQueue:Ue.baseQueue,queue:Ue.queue,next:null},gt===null?Ee.memoizedState=gt=n:gt=gt.next=n}return gt}function _c(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ws(n){var a=Ts;return Ts+=1,io===null&&(io=[]),n=ib(io,n,a),a=Ee,(gt===null?a.memoizedState:gt.next)===null&&(a=a.alternate,F.H=a===null||a.memoizedState===null?Yb:ph),n}function Vc(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return ws(n);if(n.$$typeof===I)return _t(n)}throw Error(r(438,String(n)))}function rh(n){var a=null,s=Ee.updateQueue;if(s!==null&&(a=s.memoCache),a==null){var l=Ee.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(a={data:l.data.map(function(f){return f.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),s===null&&(s=_c(),Ee.updateQueue=s),s.memoCache=a,s=a.data[a.index],s===void 0)for(s=a.data[a.index]=Array(n),l=0;l<n;l++)s[l]=M;return a.index++,s}function Pi(n,a){return typeof a=="function"?a(n):a}function zc(n){var a=dt();return ah(a,Ue,n)}function ah(n,a,s){var l=n.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=s;var f=n.baseQueue,h=l.pending;if(h!==null){if(f!==null){var v=f.next;f.next=h.next,h.next=v}a.baseQueue=f=h,l.pending=null}if(h=n.baseState,f===null)n.memoizedState=h;else{a=f.next;var S=v=null,N=null,B=a,q=!1;do{var X=B.lane&-536870913;if(X!==B.lane?(Ne&X)===X:(Ii&X)===X){var $=B.revertLane;if($===0)N!==null&&(N=N.next={lane:0,revertLane:0,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),X===Qa&&(q=!0);else if((Ii&$)===$){B=B.next,$===Qa&&(q=!0);continue}else X={lane:0,revertLane:B.revertLane,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},N===null?(S=N=X,v=h):N=N.next=X,Ee.lanes|=$,mr|=$;X=B.action,na&&s(h,X),h=B.hasEagerState?B.eagerState:s(h,X)}else $={lane:X,revertLane:B.revertLane,gesture:B.gesture,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},N===null?(S=N=$,v=h):N=N.next=$,Ee.lanes|=X,mr|=X;B=B.next}while(B!==null&&B!==a);if(N===null?v=h:N.next=S,!cn(h,n.memoizedState)&&(pt=!0,q&&(s=Za,s!==null)))throw s;n.memoizedState=h,n.baseState=v,n.baseQueue=N,l.lastRenderedState=h}return f===null&&(l.lanes=0),[n.memoizedState,l.dispatch]}function oh(n){var a=dt(),s=a.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=n;var l=s.dispatch,f=s.pending,h=a.memoizedState;if(f!==null){s.pending=null;var v=f=f.next;do h=n(h,v.action),v=v.next;while(v!==f);cn(h,a.memoizedState)||(pt=!0),a.memoizedState=h,a.baseQueue===null&&(a.baseState=h),s.lastRenderedState=h}return[h,l]}function gb(n,a,s){var l=Ee,f=dt(),h=Pe;if(h){if(s===void 0)throw Error(r(407));s=s()}else s=a();var v=!cn((Ue||f).memoizedState,s);if(v&&(f.memoizedState=s,pt=!0),f=f.queue,ch(vb.bind(null,l,f,n),[n]),f.getSnapshot!==a||v||gt!==null&&gt.memoizedState.tag&1){if(l.flags|=2048,ro(9,{destroy:void 0},mb.bind(null,l,f,s,a),null),We===null)throw Error(r(349));h||(Ii&127)!==0||pb(l,a,s)}return s}function pb(n,a,s){n.flags|=16384,n={getSnapshot:a,value:s},a=Ee.updateQueue,a===null?(a=_c(),Ee.updateQueue=a,a.stores=[n]):(s=a.stores,s===null?a.stores=[n]:s.push(n))}function mb(n,a,s,l){a.value=s,a.getSnapshot=l,bb(a)&&yb(n)}function vb(n,a,s){return s(function(){bb(a)&&yb(n)})}function bb(n){var a=n.getSnapshot;n=n.value;try{var s=a();return!cn(n,s)}catch{return!0}}function yb(n){var a=qr(n,2);a!==null&&Jt(a,n,2)}function sh(n){var a=Ft();if(typeof n=="function"){var s=n;if(n=s(),na){nr(!0);try{s()}finally{nr(!1)}}}return a.memoizedState=a.baseState=n,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pi,lastRenderedState:n},a}function xb(n,a,s,l){return n.baseState=s,ah(n,Ue,typeof l=="function"?l:Pi)}function Tk(n,a,s,l,f){if(Lc(n))throw Error(r(485));if(n=a.action,n!==null){var h={payload:f,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){h.listeners.push(v)}};F.T!==null?s(!0):h.isTransition=!1,l(h),s=a.pending,s===null?(h.next=a.pending=h,Sb(a,h)):(h.next=s.next,a.pending=s.next=h)}}function Sb(n,a){var s=a.action,l=a.payload,f=n.state;if(a.isTransition){var h=F.T,v={};F.T=v;try{var S=s(f,l),N=F.S;N!==null&&N(v,S),Cb(n,a,S)}catch(B){lh(n,a,B)}finally{h!==null&&v.types!==null&&(h.types=v.types),F.T=h}}else try{h=s(f,l),Cb(n,a,h)}catch(B){lh(n,a,B)}}function Cb(n,a,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(l){Eb(n,a,l)},function(l){return lh(n,a,l)}):Eb(n,a,s)}function Eb(n,a,s){a.status="fulfilled",a.value=s,Tb(a),n.state=s,a=n.pending,a!==null&&(s=a.next,s===a?n.pending=null:(s=s.next,a.next=s,Sb(n,s)))}function lh(n,a,s){var l=n.pending;if(n.pending=null,l!==null){l=l.next;do a.status="rejected",a.reason=s,Tb(a),a=a.next;while(a!==l)}n.action=null}function Tb(n){n=n.listeners;for(var a=0;a<n.length;a++)(0,n[a])()}function wb(n,a){return a}function Ob(n,a){if(Pe){var s=We.formState;if(s!==null){e:{var l=Ee;if(Pe){if(Ze){t:{for(var f=Ze,h=Pn;f.nodeType!==8;){if(!h){f=null;break t}if(f=_n(f.nextSibling),f===null){f=null;break t}}h=f.data,f=h==="F!"||h==="F"?f:null}if(f){Ze=_n(f.nextSibling),l=f.data==="F!";break e}}sr(l)}l=!1}l&&(a=s[0])}}return s=Ft(),s.memoizedState=s.baseState=a,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wb,lastRenderedState:a},s.queue=l,s=Gb.bind(null,Ee,l),l.dispatch=s,l=sh(!1),h=gh.bind(null,Ee,!1,l.queue),l=Ft(),f={state:a,dispatch:null,action:n,pending:null},l.queue=f,s=Tk.bind(null,Ee,f,h,s),f.dispatch=s,l.memoizedState=n,[a,s,!1]}function Rb(n){var a=dt();return kb(a,Ue,n)}function kb(n,a,s){if(a=ah(n,a,wb)[0],n=zc(Pi)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var l=ws(a)}catch(v){throw v===Ja?wc:v}else l=a;a=dt();var f=a.queue,h=f.dispatch;return s!==a.memoizedState&&(Ee.flags|=2048,ro(9,{destroy:void 0},wk.bind(null,f,s),null)),[l,h,n]}function wk(n,a){n.action=a}function Nb(n){var a=dt(),s=Ue;if(s!==null)return kb(a,s,n);dt(),a=a.memoizedState,s=dt();var l=s.queue.dispatch;return s.memoizedState=n,[a,l,!1]}function ro(n,a,s,l){return n={tag:n,create:s,deps:l,inst:a,next:null},a=Ee.updateQueue,a===null&&(a=_c(),Ee.updateQueue=a),s=a.lastEffect,s===null?a.lastEffect=n.next=n:(l=s.next,s.next=n,n.next=l,a.lastEffect=n),n}function Ib(){return dt().memoizedState}function Dc(n,a,s,l){var f=Ft();Ee.flags|=n,f.memoizedState=ro(1|a,{destroy:void 0},s,l===void 0?null:l)}function Mc(n,a,s,l){var f=dt();l=l===void 0?null:l;var h=f.memoizedState.inst;Ue!==null&&l!==null&&Jf(l,Ue.memoizedState.deps)?f.memoizedState=ro(a,h,s,l):(Ee.flags|=n,f.memoizedState=ro(1|a,h,s,l))}function Pb(n,a){Dc(8390656,8,n,a)}function ch(n,a){Mc(2048,8,n,a)}function Ok(n){Ee.flags|=4;var a=Ee.updateQueue;if(a===null)a=_c(),Ee.updateQueue=a,a.events=[n];else{var s=a.events;s===null?a.events=[n]:s.push(n)}}function Ab(n){var a=dt().memoizedState;return Ok({ref:a,nextImpl:n}),function(){if((De&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}function _b(n,a){return Mc(4,2,n,a)}function Vb(n,a){return Mc(4,4,n,a)}function zb(n,a){if(typeof a=="function"){n=n();var s=a(n);return function(){typeof s=="function"?s():a(null)}}if(a!=null)return n=n(),a.current=n,function(){a.current=null}}function Db(n,a,s){s=s!=null?s.concat([n]):null,Mc(4,4,zb.bind(null,a,n),s)}function uh(){}function Mb(n,a){var s=dt();a=a===void 0?null:a;var l=s.memoizedState;return a!==null&&Jf(a,l[1])?l[0]:(s.memoizedState=[n,a],n)}function Lb(n,a){var s=dt();a=a===void 0?null:a;var l=s.memoizedState;if(a!==null&&Jf(a,l[1]))return l[0];if(l=n(),na){nr(!0);try{n()}finally{nr(!1)}}return s.memoizedState=[l,a],l}function dh(n,a,s){return s===void 0||(Ii&1073741824)!==0&&(Ne&261930)===0?n.memoizedState=a:(n.memoizedState=s,n=By(),Ee.lanes|=n,mr|=n,s)}function Bb(n,a,s,l){return cn(s,a)?s:to.current!==null?(n=dh(n,s,l),cn(n,a)||(pt=!0),n):(Ii&42)===0||(Ii&1073741824)!==0&&(Ne&261930)===0?(pt=!0,n.memoizedState=s):(n=By(),Ee.lanes|=n,mr|=n,a)}function Hb(n,a,s,l,f){var h=ee.p;ee.p=h!==0&&8>h?h:8;var v=F.T,S={};F.T=S,gh(n,!1,a,s);try{var N=f(),B=F.S;if(B!==null&&B(S,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var q=Sk(N,l);Os(n,a,q,pn(n))}else Os(n,a,l,pn(n))}catch(X){Os(n,a,{then:function(){},status:"rejected",reason:X},pn())}finally{ee.p=h,v!==null&&S.types!==null&&(v.types=S.types),F.T=v}}function Rk(){}function fh(n,a,s,l){if(n.tag!==5)throw Error(r(476));var f=Fb(n).queue;Hb(n,f,a,se,s===null?Rk:function(){return $b(n),s(l)})}function Fb(n){var a=n.memoizedState;if(a!==null)return a;a={memoizedState:se,baseState:se,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pi,lastRenderedState:se},next:null};var s={};return a.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pi,lastRenderedState:s},next:null},n.memoizedState=a,n=n.alternate,n!==null&&(n.memoizedState=a),a}function $b(n){var a=Fb(n);a.next===null&&(a=n.alternate.memoizedState),Os(n,a.next.queue,{},pn())}function hh(){return _t(Us)}function Ub(){return dt().memoizedState}function jb(){return dt().memoizedState}function kk(n){for(var a=n.return;a!==null;){switch(a.tag){case 24:case 3:var s=pn();n=ur(s);var l=dr(a,n,s);l!==null&&(Jt(l,a,s),Ss(l,a,s)),a={cache:$f()},n.payload=a;return}a=a.return}}function Nk(n,a,s){var l=pn();s={lane:l,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Lc(n)?Wb(a,s):(s=Pf(n,a,s,l),s!==null&&(Jt(s,n,l),qb(s,a,l)))}function Gb(n,a,s){var l=pn();Os(n,a,s,l)}function Os(n,a,s,l){var f={lane:l,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(Lc(n))Wb(a,f);else{var h=n.alternate;if(n.lanes===0&&(h===null||h.lanes===0)&&(h=a.lastRenderedReducer,h!==null))try{var v=a.lastRenderedState,S=h(v,s);if(f.hasEagerState=!0,f.eagerState=S,cn(S,v))return bc(n,a,f,0),We===null&&vc(),!1}catch{}finally{}if(s=Pf(n,a,f,l),s!==null)return Jt(s,n,l),qb(s,a,l),!0}return!1}function gh(n,a,s,l){if(l={lane:2,revertLane:Wh(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Lc(n)){if(a)throw Error(r(479))}else a=Pf(n,s,l,2),a!==null&&Jt(a,n,2)}function Lc(n){var a=n.alternate;return n===Ee||a!==null&&a===Ee}function Wb(n,a){no=Pc=!0;var s=n.pending;s===null?a.next=a:(a.next=s.next,s.next=a),n.pending=a}function qb(n,a,s){if((s&4194048)!==0){var l=a.lanes;l&=n.pendingLanes,s|=l,a.lanes=s,Zm(n,s)}}var Rs={readContext:_t,use:Vc,useCallback:st,useContext:st,useEffect:st,useImperativeHandle:st,useLayoutEffect:st,useInsertionEffect:st,useMemo:st,useReducer:st,useRef:st,useState:st,useDebugValue:st,useDeferredValue:st,useTransition:st,useSyncExternalStore:st,useId:st,useHostTransitionStatus:st,useFormState:st,useActionState:st,useOptimistic:st,useMemoCache:st,useCacheRefresh:st};Rs.useEffectEvent=st;var Yb={readContext:_t,use:Vc,useCallback:function(n,a){return Ft().memoizedState=[n,a===void 0?null:a],n},useContext:_t,useEffect:Pb,useImperativeHandle:function(n,a,s){s=s!=null?s.concat([n]):null,Dc(4194308,4,zb.bind(null,a,n),s)},useLayoutEffect:function(n,a){return Dc(4194308,4,n,a)},useInsertionEffect:function(n,a){Dc(4,2,n,a)},useMemo:function(n,a){var s=Ft();a=a===void 0?null:a;var l=n();if(na){nr(!0);try{n()}finally{nr(!1)}}return s.memoizedState=[l,a],l},useReducer:function(n,a,s){var l=Ft();if(s!==void 0){var f=s(a);if(na){nr(!0);try{s(a)}finally{nr(!1)}}}else f=a;return l.memoizedState=l.baseState=f,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:f},l.queue=n,n=n.dispatch=Nk.bind(null,Ee,n),[l.memoizedState,n]},useRef:function(n){var a=Ft();return n={current:n},a.memoizedState=n},useState:function(n){n=sh(n);var a=n.queue,s=Gb.bind(null,Ee,a);return a.dispatch=s,[n.memoizedState,s]},useDebugValue:uh,useDeferredValue:function(n,a){var s=Ft();return dh(s,n,a)},useTransition:function(){var n=sh(!1);return n=Hb.bind(null,Ee,n.queue,!0,!1),Ft().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,a,s){var l=Ee,f=Ft();if(Pe){if(s===void 0)throw Error(r(407));s=s()}else{if(s=a(),We===null)throw Error(r(349));(Ne&127)!==0||pb(l,a,s)}f.memoizedState=s;var h={value:s,getSnapshot:a};return f.queue=h,Pb(vb.bind(null,l,h,n),[n]),l.flags|=2048,ro(9,{destroy:void 0},mb.bind(null,l,h,s,a),null),s},useId:function(){var n=Ft(),a=We.identifierPrefix;if(Pe){var s=ni,l=ti;s=(l&~(1<<32-ln(l)-1)).toString(32)+s,a="_"+a+"R_"+s,s=Ac++,0<s&&(a+="H"+s.toString(32)),a+="_"}else s=Ck++,a="_"+a+"r_"+s.toString(32)+"_";return n.memoizedState=a},useHostTransitionStatus:hh,useFormState:Ob,useActionState:Ob,useOptimistic:function(n){var a=Ft();a.memoizedState=a.baseState=n;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=s,a=gh.bind(null,Ee,!0,s),s.dispatch=a,[n,a]},useMemoCache:rh,useCacheRefresh:function(){return Ft().memoizedState=kk.bind(null,Ee)},useEffectEvent:function(n){var a=Ft(),s={impl:n};return a.memoizedState=s,function(){if((De&2)!==0)throw Error(r(440));return s.impl.apply(void 0,arguments)}}},ph={readContext:_t,use:Vc,useCallback:Mb,useContext:_t,useEffect:ch,useImperativeHandle:Db,useInsertionEffect:_b,useLayoutEffect:Vb,useMemo:Lb,useReducer:zc,useRef:Ib,useState:function(){return zc(Pi)},useDebugValue:uh,useDeferredValue:function(n,a){var s=dt();return Bb(s,Ue.memoizedState,n,a)},useTransition:function(){var n=zc(Pi)[0],a=dt().memoizedState;return[typeof n=="boolean"?n:ws(n),a]},useSyncExternalStore:gb,useId:Ub,useHostTransitionStatus:hh,useFormState:Rb,useActionState:Rb,useOptimistic:function(n,a){var s=dt();return xb(s,Ue,n,a)},useMemoCache:rh,useCacheRefresh:jb};ph.useEffectEvent=Ab;var Kb={readContext:_t,use:Vc,useCallback:Mb,useContext:_t,useEffect:ch,useImperativeHandle:Db,useInsertionEffect:_b,useLayoutEffect:Vb,useMemo:Lb,useReducer:oh,useRef:Ib,useState:function(){return oh(Pi)},useDebugValue:uh,useDeferredValue:function(n,a){var s=dt();return Ue===null?dh(s,n,a):Bb(s,Ue.memoizedState,n,a)},useTransition:function(){var n=oh(Pi)[0],a=dt().memoizedState;return[typeof n=="boolean"?n:ws(n),a]},useSyncExternalStore:gb,useId:Ub,useHostTransitionStatus:hh,useFormState:Nb,useActionState:Nb,useOptimistic:function(n,a){var s=dt();return Ue!==null?xb(s,Ue,n,a):(s.baseState=n,[n,s.queue.dispatch])},useMemoCache:rh,useCacheRefresh:jb};Kb.useEffectEvent=Ab;function mh(n,a,s,l){a=n.memoizedState,s=s(l,a),s=s==null?a:b({},a,s),n.memoizedState=s,n.lanes===0&&(n.updateQueue.baseState=s)}var vh={enqueueSetState:function(n,a,s){n=n._reactInternals;var l=pn(),f=ur(l);f.payload=a,s!=null&&(f.callback=s),a=dr(n,f,l),a!==null&&(Jt(a,n,l),Ss(a,n,l))},enqueueReplaceState:function(n,a,s){n=n._reactInternals;var l=pn(),f=ur(l);f.tag=1,f.payload=a,s!=null&&(f.callback=s),a=dr(n,f,l),a!==null&&(Jt(a,n,l),Ss(a,n,l))},enqueueForceUpdate:function(n,a){n=n._reactInternals;var s=pn(),l=ur(s);l.tag=2,a!=null&&(l.callback=a),a=dr(n,l,s),a!==null&&(Jt(a,n,s),Ss(a,n,s))}};function Xb(n,a,s,l,f,h,v){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(l,h,v):a.prototype&&a.prototype.isPureReactComponent?!hs(s,l)||!hs(f,h):!0}function Qb(n,a,s,l){n=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(s,l),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(s,l),a.state!==n&&vh.enqueueReplaceState(a,a.state,null)}function ia(n,a){var s=a;if("ref"in a){s={};for(var l in a)l!=="ref"&&(s[l]=a[l])}if(n=n.defaultProps){s===a&&(s=b({},s));for(var f in n)s[f]===void 0&&(s[f]=n[f])}return s}function Zb(n){mc(n)}function Jb(n){console.error(n)}function ey(n){mc(n)}function Bc(n,a){try{var s=n.onUncaughtError;s(a.value,{componentStack:a.stack})}catch(l){setTimeout(function(){throw l})}}function ty(n,a,s){try{var l=n.onCaughtError;l(s.value,{componentStack:s.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function bh(n,a,s){return s=ur(s),s.tag=3,s.payload={element:null},s.callback=function(){Bc(n,a)},s}function ny(n){return n=ur(n),n.tag=3,n}function iy(n,a,s,l){var f=s.type.getDerivedStateFromError;if(typeof f=="function"){var h=l.value;n.payload=function(){return f(h)},n.callback=function(){ty(a,s,l)}}var v=s.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(n.callback=function(){ty(a,s,l),typeof f!="function"&&(vr===null?vr=new Set([this]):vr.add(this));var S=l.stack;this.componentDidCatch(l.value,{componentStack:S!==null?S:""})})}function Ik(n,a,s,l,f){if(s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(a=s.alternate,a!==null&&Xa(a,s,f,!0),s=dn.current,s!==null){switch(s.tag){case 31:case 13:return An===null?Qc():s.alternate===null&&lt===0&&(lt=3),s.flags&=-257,s.flags|=65536,s.lanes=f,l===Oc?s.flags|=16384:(a=s.updateQueue,a===null?s.updateQueue=new Set([l]):a.add(l),Uh(n,l,f)),!1;case 22:return s.flags|=65536,l===Oc?s.flags|=16384:(a=s.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([l])},s.updateQueue=a):(s=a.retryQueue,s===null?a.retryQueue=new Set([l]):s.add(l)),Uh(n,l,f)),!1}throw Error(r(435,s.tag))}return Uh(n,l,f),Qc(),!1}if(Pe)return a=dn.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=f,l!==Mf&&(n=Error(r(422),{cause:l}),ms(kn(n,s)))):(l!==Mf&&(a=Error(r(423),{cause:l}),ms(kn(a,s))),n=n.current.alternate,n.flags|=65536,f&=-f,n.lanes|=f,l=kn(l,s),f=bh(n.stateNode,l,f),Yf(n,f),lt!==4&&(lt=2)),!1;var h=Error(r(520),{cause:l});if(h=kn(h,s),zs===null?zs=[h]:zs.push(h),lt!==4&&(lt=2),a===null)return!0;l=kn(l,s),s=a;do{switch(s.tag){case 3:return s.flags|=65536,n=f&-f,s.lanes|=n,n=bh(s.stateNode,l,n),Yf(s,n),!1;case 1:if(a=s.type,h=s.stateNode,(s.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(vr===null||!vr.has(h))))return s.flags|=65536,f&=-f,s.lanes|=f,f=ny(f),iy(f,n,s,l),Yf(s,f),!1}s=s.return}while(s!==null);return!1}var yh=Error(r(461)),pt=!1;function Vt(n,a,s,l){a.child=n===null?sb(a,null,s,l):ta(a,n.child,s,l)}function ry(n,a,s,l,f){s=s.render;var h=a.ref;if("ref"in l){var v={};for(var S in l)S!=="ref"&&(v[S]=l[S])}else v=l;return Qr(a),l=eh(n,a,s,v,h,f),S=th(),n!==null&&!pt?(nh(n,a,f),Ai(n,a,f)):(Pe&&S&&zf(a),a.flags|=1,Vt(n,a,l,f),a.child)}function ay(n,a,s,l,f){if(n===null){var h=s.type;return typeof h=="function"&&!Af(h)&&h.defaultProps===void 0&&s.compare===null?(a.tag=15,a.type=h,oy(n,a,h,l,f)):(n=xc(s.type,null,l,a,a.mode,f),n.ref=a.ref,n.return=a,a.child=n)}if(h=n.child,!Rh(n,f)){var v=h.memoizedProps;if(s=s.compare,s=s!==null?s:hs,s(v,l)&&n.ref===a.ref)return Ai(n,a,f)}return a.flags|=1,n=Oi(h,l),n.ref=a.ref,n.return=a,a.child=n}function oy(n,a,s,l,f){if(n!==null){var h=n.memoizedProps;if(hs(h,l)&&n.ref===a.ref)if(pt=!1,a.pendingProps=l=h,Rh(n,f))(n.flags&131072)!==0&&(pt=!0);else return a.lanes=n.lanes,Ai(n,a,f)}return xh(n,a,s,l,f)}function sy(n,a,s,l){var f=l.children,h=n!==null?n.memoizedState:null;if(n===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((a.flags&128)!==0){if(h=h!==null?h.baseLanes|s:s,n!==null){for(l=a.child=n.child,f=0;l!==null;)f=f|l.lanes|l.childLanes,l=l.sibling;l=f&~h}else l=0,a.child=null;return ly(n,a,h,s,l)}if((s&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},n!==null&&Tc(a,h!==null?h.cachePool:null),h!==null?ub(a,h):Xf(),db(a);else return l=a.lanes=536870912,ly(n,a,h!==null?h.baseLanes|s:s,s,l)}else h!==null?(Tc(a,h.cachePool),ub(a,h),hr(),a.memoizedState=null):(n!==null&&Tc(a,null),Xf(),hr());return Vt(n,a,f,s),a.child}function ks(n,a){return n!==null&&n.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function ly(n,a,s,l,f){var h=jf();return h=h===null?null:{parent:ht._currentValue,pool:h},a.memoizedState={baseLanes:s,cachePool:h},n!==null&&Tc(a,null),Xf(),db(a),n!==null&&Xa(n,a,l,!0),a.childLanes=f,null}function Hc(n,a){return a=$c({mode:a.mode,children:a.children},n.mode),a.ref=n.ref,n.child=a,a.return=n,a}function cy(n,a,s){return ta(a,n.child,null,s),n=Hc(a,a.pendingProps),n.flags|=2,fn(a),a.memoizedState=null,n}function Pk(n,a,s){var l=a.pendingProps,f=(a.flags&128)!==0;if(a.flags&=-129,n===null){if(Pe){if(l.mode==="hidden")return n=Hc(a,l),a.lanes=536870912,ks(null,n);if(Zf(a),(n=Ze)?(n=S0(n,Pn),n=n!==null&&n.data==="&"?n:null,n!==null&&(a.memoizedState={dehydrated:n,treeContext:ar!==null?{id:ti,overflow:ni}:null,retryLane:536870912,hydrationErrors:null},s=Wv(n),s.return=a,a.child=s,At=a,Ze=null)):n=null,n===null)throw sr(a);return a.lanes=536870912,null}return Hc(a,l)}var h=n.memoizedState;if(h!==null){var v=h.dehydrated;if(Zf(a),f)if(a.flags&256)a.flags&=-257,a=cy(n,a,s);else if(a.memoizedState!==null)a.child=n.child,a.flags|=128,a=null;else throw Error(r(558));else if(pt||Xa(n,a,s,!1),f=(s&n.childLanes)!==0,pt||f){if(l=We,l!==null&&(v=Jm(l,s),v!==0&&v!==h.retryLane))throw h.retryLane=v,qr(n,v),Jt(l,n,v),yh;Qc(),a=cy(n,a,s)}else n=h.treeContext,Ze=_n(v.nextSibling),At=a,Pe=!0,or=null,Pn=!1,n!==null&&Kv(a,n),a=Hc(a,l),a.flags|=4096;return a}return n=Oi(n.child,{mode:l.mode,children:l.children}),n.ref=a.ref,a.child=n,n.return=a,n}function Fc(n,a){var s=a.ref;if(s===null)n!==null&&n.ref!==null&&(a.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(r(284));(n===null||n.ref!==s)&&(a.flags|=4194816)}}function xh(n,a,s,l,f){return Qr(a),s=eh(n,a,s,l,void 0,f),l=th(),n!==null&&!pt?(nh(n,a,f),Ai(n,a,f)):(Pe&&l&&zf(a),a.flags|=1,Vt(n,a,s,f),a.child)}function uy(n,a,s,l,f,h){return Qr(a),a.updateQueue=null,s=hb(a,l,s,f),fb(n),l=th(),n!==null&&!pt?(nh(n,a,h),Ai(n,a,h)):(Pe&&l&&zf(a),a.flags|=1,Vt(n,a,s,h),a.child)}function dy(n,a,s,l,f){if(Qr(a),a.stateNode===null){var h=Wa,v=s.contextType;typeof v=="object"&&v!==null&&(h=_t(v)),h=new s(l,h),a.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=vh,a.stateNode=h,h._reactInternals=a,h=a.stateNode,h.props=l,h.state=a.memoizedState,h.refs={},Wf(a),v=s.contextType,h.context=typeof v=="object"&&v!==null?_t(v):Wa,h.state=a.memoizedState,v=s.getDerivedStateFromProps,typeof v=="function"&&(mh(a,s,v,l),h.state=a.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(v=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),v!==h.state&&vh.enqueueReplaceState(h,h.state,null),Es(a,l,h,f),Cs(),h.state=a.memoizedState),typeof h.componentDidMount=="function"&&(a.flags|=4194308),l=!0}else if(n===null){h=a.stateNode;var S=a.memoizedProps,N=ia(s,S);h.props=N;var B=h.context,q=s.contextType;v=Wa,typeof q=="object"&&q!==null&&(v=_t(q));var X=s.getDerivedStateFromProps;q=typeof X=="function"||typeof h.getSnapshotBeforeUpdate=="function",S=a.pendingProps!==S,q||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(S||B!==v)&&Qb(a,h,l,v),cr=!1;var $=a.memoizedState;h.state=$,Es(a,l,h,f),Cs(),B=a.memoizedState,S||$!==B||cr?(typeof X=="function"&&(mh(a,s,X,l),B=a.memoizedState),(N=cr||Xb(a,s,N,l,$,B,v))?(q||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(a.flags|=4194308)):(typeof h.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=l,a.memoizedState=B),h.props=l,h.state=B,h.context=v,l=N):(typeof h.componentDidMount=="function"&&(a.flags|=4194308),l=!1)}else{h=a.stateNode,qf(n,a),v=a.memoizedProps,q=ia(s,v),h.props=q,X=a.pendingProps,$=h.context,B=s.contextType,N=Wa,typeof B=="object"&&B!==null&&(N=_t(B)),S=s.getDerivedStateFromProps,(B=typeof S=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(v!==X||$!==N)&&Qb(a,h,l,N),cr=!1,$=a.memoizedState,h.state=$,Es(a,l,h,f),Cs();var j=a.memoizedState;v!==X||$!==j||cr||n!==null&&n.dependencies!==null&&Cc(n.dependencies)?(typeof S=="function"&&(mh(a,s,S,l),j=a.memoizedState),(q=cr||Xb(a,s,q,l,$,j,N)||n!==null&&n.dependencies!==null&&Cc(n.dependencies))?(B||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(l,j,N),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(l,j,N)),typeof h.componentDidUpdate=="function"&&(a.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof h.componentDidUpdate!="function"||v===n.memoizedProps&&$===n.memoizedState||(a.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||v===n.memoizedProps&&$===n.memoizedState||(a.flags|=1024),a.memoizedProps=l,a.memoizedState=j),h.props=l,h.state=j,h.context=N,l=q):(typeof h.componentDidUpdate!="function"||v===n.memoizedProps&&$===n.memoizedState||(a.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||v===n.memoizedProps&&$===n.memoizedState||(a.flags|=1024),l=!1)}return h=l,Fc(n,a),l=(a.flags&128)!==0,h||l?(h=a.stateNode,s=l&&typeof s.getDerivedStateFromError!="function"?null:h.render(),a.flags|=1,n!==null&&l?(a.child=ta(a,n.child,null,f),a.child=ta(a,null,s,f)):Vt(n,a,s,f),a.memoizedState=h.state,n=a.child):n=Ai(n,a,f),n}function fy(n,a,s,l){return Kr(),a.flags|=256,Vt(n,a,s,l),a.child}var Sh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ch(n){return{baseLanes:n,cachePool:tb()}}function Eh(n,a,s){return n=n!==null?n.childLanes&~s:0,a&&(n|=gn),n}function hy(n,a,s){var l=a.pendingProps,f=!1,h=(a.flags&128)!==0,v;if((v=h)||(v=n!==null&&n.memoizedState===null?!1:(ut.current&2)!==0),v&&(f=!0,a.flags&=-129),v=(a.flags&32)!==0,a.flags&=-33,n===null){if(Pe){if(f?fr(a):hr(),(n=Ze)?(n=S0(n,Pn),n=n!==null&&n.data!=="&"?n:null,n!==null&&(a.memoizedState={dehydrated:n,treeContext:ar!==null?{id:ti,overflow:ni}:null,retryLane:536870912,hydrationErrors:null},s=Wv(n),s.return=a,a.child=s,At=a,Ze=null)):n=null,n===null)throw sr(a);return ag(n)?a.lanes=32:a.lanes=536870912,null}var S=l.children;return l=l.fallback,f?(hr(),f=a.mode,S=$c({mode:"hidden",children:S},f),l=Yr(l,f,s,null),S.return=a,l.return=a,S.sibling=l,a.child=S,l=a.child,l.memoizedState=Ch(s),l.childLanes=Eh(n,v,s),a.memoizedState=Sh,ks(null,l)):(fr(a),Th(a,S))}var N=n.memoizedState;if(N!==null&&(S=N.dehydrated,S!==null)){if(h)a.flags&256?(fr(a),a.flags&=-257,a=wh(n,a,s)):a.memoizedState!==null?(hr(),a.child=n.child,a.flags|=128,a=null):(hr(),S=l.fallback,f=a.mode,l=$c({mode:"visible",children:l.children},f),S=Yr(S,f,s,null),S.flags|=2,l.return=a,S.return=a,l.sibling=S,a.child=l,ta(a,n.child,null,s),l=a.child,l.memoizedState=Ch(s),l.childLanes=Eh(n,v,s),a.memoizedState=Sh,a=ks(null,l));else if(fr(a),ag(S)){if(v=S.nextSibling&&S.nextSibling.dataset,v)var B=v.dgst;v=B,l=Error(r(419)),l.stack="",l.digest=v,ms({value:l,source:null,stack:null}),a=wh(n,a,s)}else if(pt||Xa(n,a,s,!1),v=(s&n.childLanes)!==0,pt||v){if(v=We,v!==null&&(l=Jm(v,s),l!==0&&l!==N.retryLane))throw N.retryLane=l,qr(n,l),Jt(v,n,l),yh;rg(S)||Qc(),a=wh(n,a,s)}else rg(S)?(a.flags|=192,a.child=n.child,a=null):(n=N.treeContext,Ze=_n(S.nextSibling),At=a,Pe=!0,or=null,Pn=!1,n!==null&&Kv(a,n),a=Th(a,l.children),a.flags|=4096);return a}return f?(hr(),S=l.fallback,f=a.mode,N=n.child,B=N.sibling,l=Oi(N,{mode:"hidden",children:l.children}),l.subtreeFlags=N.subtreeFlags&65011712,B!==null?S=Oi(B,S):(S=Yr(S,f,s,null),S.flags|=2),S.return=a,l.return=a,l.sibling=S,a.child=l,ks(null,l),l=a.child,S=n.child.memoizedState,S===null?S=Ch(s):(f=S.cachePool,f!==null?(N=ht._currentValue,f=f.parent!==N?{parent:N,pool:N}:f):f=tb(),S={baseLanes:S.baseLanes|s,cachePool:f}),l.memoizedState=S,l.childLanes=Eh(n,v,s),a.memoizedState=Sh,ks(n.child,l)):(fr(a),s=n.child,n=s.sibling,s=Oi(s,{mode:"visible",children:l.children}),s.return=a,s.sibling=null,n!==null&&(v=a.deletions,v===null?(a.deletions=[n],a.flags|=16):v.push(n)),a.child=s,a.memoizedState=null,s)}function Th(n,a){return a=$c({mode:"visible",children:a},n.mode),a.return=n,n.child=a}function $c(n,a){return n=un(22,n,null,a),n.lanes=0,n}function wh(n,a,s){return ta(a,n.child,null,s),n=Th(a,a.pendingProps.children),n.flags|=2,a.memoizedState=null,n}function gy(n,a,s){n.lanes|=a;var l=n.alternate;l!==null&&(l.lanes|=a),Hf(n.return,a,s)}function Oh(n,a,s,l,f,h){var v=n.memoizedState;v===null?n.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:l,tail:s,tailMode:f,treeForkCount:h}:(v.isBackwards=a,v.rendering=null,v.renderingStartTime=0,v.last=l,v.tail=s,v.tailMode=f,v.treeForkCount=h)}function py(n,a,s){var l=a.pendingProps,f=l.revealOrder,h=l.tail;l=l.children;var v=ut.current,S=(v&2)!==0;if(S?(v=v&1|2,a.flags|=128):v&=1,ie(ut,v),Vt(n,a,l,s),l=Pe?ps:0,!S&&n!==null&&(n.flags&128)!==0)e:for(n=a.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&gy(n,s,a);else if(n.tag===19)gy(n,s,a);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===a)break e;for(;n.sibling===null;){if(n.return===null||n.return===a)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(f){case"forwards":for(s=a.child,f=null;s!==null;)n=s.alternate,n!==null&&Ic(n)===null&&(f=s),s=s.sibling;s=f,s===null?(f=a.child,a.child=null):(f=s.sibling,s.sibling=null),Oh(a,!1,f,s,h,l);break;case"backwards":case"unstable_legacy-backwards":for(s=null,f=a.child,a.child=null;f!==null;){if(n=f.alternate,n!==null&&Ic(n)===null){a.child=f;break}n=f.sibling,f.sibling=s,s=f,f=n}Oh(a,!0,s,null,h,l);break;case"together":Oh(a,!1,null,null,void 0,l);break;default:a.memoizedState=null}return a.child}function Ai(n,a,s){if(n!==null&&(a.dependencies=n.dependencies),mr|=a.lanes,(s&a.childLanes)===0)if(n!==null){if(Xa(n,a,s,!1),(s&a.childLanes)===0)return null}else return null;if(n!==null&&a.child!==n.child)throw Error(r(153));if(a.child!==null){for(n=a.child,s=Oi(n,n.pendingProps),a.child=s,s.return=a;n.sibling!==null;)n=n.sibling,s=s.sibling=Oi(n,n.pendingProps),s.return=a;s.sibling=null}return a.child}function Rh(n,a){return(n.lanes&a)!==0?!0:(n=n.dependencies,!!(n!==null&&Cc(n)))}function Ak(n,a,s){switch(a.tag){case 3:te(a,a.stateNode.containerInfo),lr(a,ht,n.memoizedState.cache),Kr();break;case 27:case 5:we(a);break;case 4:te(a,a.stateNode.containerInfo);break;case 10:lr(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,Zf(a),null;break;case 13:var l=a.memoizedState;if(l!==null)return l.dehydrated!==null?(fr(a),a.flags|=128,null):(s&a.child.childLanes)!==0?hy(n,a,s):(fr(a),n=Ai(n,a,s),n!==null?n.sibling:null);fr(a);break;case 19:var f=(n.flags&128)!==0;if(l=(s&a.childLanes)!==0,l||(Xa(n,a,s,!1),l=(s&a.childLanes)!==0),f){if(l)return py(n,a,s);a.flags|=128}if(f=a.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),ie(ut,ut.current),l)break;return null;case 22:return a.lanes=0,sy(n,a,s,a.pendingProps);case 24:lr(a,ht,n.memoizedState.cache)}return Ai(n,a,s)}function my(n,a,s){if(n!==null)if(n.memoizedProps!==a.pendingProps)pt=!0;else{if(!Rh(n,s)&&(a.flags&128)===0)return pt=!1,Ak(n,a,s);pt=(n.flags&131072)!==0}else pt=!1,Pe&&(a.flags&1048576)!==0&&Yv(a,ps,a.index);switch(a.lanes=0,a.tag){case 16:e:{var l=a.pendingProps;if(n=Jr(a.elementType),a.type=n,typeof n=="function")Af(n)?(l=ia(n,l),a.tag=1,a=dy(null,a,n,l,s)):(a.tag=0,a=xh(null,a,n,l,s));else{if(n!=null){var f=n.$$typeof;if(f===O){a.tag=11,a=ry(null,a,n,l,s);break e}else if(f===H){a.tag=14,a=ay(null,a,n,l,s);break e}}throw a=he(n)||n,Error(r(306,a,""))}}return a;case 0:return xh(n,a,a.type,a.pendingProps,s);case 1:return l=a.type,f=ia(l,a.pendingProps),dy(n,a,l,f,s);case 3:e:{if(te(a,a.stateNode.containerInfo),n===null)throw Error(r(387));l=a.pendingProps;var h=a.memoizedState;f=h.element,qf(n,a),Es(a,l,null,s);var v=a.memoizedState;if(l=v.cache,lr(a,ht,l),l!==h.cache&&Ff(a,[ht],s,!0),Cs(),l=v.element,h.isDehydrated)if(h={element:l,isDehydrated:!1,cache:v.cache},a.updateQueue.baseState=h,a.memoizedState=h,a.flags&256){a=fy(n,a,l,s);break e}else if(l!==f){f=kn(Error(r(424)),a),ms(f),a=fy(n,a,l,s);break e}else{switch(n=a.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(Ze=_n(n.firstChild),At=a,Pe=!0,or=null,Pn=!0,s=sb(a,null,l,s),a.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if(Kr(),l===f){a=Ai(n,a,s);break e}Vt(n,a,l,s)}a=a.child}return a;case 26:return Fc(n,a),n===null?(s=R0(a.type,null,a.pendingProps,null))?a.memoizedState=s:Pe||(s=a.type,n=a.pendingProps,l=ru(Te.current).createElement(s),l[Pt]=a,l[qt]=n,zt(l,s,n),wt(l),a.stateNode=l):a.memoizedState=R0(a.type,n.memoizedProps,a.pendingProps,n.memoizedState),null;case 27:return we(a),n===null&&Pe&&(l=a.stateNode=T0(a.type,a.pendingProps,Te.current),At=a,Pn=!0,f=Ze,Sr(a.type)?(og=f,Ze=_n(l.firstChild)):Ze=f),Vt(n,a,a.pendingProps.children,s),Fc(n,a),n===null&&(a.flags|=4194304),a.child;case 5:return n===null&&Pe&&((f=l=Ze)&&(l=lN(l,a.type,a.pendingProps,Pn),l!==null?(a.stateNode=l,At=a,Ze=_n(l.firstChild),Pn=!1,f=!0):f=!1),f||sr(a)),we(a),f=a.type,h=a.pendingProps,v=n!==null?n.memoizedProps:null,l=h.children,tg(f,h)?l=null:v!==null&&tg(f,v)&&(a.flags|=32),a.memoizedState!==null&&(f=eh(n,a,Ek,null,null,s),Us._currentValue=f),Fc(n,a),Vt(n,a,l,s),a.child;case 6:return n===null&&Pe&&((n=s=Ze)&&(s=cN(s,a.pendingProps,Pn),s!==null?(a.stateNode=s,At=a,Ze=null,n=!0):n=!1),n||sr(a)),null;case 13:return hy(n,a,s);case 4:return te(a,a.stateNode.containerInfo),l=a.pendingProps,n===null?a.child=ta(a,null,l,s):Vt(n,a,l,s),a.child;case 11:return ry(n,a,a.type,a.pendingProps,s);case 7:return Vt(n,a,a.pendingProps,s),a.child;case 8:return Vt(n,a,a.pendingProps.children,s),a.child;case 12:return Vt(n,a,a.pendingProps.children,s),a.child;case 10:return l=a.pendingProps,lr(a,a.type,l.value),Vt(n,a,l.children,s),a.child;case 9:return f=a.type._context,l=a.pendingProps.children,Qr(a),f=_t(f),l=l(f),a.flags|=1,Vt(n,a,l,s),a.child;case 14:return ay(n,a,a.type,a.pendingProps,s);case 15:return oy(n,a,a.type,a.pendingProps,s);case 19:return py(n,a,s);case 31:return Pk(n,a,s);case 22:return sy(n,a,s,a.pendingProps);case 24:return Qr(a),l=_t(ht),n===null?(f=jf(),f===null&&(f=We,h=$f(),f.pooledCache=h,h.refCount++,h!==null&&(f.pooledCacheLanes|=s),f=h),a.memoizedState={parent:l,cache:f},Wf(a),lr(a,ht,f)):((n.lanes&s)!==0&&(qf(n,a),Es(a,null,null,s),Cs()),f=n.memoizedState,h=a.memoizedState,f.parent!==l?(f={parent:l,cache:l},a.memoizedState=f,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=f),lr(a,ht,l)):(l=h.cache,lr(a,ht,l),l!==f.cache&&Ff(a,[ht],s,!0))),Vt(n,a,a.pendingProps.children,s),a.child;case 29:throw a.pendingProps}throw Error(r(156,a.tag))}function _i(n){n.flags|=4}function kh(n,a,s,l,f){if((a=(n.mode&32)!==0)&&(a=!1),a){if(n.flags|=16777216,(f&335544128)===f)if(n.stateNode.complete)n.flags|=8192;else if(Uy())n.flags|=8192;else throw ea=Oc,Gf}else n.flags&=-16777217}function vy(n,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!A0(a))if(Uy())n.flags|=8192;else throw ea=Oc,Gf}function Uc(n,a){a!==null&&(n.flags|=4),n.flags&16384&&(a=n.tag!==22?Xm():536870912,n.lanes|=a,lo|=a)}function Ns(n,a){if(!Pe)switch(n.tailMode){case"hidden":a=n.tail;for(var s=null;a!==null;)a.alternate!==null&&(s=a),a=a.sibling;s===null?n.tail=null:s.sibling=null;break;case"collapsed":s=n.tail;for(var l=null;s!==null;)s.alternate!==null&&(l=s),s=s.sibling;l===null?a||n.tail===null?n.tail=null:n.tail.sibling=null:l.sibling=null}}function Je(n){var a=n.alternate!==null&&n.alternate.child===n.child,s=0,l=0;if(a)for(var f=n.child;f!==null;)s|=f.lanes|f.childLanes,l|=f.subtreeFlags&65011712,l|=f.flags&65011712,f.return=n,f=f.sibling;else for(f=n.child;f!==null;)s|=f.lanes|f.childLanes,l|=f.subtreeFlags,l|=f.flags,f.return=n,f=f.sibling;return n.subtreeFlags|=l,n.childLanes=s,a}function _k(n,a,s){var l=a.pendingProps;switch(Df(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Je(a),null;case 1:return Je(a),null;case 3:return s=a.stateNode,l=null,n!==null&&(l=n.memoizedState.cache),a.memoizedState.cache!==l&&(a.flags|=2048),Ni(ht),J(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(n===null||n.child===null)&&(Ka(a)?_i(a):n===null||n.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Lf())),Je(a),null;case 26:var f=a.type,h=a.memoizedState;return n===null?(_i(a),h!==null?(Je(a),vy(a,h)):(Je(a),kh(a,f,null,l,s))):h?h!==n.memoizedState?(_i(a),Je(a),vy(a,h)):(Je(a),a.flags&=-16777217):(n=n.memoizedProps,n!==l&&_i(a),Je(a),kh(a,f,n,l,s)),null;case 27:if(Ae(a),s=Te.current,f=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==l&&_i(a);else{if(!l){if(a.stateNode===null)throw Error(r(166));return Je(a),null}n=oe.current,Ka(a)?Xv(a):(n=T0(f,l,s),a.stateNode=n,_i(a))}return Je(a),null;case 5:if(Ae(a),f=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==l&&_i(a);else{if(!l){if(a.stateNode===null)throw Error(r(166));return Je(a),null}if(h=oe.current,Ka(a))Xv(a);else{var v=ru(Te.current);switch(h){case 1:h=v.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:h=v.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":h=v.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":h=v.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":h=v.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof l.is=="string"?v.createElement("select",{is:l.is}):v.createElement("select"),l.multiple?h.multiple=!0:l.size&&(h.size=l.size);break;default:h=typeof l.is=="string"?v.createElement(f,{is:l.is}):v.createElement(f)}}h[Pt]=a,h[qt]=l;e:for(v=a.child;v!==null;){if(v.tag===5||v.tag===6)h.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===a)break e;for(;v.sibling===null;){if(v.return===null||v.return===a)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}a.stateNode=h;e:switch(zt(h,f,l),f){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&_i(a)}}return Je(a),kh(a,a.type,n===null?null:n.memoizedProps,a.pendingProps,s),null;case 6:if(n&&a.stateNode!=null)n.memoizedProps!==l&&_i(a);else{if(typeof l!="string"&&a.stateNode===null)throw Error(r(166));if(n=Te.current,Ka(a)){if(n=a.stateNode,s=a.memoizedProps,l=null,f=At,f!==null)switch(f.tag){case 27:case 5:l=f.memoizedProps}n[Pt]=a,n=!!(n.nodeValue===s||l!==null&&l.suppressHydrationWarning===!0||h0(n.nodeValue,s)),n||sr(a,!0)}else n=ru(n).createTextNode(l),n[Pt]=a,a.stateNode=n}return Je(a),null;case 31:if(s=a.memoizedState,n===null||n.memoizedState!==null){if(l=Ka(a),s!==null){if(n===null){if(!l)throw Error(r(318));if(n=a.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(557));n[Pt]=a}else Kr(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Je(a),n=!1}else s=Lf(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=s),n=!0;if(!n)return a.flags&256?(fn(a),a):(fn(a),null);if((a.flags&128)!==0)throw Error(r(558))}return Je(a),null;case 13:if(l=a.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(f=Ka(a),l!==null&&l.dehydrated!==null){if(n===null){if(!f)throw Error(r(318));if(f=a.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(r(317));f[Pt]=a}else Kr(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Je(a),f=!1}else f=Lf(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=f),f=!0;if(!f)return a.flags&256?(fn(a),a):(fn(a),null)}return fn(a),(a.flags&128)!==0?(a.lanes=s,a):(s=l!==null,n=n!==null&&n.memoizedState!==null,s&&(l=a.child,f=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(f=l.alternate.memoizedState.cachePool.pool),h=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(h=l.memoizedState.cachePool.pool),h!==f&&(l.flags|=2048)),s!==n&&s&&(a.child.flags|=8192),Uc(a,a.updateQueue),Je(a),null);case 4:return J(),n===null&&Xh(a.stateNode.containerInfo),Je(a),null;case 10:return Ni(a.type),Je(a),null;case 19:if(Y(ut),l=a.memoizedState,l===null)return Je(a),null;if(f=(a.flags&128)!==0,h=l.rendering,h===null)if(f)Ns(l,!1);else{if(lt!==0||n!==null&&(n.flags&128)!==0)for(n=a.child;n!==null;){if(h=Ic(n),h!==null){for(a.flags|=128,Ns(l,!1),n=h.updateQueue,a.updateQueue=n,Uc(a,n),a.subtreeFlags=0,n=s,s=a.child;s!==null;)Gv(s,n),s=s.sibling;return ie(ut,ut.current&1|2),Pe&&Ri(a,l.treeForkCount),a.child}n=n.sibling}l.tail!==null&&on()>Yc&&(a.flags|=128,f=!0,Ns(l,!1),a.lanes=4194304)}else{if(!f)if(n=Ic(h),n!==null){if(a.flags|=128,f=!0,n=n.updateQueue,a.updateQueue=n,Uc(a,n),Ns(l,!0),l.tail===null&&l.tailMode==="hidden"&&!h.alternate&&!Pe)return Je(a),null}else 2*on()-l.renderingStartTime>Yc&&s!==536870912&&(a.flags|=128,f=!0,Ns(l,!1),a.lanes=4194304);l.isBackwards?(h.sibling=a.child,a.child=h):(n=l.last,n!==null?n.sibling=h:a.child=h,l.last=h)}return l.tail!==null?(n=l.tail,l.rendering=n,l.tail=n.sibling,l.renderingStartTime=on(),n.sibling=null,s=ut.current,ie(ut,f?s&1|2:s&1),Pe&&Ri(a,l.treeForkCount),n):(Je(a),null);case 22:case 23:return fn(a),Qf(),l=a.memoizedState!==null,n!==null?n.memoizedState!==null!==l&&(a.flags|=8192):l&&(a.flags|=8192),l?(s&536870912)!==0&&(a.flags&128)===0&&(Je(a),a.subtreeFlags&6&&(a.flags|=8192)):Je(a),s=a.updateQueue,s!==null&&Uc(a,s.retryQueue),s=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),l=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(l=a.memoizedState.cachePool.pool),l!==s&&(a.flags|=2048),n!==null&&Y(Zr),null;case 24:return s=null,n!==null&&(s=n.memoizedState.cache),a.memoizedState.cache!==s&&(a.flags|=2048),Ni(ht),Je(a),null;case 25:return null;case 30:return null}throw Error(r(156,a.tag))}function Vk(n,a){switch(Df(a),a.tag){case 1:return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 3:return Ni(ht),J(),n=a.flags,(n&65536)!==0&&(n&128)===0?(a.flags=n&-65537|128,a):null;case 26:case 27:case 5:return Ae(a),null;case 31:if(a.memoizedState!==null){if(fn(a),a.alternate===null)throw Error(r(340));Kr()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 13:if(fn(a),n=a.memoizedState,n!==null&&n.dehydrated!==null){if(a.alternate===null)throw Error(r(340));Kr()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 19:return Y(ut),null;case 4:return J(),null;case 10:return Ni(a.type),null;case 22:case 23:return fn(a),Qf(),n!==null&&Y(Zr),n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 24:return Ni(ht),null;case 25:return null;default:return null}}function by(n,a){switch(Df(a),a.tag){case 3:Ni(ht),J();break;case 26:case 27:case 5:Ae(a);break;case 4:J();break;case 31:a.memoizedState!==null&&fn(a);break;case 13:fn(a);break;case 19:Y(ut);break;case 10:Ni(a.type);break;case 22:case 23:fn(a),Qf(),n!==null&&Y(Zr);break;case 24:Ni(ht)}}function Is(n,a){try{var s=a.updateQueue,l=s!==null?s.lastEffect:null;if(l!==null){var f=l.next;s=f;do{if((s.tag&n)===n){l=void 0;var h=s.create,v=s.inst;l=h(),v.destroy=l}s=s.next}while(s!==f)}}catch(S){$e(a,a.return,S)}}function gr(n,a,s){try{var l=a.updateQueue,f=l!==null?l.lastEffect:null;if(f!==null){var h=f.next;l=h;do{if((l.tag&n)===n){var v=l.inst,S=v.destroy;if(S!==void 0){v.destroy=void 0,f=a;var N=s,B=S;try{B()}catch(q){$e(f,N,q)}}}l=l.next}while(l!==h)}}catch(q){$e(a,a.return,q)}}function yy(n){var a=n.updateQueue;if(a!==null){var s=n.stateNode;try{cb(a,s)}catch(l){$e(n,n.return,l)}}}function xy(n,a,s){s.props=ia(n.type,n.memoizedProps),s.state=n.memoizedState;try{s.componentWillUnmount()}catch(l){$e(n,a,l)}}function Ps(n,a){try{var s=n.ref;if(s!==null){switch(n.tag){case 26:case 27:case 5:var l=n.stateNode;break;case 30:l=n.stateNode;break;default:l=n.stateNode}typeof s=="function"?n.refCleanup=s(l):s.current=l}}catch(f){$e(n,a,f)}}function ii(n,a){var s=n.ref,l=n.refCleanup;if(s!==null)if(typeof l=="function")try{l()}catch(f){$e(n,a,f)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(f){$e(n,a,f)}else s.current=null}function Sy(n){var a=n.type,s=n.memoizedProps,l=n.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":s.autoFocus&&l.focus();break e;case"img":s.src?l.src=s.src:s.srcSet&&(l.srcset=s.srcSet)}}catch(f){$e(n,n.return,f)}}function Nh(n,a,s){try{var l=n.stateNode;nN(l,n.type,s,a),l[qt]=a}catch(f){$e(n,n.return,f)}}function Cy(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Sr(n.type)||n.tag===4}function Ih(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||Cy(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&Sr(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Ph(n,a,s){var l=n.tag;if(l===5||l===6)n=n.stateNode,a?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(n,a):(a=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,a.appendChild(n),s=s._reactRootContainer,s!=null||a.onclick!==null||(a.onclick=Ti));else if(l!==4&&(l===27&&Sr(n.type)&&(s=n.stateNode,a=null),n=n.child,n!==null))for(Ph(n,a,s),n=n.sibling;n!==null;)Ph(n,a,s),n=n.sibling}function jc(n,a,s){var l=n.tag;if(l===5||l===6)n=n.stateNode,a?s.insertBefore(n,a):s.appendChild(n);else if(l!==4&&(l===27&&Sr(n.type)&&(s=n.stateNode),n=n.child,n!==null))for(jc(n,a,s),n=n.sibling;n!==null;)jc(n,a,s),n=n.sibling}function Ey(n){var a=n.stateNode,s=n.memoizedProps;try{for(var l=n.type,f=a.attributes;f.length;)a.removeAttributeNode(f[0]);zt(a,l,s),a[Pt]=n,a[qt]=s}catch(h){$e(n,n.return,h)}}var Vi=!1,mt=!1,Ah=!1,Ty=typeof WeakSet=="function"?WeakSet:Set,Ot=null;function zk(n,a){if(n=n.containerInfo,Jh=du,n=Dv(n),wf(n)){if("selectionStart"in n)var s={start:n.selectionStart,end:n.selectionEnd};else e:{s=(s=n.ownerDocument)&&s.defaultView||window;var l=s.getSelection&&s.getSelection();if(l&&l.rangeCount!==0){s=l.anchorNode;var f=l.anchorOffset,h=l.focusNode;l=l.focusOffset;try{s.nodeType,h.nodeType}catch{s=null;break e}var v=0,S=-1,N=-1,B=0,q=0,X=n,$=null;t:for(;;){for(var j;X!==s||f!==0&&X.nodeType!==3||(S=v+f),X!==h||l!==0&&X.nodeType!==3||(N=v+l),X.nodeType===3&&(v+=X.nodeValue.length),(j=X.firstChild)!==null;)$=X,X=j;for(;;){if(X===n)break t;if($===s&&++B===f&&(S=v),$===h&&++q===l&&(N=v),(j=X.nextSibling)!==null)break;X=$,$=X.parentNode}X=j}s=S===-1||N===-1?null:{start:S,end:N}}else s=null}s=s||{start:0,end:0}}else s=null;for(eg={focusedElem:n,selectionRange:s},du=!1,Ot=a;Ot!==null;)if(a=Ot,n=a.child,(a.subtreeFlags&1028)!==0&&n!==null)n.return=a,Ot=n;else for(;Ot!==null;){switch(a=Ot,h=a.alternate,n=a.flags,a.tag){case 0:if((n&4)!==0&&(n=a.updateQueue,n=n!==null?n.events:null,n!==null))for(s=0;s<n.length;s++)f=n[s],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&h!==null){n=void 0,s=a,f=h.memoizedProps,h=h.memoizedState,l=s.stateNode;try{var le=ia(s.type,f);n=l.getSnapshotBeforeUpdate(le,h),l.__reactInternalSnapshotBeforeUpdate=n}catch(xe){$e(s,s.return,xe)}}break;case 3:if((n&1024)!==0){if(n=a.stateNode.containerInfo,s=n.nodeType,s===9)ig(n);else if(s===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":ig(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(r(163))}if(n=a.sibling,n!==null){n.return=a.return,Ot=n;break}Ot=a.return}}function wy(n,a,s){var l=s.flags;switch(s.tag){case 0:case 11:case 15:Di(n,s),l&4&&Is(5,s);break;case 1:if(Di(n,s),l&4)if(n=s.stateNode,a===null)try{n.componentDidMount()}catch(v){$e(s,s.return,v)}else{var f=ia(s.type,a.memoizedProps);a=a.memoizedState;try{n.componentDidUpdate(f,a,n.__reactInternalSnapshotBeforeUpdate)}catch(v){$e(s,s.return,v)}}l&64&&yy(s),l&512&&Ps(s,s.return);break;case 3:if(Di(n,s),l&64&&(n=s.updateQueue,n!==null)){if(a=null,s.child!==null)switch(s.child.tag){case 27:case 5:a=s.child.stateNode;break;case 1:a=s.child.stateNode}try{cb(n,a)}catch(v){$e(s,s.return,v)}}break;case 27:a===null&&l&4&&Ey(s);case 26:case 5:Di(n,s),a===null&&l&4&&Sy(s),l&512&&Ps(s,s.return);break;case 12:Di(n,s);break;case 31:Di(n,s),l&4&&ky(n,s);break;case 13:Di(n,s),l&4&&Ny(n,s),l&64&&(n=s.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(s=jk.bind(null,s),uN(n,s))));break;case 22:if(l=s.memoizedState!==null||Vi,!l){a=a!==null&&a.memoizedState!==null||mt,f=Vi;var h=mt;Vi=l,(mt=a)&&!h?Mi(n,s,(s.subtreeFlags&8772)!==0):Di(n,s),Vi=f,mt=h}break;case 30:break;default:Di(n,s)}}function Oy(n){var a=n.alternate;a!==null&&(n.alternate=null,Oy(a)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(a=n.stateNode,a!==null&&lf(a)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var et=null,Kt=!1;function zi(n,a,s){for(s=s.child;s!==null;)Ry(n,a,s),s=s.sibling}function Ry(n,a,s){if(sn&&typeof sn.onCommitFiberUnmount=="function")try{sn.onCommitFiberUnmount(ts,s)}catch{}switch(s.tag){case 26:mt||ii(s,a),zi(n,a,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:mt||ii(s,a);var l=et,f=Kt;Sr(s.type)&&(et=s.stateNode,Kt=!1),zi(n,a,s),Hs(s.stateNode),et=l,Kt=f;break;case 5:mt||ii(s,a);case 6:if(l=et,f=Kt,et=null,zi(n,a,s),et=l,Kt=f,et!==null)if(Kt)try{(et.nodeType===9?et.body:et.nodeName==="HTML"?et.ownerDocument.body:et).removeChild(s.stateNode)}catch(h){$e(s,a,h)}else try{et.removeChild(s.stateNode)}catch(h){$e(s,a,h)}break;case 18:et!==null&&(Kt?(n=et,y0(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,s.stateNode),vo(n)):y0(et,s.stateNode));break;case 4:l=et,f=Kt,et=s.stateNode.containerInfo,Kt=!0,zi(n,a,s),et=l,Kt=f;break;case 0:case 11:case 14:case 15:gr(2,s,a),mt||gr(4,s,a),zi(n,a,s);break;case 1:mt||(ii(s,a),l=s.stateNode,typeof l.componentWillUnmount=="function"&&xy(s,a,l)),zi(n,a,s);break;case 21:zi(n,a,s);break;case 22:mt=(l=mt)||s.memoizedState!==null,zi(n,a,s),mt=l;break;default:zi(n,a,s)}}function ky(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{vo(n)}catch(s){$e(a,a.return,s)}}}function Ny(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{vo(n)}catch(s){$e(a,a.return,s)}}function Dk(n){switch(n.tag){case 31:case 13:case 19:var a=n.stateNode;return a===null&&(a=n.stateNode=new Ty),a;case 22:return n=n.stateNode,a=n._retryCache,a===null&&(a=n._retryCache=new Ty),a;default:throw Error(r(435,n.tag))}}function Gc(n,a){var s=Dk(n);a.forEach(function(l){if(!s.has(l)){s.add(l);var f=Gk.bind(null,n,l);l.then(f,f)}})}function Xt(n,a){var s=a.deletions;if(s!==null)for(var l=0;l<s.length;l++){var f=s[l],h=n,v=a,S=v;e:for(;S!==null;){switch(S.tag){case 27:if(Sr(S.type)){et=S.stateNode,Kt=!1;break e}break;case 5:et=S.stateNode,Kt=!1;break e;case 3:case 4:et=S.stateNode.containerInfo,Kt=!0;break e}S=S.return}if(et===null)throw Error(r(160));Ry(h,v,f),et=null,Kt=!1,h=f.alternate,h!==null&&(h.return=null),f.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)Iy(a,n),a=a.sibling}var Wn=null;function Iy(n,a){var s=n.alternate,l=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:Xt(a,n),Qt(n),l&4&&(gr(3,n,n.return),Is(3,n),gr(5,n,n.return));break;case 1:Xt(a,n),Qt(n),l&512&&(mt||s===null||ii(s,s.return)),l&64&&Vi&&(n=n.updateQueue,n!==null&&(l=n.callbacks,l!==null&&(s=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=s===null?l:s.concat(l))));break;case 26:var f=Wn;if(Xt(a,n),Qt(n),l&512&&(mt||s===null||ii(s,s.return)),l&4){var h=s!==null?s.memoizedState:null;if(l=n.memoizedState,s===null)if(l===null)if(n.stateNode===null){e:{l=n.type,s=n.memoizedProps,f=f.ownerDocument||f;t:switch(l){case"title":h=f.getElementsByTagName("title")[0],(!h||h[rs]||h[Pt]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=f.createElement(l),f.head.insertBefore(h,f.querySelector("head > title"))),zt(h,l,s),h[Pt]=n,wt(h),l=h;break e;case"link":var v=I0("link","href",f).get(l+(s.href||""));if(v){for(var S=0;S<v.length;S++)if(h=v[S],h.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&h.getAttribute("rel")===(s.rel==null?null:s.rel)&&h.getAttribute("title")===(s.title==null?null:s.title)&&h.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){v.splice(S,1);break t}}h=f.createElement(l),zt(h,l,s),f.head.appendChild(h);break;case"meta":if(v=I0("meta","content",f).get(l+(s.content||""))){for(S=0;S<v.length;S++)if(h=v[S],h.getAttribute("content")===(s.content==null?null:""+s.content)&&h.getAttribute("name")===(s.name==null?null:s.name)&&h.getAttribute("property")===(s.property==null?null:s.property)&&h.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&h.getAttribute("charset")===(s.charSet==null?null:s.charSet)){v.splice(S,1);break t}}h=f.createElement(l),zt(h,l,s),f.head.appendChild(h);break;default:throw Error(r(468,l))}h[Pt]=n,wt(h),l=h}n.stateNode=l}else P0(f,n.type,n.stateNode);else n.stateNode=N0(f,l,n.memoizedProps);else h!==l?(h===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):h.count--,l===null?P0(f,n.type,n.stateNode):N0(f,l,n.memoizedProps)):l===null&&n.stateNode!==null&&Nh(n,n.memoizedProps,s.memoizedProps)}break;case 27:Xt(a,n),Qt(n),l&512&&(mt||s===null||ii(s,s.return)),s!==null&&l&4&&Nh(n,n.memoizedProps,s.memoizedProps);break;case 5:if(Xt(a,n),Qt(n),l&512&&(mt||s===null||ii(s,s.return)),n.flags&32){f=n.stateNode;try{Ba(f,"")}catch(le){$e(n,n.return,le)}}l&4&&n.stateNode!=null&&(f=n.memoizedProps,Nh(n,f,s!==null?s.memoizedProps:f)),l&1024&&(Ah=!0);break;case 6:if(Xt(a,n),Qt(n),l&4){if(n.stateNode===null)throw Error(r(162));l=n.memoizedProps,s=n.stateNode;try{s.nodeValue=l}catch(le){$e(n,n.return,le)}}break;case 3:if(su=null,f=Wn,Wn=au(a.containerInfo),Xt(a,n),Wn=f,Qt(n),l&4&&s!==null&&s.memoizedState.isDehydrated)try{vo(a.containerInfo)}catch(le){$e(n,n.return,le)}Ah&&(Ah=!1,Py(n));break;case 4:l=Wn,Wn=au(n.stateNode.containerInfo),Xt(a,n),Qt(n),Wn=l;break;case 12:Xt(a,n),Qt(n);break;case 31:Xt(a,n),Qt(n),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,Gc(n,l)));break;case 13:Xt(a,n),Qt(n),n.child.flags&8192&&n.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(qc=on()),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,Gc(n,l)));break;case 22:f=n.memoizedState!==null;var N=s!==null&&s.memoizedState!==null,B=Vi,q=mt;if(Vi=B||f,mt=q||N,Xt(a,n),mt=q,Vi=B,Qt(n),l&8192)e:for(a=n.stateNode,a._visibility=f?a._visibility&-2:a._visibility|1,f&&(s===null||N||Vi||mt||ra(n)),s=null,a=n;;){if(a.tag===5||a.tag===26){if(s===null){N=s=a;try{if(h=N.stateNode,f)v=h.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{S=N.stateNode;var X=N.memoizedProps.style,$=X!=null&&X.hasOwnProperty("display")?X.display:null;S.style.display=$==null||typeof $=="boolean"?"":(""+$).trim()}}catch(le){$e(N,N.return,le)}}}else if(a.tag===6){if(s===null){N=a;try{N.stateNode.nodeValue=f?"":N.memoizedProps}catch(le){$e(N,N.return,le)}}}else if(a.tag===18){if(s===null){N=a;try{var j=N.stateNode;f?x0(j,!0):x0(N.stateNode,!1)}catch(le){$e(N,N.return,le)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===n)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break e;for(;a.sibling===null;){if(a.return===null||a.return===n)break e;s===a&&(s=null),a=a.return}s===a&&(s=null),a.sibling.return=a.return,a=a.sibling}l&4&&(l=n.updateQueue,l!==null&&(s=l.retryQueue,s!==null&&(l.retryQueue=null,Gc(n,s))));break;case 19:Xt(a,n),Qt(n),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,Gc(n,l)));break;case 30:break;case 21:break;default:Xt(a,n),Qt(n)}}function Qt(n){var a=n.flags;if(a&2){try{for(var s,l=n.return;l!==null;){if(Cy(l)){s=l;break}l=l.return}if(s==null)throw Error(r(160));switch(s.tag){case 27:var f=s.stateNode,h=Ih(n);jc(n,h,f);break;case 5:var v=s.stateNode;s.flags&32&&(Ba(v,""),s.flags&=-33);var S=Ih(n);jc(n,S,v);break;case 3:case 4:var N=s.stateNode.containerInfo,B=Ih(n);Ph(n,B,N);break;default:throw Error(r(161))}}catch(q){$e(n,n.return,q)}n.flags&=-3}a&4096&&(n.flags&=-4097)}function Py(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var a=n;Py(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),n=n.sibling}}function Di(n,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)wy(n,a.alternate,a),a=a.sibling}function ra(n){for(n=n.child;n!==null;){var a=n;switch(a.tag){case 0:case 11:case 14:case 15:gr(4,a,a.return),ra(a);break;case 1:ii(a,a.return);var s=a.stateNode;typeof s.componentWillUnmount=="function"&&xy(a,a.return,s),ra(a);break;case 27:Hs(a.stateNode);case 26:case 5:ii(a,a.return),ra(a);break;case 22:a.memoizedState===null&&ra(a);break;case 30:ra(a);break;default:ra(a)}n=n.sibling}}function Mi(n,a,s){for(s=s&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var l=a.alternate,f=n,h=a,v=h.flags;switch(h.tag){case 0:case 11:case 15:Mi(f,h,s),Is(4,h);break;case 1:if(Mi(f,h,s),l=h,f=l.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(B){$e(l,l.return,B)}if(l=h,f=l.updateQueue,f!==null){var S=l.stateNode;try{var N=f.shared.hiddenCallbacks;if(N!==null)for(f.shared.hiddenCallbacks=null,f=0;f<N.length;f++)lb(N[f],S)}catch(B){$e(l,l.return,B)}}s&&v&64&&yy(h),Ps(h,h.return);break;case 27:Ey(h);case 26:case 5:Mi(f,h,s),s&&l===null&&v&4&&Sy(h),Ps(h,h.return);break;case 12:Mi(f,h,s);break;case 31:Mi(f,h,s),s&&v&4&&ky(f,h);break;case 13:Mi(f,h,s),s&&v&4&&Ny(f,h);break;case 22:h.memoizedState===null&&Mi(f,h,s),Ps(h,h.return);break;case 30:break;default:Mi(f,h,s)}a=a.sibling}}function _h(n,a){var s=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),n=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(n=a.memoizedState.cachePool.pool),n!==s&&(n!=null&&n.refCount++,s!=null&&vs(s))}function Vh(n,a){n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&vs(n))}function qn(n,a,s,l){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Ay(n,a,s,l),a=a.sibling}function Ay(n,a,s,l){var f=a.flags;switch(a.tag){case 0:case 11:case 15:qn(n,a,s,l),f&2048&&Is(9,a);break;case 1:qn(n,a,s,l);break;case 3:qn(n,a,s,l),f&2048&&(n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&vs(n)));break;case 12:if(f&2048){qn(n,a,s,l),n=a.stateNode;try{var h=a.memoizedProps,v=h.id,S=h.onPostCommit;typeof S=="function"&&S(v,a.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(N){$e(a,a.return,N)}}else qn(n,a,s,l);break;case 31:qn(n,a,s,l);break;case 13:qn(n,a,s,l);break;case 23:break;case 22:h=a.stateNode,v=a.alternate,a.memoizedState!==null?h._visibility&2?qn(n,a,s,l):As(n,a):h._visibility&2?qn(n,a,s,l):(h._visibility|=2,ao(n,a,s,l,(a.subtreeFlags&10256)!==0||!1)),f&2048&&_h(v,a);break;case 24:qn(n,a,s,l),f&2048&&Vh(a.alternate,a);break;default:qn(n,a,s,l)}}function ao(n,a,s,l,f){for(f=f&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var h=n,v=a,S=s,N=l,B=v.flags;switch(v.tag){case 0:case 11:case 15:ao(h,v,S,N,f),Is(8,v);break;case 23:break;case 22:var q=v.stateNode;v.memoizedState!==null?q._visibility&2?ao(h,v,S,N,f):As(h,v):(q._visibility|=2,ao(h,v,S,N,f)),f&&B&2048&&_h(v.alternate,v);break;case 24:ao(h,v,S,N,f),f&&B&2048&&Vh(v.alternate,v);break;default:ao(h,v,S,N,f)}a=a.sibling}}function As(n,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var s=n,l=a,f=l.flags;switch(l.tag){case 22:As(s,l),f&2048&&_h(l.alternate,l);break;case 24:As(s,l),f&2048&&Vh(l.alternate,l);break;default:As(s,l)}a=a.sibling}}var _s=8192;function oo(n,a,s){if(n.subtreeFlags&_s)for(n=n.child;n!==null;)_y(n,a,s),n=n.sibling}function _y(n,a,s){switch(n.tag){case 26:oo(n,a,s),n.flags&_s&&n.memoizedState!==null&&CN(s,Wn,n.memoizedState,n.memoizedProps);break;case 5:oo(n,a,s);break;case 3:case 4:var l=Wn;Wn=au(n.stateNode.containerInfo),oo(n,a,s),Wn=l;break;case 22:n.memoizedState===null&&(l=n.alternate,l!==null&&l.memoizedState!==null?(l=_s,_s=16777216,oo(n,a,s),_s=l):oo(n,a,s));break;default:oo(n,a,s)}}function Vy(n){var a=n.alternate;if(a!==null&&(n=a.child,n!==null)){a.child=null;do a=n.sibling,n.sibling=null,n=a;while(n!==null)}}function Vs(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var s=0;s<a.length;s++){var l=a[s];Ot=l,Dy(l,n)}Vy(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)zy(n),n=n.sibling}function zy(n){switch(n.tag){case 0:case 11:case 15:Vs(n),n.flags&2048&&gr(9,n,n.return);break;case 3:Vs(n);break;case 12:Vs(n);break;case 22:var a=n.stateNode;n.memoizedState!==null&&a._visibility&2&&(n.return===null||n.return.tag!==13)?(a._visibility&=-3,Wc(n)):Vs(n);break;default:Vs(n)}}function Wc(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var s=0;s<a.length;s++){var l=a[s];Ot=l,Dy(l,n)}Vy(n)}for(n=n.child;n!==null;){switch(a=n,a.tag){case 0:case 11:case 15:gr(8,a,a.return),Wc(a);break;case 22:s=a.stateNode,s._visibility&2&&(s._visibility&=-3,Wc(a));break;default:Wc(a)}n=n.sibling}}function Dy(n,a){for(;Ot!==null;){var s=Ot;switch(s.tag){case 0:case 11:case 15:gr(8,s,a);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var l=s.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:vs(s.memoizedState.cache)}if(l=s.child,l!==null)l.return=s,Ot=l;else e:for(s=n;Ot!==null;){l=Ot;var f=l.sibling,h=l.return;if(Oy(l),l===s){Ot=null;break e}if(f!==null){f.return=h,Ot=f;break e}Ot=h}}}var Mk={getCacheForType:function(n){var a=_t(ht),s=a.data.get(n);return s===void 0&&(s=n(),a.data.set(n,s)),s},cacheSignal:function(){return _t(ht).controller.signal}},Lk=typeof WeakMap=="function"?WeakMap:Map,De=0,We=null,Re=null,Ne=0,Fe=0,hn=null,pr=!1,so=!1,zh=!1,Li=0,lt=0,mr=0,aa=0,Dh=0,gn=0,lo=0,zs=null,Zt=null,Mh=!1,qc=0,My=0,Yc=1/0,Kc=null,vr=null,xt=0,br=null,co=null,Bi=0,Lh=0,Bh=null,Ly=null,Ds=0,Hh=null;function pn(){return(De&2)!==0&&Ne!==0?Ne&-Ne:F.T!==null?Wh():ev()}function By(){if(gn===0)if((Ne&536870912)===0||Pe){var n=ic;ic<<=1,(ic&3932160)===0&&(ic=262144),gn=n}else gn=536870912;return n=dn.current,n!==null&&(n.flags|=32),gn}function Jt(n,a,s){(n===We&&(Fe===2||Fe===9)||n.cancelPendingCommit!==null)&&(uo(n,0),yr(n,Ne,gn,!1)),is(n,s),((De&2)===0||n!==We)&&(n===We&&((De&2)===0&&(aa|=s),lt===4&&yr(n,Ne,gn,!1)),ri(n))}function Hy(n,a,s){if((De&6)!==0)throw Error(r(327));var l=!s&&(a&127)===0&&(a&n.expiredLanes)===0||ns(n,a),f=l?Fk(n,a):$h(n,a,!0),h=l;do{if(f===0){so&&!l&&yr(n,a,0,!1);break}else{if(s=n.current.alternate,h&&!Bk(s)){f=$h(n,a,!1),h=!1;continue}if(f===2){if(h=a,n.errorRecoveryDisabledLanes&h)var v=0;else v=n.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){a=v;e:{var S=n;f=zs;var N=S.current.memoizedState.isDehydrated;if(N&&(uo(S,v).flags|=256),v=$h(S,v,!1),v!==2){if(zh&&!N){S.errorRecoveryDisabledLanes|=h,aa|=h,f=4;break e}h=Zt,Zt=f,h!==null&&(Zt===null?Zt=h:Zt.push.apply(Zt,h))}f=v}if(h=!1,f!==2)continue}}if(f===1){uo(n,0),yr(n,a,0,!0);break}e:{switch(l=n,h=f,h){case 0:case 1:throw Error(r(345));case 4:if((a&4194048)!==a)break;case 6:yr(l,a,gn,!pr);break e;case 2:Zt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((a&62914560)===a&&(f=qc+300-on(),10<f)){if(yr(l,a,gn,!pr),ac(l,0,!0)!==0)break e;Bi=a,l.timeoutHandle=v0(Fy.bind(null,l,s,Zt,Kc,Mh,a,gn,aa,lo,pr,h,"Throttled",-0,0),f);break e}Fy(l,s,Zt,Kc,Mh,a,gn,aa,lo,pr,h,null,-0,0)}}break}while(!0);ri(n)}function Fy(n,a,s,l,f,h,v,S,N,B,q,X,$,j){if(n.timeoutHandle=-1,X=a.subtreeFlags,X&8192||(X&16785408)===16785408){X={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ti},_y(a,h,X);var le=(h&62914560)===h?qc-on():(h&4194048)===h?My-on():0;if(le=EN(X,le),le!==null){Bi=h,n.cancelPendingCommit=le(Ky.bind(null,n,a,h,s,l,f,v,S,N,q,X,null,$,j)),yr(n,h,v,!B);return}}Ky(n,a,h,s,l,f,v,S,N)}function Bk(n){for(var a=n;;){var s=a.tag;if((s===0||s===11||s===15)&&a.flags&16384&&(s=a.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var l=0;l<s.length;l++){var f=s[l],h=f.getSnapshot;f=f.value;try{if(!cn(h(),f))return!1}catch{return!1}}if(s=a.child,a.subtreeFlags&16384&&s!==null)s.return=a,a=s;else{if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function yr(n,a,s,l){a&=~Dh,a&=~aa,n.suspendedLanes|=a,n.pingedLanes&=~a,l&&(n.warmLanes|=a),l=n.expirationTimes;for(var f=a;0<f;){var h=31-ln(f),v=1<<h;l[h]=-1,f&=~v}s!==0&&Qm(n,s,a)}function Xc(){return(De&6)===0?(Ms(0),!1):!0}function Fh(){if(Re!==null){if(Fe===0)var n=Re.return;else n=Re,ki=Xr=null,ih(n),eo=null,ys=0,n=Re;for(;n!==null;)by(n.alternate,n),n=n.return;Re=null}}function uo(n,a){var s=n.timeoutHandle;s!==-1&&(n.timeoutHandle=-1,aN(s)),s=n.cancelPendingCommit,s!==null&&(n.cancelPendingCommit=null,s()),Bi=0,Fh(),We=n,Re=s=Oi(n.current,null),Ne=a,Fe=0,hn=null,pr=!1,so=ns(n,a),zh=!1,lo=gn=Dh=aa=mr=lt=0,Zt=zs=null,Mh=!1,(a&8)!==0&&(a|=a&32);var l=n.entangledLanes;if(l!==0)for(n=n.entanglements,l&=a;0<l;){var f=31-ln(l),h=1<<f;a|=n[f],l&=~h}return Li=a,vc(),s}function $y(n,a){Ee=null,F.H=Rs,a===Ja||a===wc?(a=rb(),Fe=3):a===Gf?(a=rb(),Fe=4):Fe=a===yh?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,hn=a,Re===null&&(lt=1,Bc(n,kn(a,n.current)))}function Uy(){var n=dn.current;return n===null?!0:(Ne&4194048)===Ne?An===null:(Ne&62914560)===Ne||(Ne&536870912)!==0?n===An:!1}function jy(){var n=F.H;return F.H=Rs,n===null?Rs:n}function Gy(){var n=F.A;return F.A=Mk,n}function Qc(){lt=4,pr||(Ne&4194048)!==Ne&&dn.current!==null||(so=!0),(mr&134217727)===0&&(aa&134217727)===0||We===null||yr(We,Ne,gn,!1)}function $h(n,a,s){var l=De;De|=2;var f=jy(),h=Gy();(We!==n||Ne!==a)&&(Kc=null,uo(n,a)),a=!1;var v=lt;e:do try{if(Fe!==0&&Re!==null){var S=Re,N=hn;switch(Fe){case 8:Fh(),v=6;break e;case 3:case 2:case 9:case 6:dn.current===null&&(a=!0);var B=Fe;if(Fe=0,hn=null,fo(n,S,N,B),s&&so){v=0;break e}break;default:B=Fe,Fe=0,hn=null,fo(n,S,N,B)}}Hk(),v=lt;break}catch(q){$y(n,q)}while(!0);return a&&n.shellSuspendCounter++,ki=Xr=null,De=l,F.H=f,F.A=h,Re===null&&(We=null,Ne=0,vc()),v}function Hk(){for(;Re!==null;)Wy(Re)}function Fk(n,a){var s=De;De|=2;var l=jy(),f=Gy();We!==n||Ne!==a?(Kc=null,Yc=on()+500,uo(n,a)):so=ns(n,a);e:do try{if(Fe!==0&&Re!==null){a=Re;var h=hn;t:switch(Fe){case 1:Fe=0,hn=null,fo(n,a,h,1);break;case 2:case 9:if(nb(h)){Fe=0,hn=null,qy(a);break}a=function(){Fe!==2&&Fe!==9||We!==n||(Fe=7),ri(n)},h.then(a,a);break e;case 3:Fe=7;break e;case 4:Fe=5;break e;case 7:nb(h)?(Fe=0,hn=null,qy(a)):(Fe=0,hn=null,fo(n,a,h,7));break;case 5:var v=null;switch(Re.tag){case 26:v=Re.memoizedState;case 5:case 27:var S=Re;if(v?A0(v):S.stateNode.complete){Fe=0,hn=null;var N=S.sibling;if(N!==null)Re=N;else{var B=S.return;B!==null?(Re=B,Zc(B)):Re=null}break t}}Fe=0,hn=null,fo(n,a,h,5);break;case 6:Fe=0,hn=null,fo(n,a,h,6);break;case 8:Fh(),lt=6;break e;default:throw Error(r(462))}}$k();break}catch(q){$y(n,q)}while(!0);return ki=Xr=null,F.H=l,F.A=f,De=s,Re!==null?0:(We=null,Ne=0,vc(),lt)}function $k(){for(;Re!==null&&!ec();)Wy(Re)}function Wy(n){var a=my(n.alternate,n,Li);n.memoizedProps=n.pendingProps,a===null?Zc(n):Re=a}function qy(n){var a=n,s=a.alternate;switch(a.tag){case 15:case 0:a=uy(s,a,a.pendingProps,a.type,void 0,Ne);break;case 11:a=uy(s,a,a.pendingProps,a.type.render,a.ref,Ne);break;case 5:ih(a);default:by(s,a),a=Re=Gv(a,Li),a=my(s,a,Li)}n.memoizedProps=n.pendingProps,a===null?Zc(n):Re=a}function fo(n,a,s,l){ki=Xr=null,ih(a),eo=null,ys=0;var f=a.return;try{if(Ik(n,f,a,s,Ne)){lt=1,Bc(n,kn(s,n.current)),Re=null;return}}catch(h){if(f!==null)throw Re=f,h;lt=1,Bc(n,kn(s,n.current)),Re=null;return}a.flags&32768?(Pe||l===1?n=!0:so||(Ne&536870912)!==0?n=!1:(pr=n=!0,(l===2||l===9||l===3||l===6)&&(l=dn.current,l!==null&&l.tag===13&&(l.flags|=16384))),Yy(a,n)):Zc(a)}function Zc(n){var a=n;do{if((a.flags&32768)!==0){Yy(a,pr);return}n=a.return;var s=_k(a.alternate,a,Li);if(s!==null){Re=s;return}if(a=a.sibling,a!==null){Re=a;return}Re=a=n}while(a!==null);lt===0&&(lt=5)}function Yy(n,a){do{var s=Vk(n.alternate,n);if(s!==null){s.flags&=32767,Re=s;return}if(s=n.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!a&&(n=n.sibling,n!==null)){Re=n;return}Re=n=s}while(n!==null);lt=6,Re=null}function Ky(n,a,s,l,f,h,v,S,N){n.cancelPendingCommit=null;do Jc();while(xt!==0);if((De&6)!==0)throw Error(r(327));if(a!==null){if(a===n.current)throw Error(r(177));if(h=a.lanes|a.childLanes,h|=If,SR(n,s,h,v,S,N),n===We&&(Re=We=null,Ne=0),co=a,br=n,Bi=s,Lh=h,Bh=f,Ly=l,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,Wk(tc,function(){return e0(),null})):(n.callbackNode=null,n.callbackPriority=0),l=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||l){l=F.T,F.T=null,f=ee.p,ee.p=2,v=De,De|=4;try{zk(n,a,s)}finally{De=v,ee.p=f,F.T=l}}xt=1,Xy(),Qy(),Zy()}}function Xy(){if(xt===1){xt=0;var n=br,a=co,s=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||s){s=F.T,F.T=null;var l=ee.p;ee.p=2;var f=De;De|=4;try{Iy(a,n);var h=eg,v=Dv(n.containerInfo),S=h.focusedElem,N=h.selectionRange;if(v!==S&&S&&S.ownerDocument&&zv(S.ownerDocument.documentElement,S)){if(N!==null&&wf(S)){var B=N.start,q=N.end;if(q===void 0&&(q=B),"selectionStart"in S)S.selectionStart=B,S.selectionEnd=Math.min(q,S.value.length);else{var X=S.ownerDocument||document,$=X&&X.defaultView||window;if($.getSelection){var j=$.getSelection(),le=S.textContent.length,xe=Math.min(N.start,le),Ge=N.end===void 0?xe:Math.min(N.end,le);!j.extend&&xe>Ge&&(v=Ge,Ge=xe,xe=v);var D=Vv(S,xe),_=Vv(S,Ge);if(D&&_&&(j.rangeCount!==1||j.anchorNode!==D.node||j.anchorOffset!==D.offset||j.focusNode!==_.node||j.focusOffset!==_.offset)){var L=X.createRange();L.setStart(D.node,D.offset),j.removeAllRanges(),xe>Ge?(j.addRange(L),j.extend(_.node,_.offset)):(L.setEnd(_.node,_.offset),j.addRange(L))}}}}for(X=[],j=S;j=j.parentNode;)j.nodeType===1&&X.push({element:j,left:j.scrollLeft,top:j.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<X.length;S++){var K=X[S];K.element.scrollLeft=K.left,K.element.scrollTop=K.top}}du=!!Jh,eg=Jh=null}finally{De=f,ee.p=l,F.T=s}}n.current=a,xt=2}}function Qy(){if(xt===2){xt=0;var n=br,a=co,s=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||s){s=F.T,F.T=null;var l=ee.p;ee.p=2;var f=De;De|=4;try{wy(n,a.alternate,a)}finally{De=f,ee.p=l,F.T=s}}xt=3}}function Zy(){if(xt===4||xt===3){xt=0,es();var n=br,a=co,s=Bi,l=Ly;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?xt=5:(xt=0,co=br=null,Jy(n,n.pendingLanes));var f=n.pendingLanes;if(f===0&&(vr=null),of(s),a=a.stateNode,sn&&typeof sn.onCommitFiberRoot=="function")try{sn.onCommitFiberRoot(ts,a,void 0,(a.current.flags&128)===128)}catch{}if(l!==null){a=F.T,f=ee.p,ee.p=2,F.T=null;try{for(var h=n.onRecoverableError,v=0;v<l.length;v++){var S=l[v];h(S.value,{componentStack:S.stack})}}finally{F.T=a,ee.p=f}}(Bi&3)!==0&&Jc(),ri(n),f=n.pendingLanes,(s&261930)!==0&&(f&42)!==0?n===Hh?Ds++:(Ds=0,Hh=n):Ds=0,Ms(0)}}function Jy(n,a){(n.pooledCacheLanes&=a)===0&&(a=n.pooledCache,a!=null&&(n.pooledCache=null,vs(a)))}function Jc(){return Xy(),Qy(),Zy(),e0()}function e0(){if(xt!==5)return!1;var n=br,a=Lh;Lh=0;var s=of(Bi),l=F.T,f=ee.p;try{ee.p=32>s?32:s,F.T=null,s=Bh,Bh=null;var h=br,v=Bi;if(xt=0,co=br=null,Bi=0,(De&6)!==0)throw Error(r(331));var S=De;if(De|=4,zy(h.current),Ay(h,h.current,v,s),De=S,Ms(0,!1),sn&&typeof sn.onPostCommitFiberRoot=="function")try{sn.onPostCommitFiberRoot(ts,h)}catch{}return!0}finally{ee.p=f,F.T=l,Jy(n,a)}}function t0(n,a,s){a=kn(s,a),a=bh(n.stateNode,a,2),n=dr(n,a,2),n!==null&&(is(n,2),ri(n))}function $e(n,a,s){if(n.tag===3)t0(n,n,s);else for(;a!==null;){if(a.tag===3){t0(a,n,s);break}else if(a.tag===1){var l=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(vr===null||!vr.has(l))){n=kn(s,n),s=ny(2),l=dr(a,s,2),l!==null&&(iy(s,l,a,n),is(l,2),ri(l));break}}a=a.return}}function Uh(n,a,s){var l=n.pingCache;if(l===null){l=n.pingCache=new Lk;var f=new Set;l.set(a,f)}else f=l.get(a),f===void 0&&(f=new Set,l.set(a,f));f.has(s)||(zh=!0,f.add(s),n=Uk.bind(null,n,a,s),a.then(n,n))}function Uk(n,a,s){var l=n.pingCache;l!==null&&l.delete(a),n.pingedLanes|=n.suspendedLanes&s,n.warmLanes&=~s,We===n&&(Ne&s)===s&&(lt===4||lt===3&&(Ne&62914560)===Ne&&300>on()-qc?(De&2)===0&&uo(n,0):Dh|=s,lo===Ne&&(lo=0)),ri(n)}function n0(n,a){a===0&&(a=Xm()),n=qr(n,a),n!==null&&(is(n,a),ri(n))}function jk(n){var a=n.memoizedState,s=0;a!==null&&(s=a.retryLane),n0(n,s)}function Gk(n,a){var s=0;switch(n.tag){case 31:case 13:var l=n.stateNode,f=n.memoizedState;f!==null&&(s=f.retryLane);break;case 19:l=n.stateNode;break;case 22:l=n.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(a),n0(n,s)}function Wk(n,a){return Jo(n,a)}var eu=null,ho=null,jh=!1,tu=!1,Gh=!1,xr=0;function ri(n){n!==ho&&n.next===null&&(ho===null?eu=ho=n:ho=ho.next=n),tu=!0,jh||(jh=!0,Yk())}function Ms(n,a){if(!Gh&&tu){Gh=!0;do for(var s=!1,l=eu;l!==null;){if(n!==0){var f=l.pendingLanes;if(f===0)var h=0;else{var v=l.suspendedLanes,S=l.pingedLanes;h=(1<<31-ln(42|n)+1)-1,h&=f&~(v&~S),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(s=!0,o0(l,h))}else h=Ne,h=ac(l,l===We?h:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(h&3)===0||ns(l,h)||(s=!0,o0(l,h));l=l.next}while(s);Gh=!1}}function qk(){i0()}function i0(){tu=jh=!1;var n=0;xr!==0&&rN()&&(n=xr);for(var a=on(),s=null,l=eu;l!==null;){var f=l.next,h=r0(l,a);h===0?(l.next=null,s===null?eu=f:s.next=f,f===null&&(ho=s)):(s=l,(n!==0||(h&3)!==0)&&(tu=!0)),l=f}xt!==0&&xt!==5||Ms(n),xr!==0&&(xr=0)}function r0(n,a){for(var s=n.suspendedLanes,l=n.pingedLanes,f=n.expirationTimes,h=n.pendingLanes&-62914561;0<h;){var v=31-ln(h),S=1<<v,N=f[v];N===-1?((S&s)===0||(S&l)!==0)&&(f[v]=xR(S,a)):N<=a&&(n.expiredLanes|=S),h&=~S}if(a=We,s=Ne,s=ac(n,n===a?s:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),l=n.callbackNode,s===0||n===a&&(Fe===2||Fe===9)||n.cancelPendingCommit!==null)return l!==null&&l!==null&&Aa(l),n.callbackNode=null,n.callbackPriority=0;if((s&3)===0||ns(n,s)){if(a=s&-s,a===n.callbackPriority)return a;switch(l!==null&&Aa(l),of(s)){case 2:case 8:s=Ym;break;case 32:s=tc;break;case 268435456:s=Km;break;default:s=tc}return l=a0.bind(null,n),s=Jo(s,l),n.callbackPriority=a,n.callbackNode=s,a}return l!==null&&l!==null&&Aa(l),n.callbackPriority=2,n.callbackNode=null,2}function a0(n,a){if(xt!==0&&xt!==5)return n.callbackNode=null,n.callbackPriority=0,null;var s=n.callbackNode;if(Jc()&&n.callbackNode!==s)return null;var l=Ne;return l=ac(n,n===We?l:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),l===0?null:(Hy(n,l,a),r0(n,on()),n.callbackNode!=null&&n.callbackNode===s?a0.bind(null,n):null)}function o0(n,a){if(Jc())return null;Hy(n,a,!0)}function Yk(){oN(function(){(De&6)!==0?Jo(qm,qk):i0()})}function Wh(){if(xr===0){var n=Qa;n===0&&(n=nc,nc<<=1,(nc&261888)===0&&(nc=256)),xr=n}return xr}function s0(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:cc(""+n)}function l0(n,a){var s=a.ownerDocument.createElement("input");return s.name=a.name,s.value=a.value,n.id&&s.setAttribute("form",n.id),a.parentNode.insertBefore(s,a),n=new FormData(n),s.parentNode.removeChild(s),n}function Kk(n,a,s,l,f){if(a==="submit"&&s&&s.stateNode===f){var h=s0((f[qt]||null).action),v=l.submitter;v&&(a=(a=v[qt]||null)?s0(a.formAction):v.getAttribute("formAction"),a!==null&&(h=a,v=null));var S=new hc("action","action",null,l,f);n.push({event:S,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(xr!==0){var N=v?l0(f,v):new FormData(f);fh(s,{pending:!0,data:N,method:f.method,action:h},null,N)}}else typeof h=="function"&&(S.preventDefault(),N=v?l0(f,v):new FormData(f),fh(s,{pending:!0,data:N,method:f.method,action:h},h,N))},currentTarget:f}]})}}for(var qh=0;qh<Nf.length;qh++){var Yh=Nf[qh],Xk=Yh.toLowerCase(),Qk=Yh[0].toUpperCase()+Yh.slice(1);Gn(Xk,"on"+Qk)}Gn(Bv,"onAnimationEnd"),Gn(Hv,"onAnimationIteration"),Gn(Fv,"onAnimationStart"),Gn("dblclick","onDoubleClick"),Gn("focusin","onFocus"),Gn("focusout","onBlur"),Gn(hk,"onTransitionRun"),Gn(gk,"onTransitionStart"),Gn(pk,"onTransitionCancel"),Gn($v,"onTransitionEnd"),Ma("onMouseEnter",["mouseout","mouseover"]),Ma("onMouseLeave",["mouseout","mouseover"]),Ma("onPointerEnter",["pointerout","pointerover"]),Ma("onPointerLeave",["pointerout","pointerover"]),Ur("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ur("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ur("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ur("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ur("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ur("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ls="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(" "),Zk=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ls));function c0(n,a){a=(a&4)!==0;for(var s=0;s<n.length;s++){var l=n[s],f=l.event;l=l.listeners;e:{var h=void 0;if(a)for(var v=l.length-1;0<=v;v--){var S=l[v],N=S.instance,B=S.currentTarget;if(S=S.listener,N!==h&&f.isPropagationStopped())break e;h=S,f.currentTarget=B;try{h(f)}catch(q){mc(q)}f.currentTarget=null,h=N}else for(v=0;v<l.length;v++){if(S=l[v],N=S.instance,B=S.currentTarget,S=S.listener,N!==h&&f.isPropagationStopped())break e;h=S,f.currentTarget=B;try{h(f)}catch(q){mc(q)}f.currentTarget=null,h=N}}}}function ke(n,a){var s=a[sf];s===void 0&&(s=a[sf]=new Set);var l=n+"__bubble";s.has(l)||(u0(a,n,2,!1),s.add(l))}function Kh(n,a,s){var l=0;a&&(l|=4),u0(s,n,l,a)}var nu="_reactListening"+Math.random().toString(36).slice(2);function Xh(n){if(!n[nu]){n[nu]=!0,iv.forEach(function(s){s!=="selectionchange"&&(Zk.has(s)||Kh(s,!1,n),Kh(s,!0,n))});var a=n.nodeType===9?n:n.ownerDocument;a===null||a[nu]||(a[nu]=!0,Kh("selectionchange",!1,a))}}function u0(n,a,s,l){switch(B0(a)){case 2:var f=ON;break;case 8:f=RN;break;default:f=dg}s=f.bind(null,a,s,n),f=void 0,!mf||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(f=!0),l?f!==void 0?n.addEventListener(a,s,{capture:!0,passive:f}):n.addEventListener(a,s,!0):f!==void 0?n.addEventListener(a,s,{passive:f}):n.addEventListener(a,s,!1)}function Qh(n,a,s,l,f){var h=l;if((a&1)===0&&(a&2)===0&&l!==null)e:for(;;){if(l===null)return;var v=l.tag;if(v===3||v===4){var S=l.stateNode.containerInfo;if(S===f)break;if(v===4)for(v=l.return;v!==null;){var N=v.tag;if((N===3||N===4)&&v.stateNode.containerInfo===f)return;v=v.return}for(;S!==null;){if(v=Va(S),v===null)return;if(N=v.tag,N===5||N===6||N===26||N===27){l=h=v;continue e}S=S.parentNode}}l=l.return}pv(function(){var B=h,q=gf(s),X=[];e:{var $=Uv.get(n);if($!==void 0){var j=hc,le=n;switch(n){case"keypress":if(dc(s)===0)break e;case"keydown":case"keyup":j=GR;break;case"focusin":le="focus",j=xf;break;case"focusout":le="blur",j=xf;break;case"beforeblur":case"afterblur":j=xf;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":j=bv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":j=_R;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":j=YR;break;case Bv:case Hv:case Fv:j=DR;break;case $v:j=XR;break;case"scroll":case"scrollend":j=PR;break;case"wheel":j=ZR;break;case"copy":case"cut":case"paste":j=LR;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":j=xv;break;case"toggle":case"beforetoggle":j=ek}var xe=(a&4)!==0,Ge=!xe&&(n==="scroll"||n==="scrollend"),D=xe?$!==null?$+"Capture":null:$;xe=[];for(var _=B,L;_!==null;){var K=_;if(L=K.stateNode,K=K.tag,K!==5&&K!==26&&K!==27||L===null||D===null||(K=os(_,D),K!=null&&xe.push(Bs(_,K,L))),Ge)break;_=_.return}0<xe.length&&($=new j($,le,null,s,q),X.push({event:$,listeners:xe}))}}if((a&7)===0){e:{if($=n==="mouseover"||n==="pointerover",j=n==="mouseout"||n==="pointerout",$&&s!==hf&&(le=s.relatedTarget||s.fromElement)&&(Va(le)||le[_a]))break e;if((j||$)&&($=q.window===q?q:($=q.ownerDocument)?$.defaultView||$.parentWindow:window,j?(le=s.relatedTarget||s.toElement,j=B,le=le?Va(le):null,le!==null&&(Ge=c(le),xe=le.tag,le!==Ge||xe!==5&&xe!==27&&xe!==6)&&(le=null)):(j=null,le=B),j!==le)){if(xe=bv,K="onMouseLeave",D="onMouseEnter",_="mouse",(n==="pointerout"||n==="pointerover")&&(xe=xv,K="onPointerLeave",D="onPointerEnter",_="pointer"),Ge=j==null?$:as(j),L=le==null?$:as(le),$=new xe(K,_+"leave",j,s,q),$.target=Ge,$.relatedTarget=L,K=null,Va(q)===B&&(xe=new xe(D,_+"enter",le,s,q),xe.target=L,xe.relatedTarget=Ge,K=xe),Ge=K,j&&le)t:{for(xe=Jk,D=j,_=le,L=0,K=D;K;K=xe(K))L++;K=0;for(var me=_;me;me=xe(me))K++;for(;0<L-K;)D=xe(D),L--;for(;0<K-L;)_=xe(_),K--;for(;L--;){if(D===_||_!==null&&D===_.alternate){xe=D;break t}D=xe(D),_=xe(_)}xe=null}else xe=null;j!==null&&d0(X,$,j,xe,!1),le!==null&&Ge!==null&&d0(X,Ge,le,xe,!0)}}e:{if($=B?as(B):window,j=$.nodeName&&$.nodeName.toLowerCase(),j==="select"||j==="input"&&$.type==="file")var Ve=kv;else if(Ov($))if(Nv)Ve=uk;else{Ve=lk;var de=sk}else j=$.nodeName,!j||j.toLowerCase()!=="input"||$.type!=="checkbox"&&$.type!=="radio"?B&&ff(B.elementType)&&(Ve=kv):Ve=ck;if(Ve&&(Ve=Ve(n,B))){Rv(X,Ve,s,q);break e}de&&de(n,$,B),n==="focusout"&&B&&$.type==="number"&&B.memoizedProps.value!=null&&df($,"number",$.value)}switch(de=B?as(B):window,n){case"focusin":(Ov(de)||de.contentEditable==="true")&&(Ua=de,Of=B,gs=null);break;case"focusout":gs=Of=Ua=null;break;case"mousedown":Rf=!0;break;case"contextmenu":case"mouseup":case"dragend":Rf=!1,Mv(X,s,q);break;case"selectionchange":if(fk)break;case"keydown":case"keyup":Mv(X,s,q)}var Oe;if(Cf)e:{switch(n){case"compositionstart":var Ie="onCompositionStart";break e;case"compositionend":Ie="onCompositionEnd";break e;case"compositionupdate":Ie="onCompositionUpdate";break e}Ie=void 0}else $a?Tv(n,s)&&(Ie="onCompositionEnd"):n==="keydown"&&s.keyCode===229&&(Ie="onCompositionStart");Ie&&(Sv&&s.locale!=="ko"&&($a||Ie!=="onCompositionStart"?Ie==="onCompositionEnd"&&$a&&(Oe=mv()):(rr=q,vf="value"in rr?rr.value:rr.textContent,$a=!0)),de=iu(B,Ie),0<de.length&&(Ie=new yv(Ie,n,null,s,q),X.push({event:Ie,listeners:de}),Oe?Ie.data=Oe:(Oe=wv(s),Oe!==null&&(Ie.data=Oe)))),(Oe=nk?ik(n,s):rk(n,s))&&(Ie=iu(B,"onBeforeInput"),0<Ie.length&&(de=new yv("onBeforeInput","beforeinput",null,s,q),X.push({event:de,listeners:Ie}),de.data=Oe)),Kk(X,n,B,s,q)}c0(X,a)})}function Bs(n,a,s){return{instance:n,listener:a,currentTarget:s}}function iu(n,a){for(var s=a+"Capture",l=[];n!==null;){var f=n,h=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||h===null||(f=os(n,s),f!=null&&l.unshift(Bs(n,f,h)),f=os(n,a),f!=null&&l.push(Bs(n,f,h))),n.tag===3)return l;n=n.return}return[]}function Jk(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function d0(n,a,s,l,f){for(var h=a._reactName,v=[];s!==null&&s!==l;){var S=s,N=S.alternate,B=S.stateNode;if(S=S.tag,N!==null&&N===l)break;S!==5&&S!==26&&S!==27||B===null||(N=B,f?(B=os(s,h),B!=null&&v.unshift(Bs(s,B,N))):f||(B=os(s,h),B!=null&&v.push(Bs(s,B,N)))),s=s.return}v.length!==0&&n.push({event:a,listeners:v})}var eN=/\r\n?/g,tN=/\u0000|\uFFFD/g;function f0(n){return(typeof n=="string"?n:""+n).replace(eN,`
9
+ `).replace(tN,"")}function h0(n,a){return a=f0(a),f0(n)===a}function je(n,a,s,l,f,h){switch(s){case"children":typeof l=="string"?a==="body"||a==="textarea"&&l===""||Ba(n,l):(typeof l=="number"||typeof l=="bigint")&&a!=="body"&&Ba(n,""+l);break;case"className":sc(n,"class",l);break;case"tabIndex":sc(n,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":sc(n,s,l);break;case"style":hv(n,l,h);break;case"data":if(a!=="object"){sc(n,"data",l);break}case"src":case"href":if(l===""&&(a!=="a"||s!=="href")){n.removeAttribute(s);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){n.removeAttribute(s);break}l=cc(""+l),n.setAttribute(s,l);break;case"action":case"formAction":if(typeof l=="function"){n.setAttribute(s,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof h=="function"&&(s==="formAction"?(a!=="input"&&je(n,a,"name",f.name,f,null),je(n,a,"formEncType",f.formEncType,f,null),je(n,a,"formMethod",f.formMethod,f,null),je(n,a,"formTarget",f.formTarget,f,null)):(je(n,a,"encType",f.encType,f,null),je(n,a,"method",f.method,f,null),je(n,a,"target",f.target,f,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){n.removeAttribute(s);break}l=cc(""+l),n.setAttribute(s,l);break;case"onClick":l!=null&&(n.onclick=Ti);break;case"onScroll":l!=null&&ke("scroll",n);break;case"onScrollEnd":l!=null&&ke("scrollend",n);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(s=l.__html,s!=null){if(f.children!=null)throw Error(r(60));n.innerHTML=s}}break;case"multiple":n.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":n.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){n.removeAttribute("xlink:href");break}s=cc(""+l),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(s,""+l):n.removeAttribute(s);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(s,""):n.removeAttribute(s);break;case"capture":case"download":l===!0?n.setAttribute(s,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(s,l):n.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?n.setAttribute(s,l):n.removeAttribute(s);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?n.removeAttribute(s):n.setAttribute(s,l);break;case"popover":ke("beforetoggle",n),ke("toggle",n),oc(n,"popover",l);break;case"xlinkActuate":Ei(n,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Ei(n,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Ei(n,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Ei(n,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Ei(n,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Ei(n,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Ei(n,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Ei(n,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Ei(n,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":oc(n,"is",l);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=NR.get(s)||s,oc(n,s,l))}}function Zh(n,a,s,l,f,h){switch(s){case"style":hv(n,l,h);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(s=l.__html,s!=null){if(f.children!=null)throw Error(r(60));n.innerHTML=s}}break;case"children":typeof l=="string"?Ba(n,l):(typeof l=="number"||typeof l=="bigint")&&Ba(n,""+l);break;case"onScroll":l!=null&&ke("scroll",n);break;case"onScrollEnd":l!=null&&ke("scrollend",n);break;case"onClick":l!=null&&(n.onclick=Ti);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!rv.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(f=s.endsWith("Capture"),a=s.slice(2,f?s.length-7:void 0),h=n[qt]||null,h=h!=null?h[s]:null,typeof h=="function"&&n.removeEventListener(a,h,f),typeof l=="function")){typeof h!="function"&&h!==null&&(s in n?n[s]=null:n.hasAttribute(s)&&n.removeAttribute(s)),n.addEventListener(a,l,f);break e}s in n?n[s]=l:l===!0?n.setAttribute(s,""):oc(n,s,l)}}}function zt(n,a,s){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ke("error",n),ke("load",n);var l=!1,f=!1,h;for(h in s)if(s.hasOwnProperty(h)){var v=s[h];if(v!=null)switch(h){case"src":l=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:je(n,a,h,v,s,null)}}f&&je(n,a,"srcSet",s.srcSet,s,null),l&&je(n,a,"src",s.src,s,null);return;case"input":ke("invalid",n);var S=h=v=f=null,N=null,B=null;for(l in s)if(s.hasOwnProperty(l)){var q=s[l];if(q!=null)switch(l){case"name":f=q;break;case"type":v=q;break;case"checked":N=q;break;case"defaultChecked":B=q;break;case"value":h=q;break;case"defaultValue":S=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(r(137,a));break;default:je(n,a,l,q,s,null)}}cv(n,h,S,N,B,v,f,!1);return;case"select":ke("invalid",n),l=v=h=null;for(f in s)if(s.hasOwnProperty(f)&&(S=s[f],S!=null))switch(f){case"value":h=S;break;case"defaultValue":v=S;break;case"multiple":l=S;default:je(n,a,f,S,s,null)}a=h,s=v,n.multiple=!!l,a!=null?La(n,!!l,a,!1):s!=null&&La(n,!!l,s,!0);return;case"textarea":ke("invalid",n),h=f=l=null;for(v in s)if(s.hasOwnProperty(v)&&(S=s[v],S!=null))switch(v){case"value":l=S;break;case"defaultValue":f=S;break;case"children":h=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(r(91));break;default:je(n,a,v,S,s,null)}dv(n,l,f,h);return;case"option":for(N in s)if(s.hasOwnProperty(N)&&(l=s[N],l!=null))switch(N){case"selected":n.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:je(n,a,N,l,s,null)}return;case"dialog":ke("beforetoggle",n),ke("toggle",n),ke("cancel",n),ke("close",n);break;case"iframe":case"object":ke("load",n);break;case"video":case"audio":for(l=0;l<Ls.length;l++)ke(Ls[l],n);break;case"image":ke("error",n),ke("load",n);break;case"details":ke("toggle",n);break;case"embed":case"source":case"link":ke("error",n),ke("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(B in s)if(s.hasOwnProperty(B)&&(l=s[B],l!=null))switch(B){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:je(n,a,B,l,s,null)}return;default:if(ff(a)){for(q in s)s.hasOwnProperty(q)&&(l=s[q],l!==void 0&&Zh(n,a,q,l,s,void 0));return}}for(S in s)s.hasOwnProperty(S)&&(l=s[S],l!=null&&je(n,a,S,l,s,null))}function nN(n,a,s,l){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,h=null,v=null,S=null,N=null,B=null,q=null;for(j in s){var X=s[j];if(s.hasOwnProperty(j)&&X!=null)switch(j){case"checked":break;case"value":break;case"defaultValue":N=X;default:l.hasOwnProperty(j)||je(n,a,j,null,l,X)}}for(var $ in l){var j=l[$];if(X=s[$],l.hasOwnProperty($)&&(j!=null||X!=null))switch($){case"type":h=j;break;case"name":f=j;break;case"checked":B=j;break;case"defaultChecked":q=j;break;case"value":v=j;break;case"defaultValue":S=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(r(137,a));break;default:j!==X&&je(n,a,$,j,l,X)}}uf(n,v,S,N,B,q,h,f);return;case"select":j=v=S=$=null;for(h in s)if(N=s[h],s.hasOwnProperty(h)&&N!=null)switch(h){case"value":break;case"multiple":j=N;default:l.hasOwnProperty(h)||je(n,a,h,null,l,N)}for(f in l)if(h=l[f],N=s[f],l.hasOwnProperty(f)&&(h!=null||N!=null))switch(f){case"value":$=h;break;case"defaultValue":S=h;break;case"multiple":v=h;default:h!==N&&je(n,a,f,h,l,N)}a=S,s=v,l=j,$!=null?La(n,!!s,$,!1):!!l!=!!s&&(a!=null?La(n,!!s,a,!0):La(n,!!s,s?[]:"",!1));return;case"textarea":j=$=null;for(S in s)if(f=s[S],s.hasOwnProperty(S)&&f!=null&&!l.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:je(n,a,S,null,l,f)}for(v in l)if(f=l[v],h=s[v],l.hasOwnProperty(v)&&(f!=null||h!=null))switch(v){case"value":$=f;break;case"defaultValue":j=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(r(91));break;default:f!==h&&je(n,a,v,f,l,h)}uv(n,$,j);return;case"option":for(var le in s)if($=s[le],s.hasOwnProperty(le)&&$!=null&&!l.hasOwnProperty(le))switch(le){case"selected":n.selected=!1;break;default:je(n,a,le,null,l,$)}for(N in l)if($=l[N],j=s[N],l.hasOwnProperty(N)&&$!==j&&($!=null||j!=null))switch(N){case"selected":n.selected=$&&typeof $!="function"&&typeof $!="symbol";break;default:je(n,a,N,$,l,j)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var xe in s)$=s[xe],s.hasOwnProperty(xe)&&$!=null&&!l.hasOwnProperty(xe)&&je(n,a,xe,null,l,$);for(B in l)if($=l[B],j=s[B],l.hasOwnProperty(B)&&$!==j&&($!=null||j!=null))switch(B){case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(r(137,a));break;default:je(n,a,B,$,l,j)}return;default:if(ff(a)){for(var Ge in s)$=s[Ge],s.hasOwnProperty(Ge)&&$!==void 0&&!l.hasOwnProperty(Ge)&&Zh(n,a,Ge,void 0,l,$);for(q in l)$=l[q],j=s[q],!l.hasOwnProperty(q)||$===j||$===void 0&&j===void 0||Zh(n,a,q,$,l,j);return}}for(var D in s)$=s[D],s.hasOwnProperty(D)&&$!=null&&!l.hasOwnProperty(D)&&je(n,a,D,null,l,$);for(X in l)$=l[X],j=s[X],!l.hasOwnProperty(X)||$===j||$==null&&j==null||je(n,a,X,$,l,j)}function g0(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function iN(){if(typeof performance.getEntriesByType=="function"){for(var n=0,a=0,s=performance.getEntriesByType("resource"),l=0;l<s.length;l++){var f=s[l],h=f.transferSize,v=f.initiatorType,S=f.duration;if(h&&S&&g0(v)){for(v=0,S=f.responseEnd,l+=1;l<s.length;l++){var N=s[l],B=N.startTime;if(B>S)break;var q=N.transferSize,X=N.initiatorType;q&&g0(X)&&(N=N.responseEnd,v+=q*(N<S?1:(S-B)/(N-B)))}if(--l,a+=8*(h+v)/(f.duration/1e3),n++,10<n)break}}if(0<n)return a/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var Jh=null,eg=null;function ru(n){return n.nodeType===9?n:n.ownerDocument}function p0(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function m0(n,a){if(n===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&a==="foreignObject"?0:n}function tg(n,a){return n==="textarea"||n==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var ng=null;function rN(){var n=window.event;return n&&n.type==="popstate"?n===ng?!1:(ng=n,!0):(ng=null,!1)}var v0=typeof setTimeout=="function"?setTimeout:void 0,aN=typeof clearTimeout=="function"?clearTimeout:void 0,b0=typeof Promise=="function"?Promise:void 0,oN=typeof queueMicrotask=="function"?queueMicrotask:typeof b0<"u"?function(n){return b0.resolve(null).then(n).catch(sN)}:v0;function sN(n){setTimeout(function(){throw n})}function Sr(n){return n==="head"}function y0(n,a){var s=a,l=0;do{var f=s.nextSibling;if(n.removeChild(s),f&&f.nodeType===8)if(s=f.data,s==="/$"||s==="/&"){if(l===0){n.removeChild(f),vo(a);return}l--}else if(s==="$"||s==="$?"||s==="$~"||s==="$!"||s==="&")l++;else if(s==="html")Hs(n.ownerDocument.documentElement);else if(s==="head"){s=n.ownerDocument.head,Hs(s);for(var h=s.firstChild;h;){var v=h.nextSibling,S=h.nodeName;h[rs]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&h.rel.toLowerCase()==="stylesheet"||s.removeChild(h),h=v}}else s==="body"&&Hs(n.ownerDocument.body);s=f}while(s);vo(a)}function x0(n,a){var s=n;n=0;do{var l=s.nextSibling;if(s.nodeType===1?a?(s._stashedDisplay=s.style.display,s.style.display="none"):(s.style.display=s._stashedDisplay||"",s.getAttribute("style")===""&&s.removeAttribute("style")):s.nodeType===3&&(a?(s._stashedText=s.nodeValue,s.nodeValue=""):s.nodeValue=s._stashedText||""),l&&l.nodeType===8)if(s=l.data,s==="/$"){if(n===0)break;n--}else s!=="$"&&s!=="$?"&&s!=="$~"&&s!=="$!"||n++;s=l}while(s)}function ig(n){var a=n.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var s=a;switch(a=a.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":ig(s),lf(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}n.removeChild(s)}}function lN(n,a,s,l){for(;n.nodeType===1;){var f=s;if(n.nodeName.toLowerCase()!==a.toLowerCase()){if(!l&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(l){if(!n[rs])switch(a){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(h=n.getAttribute("rel"),h==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(h!==f.rel||n.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||n.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||n.getAttribute("title")!==(f.title==null?null:f.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(h=n.getAttribute("src"),(h!==(f.src==null?null:f.src)||n.getAttribute("type")!==(f.type==null?null:f.type)||n.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&h&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(a==="input"&&n.type==="hidden"){var h=f.name==null?null:""+f.name;if(f.type==="hidden"&&n.getAttribute("name")===h)return n}else return n;if(n=_n(n.nextSibling),n===null)break}return null}function cN(n,a,s){if(a==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!s||(n=_n(n.nextSibling),n===null))return null;return n}function S0(n,a){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!a||(n=_n(n.nextSibling),n===null))return null;return n}function rg(n){return n.data==="$?"||n.data==="$~"}function ag(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function uN(n,a){var s=n.ownerDocument;if(n.data==="$~")n._reactRetry=a;else if(n.data!=="$?"||s.readyState!=="loading")a();else{var l=function(){a(),s.removeEventListener("DOMContentLoaded",l)};s.addEventListener("DOMContentLoaded",l),n._reactRetry=l}}function _n(n){for(;n!=null;n=n.nextSibling){var a=n.nodeType;if(a===1||a===3)break;if(a===8){if(a=n.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return n}var og=null;function C0(n){n=n.nextSibling;for(var a=0;n;){if(n.nodeType===8){var s=n.data;if(s==="/$"||s==="/&"){if(a===0)return _n(n.nextSibling);a--}else s!=="$"&&s!=="$!"&&s!=="$?"&&s!=="$~"&&s!=="&"||a++}n=n.nextSibling}return null}function E0(n){n=n.previousSibling;for(var a=0;n;){if(n.nodeType===8){var s=n.data;if(s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"){if(a===0)return n;a--}else s!=="/$"&&s!=="/&"||a++}n=n.previousSibling}return null}function T0(n,a,s){switch(a=ru(s),n){case"html":if(n=a.documentElement,!n)throw Error(r(452));return n;case"head":if(n=a.head,!n)throw Error(r(453));return n;case"body":if(n=a.body,!n)throw Error(r(454));return n;default:throw Error(r(451))}}function Hs(n){for(var a=n.attributes;a.length;)n.removeAttributeNode(a[0]);lf(n)}var Vn=new Map,w0=new Set;function au(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var Hi=ee.d;ee.d={f:dN,r:fN,D:hN,C:gN,L:pN,m:mN,X:bN,S:vN,M:yN};function dN(){var n=Hi.f(),a=Xc();return n||a}function fN(n){var a=za(n);a!==null&&a.tag===5&&a.type==="form"?$b(a):Hi.r(n)}var go=typeof document>"u"?null:document;function O0(n,a,s){var l=go;if(l&&typeof a=="string"&&a){var f=On(a);f='link[rel="'+n+'"][href="'+f+'"]',typeof s=="string"&&(f+='[crossorigin="'+s+'"]'),w0.has(f)||(w0.add(f),n={rel:n,crossOrigin:s,href:a},l.querySelector(f)===null&&(a=l.createElement("link"),zt(a,"link",n),wt(a),l.head.appendChild(a)))}}function hN(n){Hi.D(n),O0("dns-prefetch",n,null)}function gN(n,a){Hi.C(n,a),O0("preconnect",n,a)}function pN(n,a,s){Hi.L(n,a,s);var l=go;if(l&&n&&a){var f='link[rel="preload"][as="'+On(a)+'"]';a==="image"&&s&&s.imageSrcSet?(f+='[imagesrcset="'+On(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(f+='[imagesizes="'+On(s.imageSizes)+'"]')):f+='[href="'+On(n)+'"]';var h=f;switch(a){case"style":h=po(n);break;case"script":h=mo(n)}Vn.has(h)||(n=b({rel:"preload",href:a==="image"&&s&&s.imageSrcSet?void 0:n,as:a},s),Vn.set(h,n),l.querySelector(f)!==null||a==="style"&&l.querySelector(Fs(h))||a==="script"&&l.querySelector($s(h))||(a=l.createElement("link"),zt(a,"link",n),wt(a),l.head.appendChild(a)))}}function mN(n,a){Hi.m(n,a);var s=go;if(s&&n){var l=a&&typeof a.as=="string"?a.as:"script",f='link[rel="modulepreload"][as="'+On(l)+'"][href="'+On(n)+'"]',h=f;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=mo(n)}if(!Vn.has(h)&&(n=b({rel:"modulepreload",href:n},a),Vn.set(h,n),s.querySelector(f)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector($s(h)))return}l=s.createElement("link"),zt(l,"link",n),wt(l),s.head.appendChild(l)}}}function vN(n,a,s){Hi.S(n,a,s);var l=go;if(l&&n){var f=Da(l).hoistableStyles,h=po(n);a=a||"default";var v=f.get(h);if(!v){var S={loading:0,preload:null};if(v=l.querySelector(Fs(h)))S.loading=5;else{n=b({rel:"stylesheet",href:n,"data-precedence":a},s),(s=Vn.get(h))&&sg(n,s);var N=v=l.createElement("link");wt(N),zt(N,"link",n),N._p=new Promise(function(B,q){N.onload=B,N.onerror=q}),N.addEventListener("load",function(){S.loading|=1}),N.addEventListener("error",function(){S.loading|=2}),S.loading|=4,ou(v,a,l)}v={type:"stylesheet",instance:v,count:1,state:S},f.set(h,v)}}}function bN(n,a){Hi.X(n,a);var s=go;if(s&&n){var l=Da(s).hoistableScripts,f=mo(n),h=l.get(f);h||(h=s.querySelector($s(f)),h||(n=b({src:n,async:!0},a),(a=Vn.get(f))&&lg(n,a),h=s.createElement("script"),wt(h),zt(h,"link",n),s.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},l.set(f,h))}}function yN(n,a){Hi.M(n,a);var s=go;if(s&&n){var l=Da(s).hoistableScripts,f=mo(n),h=l.get(f);h||(h=s.querySelector($s(f)),h||(n=b({src:n,async:!0,type:"module"},a),(a=Vn.get(f))&&lg(n,a),h=s.createElement("script"),wt(h),zt(h,"link",n),s.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},l.set(f,h))}}function R0(n,a,s,l){var f=(f=Te.current)?au(f):null;if(!f)throw Error(r(446));switch(n){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(a=po(s.href),s=Da(f).hoistableStyles,l=s.get(a),l||(l={type:"style",instance:null,count:0,state:null},s.set(a,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){n=po(s.href);var h=Da(f).hoistableStyles,v=h.get(n);if(v||(f=f.ownerDocument||f,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(n,v),(h=f.querySelector(Fs(n)))&&!h._p&&(v.instance=h,v.state.loading=5),Vn.has(n)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},Vn.set(n,s),h||xN(f,n,s,v.state))),a&&l===null)throw Error(r(528,""));return v}if(a&&l!==null)throw Error(r(529,""));return null;case"script":return a=s.async,s=s.src,typeof s=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=mo(s),s=Da(f).hoistableScripts,l=s.get(a),l||(l={type:"script",instance:null,count:0,state:null},s.set(a,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,n))}}function po(n){return'href="'+On(n)+'"'}function Fs(n){return'link[rel="stylesheet"]['+n+"]"}function k0(n){return b({},n,{"data-precedence":n.precedence,precedence:null})}function xN(n,a,s,l){n.querySelector('link[rel="preload"][as="style"]['+a+"]")?l.loading=1:(a=n.createElement("link"),l.preload=a,a.addEventListener("load",function(){return l.loading|=1}),a.addEventListener("error",function(){return l.loading|=2}),zt(a,"link",s),wt(a),n.head.appendChild(a))}function mo(n){return'[src="'+On(n)+'"]'}function $s(n){return"script[async]"+n}function N0(n,a,s){if(a.count++,a.instance===null)switch(a.type){case"style":var l=n.querySelector('style[data-href~="'+On(s.href)+'"]');if(l)return a.instance=l,wt(l),l;var f=b({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return l=(n.ownerDocument||n).createElement("style"),wt(l),zt(l,"style",f),ou(l,s.precedence,n),a.instance=l;case"stylesheet":f=po(s.href);var h=n.querySelector(Fs(f));if(h)return a.state.loading|=4,a.instance=h,wt(h),h;l=k0(s),(f=Vn.get(f))&&sg(l,f),h=(n.ownerDocument||n).createElement("link"),wt(h);var v=h;return v._p=new Promise(function(S,N){v.onload=S,v.onerror=N}),zt(h,"link",l),a.state.loading|=4,ou(h,s.precedence,n),a.instance=h;case"script":return h=mo(s.src),(f=n.querySelector($s(h)))?(a.instance=f,wt(f),f):(l=s,(f=Vn.get(h))&&(l=b({},s),lg(l,f)),n=n.ownerDocument||n,f=n.createElement("script"),wt(f),zt(f,"link",l),n.head.appendChild(f),a.instance=f);case"void":return null;default:throw Error(r(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(l=a.instance,a.state.loading|=4,ou(l,s.precedence,n));return a.instance}function ou(n,a,s){for(var l=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=l.length?l[l.length-1]:null,h=f,v=0;v<l.length;v++){var S=l[v];if(S.dataset.precedence===a)h=S;else if(h!==f)break}h?h.parentNode.insertBefore(n,h.nextSibling):(a=s.nodeType===9?s.head:s,a.insertBefore(n,a.firstChild))}function sg(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.title==null&&(n.title=a.title)}function lg(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.integrity==null&&(n.integrity=a.integrity)}var su=null;function I0(n,a,s){if(su===null){var l=new Map,f=su=new Map;f.set(s,l)}else f=su,l=f.get(s),l||(l=new Map,f.set(s,l));if(l.has(n))return l;for(l.set(n,null),s=s.getElementsByTagName(n),f=0;f<s.length;f++){var h=s[f];if(!(h[rs]||h[Pt]||n==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var v=h.getAttribute(a)||"";v=n+v;var S=l.get(v);S?S.push(h):l.set(v,[h])}}return l}function P0(n,a,s){n=n.ownerDocument||n,n.head.insertBefore(s,a==="title"?n.querySelector("head > title"):null)}function SN(n,a,s){if(s===1||a.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return n=a.disabled,typeof a.precedence=="string"&&n==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function A0(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function CN(n,a,s,l){if(s.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var f=po(l.href),h=a.querySelector(Fs(f));if(h){a=h._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(n.count++,n=lu.bind(n),a.then(n,n)),s.state.loading|=4,s.instance=h,wt(h);return}h=a.ownerDocument||a,l=k0(l),(f=Vn.get(f))&&sg(l,f),h=h.createElement("link"),wt(h);var v=h;v._p=new Promise(function(S,N){v.onload=S,v.onerror=N}),zt(h,"link",l),s.instance=h}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(s,a),(a=s.state.preload)&&(s.state.loading&3)===0&&(n.count++,s=lu.bind(n),a.addEventListener("load",s),a.addEventListener("error",s))}}var cg=0;function EN(n,a){return n.stylesheets&&n.count===0&&uu(n,n.stylesheets),0<n.count||0<n.imgCount?function(s){var l=setTimeout(function(){if(n.stylesheets&&uu(n,n.stylesheets),n.unsuspend){var h=n.unsuspend;n.unsuspend=null,h()}},6e4+a);0<n.imgBytes&&cg===0&&(cg=62500*iN());var f=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&uu(n,n.stylesheets),n.unsuspend)){var h=n.unsuspend;n.unsuspend=null,h()}},(n.imgBytes>cg?50:800)+a);return n.unsuspend=s,function(){n.unsuspend=null,clearTimeout(l),clearTimeout(f)}}:null}function lu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)uu(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var cu=null;function uu(n,a){n.stylesheets=null,n.unsuspend!==null&&(n.count++,cu=new Map,a.forEach(TN,n),cu=null,lu.call(n))}function TN(n,a){if(!(a.state.loading&4)){var s=cu.get(n);if(s)var l=s.get(null);else{s=new Map,cu.set(n,s);for(var f=n.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<f.length;h++){var v=f[h];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(s.set(v.dataset.precedence,v),l=v)}l&&s.set(null,l)}f=a.instance,v=f.getAttribute("data-precedence"),h=s.get(v)||l,h===l&&s.set(null,f),s.set(v,f),this.count++,l=lu.bind(this),f.addEventListener("load",l),f.addEventListener("error",l),h?h.parentNode.insertBefore(f,h.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(f,n.firstChild)),a.state.loading|=4}}var Us={$$typeof:I,Provider:null,Consumer:null,_currentValue:se,_currentValue2:se,_threadCount:0};function wN(n,a,s,l,f,h,v,S,N){this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=rf(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rf(0),this.hiddenUpdates=rf(null),this.identifierPrefix=l,this.onUncaughtError=f,this.onCaughtError=h,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=N,this.incompleteTransitions=new Map}function _0(n,a,s,l,f,h,v,S,N,B,q,X){return n=new wN(n,a,s,v,N,B,q,X,S),a=1,h===!0&&(a|=24),h=un(3,null,null,a),n.current=h,h.stateNode=n,a=$f(),a.refCount++,n.pooledCache=a,a.refCount++,h.memoizedState={element:l,isDehydrated:s,cache:a},Wf(h),n}function V0(n){return n?(n=Wa,n):Wa}function z0(n,a,s,l,f,h){f=V0(f),l.context===null?l.context=f:l.pendingContext=f,l=ur(a),l.payload={element:s},h=h===void 0?null:h,h!==null&&(l.callback=h),s=dr(n,l,a),s!==null&&(Jt(s,n,a),Ss(s,n,a))}function D0(n,a){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var s=n.retryLane;n.retryLane=s!==0&&s<a?s:a}}function ug(n,a){D0(n,a),(n=n.alternate)&&D0(n,a)}function M0(n){if(n.tag===13||n.tag===31){var a=qr(n,67108864);a!==null&&Jt(a,n,67108864),ug(n,67108864)}}function L0(n){if(n.tag===13||n.tag===31){var a=pn();a=af(a);var s=qr(n,a);s!==null&&Jt(s,n,a),ug(n,a)}}var du=!0;function ON(n,a,s,l){var f=F.T;F.T=null;var h=ee.p;try{ee.p=2,dg(n,a,s,l)}finally{ee.p=h,F.T=f}}function RN(n,a,s,l){var f=F.T;F.T=null;var h=ee.p;try{ee.p=8,dg(n,a,s,l)}finally{ee.p=h,F.T=f}}function dg(n,a,s,l){if(du){var f=fg(l);if(f===null)Qh(n,a,l,fu,s),H0(n,l);else if(NN(f,n,a,s,l))l.stopPropagation();else if(H0(n,l),a&4&&-1<kN.indexOf(n)){for(;f!==null;){var h=za(f);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var v=$r(h.pendingLanes);if(v!==0){var S=h;for(S.pendingLanes|=2,S.entangledLanes|=2;v;){var N=1<<31-ln(v);S.entanglements[1]|=N,v&=~N}ri(h),(De&6)===0&&(Yc=on()+500,Ms(0))}}break;case 31:case 13:S=qr(h,2),S!==null&&Jt(S,h,2),Xc(),ug(h,2)}if(h=fg(l),h===null&&Qh(n,a,l,fu,s),h===f)break;f=h}f!==null&&l.stopPropagation()}else Qh(n,a,l,null,s)}}function fg(n){return n=gf(n),hg(n)}var fu=null;function hg(n){if(fu=null,n=Va(n),n!==null){var a=c(n);if(a===null)n=null;else{var s=a.tag;if(s===13){if(n=u(a),n!==null)return n;n=null}else if(s===31){if(n=d(a),n!==null)return n;n=null}else if(s===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;n=null}else a!==n&&(n=null)}}return fu=n,null}function B0(n){switch(n){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(hR()){case qm:return 2;case Ym:return 8;case tc:case gR:return 32;case Km:return 268435456;default:return 32}default:return 32}}var gg=!1,Cr=null,Er=null,Tr=null,js=new Map,Gs=new Map,wr=[],kN="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".split(" ");function H0(n,a){switch(n){case"focusin":case"focusout":Cr=null;break;case"dragenter":case"dragleave":Er=null;break;case"mouseover":case"mouseout":Tr=null;break;case"pointerover":case"pointerout":js.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Gs.delete(a.pointerId)}}function Ws(n,a,s,l,f,h){return n===null||n.nativeEvent!==h?(n={blockedOn:a,domEventName:s,eventSystemFlags:l,nativeEvent:h,targetContainers:[f]},a!==null&&(a=za(a),a!==null&&M0(a)),n):(n.eventSystemFlags|=l,a=n.targetContainers,f!==null&&a.indexOf(f)===-1&&a.push(f),n)}function NN(n,a,s,l,f){switch(a){case"focusin":return Cr=Ws(Cr,n,a,s,l,f),!0;case"dragenter":return Er=Ws(Er,n,a,s,l,f),!0;case"mouseover":return Tr=Ws(Tr,n,a,s,l,f),!0;case"pointerover":var h=f.pointerId;return js.set(h,Ws(js.get(h)||null,n,a,s,l,f)),!0;case"gotpointercapture":return h=f.pointerId,Gs.set(h,Ws(Gs.get(h)||null,n,a,s,l,f)),!0}return!1}function F0(n){var a=Va(n.target);if(a!==null){var s=c(a);if(s!==null){if(a=s.tag,a===13){if(a=u(s),a!==null){n.blockedOn=a,tv(n.priority,function(){L0(s)});return}}else if(a===31){if(a=d(s),a!==null){n.blockedOn=a,tv(n.priority,function(){L0(s)});return}}else if(a===3&&s.stateNode.current.memoizedState.isDehydrated){n.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}n.blockedOn=null}function hu(n){if(n.blockedOn!==null)return!1;for(var a=n.targetContainers;0<a.length;){var s=fg(n.nativeEvent);if(s===null){s=n.nativeEvent;var l=new s.constructor(s.type,s);hf=l,s.target.dispatchEvent(l),hf=null}else return a=za(s),a!==null&&M0(a),n.blockedOn=s,!1;a.shift()}return!0}function $0(n,a,s){hu(n)&&s.delete(a)}function IN(){gg=!1,Cr!==null&&hu(Cr)&&(Cr=null),Er!==null&&hu(Er)&&(Er=null),Tr!==null&&hu(Tr)&&(Tr=null),js.forEach($0),Gs.forEach($0)}function gu(n,a){n.blockedOn===a&&(n.blockedOn=null,gg||(gg=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,IN)))}var pu=null;function U0(n){pu!==n&&(pu=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){pu===n&&(pu=null);for(var a=0;a<n.length;a+=3){var s=n[a],l=n[a+1],f=n[a+2];if(typeof l!="function"){if(hg(l||s)===null)continue;break}var h=za(s);h!==null&&(n.splice(a,3),a-=3,fh(h,{pending:!0,data:f,method:s.method,action:l},l,f))}}))}function vo(n){function a(N){return gu(N,n)}Cr!==null&&gu(Cr,n),Er!==null&&gu(Er,n),Tr!==null&&gu(Tr,n),js.forEach(a),Gs.forEach(a);for(var s=0;s<wr.length;s++){var l=wr[s];l.blockedOn===n&&(l.blockedOn=null)}for(;0<wr.length&&(s=wr[0],s.blockedOn===null);)F0(s),s.blockedOn===null&&wr.shift();if(s=(n.ownerDocument||n).$$reactFormReplay,s!=null)for(l=0;l<s.length;l+=3){var f=s[l],h=s[l+1],v=f[qt]||null;if(typeof h=="function")v||U0(s);else if(v){var S=null;if(h&&h.hasAttribute("formAction")){if(f=h,v=h[qt]||null)S=v.formAction;else if(hg(f)!==null)continue}else S=v.action;typeof S=="function"?s[l+1]=S:(s.splice(l,3),l-=3),U0(s)}}}function j0(){function n(h){h.canIntercept&&h.info==="react-transition"&&h.intercept({handler:function(){return new Promise(function(v){return f=v})},focusReset:"manual",scroll:"manual"})}function a(){f!==null&&(f(),f=null),l||setTimeout(s,20)}function s(){if(!l&&!navigation.transition){var h=navigation.currentEntry;h&&h.url!=null&&navigation.navigate(h.url,{state:h.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,f=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(s,100),function(){l=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),f!==null&&(f(),f=null)}}}function pg(n){this._internalRoot=n}mu.prototype.render=pg.prototype.render=function(n){var a=this._internalRoot;if(a===null)throw Error(r(409));var s=a.current,l=pn();z0(s,l,n,a,null,null)},mu.prototype.unmount=pg.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var a=n.containerInfo;z0(n.current,2,null,n,null,null),Xc(),a[_a]=null}};function mu(n){this._internalRoot=n}mu.prototype.unstable_scheduleHydration=function(n){if(n){var a=ev();n={blockedOn:null,target:n,priority:a};for(var s=0;s<wr.length&&a!==0&&a<wr[s].priority;s++);wr.splice(s,0,n),s===0&&F0(n)}};var G0=t.version;if(G0!=="19.2.0")throw Error(r(527,G0,"19.2.0"));ee.findDOMNode=function(n){var a=n._reactInternals;if(a===void 0)throw typeof n.render=="function"?Error(r(188)):(n=Object.keys(n).join(","),Error(r(268,n)));return n=p(a),n=n!==null?m(n):null,n=n===null?null:n.stateNode,n};var PN={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:F,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var vu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vu.isDisabled&&vu.supportsFiber)try{ts=vu.inject(PN),sn=vu}catch{}}return Ys.createRoot=function(n,a){if(!o(n))throw Error(r(299));var s=!1,l="",f=Zb,h=Jb,v=ey;return a!=null&&(a.unstable_strictMode===!0&&(s=!0),a.identifierPrefix!==void 0&&(l=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(h=a.onCaughtError),a.onRecoverableError!==void 0&&(v=a.onRecoverableError)),a=_0(n,1,!1,null,null,s,l,null,f,h,v,j0),n[_a]=a.current,Xh(n),new pg(a)},Ys.hydrateRoot=function(n,a,s){if(!o(n))throw Error(r(299));var l=!1,f="",h=Zb,v=Jb,S=ey,N=null;return s!=null&&(s.unstable_strictMode===!0&&(l=!0),s.identifierPrefix!==void 0&&(f=s.identifierPrefix),s.onUncaughtError!==void 0&&(h=s.onUncaughtError),s.onCaughtError!==void 0&&(v=s.onCaughtError),s.onRecoverableError!==void 0&&(S=s.onRecoverableError),s.formState!==void 0&&(N=s.formState)),a=_0(n,1,!0,a,s??null,l,f,N,h,v,S,j0),a.context=V0(null),s=a.current,l=pn(),l=af(l),f=ur(l),f.callback=null,dr(s,f,l),s=l,a.current.lanes=s,is(a,s),ri(a),n[_a]=a.current,Xh(n),new mu(a)},Ys.version="19.2.0",Ys}var nx;function $N(){if(nx)return bg.exports;nx=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(),bg.exports=FN(),bg.exports}var UN=$N();const r8=wC(UN);function RC(e){var t=Object.create(null);return function(i){return t[i]===void 0&&(t[i]=e(i)),t[i]}}var jN=/^((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)-.*))$/,GN=RC(function(e){return jN.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function WN(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 qN(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 YN=(function(){function e(i){var r=this;this._insertTag=function(o){var c;r.tags.length===0?r.insertionPoint?c=r.insertionPoint.nextSibling:r.prepend?c=r.container.firstChild:c=r.before:c=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,c),r.tags.push(o)},this.isSpeedy=i.speedy===void 0?!0:i.speedy,this.tags=[],this.ctr=0,this.nonce=i.nonce,this.key=i.key,this.container=i.container,this.prepend=i.prepend,this.insertionPoint=i.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(qN(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var c=WN(o);try{c.insertRule(r,c.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e})(),Ht="-ms-",rd="-moz-",Me="-webkit-",kC="comm",$p="rule",Up="decl",KN="@import",NC="@keyframes",XN="@layer",QN=Math.abs,Sd=String.fromCharCode,ZN=Object.assign;function JN(e,t){return Lt(e,0)^45?(((t<<2^Lt(e,0))<<2^Lt(e,1))<<2^Lt(e,2))<<2^Lt(e,3):0}function IC(e){return e.trim()}function eI(e,t){return(e=t.exec(e))?e[0]:e}function Le(e,t,i){return e.replace(t,i)}function Qg(e,t){return e.indexOf(t)}function Lt(e,t){return e.charCodeAt(t)|0}function Cl(e,t,i){return e.slice(t,i)}function li(e){return e.length}function jp(e){return e.length}function bu(e,t){return t.push(e),e}function tI(e,t){return e.map(t).join("")}var Cd=1,Mo=1,PC=0,rn=0,bt=0,Ho="";function Ed(e,t,i,r,o,c,u){return{value:e,root:t,parent:i,type:r,props:o,children:c,line:Cd,column:Mo,length:u,return:""}}function Ks(e,t){return ZN(Ed("",null,null,"",null,null,0),e,{length:-e.length},t)}function nI(){return bt}function iI(){return bt=rn>0?Lt(Ho,--rn):0,Mo--,bt===10&&(Mo=1,Cd--),bt}function yn(){return bt=rn<PC?Lt(Ho,rn++):0,Mo++,bt===10&&(Mo=1,Cd++),bt}function di(){return Lt(Ho,rn)}function Bu(){return rn}function Ll(e,t){return Cl(Ho,e,t)}function El(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 AC(e){return Cd=Mo=1,PC=li(Ho=e),rn=0,[]}function _C(e){return Ho="",e}function Hu(e){return IC(Ll(rn-1,Zg(e===91?e+2:e===40?e+1:e)))}function rI(e){for(;(bt=di())&&bt<33;)yn();return El(e)>2||El(bt)>3?"":" "}function aI(e,t){for(;--t&&yn()&&!(bt<48||bt>102||bt>57&&bt<65||bt>70&&bt<97););return Ll(e,Bu()+(t<6&&di()==32&&yn()==32))}function Zg(e){for(;yn();)switch(bt){case e:return rn;case 34:case 39:e!==34&&e!==39&&Zg(bt);break;case 40:e===41&&Zg(e);break;case 92:yn();break}return rn}function oI(e,t){for(;yn()&&e+bt!==57;)if(e+bt===84&&di()===47)break;return"/*"+Ll(t,rn-1)+"*"+Sd(e===47?e:yn())}function sI(e){for(;!El(di());)yn();return Ll(e,rn)}function lI(e){return _C(Fu("",null,null,null,[""],e=AC(e),0,[0],e))}function Fu(e,t,i,r,o,c,u,d,g){for(var p=0,m=0,b=u,y=0,x=0,T=0,E=1,w=1,R=1,P=0,I="",O=o,k=c,U=r,H=I;w;)switch(T=P,P=yn()){case 40:if(T!=108&&Lt(H,b-1)==58){Qg(H+=Le(Hu(P),"&","&\f"),"&\f")!=-1&&(R=-1);break}case 34:case 39:case 91:H+=Hu(P);break;case 9:case 10:case 13:case 32:H+=rI(T);break;case 92:H+=aI(Bu()-1,7);continue;case 47:switch(di()){case 42:case 47:bu(cI(oI(yn(),Bu()),t,i),g);break;default:H+="/"}break;case 123*E:d[p++]=li(H)*R;case 125*E:case 59:case 0:switch(P){case 0:case 125:w=0;case 59+m:R==-1&&(H=Le(H,/\f/g,"")),x>0&&li(H)-b&&bu(x>32?rx(H+";",r,i,b-1):rx(Le(H," ","")+";",r,i,b-2),g);break;case 59:H+=";";default:if(bu(U=ix(H,t,i,p,m,o,d,I,O=[],k=[],b),c),P===123)if(m===0)Fu(H,t,U,U,O,c,b,d,k);else switch(y===99&&Lt(H,3)===110?100:y){case 100:case 108:case 109:case 115:Fu(e,U,U,r&&bu(ix(e,U,U,0,0,o,d,I,o,O=[],b),k),o,k,b,d,r?O:k);break;default:Fu(H,U,U,U,[""],k,0,d,k)}}p=m=x=0,E=R=1,I=H="",b=u;break;case 58:b=1+li(H),x=T;default:if(E<1){if(P==123)--E;else if(P==125&&E++==0&&iI()==125)continue}switch(H+=Sd(P),P*E){case 38:R=m>0?1:(H+="\f",-1);break;case 44:d[p++]=(li(H)-1)*R,R=1;break;case 64:di()===45&&(H+=Hu(yn())),y=di(),m=b=li(I=H+=sI(Bu())),P++;break;case 45:T===45&&li(H)==2&&(E=0)}}return c}function ix(e,t,i,r,o,c,u,d,g,p,m){for(var b=o-1,y=o===0?c:[""],x=jp(y),T=0,E=0,w=0;T<r;++T)for(var R=0,P=Cl(e,b+1,b=QN(E=u[T])),I=e;R<x;++R)(I=IC(E>0?y[R]+" "+P:Le(P,/&\f/g,y[R])))&&(g[w++]=I);return Ed(e,t,i,o===0?$p:d,g,p,m)}function cI(e,t,i){return Ed(e,t,i,kC,Sd(nI()),Cl(e,2,-2),0)}function rx(e,t,i,r){return Ed(e,t,i,Up,Cl(e,0,r),Cl(e,r+1,-1),r)}function Ao(e,t){for(var i="",r=jp(e),o=0;o<r;o++)i+=t(e[o],o,e,t)||"";return i}function uI(e,t,i,r){switch(e.type){case XN:if(e.children.length)break;case KN:case Up:return e.return=e.return||e.value;case kC:return"";case NC:return e.return=e.value+"{"+Ao(e.children,r)+"}";case $p:e.value=e.props.join(",")}return li(i=Ao(e.children,r))?e.return=e.value+"{"+i+"}":""}function dI(e){var t=jp(e);return function(i,r,o,c){for(var u="",d=0;d<t;d++)u+=e[d](i,r,o,c)||"";return u}}function fI(e){return function(t){t.root||(t=t.return)&&e(t)}}var hI=function(t,i,r){for(var o=0,c=0;o=c,c=di(),o===38&&c===12&&(i[r]=1),!El(c);)yn();return Ll(t,rn)},gI=function(t,i){var r=-1,o=44;do switch(El(o)){case 0:o===38&&di()===12&&(i[r]=1),t[r]+=hI(rn-1,i,r);break;case 2:t[r]+=Hu(o);break;case 4:if(o===44){t[++r]=di()===58?"&\f":"",i[r]=t[r].length;break}default:t[r]+=Sd(o)}while(o=yn());return t},pI=function(t,i){return _C(gI(AC(t),i))},ax=new WeakMap,mI=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var i=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&i.charCodeAt(0)!==58&&!ax.get(r))&&!o){ax.set(t,!0);for(var c=[],u=pI(i,c),d=r.props,g=0,p=0;g<u.length;g++)for(var m=0;m<d.length;m++,p++)t.props[p]=c[g]?u[g].replace(/&\f/g,d[m]):d[m]+" "+u[g]}}},vI=function(t){if(t.type==="decl"){var i=t.value;i.charCodeAt(0)===108&&i.charCodeAt(2)===98&&(t.return="",t.value="")}};function VC(e,t){switch(JN(e,t)){case 5103:return Me+"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 Me+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Me+e+rd+e+Ht+e+e;case 6828:case 4268:return Me+e+Ht+e+e;case 6165:return Me+e+Ht+"flex-"+e+e;case 5187:return Me+e+Le(e,/(\w+).+(:[^]+)/,Me+"box-$1$2"+Ht+"flex-$1$2")+e;case 5443:return Me+e+Ht+"flex-item-"+Le(e,/flex-|-self/,"")+e;case 4675:return Me+e+Ht+"flex-line-pack"+Le(e,/align-content|flex-|-self/,"")+e;case 5548:return Me+e+Ht+Le(e,"shrink","negative")+e;case 5292:return Me+e+Ht+Le(e,"basis","preferred-size")+e;case 6060:return Me+"box-"+Le(e,"-grow","")+Me+e+Ht+Le(e,"grow","positive")+e;case 4554:return Me+Le(e,/([^-])(transform)/g,"$1"+Me+"$2")+e;case 6187:return Le(Le(Le(e,/(zoom-|grab)/,Me+"$1"),/(image-set)/,Me+"$1"),e,"")+e;case 5495:case 3959:return Le(e,/(image-set\([^]*)/,Me+"$1$`$1");case 4968:return Le(Le(e,/(.+:)(flex-)?(.*)/,Me+"box-pack:$3"+Ht+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Me+e+e;case 4095:case 3583:case 4068:case 2532:return Le(e,/(.+)-inline(.+)/,Me+"$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(li(e)-1-t>6)switch(Lt(e,t+1)){case 109:if(Lt(e,t+4)!==45)break;case 102:return Le(e,/(.+:)(.+)-([^]+)/,"$1"+Me+"$2-$3$1"+rd+(Lt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Qg(e,"stretch")?VC(Le(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Lt(e,t+1)!==115)break;case 6444:switch(Lt(e,li(e)-3-(~Qg(e,"!important")&&10))){case 107:return Le(e,":",":"+Me)+e;case 101:return Le(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Me+(Lt(e,14)===45?"inline-":"")+"box$3$1"+Me+"$2$3$1"+Ht+"$2box$3")+e}break;case 5936:switch(Lt(e,t+11)){case 114:return Me+e+Ht+Le(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Me+e+Ht+Le(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Me+e+Ht+Le(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Me+e+Ht+e+e}return e}var bI=function(t,i,r,o){if(t.length>-1&&!t.return)switch(t.type){case Up:t.return=VC(t.value,t.length);break;case NC:return Ao([Ks(t,{value:Le(t.value,"@","@"+Me)})],o);case $p:if(t.length)return tI(t.props,function(c){switch(eI(c,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ao([Ks(t,{props:[Le(c,/:(read-\w+)/,":"+rd+"$1")]})],o);case"::placeholder":return Ao([Ks(t,{props:[Le(c,/:(plac\w+)/,":"+Me+"input-$1")]}),Ks(t,{props:[Le(c,/:(plac\w+)/,":"+rd+"$1")]}),Ks(t,{props:[Le(c,/:(plac\w+)/,Ht+"input-$1")]})],o)}return""})}},yI=[bI],xI=function(t){var i=t.key;if(i==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(E){var w=E.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(E),E.setAttribute("data-s",""))})}var o=t.stylisPlugins||yI,c={},u,d=[];u=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+i+' "]'),function(E){for(var w=E.getAttribute("data-emotion").split(" "),R=1;R<w.length;R++)c[w[R]]=!0;d.push(E)});var g,p=[mI,vI];{var m,b=[uI,fI(function(E){m.insert(E)})],y=dI(p.concat(o,b)),x=function(w){return Ao(lI(w),y)};g=function(w,R,P,I){m=P,x(w?w+"{"+R.styles+"}":R.styles),I&&(T.inserted[R.name]=!0)}}var T={key:i,sheet:new YN({key:i,container:u,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:c,registered:{},insert:g};return T.sheet.hydrate(d),T},Cg={exports:{}},He={};var ox;function SI(){if(ox)return He;ox=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,i=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,g=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,b=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,T=e?Symbol.for("react.lazy"):60116,E=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,R=e?Symbol.for("react.responder"):60118,P=e?Symbol.for("react.scope"):60119;function I(k){if(typeof k=="object"&&k!==null){var U=k.$$typeof;switch(U){case t:switch(k=k.type,k){case g:case p:case r:case c:case o:case b:return k;default:switch(k=k&&k.$$typeof,k){case d:case m:case T:case x:case u:return k;default:return U}}case i:return U}}}function O(k){return I(k)===p}return He.AsyncMode=g,He.ConcurrentMode=p,He.ContextConsumer=d,He.ContextProvider=u,He.Element=t,He.ForwardRef=m,He.Fragment=r,He.Lazy=T,He.Memo=x,He.Portal=i,He.Profiler=c,He.StrictMode=o,He.Suspense=b,He.isAsyncMode=function(k){return O(k)||I(k)===g},He.isConcurrentMode=O,He.isContextConsumer=function(k){return I(k)===d},He.isContextProvider=function(k){return I(k)===u},He.isElement=function(k){return typeof k=="object"&&k!==null&&k.$$typeof===t},He.isForwardRef=function(k){return I(k)===m},He.isFragment=function(k){return I(k)===r},He.isLazy=function(k){return I(k)===T},He.isMemo=function(k){return I(k)===x},He.isPortal=function(k){return I(k)===i},He.isProfiler=function(k){return I(k)===c},He.isStrictMode=function(k){return I(k)===o},He.isSuspense=function(k){return I(k)===b},He.isValidElementType=function(k){return typeof k=="string"||typeof k=="function"||k===r||k===p||k===c||k===o||k===b||k===y||typeof k=="object"&&k!==null&&(k.$$typeof===T||k.$$typeof===x||k.$$typeof===u||k.$$typeof===d||k.$$typeof===m||k.$$typeof===w||k.$$typeof===R||k.$$typeof===P||k.$$typeof===E)},He.typeOf=I,He}var sx;function CI(){return sx||(sx=1,Cg.exports=SI()),Cg.exports}var Eg,lx;function EI(){if(lx)return Eg;lx=1;var e=CI(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};c[e.ForwardRef]=r,c[e.Memo]=o;function u(T){return e.isMemo(T)?o:c[T.$$typeof]||t}var d=Object.defineProperty,g=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,m=Object.getOwnPropertyDescriptor,b=Object.getPrototypeOf,y=Object.prototype;function x(T,E,w){if(typeof E!="string"){if(y){var R=b(E);R&&R!==y&&x(T,R,w)}var P=g(E);p&&(P=P.concat(p(E)));for(var I=u(T),O=u(E),k=0;k<P.length;++k){var U=P[k];if(!i[U]&&!(w&&w[U])&&!(O&&O[U])&&!(I&&I[U])){var H=m(E,U);try{d(T,U,H)}catch{}}}}return T}return Eg=x,Eg}EI();var TI=!0;function zC(e,t,i){var r="";return i.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var Gp=function(t,i,r){var o=t.key+"-"+i.name;(r===!1||TI===!1)&&t.registered[o]===void 0&&(t.registered[o]=i.styles)},Wp=function(t,i,r){Gp(t,i,r);var o=t.key+"-"+i.name;if(t.inserted[i.name]===void 0){var c=i;do t.insert(i===c?"."+o:"",c,t.sheet,!0),c=c.next;while(c!==void 0)}};function wI(e){for(var t=0,i,r=0,o=e.length;o>=4;++r,o-=4)i=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,i=(i&65535)*1540483477+((i>>>16)*59797<<16),i^=i>>>24,t=(i&65535)*1540483477+((i>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var OI={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},RI=/[A-Z]|^ms/g,kI=/_EMO_([^_]+?)_([^]*?)_EMO_/g,DC=function(t){return t.charCodeAt(1)===45},cx=function(t){return t!=null&&typeof t!="boolean"},Tg=RC(function(e){return DC(e)?e:e.replace(RI,"-$&").toLowerCase()}),ux=function(t,i){switch(t){case"animation":case"animationName":if(typeof i=="string")return i.replace(kI,function(r,o,c){return ci={name:o,styles:c,next:ci},o})}return OI[t]!==1&&!DC(t)&&typeof i=="number"&&i!==0?i+"px":i};function Tl(e,t,i){if(i==null)return"";var r=i;if(r.__emotion_styles!==void 0)return r;switch(typeof i){case"boolean":return"";case"object":{var o=i;if(o.anim===1)return ci={name:o.name,styles:o.styles,next:ci},o.name;var c=i;if(c.styles!==void 0){var u=c.next;if(u!==void 0)for(;u!==void 0;)ci={name:u.name,styles:u.styles,next:ci},u=u.next;var d=c.styles+";";return d}return NI(e,t,i)}case"function":{if(e!==void 0){var g=ci,p=i(e);return ci=g,Tl(e,t,p)}break}}var m=i;if(t==null)return m;var b=t[m];return b!==void 0?b:m}function NI(e,t,i){var r="";if(Array.isArray(i))for(var o=0;o<i.length;o++)r+=Tl(e,t,i[o])+";";else for(var c in i){var u=i[c];if(typeof u!="object"){var d=u;t!=null&&t[d]!==void 0?r+=c+"{"+t[d]+"}":cx(d)&&(r+=Tg(c)+":"+ux(c,d)+";")}else if(Array.isArray(u)&&typeof u[0]=="string"&&(t==null||t[u[0]]===void 0))for(var g=0;g<u.length;g++)cx(u[g])&&(r+=Tg(c)+":"+ux(c,u[g])+";");else{var p=Tl(e,t,u);switch(c){case"animation":case"animationName":{r+=Tg(c)+":"+p+";";break}default:r+=c+"{"+p+"}"}}}return r}var dx=/label:\s*([^\s;{]+)\s*(;|$)/g,ci;function qp(e,t,i){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";ci=void 0;var c=e[0];if(c==null||c.raw===void 0)r=!1,o+=Tl(i,t,c);else{var u=c;o+=u[0]}for(var d=1;d<e.length;d++)if(o+=Tl(i,t,e[d]),r){var g=c;o+=g[d]}dx.lastIndex=0;for(var p="",m;(m=dx.exec(o))!==null;)p+="-"+m[1];var b=wI(o)+p;return{name:b,styles:o,next:ci}}var II=function(t){return t()},MC=X0.useInsertionEffect?X0.useInsertionEffect:!1,LC=MC||II,fx=MC||C.useLayoutEffect,BC=C.createContext(typeof HTMLElement<"u"?xI({key:"css"}):null);BC.Provider;var Yp=function(t){return C.forwardRef(function(i,r){var o=C.useContext(BC);return t(i,o,r)})},Kp=C.createContext({}),Xp={}.hasOwnProperty,Jg="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",PI=function(t,i){var r={};for(var o in i)Xp.call(i,o)&&(r[o]=i[o]);return r[Jg]=t,r},AI=function(t){var i=t.cache,r=t.serialized,o=t.isStringTag;return Gp(i,r,o),LC(function(){return Wp(i,r,o)}),null},_I=Yp(function(e,t,i){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[Jg],c=[r],u="";typeof e.className=="string"?u=zC(t.registered,c,e.className):e.className!=null&&(u=e.className+" ");var d=qp(c,void 0,C.useContext(Kp));u+=t.key+"-"+d.name;var g={};for(var p in e)Xp.call(e,p)&&p!=="css"&&p!==Jg&&(g[p]=e[p]);return g.className=u,i&&(g.ref=i),C.createElement(C.Fragment,null,C.createElement(AI,{cache:t,serialized:d,isStringTag:typeof o=="string"}),C.createElement(o,g))}),VI=_I,hx=function(t,i){var r=arguments;if(i==null||!Xp.call(i,"css"))return C.createElement.apply(void 0,r);var o=r.length,c=new Array(o);c[0]=VI,c[1]=PI(t,i);for(var u=2;u<o;u++)c[u]=r[u];return C.createElement.apply(null,c)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(hx||(hx={}));var gx=Yp(function(e,t){var i=e.styles,r=qp([i],void 0,C.useContext(Kp)),o=C.useRef();return fx(function(){var c=t.key+"-global",u=new t.sheet.constructor({key:c,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),d=!1,g=document.querySelector('style[data-emotion="'+c+" "+r.name+'"]');return t.sheet.tags.length&&(u.before=t.sheet.tags[0]),g!==null&&(d=!0,g.setAttribute("data-emotion",c),u.hydrate([g])),o.current=[u,d],function(){u.flush()}},[t]),fx(function(){var c=o.current,u=c[0],d=c[1];if(d){c[1]=!1;return}if(r.next!==void 0&&Wp(t,r.next,!0),u.tags.length){var g=u.tags[u.tags.length-1].nextElementSibling;u.before=g,u.flush()}t.insert("",r,u,!1)},[t,r.name]),null});function zI(...e){return function(...i){e.forEach(r=>r?.(...i))}}const DI=(...e)=>e.map(t=>t?.trim?.()).filter(Boolean).join(" "),MI=/^on[A-Z]/;function wl(...e){let t={};for(let i of e){for(let r in t){if(MI.test(r)&&typeof t[r]=="function"&&typeof i[r]=="function"){t[r]=zI(t[r],i[r]);continue}if(r==="className"||r==="class"){t[r]=DI(t[r],i[r]);continue}if(r==="style"){t[r]=Object.assign({},t[r]??{},i[r]??{});continue}t[r]=i[r]!==void 0?i[r]:t[r]}for(let r in i)t[r]===void 0&&(t[r]=i[r])}return t}const LI=parseInt(C.version.split(".")[0],10),BI=LI>=19;function wg(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 HI(...e){const t=e.filter(i=>i!=null);if(BI){const i=new Map;return r=>(t.forEach(o=>{const c=wg(o,r);c&&i.set(o,c)}),()=>{t.forEach(o=>{const c=i.get(o);c&&typeof c=="function"?c():wg(o,null)}),i.clear()})}else return i=>{t.forEach(r=>{wg(r,i)})}}function Bl(e){const t=Object.assign({},e);for(let i in t)t[i]===void 0&&delete t[i];return t}const en=e=>e!=null&&typeof e=="object"&&!Array.isArray(e),Kn=e=>typeof e=="string",Qp=e=>typeof e=="function",Fn=(...e)=>{const t=[];for(let i=0;i<e.length;i++){const r=e[i];if(!Kn(r))continue;const o=r.trim();o&&t.push(o)}return t.join(" ")};function FI(e){return e.default||e}function $I(e){const t=C.version;return!Kn(t)||t.startsWith("18.")?e?.ref:e?.props?.ref}const Zp=(...e)=>{const t=e.reduce((i,r)=>(r?.forEach(o=>i.add(o)),i),new Set([]));return Array.from(t)};function UI(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function bl(e={}){const{name:t,strict:i=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:c,defaultValue:u}=e,d=C.createContext(u);d.displayName=t;function g(){const p=C.useContext(d);if(!p&&i){const m=new Error(c??UI(r,o));throw m.name="ContextError",Error.captureStackTrace?.(m,g),m}return p}return[d.Provider,g,d]}const[jI,Hl]=bl({name:"ChakraContext",strict:!0,providerName:"<ChakraProvider />"});function a8(e){const{value:t,children:i}=e;return V.jsxs(jI,{value:t,children:[!t._config.disableLayers&&V.jsx(gx,{styles:t.layers.atRule}),V.jsx(gx,{styles:t._global}),i]})}const GI=(e,t)=>{const i={},r={},o=Object.keys(e);for(const c of o)t(c)?r[c]=e[c]:i[c]=e[c];return[r,i]},_o=(e,t)=>{const i=Qp(t)?t:r=>t.includes(r);return GI(e,i)},WI=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function qI(e){return typeof e=="string"&&WI.has(e)}function YI(e,t,i){const{css:r,isValidProperty:o}=Hl(),{children:c,...u}=e,d=C.useMemo(()=>{const[y,x]=_o(u,P=>i(P,t.variantKeys)),[T,E]=_o(x,t.variantKeys),[w,R]=_o(E,o);return{forwardedProps:y,variantProps:T,styleProps:w,elementProps:R}},[t.variantKeys,i,u,o]),{css:g,...p}=d.styleProps,m=C.useMemo(()=>{const y={...d.variantProps},x=t.variantKeys.includes("colorPalette"),T=t.variantKeys.includes("orientation");return x||(y.colorPalette=u.colorPalette),T||(y.orientation=u.orientation),t(y)},[t,d.variantProps,u.colorPalette,u.orientation]);return{styles:C.useMemo(()=>r(m,...KI(g),p),[r,m,g,p]),props:{...d.forwardedProps,...d.elementProps,children:c}}}const KI=e=>(Array.isArray(e)?e:[e]).filter(Boolean).flat(),XI=FI(GN),QI=XI,ZI=e=>e!=="theme",JI=(e,t,i)=>{let r;if(t){const o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?c=>e.__emotion_forwardProp(c)&&o(c):o}return typeof r!="function"&&i&&(r=e.__emotion_forwardProp),r};let eP=typeof document<"u";const px=({cache:e,serialized:t,isStringTag:i})=>{Gp(e,t,i);const r=LC(()=>Wp(e,t,i));if(!eP&&r!==void 0){let o=t.name,c=t.next;for(;c!==void 0;)o=Fn(o,c.name),c=c.next;return V.jsx("style",{"data-emotion":Fn(e.key,o),dangerouslySetInnerHTML:{__html:r},nonce:e.sheet.nonce})}return null},mx={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"]},tP=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),nP=(e,t={},i={})=>{if(tP(mx,e)){i.forwardProps||(i.forwardProps=[]);const p=mx[e];i.forwardProps=Zp([...i.forwardProps,...p])}const r=e.__emotion_real===e,o=r&&e.__emotion_base||e;let c,u;i!==void 0&&(c=i.label,u=i.target);let d=[];const g=Yp((p,m,b)=>{const{cva:y,isValidProperty:x}=Hl(),T=t.__cva__?t:y(t),E=rP(e.__emotion_cva,T),w=ge=>(F,ee)=>ge.includes(F)?!0:!ee?.includes(F)&&!x(F);!i.shouldForwardProp&&i.forwardProps&&(i.shouldForwardProp=w(i.forwardProps));const R=(ge,F)=>{const ee=typeof e=="string"&&e.charCodeAt(0)>96?QI:ZI,se=!F?.includes(ge)&&!x(ge);return ee(ge)&&se},P=JI(e,i,r)||R,I=C.useMemo(()=>Object.assign({},i.defaultProps,Bl(p)),[p]),{props:O,styles:k}=YI(I,E,P);let U="",H=[k],G=O;if(O.theme==null){G={};for(let ge in O)G[ge]=O[ge];G.theme=C.useContext(Kp)}typeof O.className=="string"?U=zC(m.registered,H,O.className):O.className!=null&&(U=Fn(U,O.className));const z=qp(d.concat(H),m.registered,G);z.styles&&(U=Fn(U,`${m.key}-${z.name}`)),u!==void 0&&(U=Fn(U,u));const M=!P("as");let W=M&&O.as||o,Q={};for(let ge in O)if(!(M&&ge==="as")){if(qI(ge)){const F=ge.replace("html","").toLowerCase();Q[F]=O[ge];continue}P(ge)&&(Q[ge]=O[ge])}let ue=U.trim();ue?Q.className=ue:Reflect.deleteProperty(Q,"className"),Q.ref=b;const he=i.forwardAsChild||i.forwardProps?.includes("asChild");if(O.asChild&&!he){const ge=C.isValidElement(O.children)?C.Children.only(O.children):C.Children.toArray(O.children).find(C.isValidElement);if(!ge)throw new Error("[chakra-ui > factory] No valid child found");W=ge.type,Q.children=null,Reflect.deleteProperty(Q,"asChild"),Q=wl(Q,ge.props),Q.ref=HI(b,$I(ge))}return Q.as&&he?(Q.as=void 0,V.jsxs(C.Fragment,{children:[V.jsx(px,{cache:m,serialized:z,isStringTag:typeof W=="string"}),V.jsx(W,{asChild:!0,...Q,children:V.jsx(O.as,{children:Q.children})})]})):V.jsxs(C.Fragment,{children:[V.jsx(px,{cache:m,serialized:z,isStringTag:typeof W=="string"}),V.jsx(W,{...Q})]})});return g.displayName=c!==void 0?c:`chakra(${typeof o=="string"?o:o.displayName||o.name||"Component"})`,g.__emotion_real=g,g.__emotion_base=o,g.__emotion_forwardProp=i.shouldForwardProp,g.__emotion_cva=t,Object.defineProperty(g,"toString",{value(){return`.${u}`}}),g},Og=nP.bind(),Rg=new Map,iP=new Proxy(Og,{apply(e,t,i){return Og(...i)},get(e,t){return Rg.has(t)||Rg.set(t,Og(t)),Rg.get(t)}}),ct=iP,rP=(e,t)=>e&&!t?e:!e&&t?t:e.merge(t),aP=ct("div");aP.displayName="Box";const HC=Object.freeze({}),oP=Object.freeze({});function FC(e){const{key:t,recipe:i}=e,r=Hl();return C.useMemo(()=>{const o=i||(t!=null?r.getRecipe(t):{});return r.cva(structuredClone(o))},[t,i,r])}const sP=e=>e.charAt(0).toUpperCase()+e.slice(1);function Xi(e){const{key:t,recipe:i}=e,r=sP(t||i.className||"Component"),[o,c]=bl({strict:!1,name:`${r}PropsContext`,providerName:`${r}PropsContext`});function u(p){const{unstyled:m,...b}=p,y=FC({key:t,recipe:b.recipe||i}),[x,T]=C.useMemo(()=>y.splitVariantProps(b),[y,b]);return{styles:m?HC:y(x),className:y.className,props:T}}const d=(p,m)=>{const b=ct(p,{},m),y=C.forwardRef((x,T)=>{const E=c(),w=C.useMemo(()=>wl(E,x),[x,E]),{styles:R,className:P,props:I}=u(w);return V.jsx(b,{...I,ref:T,css:[R,w.css],className:Fn(P,w.className)})});return y.displayName=p.displayName||p.name,y};function g(){return o}return{withContext:d,PropsProvider:o,withPropsProvider:g,usePropsContext:c,useRecipeResult:u}}const $C=C.forwardRef(function(t,i){const{templateAreas:r,column:o,row:c,autoFlow:u,autoRows:d,templateRows:g,autoColumns:p,templateColumns:m,inline:b,...y}=t;return V.jsx(ct.div,{...y,ref:i,css:[{display:b?"inline-grid":"grid",gridTemplateAreas:r,gridAutoColumns:p,gridColumn:o,gridRow:c,gridAutoFlow:u,gridAutoRows:d,gridTemplateRows:g,gridTemplateColumns:m},t.css]})});$C.displayName="Grid";function $u(e){return e==null?[]:Array.isArray(e)?e:[e]}var Vo=e=>e[0],Td=e=>e[e.length-1],lP=(e,t)=>e.indexOf(t)!==-1,ha=(e,...t)=>e.concat(t),ya=(e,...t)=>e.filter(i=>!t.includes(i)),vx=(e,t)=>e.filter((i,r)=>r!==t),Nr=e=>Array.from(new Set(e)),kg=(e,t)=>{const i=new Set(t);return e.filter(r=>!i.has(r))},Lo=(e,t)=>lP(e,t)?ya(e,t):ha(e,t);function UC(e,t,i={}){const{step:r=1,loop:o=!0}=i,c=t+r,u=e.length,d=u-1;return t===-1?r>0?0:d:c<0?o?d:0:c>=u?o?0:t>u?u:t:c}function cP(e,t,i={}){return e[UC(e,t,i)]}function uP(e,t,i={}){const{step:r=1,loop:o=!0}=i;return UC(e,t,{step:-r,loop:o})}function dP(e,t,i={}){return e[uP(e,t,i)]}function bx(e,t){return e.reduce(([i,r],o)=>(t(o)?i.push(o):r.push(o),[i,r]),[[],[]])}var yx=e=>e?.constructor.name==="Array",fP=(e,t)=>{if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!Gt(e[i],t[i]))return!1;return!0},Gt=(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(yx(e)&&yx(t))return fP(Array.from(e),Array.from(t));if(typeof e!="object"||typeof t!="object")return!1;const i=Object.keys(t??Object.create(null)),r=i.length;for(let o=0;o<r;o++)if(!Reflect.has(e,i[o]))return!1;for(let o=0;o<r;o++){const c=i[o];if(!Gt(e[c],t[c]))return!1}return!0},fl=e=>Array.isArray(e),hP=e=>e===!0||e===!1,jC=e=>e!=null&&typeof e=="object",ga=e=>jC(e)&&!fl(e),Uu=e=>typeof e=="string",Ir=e=>typeof e=="function",gP=e=>e==null,Hn=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),pP=e=>Object.prototype.toString.call(e),GC=Function.prototype.toString,mP=GC.call(Object),vP=e=>{if(!jC(e)||pP(e)!="[object Object]"||xP(e))return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;const i=Hn(t,"constructor")&&t.constructor;return typeof i=="function"&&i instanceof i&&GC.call(i)==mP},bP=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,yP=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,xP=e=>bP(e)||yP(e),xx=e=>e,SP=e=>e(),CP=()=>{},Ol=(...e)=>(...t)=>{e.forEach(function(i){i?.(...t)})};function $i(e,t,...i){if(e in t){const o=t[e];return Ir(o)?o(...i):o}const r=new Error(`No matching key: ${JSON.stringify(e)} in ${JSON.stringify(Object.keys(t))}`);throw Error.captureStackTrace?.(r,$i),r}var WC=(e,t)=>{try{return e()}catch(i){return i instanceof Error&&Error.captureStackTrace?.(i,WC),t?.()}},{floor:qC,abs:Sx,round:wd,min:EP,max:TP,pow:wP,sign:OP}=Math,ep=e=>Number.isNaN(e),Mr=e=>ep(e)?0:e,YC=(e,t)=>(e%t+t)%t,RP=(e,t)=>(e%t+t)%t,kP=(e,t)=>Mr(e)>=t,NP=(e,t)=>Mr(e)<=t,IP=(e,t,i)=>{const r=Mr(e),o=t==null||r>=t,c=i==null||r<=i;return o&&c},PP=(e,t,i)=>wd((Mr(e)-t)/i)*i+t,tn=(e,t,i)=>EP(TP(Mr(e),t),i),AP=(e,t,i)=>(Mr(e)-t)/(i-t),_P=(e,t,i,r)=>tn(PP(e*(i-t)+t,t,r),t,i),Cx=(e,t)=>{let i=e,r=t.toString(),o=r.indexOf("."),c=o>=0?r.length-o:0;if(c>0){let u=wP(10,c);i=wd(i*u)/u}return i},Ng=(e,t)=>typeof t=="number"?qC(e*t+.5)/t:wd(e),Ex=(e,t,i,r)=>{const o=t!=null?Number(t):0,c=Number(i),u=(e-o)%r;let d=Sx(u)*2>=r?e+OP(u)*(r-Sx(u)):e-u;if(d=Cx(d,r),!ep(o)&&d<o)d=o;else if(!ep(c)&&d>c){const g=qC((c-o)/r),p=o+g*r;d=g<=0||p<o?c:p}return Cx(d,r)},Qe=(e,t=0,i=10)=>{const r=Math.pow(i,t);return wd(e*r)/r},Tx=e=>{if(!Number.isFinite(e))return 0;let t=1,i=0;for(;Math.round(e*t)/t!==e;)t*=10,i+=1;return i},KC=(e,t,i)=>{let r=t==="+"?e+i:e-i;if(e%1!==0||i%1!==0){const o=10**Math.max(Tx(e),Tx(i));e=Math.round(e*o),i=Math.round(i*o),r=t==="+"?e+i:e-i,r/=o}return r},VP=(e,t)=>KC(Mr(e),"+",t),zP=(e,t)=>KC(Mr(e),"-",t),Dn=e=>typeof e=="number"?`${e}px`:e;function Jp(e){if(!vP(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(r=>typeof r=="string"),i={};for(const r of t){const o=e[r];o!==void 0&&(i[r]=Jp(o))}return i}function DP(e,t=Object.is){let i={...e};const r=new Set,o=m=>(r.add(m),()=>r.delete(m)),c=()=>{r.forEach(m=>m())};return{subscribe:o,get:m=>i[m],set:(m,b)=>{t(i[m],b)||(i[m]=b,c())},update:m=>{let b=!1;for(const y in m){const x=m[y];x!==void 0&&!t(i[y],x)&&(i[y]=x,b=!0)}b&&c()},snapshot:()=>({...i})}}function Rl(...e){e.length===1?e[0]:e[1],e.length===2&&e[0]}function em(e,t){if(e==null)throw new Error(t())}function MP(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function at(e={}){const{name:t,strict:i=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:c,defaultValue:u}=e,d=C.createContext(u);d.displayName=t;function g(){const p=C.useContext(d);if(!p&&i){const m=new Error(c??MP(r,o));throw m.name="ContextError",Hn(Error,"captureStackTrace")&&Ir(Error.captureStackTrace)&&Error.captureStackTrace(m,g),m}return p}return[d.Provider,g,d]}const[o8,pi]=at({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}});var LP=Object.defineProperty,BP=(e,t,i)=>t in e?LP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,Ig=(e,t,i)=>BP(e,typeof t!="symbol"?t+"":t,i);function HP(e){if(!e)return!1;try{return e.selectionStart===0&&e.selectionEnd===0}catch{return e.value===""}}function FP(e){if(!e)return;const t=e.selectionStart??0,i=e.selectionEnd??0;Math.abs(i-t)===0&&t===0&&e.setSelectionRange(e.value.length,e.value.length)}var wx=e=>Math.max(0,Math.min(1,e)),$P=(e,t)=>e.map((i,r)=>e[(Math.max(t,0)+r)%e.length]),Pg=(...e)=>t=>e.reduce((i,r)=>r(i),t),ko=()=>{},Od=e=>typeof e=="object"&&e!==null,UP=2147483647,fe=e=>e?"":void 0,tm=e=>e?"true":void 0,jP=1,GP=9,WP=11,Et=e=>Od(e)&&e.nodeType===jP&&typeof e.nodeName=="string",Rd=e=>Od(e)&&e.nodeType===GP,qP=e=>Od(e)&&e===e.window,XC=e=>Et(e)?e.localName||"":"#document";function YP(e){return["html","body","#document"].includes(XC(e))}var KP=e=>Od(e)&&e.nodeType!==void 0,Sa=e=>KP(e)&&e.nodeType===WP&&"host"in e,XP=e=>Et(e)&&e.localName==="input",QC=e=>!!e?.matches("a[href]"),QP=e=>Et(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1;function Pr(e){if(!e)return!1;const t=e.getRootNode();return zo(t)===e}var ZP=/(textarea|select)/;function kd(e){if(e==null||!Et(e))return!1;try{return XP(e)&&e.selectionStart!=null||ZP.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch{return!1}}function $n(e,t){if(!e||!t||!Et(e)||!Et(t))return!1;const i=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(i&&Sa(i)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Wt(e){return Rd(e)?e:qP(e)?e.document:e?.ownerDocument??document}function JP(e){return Wt(e).documentElement}function rt(e){return Sa(e)?rt(e.host):Rd(e)?e.defaultView??window:Et(e)?e.ownerDocument?.defaultView??window:window}function zo(e){let t=e.activeElement;for(;t?.shadowRoot;){const i=t.shadowRoot.activeElement;if(!i||i===t)break;t=i}return t}function eA(e){if(XC(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Sa(e)&&e.host||JP(e);return Sa(t)?t.host:t}function nm(e){let t;try{if(t=e.getRootNode({composed:!0}),Rd(t)||Sa(t))return t}catch{}return e.ownerDocument??document}var Ag=new WeakMap;function _r(e){return Ag.has(e)||Ag.set(e,rt(e).getComputedStyle(e)),Ag.get(e)}var im=new Set(["menu","listbox","dialog","grid","tree","region"]),tA=e=>im.has(e),ZC=e=>e.getAttribute("aria-controls")?.split(" ")||[];function JC(e,t){const i=new Set,r=nm(e),o=c=>{const u=c.querySelectorAll("[aria-controls]");for(const d of u){if(d.getAttribute("aria-expanded")!=="true")continue;const g=ZC(d);for(const p of g){if(!p||i.has(p))continue;i.add(p);const m=r.getElementById(p);if(m){const b=m.getAttribute("role"),y=m.getAttribute("aria-modal")==="true";if(b&&tA(b)&&!y&&(m===t||m.contains(t)||o(m)))return!0}}}return!1};return o(e)}function eE(e,t){const i=nm(e),r=new Set,o=c=>{const u=c.querySelectorAll("[aria-controls]");for(const d of u){if(d.getAttribute("aria-expanded")!=="true")continue;const g=ZC(d);for(const p of g){if(!p||r.has(p))continue;r.add(p);const m=i.getElementById(p);if(m){const b=m.getAttribute("role"),y=m.getAttribute("aria-modal")==="true";b&&im.has(b)&&!y&&(t(m),o(m))}}}};o(e)}function nA(e){const t=new Set;return eE(e,i=>{e.contains(i)||t.add(i)}),Array.from(t)}function iA(e){const t=e.getAttribute("role");return!!(t&&im.has(t))}function rA(e){return e.hasAttribute("aria-controls")&&e.getAttribute("aria-expanded")==="true"}function aA(e){return rA(e)?!0:!!e.querySelector?.('[aria-controls][aria-expanded="true"]')}function oA(e){if(!e.id)return!1;const t=nm(e),i=CSS.escape(e.id),r=`[aria-controls~="${i}"][aria-expanded="true"], [aria-controls="${i}"][aria-expanded="true"]`;return!!(t.querySelector(r)&&iA(e))}var Nd=()=>typeof document<"u";function sA(){return navigator.userAgentData?.platform??navigator.platform}function lA(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:i})=>`${t}/${i}`).join(" "):navigator.userAgent}var rm=e=>Nd()&&e.test(sA()),tE=e=>Nd()&&e.test(lA()),cA=e=>Nd()&&e.test(navigator.vendor),Ox=()=>Nd()&&!!navigator.maxTouchPoints,uA=()=>rm(/^iPhone/i),dA=()=>rm(/^iPad/i)||Fl()&&navigator.maxTouchPoints>1,Id=()=>uA()||dA(),fA=()=>Fl()||Id(),Fl=()=>rm(/^Mac/i),$l=()=>fA()&&cA(/apple/i),hA=()=>tE(/Firefox/i),gA=()=>tE(/Android/i);function pA(e){return e.composedPath?.()??e.nativeEvent?.composedPath?.()}function nt(e){return pA(e)?.[0]??e.target}function tp(e){const t=e.currentTarget;if(!t||!t.matches("a[href], button[type='submit'], input[type='submit']"))return!1;const r=e.button===1,o=mA(e);return r||o}function Rx(e){const t=e.currentTarget;if(!t)return!1;const i=t.localName;return e.altKey?i==="a"||i==="button"&&t.type==="submit"||i==="input"&&t.type==="submit":!1}function nE(e){return CA(e).isComposing||e.keyCode===229}function mA(e){return Fl()?e.metaKey:e.ctrlKey}function vA(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}function bA(e){return e.pointerType===""&&e.isTrusted?!0:gA()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var iE=e=>e.button===0,rE=e=>e.button===2||Fl()&&e.ctrlKey&&e.button===0,yA=e=>e.ctrlKey||e.altKey||e.metaKey,xA=e=>"touches"in e&&e.touches.length>0,SA={Up:"ArrowUp",Down:"ArrowDown",Esc:"Escape"," ":"Space",",":"Comma",Left:"ArrowLeft",Right:"ArrowRight"},kx={ArrowLeft:"ArrowRight",ArrowRight:"ArrowLeft"};function kl(e,t={}){const{dir:i="ltr",orientation:r="horizontal"}=t;let o=e.key;return o=SA[o]??o,i==="rtl"&&r==="horizontal"&&o in kx&&(o=kx[o]),o}function CA(e){return e.nativeEvent??e}function pa(e,t="client"){const i=xA(e)?e.touches[0]||e.changedTouches[0]:e;return{x:i[`${t}X`],y:i[`${t}Y`]}}var Be=(e,t,i,r)=>{const o=typeof e=="function"?e():e;return o?.addEventListener(t,i,r),()=>{o?.removeEventListener(t,i,r)}};function aE(e,t){const{type:i="HTMLInputElement",property:r="value"}=t,o=rt(e)[i].prototype;return Object.getOwnPropertyDescriptor(o,r)??{}}function EA(e){if(e.localName==="input")return"HTMLInputElement";if(e.localName==="textarea")return"HTMLTextAreaElement";if(e.localName==="select")return"HTMLSelectElement"}function Ca(e,t,i="value"){if(!e)return;const r=EA(e);r&&aE(e,{type:r,property:i}).set?.call(e,t),e.setAttribute(i,t)}function am(e,t){if(!e)return;aE(e,{type:"HTMLInputElement",property:"checked"}).set?.call(e,t),t?e.setAttribute("checked",""):e.removeAttribute("checked")}function oE(e,t){const{value:i,bubbles:r=!0}=t;if(!e)return;const o=rt(e);e instanceof o.HTMLInputElement&&(Ca(e,`${i}`),e.dispatchEvent(new o.Event("input",{bubbles:r})))}function sE(e,t){const{checked:i,bubbles:r=!0}=t;if(!e)return;const o=rt(e);e instanceof o.HTMLInputElement&&(am(e,i),e.dispatchEvent(new o.Event("click",{bubbles:r})))}function TA(e){return wA(e)?e.form:e.closest("form")}function wA(e){return e.matches("textarea, input, select, button")}function OA(e,t){if(!e)return;const i=TA(e),r=o=>{o.defaultPrevented||t()};return i?.addEventListener("reset",r,{passive:!0}),()=>i?.removeEventListener("reset",r)}function RA(e,t){const i=e?.closest("fieldset");if(!i)return;t(i.disabled);const r=rt(i),o=new r.MutationObserver(()=>t(i.disabled));return o.observe(i,{attributes:!0,attributeFilter:["disabled"]}),()=>o.disconnect()}function Fo(e,t){if(!e)return;const{onFieldsetDisabledChange:i,onFormReset:r}=t,o=[OA(e,r),RA(e,i)];return()=>o.forEach(c=>c?.())}var lE=e=>Et(e)&&e.tagName==="IFRAME",kA=/^(audio|video|details)$/;function cE(e){const t=e.getAttribute("tabindex");return t?parseInt(t,10):NaN}var NA=e=>!Number.isNaN(cE(e)),IA=e=>cE(e)<0;function PA(e,t){if(!t)return null;if(t===!0)return e.shadowRoot||null;const i=t(e);return(i===!0?e.shadowRoot:i)||null}function uE(e,t,i){const r=[...e],o=[...e],c=new Set,u=new Map;e.forEach((g,p)=>u.set(g,p));let d=0;for(;d<o.length;){const g=o[d++];if(!g||c.has(g))continue;c.add(g);const p=PA(g,t);if(p){const m=Array.from(p.querySelectorAll(Pd)).filter(i),b=u.get(g);if(b!==void 0){const y=b+1;r.splice(y,0,...m),m.forEach((x,T)=>{u.set(x,y+T)});for(let x=y+m.length;x<r.length;x++)u.set(r[x],x)}else{const y=r.length;r.push(...m),m.forEach((x,T)=>{u.set(x,y+T)})}o.push(...m)}}return r}var Pd="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",om=(e,t={})=>{if(!e)return[];const{includeContainer:i=!1,getShadowRoot:r}=t,o=Array.from(e.querySelectorAll(Pd));(i==!0||i=="if-empty"&&o.length===0)&&Et(e)&&Gi(e)&&o.unshift(e);const u=[];for(const d of o)if(Gi(d)){if(lE(d)&&d.contentDocument){const g=d.contentDocument.body;u.push(...om(g,{getShadowRoot:r}));continue}u.push(d)}return r?uE(u,r,Gi):u};function Gi(e){return!Et(e)||e.closest("[inert]")?!1:e.matches(Pd)&&QP(e)}function $o(e,t={}){if(!e)return[];const{includeContainer:i,getShadowRoot:r}=t,o=Array.from(e.querySelectorAll(Pd));i&&ma(e)&&o.unshift(e);const c=[];for(const u of o)if(ma(u)){if(lE(u)&&u.contentDocument){const d=u.contentDocument.body;c.push(...$o(d,{getShadowRoot:r}));continue}c.push(u)}if(r){const u=uE(c,r,ma);return!u.length&&i?o:u}return!c.length&&i?o:c}function ma(e){return Et(e)&&e.tabIndex>0?!0:Gi(e)&&!IA(e)}function dE(e,t={}){const i=$o(e,t),r=i[0]||null,o=i[i.length-1]||null;return[r,o]}function AA(e,t={}){const{current:i,getShadowRoot:r}=t,o=$o(e,{getShadowRoot:r}),c=e?.ownerDocument||document,u=i??zo(c);if(!u)return null;const d=o.indexOf(u);return o[d+1]||null}function Xs(e){return e.tabIndex<0&&(kA.test(e.localName)||kd(e))&&!NA(e)?0:e.tabIndex}function Nl(e){const{root:t,getInitialEl:i,filter:r,enabled:o=!0}=e;if(!o)return;let c=null;if(c||(c=typeof i=="function"?i():i),c||(c=t?.querySelector("[data-autofocus],[autofocus]")),!c){const u=$o(t);c=r?u.filter(r)[0]:u[0]}return c||t||void 0}function fE(e){const t=e.currentTarget;if(!t)return!1;const[i,r]=dE(t);return!(Pr(i)&&e.shiftKey||Pr(r)&&!e.shiftKey||!i&&!r)}var _A=class hE{constructor(){Ig(this,"id",null),Ig(this,"fn_cleanup"),Ig(this,"cleanup",()=>{this.cancel()})}static create(){return new hE}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 pe(e){const t=_A.create();return t.request(e),t.cleanup}function Ad(e){const t=new Set;function i(r){const o=globalThis.requestAnimationFrame(r);t.add(()=>globalThis.cancelAnimationFrame(o))}return i(()=>i(e)),function(){t.forEach(o=>o())}}function VA(e,t,i){const r=pe(()=>{e.removeEventListener(t,o,!0),i()}),o=()=>{r(),i()};return e.addEventListener(t,o,{once:!0,capture:!0}),r}function zA(e,t){if(!e)return;const{attributes:i,callback:r}=t,o=e.ownerDocument.defaultView||window,c=new o.MutationObserver(u=>{for(const d of u)d.type==="attributes"&&d.attributeName&&i.includes(d.attributeName)&&r(d)});return c.observe(e,{attributes:!0,attributeFilter:i}),()=>c.disconnect()}function Ul(e,t){const{defer:i}=t,r=i?pe:c=>c(),o=[];return o.push(r(()=>{const c=typeof e=="function"?e():e;o.push(zA(c,t))})),()=>{o.forEach(c=>c?.())}}function DA(e,t){const{callback:i}=t;if(!e)return;const r=e.ownerDocument.defaultView||window,o=new r.MutationObserver(i);return o.observe(e,{childList:!0,subtree:!0}),()=>o.disconnect()}function MA(e,t){const{defer:i}=t,r=i?pe:c=>c(),o=[];return o.push(r(()=>{const c=typeof e=="function"?e():e;o.push(DA(c,t))})),()=>{o.forEach(c=>c?.())}}function sm(e){const t=()=>{const i=rt(e);e.dispatchEvent(new i.MouseEvent("click"))};hA()?VA(e,"keyup",t):queueMicrotask(t)}function ad(e){const t=eA(e);return YP(t)?Wt(t).body:Et(t)&&lm(t)?t:ad(t)}function gE(e,t=[]){const i=ad(e),r=i===e.ownerDocument.body,o=rt(i);return r?t.concat(o,o.visualViewport||[],lm(i)?i:[]):t.concat(i,gE(i,[]))}var LA=/auto|scroll|overlay|hidden|clip/,BA=new Set(["inline","contents"]);function lm(e){const t=rt(e),{overflow:i,overflowX:r,overflowY:o,display:c}=t.getComputedStyle(e);return LA.test(i+o+r)&&!BA.has(c)}function HA(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function Il(e,t){const{rootEl:i,...r}=t||{};!e||!i||!lm(i)||!HA(i)||e.scrollIntoView(r)}function pE(e,t){const{left:i,top:r,width:o,height:c}=t.getBoundingClientRect(),u={x:e.x-i,y:e.y-r},d={x:wx(u.x/o),y:wx(u.y/c)};function g(p={}){const{dir:m="ltr",orientation:b="horizontal",inverted:y}=p,x=typeof y=="object"?y.x:y,T=typeof y=="object"?y.y:y;return b==="horizontal"?m==="rtl"||x?1-d.x:d.x:T?1-d.y:d.y}return{offset:u,percent:d,getPercentValue:g}}function FA(e,t){const i=e.body,r="pointerLockElement"in e||"mozPointerLockElement"in e,o=()=>!!e.pointerLockElement;function c(){}function u(g){o(),console.error("PointerLock error occurred:",g),e.exitPointerLock()}if(!r)return;try{i.requestPointerLock()}catch{}const d=[Be(e,"pointerlockchange",c,!1),Be(e,"pointerlockerror",u,!1)];return()=>{d.forEach(g=>g()),e.exitPointerLock()}}var No="default",np="",ju=new WeakMap;function $A(e={}){const{target:t,doc:i}=e,r=i??document,o=r.documentElement;return Id()?(No==="default"&&(np=o.style.webkitUserSelect,o.style.webkitUserSelect="none"),No="disabled"):t&&(ju.set(t,t.style.userSelect),t.style.userSelect="none"),()=>UA({target:t,doc:r})}function UA(e={}){const{target:t,doc:i}=e,o=(i??document).documentElement;if(Id()){if(No!=="disabled")return;No="restoring",setTimeout(()=>{Ad(()=>{No==="restoring"&&(o.style.webkitUserSelect==="none"&&(o.style.webkitUserSelect=np||""),np="",No="default")})},300)}else if(t&&ju.has(t)){const c=ju.get(t);t.style.userSelect==="none"&&(t.style.userSelect=c??""),t.getAttribute("style")===""&&t.removeAttribute("style"),ju.delete(t)}}function mE(e={}){const{defer:t,target:i,...r}=e,o=t?pe:u=>u(),c=[];return c.push(o(()=>{const u=typeof i=="function"?i():i;c.push($A({...r,target:u}))})),()=>{c.forEach(u=>u?.())}}function jA(e,t){const{onPointerMove:i,onPointerUp:r}=t,o=d=>{const g=pa(d),p=Math.sqrt(g.x**2+g.y**2),m=d.pointerType==="touch"?10:5;if(!(p<m)){if(d.pointerType==="mouse"&&d.buttons===0){c(d);return}i({point:g,event:d})}},c=d=>{const g=pa(d);r({point:g,event:d})},u=[Be(e,"pointermove",o,!1),Be(e,"pointerup",c,!1),Be(e,"pointercancel",c,!1),Be(e,"contextmenu",c,!1),mE({doc:e})];return()=>{u.forEach(d=>d())}}function vE(e){const{pointerNode:t,keyboardNode:i=t,onPress:r,onPressStart:o,onPressEnd:c,isValidKey:u=P=>P.key==="Enter"}=e;if(!t)return ko;const d=rt(t);let g=ko,p=ko,m=ko;const b=P=>({point:pa(P),event:P});function y(P){o?.(b(P))}function x(P){c?.(b(P))}const E=Be(t,"pointerdown",P=>{p();const O=Be(d,"pointerup",U=>{const H=nt(U);$n(t,H)?r?.(b(U)):c?.(b(U))},{passive:!r,once:!0}),k=Be(d,"pointercancel",x,{passive:!c,once:!0});p=Pg(O,k),Pr(i)&&P.pointerType==="mouse"&&P.preventDefault(),y(P)},{passive:!o}),w=Be(i,"focus",R);g=Pg(E,w);function R(){const P=U=>{if(!u(U))return;const H=z=>{if(!u(z))return;const M=new d.PointerEvent("pointerup"),W=b(M);r?.(W),c?.(W)};p(),p=Be(i,"keyup",H);const G=new d.PointerEvent("pointerdown");y(G)},I=()=>{const U=new d.PointerEvent("pointercancel");x(U)},O=Be(i,"keydown",P),k=Be(i,"blur",I);m=Pg(O,k)}return()=>{g(),p(),m()}}function GA(e,t={}){const{triggerElement:i,onFocus:r,onFocusEnter:o,getShadowRoot:c}=t,u=e?.ownerDocument||document,d=u.body;function g(p){if(p.key!=="Tab")return;let m=null;const[b,y]=dE(e,{includeContainer:!0,getShadowRoot:c}),x=AA(d,{current:i,getShadowRoot:c}),T=!b&&!y;p.shiftKey&&Pr(x)?(o?.(),m=y):p.shiftKey&&(Pr(b)||T)?m=i:!p.shiftKey&&Pr(i)?(o?.(),m=b):!p.shiftKey&&(Pr(y)||T)&&(m=x),m&&(p.preventDefault(),typeof r=="function"?r(m):m.focus())}return Be(u,"keydown",g,!0)}function WA(e,t){const{defer:i,triggerElement:r,...o}=t,c=i?pe:d=>d(),u=[];return u.push(c(()=>{const d=typeof e=="function"?e():e,g=typeof r=="function"?r():r;u.push(GA(d,{triggerElement:g,...o}))})),()=>{u.forEach(d=>d?.())}}function Ea(e,t){return Array.from(e?.querySelectorAll(t)??[])}function qA(e,t){return e?.querySelector(t)??null}var cm=e=>e.id;function bE(e,t,i=cm){return e.find(r=>i(r)===t)}function _d(e,t,i=cm){const r=bE(e,t,i);return r?e.indexOf(r):-1}function um(e,t,i=!0){let r=_d(e,t);return r=i?(r+1)%e.length:Math.min(r+1,e.length-1),e[r]}function dm(e,t,i=!0){let r=_d(e,t);return r===-1?i?e[e.length-1]:null:(r=i?(r-1+e.length)%e.length:Math.max(0,r-1),e[r])}function YA(e){const t=new WeakMap;let i;const r=new WeakMap,o=d=>i||(i=new d.ResizeObserver(g=>{for(const p of g){r.set(p.target,p);const m=t.get(p.target);if(m)for(const b of m)b(p)}}),i);return{observe:(d,g)=>{let p=t.get(d)||new Set;p.add(g),t.set(d,p);const m=rt(d);return o(m).observe(d,e),()=>{const b=t.get(d);b&&(b.delete(g),b.size===0&&(t.delete(d),o(m).unobserve(d)))}},unobserve:d=>{t.delete(d),i?.unobserve(d)}}}var KA=YA({box:"border-box"}),XA=e=>e.split("").map(t=>{const i=t.charCodeAt(0);return i>0&&i<128?t:i>=128&&i<=255?`/x${i.toString(16)}`.replace("/","\\"):""}).join("").trim(),QA=e=>XA(e.dataset?.valuetext??e.textContent??""),ZA=(e,t)=>e.trim().toLowerCase().startsWith(t.toLowerCase());function JA(e,t,i,r=cm){const o=i?_d(e,i,r):-1;let c=i?$P(e,o):e;return t.length===1&&(c=c.filter(d=>r(d)!==i)),c.find(d=>ZA(QA(d),t))}function e2(e,t,i){const r=e.getAttribute(t),o=r!=null;return e.setAttribute(t,i),()=>{o?e.setAttribute(t,r):e.removeAttribute(t)}}function Pl(e,t){if(!e)return ko;const i=Object.keys(t).reduce((r,o)=>(r[o]=e.style.getPropertyValue(o),r),{});return Object.assign(e.style,t),()=>{Object.assign(e.style,i),e.style.length===0&&e.removeAttribute("style")}}function t2(e,t,i){if(!e)return ko;const r=e.style.getPropertyValue(t);return e.style.setProperty(t,i),()=>{e.style.setProperty(t,r),e.style.length===0&&e.removeAttribute("style")}}function n2(e,t){const{state:i,activeId:r,key:o,timeout:c=350,itemToId:u}=t,d=i.keysSoFar+o,p=d.length>1&&Array.from(d).every(T=>T===d[0])?d[0]:d;let m=e.slice();const b=JA(m,p,r,u);function y(){clearTimeout(i.timer),i.timer=-1}function x(T){i.keysSoFar=T,y(),T!==""&&(i.timer=+setTimeout(()=>{x(""),y()},c))}return x(d),b}var Vr=Object.assign(n2,{defaultOptions:{keysSoFar:"",timer:-1},isValidEvent:i2});function i2(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}var fm={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 r2(e,t,i){const{signal:r}=t;return[new Promise((u,d)=>{const g=setTimeout(()=>{d(new Error(`Timeout of ${i}ms exceeded`))},i);r.addEventListener("abort",()=>{clearTimeout(g),d(new Error("Promise aborted"))}),e.then(p=>{r.aborted||(clearTimeout(g),u(p))}).catch(p=>{r.aborted||(clearTimeout(g),d(p))})}),()=>t.abort()]}function a2(e,t){const{timeout:i,rootNode:r}=t,o=rt(r),c=Wt(r),u=new o.AbortController;return r2(new Promise(d=>{const g=e();if(g){d(g);return}const p=new o.MutationObserver(()=>{const m=e();m&&m.isConnected&&(p.disconnect(),d(m))});p.observe(c.body,{childList:!0,subtree:!0})}),u,i)}var o2=(...e)=>e.map(t=>t?.trim?.()).filter(Boolean).join(" "),s2=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,Nx=e=>{const t={};let i;for(;i=s2.exec(e);)t[i[1]]=i[2];return t},l2=(e,t)=>{if(Uu(e)){if(Uu(t))return`${e};${t}`;e=Nx(e)}else Uu(t)&&(t=Nx(t));return Object.assign({},e??{},t??{})};function ne(...e){let t={};for(let i of e){if(!i)continue;for(let o in t){if(o.startsWith("on")&&typeof t[o]=="function"&&typeof i[o]=="function"){t[o]=Ol(i[o],t[o]);continue}if(o==="className"||o==="class"){t[o]=o2(t[o],i[o]);continue}if(o==="style"){t[o]=l2(t[o],i[o]);continue}t[o]=i[o]!==void 0?i[o]:t[o]}for(let o in i)t[o]===void 0&&(t[o]=i[o]);const r=Object.getOwnPropertySymbols(i);for(let o of r)t[o]=i[o]}return t}function Ix(e,t,i){let r=[],o;return c=>{const u=e(c);return(u.length!==r.length||u.some((g,p)=>!Gt(r[p],g)))&&(r=u,o=t(u,c)),o}}function Zn(){return{and:(...e)=>function(i){return e.every(r=>i.guard(r))},or:(...e)=>function(i){return e.some(r=>i.guard(r))},not:e=>function(i){return!i.guard(e)}}}function Vd(){return{guards:Zn(),createMachine:e=>e,choose:e=>function({choose:i}){return i(e)?.actions}}}var wo=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(wo||{}),_g="__init__";function c2(e){const t=()=>e.getRootNode?.()??document,i=()=>Wt(t());return{...e,getRootNode:t,getDoc:i,getWin:()=>i().defaultView??window,getActiveElement:()=>zo(t()),isActiveElement:Pr,getById:u=>t().getElementById(u)}}function Qi(...e){return t=>{const i=[];for(const r of e)if(typeof r=="function"){const o=r(t);typeof o=="function"&&i.push(o)}else r&&(r.current=t);if(i.length)return()=>{for(const r of i)r()}}}function u2(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,i=t&&"isReactWarning"in t&&t.isReactWarning;return i?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,i=t&&"isReactWarning"in t&&t.isReactWarning,i?e.props.ref:e.props.ref||e.ref)}const Vg=e=>{const t=C.memo(C.forwardRef((i,r)=>{const{asChild:o,children:c,...u}=i;if(!o)return C.createElement(e,{...u,ref:r},c);if(!C.isValidElement(c))return null;const d=C.Children.only(c),g=u2(d);return C.cloneElement(d,{...ne(u,d.props),ref:r?Qi(r,g):g})}));return t.displayName=e.displayName||e.name,t},d2=()=>{const e=new Map;return new Proxy(Vg,{apply(t,i,r){return Vg(r[0])},get(t,i){const r=i;return e.has(r)||e.set(r,Vg(r)),e.get(r)}})},re=d2(),[s8,Zi]=at({name:"LocaleContext",hookName:"useLocaleContext",providerName:"<LocaleProvider />",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}}),{withContext:f2}=Xi({key:"heading"}),h2=f2("h2");h2.displayName="Heading";const ot=()=>(e,t)=>t.reduce((i,r)=>{const[o,c]=i,u=r;return c[u]!==void 0&&(o[u]=c[u]),delete c[u],[o,c]},[{},{...e}]),mi=e=>ot()(e,["immediate","lazyMount","onExitComplete","present","skipAnimationOnMount","unmountOnExit"]);function g2(e){return new Proxy({},{get(t,i){return i==="style"?r=>e({style:r}).style:e}})}var ce=()=>e=>Array.from(new Set(e));function p2(e,t){const{state:i,send:r,context:o}=e,c=i.matches("mounted","unmountSuspended");return{skip:!o.get("initial"),present:c,setNode(u){u&&r({type:"NODE.SET",node:u})},unmount(){r({type:"UNMOUNT"})}}}var m2={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:["clearInitial","cleanupNode"],watch({track:e,prop:t,send:i}){e([()=>t("present")],()=>{i({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)})},clearInitial:({context:e})=>{e.set("initial",!1)},invokeOnExitComplete:({prop:e,refs:t})=>{e("onExitComplete")?.();const i=t.get("node");if(!i)return;const r=rt(i),o=new r.CustomEvent("exitcomplete",{bubbles:!1});i.dispatchEvent(o)},setupNode:({refs:e,event:t})=>{e.get("node")!==t.node&&(e.set("node",t.node),e.set("styles",_r(t.node)))},cleanupNode:({refs:e})=>{e.set("node",null),e.set("styles",null)},syncPresence:({context:e,refs:t,send:i,prop:r})=>{const o=r("present");if(o)return i({type:"MOUNT",src:"presence.changed"});const c=t.get("node");if(!o&&c?.ownerDocument.visibilityState==="hidden")return i({type:"UNMOUNT",src:"visibilitychange"});pe(()=>{const u=yu(t.get("styles"));e.set("unmountAnimationName",u),u==="none"||u===e.get("prevAnimationName")||t.get("styles")?.display==="none"||t.get("styles")?.animationDuration==="0s"?i({type:"UNMOUNT",src:"presence.changed"}):i({type:"UNMOUNT.SUSPEND"})})},setPrevAnimationName:({context:e,refs:t})=>{pe(()=>{e.set("prevAnimationName",yu(t.get("styles")))})},clearPrevAnimationName:({context:e})=>{e.set("prevAnimationName",null)}},effects:{trackAnimationEvents:({context:e,refs:t,send:i,prop:r})=>{const o=t.get("node");if(!o)return;const c=p=>{(p.composedPath?.()?.[0]??p.target)===o&&e.set("prevAnimationName",yu(t.get("styles")))},u=p=>{const m=yu(t.get("styles"));nt(p)===o&&m===e.get("unmountAnimationName")&&!r("present")&&i({type:"UNMOUNT",src:"animationend"})},d=p=>{nt(p)===o&&!r("present")&&i({type:"UNMOUNT",src:"animationcancel"})};o.addEventListener("animationstart",c),o.addEventListener("animationcancel",d),o.addEventListener("animationend",u);const g=Pl(o,{animationFillMode:"forwards"});return()=>{o.removeEventListener("animationstart",c),o.removeEventListener("animationcancel",d),o.removeEventListener("animationend",u),Ad(()=>g())}}}}};function yu(e){return e?.animationName||"none"}ce()(["onExitComplete","present","immediate"]);var zd=OC(),yE=typeof globalThis.document<"u"?C.useLayoutEffect:C.useEffect;function od(e){const t=e().value??e().defaultValue,i=e().isEqual??Object.is,[r]=C.useState(t),[o,c]=C.useState(r),u=e().value!==void 0,d=C.useRef(o);d.current=u?e().value:o;const g=C.useRef(d.current);yE(()=>{g.current=d.current},[o,e().value]);const p=b=>{const y=g.current,x=Ir(b)?b(y):b;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:x,prev:y}),u||c(x),i(x,y)||e().onChange?.(x,y)};function m(){return u?e().value:o}return{initial:r,ref:d,get:m,set(b){(e().sync?zd.flushSync:SP)(()=>p(b))},invoke(b,y){e().onChange?.(b,y)},hash(b){return e().hash?.(b)??String(b)}}}od.cleanup=e=>{C.useEffect(()=>e,[])};od.ref=e=>{const t=C.useRef(e);return{get:()=>t.current,set:i=>{t.current=i}}};function v2(e){const t=C.useRef(e);return{get(i){return t.current[i]},set(i,r){t.current[i]=r}}}var b2=(e,t)=>{const i=C.useRef(!1),r=C.useRef(!1);C.useEffect(()=>{if(i.current&&r.current)return t();r.current=!0},[...(e??[]).map(o=>typeof o=="function"?o():o)]),C.useEffect(()=>(i.current=!0,()=>{i.current=!1}),[])};function vi(e,t={}){const i=C.useMemo(()=>{const{id:W,ids:Q,getRootNode:ue}=t;return c2({id:W,ids:Q,getRootNode:ue})},[t]),r=(...W)=>{e.debug&&console.log(...W)},o=e.props?.({props:Jp(t),scope:i})??t,c=y2(o),u=e.context?.({prop:c,bindable:od,scope:i,flush:Px,getContext(){return g},getComputed(){return k},getRefs(){return E},getEvent(){return x()}}),d=xE(u),g={get(W){return d.current?.[W].ref.current},set(W,Q){d.current?.[W].set(Q)},initial(W){return d.current?.[W].initial},hash(W){const Q=d.current?.[W].get();return d.current?.[W].hash(Q)}},p=C.useRef(new Map),m=C.useRef(null),b=C.useRef(null),y=C.useRef({type:""}),x=()=>({...y.current,current(){return y.current},previous(){return b.current}}),T=()=>({...U,matches(...W){return W.includes(U.ref.current)},hasTag(W){return!!e.states[U.ref.current]?.tags?.includes(W)}}),E=v2(e.refs?.({prop:c,context:g})??{}),w=()=>({state:T(),context:g,event:x(),prop:c,send:M,action:R,guard:P,track:b2,refs:E,computed:k,flush:Px,scope:i,choose:O}),R=W=>{const Q=Ir(W)?W(w()):W;if(!Q)return;const ue=Q.map(he=>{const ge=e.implementations?.actions?.[he];return ge||Rl(`[zag-js] No implementation found for action "${JSON.stringify(he)}"`),ge});for(const he of ue)he?.(w())},P=W=>Ir(W)?W(w()):e.implementations?.guards?.[W](w()),I=W=>{const Q=Ir(W)?W(w()):W;if(!Q)return;const ue=Q.map(ge=>{const F=e.implementations?.effects?.[ge];return F||Rl(`[zag-js] No implementation found for effect "${JSON.stringify(ge)}"`),F}),he=[];for(const ge of ue){const F=ge?.(w());F&&he.push(F)}return()=>he.forEach(ge=>ge?.())},O=W=>$u(W).find(Q=>{let ue=!Q.guard;return Uu(Q.guard)?ue=!!P(Q.guard):Ir(Q.guard)&&(ue=Q.guard(w())),ue}),k=W=>{em(e.computed,()=>"[zag-js] No computed object found on machine");const Q=e.computed[W];return Q({context:g,event:x(),prop:c,refs:E,scope:i,computed:k})},U=od(()=>({defaultValue:e.initialState({prop:c}),onChange(W,Q){Q&&(p.current.get(Q)?.(),p.current.delete(Q)),Q&&R(e.states[Q]?.exit),R(m.current?.actions);const ue=I(e.states[W]?.effects);if(ue&&p.current.set(W,ue),Q===_g){R(e.entry);const he=I(e.effects);he&&p.current.set(_g,he)}R(e.states[W]?.entry)}})),H=C.useRef(void 0),G=C.useRef(wo.NotStarted);yE(()=>{queueMicrotask(()=>{const ue=G.current===wo.Started;G.current=wo.Started,r(ue?"rehydrating...":"initializing...");const he=H.current??U.initial;U.invoke(he,ue?U.get():_g)});const W=p.current,Q=U.ref.current;return()=>{r("unmounting..."),H.current=Q,G.current=wo.Stopped,W.forEach(ue=>ue?.()),p.current=new Map,m.current=null,queueMicrotask(()=>{R(e.exit)})}},[]);const z=()=>"ref"in U?U.ref.current:U.get(),M=W=>{queueMicrotask(()=>{if(G.current!==wo.Started)return;b.current=y.current,y.current=W;let Q=z();const ue=e.states[Q].on?.[W.type]??e.on?.[W.type],he=O(ue);if(!he)return;m.current=he;const ge=he.target??Q;r("transition",W.type,he.target||Q,`(${he.actions})`);const F=ge!==Q;F?zd.flushSync(()=>U.set(ge)):he.reenter&&!F?U.invoke(Q,Q):R(he.actions??[])})};return e.watch?.(w()),{state:T(),send:M,context:g,prop:c,scope:i,refs:E,computed:k,event:x(),getStatus:()=>G.current}}function xE(e){const t=C.useRef(e);return t.current=e,t}function y2(e){const t=xE(e);return function(r){return t.current[r]}}function Px(e){queueMicrotask(()=>{zd.flushSync(()=>e())})}var Ji=g2(e=>e);function SE(e,t={}){const{sync:i=!1}=t,r=x2(e);return C.useCallback((...o)=>i?queueMicrotask(()=>r.current?.(...o)):r.current?.(...o),[i,r])}function x2(e){const t=C.useRef(e);return t.current=e,t}const jn=(e={})=>{const{lazyMount:t,unmountOnExit:i,present:r,skipAnimationOnMount:o=!1,...c}=e,u=C.useRef(!1),d={...c,present:r,onExitComplete:SE(e.onExitComplete)},g=vi(m2,d),p=p2(g);p.present&&(u.current=!0);const m=!p.present&&!u.current&&t||i&&!p.present&&u.current,b=()=>({"data-state":p.skip&&o?void 0:r?"open":"closed",hidden:!p.present});return{ref:p.setNode,getPresenceProps:b,present:p.present,unmounted:m}},[Jn,Cn]=at({name:"PresenceContext",hookName:"usePresenceContext",providerName:"<PresenceProvider />"}),hl=ct("span");hl.displayName="Span";const{withContext:S2}=Xi({key:"text"}),C2=S2("p");C2.displayName="Text";const E2=e=>ot()(e,["collapsedHeight","collapsedWidth","defaultOpen","disabled","id","ids","lazyMount","onExitComplete","onOpenChange","open","unmountOnExit"]);var ve=(e,t=[])=>({parts:(...i)=>{if(T2(t))return ve(e,i);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...i)=>ve(e,[...t,...i]),omit:(...i)=>ve(e,t.filter(r=>!i.includes(r))),rename:i=>ve(i,t),keys:()=>t,build:()=>[...new Set(t)].reduce((i,r)=>Object.assign(i,{[r]:{selector:[`&[data-scope="${bo(e)}"][data-part="${bo(r)}"]`,`& [data-scope="${bo(e)}"][data-part="${bo(r)}"]`].join(", "),attrs:{"data-scope":bo(e),"data-part":bo(r)}}}),{})}),bo=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),T2=e=>e.length===0,CE=ve("collapsible").parts("root","trigger","content","indicator"),xu=CE.build(),w2=e=>e.ids?.root??`collapsible:${e.id}`,ip=e=>e.ids?.content??`collapsible:${e.id}:content`,O2=e=>e.ids?.trigger??`collapsible:${e.id}:trigger`,Qs=e=>e.getById(ip(e));function R2(e,t){const{state:i,send:r,context:o,scope:c,prop:u}=e,d=i.matches("open")||i.matches("closing"),g=i.matches("open"),p=i.matches("closed"),{width:m,height:b}=o.get("size"),y=!!u("disabled"),x=u("collapsedHeight"),T=u("collapsedWidth"),E=x!=null,w=T!=null,R=E||w,P=!o.get("initial")&&g;return{disabled:y,visible:d,open:g,measureSize(){r({type:"size.measure"})},setOpen(I){i.matches("open")!==I&&r({type:I?"open":"close"})},getRootProps(){return t.element({...xu.root.attrs,"data-state":g?"open":"closed",dir:u("dir"),id:w2(c)})},getContentProps(){return t.element({...xu.content.attrs,id:ip(c),"data-collapsible":"","data-state":P?void 0:g?"open":"closed","data-disabled":fe(y),"data-has-collapsed-size":fe(R),hidden:!d&&!R,dir:u("dir"),style:{"--height":Dn(b),"--width":Dn(m),"--collapsed-height":Dn(x),"--collapsed-width":Dn(T),...p&&E&&{overflow:"hidden",minHeight:Dn(x),maxHeight:Dn(x)},...p&&w&&{overflow:"hidden",minWidth:Dn(T),maxWidth:Dn(T)}}})},getTriggerProps(){return t.element({...xu.trigger.attrs,id:O2(c),dir:u("dir"),type:"button","data-state":g?"open":"closed","data-disabled":fe(y),"aria-controls":ip(c),"aria-expanded":d||!1,onClick(I){I.defaultPrevented||y||r({type:g?"close":"open"})}})},getIndicatorProps(){return t.element({...xu.indicator.attrs,dir:u("dir"),"data-state":g?"open":"closed","data-disabled":fe(y)})}}}var k2={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:i}){e([()=>t("open")],()=>{i(["setInitial","computeSize","toggleVisibility"])})},exit:["clearInitial","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 i;const r=pe(()=>{const o=Qs(t);if(!o)return;const c=_r(o).animationName;if(!c||c==="none"){e({type:"animation.end"});return}const d=g=>{nt(g)===o&&e({type:"animation.end"})};o.addEventListener("animationend",d),i=()=>{o.removeEventListener("animationend",d)}});return()=>{r(),i?.()}},trackExitAnimation:({send:e,scope:t})=>{let i;const r=pe(()=>{const o=Qs(t);if(!o)return;const c=_r(o).animationName;if(!c||c==="none"){e({type:"animation.end"});return}const d=p=>{nt(p)===o&&e({type:"animation.end"})};o.addEventListener("animationend",d);const g=Pl(o,{animationFillMode:"forwards"});i=()=>{o.removeEventListener("animationend",d),Ad(()=>g())}});return()=>{r(),i?.()}},trackTabbableElements:({scope:e,prop:t})=>{if(!t("collapsedHeight")&&!t("collapsedWidth"))return;const i=Qs(e);if(!i)return;const r=()=>{const d=$o(i).map(g=>e2(g,"inert",""));return()=>{d.forEach(g=>g())}};let o=r();const c=MA(i,{callback(){o(),o=r()}});return()=>{o(),c()}}},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 i=Qs(t);if(!i)return;const{height:r,width:o}=i.getBoundingClientRect();e.set("size",{height:r,width:o})},computeSize:({refs:e,scope:t,context:i})=>{e.get("cleanup")?.();const r=pe(()=>{const o=Qs(t);if(!o)return;const c=o.hidden;o.style.animationName="none",o.style.animationDuration="0s",o.hidden=!1;const u=o.getBoundingClientRect();i.set("size",{height:u.height,width:u.width}),i.get("initial")&&(o.style.animationName="",o.style.animationDuration=""),o.hidden=c});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"})}}}};ce()(["dir","disabled","getRootNode","id","ids","collapsedHeight","collapsedWidth","onExitComplete","onOpenChange","defaultOpen","open"]);const N2=(e={})=>{const{lazyMount:t,unmountOnExit:i,...r}=e,o=C.useId(),c=C.useRef(!1),{dir:u}=Zi(),{getRootNode:d}=pi(),g={id:o,dir:u,getRootNode:d,...r},p=vi(k2,g),m=R2(p,Ji);m.visible&&(c.current=!0);const b=!m.visible&&!c.current&&t||i&&!m.visible&&c.current;return{...m,isUnmounted:b}},[EE,hm]=at({name:"CollapsibleContext",hookName:"useCollapsibleContext",providerName:"<CollapsibleProvider />"}),TE=C.forwardRef((e,t)=>{const[i,r]=E2(e),o=N2(i),c=ne(o.getRootProps(),r);return V.jsx(EE,{value:o,children:V.jsx(re.div,{...c,ref:t})})});TE.displayName="CollapsibleRoot";var I2=Object.defineProperty,P2=(e,t,i)=>t in e?I2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,gm=(e,t,i)=>P2(e,t+"",i),A2=(e,t)=>{if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let i in e)if(e[i]!==t[i])return!1;return!0},pm=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 i=t??this.getChannelValue(e),{minValue:r,maxValue:o}=this.getChannelRange(e);return AP(i,r,o)}getChannelPercentValue(e,t){const{minValue:i,maxValue:r,step:o}=this.getChannelRange(e),c=_P(t,i,r,o);return Ex(c,i,r,o)}withChannelValue(e,t){const{minValue:i,maxValue:r}=this.getChannelRange(e);if(e in this){let o=this.clone();return o[e]=tn(t,i,r),o}throw new Error("Unsupported color channel: "+e)}getColorAxes(e){let{xChannel:t,yChannel:i}=e,r=t||this.getChannels().find(u=>u!==i),o=i||this.getChannels().find(u=>u!==r),c=this.getChannels().find(u=>u!==r&&u!==o);return{xChannel:r,yChannel:o,zChannel:c}}incrementChannel(e,t){const{minValue:i,maxValue:r,step:o}=this.getChannelRange(e),c=Ex(tn(this.getChannelValue(e)+t,i,r),i,r,o);return this.withChannelValue(e,c)}decrementChannel(e,t){return this.incrementChannel(e,-t)}isEqual(e){return A2(this.toJSON(),e.toJSON())&&this.getChannelValue("alpha")===e.getChannelValue("alpha")}},_2=/^#[\da-f]+$/i,V2=/^rgba?\((.*)\)$/,z2=/[^#]/gi,wE=class Gu extends pm{constructor(t,i,r,o){super(),this.red=t,this.green=i,this.blue=r,this.alpha=o}static parse(t){let i=[];if(_2.test(t)&&[4,5,7,9].includes(t.length)){const o=(t.length<6?t.replace(z2,"$&$&"):t).slice(1).split("");for(;o.length>0;)i.push(parseInt(o.splice(0,2).join(""),16));i[3]=i[3]!==void 0?i[3]/255:void 0}const r=t.match(V2);return r?.[1]&&(i=r[1].split(",").map(o=>Number(o.trim())).map((o,c)=>tn(o,0,c<3?255:1))),i.length<3?void 0:new Gu(i[0],i[1],i[2],i[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,i=this.green/255,r=this.blue/255,o=Math.min(t,i,r),c=Math.max(t,i,r),u=c-o,d=c===0?0:u/c;let g=0;if(u!==0){switch(c){case t:g=(i-r)/u+(i<r?6:0);break;case i:g=(r-t)/u+2;break;case r:g=(t-i)/u+4;break}g/=6}return new bm(Qe(g*360,2),Qe(d*100,2),Qe(c*100,2),Qe(this.alpha,2))}toHSL(){const t=this.red/255,i=this.green/255,r=this.blue/255,o=Math.min(t,i,r),c=Math.max(t,i,r),u=(c+o)/2,d=c-o;let g=-1,p=-1;if(d===0)g=p=0;else{switch(p=d/(u<.5?c+o:2-c-o),c){case t:g=(i-r)/d+(i<r?6:0);break;case i:g=(r-t)/d+2;break;case r:g=(t-i)/d+4;break}g/=6}return new vm(Qe(g*360,2),Qe(p*100,2),Qe(u*100,2),Qe(this.alpha,2))}clone(){return new Gu(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,i){let r=this.getChannelFormatOptions(t),o=this.getChannelValue(t);return new Intl.NumberFormat(i,r).format(o)}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 Gu.colorChannels}};gm(wE,"colorChannels",["red","green","blue"]);var mm=wE,D2=/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+)?)\)/,OE=class Wu extends pm{constructor(t,i,r,o){super(),this.hue=t,this.saturation=i,this.lightness=r,this.alpha=o}static parse(t){let i;if(i=t.match(D2)){const[r,o,c,u]=(i[1]??i[2]).split(",").map(d=>Number(d.trim().replace("%","")));return new Wu(YC(r,360),tn(o,0,100),tn(c,0,100),tn(u??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}, ${Qe(this.saturation,2)}%, ${Qe(this.lightness,2)}%)`;case"css":case"hsla":return`hsla(${this.hue}, ${Qe(this.saturation,2)}%, ${Qe(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,i=this.lightness/100,r=i+t*Math.min(i,1-i);return t=r===0?0:2*(1-i/r),new bm(Qe(this.hue,2),Qe(t*100,2),Qe(r*100,2),Qe(this.alpha,2))}toRGB(){let t=this.hue,i=this.saturation/100,r=this.lightness/100,o=i*Math.min(r,1-r),c=(u,d=(u+t/30)%12)=>r-o*Math.max(Math.min(d-3,9-d,1),-1);return new mm(Math.round(c(0)*255),Math.round(c(8)*255),Math.round(c(4)*255),Qe(this.alpha,2))}clone(){return new Wu(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,i){let r=this.getChannelFormatOptions(t),o=this.getChannelValue(t);return(t==="saturation"||t==="lightness")&&(o/=100),new Intl.NumberFormat(i,r).format(o)}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 Wu.colorChannels}};gm(OE,"colorChannels",["hue","saturation","lightness"]);var vm=OE,M2=/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+)?)\)/,RE=class qu extends pm{constructor(t,i,r,o){super(),this.hue=t,this.saturation=i,this.brightness=r,this.alpha=o}static parse(t){let i;if(i=t.match(M2)){const[r,o,c,u]=(i[1]??i[2]).split(",").map(d=>Number(d.trim().replace("%","")));return new qu(YC(r,360),tn(o,0,100),tn(c,0,100),tn(u??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}, ${Qe(this.saturation,2)}%, ${Qe(this.brightness,2)}%)`;case"hsba":return`hsba(${this.hue}, ${Qe(this.saturation,2)}%, ${Qe(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,i=this.brightness/100,r=i*(1-t/2);return t=r===0||r===1?0:(i-r)/Math.min(r,1-r),new vm(Qe(this.hue,2),Qe(t*100,2),Qe(r*100,2),Qe(this.alpha,2))}toRGB(){let t=this.hue,i=this.saturation/100,r=this.brightness/100,o=(c,u=(c+t/60)%6)=>r-i*r*Math.max(Math.min(u,4-u,1),0);return new mm(Math.round(o(5)*255),Math.round(o(3)*255),Math.round(o(1)*255),Qe(this.alpha,2))}clone(){return new qu(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,i){let r=this.getChannelFormatOptions(t),o=this.getChannelValue(t);return(t==="saturation"||t==="brightness")&&(o/=100),new Intl.NumberFormat(i,r).format(o)}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 qu.colorChannels}};gm(RE,"colorChannels",["hue","saturation","brightness"]);var bm=RE,L2="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",B2=e=>{const t=new Map,i=e.split(",");for(let r=0;r<i.length;r++){const[o,c]=i[r].split(":");t.set(o,`#${c}`),o.includes("gray")&&t.set(o.replace("gray","grey"),`#${c}`)}return t},Ax=B2(L2),sd=e=>{if(Ax.has(e))return sd(Ax.get(e));const t=mm.parse(e)||bm.parse(e)||vm.parse(e);if(!t){const i=new Error("Invalid color value: "+e);throw Error.captureStackTrace?.(i,sd),i}return t};const H2=["top","right","bottom","left"],zr=Math.min,bn=Math.max,ld=Math.round,Su=Math.floor,fi=e=>({x:e,y:e}),F2={left:"right",right:"left",bottom:"top",top:"bottom"},$2={start:"end",end:"start"};function rp(e,t,i){return bn(e,zr(t,i))}function qi(e,t){return typeof e=="function"?e(t):e}function Yi(e){return e.split("-")[0]}function Uo(e){return e.split("-")[1]}function ym(e){return e==="x"?"y":"x"}function xm(e){return e==="y"?"height":"width"}const U2=new Set(["top","bottom"]);function ui(e){return U2.has(Yi(e))?"y":"x"}function Sm(e){return ym(ui(e))}function j2(e,t,i){i===void 0&&(i=!1);const r=Uo(e),o=Sm(e),c=xm(o);let u=o==="x"?r===(i?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(u=cd(u)),[u,cd(u)]}function G2(e){const t=cd(e);return[ap(e),t,ap(t)]}function ap(e){return e.replace(/start|end/g,t=>$2[t])}const _x=["left","right"],Vx=["right","left"],W2=["top","bottom"],q2=["bottom","top"];function Y2(e,t,i){switch(e){case"top":case"bottom":return i?t?Vx:_x:t?_x:Vx;case"left":case"right":return t?W2:q2;default:return[]}}function K2(e,t,i,r){const o=Uo(e);let c=Y2(Yi(e),i==="start",r);return o&&(c=c.map(u=>u+"-"+o),t&&(c=c.concat(c.map(ap)))),c}function cd(e){return e.replace(/left|right|bottom|top/g,t=>F2[t])}function X2(e){return{top:0,right:0,bottom:0,left:0,...e}}function kE(e){return typeof e!="number"?X2(e):{top:e,right:e,bottom:e,left:e}}function ud(e){const{x:t,y:i,width:r,height:o}=e;return{width:r,height:o,top:i,left:t,right:t+r,bottom:i+o,x:t,y:i}}function zx(e,t,i){let{reference:r,floating:o}=e;const c=ui(t),u=Sm(t),d=xm(u),g=Yi(t),p=c==="y",m=r.x+r.width/2-o.width/2,b=r.y+r.height/2-o.height/2,y=r[d]/2-o[d]/2;let x;switch(g){case"top":x={x:m,y:r.y-o.height};break;case"bottom":x={x:m,y:r.y+r.height};break;case"right":x={x:r.x+r.width,y:b};break;case"left":x={x:r.x-o.width,y:b};break;default:x={x:r.x,y:r.y}}switch(Uo(t)){case"start":x[u]-=y*(i&&p?-1:1);break;case"end":x[u]+=y*(i&&p?-1:1);break}return x}const Q2=async(e,t,i)=>{const{placement:r="bottom",strategy:o="absolute",middleware:c=[],platform:u}=i,d=c.filter(Boolean),g=await(u.isRTL==null?void 0:u.isRTL(t));let p=await u.getElementRects({reference:e,floating:t,strategy:o}),{x:m,y:b}=zx(p,r,g),y=r,x={},T=0;for(let E=0;E<d.length;E++){const{name:w,fn:R}=d[E],{x:P,y:I,data:O,reset:k}=await R({x:m,y:b,initialPlacement:r,placement:y,strategy:o,middlewareData:x,rects:p,platform:u,elements:{reference:e,floating:t}});m=P??m,b=I??b,x={...x,[w]:{...x[w],...O}},k&&T<=50&&(T++,typeof k=="object"&&(k.placement&&(y=k.placement),k.rects&&(p=k.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:o}):k.rects),{x:m,y:b}=zx(p,y,g)),E=-1)}return{x:m,y:b,placement:y,strategy:o,middlewareData:x}};async function Al(e,t){var i;t===void 0&&(t={});const{x:r,y:o,platform:c,rects:u,elements:d,strategy:g}=e,{boundary:p="clippingAncestors",rootBoundary:m="viewport",elementContext:b="floating",altBoundary:y=!1,padding:x=0}=qi(t,e),T=kE(x),w=d[y?b==="floating"?"reference":"floating":b],R=ud(await c.getClippingRect({element:(i=await(c.isElement==null?void 0:c.isElement(w)))==null||i?w:w.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:p,rootBoundary:m,strategy:g})),P=b==="floating"?{x:r,y:o,width:u.floating.width,height:u.floating.height}:u.reference,I=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),O=await(c.isElement==null?void 0:c.isElement(I))?await(c.getScale==null?void 0:c.getScale(I))||{x:1,y:1}:{x:1,y:1},k=ud(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:P,offsetParent:I,strategy:g}):P);return{top:(R.top-k.top+T.top)/O.y,bottom:(k.bottom-R.bottom+T.bottom)/O.y,left:(R.left-k.left+T.left)/O.x,right:(k.right-R.right+T.right)/O.x}}const Z2=e=>({name:"arrow",options:e,async fn(t){const{x:i,y:r,placement:o,rects:c,platform:u,elements:d,middlewareData:g}=t,{element:p,padding:m=0}=qi(e,t)||{};if(p==null)return{};const b=kE(m),y={x:i,y:r},x=Sm(o),T=xm(x),E=await u.getDimensions(p),w=x==="y",R=w?"top":"left",P=w?"bottom":"right",I=w?"clientHeight":"clientWidth",O=c.reference[T]+c.reference[x]-y[x]-c.floating[T],k=y[x]-c.reference[x],U=await(u.getOffsetParent==null?void 0:u.getOffsetParent(p));let H=U?U[I]:0;(!H||!await(u.isElement==null?void 0:u.isElement(U)))&&(H=d.floating[I]||c.floating[T]);const G=O/2-k/2,z=H/2-E[T]/2-1,M=zr(b[R],z),W=zr(b[P],z),Q=M,ue=H-E[T]-W,he=H/2-E[T]/2+G,ge=rp(Q,he,ue),F=!g.arrow&&Uo(o)!=null&&he!==ge&&c.reference[T]/2-(he<Q?M:W)-E[T]/2<0,ee=F?he<Q?he-Q:he-ue:0;return{[x]:y[x]+ee,data:{[x]:ge,centerOffset:he-ge-ee,...F&&{alignmentOffset:ee}},reset:F}}}),J2=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var i,r;const{placement:o,middlewareData:c,rects:u,initialPlacement:d,platform:g,elements:p}=t,{mainAxis:m=!0,crossAxis:b=!0,fallbackPlacements:y,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:E=!0,...w}=qi(e,t);if((i=c.arrow)!=null&&i.alignmentOffset)return{};const R=Yi(o),P=ui(d),I=Yi(d)===d,O=await(g.isRTL==null?void 0:g.isRTL(p.floating)),k=y||(I||!E?[cd(d)]:G2(d)),U=T!=="none";!y&&U&&k.push(...K2(d,E,T,O));const H=[d,...k],G=await Al(t,w),z=[];let M=((r=c.flip)==null?void 0:r.overflows)||[];if(m&&z.push(G[R]),b){const he=j2(o,u,O);z.push(G[he[0]],G[he[1]])}if(M=[...M,{placement:o,overflows:z}],!z.every(he=>he<=0)){var W,Q;const he=(((W=c.flip)==null?void 0:W.index)||0)+1,ge=H[he];if(ge&&(!(b==="alignment"?P!==ui(ge):!1)||M.every(se=>ui(se.placement)===P?se.overflows[0]>0:!0)))return{data:{index:he,overflows:M},reset:{placement:ge}};let F=(Q=M.filter(ee=>ee.overflows[0]<=0).sort((ee,se)=>ee.overflows[1]-se.overflows[1])[0])==null?void 0:Q.placement;if(!F)switch(x){case"bestFit":{var ue;const ee=(ue=M.filter(se=>{if(U){const ae=ui(se.placement);return ae===P||ae==="y"}return!0}).map(se=>[se.placement,se.overflows.filter(ae=>ae>0).reduce((ae,ye)=>ae+ye,0)]).sort((se,ae)=>se[1]-ae[1])[0])==null?void 0:ue[0];ee&&(F=ee);break}case"initialPlacement":F=d;break}if(o!==F)return{reset:{placement:F}}}return{}}}};function Dx(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Mx(e){return H2.some(t=>e[t]>=0)}const e_=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:i}=t,{strategy:r="referenceHidden",...o}=qi(e,t);switch(r){case"referenceHidden":{const c=await Al(t,{...o,elementContext:"reference"}),u=Dx(c,i.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:Mx(u)}}}case"escaped":{const c=await Al(t,{...o,altBoundary:!0}),u=Dx(c,i.floating);return{data:{escapedOffsets:u,escaped:Mx(u)}}}default:return{}}}}},NE=new Set(["left","top"]);async function t_(e,t){const{placement:i,platform:r,elements:o}=e,c=await(r.isRTL==null?void 0:r.isRTL(o.floating)),u=Yi(i),d=Uo(i),g=ui(i)==="y",p=NE.has(u)?-1:1,m=c&&g?-1:1,b=qi(t,e);let{mainAxis:y,crossAxis:x,alignmentAxis:T}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return d&&typeof T=="number"&&(x=d==="end"?T*-1:T),g?{x:x*m,y:y*p}:{x:y*p,y:x*m}}const n_=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var i,r;const{x:o,y:c,placement:u,middlewareData:d}=t,g=await t_(t,e);return u===((i=d.offset)==null?void 0:i.placement)&&(r=d.arrow)!=null&&r.alignmentOffset?{}:{x:o+g.x,y:c+g.y,data:{...g,placement:u}}}}},i_=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:i,y:r,placement:o}=t,{mainAxis:c=!0,crossAxis:u=!1,limiter:d={fn:w=>{let{x:R,y:P}=w;return{x:R,y:P}}},...g}=qi(e,t),p={x:i,y:r},m=await Al(t,g),b=ui(Yi(o)),y=ym(b);let x=p[y],T=p[b];if(c){const w=y==="y"?"top":"left",R=y==="y"?"bottom":"right",P=x+m[w],I=x-m[R];x=rp(P,x,I)}if(u){const w=b==="y"?"top":"left",R=b==="y"?"bottom":"right",P=T+m[w],I=T-m[R];T=rp(P,T,I)}const E=d.fn({...t,[y]:x,[b]:T});return{...E,data:{x:E.x-i,y:E.y-r,enabled:{[y]:c,[b]:u}}}}}},r_=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:i,y:r,placement:o,rects:c,middlewareData:u}=t,{offset:d=0,mainAxis:g=!0,crossAxis:p=!0}=qi(e,t),m={x:i,y:r},b=ui(o),y=ym(b);let x=m[y],T=m[b];const E=qi(d,t),w=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(g){const I=y==="y"?"height":"width",O=c.reference[y]-c.floating[I]+w.mainAxis,k=c.reference[y]+c.reference[I]-w.mainAxis;x<O?x=O:x>k&&(x=k)}if(p){var R,P;const I=y==="y"?"width":"height",O=NE.has(Yi(o)),k=c.reference[b]-c.floating[I]+(O&&((R=u.offset)==null?void 0:R[b])||0)+(O?0:w.crossAxis),U=c.reference[b]+c.reference[I]+(O?0:((P=u.offset)==null?void 0:P[b])||0)-(O?w.crossAxis:0);T<k?T=k:T>U&&(T=U)}return{[y]:x,[b]:T}}}},a_=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var i,r;const{placement:o,rects:c,platform:u,elements:d}=t,{apply:g=()=>{},...p}=qi(e,t),m=await Al(t,p),b=Yi(o),y=Uo(o),x=ui(o)==="y",{width:T,height:E}=c.floating;let w,R;b==="top"||b==="bottom"?(w=b,R=y===(await(u.isRTL==null?void 0:u.isRTL(d.floating))?"start":"end")?"left":"right"):(R=b,w=y==="end"?"top":"bottom");const P=E-m.top-m.bottom,I=T-m.left-m.right,O=zr(E-m[w],P),k=zr(T-m[R],I),U=!t.middlewareData.shift;let H=O,G=k;if((i=t.middlewareData.shift)!=null&&i.enabled.x&&(G=I),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(H=P),U&&!y){const M=bn(m.left,0),W=bn(m.right,0),Q=bn(m.top,0),ue=bn(m.bottom,0);x?G=T-2*(M!==0||W!==0?M+W:bn(m.left,m.right)):H=E-2*(Q!==0||ue!==0?Q+ue:bn(m.top,m.bottom))}await g({...t,availableWidth:G,availableHeight:H});const z=await u.getDimensions(d.floating);return T!==z.width||E!==z.height?{reset:{rects:!0}}:{}}}};function Dd(){return typeof window<"u"}function jo(e){return IE(e)?(e.nodeName||"").toLowerCase():"#document"}function xn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function bi(e){var t;return(t=(IE(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function IE(e){return Dd()?e instanceof Node||e instanceof xn(e).Node:!1}function Xn(e){return Dd()?e instanceof Element||e instanceof xn(e).Element:!1}function hi(e){return Dd()?e instanceof HTMLElement||e instanceof xn(e).HTMLElement:!1}function Lx(e){return!Dd()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof xn(e).ShadowRoot}const o_=new Set(["inline","contents"]);function jl(e){const{overflow:t,overflowX:i,overflowY:r,display:o}=Qn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+i)&&!o_.has(o)}const s_=new Set(["table","td","th"]);function l_(e){return s_.has(jo(e))}const c_=[":popover-open",":modal"];function Md(e){return c_.some(t=>{try{return e.matches(t)}catch{return!1}})}const u_=["transform","translate","scale","rotate","perspective"],d_=["transform","translate","scale","rotate","perspective","filter"],f_=["paint","layout","strict","content"];function Cm(e){const t=Em(),i=Xn(e)?Qn(e):e;return u_.some(r=>i[r]?i[r]!=="none":!1)||(i.containerType?i.containerType!=="normal":!1)||!t&&(i.backdropFilter?i.backdropFilter!=="none":!1)||!t&&(i.filter?i.filter!=="none":!1)||d_.some(r=>(i.willChange||"").includes(r))||f_.some(r=>(i.contain||"").includes(r))}function h_(e){let t=Dr(e);for(;hi(t)&&!Bo(t);){if(Cm(t))return t;if(Md(t))return null;t=Dr(t)}return null}function Em(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const g_=new Set(["html","body","#document"]);function Bo(e){return g_.has(jo(e))}function Qn(e){return xn(e).getComputedStyle(e)}function Ld(e){return Xn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Dr(e){if(jo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Lx(e)&&e.host||bi(e);return Lx(t)?t.host:t}function PE(e){const t=Dr(e);return Bo(t)?e.ownerDocument?e.ownerDocument.body:e.body:hi(t)&&jl(t)?t:PE(t)}function _l(e,t,i){var r;t===void 0&&(t=[]),i===void 0&&(i=!0);const o=PE(e),c=o===((r=e.ownerDocument)==null?void 0:r.body),u=xn(o);if(c){const d=op(u);return t.concat(u,u.visualViewport||[],jl(o)?o:[],d&&i?_l(d):[])}return t.concat(o,_l(o,[],i))}function op(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function AE(e){const t=Qn(e);let i=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=hi(e),c=o?e.offsetWidth:i,u=o?e.offsetHeight:r,d=ld(i)!==c||ld(r)!==u;return d&&(i=c,r=u),{width:i,height:r,$:d}}function Tm(e){return Xn(e)?e:e.contextElement}function Do(e){const t=Tm(e);if(!hi(t))return fi(1);const i=t.getBoundingClientRect(),{width:r,height:o,$:c}=AE(t);let u=(c?ld(i.width):i.width)/r,d=(c?ld(i.height):i.height)/o;return(!u||!Number.isFinite(u))&&(u=1),(!d||!Number.isFinite(d))&&(d=1),{x:u,y:d}}const p_=fi(0);function _E(e){const t=xn(e);return!Em()||!t.visualViewport?p_:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function m_(e,t,i){return t===void 0&&(t=!1),!i||t&&i!==xn(e)?!1:t}function Ta(e,t,i,r){t===void 0&&(t=!1),i===void 0&&(i=!1);const o=e.getBoundingClientRect(),c=Tm(e);let u=fi(1);t&&(r?Xn(r)&&(u=Do(r)):u=Do(e));const d=m_(c,i,r)?_E(c):fi(0);let g=(o.left+d.x)/u.x,p=(o.top+d.y)/u.y,m=o.width/u.x,b=o.height/u.y;if(c){const y=xn(c),x=r&&Xn(r)?xn(r):r;let T=y,E=op(T);for(;E&&r&&x!==T;){const w=Do(E),R=E.getBoundingClientRect(),P=Qn(E),I=R.left+(E.clientLeft+parseFloat(P.paddingLeft))*w.x,O=R.top+(E.clientTop+parseFloat(P.paddingTop))*w.y;g*=w.x,p*=w.y,m*=w.x,b*=w.y,g+=I,p+=O,T=xn(E),E=op(T)}}return ud({width:m,height:b,x:g,y:p})}function Bd(e,t){const i=Ld(e).scrollLeft;return t?t.left+i:Ta(bi(e)).left+i}function VE(e,t){const i=e.getBoundingClientRect(),r=i.left+t.scrollLeft-Bd(e,i),o=i.top+t.scrollTop;return{x:r,y:o}}function v_(e){let{elements:t,rect:i,offsetParent:r,strategy:o}=e;const c=o==="fixed",u=bi(r),d=t?Md(t.floating):!1;if(r===u||d&&c)return i;let g={scrollLeft:0,scrollTop:0},p=fi(1);const m=fi(0),b=hi(r);if((b||!b&&!c)&&((jo(r)!=="body"||jl(u))&&(g=Ld(r)),hi(r))){const x=Ta(r);p=Do(r),m.x=x.x+r.clientLeft,m.y=x.y+r.clientTop}const y=u&&!b&&!c?VE(u,g):fi(0);return{width:i.width*p.x,height:i.height*p.y,x:i.x*p.x-g.scrollLeft*p.x+m.x+y.x,y:i.y*p.y-g.scrollTop*p.y+m.y+y.y}}function b_(e){return Array.from(e.getClientRects())}function y_(e){const t=bi(e),i=Ld(e),r=e.ownerDocument.body,o=bn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),c=bn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let u=-i.scrollLeft+Bd(e);const d=-i.scrollTop;return Qn(r).direction==="rtl"&&(u+=bn(t.clientWidth,r.clientWidth)-o),{width:o,height:c,x:u,y:d}}const Bx=25;function x_(e,t){const i=xn(e),r=bi(e),o=i.visualViewport;let c=r.clientWidth,u=r.clientHeight,d=0,g=0;if(o){c=o.width,u=o.height;const m=Em();(!m||m&&t==="fixed")&&(d=o.offsetLeft,g=o.offsetTop)}const p=Bd(r);if(p<=0){const m=r.ownerDocument,b=m.body,y=getComputedStyle(b),x=m.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,T=Math.abs(r.clientWidth-b.clientWidth-x);T<=Bx&&(c-=T)}else p<=Bx&&(c+=p);return{width:c,height:u,x:d,y:g}}const S_=new Set(["absolute","fixed"]);function C_(e,t){const i=Ta(e,!0,t==="fixed"),r=i.top+e.clientTop,o=i.left+e.clientLeft,c=hi(e)?Do(e):fi(1),u=e.clientWidth*c.x,d=e.clientHeight*c.y,g=o*c.x,p=r*c.y;return{width:u,height:d,x:g,y:p}}function Hx(e,t,i){let r;if(t==="viewport")r=x_(e,i);else if(t==="document")r=y_(bi(e));else if(Xn(t))r=C_(t,i);else{const o=_E(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ud(r)}function zE(e,t){const i=Dr(e);return i===t||!Xn(i)||Bo(i)?!1:Qn(i).position==="fixed"||zE(i,t)}function E_(e,t){const i=t.get(e);if(i)return i;let r=_l(e,[],!1).filter(d=>Xn(d)&&jo(d)!=="body"),o=null;const c=Qn(e).position==="fixed";let u=c?Dr(e):e;for(;Xn(u)&&!Bo(u);){const d=Qn(u),g=Cm(u);!g&&d.position==="fixed"&&(o=null),(c?!g&&!o:!g&&d.position==="static"&&!!o&&S_.has(o.position)||jl(u)&&!g&&zE(e,u))?r=r.filter(m=>m!==u):o=d,u=Dr(u)}return t.set(e,r),r}function T_(e){let{element:t,boundary:i,rootBoundary:r,strategy:o}=e;const u=[...i==="clippingAncestors"?Md(t)?[]:E_(t,this._c):[].concat(i),r],d=u[0],g=u.reduce((p,m)=>{const b=Hx(t,m,o);return p.top=bn(b.top,p.top),p.right=zr(b.right,p.right),p.bottom=zr(b.bottom,p.bottom),p.left=bn(b.left,p.left),p},Hx(t,d,o));return{width:g.right-g.left,height:g.bottom-g.top,x:g.left,y:g.top}}function w_(e){const{width:t,height:i}=AE(e);return{width:t,height:i}}function O_(e,t,i){const r=hi(t),o=bi(t),c=i==="fixed",u=Ta(e,!0,c,t);let d={scrollLeft:0,scrollTop:0};const g=fi(0);function p(){g.x=Bd(o)}if(r||!r&&!c)if((jo(t)!=="body"||jl(o))&&(d=Ld(t)),r){const x=Ta(t,!0,c,t);g.x=x.x+t.clientLeft,g.y=x.y+t.clientTop}else o&&p();c&&!r&&o&&p();const m=o&&!r&&!c?VE(o,d):fi(0),b=u.left+d.scrollLeft-g.x-m.x,y=u.top+d.scrollTop-g.y-m.y;return{x:b,y,width:u.width,height:u.height}}function zg(e){return Qn(e).position==="static"}function Fx(e,t){if(!hi(e)||Qn(e).position==="fixed")return null;if(t)return t(e);let i=e.offsetParent;return bi(e)===i&&(i=i.ownerDocument.body),i}function DE(e,t){const i=xn(e);if(Md(e))return i;if(!hi(e)){let o=Dr(e);for(;o&&!Bo(o);){if(Xn(o)&&!zg(o))return o;o=Dr(o)}return i}let r=Fx(e,t);for(;r&&l_(r)&&zg(r);)r=Fx(r,t);return r&&Bo(r)&&zg(r)&&!Cm(r)?i:r||h_(e)||i}const R_=async function(e){const t=this.getOffsetParent||DE,i=this.getDimensions,r=await i(e.floating);return{reference:O_(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function k_(e){return Qn(e).direction==="rtl"}const N_={convertOffsetParentRelativeRectToViewportRelativeRect:v_,getDocumentElement:bi,getClippingRect:T_,getOffsetParent:DE,getElementRects:R_,getClientRects:b_,getDimensions:w_,getScale:Do,isElement:Xn,isRTL:k_};function ME(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function I_(e,t){let i=null,r;const o=bi(e);function c(){var d;clearTimeout(r),(d=i)==null||d.disconnect(),i=null}function u(d,g){d===void 0&&(d=!1),g===void 0&&(g=1),c();const p=e.getBoundingClientRect(),{left:m,top:b,width:y,height:x}=p;if(d||t(),!y||!x)return;const T=Su(b),E=Su(o.clientWidth-(m+y)),w=Su(o.clientHeight-(b+x)),R=Su(m),I={rootMargin:-T+"px "+-E+"px "+-w+"px "+-R+"px",threshold:bn(0,zr(1,g))||1};let O=!0;function k(U){const H=U[0].intersectionRatio;if(H!==g){if(!O)return u();H?u(!1,H):r=setTimeout(()=>{u(!1,1e-7)},1e3)}H===1&&!ME(p,e.getBoundingClientRect())&&u(),O=!1}try{i=new IntersectionObserver(k,{...I,root:o.ownerDocument})}catch{i=new IntersectionObserver(k,I)}i.observe(e)}return u(!0),c}function P_(e,t,i,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:c=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:g=!1}=r,p=Tm(e),m=o||c?[...p?_l(p):[],..._l(t)]:[];m.forEach(R=>{o&&R.addEventListener("scroll",i,{passive:!0}),c&&R.addEventListener("resize",i)});const b=p&&d?I_(p,i):null;let y=-1,x=null;u&&(x=new ResizeObserver(R=>{let[P]=R;P&&P.target===p&&x&&(x.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var I;(I=x)==null||I.observe(t)})),i()}),p&&!g&&x.observe(p),x.observe(t));let T,E=g?Ta(e):null;g&&w();function w(){const R=Ta(e);E&&!ME(E,R)&&i(),E=R,T=requestAnimationFrame(w)}return i(),()=>{var R;m.forEach(P=>{o&&P.removeEventListener("scroll",i),c&&P.removeEventListener("resize",i)}),b?.(),(R=x)==null||R.disconnect(),x=null,g&&cancelAnimationFrame(T)}}const A_=n_,__=i_,V_=J2,z_=a_,D_=e_,M_=Z2,L_=r_,B_=(e,t,i)=>{const r=new Map,o={platform:N_,...i},c={...o.platform,_c:r};return Q2(e,t,{...o,platform:c})};function $x(e=0,t=0,i=0,r=0){if(typeof DOMRect=="function")return new DOMRect(e,t,i,r);const o={x:e,y:t,width:i,height:r,top:t,right:e+i,bottom:t+r,left:e};return{...o,toJSON:()=>o}}function H_(e){if(!e)return $x();const{x:t,y:i,width:r,height:o}=e;return $x(t,i,r,o)}function F_(e,t){return{contextElement:Et(e)?e:void 0,getBoundingClientRect:()=>{const i=e,r=t?.(i);return r||!i?H_(r):i.getBoundingClientRect()}}}var Zs=e=>({variable:e,reference:`var(${e})`}),Ui={arrowSize:Zs("--arrow-size"),arrowSizeHalf:Zs("--arrow-size-half"),arrowBg:Zs("--arrow-background"),transformOrigin:Zs("--transform-origin"),arrowOffset:Zs("--arrow-offset")},$_=e=>e==="top"||e==="bottom"?"y":"x";function U_(e,t){return{name:"transformOrigin",fn(i){const{elements:r,middlewareData:o,placement:c,rects:u,y:d}=i,g=c.split("-")[0],p=$_(g),m=o.arrow?.x||0,b=o.arrow?.y||0,y=t?.clientWidth||0,x=t?.clientHeight||0,T=m+y/2,E=b+x/2,w=Math.abs(o.shift?.y||0),R=u.reference.height/2,P=x/2,I=e.offset?.mainAxis??e.gutter,O=typeof I=="number"?I+P:I??P,k=w>O,U={top:`${T}px calc(100% + ${O}px)`,bottom:`${T}px ${-O}px`,left:`calc(100% + ${O}px) ${E}px`,right:`${-O}px ${E}px`}[g],H=`${T}px ${u.reference.y+R-d}px`,G=!!e.overlap&&p==="y"&&k;return r.floating.style.setProperty(Ui.transformOrigin.variable,G?H:U),{data:{transformOrigin:G?H:U}}}}}var j_={name:"rects",fn({rects:e}){return{data:e}}},G_=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:i}){if(!i.arrow)return{};const{x:r,y:o}=i.arrow,c=t.split("-")[0];return Object.assign(e.style,{left:r!=null?`${r}px`:"",top:o!=null?`${o}px`:"",[c]:`calc(100% + ${Ui.arrowOffset.reference})`}),{}}}};function W_(e){const[t,i]=e.split("-");return{side:t,align:i,hasAlign:i!=null}}function q_(e){return e.split("-")[0]}var Y_={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function Ux(e,t){const i=e.devicePixelRatio||1;return Math.round(t*i)/i}function wm(e){return typeof e=="function"?e():e==="clipping-ancestors"?"clippingAncestors":e}function K_(e,t,i){const r=e||t.createElement("div");return M_({element:r,padding:i.arrowPadding})}function X_(e,t){if(!gP(t.offset??t.gutter))return A_(({placement:i})=>{const r=(e?.clientHeight||0)/2,o=t.offset?.mainAxis??t.gutter,c=typeof o=="number"?o+r:o??r,{hasAlign:u}=W_(i),d=u?void 0:t.shift,g=t.offset?.crossAxis??d;return Jp({crossAxis:g,mainAxis:c,alignmentAxis:t.shift})})}function Q_(e){if(!e.flip)return;const t=wm(e.boundary);return V_({...t?{boundary:t}:void 0,padding:e.overflowPadding,fallbackPlacements:e.flip===!0?void 0:e.flip})}function Z_(e){if(!e.slide&&!e.overlap)return;const t=wm(e.boundary);return __({...t?{boundary:t}:void 0,mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:L_()})}function J_(e){return z_({padding:e.overflowPadding,apply({elements:t,rects:i,availableHeight:r,availableWidth:o}){const c=t.floating,u=Math.round(i.reference.width),d=Math.round(i.reference.height);o=Math.floor(o),r=Math.floor(r),c.style.setProperty("--reference-width",`${u}px`),c.style.setProperty("--reference-height",`${d}px`),c.style.setProperty("--available-width",`${o}px`),c.style.setProperty("--available-height",`${r}px`)}})}function eV(e){if(e.hideWhenDetached)return D_({strategy:"referenceHidden",boundary:wm(e.boundary)??"clippingAncestors"})}function tV(e){return e?e===!0?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}function nV(e,t,i={}){const r=F_(e,i.getAnchorRect);if(!t||!r)return;const o=Object.assign({},Y_,i),c=t.querySelector("[data-part=arrow]"),u=[X_(c,o),Q_(o),Z_(o),K_(c,t.ownerDocument,o),G_(c),U_({gutter:o.gutter,offset:o.offset,overlap:o.overlap},c),J_(o),eV(o),j_],{placement:d,strategy:g,onComplete:p,onPositioned:m}=o,b=async()=>{if(!r||!t)return;const E=await B_(r,t,{placement:d,middleware:u,strategy:g});p?.(E),m?.({placed:!0});const w=rt(t),R=Ux(w,E.x),P=Ux(w,E.y);t.style.setProperty("--x",`${R}px`),t.style.setProperty("--y",`${P}px`),o.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 I=t.firstElementChild;if(I){const O=_r(I);t.style.setProperty("--z-index",O.zIndex)}},y=async()=>{i.updatePosition?(await i.updatePosition({updatePosition:b,floatingElement:t}),m?.({placed:!0})):await b()},x=tV(o.listeners),T=o.listeners?P_(r,t,y,x):CP;return y(),()=>{T?.(),m?.({placed:!1})}}function Sn(e,t,i={}){const{defer:r,...o}=i,c=r?pe:d=>d(),u=[];return u.push(c(()=>{const d=typeof e=="function"?e():e,g=typeof t=="function"?t():t;u.push(nV(d,g,o))})),()=>{u.forEach(d=>d?.())}}var iV={bottom:"rotate(45deg)",left:"rotate(135deg)",top:"rotate(225deg)",right:"rotate(315deg)"};function Hd(e={}){const{placement:t,sameWidth:i,fitViewport:r,strategy:o="absolute"}=e;return{arrow:{position:"absolute",width:Ui.arrowSize.reference,height:Ui.arrowSize.reference,[Ui.arrowSizeHalf.variable]:`calc(${Ui.arrowSize.reference} / 2)`,[Ui.arrowOffset.variable]:`calc(${Ui.arrowSizeHalf.reference} * -1)`},arrowTip:{transform:t?iV[t.split("-")[0]]:void 0,background:Ui.arrowBg.reference,top:"0",left:"0",width:"100%",height:"100%",position:"absolute",zIndex:"inherit"},floating:{position:o,isolation:"isolate",minWidth:i?void 0:"max-content",width:i?"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 rV(e){const t={each(i){for(let r=0;r<e.frames?.length;r+=1){const o=e.frames[r];o&&i(o)}},addEventListener(i,r,o){return t.each(c=>{try{c.document.addEventListener(i,r,o)}catch{}}),()=>{try{t.removeEventListener(i,r,o)}catch{}}},removeEventListener(i,r,o){t.each(c=>{try{c.document.removeEventListener(i,r,o)}catch{}})}};return t}function aV(e){const t=e.frameElement!=null?e.parent:null;return{addEventListener:(i,r,o)=>{try{t?.addEventListener(i,r,o)}catch{}return()=>{try{t?.removeEventListener(i,r,o)}catch{}}},removeEventListener:(i,r,o)=>{try{t?.removeEventListener(i,r,o)}catch{}}}}var jx="pointerdown.outside",Gx="focus.outside";function oV(e){for(const t of e)if(Et(t)&&Gi(t))return!0;return!1}var LE=e=>"clientY"in e;function sV(e,t){if(!LE(t)||!e)return!1;const i=e.getBoundingClientRect();return i.width===0||i.height===0?!1:i.top<=t.clientY&&t.clientY<=i.top+i.height&&i.left<=t.clientX&&t.clientX<=i.left+i.width}function lV(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function Wx(e,t){if(!t||!LE(e))return!1;const i=t.scrollHeight>t.clientHeight,r=i&&e.clientX>t.offsetLeft+t.clientWidth,o=t.scrollWidth>t.clientWidth,c=o&&e.clientY>t.offsetTop+t.clientHeight,u={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(i?16:0),height:t.clientHeight+(o?16:0)},d={x:e.clientX,y:e.clientY};return lV(u,d)?r||c:!1}function cV(e,t){const{exclude:i,onFocusOutside:r,onPointerDownOutside:o,onInteractOutside:c,defer:u,followControlledElements:d=!0}=t;if(!e)return;const g=Wt(e),p=rt(e),m=rV(p),b=aV(p);function y(I,O){if(!Et(O)||!O.isConnected||$n(e,O)||sV(e,I)||d&&JC(e,O))return!1;const k=g.querySelector(`[aria-controls="${e.id}"]`);if(k){const H=ad(k);if(Wx(I,H))return!1}const U=ad(e);return Wx(I,U)?!1:!i?.(O)}const x=new Set,T=Sa(e?.getRootNode());function E(I){function O(k){const U=u&&!Ox()?pe:z=>z(),H=k??I,G=H?.composedPath?.()??[H?.target];U(()=>{const z=T?G[0]:nt(I);if(!(!e||!y(I,z))){if(o||c){const M=Ol(o,c);e.addEventListener(jx,M,{once:!0})}qx(e,jx,{bubbles:!1,cancelable:!0,detail:{originalEvent:H,contextmenu:rE(H),focusable:oV(G),target:z}})}})}I.pointerType==="touch"?(x.forEach(k=>k()),x.add(Be(g,"click",O,{once:!0})),x.add(b.addEventListener("click",O,{once:!0})),x.add(m.addEventListener("click",O,{once:!0}))):O()}const w=new Set,R=setTimeout(()=>{w.add(Be(g,"pointerdown",E,!0)),w.add(b.addEventListener("pointerdown",E,!0)),w.add(m.addEventListener("pointerdown",E,!0))},0);function P(I){(u?pe:k=>k())(()=>{const k=I?.composedPath?.()??[I?.target],U=T?k[0]:nt(I);if(!(!e||!y(I,U))){if(r||c){const H=Ol(r,c);e.addEventListener(Gx,H,{once:!0})}qx(e,Gx,{bubbles:!1,cancelable:!0,detail:{originalEvent:I,contextmenu:!1,focusable:Gi(U),target:U}})}})}return Ox()||(w.add(Be(g,"focusin",P,!0)),w.add(b.addEventListener("focusin",P,!0)),w.add(m.addEventListener("focusin",P,!0))),()=>{clearTimeout(R),x.forEach(I=>I()),w.forEach(I=>I())}}function BE(e,t){const{defer:i}=t,r=i?pe:c=>c(),o=[];return o.push(r(()=>{const c=typeof e=="function"?e():e;o.push(cV(c,t))})),()=>{o.forEach(c=>c?.())}}function qx(e,t,i){const r=e.ownerDocument.defaultView||window,o=new r.CustomEvent(t,i);return e.dispatchEvent(o)}function uV(e,t){const i=r=>{r.key==="Escape"&&(r.isComposing||t?.(r))};return Be(Wt(e),"keydown",i,{capture:!0})}var Yx="layer:request-dismiss",Mn={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),i=this.topMostPointerBlockingLayer()?this.indexOf(this.topMostPointerBlockingLayer()?.node):-1;return t<i},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 i=this.indexOf(e);return i===-1?[]:this.layers.slice(i+1).filter(r=>r.type===t)},getParentLayerOfType(e,t){const i=this.indexOf(e);if(!(i<=0))return this.layers.slice(0,i).reverse().find(r=>r.type===t)},countNestedLayersOfType(e,t){return this.getNestedLayersByType(e,t).length},isInNestedLayer(e,t){return this.getNestedLayers(e).some(i=>$n(i.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>$n(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=>Mn.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 i=this.indexOf(e);if(i===-1)return;const r=this.layers[i];fV(e,Yx,o=>{r.requestDismiss?.(o),o.defaultPrevented||r?.dismiss()}),dV(e,Yx,{originalLayer:e,targetLayer:t,originalIndex:i,targetIndex:t?this.indexOf(t):-1}),this.syncLayers()},clear(){this.remove(this.layers[0].node)}};function dV(e,t,i){const r=e.ownerDocument.defaultView||window,o=new r.CustomEvent(t,{cancelable:!0,bubbles:!0,detail:i});return e.dispatchEvent(o)}function fV(e,t,i){e.addEventListener(t,i,{once:!0})}var Kx;function Xx(){Mn.layers.forEach(({node:e})=>{e.style.pointerEvents=Mn.isBelowPointerBlockingLayer(e)?"none":"auto"})}function hV(e){e.style.pointerEvents=""}function gV(e,t){const i=Wt(e),r=[];return Mn.hasPointerBlockingLayer()&&!i.body.hasAttribute("data-inert")&&(Kx=document.body.style.pointerEvents,queueMicrotask(()=>{i.body.style.pointerEvents="none",i.body.setAttribute("data-inert","")})),t?.forEach(o=>{const[c,u]=a2(()=>{const d=o();return Et(d)?d:null},{timeout:1e3});c.then(d=>r.push(Pl(d,{pointerEvents:"auto"}))),r.push(u)}),()=>{Mn.hasPointerBlockingLayer()||(queueMicrotask(()=>{i.body.style.pointerEvents=Kx,i.body.removeAttribute("data-inert"),i.body.style.length===0&&i.body.removeAttribute("style")}),r.forEach(o=>o()))}}function pV(e,t){const{warnOnMissingNode:i=!0}=t;if(i&&!e){Rl("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;const{onDismiss:r,onRequestDismiss:o,pointerBlocking:c,exclude:u,debug:d,type:g="dialog"}=t,p={dismiss:r,node:e,type:g,pointerBlocking:c,requestDismiss:o};Mn.add(p),Xx();function m(E){const w=nt(E.detail.originalEvent);Mn.isBelowPointerBlockingLayer(e)||Mn.isInBranch(w)||(t.onPointerDownOutside?.(E),t.onInteractOutside?.(E),!E.defaultPrevented&&(d&&console.log("onPointerDownOutside:",E.detail.originalEvent),r?.()))}function b(E){const w=nt(E.detail.originalEvent);Mn.isInBranch(w)||(t.onFocusOutside?.(E),t.onInteractOutside?.(E),!E.defaultPrevented&&(d&&console.log("onFocusOutside:",E.detail.originalEvent),r?.()))}function y(E){Mn.isTopMost(e)&&(t.onEscapeKeyDown?.(E),!E.defaultPrevented&&r&&(E.preventDefault(),r()))}function x(E){if(!e)return!1;const w=typeof u=="function"?u():u,R=Array.isArray(w)?w:[w],P=t.persistentElements?.map(I=>I()).filter(Et);return P&&R.push(...P),R.some(I=>$n(I,E))||Mn.isInNestedLayer(e,E)}const T=[c?gV(e,t.persistentElements):void 0,uV(e,y),BE(e,{exclude:x,onFocusOutside:b,onPointerDownOutside:m,defer:t.defer})];return()=>{Mn.remove(e),Xx(),hV(e),T.forEach(E=>E?.())}}function Na(e,t){const{defer:i}=t,r=i?pe:c=>c(),o=[];return o.push(r(()=>{const c=Ir(e)?e():e;o.push(pV(c,t))})),()=>{o.forEach(c=>c?.())}}var HE=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"]);HE.build();var mV=e=>e.ids?.hiddenInput??`color-picker:${e.id}:hidden-input`,vV=e=>e.ids?.control??`color-picker:${e.id}:control`,bV=e=>e.ids?.trigger??`color-picker:${e.id}:trigger`,yV=e=>e.ids?.content??`color-picker:${e.id}:content`,xV=e=>e.ids?.positioner??`color-picker:${e.id}:positioner`,SV=e=>e.ids?.formatSelect??`color-picker:${e.id}:format-select`,CV=e=>e.ids?.area??`color-picker:${e.id}:area`,EV=e=>e.ids?.areaThumb??`color-picker:${e.id}:area-thumb`,TV=(e,t)=>e.ids?.channelSliderTrack?.(t)??`color-picker:${e.id}:slider-track:${t}`,wV=(e,t)=>e.ids?.channelSliderThumb?.(t)??`color-picker:${e.id}:slider-thumb:${t}`,Yu=e=>e.getById(yV(e)),OV=e=>e.getById(EV(e)),RV=(e,t)=>e.getById(wV(e,t)),kV=e=>e.getById(SV(e)),Qx=e=>e.getById(mV(e)),NV=e=>e.getById(CV(e)),IV=(e,t,i)=>{const r=NV(e);if(!r)return;const{getPercentValue:o}=pE(t,r);return{x:o({dir:i,orientation:"horizontal"}),y:o({orientation:"vertical"})}},PV=e=>e.getById(vV(e)),Dg=e=>e.getById(bV(e)),AV=e=>e.getById(xV(e)),_V=(e,t)=>e.getById(TV(e,t)),VV=(e,t,i,r)=>{const o=_V(e,i);if(!o)return;const{getPercentValue:c}=pE(t,o);return{x:c({dir:r,orientation:"horizontal"}),y:c({orientation:"vertical"})}},zV=e=>[...Ea(Yu(e),"input[data-channel]"),...Ea(PV(e),"input[data-channel]")];function DV(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 i=e.getFormat()==="hsla";switch(t){case"hue":return i?e.toFormat("hsla").getChannelValue("hue").toString():e.toFormat("hsba").getChannelValue("hue").toString();case"saturation":return i?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 Zx=e=>sd(e),MV=/^[0-9a-fA-F]{3,8}$/;function LV(e){return MV.test(e)}function BV(e){return e.startsWith("#")?e:LV(e)?`#${e}`:e}var{and:HV}=Zn();HV("isOpenControlled","closeOnSelect");function Jx(e,t,i){const r=zV(e);pe(()=>{r.forEach(o=>{const c=o.dataset.channel;Ca(o,DV(i||t,c))})})}function FV(e,t){const i=kV(e);i&&pe(()=>Ca(i,t))}ce()(["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"]);ce()(["xChannel","yChannel"]);ce()(["channel","orientation"]);ce()(["value","disabled"]);ce()(["value","respectAlpha"]);ce()(["size"]);var Cu="__live-region__";function $V(e={}){const{level:t="polite",document:i=document,root:r,delay:o=0}=e,c=i.defaultView??window,u=r??i.body;function d(p,m){i.getElementById(Cu)?.remove(),m=m??o;const y=i.createElement("span");y.id=Cu,y.dataset.liveAnnouncer="true";const x=t!=="assertive"?"status":"alert";y.setAttribute("aria-live",t),y.setAttribute("role",x),Object.assign(y.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"}),u.appendChild(y),c.setTimeout(()=>{y.textContent=p},m)}function g(){i.getElementById(Cu)?.remove()}return{announce:d,destroy:g,toJSON(){return Cu}}}var FE=ve("splitter").parts("root","panel","resizeTrigger","resizeTriggerIndicator");FE.build();ce()(["dir","getRootNode","id","ids","onResize","onResizeStart","onResizeEnd","onCollapse","onExpand","orientation","size","defaultSize","panels","keyboardResizeBy","nonce"]);ce()(["id"]);ce()(["disabled","id"]);const[Fd,$E]=at({name:"RenderStrategyContext",hookName:"useRenderStrategyContext",providerName:"<RenderStrategyPropsProvider />"}),$d=e=>ot()(e,["lazyMount","unmountOnExit"]),UE=C.forwardRef((e,t)=>{const i=hm();if(i.isUnmounted)return null;const r=ne(i.getContentProps(),e);return V.jsx(re.div,{...r,ref:t})});UE.displayName="CollapsibleContent";var jE=ve("accordion").parts("root","item","itemTrigger","itemContent","itemIndicator");jE.build();var GE=e=>e.ids?.root??`accordion:${e.id}`,WE=(e,t)=>e.ids?.itemTrigger?.(t)??`accordion:${e.id}:trigger:${t}`,UV=e=>e.getById(GE(e)),Ud=e=>{const i=`[aria-controls][data-ownedby='${CSS.escape(GE(e))}']:not([disabled])`;return Ea(UV(e),i)},jV=e=>Vo(Ud(e)),GV=e=>Td(Ud(e)),WV=(e,t)=>um(Ud(e),WE(e,t)),qV=(e,t)=>dm(Ud(e),WE(e,t)),{and:YV,not:KV}=Zn();YV("isExpanded","canToggle"),KV("isExpanded");ce()(["collapsible","dir","disabled","getRootNode","id","ids","multiple","onFocusChange","onValueChange","orientation","value","defaultValue"]);ce()(["value","disabled"]);var gl=(e,t)=>({x:e,y:t});function XV(e){const{x:t,y:i,width:r,height:o}=e,c=t+r/2,u=i+o/2;return{x:t,y:i,width:r,height:o,minX:t,minY:i,maxX:t+r,maxY:i+o,midX:c,midY:u,center:gl(c,u)}}function QV(e){const t=gl(e.minX,e.minY),i=gl(e.maxX,e.minY),r=gl(e.maxX,e.maxY),o=gl(e.minX,e.maxY);return{top:t,right:i,bottom:r,left:o}}function ZV(e,t){const i=XV(e),{top:r,right:o,left:c,bottom:u}=QV(i),[d]=t.split("-");return{top:[c,r,o,u],right:[r,o,u,c],bottom:[r,c,u,o],left:[o,r,c,u]}[d]}function JV(e,t){const{x:i,y:r}=t;let o=!1;for(let c=0,u=e.length-1;c<e.length;u=c++){const d=e[c].x,g=e[c].y,p=e[u].x,m=e[u].y;g>r!=m>r&&i<(p-d)*(r-g)/(m-g)+d&&(o=!o)}return o}var qE=ve("avatar").parts("root","image","fallback");qE.build();ce()(["dir","id","ids","onStatusChange","getRootNode"]);var yo=new WeakMap,Eu=new WeakMap,Tu={},Mg=0,YE=e=>e&&(e.host||YE(e.parentNode)),ez=(e,t)=>t.map(i=>{if(e.contains(i))return i;const r=YE(i);return r&&e.contains(r)?r:(console.error("[zag-js > ariaHidden] target",i,"in not contained inside",e,". Doing nothing"),null)}).filter(i=>!!i),tz=new Set(["script","output","status","next-route-announcer"]),nz=e=>tz.has(e.localName)||e.role==="status"||e.hasAttribute("aria-live")?!0:e.matches("[data-live-announcer]"),iz=(e,t)=>{const{parentNode:i,markerName:r,controlAttribute:o,followControlledElements:c=!0}=t,u=ez(i,Array.isArray(e)?e:[e]);Tu[r]||(Tu[r]=new WeakMap);const d=Tu[r],g=[],p=new Set,m=new Set(u),b=x=>{!x||p.has(x)||(p.add(x),b(x.parentNode))};u.forEach(x=>{b(x),c&&Et(x)&&eE(x,T=>{b(T)})});const y=x=>{!x||m.has(x)||Array.prototype.forEach.call(x.children,T=>{if(p.has(T))y(T);else try{if(nz(T))return;const w=T.getAttribute(o)==="true",R=(yo.get(T)||0)+1,P=(d.get(T)||0)+1;yo.set(T,R),d.set(T,P),g.push(T),R===1&&w&&Eu.set(T,!0),P===1&&T.setAttribute(r,""),w||T.setAttribute(o,"true")}catch(E){console.error("[zag-js > ariaHidden] cannot operate on ",T,E)}})};return y(i),p.clear(),Mg++,()=>{g.forEach(x=>{const T=yo.get(x)-1,E=d.get(x)-1;yo.set(x,T),d.set(x,E),T||(Eu.has(x)||x.removeAttribute(o),Eu.delete(x)),E||x.removeAttribute(r)}),Mg--,Mg||(yo=new WeakMap,yo=new WeakMap,Eu=new WeakMap,Tu={})}},rz=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,az=(e,t=rz(e),i="data-aria-hidden",r=!0)=>{if(t)return iz(e,{parentNode:t,markerName:i,controlAttribute:"aria-hidden",followControlledElements:r})},oz=e=>{const t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};function KE(e,t={}){const{defer:i=!0}=t,r=i?oz:c=>c(),o=[];return o.push(r(()=>{const u=(typeof e=="function"?e():e).filter(Boolean);u.length!==0&&o.push(az(u))})),()=>{o.forEach(c=>c?.())}}var sz=Object.defineProperty,lz=(e,t,i)=>t in e?sz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,tt=(e,t,i)=>lz(e,typeof t!="symbol"?t+"":t,i),eS={activateTrap(e,t){if(e.length>0){const r=e[e.length-1];r!==t&&r.pause()}const i=e.indexOf(t);i===-1||e.splice(i,1),e.push(t)},deactivateTrap(e,t){const i=e.indexOf(t);i!==-1&&e.splice(i,1),e.length>0&&e[e.length-1].unpause()}},cz=[],uz=class{constructor(e,t){tt(this,"trapStack"),tt(this,"config"),tt(this,"doc"),tt(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),tt(this,"portalContainers",new Set),tt(this,"listenerCleanups",[]),tt(this,"handleFocus",r=>{const o=nt(r),c=this.findContainerIndex(o,r)>=0;if(c||Rd(o))c&&(this.state.mostRecentlyFocusedNode=o);else{r.stopImmediatePropagation();let u,d=!0;if(this.state.mostRecentlyFocusedNode)if(Xs(this.state.mostRecentlyFocusedNode)>0){const g=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:p}=this.state.containerGroups[g];if(p.length>0){const m=p.findIndex(b=>b===this.state.mostRecentlyFocusedNode);m>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?m+1<p.length&&(u=p[m+1],d=!1):m-1>=0&&(u=p[m-1],d=!1))}}else this.state.containerGroups.some(g=>g.tabbableNodes.some(p=>Xs(p)>0))||(d=!1);else d=!1;d&&(u=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),u?this.tryFocus(u):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0}),tt(this,"handlePointerDown",r=>{const o=nt(r);if(!(this.findContainerIndex(o,r)>=0)){if(el(this.config.clickOutsideDeactivates,r)){this.deactivate({returnFocus:this.config.returnFocusOnDeactivate});return}el(this.config.allowOutsideClick,r)||r.preventDefault()}}),tt(this,"handleClick",r=>{const o=nt(r);this.findContainerIndex(o,r)>=0||el(this.config.clickOutsideDeactivates,r)||el(this.config.allowOutsideClick,r)||(r.preventDefault(),r.stopImmediatePropagation())}),tt(this,"handleTabKey",r=>{if(this.config.isKeyForward(r)||this.config.isKeyBackward(r)){this.state.recentNavEvent=r;const o=this.config.isKeyBackward(r),c=this.findNextNavNode({event:r,isBackward:o});if(!c)return;Js(r)&&r.preventDefault(),this.tryFocus(c)}}),tt(this,"handleEscapeKey",r=>{dz(r)&&el(this.config.escapeDeactivates,r)!==!1&&(r.preventDefault(),this.deactivate())}),tt(this,"_mutationObserver"),tt(this,"setupMutationObserver",()=>{const r=this.doc.defaultView||window;this._mutationObserver=new r.MutationObserver(o=>{o.some(d=>Array.from(d.removedNodes).some(p=>p===this.state.mostRecentlyFocusedNode))&&this.tryFocus(this.getInitialFocusNode()),o.some(d=>d.type==="attributes"&&(d.attributeName==="aria-controls"||d.attributeName==="aria-expanded")?!0:d.type==="childList"&&d.addedNodes.length>0?Array.from(d.addedNodes).some(g=>{if(g.nodeType!==Node.ELEMENT_NODE)return!1;const p=g;return aA(p)?!0:p.id&&!this.state.containers.some(m=>m.contains(p))?oA(p):!1}):!1)&&this.state.active&&!this.state.paused&&(this.updateTabbableNodes(),this.updatePortalContainers())})}),tt(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)}))}),tt(this,"getInitialFocusNode",()=>{let r=this.getNodeForOption("initialFocus",{hasFallback:!0});if(r===!1)return!1;if(r===void 0||r&&!Gi(r)){const o=zo(this.doc);if(o&&this.findContainerIndex(o)>=0)r=o;else{const c=this.state.tabbableGroups[0];r=c&&c.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}),tt(this,"tryFocus",r=>{if(r!==!1&&r!==zo(this.doc)){if(!r||!r.focus){this.tryFocus(this.getInitialFocusNode());return}r.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=r,fz(r)&&r.select()}}),tt(this,"deactivate",r=>{if(!this.state.active)return this;const o={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(),eS.deactivateTrap(this.trapStack,this),this.portalContainers.clear();const c=this.getOption(o,"onDeactivate"),u=this.getOption(o,"onPostDeactivate"),d=this.getOption(o,"checkCanReturnFocus"),g=this.getOption(o,"returnFocus","returnFocusOnDeactivate");c?.();const p=()=>{tS(()=>{if(g){const m=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(m)}u?.()})};if(g&&d){const m=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);return d(m).then(p,p),this}return p(),this}),tt(this,"pause",r=>{if(this.state.paused||!this.state.active)return this;const o=this.getOption(r,"onPause"),c=this.getOption(r,"onPostPause");return this.state.paused=!0,o?.(),this.removeListeners(),this.updateObservedNodes(),c?.(),this}),tt(this,"unpause",r=>{if(!this.state.paused||!this.state.active)return this;const o=this.getOption(r,"onUnpause"),c=this.getOption(r,"onPostUnpause");return this.state.paused=!1,o?.(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),c?.(),this}),tt(this,"updateContainerElements",r=>(this.state.containers=Array.isArray(r)?r.filter(Boolean):[r].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),tt(this,"getReturnFocusNode",r=>{const o=this.getNodeForOption("setReturnFocus",{params:[r]});return o||(o===!1?!1:r)}),tt(this,"getOption",(r,o,c)=>r&&r[o]!==void 0?r[o]:this.config[c||o]),tt(this,"getNodeForOption",(r,{hasFallback:o=!1,params:c=[]}={})=>{let u=this.config[r];if(typeof u=="function"&&(u=u(...c)),u===!0&&(u=void 0),!u){if(u===void 0||u===!1)return u;throw new Error(`\`${r}\` was specified but was not a node, or did not return a node`)}let d=u;if(typeof u=="string"){try{d=this.doc.querySelector(u)}catch(g){throw new Error(`\`${r}\` appears to be an invalid selector; error="${g.message}"`)}if(!d&&!o)throw new Error(`\`${r}\` as selector refers to no known node`)}return d}),tt(this,"findNextNavNode",r=>{const{event:o,isBackward:c=!1}=r,u=r.target||nt(o);this.updateTabbableNodes();let d=null;if(this.state.tabbableGroups.length>0){const g=this.findContainerIndex(u,o),p=g>=0?this.state.containerGroups[g]:void 0;if(g<0)c?d=this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:d=this.state.tabbableGroups[0].firstTabbableNode;else if(c){let m=this.state.tabbableGroups.findIndex(({firstTabbableNode:b})=>u===b);if(m<0&&(p?.container===u||Gi(u)&&!ma(u)&&!p?.nextTabbableNode(u,!1))&&(m=g),m>=0){const b=m===0?this.state.tabbableGroups.length-1:m-1,y=this.state.tabbableGroups[b];d=Xs(u)>=0?y.lastTabbableNode:y.lastDomTabbableNode}else Js(o)||(d=p?.nextTabbableNode(u,!1))}else{let m=this.state.tabbableGroups.findIndex(({lastTabbableNode:b})=>u===b);if(m<0&&(p?.container===u||Gi(u)&&!ma(u)&&!p?.nextTabbableNode(u))&&(m=g),m>=0){const b=m===this.state.tabbableGroups.length-1?0:m+1,y=this.state.tabbableGroups[b];d=Xs(u)>=0?y.firstTabbableNode:y.firstDomTabbableNode}else Js(o)||(d=p?.nextTabbableNode(u))}}else d=this.getNodeForOption("fallbackFocus");return d}),this.trapStack=t.trapStack||cz;const i={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,followControlledElements:!0,isKeyForward(r){return Js(r)&&!r.shiftKey},isKeyBackward(r){return Js(r)&&r.shiftKey},...t};this.doc=i.document||Wt(Array.isArray(e)?e[0]:e),this.config=i,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=>{nA(e).forEach(i=>{this.addPortalContainer(i)})})}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){const i=typeof t?.composedPath=="function"?t.composedPath():void 0;return this.state.containerGroups.findIndex(({container:r,tabbableNodes:o})=>r.contains(e)||i?.includes(r)||o.find(c=>c===e)||this.isControlledElement(r,e))}isControlledElement(e,t){return this.config.followControlledElements?JC(e,t):!1}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{const t=$o(e,{getShadowRoot:this.config.getShadowRoot}),i=om(e,{getShadowRoot:this.config.getShadowRoot}),r=t[0],o=t[t.length-1],c=r,u=o;let d=!1;for(let p=0;p<t.length;p++)if(Xs(t[p])>0){d=!0;break}function g(p,m=!0){const b=t.indexOf(p);if(b>=0)return t[b+(m?1:-1)];const y=i.indexOf(p);if(!(y<0)){if(m){for(let x=y+1;x<i.length;x++)if(ma(i[x]))return i[x]}else for(let x=y-1;x>=0;x--)if(ma(i[x]))return i[x]}}return{container:e,tabbableNodes:t,focusableNodes:i,posTabIndexesFound:d,firstTabbableNode:r,lastTabbableNode:o,firstDomTabbableNode:c,lastDomTabbableNode:u,nextTabbableNode:g}}),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 eS.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?tS(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(Be(this.doc,"focusin",this.handleFocus,!0),Be(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),Be(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),Be(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),Be(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),Be(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"),i=this.getOption(e,"onPostActivate"),r=this.getOption(e,"checkCanFocusTrap");r||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=zo(this.doc),t?.();const o=()=>{r&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),i?.()};return r?(r(this.state.containers.concat()).then(o,o),this):(o(),this)}},Js=e=>e.key==="Tab",el=(e,...t)=>typeof e=="function"?e(...t):e,dz=e=>!e.isComposing&&e.key==="Escape",tS=e=>setTimeout(e,0),fz=e=>e.localName==="input"&&"select"in e&&typeof e.select=="function";function XE(e,t={}){let i;const r=pe(()=>{const o=typeof e=="function"?e():e;if(o){i=new uz(o,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:o,...t,document:Wt(o)});try{i.activate()}catch{}}});return function(){i?.deactivate(),r()}}var Lg="data-scroll-lock";function hz(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function nS(e){const i=_r(e)?.scrollbarGutter;return i==="stable"||i?.startsWith("stable ")===!0}function QE(e){const t=e??document,i=t.defaultView??window,{documentElement:r,body:o}=t;if(o.hasAttribute(Lg))return;const u=nS(r)||nS(o),d=i.innerWidth-r.clientWidth;o.setAttribute(Lg,"");const g=()=>t2(r,"--scrollbar-width",`${d}px`),p=hz(r),m=()=>{const x={overflow:"hidden"};return!u&&d>0&&(x[p]=`${d}px`),Pl(o,x)},b=()=>{const{scrollX:x,scrollY:T,visualViewport:E}=i,w=E?.offsetLeft??0,R=E?.offsetTop??0,P={position:"fixed",overflow:"hidden",top:`${-(T-Math.floor(R))}px`,left:`${-(x-Math.floor(w))}px`,right:"0"};!u&&d>0&&(P[p]=`${d}px`);const I=Pl(o,P);return()=>{I?.(),i.scrollTo({left:x,top:T,behavior:"instant"})}},y=[g(),Id()?b():m()];return()=>{y.forEach(x=>x?.()),o.removeAttribute(Lg)}}var ZE=ve("carousel").parts("root","itemGroup","item","control","nextTrigger","prevTrigger","indicatorGroup","indicator","autoplayTrigger","progressText");ZE.build();ce()(["dir","getRootNode","id","ids","loop","page","defaultPage","onPageChange","orientation","slideCount","slidesPerPage","slidesPerMove","spacing","padding","autoplay","allowMouseDrag","inViewThreshold","translations","snapType","autoSize","onDragStatusChange","onAutoplayStatusChange"]);ce()(["index","readOnly"]);ce()(["index","snapAlign"]);const gz=ZE.extendWith("progressText","autoplayIndicator"),[JE,jd]=at({name:"CheckboxContext",hookName:"useCheckboxContext",providerName:"<CheckboxProvider />"}),e1=C.forwardRef((e,t)=>{const i=jd(),r=ne(i.getControlProps(),e);return V.jsx(re.div,{...r,ref:t})});e1.displayName="CheckboxControl";function pz(e){return!(e.metaKey||!Fl()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}var mz=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function vz(e,t,i){const r=i?nt(i):null,o=rt(r);return e=e||r instanceof o.HTMLInputElement&&!mz.has(r?.type)||r instanceof o.HTMLTextAreaElement||r instanceof o.HTMLElement&&r.isContentEditable,!(e&&t==="keyboard"&&i instanceof o.KeyboardEvent&&!Reflect.has(bz,i.key))}var Lr=null,sp=new Set,dd=new Map,wa=!1,lp=!1,bz={Tab:!0,Escape:!0};function Gd(e,t){for(let i of sp)i(e,t)}function fd(e){wa=!0,pz(e)&&(Lr="keyboard",Gd("keyboard",e))}function Bn(e){Lr="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(wa=!0,Gd("pointer",e))}function t1(e){bA(e)&&(wa=!0,Lr="virtual")}function n1(e){const t=nt(e);t===rt(t)||t===Wt(t)||(!wa&&!lp&&(Lr="virtual",Gd("virtual",e)),wa=!1,lp=!1)}function i1(){wa=!1,lp=!0}function yz(e){if(typeof window>"u"||dd.get(rt(e)))return;const t=rt(e),i=Wt(e);let r=t.HTMLElement.prototype.focus;function o(){Lr="virtual",Gd("virtual",null),wa=!0,r.apply(this,arguments)}try{Object.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,value:o})}catch{}i.addEventListener("keydown",fd,!0),i.addEventListener("keyup",fd,!0),i.addEventListener("click",t1,!0),t.addEventListener("focus",n1,!0),t.addEventListener("blur",i1,!1),typeof t.PointerEvent<"u"?(i.addEventListener("pointerdown",Bn,!0),i.addEventListener("pointermove",Bn,!0),i.addEventListener("pointerup",Bn,!0)):(i.addEventListener("mousedown",Bn,!0),i.addEventListener("mousemove",Bn,!0),i.addEventListener("mouseup",Bn,!0)),t.addEventListener("beforeunload",()=>{xz(e)},{once:!0}),dd.set(t,{focus:r})}var xz=(e,t)=>{const i=rt(e),r=Wt(e),o=dd.get(i);if(o){try{Object.defineProperty(i.HTMLElement.prototype,"focus",{configurable:!0,value:o.focus})}catch{}r.removeEventListener("keydown",fd,!0),r.removeEventListener("keyup",fd,!0),r.removeEventListener("click",t1,!0),i.removeEventListener("focus",n1,!0),i.removeEventListener("blur",i1,!1),typeof i.PointerEvent<"u"?(r.removeEventListener("pointerdown",Bn,!0),r.removeEventListener("pointermove",Bn,!0),r.removeEventListener("pointerup",Bn,!0)):(r.removeEventListener("mousedown",Bn,!0),r.removeEventListener("mousemove",Bn,!0),r.removeEventListener("mouseup",Bn,!0)),dd.delete(i)}};function Sz(){return Lr}function Vl(){return Lr==="keyboard"}function Wd(e={}){const{isTextInput:t,autoFocus:i,onChange:r,root:o}=e;yz(o),r?.({isFocusVisible:i||Vl(),modality:Lr});const c=(u,d)=>{vz(!!t,u,d)&&r?.({isFocusVisible:Vl(),modality:u})};return sp.add(c),()=>{sp.delete(c)}}var r1=ve("checkbox").parts("root","label","control","indicator"),wu=r1.build(),a1=e=>e.ids?.root??`checkbox:${e.id}`,iS=e=>e.ids?.label??`checkbox:${e.id}:label`,Cz=e=>e.ids?.control??`checkbox:${e.id}:control`,cp=e=>e.ids?.hiddenInput??`checkbox:${e.id}:input`,Ez=e=>e.getById(a1(e)),pl=e=>e.getById(cp(e));function Tz(e,t){const{send:i,context:r,prop:o,computed:c,scope:u}=e,d=!!o("disabled"),g=!!o("readOnly"),p=!!o("required"),m=!!o("invalid"),b=!d&&r.get("focused"),y=!d&&r.get("focusVisible"),x=c("checked"),T=c("indeterminate"),E=r.get("checked"),w={"data-active":fe(r.get("active")),"data-focus":fe(b),"data-focus-visible":fe(y),"data-readonly":fe(g),"data-hover":fe(r.get("hovered")),"data-disabled":fe(d),"data-state":T?"indeterminate":x?"checked":"unchecked","data-invalid":fe(m),"data-required":fe(p)};return{checked:x,disabled:d,indeterminate:T,focused:b,checkedState:E,setChecked(R){i({type:"CHECKED.SET",checked:R,isTrusted:!1})},toggleChecked(){i({type:"CHECKED.TOGGLE",checked:x,isTrusted:!1})},getRootProps(){return t.label({...wu.root.attrs,...w,dir:o("dir"),id:a1(u),htmlFor:cp(u),onPointerMove(){d||i({type:"CONTEXT.SET",context:{hovered:!0}})},onPointerLeave(){d||i({type:"CONTEXT.SET",context:{hovered:!1}})},onClick(R){nt(R)===pl(u)&&R.stopPropagation()}})},getLabelProps(){return t.element({...wu.label.attrs,...w,dir:o("dir"),id:iS(u)})},getControlProps(){return t.element({...wu.control.attrs,...w,dir:o("dir"),id:Cz(u),"aria-hidden":!0})},getIndicatorProps(){return t.element({...wu.indicator.attrs,...w,dir:o("dir"),hidden:!T&&!x})},getHiddenInputProps(){return t.input({id:cp(u),type:"checkbox",required:o("required"),defaultChecked:x,disabled:d,"aria-labelledby":iS(u),"aria-invalid":m,name:o("name"),form:o("form"),value:o("value"),style:fm,onFocus(){const R=Vl();i({type:"CONTEXT.SET",context:{focused:!0,focusVisible:R}})},onBlur(){i({type:"CONTEXT.SET",context:{focused:!1,focusVisible:!1}})},onClick(R){if(g){R.preventDefault();return}const P=R.currentTarget.checked;i({type:"CHECKED.SET",checked:P,isTrusted:!0})}})}}}var{not:rS}=Zn(),wz={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(i){e("onCheckedChange")?.({checked:i})}})),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:i,action:r}){e([()=>i("disabled")],()=>{r(["removeFocusIfNeeded"])}),e([()=>t.get("checked")],()=>{r(["syncInputElement"])})},effects:["trackFormControlState","trackPressEvent","trackFocusVisible"],on:{"CHECKED.TOGGLE":[{guard:rS("isTrusted"),actions:["toggleChecked","dispatchChangeEvent"]},{actions:["toggleChecked"]}],"CHECKED.SET":[{guard:rS("isTrusted"),actions:["setChecked","dispatchChangeEvent"]},{actions:["setChecked"]}],"CONTEXT.SET":{actions:["setContext"]}},computed:{indeterminate:({context:e})=>Ku(e.get("checked")),checked:({context:e})=>Oz(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:i}){if(!t("disabled"))return vE({pointerNode:Ez(i),keyboardNode:pl(i),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 Wd({root:t.getRootNode?.()})},trackFormControlState({context:e,scope:t}){return Fo(pl(t),{onFieldsetDisabledChange(i){e.set("fieldsetDisabled",i)},onFormReset(){e.set("checked",e.initial("checked"))}})}},actions:{setContext({context:e,event:t}){for(const i in t.context)e.set(i,t.context[i])},syncInputElement({context:e,computed:t,scope:i}){const r=pl(i);r&&(am(r,t("checked")),r.indeterminate=Ku(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 i=Ku(t("checked"))?!0:!t("checked");e.set("checked",i)},dispatchChangeEvent({computed:e,scope:t}){queueMicrotask(()=>{const i=pl(t);sE(i,{checked:e("checked")})})}}}};function Ku(e){return e==="indeterminate"}function Oz(e){return Ku(e)?!1:!!e}ce()(["defaultChecked","checked","dir","disabled","form","getRootNode","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]);const o1=r1.extendWith("group");function Rz(e){const{value:t,onChange:i,defaultValue:r}=e,[o,c]=C.useState(r),u=t!==void 0,d=u?t:o,g=C.useCallback(p=>(u||c(p),i?.(p)),[u,i]);return[d,g]}function kz(e={}){const{defaultValue:t,value:i,onValueChange:r,disabled:o,readOnly:c,name:u,invalid:d}=e,g=!(o||c),p=SE(r,{sync:!0}),[m,b]=Rz({value:i,defaultValue:t||[],onChange:p}),y=R=>m.some(P=>String(P)===String(R)),x=R=>{y(R)?E(R):T(R)},T=R=>{g&&(y(R)||b(m.concat(R)))},E=R=>{g&&b(m.filter(P=>String(P)!==String(R)))};return{isChecked:y,value:m,name:u,disabled:!!o,readOnly:!!c,invalid:!!d,setValue:b,addValue:T,toggleValue:x,getItemProps:R=>({checked:R.value!=null?y(R.value):void 0,onCheckedChange(){R.value!=null&&x(R.value)},name:u,disabled:o,readOnly:c,invalid:d})}}const[Nz,Iz]=at({name:"CheckboxGroupContext",hookName:"useCheckboxGroupContext",providerName:"<CheckboxGroupProvider />",strict:!1}),Pz=ot(),s1=C.forwardRef((e,t)=>{const[i,r]=Pz(e,["defaultValue","value","onValueChange","disabled","invalid","readOnly","name"]),o=kz(i);return V.jsx(Nz,{value:o,children:V.jsx(re.div,{ref:t,role:"group",...r,...o1.build().group.attrs})})});s1.displayName="CheckboxGroup";const[l8,Ia]=at({name:"FieldContext",hookName:"useFieldContext",providerName:"<FieldProvider />",strict:!1}),l1=C.forwardRef((e,t)=>{const i=jd(),r=ne(i.getHiddenInputProps(),e),o=Ia();return V.jsx(re.input,{"aria-describedby":o?.ariaDescribedby,...r,ref:t})});l1.displayName="CheckboxHiddenInput";const c1=C.forwardRef((e,t)=>{const i=jd(),r=ne(i.getLabelProps(),e);return V.jsx(re.span,{...r,ref:t})});c1.displayName="CheckboxLabel";const Az=(e={})=>{const t=Iz(),i=Ia(),r=C.useMemo(()=>ne(e,t?.getItemProps({value:e.value})??{}),[e,t]),o=C.useId(),{getRootNode:c}=pi(),{dir:u}=Zi(),d={id:o,ids:{label:i?.ids.label,hiddenInput:i?.ids.control},dir:u,disabled:i?.disabled,readOnly:i?.readOnly,invalid:i?.invalid,required:i?.required,getRootNode:c,...r},g=vi(wz,d);return Tz(g,Ji)},_z=ot(),u1=C.forwardRef((e,t)=>{const[i,r]=_z(e,["checked","defaultChecked","disabled","form","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]),o=Az(i),c=ne(o.getRootProps(),r);return V.jsx(JE,{value:o,children:V.jsx(re.label,{...c,ref:t})})});u1.displayName="CheckboxRoot";const Vz=ot(),d1=C.forwardRef((e,t)=>{const[{value:i},r]=Vz(e,["value"]),o=ne(i.getRootProps(),r);return V.jsx(JE,{value:i,children:V.jsx(re.label,{...o,ref:t})})});d1.displayName="CheckboxRootProvider";var f1=ve("clipboard").parts("root","control","trigger","indicator","input","label");f1.build();ce()(["getRootNode","id","ids","value","defaultValue","timeout","onStatusChange","onValueChange"]);ce()(["copied"]);const h1=C.forwardRef((e,t)=>{const i=hm(),r=ne(i.getIndicatorProps(),e);return V.jsx(re.div,{...r,ref:t})});h1.displayName="CollapsibleIndicator";const zz=ot(),g1=C.forwardRef((e,t)=>{const[{value:i},r]=zz(e,["value"]),o=ne(i.getRootProps(),r);return V.jsx(EE,{value:i,children:V.jsx(re.div,{...o,ref:t})})});g1.displayName="CollapsibleRootProvider";const p1=C.forwardRef((e,t)=>{const i=hm(),r=ne(i.getTriggerProps(),e);return V.jsx(re.button,{...r,ref:t})});p1.displayName="CollapsibleTrigger";const Dz=HE.extendWith("view");var Mz=Object.defineProperty,Lz=(e,t,i)=>t in e?Mz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,Z=(e,t,i)=>Lz(e,typeof t!="symbol"?t+"":t,i),Xu={itemToValue(e){return typeof e=="string"?e:ga(e)&&Hn(e,"value")?e.value:""},itemToString(e){return typeof e=="string"?e:ga(e)&&Hn(e,"label")?e.label:Xu.itemToValue(e)},isItemDisabled(e){return ga(e)&&Hn(e,"disabled")?!!e.disabled:!1}},Go=class m1{constructor(t){this.options=t,Z(this,"items"),Z(this,"indexMap",null),Z(this,"copy",i=>new m1({...this.options,items:i??[...this.items]})),Z(this,"isEqual",i=>Gt(this.items,i.items)),Z(this,"setItems",i=>this.copy(i)),Z(this,"getValues",(i=this.items)=>{const r=[];for(const o of i){const c=this.getItemValue(o);c!=null&&r.push(c)}return r}),Z(this,"find",i=>{if(i==null)return null;const r=this.indexOf(i);return r!==-1?this.at(r):null}),Z(this,"findMany",i=>{const r=[];for(const o of i){const c=this.find(o);c!=null&&r.push(c)}return r}),Z(this,"at",i=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[i]??null;let r=0;const o=this.group();for(const[,c]of o)for(const u of c){if(r===i)return u;r++}return null}),Z(this,"sortFn",(i,r)=>{const o=this.indexOf(i),c=this.indexOf(r);return(o??0)-(c??0)}),Z(this,"sort",i=>[...i].sort(this.sortFn.bind(this))),Z(this,"getItemValue",i=>i==null?null:this.options.itemToValue?.(i)??Xu.itemToValue(i)),Z(this,"getItemDisabled",i=>i==null?!1:this.options.isItemDisabled?.(i)??Xu.isItemDisabled(i)),Z(this,"stringifyItem",i=>i==null?null:this.options.itemToString?.(i)??Xu.itemToString(i)),Z(this,"stringify",i=>i==null?null:this.stringifyItem(this.find(i))),Z(this,"stringifyItems",(i,r=", ")=>{const o=[];for(const c of i){const u=this.stringifyItem(c);u!=null&&o.push(u)}return o.join(r)}),Z(this,"stringifyMany",(i,r)=>this.stringifyItems(this.findMany(i),r)),Z(this,"has",i=>this.indexOf(i)!==-1),Z(this,"hasItem",i=>i==null?!1:this.has(this.getItemValue(i))),Z(this,"group",()=>{const{groupBy:i,groupSort:r}=this.options;if(!i)return[["",[...this.items]]];const o=new Map;this.items.forEach((u,d)=>{const g=i(u,d);o.has(g)||o.set(g,[]),o.get(g).push(u)});let c=Array.from(o.entries());return r&&c.sort(([u],[d])=>{if(typeof r=="function")return r(u,d);if(Array.isArray(r)){const g=r.indexOf(u),p=r.indexOf(d);return g===-1?1:p===-1?-1:g-p}return r==="asc"?u.localeCompare(d):r==="desc"?d.localeCompare(u):0}),c}),Z(this,"getNextValue",(i,r=1,o=!1)=>{let c=this.indexOf(i);if(c===-1)return null;for(c=o?Math.min(c+r,this.size-1):c+r;c<=this.size&&this.getItemDisabled(this.at(c));)c++;return this.getItemValue(this.at(c))}),Z(this,"getPreviousValue",(i,r=1,o=!1)=>{let c=this.indexOf(i);if(c===-1)return null;for(c=o?Math.max(c-r,0):c-r;c>=0&&this.getItemDisabled(this.at(c));)c--;return this.getItemValue(this.at(c))}),Z(this,"indexOf",i=>{if(i==null)return-1;if(!this.options.groupBy&&!this.options.groupSort)return this.items.findIndex(r=>this.getItemValue(r)===i);if(!this.indexMap){this.indexMap=new Map;let r=0;const o=this.group();for(const[,c]of o)for(const u of c){const d=this.getItemValue(u);d!=null&&this.indexMap.set(d,r),r++}}return this.indexMap.get(i)??-1}),Z(this,"getByText",(i,r)=>{const o=r!=null?this.indexOf(r):-1,c=i.length===1;for(let u=0;u<this.items.length;u++){const d=this.items[(o+u+1)%this.items.length];if(!(c&&this.getItemValue(d)===r)&&!this.getItemDisabled(d)&&Bz(this.stringifyItem(d),i))return d}}),Z(this,"search",(i,r)=>{const{state:o,currentValue:c,timeout:u=350}=r,d=o.keysSoFar+i,p=d.length>1&&Array.from(d).every(T=>T===d[0])?d[0]:d,m=this.getByText(p,c),b=this.getItemValue(m);function y(){clearTimeout(o.timer),o.timer=-1}function x(T){o.keysSoFar=T,y(),T!==""&&(o.timer=+setTimeout(()=>{x(""),y()},u))}return x(d),b}),Z(this,"update",(i,r)=>{let o=this.indexOf(i);return o===-1?this:this.copy([...this.items.slice(0,o),r,...this.items.slice(o+1)])}),Z(this,"upsert",(i,r,o="append")=>{let c=this.indexOf(i);return c===-1?(o==="append"?this.append:this.prepend)(r):this.copy([...this.items.slice(0,c),r,...this.items.slice(c+1)])}),Z(this,"insert",(i,...r)=>this.copy(tl(this.items,i,...r))),Z(this,"insertBefore",(i,...r)=>{let o=this.indexOf(i);if(o===-1)if(this.items.length===0)o=0;else return this;return this.copy(tl(this.items,o,...r))}),Z(this,"insertAfter",(i,...r)=>{let o=this.indexOf(i);if(o===-1)if(this.items.length===0)o=0;else return this;return this.copy(tl(this.items,o+1,...r))}),Z(this,"prepend",(...i)=>this.copy(tl(this.items,0,...i))),Z(this,"append",(...i)=>this.copy(tl(this.items,this.items.length,...i))),Z(this,"filter",i=>{const r=this.items.filter((o,c)=>i(this.stringifyItem(o),c,o));return this.copy(r)}),Z(this,"remove",(...i)=>{const r=i.map(o=>typeof o=="string"?o:this.getItemValue(o));return this.copy(this.items.filter(o=>{const c=this.getItemValue(o);return c==null?!1:!r.includes(c)}))}),Z(this,"move",(i,r)=>{const o=this.indexOf(i);return o===-1?this:this.copy(Ou(this.items,[o],r))}),Z(this,"moveBefore",(i,...r)=>{let o=this.items.findIndex(u=>this.getItemValue(u)===i);if(o===-1)return this;let c=r.map(u=>this.items.findIndex(d=>this.getItemValue(d)===u)).sort((u,d)=>u-d);return this.copy(Ou(this.items,c,o))}),Z(this,"moveAfter",(i,...r)=>{let o=this.items.findIndex(u=>this.getItemValue(u)===i);if(o===-1)return this;let c=r.map(u=>this.items.findIndex(d=>this.getItemValue(d)===u)).sort((u,d)=>u-d);return this.copy(Ou(this.items,c,o+1))}),Z(this,"reorder",(i,r)=>this.copy(Ou(this.items,[i],r))),Z(this,"compareValue",(i,r)=>{const o=this.indexOf(i),c=this.indexOf(r);return o<c?-1:o>c?1:0}),Z(this,"range",(i,r)=>{let o=[],c=i;for(;c!=null;){if(this.find(c)&&o.push(c),c===r)return o;c=this.getNextValue(c)}return[]}),Z(this,"getValueRange",(i,r)=>i&&r?this.compareValue(i,r)<=0?this.range(i,r):this.range(r,i):[]),Z(this,"toString",()=>{let i="";for(const r of this.items){const o=this.getItemValue(r),c=this.stringifyItem(r),u=this.getItemDisabled(r),d=[o,c,u].filter(Boolean).join(":");i+=d+","}return i}),Z(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}},Bz=(e,t)=>!!e?.toLowerCase().startsWith(t.toLowerCase());function tl(e,t,...i){return[...e.slice(0,t),...i,...e.slice(t)]}function Ou(e,t,i){t=[...t].sort((o,c)=>o-c);const r=t.map(o=>e[o]);for(let o=t.length-1;o>=0;o--)e=[...e.slice(0,t[o]),...e.slice(t[o]+1)];return i=Math.max(0,i-t.filter(o=>o<i).length),[...e.slice(0,i),...r,...e.slice(i)]}var Hz=class Qu extends Set{constructor(t=[]){super(t),Z(this,"selectionMode","single"),Z(this,"deselectable",!0),Z(this,"copy",()=>{const i=new Qu([...this]);return this.sync(i)}),Z(this,"sync",i=>(i.selectionMode=this.selectionMode,i.deselectable=this.deselectable,i)),Z(this,"isEmpty",()=>this.size===0),Z(this,"isSelected",i=>this.selectionMode==="none"||i==null?!1:this.has(i)),Z(this,"canSelect",(i,r)=>this.selectionMode!=="none"||!i.getItemDisabled(i.find(r))),Z(this,"firstSelectedValue",i=>{let r=null;for(let o of this)(!r||i.compareValue(o,r)<0)&&(r=o);return r}),Z(this,"lastSelectedValue",i=>{let r=null;for(let o of this)(!r||i.compareValue(o,r)>0)&&(r=o);return r}),Z(this,"extendSelection",(i,r,o)=>{if(this.selectionMode==="none")return this;if(this.selectionMode==="single")return this.replaceSelection(i,o);const c=this.copy(),u=Array.from(this).pop();for(let d of i.getValueRange(r,u??o))c.delete(d);for(let d of i.getValueRange(o,r))this.canSelect(i,d)&&c.add(d);return c}),Z(this,"toggleSelection",(i,r)=>{if(this.selectionMode==="none")return this;if(this.selectionMode==="single"&&!this.isSelected(r))return this.replaceSelection(i,r);const o=this.copy();return o.has(r)?o.delete(r):o.canSelect(i,r)&&o.add(r),o}),Z(this,"replaceSelection",(i,r)=>{if(this.selectionMode==="none")return this;if(r==null)return this;if(!this.canSelect(i,r))return this;const o=new Qu([r]);return this.sync(o)}),Z(this,"setSelection",i=>{if(this.selectionMode==="none")return this;let r=new Qu;for(let o of i)if(o!=null&&(r.add(o),this.selectionMode==="single"))break;return this.sync(r)}),Z(this,"clearSelection",()=>{const i=this.copy();return i.deselectable&&i.size>0&&i.clear(),i}),Z(this,"select",(i,r,o)=>this.selectionMode==="none"?this:this.selectionMode==="single"?this.isSelected(r)&&this.deselectable?this.toggleSelection(i,r):this.replaceSelection(i,r):this.selectionMode==="multiple"||o?this.toggleSelection(i,r):this.replaceSelection(i,r)),Z(this,"deselect",i=>{const r=this.copy();return r.delete(i),r}),Z(this,"isEqual",i=>Gt(Array.from(this),Array.from(i)))}};function v1(e,t,i){for(let r=0;r<t.length;r++)e=i.getChildren(e,t.slice(r+1))[t[r]];return e}function Fz(e){const t=$z(e),i=[],r=new Set;for(const o of t){const c=o.join();r.has(c)||(r.add(c),i.push(o))}return i}function b1(e,t){for(let i=0;i<Math.min(e.length,t.length);i++){if(e[i]<t[i])return-1;if(e[i]>t[i])return 1}return e.length-t.length}function $z(e){return e.sort(b1)}function Uz(e,t){let i;return vn(e,{...t,onEnter:(r,o)=>{if(t.predicate(r,o))return i=r,"stop"}}),i}function jz(e,t){const i=[];return vn(e,{onEnter:(r,o)=>{t.predicate(r,o)&&i.push(r)},getChildren:t.getChildren}),i}function aS(e,t){let i;return vn(e,{onEnter:(r,o)=>{if(t.predicate(r,o))return i=[...o],"stop"},getChildren:t.getChildren}),i}function Gz(e,t){let i=t.initialResult;return vn(e,{...t,onEnter:(r,o)=>{i=t.nextResult(i,r,o)}}),i}function Wz(e,t){return Gz(e,{...t,initialResult:[],nextResult:(i,r,o)=>(i.push(...t.transform(r,o)),i)})}function qz(e,t){const{predicate:i,create:r,getChildren:o}=t,c=(u,d)=>{const g=o(u,d),p=[];g.forEach((x,T)=>{const E=[...d,T],w=c(x,E);w&&p.push(w)});const m=d.length===0,b=i(u,d),y=p.length>0;return m||b||y?r(u,p,d):null};return c(e,[])||r(e,[],[])}function Yz(e,t){const i=[];let r=0;const o=new Map,c=new Map;return vn(e,{getChildren:t.getChildren,onEnter:(u,d)=>{o.has(u)||o.set(u,r++);const g=t.getChildren(u,d);g.forEach(x=>{c.has(x)||c.set(x,u),o.has(x)||o.set(x,r++)});const p=g.length>0?g.map(x=>o.get(x)):void 0,m=c.get(u),b=m?o.get(m):void 0,y=o.get(u);i.push({...u,_children:p,_parent:b,_index:y})}}),i}function Kz(e,t){return{type:"insert",index:e,nodes:t}}function Xz(e){return{type:"remove",indexes:e}}function Om(){return{type:"replace"}}function y1(e){return[e.slice(0,-1),e[e.length-1]]}function x1(e,t,i=new Map){const[r,o]=y1(e);for(let u=r.length-1;u>=0;u--){const d=r.slice(0,u).join();switch(i.get(d)?.type){case"remove":continue}i.set(d,Om())}const c=i.get(r.join());switch(c?.type){case"remove":i.set(r.join(),{type:"removeThenInsert",removeIndexes:c.indexes,insertIndex:o,insertNodes:t});break;default:i.set(r.join(),Kz(o,t))}return i}function S1(e){const t=new Map,i=new Map;for(const r of e){const o=r.slice(0,-1).join(),c=i.get(o)??[];c.push(r[r.length-1]),i.set(o,c.sort((u,d)=>u-d))}for(const r of e)for(let o=r.length-2;o>=0;o--){const c=r.slice(0,o).join();t.has(c)||t.set(c,Om())}for(const[r,o]of i)t.set(r,Xz(o));return t}function Qz(e,t){const i=new Map,[r,o]=y1(e);for(let c=r.length-1;c>=0;c--){const u=r.slice(0,c).join();i.set(u,Om())}return i.set(r.join(),{type:"removeThenInsert",removeIndexes:[o],insertIndex:o,insertNodes:[t]}),i}function qd(e,t,i){return Zz(e,{...i,getChildren:(r,o)=>{const c=o.join();switch(t.get(c)?.type){case"replace":case"remove":case"removeThenInsert":case"insert":return i.getChildren(r,o);default:return[]}},transform:(r,o,c)=>{const u=c.join(),d=t.get(u);switch(d?.type){case"remove":return i.create(r,o.filter((m,b)=>!d.indexes.includes(b)),c);case"removeThenInsert":const g=o.filter((m,b)=>!d.removeIndexes.includes(b)),p=d.removeIndexes.reduce((m,b)=>b<m?m-1:m,d.insertIndex);return i.create(r,oS(g,p,0,...d.insertNodes),c);case"insert":return i.create(r,oS(o,d.index,0,...d.nodes),c);case"replace":return i.create(r,o,c);default:return r}}})}function oS(e,t,i,...r){return[...e.slice(0,t),...r,...e.slice(t+i)]}function Zz(e,t){const i={};return vn(e,{...t,onLeave:(r,o)=>{const c=[0,...o],u=c.join(),d=t.transform(r,i[u]??[],o),g=c.slice(0,-1).join(),p=i[g]??[];p.push(d),i[g]=p}}),i[""][0]}function Jz(e,t){const{nodes:i,at:r}=t;if(r.length===0)throw new Error("Can't insert nodes at the root");const o=x1(r,i);return qd(e,o,t)}function eD(e,t){if(t.at.length===0)return t.node;const i=Qz(t.at,t.node);return qd(e,i,t)}function tD(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 i=S1(t.indexPaths);return qd(e,i,t)}function nD(e,t){if(t.indexPaths.length===0)return e;for(const c of t.indexPaths)if(c.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 i=Fz(t.indexPaths),r=i.map(c=>v1(e,c,t)),o=x1(t.to,r,S1(i));return qd(e,o,t)}function vn(e,t){const{onEnter:i,onLeave:r,getChildren:o}=t;let c=[],u=[{node:e}];const d=t.reuseIndexPath?()=>c:()=>c.slice();for(;u.length>0;){let g=u[u.length-1];if(g.state===void 0){const m=i?.(g.node,d());if(m==="stop")return;g.state=m==="skip"?-1:0}const p=g.children||o(g.node,d());if(g.children||(g.children=p),g.state!==-1){if(g.state<p.length){let b=g.state;c.push(b),u.push({node:p[b]}),g.state=b+1;continue}if(r?.(g.node,d())==="stop")return}c.pop(),u.pop()}}var C1=class E1{constructor(t){this.options=t,Z(this,"rootNode"),Z(this,"isEqual",i=>Gt(this.rootNode,i.rootNode)),Z(this,"getNodeChildren",i=>this.options.nodeToChildren?.(i)??Oo.nodeToChildren(i)??[]),Z(this,"resolveIndexPath",i=>typeof i=="string"?this.getIndexPath(i):i),Z(this,"resolveNode",i=>{const r=this.resolveIndexPath(i);return r?this.at(r):void 0}),Z(this,"getNodeChildrenCount",i=>this.options.nodeToChildrenCount?.(i)??Oo.nodeToChildrenCount(i)),Z(this,"getNodeValue",i=>this.options.nodeToValue?.(i)??Oo.nodeToValue(i)),Z(this,"getNodeDisabled",i=>this.options.isNodeDisabled?.(i)??Oo.isNodeDisabled(i)),Z(this,"stringify",i=>{const r=this.findNode(i);return r?this.stringifyNode(r):null}),Z(this,"stringifyNode",i=>this.options.nodeToString?.(i)??Oo.nodeToString(i)),Z(this,"getFirstNode",(i=this.rootNode)=>{let r;return vn(i,{getChildren:this.getNodeChildren,onEnter:(o,c)=>{if(!r&&c.length>0&&!this.getNodeDisabled(o))return r=o,"stop"}}),r}),Z(this,"getLastNode",(i=this.rootNode,r={})=>{let o;return vn(i,{getChildren:this.getNodeChildren,onEnter:(c,u)=>{if(!this.isSameNode(c,i)){if(r.skip?.({value:this.getNodeValue(c),node:c,indexPath:u}))return"skip";u.length>0&&!this.getNodeDisabled(c)&&(o=c)}}}),o}),Z(this,"at",i=>v1(this.rootNode,i,{getChildren:this.getNodeChildren})),Z(this,"findNode",(i,r=this.rootNode)=>Uz(r,{getChildren:this.getNodeChildren,predicate:o=>this.getNodeValue(o)===i})),Z(this,"findNodes",(i,r=this.rootNode)=>{const o=new Set(i.filter(c=>c!=null));return jz(r,{getChildren:this.getNodeChildren,predicate:c=>o.has(this.getNodeValue(c))})}),Z(this,"sort",i=>i.reduce((r,o)=>{const c=this.getIndexPath(o);return c&&r.push({value:o,indexPath:c}),r},[]).sort((r,o)=>b1(r.indexPath,o.indexPath)).map(({value:r})=>r)),Z(this,"getIndexPath",i=>aS(this.rootNode,{getChildren:this.getNodeChildren,predicate:r=>this.getNodeValue(r)===i})),Z(this,"getValue",i=>{const r=this.at(i);return r?this.getNodeValue(r):void 0}),Z(this,"getValuePath",i=>{if(!i)return[];const r=[];let o=[...i];for(;o.length>0;){const c=this.at(o);c&&r.unshift(this.getNodeValue(c)),o.pop()}return r}),Z(this,"getDepth",i=>aS(this.rootNode,{getChildren:this.getNodeChildren,predicate:o=>this.getNodeValue(o)===i})?.length??0),Z(this,"isSameNode",(i,r)=>this.getNodeValue(i)===this.getNodeValue(r)),Z(this,"isRootNode",i=>this.isSameNode(i,this.rootNode)),Z(this,"contains",(i,r)=>!i||!r?!1:r.slice(0,i.length).every((o,c)=>i[c]===r[c])),Z(this,"getNextNode",(i,r={})=>{let o=!1,c;return vn(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(u,d)=>{if(this.isRootNode(u))return;const g=this.getNodeValue(u);if(r.skip?.({value:g,node:u,indexPath:d}))return g===i&&(o=!0),"skip";if(o&&!this.getNodeDisabled(u))return c=u,"stop";g===i&&(o=!0)}}),c}),Z(this,"getPreviousNode",(i,r={})=>{let o,c=!1;return vn(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(u,d)=>{if(this.isRootNode(u))return;const g=this.getNodeValue(u);if(r.skip?.({value:g,node:u,indexPath:d}))return"skip";if(g===i)return c=!0,"stop";this.getNodeDisabled(u)||(o=u)}}),c?o:void 0}),Z(this,"getParentNodes",i=>{const r=this.resolveIndexPath(i)?.slice();if(!r)return[];const o=[];for(;r.length>0;){r.pop();const c=this.at(r);c&&!this.isRootNode(c)&&o.unshift(c)}return o}),Z(this,"getDescendantNodes",(i,r)=>{const o=this.resolveNode(i);if(!o)return[];const c=[];return vn(o,{getChildren:this.getNodeChildren,onEnter:(u,d)=>{d.length!==0&&(!r?.withBranch&&this.isBranchNode(u)||c.push(u))}}),c}),Z(this,"getDescendantValues",(i,r)=>this.getDescendantNodes(i,r).map(c=>this.getNodeValue(c))),Z(this,"getParentIndexPath",i=>i.slice(0,-1)),Z(this,"getParentNode",i=>{const r=this.resolveIndexPath(i);return r?this.at(this.getParentIndexPath(r)):void 0}),Z(this,"visit",i=>{const{skip:r,...o}=i;vn(this.rootNode,{...o,getChildren:this.getNodeChildren,onEnter:(c,u)=>{if(!this.isRootNode(c))return r?.({value:this.getNodeValue(c),node:c,indexPath:u})?"skip":o.onEnter?.(c,u)}})}),Z(this,"getPreviousSibling",i=>{const r=this.getParentNode(i);if(!r)return;const o=this.getNodeChildren(r);let c=i[i.length-1];for(;--c>=0;){const u=o[c];if(!this.getNodeDisabled(u))return u}}),Z(this,"getNextSibling",i=>{const r=this.getParentNode(i);if(!r)return;const o=this.getNodeChildren(r);let c=i[i.length-1];for(;++c<o.length;){const u=o[c];if(!this.getNodeDisabled(u))return u}}),Z(this,"getSiblingNodes",i=>{const r=this.getParentNode(i);return r?this.getNodeChildren(r):[]}),Z(this,"getValues",(i=this.rootNode)=>Wz(i,{getChildren:this.getNodeChildren,transform:o=>[this.getNodeValue(o)]}).slice(1)),Z(this,"isValidDepth",(i,r)=>r==null?!0:typeof r=="function"?r(i.length):i.length===r),Z(this,"isBranchNode",i=>this.getNodeChildren(i).length>0||this.getNodeChildrenCount(i)!=null),Z(this,"getBranchValues",(i=this.rootNode,r={})=>{let o=[];return vn(i,{getChildren:this.getNodeChildren,onEnter:(c,u)=>{if(u.length===0)return;const d=this.getNodeValue(c);if(r.skip?.({value:d,node:c,indexPath:u}))return"skip";this.isBranchNode(c)&&this.isValidDepth(u,r.depth)&&o.push(this.getNodeValue(c))}}),o}),Z(this,"flatten",(i=this.rootNode)=>Yz(i,{getChildren:this.getNodeChildren})),Z(this,"_create",(i,r)=>this.getNodeChildren(i).length>0||r.length>0?{...i,children:r}:{...i}),Z(this,"_insert",(i,r,o)=>this.copy(Jz(i,{at:r,nodes:o,getChildren:this.getNodeChildren,create:this._create}))),Z(this,"copy",i=>new E1({...this.options,rootNode:i})),Z(this,"_replace",(i,r,o)=>this.copy(eD(i,{at:r,node:o,getChildren:this.getNodeChildren,create:this._create}))),Z(this,"_move",(i,r,o)=>this.copy(nD(i,{indexPaths:r,to:o,getChildren:this.getNodeChildren,create:this._create}))),Z(this,"_remove",(i,r)=>this.copy(tD(i,{indexPaths:r,getChildren:this.getNodeChildren,create:this._create}))),Z(this,"replace",(i,r)=>this._replace(this.rootNode,i,r)),Z(this,"remove",i=>this._remove(this.rootNode,i)),Z(this,"insertBefore",(i,r)=>this.getParentNode(i)?this._insert(this.rootNode,i,r):void 0),Z(this,"insertAfter",(i,r)=>{if(!this.getParentNode(i))return;const c=[...i.slice(0,-1),i[i.length-1]+1];return this._insert(this.rootNode,c,r)}),Z(this,"move",(i,r)=>this._move(this.rootNode,i,r)),Z(this,"filter",i=>{const r=qz(this.rootNode,{predicate:i,getChildren:this.getNodeChildren,create:this._create});return this.copy(r)}),Z(this,"toJSON",()=>this.getValues(this.rootNode)),this.rootNode=t.rootNode}},Oo={nodeToValue(e){return typeof e=="string"?e:ga(e)&&Hn(e,"value")?e.value:""},nodeToString(e){return typeof e=="string"?e:ga(e)&&Hn(e,"label")?e.label:Oo.nodeToValue(e)},isNodeDisabled(e){return ga(e)&&Hn(e,"disabled")?!!e.disabled:!1},nodeToChildren(e){return e.children},nodeToChildrenCount(e){if(ga(e)&&Hn(e,"childrenCount"))return e.childrenCount}},T1=ve("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger");T1.build();var w1=e=>new Go(e);w1.empty=()=>new Go({items:[]});var iD=e=>e.ids?.control??`combobox:${e.id}:control`,rD=e=>e.ids?.input??`combobox:${e.id}:input`,aD=e=>e.ids?.content??`combobox:${e.id}:content`,oD=e=>e.ids?.positioner??`combobox:${e.id}:popper`,sD=e=>e.ids?.trigger??`combobox:${e.id}:toggle-btn`,lD=e=>e.ids?.clearTrigger??`combobox:${e.id}:clear-btn`,fa=e=>e.getById(aD(e)),ml=e=>e.getById(rD(e)),sS=e=>e.getById(oD(e)),lS=e=>e.getById(iD(e)),Zu=e=>e.getById(sD(e)),cD=e=>e.getById(lD(e)),nl=(e,t)=>{if(t==null)return null;const i=`[role=option][data-value="${CSS.escape(t)}"]`;return qA(fa(e),i)},cS=e=>{const t=ml(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})},uD=e=>{const t=Zu(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})},{guards:dD,createMachine:fD,choose:hD}=Vd(),{and:St,not:mn}=dD;fD({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}){sm(t)},collection:w1.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:i,getEvent:r}){return{currentPlacement:t(()=>({defaultValue:void 0})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:Gt,hash(o){return o.join(",")},onChange(o){const c=i(),u=c.get("selectedItems"),d=e("collection"),g=o.map(p=>u.find(b=>d.getItemValue(b)===p)||d.find(p));c.set("selectedItems",g),e("onValueChange")?.({value:o,items:g})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(o){const c=e("collection").find(o);e("onHighlightChange")?.({highlightedValue:o,highlightedItem:c})}})),inputValue:t(()=>{let o=e("inputValue")||e("defaultInputValue");const c=e("value")||e("defaultValue");if(!o.trim()&&!e("multiple")){const u=e("collection").stringifyMany(c);o=$i(e("selectionBehavior"),{preserve:o||u,replace:u,clear:""})}return{defaultValue:o,value:e("inputValue"),onChange(u){const d=r(),g=(d.previousEvent||d).src;e("onInputValueChange")?.({inputValue:u,reason:g})}}}),highlightedItem:t(()=>{const o=e("highlightedValue");return{defaultValue:e("collection").find(o)}}),selectedItems:t(()=>{const o=e("value")||e("defaultValue")||[];return{defaultValue:e("collection").findMany(o)}})}},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:i,action:r,send:o}){i([()=>e.hash("value")],()=>{r(["syncSelectedItems"])}),i([()=>e.get("inputValue")],()=>{r(["syncInputValue"])}),i([()=>e.get("highlightedValue")],()=>{r(["syncHighlightedItem","autofillInputValue"])}),i([()=>t("open")],()=>{r(["toggleVisibility"])}),i([()=>t("collection").toString()],()=>{o({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:hD([{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:St("isOpenControlled","openOnChange"),actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{guard:"openOnChange",target:"suggesting",actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{actions:["setInputValue"]}],"LAYER.INTERACT_OUTSIDE":{target:"idle"},"INPUT.ESCAPE":{guard:St("isCustomValue",mn("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:St("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:St("autoComplete","isLastItemHighlighted"),actions:["clearHighlightedValue","scrollContentToTop"]},{actions:["highlightNextItem"]}],"INPUT.ARROW_UP":[{guard:St("autoComplete","isFirstItemHighlighted"),actions:["clearHighlightedValue"]},{actions:["highlightPrevItem"]}],"INPUT.ENTER":[{guard:St("isOpenControlled","isCustomValue",mn("hasHighlightedItem"),mn("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:St("isCustomValue",mn("hasHighlightedItem"),mn("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:St("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:St("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],"LAYER.ESCAPE":[{guard:St("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:St("isOpenControlled","isCustomValue",mn("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:St("isCustomValue",mn("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:St("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:St("isOpenControlled","isCustomValue",mn("hasHighlightedItem"),mn("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:St("isCustomValue",mn("hasHighlightedItem"),mn("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:St("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:St("isOpenControlled","isCustomValue",mn("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:St("isCustomValue",mn("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:St("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 i=e("openOnChange");return hP(i)?i:!!i?.({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:i}){return t("disableLayer")?void 0:Na(()=>fa(i),{type:"listbox",defer:!0,exclude:()=>[ml(i),Zu(i),cD(i)],onFocusOutside:t("onFocusOutside"),onPointerDownOutside:t("onPointerDownOutside"),onInteractOutside:t("onInteractOutside"),onEscapeKeyDown(o){o.preventDefault(),o.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:i}){const r=()=>lS(i)||Zu(i),o=()=>sS(i);return e.set("currentPlacement",t("positioning").placement),Sn(r,o,{...t("positioning"),defer:!0,onComplete(c){e.set("currentPlacement",c.placement)}})},scrollToHighlightedItem({context:e,prop:t,scope:i,event:r}){const o=ml(i);let c=[];const u=p=>{const m=r.current().type.includes("POINTER"),b=e.get("highlightedValue");if(m||!b)return;const y=fa(i),x=t("scrollToIndexFn");if(x){const w=t("collection").indexOf(b);x({index:w,immediate:p,getElement:()=>nl(i,b)});return}const T=nl(i,b),E=pe(()=>{Il(T,{rootEl:y,block:"nearest"})});c.push(E)},d=pe(()=>u(!0));c.push(d);const g=Ul(o,{attributes:["aria-activedescendant"],callback:()=>u(!1)});return c.push(g),()=>{c.forEach(p=>p())}}},actions:{reposition({context:e,prop:t,scope:i,event:r}){Sn(()=>lS(i),()=>sS(i),{...t("positioning"),...r.options,defer:!0,listeners:!1,onComplete(u){e.set("currentPlacement",u.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:i}=e,r=i("collection"),o=t.get("highlightedValue");if(!o||!r.has(o))return;const c=i("multiple")?Lo(t.get("value"),o):[o];i("onSelect")?.({value:c,itemValue:o}),t.set("value",c);const u=$i(i("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(c),clear:""});t.set("inputValue",u)},scrollToHighlightedItem({context:e,prop:t,scope:i}){Ad(()=>{const r=e.get("highlightedValue");if(r==null)return;const o=nl(i,r),c=fa(i),u=t("scrollToIndexFn");if(u){const d=t("collection").indexOf(r);u({index:d,immediate:!0,getElement:()=>nl(i,r)});return}Il(o,{rootEl:c,block:"nearest"})})},selectItem(e){const{context:t,event:i,flush:r,prop:o}=e;i.value!=null&&r(()=>{const c=o("multiple")?Lo(t.get("value"),i.value):[i.value];o("onSelect")?.({value:c,itemValue:i.value}),t.set("value",c);const u=$i(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:o("collection").stringifyMany(c),clear:""});t.set("inputValue",u)})},clearItem(e){const{context:t,event:i,flush:r,prop:o}=e;i.value!=null&&r(()=>{const c=ya(t.get("value"),i.value);t.set("value",c);const u=$i(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:o("collection").stringifyMany(c),clear:""});t.set("inputValue",u)})},setInitialFocus({scope:e}){pe(()=>{cS(e)})},setFinalFocus({scope:e}){pe(()=>{Zu(e)?.dataset.focusable==null?cS(e):uD(e)})},syncInputValue({context:e,scope:t,event:i}){const r=ml(t);r&&(r.value=e.get("inputValue"),queueMicrotask(()=>{i.current().type!=="INPUT.CHANGE"&&FP(r)}))},setInputValue({context:e,event:t}){e.set("inputValue",t.value)},clearInputValue({context:e}){e.set("inputValue","")},revertInputValue({context:e,prop:t,computed:i}){const r=t("selectionBehavior"),o=$i(r,{replace:i("hasSelectedItems")?i("valueAsString"):"",preserve:e.get("inputValue"),clear:""});e.set("inputValue",o)},setValue(e){const{context:t,flush:i,event:r,prop:o}=e;i(()=>{t.set("value",r.value);const c=$i(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:o("collection").stringifyMany(r.value),clear:""});t.set("inputValue",c)})},clearSelectedItems(e){const{context:t,flush:i,prop:r}=e;i(()=>{t.set("value",[]);const o=$i(r("selectionBehavior"),{preserve:t.get("inputValue"),replace:r("collection").stringifyMany([]),clear:""});t.set("inputValue",o)})},scrollContentToTop({prop:e,scope:t}){const i=e("scrollToIndexFn");if(i){const r=e("collection").firstValue;i({index:0,immediate:!0,getElement:()=>nl(t,r)})}else{const r=fa(t);if(!r)return;r.scrollTop=0}},invokeOnOpen({prop:e,event:t,context:i}){const r=uS(t);e("onOpenChange")?.({open:!0,reason:r,value:i.get("value")})},invokeOnClose({prop:e,event:t,context:i}){const r=uS(t);e("onOpenChange")?.({open:!1,reason:r,value:i.get("value")})},highlightFirstItem({context:e,prop:t,scope:i}){(fa(i)?queueMicrotask:pe)(()=>{const o=t("collection").firstValue;o&&e.set("highlightedValue",o)})},highlightFirstItemIfNeeded({computed:e,action:t}){e("autoHighlight")&&t(["highlightFirstItem"])},highlightLastItem({context:e,prop:t,scope:i}){(fa(i)?queueMicrotask:pe)(()=>{const o=t("collection").lastValue;o&&e.set("highlightedValue",o)})},highlightNextItem({context:e,prop:t}){let i=null;const r=e.get("highlightedValue"),o=t("collection");r?(i=o.getNextValue(r),!i&&t("loopFocus")&&(i=o.firstValue)):i=o.firstValue,i&&e.set("highlightedValue",i)},highlightPrevItem({context:e,prop:t}){let i=null;const r=e.get("highlightedValue"),o=t("collection");r?(i=o.getPreviousValue(r),!i&&t("loopFocus")&&(i=o.lastValue)):i=o.lastValue,i&&e.set("highlightedValue",i)},highlightFirstSelectedItem({context:e,prop:t}){pe(()=>{const[i]=t("collection").sort(e.get("value"));i&&e.set("highlightedValue",i)})},highlightFirstOrSelectedItem({context:e,prop:t,computed:i}){pe(()=>{let r=null;i("hasSelectedItems")?r=t("collection").sort(e.get("value"))[0]:r=t("collection").firstValue,r&&e.set("highlightedValue",r)})},highlightLastOrSelectedItem({context:e,prop:t,computed:i}){pe(()=>{const r=t("collection");let o=null;i("hasSelectedItems")?o=r.sort(e.get("value"))[0]:o=r.lastValue,o&&e.set("highlightedValue",o)})},autofillInputValue({context:e,computed:t,prop:i,event:r,scope:o}){const c=ml(o),u=i("collection");if(!t("autoComplete")||!c||!r.keypress)return;const d=u.stringify(e.get("highlightedValue"));pe(()=>{c.value=d||e.get("inputValue")})},syncSelectedItems(e){queueMicrotask(()=>{const{context:t,prop:i}=e,r=i("collection"),o=t.get("value"),c=o.map(d=>t.get("selectedItems").find(p=>r.getItemValue(p)===d)||r.find(d));t.set("selectedItems",c);const u=$i(i("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(o),clear:""});t.set("inputValue",u)})},syncHighlightedItem({context:e,prop:t}){const i=t("collection").find(e.get("highlightedValue"));e.set("highlightedItem",i)},toggleVisibility({event:e,send:t,prop:i}){t({type:i("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}});function uS(e){return(e.previousEvent||e).src}ce()(["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"]);ce()(["htmlFor"]);ce()(["id"]);ce()(["item","persistFocus"]);const gD=T1.extendWith("empty"),[O1,Br]=at({name:"DialogContext",hookName:"useDialogContext",providerName:"<DialogProvider />"}),R1=C.forwardRef((e,t)=>{const i=Br(),r=$E(),o=jn({...r,present:i.open}),c=ne(i.getBackdropProps(),o.getPresenceProps(),e);return o.unmounted?null:V.jsx(re.div,{...c,ref:Qi(o.ref,t)})});R1.displayName="DialogBackdrop";const k1=C.forwardRef((e,t)=>{const i=Br(),r=ne(i.getCloseTriggerProps(),e);return V.jsx(re.button,{...r,ref:t})});k1.displayName="DialogCloseTrigger";const N1=C.forwardRef((e,t)=>{const i=Br(),r=Cn(),o=ne(i.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:V.jsx(re.div,{...o,ref:Qi(r.ref,t)})});N1.displayName="DialogContent";const I1=C.forwardRef((e,t)=>{const i=Br(),r=ne(i.getDescriptionProps(),e);return V.jsx(re.div,{...r,ref:t})});I1.displayName="DialogDescription";const P1=C.forwardRef((e,t)=>{const i=Br(),r=ne(i.getPositionerProps(),e);return Cn().unmounted?null:V.jsx(re.div,{...r,ref:t})});P1.displayName="DialogPositioner";var Rm=ve("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),oa=Rm.build(),A1=e=>e.ids?.positioner??`dialog:${e.id}:positioner`,_1=e=>e.ids?.backdrop??`dialog:${e.id}:backdrop`,up=e=>e.ids?.content??`dialog:${e.id}:content`,V1=e=>e.ids?.trigger??`dialog:${e.id}:trigger`,dp=e=>e.ids?.title??`dialog:${e.id}:title`,fp=e=>e.ids?.description??`dialog:${e.id}:description`,z1=e=>e.ids?.closeTrigger??`dialog:${e.id}:close`,Ru=e=>e.getById(up(e)),pD=e=>e.getById(A1(e)),mD=e=>e.getById(_1(e)),vD=e=>e.getById(V1(e)),bD=e=>e.getById(dp(e)),yD=e=>e.getById(fp(e)),xD=e=>e.getById(z1(e));function SD(e,t){const{state:i,send:r,context:o,prop:c,scope:u}=e,d=c("aria-label"),g=i.matches("open");return{open:g,setOpen(p){i.matches("open")!==p&&r({type:p?"OPEN":"CLOSE"})},getTriggerProps(){return t.button({...oa.trigger.attrs,dir:c("dir"),id:V1(u),"aria-haspopup":"dialog",type:"button","aria-expanded":g,"data-state":g?"open":"closed","aria-controls":up(u),onClick(p){p.defaultPrevented||r({type:"TOGGLE"})}})},getBackdropProps(){return t.element({...oa.backdrop.attrs,dir:c("dir"),hidden:!g,id:_1(u),"data-state":g?"open":"closed"})},getPositionerProps(){return t.element({...oa.positioner.attrs,dir:c("dir"),id:A1(u),style:{pointerEvents:g?void 0:"none"}})},getContentProps(){const p=o.get("rendered");return t.element({...oa.content.attrs,dir:c("dir"),role:c("role"),hidden:!g,id:up(u),tabIndex:-1,"data-state":g?"open":"closed","aria-modal":!0,"aria-label":d||void 0,"aria-labelledby":d||!p.title?void 0:dp(u),"aria-describedby":p.description?fp(u):void 0})},getTitleProps(){return t.element({...oa.title.attrs,dir:c("dir"),id:dp(u)})},getDescriptionProps(){return t.element({...oa.description.attrs,dir:c("dir"),id:fp(u)})},getCloseTriggerProps(){return t.button({...oa.closeTrigger.attrs,dir:c("dir"),id:z1(u),type:"button",onClick(p){p.defaultPrevented||(p.stopPropagation(),r({type:"CLOSE"}))}})}}}var CD={props({props:e,scope:t}){const i=e.role==="alertdialog",r=i?()=>xD(t):void 0,o=typeof e.modal=="boolean"?e.modal:!0;return{role:"dialog",modal:o,trapFocus:o,preventScroll:o,closeOnInteractOutside:!i,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:i}){e([()=>i("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:i}){return Na(()=>Ru(e),{type:"dialog",defer:!0,pointerBlocking:i("modal"),exclude:[vD(e)],onInteractOutside(o){i("onInteractOutside")?.(o),i("closeOnInteractOutside")||o.preventDefault()},persistentElements:i("persistentElements"),onFocusOutside:i("onFocusOutside"),onPointerDownOutside:i("onPointerDownOutside"),onRequestDismiss:i("onRequestDismiss"),onEscapeKeyDown(o){i("onEscapeKeyDown")?.(o),i("closeOnEscape")||o.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}})},preventScroll({scope:e,prop:t}){if(t("preventScroll"))return QE(e.getDoc())},trapFocus({scope:e,prop:t}){return t("trapFocus")?XE(()=>Ru(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")?KE(()=>[Ru(e)],{defer:!0}):void 0}},actions:{checkRenderedElements({context:e,scope:t}){pe(()=>{e.set("rendered",{title:!!bD(t),description:!!yD(t)})})},syncZIndex({scope:e}){pe(()=>{const t=Ru(e);if(!t)return;const i=_r(t);[pD(e),mD(e)].forEach(o=>{o?.style.setProperty("--z-index",i.zIndex),o?.style.setProperty("--layer-index",i.getPropertyValue("--layer-index"))})})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},toggleVisibility({prop:e,send:t,event:i}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:i})}}}};ce()(["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 ED=e=>{const t=C.useId(),{getRootNode:i}=pi(),{dir:r}=Zi(),o={id:t,getRootNode:i,dir:r,...e},c=vi(CD,o);return SD(c,Ji)},TD=e=>{const[t,{children:i,...r}]=mi(e),[o]=$d(t),c=ED(r),u=jn(ne({present:c.open},t));return V.jsx(O1,{value:c,children:V.jsx(Fd,{value:o,children:V.jsx(Jn,{value:u,children:i})})})},wD=e=>{const[t,{value:i,children:r}]=mi(e),[o]=$d(t),c=jn(ne({present:i.open},t));return V.jsx(O1,{value:i,children:V.jsx(Fd,{value:o,children:V.jsx(Jn,{value:c,children:r})})})},D1=C.forwardRef((e,t)=>{const i=Br(),r=ne(i.getTitleProps(),e);return V.jsx(re.h2,{...r,ref:t})});D1.displayName="DialogTitle";const M1=C.forwardRef((e,t)=>{const i=Br(),r=Cn(),o=ne({...i.getTriggerProps(),"aria-controls":r.unmounted?void 0:i.getTriggerProps()["aria-controls"]},e);return V.jsx(re.button,{...o,ref:t})});M1.displayName="DialogTrigger";var L1=ve("editable").parts("root","area","label","preview","input","editTrigger","submitTrigger","cancelTrigger","control");L1.build();ce()(["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 B1=C.forwardRef((e,t)=>{const i=Ia(),r=ne(i?.getInputProps(),e);return V.jsx(re.input,{...r,ref:t})});B1.displayName="FieldInput";const H1=ve("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator");H1.build();function OD(e){if(!e)return;const t=_r(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 RD(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 kD(e){if(!e)return;const t=Wt(e),i=rt(e),r=RD(t),o=OD(e);o&&(r.style.cssText+=o);function c(){i.requestAnimationFrame(()=>{r.innerHTML=e.value;const u=i.getComputedStyle(r);e?.style.setProperty("width",u.width)})}return c(),e?.addEventListener("input",c),e?.addEventListener("change",c),()=>{t.body.removeChild(r),e?.removeEventListener("input",c),e?.removeEventListener("change",c)}}var ND=e=>{if(!e)return;const t=_r(e),i=rt(e),r=Wt(e),o=()=>{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",o),e.form?.addEventListener("reset",o);const c=Object.getPrototypeOf(e),u=Object.getOwnPropertyDescriptor(c,"value");Object.defineProperty(e,"value",{...u,set(){u?.set?.apply(this,arguments),o()}});const d=new i.ResizeObserver(()=>{requestAnimationFrame(()=>o())});d.observe(e);const g=new i.MutationObserver(()=>o());return g.observe(e,{attributes:!0,attributeFilter:["rows","placeholder"]}),r.fonts?.addEventListener("loadingdone",o),()=>{e.removeEventListener("input",o),e.form?.removeEventListener("reset",o),r.fonts?.removeEventListener("loadingdone",o),d.disconnect(),g.disconnect()}};const F1=C.forwardRef((e,t)=>{const{autoresize:i,...r}=e,o=C.useRef(null),c=Ia(),u=ne(c?.getTextareaProps(),{style:{resize:i?"none":void 0}},r);return C.useEffect(()=>{if(i)return ND(o.current)},[i]),V.jsx(re.textarea,{...u,ref:Qi(t,o)})});F1.displayName="FieldTextarea";const $1=ve("fieldset").parts("root","errorText","helperText","legend");$1.build();var U1=ve("file-upload").parts("root","dropzone","item","itemDeleteTrigger","itemGroup","itemName","itemPreview","itemPreviewImage","itemSizeText","label","trigger","clearTrigger");U1.build();ce()(["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"]);ce()(["file","type"]);var j1=ve("hoverCard").parts("arrow","arrowTip","trigger","positioner","content");j1.build();var ID=e=>e.ids?.trigger??`hover-card:${e.id}:trigger`,PD=e=>e.ids?.content??`hover-card:${e.id}:content`,AD=e=>e.ids?.positioner??`hover-card:${e.id}:popper`,Bg=e=>e.getById(ID(e)),_D=e=>e.getById(PD(e)),dS=e=>e.getById(AD(e)),{not:ku,and:fS}=Zn();fS("isOpenControlled",ku("isPointer")),ku("isPointer"),fS("isOpenControlled",ku("isPointer")),ku("isPointer");ce()(["closeDelay","dir","getRootNode","id","ids","disabled","onOpenChange","defaultOpen","open","openDelay","positioning","onInteractOutside","onPointerDownOutside","onFocusOutside"]);var G1=ve("tree-view").parts("branch","branchContent","branchControl","branchIndentGuide","branchIndicator","branchText","branchTrigger","item","itemIndicator","itemText","label","nodeCheckbox","nodeRenameInput","root","tree");G1.build();var W1=e=>new C1(e);W1.empty=()=>new C1({rootNode:{children:[]}});var VD=(e,t)=>e.ids?.node?.(t)??`tree:${e.id}:node:${t}`,ai=(e,t)=>{t!=null&&e.getById(VD(e,t))?.focus()},zD=(e,t)=>`tree:${e.id}:rename-input:${t}`,hS=(e,t)=>e.getById(zD(e,t));function DD(e,t,i){const r=e.getDescendantValues(t),o=r.every(c=>i.includes(c));return Nr(o?ya(i,...r):ha(i,...r))}function Nu(e,t){const{context:i,prop:r,refs:o}=e;if(!r("loadChildren")){i.set("expandedValue",E=>Nr(ha(E,...t)));return}const c=i.get("loadingStatus"),[u,d]=bx(t,E=>c[E]==="loaded");if(u.length>0&&i.set("expandedValue",E=>Nr(ha(E,...u))),d.length===0)return;const g=r("collection"),[p,m]=bx(d,E=>{const w=g.findNode(E);return g.getNodeChildren(w).length>0});if(p.length>0&&i.set("expandedValue",E=>Nr(ha(E,...p))),m.length===0)return;i.set("loadingStatus",E=>({...E,...m.reduce((w,R)=>({...w,[R]:"loading"}),{})}));const b=m.map(E=>{const w=g.getIndexPath(E),R=g.getValuePath(w),P=g.findNode(E);return{id:E,indexPath:w,valuePath:R,node:P}}),y=o.get("pendingAborts"),x=r("loadChildren");em(x,()=>"[zag-js/tree-view] `loadChildren` is required for async expansion");const T=b.map(({id:E,indexPath:w,valuePath:R,node:P})=>{const I=y.get(E);I&&(I.abort(),y.delete(E));const O=new AbortController;return y.set(E,O),x({valuePath:R,indexPath:w,node:P,signal:O.signal})});Promise.allSettled(T).then(E=>{const w=[],R=[],P=i.get("loadingStatus");let I=r("collection");E.forEach((O,k)=>{const{id:U,indexPath:H,node:G,valuePath:z}=b[k];O.status==="fulfilled"?(P[U]="loaded",w.push(U),I=I.replace(H,{...G,children:O.value})):(y.delete(U),Reflect.deleteProperty(P,U),R.push({node:G,error:O.reason,indexPath:H,valuePath:z}))}),i.set("loadingStatus",P),w.length&&(i.set("expandedValue",O=>Nr(ha(O,...w))),r("onLoadChildrenComplete")?.({collection:I})),R.length&&r("onLoadChildrenError")?.({nodes:R})})}function Rr(e){const{prop:t,context:i}=e;return function({indexPath:o}){return t("collection").getValuePath(o).slice(0,-1).some(u=>!i.get("expandedValue").includes(u))}}var{and:oi}=Zn();oi("isMultipleSelection","moveFocus"),oi("isShiftKey","isMultipleSelection"),oi("isShiftKey","isMultipleSelection"),oi("isBranchFocused","isBranchExpanded"),oi("isShiftKey","isMultipleSelection"),oi("isShiftKey","isMultipleSelection"),oi("isCtrlKey","isMultipleSelection"),oi("isShiftKey","isMultipleSelection"),oi("isCtrlKey","isMultipleSelection"),oi("isShiftKey","isMultipleSelection");ce()(["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"]);ce()(["node","indexPath"]);var q1=ve("listbox").parts("label","input","item","itemText","itemIndicator","itemGroup","itemGroupLabel","content","root","valueText");q1.build();var Y1=e=>new Go(e);Y1.empty=()=>new Go({items:[]});var MD=e=>e.ids?.content??`select:${e.id}:content`,LD=(e,t)=>e.ids?.item?.(t)??`select:${e.id}:option:${t}`,gS=e=>e.getById(MD(e)),pS=(e,t)=>e.getById(LD(e,t)),{guards:BD,createMachine:HD}=Vd(),{or:FD}=BD;HD({props({props:e}){return{loopFocus:!1,composite:!0,defaultValue:[],multiple:!1,typeahead:!0,collection:Y1.empty(),orientation:"vertical",selectionMode:"single",...e}},context({prop:e,bindable:t}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:Gt,onChange(i){const r=e("collection").findMany(i);return e("onValueChange")?.({value:i,items:r})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),sync:!0,onChange(i){e("onHighlightChange")?.({highlightedValue:i,highlightedItem:e("collection").find(i),highlightedIndex:e("collection").indexOf(i)})}})),highlightedItem:t(()=>({defaultValue:null})),selectedItems:t(()=>{const i=e("value")??e("defaultValue")??[];return{defaultValue:e("collection").findMany(i)}}),focused:t(()=>({sync:!0,defaultValue:!1}))}},refs(){return{typeahead:{...Vr.defaultOptions},focusVisible:!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 i=new Hz(e.get("value"));return i.selectionMode=t("selectionMode"),i.deselectable=!!t("deselectable"),i},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:i,action:r}){i([()=>e.get("value").toString()],()=>{r(["syncSelectedItems"])}),i([()=>e.get("highlightedValue")],()=>{r(["syncHighlightedItem"])}),i([()=>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"]},"CONTENT.FOCUS":[{guard:FD("hasSelectedValue","hasHighlightedValue"),actions:["setFocused"]},{actions:["setFocused","setDefaultHighlightedValue"]}],"CONTENT.BLUR":{actions:["clearFocused"]},"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})=>Wd({root:e.getRootNode?.(),onChange(i){t.set("focusVisible",i.isFocusVisible)}}),scrollToHighlightedItem({context:e,prop:t,scope:i}){const r=c=>{const u=e.get("highlightedValue");if(u==null||Sz()!=="keyboard")return;const g=gS(i),p=t("scrollToIndexFn");if(p){const b=t("collection").indexOf(u);p?.({index:b,immediate:c,getElement(){return pS(i,u)}});return}const m=pS(i,u);Il(m,{rootEl:g,block:"nearest"})};return pe(()=>r(!0)),Ul(()=>gS(i),{defer:!0,attributes:["data-activedescendant"],callback(){r(!1)}})}},actions:{selectHighlightedItem({context:e,prop:t,event:i,computed:r}){const o=i.value??e.get("highlightedValue"),c=t("collection");if(o==null||!c.has(o))return;const u=r("selection");if(i.shiftKey&&r("multiple")&&i.anchorValue){const d=u.extendSelection(c,i.anchorValue,o);il(u,d,t("onSelect")),e.set("value",Array.from(d))}else{const d=u.select(c,o,i.metaKey);il(u,d,t("onSelect")),e.set("value",Array.from(d))}},selectWithKeyboard({context:e,prop:t,event:i,computed:r}){const o=r("selection"),c=t("collection");if(i.shiftKey&&r("multiple")&&i.anchorValue){const u=o.extendSelection(c,i.anchorValue,i.value);il(o,u,t("onSelect")),e.set("value",Array.from(u));return}if(t("selectOnHighlight")){const u=o.replaceSelection(c,i.value);il(o,u,t("onSelect")),e.set("value",Array.from(u))}},highlightItem({context:e,event:t}){e.set("highlightedValue",t.value)},highlightMatchingItem({context:e,prop:t,event:i,refs:r}){const o=t("collection").search(i.key,{state:r.get("typeahead"),currentValue:e.get("highlightedValue")});o!=null&&e.set("highlightedValue",o)},setHighlightedItem({context:e,event:t}){e.set("highlightedValue",t.value)},clearHighlightedItem({context:e}){e.set("highlightedValue",null)},selectItem({context:e,prop:t,event:i,computed:r}){const o=t("collection"),c=r("selection"),u=c.select(o,i.value);il(c,u,t("onSelect")),e.set("value",Array.from(u))},clearItem({context:e,event:t,computed:i}){const o=i("selection").deselect(t.value);e.set("value",Array.from(o))},setSelectedItems({context:e,event:t}){e.set("value",t.value)},clearSelectedItems({context:e}){e.set("value",[])},syncSelectedItems({context:e,prop:t}){const i=t("collection"),r=e.get("selectedItems"),c=e.get("value").map(u=>r.find(g=>i.getItemValue(g)===u)||i.find(u));e.set("selectedItems",c)},syncHighlightedItem({context:e,prop:t}){const i=t("collection"),r=e.get("highlightedValue"),o=r?i.find(r):null;e.set("highlightedItem",o)},syncHighlightedValue({context:e,prop:t}){const i=t("collection"),r=e.get("highlightedValue");r!=null&&!i.has(r)&&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)}}}});var $D=(e,t)=>{const i=new Set(e);for(const r of t)i.delete(r);return i};function il(e,t,i){const r=$D(t,e);for(const o of r)i?.({value:o})}ce()(["collection","defaultHighlightedValue","defaultValue","dir","disabled","deselectable","disallowSelectAll","getRootNode","highlightedValue","id","ids","loopFocus","onHighlightChange","onSelect","onValueChange","orientation","scrollToIndexFn","selectionMode","selectOnHighlight","typeahead","value"]);ce()(["item","highlightOnHover"]);ce()(["id"]);ce()(["htmlFor"]);const UD=q1.extendWith("empty"),[K1,kt]=at({name:"MenuContext",hookName:"useMenuContext",providerName:"<MenuProvider />",strict:!1}),X1=C.forwardRef((e,t)=>{const i=kt(),r=ne(i.getArrowProps(),e);return V.jsx(re.div,{...r,ref:t})});X1.displayName="MenuArrow";const Q1=C.forwardRef((e,t)=>{const i=kt(),r=ne(i.getArrowTipProps(),e);return V.jsx(re.div,{...r,ref:t})});Q1.displayName="MenuArrowTip";const[km]=at({name:"MenuItemContext",hookName:"useMenuItemContext",providerName:"<MenuItemProvider />"}),[Yd,Z1]=at({name:"MenuItemPropsContext",hookName:"useMenuItemPropsContext",providerName:"<MenuItemPropsProvider />"}),jD=ot(),J1=C.forwardRef((e,t)=>{const[i,r]=jD(e,["checked","closeOnSelect","disabled","onCheckedChange","value","valueText"]),o={...i,type:"checkbox"},c=kt(),u=ne(c.getOptionItemProps(o),r),d=c.getOptionItemState(o);return V.jsx(Yd,{value:o,children:V.jsx(km,{value:d,children:V.jsx(re.div,{...u,ref:t})})})});J1.displayName="MenuCheckboxItem";const eT=C.forwardRef((e,t)=>{const i=kt(),r=Cn(),o=ne(i.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:V.jsx(re.div,{...o,ref:Qi(r.ref,t)})});eT.displayName="MenuContent";const tT=C.forwardRef((e,t)=>{const i=kt(),r=ne(i.getContextTriggerProps(),e);return V.jsx(re.button,{...r,ref:t})});tT.displayName="MenuContextTrigger";const nT=C.forwardRef((e,t)=>{const i=kt(),r=ne(i.getIndicatorProps(),e);return V.jsx(re.div,{...r,ref:t})});nT.displayName="MenuIndicator";const GD=ot(),iT=C.forwardRef((e,t)=>{const[i,r]=GD(e,["closeOnSelect","disabled","value","valueText","onSelect"]),o=kt(),c=ne(o.getItemProps(i),r),u=o.getItemState(i);return C.useEffect(()=>o.addItemListener({id:u.id,onSelect:i.onSelect}),[u.id,i.onSelect]),V.jsx(Yd,{value:i,children:V.jsx(km,{value:u,children:V.jsx(re.div,{...c,ref:t})})})});iT.displayName="MenuItem";const[rT,aT]=at({name:"MenuItemGroupContext",hookName:"useMenuItemGroupContext",providerName:"<MenuItemGroupProvider />"}),WD=ot(),oT=C.forwardRef((e,t)=>{const[i,r]=WD(e,["id"]),o=kt(),u={id:C.useId(),...i},d=ne(o.getItemGroupProps(u),r);return V.jsx(rT,{value:u,children:V.jsx(re.div,{...d,ref:t})})});oT.displayName="MenuItemGroup";const sT=C.forwardRef((e,t)=>{const i=kt(),r=aT(),o=ne(i.getItemGroupLabelProps({htmlFor:r.id}),e);return V.jsx(re.div,{...o,ref:t})});sT.displayName="MenuItemGroupLabel";const lT=C.forwardRef((e,t)=>{const i=kt(),r=Z1(),o=ne(i.getItemIndicatorProps(r),e);return V.jsx(re.div,{...o,ref:t})});lT.displayName="MenuItemIndicator";const cT=C.forwardRef((e,t)=>{const i=kt(),r=Z1(),o=ne(i.getItemTextProps(r),e);return V.jsx(re.div,{...o,ref:t})});cT.displayName="MenuItemText";const uT=C.forwardRef((e,t)=>{const i=kt(),r=ne(i.getPositionerProps(),e);return Cn().unmounted?null:V.jsx(re.div,{...r,ref:t})});uT.displayName="MenuPositioner";const qD=ot(),dT=C.forwardRef((e,t)=>{const[i,r]=qD(e,["closeOnSelect","disabled","value","valueText"]),o=kt(),c=aT(),u={...i,checked:c.value===i.value,type:"radio",onCheckedChange:()=>c.onValueChange?.({value:i.value})},d=ne(o.getOptionItemProps(u),r),g=o.getOptionItemState(u);return V.jsx(Yd,{value:u,children:V.jsx(km,{value:g,children:V.jsx(re.div,{...d,ref:t})})})});dT.displayName="MenuRadioItem";const YD=ot(),fT=C.forwardRef((e,t)=>{const[i,r]=YD(e,["id","onValueChange","value"]),o=kt(),u={id:C.useId(),...i},d=ne(o.getItemGroupProps({id:u.id}),r);return V.jsx(rT,{value:u,children:V.jsx(re.div,{...d,ref:t})})});fT.displayName="MenuRadioItemGroup";const hT=e=>{const t=C.useRef(e),i=C.useRef(!1);C.useEffect(()=>{t.current=e}),C.useEffect(()=>{i.current!==!0&&(i.current=!0,t.current())},[])};var gT=ve("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem"),$t=gT.build(),hd=e=>e.ids?.trigger??`menu:${e.id}:trigger`,pT=e=>e.ids?.contextTrigger??`menu:${e.id}:ctx-trigger`,yl=e=>e.ids?.content??`menu:${e.id}:content`,KD=e=>e.ids?.arrow??`menu:${e.id}:arrow`,mT=e=>e.ids?.positioner??`menu:${e.id}:popper`,XD=(e,t)=>e.ids?.group?.(t)??`menu:${e.id}:group:${t}`,zl=(e,t)=>`${e.id}/${t}`,sa=e=>e?.dataset.value??null,mS=(e,t)=>e.ids?.groupLabel?.(t)??`menu:${e.id}:group-label:${t}`,kr=e=>e.getById(yl(e)),vS=e=>e.getById(mT(e)),Iu=e=>e.getById(hd(e)),QD=(e,t)=>t?e.getById(zl(e,t)):null,Hg=e=>e.getById(pT(e)),Gl=e=>{const i=`[role^="menuitem"][data-ownedby=${CSS.escape(yl(e))}]:not([data-disabled])`;return Ea(kr(e),i)},ZD=e=>Vo(Gl(e)),JD=e=>Td(Gl(e)),Nm=(e,t)=>t?e.id===t||e.dataset.value===t:!1,eM=(e,t)=>{const i=Gl(e),r=i.findIndex(o=>Nm(o,t.value));return cP(i,r,{loop:t.loop??t.loopFocus})},tM=(e,t)=>{const i=Gl(e),r=i.findIndex(o=>Nm(o,t.value));return dP(i,r,{loop:t.loop??t.loopFocus})},nM=(e,t)=>{const i=Gl(e),r=i.find(o=>Nm(o,t.value));return Vr(i,{state:t.typeaheadState,key:t.key,activeId:r?.id??null})},Pu=e=>Et(e)&&(e.dataset.disabled===""||e.hasAttribute("disabled")),iM=e=>!!e?.getAttribute("role")?.startsWith("menuitem")&&!!e?.hasAttribute("aria-controls"),hp="menu:select";function rM(e,t){if(!e)return;const i=rt(e),r=new i.CustomEvent(hp,{detail:{value:t}});e.dispatchEvent(r)}function aM(e,t){const{context:i,send:r,state:o,computed:c,prop:u,scope:d}=e,g=o.hasTag("open"),p=i.get("isSubmenu"),m=c("isTypingAhead"),b=u("composite"),y=i.get("currentPlacement"),x=i.get("anchorPoint"),T=i.get("highlightedValue"),E=Hd({...u("positioning"),placement:x?"bottom":y});function w(O){return{id:zl(d,O.value),disabled:!!O.disabled,highlighted:T===O.value}}function R(O){const k=O.valueText??O.value;return{...O,id:O.value,valueText:k}}function P(O){return{...w(R(O)),checked:!!O.checked}}function I(O){const{closeOnSelect:k,valueText:U,value:H}=O,G=w(O),z=zl(d,H);return t.element({...$t.item.attrs,id:z,role:"menuitem","aria-disabled":tm(G.disabled),"data-disabled":fe(G.disabled),"data-ownedby":yl(d),"data-highlighted":fe(G.highlighted),"data-value":H,"data-valuetext":U,onDragStart(M){M.currentTarget.matches("a[href]")&&M.preventDefault()},onPointerMove(M){if(G.disabled||M.pointerType!=="mouse")return;const W=M.currentTarget;G.highlighted||r({type:"ITEM_POINTERMOVE",id:z,target:W,closeOnSelect:k})},onPointerLeave(M){if(G.disabled||M.pointerType!=="mouse"||!e.event.previous()?.type.includes("POINTER"))return;const Q=M.currentTarget;r({type:"ITEM_POINTERLEAVE",id:z,target:Q,closeOnSelect:k})},onPointerDown(M){if(G.disabled)return;const W=M.currentTarget;r({type:"ITEM_POINTERDOWN",target:W,id:z,closeOnSelect:k})},onClick(M){if(Rx(M)||tp(M)||G.disabled)return;const W=M.currentTarget;r({type:"ITEM_CLICK",target:W,id:z,closeOnSelect:k})}})}return{highlightedValue:T,open:g,setOpen(O){o.hasTag("open")!==O&&r({type:O?"OPEN":"CLOSE"})},setHighlightedValue(O){r({type:"HIGHLIGHTED.SET",value:O})},setParent(O){r({type:"PARENT.SET",value:O,id:O.prop("id")})},setChild(O){r({type:"CHILD.SET",value:O,id:O.prop("id")})},reposition(O={}){r({type:"POSITIONING.SET",options:O})},addItemListener(O){const k=d.getById(O.id);if(!k)return;const U=()=>O.onSelect?.();return k.addEventListener(hp,U),()=>k.removeEventListener(hp,U)},getContextTriggerProps(){return t.element({...$t.contextTrigger.attrs,dir:u("dir"),id:pT(d),"data-state":g?"open":"closed",onPointerDown(O){if(O.pointerType==="mouse")return;const k=pa(O);r({type:"CONTEXT_MENU_START",point:k})},onPointerCancel(O){O.pointerType!=="mouse"&&r({type:"CONTEXT_MENU_CANCEL"})},onPointerMove(O){O.pointerType!=="mouse"&&r({type:"CONTEXT_MENU_CANCEL"})},onPointerUp(O){O.pointerType!=="mouse"&&r({type:"CONTEXT_MENU_CANCEL"})},onContextMenu(O){const k=pa(O);r({type:"CONTEXT_MENU",point:k}),O.preventDefault()},style:{WebkitTouchCallout:"none",WebkitUserSelect:"none",userSelect:"none"}})},getTriggerItemProps(O){const k=O.getTriggerProps();return ne(I({value:k.id}),k)},getTriggerProps(){return t.button({...p?$t.triggerItem.attrs:$t.trigger.attrs,"data-placement":i.get("currentPlacement"),type:"button",dir:u("dir"),id:hd(d),"data-uid":u("id"),"aria-haspopup":b?"menu":"dialog","aria-controls":yl(d),"aria-expanded":g||void 0,"data-state":g?"open":"closed",onPointerMove(O){if(O.pointerType!=="mouse"||Pu(O.currentTarget)||!p)return;const U=pa(O);r({type:"TRIGGER_POINTERMOVE",target:O.currentTarget,point:U})},onPointerLeave(O){if(Pu(O.currentTarget)||O.pointerType!=="mouse"||!p)return;const k=pa(O);r({type:"TRIGGER_POINTERLEAVE",target:O.currentTarget,point:k})},onPointerDown(O){Pu(O.currentTarget)||rE(O)||O.preventDefault()},onClick(O){O.defaultPrevented||Pu(O.currentTarget)||r({type:"TRIGGER_CLICK",target:O.currentTarget})},onBlur(){r({type:"TRIGGER_BLUR"})},onFocus(){r({type:"TRIGGER_FOCUS"})},onKeyDown(O){if(O.defaultPrevented)return;const k={ArrowDown(){r({type:"ARROW_DOWN"})},ArrowUp(){r({type:"ARROW_UP"})},Enter(){r({type:"ARROW_DOWN",src:"enter"})},Space(){r({type:"ARROW_DOWN",src:"space"})}},U=kl(O,{orientation:"vertical",dir:u("dir")}),H=k[U];H&&(O.preventDefault(),H(O))}})},getIndicatorProps(){return t.element({...$t.indicator.attrs,dir:u("dir"),"data-state":g?"open":"closed"})},getPositionerProps(){return t.element({...$t.positioner.attrs,dir:u("dir"),id:mT(d),style:E.floating})},getArrowProps(){return t.element({id:KD(d),...$t.arrow.attrs,dir:u("dir"),style:E.arrow})},getArrowTipProps(){return t.element({...$t.arrowTip.attrs,dir:u("dir"),style:E.arrowTip})},getContentProps(){return t.element({...$t.content.attrs,id:yl(d),"aria-label":u("aria-label"),hidden:!g,"data-state":g?"open":"closed",role:b?"menu":"dialog",tabIndex:0,dir:u("dir"),"aria-activedescendant":c("highlightedId")||void 0,"aria-labelledby":hd(d),"data-placement":y,onPointerEnter(O){O.pointerType==="mouse"&&r({type:"MENU_POINTERENTER"})},onKeyDown(O){if(O.defaultPrevented||!$n(O.currentTarget,nt(O)))return;const k=nt(O);if(!(k?.closest("[role=menu]")===O.currentTarget||k===O.currentTarget))return;if(O.key==="Tab"&&!fE(O)){O.preventDefault();return}const H={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(M){m?r({type:"TYPEAHEAD",key:M.key}):H.Enter?.(M)},Home(){r({type:"HOME"})},End(){r({type:"END"})}},G=kl(O,{dir:u("dir")}),z=H[G];if(z){z(O),O.stopPropagation(),O.preventDefault();return}u("typeahead")&&vA(O)&&(yA(O)||kd(k)||(r({type:"TYPEAHEAD",key:O.key}),O.preventDefault()))}})},getSeparatorProps(){return t.element({...$t.separator.attrs,role:"separator",dir:u("dir"),"aria-orientation":"horizontal"})},getItemState:w,getItemProps:I,getOptionItemState:P,getOptionItemProps(O){const{type:k,disabled:U,closeOnSelect:H}=O,G=R(O),z=P(O);return{...I(G),...t.element({"data-type":k,...$t.item.attrs,dir:u("dir"),"data-value":G.value,role:`menuitem${k}`,"aria-checked":!!z.checked,"data-state":z.checked?"checked":"unchecked",onClick(M){if(U||Rx(M)||tp(M))return;const W=M.currentTarget;r({type:"ITEM_CLICK",target:W,option:G,closeOnSelect:H})}})}},getItemIndicatorProps(O){const k=P(xx(O)),U=k.checked?"checked":"unchecked";return t.element({...$t.itemIndicator.attrs,dir:u("dir"),"data-disabled":fe(k.disabled),"data-highlighted":fe(k.highlighted),"data-state":Hn(O,"checked")?U:void 0,hidden:Hn(O,"checked")?!k.checked:void 0})},getItemTextProps(O){const k=P(xx(O)),U=k.checked?"checked":"unchecked";return t.element({...$t.itemText.attrs,dir:u("dir"),"data-disabled":fe(k.disabled),"data-highlighted":fe(k.highlighted),"data-state":Hn(O,"checked")?U:void 0})},getItemGroupLabelProps(O){return t.element({...$t.itemGroupLabel.attrs,id:mS(d,O.htmlFor),dir:u("dir")})},getItemGroupProps(O){return t.element({id:XD(d,O.id),...$t.itemGroup.attrs,dir:u("dir"),"aria-labelledby":mS(d,O.id),role:"group"})}}}var{not:zn,and:xo,or:oM}=Zn(),sM={props({props:e}){return{closeOnSelect:!0,typeahead:!0,composite:!0,loopFocus:!1,navigate(t){sm(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(i){t("onHighlightChange")?.({highlightedValue:i})}})),lastHighlightedValue:e(()=>({defaultValue:null})),currentPlacement:e(()=>({defaultValue:void 0})),intentPolygon:e(()=>({defaultValue:null})),anchorPoint:e(()=>({defaultValue:null,hash(i){return`x: ${i?.x}, y: ${i?.y}`}})),isSubmenu:e(()=>({defaultValue:!1}))}},refs(){return{parent:null,children:{},typeaheadState:{...Vr.defaultOptions},positioningOverride:{}}},computed:{isRtl:({prop:e})=>e("dir")==="rtl",isTypingAhead:({refs:e})=>e.get("typeaheadState").keysSoFar!=="",highlightedId:({context:e,scope:t,refs:i})=>cM(i.get("children"),e.get("highlightedValue"),t)},watch({track:e,action:t,context:i,prop:r}){e([()=>i.get("isSubmenu")],()=>{t(["setSubmenuPlacement"])}),e([()=>i.hash("anchorPoint")],()=>{i.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:zn("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:oM("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:xo(zn("isTriggerItem"),"isOpenControlled"),actions:["invokeOnClose"]},{guard:zn("isTriggerItem"),target:"closed",actions:["invokeOnClose"]}],CONTEXT_MENU:{actions:["setAnchorPoint","focusMenu"]},ARROW_UP:{actions:["highlightPrevItem","focusMenu"]},ARROW_DOWN:{actions:["highlightNextItem","focusMenu"]},ARROW_LEFT:[{guard:xo("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:zn("isPointerSuspended"),actions:["setHighlightedItem","focusMenu"]},{actions:["setLastHighlightedItem"]}],ITEM_POINTERLEAVE:{guard:xo(zn("isPointerSuspended"),zn("isTriggerItem")),actions:["clearHighlightedItem"]},ITEM_CLICK:[{guard:xo(zn("isTriggerItemHighlighted"),zn("isHighlightedItemEditable"),"closeOnSelect","isOpenControlled"),actions:["invokeOnSelect","setOptionState","closeRootMenu","invokeOnClose"]},{guard:xo(zn("isTriggerItemHighlighted"),zn("isHighlightedItemEditable"),"closeOnSelect"),target:"closed",actions:["invokeOnSelect","setOptionState","closeRootMenu","invokeOnClose"]},{guard:xo(zn("isTriggerItemHighlighted"),zn("isHighlightedItemEditable")),actions:["invokeOnSelect","setOptionState"]},{actions:["setHighlightedItem"]}],TRIGGER_POINTERMOVE:{guard:"isTriggerItem",actions:["setIntentPolygon"]},TRIGGER_POINTERLEAVE:{target:"closing"},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})=>iM(e.target),isTriggerItemHighlighted:({event:e,scope:t,computed:i})=>!!(e.target??t.getById(i("highlightedId")))?.hasAttribute("aria-controls"),isSubmenu:({context:e})=>e.get("isSubmenu"),isPointerSuspended:({context:e})=>e.get("suspendPointer"),isHighlightedItemEditable:({scope:e,computed:t})=>kd(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"})},100);return()=>clearTimeout(t)},waitForCloseDelay({send:e}){const t=setTimeout(()=>{e({type:"DELAY.CLOSE"})},300);return()=>clearTimeout(t)},waitForLongPress({send:e}){const t=setTimeout(()=>{e({type:"LONG_PRESS.OPEN"})},700);return()=>clearTimeout(t)},trackPositioning({context:e,prop:t,scope:i,refs:r}){if(Hg(i))return;const o={...t("positioning"),...r.get("positioningOverride")};e.set("currentPlacement",o.placement);const c=()=>vS(i);return Sn(Iu(i),c,{...o,defer:!0,onComplete(u){e.set("currentPlacement",u.placement)}})},trackInteractOutside({refs:e,scope:t,prop:i,context:r,send:o}){const c=()=>kr(t);let u=!0;return Na(c,{type:"menu",defer:!0,exclude:[Iu(t)],onInteractOutside:i("onInteractOutside"),onRequestDismiss:i("onRequestDismiss"),onFocusOutside(d){i("onFocusOutside")?.(d);const g=nt(d.detail.originalEvent);if($n(Hg(t),g)){d.preventDefault();return}},onEscapeKeyDown(d){i("onEscapeKeyDown")?.(d),r.get("isSubmenu")&&d.preventDefault(),bS({parent:e.get("parent")})},onPointerDownOutside(d){i("onPointerDownOutside")?.(d);const g=nt(d.detail.originalEvent);if($n(Hg(t),g)&&d.detail.contextmenu){d.preventDefault();return}u=!d.detail.focusable},onDismiss(){o({type:"CLOSE",src:"interact-outside",restoreFocus:u})}})},trackPointerMove({context:e,scope:t,send:i,refs:r,flush:o}){const c=r.get("parent");o(()=>{c.context.set("suspendPointer",!0)});const u=t.getDoc();return Be(u,"pointermove",d=>{lM(e.get("intentPolygon"),{x:d.clientX,y:d.clientY})||(i({type:"POINTER_MOVED_AWAY_FROM_SUBMENU"}),c.context.set("suspendPointer",!1))})},scrollToHighlightedItem({event:e,scope:t,computed:i}){const r=()=>{if(e.current().type.startsWith("ITEM_POINTER"))return;const c=t.getById(i("highlightedId")),u=kr(t);Il(c,{rootEl:u,block:"nearest"})};return pe(()=>r()),Ul(()=>kr(t),{defer:!0,attributes:["aria-activedescendant"],callback:r})}},actions:{setAnchorPoint({context:e,event:t}){e.set("anchorPoint",i=>Gt(i,t.point)?i:t.point)},setSubmenuPlacement({context:e,computed:t,refs:i}){if(!e.get("isSubmenu"))return;const r=t("isRtl")?"left-start":"right-start";i.set("positioningOverride",{placement:r,gutter:0})},reposition({context:e,scope:t,prop:i,event:r,refs:o}){const c=()=>vS(t),u=e.get("anchorPoint"),d=u?()=>({width:0,height:0,...u}):void 0,g={...i("positioning"),...o.get("positioningOverride")};Sn(Iu(t),c,{...g,defer:!0,getAnchorRect:d,...r.options??{},listeners:!1,onComplete(p){e.set("currentPlacement",p.placement)}})},setOptionState({event:e}){if(!e.option)return;const{checked:t,onCheckedChange:i,type:r}=e.option;r==="radio"?i?.(!0):r==="checkbox"&&i?.(!t)},clickHighlightedItem({scope:e,computed:t,prop:i,context:r}){const o=e.getById(t("highlightedId"));if(!o||o.dataset.disabled)return;const c=r.get("highlightedValue");QC(o)?i("navigate")?.({value:c,node:o,href:o.href}):queueMicrotask(()=>o.click())},setIntentPolygon({context:e,scope:t,event:i}){const r=kr(t),o=e.get("currentPlacement");if(!r||!o)return;const c=r.getBoundingClientRect(),u=ZV(c,o);if(!u)return;const g=q_(o)==="right"?-5:5;e.set("intentPolygon",[{...i.point,x:i.point.x+g},...u])},clearIntentPolygon({context:e}){e.set("intentPolygon",null)},clearAnchorPoint({context:e}){e.set("anchorPoint",null)},resumePointer({refs:e,flush:t}){const i=e.get("parent");i&&t(()=>{i.context.set("suspendPointer",!1)})},setHighlightedItem({context:e,event:t}){const i=t.value||sa(t.target);e.set("highlightedValue",i)},clearHighlightedItem({context:e}){e.set("highlightedValue",null)},focusMenu({scope:e}){pe(()=>{const t=kr(e);Nl({root:t,enabled:!$n(t,e.getActiveElement()),filter(r){return!r.role?.startsWith("menuitem")}})?.focus({preventScroll:!0})})},highlightFirstItem({context:e,scope:t}){(kr(t)?queueMicrotask:pe)(()=>{const r=ZD(t);r&&e.set("highlightedValue",sa(r))})},highlightLastItem({context:e,scope:t}){(kr(t)?queueMicrotask:pe)(()=>{const r=JD(t);r&&e.set("highlightedValue",sa(r))})},highlightNextItem({context:e,scope:t,event:i,prop:r}){const o=eM(t,{loop:i.loop,value:e.get("highlightedValue"),loopFocus:r("loopFocus")});e.set("highlightedValue",sa(o))},highlightPrevItem({context:e,scope:t,event:i,prop:r}){const o=tM(t,{loop:i.loop,value:e.get("highlightedValue"),loopFocus:r("loopFocus")});e.set("highlightedValue",sa(o))},invokeOnSelect({context:e,prop:t,scope:i}){const r=e.get("highlightedValue");if(r==null)return;const o=QD(i,r);rM(o,r),t("onSelect")?.({value:r})},focusTrigger({scope:e,context:t,event:i}){t.get("isSubmenu")||t.get("anchorPoint")||i.restoreFocus===!1||queueMicrotask(()=>Iu(e)?.focus({preventScroll:!0}))},highlightMatchedItem({scope:e,context:t,event:i,refs:r}){const o=nM(e,{key:i.key,value:t.get("highlightedValue"),typeaheadState:r.get("typeaheadState")});o&&t.set("highlightedValue",sa(o))},setParentMenu({refs:e,event:t,context:i}){e.set("parent",t.value),i.set("isSubmenu",!0)},setChildMenu({refs:e,event:t}){const i=e.get("children");i[t.id]=t.value,e.set("children",i)},closeRootMenu({refs:e}){bS({parent:e.get("parent")})},openSubmenu({refs:e,scope:t,computed:i}){const o=t.getById(i("highlightedId"))?.getAttribute("data-uid"),c=e.get("children");(o?c[o]:null)?.send({type:"OPEN_AUTOFOCUS"})},focusParentMenu({refs:e}){e.get("parent")?.send({type:"FOCUS_MENU"})},setLastHighlightedItem({context:e,event:t}){e.set("lastHighlightedValue",sa(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:i}){i({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:t})}}}};function bS(e){let t=e.parent;for(;t&&t.context.get("isSubmenu");)t=t.refs.get("parent");t?.send({type:"CLOSE"})}function lM(e,t){return e?JV(e,t):!1}function cM(e,t,i){const r=Object.keys(e).length>0;if(!t)return null;if(!r)return zl(i,t);for(const o in e){const c=e[o],u=hd(c.scope);if(u===t)return u}return zl(i,t)}ce()(["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"]);ce()(["closeOnSelect","disabled","value","valueText"]);ce()(["htmlFor"]);ce()(["id"]);ce()(["checked","closeOnSelect","disabled","onCheckedChange","type","value","valueText"]);const uM=e=>{const t=C.useId(),{getRootNode:i}=pi(),{dir:r}=Zi(),o={id:t,dir:r,getRootNode:i,...e},c=vi(sM,o);return{api:aM(c,Ji),service:c}},[vT,bT]=at({name:"MenuMachineContext",hookName:"useMenuMachineContext",providerName:"<MenuMachineProvider />",strict:!1}),[yT,dM]=at({name:"MenuMachineContext",hookName:"useMenuMachineContext",providerName:"<MenuMachineProvider />",strict:!1}),fM=ot(),hM=e=>{const[t,i]=mi(e),[r,o]=fM(i,["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","onSelect","open","positioning","typeahead"]),c=kt(),u=bT(),{api:d,service:g}=uM(r),p=jn(ne({present:d.open},t));hT(()=>{u&&c&&(c.setChild(g),d.setParent(u))});const m=C.useCallback(()=>c?.getTriggerItemProps(d),[d,c]);return V.jsx(yT,{value:m,children:V.jsx(vT,{value:g,children:V.jsx(K1,{value:d,children:V.jsx(Jn,{value:p,...o})})})})},gM=e=>{const t=kt(),i=bT(),[r,{value:o,children:c}]=mi(e),{api:u,service:d}=o,g=jn(ne({present:u.open},r));hT(()=>{i&&t&&(t.setChild(d),u.setParent(i))});const p=C.useCallback(()=>t?.getTriggerItemProps(u),[u,t]);return V.jsx(yT,{value:p,children:V.jsx(vT,{value:d,children:V.jsx(K1,{value:u,children:V.jsx(Jn,{value:g,children:c})})})})},xT=C.forwardRef((e,t)=>{const i=kt(),r=ne(i.getSeparatorProps(),e);return V.jsx(re.hr,{...r,ref:t})});xT.displayName="MenuSeparator";const ST=C.forwardRef((e,t)=>{const i=kt(),r=Cn(),o=ne({...i.getTriggerProps(),"aria-controls":r.unmounted?void 0:i.getTriggerProps()["aria-controls"]},e);return V.jsx(re.button,{...o,ref:t})});ST.displayName="MenuTrigger";const CT=C.forwardRef((e,t)=>{const i=dM(),r=ne(i?.()??{},e);return V.jsx(Yd,{value:{value:r["data-value"]},children:V.jsx(re.div,{...r,ref:t})})});CT.displayName="MenuTriggerItem";let Fg=new Map,gp=!1;try{gp=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let gd=!1;try{gd=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const ET={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class pM{format(t){let i="";if(!gp&&this.options.signDisplay!=null?i=vM(this.numberFormatter,this.options.signDisplay,t):i=this.numberFormatter.format(t),this.options.style==="unit"&&!gd){var r;let{unit:o,unitDisplay:c="short",locale:u}=this.resolvedOptions();if(!o)return i;let d=(r=ET[o])===null||r===void 0?void 0:r[c];i+=d[u]||d.default}return i}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,i){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,i);if(i<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(i)}`}formatRangeToParts(t,i){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,i);if(i<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(i);return[...r.map(c=>({...c,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(c=>({...c,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!gp&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!gd&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,i={}){this.numberFormatter=mM(t,i),this.options=i}}function mM(e,t={}){let{numberingSystem:i}=t;if(i&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${i}`),t.style==="unit"&&!gd){var r;let{unit:u,unitDisplay:d="short"}=t;if(!u)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=ET[u])===null||r===void 0)&&r[d]))throw new Error(`Unsupported unit ${u} with unitDisplay = ${d}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((u,d)=>u[0]<d[0]?-1:1).join():"");if(Fg.has(o))return Fg.get(o);let c=new Intl.NumberFormat(e,t);return Fg.set(o,c),c}function vM(e,t,i){if(t==="auto")return e.format(i);if(t==="never")return e.format(Math.abs(i));{let r=!1;if(t==="always"?r=i>0||Object.is(i,0):t==="exceptZero"&&(Object.is(i,-0)||Object.is(i,0)?i=Math.abs(i):r=i>0),r){let o=e.format(-i),c=e.format(i),u=o.replace(c,"").replace(/\u200e|\u061C/,"");return[...u].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(c,"!!!").replace(u,"+").replace("!!!",c)}else return e.format(i)}}const bM=new RegExp("^.*\\(.*\\).*$"),yM=["latn","arab","hanidec","deva","beng","fullwide"];class TT{parse(t){return $g(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,i,r){return $g(this.locale,this.options,t).isValidPartialNumber(t,i,r)}getNumberingSystem(t){return $g(this.locale,this.options,t).options.numberingSystem}constructor(t,i={}){this.locale=t,this.options=i}}const yS=new Map;function $g(e,t,i){let r=xS(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(i)){for(let o of yM)if(o!==r.options.numberingSystem){let c=xS(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(c.isValidPartialNumber(i))return c}}return r}function xS(e,t){let i=e+(t?Object.entries(t).sort((o,c)=>o[0]<c[0]?-1:1).join():""),r=yS.get(i);return r||(r=new xM(e,t),yS.set(i,r)),r}class xM{parse(t){let i=this.sanitize(t);if(this.symbols.group&&(i=So(i,this.symbols.group,"")),this.symbols.decimal&&(i=i.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(i=i.replace(this.symbols.minusSign,"-")),i=i.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let u=i.indexOf("-");i=i.replace("-",""),i=i.replace("+","");let d=i.indexOf(".");d===-1&&(d=i.length),i=i.replace(".",""),d-2===0?i=`0.${i}`:d-2===-1?i=`0.0${i}`:d-2===-2?i="0.00":i=`${i.slice(0,d-2)}.${i.slice(d-2)}`,u>-1&&(i=`-${i}`)}let r=i?+i:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var o,c;let u={...this.options,style:"decimal",minimumFractionDigits:Math.min(((o=this.options.minimumFractionDigits)!==null&&o!==void 0?o:0)+2,20),maximumFractionDigits:Math.min(((c=this.options.maximumFractionDigits)!==null&&c!==void 0?c:0)+2,20)};return new TT(this.locale,u).parse(new pM(this.locale,u).format(r))}return this.options.currencySign==="accounting"&&bM.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=So(t,".",this.symbols.group))),this.symbols.group==="’"&&t.includes("'")&&(t=So(t,"'",this.symbols.group)),this.options.locale==="fr-FR"&&this.symbols.group&&(t=So(t," ",this.symbols.group),t=So(t,/\u00A0/g,this.symbols.group)),t}isValidPartialNumber(t,i=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&i<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=So(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,i={}){this.locale=t,i.roundingIncrement!==1&&i.roundingIncrement!=null&&(i.maximumFractionDigits==null&&i.minimumFractionDigits==null?(i.maximumFractionDigits=0,i.minimumFractionDigits=0):i.maximumFractionDigits==null?i.maximumFractionDigits=i.minimumFractionDigits:i.minimumFractionDigits==null&&(i.minimumFractionDigits=i.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,i),this.options=this.formatter.resolvedOptions(),this.symbols=CM(t,this.formatter,this.options,i);var r,o;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)>18||((o=this.options.maximumFractionDigits)!==null&&o!==void 0?o:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const SS=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),SM=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function CM(e,t,i,r){var o,c,u,d;let g=new Intl.NumberFormat(e,{...i,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),p=g.formatToParts(-10000.111),m=g.formatToParts(10000.111),b=SM.map(M=>g.formatToParts(M));var y;let x=(y=(o=p.find(M=>M.type==="minusSign"))===null||o===void 0?void 0:o.value)!==null&&y!==void 0?y:"-",T=(c=m.find(M=>M.type==="plusSign"))===null||c===void 0?void 0:c.value;!T&&(r?.signDisplay==="exceptZero"||r?.signDisplay==="always")&&(T="+");let w=(u=new Intl.NumberFormat(e,{...i,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(M=>M.type==="decimal"))===null||u===void 0?void 0:u.value,R=(d=p.find(M=>M.type==="group"))===null||d===void 0?void 0:d.value,P=p.filter(M=>!SS.has(M.type)).map(M=>CS(M.value)),I=b.flatMap(M=>M.filter(W=>!SS.has(W.type)).map(W=>CS(W.value))),O=[...new Set([...P,...I])].sort((M,W)=>W.length-M.length),k=O.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${O.join("|")}|[\\p{White_Space}]`,"gu"),U=[...new Intl.NumberFormat(i.locale,{useGrouping:!1}).format(9876543210)].reverse(),H=new Map(U.map((M,W)=>[M,W])),G=new RegExp(`[${U.join("")}]`,"g");return{minusSign:x,plusSign:T,decimal:w,group:R,literals:k,numeral:G,index:M=>String(H.get(M))}}function So(e,t,i){return e.replaceAll?e.replaceAll(t,i):e.split(t).join(i)}function CS(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var wT=ve("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber");wT.build();var EM=e=>e.ids?.input??`number-input:${e.id}:input`,TM=e=>e.ids?.incrementTrigger??`number-input:${e.id}:inc`,wM=e=>e.ids?.decrementTrigger??`number-input:${e.id}:dec`,OT=e=>`number-input:${e.id}:cursor`,Au=e=>e.getById(EM(e)),OM=e=>e.getById(TM(e)),RM=e=>e.getById(wM(e)),RT=e=>e.getDoc().getElementById(OT(e)),kM=(e,t)=>{let i=null;return t==="increment"&&(i=OM(e)),t==="decrement"&&(i=RM(e)),i},NM=(e,t)=>{if(!$l())return AM(e,t),()=>{RT(e)?.remove()}},IM=e=>{const t=e.getDoc(),i=t.documentElement,r=t.body;return r.style.pointerEvents="none",i.style.userSelect="none",i.style.cursor="ew-resize",()=>{r.style.pointerEvents="",i.style.userSelect="",i.style.cursor="",i.style.length||i.removeAttribute("style"),r.style.length||r.removeAttribute("style")}},PM=(e,t)=>{const{point:i,isRtl:r,event:o}=t,c=e.getWin(),u=Ng(o.movementX,c.devicePixelRatio),d=Ng(o.movementY,c.devicePixelRatio);let g=u>0?"increment":u<0?"decrement":null;r&&g==="increment"&&(g="decrement"),r&&g==="decrement"&&(g="increment");const p={x:i.x+u,y:i.y+d},m=c.innerWidth,b=Ng(7.5,c.devicePixelRatio);return p.x=RP(p.x+b,m)-b,{hint:g,point:p}},AM=(e,t)=>{const i=e.getDoc(),r=i.createElement("div");r.className="scrubber--cursor",r.id=OT(e),Object.assign(r.style,{width:"15px",height:"15px",position:"fixed",pointerEvents:"none",left:"0px",top:"0px",zIndex:UP,transform:t?`translate3d(${t.x}px, ${t.y}px, 0px)`:void 0,willChange:"transform"}),r.innerHTML=`
10
+ <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);">
11
+ <g transform="translate(2 3)">
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" style="stroke-width: 2px; stroke: white;"></path>
13
+ <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>
14
+ </g>
15
+ </svg>`,i.body.appendChild(r)};function _M(e,t,i){if(!(!e||!i.isActiveElement(e))){if(!t){const r=e.value.length;e.setSelectionRange(r,r);return}try{const r=e.value,{start:o,end:c,value:u}=t;if(r===u){e.setSelectionRange(o,c);return}const d=ES(u,r,o),g=o===c?d:ES(u,r,c),p=Math.max(0,Math.min(d,r.length)),m=Math.max(p,Math.min(g,r.length));e.setSelectionRange(p,m)}catch{const r=e.value.length;e.setSelectionRange(r,r)}}}function ES(e,t,i){const r=e.slice(0,i),o=e.slice(i);let c=0;const u=Math.min(r.length,t.length);for(let p=0;p<u&&r[p]===t[p];p++)c=p+1;let d=0;const g=Math.min(o.length,t.length-c);for(let p=0;p<g;p++){const m=o.length-1-p,b=t.length-1-p;if(o[m]===t[b])d=p+1;else break}if(c>=r.length)return c;if(d>=o.length)return t.length-d;if(c>0)return c;if(d>0)return t.length-d;if(e.length>0){const p=i/e.length;return Math.round(p*t.length)}return t.length}var VM=(e,t={})=>new Intl.NumberFormat(e,t),zM=(e,t={})=>new TT(e,t),Ug=(e,t)=>{const{prop:i,computed:r}=t;return i("formatOptions")?e===""?Number.NaN:r("parser").parse(e):parseFloat(e)},la=(e,t)=>{const{prop:i,computed:r}=t;return Number.isNaN(e)?"":i("formatOptions")?r("formatter").format(e):e.toString()},DM=(e,t)=>{let i=e!==void 0&&!Number.isNaN(e)?e:1;return t?.style==="percent"&&(e===void 0||Number.isNaN(e))&&(i=.01),i},{choose:MM,guards:LM,createMachine:BM}=Vd(),{not:TS,and:wS}=LM;BM({props({props:e}){const t=DM(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:i}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(r){const o=i(),c=Ug(r,{computed:o,prop:e});e("onValueChange")?.({value:r,valueAsNumber:c})}})),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:i})=>Ug(e.get("value"),{computed:t,prop:i}),formattedValue:({computed:e,prop:t})=>la(e("valueAsNumber"),{computed:e,prop:t}),isAtMin:({computed:e,prop:t})=>NP(e("valueAsNumber"),t("min")),isAtMax:({computed:e,prop:t})=>kP(e("valueAsNumber"),t("max")),isOutOfRange:({computed:e,prop:t})=>!IP(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:Ix(({prop:e})=>[e("locale"),e("formatOptions")],([e,t])=>VM(e,t)),parser:Ix(({prop:e})=>[e("locale"),e("formatOptions")],([e,t])=>zM(e,t))},watch({track:e,action:t,context:i,computed:r,prop:o}){e([()=>i.get("value"),()=>o("locale")],()=>{t(["syncInputElement"])}),e([()=>r("isOutOfRange")],()=>{t(["invokeOnInvalid"])}),e([()=>i.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:wS("clampValueOnBlur",TS("isInRange")),target:"idle",actions:["setClampedValue","clearHint","invokeOnBlur"]},{guard:TS("isInRange"),target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnInvalid"]},{target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur"]}],"INPUT.ENTER":{actions:["setFormattedValue","clearHint","invokeOnBlur"]}}},"before:spin":{tags:["focus"],effects:["trackButtonDisabled","waitForChangeDelay"],entry:MM([{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}]),on:{CHANGE_DELAY:{target:"spinning",guard:wS("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 i=Au(t);return Fo(i,{onFieldsetDisabledChange(r){e.set("fieldsetDisabled",r)},onFormReset(){e.set("value",e.initial("value"))}})},setupVirtualCursor({context:e,scope:t}){const i=e.get("scrubberCursorPoint");return NM(t,i)},preventTextSelection({scope:e}){return IM(e)},trackButtonDisabled({context:e,scope:t,send:i}){const r=e.get("hint"),o=kM(t,r);return Ul(o,{attributes:["disabled"],callback(){i({type:"TRIGGER.PRESS_UP",src:"attr"})}})},attachWheelListener({scope:e,send:t,prop:i}){const r=Au(e);if(!r||!e.isActiveElement(r)||!i("allowMouseWheel"))return;function o(c){c.preventDefault();const u=Math.sign(c.deltaY)*-1;u===1?t({type:"VALUE.INCREMENT"}):u===-1&&t({type:"VALUE.DECREMENT"})}return Be(r,"wheel",o,{passive:!1})},activatePointerLock({scope:e}){if(!$l())return FA(e.getDoc())},trackMousemove({scope:e,send:t,context:i,computed:r}){const o=e.getDoc();function c(d){const g=i.get("scrubberCursorPoint"),p=r("isRtl"),m=PM(e,{point:g,isRtl:p,event:d});m.hint&&t({type:"SCRUBBER.POINTER_MOVE",hint:m.hint,point:m.point})}function u(){t({type:"SCRUBBER.POINTER_UP"})}return Ol(Be(o,"mousemove",c,!1),Be(o,"mouseup",u,!1))}},actions:{focusInput({scope:e,prop:t}){if(!t("focusInputOnChange"))return;const i=Au(e);e.isActiveElement(i)||pe(()=>i?.focus({preventScroll:!0}))},increment({context:e,event:t,prop:i,computed:r}){let o=VP(r("valueAsNumber"),t.step??i("step"));i("allowOverflow")||(o=tn(o,i("min"),i("max"))),e.set("value",la(o,{computed:r,prop:i}))},decrement({context:e,event:t,prop:i,computed:r}){let o=zP(r("valueAsNumber"),t.step??i("step"));i("allowOverflow")||(o=tn(o,i("min"),i("max"))),e.set("value",la(o,{computed:r,prop:i}))},setClampedValue({context:e,prop:t,computed:i}){const r=tn(i("valueAsNumber"),t("min"),t("max"));e.set("value",la(r,{computed:i,prop:t}))},setRawValue({context:e,event:t,prop:i,computed:r}){let o=Ug(t.value,{computed:r,prop:i});i("allowOverflow")||(o=tn(o,i("min"),i("max"))),e.set("value",la(o,{computed:r,prop:i}))},setValue({context:e,event:t}){const i=t.target?.value??t.value;e.set("value",i)},clearValue({context:e}){e.set("value","")},incrementToMax({context:e,prop:t,computed:i}){const r=la(t("max"),{computed:i,prop:t});e.set("value",r)},decrementToMin({context:e,prop:t,computed:i}){const r=la(t("min"),{computed:i,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:i}){if(i.type==="INPUT.CHANGE")return;const r=e("valueAsNumber")>t("max")?"rangeOverflow":"rangeUnderflow";t("onValueInvalid")?.({reason:r,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},syncInputElement({context:e,event:t,computed:i,scope:r}){const o=t.type.endsWith("CHANGE")?e.get("value"):i("formattedValue"),c=Au(r),u=t.selection;pe(()=>{Ca(c,o),_M(c,u,r)})},setFormattedValue({context:e,computed:t}){e.set("value",t("formattedValue"))},setCursorPoint({context:e,event:t}){e.set("scrubberCursorPoint",t.point)},clearCursorPoint({context:e}){e.set("scrubberCursorPoint",null)},setVirtualCursorPosition({context:e,scope:t}){const i=RT(t),r=e.get("scrubberCursorPoint");!i||!r||(i.style.transform=`translate3d(${r.x}px, ${r.y}px, 0px)`)}}}});ce()(["allowMouseWheel","allowOverflow","clampValueOnBlur","dir","disabled","focusInputOnChange","form","formatOptions","getRootNode","id","ids","inputMode","invalid","locale","max","min","name","onFocusChange","onValueChange","onValueInvalid","pattern","required","readOnly","spinOnPress","step","translations","value","defaultValue"]);var kT=ve("pinInput").parts("root","label","input","control");kT.build();ce()(["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[NT,yi]=at({name:"PopoverContext",hookName:"usePopoverContext",providerName:"<PopoverProvider />"}),IT=C.forwardRef((e,t)=>{const i=yi(),r=ne(i.getAnchorProps(),e);return V.jsx(re.div,{...r,ref:t})});IT.displayName="PopoverAnchor";const PT=C.forwardRef((e,t)=>{const i=yi(),r=ne(i.getArrowProps(),e);return V.jsx(re.div,{...r,ref:t})});PT.displayName="PopoverArrow";const AT=C.forwardRef((e,t)=>{const i=yi(),r=ne(i.getArrowTipProps(),e);return V.jsx(re.div,{...r,ref:t})});AT.displayName="PopoverArrowTip";const _T=C.forwardRef((e,t)=>{const i=yi(),r=ne(i.getCloseTriggerProps(),e);return V.jsx(re.button,{...r,ref:t})});_T.displayName="PopoverCloseTrigger";const VT=C.forwardRef((e,t)=>{const i=yi(),r=Cn(),o=ne(i.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:V.jsx(re.div,{...o,ref:Qi(r.ref,t)})});VT.displayName="PopoverContent";const zT=C.forwardRef((e,t)=>{const i=yi(),r=ne(i.getDescriptionProps(),e);return V.jsx(re.div,{...r,ref:t})});zT.displayName="PopoverDescription";const DT=C.forwardRef((e,t)=>{const i=yi(),r=ne(i.getIndicatorProps(),e);return V.jsx(re.div,{...r,ref:t})});DT.displayName="PopoverIndicator";const MT=C.forwardRef((e,t)=>{const i=yi(),r=Cn(),o=ne(i.getPositionerProps(),e);return r.unmounted?null:V.jsx(re.div,{...o,ref:t})});MT.displayName="PopoverPositioner";var LT=ve("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger"),si=LT.build(),BT=e=>e.ids?.anchor??`popover:${e.id}:anchor`,HT=e=>e.ids?.trigger??`popover:${e.id}:trigger`,pp=e=>e.ids?.content??`popover:${e.id}:content`,FT=e=>e.ids?.positioner??`popover:${e.id}:popper`,HM=e=>e.ids?.arrow??`popover:${e.id}:arrow`,mp=e=>e.ids?.title??`popover:${e.id}:title`,vp=e=>e.ids?.description??`popover:${e.id}:desc`,FM=e=>e.ids?.closeTrigger??`popover:${e.id}:close`,OS=e=>e.getById(BT(e)),Co=e=>e.getById(HT(e)),Eo=e=>e.getById(pp(e)),RS=e=>e.getById(FT(e)),$M=e=>e.getById(mp(e)),UM=e=>e.getById(vp(e));function jM(e,t){const{state:i,context:r,send:o,computed:c,prop:u,scope:d}=e,g=i.matches("open"),p=r.get("currentPlacement"),m=c("currentPortalled"),b=r.get("renderedElements"),y=Hd({...u("positioning"),placement:p});return{portalled:m,open:g,setOpen(x){i.matches("open")!==x&&o({type:x?"OPEN":"CLOSE"})},reposition(x={}){o({type:"POSITIONING.SET",options:x})},getArrowProps(){return t.element({id:HM(d),...si.arrow.attrs,dir:u("dir"),style:y.arrow})},getArrowTipProps(){return t.element({...si.arrowTip.attrs,dir:u("dir"),style:y.arrowTip})},getAnchorProps(){return t.element({...si.anchor.attrs,dir:u("dir"),id:BT(d)})},getTriggerProps(){return t.button({...si.trigger.attrs,dir:u("dir"),type:"button","data-placement":p,id:HT(d),"aria-haspopup":"dialog","aria-expanded":g,"data-state":g?"open":"closed","aria-controls":pp(d),onPointerDown(x){iE(x)&&$l()&&x.currentTarget.focus()},onClick(x){x.defaultPrevented||o({type:"TOGGLE"})},onBlur(x){o({type:"TRIGGER_BLUR",target:x.relatedTarget})}})},getIndicatorProps(){return t.element({...si.indicator.attrs,dir:u("dir"),"data-state":g?"open":"closed"})},getPositionerProps(){return t.element({id:FT(d),...si.positioner.attrs,dir:u("dir"),style:y.floating})},getContentProps(){return t.element({...si.content.attrs,dir:u("dir"),id:pp(d),tabIndex:-1,role:"dialog","aria-modal":tm(u("modal")),hidden:!g,"data-state":g?"open":"closed","data-expanded":fe(g),"aria-labelledby":b.title?mp(d):void 0,"aria-describedby":b.description?vp(d):void 0,"data-placement":p})},getTitleProps(){return t.element({...si.title.attrs,id:mp(d),dir:u("dir")})},getDescriptionProps(){return t.element({...si.description.attrs,id:vp(d),dir:u("dir")})},getCloseTriggerProps(){return t.button({...si.closeTrigger.attrs,dir:u("dir"),id:FM(d),type:"button","aria-label":"close",onClick(x){x.defaultPrevented||(x.stopPropagation(),o({type:"CLOSE"}))}})}}}var GM={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:i}){e([()=>t("open")],()=>{i(["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:i}){e.set("currentPlacement",t("positioning").placement);const r=OS(i)??Co(i);return Sn(r,()=>RS(i),{...t("positioning"),defer:!0,onComplete(c){e.set("currentPlacement",c.placement)}})},trackDismissableElement({send:e,prop:t,scope:i}){const r=()=>Eo(i);let o=!0;return Na(r,{type:"popover",pointerBlocking:t("modal"),exclude:Co(i),defer:!0,onEscapeKeyDown(c){t("onEscapeKeyDown")?.(c),!t("closeOnEscape")&&c.preventDefault()},onInteractOutside(c){t("onInteractOutside")?.(c),!c.defaultPrevented&&(o=!(c.detail.focusable||c.detail.contextmenu),t("closeOnInteractOutside")||c.preventDefault())},onPointerDownOutside:t("onPointerDownOutside"),onFocusOutside:t("onFocusOutside"),persistentElements:t("persistentElements"),onRequestDismiss:t("onRequestDismiss"),onDismiss(){e({type:"CLOSE",src:"interact-outside",restoreFocus:o})}})},proxyTabFocus({prop:e,scope:t}){return e("modal")||!e("portalled")?void 0:WA(()=>Eo(t),{triggerElement:Co(t),defer:!0,getShadowRoot:!0,onFocus(r){r.focus({preventScroll:!0})}})},hideContentBelow({prop:e,scope:t}){return e("modal")?KE(()=>[Eo(t),Co(t)],{defer:!0}):void 0},preventScroll({prop:e,scope:t}){if(e("modal"))return QE(t.getDoc())},trapFocus({prop:e,scope:t}){return e("modal")?XE(()=>Eo(t),{initialFocus:()=>Nl({root:Eo(t),getInitialEl:e("initialFocusEl"),enabled:e("autoFocus")}),getShadowRoot:!0}):void 0}},actions:{reposition({event:e,prop:t,scope:i,context:r}){const o=OS(i)??Co(i);Sn(o,()=>RS(i),{...t("positioning"),...e.options,defer:!0,listeners:!1,onComplete(u){r.set("currentPlacement",u.placement)}})},checkRenderedElements({context:e,scope:t}){pe(()=>{Object.assign(e.get("renderedElements"),{title:!!$M(t),description:!!UM(t)})})},setInitialFocus({prop:e,scope:t}){e("modal")||pe(()=>{Nl({root:Eo(t),getInitialEl:e("initialFocusEl"),enabled:e("autoFocus")})?.focus({preventScroll:!0})})},setFinalFocus({event:e,scope:t}){const i=e.restoreFocus??e.previousEvent?.restoreFocus;i!=null&&!i||pe(()=>{Co(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:i}){t({type:i("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}};ce()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","portalled","positioning"]);const WM=e=>{const t=C.useId(),{getRootNode:i}=pi(),{dir:r}=Zi(),o={id:t,dir:r,getRootNode:i,...e},c=vi(GM,o);return jM(c,Ji)},qM=e=>{const[t,{children:i,...r}]=mi(e),o=WM(r),c=jn(ne({present:o.open},t));return V.jsx(NT,{value:o,children:V.jsx(Jn,{value:c,children:i})})},YM=e=>{const[t,{value:i,children:r}]=mi(e),o=jn(ne({present:i.open},t));return V.jsx(NT,{value:i,children:V.jsx(Jn,{value:o,children:r})})},$T=C.forwardRef((e,t)=>{const i=yi(),r=ne(i.getTitleProps(),e);return V.jsx(re.div,{...r,ref:t})});$T.displayName="PopoverTitle";const UT=C.forwardRef((e,t)=>{const i=yi(),r=Cn(),o=ne({...i.getTriggerProps(),"aria-controls":r.unmounted?void 0:i.getTriggerProps()["aria-controls"]},e);return V.jsx(re.button,{...o,ref:t})});UT.displayName="PopoverTrigger";const c8=e=>{const{children:t,disabled:i}=e,[r,o]=C.useState(e.container?.current),c=C.useSyncExternalStore(XM,()=>!1,()=>!0),{getRootNode:u}=pi();if(C.useEffect(()=>{o(()=>e.container?.current)},[e.container]),c||i)return V.jsx(V.Fragment,{children:t});const d=r??KM(u);return V.jsx(V.Fragment,{children:C.Children.map(t,g=>zd.createPortal(g,d))})},KM=e=>{const t=e?.(),i=t.getRootNode();return Sa(i)?i:Wt(t).body},XM=()=>()=>{};var Im=ve("progress").parts("root","label","track","range","valueText","view","circle","circleTrack","circleRange");Im.build();ce()(["dir","getRootNode","id","ids","max","min","orientation","translations","value","onValueChange","defaultValue","formatOptions","locale"]);var jT=ve("qr-code").parts("root","frame","pattern","overlay","downloadTrigger");jT.build();ce()(["ids","defaultValue","value","id","encoding","dir","getRootNode","onValueChange","pixelSize"]);var Pm=ve("radio-group").parts("root","label","item","itemText","itemControl","indicator");Pm.build();ce()(["dir","disabled","form","getRootNode","id","ids","name","onValueChange","orientation","readOnly","value","defaultValue"]);ce()(["value","disabled","invalid"]);var GT=ve("rating-group").parts("root","label","item","control");GT.build();ce()(["allowHalf","autoFocus","count","dir","disabled","form","getRootNode","id","ids","name","onHoverChange","onValueChange","required","readOnly","translations","value","defaultValue"]);ce()(["index"]);var WT=ve("scroll-area").parts("root","viewport","content","scrollbar","thumb","corner");WT.build();ce()(["dir","getRootNode","ids","id"]);const qT=Pm.rename("segment-group");qT.build();const[YT,En]=at({name:"SelectContext",hookName:"useSelectContext",providerName:"<SelectProvider />"}),KT=C.forwardRef((e,t)=>{const i=En(),r=ne(i.getClearTriggerProps(),e);return V.jsx(re.button,{...r,ref:t})});KT.displayName="SelectClearTrigger";const XT=C.forwardRef((e,t)=>{const i=En(),r=Cn(),o=ne(i.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:V.jsx(re.div,{...o,ref:Qi(r.ref,t)})});XT.displayName="SelectContent";const QT=C.forwardRef((e,t)=>{const i=En(),r=ne(i.getControlProps(),e);return V.jsx(re.div,{...r,ref:t})});QT.displayName="SelectControl";const ZT=C.forwardRef((e,t)=>{const i=En(),r=ne(i.getIndicatorProps(),e);return V.jsx(re.div,{...r,ref:t})});ZT.displayName="SelectIndicator";const[QM]=at({name:"SelectItemContext",hookName:"useSelectItemContext",providerName:"<SelectItemProvider />"}),[ZM,JT]=at({name:"SelectItemPropsContext",hookName:"useSelectItemPropsContext",providerName:"<SelectItemPropsProvider />"}),JM=ot(),ew=C.forwardRef((e,t)=>{const[i,r]=JM(e,["item","persistFocus"]),o=En(),c=ne(o.getItemProps(i),r),u=o.getItemState(i);return V.jsx(ZM,{value:i,children:V.jsx(QM,{value:u,children:V.jsx(re.div,{...c,ref:t})})})});ew.displayName="SelectItem";const[e5,t5]=at({name:"SelectItemGroupPropsContext",hookName:"useSelectItemGroupPropsContext",providerName:"<SelectItemGroupPropsProvider />"}),n5=ot(),tw=C.forwardRef((e,t)=>{const i=C.useId(),[r,o]=n5(e,["id"]),c={id:i,...r},u=En(),d=ne(u.getItemGroupProps(c),o);return V.jsx(e5,{value:c,children:V.jsx(re.div,{...d,ref:t})})});tw.displayName="SelectItemGroup";const nw=C.forwardRef((e,t)=>{const i=En(),r=t5(),o=ne(i.getItemGroupLabelProps({htmlFor:r.id}),e);return V.jsx(re.div,{...o,ref:t})});nw.displayName="SelectItemGroupLabel";const iw=C.forwardRef((e,t)=>{const i=En(),r=JT(),o=ne(i.getItemIndicatorProps(r),e);return V.jsx(re.div,{...o,ref:t})});iw.displayName="SelectItemIndicator";const rw=C.forwardRef((e,t)=>{const i=En(),r=JT(),o=ne(i.getItemTextProps(r),e);return V.jsx(re.span,{...o,ref:t})});rw.displayName="SelectItemText";const aw=C.forwardRef((e,t)=>{const i=En(),r=ne(i.getLabelProps(),e);return V.jsx(re.label,{...r,ref:t})});aw.displayName="SelectLabel";const ow=C.forwardRef((e,t)=>{const i=En(),r=ne(i.getPositionerProps(),e);return Cn().unmounted?null:V.jsx(re.div,{...r,ref:t})});ow.displayName="SelectPositioner";var sw=ve("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText"),Ut=sw.build(),lw=e=>new Go(e);lw.empty=()=>new Go({items:[]});var i5=e=>e.ids?.root??`select:${e.id}`,bp=e=>e.ids?.content??`select:${e.id}:content`,yp=e=>e.ids?.trigger??`select:${e.id}:trigger`,cw=e=>e.ids?.clearTrigger??`select:${e.id}:clear-trigger`,_u=e=>e.ids?.label??`select:${e.id}:label`,r5=e=>e.ids?.control??`select:${e.id}:control`,xp=(e,t)=>e.ids?.item?.(t)??`select:${e.id}:option:${t}`,Sp=e=>e.ids?.hiddenSelect??`select:${e.id}:select`,uw=e=>e.ids?.positioner??`select:${e.id}:positioner`,a5=(e,t)=>e.ids?.itemGroup?.(t)??`select:${e.id}:optgroup:${t}`,kS=(e,t)=>e.ids?.itemGroupLabel?.(t)??`select:${e.id}:optgroup-label:${t}`,jg=e=>e.getById(Sp(e)),rl=e=>e.getById(bp(e)),va=e=>e.getById(yp(e)),o5=e=>e.getById(cw(e)),NS=e=>e.getById(uw(e)),Gg=(e,t)=>t==null?null:e.getById(xp(e,t));function s5(e,t){const{context:i,prop:r,scope:o,state:c,computed:u,send:d}=e,g=r("disabled")||i.get("fieldsetDisabled"),p=!!r("invalid"),m=!!r("required"),b=!!r("readOnly"),y=r("composite"),x=r("collection"),T=c.hasTag("open"),E=c.matches("focused"),w=i.get("highlightedValue"),R=i.get("highlightedItem"),P=i.get("selectedItems"),I=i.get("currentPlacement"),O=u("isTypingAhead"),k=u("isInteractive"),U=w?xp(o,w):void 0;function H(z){const M=x.getItemDisabled(z.item),W=x.getItemValue(z.item);return em(W,()=>`[zag-js] No value found for item ${JSON.stringify(z.item)}`),{value:W,disabled:!!(g||M),highlighted:w===W,selected:i.get("value").includes(W)}}const G=Hd({...r("positioning"),placement:I});return{open:T,focused:E,empty:i.get("value").length===0,highlightedItem:R,highlightedValue:w,selectedItems:P,hasSelectedItems:u("hasSelectedItems"),value:i.get("value"),valueAsString:u("valueAsString"),collection:x,multiple:!!r("multiple"),disabled:!!g,reposition(z={}){d({type:"POSITIONING.SET",options:z})},focus(){va(o)?.focus({preventScroll:!0})},setOpen(z){c.hasTag("open")!==z&&d({type:z?"OPEN":"CLOSE"})},selectValue(z){d({type:"ITEM.SELECT",value:z})},setValue(z){d({type:"VALUE.SET",value:z})},selectAll(){d({type:"VALUE.SET",value:x.getValues()})},setHighlightValue(z){d({type:"HIGHLIGHTED_VALUE.SET",value:z})},clearHighlightValue(){d({type:"HIGHLIGHTED_VALUE.CLEAR"})},clearValue(z){d(z?{type:"ITEM.CLEAR",value:z}:{type:"VALUE.CLEAR"})},getItemState:H,getRootProps(){return t.element({...Ut.root.attrs,dir:r("dir"),id:i5(o),"data-invalid":fe(p),"data-readonly":fe(b)})},getLabelProps(){return t.label({dir:r("dir"),id:_u(o),...Ut.label.attrs,"data-disabled":fe(g),"data-invalid":fe(p),"data-readonly":fe(b),"data-required":fe(m),htmlFor:Sp(o),onClick(z){z.defaultPrevented||g||va(o)?.focus({preventScroll:!0})}})},getControlProps(){return t.element({...Ut.control.attrs,dir:r("dir"),id:r5(o),"data-state":T?"open":"closed","data-focus":fe(E),"data-disabled":fe(g),"data-invalid":fe(p)})},getValueTextProps(){return t.element({...Ut.valueText.attrs,dir:r("dir"),"data-disabled":fe(g),"data-invalid":fe(p),"data-focus":fe(E)})},getTriggerProps(){return t.button({id:yp(o),disabled:g,dir:r("dir"),type:"button",role:"combobox","aria-controls":bp(o),"aria-expanded":T,"aria-haspopup":"listbox","data-state":T?"open":"closed","aria-invalid":p,"aria-required":m,"aria-labelledby":_u(o),...Ut.trigger.attrs,"data-disabled":fe(g),"data-invalid":fe(p),"data-readonly":fe(b),"data-placement":I,"data-placeholder-shown":fe(!u("hasSelectedItems")),onClick(z){k&&(z.defaultPrevented||d({type:"TRIGGER.CLICK"}))},onFocus(){d({type:"TRIGGER.FOCUS"})},onBlur(){d({type:"TRIGGER.BLUR"})},onKeyDown(z){if(z.defaultPrevented||!k)return;const W={ArrowUp(){d({type:"TRIGGER.ARROW_UP"})},ArrowDown(Q){d({type:Q.altKey?"OPEN":"TRIGGER.ARROW_DOWN"})},ArrowLeft(){d({type:"TRIGGER.ARROW_LEFT"})},ArrowRight(){d({type:"TRIGGER.ARROW_RIGHT"})},Home(){d({type:"TRIGGER.HOME"})},End(){d({type:"TRIGGER.END"})},Enter(){d({type:"TRIGGER.ENTER"})},Space(Q){d(O?{type:"TRIGGER.TYPEAHEAD",key:Q.key}:{type:"TRIGGER.ENTER"})}}[kl(z,{dir:r("dir"),orientation:"vertical"})];if(W){W(z),z.preventDefault();return}Vr.isValidEvent(z)&&(d({type:"TRIGGER.TYPEAHEAD",key:z.key}),z.preventDefault())}})},getIndicatorProps(){return t.element({...Ut.indicator.attrs,dir:r("dir"),"aria-hidden":!0,"data-state":T?"open":"closed","data-disabled":fe(g),"data-invalid":fe(p),"data-readonly":fe(b)})},getItemProps(z){const M=H(z);return t.element({id:xp(o,M.value),role:"option",...Ut.item.attrs,dir:r("dir"),"data-value":M.value,"aria-selected":M.selected,"data-state":M.selected?"checked":"unchecked","data-highlighted":fe(M.highlighted),"data-disabled":fe(M.disabled),"aria-disabled":tm(M.disabled),onPointerMove(W){M.disabled||W.pointerType!=="mouse"||M.value!==w&&d({type:"ITEM.POINTER_MOVE",value:M.value})},onClick(W){W.defaultPrevented||M.disabled||d({type:"ITEM.CLICK",src:"pointerup",value:M.value})},onPointerLeave(W){M.disabled||z.persistFocus||W.pointerType!=="mouse"||!e.event.previous()?.type.includes("POINTER")||d({type:"ITEM.POINTER_LEAVE"})}})},getItemTextProps(z){const M=H(z);return t.element({...Ut.itemText.attrs,"data-state":M.selected?"checked":"unchecked","data-disabled":fe(M.disabled),"data-highlighted":fe(M.highlighted)})},getItemIndicatorProps(z){const M=H(z);return t.element({"aria-hidden":!0,...Ut.itemIndicator.attrs,"data-state":M.selected?"checked":"unchecked",hidden:!M.selected})},getItemGroupLabelProps(z){const{htmlFor:M}=z;return t.element({...Ut.itemGroupLabel.attrs,id:kS(o,M),dir:r("dir"),role:"presentation"})},getItemGroupProps(z){const{id:M}=z;return t.element({...Ut.itemGroup.attrs,"data-disabled":fe(g),id:a5(o,M),"aria-labelledby":kS(o,M),role:"group",dir:r("dir")})},getClearTriggerProps(){return t.button({...Ut.clearTrigger.attrs,id:cw(o),type:"button","aria-label":"Clear value","data-invalid":fe(p),disabled:g,hidden:!u("hasSelectedItems"),dir:r("dir"),onClick(z){z.defaultPrevented||d({type:"CLEAR.CLICK"})}})},getHiddenSelectProps(){const z=i.get("value"),M=r("multiple")?z:z?.[0];return t.select({name:r("name"),form:r("form"),disabled:g,multiple:r("multiple"),required:r("required"),"aria-hidden":!0,id:Sp(o),defaultValue:M,style:fm,tabIndex:-1,onFocus(){va(o)?.focus({preventScroll:!0})},"aria-labelledby":_u(o)})},getPositionerProps(){return t.element({...Ut.positioner.attrs,dir:r("dir"),id:uw(o),style:G.floating})},getContentProps(){return t.element({hidden:!T,dir:r("dir"),id:bp(o),role:y?"listbox":"dialog",...Ut.content.attrs,"data-state":T?"open":"closed","data-placement":I,"data-activedescendant":U,"aria-activedescendant":y?U:void 0,"aria-multiselectable":r("multiple")&&y?!0:void 0,"aria-labelledby":_u(o),tabIndex:0,onKeyDown(z){if(!k||!$n(z.currentTarget,nt(z)))return;if(z.key==="Tab"&&!fE(z)){z.preventDefault();return}const M={ArrowUp(){d({type:"CONTENT.ARROW_UP"})},ArrowDown(){d({type:"CONTENT.ARROW_DOWN"})},Home(){d({type:"CONTENT.HOME"})},End(){d({type:"CONTENT.END"})},Enter(){d({type:"ITEM.CLICK",src:"keydown.enter"})},Space(ue){O?d({type:"CONTENT.TYPEAHEAD",key:ue.key}):M.Enter?.(ue)}},W=M[kl(z)];if(W){W(z),z.preventDefault();return}const Q=nt(z);kd(Q)||Vr.isValidEvent(z)&&(d({type:"CONTENT.TYPEAHEAD",key:z.key}),z.preventDefault())}})},getListProps(){return t.element({...Ut.list.attrs,tabIndex:0,role:y?void 0:"listbox","aria-labelledby":yp(o),"aria-activedescendant":y?void 0:U,"aria-multiselectable":!y&&r("multiple")?!0:void 0})}}}var{and:al,not:ca,or:l5}=Zn(),c5={props({props:e}){return{loopFocus:!1,closeOnSelect:!e.multiple,composite:!0,defaultValue:[],...e,collection:e.collection??lw.empty(),positioning:{placement:"bottom-start",gutter:8,...e.positioning}}},context({prop:e,bindable:t}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:Gt,onChange(i){const r=e("collection").findMany(i);return e("onValueChange")?.({value:i,items:r})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(i){e("onHighlightChange")?.({highlightedValue:i,highlightedItem:e("collection").find(i),highlightedIndex:e("collection").indexOf(i)})}})),currentPlacement:t(()=>({defaultValue:void 0})),fieldsetDisabled:t(()=>({defaultValue:!1})),highlightedItem:t(()=>({defaultValue:null})),selectedItems:t(()=>{const i=e("value")??e("defaultValue")??[];return{defaultValue:e("collection").findMany(i)}})}},refs(){return{typeahead:{...Vr.defaultOptions}}},computed:{hasSelectedItems:({context:e})=>e.get("value").length>0,isTypingAhead:({refs:e})=>e.get("typeahead").keysSoFar!=="",isDisabled:({prop:e,context:t})=>!!e("disabled")||!!t.get("fieldsetDisabled"),isInteractive:({prop:e})=>!(e("disabled")||e("readOnly")),valueAsString:({context:e,prop:t})=>t("collection").stringifyItems(e.get("selectedItems"))},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"idle"},entry:["syncSelectElement"],watch({context:e,prop:t,track:i,action:r}){i([()=>e.get("value").toString()],()=>{r(["syncSelectedItems","syncSelectElement","dispatchChangeEvent"])}),i([()=>t("open")],()=>{r(["toggleVisibility"])}),i([()=>e.get("highlightedValue")],()=>{r(["syncHighlightedItem"])}),i([()=>t("collection").toString()],()=>{r(["syncCollection"])})},on:{"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedItem"]},"HIGHLIGHTED_VALUE.CLEAR":{actions:["clearHighlightedItem"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setSelectedItems"]},"VALUE.CLEAR":{actions:["clearSelectedItems"]},"CLEAR.CLICK":{actions:["clearSelectedItems","focusTriggerEl"]}},effects:["trackFormControlState"],states:{idle:{tags:["closed"],on:{"CONTROLLED.OPEN":[{guard:"isTriggerClickEvent",target:"open",actions:["setInitialFocus","highlightFirstSelectedItem"]},{target:"open",actions:["setInitialFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus","highlightFirstSelectedItem"]}],"TRIGGER.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen"]}]}},focused:{tags:["closed"],on:{"CONTROLLED.OPEN":[{guard:"isTriggerClickEvent",target:"open",actions:["setInitialFocus","highlightFirstSelectedItem"]},{guard:"isTriggerArrowUpEvent",target:"open",actions:["setInitialFocus","highlightComputedLastItem"]},{guard:l5("isTriggerArrowDownEvent","isTriggerEnterEvent"),target:"open",actions:["setInitialFocus","highlightComputedFirstItem"]},{target:"open",actions:["setInitialFocus"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen"]}],"TRIGGER.BLUR":{target:"idle"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightFirstSelectedItem"]}],"TRIGGER.ENTER":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedFirstItem"]}],"TRIGGER.ARROW_UP":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedLastItem"]}],"TRIGGER.ARROW_DOWN":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedFirstItem"]}],"TRIGGER.ARROW_LEFT":[{guard:al(ca("multiple"),"hasSelectedItems"),actions:["selectPreviousItem"]},{guard:ca("multiple"),actions:["selectLastItem"]}],"TRIGGER.ARROW_RIGHT":[{guard:al(ca("multiple"),"hasSelectedItems"),actions:["selectNextItem"]},{guard:ca("multiple"),actions:["selectFirstItem"]}],"TRIGGER.HOME":{guard:ca("multiple"),actions:["selectFirstItem"]},"TRIGGER.END":{guard:ca("multiple"),actions:["selectLastItem"]},"TRIGGER.TYPEAHEAD":{guard:ca("multiple"),actions:["selectMatchingItem"]}}},open:{tags:["open"],exit:["scrollContentToTop"],effects:["trackDismissableElement","computePlacement","scrollToHighlightedItem"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["focusTriggerEl","clearHighlightedItem"]},{target:"idle",actions:["clearHighlightedItem"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{guard:"restoreFocus",target:"focused",actions:["invokeOnClose","focusTriggerEl","clearHighlightedItem"]},{target:"idle",actions:["invokeOnClose","clearHighlightedItem"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","clearHighlightedItem"]}],"ITEM.CLICK":[{guard:al("closeOnSelect","isOpenControlled"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","focusTriggerEl","clearHighlightedItem"]},{actions:["selectHighlightedItem"]}],"CONTENT.HOME":{actions:["highlightFirstItem"]},"CONTENT.END":{actions:["highlightLastItem"]},"CONTENT.ARROW_DOWN":[{guard:al("hasHighlightedItem","loop","isLastItemHighlighted"),actions:["highlightFirstItem"]},{guard:"hasHighlightedItem",actions:["highlightNextItem"]},{actions:["highlightFirstItem"]}],"CONTENT.ARROW_UP":[{guard:al("hasHighlightedItem","loop","isFirstItemHighlighted"),actions:["highlightLastItem"]},{guard:"hasHighlightedItem",actions:["highlightPreviousItem"]},{actions:["highlightLastItem"]}],"CONTENT.TYPEAHEAD":{actions:["highlightMatchingItem"]},"ITEM.POINTER_MOVE":{actions:["highlightItem"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedItem"]},"POSITIONING.SET":{actions:["reposition"]}}}},implementations:{guards:{loop:({prop:e})=>!!e("loopFocus"),multiple:({prop:e})=>!!e("multiple"),hasSelectedItems:({computed:e})=>!!e("hasSelectedItems"),hasHighlightedItem:({context:e})=>e.get("highlightedValue")!=null,isFirstItemHighlighted:({context:e,prop:t})=>e.get("highlightedValue")===t("collection").firstValue,isLastItemHighlighted:({context:e,prop:t})=>e.get("highlightedValue")===t("collection").lastValue,closeOnSelect:({prop:e,event:t})=>!!(t.closeOnSelect??e("closeOnSelect")),restoreFocus:({event:e})=>IS(e),isOpenControlled:({prop:e})=>e("open")!==void 0,isTriggerClickEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.CLICK",isTriggerEnterEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.ENTER",isTriggerArrowUpEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.ARROW_UP",isTriggerArrowDownEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.ARROW_DOWN"},effects:{trackFormControlState({context:e,scope:t}){return Fo(jg(t),{onFieldsetDisabledChange(i){e.set("fieldsetDisabled",i)},onFormReset(){const i=e.initial("value");e.set("value",i)}})},trackDismissableElement({scope:e,send:t,prop:i}){const r=()=>rl(e);let o=!0;return Na(r,{type:"listbox",defer:!0,exclude:[va(e),o5(e)],onFocusOutside:i("onFocusOutside"),onPointerDownOutside:i("onPointerDownOutside"),onInteractOutside(c){i("onInteractOutside")?.(c),o=!(c.detail.focusable||c.detail.contextmenu)},onDismiss(){t({type:"CLOSE",src:"interact-outside",restoreFocus:o})}})},computePlacement({context:e,prop:t,scope:i}){const r=t("positioning");return e.set("currentPlacement",r.placement),Sn(()=>va(i),()=>NS(i),{defer:!0,...r,onComplete(u){e.set("currentPlacement",u.placement)}})},scrollToHighlightedItem({context:e,prop:t,scope:i,event:r}){const o=u=>{const d=e.get("highlightedValue");if(d==null||r.current().type.includes("POINTER"))return;const g=rl(i),p=t("scrollToIndexFn");if(p){const b=t("collection").indexOf(d);p?.({index:b,immediate:u,getElement:()=>Gg(i,d)});return}const m=Gg(i,d);Il(m,{rootEl:g,block:"nearest"})};return pe(()=>o(!0)),Ul(()=>rl(i),{defer:!0,attributes:["data-activedescendant"],callback(){o(!1)}})}},actions:{reposition({context:e,prop:t,scope:i,event:r}){const o=()=>NS(i);Sn(va(i),o,{...t("positioning"),...r.options,defer:!0,listeners:!1,onComplete(c){e.set("currentPlacement",c.placement)}})},toggleVisibility({send:e,prop:t,event:i}){e({type:t("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:i})},highlightPreviousItem({context:e,prop:t}){const i=e.get("highlightedValue");if(i==null)return;const r=t("collection").getPreviousValue(i,1,t("loopFocus"));r!=null&&e.set("highlightedValue",r)},highlightNextItem({context:e,prop:t}){const i=e.get("highlightedValue");if(i==null)return;const r=t("collection").getNextValue(i,1,t("loopFocus"));r!=null&&e.set("highlightedValue",r)},highlightFirstItem({context:e,prop:t}){const i=t("collection").firstValue;e.set("highlightedValue",i)},highlightLastItem({context:e,prop:t}){const i=t("collection").lastValue;e.set("highlightedValue",i)},setInitialFocus({scope:e}){pe(()=>{Nl({root:rl(e)})?.focus({preventScroll:!0})})},focusTriggerEl({event:e,scope:t}){IS(e)&&pe(()=>{va(t)?.focus({preventScroll:!0})})},selectHighlightedItem({context:e,prop:t,event:i}){let r=i.value??e.get("highlightedValue");if(r==null||!t("collection").has(r))return;t("onSelect")?.({value:r}),r=t("deselectable")&&!t("multiple")&&e.get("value").includes(r)?null:r,e.set("value",c=>r==null?[]:t("multiple")?Lo(c,r):[r])},highlightComputedFirstItem({context:e,prop:t,computed:i}){const r=t("collection"),o=i("hasSelectedItems")?r.sort(e.get("value"))[0]:r.firstValue;e.set("highlightedValue",o)},highlightComputedLastItem({context:e,prop:t,computed:i}){const r=t("collection"),o=i("hasSelectedItems")?r.sort(e.get("value"))[0]:r.lastValue;e.set("highlightedValue",o)},highlightFirstSelectedItem({context:e,prop:t,computed:i}){if(!i("hasSelectedItems"))return;const r=t("collection").sort(e.get("value"))[0];e.set("highlightedValue",r)},highlightItem({context:e,event:t}){e.set("highlightedValue",t.value)},highlightMatchingItem({context:e,prop:t,event:i,refs:r}){const o=t("collection").search(i.key,{state:r.get("typeahead"),currentValue:e.get("highlightedValue")});o!=null&&e.set("highlightedValue",o)},setHighlightedItem({context:e,event:t}){e.set("highlightedValue",t.value)},clearHighlightedItem({context:e}){e.set("highlightedValue",null)},selectItem({context:e,prop:t,event:i}){t("onSelect")?.({value:i.value});const o=t("deselectable")&&!t("multiple")&&e.get("value").includes(i.value)?null:i.value;e.set("value",c=>o==null?[]:t("multiple")?Lo(c,o):[o])},clearItem({context:e,event:t}){e.set("value",i=>i.filter(r=>r!==t.value))},setSelectedItems({context:e,event:t}){e.set("value",t.value)},clearSelectedItems({context:e}){e.set("value",[])},selectPreviousItem({context:e,prop:t}){const[i]=e.get("value"),r=t("collection").getPreviousValue(i);r&&e.set("value",[r])},selectNextItem({context:e,prop:t}){const[i]=e.get("value"),r=t("collection").getNextValue(i);r&&e.set("value",[r])},selectFirstItem({context:e,prop:t}){const i=t("collection").firstValue;i&&e.set("value",[i])},selectLastItem({context:e,prop:t}){const i=t("collection").lastValue;i&&e.set("value",[i])},selectMatchingItem({context:e,prop:t,event:i,refs:r}){const o=t("collection").search(i.key,{state:r.get("typeahead"),currentValue:e.get("value")[0]});o!=null&&e.set("value",[o])},scrollContentToTop({prop:e,scope:t}){if(e("scrollToIndexFn")){const i=e("collection").firstValue;e("scrollToIndexFn")?.({index:0,immediate:!0,getElement:()=>Gg(t,i)})}else rl(t)?.scrollTo(0,0)},invokeOnOpen({prop:e,context:t}){e("onOpenChange")?.({open:!0,value:t.get("value")})},invokeOnClose({prop:e,context:t}){e("onOpenChange")?.({open:!1,value:t.get("value")})},syncSelectElement({context:e,prop:t,scope:i}){const r=jg(i);if(r){if(e.get("value").length===0&&!t("multiple")){r.selectedIndex=-1;return}for(const o of r.options)o.selected=e.get("value").includes(o.value)}},syncCollection({context:e,prop:t}){const i=t("collection"),r=i.find(e.get("highlightedValue"));r&&e.set("highlightedItem",r);const o=i.findMany(e.get("value"));e.set("selectedItems",o)},syncSelectedItems({context:e,prop:t}){const i=t("collection"),r=e.get("selectedItems"),c=e.get("value").map(u=>r.find(g=>i.getItemValue(g)===u)||i.find(u));e.set("selectedItems",c)},syncHighlightedItem({context:e,prop:t}){const i=t("collection"),r=e.get("highlightedValue"),o=r?i.find(r):null;e.set("highlightedItem",o)},dispatchChangeEvent({scope:e}){queueMicrotask(()=>{const t=jg(e);if(!t)return;const i=e.getWin(),r=new i.Event("change",{bubbles:!0,composed:!0});t.dispatchEvent(r)})}}}};function IS(e){const t=e.restoreFocus??e.previousEvent?.restoreFocus;return t==null||!!t}ce()(["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"]);ce()(["item","persistFocus"]);ce()(["id"]);ce()(["htmlFor"]);const u5=e=>{const t=C.useId(),{dir:i}=Zi(),{getRootNode:r}=pi(),o=Ia(),c={id:t,ids:{label:o?.ids.label,hiddenSelect:o?.ids.control},disabled:o?.disabled,readOnly:o?.readOnly,invalid:o?.invalid,required:o?.required,dir:i,getRootNode:r,...e},u=vi(c5,c);return s5(u,Ji)},d5=(e,t)=>{const[i,r]=mi(e),[o,c]=ot()(r,["closeOnSelect","collection","composite","defaultHighlightedValue","defaultOpen","defaultValue","deselectable","disabled","form","highlightedValue","id","ids","invalid","loopFocus","multiple","name","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","positioning","readOnly","required","scrollToIndexFn","value"]),u=u5(o),d=jn(ne({present:u.open},i)),g=ne(u.getRootProps(),c);return V.jsx(YT,{value:u,children:V.jsx(Jn,{value:d,children:V.jsx(re.div,{...g,ref:t})})})},f5=C.forwardRef(d5),h5=(e,t)=>{const[i,r]=mi(e),[{value:o},c]=ot()(r,["value"]),u=jn(ne({present:o.open},i)),d=ne(o.getRootProps(),c);return V.jsx(YT,{value:o,children:V.jsx(Jn,{value:u,children:V.jsx(re.div,{...d,ref:t})})})},g5=C.forwardRef(h5),dw=C.forwardRef((e,t)=>{const i=En(),r=ne(i.getTriggerProps(),e);return V.jsx(re.button,{...r,ref:t})});dw.displayName="SelectTrigger";const fw=C.forwardRef((e,t)=>{const{children:i,placeholder:r,...o}=e,c=En(),u=ne(c.getValueTextProps(),o);return V.jsx(re.span,{...u,ref:t,children:i||c.valueAsString||r})});fw.displayName="SelectValueText";var hw=ve("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker","draggingIndicator");hw.build();ce()(["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"]);ce()(["index","name"]);ce()(["value"]);const[gw,Wo]=at({name:"SwitchContext",hookName:"useSwitchContext",providerName:"<SwitchProvider />"}),pw=C.forwardRef((e,t)=>{const i=Wo(),r=ne(i.getControlProps(),e);return V.jsx(re.span,{...r,ref:t})});pw.displayName="SwitchControl";const mw=C.forwardRef((e,t)=>{const i=Wo(),r=ne(i.getHiddenInputProps(),e),o=Ia();return V.jsx(re.input,{"aria-describedby":o?.ariaDescribedby,...r,ref:t})});mw.displayName="SwitchHiddenInput";const vw=C.forwardRef((e,t)=>{const i=Wo(),r=ne(i.getLabelProps(),e);return V.jsx(re.span,{...r,ref:t})});vw.displayName="SwitchLabel";var bw=ve("switch").parts("root","label","control","thumb"),Vu=bw.build(),yw=e=>e.ids?.root??`switch:${e.id}`,PS=e=>e.ids?.label??`switch:${e.id}:label`,p5=e=>e.ids?.thumb??`switch:${e.id}:thumb`,m5=e=>e.ids?.control??`switch:${e.id}:control`,Cp=e=>e.ids?.hiddenInput??`switch:${e.id}:input`,v5=e=>e.getById(yw(e)),Io=e=>e.getById(Cp(e));function b5(e,t){const{context:i,send:r,prop:o,scope:c}=e,u=!!o("disabled"),d=!!o("readOnly"),g=!!o("required"),p=!!i.get("checked"),m=!u&&i.get("focused"),b=!u&&i.get("focusVisible"),y=!u&&i.get("active"),x={"data-active":fe(y),"data-focus":fe(m),"data-focus-visible":fe(b),"data-readonly":fe(d),"data-hover":fe(i.get("hovered")),"data-disabled":fe(u),"data-state":p?"checked":"unchecked","data-invalid":fe(o("invalid")),"data-required":fe(g)};return{checked:p,disabled:u,focused:m,setChecked(T){r({type:"CHECKED.SET",checked:T,isTrusted:!1})},toggleChecked(){r({type:"CHECKED.TOGGLE",checked:p,isTrusted:!1})},getRootProps(){return t.label({...Vu.root.attrs,...x,dir:o("dir"),id:yw(c),htmlFor:Cp(c),onPointerMove(){u||r({type:"CONTEXT.SET",context:{hovered:!0}})},onPointerLeave(){u||r({type:"CONTEXT.SET",context:{hovered:!1}})},onClick(T){if(u)return;nt(T)===Io(c)&&T.stopPropagation(),$l()&&Io(c)?.focus()}})},getLabelProps(){return t.element({...Vu.label.attrs,...x,dir:o("dir"),id:PS(c)})},getThumbProps(){return t.element({...Vu.thumb.attrs,...x,dir:o("dir"),id:p5(c),"aria-hidden":!0})},getControlProps(){return t.element({...Vu.control.attrs,...x,dir:o("dir"),id:m5(c),"aria-hidden":!0})},getHiddenInputProps(){return t.input({id:Cp(c),type:"checkbox",required:o("required"),defaultChecked:p,disabled:u,"aria-labelledby":PS(c),"aria-invalid":o("invalid"),name:o("name"),form:o("form"),value:o("value"),style:fm,onFocus(){const T=Vl();r({type:"CONTEXT.SET",context:{focused:!0,focusVisible:T}})},onBlur(){r({type:"CONTEXT.SET",context:{focused:!1,focusVisible:!1}})},onClick(T){if(d){T.preventDefault();return}const E=T.currentTarget.checked;r({type:"CHECKED.SET",checked:E,isTrusted:!0})}})}}}var{not:AS}=Zn(),y5={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(i){e("onCheckedChange")?.({checked:i})}})),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:i,action:r}){e([()=>t("disabled")],()=>{r(["removeFocusIfNeeded"])}),e([()=>i.get("checked")],()=>{r(["syncInputElement"])})},effects:["trackFormControlState","trackPressEvent","trackFocusVisible"],on:{"CHECKED.TOGGLE":[{guard:AS("isTrusted"),actions:["toggleChecked","dispatchChangeEvent"]},{actions:["toggleChecked"]}],"CHECKED.SET":[{guard:AS("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:i}){if(!e("isDisabled"))return vE({pointerNode:v5(t),keyboardNode:Io(t),isValidKey:r=>r.key===" ",onPress:()=>i.set("active",!1),onPressStart:()=>i.set("active",!0),onPressEnd:()=>i.set("active",!1)})},trackFocusVisible({computed:e,scope:t}){if(!e("isDisabled"))return Wd({root:t.getRootNode()})},trackFormControlState({context:e,send:t,scope:i}){return Fo(Io(i),{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 i in t.context)e.set(i,t.context[i])},syncInputElement({context:e,scope:t}){const i=Io(t);i&&am(i,!!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 i=Io(t);sE(i,{checked:e.get("checked")})}}}};ce()(["checked","defaultChecked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]);const x5=e=>{const t=C.useId(),{getRootNode:i}=pi(),{dir:r}=Zi(),o=Ia(),c={id:t,ids:{label:o?.ids.label,hiddenInput:o?.ids.control},dir:r,disabled:o?.disabled,readOnly:o?.readOnly,invalid:o?.invalid,required:o?.required,getRootNode:i,...e},u=vi(y5,c);return b5(u,Ji)},S5=ot(),xw=C.forwardRef((e,t)=>{const[i,r]=S5(e,["checked","defaultChecked","disabled","form","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]),o=x5(i),c=ne(o.getRootProps(),r);return V.jsx(gw,{value:o,children:V.jsx(re.label,{...c,ref:t})})});xw.displayName="SwitchRoot";const C5=ot(),Sw=C.forwardRef((e,t)=>{const[{value:i},r]=C5(e,["value"]),o=ne(i.getRootProps(),r);return V.jsx(gw,{value:i,children:V.jsx(re.label,{...o,ref:t})})});Sw.displayName="SwitchRootProvider";const Cw=C.forwardRef((e,t)=>{const i=Wo(),r=ne(i.getThumbProps(),e);return V.jsx(re.span,{...r,ref:t})});Cw.displayName="SwitchThumb";const[Ew,Kd]=at({name:"TabsContext",hookName:"useTabsContext",providerName:"<TabsProvider />"}),E5=ot(),Tw=C.forwardRef((e,t)=>{const[i,r]=E5(e,["value"]),o=Kd(),c=$E(),u=jn({...c,present:o.value===e.value,immediate:!0}),d=ne(o.getContentProps(i),u.getPresenceProps(),r);return V.jsx(Jn,{value:u,children:u.unmounted?null:V.jsx(re.div,{...d,ref:Qi(u.ref,t)})})});Tw.displayName="TabContent";const ww=C.forwardRef((e,t)=>{const i=Kd(),r=ne(i.getIndicatorProps(),e);return V.jsx(re.div,{...r,ref:t})});ww.displayName="TabIndicator";const Ow=C.forwardRef((e,t)=>{const i=Kd(),r=ne(i.getListProps(),e);return V.jsx(re.div,{...r,ref:t})});Ow.displayName="TabList";const T5=ot(),Rw=C.forwardRef((e,t)=>{const[i,r]=T5(e,["disabled","value"]),o=Kd(),c=ne(o.getTriggerProps(i),r);return V.jsx(re.button,{...c,ref:t})});Rw.displayName="TabTrigger";var w5=ve("tabs").parts("root","list","trigger","content","indicator"),ol=w5.build(),O5=e=>e.ids?.root??`tabs:${e.id}`,xl=e=>e.ids?.list??`tabs:${e.id}:list`,Ep=(e,t)=>e.ids?.content?.(t)??`tabs:${e.id}:content-${t}`,xa=(e,t)=>e.ids?.trigger?.(t)??`tabs:${e.id}:trigger-${t}`,kw=e=>e.ids?.indicator??`tabs:${e.id}:indicator`,R5=e=>e.getById(xl(e)),k5=(e,t)=>e.getById(Ep(e,t)),Ju=(e,t)=>t!=null?e.getById(xa(e,t)):null,_S=e=>e.getById(kw(e)),qo=e=>{const i=`[role=tab][data-ownedby='${CSS.escape(xl(e))}']:not([disabled])`;return Ea(R5(e),i)},N5=e=>Vo(qo(e)),I5=e=>Td(qo(e)),P5=(e,t)=>um(qo(e),xa(e,t.value),t.loopFocus),A5=(e,t)=>dm(qo(e),xa(e,t.value),t.loopFocus),Nw=e=>({x:e?.offsetLeft??0,y:e?.offsetTop??0,width:e?.offsetWidth??0,height:e?.offsetHeight??0}),_5=(e,t)=>{const i=bE(qo(e),xa(e,t));return Nw(i)};function V5(e,t){const{state:i,send:r,context:o,prop:c,scope:u}=e,d=c("translations"),g=i.matches("focused"),p=c("orientation")==="vertical",m=c("orientation")==="horizontal",b=c("composite");function y(x){return{selected:o.get("value")===x.value,focused:o.get("focusedValue")===x.value,disabled:!!x.disabled}}return{value:o.get("value"),focusedValue:o.get("focusedValue"),setValue(x){r({type:"SET_VALUE",value:x})},clearValue(){r({type:"CLEAR_VALUE"})},setIndicatorRect(x){const T=xa(u,x);r({type:"SET_INDICATOR_RECT",id:T})},syncTabIndex(){r({type:"SYNC_TAB_INDEX"})},selectNext(x){r({type:"TAB_FOCUS",value:x,src:"selectNext"}),r({type:"ARROW_NEXT",src:"selectNext"})},selectPrev(x){r({type:"TAB_FOCUS",value:x,src:"selectPrev"}),r({type:"ARROW_PREV",src:"selectPrev"})},focus(){const x=o.get("value");x&&Ju(u,x)?.focus()},getRootProps(){return t.element({...ol.root.attrs,id:O5(u),"data-orientation":c("orientation"),"data-focus":fe(g),dir:c("dir")})},getListProps(){return t.element({...ol.list.attrs,id:xl(u),role:"tablist",dir:c("dir"),"data-focus":fe(g),"aria-orientation":c("orientation"),"data-orientation":c("orientation"),"aria-label":d?.listLabel,onKeyDown(x){if(x.defaultPrevented||nE(x)||!$n(x.currentTarget,nt(x)))return;const T={ArrowDown(){m||r({type:"ARROW_NEXT",key:"ArrowDown"})},ArrowUp(){m||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 E=kl(x,{dir:c("dir"),orientation:c("orientation")});const w=T[E];if(w){x.preventDefault(),w(x);return}}})},getTriggerState:y,getTriggerProps(x){const{value:T,disabled:E}=x,w=y(x);return t.button({...ol.trigger.attrs,role:"tab",type:"button",disabled:E,dir:c("dir"),"data-orientation":c("orientation"),"data-disabled":fe(E),"aria-disabled":E,"data-value":T,"aria-selected":w.selected,"data-selected":fe(w.selected),"data-focus":fe(w.focused),"aria-controls":w.selected?Ep(u,T):void 0,"data-ownedby":xl(u),"data-ssr":fe(o.get("ssr")),id:xa(u,T),tabIndex:w.selected&&b?0:-1,onFocus(){r({type:"TAB_FOCUS",value:T})},onBlur(R){R.relatedTarget?.getAttribute("role")!=="tab"&&r({type:"TAB_BLUR"})},onClick(R){R.defaultPrevented||tp(R)||E||($l()&&R.currentTarget.focus(),r({type:"TAB_CLICK",value:T}))}})},getContentProps(x){const{value:T}=x,E=o.get("value")===T;return t.element({...ol.content.attrs,dir:c("dir"),id:Ep(u,T),tabIndex:b?0:-1,"aria-labelledby":xa(u,T),role:"tabpanel","data-ownedby":xl(u),"data-selected":fe(E),"data-orientation":c("orientation"),hidden:!E})},getIndicatorProps(){const x=o.get("indicatorRect");return t.element({id:kw(u),...ol.indicator.attrs,dir:c("dir"),"data-orientation":c("orientation"),hidden:x==null,style:{"--transition-property":"left, right, top, bottom, width, height","--left":Dn(x?.x),"--top":Dn(x?.y),"--width":Dn(x?.width),"--height":Dn(x?.height),position:"absolute",willChange:"var(--transition-property)",transitionProperty:"var(--transition-property)",transitionDuration:"var(--transition-duration, 150ms)",transitionTimingFunction:"var(--transition-timing-function)",[m?"left":"top"]:m?"var(--left)":"var(--top)"}})}}}var{createMachine:z5}=Vd(),D5=z5({props({props:e}){return{dir:"ltr",orientation:"horizontal",activationMode:"automatic",loopFocus:!0,composite:!0,navigate(t){sm(t.node)},defaultValue:null,...e}},initialState(){return"idle"},context({prop:e,bindable:t}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(i){e("onValueChange")?.({value:i})}})),focusedValue:t(()=>({defaultValue:e("value")||e("defaultValue"),sync:!0,onChange(i){e("onFocusChange")?.({focusedValue:i})}})),ssr:t(()=>({defaultValue:!0})),indicatorRect:t(()=>({defaultValue:null}))}},watch({context:e,prop:t,track:i,action:r}){i([()=>e.get("value")],()=>{r(["syncIndicatorRect","syncTabIndex","navigateIfNeeded"])}),i([()=>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}){pe(()=>{const i=e.get("focusedValue");if(!i)return;const o=t("deselectable")&&e.get("value")===i?null:i;e.set("value",o)})},setFocusedValue({context:e,event:t,flush:i}){t.value!=null&&i(()=>{e.set("focusedValue",t.value)})},clearFocusedValue({context:e}){e.set("focusedValue",null)},setValue({context:e,event:t,prop:i}){const r=i("deselectable")&&e.get("value")===e.get("focusedValue");e.set("value",r?null:t.value)},clearValue({context:e}){e.set("value",null)},focusFirstTab({scope:e}){pe(()=>{N5(e)?.focus()})},focusLastTab({scope:e}){pe(()=>{I5(e)?.focus()})},focusNextTab({context:e,prop:t,scope:i,event:r}){const o=r.value??e.get("focusedValue");if(!o)return;const c=P5(i,{value:o,loopFocus:t("loopFocus")});pe(()=>{t("composite")?c?.focus():c?.dataset.value!=null&&e.set("focusedValue",c.dataset.value)})},focusPrevTab({context:e,prop:t,scope:i,event:r}){const o=r.value??e.get("focusedValue");if(!o)return;const c=A5(i,{value:o,loopFocus:t("loopFocus")});pe(()=>{t("composite")?c?.focus():c?.dataset.value!=null&&e.set("focusedValue",c.dataset.value)})},syncTabIndex({context:e,scope:t}){pe(()=>{const i=e.get("value");if(!i)return;const r=k5(t,i);if(!r)return;om(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:i}){const r=t.id??e.get("value");!_S(i)||!r||!Ju(i,r)||e.set("indicatorRect",_5(i,r))},syncSsr({context:e}){e.set("ssr",!1)},syncIndicatorRect({context:e,refs:t,scope:i}){const r=t.get("indicatorCleanup");if(r&&r(),!_S(i))return;const c=()=>{const g=Ju(i,e.get("value"));if(!g)return;const p=Nw(g);e.set("indicatorRect",m=>Gt(m,p)?m:p)};c();const u=qo(i),d=Ol(...u.map(g=>KA.observe(g,c)));t.set("indicatorCleanup",d)},navigateIfNeeded({context:e,prop:t,scope:i}){const r=e.get("value");if(!r)return;const o=Ju(i,r);QC(o)&&t("navigate")?.({value:r,node:o,href:o.href})}}}});ce()(["activationMode","composite","deselectable","dir","getRootNode","id","ids","loopFocus","navigate","onFocusChange","onValueChange","orientation","translations","value","defaultValue"]);ce()(["disabled","value"]);ce()(["value"]);const M5=e=>{const t=C.useId(),{getRootNode:i}=pi(),{dir:r}=Zi(),o={id:t,dir:r,getRootNode:i,...e},c=vi(D5,o);return V5(c,Ji)},L5=ot(),Iw=C.forwardRef((e,t)=>{const[i,r]=$d(e),[o,c]=L5(r,["activationMode","composite","defaultValue","deselectable","id","ids","loopFocus","navigate","onFocusChange","onValueChange","orientation","translations","value"]),u=M5(o),d=ne(u.getRootProps(),c);return V.jsx(Ew,{value:u,children:V.jsx(Fd,{value:i,children:V.jsx(re.div,{...d,ref:t})})})});Iw.displayName="TabsRoot";const B5=ot(),Pw=C.forwardRef((e,t)=>{const[i,r]=$d(e),[{value:o},c]=B5(r,["value"]),u=ne(o.getRootProps(),c);return V.jsx(Ew,{value:o,children:V.jsx(Fd,{value:i,children:V.jsx(re.div,{...u,ref:t})})})});Pw.displayName="TabsRootProvider";var Aw=ve("tagsInput").parts("root","label","control","input","clearTrigger","item","itemPreview","itemInput","itemText","itemDeleteTrigger");Aw.build();var H5=e=>e.ids?.root??`tags-input:${e.id}`,F5=e=>e.ids?.input??`tags-input:${e.id}:input`,$5=e=>e.ids?.hiddenInput??`tags-input:${e.id}:hidden-input`,Tp=(e,t)=>e.ids?.item?.(t)??`tags-input:${e.id}:tag:${t.value}:${t.index}`,U5=(e,t)=>e.ids?.itemInput?.(t)??`${Tp(e,t)}:input`,j5=e=>`${e}:input`,VS=(e,t)=>e.getById(j5(t)),G5=e=>Ea(_w(e),"[data-part=item]"),W5=(e,t)=>e.getById(U5(e,t)),_w=e=>e.getById(H5(e)),sl=e=>e.getById(F5(e)),Vw=e=>e.getById($5(e)),Oa=e=>Ea(_w(e),"[data-part=item-preview]:not([data-disabled])"),q5=e=>Oa(e)[0],Y5=e=>Oa(e)[Oa(e).length-1],K5=(e,t)=>dm(Oa(e),t,!1),X5=(e,t)=>um(Oa(e),t,!1),Q5=(e,t)=>Oa(e)[t],ll=(e,t)=>_d(Oa(e),t),Z5=(e,t)=>{const i=Vw(e);i&&oE(i,{value:t})},{and:cl,not:ua,or:J5}=Zn();cl(J5(ua("isAtMax"),"allowOverflow"),ua("isInputValueEmpty")),ua("hasHighlightedTag"),cl("hasTags","isCaretAtStart"),cl("hasTags","isCaretAtStart"),cl("hasTags","isCaretAtStart",ua("isLastTagHighlighted")),ua("isCaretAtStart"),cl("isTagEditable","hasHighlightedTag"),ua("isCaretAtStart"),ua("isCaretAtStart");ce()(["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"]);ce()(["index","disabled","value"]);const[zw,Wl]=at({name:"TooltipContext",hookName:"useTooltipContext",providerName:"<TooltipProvider />"}),Dw=C.forwardRef((e,t)=>{const i=Wl(),r=ne(i.getArrowProps(),e);return V.jsx(re.div,{...r,ref:t})});Dw.displayName="TooltipArrow";const Mw=C.forwardRef((e,t)=>{const i=Wl(),r=ne(i.getArrowTipProps(),e);return V.jsx(re.div,{...r,ref:t})});Mw.displayName="TooltipArrowTip";const Lw=C.forwardRef((e,t)=>{const i=Wl(),r=Cn(),o=ne(i.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:V.jsx(re.div,{...o,ref:Qi(r.ref,t)})});Lw.displayName="TooltipContent";const Bw=C.forwardRef((e,t)=>{const i=Wl(),r=ne(i.getPositionerProps(),e);return Cn().unmounted?null:V.jsx(re.div,{...r,ref:t})});Bw.displayName="TooltipPositioner";var Hw=ve("tooltip").parts("trigger","arrow","arrowTip","positioner","content"),ul=Hw.build(),Fw=e=>e.ids?.trigger??`tooltip:${e.id}:trigger`,eL=e=>e.ids?.content??`tooltip:${e.id}:content`,tL=e=>e.ids?.arrow??`tooltip:${e.id}:arrow`,$w=e=>e.ids?.positioner??`tooltip:${e.id}:popper`,Wg=e=>e.getById(Fw(e)),zS=e=>e.getById($w(e)),ji=DP({id:null});function nL(e,t){const{state:i,context:r,send:o,scope:c,prop:u,event:d}=e,g=u("id"),p=!!u("aria-label"),m=i.matches("open","closing"),b=Fw(c),y=eL(c),x=u("disabled"),T=Hd({...u("positioning"),placement:r.get("currentPlacement")});return{open:m,setOpen(E){i.matches("open","closing")!==E&&o({type:E?"open":"close"})},reposition(E={}){o({type:"positioning.set",options:E})},getTriggerProps(){return t.button({...ul.trigger.attrs,id:b,dir:u("dir"),"data-expanded":fe(m),"data-state":m?"open":"closed","aria-describedby":m?y:void 0,onClick(E){E.defaultPrevented||x||u("closeOnClick")&&o({type:"close",src:"trigger.click"})},onFocus(E){queueMicrotask(()=>{E.defaultPrevented||x||d.src!=="trigger.pointerdown"&&Vl()&&o({type:"open",src:"trigger.focus"})})},onBlur(E){E.defaultPrevented||x||g===ji.get("id")&&o({type:"close",src:"trigger.blur"})},onPointerDown(E){E.defaultPrevented||x||iE(E)&&u("closeOnPointerDown")&&g===ji.get("id")&&o({type:"close",src:"trigger.pointerdown"})},onPointerMove(E){E.defaultPrevented||x||E.pointerType!=="touch"&&o({type:"pointer.move"})},onPointerLeave(){x||o({type:"pointer.leave"})},onPointerCancel(){x||o({type:"pointer.leave"})}})},getArrowProps(){return t.element({id:tL(c),...ul.arrow.attrs,dir:u("dir"),style:T.arrow})},getArrowTipProps(){return t.element({...ul.arrowTip.attrs,dir:u("dir"),style:T.arrowTip})},getPositionerProps(){return t.element({id:$w(c),...ul.positioner.attrs,dir:u("dir"),style:T.floating})},getContentProps(){return t.element({...ul.content.attrs,dir:u("dir"),hidden:!m,"data-state":m?"open":"closed",role:p?void 0:"tooltip",id:p?void 0:y,"data-placement":r.get("currentPlacement"),onPointerEnter(){o({type:"content.pointer.move"})},onPointerLeave(){o({type:"content.pointer.leave"})},style:{pointerEvents:u("interactive")?"auto":"none"}})}}}var{and:iL,not:DS}=Zn(),rL={initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"closed",props({props:e}){const t=e.closeOnClick??!0,i=e.closeOnPointerDown??t;return{id:"x",openDelay:400,closeDelay:150,closeOnEscape:!0,interactive:!1,closeOnScroll:!0,disabled:!1,...e,closeOnPointerDown:i,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:i}){e([()=>i("disabled")],()=>{t(["closeIfDisabled"])}),e([()=>i("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:iL("noVisibleTooltip",DS("hasPointerMoveOpened")),target:"opening"},{guard:DS("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:()=>ji.get("id")===null,isVisible:({prop:e})=>e("id")===ji.get("id"),isInteractive:({prop:e})=>!!e("interactive"),hasPointerMoveOpened:({context:e})=>e.get("hasPointerMoveOpened"),isOpenControlled:({prop:e})=>e("open")!==void 0},actions:{setGlobalId:({prop:e})=>{ji.set("id",e("id"))},clearGlobalId:({prop:e})=>{e("id")===ji.get("id")&&ji.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:i,scope:r})=>{if(t.type!=="positioning.set")return;const o=()=>zS(r);return Sn(Wg(r),o,{...i("positioning"),...t.options,defer:!0,listeners:!1,onComplete(c){e.set("currentPlacement",c.placement)}})},toggleVisibility:({prop:e,event:t,send:i})=>{queueMicrotask(()=>{i({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})=>Wd({root:e.getRootNode?.()}),trackPositioning:({context:e,prop:t,scope:i})=>{e.get("currentPlacement")||e.set("currentPlacement",t("positioning").placement);const r=()=>zS(i);return Sn(Wg(i),r,{...t("positioning"),defer:!0,onComplete(o){e.set("currentPlacement",o.placement)}})},trackPointerlockChange:({send:e,scope:t})=>{const i=t.getDoc();return Be(i,"pointerlockchange",()=>e({type:"close",src:"pointerlock:change"}),!1)},trackScroll:({send:e,prop:t,scope:i})=>{if(!t("closeOnScroll"))return;const r=Wg(i);if(!r)return;const c=gE(r).map(u=>Be(u,"scroll",()=>{e({type:"close",src:"scroll"})},{passive:!0,capture:!0}));return()=>{c.forEach(u=>u?.())}},trackStore:({prop:e,send:t})=>{let i;return queueMicrotask(()=>{i=ji.subscribe(()=>{ji.get("id")!==e("id")&&t({type:"close",src:"id.change"})})}),()=>i?.()},trackEscapeKey:({send:e,prop:t})=>t("closeOnEscape")?Be(document,"keydown",r=>{nE(r)||r.key==="Escape"&&(r.stopPropagation(),e({type:"close",src:"keydown.escape"}))},!0):void 0,waitForOpenDelay:({send:e,prop:t})=>{const i=setTimeout(()=>{e({type:"after.openDelay"})},t("openDelay"));return()=>clearTimeout(i)},waitForCloseDelay:({send:e,prop:t})=>{const i=setTimeout(()=>{e({type:"after.closeDelay"})},t("closeDelay"));return()=>clearTimeout(i)}}}};ce()(["aria-label","closeDelay","closeOnEscape","closeOnPointerDown","closeOnScroll","closeOnClick","dir","disabled","getRootNode","id","ids","interactive","onOpenChange","defaultOpen","open","openDelay","positioning"]);const aL=e=>{const t=C.useId(),{getRootNode:i}=pi(),{dir:r}=Zi(),o={id:t,dir:r,getRootNode:i,...e},c=vi(rL,o);return nL(c,Ji)},oL=e=>{const[t,{children:i,...r}]=mi(e),o=aL(r),c=jn(ne({present:o.open},t));return V.jsx(zw,{value:o,children:V.jsx(Jn,{value:c,children:i})})},sL=e=>{const[t,{value:i,children:r}]=mi(e),o=jn(ne({present:i.open},t));return V.jsx(zw,{value:i,children:V.jsx(Jn,{value:o,children:r})})},Uw=C.forwardRef((e,t)=>{const i=Wl(),r=ne(i.getTriggerProps(),e);return V.jsx(re.button,{...r,ref:t})});Uw.displayName="TooltipTrigger";function jw(e,t=[]){const i=Object.assign({},e);for(const r of t)r in i&&delete i[r];return i}const lL=(e,t)=>{if(!e||typeof e!="string")return{invalid:!0,value:e};const[i,r]=e.split("/");if(!i||!r||i==="currentBg")return{invalid:!0,value:i};const o=t(`colors.${i}`),c=t.raw(`opacity.${r}`)?.value;if(!c&&isNaN(Number(r)))return{invalid:!0,value:i};const u=c?Number(c)*100+"%":`${r}%`,d=o??i;return{invalid:!1,color:d,value:`color-mix(in srgb, ${d} ${u}, transparent)`}},Ye=e=>(t,i)=>{const r=i.utils.colorMix(t);if(r.invalid)return{[e]:t};const o="--mix-"+e;return{[o]:r.value,[e]:`var(${o}, ${r.color})`}};function wp(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(i=>wp(i));const t=Object.create(Object.getPrototypeOf(e));for(const i of Object.keys(e))t[i]=wp(e[i]);return t}function Op(e,t){if(t==null)return e;for(const i of Object.keys(t))if(!(t[i]===void 0||i==="__proto__"))if(!en(e[i])&&en(t[i]))Object.assign(e,{[i]:t[i]});else if(e[i]&&en(t[i]))Op(e[i],t[i]);else if(Array.isArray(t[i])&&Array.isArray(e[i])){let r=0;for(;r<t[i].length;r++)en(e[i][r])&&en(t[i][r])?Op(e[i][r],t[i][r]):e[i][r]=t[i][r]}else Object.assign(e,{[i]:t[i]});return e}function Yo(e,...t){for(const i of t)Op(e,i);return e}const Rp=e=>e!=null;function gi(e,t,i={}){const{stop:r,getKey:o}=i;function c(u,d=[]){if(en(u)||Array.isArray(u)){const g={};for(const[p,m]of Object.entries(u)){const b=o?.(p,m)??p,y=[...d,b];if(r?.(u,y))return t(u,d);const x=c(m,y);Rp(x)&&(g[b]=x)}return g}return t(u,d)}return c(e)}function Xd(e,t){return Array.isArray(e)?e.map(i=>Rp(i)?t(i):i):en(e)?gi(e,i=>t(i)):Rp(e)?t(e):e}const zu=["value","type","description"],cL=e=>e&&typeof e=="object"&&!Array.isArray(e),Gw=(...e)=>{const t=Yo({},...e.map(wp));return t.theme?.tokens&&gi(t.theme.tokens,i=>{const c=Object.keys(i).filter(d=>!zu.includes(d)).length>0,u=zu.some(d=>i[d]!=null);return c&&u&&(i.DEFAULT||(i.DEFAULT={}),zu.forEach(d=>{var g;i[d]!=null&&((g=i.DEFAULT)[d]||(g[d]=i[d]),delete i[d])})),i},{stop(i){return cL(i)&&Object.keys(i).some(r=>zu.includes(r)||r!==r.toLowerCase()&&r!==r.toUpperCase())}}),t},uL=e=>e,Tt=e=>e,be=e=>e,dL=e=>e,fL=e=>e,Ko=e=>e,hL=e=>e,gL=e=>e,pL=e=>e;function Ww(){const e=t=>t;return new Proxy(e,{get(){return e}})}const yt=Ww(),Am=Ww(),qw=e=>e,mL=/[^a-zA-Z0-9_\u0081-\uffff-]/g;function vL(e){return`${e}`.replace(mL,t=>`\\${t}`)}const bL=/[A-Z]/g;function yL(e){return e.replace(bL,t=>`-${t.toLowerCase()}`)}function Yw(e,t={}){const{fallback:i="",prefix:r=""}=t,o=yL(["-",r,vL(e)].filter(Boolean).join("-"));return{var:o,ref:`var(${o}${i?`, ${i}`:""})`}}const xL=e=>/^var\(--.+\)$/.test(e),Rt=(e,t)=>t!=null?`${e}(${t})`:t,da=e=>{if(xL(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},MS=e=>({values:["outside","inside","mixed","none"],transform(t,{token:i}){const r=i("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]??{}}}),SL=Ye("borderColor"),Fi=e=>({transition:e,transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"}),CL=uL({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"}),Po=Yw("bg-currentcolor"),LS=e=>e===Po.ref||e==="currentBg",qe=e=>({...e("colors"),currentBg:Po}),EL=qw({conditions:CL,utilities:{background:{values:qe,shorthand:["bg"],transform(e,t){if(LS(t.raw))return{background:Po.ref};const i=Ye("background")(e,t);return{...i,[Po.var]:i?.background}}},backgroundColor:{values:qe,shorthand:["bgColor"],transform(e,t){if(LS(t.raw))return{backgroundColor:Po.ref};const i=Ye("backgroundColor")(e,t);return{...i,[Po.var]:i?.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:qe,transform:Ye("--gradient-from")},gradientTo:{values:qe,transform:Ye("--gradient-to")},gradientVia:{values:qe,transform(e,t){return{...Ye("--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:qe,transform:Ye("borderColor")},borderTopColor:{values:qe,transform:Ye("borderTopColor")},borderBlockStartColor:{values:qe,transform:Ye("borderBlockStartColor")},borderBottomColor:{values:qe,transform:Ye("borderBottomColor")},borderBlockEndColor:{values:qe,transform:Ye("borderBlockEndColor")},borderLeftColor:{values:qe,transform:Ye("borderLeftColor")},borderInlineStartColor:{values:qe,shorthand:["borderStartColor"],transform:Ye("borderInlineStartColor")},borderRightColor:{values:qe,transform:Ye("borderRightColor")},borderInlineEndColor:{values:qe,shorthand:["borderEndColor"],transform:Ye("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:qe,transform:Ye("color")},fill:{values:qe,transform:Ye("fill")},stroke:{values:qe,transform:Ye("stroke")},accentColor:{values:qe,transform:Ye("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:qe,transform(e,t){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":SL(e,t)}}},divideStyle:{property:"borderStyle",transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderStyle:e}}}},boxShadow:{values:"shadows",shorthand:["shadow"]},boxShadowColor:{values:qe,transform:Ye("--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":Rt("blur",e)})},brightness:{transform:e=>({"--brightness":Rt("brightness",e)})},contrast:{transform:e=>({"--contrast":Rt("contrast",e)})},grayscale:{transform:e=>({"--grayscale":Rt("grayscale",e)})},hueRotate:{transform:e=>({"--hue-rotate":Rt("hue-rotate",da(e))})},invert:{transform:e=>({"--invert":Rt("invert",e)})},saturate:{transform:e=>({"--saturate":Rt("saturate",e)})},sepia:{transform:e=>({"--sepia":Rt("sepia",e)})},dropShadow:{transform:e=>({"--drop-shadow":Rt("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":Rt("blur",e)})},backdropBrightness:{transform:e=>({"--backdrop-brightness":Rt("brightness",e)})},backdropContrast:{transform:e=>({"--backdrop-contrast":Rt("contrast",e)})},backdropGrayscale:{transform:e=>({"--backdrop-grayscale":Rt("grayscale",e)})},backdropHueRotate:{transform:e=>({"--backdrop-hue-rotate":Rt("hue-rotate",da(e))})},backdropInvert:{transform:e=>({"--backdrop-invert":Rt("invert",e)})},backdropOpacity:{transform:e=>({"--backdrop-opacity":Rt("opacity",e)})},backdropSaturate:{transform:e=>({"--backdrop-saturate":Rt("saturate",e)})},backdropSepia:{transform:e=>({"--backdrop-sepia":Rt("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:qe,transform:Ye("outlineColor")},focusRing:MS("&:is(:focus, [data-focus])"),focusVisibleRing:MS("&:is(:focus-visible, [data-focus-visible])"),focusRingColor:{values:qe,transform:Ye("--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:i})=>({[i.raw(`breakpoints.${t}`)?`@breakpoint ${t}`:`@media screen and (min-width: ${e})`]:{display:"none"}})},hideBelow:{values:"breakpoints",transform(e,{raw:t,token:i}){return{[i.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:qe,transform:Ye("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:qe,transform:Ye("--ring-color")},ringOffset:{transform:e=>({"--ring-offset-width":e})},ringOffsetColor:{values:qe,transform:Ye("--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:qe,transform:Ye("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":da(e)})},skewY:{transform:e=>({"--skew-y":da(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:da(e)}:{rotate:"var(--rotate-x, 0) var(--rotate-y, 0) var(--rotate-z, 0)"}}},rotateX:{transform(e){return{"--rotate-x":da(e)}}},rotateY:{transform(e){return{"--rotate-y":da(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 Fi("all");case"position":return Fi("left, right, top, bottom, inset-inline, inset-block");case"colors":return Fi("color, background-color, border-color, text-decoration-color, fill, stroke");case"opacity":return Fi("opacity");case"shadow":return Fi("box-shadow");case"transform":return Fi("transform");case"size":return Fi("width, height");case"backgrounds":return Fi("background, background-color, background-image, background-position");case"common":return Fi("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 TL[e]||{}}},debug:{values:{type:"boolean"},transform(e){return e?{outline:"1px solid blue !important","& > *":{outline:"1px solid red !important"}}:{}}},caretColor:{values:qe,transform:Ye("caretColor")},cursor:{values:"cursor"}}}),TL={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 wL="",OL=wL.split(","),RL="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",kL=RL.split(",").concat(OL),NL=new Map(kL.map(e=>[e,!0]));function IL(e){const t=Object.create(null);return i=>(t[i]===void 0&&(t[i]=e(i)),t[i])}var PL=/&|@/,AL=IL(e=>NL.has(e)||e.startsWith("--")||PL.test(e));function Yn(e,t){const i={};for(const r in e){const o=t(r,e[r]);i[o[0]]=o[1]}return i}function Kw(e,t){const i={};return gi(e,(r,o)=>{r&&(i[o.join(".")]=r.value)},{stop:t}),i}var _L=Object.defineProperty,VL=(e,t,i)=>t in e?_L(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,BS=(e,t,i)=>VL(e,typeof t!="symbol"?t+"":t,i);function pd(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(pd).join(",")}]`:t==="object"?`o:{${Object.keys(e).sort().map(r=>`${r}:${pd(e[r])}`).join(",")}}`:String(e)}class zL{constructor(t=500){BS(this,"cache",new Map),BS(this,"maxSize"),this.maxSize=t}get(t){const i=this.cache.get(t);return i!==void 0&&(this.cache.delete(t),this.cache.set(t,i)),i}set(t,i){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,i)}clear(){this.cache.clear()}}const nn=e=>{const t=new zL;function i(...r){const o=r.length===1?pd(r[0]):r.map(pd).join("|");let c=t.get(o);return c===void 0&&(c=e.apply(this,r),t.set(o,c)),c}return i},Xw=16,md="px",_m="em",Sl="rem";function Qw(e=""){const t=new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`),i=new RegExp(`${md}|${_m}|${Sl}`);return e.match(new RegExp(`${t.source}(${i.source})`))?.[1]}function Zw(e=""){if(typeof e=="number")return`${e}px`;const t=Qw(e);if(!t||t===md)return e;if(t===_m||t===Sl)return`${parseFloat(e)*Xw}${md}`}function Jw(e=""){const t=Qw(e);if(!t||t===Sl)return e;if(t===_m)return`${parseFloat(e)}${Sl}`;if(t===md)return`${parseFloat(e)/Xw}${Sl}`}const DL=e=>e.charAt(0).toUpperCase()+e.slice(1);function ML(e){const t=LL(e),i=Object.fromEntries(t);function r(y){return i[y]}function o(y){return To(r(y))}function c(){const y=Object.keys(i),x=BL(y),T=y.flatMap(E=>{const w=r(E),R=[`${E}Down`,To({max:ed(w.min)})],P=[E,To({min:w.min})],I=[`${E}Only`,o(E)];return[P,I,R]}).filter(([,E])=>E!=="").concat(x.map(([E,w])=>{const R=r(E),P=r(w);return[`${E}To${DL(w)}`,To({min:R.min,max:ed(P.min)})]}));return Object.fromEntries(T)}function u(){const y=c();return Object.fromEntries(Object.entries(y))}const d=u(),g=y=>d[y];function p(){return Zp(["base",...Object.keys(i)])}function m(y){return To({min:r(y).min})}function b(y){return To({max:ed(r(y).min)})}return{values:Object.values(i),only:o,keys:p,conditions:d,getCondition:g,up:m,down:b}}function ed(e){const t=parseFloat(Zw(e)??"")-.04;return Jw(`${t}px`)}function LL(e){return Object.entries(e).sort(([,i],[,r])=>parseInt(i,10)<parseInt(r,10)?-1:1).map(([i,r],o,c)=>{let u=null;return o<=c.length-1&&(u=c[o+1]?.[1]),u!=null&&(u=ed(u)),[i,{name:i,min:Jw(r),max:u}]})}function BL(e){const t=[];return e.forEach((i,r)=>{let o=r;o++;let c=e[o];for(;c;)t.push([i,c]),o++,c=e[o]}),t}function To({min:e,max:t}){return e==null&&t==null?"":["@media screen",e&&`(min-width: ${e})`,t&&`(max-width: ${t})`].filter(Boolean).join(" and ")}const HL=/^@|&|&$/,FL=e=>{const{breakpoints:t,conditions:i={}}=e,r=Yn(i,(m,b)=>[`_${m}`,b]),o=Object.assign({},r,t.conditions);function c(){return Object.keys(o)}function u(m){return c().includes(m)||HL.test(m)||m.startsWith("_")}const d=nn(m=>m.filter(b=>b!=="base").sort((b,y)=>{const x=u(b),T=u(y);return x&&!T?1:!x&&T?-1:0}));function g(m){return m.startsWith("@breakpoint")?t.getCondition(m.replace("@breakpoint ","")):m}function p(m){return Reflect.get(o,m)||m}return{keys:c,sort:d,has:u,resolve:p,breakpoints:t.keys(),expandAtRule:g}},Xe=Object.freeze(Object.create(null)),$L=Object.freeze([]);function Qd(){return Object.create(null)}const eO=e=>({minMax:new RegExp(`(!?\\(\\s*min(-device-)?-${e})(.|
16
+ )+\\(\\s*max(-device)?-${e}`,"i"),min:new RegExp(`\\(\\s*min(-device)?-${e}`,"i"),maxMin:new RegExp(`(!?\\(\\s*max(-device)?-${e})(.|
17
+ )+\\(\\s*min(-device)?-${e}`,"i"),max:new RegExp(`\\(\\s*max(-device)?-${e}`,"i")}),UL=eO("width"),jL=eO("height"),tO=e=>({isMin:GS(e.minMax,e.maxMin,e.min),isMax:GS(e.maxMin,e.minMax,e.max)}),{isMin:kp,isMax:HS}=tO(UL),{isMin:Np,isMax:FS}=tO(jL),$S=/print/i,US=/^print$/i,GL=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/,WL=/(\d)/,vl=Number.MAX_VALUE,qL={ch:8.8984375,em:16,rem:16,ex:8.296875,px:1};function jS(e){const t=GL.exec(e)||(kp(e)||Np(e)?WL.exec(e):null);if(!t)return vl;if(t[0]==="0")return 0;const i=parseFloat(t[1]),r=t[2];return i*(qL[r]||1)}function GS(e,t,i){return r=>e.test(r)||!t.test(r)&&i.test(r)}function YL(e,t){const i=$S.test(e),r=US.test(e),o=$S.test(t),c=US.test(t);return i&&o?!r&&c?1:r&&!c?-1:e.localeCompare(t):i?1:o?-1:null}const KL=nn((e,t)=>{const i=YL(e,t);if(i!==null)return i;const r=kp(e)||Np(e),o=HS(e)||FS(e),c=kp(t)||Np(t),u=HS(t)||FS(t);if(r&&u)return-1;if(o&&c)return 1;const d=jS(e),g=jS(t);return d===vl&&g===vl?e.localeCompare(t):d===vl?1:g===vl?-1:d!==g?d>g?o?-1:1:o?1:-1:e.localeCompare(t)});function WS(e){return e.sort(([t],[i])=>KL(t,i))}function nO(e){const t=[],i=[],r={};for(const[u,d]of Object.entries(e))u.startsWith("@media")?t.push([u,d]):u.startsWith("@container")?i.push([u,d]):en(d)?r[u]=nO(d):r[u]=d;const o=WS(t),c=WS(i);return{...r,...Object.fromEntries(o),...Object.fromEntries(c)}}const iO=/\s*!(important)?/i,XL=nn(e=>Kn(e)?iO.test(e):!1),QL=nn(e=>Kn(e)?e.replace(iO,"").trim():e);function rO(e){const{transform:t,conditions:i,normalize:r}=e,o=e3(e);return nn(function(...u){const d=o(...u),g=r(d),p=Qd();return gi(g,(m,b)=>{const y=XL(m);if(m==null)return;const[x,...T]=i.sort(b).map(i.resolve);y&&(m=QL(m));let E=t(x,m)??Xe;E=gi(E,w=>Kn(w)&&y?`${w} !important`:w,{getKey:w=>i.expandAtRule(w)}),ZL(p,T.flat(),E)}),nO(p)})}function ZL(e,t,i){let r=e;for(const o of t)o&&(r[o]||(r[o]=Qd()),r=r[o]);Yo(r,i)}function JL(...e){return e.filter(t=>{if(!en(t))return!1;const i=Bl(t);return Object.keys(i).length>0})}function e3(e){function t(i){const r=JL(...i);return r.length===1?r:r.map(o=>e.normalize(o))}return nn(function(...r){return Yo({},...t(r))})}const aO=e=>({base:Xe,variants:Xe,defaultVariants:Xe,compoundVariants:[],...e});function t3(e){const{css:t,conditions:i,normalize:r,layers:o}=e;function c(d={}){const g=aO(d),{base:p,defaultVariants:m,compoundVariants:b}=g,y=Yn(g.variants,(I,O)=>[I,Yn(O,(k,U)=>[k,r(U)])]),x=rO({conditions:i,normalize:r,transform(I,O){return y[I]?.[O]}}),T=(I={})=>{const O=r({...m,...Bl(I)});let k={...p};Yo(k,x(O));const U=u(b,O);return o.wrap("recipes",t(k,U))},E=Object.keys(y),w=I=>{const O=jw(I,["recipe"]),[k,U]=_o(O,E),H=E.includes("colorPalette"),G=E.includes("orientation");return H||(k.colorPalette=I.colorPalette||m.colorPalette),G&&(U.orientation=I.orientation),[k,U]},R=Yn(y,(I,O)=>[I,Object.keys(O)]);return Object.assign(I=>t(T(I)),{className:d.className,__cva__:!0,variantMap:R,variantKeys:E,raw:T,config:d,splitVariantProps:w,merge(I){return c(n3(e)(this,I))}})}function u(d,g){let p=Xe;return d.forEach(m=>{Object.entries(m).every(([y,x])=>y==="css"?!0:(Array.isArray(x)?x:[x]).some(E=>g[y]===E))&&(p=t(p,m.css))}),p}return c}function n3(e){const{css:t}=e;return function(r,o){const c=aO(o.config),u=Zp(r.variantKeys,Object.keys(o.variants)),d=t(r.base,c.base),g=Object.fromEntries(u.map(y=>[y,t(r.config.variants[y],c.variants[y])])),p=Yo(r.config.defaultVariants,c.defaultVariants),m=[...r.compoundVariants,...c.compoundVariants];return{className:Fn(r.className,o.className),base:d,variants:g,defaultVariants:p,compoundVariants:m}}}const i3={reset:"reset",base:"base",tokens:"tokens",recipes:"recipes"},qS={reset:0,base:1,tokens:2,recipes:3};function r3(e){const t=e.layers??i3,r=Object.values(t).sort((o,c)=>qS[o]-qS[c]);return{names:r,atRule:`@layer ${r.join(", ")};`,wrap(o,c){return e.disableLayers?c:{[`@layer ${t[o]}`]:c}}}}function a3(e){const{utility:t,normalize:i}=e,{hasShorthand:r,resolveShorthand:o}=t;return function(c){return gi(c,i,{stop:u=>Array.isArray(u),getKey:r?o:void 0})}}function o3(e){const{preflight:t}=e;if(!t)return{};const{scope:i="",level:r="parent"}=en(t)?t:{};let o="";i&&r==="parent"?o=`${i} `:i&&r==="element"&&(o=`&${i}`);const c={"*":{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"}},u={[i||"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 d=Object.entries(c).reduce((g,[p,m])=>(g[p]={[o]:m},g),{});Object.assign(u,d)}else o?u[o]=c:Object.assign(u,c);return u}function s3(e){const{conditions:t,isValidProperty:i}=e;return function(o){return gi(o,c=>c,{getKey:(c,u)=>en(u)&&!t.has(c)&&!i(c)?c3(c).map(d=>{const g=d.startsWith("&")?d.slice(1):d;return l3(g)?`${g} &`:`&${g}`}).join(", "):c})}}function l3(e){const t=e.toLowerCase();return t.startsWith(":host-context")||t.startsWith(":host")||t.startsWith("::slotted")}function c3(e){const t=[];let i=0,r="",o=!1;for(let c=0;c<e.length;c++){const u=e[c];if(u==="\\"&&!o){o=!0,r+=u;continue}if(o){o=!1,r+=u;continue}u==="("?i++:u===")"&&i--,u===","&&i===0?(t.push(r.trim()),r=""):r+=u}return r&&t.push(r.trim()),t}const u3=(e=Xe)=>{const t=o=>({base:e.base?.[o]??Xe,variants:Qd(),defaultVariants:e.defaultVariants??Xe,compoundVariants:e.compoundVariants?d3(e.compoundVariants,o):$L}),r=(e.slots??[]).map(o=>[o,t(o)]);for(const[o,c]of Object.entries(e.variants??{}))for(const[u,d]of Object.entries(c))r.forEach(([g,p])=>{var m;(m=p.variants)[o]??(m[o]={}),p.variants[o][u]=d[g]??Xe});return Object.fromEntries(r)},d3=(e,t)=>e.filter(i=>i.css[t]).map(i=>({...i,css:i.css[t]}));function f3(e){const{cva:t}=e;return function(r=Xe){const o=Object.entries(u3(r)).map(([b,y])=>[b,t(y)]);function c(b){const y=o.map(([x,T])=>[x,T(b)]);return Object.fromEntries(y)}const u=r.variants??Xe,d=Object.keys(u);function g(b){const y=jw(b,["recipe"]),[x,T]=_o(y,d),E=d.includes("colorPalette"),w=d.includes("orientation");return E||(x.colorPalette=b.colorPalette||r.defaultVariants?.colorPalette),w&&(T.orientation=b.orientation),[x,T]}const p=Yn(u,(b,y)=>[b,Object.keys(y)]);let m={};return r.className&&(m=Object.fromEntries(r.slots.map(b=>[b,`${r.className}__${b}`]))),Object.assign(c,{variantMap:p,variantKeys:d,splitVariantProps:g,classNameMap:m})}}const h3=()=>e=>Array.from(new Set(e)),g3=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,p3=function(e,t){return t?e==="\0"?"�":e==="-"&&e.length===1?"\\-":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16):"\\"+e},oO=e=>(e+"").replace(g3,p3),sO=(e,t)=>{let i="",r=0,o="char",c="",u="";const d=[];for(;r<e.length;){const g=e[r];if(g==="{"){const m=e.indexOf("}",r);if(m===-1)break;const b=e.slice(r+1,m),y=t(b);i+=y??b,r=m+1;continue}if(o==="token"&&g===","){e[r]===""&&r++,o="fallback",d.push(o);const m=t(c);m?.endsWith(")")&&(i+=m.slice(0,-1)),c="",u="";continue}if(o==="fallback"&&u+g===", var("){const y=m3(e.slice(r+1))+r+1,x=e.slice(r+1,y);if(y===-1)break;i+=", var("+x+")",r=y+1,o=d.pop()??o,u="";continue}if(o==="token"||o==="fallback"){if(r++,g===")"){o=d.pop()??o??"char",u+=g;const m=c&&(t(c)??oO(c));if(u){if(u=u.slice(1).trim(),!u.startsWith("token(")&&u.endsWith(")")&&(u=u.slice(0,-1)),u.includes("token(")){const y=sO(u,t);y&&(u=y.slice(0,-1))}else if(u){const y=t(u);y&&(u=y)}}const b=i.at(-1);u?b?.trim()?i+=m.slice(0,-1)+(", "+u+")"):i+=u:i+=m||")",c="",u="",o="char";continue}o==="token"&&(c+=g),o==="fallback"&&(u+=g);continue}const p=e.indexOf("token(",r);if(p!==-1){const m=p+6;i+=e.slice(r,p),r=m,o="token",d.push(o);continue}i+=g,r++}return i},m3=e=>{let t=0;const i=["("];for(;t<e.length;){const r=e[t];if(r==="(")i.push(r);else if(r===")"&&(i.pop(),i.length===0))return t;t++}return t};function lO(e){const t={};return e.forEach((i,r)=>{i instanceof Map?t[r]=Object.fromEntries(i):t[r]=i}),t}const cO=/({([^}]*)})/g,v3=/[{}]/g,b3=/\w+\.\w+/,uO=e=>{if(!Kn(e))return[];const t=e.match(cO);return t?t.map(i=>i.replace(v3,"").trim()):[]},y3=e=>cO.test(e);function dO(e){if(!e.extensions?.references)return e.extensions?.cssVar?.ref??e.value;const t=e.extensions.references??{};let i=e.value;const r=Object.keys(t);for(let o=0;o<r.length;o++){const c=r[o],u=t[c];if(u.extensions.conditions)continue;const d=dO(u);i=i.replace(`{${c}}`,d)}return e.value=i,delete e.extensions.references,e.value}const x3=/calc/g;function fO(e){return en(e)&&e.reference?e.reference:String(e)}const Zd=(e,...t)=>t.map(fO).join(` ${e} `).replace(x3,""),YS=(...e)=>`calc(${Zd("+",...e)})`,KS=(...e)=>`calc(${Zd("-",...e)})`,Ip=(...e)=>`calc(${Zd("*",...e)})`,XS=(...e)=>`calc(${Zd("/",...e)})`,QS=e=>{const t=fO(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Ip(t,-1)},Ro=Object.assign(e=>({add:(...t)=>Ro(YS(e,...t)),subtract:(...t)=>Ro(KS(e,...t)),multiply:(...t)=>Ro(Ip(e,...t)),divide:(...t)=>Ro(XS(e,...t)),negate:()=>Ro(QS(e)),toString:()=>e.toString()}),{add:YS,subtract:KS,multiply:Ip,divide:XS,negate:QS}),S3={enforce:"pre",transform(e){const{prefix:t,allTokens:i,formatCssVar:r,formatTokenName:o,registerToken:c}=e;i.filter(({extensions:d})=>d.category==="spacing").forEach(d=>{const g=d.path.slice(),p=r(g,t);if(Kn(d.value)&&d.value==="0rem")return;const m=[...d.path],b=m[m.length-1];b!=null&&(m[m.length-1]=`-${b}`);const y={...d,value:Ro.negate(p.ref),name:o(m),path:m,extensions:{...d.extensions,negative:!0,prop:`-${d.extensions.prop}`,originalPath:g}};c(y)})}},C3=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),E3={enforce:"post",transform(e){e.allTokens.filter(i=>C3.has(i.extensions.category)&&!i.extensions.negative).forEach(i=>{Object.assign(i.extensions,{pixelValue:Zw(i.value)})})}},T3={enforce:"post",transform(e){const{allTokens:t,registerToken:i,formatTokenName:r}=e,o=t.filter(({extensions:d})=>d.category==="colors"),c=new Map,u=new Map;o.forEach(d=>{const{colorPalette:g}=d.extensions;g&&(g.keys.forEach(p=>{c.set(r(p),p)}),g.roots.forEach(p=>{const m=r(p),b=u.get(m)||[];if(b.push(d),u.set(m,b),d.extensions.default&&p.length===1){const y=g.keys[0]?.filter(Boolean);if(!y.length)return;const x=p.concat(y);c.set(r(x),[])}}))}),c.forEach(d=>{const g=["colors","colorPalette",...d].filter(Boolean),p=r(g),m=r(g.slice(1));i({name:p,value:p,originalValue:p,path:g,extensions:{condition:"base",originalPath:g,category:"colors",prop:m,virtual:!0}},"pre")})}},w3={enforce:"post",transform(e){e.allTokens=e.allTokens.filter(t=>t.value!=="")}},O3=[S3,T3,E3,w3],R3={type:"extensions",enforce:"pre",name:"tokens/css-var",transform(e,t){const{prefix:i,formatCssVar:r}=t,{negative:o,originalPath:c}=e.extensions,u=o?c:e.path;return{cssVar:r(u.filter(Boolean),i)}}},k3={enforce:"post",type:"value",name:"tokens/conditionals",transform(e,t){const{prefix:i,formatCssVar:r}=t,o=uO(e.value);return o.length&&o.forEach(c=>{const u=r(c.split("."),i);e.value=e.value.replace(`{${u.ref}}`,u)}),e.value}},N3={type:"extensions",enforce:"pre",name:"tokens/colors/colorPalette",match(e){return e.extensions.category==="colors"&&!e.extensions.virtual},transform(e,t){let i=e.path.slice();if(i.pop(),i.shift(),i.length===0){const d=[...e.path];d.shift(),i=d}if(i.length===0)return{};const r=i.reduce((d,g,p,m)=>{const b=m.slice(0,p+1);return d.push(b),d},[]),o=i[0],c=t.formatTokenName(i),u=e.path.slice(e.path.indexOf(o)+1).reduce((d,g,p,m)=>(d.push(m.slice(p)),d),[]);return u.length===0&&u.push([""]),{colorPalette:{value:c,roots:r,keys:u}}}},I3=[R3,k3,N3],ZS=e=>en(e)&&Object.prototype.hasOwnProperty.call(e,"value");function P3(e){return e?{breakpoints:Xd(e,t=>({value:t})),sizes:Yn(e,(t,i)=>[`breakpoint-${t}`,{value:i}])}:{breakpoints:{},sizes:{}}}function A3(e){const{prefix:t="",tokens:i={},semanticTokens:r={},breakpoints:o={}}=e,c=te=>te.join("."),u=(te,J)=>Yw(te.join("-"),{prefix:J}),d=[],g=new Map,p=new Map,m=new Map,b=new Map,y=new Map,x=new Map,T=new Map,E=new Map,w=[];function R(te,J){d.push(te),g.set(te.name,te),J&&E.forEach(we=>{we.enforce===J&&ye(we,te)})}const P=P3(o),I=Bl({...i,breakpoints:P.breakpoints,sizes:{...i.sizes,...P.sizes}});function O(){gi(I,(te,J)=>{const we=J.includes("DEFAULT");J=JS(J);const Ae=J[0],Ke=c(J),ft=Kn(te)?{value:te}:te,It={value:ft.value,originalValue:ft.value,name:Ke,path:J,extensions:{condition:"base",originalPath:J,category:Ae,prop:c(J.slice(1))}};we&&(It.extensions.default=!0),R(It)},{stop:ZS}),gi(r,(te,J)=>{const we=J.includes("DEFAULT");J=hO(JS(J));const Ae=J[0],Ke=c(J),ft=Kn(te.value)?{value:{base:te.value}}:te,It={value:ft.value.base||"",originalValue:ft.value.base||"",name:Ke,path:J,extensions:{originalPath:J,category:Ae,conditions:ft.value,condition:"base",prop:c(J.slice(1))}};we&&(It.extensions.default=!0),R(It)},{stop:ZS})}function k(te){return g.get(te)}function U(te){const{condition:J}=te.extensions;J&&(p.has(J)||p.set(J,new Set),p.get(J).add(te))}function H(te){const{category:J,prop:we}=te.extensions;J&&(T.has(J)||T.set(J,new Map),T.get(J).set(we,te))}function G(te){const{condition:J,negative:we,virtual:Ae,cssVar:Ke}=te.extensions;we||Ae||!J||!Ke||(m.has(J)||m.set(J,new Map),m.get(J).set(Ke.var,te.value))}function z(te){const{category:J,prop:we,cssVar:Ae,negative:Ke}=te.extensions;if(!J)return;x.has(J)||x.set(J,new Map);const ft=Ke?te.extensions.conditions?te.originalValue:te.value:Ae.ref;x.get(J).set(we,ft),y.set([J,we].join("."),ft)}function M(te){const{colorPalette:J,virtual:we,default:Ae}=te.extensions;!J||we||J.roots.forEach(Ke=>{const ft=c(Ke);b.has(ft)||b.set(ft,new Map);const It=V3([...te.path],[...Ke]),tr=c(It),Fr=k(tr);if(!Fr||!Fr.extensions.cssVar)return;const{var:nf}=Fr.extensions.cssVar;if(b.get(ft).set(nf,te.extensions.cssVar.ref),Ae&&Ke.length===1){const Jl=c(["colors","colorPalette"]),Pa=k(Jl);if(!Pa)return;const Jo=c(te.path),Aa=k(Jo);if(!Aa)return;const ec=J.keys[0]?.filter(Boolean);if(!ec.length)return;const es=c(Ke.concat(ec));b.has(es)||b.set(es,new Map),b.get(es).set(Pa.extensions.cssVar.var,Aa.extensions.cssVar.ref)}})}let W={};function Q(){d.forEach(te=>{U(te),H(te),G(te),z(te),M(te)}),W=lO(x)}const ue=(te,J)=>{if(!te||typeof te!="string")return{invalid:!0,value:te};const[we,Ae]=te.split("/");if(!we||!Ae)return{invalid:!0,value:we};const Ke=J(we),ft=k(`opacity.${Ae}`)?.value;if(!ft&&isNaN(Number(Ae)))return{invalid:!0,value:we};const It=ft?Number(ft)*100+"%":`${Ae}%`,tr=Ke??we;return{invalid:!1,color:tr,value:`color-mix(in srgb, ${tr} ${It}, transparent)`}},he=nn((te,J)=>y.get(te)??J),ge=nn(te=>W[te]||null),F=nn(te=>sO(te,J=>{if(!J)return;if(J.includes("/")){const Ae=ue(J,Ke=>he(Ke));if(Ae.invalid)throw new Error("Invalid color mix at "+J+": "+Ae.value);return Ae.value}const we=he(J);return we||(b3.test(J)?oO(J):J)})),ee={prefix:t,allTokens:d,tokenMap:g,registerToken:R,getByName:k,formatTokenName:c,formatCssVar:u,flatMap:y,cssVarMap:m,categoryMap:T,colorPaletteMap:b,getVar:he,getCategoryValues:ge,expandReferenceInValue:F};function se(...te){te.forEach(J=>{E.set(J.name,J)})}function ae(...te){w.push(...te)}function ye(te,J){if(J.extensions.references||Qp(te.match)&&!te.match(J))return;const Ae=(Ke=>te.transform(Ke,ee))(J);switch(!0){case te.type==="extensions":Object.assign(J.extensions,Ae);break;case te.type==="value":J.value=Ae;break;default:J[te.type]=Ae;break}}function A(te){w.forEach(J=>{J.enforce===te&&J.transform(ee)})}function Y(te){E.forEach(J=>{J.enforce===te&&d.forEach(we=>{ye(J,we)})})}function ie(){d.forEach(te=>{const J=_3(te);!J||J.length===0||J.forEach(we=>{R(we)})})}function oe(te){const J=uO(te),we=[];for(let Ae=0;Ae<J.length;Ae++){const Ke=k(J[Ae]);Ke&&we.push(Ke)}return we}function Se(){d.forEach(te=>{if(!y3(te.value))return;const J=oe(te.value);te.extensions.references=J.reduce((we,Ae)=>(we[Ae.name]=Ae,we),{})})}function Te(){d.forEach(te=>{dO(te)})}function _e(){A("pre"),Y("pre"),ie(),Se(),Te(),A("post"),Y("post"),Q()}return O(),se(...I3),ae(...O3),_e(),ee}function JS(e){return e[0]==="DEFAULT"?e:e.filter(t=>t!=="DEFAULT")}function hO(e){return e.filter(t=>t!=="base")}function _3(e){if(!e.extensions.conditions)return;const{conditions:t}=e.extensions,i=[];return gi(t,(r,o)=>{const c=hO(o);if(!c.length)return;const u={...e,value:r,extensions:{...e.extensions,condition:c.join(":")}};i.push(u)}),i}function V3(e,t){const i=e.findIndex((r,o)=>t.every((c,u)=>e[o+u]===c));return i===-1||(e.splice(i,t.length),e.splice(i,0,"colorPalette")),e}h3()(["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 z3(e){return Yn(e,(t,i)=>[t,i])}function D3(e){const t=z3(e.config),i=e.tokens,r=new Map,o=new Map;function c(G,z){t[G]=z,u(G,z)}const u=(G,z)=>{const M=E(z);M&&(o.set(G,M),b(G,z))},d=()=>{for(const[G,z]of Object.entries(t))z&&u(G,z)},g=()=>{for(const[G,z]of Object.entries(t)){const{shorthand:M}=z??{};if(!M)continue;(Array.isArray(M)?M:[M]).forEach(Q=>r.set(Q,G))}},p=()=>{const G=lO(i.colorPaletteMap);c("colorPalette",{values:Object.keys(G),transform:nn(z=>G[z])})},m=new Map,b=(G,z)=>{if(!z)return;const M=E(z,Q=>`type:Tokens["${Q}"]`);if(typeof M=="object"&&M.type){m.set(G,new Set([`type:${M.type}`]));return}if(M){const Q=new Set(Object.keys(M));m.set(G,Q)}const W=m.get(G)??new Set;z.property&&m.set(G,W.add(`CssProperties["${z.property}"]`))},y=()=>{for(const[G,z]of Object.entries(t))z&&b(G,z)},x=(G,z)=>{const M=m.get(G)??new Set;m.set(G,new Set([...M,...z]))},T=()=>{const G=new Map;for(const[z,M]of m.entries()){if(M.size===0){G.set(z,["string"]);continue}const W=Array.from(M).map(Q=>Q.startsWith("CssProperties")?Q:Q.startsWith("type:")?Q.replace("type:",""):JSON.stringify(Q));G.set(z,W)}return G},E=(G,z)=>{const{values:M}=G,W=Q=>{const ue=z?.(Q);return ue?{[ue]:ue}:void 0};if(Kn(M))return W?.(M)??i.getCategoryValues(M)??Xe;if(Array.isArray(M)){const Q={};for(let ue=0;ue<M.length;ue++)Q[M[ue]]=M[ue];return Q}return Qp(M)?M(z?W:i.getCategoryValues):M},w=nn((G,z)=>({[G]:G.startsWith("--")?i.getVar(z,z):z})),R=Object.assign(i.getVar,{raw:G=>i.getByName(G)}),P=nn((G,z)=>{const M=k(G);Kn(z)&&!z.includes("_EMO_")&&(z=i.expandReferenceInValue(z));const W=t[M];if(!W)return w(M,z);const Q=o.get(M)?.[z];if(!W.transform)return w(G,Q??z);const ue=he=>lL(he,R);return W.transform(Q??z,{raw:z,token:R,utils:{colorMix:ue}})});function I(){g(),p(),d(),y()}I();const O=r.size>0,k=nn(G=>r.get(G)??G);return{keys:()=>[...Array.from(r.keys()),...Object.keys(t)],hasShorthand:O,transform:P,shorthands:r,resolveShorthand:k,register:c,getTypes:T,addPropertyType:x}}function M3(...e){const t=Gw(...e),{theme:i={},utilities:r={},globalCss:o={},cssVarsRoot:c=":where(:root, :host)",cssVarsPrefix:u="chakra",preflight:d}=t,g=r3(t),p=A3({breakpoints:i.breakpoints,tokens:i.tokens,semanticTokens:i.semanticTokens,prefix:u}),m=ML(i.breakpoints??Xe),b=FL({conditions:t.conditions??Xe,breakpoints:m}),y=D3({config:r,tokens:p});function x(){const{textStyles:ae,layerStyles:ye,animationStyles:A}=i,Y=Bl({textStyle:ae,layerStyle:ye,animationStyle:A});for(const[ie,oe]of Object.entries(Y)){const Se=Kw(oe??Xe,gO);y.register(ie,{values:Object.keys(Se),transform(Te){return I(Se[Te])}})}}x(),y.addPropertyType("animationName",Object.keys(i.keyframes??Xe));const T=new Set(["css",...y.keys(),...b.keys()]),E=nn(ae=>T.has(ae)||AL(ae)),w=ae=>{if(Array.isArray(ae)){const ye=Qd();for(let A=0;A<ae.length;A++){const Y=ae[A];if(Y!=null){const ie=b.breakpoints[A];ye[ie]=Y}}return ye}return ae},R=a3({utility:y,normalize:w}),P=s3({conditions:b,isValidProperty:E}),I=rO({transform:y.transform,conditions:b,normalize:R}),O=t3({css:I,conditions:b,normalize:R,layers:g}),k=f3({cva:O});function U(){const ae={};for(const[ye,A]of p.cssVarMap.entries()){const Y=Object.fromEntries(A);if(Object.keys(Y).length===0)continue;const ie=ye==="base"?c:b.resolve(ye),oe=ie.startsWith("@"),Se=I(P({[ie]:oe?{[c]:Y}:Y}));Yo(ae,Se)}return g.wrap("tokens",ae)}function H(){const ae=Yn(i.keyframes??Xe,(A,Y)=>[`@keyframes ${A}`,Y]),ye=Object.assign({},ae,I(P(o)));return g.wrap("base",ye)}function G(ae){return _o(ae,E)}function z(){const ae=o3({preflight:d});return g.wrap("reset",ae)}const M=L3(p),W=(ae,ye)=>M.get(ae)?.value||ye;W.var=(ae,ye)=>M.get(ae)?.variable||ye;function Q(ae,ye){return i.recipes?.[ae]??ye}function ue(ae,ye){return i.slotRecipes?.[ae]??ye}function he(ae){return Object.hasOwnProperty.call(i.recipes??Xe,ae)}function ge(ae){return Object.hasOwnProperty.call(i.slotRecipes??Xe,ae)}function F(ae){return he(ae)||ge(ae)}const ee=[z(),H(),U()],se={layerStyles:qg(i.layerStyles??Xe),textStyles:qg(i.textStyles??Xe),animationStyles:qg(i.animationStyles??Xe),tokens:eC(p,Object.keys(i.tokens??Xe),(ae,ye)=>!ae.extensions.conditions&&!ye.includes("colorPalette")),semanticTokens:eC(p,Object.keys(i.semanticTokens??Xe),ae=>!!ae.extensions.conditions),keyframes:tC(i.keyframes??Xe),breakpoints:tC(i.breakpoints??Xe)};return{$$chakra:!0,_config:t,_global:ee,breakpoints:m,tokens:p,conditions:b,utility:y,token:W,properties:T,layers:g,isValidProperty:E,splitCssProps:G,normalizeValue:w,getTokenCss:U,getGlobalCss:H,getPreflightCss:z,css:I,cva:O,sva:k,getRecipe:Q,getSlotRecipe:ue,hasRecipe:F,isRecipe:he,isSlotRecipe:ge,query:se}}function L3(e){const t=new Map;return e.allTokens.forEach(i=>{const{cssVar:r,virtual:o,conditions:c}=i.extensions,u=c||o?r.ref:i.value;t.set(i.name,{value:u,variable:r.ref})}),t}const gO=e=>en(e)&&"value"in e,qg=e=>({list(){return Object.keys(Kw(e,gO))},search(t){return this.list().filter(i=>i.includes(t))}}),eC=(e,t,i)=>({categoryKeys:t,list(r){const o=e.categoryMap.get(r),c=o?[...o.entries()]:[],u=[];for(let d=0;d<c.length;d++){const[g,p]=c[d];i(p,g)&&u.push(g)}return u},search(r,o){return this.list(r).filter(c=>c.includes(o))}}),tC=e=>({list(){return Object.keys(e)},search(t){return this.list().filter(i=>i.includes(t))}}),B3={sm:"480px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},Yg="var(--chakra-empty,/*!*/ /*!*/)",H3=fL({"*":{fontFeatureSettings:'"cv11"',"--ring-inset":Yg,"--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}`,Yg])),...Object.fromEntries(["blur","brightness","contrast","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(e=>[`--backdrop-${e}`,Yg])),"--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"}}),F3=pL({"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:{}}}),$3=gL({"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"}}}),Vm=Tt({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"}}),U3=Tt({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"}}),Dt=Tt({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:j3,defaultVariants:G3}=Vm,W3=Tt({className:"chakra-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"l2"},variants:j3,defaultVariants:G3}),pO=Tt({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"}}),q3=Tt({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"}}}}),Y3=Tt({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"}}),K3=Tt({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"}}),vt=Tt({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"}}),X3=Tt({className:"chakra-input-addon",base:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap",alignSelf:"stretch",borderRadius:"l2"},variants:{size:vt.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"}}),Q3=Tt({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"}}),Z3=Tt({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"}}),J3=Tt({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:{}}}}),Mt=Tt({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"}}),e4=Tt({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"}}),t4=Tt({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}}),n4=Tt({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"}}}),i4=Tt({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"}}),r4=Tt({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"}}),a4={badge:Vm,button:U3,code:W3,container:q3,heading:Y3,input:vt,inputAddon:X3,kbd:Q3,link:Z3,mark:J3,separator:e4,skeleton:t4,skipNavLink:n4,spinner:i4,textarea:r4,icon:K3,checkmark:Dt,radiomark:Mt,colorSwatch:pO},o4=Am.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}"}}}}),s4=Am.radii({l1:{value:"{radii.xs}"},l2:{value:"{radii.sm}"},l3:{value:"{radii.md}"}}),l4=Am.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}"}}}),c4=jE.extendWith("itemBody"),u4=ve("action-bar").parts("positioner","content","separator","selectionTrigger","closeTrigger"),d4=ve("alert").parts("title","description","root","indicator","content"),f4=ve("breadcrumb").parts("link","currentLink","item","list","root","ellipsis","separator"),h4=ve("blockquote").parts("root","icon","content","caption"),g4=ve("card").parts("root","header","body","footer","title","description"),p4=ve("checkbox-card",["root","control","label","description","addon","indicator","content"]),m4=ve("data-list").parts("root","item","itemLabel","itemValue"),v4=Rm.extendWith("header","body","footer","backdrop"),b4=Rm.extendWith("header","body","footer","backdrop"),y4=L1.extendWith("textarea"),x4=ve("empty-state",["root","content","indicator","title","description"]),S4=H1.extendWith("requiredIndicator"),C4=$1.extendWith("content"),E4=U1.extendWith("itemContent","dropzoneContent","fileText"),T4=ve("list").parts("root","item","indicator"),w4=gT.extendWith("itemCommand"),O4=ve("select").parts("root","field","indicator"),R4=LT.extendWith("header","body","footer"),mO=Pm.extendWith("itemAddon","itemIndicator"),k4=mO.extendWith("itemContent","itemDescription"),N4=GT.extendWith("itemIndicator"),I4=sw.extendWith("indicatorGroup"),P4=gD.extendWith("indicatorGroup","empty"),A4=hw.extendWith("markerIndicator"),_4=ve("stat").parts("root","label","helpText","valueText","valueUnit","indicator"),V4=ve("status").parts("root","indicator"),z4=ve("steps",["root","list","item","trigger","indicator","separator","content","title","description","nextTrigger","prevTrigger","progress"]),D4=bw.extendWith("indicator"),M4=ve("table").parts("root","header","body","row","columnHeader","cell","footer","caption"),L4=ve("toast").parts("root","title","description","indicator","closeTrigger","actionTrigger"),B4=ve("tabs").parts("root","trigger","list","content","contentGroup","indicator"),H4=ve("tag").parts("root","label","closeTrigger","startElement","endElement"),F4=ve("timeline").parts("root","item","content","separator","indicator","connector","title","description"),$4=Dz.extendWith("channelText"),U4=ve("code-block",["root","content","title","header","footer","control","overlay","code","codeText","copyTrigger","copyIndicator","collapseTrigger","collapseIndicator","collapseText"]),j4=FE.extendWith("resizeTriggerSeparator","resizeTriggerIndicator");f1.extendWith("valueText");const G4=UD,W4=be({className:"chakra-accordion",slots:c4.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"}}),q4=be({className:"chakra-action-bar",slots:u4.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"}}}),Y4=be({slots:d4.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}}),K4=be({slots:qE.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"}}),X4=be({className:"chakra-blockquote",slots:h4.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"}}),Q4=be({className:"chakra-breadcrumb",slots:f4.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"}}),Z4=be({className:"chakra-card",slots:g4.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"}}),J4=be({className:"carousel",slots:gz.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:{}}),e6=be({slots:o1.keys(),className:"chakra-checkbox",base:{root:{display:"inline-flex",gap:"2",alignItems:"center",verticalAlign:"top",position:"relative"},control:Dt.base,label:{fontWeight:"medium",userSelect:"none",_disabled:{opacity:"0.5"}}},variants:{size:{xs:{root:{gap:"1.5"},label:{textStyle:"xs"},control:Dt.variants?.size?.xs},sm:{root:{gap:"2"},label:{textStyle:"sm"},control:Dt.variants?.size?.sm},md:{root:{gap:"2.5"},label:{textStyle:"sm"},control:Dt.variants?.size?.md},lg:{root:{gap:"3"},label:{textStyle:"md"},control:Dt.variants?.size?.lg}},variant:{outline:{control:Dt.variants?.variant?.outline},solid:{control:Dt.variants?.variant?.solid},subtle:{control:Dt.variants?.variant?.subtle}}},defaultVariants:{variant:"solid",size:"md"}}),t6=be({slots:p4.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:Dt.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:Dt.variants?.size.sm},md:{root:{textStyle:"sm"},control:{padding:"4",gap:"2.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:Dt.variants?.size.md},lg:{root:{textStyle:"md"},control:{padding:"4",gap:"3.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:Dt.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:Dt.variants?.variant.solid},subtle:{root:{bg:"bg.muted"},control:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},indicator:Dt.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:Dt.variants?.variant.solid},solid:{root:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},indicator:Dt.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"}}),n6=be({slots:U4.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"}}),i6=be({slots:CE.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"}}}}}),r6=be({className:"colorPicker",slots:$4.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:{...pO.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:{...vt.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:vt.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:vt.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:vt.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:vt.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:vt.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:vt.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:vt.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:vt.variants?.variant?.outline,trigger:{borderWidth:"1px"}},subtle:{channelInput:vt.variants?.variant?.subtle,trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}}},defaultVariants:{size:"md",variant:"outline"}}),a6=be({className:"chakra-combobox",slots:P4.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"}}),o6=be({slots:m4.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"}}),s6=be({slots:v4.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"}}),l6=be({slots:b4.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"}}),nC=Ko({fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent",borderRadius:"l2"}),c6=be({slots:y4.keys(),className:"chakra-editable",base:{root:{display:"inline-flex",alignItems:"center",position:"relative",gap:"1.5",width:"full"},preview:{...nC,py:"1",px:"1",display:"inline-flex",alignItems:"center",transitionProperty:"common",transitionDuration:"moderate",cursor:"text",_hover:{bg:"bg.muted"},_disabled:{userSelect:"none"}},input:{...nC,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"}}),u6=be({slots:x4.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"}}),d6=be({className:"chakra-field",slots:S4.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"}}),f6=be({className:"fieldset",slots:C4.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"}}),h6=be({className:"chakra-file-upload",slots:E4.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:{}}),g6=be({className:"chakra-hover-card",slots:j1.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"}}),p6=be({className:"chakra-list",slots:T4.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"}}),m6=be({className:"chakra-listbox",slots:G4.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"}}),v6=be({className:"chakra-menu",slots:w4.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"}}),td=be({className:"chakra-select",slots:I4.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"}}),b6=be({className:"chakra-native-select",slots:O4.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:td.variants?.variant.outline.trigger},subtle:{field:td.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:td.defaultVariants}),iC=Ko({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"}}),y6=be({className:"chakra-number-input",slots:wT.keys(),base:{root:{position:"relative",zIndex:"0",isolation:"isolate"},input:{...vt.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:{...iC,borderTopEndRadius:"var(--stepper-radius)"},decrementTrigger:{...iC,borderBottomEndRadius:"var(--stepper-radius)"},valueText:{fontWeight:"medium",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}},variants:{size:{xs:{input:vt.variants.size.xs,control:{fontSize:"2xs","--stepper-width":"sizes.4"}},sm:{input:vt.variants.size.sm,control:{fontSize:"xs","--stepper-width":"sizes.5"}},md:{input:vt.variants.size.md,control:{fontSize:"sm","--stepper-width":"sizes.6"}},lg:{input:vt.variants.size.lg,control:{fontSize:"sm","--stepper-width":"sizes.6"}}},variant:Yn(vt.variants.variant,(e,t)=>[e,{input:t}])},defaultVariants:{size:"md",variant:"outline"}}),{variants:rC,defaultVariants:x6}=vt,S6=be({className:"chakra-pin-input",slots:kT.keys(),base:{input:{...vt.base,textAlign:"center",width:"var(--input-height)"},control:{display:"inline-flex",gap:"2",isolation:"isolate"}},variants:{size:Yn(rC.size,(e,t)=>[e,{input:{...t,px:"1"}}]),variant:Yn(rC.variant,(e,t)=>[e,{input:t}]),attached:{true:{control:{gap:"0",spaceX:"-1px"},input:{_notFirst:{borderStartRadius:"0"},_notLast:{borderEndRadius:"0"},_focusVisible:{zIndex:"1"}}}}},defaultVariants:x6}),C6=be({className:"chakra-popover",slots:R4.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"}}),E6=be({slots:Im.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"}}),T6=be({className:"chakra-progress-circle",slots:Im.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"}}),w6=be({slots:jT.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"}}),O6=be({className:"chakra-radio-card",slots:k4.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:Mt.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:Mt.variants?.size.sm},md:{item:{textStyle:"sm"},itemControl:{padding:"4",gap:"2.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:Mt.variants?.size.md},lg:{item:{textStyle:"md"},itemControl:{padding:"4",gap:"3.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:Mt.variants?.size.lg}},variant:{surface:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"}},itemIndicator:Mt.variants?.variant.solid},subtle:{item:{bg:"bg.muted"},itemControl:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},itemIndicator:Mt.variants?.variant.outline},outline:{item:{borderWidth:"1px",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},itemIndicator:Mt.variants?.variant.solid},solid:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},itemIndicator:Mt.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"}}),R6=be({className:"chakra-radio-group",slots:mO.keys(),base:{item:{display:"inline-flex",alignItems:"center",position:"relative",fontWeight:"medium",_disabled:{cursor:"disabled"}},itemControl:Mt.base,label:{userSelect:"none",textStyle:"sm",_disabled:{opacity:"0.5"}}},variants:{variant:{outline:{itemControl:Mt.variants?.variant?.outline},subtle:{itemControl:Mt.variants?.variant?.subtle},solid:{itemControl:Mt.variants?.variant?.solid}},size:{xs:{item:{textStyle:"xs",gap:"1.5"},itemControl:Mt.variants?.size?.xs},sm:{item:{textStyle:"sm",gap:"2"},itemControl:Mt.variants?.size?.sm},md:{item:{textStyle:"sm",gap:"2.5"},itemControl:Mt.variants?.size?.md},lg:{item:{textStyle:"md",gap:"3"},itemControl:Mt.variants?.size?.lg}}},defaultVariants:{size:"md",variant:"solid"}}),k6=be({className:"chakra-rating-group",slots:N4.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"}}),N6=be({className:"chakra-scroll-area",slots:WT.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"}}),I6=be({className:"chakra-segment-group",slots:qT.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"}}),P6=be({className:"chakra-slider",slots:A4.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"}}),A6=be({slots:j4.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"}}}}),_6=be({className:"chakra-stat",slots:_4.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"}}),V6=be({className:"chakra-status",slots:V4.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"}}),z6=be({className:"chakra-steps",slots:z4.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"}}),D6=be({slots:D4.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"}}),M6=be({className:"chakra-table",slots:M4.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"}}),L6=be({slots:B4.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"}}),Du=Vm.variants?.variant,B6=be({slots:H4.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:Du?.subtle},solid:{root:Du?.solid},outline:{root:Du?.outline},surface:{root:Du?.surface}}},defaultVariants:{size:"md",variant:"surface"}}),H6=be({slots:Aw.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"}}),F6=be({slots:F4.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}}),$6=be({slots:L4.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"}}}}),U6=be({slots:Hw.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)"}}}),aC=Ko({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"}}),oC=Ko({flex:"1"}),sC=Ko({_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}),lC=Ko({_selected:{layerStyle:"fill.solid"}}),j6=be({slots:G1.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:aC,item:aC,itemText:oC,branchText:oC,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:sC,item:sC},solid:{branchControl:lC,item:lC}},animateContent:{true:{branchContent:{_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}},defaultVariants:{size:"md",variant:"subtle"}}),G6={accordion:W4,actionBar:q4,alert:Y4,avatar:K4,blockquote:X4,breadcrumb:Q4,card:Z4,carousel:J4,checkbox:e6,checkboxCard:t6,codeBlock:n6,collapsible:i6,dataList:o6,dialog:s6,drawer:l6,editable:c6,emptyState:u6,field:d6,fieldset:f6,fileUpload:h6,hoverCard:g6,list:p6,listbox:m6,menu:v6,nativeSelect:b6,numberInput:y6,pinInput:S6,popover:C6,progress:E6,progressCircle:T6,radioCard:O6,radioGroup:R6,ratingGroup:k6,scrollArea:N6,segmentGroup:I6,select:td,combobox:a6,slider:P6,splitter:A6,stat:_6,steps:z6,switch:D6,table:M6,tabs:L6,tag:B6,tagsInput:H6,toast:$6,tooltip:U6,status:V6,timeline:F6,colorPicker:r6,qrCode:w6,treeView:j6},W6=hL({"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"}}}),q6=yt.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"}}),Y6=yt.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"}}),K6=yt.blurs({none:{value:" "},sm:{value:"4px"},md:{value:"8px"},lg:{value:"12px"},xl:{value:"16px"},"2xl":{value:"24px"},"3xl":{value:"40px"},"4xl":{value:"64px"}}),X6=yt.borders({xs:{value:"0.5px solid"},sm:{value:"1px solid"},md:{value:"2px solid"},lg:{value:"4px solid"},xl:{value:"8px solid"}}),Q6=yt.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"}}}),Z6=yt.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"}}),J6=yt.durations({fastest:{value:"50ms"},faster:{value:"100ms"},fast:{value:"150ms"},moderate:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),eB=yt.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)"}}),tB=yt.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"}}),nB=yt.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"}}),cC='-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',iB=yt.fonts({heading:{value:`Inter, ${cC}`},body:{value:`Inter, ${cC}`},mono:{value:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'}}),rB=dL({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"}}}),aB=yt.letterSpacings({tighter:{value:"-0.05em"},tight:{value:"-0.025em"},wide:{value:"0.025em"},wider:{value:"0.05em"},widest:{value:"0.1em"}}),oB=yt.lineHeights({shorter:{value:1.25},short:{value:1.375},moderate:{value:1.5},tall:{value:1.625},taller:{value:2}}),sB=yt.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"}}),vO=yt.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"}}),lB=yt.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"}}),cB=yt.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"}}),uB=yt.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%"}}),dB=yt.sizes({...lB,...vO,...uB,...cB}),fB=yt.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}}),hB={aspectRatios:Y6,animations:q6,blurs:K6,borders:X6,colors:Q6,durations:J6,easings:eB,fonts:iB,fontSizes:tB,fontWeights:nB,letterSpacings:aB,lineHeights:oB,radii:sB,spacing:vO,sizes:dB,zIndex:fB,cursor:Z6},gB={colors:o4,shadows:l4,radii:s4},pB="chakra",mB=":where(html, .chakra-theme)",vB=qw({preflight:!0,cssVarsPrefix:pB,cssVarsRoot:mB,globalCss:H3,theme:{breakpoints:B3,keyframes:rB,tokens:hB,semanticTokens:gB,recipes:a4,slotRecipes:G6,textStyles:W6,layerStyles:F3,animationStyles:$3}}),bB=Gw(EL,vB),u8=M3(bB);function yB(e){const{key:t,recipe:i}=e,r=Hl();return C.useMemo(()=>{const o=i||(t!=null?r.getSlotRecipe(t):{});return r.sva(structuredClone(o))},[t,i,r])}const xB=e=>e.charAt(0).toUpperCase()+e.slice(1),ei=e=>{const{key:t,recipe:i}=e,r=xB(t||i.className||"Component"),[o,c]=bl({name:`${r}StylesContext`,errorMessage:`use${r}Styles returned is 'undefined'. Seems you forgot to wrap the components in "<${r}.Root />" `}),[u,d]=bl({name:`${r}ClassNameContext`,errorMessage:`use${r}ClassNames returned is 'undefined'. Seems you forgot to wrap the components in "<${r}.Root />" `,strict:!1}),[g,p]=bl({strict:!1,name:`${r}PropsContext`,providerName:`${r}PropsContext`,defaultValue:{}});function m(T){const{unstyled:E,...w}=T,R=yB({key:t,recipe:w.recipe||i}),[P,I]=C.useMemo(()=>R.splitVariantProps(w),[w,R]);return{styles:C.useMemo(()=>E?oP:R(P),[E,P,R]),classNames:R.classNameMap,props:I}}function b(T,E={}){const{defaultProps:w}=E,R=P=>{const I=p(),O=C.useMemo(()=>wl(w,I,P),[I,P]),{styles:k,classNames:U,props:H}=m(O);return V.jsx(o,{value:k,children:V.jsx(u,{value:U,children:V.jsx(T,{...H})})})};return R.displayName=T.displayName||T.name,R}return{StylesProvider:o,ClassNamesProvider:u,PropsProvider:g,usePropsContext:p,useRecipeResult:m,withProvider:(T,E,w)=>{const{defaultProps:R,...P}=w??{},I=ct(T,{},P),O=C.forwardRef((k,U)=>{const H=p(),G=C.useMemo(()=>wl(R??{},H,k),[H,k]),{styles:z,props:M,classNames:W}=m(G),Q=W[E],ue=V.jsx(o,{value:z,children:V.jsx(u,{value:W,children:V.jsx(I,{ref:U,...M,css:[z[E],G.css],className:Fn(G.className,Q)})})});return w?.wrapElement?.(ue,G)??ue});return O.displayName=T.displayName||T.name,O},withContext:(T,E,w)=>{const R=ct(T,{},w),P=C.forwardRef((I,O)=>{const{unstyled:k,...U}=I,H=c(),z=d()?.[E];return V.jsx(R,{...U,css:[!k&&E?H[E]:void 0,I.css],ref:O,className:Fn(I.className,z)})});return P.displayName=T.displayName||T.name,P},withRootProvider:b,useStyles:c,useClassNames:d}},bO=ct("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"}});bO.displayName="AbsoluteCenter";const yO=e=>V.jsx(ct.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:V.jsx("path",{d:"M20 6 9 17l-5-5"})}),SB=e=>V.jsx(ct.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:V.jsx("path",{d:"m6 9 6 6 6-6"})}),CB=e=>V.jsx(ct.svg,{viewBox:"0 0 24 24",fill:"currentColor",...e,children:V.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"})}),Jd=e=>e?"":void 0,{withContext:EB}=Xi({key:"badge"}),TB=EB("span");TB.displayName="Badge";const{withContext:wB}=Xi({key:"spinner"}),xO=wB("span");xO.displayName="Spinner";const SO=C.forwardRef(function(t,i){const{spinner:r=V.jsx(xO,{size:"inherit",borderWidth:"0.125em",color:"inherit"}),spinnerPlacement:o="start",children:c,text:u,visible:d=!0,...g}=t;return d?u?V.jsxs(hl,{ref:i,display:"contents",...g,children:[o==="start"&&r,u,o==="end"&&r]}):r?V.jsxs(hl,{ref:i,display:"contents",...g,children:[V.jsx(bO,{display:"inline-flex",children:r}),V.jsx(hl,{visibility:"hidden",display:"contents",children:c})]}):V.jsx(hl,{ref:i,display:"contents",...g,children:c}):c});SO.displayName="Loader";const{useRecipeResult:OB,usePropsContext:RB}=Xi({key:"button"}),CO=C.forwardRef(function(t,i){const r=RB(),o=C.useMemo(()=>wl(r,t),[r,t]),c=OB(o),{loading:u,loadingText:d,children:g,spinner:p,spinnerPlacement:m,...b}=c.props;return V.jsx(ct.button,{type:"button",ref:i,...b,"data-loading":Jd(u),disabled:u||b.disabled,className:Fn(c.className,o.className),css:[c.styles,o.css],children:!o.asChild&&u?V.jsx(SO,{spinner:p,text:d,spinnerPlacement:m,children:g}):g})});CO.displayName="Button";const kB=C.forwardRef(function(t,i){return V.jsx(CO,{px:"0",py:"0",_icon:{fontSize:"1.2em"},ref:i,...t})});kB.displayName="IconButton";const{withProvider:NB,withContext:ql}=ei({key:"card"}),d8=NB("div","root"),f8=ql("div","body");ql("div","header");ql("div","footer");ql("h3","title");ql("p","description");const EO=C.forwardRef(function(t,i){const r=FC({key:"checkmark",recipe:t.recipe}),[o,c]=r.splitVariantProps(t),{checked:u,indeterminate:d,disabled:g,unstyled:p,children:m,...b}=c,y=p?HC:r(o);return V.jsx(ct.svg,{ref:i,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3px",strokeLinecap:"round",strokeLinejoin:"round","data-state":d?"indeterminate":u?"checked":"unchecked","data-disabled":Jd(g),css:[y,t.css],...b,children:d?V.jsx("path",{d:"M5 12h14"}):u?V.jsx("polyline",{points:"20 6 9 17 4 12"}):null})});EO.displayName="Checkmark";const{withProvider:TO,withContext:wO,useStyles:IB}=ei({key:"checkbox"});TO(d1,"root",{forwardAsChild:!0});const h8=TO(u1,"root",{forwardAsChild:!0});wO(c1,"label",{forwardAsChild:!0});const PB=C.forwardRef(function(t,i){const{checked:r,indeterminate:o,...c}=t,u=jd(),d=IB();return r&&u.checked?V.jsx(ct.svg,{ref:i,asChild:!0,...c,css:[d.indicator,t.css],children:r}):o&&u.indeterminate?V.jsx(ct.svg,{ref:i,asChild:!0,...c,css:[d.indicator,t.css],children:o}):V.jsx(EO,{ref:i,checked:u.checked,indeterminate:u.indeterminate,disabled:u.disabled,unstyled:!0,...c,css:[d.indicator,t.css]})}),g8=wO(e1,"control",{forwardAsChild:!0,defaultProps:{children:V.jsx(PB,{})}});ct(s1,{base:{display:"flex",flexDirection:"column",gap:"1.5"}},{forwardAsChild:!0});const p8=l1,{withProvider:OO,withContext:zm}=ei({key:"collapsible"});OO(g1,"root",{forwardAsChild:!0});const m8=OO(TE,"root",{forwardAsChild:!0}),v8=zm(p1,"trigger",{forwardAsChild:!0}),b8=zm(UE,"content",{forwardAsChild:!0});zm(h1,"indicator",{forwardAsChild:!0});function AB(e){const{gap:t,direction:i}=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{"&":Xd(i,o=>r[o])}}function _B(e){return C.Children.toArray(e).filter(t=>C.isValidElement(t))}const Dm=C.forwardRef(function(t,i){const{direction:r="column",align:o,justify:c,gap:u="0.5rem",wrap:d,children:g,separator:p,className:m,...b}=t,y=C.useMemo(()=>AB({gap:u,direction:r}),[u,r]),x=C.useMemo(()=>C.isValidElement(p)?_B(g).map((T,E,w)=>{const R=typeof T.key<"u"?T.key:E,P=p,I=C.cloneElement(P,{css:[y,P.props.css]});return V.jsxs(C.Fragment,{children:[T,E===w.length-1?null:I]},R)}):g,[g,p,y]);return V.jsx(ct.div,{ref:i,display:"flex",alignItems:o,justifyContent:c,flexDirection:r,flexWrap:d,gap:p?void 0:u,className:Fn("chakra-stack",m),...b,children:x})});Dm.displayName="Stack";const{withContext:VB}=Xi({key:"container"}),zB=VB("div");zB.displayName="Container";const{withRootProvider:RO,withContext:xi}=ei({key:"dialog"});RO(wD,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});const y8=RO(TD,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});xi(M1,"trigger",{forwardAsChild:!0});const x8=xi(P1,"positioner",{forwardAsChild:!0}),S8=xi(N1,"content",{forwardAsChild:!0});xi(I1,"description",{forwardAsChild:!0});const C8=xi(D1,"title",{forwardAsChild:!0}),E8=xi(k1,"closeTrigger",{forwardAsChild:!0});C.forwardRef(function(t,i){const r=Br();return V.jsx(ct.button,{...t,ref:i,onClick:()=>r.setOpen(!1)})});const T8=xi(R1,"backdrop",{forwardAsChild:!0}),w8=xi("div","body");xi("div","footer");const O8=xi("div","header"),DB=C.forwardRef(function(t,i){const{direction:r,align:o,justify:c,wrap:u,basis:d,grow:g,shrink:p,inline:m,...b}=t;return V.jsx(ct.div,{ref:i,...b,css:{display:m?"inline-flex":"flex",flexDirection:r,alignItems:o,justifyContent:c,flexWrap:u,flexBasis:d,flexGrow:g,flexShrink:p,...t.css}})});DB.displayName="Flex";const{withContext:MB}=Xi({key:"input"}),R8=MB(B1),{withContext:LB}=Xi({key:"link"}),BB=LB("a");BB.displayName="Link";const{withRootProvider:kO,withContext:Nt}=ei({key:"menu"});kO(gM);const k8=kO(hM,{defaultProps:{lazyMount:!0,unmountOnExit:!0}}),N8=Nt(ST,"trigger",{forwardAsChild:!0});Nt(tT,"contextTrigger",{forwardAsChild:!0});const I8=Nt(uT,"positioner",{forwardAsChild:!0});Nt(xT,"separator",{forwardAsChild:!0});const P8=Nt(eT,"content",{forwardAsChild:!0}),HB=Nt(Q1,"arrowTip",{forwardAsChild:!0});Nt(X1,"arrow",{forwardAsChild:!0,defaultProps:{children:V.jsx(HB,{})}});Nt(nT,"indicator",{forwardAsChild:!0});Nt(oT,"itemGroup",{forwardAsChild:!0});Nt(sT,"itemGroupLabel",{forwardAsChild:!0});const A8=Nt(iT,"item",{forwardAsChild:!0});Nt(CT,"item",{forwardAsChild:!0});Nt(cT,"itemText",{forwardAsChild:!0});Nt("kbd","itemCommand");Nt(lT,"itemIndicator",{forwardAsChild:!0,defaultProps:{children:V.jsx(yO,{boxSize:"4"})}});Nt(J1,"item",{forwardAsChild:!0});Nt(fT,"itemGroup",{forwardAsChild:!0});Nt(dT,"item",{forwardAsChild:!0});const{withRootProvider:NO,withContext:Tn}=ei({key:"popover"});NO(YM);const _8=NO(qM),V8=Tn(UT,"trigger",{forwardAsChild:!0}),z8=Tn(MT,"positioner",{forwardAsChild:!0}),D8=Tn(VT,"content",{forwardAsChild:!0}),FB=Tn(AT,"arrowTip",{forwardAsChild:!0}),M8=Tn(PT,"arrow",{forwardAsChild:!0,defaultProps:{children:V.jsx(FB,{})}});Tn(_T,"closeTrigger",{forwardAsChild:!0});Tn(DT,"indicator",{forwardAsChild:!0});Tn($T,"title",{forwardAsChild:!0});Tn(zT,"description",{forwardAsChild:!0});Tn("footer","footer");const L8=Tn("header","header"),B8=Tn("div","body");Tn(IT,void 0,{forwardAsChild:!0});const{withProvider:IO,withContext:an}=ei({key:"select"});IO(g5,"root",{forwardAsChild:!0});const H8=IO(f5,"root",{forwardAsChild:!0,defaultProps:{positioning:{sameWidth:!0}}}),F8=an(dw,"trigger",{forwardAsChild:!0}),$8=an(ow,"positioner",{forwardAsChild:!0}),U8=an(XT,"content",{forwardAsChild:!0});an(fw,"valueText",{forwardAsChild:!0});an(KT,"clearTrigger",{forwardAsChild:!0,defaultProps:{children:V.jsx(CB,{boxSize:"1em"})}});an(tw,"itemGroup",{forwardAsChild:!0});an(nw,"itemGroupLabel",{forwardAsChild:!0});const j8=an(ew,"item",{forwardAsChild:!0}),G8=an(rw,"itemText",{forwardAsChild:!0}),W8=an(iw,"itemIndicator",{forwardAsChild:!0,defaultProps:{children:V.jsx(yO,{})}});an("div","indicatorGroup");const q8=an(ZT,"indicator",{forwardAsChild:!0,defaultProps:{children:V.jsx(SB,{})}});an(QT,"control",{forwardAsChild:!0});an(aw,"label",{forwardAsChild:!0});const $B=C.forwardRef(function(t,i){const{columns:r,minChildWidth:o,...c}=t,u=Hl(),d=o?jB(o,u):GB(r);return V.jsx($C,{ref:i,templateColumns:d,...c})});$B.displayName="SimpleGrid";function UB(e){return typeof e=="number"?`${e}px`:e}function jB(e,t){return Xd(e,i=>{const r=t.tokens.getVar(`sizes.${i}`,UB(i));return i===null?null:`repeat(auto-fit, minmax(${r}, 1fr))`})}function GB(e){return Xd(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}const WB=C.forwardRef(function(t,i){return V.jsx(Dm,{align:"center",...t,direction:"row",ref:i})});WB.displayName="HStack";const qB=C.forwardRef(function(t,i){return V.jsx(Dm,{align:"center",...t,direction:"column",ref:i})});qB.displayName="VStack";const{withProvider:PO,withContext:Mm,useStyles:YB}=ei({key:"switch"});PO(Sw,"root",{forwardAsChild:!0});const Y8=PO(xw,"root",{forwardAsChild:!0});Mm(vw,"label",{forwardAsChild:!0});const KB=Mm(Cw,"thumb",{forwardAsChild:!0}),K8=Mm(pw,"control",{forwardAsChild:!0,defaultProps:{children:V.jsx(KB,{})}});C.forwardRef(function(t,i){const r=Wo(),o=YB(),{fallback:c,children:u,unstyled:d,...g}=t;return V.jsx(ct.span,{ref:i,"data-checked":Jd(r.checked),...g,css:[d?void 0:o.indicator,t.css],children:r.checked?u:c})});C.forwardRef(function(t,i){const r=Wo(),{fallback:o,children:c,...u}=t;return V.jsx(ct.span,{ref:i,"data-checked":Jd(r.checked),...u,children:r.checked?c:o})});const X8=mw,{StylesProvider:XB,ClassNamesProvider:QB,useRecipeResult:ZB,withContext:er}=ei({key:"table"}),Q8=C.forwardRef(function({native:t,...i},r){const{styles:o,props:c,classNames:u}=ZB(i),d=C.useMemo(()=>t?{...o.root,"& thead":o.header,"& tbody":o.body,"& tfoot":o.footer,"& thead th":o.columnHeader,"& tr":o.row,"& td":o.cell,"& caption":o.caption}:o.root,[o,t]);return V.jsx(QB,{value:u,children:V.jsx(XB,{value:o,children:V.jsx(ct.table,{ref:r,...c,css:[d,i.css],className:Fn(u?.root,i.className)})})})}),Z8=er("tr","row");ct("div",{base:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflow:"auto",maxWidth:"100%"}});const J8=er("thead","header");er("tfoot","footer");const e$=er("th","columnHeader"),t$=er("td","cell");er("caption","caption",{defaultProps:{captionSide:"bottom"}});const n$=er("tbody","body");er("colgroup");er("col");const{withProvider:AO,withContext:Yl}=ei({key:"tabs"});AO(Pw,"root",{forwardAsChild:!0});const i$=AO(Iw,"root",{forwardAsChild:!0}),r$=Yl(Rw,"trigger",{forwardAsChild:!0}),a$=Yl(Tw,"content",{forwardAsChild:!0});Yl("div","contentGroup");const o$=Yl(Ow,"list",{forwardAsChild:!0});Yl(ww,"indicator",{forwardAsChild:!0});const{withContext:JB}=Xi({key:"textarea"}),eH=JB(F1);eH.displayName="Textarea";const{withRootProvider:_O,withContext:Kl}=ei({key:"tooltip"});_O(sL);const s$=_O(oL,{defaultProps:{lazyMount:!0,unmountOnExit:!0}}),l$=Kl(Uw,"trigger",{forwardAsChild:!0}),c$=Kl(Bw,"positioner",{forwardAsChild:!0}),u$=Kl(Lw,"content",{forwardAsChild:!0}),tH=Kl(Mw,"arrowTip",{forwardAsChild:!0}),d$=Kl(Dw,"arrow",{forwardAsChild:!0,defaultProps:{children:V.jsx(tH,{})}});var uC="popstate";function nH(e={}){function t(r,o){let{pathname:c,search:u,hash:d}=r.location;return Pp("",{pathname:c,search:u,hash:d},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function i(r,o){return typeof o=="string"?o:Dl(o)}return rH(t,i,null,e)}function it(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Un(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function iH(){return Math.random().toString(36).substring(2,10)}function dC(e,t){return{usr:e.state,key:e.key,idx:t}}function Pp(e,t,i=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Xo(t):t,state:i,key:t&&t.key||r||iH()}}function Dl({pathname:e="/",search:t="",hash:i=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),i&&i!=="#"&&(e+=i.charAt(0)==="#"?i:"#"+i),e}function Xo(e){let t={};if(e){let i=e.indexOf("#");i>=0&&(t.hash=e.substring(i),e=e.substring(0,i));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function rH(e,t,i,r={}){let{window:o=document.defaultView,v5Compat:c=!1}=r,u=o.history,d="POP",g=null,p=m();p==null&&(p=0,u.replaceState({...u.state,idx:p},""));function m(){return(u.state||{idx:null}).idx}function b(){d="POP";let w=m(),R=w==null?null:w-p;p=w,g&&g({action:d,location:E.location,delta:R})}function y(w,R){d="PUSH";let P=Pp(E.location,w,R);p=m()+1;let I=dC(P,p),O=E.createHref(P);try{u.pushState(I,"",O)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;o.location.assign(O)}c&&g&&g({action:d,location:E.location,delta:1})}function x(w,R){d="REPLACE";let P=Pp(E.location,w,R);p=m();let I=dC(P,p),O=E.createHref(P);u.replaceState(I,"",O),c&&g&&g({action:d,location:E.location,delta:0})}function T(w){return aH(w)}let E={get action(){return d},get location(){return e(o,u)},listen(w){if(g)throw new Error("A history only accepts one active listener");return o.addEventListener(uC,b),g=w,()=>{o.removeEventListener(uC,b),g=null}},createHref(w){return t(o,w)},createURL:T,encodeLocation(w){let R=T(w);return{pathname:R.pathname,search:R.search,hash:R.hash}},push:y,replace:x,go(w){return u.go(w)}};return E}function aH(e,t=!1){let i="http://localhost";typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),it(i,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Dl(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=i+r),new URL(r,i)}function VO(e,t,i="/"){return oH(e,t,i,!1)}function oH(e,t,i,r){let o=typeof t=="string"?Xo(t):t,c=Ki(o.pathname||"/",i);if(c==null)return null;let u=zO(e);sH(u);let d=null;for(let g=0;d==null&&g<u.length;++g){let p=bH(c);d=mH(u[g],p,r)}return d}function zO(e,t=[],i=[],r="",o=!1){let c=(u,d,g=o,p)=>{let m={relativePath:p===void 0?u.path||"":p,caseSensitive:u.caseSensitive===!0,childrenIndex:d,route:u};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(r)&&g)return;it(m.relativePath.startsWith(r),`Absolute route path "${m.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(r.length)}let b=Wi([r,m.relativePath]),y=i.concat(m);u.children&&u.children.length>0&&(it(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),zO(u.children,t,y,b,g)),!(u.path==null&&!u.index)&&t.push({path:b,score:gH(b,u.index),routesMeta:y})};return e.forEach((u,d)=>{if(u.path===""||!u.path?.includes("?"))c(u,d);else for(let g of DO(u.path))c(u,d,!0,g)}),t}function DO(e){let t=e.split("/");if(t.length===0)return[];let[i,...r]=t,o=i.endsWith("?"),c=i.replace(/\?$/,"");if(r.length===0)return o?[c,""]:[c];let u=DO(r.join("/")),d=[];return d.push(...u.map(g=>g===""?c:[c,g].join("/"))),o&&d.push(...u),d.map(g=>e.startsWith("/")&&g===""?"/":g)}function sH(e){e.sort((t,i)=>t.score!==i.score?i.score-t.score:pH(t.routesMeta.map(r=>r.childrenIndex),i.routesMeta.map(r=>r.childrenIndex)))}var lH=/^:[\w-]+$/,cH=3,uH=2,dH=1,fH=10,hH=-2,fC=e=>e==="*";function gH(e,t){let i=e.split("/"),r=i.length;return i.some(fC)&&(r+=hH),t&&(r+=uH),i.filter(o=>!fC(o)).reduce((o,c)=>o+(lH.test(c)?cH:c===""?dH:fH),r)}function pH(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function mH(e,t,i=!1){let{routesMeta:r}=e,o={},c="/",u=[];for(let d=0;d<r.length;++d){let g=r[d],p=d===r.length-1,m=c==="/"?t:t.slice(c.length)||"/",b=vd({path:g.relativePath,caseSensitive:g.caseSensitive,end:p},m),y=g.route;if(!b&&p&&i&&!r[r.length-1].route.index&&(b=vd({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},m)),!b)return null;Object.assign(o,b.params),u.push({params:o,pathname:Wi([c,b.pathname]),pathnameBase:EH(Wi([c,b.pathnameBase])),route:y}),b.pathnameBase!=="/"&&(c=Wi([c,b.pathnameBase]))}return u}function vd(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[i,r]=vH(e.path,e.caseSensitive,e.end),o=t.match(i);if(!o)return null;let c=o[0],u=c.replace(/(.)\/+$/,"$1"),d=o.slice(1);return{params:r.reduce((p,{paramName:m,isOptional:b},y)=>{if(m==="*"){let T=d[y]||"";u=c.slice(0,c.length-T.length).replace(/(.)\/+$/,"$1")}const x=d[y];return b&&!x?p[m]=void 0:p[m]=(x||"").replace(/%2F/g,"/"),p},{}),pathname:c,pathnameBase:u,pattern:e}}function vH(e,t=!1,i=!0){Un(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,d,g)=>(r.push({paramName:d,isOptional:g!=null}),g?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function bH(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Un(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Ki(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let i=t.endsWith("/")?t.length-1:t.length,r=e.charAt(i);return r&&r!=="/"?null:e.slice(i)||"/"}var yH=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xH=e=>yH.test(e);function SH(e,t="/"){let{pathname:i,search:r="",hash:o=""}=typeof e=="string"?Xo(e):e,c;if(i)if(xH(i))c=i;else{if(i.includes("//")){let u=i;i=i.replace(/\/\/+/g,"/"),Un(!1,`Pathnames cannot have embedded double slashes - normalizing ${u} -> ${i}`)}i.startsWith("/")?c=hC(i.substring(1),"/"):c=hC(i,t)}else c=t;return{pathname:c,search:TH(r),hash:wH(o)}}function hC(e,t){let i=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?i.length>1&&i.pop():o!=="."&&i.push(o)}),i.length>1?i.join("/"):"/"}function Kg(e,t,i,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function CH(e){return e.filter((t,i)=>i===0||t.route.path&&t.route.path.length>0)}function MO(e){let t=CH(e);return t.map((i,r)=>r===t.length-1?i.pathname:i.pathnameBase)}function LO(e,t,i,r=!1){let o;typeof e=="string"?o=Xo(e):(o={...e},it(!o.pathname||!o.pathname.includes("?"),Kg("?","pathname","search",o)),it(!o.pathname||!o.pathname.includes("#"),Kg("#","pathname","hash",o)),it(!o.search||!o.search.includes("#"),Kg("#","search","hash",o)));let c=e===""||o.pathname==="",u=c?"/":o.pathname,d;if(u==null)d=i;else{let b=t.length-1;if(!r&&u.startsWith("..")){let y=u.split("/");for(;y[0]==="..";)y.shift(),b-=1;o.pathname=y.join("/")}d=b>=0?t[b]:"/"}let g=SH(o,d),p=u&&u!=="/"&&u.endsWith("/"),m=(c||u===".")&&i.endsWith("/");return!g.pathname.endsWith("/")&&(p||m)&&(g.pathname+="/"),g}var Wi=e=>e.join("/").replace(/\/\/+/g,"/"),EH=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),TH=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,wH=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function OH(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var BO=["POST","PUT","PATCH","DELETE"];new Set(BO);var RH=["GET",...BO];new Set(RH);var Qo=C.createContext(null);Qo.displayName="DataRouter";var ef=C.createContext(null);ef.displayName="DataRouterState";C.createContext(!1);var HO=C.createContext({isTransitioning:!1});HO.displayName="ViewTransition";var kH=C.createContext(new Map);kH.displayName="Fetchers";var NH=C.createContext(null);NH.displayName="Await";var Si=C.createContext(null);Si.displayName="Navigation";var Xl=C.createContext(null);Xl.displayName="Location";var Ci=C.createContext({outlet:null,matches:[],isDataRoute:!1});Ci.displayName="Route";var Lm=C.createContext(null);Lm.displayName="RouteError";function IH(e,{relative:t}={}){it(Ql(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:r}=C.useContext(Si),{hash:o,pathname:c,search:u}=Zl(e,{relative:t}),d=c;return i!=="/"&&(d=c==="/"?i:Wi([i,c])),r.createHref({pathname:d,search:u,hash:o})}function Ql(){return C.useContext(Xl)!=null}function Hr(){return it(Ql(),"useLocation() may be used only in the context of a <Router> component."),C.useContext(Xl).location}var FO="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function $O(e){C.useContext(Si).static||C.useLayoutEffect(e)}function UO(){let{isDataRoute:e}=C.useContext(Ci);return e?UH():PH()}function PH(){it(Ql(),"useNavigate() may be used only in the context of a <Router> component.");let e=C.useContext(Qo),{basename:t,navigator:i}=C.useContext(Si),{matches:r}=C.useContext(Ci),{pathname:o}=Hr(),c=JSON.stringify(MO(r)),u=C.useRef(!1);return $O(()=>{u.current=!0}),C.useCallback((g,p={})=>{if(Un(u.current,FO),!u.current)return;if(typeof g=="number"){i.go(g);return}let m=LO(g,JSON.parse(c),o,p.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Wi([t,m.pathname])),(p.replace?i.replace:i.push)(m,p.state,p)},[t,i,c,o,e])}C.createContext(null);function f$(){let{matches:e}=C.useContext(Ci),t=e[e.length-1];return t?t.params:{}}function Zl(e,{relative:t}={}){let{matches:i}=C.useContext(Ci),{pathname:r}=Hr(),o=JSON.stringify(MO(i));return C.useMemo(()=>LO(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function AH(e,t){return jO(e,t)}function jO(e,t,i,r,o){it(Ql(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=C.useContext(Si),{matches:u}=C.useContext(Ci),d=u[u.length-1],g=d?d.params:{},p=d?d.pathname:"/",m=d?d.pathnameBase:"/",b=d&&d.route;{let P=b&&b.path||"";GO(p,!b||P.endsWith("*")||P.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${P}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
18
+
19
+ Please change the parent <Route path="${P}"> to <Route path="${P==="/"?"*":`${P}/*`}">.`)}let y=Hr(),x;if(t){let P=typeof t=="string"?Xo(t):t;it(m==="/"||P.pathname?.startsWith(m),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${P.pathname}" was given in the \`location\` prop.`),x=P}else x=y;let T=x.pathname||"/",E=T;if(m!=="/"){let P=m.replace(/^\//,"").split("/");E="/"+T.replace(/^\//,"").split("/").slice(P.length).join("/")}let w=VO(e,{pathname:E});Un(b||w!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),Un(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let R=MH(w&&w.map(P=>Object.assign({},P,{params:Object.assign({},g,P.params),pathname:Wi([m,c.encodeLocation?c.encodeLocation(P.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:P.pathname]),pathnameBase:P.pathnameBase==="/"?m:Wi([m,c.encodeLocation?c.encodeLocation(P.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:P.pathnameBase])})),u,i,r,o);return t&&R?C.createElement(Xl.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...x},navigationType:"POP"}},R):R}function _H(){let e=$H(),t=OH(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),i=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},c={padding:"2px 4px",backgroundColor:r},u=null;return console.error("Error handled by React Router default ErrorBoundary:",e),u=C.createElement(C.Fragment,null,C.createElement("p",null,"💿 Hey developer 👋"),C.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",C.createElement("code",{style:c},"ErrorBoundary")," or"," ",C.createElement("code",{style:c},"errorElement")," prop on your route.")),C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},t),i?C.createElement("pre",{style:o},i):null,u)}var VH=C.createElement(_H,null),zH=class extends C.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?C.createElement(Ci.Provider,{value:this.props.routeContext},C.createElement(Lm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function DH({routeContext:e,match:t,children:i}){let r=C.useContext(Qo);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),C.createElement(Ci.Provider,{value:e},i)}function MH(e,t=[],i=null,r=null,o=null){if(e==null){if(!i)return null;if(i.errors)e=i.matches;else if(t.length===0&&!i.initialized&&i.matches.length>0)e=i.matches;else return null}let c=e,u=i?.errors;if(u!=null){let m=c.findIndex(b=>b.route.id&&u?.[b.route.id]!==void 0);it(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),c=c.slice(0,Math.min(c.length,m+1))}let d=!1,g=-1;if(i)for(let m=0;m<c.length;m++){let b=c[m];if((b.route.HydrateFallback||b.route.hydrateFallbackElement)&&(g=m),b.route.id){let{loaderData:y,errors:x}=i,T=b.route.loader&&!y.hasOwnProperty(b.route.id)&&(!x||x[b.route.id]===void 0);if(b.route.lazy||T){d=!0,g>=0?c=c.slice(0,g+1):c=[c[0]];break}}}let p=i&&r?(m,b)=>{r(m,{location:i.location,params:i.matches?.[0]?.params??{},errorInfo:b})}:void 0;return c.reduceRight((m,b,y)=>{let x,T=!1,E=null,w=null;i&&(x=u&&b.route.id?u[b.route.id]:void 0,E=b.route.errorElement||VH,d&&(g<0&&y===0?(GO("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),T=!0,w=null):g===y&&(T=!0,w=b.route.hydrateFallbackElement||null)));let R=t.concat(c.slice(0,y+1)),P=()=>{let I;return x?I=E:T?I=w:b.route.Component?I=C.createElement(b.route.Component,null):b.route.element?I=b.route.element:I=m,C.createElement(DH,{match:b,routeContext:{outlet:m,matches:R,isDataRoute:i!=null},children:I})};return i&&(b.route.ErrorBoundary||b.route.errorElement||y===0)?C.createElement(zH,{location:i.location,revalidation:i.revalidation,component:E,error:x,children:P(),routeContext:{outlet:null,matches:R,isDataRoute:!0},onError:p}):P()},null)}function Bm(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function LH(e){let t=C.useContext(Qo);return it(t,Bm(e)),t}function BH(e){let t=C.useContext(ef);return it(t,Bm(e)),t}function HH(e){let t=C.useContext(Ci);return it(t,Bm(e)),t}function Hm(e){let t=HH(e),i=t.matches[t.matches.length-1];return it(i.route.id,`${e} can only be used on routes that contain a unique "id"`),i.route.id}function FH(){return Hm("useRouteId")}function $H(){let e=C.useContext(Lm),t=BH("useRouteError"),i=Hm("useRouteError");return e!==void 0?e:t.errors?.[i]}function UH(){let{router:e}=LH("useNavigate"),t=Hm("useNavigate"),i=C.useRef(!1);return $O(()=>{i.current=!0}),C.useCallback(async(o,c={})=>{Un(i.current,FO),i.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:t,...c}))},[e,t])}var gC={};function GO(e,t,i){!t&&!gC[e]&&(gC[e]=!0,Un(!1,i))}C.memo(jH);function jH({routes:e,future:t,state:i,unstable_onError:r}){return jO(e,void 0,i,r,t)}function GH(e){it(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function WH({basename:e="/",children:t=null,location:i,navigationType:r="POP",navigator:o,static:c=!1}){it(!Ql(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=e.replace(/^\/*/,"/"),d=C.useMemo(()=>({basename:u,navigator:o,static:c,future:{}}),[u,o,c]);typeof i=="string"&&(i=Xo(i));let{pathname:g="/",search:p="",hash:m="",state:b=null,key:y="default"}=i,x=C.useMemo(()=>{let T=Ki(g,u);return T==null?null:{location:{pathname:T,search:p,hash:m,state:b,key:y},navigationType:r}},[u,g,p,m,b,y,r]);return Un(x!=null,`<Router basename="${u}"> is not able to match the URL "${g}${p}${m}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:C.createElement(Si.Provider,{value:d},C.createElement(Xl.Provider,{children:t,value:x}))}function h$({children:e,location:t}){return AH(Ap(e),t)}function Ap(e,t=[]){let i=[];return C.Children.forEach(e,(r,o)=>{if(!C.isValidElement(r))return;let c=[...t,o];if(r.type===C.Fragment){i.push.apply(i,Ap(r.props.children,c));return}it(r.type===GH,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),it(!r.props.index||!r.props.children,"An index route cannot have child routes.");let u={id:r.props.id||c.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(u.children=Ap(r.props.children,c)),i.push(u)}),i}var nd="get",id="application/x-www-form-urlencoded";function tf(e){return e!=null&&typeof e.tagName=="string"}function qH(e){return tf(e)&&e.tagName.toLowerCase()==="button"}function YH(e){return tf(e)&&e.tagName.toLowerCase()==="form"}function KH(e){return tf(e)&&e.tagName.toLowerCase()==="input"}function XH(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function QH(e,t){return e.button===0&&(!t||t==="_self")&&!XH(e)}function _p(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,i)=>{let r=e[i];return t.concat(Array.isArray(r)?r.map(o=>[i,o]):[[i,r]])},[]))}function ZH(e,t){let i=_p(e);return t&&t.forEach((r,o)=>{i.has(o)||t.getAll(o).forEach(c=>{i.append(o,c)})}),i}var Mu=null;function JH(){if(Mu===null)try{new FormData(document.createElement("form"),0),Mu=!1}catch{Mu=!0}return Mu}var eF=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Xg(e){return e!=null&&!eF.has(e)?(Un(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${id}"`),null):e}function tF(e,t){let i,r,o,c,u;if(YH(e)){let d=e.getAttribute("action");r=d?Ki(d,t):null,i=e.getAttribute("method")||nd,o=Xg(e.getAttribute("enctype"))||id,c=new FormData(e)}else if(qH(e)||KH(e)&&(e.type==="submit"||e.type==="image")){let d=e.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=e.getAttribute("formaction")||d.getAttribute("action");if(r=g?Ki(g,t):null,i=e.getAttribute("formmethod")||d.getAttribute("method")||nd,o=Xg(e.getAttribute("formenctype"))||Xg(d.getAttribute("enctype"))||id,c=new FormData(d,e),!JH()){let{name:p,type:m,value:b}=e;if(m==="image"){let y=p?`${p}.`:"";c.append(`${y}x`,"0"),c.append(`${y}y`,"0")}else p&&c.append(p,b)}}else{if(tf(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=nd,r=null,o=id,u=e}return c&&o==="text/plain"&&(u=c,c=void 0),{action:r,method:i.toLowerCase(),encType:o,formData:c,body:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Fm(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function nF(e,t,i){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${i}`:t&&Ki(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${i}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${i}`,r}async function iF(e,t){if(e.id in t)return t[e.id];try{let i=await import(e.module);return t[e.id]=i,i}catch(i){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(i),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function rF(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function aF(e,t,i){let r=await Promise.all(e.map(async o=>{let c=t.routes[o.route.id];if(c){let u=await iF(c,i);return u.links?u.links():[]}return[]}));return cF(r.flat(1).filter(rF).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function pC(e,t,i,r,o,c){let u=(g,p)=>i[p]?g.route.id!==i[p].route.id:!0,d=(g,p)=>i[p].pathname!==g.pathname||i[p].route.path?.endsWith("*")&&i[p].params["*"]!==g.params["*"];return c==="assets"?t.filter((g,p)=>u(g,p)||d(g,p)):c==="data"?t.filter((g,p)=>{let m=r.routes[g.route.id];if(!m||!m.hasLoader)return!1;if(u(g,p)||d(g,p))return!0;if(g.route.shouldRevalidate){let b=g.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:i[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function oF(e,t,{includeHydrateFallback:i}={}){return sF(e.map(r=>{let o=t.routes[r.route.id];if(!o)return[];let c=[o.module];return o.clientActionModule&&(c=c.concat(o.clientActionModule)),o.clientLoaderModule&&(c=c.concat(o.clientLoaderModule)),i&&o.hydrateFallbackModule&&(c=c.concat(o.hydrateFallbackModule)),o.imports&&(c=c.concat(o.imports)),c}).flat(1))}function sF(e){return[...new Set(e)]}function lF(e){let t={},i=Object.keys(e).sort();for(let r of i)t[r]=e[r];return t}function cF(e,t){let i=new Set;return new Set(t),e.reduce((r,o)=>{let c=JSON.stringify(lF(o));return i.has(c)||(i.add(c),r.push({key:c,link:o})),r},[])}function WO(){let e=C.useContext(Qo);return Fm(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function uF(){let e=C.useContext(ef);return Fm(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var $m=C.createContext(void 0);$m.displayName="FrameworkContext";function qO(){let e=C.useContext($m);return Fm(e,"You must render this element inside a <HydratedRouter> element"),e}function dF(e,t){let i=C.useContext($m),[r,o]=C.useState(!1),[c,u]=C.useState(!1),{onFocus:d,onBlur:g,onMouseEnter:p,onMouseLeave:m,onTouchStart:b}=t,y=C.useRef(null);C.useEffect(()=>{if(e==="render"&&u(!0),e==="viewport"){let E=R=>{R.forEach(P=>{u(P.isIntersecting)})},w=new IntersectionObserver(E,{threshold:.5});return y.current&&w.observe(y.current),()=>{w.disconnect()}}},[e]),C.useEffect(()=>{if(r){let E=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(E)}}},[r]);let x=()=>{o(!0)},T=()=>{o(!1),u(!1)};return i?e!=="intent"?[c,y,{}]:[c,y,{onFocus:dl(d,x),onBlur:dl(g,T),onMouseEnter:dl(p,x),onMouseLeave:dl(m,T),onTouchStart:dl(b,x)}]:[!1,y,{}]}function dl(e,t){return i=>{e&&e(i),i.defaultPrevented||t(i)}}function fF({page:e,...t}){let{router:i}=WO(),r=C.useMemo(()=>VO(i.routes,e,i.basename),[i.routes,e,i.basename]);return r?C.createElement(gF,{page:e,matches:r,...t}):null}function hF(e){let{manifest:t,routeModules:i}=qO(),[r,o]=C.useState([]);return C.useEffect(()=>{let c=!1;return aF(e,t,i).then(u=>{c||o(u)}),()=>{c=!0}},[e,t,i]),r}function gF({page:e,matches:t,...i}){let r=Hr(),{manifest:o,routeModules:c}=qO(),{basename:u}=WO(),{loaderData:d,matches:g}=uF(),p=C.useMemo(()=>pC(e,t,g,o,r,"data"),[e,t,g,o,r]),m=C.useMemo(()=>pC(e,t,g,o,r,"assets"),[e,t,g,o,r]),b=C.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let T=new Set,E=!1;if(t.forEach(R=>{let P=o.routes[R.route.id];!P||!P.hasLoader||(!p.some(I=>I.route.id===R.route.id)&&R.route.id in d&&c[R.route.id]?.shouldRevalidate||P.hasClientLoader?E=!0:T.add(R.route.id))}),T.size===0)return[];let w=nF(e,u,"data");return E&&T.size>0&&w.searchParams.set("_routes",t.filter(R=>T.has(R.route.id)).map(R=>R.route.id).join(",")),[w.pathname+w.search]},[u,d,r,o,p,t,e,c]),y=C.useMemo(()=>oF(m,o),[m,o]),x=hF(m);return C.createElement(C.Fragment,null,b.map(T=>C.createElement("link",{key:T,rel:"prefetch",as:"fetch",href:T,...i})),y.map(T=>C.createElement("link",{key:T,rel:"modulepreload",href:T,...i})),x.map(({key:T,link:E})=>C.createElement("link",{key:T,nonce:i.nonce,...E})))}function pF(...e){return t=>{e.forEach(i=>{typeof i=="function"?i(t):i!=null&&(i.current=t)})}}var YO=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{YO&&(window.__reactRouterVersion="7.9.6")}catch{}function g$({basename:e,children:t,window:i}){let r=C.useRef();r.current==null&&(r.current=nH({window:i,v5Compat:!0}));let o=r.current,[c,u]=C.useState({action:o.action,location:o.location}),d=C.useCallback(g=>{C.startTransition(()=>u(g))},[u]);return C.useLayoutEffect(()=>o.listen(d),[o,d]),C.createElement(WH,{basename:e,children:t,location:c.location,navigationType:c.action,navigator:o})}var KO=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,XO=C.forwardRef(function({onClick:t,discover:i="render",prefetch:r="none",relative:o,reloadDocument:c,replace:u,state:d,target:g,to:p,preventScrollReset:m,viewTransition:b,...y},x){let{basename:T}=C.useContext(Si),E=typeof p=="string"&&KO.test(p),w,R=!1;if(typeof p=="string"&&E&&(w=p,YO))try{let z=new URL(window.location.href),M=p.startsWith("//")?new URL(z.protocol+p):new URL(p),W=Ki(M.pathname,T);M.origin===z.origin&&W!=null?p=W+M.search+M.hash:R=!0}catch{Un(!1,`<Link to="${p}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let P=IH(p,{relative:o}),[I,O,k]=dF(r,y),U=yF(p,{replace:u,state:d,target:g,preventScrollReset:m,relative:o,viewTransition:b});function H(z){t&&t(z),z.defaultPrevented||U(z)}let G=C.createElement("a",{...y,...k,href:w||P,onClick:R||c?t:H,ref:pF(x,O),target:g,"data-discover":!E&&i==="render"?"true":void 0});return I&&!E?C.createElement(C.Fragment,null,G,C.createElement(fF,{page:P})):G});XO.displayName="Link";var mF=C.forwardRef(function({"aria-current":t="page",caseSensitive:i=!1,className:r="",end:o=!1,style:c,to:u,viewTransition:d,children:g,...p},m){let b=Zl(u,{relative:p.relative}),y=Hr(),x=C.useContext(ef),{navigator:T,basename:E}=C.useContext(Si),w=x!=null&&TF(b)&&d===!0,R=T.encodeLocation?T.encodeLocation(b).pathname:b.pathname,P=y.pathname,I=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;i||(P=P.toLowerCase(),I=I?I.toLowerCase():null,R=R.toLowerCase()),I&&E&&(I=Ki(I,E)||I);const O=R!=="/"&&R.endsWith("/")?R.length-1:R.length;let k=P===R||!o&&P.startsWith(R)&&P.charAt(O)==="/",U=I!=null&&(I===R||!o&&I.startsWith(R)&&I.charAt(R.length)==="/"),H={isActive:k,isPending:U,isTransitioning:w},G=k?t:void 0,z;typeof r=="function"?z=r(H):z=[r,k?"active":null,U?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let M=typeof c=="function"?c(H):c;return C.createElement(XO,{...p,"aria-current":G,className:z,ref:m,style:M,to:u,viewTransition:d},typeof g=="function"?g(H):g)});mF.displayName="NavLink";var vF=C.forwardRef(({discover:e="render",fetcherKey:t,navigate:i,reloadDocument:r,replace:o,state:c,method:u=nd,action:d,onSubmit:g,relative:p,preventScrollReset:m,viewTransition:b,...y},x)=>{let T=CF(),E=EF(d,{relative:p}),w=u.toLowerCase()==="get"?"get":"post",R=typeof d=="string"&&KO.test(d),P=I=>{if(g&&g(I),I.defaultPrevented)return;I.preventDefault();let O=I.nativeEvent.submitter,k=O?.getAttribute("formmethod")||u;T(O||I.currentTarget,{fetcherKey:t,method:k,navigate:i,replace:o,state:c,relative:p,preventScrollReset:m,viewTransition:b})};return C.createElement("form",{ref:x,method:w,action:E,onSubmit:r?g:P,...y,"data-discover":!R&&e==="render"?"true":void 0})});vF.displayName="Form";function bF(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function QO(e){let t=C.useContext(Qo);return it(t,bF(e)),t}function yF(e,{target:t,replace:i,state:r,preventScrollReset:o,relative:c,viewTransition:u}={}){let d=UO(),g=Hr(),p=Zl(e,{relative:c});return C.useCallback(m=>{if(QH(m,t)){m.preventDefault();let b=i!==void 0?i:Dl(g)===Dl(p);d(e,{replace:b,state:r,preventScrollReset:o,relative:c,viewTransition:u})}},[g,d,p,i,r,t,e,o,c,u])}function p$(e){Un(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=C.useRef(_p(e)),i=C.useRef(!1),r=Hr(),o=C.useMemo(()=>ZH(r.search,i.current?null:t.current),[r.search]),c=UO(),u=C.useCallback((d,g)=>{const p=_p(typeof d=="function"?d(new URLSearchParams(o)):d);i.current=!0,c("?"+p,g)},[c,o]);return[o,u]}var xF=0,SF=()=>`__${String(++xF)}__`;function CF(){let{router:e}=QO("useSubmit"),{basename:t}=C.useContext(Si),i=FH();return C.useCallback(async(r,o={})=>{let{action:c,method:u,encType:d,formData:g,body:p}=tF(r,t);if(o.navigate===!1){let m=o.fetcherKey||SF();await e.fetch(m,i,o.action||c,{preventScrollReset:o.preventScrollReset,formData:g,body:p,formMethod:o.method||u,formEncType:o.encType||d,flushSync:o.flushSync})}else await e.navigate(o.action||c,{preventScrollReset:o.preventScrollReset,formData:g,body:p,formMethod:o.method||u,formEncType:o.encType||d,replace:o.replace,state:o.state,fromRouteId:i,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,i])}function EF(e,{relative:t}={}){let{basename:i}=C.useContext(Si),r=C.useContext(Ci);it(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),c={...Zl(e||".",{relative:t})},u=Hr();if(e==null){c.search=u.search;let d=new URLSearchParams(c.search),g=d.getAll("index");if(g.some(m=>m==="")){d.delete("index"),g.filter(b=>b).forEach(b=>d.append("index",b));let m=d.toString();c.search=m?`?${m}`:""}}return(!e||e===".")&&o.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(c.pathname=c.pathname==="/"?i:Wi([i,c.pathname])),Dl(c)}function TF(e,{relative:t}={}){let i=C.useContext(HO);it(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=QO("useViewTransitionState"),o=Zl(e,{relative:t});if(!i.isTransitioning)return!1;let c=Ki(i.currentLocation.pathname,r)||i.currentLocation.pathname,u=Ki(i.nextLocation.pathname,r)||i.nextLocation.pathname;return vd(o.pathname,u)!=null||vd(o.pathname,c)!=null}var Zo=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},wF={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},OF=class{#e=wF;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},ba=new OF;function RF(e){setTimeout(e,0)}var Ra=typeof window>"u"||"Deno"in globalThis;function jt(){}function kF(e,t){return typeof e=="function"?e(t):e}function Vp(e){return typeof e=="number"&&e>=0&&e!==1/0}function ZO(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ar(e,t){return typeof e=="function"?e(t):e}function Ln(e,t){return typeof e=="function"?e(t):e}function mC(e,t){const{type:i="all",exact:r,fetchStatus:o,predicate:c,queryKey:u,stale:d}=e;if(u){if(r){if(t.queryHash!==Um(u,t.options))return!1}else if(!Ml(t.queryKey,u))return!1}if(i!=="all"){const g=t.isActive();if(i==="active"&&!g||i==="inactive"&&g)return!1}return!(typeof d=="boolean"&&t.isStale()!==d||o&&o!==t.state.fetchStatus||c&&!c(t))}function vC(e,t){const{exact:i,status:r,predicate:o,mutationKey:c}=e;if(c){if(!t.options.mutationKey)return!1;if(i){if(ka(t.options.mutationKey)!==ka(c))return!1}else if(!Ml(t.options.mutationKey,c))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Um(e,t){return(t?.queryKeyHashFn||ka)(e)}function ka(e){return JSON.stringify(e,(t,i)=>zp(i)?Object.keys(i).sort().reduce((r,o)=>(r[o]=i[o],r),{}):i)}function Ml(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(i=>Ml(e[i],t[i])):!1}var NF=Object.prototype.hasOwnProperty;function JO(e,t){if(e===t)return e;const i=bC(e)&&bC(t);if(!i&&!(zp(e)&&zp(t)))return t;const o=(i?e:Object.keys(e)).length,c=i?t:Object.keys(t),u=c.length,d=i?new Array(u):{};let g=0;for(let p=0;p<u;p++){const m=i?p:c[p],b=e[m],y=t[m];if(b===y){d[m]=b,(i?p<o:NF.call(e,m))&&g++;continue}if(b===null||y===null||typeof b!="object"||typeof y!="object"){d[m]=y;continue}const x=JO(b,y);d[m]=x,x===b&&g++}return o===u&&g===o?e:d}function bd(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const i in e)if(e[i]!==t[i])return!1;return!0}function bC(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function zp(e){if(!yC(e))return!1;const t=e.constructor;if(t===void 0)return!0;const i=t.prototype;return!(!yC(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function yC(e){return Object.prototype.toString.call(e)==="[object Object]"}function IF(e){return new Promise(t=>{ba.setTimeout(t,e)})}function Dp(e,t,i){return typeof i.structuralSharing=="function"?i.structuralSharing(e,t):i.structuralSharing!==!1?JO(e,t):t}function m$(e){return e}function PF(e,t,i=0){const r=[...e,t];return i&&r.length>i?r.slice(1):r}function AF(e,t,i=0){const r=[t,...e];return i&&r.length>i?r.slice(0,-1):r}var jm=Symbol();function eR(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===jm?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function tR(e,t){return typeof e=="function"?e(...t):!!e}var _F=class extends Zo{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!Ra&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Gm=new _F;function Mp(){let e,t;const i=new Promise((o,c)=>{e=o,t=c});i.status="pending",i.catch(()=>{});function r(o){Object.assign(i,o),delete i.resolve,delete i.reject}return i.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},i.reject=o=>{r({status:"rejected",reason:o}),t(o)},i}var VF=RF;function zF(){let e=[],t=0,i=d=>{d()},r=d=>{d()},o=VF;const c=d=>{t?e.push(d):o(()=>{i(d)})},u=()=>{const d=e;e=[],d.length&&o(()=>{r(()=>{d.forEach(g=>{i(g)})})})};return{batch:d=>{let g;t++;try{g=d()}finally{t--,t||u()}return g},batchCalls:d=>(...g)=>{c(()=>{d(...g)})},schedule:c,setNotifyFunction:d=>{i=d},setBatchNotifyFunction:d=>{r=d},setScheduler:d=>{o=d}}}var Ct=zF(),DF=class extends Zo{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!Ra&&window.addEventListener){const t=()=>e(!0),i=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",i)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(i=>{i(e)}))}isOnline(){return this.#e}},yd=new DF;function MF(e){return Math.min(1e3*2**e,3e4)}function nR(e){return(e??"online")==="online"?yd.isOnline():!0}var Lp=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function iR(e){let t=!1,i=0,r;const o=Mp(),c=()=>o.status!=="pending",u=E=>{if(!c()){const w=new Lp(E);y(w),e.onCancel?.(w)}},d=()=>{t=!0},g=()=>{t=!1},p=()=>Gm.isFocused()&&(e.networkMode==="always"||yd.isOnline())&&e.canRun(),m=()=>nR(e.networkMode)&&e.canRun(),b=E=>{c()||(r?.(),o.resolve(E))},y=E=>{c()||(r?.(),o.reject(E))},x=()=>new Promise(E=>{r=w=>{(c()||p())&&E(w)},e.onPause?.()}).then(()=>{r=void 0,c()||e.onContinue?.()}),T=()=>{if(c())return;let E;const w=i===0?e.initialPromise:void 0;try{E=w??e.fn()}catch(R){E=Promise.reject(R)}Promise.resolve(E).then(b).catch(R=>{if(c())return;const P=e.retry??(Ra?0:3),I=e.retryDelay??MF,O=typeof I=="function"?I(i,R):I,k=P===!0||typeof P=="number"&&i<P||typeof P=="function"&&P(i,R);if(t||!k){y(R);return}i++,e.onFail?.(i,R),IF(O).then(()=>p()?void 0:x()).then(()=>{t?y(R):T()})})};return{promise:o,status:()=>o.status,cancel:u,continue:()=>(r?.(),o),cancelRetry:d,continueRetry:g,canStart:m,start:()=>(m()?T():x().then(T),o)}}var rR=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Vp(this.gcTime)&&(this.#e=ba.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ra?1/0:300*1e3))}clearGcTimeout(){this.#e&&(ba.clearTimeout(this.#e),this.#e=void 0)}},LF=class extends rR{#e;#t;#n;#r;#i;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=SC(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#i?.promise}setOptions(e){if(this.options={...this.#o,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=SC(this.options);t.data!==void 0&&(this.setState(xC(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const i=Dp(this.state.data,e,this.options);return this.#a({data:i,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),i}setState(e,t){this.#a({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#i?.promise;return this.#i?.cancel(e),t?t.then(jt).catch(jt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>Ln(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===jm||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Ar(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!ZO(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#i&&(this.#s?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#i?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(e&&this.setOptions(e),!this.options.queryFn){const d=this.observers.find(g=>g.options.queryFn);d&&this.setOptions(d.options)}const i=new AbortController,r=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#s=!0,i.signal)})},o=()=>{const d=eR(this.options,t),p=(()=>{const m={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(m),m})();return this.#s=!1,this.options.persister?this.options.persister(d,p,this):d(p)},u=(()=>{const d={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:o};return r(d),d})();this.options.behavior?.onFetch(u,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==u.fetchOptions?.meta)&&this.#a({type:"fetch",meta:u.fetchOptions?.meta}),this.#i=iR({initialPromise:t?.initialPromise,fn:u.fetchFn,onCancel:d=>{d instanceof Lp&&d.revert&&this.setState({...this.#t,fetchStatus:"idle"}),i.abort()},onFail:(d,g)=>{this.#a({type:"failed",failureCount:d,error:g})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0});try{const d=await this.#i.start();if(d===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(d),this.#n.config.onSuccess?.(d,this),this.#n.config.onSettled?.(d,this.state.error,this),d}catch(d){if(d instanceof Lp){if(d.silent)return this.#i.promise;if(d.revert){if(this.state.data===void 0)throw d;return this.state.data}}throw this.#a({type:"error",error:d}),this.#n.config.onError?.(d,this),this.#n.config.onSettled?.(this.state.data,d,this),d}finally{this.scheduleGc()}}#a(e){const t=i=>{switch(e.type){case"failed":return{...i,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...aR(i.data,this.options),fetchMeta:e.meta??null};case"success":const r={...i,...xC(e.data,e.dataUpdatedAt),dataUpdateCount:i.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?r:void 0,r;case"error":const o=e.error;return{...i,error:o,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...e.state}}};this.state=t(this.state),Ct.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function aR(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:nR(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function xC(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function SC(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,i=t!==void 0,r=i?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:i?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var oR=class extends Zo{constructor(e,t){super(),this.options=t,this.#e=e,this.#a=null,this.#s=Mp(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#o;#s;#a;#p;#f;#h;#c;#u;#l;#g=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),CC(this.#t,this.options)?this.#d():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Bp(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Bp(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#S(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,i=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ln(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#C(),this.#t.setOptions(this.options),t._defaulted&&!bd(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&EC(this.#t,i,this.options,t)&&this.#d(),this.updateResult(),r&&(this.#t!==i||Ln(this.options.enabled,this.#t)!==Ln(t.enabled,this.#t)||Ar(this.options.staleTime,this.#t)!==Ar(t.staleTime,this.#t))&&this.#m();const o=this.#v();r&&(this.#t!==i||Ln(this.options.enabled,this.#t)!==Ln(t.enabled,this.#t)||o!==this.#l)&&this.#b(o)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),i=this.createResult(t,e);return HF(this,i)&&(this.#r=i,this.#o=this.options,this.#i=this.#t.state),i}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(i,r)=>(this.trackProp(r),t?.(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(i,r))})}trackProp(e){this.#g.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),i=this.#e.getQueryCache().build(this.#e,t);return i.fetch().then(()=>this.createResult(i,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#d(e){this.#C();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(jt)),t}#m(){this.#x();const e=Ar(this.options.staleTime,this.#t);if(Ra||this.#r.isStale||!Vp(e))return;const i=ZO(this.#r.dataUpdatedAt,e)+1;this.#c=ba.setTimeout(()=>{this.#r.isStale||this.updateResult()},i)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#b(e){this.#S(),this.#l=e,!(Ra||Ln(this.options.enabled,this.#t)===!1||!Vp(this.#l)||this.#l===0)&&(this.#u=ba.setInterval(()=>{(this.options.refetchIntervalInBackground||Gm.isFocused())&&this.#d()},this.#l))}#y(){this.#m(),this.#b(this.#v())}#x(){this.#c&&(ba.clearTimeout(this.#c),this.#c=void 0)}#S(){this.#u&&(ba.clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const i=this.#t,r=this.options,o=this.#r,c=this.#i,u=this.#o,g=e!==i?e.state:this.#n,{state:p}=e;let m={...p},b=!1,y;if(t._optimisticResults){const G=this.hasListeners(),z=!G&&CC(e,t),M=G&&EC(e,i,t,r);(z||M)&&(m={...m,...aR(p.data,e.options)}),t._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:x,errorUpdatedAt:T,status:E}=m;y=m.data;let w=!1;if(t.placeholderData!==void 0&&y===void 0&&E==="pending"){let G;o?.isPlaceholderData&&t.placeholderData===u?.placeholderData?(G=o.data,w=!0):G=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,G!==void 0&&(E="success",y=Dp(o?.data,G,t),b=!0)}if(t.select&&y!==void 0&&!w)if(o&&y===c?.data&&t.select===this.#p)y=this.#f;else try{this.#p=t.select,y=t.select(y),y=Dp(o?.data,y,t),this.#f=y,this.#a=null}catch(G){this.#a=G}this.#a&&(x=this.#a,y=this.#f,T=Date.now(),E="error");const R=m.fetchStatus==="fetching",P=E==="pending",I=E==="error",O=P&&R,k=y!==void 0,H={status:E,fetchStatus:m.fetchStatus,isPending:P,isSuccess:E==="success",isError:I,isInitialLoading:O,isLoading:O,data:y,dataUpdatedAt:m.dataUpdatedAt,error:x,errorUpdatedAt:T,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>g.dataUpdateCount||m.errorUpdateCount>g.errorUpdateCount,isFetching:R,isRefetching:R&&!P,isLoadingError:I&&!k,isPaused:m.fetchStatus==="paused",isPlaceholderData:b,isRefetchError:I&&k,isStale:Wm(e,t),refetch:this.refetch,promise:this.#s,isEnabled:Ln(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const G=W=>{H.status==="error"?W.reject(H.error):H.data!==void 0&&W.resolve(H.data)},z=()=>{const W=this.#s=H.promise=Mp();G(W)},M=this.#s;switch(M.status){case"pending":e.queryHash===i.queryHash&&G(M);break;case"fulfilled":(H.status==="error"||H.data!==M.value)&&z();break;case"rejected":(H.status!=="error"||H.error!==M.reason)&&z();break}}return H}updateResult(){const e=this.#r,t=this.createResult(this.#t,this.options);if(this.#i=this.#t.state,this.#o=this.options,this.#i.data!==void 0&&(this.#h=this.#t),bd(t,e))return;this.#r=t;const i=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,o=typeof r=="function"?r():r;if(o==="all"||!o&&!this.#g.size)return!0;const c=new Set(o??this.#g);return this.options.throwOnError&&c.add("error"),Object.keys(this.#r).some(u=>{const d=u;return this.#r[d]!==e[d]&&c.has(d)})};this.#E({listeners:i()})}#C(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#E(e){Ct.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function BF(e,t){return Ln(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function CC(e,t){return BF(e,t)||e.state.data!==void 0&&Bp(e,t,t.refetchOnMount)}function Bp(e,t,i){if(Ln(t.enabled,e)!==!1&&Ar(t.staleTime,e)!=="static"){const r=typeof i=="function"?i(e):i;return r==="always"||r!==!1&&Wm(e,t)}return!1}function EC(e,t,i,r){return(e!==t||Ln(r.enabled,e)===!1)&&(!i.suspense||e.state.status!=="error")&&Wm(e,i)}function Wm(e,t){return Ln(t.enabled,e)!==!1&&e.isStaleByTime(Ar(t.staleTime,e))}function HF(e,t){return!bd(e.getCurrentResult(),t)}function xd(e){return{onFetch:(t,i)=>{const r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,c=t.state.data?.pages||[],u=t.state.data?.pageParams||[];let d={pages:[],pageParams:[]},g=0;const p=async()=>{let m=!1;const b=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},y=eR(t.options,t.fetchOptions),x=async(T,E,w)=>{if(m)return Promise.reject();if(E==null&&T.pages.length)return Promise.resolve(T);const P=(()=>{const U={client:t.client,queryKey:t.queryKey,pageParam:E,direction:w?"backward":"forward",meta:t.options.meta};return b(U),U})(),I=await y(P),{maxPages:O}=t.options,k=w?AF:PF;return{pages:k(T.pages,I,O),pageParams:k(T.pageParams,E,O)}};if(o&&c.length){const T=o==="backward",E=T?sR:Hp,w={pages:c,pageParams:u},R=E(r,w);d=await x(w,R,T)}else{const T=e??c.length;do{const E=g===0?u[0]??r.initialPageParam:Hp(r,d);if(g>0&&E==null)break;d=await x(d,E),g++}while(g<T)}return d};t.options.persister?t.fetchFn=()=>t.options.persister?.(p,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},i):t.fetchFn=p}}}function Hp(e,{pages:t,pageParams:i}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,i[r],i):void 0}function sR(e,{pages:t,pageParams:i}){return t.length>0?e.getPreviousPageParam?.(t[0],t,i[0],i):void 0}function FF(e,t){return t?Hp(e,t)!=null:!1}function $F(e,t){return!t||!e.getPreviousPageParam?!1:sR(e,t)!=null}var UF=class extends oR{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:xd()})}getOptimisticResult(e){return e.behavior=xd(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:i}=e,r=super.createResult(e,t),{isFetching:o,isRefetching:c,isError:u,isRefetchError:d}=r,g=i.fetchMeta?.fetchMore?.direction,p=u&&g==="forward",m=o&&g==="forward",b=u&&g==="backward",y=o&&g==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:FF(t,i.data),hasPreviousPage:$F(t,i.data),isFetchNextPageError:p,isFetchingNextPage:m,isFetchPreviousPageError:b,isFetchingPreviousPage:y,isRefetchError:d&&!p&&!b,isRefetching:c&&!m&&!y}}},jF=class extends rR{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||lR(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#i({type:"continue"})},i={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=iR({fn:()=>this.options.mutationFn?this.options.mutationFn(e,i):Promise.reject(new Error("No mutationFn found")),onFail:(c,u)=>{this.#i({type:"failed",failureCount:c,error:u})},onPause:()=>{this.#i({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",o=!this.#r.canStart();try{if(r)t();else{this.#i({type:"pending",variables:e,isPaused:o}),await this.#n.config.onMutate?.(e,this,i);const u=await this.options.onMutate?.(e,i);u!==this.state.context&&this.#i({type:"pending",context:u,variables:e,isPaused:o})}const c=await this.#r.start();return await this.#n.config.onSuccess?.(c,e,this.state.context,this,i),await this.options.onSuccess?.(c,e,this.state.context,i),await this.#n.config.onSettled?.(c,null,this.state.variables,this.state.context,this,i),await this.options.onSettled?.(c,null,e,this.state.context,i),this.#i({type:"success",data:c}),c}catch(c){try{throw await this.#n.config.onError?.(c,e,this.state.context,this,i),await this.options.onError?.(c,e,this.state.context,i),await this.#n.config.onSettled?.(void 0,c,this.state.variables,this.state.context,this,i),await this.options.onSettled?.(void 0,c,e,this.state.context,i),c}finally{this.#i({type:"error",error:c})}}finally{this.#n.runNext(this)}}#i(e){const t=i=>{switch(e.type){case"failed":return{...i,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...i,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:e.error,failureCount:i.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Ct.batch(()=>{this.#t.forEach(i=>{i.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function lR(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var GF=class extends Zo{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,i){const r=new jF({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:i});return this.add(r),r}add(e){this.#e.add(e);const t=Lu(e);if(typeof t=="string"){const i=this.#t.get(t);i?i.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Lu(e);if(typeof t=="string"){const i=this.#t.get(t);if(i)if(i.length>1){const r=i.indexOf(e);r!==-1&&i.splice(r,1)}else i[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Lu(e);if(typeof t=="string"){const r=this.#t.get(t)?.find(o=>o.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=Lu(e);return typeof t=="string"?this.#t.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Ct.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(i=>vC(t,i))}findAll(e={}){return this.getAll().filter(t=>vC(e,t))}notify(e){Ct.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Ct.batch(()=>Promise.all(e.map(t=>t.continue().catch(jt))))}};function Lu(e){return e.options.scope?.id}var WF=class extends Zo{#e;#t=void 0;#n;#r;constructor(t,i){super(),this.#e=t,this.setOptions(i),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const i=this.options;this.options=this.#e.defaultMutationOptions(t),bd(this.options,i)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),i?.mutationKey&&this.options.mutationKey&&ka(i.mutationKey)!==ka(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#i(),this.#o(t)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#o()}mutate(t,i){return this.#r=i,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(t)}#i(){const t=this.#n?.state??lR();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#o(t){Ct.batch(()=>{if(this.#r&&this.hasListeners()){const i=this.#t.variables,r=this.#t.context,o={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#r.onSuccess?.(t.data,i,r,o),this.#r.onSettled?.(t.data,null,i,r,o)):t?.type==="error"&&(this.#r.onError?.(t.error,i,r,o),this.#r.onSettled?.(void 0,t.error,i,r,o))}this.listeners.forEach(i=>{i(this.#t)})})}},qF=class extends Zo{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,i){const r=t.queryKey,o=t.queryHash??Um(r,t);let c=this.get(o);return c||(c=new LF({client:e,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:i,defaultOptions:e.getQueryDefaults(r)}),this.add(c)),c}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Ct.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(i=>mC(t,i))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(i=>mC(e,i)):t}notify(e){Ct.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Ct.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Ct.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},b$=class{#e;#t;#n;#r;#i;#o;#s;#a;constructor(e={}){this.#e=e.queryCache||new qF,this.#t=e.mutationCache||new GF,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#o=0}mount(){this.#o++,this.#o===1&&(this.#s=Gm.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#a=yd.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#o--,this.#o===0&&(this.#s?.(),this.#s=void 0,this.#a?.(),this.#a=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),i=this.#e.build(this,t),r=i.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&i.isStaleByTime(Ar(t.staleTime,i))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:i})=>{const r=i.data;return[t,r]})}setQueryData(e,t,i){const r=this.defaultQueryOptions({queryKey:e}),c=this.#e.get(r.queryHash)?.state.data,u=kF(t,c);if(u!==void 0)return this.#e.build(this,r).setData(u,{...i,manual:!0})}setQueriesData(e,t,i){return Ct.batch(()=>this.#e.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,i)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;Ct.batch(()=>{t.findAll(e).forEach(i=>{t.remove(i)})})}resetQueries(e,t){const i=this.#e;return Ct.batch(()=>(i.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const i={revert:!0,...t},r=Ct.batch(()=>this.#e.findAll(e).map(o=>o.cancel(i)));return Promise.all(r).then(jt).catch(jt)}invalidateQueries(e,t={}){return Ct.batch(()=>(this.#e.findAll(e).forEach(i=>{i.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const i={...t,cancelRefetch:t.cancelRefetch??!0},r=Ct.batch(()=>this.#e.findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let c=o.fetch(void 0,i);return i.throwOnError||(c=c.catch(jt)),o.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(r).then(jt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const i=this.#e.build(this,t);return i.isStaleByTime(Ar(t.staleTime,i))?i.fetch(t):Promise.resolve(i.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(jt).catch(jt)}fetchInfiniteQuery(e){return e.behavior=xd(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(jt).catch(jt)}ensureInfiniteQueryData(e){return e.behavior=xd(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return yd.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(ka(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],i={};return t.forEach(r=>{Ml(e,r.queryKey)&&Object.assign(i,r.defaultOptions)}),i}setMutationDefaults(e,t){this.#i.set(ka(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#i.values()],i={};return t.forEach(r=>{Ml(e,r.mutationKey)&&Object.assign(i,r.defaultOptions)}),i}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Um(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===jm&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},cR=C.createContext(void 0),uR=e=>{const t=C.useContext(cR);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},y$=({client:e,children:t})=>(C.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),V.jsx(cR.Provider,{value:e,children:t})),dR=C.createContext(!1),YF=()=>C.useContext(dR);dR.Provider;function KF(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var XF=C.createContext(KF()),QF=()=>C.useContext(XF),ZF=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},JF=e=>{C.useEffect(()=>{e.clearReset()},[e])},e8=({result:e,errorResetBoundary:t,throwOnError:i,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||tR(i,[e.error,r])),t8=e=>{if(e.suspense){const i=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>i(r(...o)):i(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},n8=(e,t)=>e.isLoading&&e.isFetching&&!t,i8=(e,t)=>e?.suspense&&t.isPending,TC=(e,t,i)=>t.fetchOptimistic(e).catch(()=>{i.clearReset()});function fR(e,t,i){const r=YF(),o=QF(),c=uR(),u=c.defaultQueryOptions(e);c.getDefaultOptions().queries?._experimental_beforeQuery?.(u),u._optimisticResults=r?"isRestoring":"optimistic",t8(u),ZF(u,o),JF(o);const d=!c.getQueryCache().get(u.queryHash),[g]=C.useState(()=>new t(c,u)),p=g.getOptimisticResult(u),m=!r&&e.subscribed!==!1;if(C.useSyncExternalStore(C.useCallback(b=>{const y=m?g.subscribe(Ct.batchCalls(b)):jt;return g.updateResult(),y},[g,m]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),C.useEffect(()=>{g.setOptions(u)},[u,g]),i8(u,p))throw TC(u,g,o);if(e8({result:p,errorResetBoundary:o,throwOnError:u.throwOnError,query:c.getQueryCache().get(u.queryHash),suspense:u.suspense}))throw p.error;return c.getDefaultOptions().queries?._experimental_afterQuery?.(u,p),u.experimental_prefetchInRender&&!Ra&&n8(p,r)&&(d?TC(u,g,o):c.getQueryCache().get(u.queryHash)?.promise)?.catch(jt).finally(()=>{g.updateResult()}),u.notifyOnChangeProps?p:g.trackResult(p)}function x$(e,t){return fR(e,oR)}function S$(e,t){const i=uR(),[r]=C.useState(()=>new WF(i,e));C.useEffect(()=>{r.setOptions(e)},[r,e]);const o=C.useSyncExternalStore(C.useCallback(u=>r.subscribe(Ct.batchCalls(u)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),c=C.useCallback((u,d)=>{r.mutate(u,d).catch(jt)},[r]);if(o.error&&tR(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:c,mutateAsync:o.mutate}}function C$(e,t){return fR(e,UF)}export{C8 as $,UO as A,aP as B,d8 as C,S$ as D,H8 as E,DB as F,$C as G,F8 as H,kB as I,q8 as J,$8 as K,BB as L,k8 as M,U8 as N,j8 as O,c8 as P,G8 as Q,MN as R,xO as S,C2 as T,W8 as U,qB as V,y8 as W,T8 as X,x8 as Y,S8 as Z,O8 as _,CO as a,E8 as a0,w8 as a1,R8 as a2,eH as a3,zB as a4,b$ as a5,y$ as a6,g$ as a7,h$ as a8,GH as a9,B8 as aA,m$ as aB,Hr as aa,h2 as ab,r8 as ac,a8 as ad,u8 as ae,WB as af,p$ as ag,Y8 as ah,X8 as ai,K8 as aj,KB as ak,f$ as al,h8 as am,p8 as an,g8 as ao,C$ as ap,i$ as aq,o$ as ar,r$ as as,a$ as at,_8 as au,V8 as av,z8 as aw,D8 as ax,M8 as ay,L8 as az,f8 as b,XO as c,TB as d,Q8 as e,J8 as f,Z8 as g,e$ as h,n$ as i,V as j,t$ as k,N8 as l,I8 as m,P8 as n,A8 as o,s$ as p,l$ as q,C as r,c$ as s,u$ as t,x$ as u,d$ as v,m8 as w,b8 as x,v8 as y,$B as z};