hkcc 0.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.
@@ -0,0 +1,256 @@
1
+ var Vj=Object.create;var{getPrototypeOf:kj,defineProperty:GV,getOwnPropertyNames:Dj}=Object;var Mj=Object.prototype.hasOwnProperty;var c=(Z,X,Y)=>{Y=Z!=null?Vj(kj(Z)):{};let Q=X||!Z||!Z.__esModule?GV(Y,"default",{value:Z,enumerable:!0}):Y;for(let G of Dj(Z))if(!Mj.call(Q,G))GV(Q,G,{get:()=>Z[G],enumerable:!0});return Q};var f4=(Z,X)=>()=>(X||Z((X={exports:{}}).exports,X),X.exports);var Tj=((Z)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(Z,{get:(X,Y)=>(typeof require<"u"?require:X)[Y]}):Z)(function(Z){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+Z+'" is not supported')});var HV=f4((vj)=>{(function(){function Z(){if(u=!1,j){var e=vj.unstable_now();$0=e;var Y0=!0;try{w:{P=!1,E&&(E=!1,p(y),y=-1),v=!0;var z0=M;try{$:{K(e);for(T=Y(L);T!==null&&!(T.expirationTime>e&&B());){var Z0=T.callback;if(typeof Z0==="function"){T.callback=null,M=T.priorityLevel;var C0=Z0(T.expirationTime<=e);if(e=vj.unstable_now(),typeof C0==="function"){T.callback=C0,K(e),Y0=!0;break $}T===Y(L)&&Q(L),K(e)}else Q(L);T=Y(L)}if(T!==null)Y0=!0;else{var C=Y(I);C!==null&&_(q,C.startTime-e),Y0=!1}}break w}finally{T=null,M=z0,v=!1}Y0=void 0}}finally{Y0?t():j=!1}}}function X(e,Y0){var z0=e.length;e.push(Y0);w:for(;0<z0;){var Z0=z0-1>>>1,C0=e[Z0];if(0<G(C0,Y0))e[Z0]=Y0,e[z0]=C0,z0=Z0;else break w}}function Y(e){return e.length===0?null:e[0]}function Q(e){if(e.length===0)return null;var Y0=e[0],z0=e.pop();if(z0!==Y0){e[0]=z0;w:for(var Z0=0,C0=e.length,C=C0>>>1;Z0<C;){var Q0=2*(Z0+1)-1,L0=e[Q0],J0=Q0+1,O0=e[J0];if(0>G(L0,z0))J0<C0&&0>G(O0,L0)?(e[Z0]=O0,e[J0]=z0,Z0=J0):(e[Z0]=L0,e[Q0]=z0,Z0=Q0);else if(J0<C0&&0>G(O0,z0))e[Z0]=O0,e[J0]=z0,Z0=J0;else break w}}return Y0}function G(e,Y0){var z0=e.sortIndex-Y0.sortIndex;return z0!==0?z0:e.id-Y0.id}function K(e){for(var Y0=Y(I);Y0!==null;){if(Y0.callback===null)Q(I);else if(Y0.startTime<=e)Q(I),Y0.sortIndex=Y0.expirationTime,X(L,Y0);else break;Y0=Y(I)}}function q(e){if(E=!1,K(e),!P)if(Y(L)!==null)P=!0,j||(j=!0,t());else{var Y0=Y(I);Y0!==null&&_(q,Y0.startTime-e)}}function B(){return u?!0:vj.unstable_now()-$0<m?!1:!0}function _(e,Y0){y=l(function(){e(vj.unstable_now())},Y0)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),vj.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var O=performance;vj.unstable_now=function(){return O.now()}}else{var A=Date,F=A.now();vj.unstable_now=function(){return A.now()-F}}var L=[],I=[],D=1,T=null,M=3,v=!1,P=!1,E=!1,u=!1,l=typeof setTimeout==="function"?setTimeout:null,p=typeof clearTimeout==="function"?clearTimeout:null,n=typeof setImmediate<"u"?setImmediate:null,j=!1,y=-1,m=5,$0=-1;if(typeof n==="function")var t=function(){n(Z)};else if(typeof MessageChannel<"u"){var s=new MessageChannel,M0=s.port2;s.port1.onmessage=Z,t=function(){M0.postMessage(null)}}else t=function(){l(Z,0)};vj.unstable_IdlePriority=5,vj.unstable_ImmediatePriority=1,vj.unstable_LowPriority=4,vj.unstable_NormalPriority=3,vj.unstable_Profiling=null,vj.unstable_UserBlockingPriority=2,vj.unstable_cancelCallback=function(e){e.callback=null},vj.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):m=0<e?Math.floor(1000/e):5},vj.unstable_getCurrentPriorityLevel=function(){return M},vj.unstable_next=function(e){switch(M){case 1:case 2:case 3:var Y0=3;break;default:Y0=M}var z0=M;M=Y0;try{return e()}finally{M=z0}},vj.unstable_requestPaint=function(){u=!0},vj.unstable_runWithPriority=function(e,Y0){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var z0=M;M=e;try{return Y0()}finally{M=z0}},vj.unstable_scheduleCallback=function(e,Y0,z0){var Z0=vj.unstable_now();switch(typeof z0==="object"&&z0!==null?(z0=z0.delay,z0=typeof z0==="number"&&0<z0?Z0+z0:Z0):z0=Z0,e){case 1:var C0=-1;break;case 2:C0=250;break;case 5:C0=1073741823;break;case 4:C0=1e4;break;default:C0=5000}return C0=z0+C0,e={id:D++,callback:Y0,priorityLevel:e,startTime:z0,expirationTime:C0,sortIndex:-1},z0>Z0?(e.sortIndex=z0,X(I,e),Y(L)===null&&e===Y(I)&&(E?(p(y),y=-1):E=!0,_(q,z0-Z0))):(e.sortIndex=C0,X(L,e),P||v||(P=!0,j||(j=!0,t()))),e},vj.unstable_shouldYield=B,vj.unstable_wrapCallback=function(e){var Y0=M;return function(){var z0=M;M=Y0;try{return e.apply(this,arguments)}finally{M=z0}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var U0=f4((Pj,qQ)=>{(function(){function Z(k,d){Object.defineProperty(Q.prototype,k,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",d[0],d[1])}})}function X(k){if(k===null||typeof k!=="object")return null;return k=S1&&k[S1]||k["@@iterator"],typeof k==="function"?k:null}function Y(k,d){k=(k=k.constructor)&&(k.displayName||k.name)||"ReactClass";var w0=k+"."+d;B0[w0]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",d,k),B0[w0]=!0)}function Q(k,d,w0){this.props=k,this.context=d,this.refs=q5,this.updater=w0||iw}function G(){}function K(k,d,w0){this.props=k,this.context=d,this.refs=q5,this.updater=w0||iw}function q(){}function B(k){return""+k}function _(k){try{B(k);var d=!1}catch(_0){d=!0}if(d){d=console;var w0=d.error,X0=typeof Symbol==="function"&&Symbol.toStringTag&&k[Symbol.toStringTag]||k.constructor.name||"Object";return w0.call(d,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",X0),B(k)}}function O(k){if(k==null)return null;if(typeof k==="function")return k.$$typeof===P5?null:k.displayName||k.name||null;if(typeof k==="string")return k;switch(k){case C0:return"Fragment";case Q0:return"Profiler";case C:return"StrictMode";case R0:return"Suspense";case k0:return"SuspenseList";case Tw:return"Activity"}if(typeof k==="object")switch(typeof k.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),k.$$typeof){case Z0:return"Portal";case J0:return k.displayName||"Context";case L0:return(k._context.displayName||"Context")+".Consumer";case O0:var d=k.render;return k=k.displayName,k||(k=d.displayName||d.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case d0:return d=k.displayName||null,d!==null?d:O(k.type)||"Memo";case x0:d=k._payload,k=k._init;try{return O(k(d))}catch(w0){}}return null}function A(k){if(k===C0)return"<>";if(typeof k==="object"&&k!==null&&k.$$typeof===x0)return"<...>";try{var d=O(k);return d?"<"+d+">":"<...>"}catch(w0){return"<...>"}}function F(){var k=j0.A;return k===null?null:k.getOwner()}function L(){return Error("react-stack-top-frame")}function I(k){if(G1.call(k,"key")){var d=Object.getOwnPropertyDescriptor(k,"key").get;if(d&&d.isReactWarning)return!1}return k.key!==void 0}function D(k,d){function w0(){p6||(p6=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",d))}w0.isReactWarning=!0,Object.defineProperty(k,"key",{get:w0,configurable:!0})}function T(){var k=O(this.type);return l1[k]||(l1[k]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),k=this.props.ref,k!==void 0?k:null}function M(k,d,w0,X0,_0,b0){var g0=w0.ref;return k={$$typeof:z0,type:k,key:d,props:w0,_owner:X0},(g0!==void 0?g0:null)!==null?Object.defineProperty(k,"ref",{enumerable:!1,get:T}):Object.defineProperty(k,"ref",{enumerable:!1,value:null}),k._store={},Object.defineProperty(k._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(k,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(k,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:_0}),Object.defineProperty(k,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:b0}),Object.freeze&&(Object.freeze(k.props),Object.freeze(k)),k}function v(k,d){return d=M(k.type,d,k.props,k._owner,k._debugStack,k._debugTask),k._store&&(d._store.validated=k._store.validated),d}function P(k){E(k)?k._store&&(k._store.validated=1):typeof k==="object"&&k!==null&&k.$$typeof===x0&&(k._payload.status==="fulfilled"?E(k._payload.value)&&k._payload.value._store&&(k._payload.value._store.validated=1):k._store&&(k._store.validated=1))}function E(k){return typeof k==="object"&&k!==null&&k.$$typeof===z0}function u(k){var d={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(w0){return d[w0]})}function l(k,d){return typeof k==="object"&&k!==null&&k.key!=null?(_(k.key),u(""+k.key)):d.toString(36)}function p(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status==="string"?k.then(q,q):(k.status="pending",k.then(function(d){k.status==="pending"&&(k.status="fulfilled",k.value=d)},function(d){k.status==="pending"&&(k.status="rejected",k.reason=d)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function n(k,d,w0,X0,_0){var b0=typeof k;if(b0==="undefined"||b0==="boolean")k=null;var g0=!1;if(k===null)g0=!0;else switch(b0){case"bigint":case"string":case"number":g0=!0;break;case"object":switch(k.$$typeof){case z0:case Z0:g0=!0;break;case x0:return g0=k._init,n(g0(k._payload),d,w0,X0,_0)}}if(g0){g0=k,_0=_0(g0);var Zw=X0===""?"."+l(g0,0):X0;return qw(_0)?(w0="",Zw!=null&&(w0=Zw.replace(Uw,"$&/")+"/"),n(_0,d,w0,"",function(Gw){return Gw})):_0!=null&&(E(_0)&&(_0.key!=null&&(g0&&g0.key===_0.key||_(_0.key)),w0=v(_0,w0+(_0.key==null||g0&&g0.key===_0.key?"":(""+_0.key).replace(Uw,"$&/")+"/")+Zw),X0!==""&&g0!=null&&E(g0)&&g0.key==null&&g0._store&&!g0._store.validated&&(w0._store.validated=2),_0=w0),d.push(_0)),1}if(g0=0,Zw=X0===""?".":X0+":",qw(k))for(var G0=0;G0<k.length;G0++)X0=k[G0],b0=Zw+l(X0,G0),g0+=n(X0,d,w0,b0,_0);else if(G0=X(k),typeof G0==="function")for(G0===k.entries&&(l5||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),l5=!0),k=G0.call(k),G0=0;!(X0=k.next()).done;)X0=X0.value,b0=Zw+l(X0,G0++),g0+=n(X0,d,w0,b0,_0);else if(b0==="object"){if(typeof k.then==="function")return n(p(k),d,w0,X0,_0);throw d=String(k),Error("Objects are not valid as a React child (found: "+(d==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":d)+"). If you meant to render a collection of children, use an array instead.")}return g0}function j(k,d,w0){if(k==null)return k;var X0=[],_0=0;return n(k,X0,"","",function(b0){return d.call(w0,b0,_0++)}),X0}function y(k){if(k._status===-1){var d=k._ioInfo;d!=null&&(d.start=d.end=performance.now()),d=k._result;var w0=d();if(w0.then(function(_0){if(k._status===0||k._status===-1){k._status=1,k._result=_0;var b0=k._ioInfo;b0!=null&&(b0.end=performance.now()),w0.status===void 0&&(w0.status="fulfilled",w0.value=_0)}},function(_0){if(k._status===0||k._status===-1){k._status=2,k._result=_0;var b0=k._ioInfo;b0!=null&&(b0.end=performance.now()),w0.status===void 0&&(w0.status="rejected",w0.reason=_0)}}),d=k._ioInfo,d!=null){d.value=w0;var X0=w0.displayName;typeof X0==="string"&&(d.name=X0)}k._status===-1&&(k._status=0,k._result=w0)}if(k._status===1)return d=k._result,d===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2
+
3
+ Your code should look like:
4
+ const MyComponent = lazy(() => import('./MyComponent'))
5
+
6
+ Did you accidentally put curly braces around the import?`,d),"default"in d||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
7
+
8
+ Your code should look like:
9
+ const MyComponent = lazy(() => import('./MyComponent'))`,d),d.default;throw k._result}function m(){var k=j0.H;return k===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
10
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
11
+ 2. You might be breaking the Rules of Hooks
12
+ 3. You might have more than one copy of React in the same app
13
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),k}function $0(){j0.asyncTransitions--}function t(k){if(I1===null)try{var d=("require"+Math.random()).slice(0,7);I1=(qQ&&qQ[d]).call(qQ,"timers").setImmediate}catch(w0){I1=function(X0){ew===!1&&(ew=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var _0=new MessageChannel;_0.port1.onmessage=X0,_0.port2.postMessage(void 0)}}return I1(k)}function s(k){return 1<k.length&&typeof AggregateError==="function"?AggregateError(k):k[0]}function M0(k,d){d!==Z5-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Z5=d}function e(k,d,w0){var X0=j0.actQueue;if(X0!==null)if(X0.length!==0)try{Y0(X0),t(function(){return e(k,d,w0)});return}catch(_0){j0.thrownErrors.push(_0)}else j0.actQueue=null;0<j0.thrownErrors.length?(X0=s(j0.thrownErrors),j0.thrownErrors.length=0,w0(X0)):d(k)}function Y0(k){if(!i5){i5=!0;var d=0;try{for(;d<k.length;d++){var w0=k[d];do{j0.didUsePromise=!1;var X0=w0(!1);if(X0!==null){if(j0.didUsePromise){k[d]=w0,k.splice(0,d);return}w0=X0}else break}while(1)}k.length=0}catch(_0){k.splice(0,d+1),j0.thrownErrors.push(_0)}finally{i5=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var z0=Symbol.for("react.transitional.element"),Z0=Symbol.for("react.portal"),C0=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),Q0=Symbol.for("react.profiler"),L0=Symbol.for("react.consumer"),J0=Symbol.for("react.context"),O0=Symbol.for("react.forward_ref"),R0=Symbol.for("react.suspense"),k0=Symbol.for("react.suspense_list"),d0=Symbol.for("react.memo"),x0=Symbol.for("react.lazy"),Tw=Symbol.for("react.activity"),S1=Symbol.iterator,B0={},iw={isMounted:function(){return!1},enqueueForceUpdate:function(k){Y(k,"forceUpdate")},enqueueReplaceState:function(k){Y(k,"replaceState")},enqueueSetState:function(k){Y(k,"setState")}},F2=Object.assign,q5={};Object.freeze(q5),Q.prototype.isReactComponent={},Q.prototype.setState=function(k,d){if(typeof k!=="object"&&typeof k!=="function"&&k!=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,k,d,"setState")},Q.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};var tw={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(B5 in tw)tw.hasOwnProperty(B5)&&Z(B5,tw[B5]);G.prototype=Q.prototype,tw=K.prototype=new G,tw.constructor=K,F2(tw,Q.prototype),tw.isPureReactComponent=!0;var qw=Array.isArray,P5=Symbol.for("react.client.reference"),j0={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},G1=Object.prototype.hasOwnProperty,zw=console.createTask?console.createTask:function(){return null};tw={react_stack_bottom_frame:function(k){return k()}};var p6,Rw,l1={},f2=tw.react_stack_bottom_frame.bind(tw,L)(),q9=zw(A(L)),l5=!1,Uw=/\/+/g,s0=typeof reportError==="function"?reportError:function(k){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var d=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k==="object"&&k!==null&&typeof k.message==="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(d))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",k);return}console.error(k)},ew=!1,I1=null,Z5=0,x1=!1,i5=!1,y2=typeof queueMicrotask==="function"?function(k){queueMicrotask(function(){return queueMicrotask(k)})}:t;tw=Object.freeze({__proto__:null,c:function(k){return m().useMemoCache(k)}});var B5={map:j,forEach:function(k,d,w0){j(k,function(){d.apply(this,arguments)},w0)},count:function(k){var d=0;return j(k,function(){d++}),d},toArray:function(k){return j(k,function(d){return d})||[]},only:function(k){if(!E(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};Pj.Activity=Tw,Pj.Children=B5,Pj.Component=Q,Pj.Fragment=C0,Pj.Profiler=Q0,Pj.PureComponent=K,Pj.StrictMode=C,Pj.Suspense=R0,Pj.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=j0,Pj.__COMPILER_RUNTIME=tw,Pj.act=function(k){var d=j0.actQueue,w0=Z5;Z5++;var X0=j0.actQueue=d!==null?d:[],_0=!1;try{var b0=k()}catch(G0){j0.thrownErrors.push(G0)}if(0<j0.thrownErrors.length)throw M0(d,w0),k=s(j0.thrownErrors),j0.thrownErrors.length=0,k;if(b0!==null&&typeof b0==="object"&&typeof b0.then==="function"){var g0=b0;return y2(function(){_0||x1||(x1=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(G0,Gw){_0=!0,g0.then(function(Ow){if(M0(d,w0),w0===0){try{Y0(X0),t(function(){return e(Ow,G0,Gw)})}catch(G4){j0.thrownErrors.push(G4)}if(0<j0.thrownErrors.length){var w1=s(j0.thrownErrors);j0.thrownErrors.length=0,Gw(w1)}}else G0(Ow)},function(Ow){M0(d,w0),0<j0.thrownErrors.length?(Ow=s(j0.thrownErrors),j0.thrownErrors.length=0,Gw(Ow)):Gw(Ow)})}}}var Zw=b0;if(M0(d,w0),w0===0&&(Y0(X0),X0.length!==0&&y2(function(){_0||x1||(x1=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),j0.actQueue=null),0<j0.thrownErrors.length)throw k=s(j0.thrownErrors),j0.thrownErrors.length=0,k;return{then:function(G0,Gw){_0=!0,w0===0?(j0.actQueue=X0,t(function(){return e(Zw,G0,Gw)})):G0(Zw)}}},Pj.cache=function(k){return function(){return k.apply(null,arguments)}},Pj.cacheSignal=function(){return null},Pj.captureOwnerStack=function(){var k=j0.getCurrentStack;return k===null?null:k()},Pj.cloneElement=function(k,d,w0){if(k===null||k===void 0)throw Error("The argument must be a React element, but you passed "+k+".");var X0=F2({},k.props),_0=k.key,b0=k._owner;if(d!=null){var g0;w:{if(G1.call(d,"ref")&&(g0=Object.getOwnPropertyDescriptor(d,"ref").get)&&g0.isReactWarning){g0=!1;break w}g0=d.ref!==void 0}g0&&(b0=F()),I(d)&&(_(d.key),_0=""+d.key);for(Zw in d)!G1.call(d,Zw)||Zw==="key"||Zw==="__self"||Zw==="__source"||Zw==="ref"&&d.ref===void 0||(X0[Zw]=d[Zw])}var Zw=arguments.length-2;if(Zw===1)X0.children=w0;else if(1<Zw){g0=Array(Zw);for(var G0=0;G0<Zw;G0++)g0[G0]=arguments[G0+2];X0.children=g0}X0=M(k.type,_0,X0,b0,k._debugStack,k._debugTask);for(_0=2;_0<arguments.length;_0++)P(arguments[_0]);return X0},Pj.createContext=function(k){return k={$$typeof:J0,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:L0,_context:k},k._currentRenderer=null,k._currentRenderer2=null,k},Pj.createElement=function(k,d,w0){for(var X0=2;X0<arguments.length;X0++)P(arguments[X0]);X0={};var _0=null;if(d!=null)for(G0 in Rw||!("__self"in d)||"key"in d||(Rw=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),I(d)&&(_(d.key),_0=""+d.key),d)G1.call(d,G0)&&G0!=="key"&&G0!=="__self"&&G0!=="__source"&&(X0[G0]=d[G0]);var b0=arguments.length-2;if(b0===1)X0.children=w0;else if(1<b0){for(var g0=Array(b0),Zw=0;Zw<b0;Zw++)g0[Zw]=arguments[Zw+2];Object.freeze&&Object.freeze(g0),X0.children=g0}if(k&&k.defaultProps)for(G0 in b0=k.defaultProps,b0)X0[G0]===void 0&&(X0[G0]=b0[G0]);_0&&D(X0,typeof k==="function"?k.displayName||k.name||"Unknown":k);var G0=1e4>j0.recentlyCreatedOwnerStacks++;return M(k,_0,X0,F(),G0?Error("react-stack-top-frame"):f2,G0?zw(A(k)):q9)},Pj.createRef=function(){var k={current:null};return Object.seal(k),k},Pj.forwardRef=function(k){k!=null&&k.$$typeof===d0?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof k!=="function"?console.error("forwardRef requires a render function but was given %s.",k===null?"null":typeof k):k.length!==0&&k.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",k.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),k!=null&&k.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var d={$$typeof:O0,render:k},w0;return Object.defineProperty(d,"displayName",{enumerable:!1,configurable:!0,get:function(){return w0},set:function(X0){w0=X0,k.name||k.displayName||(Object.defineProperty(k,"name",{value:X0}),k.displayName=X0)}}),d},Pj.isValidElement=E,Pj.lazy=function(k){k={_status:-1,_result:k};var d={$$typeof:x0,_payload:k,_init:y},w0={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return k._ioInfo=w0,d._debugInfo=[{awaited:w0}],d},Pj.memo=function(k,d){k==null&&console.error("memo: The first argument must be a component. Instead received: %s",k===null?"null":typeof k),d={$$typeof:d0,type:k,compare:d===void 0?null:d};var w0;return Object.defineProperty(d,"displayName",{enumerable:!1,configurable:!0,get:function(){return w0},set:function(X0){w0=X0,k.name||k.displayName||(Object.defineProperty(k,"name",{value:X0}),k.displayName=X0)}}),d},Pj.startTransition=function(k){var d=j0.T,w0={};w0._updatedFibers=new Set,j0.T=w0;try{var X0=k(),_0=j0.S;_0!==null&&_0(w0,X0),typeof X0==="object"&&X0!==null&&typeof X0.then==="function"&&(j0.asyncTransitions++,X0.then($0,$0),X0.then(q,s0))}catch(b0){s0(b0)}finally{d===null&&w0._updatedFibers&&(k=w0._updatedFibers.size,w0._updatedFibers.clear(),10<k&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),d!==null&&w0.types!==null&&(d.types!==null&&d.types!==w0.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),d.types=w0.types),j0.T=d}},Pj.unstable_useCacheRefresh=function(){return m().useCacheRefresh()},Pj.use=function(k){return m().use(k)},Pj.useActionState=function(k,d,w0){return m().useActionState(k,d,w0)},Pj.useCallback=function(k,d){return m().useCallback(k,d)},Pj.useContext=function(k){var d=m();return k.$$typeof===L0&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),d.useContext(k)},Pj.useDebugValue=function(k,d){return m().useDebugValue(k,d)},Pj.useDeferredValue=function(k,d){return m().useDeferredValue(k,d)},Pj.useEffect=function(k,d){return k==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),m().useEffect(k,d)},Pj.useEffectEvent=function(k){return m().useEffectEvent(k)},Pj.useId=function(){return m().useId()},Pj.useImperativeHandle=function(k,d,w0){return m().useImperativeHandle(k,d,w0)},Pj.useInsertionEffect=function(k,d){return k==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),m().useInsertionEffect(k,d)},Pj.useLayoutEffect=function(k,d){return k==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),m().useLayoutEffect(k,d)},Pj.useMemo=function(k,d){return m().useMemo(k,d)},Pj.useOptimistic=function(k,d){return m().useOptimistic(k,d)},Pj.useReducer=function(k,d,w0){return m().useReducer(k,d,w0)},Pj.useRef=function(k){return m().useRef(k)},Pj.useState=function(k){return m().useState(k)},Pj.useSyncExternalStore=function(k,d,w0){return m().useSyncExternalStore(k,d,w0)},Pj.useTransition=function(){return m().useTransition()},Pj.version="19.2.3",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var KV=f4((Ej)=>{var FB=c(U0());(function(){function Z(){}function X(A){return""+A}function Y(A,F,L){var I=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{X(I);var D=!1}catch(T){D=!0}return D&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol==="function"&&Symbol.toStringTag&&I[Symbol.toStringTag]||I.constructor.name||"Object"),X(I)),{$$typeof:_,key:I==null?null:""+I,children:A,containerInfo:F,implementation:L}}function Q(A,F){if(A==="font")return"";if(typeof F==="string")return F==="use-credentials"?F:""}function G(A){return A===null?"`null`":A===void 0?"`undefined`":A===""?"an empty string":'something with type "'+typeof A+'"'}function K(A){return A===null?"`null`":A===void 0?"`undefined`":A===""?"an empty string":typeof A==="string"?JSON.stringify(A):typeof A==="number"?"`"+A+"`":'something with type "'+typeof A+'"'}function q(){var A=O.H;return A===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
14
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
15
+ 2. You might be breaking the Rules of Hooks
16
+ 3. You might have more than one copy of React in the same app
17
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),A}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var B={d:{f:Z,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:Z,C:Z,L:Z,m:Z,X:Z,S:Z,M:Z},p:0,findDOMNode:null},_=Symbol.for("react.portal"),O=FB.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),Ej.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=B,Ej.createPortal=function(A,F){var L=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!F||F.nodeType!==1&&F.nodeType!==9&&F.nodeType!==11)throw Error("Target container is not a DOM element.");return Y(A,F,null,L)},Ej.flushSync=function(A){var F=O.T,L=B.p;try{if(O.T=null,B.p=2,A)return A()}finally{O.T=F,B.p=L,B.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},Ej.preconnect=function(A,F){typeof A==="string"&&A?F!=null&&typeof F!=="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",K(F)):F!=null&&typeof F.crossOrigin!=="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",G(F.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",G(A)),typeof A==="string"&&(F?(F=F.crossOrigin,F=typeof F==="string"?F==="use-credentials"?F:"":void 0):F=null,B.d.C(A,F))},Ej.prefetchDNS=function(A){if(typeof A!=="string"||!A)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",G(A));else if(1<arguments.length){var F=arguments[1];typeof F==="object"&&F.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",K(F)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",K(F))}typeof A==="string"&&B.d.D(A)},Ej.preinit=function(A,F){if(typeof A==="string"&&A?F==null||typeof F!=="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",K(F)):F.as!=="style"&&F.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',K(F.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",G(A)),typeof A==="string"&&F&&typeof F.as==="string"){var L=F.as,I=Q(L,F.crossOrigin),D=typeof F.integrity==="string"?F.integrity:void 0,T=typeof F.fetchPriority==="string"?F.fetchPriority:void 0;L==="style"?B.d.S(A,typeof F.precedence==="string"?F.precedence:void 0,{crossOrigin:I,integrity:D,fetchPriority:T}):L==="script"&&B.d.X(A,{crossOrigin:I,integrity:D,fetchPriority:T,nonce:typeof F.nonce==="string"?F.nonce:void 0})}},Ej.preinitModule=function(A,F){var L="";if(typeof A==="string"&&A||(L+=" The `href` argument encountered was "+G(A)+"."),F!==void 0&&typeof F!=="object"?L+=" The `options` argument encountered was "+G(F)+".":F&&("as"in F)&&F.as!=="script"&&(L+=" The `as` option encountered was "+K(F.as)+"."),L)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",L);else switch(L=F&&typeof F.as==="string"?F.as:"script",L){case"script":break;default:L=K(L),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',L,A)}if(typeof A==="string")if(typeof F==="object"&&F!==null){if(F.as==null||F.as==="script")L=Q(F.as,F.crossOrigin),B.d.M(A,{crossOrigin:L,integrity:typeof F.integrity==="string"?F.integrity:void 0,nonce:typeof F.nonce==="string"?F.nonce:void 0})}else F==null&&B.d.M(A)},Ej.preload=function(A,F){var L="";if(typeof A==="string"&&A||(L+=" The `href` argument encountered was "+G(A)+"."),F==null||typeof F!=="object"?L+=" The `options` argument encountered was "+G(F)+".":typeof F.as==="string"&&F.as||(L+=" The `as` option encountered was "+G(F.as)+"."),L&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',L),typeof A==="string"&&typeof F==="object"&&F!==null&&typeof F.as==="string"){L=F.as;var I=Q(L,F.crossOrigin);B.d.L(A,L,{crossOrigin:I,integrity:typeof F.integrity==="string"?F.integrity:void 0,nonce:typeof F.nonce==="string"?F.nonce:void 0,type:typeof F.type==="string"?F.type:void 0,fetchPriority:typeof F.fetchPriority==="string"?F.fetchPriority:void 0,referrerPolicy:typeof F.referrerPolicy==="string"?F.referrerPolicy:void 0,imageSrcSet:typeof F.imageSrcSet==="string"?F.imageSrcSet:void 0,imageSizes:typeof F.imageSizes==="string"?F.imageSizes:void 0,media:typeof F.media==="string"?F.media:void 0})}},Ej.preloadModule=function(A,F){var L="";typeof A==="string"&&A||(L+=" The `href` argument encountered was "+G(A)+"."),F!==void 0&&typeof F!=="object"?L+=" The `options` argument encountered was "+G(F)+".":F&&("as"in F)&&typeof F.as!=="string"&&(L+=" The `as` option encountered was "+G(F.as)+"."),L&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',L),typeof A==="string"&&(F?(L=Q(F.as,F.crossOrigin),B.d.m(A,{as:typeof F.as==="string"&&F.as!=="script"?F.as:void 0,crossOrigin:L,integrity:typeof F.integrity==="string"?F.integrity:void 0})):B.d.m(A))},Ej.requestFormReset=function(A){B.d.r(A)},Ej.unstable_batchedUpdates=function(A,F){return A(F)},Ej.useFormState=function(A,F,L){return q().useFormState(A,F,L)},Ej.useFormStatus=function(){return q().useHostTransitionStatus()},Ej.version="19.2.3",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var t9=f4((dc,qV)=>{var gj=c(KV());qV.exports=gj});var BV=f4((Cj)=>{var Fw=c(HV()),u$=c(U0()),_B=c(t9());(function(){function Z(w,$){for(w=w.memoizedState;w!==null&&0<$;)w=w.next,$--;return w}function X(w,$,J,z){if(J>=$.length)return z;var W=$[J],H=V1(w)?w.slice():e0({},w);return H[W]=X(w[W],$,J+1,z),H}function Y(w,$,J){if($.length!==J.length)console.warn("copyWithRename() expects paths of the same length");else{for(var z=0;z<J.length-1;z++)if($[z]!==J[z]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return Q(w,$,J,0)}}function Q(w,$,J,z){var W=$[z],H=V1(w)?w.slice():e0({},w);return z+1===$.length?(H[J[z]]=H[W],V1(H)?H.splice(W,1):delete H[W]):H[W]=Q(w[W],$,J,z+1),H}function G(w,$,J){var z=$[J],W=V1(w)?w.slice():e0({},w);if(J+1===$.length)return V1(W)?W.splice(z,1):delete W[z],W;return W[z]=G(w[z],$,J+1),W}function K(){return!1}function q(){return null}function B(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function _(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function O(){}function A(){}function F(w){var $=[];return w.forEach(function(J){$.push(J)}),$.sort().join(", ")}function L(w,$,J,z){return new qg(w,$,J,z)}function I(w,$){w.context===H8&&(SK(w.current,2,$,w,null,null),w$())}function D(w,$){if(L2!==null){var J=$.staleFamilies;$=$.updatedFamilies,FJ(),FO(w.current,$,J),w$()}}function T(w){L2=w}function M(w){return!(!w||w.nodeType!==1&&w.nodeType!==9&&w.nodeType!==11)}function v(w){var $=w,J=w;if(w.alternate)for(;$.return;)$=$.return;else{w=$;do $=w,($.flags&4098)!==0&&(J=$.return),w=$.return;while(w)}return $.tag===3?J:null}function P(w){if(w.tag===13){var $=w.memoizedState;if($===null&&(w=w.alternate,w!==null&&($=w.memoizedState)),$!==null)return $.dehydrated}return null}function E(w){if(w.tag===31){var $=w.memoizedState;if($===null&&(w=w.alternate,w!==null&&($=w.memoizedState)),$!==null)return $.dehydrated}return null}function u(w){if(v(w)!==w)throw Error("Unable to find node on an unmounted component.")}function l(w){var $=w.alternate;if(!$){if($=v(w),$===null)throw Error("Unable to find node on an unmounted component.");return $!==w?null:w}for(var J=w,z=$;;){var W=J.return;if(W===null)break;var H=W.alternate;if(H===null){if(z=W.return,z!==null){J=z;continue}break}if(W.child===H.child){for(H=W.child;H;){if(H===J)return u(W),w;if(H===z)return u(W),$;H=H.sibling}throw Error("Unable to find node on an unmounted component.")}if(J.return!==z.return)J=W,z=H;else{for(var U=!1,N=W.child;N;){if(N===J){U=!0,J=W,z=H;break}if(N===z){U=!0,z=W,J=H;break}N=N.sibling}if(!U){for(N=H.child;N;){if(N===J){U=!0,J=H,z=W;break}if(N===z){U=!0,z=H,J=W;break}N=N.sibling}if(!U)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(J.alternate!==z)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(J.tag!==3)throw Error("Unable to find node on an unmounted component.");return J.stateNode.current===J?w:$}function p(w){var $=w.tag;if($===5||$===26||$===27||$===6)return w;for(w=w.child;w!==null;){if($=p(w),$!==null)return $;w=w.sibling}return null}function n(w){if(w===null||typeof w!=="object")return null;return w=IL&&w[IL]||w["@@iterator"],typeof w==="function"?w:null}function j(w){if(w==null)return null;if(typeof w==="function")return w.$$typeof===RC?null:w.displayName||w.name||null;if(typeof w==="string")return w;switch(w){case Q$:return"Fragment";case mK:return"Profiler";case zz:return"StrictMode";case uK:return"Suspense";case pK:return"SuspenseList";case lK:return"Activity"}if(typeof w==="object")switch(typeof w.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),w.$$typeof){case z$:return"Portal";case T4:return w.displayName||"Context";case cK:return(w._context.displayName||"Context")+".Consumer";case DJ:var $=w.render;return w=w.displayName,w||(w=$.displayName||$.name||"",w=w!==""?"ForwardRef("+w+")":"ForwardRef"),w;case Qz:return $=w.displayName||null,$!==null?$:j(w.type)||"Memo";case $2:$=w._payload,w=w._init;try{return j(w($))}catch(J){}}return null}function y(w){return typeof w.tag==="number"?m(w):typeof w.name==="string"?w.name:null}function m(w){var $=w.type;switch(w.tag){case 31:return"Activity";case 24:return"Cache";case 9:return($._context.displayName||"Context")+".Consumer";case 10:return $.displayName||"Context";case 18:return"DehydratedFragment";case 11:return w=$.render,w=w.displayName||w.name||"",$.displayName||(w!==""?"ForwardRef("+w+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return $;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return j($);case 8:return $===zz?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof $==="function")return $.displayName||$.name||null;if(typeof $==="string")return $;break;case 29:if($=w._debugInfo,$!=null){for(var J=$.length-1;0<=J;J--)if(typeof $[J].name==="string")return $[J].name}if(w.return!==null)return m(w.return)}return null}function $0(w){return{current:w}}function t(w,$){0>B6?console.error("Unexpected pop."):($!==rK[B6]&&console.error("Unexpected Fiber popped."),w.current=iK[B6],iK[B6]=null,rK[B6]=null,B6--)}function s(w,$,J){B6++,iK[B6]=w.current,rK[B6]=J,w.current=$}function M0(w){return w===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),w}function e(w,$){s(X8,$,w),s(MJ,w,w),s(J8,null,w);var J=$.nodeType;switch(J){case 9:case 11:J=J===9?"#document":"#fragment",$=($=$.documentElement)?($=$.namespaceURI)?iN($):T6:T6;break;default:if(J=$.tagName,$=$.namespaceURI)$=iN($),$=rN($,J);else switch(J){case"svg":$=m$;break;case"math":$=YQ;break;default:$=T6}}J=J.toLowerCase(),J=d_(null,J),J={context:$,ancestorInfo:J},t(J8,w),s(J8,J,w)}function Y0(w){t(J8,w),t(MJ,w),t(X8,w)}function z0(){return M0(J8.current)}function Z0(w){w.memoizedState!==null&&s(Wz,w,w);var $=M0(J8.current),J=w.type,z=rN($.context,J);J=d_($.ancestorInfo,J),z={context:z,ancestorInfo:J},$!==z&&(s(MJ,w,w),s(J8,z,w))}function C0(w){MJ.current===w&&(t(J8,w),t(MJ,w)),Wz.current===w&&(t(Wz,w),OX._currentValue=o9)}function C(){}function Q0(){if(TJ===0){VL=console.log,kL=console.info,DL=console.warn,ML=console.error,TL=console.group,vL=console.groupCollapsed,PL=console.groupEnd;var w={configurable:!0,enumerable:!0,value:C,writable:!0};Object.defineProperties(console,{info:w,log:w,warn:w,error:w,group:w,groupCollapsed:w,groupEnd:w})}TJ++}function L0(){if(TJ--,TJ===0){var w={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:e0({},w,{value:VL}),info:e0({},w,{value:kL}),warn:e0({},w,{value:DL}),error:e0({},w,{value:ML}),group:e0({},w,{value:TL}),groupCollapsed:e0({},w,{value:vL}),groupEnd:e0({},w,{value:PL})})}0>TJ&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function J0(w){var $=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,w=w.stack,Error.prepareStackTrace=$,w.startsWith(`Error: react-stack-top-frame
18
+ `)&&(w=w.slice(29)),$=w.indexOf(`
19
+ `),$!==-1&&(w=w.slice($+1)),$=w.indexOf("react_stack_bottom_frame"),$!==-1&&($=w.lastIndexOf(`
20
+ `,$)),$!==-1)w=w.slice(0,$);else return"";return w}function O0(w){if(nK===void 0)try{throw Error()}catch(J){var $=J.stack.trim().match(/\n( *(at )?)/);nK=$&&$[1]||"",EL=-1<J.stack.indexOf(`
21
+ at`)?" (<anonymous>)":-1<J.stack.indexOf("@")?"@unknown:0:0":""}return`
22
+ `+nK+w+EL}function R0(w,$){if(!w||aK)return"";var J=oK.get(w);if(J!==void 0)return J;aK=!0,J=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var z=null;z=a.H,a.H=null,Q0();try{var W={DetermineComponentFrameRoot:function(){try{if($){var R=function(){throw Error()};if(Object.defineProperty(R.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(R,[])}catch(q0){var i=q0}Reflect.construct(w,[],R)}else{try{R.call()}catch(q0){i=q0}w.call(R.prototype)}}else{try{throw Error()}catch(q0){i=q0}(R=w())&&typeof R.catch==="function"&&R.catch(function(){})}}catch(q0){if(q0&&i&&typeof q0.stack==="string")return[q0.stack,i.stack]}return[null,null]}};W.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var H=Object.getOwnPropertyDescriptor(W.DetermineComponentFrameRoot,"name");H&&H.configurable&&Object.defineProperty(W.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var U=W.DetermineComponentFrameRoot(),N=U[0],b=U[1];if(N&&b){var V=N.split(`
23
+ `),h=b.split(`
24
+ `);for(U=H=0;H<V.length&&!V[H].includes("DetermineComponentFrameRoot");)H++;for(;U<h.length&&!h[U].includes("DetermineComponentFrameRoot");)U++;if(H===V.length||U===h.length)for(H=V.length-1,U=h.length-1;1<=H&&0<=U&&V[H]!==h[U];)U--;for(;1<=H&&0<=U;H--,U--)if(V[H]!==h[U]){if(H!==1||U!==1)do if(H--,U--,0>U||V[H]!==h[U]){var f=`
25
+ `+V[H].replace(" at new "," at ");return w.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",w.displayName)),typeof w==="function"&&oK.set(w,f),f}while(1<=H&&0<=U);break}}}finally{aK=!1,a.H=z,L0(),Error.prepareStackTrace=J}return V=(V=w?w.displayName||w.name:"")?O0(V):"",typeof w==="function"&&oK.set(w,V),V}function k0(w,$){switch(w.tag){case 26:case 27:case 5:return O0(w.type);case 16:return O0("Lazy");case 13:return w.child!==$&&$!==null?O0("Suspense Fallback"):O0("Suspense");case 19:return O0("SuspenseList");case 0:case 15:return R0(w.type,!1);case 11:return R0(w.type.render,!1);case 1:return R0(w.type,!0);case 31:return O0("Activity");default:return""}}function d0(w){try{var $="",J=null;do{$+=k0(w,J);var z=w._debugInfo;if(z)for(var W=z.length-1;0<=W;W--){var H=z[W];if(typeof H.name==="string"){var U=$;w:{var{name:N,env:b,debugLocation:V}=H;if(V!=null){var h=J0(V),f=h.lastIndexOf(`
26
+ `),R=f===-1?h:h.slice(f+1);if(R.indexOf(N)!==-1){var i=`
27
+ `+R;break w}}i=O0(N+(b?" ["+b+"]":""))}$=U+i}}J=w,w=w.return}while(w);return $}catch(q0){return`
28
+ Error generating stack: `+q0.message+`
29
+ `+q0.stack}}function x0(w){return(w=w?w.displayName||w.name:"")?O0(w):""}function Tw(){if(Z2===null)return null;var w=Z2._debugOwner;return w!=null?y(w):null}function S1(){if(Z2===null)return"";var w=Z2;try{var $="";switch(w.tag===6&&(w=w.return),w.tag){case 26:case 27:case 5:$+=O0(w.type);break;case 13:$+=O0("Suspense");break;case 19:$+=O0("SuspenseList");break;case 31:$+=O0("Activity");break;case 30:case 0:case 15:case 1:w._debugOwner||$!==""||($+=x0(w.type));break;case 11:w._debugOwner||$!==""||($+=x0(w.type.render))}for(;w;)if(typeof w.tag==="number"){var J=w;w=J._debugOwner;var z=J._debugStack;if(w&&z){var W=J0(z);W!==""&&($+=`
30
+ `+W)}}else if(w.debugStack!=null){var H=w.debugStack;(w=w.owner)&&H&&($+=`
31
+ `+J0(H))}else break;var U=$}catch(N){U=`
32
+ Error generating stack: `+N.message+`
33
+ `+N.stack}return U}function B0(w,$,J,z,W,H,U){var N=Z2;iw(w);try{return w!==null&&w._debugTask?w._debugTask.run($.bind(null,J,z,W,H,U)):$(J,z,W,H,U)}finally{iw(N)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function iw(w){a.getCurrentStack=w===null?null:S1,v4=!1,Z2=w}function F2(w){return typeof Symbol==="function"&&Symbol.toStringTag&&w[Symbol.toStringTag]||w.constructor.name||"Object"}function q5(w){try{return tw(w),!1}catch($){return!0}}function tw(w){return""+w}function qw(w,$){if(q5(w))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",$,F2(w)),tw(w)}function P5(w,$){if(q5(w))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",$,F2(w)),tw(w)}function j0(w){if(q5(w))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",F2(w)),tw(w)}function G1(w){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var $=__REACT_DEVTOOLS_GLOBAL_HOOK__;if($.isDisabled)return!0;if(!$.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{G$=$.inject(w),X5=$}catch(J){console.error("React instrumentation encountered an error: %o.",J)}return $.checkDCE?!0:!1}function zw(w){if(typeof dC==="function"&&mC(w),X5&&typeof X5.setStrictMode==="function")try{X5.setStrictMode(G$,w)}catch($){P4||(P4=!0,console.error("React instrumentation encountered an error: %o",$))}}function p6(w){return w>>>=0,w===0?32:31-(cC(w)/uC|0)|0}function Rw(w){var $=w&42;if($!==0)return $;switch(w&-w){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 w&261888;case 262144:case 524288:case 1048576:case 2097152:return w&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return w&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),w}}function l1(w,$,J){var z=w.pendingLanes;if(z===0)return 0;var W=0,H=w.suspendedLanes,U=w.pingedLanes;w=w.warmLanes;var N=z&134217727;return N!==0?(z=N&~H,z!==0?W=Rw(z):(U&=N,U!==0?W=Rw(U):J||(J=N&~w,J!==0&&(W=Rw(J))))):(N=z&~H,N!==0?W=Rw(N):U!==0?W=Rw(U):J||(J=z&~w,J!==0&&(W=Rw(J)))),W===0?0:$!==0&&$!==W&&($&H)===0&&(H=W&-W,J=$&-$,H>=J||H===32&&(J&4194048)!==0)?$:W}function f2(w,$){return(w.pendingLanes&~(w.suspendedLanes&~w.pingedLanes)&$)===0}function q9(w,$){switch(w){case 1:case 2:case 4:case 8:case 64:return $+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 $+5000;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function l5(){var w=Kz;return Kz<<=1,(Kz&62914560)===0&&(Kz=4194304),w}function Uw(w){for(var $=[],J=0;31>J;J++)$.push(w);return $}function s0(w,$){w.pendingLanes|=$,$!==268435456&&(w.suspendedLanes=0,w.pingedLanes=0,w.warmLanes=0)}function ew(w,$,J,z,W,H){var U=w.pendingLanes;w.pendingLanes=J,w.suspendedLanes=0,w.pingedLanes=0,w.warmLanes=0,w.expiredLanes&=J,w.entangledLanes&=J,w.errorRecoveryDisabledLanes&=J,w.shellSuspendCounter=0;var{entanglements:N,expirationTimes:b,hiddenUpdates:V}=w;for(J=U&~J;0<J;){var h=31-F5(J),f=1<<h;N[h]=0,b[h]=-1;var R=V[h];if(R!==null)for(V[h]=null,h=0;h<R.length;h++){var i=R[h];i!==null&&(i.lane&=-536870913)}J&=~f}z!==0&&I1(w,z,0),H!==0&&W===0&&w.tag!==0&&(w.suspendedLanes|=H&~(U&~$))}function I1(w,$,J){w.pendingLanes|=$,w.suspendedLanes&=~$;var z=31-F5($);w.entangledLanes|=$,w.entanglements[z]=w.entanglements[z]|1073741824|J&261930}function Z5(w,$){var J=w.entangledLanes|=$;for(w=w.entanglements;J;){var z=31-F5(J),W=1<<z;W&$|w[z]&$&&(w[z]|=$),J&=~W}}function x1(w,$){var J=$&-$;return J=(J&42)!==0?1:i5(J),(J&(w.suspendedLanes|$))!==0?0:J}function i5(w){switch(w){case 2:w=1;break;case 8:w=4;break;case 32:w=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:w=128;break;case 268435456:w=134217728;break;default:w=0}return w}function y2(w,$,J){if(E4)for(w=w.pendingUpdatersLaneMap;0<J;){var z=31-F5(J),W=1<<z;w[z].add($),J&=~W}}function B5(w,$){if(E4)for(var{pendingUpdatersLaneMap:J,memoizedUpdaters:z}=w;0<$;){var W=31-F5($);w=1<<W,W=J[W],0<W.size&&(W.forEach(function(H){var U=H.alternate;U!==null&&z.has(U)||z.add(H)}),W.clear()),$&=~w}}function k(w){return w&=-w,J2!==0&&J2<w?p2!==0&&p2<w?(w&134217727)!==0?g4:qz:p2:J2}function d(){var w=Nw.p;if(w!==0)return w;return w=window.event,w===void 0?g4:FL(w.type)}function w0(w,$){var J=Nw.p;try{return Nw.p=w,$()}finally{Nw.p=J}}function X0(w){delete w[o1],delete w[_5],delete w[$q],delete w[pC],delete w[lC]}function _0(w){var $=w[o1];if($)return $;for(var J=w.parentNode;J;){if($=J[z8]||J[o1]){if(J=$.alternate,$.child!==null||J!==null&&J.child!==null)for(w=$L(w);w!==null;){if(J=w[o1])return J;w=$L(w)}return $}w=J,J=w.parentNode}return null}function b0(w){if(w=w[o1]||w[z8]){var $=w.tag;if($===5||$===6||$===13||$===31||$===26||$===27||$===3)return w}return null}function g0(w){var $=w.tag;if($===5||$===26||$===27||$===6)return w.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function Zw(w){var $=w[gL];return $||($=w[gL]={hoistableStyles:new Map,hoistableScripts:new Map}),$}function G0(w){w[vJ]=!0}function Gw(w,$){Ow(w,$),Ow(w+"Capture",$)}function Ow(w,$){v9[w]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",w),v9[w]=$;var J=w.toLowerCase();Zq[J]=w,w==="onDoubleClick"&&(Zq.ondblclick=w);for(w=0;w<$.length;w++)CL.add($[w])}function w1(w,$){iC[$.type]||$.onChange||$.onInput||$.readOnly||$.disabled||$.value==null||(w==="select"?console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`."):console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")),$.onChange||$.readOnly||$.disabled||$.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function G4(w){if(u2.call(jL,w))return!0;if(u2.call(RL,w))return!1;if(rC.test(w))return jL[w]=!0;return RL[w]=!0,console.error("Invalid attribute name: `%s`",w),!1}function H1(w,$,J){if(G4($)){if(!w.hasAttribute($)){switch(typeof J){case"symbol":case"object":return J;case"function":return J;case"boolean":if(J===!1)return J}return J===void 0?void 0:null}if(w=w.getAttribute($),w===""&&J===!0)return!0;return qw(J,$),w===""+J?J:w}}function i1(w,$,J){if(G4($))if(J===null)w.removeAttribute($);else{switch(typeof J){case"undefined":case"function":case"symbol":w.removeAttribute($);return;case"boolean":var z=$.toLowerCase().slice(0,5);if(z!=="data-"&&z!=="aria-"){w.removeAttribute($);return}}qw(J,$),w.setAttribute($,""+J)}}function J6(w,$,J){if(J===null)w.removeAttribute($);else{switch(typeof J){case"undefined":case"function":case"symbol":case"boolean":w.removeAttribute($);return}qw(J,$),w.setAttribute($,""+J)}}function z1(w,$,J,z){if(z===null)w.removeAttribute(J);else{switch(typeof z){case"undefined":case"function":case"symbol":case"boolean":w.removeAttribute(J);return}qw(z,J),w.setAttributeNS($,J,""+z)}}function dw(w){switch(typeof w){case"bigint":case"boolean":case"number":case"string":case"undefined":return w;case"object":return j0(w),w;default:return""}}function uZ(w){var $=w.type;return(w=w.nodeName)&&w.toLowerCase()==="input"&&($==="checkbox"||$==="radio")}function X6(w,$,J){var z=Object.getOwnPropertyDescriptor(w.constructor.prototype,$);if(!w.hasOwnProperty($)&&typeof z<"u"&&typeof z.get==="function"&&typeof z.set==="function"){var{get:W,set:H}=z;return Object.defineProperty(w,$,{configurable:!0,get:function(){return W.call(this)},set:function(U){j0(U),J=""+U,H.call(this,U)}}),Object.defineProperty(w,$,{enumerable:z.enumerable}),{getValue:function(){return J},setValue:function(U){j0(U),J=""+U},stopTracking:function(){w._valueTracker=null,delete w[$]}}}}function eY(w){if(!w._valueTracker){var $=uZ(w)?"checked":"value";w._valueTracker=X6(w,$,""+w[$])}}function T_(w){if(!w)return!1;var $=w._valueTracker;if(!$)return!0;var J=$.getValue(),z="";return w&&(z=uZ(w)?w.checked?"true":"false":w.value),w=z,w!==J?($.setValue(w),!0):!1}function w3(w){if(w=w||(typeof document<"u"?document:void 0),typeof w>"u")return null;try{return w.activeElement||w.body}catch($){return w.body}}function _2(w){return w.replace(nC,function($){return"\\"+$.charCodeAt(0).toString(16)+" "})}function v_(w,$){$.checked===void 0||$.defaultChecked===void 0||xL||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Tw()||"A component",$.type),xL=!0),$.value===void 0||$.defaultValue===void 0||SL||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Tw()||"A component",$.type),SL=!0)}function hG(w,$,J,z,W,H,U,N){if(w.name="",U!=null&&typeof U!=="function"&&typeof U!=="symbol"&&typeof U!=="boolean"?(qw(U,"type"),w.type=U):w.removeAttribute("type"),$!=null)if(U==="number"){if($===0&&w.value===""||w.value!=$)w.value=""+dw($)}else w.value!==""+dw($)&&(w.value=""+dw($));else U!=="submit"&&U!=="reset"||w.removeAttribute("value");$!=null?fG(w,U,dw($)):J!=null?fG(w,U,dw(J)):z!=null&&w.removeAttribute("value"),W==null&&H!=null&&(w.defaultChecked=!!H),W!=null&&(w.checked=W&&typeof W!=="function"&&typeof W!=="symbol"),N!=null&&typeof N!=="function"&&typeof N!=="symbol"&&typeof N!=="boolean"?(qw(N,"name"),w.name=""+dw(N)):w.removeAttribute("name")}function P_(w,$,J,z,W,H,U,N){if(H!=null&&typeof H!=="function"&&typeof H!=="symbol"&&typeof H!=="boolean"&&(qw(H,"type"),w.type=H),$!=null||J!=null){if(!(H!=="submit"&&H!=="reset"||$!==void 0&&$!==null)){eY(w);return}J=J!=null?""+dw(J):"",$=$!=null?""+dw($):J,N||$===w.value||(w.value=$),w.defaultValue=$}z=z!=null?z:W,z=typeof z!=="function"&&typeof z!=="symbol"&&!!z,w.checked=N?w.checked:!!z,w.defaultChecked=!!z,U!=null&&typeof U!=="function"&&typeof U!=="symbol"&&typeof U!=="boolean"&&(qw(U,"name"),w.name=U),eY(w)}function fG(w,$,J){$==="number"&&w3(w.ownerDocument)===w||w.defaultValue===""+J||(w.defaultValue=""+J)}function E_(w,$){$.value==null&&(typeof $.children==="object"&&$.children!==null?u$.Children.forEach($.children,function(J){J==null||typeof J==="string"||typeof J==="number"||typeof J==="bigint"||fL||(fL=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):$.dangerouslySetInnerHTML==null||yL||(yL=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),$.selected==null||hL||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),hL=!0)}function g_(){var w=Tw();return w?`
34
+
35
+ Check the render method of \``+w+"`.":""}function c7(w,$,J,z){if(w=w.options,$){$={};for(var W=0;W<J.length;W++)$["$"+J[W]]=!0;for(J=0;J<w.length;J++)W=$.hasOwnProperty("$"+w[J].value),w[J].selected!==W&&(w[J].selected=W),W&&z&&(w[J].defaultSelected=!0)}else{J=""+dw(J),$=null;for(W=0;W<w.length;W++){if(w[W].value===J){w[W].selected=!0,z&&(w[W].defaultSelected=!0);return}$!==null||w[W].disabled||($=w[W])}$!==null&&($.selected=!0)}}function C_(w,$){for(w=0;w<mL.length;w++){var J=mL[w];if($[J]!=null){var z=V1($[J]);$.multiple&&!z?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",J,g_()):!$.multiple&&z&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",J,g_())}}$.value===void 0||$.defaultValue===void 0||dL||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),dL=!0)}function R_(w,$){$.value===void 0||$.defaultValue===void 0||cL||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",Tw()||"A component"),cL=!0),$.children!=null&&$.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function j_(w,$,J){if($!=null&&($=""+dw($),$!==w.value&&(w.value=$),J==null)){w.defaultValue!==$&&(w.defaultValue=$);return}w.defaultValue=J!=null?""+dw(J):""}function S_(w,$,J,z){if($==null){if(z!=null){if(J!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(V1(z)){if(1<z.length)throw Error("<textarea> can only have at most one child.");z=z[0]}J=z}J==null&&(J=""),$=J}J=dw($),w.defaultValue=J,z=w.textContent,z===J&&z!==""&&z!==null&&(w.value=z),eY(w)}function x_(w,$){return w.serverProps===void 0&&w.serverTail.length===0&&w.children.length===1&&3<w.distanceFromLeaf&&w.distanceFromLeaf>15-$?x_(w.children[0],$):w}function r5(w){return" "+" ".repeat(w)}function u7(w){return"+ "+" ".repeat(w)}function B9(w){return"- "+" ".repeat(w)}function h_(w){switch(w.tag){case 26:case 27:case 5:return w.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return w=w.type,w.displayName||w.name||null;case 11:return w=w.type.render,w.displayName||w.name||null;case 1:return w=w.type,w.displayName||w.name||null;default:return null}}function pZ(w,$){return uL.test(w)?(w=JSON.stringify(w),w.length>$-2?8>$?'{"..."}':"{"+w.slice(0,$-7)+'..."}':"{"+w+"}"):w.length>$?5>$?'{"..."}':w.slice(0,$-3)+"...":w}function $3(w,$,J){var z=120-2*J;if($===null)return u7(J)+pZ(w,z)+`
36
+ `;if(typeof $==="string"){for(var W=0;W<$.length&&W<w.length&&$.charCodeAt(W)===w.charCodeAt(W);W++);return W>z-8&&10<W&&(w="..."+w.slice(W-8),$="..."+$.slice(W-8)),u7(J)+pZ(w,z)+`
37
+ `+B9(J)+pZ($,z)+`
38
+ `}return r5(J)+pZ(w,z)+`
39
+ `}function yG(w){return Object.prototype.toString.call(w).replace(/^\[object (.*)\]$/,function($,J){return J})}function lZ(w,$){switch(typeof w){case"string":return w=JSON.stringify(w),w.length>$?5>$?'"..."':w.slice(0,$-4)+'..."':w;case"object":if(w===null)return"null";if(V1(w))return"[...]";if(w.$$typeof===M4)return($=j(w.type))?"<"+$+">":"<...>";var J=yG(w);if(J==="Object"){J="",$-=2;for(var z in w)if(w.hasOwnProperty(z)){var W=JSON.stringify(z);if(W!=='"'+z+'"'&&(z=W),$-=z.length-2,W=lZ(w[z],15>$?$:15),$-=W.length,0>$){J+=J===""?"...":", ...";break}J+=(J===""?"":",")+z+":"+W}return"{"+J+"}"}return J;case"function":return($=w.displayName||w.name)?"function "+$:"function";default:return String(w)}}function p7(w,$){return typeof w!=="string"||uL.test(w)?"{"+lZ(w,$-2)+"}":w.length>$-2?5>$?'"..."':'"'+w.slice(0,$-5)+'..."':'"'+w+'"'}function dG(w,$,J){var z=120-J.length-w.length,W=[],H;for(H in $)if($.hasOwnProperty(H)&&H!=="children"){var U=p7($[H],120-J.length-H.length-1);z-=H.length+U.length+2,W.push(H+"="+U)}return W.length===0?J+"<"+w+`>
40
+ `:0<z?J+"<"+w+" "+W.join(" ")+`>
41
+ `:J+"<"+w+`
42
+ `+J+" "+W.join(`
43
+ `+J+" ")+`
44
+ `+J+`>
45
+ `}function pE(w,$,J){var z="",W=e0({},$),H;for(H in w)if(w.hasOwnProperty(H)){delete W[H];var U=120-2*J-H.length-2,N=lZ(w[H],U);$.hasOwnProperty(H)?(U=lZ($[H],U),z+=u7(J)+H+": "+N+`
46
+ `,z+=B9(J)+H+": "+U+`
47
+ `):z+=u7(J)+H+": "+N+`
48
+ `}for(var b in W)W.hasOwnProperty(b)&&(w=lZ(W[b],120-2*J-b.length-2),z+=B9(J)+b+": "+w+`
49
+ `);return z}function lE(w,$,J,z){var W="",H=new Map;for(V in J)J.hasOwnProperty(V)&&H.set(V.toLowerCase(),V);if(H.size===1&&H.has("children"))W+=dG(w,$,r5(z));else{for(var U in $)if($.hasOwnProperty(U)&&U!=="children"){var N=120-2*(z+1)-U.length-1,b=H.get(U.toLowerCase());if(b!==void 0){H.delete(U.toLowerCase());var V=$[U];b=J[b];var h=p7(V,N);N=p7(b,N),typeof V==="object"&&V!==null&&typeof b==="object"&&b!==null&&yG(V)==="Object"&&yG(b)==="Object"&&(2<Object.keys(V).length||2<Object.keys(b).length||-1<h.indexOf("...")||-1<N.indexOf("..."))?W+=r5(z+1)+U+`={{
50
+ `+pE(V,b,z+2)+r5(z+1)+`}}
51
+ `:(W+=u7(z+1)+U+"="+h+`
52
+ `,W+=B9(z+1)+U+"="+N+`
53
+ `)}else W+=r5(z+1)+U+"="+p7($[U],N)+`
54
+ `}H.forEach(function(f){if(f!=="children"){var R=120-2*(z+1)-f.length-1;W+=B9(z+1)+f+"="+p7(J[f],R)+`
55
+ `}}),W=W===""?r5(z)+"<"+w+`>
56
+ `:r5(z)+"<"+w+`
57
+ `+W+r5(z)+`>
58
+ `}if(w=J.children,$=$.children,typeof w==="string"||typeof w==="number"||typeof w==="bigint"){if(H="",typeof $==="string"||typeof $==="number"||typeof $==="bigint")H=""+$;W+=$3(H,""+w,z+1)}else if(typeof $==="string"||typeof $==="number"||typeof $==="bigint")W=w==null?W+$3(""+$,null,z+1):W+$3(""+$,void 0,z+1);return W}function f_(w,$){var J=h_(w);if(J===null){J="";for(w=w.child;w;)J+=f_(w,$),w=w.sibling;return J}return r5($)+"<"+J+`>
59
+ `}function mG(w,$){var J=x_(w,$);if(J!==w&&(w.children.length!==1||w.children[0]!==J))return r5($)+`...
60
+ `+mG(J,$+1);J="";var z=w.fiber._debugInfo;if(z)for(var W=0;W<z.length;W++){var H=z[W].name;typeof H==="string"&&(J+=r5($)+"<"+H+`>
61
+ `,$++)}if(z="",W=w.fiber.pendingProps,w.fiber.tag===6)z=$3(W,w.serverProps,$),$++;else if(H=h_(w.fiber),H!==null)if(w.serverProps===void 0){z=$;var U=120-2*z-H.length-2,N="";for(V in W)if(W.hasOwnProperty(V)&&V!=="children"){var b=p7(W[V],15);if(U-=V.length+b.length+2,0>U){N+=" ...";break}N+=" "+V+"="+b}z=r5(z)+"<"+H+N+`>
62
+ `,$++}else w.serverProps===null?(z=dG(H,W,u7($)),$++):typeof w.serverProps==="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(z=lE(H,W,w.serverProps,$),$++);var V="";W=w.fiber.child;for(H=0;W&&H<w.children.length;)U=w.children[H],U.fiber===W?(V+=mG(U,$),H++):V+=f_(W,$),W=W.sibling;W&&0<w.children.length&&(V+=r5($)+`...
63
+ `),W=w.serverTail,w.serverProps===null&&$--;for(w=0;w<W.length;w++)H=W[w],V=typeof H==="string"?V+(B9($)+pZ(H,120-2*$)+`
64
+ `):V+dG(H.type,H.props,B9($));return J+z+V}function cG(w){try{return`
65
+
66
+ `+mG(w,0)}catch($){return""}}function y_(w,$,J){for(var z=$,W=null,H=0;z;)z===w&&(H=0),W={fiber:z,children:W!==null?[W]:[],serverProps:z===$?J:z===w?null:void 0,serverTail:[],distanceFromLeaf:H},H++,z=z.return;return W!==null?cG(W).replaceAll(/^[+-]/gm,">"):""}function d_(w,$){var J=e0({},w||lL),z={tag:$};if(pL.indexOf($)!==-1&&(J.aTagInScope=null,J.buttonTagInScope=null,J.nobrTagInScope=null),oC.indexOf($)!==-1&&(J.pTagInButtonScope=null),aC.indexOf($)!==-1&&$!=="address"&&$!=="div"&&$!=="p"&&(J.listItemTagAutoclosing=null,J.dlItemTagAutoclosing=null),J.current=z,$==="form"&&(J.formTag=z),$==="a"&&(J.aTagInScope=z),$==="button"&&(J.buttonTagInScope=z),$==="nobr"&&(J.nobrTagInScope=z),$==="p"&&(J.pTagInButtonScope=z),$==="li"&&(J.listItemTagAutoclosing=z),$==="dd"||$==="dt")J.dlItemTagAutoclosing=z;return $==="#document"||$==="html"?J.containerTagInScope=null:J.containerTagInScope||(J.containerTagInScope=z),w!==null||$!=="#document"&&$!=="html"&&$!=="body"?J.implicitRootScope===!0&&(J.implicitRootScope=!1):J.implicitRootScope=!0,J}function m_(w,$,J){switch($){case"select":return w==="hr"||w==="option"||w==="optgroup"||w==="script"||w==="template"||w==="#text";case"optgroup":return w==="option"||w==="#text";case"option":return w==="#text";case"tr":return w==="th"||w==="td"||w==="style"||w==="script"||w==="template";case"tbody":case"thead":case"tfoot":return w==="tr"||w==="style"||w==="script"||w==="template";case"colgroup":return w==="col"||w==="template";case"table":return w==="caption"||w==="colgroup"||w==="tbody"||w==="tfoot"||w==="thead"||w==="style"||w==="script"||w==="template";case"head":return w==="base"||w==="basefont"||w==="bgsound"||w==="link"||w==="meta"||w==="title"||w==="noscript"||w==="noframes"||w==="style"||w==="script"||w==="template";case"html":if(J)break;return w==="head"||w==="body"||w==="frameset";case"frameset":return w==="frame";case"#document":if(!J)return w==="html"}switch(w){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return $!=="h1"&&$!=="h2"&&$!=="h3"&&$!=="h4"&&$!=="h5"&&$!=="h6";case"rp":case"rt":return sC.indexOf($)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return $==null;case"head":return J||$===null;case"html":return J&&$==="#document"||$===null;case"body":return J&&($==="#document"||$==="html")||$===null}return!0}function iE(w,$){switch(w){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return $.pTagInButtonScope;case"form":return $.formTag||$.pTagInButtonScope;case"li":return $.listItemTagAutoclosing;case"dd":case"dt":return $.dlItemTagAutoclosing;case"button":return $.buttonTagInScope;case"a":return $.aTagInScope;case"nobr":return $.nobrTagInScope}return null}function c_(w,$){for(;w;){switch(w.tag){case 5:case 26:case 27:if(w.type===$)return w}w=w.return}return null}function uG(w,$){$=$||lL;var J=$.current;if($=(J=m_(w,J&&J.tag,$.implicitRootScope)?null:J)?null:iE(w,$),$=J||$,!$)return!0;var z=$.tag;if($=String(!!J)+"|"+w+"|"+z,Bz[$])return!1;Bz[$]=!0;var W=($=Z2)?c_($.return,z):null,H=$!==null&&W!==null?y_(W,$,null):"",U="<"+w+">";return J?(J="",z==="table"&&w==="tr"&&(J+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
67
+ This will cause a hydration error.%s`,U,z,J,H)):console.error(`In HTML, %s cannot be a descendant of <%s>.
68
+ This will cause a hydration error.%s`,U,z,H),$&&(w=$.return,W===null||w===null||W===w&&w._debugOwner===$._debugOwner||B0(W,function(){console.error(`<%s> cannot contain a nested %s.
69
+ See this log for the ancestor stack trace.`,z,U)})),!1}function Z3(w,$,J){if(J||m_("#text",$,!1))return!0;if(J="#text|"+$,Bz[J])return!1;Bz[J]=!0;var z=(J=Z2)?c_(J,$):null;return J=J!==null&&z!==null?y_(z,J,J.tag!==6?{children:null}:null):"",/\S/.test(w)?console.error(`In HTML, text nodes cannot be a child of <%s>.
70
+ This will cause a hydration error.%s`,$,J):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
71
+ This will cause a hydration error.%s`,$,J),!1}function iZ(w,$){if($){var J=w.firstChild;if(J&&J===w.lastChild&&J.nodeType===3){J.nodeValue=$;return}}w.textContent=$}function rE(w){return w.replace(wR,function($,J){return J.toUpperCase()})}function u_(w,$,J){var z=$.indexOf("--")===0;z||(-1<$.indexOf("-")?H$.hasOwnProperty($)&&H$[$]||(H$[$]=!0,console.error("Unsupported style property %s. Did you mean %s?",$,rE($.replace(eC,"ms-")))):tC.test($)?H$.hasOwnProperty($)&&H$[$]||(H$[$]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",$,$.charAt(0).toUpperCase()+$.slice(1))):!nL.test(J)||Xq.hasOwnProperty(J)&&Xq[J]||(Xq[J]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,$,J.replace(nL,""))),typeof J==="number"&&(isNaN(J)?aL||(aL=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",$)):isFinite(J)||oL||(oL=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",$)))),J==null||typeof J==="boolean"||J===""?z?w.setProperty($,""):$==="float"?w.cssFloat="":w[$]="":z?w.setProperty($,J):typeof J!=="number"||J===0||sL.has($)?$==="float"?w.cssFloat=J:(P5(J,$),w[$]=(""+J).trim()):w[$]=J+"px"}function p_(w,$,J){if($!=null&&typeof $!=="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if($&&Object.freeze($),w=w.style,J!=null){if($){var z={};if(J){for(var W in J)if(J.hasOwnProperty(W)&&!$.hasOwnProperty(W))for(var H=Jq[W]||[W],U=0;U<H.length;U++)z[H[U]]=W}for(var N in $)if($.hasOwnProperty(N)&&(!J||J[N]!==$[N]))for(W=Jq[N]||[N],H=0;H<W.length;H++)z[W[H]]=N;N={};for(var b in $)for(W=Jq[b]||[b],H=0;H<W.length;H++)N[W[H]]=b;b={};for(var V in z)if(W=z[V],(H=N[V])&&W!==H&&(U=W+","+H,!b[U])){b[U]=!0,U=console;var h=$[W];U.error.call(U,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",h==null||typeof h==="boolean"||h===""?"Removing":"Updating",W,H)}}for(var f in J)!J.hasOwnProperty(f)||$!=null&&$.hasOwnProperty(f)||(f.indexOf("--")===0?w.setProperty(f,""):f==="float"?w.cssFloat="":w[f]="");for(var R in $)V=$[R],$.hasOwnProperty(R)&&J[R]!==V&&u_(w,R,V)}else for(z in $)$.hasOwnProperty(z)&&u_(w,z,$[z])}function rZ(w){if(w.indexOf("-")===-1)return!1;switch(w){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}}function l_(w){return $R.get(w)||w}function nE(w,$){if(u2.call(q$,$)&&q$[$])return!0;if(JR.test($)){if(w="aria-"+$.slice(4).toLowerCase(),w=tL.hasOwnProperty(w)?w:null,w==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",$),q$[$]=!0;if($!==w)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",$,w),q$[$]=!0}if(ZR.test($)){if(w=$.toLowerCase(),w=tL.hasOwnProperty(w)?w:null,w==null)return q$[$]=!0,!1;$!==w&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",$,w),q$[$]=!0)}return!0}function aE(w,$){var J=[],z;for(z in $)nE(w,z)||J.push(z);$=J.map(function(W){return"`"+W+"`"}).join(", "),J.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",$,w):1<J.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",$,w)}function oE(w,$,J,z){if(u2.call(O5,$)&&O5[$])return!0;var W=$.toLowerCase();if(W==="onfocusin"||W==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),O5[$]=!0;if(typeof J==="function"&&(w==="form"&&$==="action"||w==="input"&&$==="formAction"||w==="button"&&$==="formAction"))return!0;if(z!=null){if(w=z.possibleRegistrationNames,z.registrationNameDependencies.hasOwnProperty($))return!0;if(z=w.hasOwnProperty(W)?w[W]:null,z!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",$,z),O5[$]=!0;if(wb.test($))return console.error("Unknown event handler property `%s`. It will be ignored.",$),O5[$]=!0}else if(wb.test($))return XR.test($)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",$),O5[$]=!0;if(YR.test($)||zR.test($))return!0;if(W==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),O5[$]=!0;if(W==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),O5[$]=!0;if(W==="is"&&J!==null&&J!==void 0&&typeof J!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof J),O5[$]=!0;if(typeof J==="number"&&isNaN(J))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",$),O5[$]=!0;if(Fz.hasOwnProperty(W)){if(W=Fz[W],W!==$)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",$,W),O5[$]=!0}else if($!==W)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",$,W),O5[$]=!0;switch($){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof J){case"boolean":switch($){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":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":case"capture":case"download":case"inert":return!0;default:if(W=$.toLowerCase().slice(0,5),W==="data-"||W==="aria-")return!0;return J?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',J,$,$,J,$):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',J,$,$,J,$,$,$),O5[$]=!0}case"function":case"symbol":return O5[$]=!0,!1;case"string":if(J==="false"||J==="true"){switch($){case"checked":case"selected":case"multiple":case"muted":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":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",J,$,J==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',$,J),O5[$]=!0}}return!0}function sE(w,$,J){var z=[],W;for(W in $)oE(w,W,$[W],J)||z.push(W);$=z.map(function(H){return"`"+H+"`"}).join(", "),z.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",$,w):1<z.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",$,w)}function nZ(w){return QR.test(""+w)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":w}function Y6(){}function pG(w){return w=w.target||w.srcElement||window,w.correspondingUseElement&&(w=w.correspondingUseElement),w.nodeType===3?w.parentNode:w}function i_(w){var $=b0(w);if($&&(w=$.stateNode)){var J=w[_5]||null;w:switch(w=$.stateNode,$.type){case"input":if(hG(w,J.value,J.defaultValue,J.defaultValue,J.checked,J.defaultChecked,J.type,J.name),$=J.name,J.type==="radio"&&$!=null){for(J=w;J.parentNode;)J=J.parentNode;qw($,"name"),J=J.querySelectorAll('input[name="'+_2(""+$)+'"][type="radio"]');for($=0;$<J.length;$++){var z=J[$];if(z!==w&&z.form===w.form){var W=z[_5]||null;if(!W)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");hG(z,W.value,W.defaultValue,W.defaultValue,W.checked,W.defaultChecked,W.type,W.name)}}for($=0;$<J.length;$++)z=J[$],z.form===w.form&&T_(z)}break w;case"textarea":j_(w,J.value,J.defaultValue);break w;case"select":$=J.value,$!=null&&c7(w,!!J.multiple,$,!1)}}}function r_(w,$,J){if(Yq)return w($,J);Yq=!0;try{var z=w($);return z}finally{if(Yq=!1,B$!==null||U$!==null){if(w$(),B$&&($=B$,w=U$,U$=B$=null,i_($),w))for($=0;$<w.length;$++)i_(w[$])}}}function aZ(w,$){var J=w.stateNode;if(J===null)return null;var z=J[_5]||null;if(z===null)return null;J=z[$];w:switch($){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(z=!z.disabled)||(w=w.type,z=!(w==="button"||w==="input"||w==="select"||w==="textarea")),w=!z;break w;default:w=!1}if(w)return null;if(J&&typeof J!=="function")throw Error("Expected `"+$+"` listener to be a function, instead got a value of `"+typeof J+"` type.");return J}function n_(){if(_z)return _z;var w,$=Qq,J=$.length,z,W="value"in Q8?Q8.value:Q8.textContent,H=W.length;for(w=0;w<J&&$[w]===W[w];w++);var U=J-w;for(z=1;z<=U&&$[J-z]===W[H-z];z++);return _z=W.slice(w,1<z?1-z:void 0)}function J3(w){var $=w.keyCode;return"charCode"in w?(w=w.charCode,w===0&&$===13&&(w=13)):w=$,w===10&&(w=13),32<=w||w===13?w:0}function X3(){return!0}function a_(){return!1}function E5(w){function $(J,z,W,H,U){this._reactName=J,this._targetInst=W,this.type=z,this.nativeEvent=H,this.target=U,this.currentTarget=null;for(var N in w)w.hasOwnProperty(N)&&(J=w[N],this[N]=J?J(H):H[N]);return this.isDefaultPrevented=(H.defaultPrevented!=null?H.defaultPrevented:H.returnValue===!1)?X3:a_,this.isPropagationStopped=a_,this}return e0($.prototype,{preventDefault:function(){this.defaultPrevented=!0;var J=this.nativeEvent;J&&(J.preventDefault?J.preventDefault():typeof J.returnValue!=="unknown"&&(J.returnValue=!1),this.isDefaultPrevented=X3)},stopPropagation:function(){var J=this.nativeEvent;J&&(J.stopPropagation?J.stopPropagation():typeof J.cancelBubble!=="unknown"&&(J.cancelBubble=!0),this.isPropagationStopped=X3)},persist:function(){},isPersistent:X3}),$}function tE(w){var $=this.nativeEvent;return $.getModifierState?$.getModifierState(w):(w=LR[w])?!!$[w]:!1}function lG(){return tE}function o_(w,$){switch(w){case"keyup":return CR.indexOf($.keyCode)!==-1;case"keydown":return $.keyCode!==Xb;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function s_(w){return w=w.detail,typeof w==="object"&&"data"in w?w.data:null}function eE(w,$){switch(w){case"compositionend":return s_($);case"keypress":if($.which!==zb)return null;return Wb=!0,Qb;case"textInput":return w=$.data,w===Qb&&Wb?null:w;default:return null}}function wg(w,$){if(F$)return w==="compositionend"||!Kq&&o_(w,$)?(w=n_(),_z=Qq=Q8=null,F$=!1,w):null;switch(w){case"paste":return null;case"keypress":if(!($.ctrlKey||$.altKey||$.metaKey)||$.ctrlKey&&$.altKey){if($.char&&1<$.char.length)return $.char;if($.which)return String.fromCharCode($.which)}return null;case"compositionend":return Yb&&$.locale!=="ko"?null:$.data;default:return null}}function t_(w){var $=w&&w.nodeName&&w.nodeName.toLowerCase();return $==="input"?!!jR[w.type]:$==="textarea"?!0:!1}function $g(w){if(!C4)return!1;w="on"+w;var $=w in document;return $||($=document.createElement("div"),$.setAttribute(w,"return;"),$=typeof $[w]==="function"),$}function e_(w,$,J,z){B$?U$?U$.push(z):U$=[z]:B$=z,$=o3($,"onChange"),0<$.length&&(J=new Oz("onChange","change",null,J,z),w.push({event:J,listeners:$}))}function Zg(w){SN(w,0)}function Y3(w){var $=g0(w);if(T_($))return w}function wO(w,$){if(w==="change")return $}function $O(){jJ&&(jJ.detachEvent("onpropertychange",ZO),SJ=jJ=null)}function ZO(w){if(w.propertyName==="value"&&Y3(SJ)){var $=[];e_($,SJ,w,pG(w)),r_(Zg,$)}}function Jg(w,$,J){w==="focusin"?($O(),jJ=$,SJ=J,jJ.attachEvent("onpropertychange",ZO)):w==="focusout"&&$O()}function Xg(w){if(w==="selectionchange"||w==="keyup"||w==="keydown")return Y3(SJ)}function Yg(w,$){if(w==="click")return Y3($)}function zg(w,$){if(w==="input"||w==="change")return Y3($)}function Qg(w,$){return w===$&&(w!==0||1/w===1/$)||w!==w&&$!==$}function oZ(w,$){if(A5(w,$))return!0;if(typeof w!=="object"||w===null||typeof $!=="object"||$===null)return!1;var J=Object.keys(w),z=Object.keys($);if(J.length!==z.length)return!1;for(z=0;z<J.length;z++){var W=J[z];if(!u2.call($,W)||!A5(w[W],$[W]))return!1}return!0}function JO(w){for(;w&&w.firstChild;)w=w.firstChild;return w}function XO(w,$){var J=JO(w);w=0;for(var z;J;){if(J.nodeType===3){if(z=w+J.textContent.length,w<=$&&z>=$)return{node:J,offset:$-w};w=z}w:{for(;J;){if(J.nextSibling){J=J.nextSibling;break w}J=J.parentNode}J=void 0}J=JO(J)}}function YO(w,$){return w&&$?w===$?!0:w&&w.nodeType===3?!1:$&&$.nodeType===3?YO(w,$.parentNode):("contains"in w)?w.contains($):w.compareDocumentPosition?!!(w.compareDocumentPosition($)&16):!1:!1}function zO(w){w=w!=null&&w.ownerDocument!=null&&w.ownerDocument.defaultView!=null?w.ownerDocument.defaultView:window;for(var $=w3(w.document);$ instanceof w.HTMLIFrameElement;){try{var J=typeof $.contentWindow.location.href==="string"}catch(z){J=!1}if(J)w=$.contentWindow;else break;$=w3(w.document)}return $}function iG(w){var $=w&&w.nodeName&&w.nodeName.toLowerCase();return $&&($==="input"&&(w.type==="text"||w.type==="search"||w.type==="tel"||w.type==="url"||w.type==="password")||$==="textarea"||w.contentEditable==="true")}function QO(w,$,J){var z=J.window===J?J.document:J.nodeType===9?J:J.ownerDocument;Bq||_$==null||_$!==w3(z)||(z=_$,("selectionStart"in z)&&iG(z)?z={start:z.selectionStart,end:z.selectionEnd}:(z=(z.ownerDocument&&z.ownerDocument.defaultView||window).getSelection(),z={anchorNode:z.anchorNode,anchorOffset:z.anchorOffset,focusNode:z.focusNode,focusOffset:z.focusOffset}),xJ&&oZ(xJ,z)||(xJ=z,z=o3(qq,"onSelect"),0<z.length&&($=new Oz("onSelect","select",null,$,J),w.push({event:$,listeners:z}),$.target=_$)))}function U9(w,$){var J={};return J[w.toLowerCase()]=$.toLowerCase(),J["Webkit"+w]="webkit"+$,J["Moz"+w]="moz"+$,J}function F9(w){if(Uq[w])return Uq[w];if(!O$[w])return w;var $=O$[w],J;for(J in $)if($.hasOwnProperty(J)&&J in Hb)return Uq[w]=$[J];return w}function d2(w,$){Fb.set(w,$),Gw($,[w])}function Wg(w){for(var $=Nz,J=0;J<w.length;J++){var z=w[J];if(typeof z==="object"&&z!==null)if(V1(z)&&z.length===2&&typeof z[0]==="string"){if($!==Nz&&$!==Nq)return Oq;$=Nq}else return Oq;else{if(typeof z==="function"||typeof z==="string"&&50<z.length||$!==Nz&&$!==Aq)return Oq;$=Aq}}return $}function rG(w,$,J,z){for(var W in w)u2.call(w,W)&&W[0]!=="_"&&H4(W,w[W],$,J,z)}function H4(w,$,J,z,W){switch(typeof $){case"object":if($===null){$="null";break}else{if($.$$typeof===M4){var H=j($.type)||"…",U=$.key;$=$.props;var N=Object.keys($),b=N.length;if(U==null&&b===0){$="<"+H+" />";break}if(3>z||b===1&&N[0]==="children"&&U==null){$="<"+H+" … />";break}J.push([W+"  ".repeat(z)+w,"<"+H]),U!==null&&H4("key",U,J,z+1,W),w=!1;for(var V in $)V==="children"?$.children!=null&&(!V1($.children)||0<$.children.length)&&(w=!0):u2.call($,V)&&V[0]!=="_"&&H4(V,$[V],J,z+1,W);J.push(["",w?">…</"+H+">":"/>"]);return}if(H=Object.prototype.toString.call($),H=H.slice(8,H.length-1),H==="Array"){if(V=Wg($),V===Aq||V===Nz){$=JSON.stringify($);break}else if(V===Nq){J.push([W+"  ".repeat(z)+w,""]);for(w=0;w<$.length;w++)H=$[w],H4(H[0],H[1],J,z+1,W);return}}if(H==="Promise"){if($.status==="fulfilled"){if(H=J.length,H4(w,$.value,J,z,W),J.length>H){J=J[H],J[1]="Promise<"+(J[1]||"Object")+">";return}}else if($.status==="rejected"&&(H=J.length,H4(w,$.reason,J,z,W),J.length>H)){J=J[H],J[1]="Rejected Promise<"+J[1]+">";return}J.push(["  ".repeat(z)+w,"Promise"]);return}H==="Object"&&(V=Object.getPrototypeOf($))&&typeof V.constructor==="function"&&(H=V.constructor.name),J.push([W+"  ".repeat(z)+w,H==="Object"?3>z?"":"…":H]),3>z&&rG($,J,z+1,W);return}case"function":$=$.name===""?"() => {}":$.name+"() {}";break;case"string":$=$===mR?"…":JSON.stringify($);break;case"undefined":$="undefined";break;case"boolean":$=$?"true":"false";break;default:$=String($)}J.push([W+"  ".repeat(z)+w,$])}function WO(w,$,J,z){var W=!0;for(U in w)U in $||(J.push([Lz+"  ".repeat(z)+U,"…"]),W=!1);for(var H in $)if(H in w){var U=w[H],N=$[H];if(U!==N){if(z===0&&H==="children")W="  ".repeat(z)+H,J.push([Lz+W,"…"],[bz+W,"…"]);else{if(!(3<=z)){if(typeof U==="object"&&typeof N==="object"&&U!==null&&N!==null&&U.$$typeof===N.$$typeof)if(N.$$typeof===M4){if(U.type===N.type&&U.key===N.key){U=j(N.type)||"…",W="  ".repeat(z)+H,U="<"+U+" … />",J.push([Lz+W,U],[bz+W,U]),W=!1;continue}}else{var b=Object.prototype.toString.call(U),V=Object.prototype.toString.call(N);if(b===V&&(V==="[object Object]"||V==="[object Array]")){b=[Ab+"  ".repeat(z)+H,V==="[object Array]"?"Array":""],J.push(b),V=J.length,WO(U,N,J,z+1)?V===J.length&&(b[1]="Referentially unequal but deeply equal objects. Consider memoization."):W=!1;continue}}else if(typeof U==="function"&&typeof N==="function"&&U.name===N.name&&U.length===N.length&&(b=Function.prototype.toString.call(U),V=Function.prototype.toString.call(N),b===V)){U=N.name===""?"() => {}":N.name+"() {}",J.push([Ab+"  ".repeat(z)+H,U+" Referentially unequal function closure. Consider memoization."]);continue}}H4(H,U,J,z,Lz),H4(H,N,J,z,bz)}W=!1}}else J.push([bz+"  ".repeat(z)+H,"…"]),W=!1;return W}function n5(w){Jw=w&63?"Blocking":w&64?"Gesture":w&4194176?"Transition":w&62914560?"Suspense":w&2080374784?"Idle":"Other"}function K4(w,$,J,z){jw&&(G8.start=$,G8.end=J,U6.color="warning",U6.tooltipText=z,U6.properties=null,(w=w._debugTask)?w.run(performance.measure.bind(performance,z,G8)):performance.measure(z,G8))}function z3(w,$,J){K4(w,$,J,"Reconnect")}function Q3(w,$,J,z,W){var H=m(w);if(H!==null&&jw){var{alternate:U,actualDuration:N}=w;if(U===null||U.child!==w.child)for(var b=w.child;b!==null;b=b.sibling)N-=b.actualDuration;z=0.5>N?z?"tertiary-light":"primary-light":10>N?z?"tertiary":"primary":100>N?z?"tertiary-dark":"primary-dark":"error";var V=w.memoizedProps;N=w._debugTask,V!==null&&U!==null&&U.memoizedProps!==V?(b=[cR],V=WO(U.memoizedProps,V,b,0),1<b.length&&(V&&!W8&&(U.lanes&W)===0&&100<w.actualDuration?(W8=!0,b[0]=uR,U6.color="warning",U6.tooltipText=Nb):(U6.color=z,U6.tooltipText=H),U6.properties=b,G8.start=$,G8.end=J,N!=null?N.run(performance.measure.bind(performance,"​"+H,G8)):performance.measure("​"+H,G8))):N!=null?N.run(console.timeStamp.bind(console,H,$,J,A2,void 0,z)):console.timeStamp(H,$,J,A2,void 0,z)}}function nG(w,$,J,z){if(jw){var W=m(w);if(W!==null){for(var H=null,U=[],N=0;N<z.length;N++){var b=z[N];H==null&&b.source!==null&&(H=b.source._debugTask),b=b.value,U.push(["Error",typeof b==="object"&&b!==null&&typeof b.message==="string"?String(b.message):String(b)])}w.key!==null&&H4("key",w.key,U,0,""),w.memoizedProps!==null&&rG(w.memoizedProps,U,0,""),H==null&&(H=w._debugTask),w={start:$,end:J,detail:{devtools:{color:"error",track:A2,tooltipText:w.tag===13?"Hydration failed":"Error boundary caught an error",properties:U}}},H?H.run(performance.measure.bind(performance,"​"+W,w)):performance.measure("​"+W,w)}}}function q4(w,$,J,z,W){if(W!==null){if(jw){var H=m(w);if(H!==null){z=[];for(var U=0;U<W.length;U++){var N=W[U].value;z.push(["Error",typeof N==="object"&&N!==null&&typeof N.message==="string"?String(N.message):String(N)])}w.key!==null&&H4("key",w.key,z,0,""),w.memoizedProps!==null&&rG(w.memoizedProps,z,0,""),$={start:$,end:J,detail:{devtools:{color:"error",track:A2,tooltipText:"A lifecycle or effect errored",properties:z}}},(w=w._debugTask)?w.run(performance.measure.bind(performance,"​"+H,$)):performance.measure("​"+H,$)}}}else H=m(w),H!==null&&jw&&(W=1>z?"secondary-light":100>z?"secondary":500>z?"secondary-dark":"error",(w=w._debugTask)?w.run(console.timeStamp.bind(console,H,$,J,A2,void 0,W)):console.timeStamp(H,$,J,A2,void 0,W))}function Gg(w,$,J,z){if(jw&&!($<=w)){var W=(J&738197653)===J?"tertiary-dark":"primary-dark";J=(J&536870912)===J?"Prepared":(J&201326741)===J?"Hydrated":"Render",z?z.run(console.timeStamp.bind(console,J,w,$,Jw,ww,W)):console.timeStamp(J,w,$,Jw,ww,W)}}function GO(w,$,J,z){!jw||$<=w||(J=(J&738197653)===J?"tertiary-dark":"primary-dark",z?z.run(console.timeStamp.bind(console,"Prewarm",w,$,Jw,ww,J)):console.timeStamp("Prewarm",w,$,Jw,ww,J))}function HO(w,$,J,z){!jw||$<=w||(J=(J&738197653)===J?"tertiary-dark":"primary-dark",z?z.run(console.timeStamp.bind(console,"Suspended",w,$,Jw,ww,J)):console.timeStamp("Suspended",w,$,Jw,ww,J))}function Hg(w,$,J,z,W,H){if(jw&&!($<=w)){J=[];for(var U=0;U<z.length;U++){var N=z[U].value;J.push(["Recoverable Error",typeof N==="object"&&N!==null&&typeof N.message==="string"?String(N.message):String(N)])}w={start:w,end:$,detail:{devtools:{color:"primary-dark",track:Jw,trackGroup:ww,tooltipText:W?"Hydration Failed":"Recovered after Error",properties:J}}},H?H.run(performance.measure.bind(performance,"Recovered",w)):performance.measure("Recovered",w)}}function aG(w,$,J,z){!jw||$<=w||(z?z.run(console.timeStamp.bind(console,"Errored",w,$,Jw,ww,"error")):console.timeStamp("Errored",w,$,Jw,ww,"error"))}function Kg(w,$,J,z){!jw||$<=w||(z?z.run(console.timeStamp.bind(console,J,w,$,Jw,ww,"secondary-light")):console.timeStamp(J,w,$,Jw,ww,"secondary-light"))}function KO(w,$,J,z,W){if(jw&&!($<=w)){for(var H=[],U=0;U<J.length;U++){var N=J[U].value;H.push(["Error",typeof N==="object"&&N!==null&&typeof N.message==="string"?String(N.message):String(N)])}w={start:w,end:$,detail:{devtools:{color:"error",track:Jw,trackGroup:ww,tooltipText:z?"Remaining Effects Errored":"Commit Errored",properties:H}}},W?W.run(performance.measure.bind(performance,"Errored",w)):performance.measure("Errored",w)}}function sZ(w,$,J){!jw||$<=w||(J?J.run(console.timeStamp.bind(console,"Animating",w,$,Jw,ww,"secondary-dark")):console.timeStamp("Animating",w,$,Jw,ww,"secondary-dark"))}function W3(){for(var w=A$,$=Lq=A$=0;$<w;){var J=N2[$];N2[$++]=null;var z=N2[$];N2[$++]=null;var W=N2[$];N2[$++]=null;var H=N2[$];if(N2[$++]=null,z!==null&&W!==null){var U=z.pending;U===null?W.next=W:(W.next=U.next,U.next=W),z.pending=W}H!==0&&qO(J,W,H)}}function G3(w,$,J,z){N2[A$++]=w,N2[A$++]=$,N2[A$++]=J,N2[A$++]=z,Lq|=z,w.lanes|=z,w=w.alternate,w!==null&&(w.lanes|=z)}function oG(w,$,J,z){return G3(w,$,J,z),H3(w)}function J5(w,$){return G3(w,null,null,$),H3(w)}function qO(w,$,J){w.lanes|=J;var z=w.alternate;z!==null&&(z.lanes|=J);for(var W=!1,H=w.return;H!==null;)H.childLanes|=J,z=H.alternate,z!==null&&(z.childLanes|=J),H.tag===22&&(w=H.stateNode,w===null||w._visibility&hJ||(W=!0)),w=H,H=H.return;return w.tag===3?(H=w.stateNode,W&&$!==null&&(W=31-F5(J),w=H.hiddenUpdates,z=w[W],z===null?w[W]=[$]:z.push($),$.lane=J|536870912),H):null}function H3(w){if(HX>Xj)throw p9=HX=0,KX=eq=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");p9>Yj&&(p9=0,KX=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),w.alternate===null&&(w.flags&4098)!==0&&vN(w);for(var $=w,J=$.return;J!==null;)$.alternate===null&&($.flags&4098)!==0&&vN(w),$=J,J=$.return;return $.tag===3?$.stateNode:null}function _9(w){if(L2===null)return w;var $=L2(w);return $===void 0?w:$.current}function sG(w){if(L2===null)return w;var $=L2(w);return $===void 0?w!==null&&w!==void 0&&typeof w.render==="function"&&($=_9(w.render),w.render!==$)?($={$$typeof:DJ,render:$},w.displayName!==void 0&&($.displayName=w.displayName),$):w:$.current}function BO(w,$){if(L2===null)return!1;var J=w.elementType;$=$.type;var z=!1,W=typeof $==="object"&&$!==null?$.$$typeof:null;switch(w.tag){case 1:typeof $==="function"&&(z=!0);break;case 0:typeof $==="function"?z=!0:W===$2&&(z=!0);break;case 11:W===DJ?z=!0:W===$2&&(z=!0);break;case 14:case 15:W===Qz?z=!0:W===$2&&(z=!0);break;default:return!1}return z&&(w=L2(J),w!==void 0&&w===L2($))?!0:!1}function UO(w){L2!==null&&typeof WeakSet==="function"&&(N$===null&&(N$=new WeakSet),N$.add(w))}function FO(w,$,J){do{var z=w,W=z.alternate,H=z.child,U=z.sibling,N=z.tag;z=z.type;var b=null;switch(N){case 0:case 15:case 1:b=z;break;case 11:b=z.render}if(L2===null)throw Error("Expected resolveFamily to be set during hot reload.");var V=!1;if(z=!1,b!==null&&(b=L2(b),b!==void 0&&(J.has(b)?z=!0:$.has(b)&&(N===1?z=!0:V=!0))),N$!==null&&(N$.has(w)||W!==null&&N$.has(W))&&(z=!0),z&&(w._debugNeedsRemount=!0),z||V)W=J5(w,2),W!==null&&rw(W,w,2);if(H===null||z||FO(H,$,J),U===null)break;w=U}while(1)}function qg(w,$,J,z){this.tag=w,this.key=J,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=$,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=z,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,Lb||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function tG(w){return w=w.prototype,!(!w||!w.isReactComponent)}function z6(w,$){var J=w.alternate;switch(J===null?(J=L(w.tag,$,w.key,w.mode),J.elementType=w.elementType,J.type=w.type,J.stateNode=w.stateNode,J._debugOwner=w._debugOwner,J._debugStack=w._debugStack,J._debugTask=w._debugTask,J._debugHookTypes=w._debugHookTypes,J.alternate=w,w.alternate=J):(J.pendingProps=$,J.type=w.type,J.flags=0,J.subtreeFlags=0,J.deletions=null,J.actualDuration=-0,J.actualStartTime=-1.1),J.flags=w.flags&65011712,J.childLanes=w.childLanes,J.lanes=w.lanes,J.child=w.child,J.memoizedProps=w.memoizedProps,J.memoizedState=w.memoizedState,J.updateQueue=w.updateQueue,$=w.dependencies,J.dependencies=$===null?null:{lanes:$.lanes,firstContext:$.firstContext,_debugThenableState:$._debugThenableState},J.sibling=w.sibling,J.index=w.index,J.ref=w.ref,J.refCleanup=w.refCleanup,J.selfBaseDuration=w.selfBaseDuration,J.treeBaseDuration=w.treeBaseDuration,J._debugInfo=w._debugInfo,J._debugNeedsRemount=w._debugNeedsRemount,J.tag){case 0:case 15:J.type=_9(w.type);break;case 1:J.type=_9(w.type);break;case 11:J.type=sG(w.type)}return J}function _O(w,$){w.flags&=65011714;var J=w.alternate;return J===null?(w.childLanes=0,w.lanes=$,w.child=null,w.subtreeFlags=0,w.memoizedProps=null,w.memoizedState=null,w.updateQueue=null,w.dependencies=null,w.stateNode=null,w.selfBaseDuration=0,w.treeBaseDuration=0):(w.childLanes=J.childLanes,w.lanes=J.lanes,w.child=J.child,w.subtreeFlags=0,w.deletions=null,w.memoizedProps=J.memoizedProps,w.memoizedState=J.memoizedState,w.updateQueue=J.updateQueue,w.type=J.type,$=J.dependencies,w.dependencies=$===null?null:{lanes:$.lanes,firstContext:$.firstContext,_debugThenableState:$._debugThenableState},w.selfBaseDuration=J.selfBaseDuration,w.treeBaseDuration=J.treeBaseDuration),w}function eG(w,$,J,z,W,H){var U=0,N=w;if(typeof w==="function")tG(w)&&(U=1),N=_9(N);else if(typeof w==="string")U=z0(),U=bC(w,J,U)?26:w==="html"||w==="head"||w==="body"?27:5;else w:switch(w){case lK:return $=L(31,J,$,W),$.elementType=lK,$.lanes=H,$;case Q$:return O9(J.children,W,H,$);case zz:U=8,W|=Y5,W|=l2;break;case mK:return w=J,z=W,typeof w.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof w.id),$=L(12,w,$,z|l0),$.elementType=mK,$.lanes=H,$.stateNode={effectDuration:0,passiveEffectDuration:0},$;case uK:return $=L(13,J,$,W),$.elementType=uK,$.lanes=H,$;case pK:return $=L(19,J,$,W),$.elementType=pK,$.lanes=H,$;default:if(typeof w==="object"&&w!==null)switch(w.$$typeof){case T4:U=10;break w;case cK:U=9;break w;case DJ:U=11,N=sG(N);break w;case Qz:U=14;break w;case $2:U=16,N=null;break w}if(N="",w===void 0||typeof w==="object"&&w!==null&&Object.keys(w).length===0)N+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";w===null?J="null":V1(w)?J="array":w!==void 0&&w.$$typeof===M4?(J="<"+(j(w.type)||"Unknown")+" />",N=" Did you accidentally export a JSX literal instead of a component?"):J=typeof w,(U=z?y(z):null)&&(N+=`
72
+
73
+ Check the render method of \``+U+"`."),U=29,J=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(J+"."+N)),N=null}return $=L(U,J,$,W),$.elementType=w,$.type=N,$.lanes=H,$._debugOwner=z,$}function K3(w,$,J){return $=eG(w.type,w.key,w.props,w._owner,$,J),$._debugOwner=w._owner,$._debugStack=w._debugStack,$._debugTask=w._debugTask,$}function O9(w,$,J,z){return w=L(7,w,z,$),w.lanes=J,w}function wH(w,$,J){return w=L(6,w,null,$),w.lanes=J,w}function OO(w){var $=L(18,null,null,f0);return $.stateNode=w,$}function $H(w,$,J){return $=L(4,w.children!==null?w.children:[],w.key,$),$.lanes=J,$.stateNode={containerInfo:w.containerInfo,pendingChildren:null,implementation:w.implementation},$}function a5(w,$){if(typeof w==="object"&&w!==null){var J=bq.get(w);if(J!==void 0)return J;return $={value:w,source:$,stack:d0($)},bq.set(w,$),$}return{value:w,source:$,stack:d0($)}}function Q6(w,$){l6(),L$[b$++]=fJ,L$[b$++]=Iz,Iz=w,fJ=$}function AO(w,$,J){l6(),b2[I2++]=_6,b2[I2++]=O6,b2[I2++]=E9,E9=w;var z=_6;w=O6;var W=32-F5(z)-1;z&=~(1<<W),J+=1;var H=32-F5($)+W;if(30<H){var U=W-W%5;H=(z&(1<<U)-1).toString(32),z>>=U,W-=U,_6=1<<32-F5($)+W|J<<W|z,O6=H+w}else _6=1<<H|J<<W|z,O6=w}function ZH(w){l6(),w.return!==null&&(Q6(w,1),AO(w,1,0))}function JH(w){for(;w===Iz;)Iz=L$[--b$],L$[b$]=null,fJ=L$[--b$],L$[b$]=null;for(;w===E9;)E9=b2[--I2],b2[I2]=null,O6=b2[--I2],b2[I2]=null,_6=b2[--I2],b2[I2]=null}function NO(){return l6(),E9!==null?{id:_6,overflow:O6}:null}function LO(w,$){l6(),b2[I2++]=_6,b2[I2++]=O6,b2[I2++]=E9,_6=$.id,O6=$.overflow,E9=w}function l6(){Yw||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function A9(w,$){if(w.return===null){if(X2===null)X2={fiber:w,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:$};else{if(X2.fiber!==w)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");X2.distanceFromLeaf>$&&(X2.distanceFromLeaf=$)}return X2}var J=A9(w.return,$+1).children;if(0<J.length&&J[J.length-1].fiber===w)return J=J[J.length-1],J.distanceFromLeaf>$&&(J.distanceFromLeaf=$),J;return $={fiber:w,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:$},J.push($),$}function bO(){Yw&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function q3(w,$){R4||(w=A9(w,0),w.serverProps=null,$!==null&&($=eN($),w.serverTail.push($)))}function i6(w){var $=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,J="",z=X2;throw z!==null&&(X2=null,J=cG(z)),tZ(a5(Error("Hydration failed because the server rendered "+($?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
74
+
75
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
76
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
77
+ - Date formatting in a user's locale which doesn't match the server.
78
+ - External changing data without sending a snapshot of it along with the HTML.
79
+ - Invalid HTML tag nesting.
80
+
81
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
82
+
83
+ https://react.dev/link/hydration-mismatch`+J),w)),Iq}function IO(w){var{stateNode:$,type:J,memoizedProps:z}=w;switch($[o1]=w,$[_5]=z,VK(J,z),J){case"dialog":Qw("cancel",$),Qw("close",$);break;case"iframe":case"object":case"embed":Qw("load",$);break;case"video":case"audio":for(J=0;J<qX.length;J++)Qw(qX[J],$);break;case"source":Qw("error",$);break;case"img":case"image":case"link":Qw("error",$),Qw("load",$);break;case"details":Qw("toggle",$);break;case"input":w1("input",z),Qw("invalid",$),v_($,z),P_($,z.value,z.defaultValue,z.checked,z.defaultChecked,z.type,z.name,!0);break;case"option":E_($,z);break;case"select":w1("select",z),Qw("invalid",$),C_($,z);break;case"textarea":w1("textarea",z),Qw("invalid",$),R_($,z),S_($,z.value,z.defaultValue,z.children)}J=z.children,typeof J!=="string"&&typeof J!=="number"&&typeof J!=="bigint"||$.textContent===""+J||z.suppressHydrationWarning===!0||yN($.textContent,J)?(z.popover!=null&&(Qw("beforetoggle",$),Qw("toggle",$)),z.onScroll!=null&&Qw("scroll",$),z.onScrollEnd!=null&&Qw("scrollend",$),z.onClick!=null&&($.onclick=Y6),$=!0):$=!1,$||i6(w,!0)}function VO(w){for(s1=w.return;s1;)switch(s1.tag){case 5:case 31:case 13:V2=!1;return;case 27:case 3:V2=!0;return;default:s1=s1.return}}function l7(w){if(w!==s1)return!1;if(!Yw)return VO(w),Yw=!0,!1;var $=w.tag,J;if(J=$!==3&&$!==27){if(J=$===5)J=w.type,J=!(J!=="form"&&J!=="button")||vK(w.type,w.memoizedProps);J=!J}if(J&&Sw){for(J=Sw;J;){var z=A9(w,0),W=eN(J);z.serverTail.push(W),J=W.type==="Suspense"?CK(J):w2(J.nextSibling)}i6(w)}if(VO(w),$===13){if(w=w.memoizedState,w=w!==null?w.dehydrated:null,!w)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Sw=CK(w)}else if($===31){if(w=w.memoizedState,w=w!==null?w.dehydrated:null,!w)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Sw=CK(w)}else $===27?($=Sw,Z8(w.type)?(w=KB,KB=null,Sw=w):Sw=$):Sw=s1?w2(w.stateNode.nextSibling):null;return!0}function N9(){Sw=s1=null,R4=Yw=!1}function XH(){var w=K8;return w!==null&&(I5===null?I5=w:I5.push.apply(I5,w),K8=null),w}function tZ(w){K8===null?K8=[w]:K8.push(w)}function YH(){var w=X2;if(w!==null){X2=null;for(var $=cG(w);0<w.children.length;)w=w.children[0];B0(w.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
84
+
85
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
86
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
87
+ - Date formatting in a user's locale which doesn't match the server.
88
+ - External changing data without sending a snapshot of it along with the HTML.
89
+ - Invalid HTML tag nesting.
90
+
91
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
92
+
93
+ %s%s`,"https://react.dev/link/hydration-mismatch",$)})}}function B3(){I$=Vz=null,V$=!1}function r6(w,$,J){s(Vq,$._currentValue,w),$._currentValue=J,s(kq,$._currentRenderer,w),$._currentRenderer!==void 0&&$._currentRenderer!==null&&$._currentRenderer!==Ib&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),$._currentRenderer=Ib}function W6(w,$){w._currentValue=Vq.current;var J=kq.current;t(kq,$),w._currentRenderer=J,t(Vq,$)}function zH(w,$,J){for(;w!==null;){var z=w.alternate;if((w.childLanes&$)!==$?(w.childLanes|=$,z!==null&&(z.childLanes|=$)):z!==null&&(z.childLanes&$)!==$&&(z.childLanes|=$),w===J)break;w=w.return}w!==J&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function QH(w,$,J,z){var W=w.child;W!==null&&(W.return=w);for(;W!==null;){var H=W.dependencies;if(H!==null){var U=W.child;H=H.firstContext;w:for(;H!==null;){var N=H;H=W;for(var b=0;b<$.length;b++)if(N.context===$[b]){H.lanes|=J,N=H.alternate,N!==null&&(N.lanes|=J),zH(H.return,J,w),z||(U=null);break w}H=N.next}}else if(W.tag===18){if(U=W.return,U===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");U.lanes|=J,H=U.alternate,H!==null&&(H.lanes|=J),zH(U,J,w),U=null}else U=W.child;if(U!==null)U.return=W;else for(U=W;U!==null;){if(U===w){U=null;break}if(W=U.sibling,W!==null){W.return=U.return,U=W;break}U=U.return}W=U}}function i7(w,$,J,z){w=null;for(var W=$,H=!1;W!==null;){if(!H){if((W.flags&524288)!==0)H=!0;else if((W.flags&262144)!==0)break}if(W.tag===10){var U=W.alternate;if(U===null)throw Error("Should have a current fiber. This is a bug in React.");if(U=U.memoizedProps,U!==null){var N=W.type;A5(W.pendingProps.value,U.value)||(w!==null?w.push(N):w=[N])}}else if(W===Wz.current){if(U=W.alternate,U===null)throw Error("Should have a current fiber. This is a bug in React.");U.memoizedState.memoizedState!==W.memoizedState.memoizedState&&(w!==null?w.push(OX):w=[OX])}W=W.return}w!==null&&QH($,w,J,z),$.flags|=262144}function U3(w){for(w=w.firstContext;w!==null;){if(!A5(w.context._currentValue,w.memoizedValue))return!0;w=w.next}return!1}function L9(w){Vz=w,I$=null,w=w.dependencies,w!==null&&(w.firstContext=null)}function hw(w){return V$&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),kO(Vz,w)}function F3(w,$){return Vz===null&&L9(w),kO(w,$)}function kO(w,$){var J=$._currentValue;if($={context:$,memoizedValue:J,next:null},I$===null){if(w===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");I$=$,w.dependencies={lanes:0,firstContext:$,_debugThenableState:null},w.flags|=524288}else I$=I$.next=$;return J}function WH(){return{controller:new iR,data:new Map,refCount:0}}function b9(w){w.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),w.refCount++}function eZ(w){w.refCount--,0>w.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),w.refCount===0&&rR(nR,function(){w.controller.abort()})}function B4(w,$,J){if((w&127)!==0)0>j4&&(j4=q1(),dJ=kz($),Dq=$,J!=null&&(Mq=m(J)),(Bw&(D1|Q2))!==m1&&(nw=!0,U8=yJ),w=LJ(),$=NJ(),w!==k$||$!==mJ?k$=-1.1:$!==null&&(U8=yJ),C9=w,mJ=$);else if((w&4194048)!==0&&0>k2&&(k2=q1(),cJ=kz($),Vb=$,J!=null&&(kb=m(J)),0>L6)){if(w=LJ(),$=NJ(),w!==_8||$!==R9)_8=-1.1;F8=w,R9=$}}function Bg(w){if(0>j4){j4=q1(),dJ=w._debugTask!=null?w._debugTask:null,(Bw&(D1|Q2))!==m1&&(U8=yJ);var $=LJ(),J=NJ();$!==k$||J!==mJ?k$=-1.1:J!==null&&(U8=yJ),C9=$,mJ=J}if(0>k2&&(k2=q1(),cJ=w._debugTask!=null?w._debugTask:null,0>L6)){if(w=LJ(),$=NJ(),w!==_8||$!==R9)_8=-1.1;F8=w,R9=$}}function G6(){var w=g9;return g9=0,w}function _3(w){var $=g9;return g9=w,$}function wJ(w){var $=g9;return g9+=w,$}function O3(){S0=v0=-1.1}function o5(){var w=v0;return v0=-1.1,w}function s5(w){0<=w&&(v0=w)}function U4(){var w=mw;return mw=-0,w}function F4(w){0<=w&&(mw=w)}function _4(){var w=fw;return fw=null,w}function O4(){var w=nw;return nw=!1,w}function GH(w){N5=q1(),0>w.actualStartTime&&(w.actualStartTime=N5)}function HH(w){if(0<=N5){var $=q1()-N5;w.actualDuration+=$,w.selfBaseDuration=$,N5=-1}}function DO(w){if(0<=N5){var $=q1()-N5;w.actualDuration+=$,N5=-1}}function A4(){if(0<=N5){var w=q1(),$=w-N5;N5=-1,g9+=$,mw+=$,S0=w}}function MO(w){fw===null&&(fw=[]),fw.push(w),N6===null&&(N6=[]),N6.push(w)}function N4(){N5=q1(),0>v0&&(v0=N5)}function $J(w){for(var $=w.child;$;)w.actualDuration+=$.actualDuration,$=$.sibling}function Ug(w,$){if(pJ===null){var J=pJ=[];vq=0,j9=NK(),D$={status:"pending",value:void 0,then:function(z){J.push(z)}}}return vq++,$.then(TO,TO),$}function TO(){if(--vq===0&&(-1<k2||(L6=-1.1),pJ!==null)){D$!==null&&(D$.status="fulfilled");var w=pJ;pJ=null,j9=0,D$=null;for(var $=0;$<w.length;$++)(0,w[$])()}}function Fg(w,$){var J=[],z={status:"pending",value:null,reason:null,then:function(W){J.push(W)}};return w.then(function(){z.status="fulfilled",z.value=$;for(var W=0;W<J.length;W++)(0,J[W])($)},function(W){z.status="rejected",z.reason=W;for(W=0;W<J.length;W++)(0,J[W])(void 0)}),z}function KH(){var w=S9.current;return w!==null?w:Ew.pooledCache}function A3(w,$){$===null?s(S9,S9.current,w):s(S9,$.pool,w)}function vO(){var w=KH();return w===null?null:{parent:K1._currentValue,pool:w}}function PO(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function EO(w){return w=w.status,w==="fulfilled"||w==="rejected"}function gO(w,$,J){a.actQueue!==null&&(a.didUsePromise=!0);var z=w.thenables;if(J=z[J],J===void 0?z.push($):J!==$&&(w.didWarnAboutUncachedPromise||(w.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),$.then(Y6,Y6),$=J),$._debugInfo===void 0){w=performance.now(),z=$.displayName;var W={name:typeof z==="string"?z:"Promise",start:w,end:w,value:$};$._debugInfo=[{awaited:W}],$.status!=="fulfilled"&&$.status!=="rejected"&&(w=function(){W.end=performance.now()},$.then(w,w))}switch($.status){case"fulfilled":return $.value;case"rejected":throw w=$.reason,RO(w),w;default:if(typeof $.status==="string")$.then(Y6,Y6);else{if(w=Ew,w!==null&&100<w.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");w=$,w.status="pending",w.then(function(H){if($.status==="pending"){var U=$;U.status="fulfilled",U.value=H}},function(H){if($.status==="pending"){var U=$;U.status="rejected",U.reason=H}})}switch($.status){case"fulfilled":return $.value;case"rejected":throw w=$.reason,RO(w),w}throw h9=$,sJ=!0,M$}}function n6(w){try{return tR(w)}catch($){if($!==null&&typeof $==="object"&&typeof $.then==="function")throw h9=$,sJ=!0,M$;throw $}}function CO(){if(h9===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var w=h9;return h9=null,sJ=!1,w}function RO(w){if(w===M$||w===Cz)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function r1(w){var $=i0;return w!=null&&(i0=$===null?w:$.concat(w)),$}function qH(){var w=i0;if(w!=null){for(var $=w.length-1;0<=$;$--)if(w[$].name!=null){var J=w[$].debugTask;if(J!=null)return J}}return null}function N3(w,$,J){for(var z=Object.keys(w.props),W=0;W<z.length;W++){var H=z[W];if(H!=="children"&&H!=="key"){$===null&&($=K3(w,J.mode,0),$._debugInfo=i0,$.return=J),B0($,function(U){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",U)},H);break}}}function L3(w){var $=tJ;return tJ+=1,T$===null&&(T$=PO()),gO(T$,w,$)}function ZJ(w,$){$=$.props.ref,w.ref=$!==void 0?$:null}function jO(w,$){if($.$$typeof===gC)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
94
+ - Multiple copies of the "react" package is used.
95
+ - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
96
+ - A compiler tries to "inline" JSX instead of using the runtime.`);throw w=Object.prototype.toString.call($),Error("Objects are not valid as a React child (found: "+(w==="[object Object]"?"object with keys {"+Object.keys($).join(", ")+"}":w)+"). If you meant to render a collection of children, use an array instead.")}function b3(w,$){var J=qH();J!==null?J.run(jO.bind(null,w,$)):jO(w,$)}function SO(w,$){var J=m(w)||"Component";pb[J]||(pb[J]=!0,$=$.displayName||$.name||"Component",w.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
97
+ root.render(%s)`,$,$,$):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
98
+ <%s>{%s}</%s>`,$,$,J,$,J))}function I3(w,$){var J=qH();J!==null?J.run(SO.bind(null,w,$)):SO(w,$)}function xO(w,$){var J=m(w)||"Component";lb[J]||(lb[J]=!0,$=String($),w.tag===3?console.error(`Symbols are not valid as a React child.
99
+ root.render(%s)`,$):console.error(`Symbols are not valid as a React child.
100
+ <%s>%s</%s>`,J,$,J))}function V3(w,$){var J=qH();J!==null?J.run(xO.bind(null,w,$)):xO(w,$)}function hO(w){function $(g,S){if(w){var x=g.deletions;x===null?(g.deletions=[S],g.flags|=16):x.push(S)}}function J(g,S){if(!w)return null;for(;S!==null;)$(g,S),S=S.sibling;return null}function z(g){for(var S=new Map;g!==null;)g.key!==null?S.set(g.key,g):S.set(g.index,g),g=g.sibling;return S}function W(g,S){return g=z6(g,S),g.index=0,g.sibling=null,g}function H(g,S,x){if(g.index=x,!w)return g.flags|=1048576,S;if(x=g.alternate,x!==null)return x=x.index,x<S?(g.flags|=67108866,S):x;return g.flags|=67108866,S}function U(g){return w&&g.alternate===null&&(g.flags|=67108866),g}function N(g,S,x,o){if(S===null||S.tag!==6)return S=wH(x,g.mode,o),S.return=g,S._debugOwner=g,S._debugTask=g._debugTask,S._debugInfo=i0,S;return S=W(S,x),S.return=g,S._debugInfo=i0,S}function b(g,S,x,o){var F0=x.type;if(F0===Q$)return S=h(g,S,x.props.children,o,x.key),N3(x,S,g),S;if(S!==null&&(S.elementType===F0||BO(S,x)||typeof F0==="object"&&F0!==null&&F0.$$typeof===$2&&n6(F0)===S.type))return S=W(S,x.props),ZJ(S,x),S.return=g,S._debugOwner=x._owner,S._debugInfo=i0,S;return S=K3(x,g.mode,o),ZJ(S,x),S.return=g,S._debugInfo=i0,S}function V(g,S,x,o){if(S===null||S.tag!==4||S.stateNode.containerInfo!==x.containerInfo||S.stateNode.implementation!==x.implementation)return S=$H(x,g.mode,o),S.return=g,S._debugInfo=i0,S;return S=W(S,x.children||[]),S.return=g,S._debugInfo=i0,S}function h(g,S,x,o,F0){if(S===null||S.tag!==7)return S=O9(x,g.mode,o,F0),S.return=g,S._debugOwner=g,S._debugTask=g._debugTask,S._debugInfo=i0,S;return S=W(S,x),S.return=g,S._debugInfo=i0,S}function f(g,S,x){if(typeof S==="string"&&S!==""||typeof S==="number"||typeof S==="bigint")return S=wH(""+S,g.mode,x),S.return=g,S._debugOwner=g,S._debugTask=g._debugTask,S._debugInfo=i0,S;if(typeof S==="object"&&S!==null){switch(S.$$typeof){case M4:return x=K3(S,g.mode,x),ZJ(x,S),x.return=g,g=r1(S._debugInfo),x._debugInfo=i0,i0=g,x;case z$:return S=$H(S,g.mode,x),S.return=g,S._debugInfo=i0,S;case $2:var o=r1(S._debugInfo);return S=n6(S),g=f(g,S,x),i0=o,g}if(V1(S)||n(S))return x=O9(S,g.mode,x,null),x.return=g,x._debugOwner=g,x._debugTask=g._debugTask,g=r1(S._debugInfo),x._debugInfo=i0,i0=g,x;if(typeof S.then==="function")return o=r1(S._debugInfo),g=f(g,L3(S),x),i0=o,g;if(S.$$typeof===T4)return f(g,F3(g,S),x);b3(g,S)}return typeof S==="function"&&I3(g,S),typeof S==="symbol"&&V3(g,S),null}function R(g,S,x,o){var F0=S!==null?S.key:null;if(typeof x==="string"&&x!==""||typeof x==="number"||typeof x==="bigint")return F0!==null?null:N(g,S,""+x,o);if(typeof x==="object"&&x!==null){switch(x.$$typeof){case M4:return x.key===F0?(F0=r1(x._debugInfo),g=b(g,S,x,o),i0=F0,g):null;case z$:return x.key===F0?V(g,S,x,o):null;case $2:return F0=r1(x._debugInfo),x=n6(x),g=R(g,S,x,o),i0=F0,g}if(V1(x)||n(x)){if(F0!==null)return null;return F0=r1(x._debugInfo),g=h(g,S,x,o,null),i0=F0,g}if(typeof x.then==="function")return F0=r1(x._debugInfo),g=R(g,S,L3(x),o),i0=F0,g;if(x.$$typeof===T4)return R(g,S,F3(g,x),o);b3(g,x)}return typeof x==="function"&&I3(g,x),typeof x==="symbol"&&V3(g,x),null}function i(g,S,x,o,F0){if(typeof o==="string"&&o!==""||typeof o==="number"||typeof o==="bigint")return g=g.get(x)||null,N(S,g,""+o,F0);if(typeof o==="object"&&o!==null){switch(o.$$typeof){case M4:return x=g.get(o.key===null?x:o.key)||null,g=r1(o._debugInfo),S=b(S,x,o,F0),i0=g,S;case z$:return g=g.get(o.key===null?x:o.key)||null,V(S,g,o,F0);case $2:var u0=r1(o._debugInfo);return o=n6(o),S=i(g,S,x,o,F0),i0=u0,S}if(V1(o)||n(o))return x=g.get(x)||null,g=r1(o._debugInfo),S=h(S,x,o,F0,null),i0=g,S;if(typeof o.then==="function")return u0=r1(o._debugInfo),S=i(g,S,x,L3(o),F0),i0=u0,S;if(o.$$typeof===T4)return i(g,S,x,F3(S,o),F0);b3(S,o)}return typeof o==="function"&&I3(S,o),typeof o==="symbol"&&V3(S,o),null}function q0(g,S,x,o){if(typeof x!=="object"||x===null)return o;switch(x.$$typeof){case M4:case z$:A(g,S,x);var F0=x.key;if(typeof F0!=="string")break;if(o===null){o=new Set,o.add(F0);break}if(!o.has(F0)){o.add(F0);break}B0(S,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",F0)});break;case $2:x=n6(x),q0(g,S,x,o)}return o}function A0(g,S,x,o){for(var F0=null,u0=null,T0=null,D0=S,p0=S=0,xw=null;D0!==null&&p0<x.length;p0++){D0.index>p0?(xw=D0,D0=null):xw=D0.sibling;var W1=R(g,D0,x[p0],o);if(W1===null){D0===null&&(D0=xw);break}F0=q0(g,W1,x[p0],F0),w&&D0&&W1.alternate===null&&$(g,D0),S=H(W1,S,p0),T0===null?u0=W1:T0.sibling=W1,T0=W1,D0=xw}if(p0===x.length)return J(g,D0),Yw&&Q6(g,p0),u0;if(D0===null){for(;p0<x.length;p0++)D0=f(g,x[p0],o),D0!==null&&(F0=q0(g,D0,x[p0],F0),S=H(D0,S,p0),T0===null?u0=D0:T0.sibling=D0,T0=D0);return Yw&&Q6(g,p0),u0}for(D0=z(D0);p0<x.length;p0++)xw=i(D0,g,p0,x[p0],o),xw!==null&&(F0=q0(g,xw,x[p0],F0),w&&xw.alternate!==null&&D0.delete(xw.key===null?p0:xw.key),S=H(xw,S,p0),T0===null?u0=xw:T0.sibling=xw,T0=xw);return w&&D0.forEach(function(P6){return $(g,P6)}),Yw&&Q6(g,p0),u0}function Cw(g,S,x,o){if(x==null)throw Error("An iterable object provided no iterator.");for(var F0=null,u0=null,T0=S,D0=S=0,p0=null,xw=null,W1=x.next();T0!==null&&!W1.done;D0++,W1=x.next()){T0.index>D0?(p0=T0,T0=null):p0=T0.sibling;var P6=R(g,T0,W1.value,o);if(P6===null){T0===null&&(T0=p0);break}xw=q0(g,P6,W1.value,xw),w&&T0&&P6.alternate===null&&$(g,T0),S=H(P6,S,D0),u0===null?F0=P6:u0.sibling=P6,u0=P6,T0=p0}if(W1.done)return J(g,T0),Yw&&Q6(g,D0),F0;if(T0===null){for(;!W1.done;D0++,W1=x.next())T0=f(g,W1.value,o),T0!==null&&(xw=q0(g,T0,W1.value,xw),S=H(T0,S,D0),u0===null?F0=T0:u0.sibling=T0,u0=T0);return Yw&&Q6(g,D0),F0}for(T0=z(T0);!W1.done;D0++,W1=x.next())p0=i(T0,g,D0,W1.value,o),p0!==null&&(xw=q0(g,p0,W1.value,xw),w&&p0.alternate!==null&&T0.delete(p0.key===null?D0:p0.key),S=H(p0,S,D0),u0===null?F0=p0:u0.sibling=p0,u0=p0);return w&&T0.forEach(function(Ij){return $(g,Ij)}),Yw&&Q6(g,D0),F0}function Ww(g,S,x,o){if(typeof x==="object"&&x!==null&&x.type===Q$&&x.key===null&&(N3(x,null,g),x=x.props.children),typeof x==="object"&&x!==null){switch(x.$$typeof){case M4:var F0=r1(x._debugInfo);w:{for(var u0=x.key;S!==null;){if(S.key===u0){if(u0=x.type,u0===Q$){if(S.tag===7){J(g,S.sibling),o=W(S,x.props.children),o.return=g,o._debugOwner=x._owner,o._debugInfo=i0,N3(x,o,g),g=o;break w}}else if(S.elementType===u0||BO(S,x)||typeof u0==="object"&&u0!==null&&u0.$$typeof===$2&&n6(u0)===S.type){J(g,S.sibling),o=W(S,x.props),ZJ(o,x),o.return=g,o._debugOwner=x._owner,o._debugInfo=i0,g=o;break w}J(g,S);break}else $(g,S);S=S.sibling}x.type===Q$?(o=O9(x.props.children,g.mode,o,x.key),o.return=g,o._debugOwner=g,o._debugTask=g._debugTask,o._debugInfo=i0,N3(x,o,g),g=o):(o=K3(x,g.mode,o),ZJ(o,x),o.return=g,o._debugInfo=i0,g=o)}return g=U(g),i0=F0,g;case z$:w:{F0=x;for(x=F0.key;S!==null;){if(S.key===x)if(S.tag===4&&S.stateNode.containerInfo===F0.containerInfo&&S.stateNode.implementation===F0.implementation){J(g,S.sibling),o=W(S,F0.children||[]),o.return=g,g=o;break w}else{J(g,S);break}else $(g,S);S=S.sibling}o=$H(F0,g.mode,o),o.return=g,g=o}return U(g);case $2:return F0=r1(x._debugInfo),x=n6(x),g=Ww(g,S,x,o),i0=F0,g}if(V1(x))return F0=r1(x._debugInfo),g=A0(g,S,x,o),i0=F0,g;if(n(x)){if(F0=r1(x._debugInfo),u0=n(x),typeof u0!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var T0=u0.call(x);if(T0===x){if(g.tag!==0||Object.prototype.toString.call(g.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(T0)!=="[object Generator]")cb||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),cb=!0}else x.entries!==u0||Cq||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Cq=!0);return g=Cw(g,S,T0,o),i0=F0,g}if(typeof x.then==="function")return F0=r1(x._debugInfo),g=Ww(g,S,L3(x),o),i0=F0,g;if(x.$$typeof===T4)return Ww(g,S,F3(g,x),o);b3(g,x)}if(typeof x==="string"&&x!==""||typeof x==="number"||typeof x==="bigint")return F0=""+x,S!==null&&S.tag===6?(J(g,S.sibling),o=W(S,F0),o.return=g,g=o):(J(g,S),o=wH(F0,g.mode,o),o.return=g,o._debugOwner=g,o._debugTask=g._debugTask,o._debugInfo=i0,g=o),U(g);return typeof x==="function"&&I3(g,x),typeof x==="symbol"&&V3(g,x),J(g,S)}return function(g,S,x,o){var F0=i0;i0=null;try{tJ=0;var u0=Ww(g,S,x,o);return T$=null,u0}catch(xw){if(xw===M$||xw===Cz)throw xw;var T0=L(29,xw,null,g.mode);T0.lanes=o,T0.return=g;var D0=T0._debugInfo=i0;if(T0._debugOwner=g._debugOwner,T0._debugTask=g._debugTask,D0!=null){for(var p0=D0.length-1;0<=p0;p0--)if(typeof D0[p0].stack==="string"){T0._debugOwner=D0[p0],T0._debugTask=D0[p0].debugTask;break}}return T0}finally{i0=F0}}}function fO(w,$){var J=V1(w);return w=!J&&typeof n(w)==="function",J||w?(J=J?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",J,$,J),!1):!0}function BH(w){w.updateQueue={baseState:w.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function UH(w,$){w=w.updateQueue,$.updateQueue===w&&($.updateQueue={baseState:w.baseState,firstBaseUpdate:w.firstBaseUpdate,lastBaseUpdate:w.lastBaseUpdate,shared:w.shared,callbacks:null})}function a6(w){return{lane:w,tag:rb,payload:null,callback:null,next:null}}function o6(w,$,J){var z=w.updateQueue;if(z===null)return null;if(z=z.shared,jq===z&&!ob){var W=m(w);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
101
+
102
+ Please update the following component: %s`,W),ob=!0}if((Bw&D1)!==m1)return W=z.pending,W===null?$.next=$:($.next=W.next,W.next=$),z.pending=$,$=H3(w),qO(w,null,J),$;return G3(w,z,$,J),H3(w)}function JJ(w,$,J){if($=$.updateQueue,$!==null&&($=$.shared,(J&4194048)!==0)){var z=$.lanes;z&=w.pendingLanes,J|=z,$.lanes=J,Z5(w,J)}}function k3(w,$){var{updateQueue:J,alternate:z}=w;if(z!==null&&(z=z.updateQueue,J===z)){var W=null,H=null;if(J=J.firstBaseUpdate,J!==null){do{var U={lane:J.lane,tag:J.tag,payload:J.payload,callback:null,next:null};H===null?W=H=U:H=H.next=U,J=J.next}while(J!==null);H===null?W=H=$:H=H.next=$}else W=H=$;J={baseState:z.baseState,firstBaseUpdate:W,lastBaseUpdate:H,shared:z.shared,callbacks:z.callbacks},w.updateQueue=J;return}w=J.lastBaseUpdate,w===null?J.firstBaseUpdate=$:w.next=$,J.lastBaseUpdate=$}function XJ(){if(Sq){var w=D$;if(w!==null)throw w}}function YJ(w,$,J,z){Sq=!1;var W=w.updateQueue;O8=!1,jq=W.shared;var{firstBaseUpdate:H,lastBaseUpdate:U}=W,N=W.shared.pending;if(N!==null){W.shared.pending=null;var b=N,V=b.next;b.next=null,U===null?H=V:U.next=V,U=b;var h=w.alternate;h!==null&&(h=h.updateQueue,N=h.lastBaseUpdate,N!==U&&(N===null?h.firstBaseUpdate=V:N.next=V,h.lastBaseUpdate=b))}if(H!==null){var f=W.baseState;U=0,h=V=b=null,N=H;do{var R=N.lane&-536870913,i=R!==N.lane;if(i?(r0&R)===R:(z&R)===R){R!==0&&R===j9&&(Sq=!0),h!==null&&(h=h.next={lane:0,tag:N.tag,payload:N.payload,callback:null,next:null});w:{R=w;var q0=N,A0=$,Cw=J;switch(q0.tag){case nb:if(q0=q0.payload,typeof q0==="function"){V$=!0;var Ww=q0.call(Cw,f,A0);if(R.mode&Y5){zw(!0);try{q0.call(Cw,f,A0)}finally{zw(!1)}}V$=!1,f=Ww;break w}f=q0;break w;case Rq:R.flags=R.flags&-65537|128;case rb:if(Ww=q0.payload,typeof Ww==="function"){if(V$=!0,q0=Ww.call(Cw,f,A0),R.mode&Y5){zw(!0);try{Ww.call(Cw,f,A0)}finally{zw(!1)}}V$=!1}else q0=Ww;if(q0===null||q0===void 0)break w;f=e0({},f,q0);break w;case ab:O8=!0}}R=N.callback,R!==null&&(w.flags|=64,i&&(w.flags|=8192),i=W.callbacks,i===null?W.callbacks=[R]:i.push(R))}else i={lane:R,tag:N.tag,payload:N.payload,callback:N.callback,next:null},h===null?(V=h=i,b=f):h=h.next=i,U|=R;if(N=N.next,N===null)if(N=W.shared.pending,N===null)break;else i=N,N=i.next,i.next=null,W.lastBaseUpdate=i,W.shared.pending=null}while(1);h===null&&(b=f),W.baseState=b,W.firstBaseUpdate=V,W.lastBaseUpdate=h,H===null&&(W.shared.lanes=0),L8|=U,w.lanes=U,w.memoizedState=f}jq=null}function yO(w,$){if(typeof w!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+w);w.call($)}function _g(w,$){var J=w.shared.hiddenCallbacks;if(J!==null)for(w.shared.hiddenCallbacks=null,w=0;w<J.length;w++)yO(J[w],$)}function dO(w,$){var J=w.callbacks;if(J!==null)for(w.callbacks=null,w=0;w<J.length;w++)yO(J[w],$)}function mO(w,$){var J=h4;s(jz,J,w),s(v$,$,w),h4=J|$.baseLanes}function FH(w){s(jz,h4,w),s(v$,v$.current,w)}function _H(w){h4=jz.current,t(v$,w),t(jz,w)}function s6(w){var $=w.alternate;s(Q1,Q1.current&P$,w),s(Y2,w,w),D2===null&&($===null||v$.current!==null?D2=w:$.memoizedState!==null&&(D2=w))}function OH(w){s(Q1,Q1.current,w),s(Y2,w,w),D2===null&&(D2=w)}function cO(w){w.tag===22?(s(Q1,Q1.current,w),s(Y2,w,w),D2===null&&(D2=w)):t6(w)}function t6(w){s(Q1,Q1.current,w),s(Y2,Y2.current,w)}function t5(w){t(Y2,w),D2===w&&(D2=null),t(Q1,w)}function D3(w){for(var $=w;$!==null;){if($.tag===13){var J=$.memoizedState;if(J!==null&&(J=J.dehydrated,J===null||EK(J)||gK(J)))return $}else if($.tag===19&&($.memoizedProps.revealOrder==="forwards"||$.memoizedProps.revealOrder==="backwards"||$.memoizedProps.revealOrder==="unstable_legacy-backwards"||$.memoizedProps.revealOrder==="together")){if(($.flags&128)!==0)return $}else if($.child!==null){$.child.return=$,$=$.child;continue}if($===w)break;for(;$.sibling===null;){if($.return===null||$.return===w)return null;$=$.return}$.sibling.return=$.return,$=$.sibling}return null}function t0(){var w=r;T2===null?T2=[w]:T2.push(w)}function W0(){var w=r;if(T2!==null&&(k6++,T2[k6]!==w)){var $=m(c0);if(!sb.has($)&&(sb.add($),T2!==null)){for(var J="",z=0;z<=k6;z++){var W=T2[z],H=z===k6?w:W;for(W=z+1+". "+W;30>W.length;)W+=" ";W+=H+`
103
+ `,J+=W}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
104
+
105
+ Previous render Next render
106
+ ------------------------------------------------------
107
+ %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
108
+ `,$,J)}}}function r7(w){w===void 0||w===null||V1(w)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",r,typeof w)}function M3(){var w=m(c0);eb.has(w)||(eb.add(w),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",w))}function $1(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
109
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
110
+ 2. You might be breaking the Rules of Hooks
111
+ 3. You might have more than one copy of React in the same app
112
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function AH(w,$){if($X)return!1;if($===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",r),!1;w.length!==$.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
113
+
114
+ Previous: %s
115
+ Incoming: %s`,r,"["+$.join(", ")+"]","["+w.join(", ")+"]");for(var J=0;J<$.length&&J<w.length;J++)if(!A5(w[J],$[J]))return!1;return!0}function NH(w,$,J,z,W,H){if(I6=H,c0=$,T2=w!==null?w._debugHookTypes:null,k6=-1,$X=w!==null&&w.type!==$.type,Object.prototype.toString.call(J)==="[object AsyncFunction]"||Object.prototype.toString.call(J)==="[object AsyncGeneratorFunction]")H=m(c0),xq.has(H)||(xq.add(H),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",H===null?"An unknown Component":"<"+H+">"));$.memoizedState=null,$.updateQueue=null,$.lanes=0,a.H=w!==null&&w.memoizedState!==null?fq:T2!==null?wI:hq,y9=H=($.mode&Y5)!==f0;var U=Pq(J,z,W);if(y9=!1,g$&&(U=LH($,J,z,W)),H){zw(!0);try{U=LH($,J,z,W)}finally{zw(!1)}}return uO(w,$),U}function uO(w,$){$._debugHookTypes=T2,$.dependencies===null?V6!==null&&($.dependencies={lanes:0,firstContext:null,_debugThenableState:V6}):$.dependencies._debugThenableState=V6,a.H=ZX;var J=Pw!==null&&Pw.next!==null;if(I6=0,T2=r=B1=Pw=c0=null,k6=-1,w!==null&&(w.flags&65011712)!==($.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),xz=!1,wX=0,V6=null,J)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");w===null||U1||(w=w.dependencies,w!==null&&U3(w)&&(U1=!0)),sJ?(sJ=!1,w=!0):w=!1,w&&($=m($)||"Unknown",tb.has($)||xq.has($)||(tb.add($),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function LH(w,$,J,z){c0=w;var W=0;do{if(g$&&(V6=null),wX=0,g$=!1,W>=wj)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(W+=1,$X=!1,B1=Pw=null,w.updateQueue!=null){var H=w.updateQueue;H.lastEffect=null,H.events=null,H.stores=null,H.memoCache!=null&&(H.memoCache.index=0)}k6=-1,a.H=$I,H=Pq($,J,z)}while(g$);return H}function Og(){var w=a.H,$=w.useState()[0];return $=typeof $.then==="function"?zJ($):$,w=w.useState()[0],(Pw!==null?Pw.memoizedState:null)!==w&&(c0.flags|=1024),$}function bH(){var w=hz!==0;return hz=0,w}function IH(w,$,J){$.updateQueue=w.updateQueue,$.flags=($.mode&l2)!==f0?$.flags&-402655237:$.flags&-2053,w.lanes&=~J}function VH(w){if(xz){for(w=w.memoizedState;w!==null;){var $=w.queue;$!==null&&($.pending=null),w=w.next}xz=!1}I6=0,T2=B1=Pw=c0=null,k6=-1,r=null,g$=!1,wX=hz=0,V6=null}function U5(){var w={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return B1===null?c0.memoizedState=B1=w:B1=B1.next=w,B1}function Iw(){if(Pw===null){var w=c0.alternate;w=w!==null?w.memoizedState:null}else w=Pw.next;var $=B1===null?c0.memoizedState:B1.next;if($!==null)B1=$,Pw=w;else{if(w===null){if(c0.alternate===null)throw Error("Update hook called on initial render. This is likely a bug in React. Please file an issue.");throw Error("Rendered more hooks than during the previous render.")}Pw=w,w={memoizedState:Pw.memoizedState,baseState:Pw.baseState,baseQueue:Pw.baseQueue,queue:Pw.queue,next:null},B1===null?c0.memoizedState=B1=w:B1=B1.next=w}return B1}function T3(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function zJ(w){var $=wX;return wX+=1,V6===null&&(V6=PO()),w=gO(V6,w,$),$=c0,(B1===null?$.memoizedState:B1.next)===null&&($=$.alternate,a.H=$!==null&&$.memoizedState!==null?fq:hq),w}function e6(w){if(w!==null&&typeof w==="object"){if(typeof w.then==="function")return zJ(w);if(w.$$typeof===T4)return hw(w)}throw Error("An unsupported type was passed to use(): "+String(w))}function I9(w){var $=null,J=c0.updateQueue;if(J!==null&&($=J.memoCache),$==null){var z=c0.alternate;z!==null&&(z=z.updateQueue,z!==null&&(z=z.memoCache,z!=null&&($={data:z.data.map(function(W){return W.slice()}),index:0})))}if($==null&&($={data:[],index:0}),J===null&&(J=T3(),c0.updateQueue=J),J.memoCache=$,J=$.data[$.index],J===void 0||$X)for(J=$.data[$.index]=Array(w),z=0;z<w;z++)J[z]=CC;else J.length!==w&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",J.length,w);return $.index++,J}function m2(w,$){return typeof $==="function"?$(w):$}function kH(w,$,J){var z=U5();if(J!==void 0){var W=J($);if(y9){zw(!0);try{J($)}finally{zw(!1)}}}else W=$;return z.memoizedState=z.baseState=W,w={pending:null,lanes:0,dispatch:null,lastRenderedReducer:w,lastRenderedState:W},z.queue=w,w=w.dispatch=Ig.bind(null,c0,w),[z.memoizedState,w]}function n7(w){var $=Iw();return DH($,Pw,w)}function DH(w,$,J){var z=w.queue;if(z===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");z.lastRenderedReducer=J;var W=w.baseQueue,H=z.pending;if(H!==null){if(W!==null){var U=W.next;W.next=H.next,H.next=U}$.baseQueue!==W&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),$.baseQueue=W=H,z.pending=null}if(H=w.baseState,W===null)w.memoizedState=H;else{$=W.next;var N=U=null,b=null,V=$,h=!1;do{var f=V.lane&-536870913;if(f!==V.lane?(r0&f)===f:(I6&f)===f){var R=V.revertLane;if(R===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),f===j9&&(h=!0);else if((I6&R)===R){V=V.next,R===j9&&(h=!0);continue}else f={lane:0,revertLane:V.revertLane,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},b===null?(N=b=f,U=H):b=b.next=f,c0.lanes|=R,L8|=R;f=V.action,y9&&J(H,f),H=V.hasEagerState?V.eagerState:J(H,f)}else R={lane:f,revertLane:V.revertLane,gesture:V.gesture,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},b===null?(N=b=R,U=H):b=b.next=R,c0.lanes|=f,L8|=f;V=V.next}while(V!==null&&V!==$);if(b===null?U=H:b.next=N,!A5(H,w.memoizedState)&&(U1=!0,h&&(J=D$,J!==null)))throw J;w.memoizedState=H,w.baseState=U,w.baseQueue=b,z.lastRenderedState=H}return W===null&&(z.lanes=0),[w.memoizedState,z.dispatch]}function QJ(w){var $=Iw(),J=$.queue;if(J===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");J.lastRenderedReducer=w;var{dispatch:z,pending:W}=J,H=$.memoizedState;if(W!==null){J.pending=null;var U=W=W.next;do H=w(H,U.action),U=U.next;while(U!==W);A5(H,$.memoizedState)||(U1=!0),$.memoizedState=H,$.baseQueue===null&&($.baseState=H),J.lastRenderedState=H}return[H,z]}function MH(w,$,J){var z=c0,W=U5();if(Yw){if(J===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var H=J();E$||H===J()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),E$=!0)}else{if(H=$(),E$||(J=$(),A5(H,J)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),E$=!0)),Ew===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(r0&127)!==0||pO(z,$,H)}return W.memoizedState=H,J={value:H,getSnapshot:$},W.queue=J,g3(iO.bind(null,z,J,w),[w]),z.flags|=2048,o7(M2|b5,{destroy:void 0},lO.bind(null,z,J,H,$),null),H}function v3(w,$,J){var z=c0,W=Iw(),H=Yw;if(H){if(J===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");J=J()}else if(J=$(),!E$){var U=$();A5(J,U)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),E$=!0)}if(U=!A5((Pw||W).memoizedState,J))W.memoizedState=J,U1=!0;W=W.queue;var N=iO.bind(null,z,W,w);if(g5(2048,b5,N,[w]),W.getSnapshot!==$||U||B1!==null&&B1.memoizedState.tag&M2){if(z.flags|=2048,o7(M2|b5,{destroy:void 0},lO.bind(null,z,W,J,$),null),Ew===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");H||(I6&127)!==0||pO(z,$,J)}return J}function pO(w,$,J){w.flags|=16384,w={getSnapshot:$,value:J},$=c0.updateQueue,$===null?($=T3(),c0.updateQueue=$,$.stores=[w]):(J=$.stores,J===null?$.stores=[w]:J.push(w))}function lO(w,$,J,z){$.value=J,$.getSnapshot=z,rO($)&&nO(w)}function iO(w,$,J){return J(function(){rO($)&&(B4(2,"updateSyncExternalStore()",w),nO(w))})}function rO(w){var $=w.getSnapshot;w=w.value;try{var J=$();return!A5(w,J)}catch(z){return!0}}function nO(w){var $=J5(w,2);$!==null&&rw($,w,2)}function TH(w){var $=U5();if(typeof w==="function"){var J=w;if(w=J(),y9){zw(!0);try{J()}finally{zw(!1)}}}return $.memoizedState=$.baseState=w,$.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:m2,lastRenderedState:w},$}function vH(w){w=TH(w);var $=w.queue,J=BA.bind(null,c0,$);return $.dispatch=J,[w.memoizedState,J]}function PH(w){var $=U5();$.memoizedState=$.baseState=w;var J={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return $.queue=J,$=uH.bind(null,c0,!0,J),J.dispatch=$,[w,$]}function aO(w,$){var J=Iw();return oO(J,Pw,w,$)}function oO(w,$,J,z){return w.baseState=J,DH(w,Pw,typeof z==="function"?z:m2)}function sO(w,$){var J=Iw();if(Pw!==null)return oO(J,Pw,w,$);return J.baseState=w,[w,J.queue.dispatch]}function Ag(w,$,J,z,W){if(h3(w))throw Error("Cannot update form state while rendering.");if(w=$.action,w!==null){var H={payload:W,action:w,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(U){H.listeners.push(U)}};a.T!==null?J(!0):H.isTransition=!1,z(H),J=$.pending,J===null?(H.next=$.pending=H,tO($,H)):(H.next=J.next,$.pending=J.next=H)}}function tO(w,$){var{action:J,payload:z}=$,W=w.state;if($.isTransition){var H=a.T,U={};U._updatedFibers=new Set,a.T=U;try{var N=J(W,z),b=a.S;b!==null&&b(U,N),eO(w,$,N)}catch(V){EH(w,$,V)}finally{H!==null&&U.types!==null&&(H.types!==null&&H.types!==U.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),H.types=U.types),a.T=H,H===null&&U._updatedFibers&&(w=U._updatedFibers.size,U._updatedFibers.clear(),10<w&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{U=J(W,z),eO(w,$,U)}catch(V){EH(w,$,V)}}function eO(w,$,J){J!==null&&typeof J==="object"&&typeof J.then==="function"?(a.asyncTransitions++,J.then(x3,x3),J.then(function(z){wA(w,$,z)},function(z){return EH(w,$,z)}),$.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):wA(w,$,J)}function wA(w,$,J){$.status="fulfilled",$.value=J,$A($),w.state=J,$=w.pending,$!==null&&(J=$.next,J===$?w.pending=null:(J=J.next,$.next=J,tO(w,J)))}function EH(w,$,J){var z=w.pending;if(w.pending=null,z!==null){z=z.next;do $.status="rejected",$.reason=J,$A($),$=$.next;while($!==z)}w.action=null}function $A(w){w=w.listeners;for(var $=0;$<w.length;$++)(0,w[$])()}function ZA(w,$){return $}function a7(w,$){if(Yw){var J=Ew.formState;if(J!==null){w:{var z=c0;if(Yw){if(Sw){$:{var W=Sw;for(var H=V2;W.nodeType!==8;){if(!H){W=null;break $}if(W=w2(W.nextSibling),W===null){W=null;break $}}H=W.data,W=H===QB||H===dI?W:null}if(W){Sw=w2(W.nextSibling),z=W.data===QB;break w}}i6(z)}z=!1}z&&($=J[0])}}return J=U5(),J.memoizedState=J.baseState=$,z={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ZA,lastRenderedState:$},J.queue=z,J=BA.bind(null,c0,z),z.dispatch=J,z=TH(!1),H=uH.bind(null,c0,!1,z.queue),z=U5(),W={state:$,dispatch:null,action:w,pending:null},z.queue=W,J=Ag.bind(null,c0,W,H,J),W.dispatch=J,z.memoizedState=w,[$,J,!1]}function P3(w){var $=Iw();return JA($,Pw,w)}function JA(w,$,J){if($=DH(w,$,ZA)[0],w=n7(m2)[0],typeof $==="object"&&$!==null&&typeof $.then==="function")try{var z=zJ($)}catch(U){if(U===M$)throw Cz;throw U}else z=$;$=Iw();var W=$.queue,H=W.dispatch;return J!==$.memoizedState&&(c0.flags|=2048,o7(M2|b5,{destroy:void 0},Ng.bind(null,W,J),null)),[z,H,w]}function Ng(w,$){w.action=$}function E3(w){var $=Iw(),J=Pw;if(J!==null)return JA($,J,w);Iw(),$=$.memoizedState,J=Iw();var z=J.queue.dispatch;return J.memoizedState=w,[$,z,!1]}function o7(w,$,J,z){return w={tag:w,create:J,deps:z,inst:$,next:null},$=c0.updateQueue,$===null&&($=T3(),c0.updateQueue=$),J=$.lastEffect,J===null?$.lastEffect=w.next=w:(z=J.next,J.next=w,w.next=z,$.lastEffect=w),w}function gH(w){var $=U5();return w={current:w},$.memoizedState=w}function V9(w,$,J,z){var W=U5();c0.flags|=w,W.memoizedState=o7(M2|$,{destroy:void 0},J,z===void 0?null:z)}function g5(w,$,J,z){var W=Iw();z=z===void 0?null:z;var H=W.memoizedState.inst;Pw!==null&&z!==null&&AH(z,Pw.memoizedState.deps)?W.memoizedState=o7($,H,J,z):(c0.flags|=w,W.memoizedState=o7(M2|$,H,J,z))}function g3(w,$){(c0.mode&l2)!==f0?V9(276826112,b5,w,$):V9(8390656,b5,w,$)}function Lg(w){c0.flags|=4;var $=c0.updateQueue;if($===null)$=T3(),c0.updateQueue=$,$.events=[w];else{var J=$.events;J===null?$.events=[w]:J.push(w)}}function CH(w){var $=U5(),J={impl:w};return $.memoizedState=J,function(){if((Bw&D1)!==m1)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return J.impl.apply(void 0,arguments)}}function C3(w){var $=Iw().memoizedState;return Lg({ref:$,nextImpl:w}),function(){if((Bw&D1)!==m1)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return $.impl.apply(void 0,arguments)}}function RH(w,$){var J=4194308;return(c0.mode&l2)!==f0&&(J|=134217728),V9(J,z2,w,$)}function XA(w,$){if(typeof $==="function"){w=w();var J=$(w);return function(){typeof J==="function"?J():$(null)}}if($!==null&&$!==void 0)return $.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys($).join(", ")+"}"),w=w(),$.current=w,function(){$.current=null}}function jH(w,$,J){typeof $!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",$!==null?typeof $:"null"),J=J!==null&&J!==void 0?J.concat([w]):null;var z=4194308;(c0.mode&l2)!==f0&&(z|=134217728),V9(z,z2,XA.bind(null,$,w),J)}function R3(w,$,J){typeof $!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",$!==null?typeof $:"null"),J=J!==null&&J!==void 0?J.concat([w]):null,g5(4,z2,XA.bind(null,$,w),J)}function SH(w,$){return U5().memoizedState=[w,$===void 0?null:$],w}function j3(w,$){var J=Iw();$=$===void 0?null:$;var z=J.memoizedState;if($!==null&&AH($,z[1]))return z[0];return J.memoizedState=[w,$],w}function xH(w,$){var J=U5();$=$===void 0?null:$;var z=w();if(y9){zw(!0);try{w()}finally{zw(!1)}}return J.memoizedState=[z,$],z}function S3(w,$){var J=Iw();$=$===void 0?null:$;var z=J.memoizedState;if($!==null&&AH($,z[1]))return z[0];if(z=w(),y9){zw(!0);try{w()}finally{zw(!1)}}return J.memoizedState=[z,$],z}function hH(w,$){var J=U5();return fH(J,w,$)}function YA(w,$){var J=Iw();return QA(J,Pw.memoizedState,w,$)}function zA(w,$){var J=Iw();return Pw===null?fH(J,w,$):QA(J,Pw.memoizedState,w,$)}function fH(w,$,J){if(J===void 0||(I6&1073741824)!==0&&(r0&261930)===0)return w.memoizedState=$;return w.memoizedState=J,w=WN(),c0.lanes|=w,L8|=w,J}function QA(w,$,J,z){if(A5(J,$))return J;if(v$.current!==null)return w=fH(w,J,z),A5(w,$)||(U1=!0),w;if((I6&42)===0||(I6&1073741824)!==0&&(r0&261930)===0)return U1=!0,w.memoizedState=J;return w=WN(),c0.lanes|=w,L8|=w,$}function x3(){a.asyncTransitions--}function WA(w,$,J,z,W){var H=Nw.p;Nw.p=H!==0&&H<p2?H:p2;var U=a.T,N={};N._updatedFibers=new Set,a.T=N,uH(w,!1,$,J);try{var b=W(),V=a.S;if(V!==null&&V(N,b),b!==null&&typeof b==="object"&&typeof b.then==="function"){a.asyncTransitions++,b.then(x3,x3);var h=Fg(b,z);WJ(w,$,h,e5(w))}else WJ(w,$,z,e5(w))}catch(f){WJ(w,$,{then:function(){},status:"rejected",reason:f},e5(w))}finally{Nw.p=H,U!==null&&N.types!==null&&(U.types!==null&&U.types!==N.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),U.types=N.types),a.T=U,U===null&&N._updatedFibers&&(w=N._updatedFibers.size,N._updatedFibers.clear(),10<w&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function yH(w,$,J,z){if(w.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var W=GA(w).queue;Bg(w),WA(w,W,$,o9,J===null?O:function(){return HA(w),J(z)})}function GA(w){var $=w.memoizedState;if($!==null)return $;$={memoizedState:o9,baseState:o9,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:m2,lastRenderedState:o9},next:null};var J={};return $.next={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:m2,lastRenderedState:J},next:null},w.memoizedState=$,w=w.alternate,w!==null&&(w.memoizedState=$),$}function HA(w){a.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var $=GA(w);$.next===null&&($=w.alternate.memoizedState),WJ(w,$.next.queue,{},e5(w))}function dH(){var w=TH(!1);return w=WA.bind(null,c0,w.queue,!0,!1),U5().memoizedState=w,[!1,w]}function KA(){var w=n7(m2)[0],$=Iw().memoizedState;return[typeof w==="boolean"?w:zJ(w),$]}function qA(){var w=QJ(m2)[0],$=Iw().memoizedState;return[typeof w==="boolean"?w:zJ(w),$]}function k9(){return hw(OX)}function mH(){var w=U5(),$=Ew.identifierPrefix;if(Yw){var J=O6,z=_6;J=(z&~(1<<32-F5(z)-1)).toString(32)+J,$="_"+$+"R_"+J,J=hz++,0<J&&($+="H"+J.toString(32)),$+="_"}else J=eR++,$="_"+$+"r_"+J.toString(32)+"_";return w.memoizedState=$}function cH(){return U5().memoizedState=bg.bind(null,c0)}function bg(w,$){for(var J=w.return;J!==null;){switch(J.tag){case 24:case 3:var z=e5(J),W=a6(z),H=o6(J,W,z);H!==null&&(B4(z,"refresh()",w),rw(H,J,z),JJ(H,J,z)),w=WH(),$!==null&&$!==void 0&&H!==null&&console.error("The seed argument is not enabled outside experimental channels."),W.payload={cache:w};return}J=J.return}}function Ig(w,$,J){var z=arguments;typeof z[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),z=e5(w);var W={lane:z,revertLane:0,gesture:null,action:J,hasEagerState:!1,eagerState:null,next:null};h3(w)?UA($,W):(W=oG(w,$,W,z),W!==null&&(B4(z,"dispatch()",w),rw(W,w,z),FA(W,$,z)))}function BA(w,$,J){var z=arguments;typeof z[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),z=e5(w),WJ(w,$,J,z)&&B4(z,"setState()",w)}function WJ(w,$,J,z){var W={lane:z,revertLane:0,gesture:null,action:J,hasEagerState:!1,eagerState:null,next:null};if(h3(w))UA($,W);else{var H=w.alternate;if(w.lanes===0&&(H===null||H.lanes===0)&&(H=$.lastRenderedReducer,H!==null)){var U=a.H;a.H=r2;try{var N=$.lastRenderedState,b=H(N,J);if(W.hasEagerState=!0,W.eagerState=b,A5(b,N))return G3(w,$,W,0),Ew===null&&W3(),!1}catch(V){}finally{a.H=U}}if(J=oG(w,$,W,z),J!==null)return rw(J,w,z),FA(J,$,z),!0}return!1}function uH(w,$,J,z){if(a.T===null&&j9===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),z={lane:2,revertLane:NK(),gesture:null,action:z,hasEagerState:!1,eagerState:null,next:null},h3(w)){if($)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else $=oG(w,J,z,2),$!==null&&(B4(2,"setOptimistic()",w),rw($,w,2))}function h3(w){var $=w.alternate;return w===c0||$!==null&&$===c0}function UA(w,$){g$=xz=!0;var J=w.pending;J===null?$.next=$:($.next=J.next,J.next=$),w.pending=$}function FA(w,$,J){if((J&4194048)!==0){var z=$.lanes;z&=w.pendingLanes,J|=z,$.lanes=J,Z5(w,J)}}function pH(w){if(w!==null&&typeof w!=="function"){var $=String(w);qI.has($)||(qI.add($),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",w))}}function lH(w,$,J,z){var W=w.memoizedState,H=J(z,W);if(w.mode&Y5){zw(!0);try{H=J(z,W)}finally{zw(!1)}}H===void 0&&($=j($)||"Component",WI.has($)||(WI.add($),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",$))),W=H===null||H===void 0?W:e0({},W,H),w.memoizedState=W,w.lanes===0&&(w.updateQueue.baseState=W)}function _A(w,$,J,z,W,H,U){var N=w.stateNode;if(typeof N.shouldComponentUpdate==="function"){if(J=N.shouldComponentUpdate(z,H,U),w.mode&Y5){zw(!0);try{J=N.shouldComponentUpdate(z,H,U)}finally{zw(!1)}}return J===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",j($)||"Component"),J}return $.prototype&&$.prototype.isPureReactComponent?!oZ(J,z)||!oZ(W,H):!0}function OA(w,$,J,z){var W=$.state;typeof $.componentWillReceiveProps==="function"&&$.componentWillReceiveProps(J,z),typeof $.UNSAFE_componentWillReceiveProps==="function"&&$.UNSAFE_componentWillReceiveProps(J,z),$.state!==W&&(w=m(w)||"Component",JI.has(w)||(JI.add(w),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",w)),yq.enqueueReplaceState($,$.state,null))}function D9(w,$){var J=$;if("ref"in $){J={};for(var z in $)z!=="ref"&&(J[z]=$[z])}if(w=w.defaultProps){J===$&&(J=e0({},J));for(var W in w)J[W]===void 0&&(J[W]=w[W])}return J}function AA(w){_q(w),console.warn(`%s
116
+
117
+ %s
118
+ `,C$?"An error occurred in the <"+C$+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
119
+ Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function NA(w){var $=C$?"The above error occurred in the <"+C$+"> component.":"The above error occurred in one of your React components.",J="React will try to recreate this component tree from scratch using the error boundary you provided, "+((dq||"Anonymous")+".");if(typeof w==="object"&&w!==null&&typeof w.environmentName==="string"){var z=w.environmentName;w=[`%o
120
+
121
+ %s
122
+
123
+ %s
124
+ `,w,$,J].slice(0),typeof w[0]==="string"?w.splice(0,1,nI+" "+w[0],aI,WQ+z+WQ,oI):w.splice(0,0,nI,aI,WQ+z+WQ,oI),w.unshift(console),z=Lj.apply(console.error,w),z()}else console.error(`%o
125
+
126
+ %s
127
+
128
+ %s
129
+ `,w,$,J)}function LA(w){_q(w)}function f3(w,$){try{C$=$.source?m($.source):null,dq=null;var J=$.value;if(a.actQueue!==null)a.thrownErrors.push(J);else{var z=w.onUncaughtError;z(J,{componentStack:$.stack})}}catch(W){setTimeout(function(){throw W})}}function bA(w,$,J){try{C$=J.source?m(J.source):null,dq=m($);var z=w.onCaughtError;z(J.value,{componentStack:J.stack,errorBoundary:$.tag===1?$.stateNode:null})}catch(W){setTimeout(function(){throw W})}}function iH(w,$,J){return J=a6(J),J.tag=Rq,J.payload={element:null},J.callback=function(){B0($.source,f3,w,$)},J}function rH(w){return w=a6(w),w.tag=Rq,w}function nH(w,$,J,z){var W=J.type.getDerivedStateFromError;if(typeof W==="function"){var H=z.value;w.payload=function(){return W(H)},w.callback=function(){UO(J),B0(z.source,bA,$,J,z)}}var U=J.stateNode;U!==null&&typeof U.componentDidCatch==="function"&&(w.callback=function(){UO(J),B0(z.source,bA,$,J,z),typeof W!=="function"&&(I8===null?I8=new Set([this]):I8.add(this)),aR(this,z),typeof W==="function"||(J.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",m(J)||"Unknown")})}function Vg(w,$,J,z,W){if(J.flags|=32768,E4&&_J(w,W),z!==null&&typeof z==="object"&&typeof z.then==="function"){if($=J.alternate,$!==null&&i7($,J,W,!0),Yw&&(R4=!0),J=Y2.current,J!==null){switch(J.tag){case 31:case 13:return D2===null?r3():J.alternate===null&&cw===M6&&(cw=dz),J.flags&=-257,J.flags|=65536,J.lanes=W,z===Rz?J.flags|=16384:($=J.updateQueue,$===null?J.updateQueue=new Set([z]):$.add(z),FK(w,z,W)),!1;case 22:return J.flags|=65536,z===Rz?J.flags|=16384:($=J.updateQueue,$===null?($={transitions:null,markerInstances:null,retryQueue:new Set([z])},J.updateQueue=$):(J=$.retryQueue,J===null?$.retryQueue=new Set([z]):J.add(z)),FK(w,z,W)),!1}throw Error("Unexpected Suspense handler tag ("+J.tag+"). This is a bug in React.")}return FK(w,z,W),r3(),!1}if(Yw)return R4=!0,$=Y2.current,$!==null?(($.flags&65536)===0&&($.flags|=256),$.flags|=65536,$.lanes=W,z!==Iq&&tZ(a5(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:z}),J))):(z!==Iq&&tZ(a5(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:z}),J)),w=w.current.alternate,w.flags|=65536,W&=-W,w.lanes|=W,z=a5(z,J),W=iH(w.stateNode,z,W),k3(w,W),cw!==A8&&(cw=d9)),!1;var H=a5(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:z}),J);if(WX===null?WX=[H]:WX.push(H),cw!==A8&&(cw=d9),$===null)return!0;z=a5(z,J),J=$;do{switch(J.tag){case 3:return J.flags|=65536,w=W&-W,J.lanes|=w,w=iH(J.stateNode,z,w),k3(J,w),!1;case 1:if($=J.type,H=J.stateNode,(J.flags&128)===0&&(typeof $.getDerivedStateFromError==="function"||H!==null&&typeof H.componentDidCatch==="function"&&(I8===null||!I8.has(H))))return J.flags|=65536,W&=-W,J.lanes|=W,W=rH(W),nH(W,w,J,z),k3(J,W),!1}J=J.return}while(J!==null);return!1}function n1(w,$,J,z){$.child=w===null?ib($,null,J,z):f9($,w.child,J,z)}function IA(w,$,J,z,W){J=J.render;var H=$.ref;if("ref"in z){var U={};for(var N in z)N!=="ref"&&(U[N]=z[N])}else U=z;if(L9($),z=NH(w,$,J,U,H,W),N=bH(),w!==null&&!U1)return IH(w,$,W),H6(w,$,W);return Yw&&N&&ZH($),$.flags|=1,n1(w,$,z,W),$.child}function VA(w,$,J,z,W){if(w===null){var H=J.type;if(typeof H==="function"&&!tG(H)&&H.defaultProps===void 0&&J.compare===null)return J=_9(H),$.tag=15,$.type=J,oH($,H),kA(w,$,J,z,W);return w=eG(J.type,null,z,$,$.mode,W),w.ref=$.ref,w.return=$,$.child=w}if(H=w.child,!ZK(w,W)){var U=H.memoizedProps;if(J=J.compare,J=J!==null?J:oZ,J(U,z)&&w.ref===$.ref)return H6(w,$,W)}return $.flags|=1,w=z6(H,z),w.ref=$.ref,w.return=$,$.child=w}function kA(w,$,J,z,W){if(w!==null){var H=w.memoizedProps;if(oZ(H,z)&&w.ref===$.ref&&$.type===w.type)if(U1=!1,$.pendingProps=z=H,ZK(w,W))(w.flags&131072)!==0&&(U1=!0);else return $.lanes=w.lanes,H6(w,$,W)}return aH(w,$,J,z,W)}function DA(w,$,J,z){var W=z.children,H=w!==null?w.memoizedState:null;if(w===null&&$.stateNode===null&&($.stateNode={_visibility:hJ,_pendingMarkers:null,_retryCache:null,_transitions:null}),z.mode==="hidden"){if(($.flags&128)!==0){if(H=H!==null?H.baseLanes|J:J,w!==null){z=$.child=w.child;for(W=0;z!==null;)W=W|z.lanes|z.childLanes,z=z.sibling;z=W&~H}else z=0,$.child=null;return MA(w,$,H,J,z)}if((J&536870912)!==0)$.memoizedState={baseLanes:0,cachePool:null},w!==null&&A3($,H!==null?H.cachePool:null),H!==null?mO($,H):FH($),cO($);else return z=$.lanes=536870912,MA(w,$,H!==null?H.baseLanes|J:J,J,z)}else H!==null?(A3($,H.cachePool),mO($,H),t6($),$.memoizedState=null):(w!==null&&A3($,null),FH($),t6($));return n1(w,$,W,J),$.child}function GJ(w,$){return w!==null&&w.tag===22||$.stateNode!==null||($.stateNode={_visibility:hJ,_pendingMarkers:null,_retryCache:null,_transitions:null}),$.sibling}function MA(w,$,J,z,W){var H=KH();return H=H===null?null:{parent:K1._currentValue,pool:H},$.memoizedState={baseLanes:J,cachePool:H},w!==null&&A3($,null),FH($),cO($),w!==null&&i7(w,$,z,!0),$.childLanes=W,null}function y3(w,$){var J=$.hidden;return J!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
130
+ - <Activity %s>
131
+ + <Activity %s>`,J===!0?"hidden":J===!1?"hidden={false}":"hidden={...}",J?'mode="hidden"':'mode="visible"'),$=m3({mode:$.mode,children:$.children},w.mode),$.ref=w.ref,w.child=$,$.return=w,$}function TA(w,$,J){return f9($,w.child,null,J),w=y3($,$.pendingProps),w.flags|=2,t5($),$.memoizedState=null,w}function kg(w,$,J){var z=$.pendingProps,W=($.flags&128)!==0;if($.flags&=-129,w===null){if(Yw){if(z.mode==="hidden")return w=y3($,z),$.lanes=536870912,GJ(null,w);if(OH($),(w=Sw)?(J=tN(w,V2),J=J!==null&&J.data===i9?J:null,J!==null&&(z={dehydrated:J,treeContext:NO(),retryLane:536870912,hydrationErrors:null},$.memoizedState=z,z=OO(J),z.return=$,$.child=z,s1=$,Sw=null)):J=null,J===null)throw q3($,w),i6($);return $.lanes=536870912,null}return y3($,z)}var H=w.memoizedState;if(H!==null){var U=H.dehydrated;if(OH($),W)if($.flags&256)$.flags&=-257,$=TA(w,$,J);else if($.memoizedState!==null)$.child=w.child,$.flags|=128,$=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(bO(),(J&536870912)!==0&&i3($),U1||i7(w,$,J,!1),W=(J&w.childLanes)!==0,U1||W){if(z=Ew,z!==null&&(U=x1(z,J),U!==0&&U!==H.retryLane))throw H.retryLane=U,J5(w,U),rw(z,w,U),mq;r3(),$=TA(w,$,J)}else w=H.treeContext,Sw=w2(U.nextSibling),s1=$,Yw=!0,K8=null,R4=!1,X2=null,V2=!1,w!==null&&LO($,w),$=y3($,z),$.flags|=4096;return $}return H=w.child,z={mode:z.mode,children:z.children},(J&536870912)!==0&&(J&w.lanes)!==0&&i3($),w=z6(H,z),w.ref=$.ref,$.child=w,w.return=$,w}function d3(w,$){var J=$.ref;if(J===null)w!==null&&w.ref!==null&&($.flags|=4194816);else{if(typeof J!=="function"&&typeof J!=="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if(w===null||w.ref!==J)$.flags|=4194816}}function aH(w,$,J,z,W){if(J.prototype&&typeof J.prototype.render==="function"){var H=j(J)||"Unknown";BI[H]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",H,H),BI[H]=!0)}if($.mode&Y5&&i2.recordLegacyContextWarning($,null),w===null&&(oH($,$.type),J.contextTypes&&(H=j(J)||"Unknown",FI[H]||(FI[H]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",H)))),L9($),J=NH(w,$,J,z,void 0,W),z=bH(),w!==null&&!U1)return IH(w,$,W),H6(w,$,W);return Yw&&z&&ZH($),$.flags|=1,n1(w,$,J,W),$.child}function vA(w,$,J,z,W,H){if(L9($),k6=-1,$X=w!==null&&w.type!==$.type,$.updateQueue=null,J=LH($,z,J,W),uO(w,$),z=bH(),w!==null&&!U1)return IH(w,$,H),H6(w,$,H);return Yw&&z&&ZH($),$.flags|=1,n1(w,$,J,H),$.child}function PA(w,$,J,z,W){switch(q($)){case!1:var H=$.stateNode,U=new $.type($.memoizedProps,H.context).state;H.updater.enqueueSetState(H,U,null);break;case!0:$.flags|=128,$.flags|=65536,H=Error("Simulated error coming from DevTools");var N=W&-W;if($.lanes|=N,U=Ew,U===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");N=rH(N),nH(N,U,$,a5(H,$)),k3($,N)}if(L9($),$.stateNode===null){if(U=H8,H=J.contextType,"contextType"in J&&H!==null&&(H===void 0||H.$$typeof!==T4)&&!KI.has(J)&&(KI.add(J),N=H===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof H!=="object"?" However, it is set to a "+typeof H+".":H.$$typeof===cK?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(H).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",j(J)||"Component",N)),typeof H==="object"&&H!==null&&(U=hw(H)),H=new J(z,U),$.mode&Y5){zw(!0);try{H=new J(z,U)}finally{zw(!1)}}if(U=$.memoizedState=H.state!==null&&H.state!==void 0?H.state:null,H.updater=yq,$.stateNode=H,H._reactInternals=$,H._reactInternalInstance=ZI,typeof J.getDerivedStateFromProps==="function"&&U===null&&(U=j(J)||"Component",XI.has(U)||(XI.add(U),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",U,H.state===null?"null":"undefined",U))),typeof J.getDerivedStateFromProps==="function"||typeof H.getSnapshotBeforeUpdate==="function"){var b=N=U=null;if(typeof H.componentWillMount==="function"&&H.componentWillMount.__suppressDeprecationWarning!==!0?U="componentWillMount":typeof H.UNSAFE_componentWillMount==="function"&&(U="UNSAFE_componentWillMount"),typeof H.componentWillReceiveProps==="function"&&H.componentWillReceiveProps.__suppressDeprecationWarning!==!0?N="componentWillReceiveProps":typeof H.UNSAFE_componentWillReceiveProps==="function"&&(N="UNSAFE_componentWillReceiveProps"),typeof H.componentWillUpdate==="function"&&H.componentWillUpdate.__suppressDeprecationWarning!==!0?b="componentWillUpdate":typeof H.UNSAFE_componentWillUpdate==="function"&&(b="UNSAFE_componentWillUpdate"),U!==null||N!==null||b!==null){H=j(J)||"Component";var V=typeof J.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";zI.has(H)||(zI.add(H),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
132
+
133
+ %s uses %s but also contains the following legacy lifecycles:%s%s%s
134
+
135
+ The above lifecycles should be removed. Learn more about this warning here:
136
+ https://react.dev/link/unsafe-component-lifecycles`,H,V,U!==null?`
137
+ `+U:"",N!==null?`
138
+ `+N:"",b!==null?`
139
+ `+b:""))}}H=$.stateNode,U=j(J)||"Component",H.render||(J.prototype&&typeof J.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",U):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",U)),!H.getInitialState||H.getInitialState.isReactClassApproved||H.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",U),H.getDefaultProps&&!H.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",U),H.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",U),J.childContextTypes&&!HI.has(J)&&(HI.add(J),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",U)),J.contextTypes&&!GI.has(J)&&(GI.add(J),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",U)),typeof H.componentShouldUpdate==="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",U),J.prototype&&J.prototype.isPureReactComponent&&typeof H.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",j(J)||"A pure component"),typeof H.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",U),typeof H.componentDidReceiveProps==="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",U),typeof H.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",U),typeof H.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",U),N=H.props!==z,H.props!==void 0&&N&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",U),H.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",U,U),typeof H.getSnapshotBeforeUpdate!=="function"||typeof H.componentDidUpdate==="function"||YI.has(J)||(YI.add(J),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",j(J))),typeof H.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",U),typeof H.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",U),typeof J.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",U),(N=H.state)&&(typeof N!=="object"||V1(N))&&console.error("%s.state: must be set to an object or null",U),typeof H.getChildContext==="function"&&typeof J.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",U),H=$.stateNode,H.props=z,H.state=$.memoizedState,H.refs={},BH($),U=J.contextType,H.context=typeof U==="object"&&U!==null?hw(U):H8,H.state===z&&(U=j(J)||"Component",QI.has(U)||(QI.add(U),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",U))),$.mode&Y5&&i2.recordLegacyContextWarning($,H),i2.recordUnsafeLifecycleWarnings($,H),H.state=$.memoizedState,U=J.getDerivedStateFromProps,typeof U==="function"&&(lH($,J,U,z),H.state=$.memoizedState),typeof J.getDerivedStateFromProps==="function"||typeof H.getSnapshotBeforeUpdate==="function"||typeof H.UNSAFE_componentWillMount!=="function"&&typeof H.componentWillMount!=="function"||(U=H.state,typeof H.componentWillMount==="function"&&H.componentWillMount(),typeof H.UNSAFE_componentWillMount==="function"&&H.UNSAFE_componentWillMount(),U!==H.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",m($)||"Component"),yq.enqueueReplaceState(H,H.state,null)),YJ($,z,H,W),XJ(),H.state=$.memoizedState),typeof H.componentDidMount==="function"&&($.flags|=4194308),($.mode&l2)!==f0&&($.flags|=134217728),H=!0}else if(w===null){H=$.stateNode;var h=$.memoizedProps;N=D9(J,h),H.props=N;var f=H.context;b=J.contextType,U=H8,typeof b==="object"&&b!==null&&(U=hw(b)),V=J.getDerivedStateFromProps,b=typeof V==="function"||typeof H.getSnapshotBeforeUpdate==="function",h=$.pendingProps!==h,b||typeof H.UNSAFE_componentWillReceiveProps!=="function"&&typeof H.componentWillReceiveProps!=="function"||(h||f!==U)&&OA($,H,z,U),O8=!1;var R=$.memoizedState;H.state=R,YJ($,z,H,W),XJ(),f=$.memoizedState,h||R!==f||O8?(typeof V==="function"&&(lH($,J,V,z),f=$.memoizedState),(N=O8||_A($,J,N,z,R,f,U))?(b||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"&&($.flags|=4194308),($.mode&l2)!==f0&&($.flags|=134217728)):(typeof H.componentDidMount==="function"&&($.flags|=4194308),($.mode&l2)!==f0&&($.flags|=134217728),$.memoizedProps=z,$.memoizedState=f),H.props=z,H.state=f,H.context=U,H=N):(typeof H.componentDidMount==="function"&&($.flags|=4194308),($.mode&l2)!==f0&&($.flags|=134217728),H=!1)}else{H=$.stateNode,UH(w,$),U=$.memoizedProps,b=D9(J,U),H.props=b,V=$.pendingProps,R=H.context,f=J.contextType,N=H8,typeof f==="object"&&f!==null&&(N=hw(f)),h=J.getDerivedStateFromProps,(f=typeof h==="function"||typeof H.getSnapshotBeforeUpdate==="function")||typeof H.UNSAFE_componentWillReceiveProps!=="function"&&typeof H.componentWillReceiveProps!=="function"||(U!==V||R!==N)&&OA($,H,z,N),O8=!1,R=$.memoizedState,H.state=R,YJ($,z,H,W),XJ();var i=$.memoizedState;U!==V||R!==i||O8||w!==null&&w.dependencies!==null&&U3(w.dependencies)?(typeof h==="function"&&(lH($,J,h,z),i=$.memoizedState),(b=O8||_A($,J,b,z,R,i,N)||w!==null&&w.dependencies!==null&&U3(w.dependencies))?(f||typeof H.UNSAFE_componentWillUpdate!=="function"&&typeof H.componentWillUpdate!=="function"||(typeof H.componentWillUpdate==="function"&&H.componentWillUpdate(z,i,N),typeof H.UNSAFE_componentWillUpdate==="function"&&H.UNSAFE_componentWillUpdate(z,i,N)),typeof H.componentDidUpdate==="function"&&($.flags|=4),typeof H.getSnapshotBeforeUpdate==="function"&&($.flags|=1024)):(typeof H.componentDidUpdate!=="function"||U===w.memoizedProps&&R===w.memoizedState||($.flags|=4),typeof H.getSnapshotBeforeUpdate!=="function"||U===w.memoizedProps&&R===w.memoizedState||($.flags|=1024),$.memoizedProps=z,$.memoizedState=i),H.props=z,H.state=i,H.context=N,H=b):(typeof H.componentDidUpdate!=="function"||U===w.memoizedProps&&R===w.memoizedState||($.flags|=4),typeof H.getSnapshotBeforeUpdate!=="function"||U===w.memoizedProps&&R===w.memoizedState||($.flags|=1024),H=!1)}if(N=H,d3(w,$),U=($.flags&128)!==0,N||U){if(N=$.stateNode,iw($),U&&typeof J.getDerivedStateFromError!=="function")J=null,N5=-1;else if(J=Cb(N),$.mode&Y5){zw(!0);try{Cb(N)}finally{zw(!1)}}$.flags|=1,w!==null&&U?($.child=f9($,w.child,null,W),$.child=f9($,null,J,W)):n1(w,$,J,W),$.memoizedState=N.state,w=$.child}else w=H6(w,$,W);return W=$.stateNode,H&&W.props!==z&&(R$||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",m($)||"a component"),R$=!0),w}function EA(w,$,J,z){return N9(),$.flags|=256,n1(w,$,J,z),$.child}function oH(w,$){$&&$.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
140
+ %s.childContextTypes = ...`,$.displayName||$.name||"Component"),typeof $.getDerivedStateFromProps==="function"&&(w=j($)||"Unknown",_I[w]||(console.error("%s: Function components do not support getDerivedStateFromProps.",w),_I[w]=!0)),typeof $.contextType==="object"&&$.contextType!==null&&($=j($)||"Unknown",UI[$]||(console.error("%s: Function components do not support contextType.",$),UI[$]=!0))}function sH(w){return{baseLanes:w,cachePool:vO()}}function tH(w,$,J){return w=w!==null?w.childLanes&~J:0,$&&(w|=x5),w}function gA(w,$,J){var z,W=$.pendingProps;K($)&&($.flags|=128);var H=!1,U=($.flags&128)!==0;if((z=U)||(z=w!==null&&w.memoizedState===null?!1:(Q1.current&eJ)!==0),z&&(H=!0,$.flags&=-129),z=($.flags&32)!==0,$.flags&=-33,w===null){if(Yw){if(H?s6($):t6($),(w=Sw)?(J=tN(w,V2),J=J!==null&&J.data!==i9?J:null,J!==null&&(z={dehydrated:J,treeContext:NO(),retryLane:536870912,hydrationErrors:null},$.memoizedState=z,z=OO(J),z.return=$,$.child=z,s1=$,Sw=null)):J=null,J===null)throw q3($,w),i6($);return gK(J)?$.lanes=32:$.lanes=536870912,null}var N=W.children;if(W=W.fallback,H){t6($);var b=$.mode;return N=m3({mode:"hidden",children:N},b),W=O9(W,b,J,null),N.return=$,W.return=$,N.sibling=W,$.child=N,W=$.child,W.memoizedState=sH(J),W.childLanes=tH(w,z,J),$.memoizedState=cq,GJ(null,W)}return s6($),eH($,N)}var V=w.memoizedState;if(V!==null){var h=V.dehydrated;if(h!==null){if(U)$.flags&256?(s6($),$.flags&=-257,$=wK(w,$,J)):$.memoizedState!==null?(t6($),$.child=w.child,$.flags|=128,$=null):(t6($),N=W.fallback,b=$.mode,W=m3({mode:"visible",children:W.children},b),N=O9(N,b,J,null),N.flags|=2,W.return=$,N.return=$,W.sibling=N,$.child=W,f9($,w.child,null,J),W=$.child,W.memoizedState=sH(J),W.childLanes=tH(w,z,J),$.memoizedState=cq,$=GJ(null,W));else if(s6($),bO(),(J&536870912)!==0&&i3($),gK(h)){if(z=h.nextSibling&&h.nextSibling.dataset,z){N=z.dgst;var f=z.msg;b=z.stck;var R=z.cstck}H=f,z=N,W=b,h=R,N=H,b=h,N=N?Error(N):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),N.stack=W||"",N.digest=z,z=b===void 0?null:b,W={value:N,source:null,stack:z},typeof z==="string"&&bq.set(N,W),tZ(W),$=wK(w,$,J)}else if(U1||i7(w,$,J,!1),z=(J&w.childLanes)!==0,U1||z){if(z=Ew,z!==null&&(W=x1(z,J),W!==0&&W!==V.retryLane))throw V.retryLane=W,J5(w,W),rw(z,w,W),mq;EK(h)||r3(),$=wK(w,$,J)}else EK(h)?($.flags|=192,$.child=w.child,$=null):(w=V.treeContext,Sw=w2(h.nextSibling),s1=$,Yw=!0,K8=null,R4=!1,X2=null,V2=!1,w!==null&&LO($,w),$=eH($,W.children),$.flags|=4096);return $}}if(H)return t6($),N=W.fallback,b=$.mode,R=w.child,h=R.sibling,W=z6(R,{mode:"hidden",children:W.children}),W.subtreeFlags=R.subtreeFlags&65011712,h!==null?N=z6(h,N):(N=O9(N,b,J,null),N.flags|=2),N.return=$,W.return=$,W.sibling=N,$.child=W,GJ(null,W),W=$.child,N=w.child.memoizedState,N===null?N=sH(J):(b=N.cachePool,b!==null?(R=K1._currentValue,b=b.parent!==R?{parent:R,pool:R}:b):b=vO(),N={baseLanes:N.baseLanes|J,cachePool:b}),W.memoizedState=N,W.childLanes=tH(w,z,J),$.memoizedState=cq,GJ(w.child,W);return V!==null&&(J&62914560)===J&&(J&w.lanes)!==0&&i3($),s6($),J=w.child,w=J.sibling,J=z6(J,{mode:"visible",children:W.children}),J.return=$,J.sibling=null,w!==null&&(z=$.deletions,z===null?($.deletions=[w],$.flags|=16):z.push(w)),$.child=J,$.memoizedState=null,J}function eH(w,$){return $=m3({mode:"visible",children:$},w.mode),$.return=w,w.child=$}function m3(w,$){return w=L(22,w,null,$),w.lanes=0,w}function wK(w,$,J){return f9($,w.child,null,J),w=eH($,$.pendingProps.children),w.flags|=2,$.memoizedState=null,w}function CA(w,$,J){w.lanes|=$;var z=w.alternate;z!==null&&(z.lanes|=$),zH(w.return,$,J)}function $K(w,$,J,z,W,H){var U=w.memoizedState;U===null?w.memoizedState={isBackwards:$,rendering:null,renderingStartTime:0,last:z,tail:J,tailMode:W,treeForkCount:H}:(U.isBackwards=$,U.rendering=null,U.renderingStartTime=0,U.last=z,U.tail=J,U.tailMode=W,U.treeForkCount=H)}function RA(w,$,J){var z=$.pendingProps,W=z.revealOrder,H=z.tail,U=z.children,N=Q1.current;if((z=(N&eJ)!==0)?(N=N&P$|eJ,$.flags|=128):N&=P$,s(Q1,N,$),N=W==null?"null":W,W!=="forwards"&&W!=="unstable_legacy-backwards"&&W!=="together"&&W!=="independent"&&!OI[N])if(OI[N]=!0,W==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(W==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof W==="string")switch(W.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',W,W.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',W,W.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',W)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',W);if(N=H==null?"null":H,!yz[N])if(H==null){if(W==="forwards"||W==="backwards"||W==="unstable_legacy-backwards")yz[N]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')}else H!=="visible"&&H!=="collapsed"&&H!=="hidden"?(yz[N]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',H)):W!=="forwards"&&W!=="backwards"&&W!=="unstable_legacy-backwards"&&(yz[N]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',H));w:if((W==="forwards"||W==="backwards"||W==="unstable_legacy-backwards")&&U!==void 0&&U!==null&&U!==!1)if(V1(U)){for(N=0;N<U.length;N++)if(!fO(U[N],N))break w}else if(N=n(U),typeof N==="function"){if(N=N.call(U))for(var b=N.next(),V=0;!b.done;b=N.next()){if(!fO(b.value,V))break w;V++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',W);if(n1(w,$,U,J),Yw?(l6(),U=fJ):U=0,!z&&w!==null&&(w.flags&128)!==0)w:for(w=$.child;w!==null;){if(w.tag===13)w.memoizedState!==null&&CA(w,J,$);else if(w.tag===19)CA(w,J,$);else if(w.child!==null){w.child.return=w,w=w.child;continue}if(w===$)break w;for(;w.sibling===null;){if(w.return===null||w.return===$)break w;w=w.return}w.sibling.return=w.return,w=w.sibling}switch(W){case"forwards":J=$.child;for(W=null;J!==null;)w=J.alternate,w!==null&&D3(w)===null&&(W=J),J=J.sibling;J=W,J===null?(W=$.child,$.child=null):(W=J.sibling,J.sibling=null),$K($,!1,W,J,H,U);break;case"backwards":case"unstable_legacy-backwards":J=null,W=$.child;for($.child=null;W!==null;){if(w=W.alternate,w!==null&&D3(w)===null){$.child=W;break}w=W.sibling,W.sibling=J,J=W,W=w}$K($,!0,J,null,H,U);break;case"together":$K($,!1,null,null,void 0,U);break;default:$.memoizedState=null}return $.child}function H6(w,$,J){if(w!==null&&($.dependencies=w.dependencies),N5=-1,L8|=$.lanes,(J&$.childLanes)===0)if(w!==null){if(i7(w,$,J,!1),(J&$.childLanes)===0)return null}else return null;if(w!==null&&$.child!==w.child)throw Error("Resuming work not yet implemented.");if($.child!==null){w=$.child,J=z6(w,w.pendingProps),$.child=J;for(J.return=$;w.sibling!==null;)w=w.sibling,J=J.sibling=z6(w,w.pendingProps),J.return=$;J.sibling=null}return $.child}function ZK(w,$){if((w.lanes&$)!==0)return!0;return w=w.dependencies,w!==null&&U3(w)?!0:!1}function Dg(w,$,J){switch($.tag){case 3:e($,$.stateNode.containerInfo),r6($,K1,w.memoizedState.cache),N9();break;case 27:case 5:Z0($);break;case 4:e($,$.stateNode.containerInfo);break;case 10:r6($,$.type,$.memoizedProps.value);break;case 12:(J&$.childLanes)!==0&&($.flags|=4),$.flags|=2048;var z=$.stateNode;z.effectDuration=-0,z.passiveEffectDuration=-0;break;case 31:if($.memoizedState!==null)return $.flags|=128,OH($),null;break;case 13:if(z=$.memoizedState,z!==null){if(z.dehydrated!==null)return s6($),$.flags|=128,null;if((J&$.child.childLanes)!==0)return gA(w,$,J);return s6($),w=H6(w,$,J),w!==null?w.sibling:null}s6($);break;case 19:var W=(w.flags&128)!==0;if(z=(J&$.childLanes)!==0,z||(i7(w,$,J,!1),z=(J&$.childLanes)!==0),W){if(z)return RA(w,$,J);$.flags|=128}if(W=$.memoizedState,W!==null&&(W.rendering=null,W.tail=null,W.lastEffect=null),s(Q1,Q1.current,$),z)break;else return null;case 22:return $.lanes=0,DA(w,$,J,$.pendingProps);case 24:r6($,K1,w.memoizedState.cache)}return H6(w,$,J)}function JK(w,$,J){if($._debugNeedsRemount&&w!==null){J=eG($.type,$.key,$.pendingProps,$._debugOwner||null,$.mode,$.lanes),J._debugStack=$._debugStack,J._debugTask=$._debugTask;var z=$.return;if(z===null)throw Error("Cannot swap the root fiber.");if(w.alternate=null,$.alternate=null,J.index=$.index,J.sibling=$.sibling,J.return=$.return,J.ref=$.ref,J._debugInfo=$._debugInfo,$===z.child)z.child=J;else{var W=z.child;if(W===null)throw Error("Expected parent to have a child.");for(;W.sibling!==$;)if(W=W.sibling,W===null)throw Error("Expected to find the previous sibling.");W.sibling=J}return $=z.deletions,$===null?(z.deletions=[w],z.flags|=16):$.push(w),J.flags|=2,J}if(w!==null)if(w.memoizedProps!==$.pendingProps||$.type!==w.type)U1=!0;else{if(!ZK(w,J)&&($.flags&128)===0)return U1=!1,Dg(w,$,J);U1=(w.flags&131072)!==0?!0:!1}else{if(U1=!1,z=Yw)l6(),z=($.flags&1048576)!==0;z&&(z=$.index,l6(),AO($,fJ,z))}switch($.lanes=0,$.tag){case 16:w:if(z=$.pendingProps,w=n6($.elementType),$.type=w,typeof w==="function")tG(w)?(z=D9(w,z),$.tag=1,$.type=w=_9(w),$=PA(null,$,w,z,J)):($.tag=0,oH($,w),$.type=w=_9(w),$=aH(null,$,w,z,J));else{if(w!==void 0&&w!==null){if(W=w.$$typeof,W===DJ){$.tag=11,$.type=w=sG(w),$=IA(null,$,w,z,J);break w}else if(W===Qz){$.tag=14,$=VA(null,$,w,z,J);break w}}throw $="",w!==null&&typeof w==="object"&&w.$$typeof===$2&&($=" Did you wrap a component in React.lazy() more than once?"),J=j(w)||w,Error("Element type is invalid. Received a promise that resolves to: "+J+". Lazy element type must resolve to a class or function."+$)}return $;case 0:return aH(w,$,$.type,$.pendingProps,J);case 1:return z=$.type,W=D9(z,$.pendingProps),PA(w,$,z,W,J);case 3:w:{if(e($,$.stateNode.containerInfo),w===null)throw Error("Should have a current fiber. This is a bug in React.");z=$.pendingProps;var H=$.memoizedState;W=H.element,UH(w,$),YJ($,z,null,J);var U=$.memoizedState;if(z=U.cache,r6($,K1,z),z!==H.cache&&QH($,[K1],J,!0),XJ(),z=U.element,H.isDehydrated)if(H={element:z,isDehydrated:!1,cache:U.cache},$.updateQueue.baseState=H,$.memoizedState=H,$.flags&256){$=EA(w,$,z,J);break w}else if(z!==W){W=a5(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),$),tZ(W),$=EA(w,$,z,J);break w}else{switch(w=$.stateNode.containerInfo,w.nodeType){case 9:w=w.body;break;default:w=w.nodeName==="HTML"?w.ownerDocument.body:w}Sw=w2(w.firstChild),s1=$,Yw=!0,K8=null,R4=!1,X2=null,V2=!0,J=ib($,null,z,J);for($.child=J;J;)J.flags=J.flags&-3|4096,J=J.sibling}else{if(N9(),z===W){$=H6(w,$,J);break w}n1(w,$,z,J)}$=$.child}return $;case 26:return d3(w,$),w===null?(J=XL($.type,null,$.pendingProps,null))?$.memoizedState=J:Yw||(J=$.type,w=$.pendingProps,z=M0(X8.current),z=s3(z).createElement(J),z[o1]=$,z[_5]=w,a1(z,J,w),G0(z),$.stateNode=z):$.memoizedState=XL($.type,w.memoizedProps,$.pendingProps,w.memoizedState),null;case 27:return Z0($),w===null&&Yw&&(z=M0(X8.current),W=z0(),z=$.stateNode=ZL($.type,$.pendingProps,z,W,!1),R4||(W=pN(z,$.type,$.pendingProps,W),W!==null&&(A9($,0).serverProps=W)),s1=$,V2=!0,W=Sw,Z8($.type)?(KB=W,Sw=w2(z.firstChild)):Sw=W),n1(w,$,$.pendingProps.children,J),d3(w,$),w===null&&($.flags|=4194304),$.child;case 5:return w===null&&Yw&&(H=z0(),z=uG($.type,H.ancestorInfo),W=Sw,(U=!W)||(U=BC(W,$.type,$.pendingProps,V2),U!==null?($.stateNode=U,R4||(H=pN(U,$.type,$.pendingProps,H),H!==null&&(A9($,0).serverProps=H)),s1=$,Sw=w2(U.firstChild),V2=!1,H=!0):H=!1,U=!H),U&&(z&&q3($,W),i6($))),Z0($),W=$.type,H=$.pendingProps,U=w!==null?w.memoizedProps:null,z=H.children,vK(W,H)?z=null:U!==null&&vK(W,U)&&($.flags|=32),$.memoizedState!==null&&(W=NH(w,$,Og,null,null,J),OX._currentValue=W),d3(w,$),n1(w,$,z,J),$.child;case 6:return w===null&&Yw&&(J=$.pendingProps,w=z0(),z=w.ancestorInfo.current,J=z!=null?Z3(J,z.tag,w.ancestorInfo.implicitRootScope):!0,w=Sw,(z=!w)||(z=UC(w,$.pendingProps,V2),z!==null?($.stateNode=z,s1=$,Sw=null,z=!0):z=!1,z=!z),z&&(J&&q3($,w),i6($))),null;case 13:return gA(w,$,J);case 4:return e($,$.stateNode.containerInfo),z=$.pendingProps,w===null?$.child=f9($,null,z,J):n1(w,$,z,J),$.child;case 11:return IA(w,$,$.type,$.pendingProps,J);case 7:return n1(w,$,$.pendingProps,J),$.child;case 8:return n1(w,$,$.pendingProps.children,J),$.child;case 12:return $.flags|=4,$.flags|=2048,z=$.stateNode,z.effectDuration=-0,z.passiveEffectDuration=-0,n1(w,$,$.pendingProps.children,J),$.child;case 10:return z=$.type,W=$.pendingProps,H=W.value,"value"in W||AI||(AI=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),r6($,z,H),n1(w,$,W.children,J),$.child;case 9:return W=$.type._context,z=$.pendingProps.children,typeof z!=="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),L9($),W=hw(W),z=Pq(z,W,void 0),$.flags|=1,n1(w,$,z,J),$.child;case 14:return VA(w,$,$.type,$.pendingProps,J);case 15:return kA(w,$,$.type,$.pendingProps,J);case 19:return RA(w,$,J);case 31:return kg(w,$,J);case 22:return DA(w,$,J,$.pendingProps);case 24:return L9($),z=hw(K1),w===null?(W=KH(),W===null&&(W=Ew,H=WH(),W.pooledCache=H,b9(H),H!==null&&(W.pooledCacheLanes|=J),W=H),$.memoizedState={parent:z,cache:W},BH($),r6($,K1,W)):((w.lanes&J)!==0&&(UH(w,$),YJ($,null,null,J),XJ()),W=w.memoizedState,H=$.memoizedState,W.parent!==z?(W={parent:z,cache:z},$.memoizedState=W,$.lanes===0&&($.memoizedState=$.updateQueue.baseState=W),r6($,K1,z)):(z=H.cache,r6($,K1,z),z!==W.cache&&QH($,[K1],J,!0))),n1(w,$,$.pendingProps.children,J),$.child;case 29:throw $.pendingProps}throw Error("Unknown unit of work tag ("+$.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function K6(w){w.flags|=4}function XK(w,$,J,z,W){if($=(w.mode&lR)!==f0)$=!1;if($){if(w.flags|=16777216,(W&335544128)===W)if(w.stateNode.complete)w.flags|=8192;else if(qN())w.flags|=8192;else throw h9=Rz,gq}else w.flags&=-16777217}function jA(w,$){if($.type!=="stylesheet"||($.state.loading&v2)!==a9)w.flags&=-16777217;else if(w.flags|=16777216,!GL($))if(qN())w.flags|=8192;else throw h9=Rz,gq}function c3(w,$){$!==null&&(w.flags|=4),w.flags&16384&&($=w.tag!==22?l5():536870912,w.lanes|=$,u9|=$)}function HJ(w,$){if(!Yw)switch(w.tailMode){case"hidden":$=w.tail;for(var J=null;$!==null;)$.alternate!==null&&(J=$),$=$.sibling;J===null?w.tail=null:J.sibling=null;break;case"collapsed":J=w.tail;for(var z=null;J!==null;)J.alternate!==null&&(z=J),J=J.sibling;z===null?$||w.tail===null?w.tail=null:w.tail.sibling=null:z.sibling=null}}function gw(w){var $=w.alternate!==null&&w.alternate.child===w.child,J=0,z=0;if($)if((w.mode&l0)!==f0){for(var{selfBaseDuration:W,child:H}=w;H!==null;)J|=H.lanes|H.childLanes,z|=H.subtreeFlags&65011712,z|=H.flags&65011712,W+=H.treeBaseDuration,H=H.sibling;w.treeBaseDuration=W}else for(W=w.child;W!==null;)J|=W.lanes|W.childLanes,z|=W.subtreeFlags&65011712,z|=W.flags&65011712,W.return=w,W=W.sibling;else if((w.mode&l0)!==f0){W=w.actualDuration,H=w.selfBaseDuration;for(var U=w.child;U!==null;)J|=U.lanes|U.childLanes,z|=U.subtreeFlags,z|=U.flags,W+=U.actualDuration,H+=U.treeBaseDuration,U=U.sibling;w.actualDuration=W,w.treeBaseDuration=H}else for(W=w.child;W!==null;)J|=W.lanes|W.childLanes,z|=W.subtreeFlags,z|=W.flags,W.return=w,W=W.sibling;return w.subtreeFlags|=z,w.childLanes=J,$}function Mg(w,$,J){var z=$.pendingProps;switch(JH($),$.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return gw($),null;case 1:return gw($),null;case 3:if(J=$.stateNode,z=null,w!==null&&(z=w.memoizedState.cache),$.memoizedState.cache!==z&&($.flags|=2048),W6(K1,$),Y0($),J.pendingContext&&(J.context=J.pendingContext,J.pendingContext=null),w===null||w.child===null)l7($)?(YH(),K6($)):w===null||w.memoizedState.isDehydrated&&($.flags&256)===0||($.flags|=1024,XH());return gw($),null;case 26:var{type:W,memoizedState:H}=$;return w===null?(K6($),H!==null?(gw($),jA($,H)):(gw($),XK($,W,null,z,J))):H?H!==w.memoizedState?(K6($),gw($),jA($,H)):(gw($),$.flags&=-16777217):(w=w.memoizedProps,w!==z&&K6($),gw($),XK($,W,w,z,J)),null;case 27:if(C0($),J=M0(X8.current),W=$.type,w!==null&&$.stateNode!=null)w.memoizedProps!==z&&K6($);else{if(!z){if($.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return gw($),null}w=z0(),l7($)?IO($,w):(w=ZL(W,z,J,w,!0),$.stateNode=w,K6($))}return gw($),null;case 5:if(C0($),W=$.type,w!==null&&$.stateNode!=null)w.memoizedProps!==z&&K6($);else{if(!z){if($.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return gw($),null}var U=z0();if(l7($))IO($,U);else{switch(H=M0(X8.current),uG(W,U.ancestorInfo),U=U.context,H=s3(H),U){case m$:H=H.createElementNS(K$,W);break;case YQ:H=H.createElementNS(Uz,W);break;default:switch(W){case"svg":H=H.createElementNS(K$,W);break;case"math":H=H.createElementNS(Uz,W);break;case"script":H=H.createElement("div"),H.innerHTML="<script></script>",H=H.removeChild(H.firstChild);break;case"select":H=typeof z.is==="string"?H.createElement("select",{is:z.is}):H.createElement("select"),z.multiple?H.multiple=!0:z.size&&(H.size=z.size);break;default:H=typeof z.is==="string"?H.createElement(W,{is:z.is}):H.createElement(W),W.indexOf("-")===-1&&(W!==W.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",W),Object.prototype.toString.call(H)!=="[object HTMLUnknownElement]"||u2.call(cI,W)||(cI[W]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",W)))}}H[o1]=$,H[_5]=z;w:for(U=$.child;U!==null;){if(U.tag===5||U.tag===6)H.appendChild(U.stateNode);else if(U.tag!==4&&U.tag!==27&&U.child!==null){U.child.return=U,U=U.child;continue}if(U===$)break w;for(;U.sibling===null;){if(U.return===null||U.return===$)break w;U=U.return}U.sibling.return=U.return,U=U.sibling}$.stateNode=H;w:switch(a1(H,W,z),W){case"button":case"input":case"select":case"textarea":z=!!z.autoFocus;break w;case"img":z=!0;break w;default:z=!1}z&&K6($)}}return gw($),XK($,$.type,w===null?null:w.memoizedProps,$.pendingProps,J),null;case 6:if(w&&$.stateNode!=null)w.memoizedProps!==z&&K6($);else{if(typeof z!=="string"&&$.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(w=M0(X8.current),J=z0(),l7($)){if(w=$.stateNode,J=$.memoizedProps,W=!R4,z=null,H=s1,H!==null)switch(H.tag){case 3:W&&(W=wL(w,J,z),W!==null&&(A9($,0).serverProps=W));break;case 27:case 5:z=H.memoizedProps,W&&(W=wL(w,J,z),W!==null&&(A9($,0).serverProps=W))}w[o1]=$,w=w.nodeValue===J||z!==null&&z.suppressHydrationWarning===!0||yN(w.nodeValue,J)?!0:!1,w||i6($,!0)}else W=J.ancestorInfo.current,W!=null&&Z3(z,W.tag,J.ancestorInfo.implicitRootScope),w=s3(w).createTextNode(z),w[o1]=$,$.stateNode=w}return gw($),null;case 31:if(J=$.memoizedState,w===null||w.memoizedState!==null){if(z=l7($),J!==null){if(w===null){if(!z)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(w=$.memoizedState,w=w!==null?w.dehydrated:null,!w)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");w[o1]=$,gw($),($.mode&l0)!==f0&&J!==null&&(w=$.child,w!==null&&($.treeBaseDuration-=w.treeBaseDuration))}else YH(),N9(),($.flags&128)===0&&(J=$.memoizedState=null),$.flags|=4,gw($),($.mode&l0)!==f0&&J!==null&&(w=$.child,w!==null&&($.treeBaseDuration-=w.treeBaseDuration));w=!1}else J=XH(),w!==null&&w.memoizedState!==null&&(w.memoizedState.hydrationErrors=J),w=!0;if(!w){if($.flags&256)return t5($),$;return t5($),null}if(($.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return gw($),null;case 13:if(z=$.memoizedState,w===null||w.memoizedState!==null&&w.memoizedState.dehydrated!==null){if(W=z,H=l7($),W!==null&&W.dehydrated!==null){if(w===null){if(!H)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(H=$.memoizedState,H=H!==null?H.dehydrated:null,!H)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");H[o1]=$,gw($),($.mode&l0)!==f0&&W!==null&&(W=$.child,W!==null&&($.treeBaseDuration-=W.treeBaseDuration))}else YH(),N9(),($.flags&128)===0&&(W=$.memoizedState=null),$.flags|=4,gw($),($.mode&l0)!==f0&&W!==null&&(W=$.child,W!==null&&($.treeBaseDuration-=W.treeBaseDuration));W=!1}else W=XH(),w!==null&&w.memoizedState!==null&&(w.memoizedState.hydrationErrors=W),W=!0;if(!W){if($.flags&256)return t5($),$;return t5($),null}}if(t5($),($.flags&128)!==0)return $.lanes=J,($.mode&l0)!==f0&&$J($),$;return J=z!==null,w=w!==null&&w.memoizedState!==null,J&&(z=$.child,W=null,z.alternate!==null&&z.alternate.memoizedState!==null&&z.alternate.memoizedState.cachePool!==null&&(W=z.alternate.memoizedState.cachePool.pool),H=null,z.memoizedState!==null&&z.memoizedState.cachePool!==null&&(H=z.memoizedState.cachePool.pool),H!==W&&(z.flags|=2048)),J!==w&&J&&($.child.flags|=8192),c3($,$.updateQueue),gw($),($.mode&l0)!==f0&&J&&(w=$.child,w!==null&&($.treeBaseDuration-=w.treeBaseDuration)),null;case 4:return Y0($),w===null&&bK($.stateNode.containerInfo),gw($),null;case 10:return W6($.type,$),gw($),null;case 19:if(t(Q1,$),z=$.memoizedState,z===null)return gw($),null;if(W=($.flags&128)!==0,H=z.rendering,H===null)if(W)HJ(z,!1);else{if(cw!==M6||w!==null&&(w.flags&128)!==0)for(w=$.child;w!==null;){if(H=D3(w),H!==null){$.flags|=128,HJ(z,!1),w=H.updateQueue,$.updateQueue=w,c3($,w),$.subtreeFlags=0,w=J;for(J=$.child;J!==null;)_O(J,w),J=J.sibling;return s(Q1,Q1.current&P$|eJ,$),Yw&&Q6($,z.treeForkCount),$.child}w=w.sibling}z.tail!==null&&f1()>iz&&($.flags|=128,W=!0,HJ(z,!1),$.lanes=4194304)}else{if(!W)if(w=D3(H),w!==null){if($.flags|=128,W=!0,w=w.updateQueue,$.updateQueue=w,c3($,w),HJ(z,!0),z.tail===null&&z.tailMode==="hidden"&&!H.alternate&&!Yw)return gw($),null}else 2*f1()-z.renderingStartTime>iz&&J!==536870912&&($.flags|=128,W=!0,HJ(z,!1),$.lanes=4194304);z.isBackwards?(H.sibling=$.child,$.child=H):(w=z.last,w!==null?w.sibling=H:$.child=H,z.last=H)}if(z.tail!==null)return w=z.tail,z.rendering=w,z.tail=w.sibling,z.renderingStartTime=f1(),w.sibling=null,J=Q1.current,J=W?J&P$|eJ:J&P$,s(Q1,J,$),Yw&&Q6($,z.treeForkCount),w;return gw($),null;case 22:case 23:return t5($),_H($),z=$.memoizedState!==null,w!==null?w.memoizedState!==null!==z&&($.flags|=8192):z&&($.flags|=8192),z?(J&536870912)!==0&&($.flags&128)===0&&(gw($),$.subtreeFlags&6&&($.flags|=8192)):gw($),J=$.updateQueue,J!==null&&c3($,J.retryQueue),J=null,w!==null&&w.memoizedState!==null&&w.memoizedState.cachePool!==null&&(J=w.memoizedState.cachePool.pool),z=null,$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(z=$.memoizedState.cachePool.pool),z!==J&&($.flags|=2048),w!==null&&t(S9,$),null;case 24:return J=null,w!==null&&(J=w.memoizedState.cache),$.memoizedState.cache!==J&&($.flags|=2048),W6(K1,$),gw($),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+$.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Tg(w,$){switch(JH($),$.tag){case 1:return w=$.flags,w&65536?($.flags=w&-65537|128,($.mode&l0)!==f0&&$J($),$):null;case 3:return W6(K1,$),Y0($),w=$.flags,(w&65536)!==0&&(w&128)===0?($.flags=w&-65537|128,$):null;case 26:case 27:case 5:return C0($),null;case 31:if($.memoizedState!==null){if(t5($),$.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");N9()}return w=$.flags,w&65536?($.flags=w&-65537|128,($.mode&l0)!==f0&&$J($),$):null;case 13:if(t5($),w=$.memoizedState,w!==null&&w.dehydrated!==null){if($.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");N9()}return w=$.flags,w&65536?($.flags=w&-65537|128,($.mode&l0)!==f0&&$J($),$):null;case 19:return t(Q1,$),null;case 4:return Y0($),null;case 10:return W6($.type,$),null;case 22:case 23:return t5($),_H($),w!==null&&t(S9,$),w=$.flags,w&65536?($.flags=w&-65537|128,($.mode&l0)!==f0&&$J($),$):null;case 24:return W6(K1,$),null;case 25:return null;default:return null}}function SA(w,$){switch(JH($),$.tag){case 3:W6(K1,$),Y0($);break;case 26:case 27:case 5:C0($);break;case 4:Y0($);break;case 31:$.memoizedState!==null&&t5($);break;case 13:t5($);break;case 19:t(Q1,$);break;case 10:W6($.type,$);break;case 22:case 23:t5($),_H($),w!==null&&t(S9,$);break;case 24:W6(K1,$)}}function L4(w){return(w.mode&l0)!==f0}function xA(w,$){L4(w)?(N4(),KJ($,w),A4()):KJ($,w)}function YK(w,$,J){L4(w)?(N4(),s7(J,w,$),A4()):s7(J,w,$)}function KJ(w,$){try{var J=$.updateQueue,z=J!==null?J.lastEffect:null;if(z!==null){var W=z.next;J=W;do{if((J.tag&w)===w&&(z=void 0,(w&L5)!==Sz&&(f$=!0),z=B0($,oR,J),(w&L5)!==Sz&&(f$=!1),z!==void 0&&typeof z!=="function")){var H=void 0;H=(J.tag&z2)!==0?"useLayoutEffect":(J.tag&L5)!==0?"useInsertionEffect":"useEffect";var U=void 0;U=z===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof z.then==="function"?`
141
+
142
+ It looks like you wrote `+H+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
143
+
144
+ `+H+`(() => {
145
+ async function fetchData() {
146
+ // You can await here
147
+ const response = await MyAPI.getData(someId);
148
+ // ...
149
+ }
150
+ fetchData();
151
+ }, [someId]); // Or [] if effect doesn't need props or state
152
+
153
+ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+z,B0($,function(N,b){console.error("%s must not return anything besides a function, which is used for clean-up.%s",N,b)},H,U)}J=J.next}while(J!==W)}}catch(N){Aw($,$.return,N)}}function s7(w,$,J){try{var z=$.updateQueue,W=z!==null?z.lastEffect:null;if(W!==null){var H=W.next;z=H;do{if((z.tag&w)===w){var U=z.inst,N=U.destroy;N!==void 0&&(U.destroy=void 0,(w&L5)!==Sz&&(f$=!0),W=$,B0(W,sR,W,J,N),(w&L5)!==Sz&&(f$=!1))}z=z.next}while(z!==H)}}catch(b){Aw($,$.return,b)}}function hA(w,$){L4(w)?(N4(),KJ($,w),A4()):KJ($,w)}function zK(w,$,J){L4(w)?(N4(),s7(J,w,$),A4()):s7(J,w,$)}function fA(w){var $=w.updateQueue;if($!==null){var J=w.stateNode;w.type.defaultProps||"ref"in w.memoizedProps||R$||(J.props!==w.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",m(w)||"instance"),J.state!==w.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",m(w)||"instance"));try{B0(w,dO,$,J)}catch(z){Aw(w,w.return,z)}}}function vg(w,$,J){return w.getSnapshotBeforeUpdate($,J)}function Pg(w,$){var{memoizedProps:J,memoizedState:z}=$;$=w.stateNode,w.type.defaultProps||"ref"in w.memoizedProps||R$||($.props!==w.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",m(w)||"instance"),$.state!==w.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",m(w)||"instance"));try{var W=D9(w.type,J),H=B0(w,vg,$,W,z);J=NI,H!==void 0||J.has(w.type)||(J.add(w.type),B0(w,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",m(w))})),$.__reactInternalSnapshotBeforeUpdate=H}catch(U){Aw(w,w.return,U)}}function yA(w,$,J){J.props=D9(w.type,w.memoizedProps),J.state=w.memoizedState,L4(w)?(N4(),B0(w,fb,w,$,J),A4()):B0(w,fb,w,$,J)}function Eg(w){var $=w.ref;if($!==null){switch(w.tag){case 26:case 27:case 5:var J=w.stateNode;break;case 30:J=w.stateNode;break;default:J=w.stateNode}if(typeof $==="function")if(L4(w))try{N4(),w.refCleanup=$(J)}finally{A4()}else w.refCleanup=$(J);else typeof $==="string"?console.error("String refs are no longer supported."):$.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",m(w)),$.current=J}}function qJ(w,$){try{B0(w,Eg,w)}catch(J){Aw(w,$,J)}}function b4(w,$){var{ref:J,refCleanup:z}=w;if(J!==null)if(typeof z==="function")try{if(L4(w))try{N4(),B0(w,z)}finally{A4(w)}else B0(w,z)}catch(W){Aw(w,$,W)}finally{w.refCleanup=null,w=w.alternate,w!=null&&(w.refCleanup=null)}else if(typeof J==="function")try{if(L4(w))try{N4(),B0(w,J,null)}finally{A4(w)}else B0(w,J,null)}catch(W){Aw(w,$,W)}else J.current=null}function dA(w,$,J,z){var W=w.memoizedProps,H=W.id,U=W.onCommit;W=W.onRender,$=$===null?"mount":"update",Pz&&($="nested-update"),typeof W==="function"&&W(H,$,w.actualDuration,w.treeBaseDuration,w.actualStartTime,J),typeof U==="function"&&U(H,$,z,J)}function gg(w,$,J,z){var W=w.memoizedProps;w=W.id,W=W.onPostCommit,$=$===null?"mount":"update",Pz&&($="nested-update"),typeof W==="function"&&W(w,$,z,J)}function mA(w){var{type:$,memoizedProps:J,stateNode:z}=w;try{B0(w,$C,z,$,J,w)}catch(W){Aw(w,w.return,W)}}function QK(w,$,J){try{B0(w,JC,w.stateNode,w.type,J,$,w)}catch(z){Aw(w,w.return,z)}}function cA(w){return w.tag===5||w.tag===3||w.tag===26||w.tag===27&&Z8(w.type)||w.tag===4}function WK(w){w:for(;;){for(;w.sibling===null;){if(w.return===null||cA(w.return))return null;w=w.return}w.sibling.return=w.return;for(w=w.sibling;w.tag!==5&&w.tag!==6&&w.tag!==18;){if(w.tag===27&&Z8(w.type))continue w;if(w.flags&2)continue w;if(w.child===null||w.tag===4)continue w;else w.child.return=w,w=w.child}if(!(w.flags&2))return w.stateNode}}function GK(w,$,J){var z=w.tag;if(z===5||z===6)w=w.stateNode,$?(aN(J),(J.nodeType===9?J.body:J.nodeName==="HTML"?J.ownerDocument.body:J).insertBefore(w,$)):(aN(J),$=J.nodeType===9?J.body:J.nodeName==="HTML"?J.ownerDocument.body:J,$.appendChild(w),J=J._reactRootContainer,J!==null&&J!==void 0||$.onclick!==null||($.onclick=Y6));else if(z!==4&&(z===27&&Z8(w.type)&&(J=w.stateNode,$=null),w=w.child,w!==null))for(GK(w,$,J),w=w.sibling;w!==null;)GK(w,$,J),w=w.sibling}function u3(w,$,J){var z=w.tag;if(z===5||z===6)w=w.stateNode,$?J.insertBefore(w,$):J.appendChild(w);else if(z!==4&&(z===27&&Z8(w.type)&&(J=w.stateNode),w=w.child,w!==null))for(u3(w,$,J),w=w.sibling;w!==null;)u3(w,$,J),w=w.sibling}function Cg(w){for(var $,J=w.return;J!==null;){if(cA(J)){$=J;break}J=J.return}if($==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch($.tag){case 27:$=$.stateNode,J=WK(w),u3(w,J,$);break;case 5:J=$.stateNode,$.flags&32&&(nN(J),$.flags&=-33),$=WK(w),u3(w,$,J);break;case 3:case 4:$=$.stateNode.containerInfo,J=WK(w),GK(w,J,$);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function uA(w){var{stateNode:$,memoizedProps:J}=w;try{B0(w,NC,w.type,J,$,w)}catch(z){Aw(w,w.return,z)}}function pA(w,$){return $.tag===31?($=$.memoizedState,w.memoizedState!==null&&$===null):$.tag===13?(w=w.memoizedState,$=$.memoizedState,w!==null&&w.dehydrated!==null&&($===null||$.dehydrated===null)):$.tag===3?w.memoizedState.isDehydrated&&($.flags&256)===0:!1}function Rg(w,$){if(w=w.containerInfo,WB=GQ,w=zO(w),iG(w)){if("selectionStart"in w)var J={start:w.selectionStart,end:w.selectionEnd};else w:{J=(J=w.ownerDocument)&&J.defaultView||window;var z=J.getSelection&&J.getSelection();if(z&&z.rangeCount!==0){J=z.anchorNode;var{anchorOffset:W,focusNode:H}=z;z=z.focusOffset;try{J.nodeType,H.nodeType}catch(q0){J=null;break w}var U=0,N=-1,b=-1,V=0,h=0,f=w,R=null;$:for(;;){for(var i;;){if(f!==J||W!==0&&f.nodeType!==3||(N=U+W),f!==H||z!==0&&f.nodeType!==3||(b=U+z),f.nodeType===3&&(U+=f.nodeValue.length),(i=f.firstChild)===null)break;R=f,f=i}for(;;){if(f===w)break $;if(R===J&&++V===W&&(N=U),R===H&&++h===z&&(b=U),(i=f.nextSibling)!==null)break;f=R,R=f.parentNode}f=i}J=N===-1||b===-1?null:{start:N,end:b}}else J=null}J=J||{start:0,end:0}}else J=null;GB={focusedElem:w,selectionRange:J},GQ=!1;for(d1=$;d1!==null;)if($=d1,w=$.child,($.subtreeFlags&1028)!==0&&w!==null)w.return=$,d1=w;else for(;d1!==null;){switch(w=$=d1,J=w.alternate,W=w.flags,w.tag){case 0:if((W&4)!==0&&(w=w.updateQueue,w=w!==null?w.events:null,w!==null))for(J=0;J<w.length;J++)W=w[J],W.ref.impl=W.nextImpl;break;case 11:case 15:break;case 1:(W&1024)!==0&&J!==null&&Pg(w,J);break;case 3:if((W&1024)!==0){if(w=w.stateNode.containerInfo,J=w.nodeType,J===9)PK(w);else if(J===1)switch(w.nodeName){case"HEAD":case"HTML":case"BODY":PK(w);break;default:w.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((W&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(w=$.sibling,w!==null){w.return=$.return,d1=w;break}d1=$.return}}function lA(w,$,J){var z=o5(),W=U4(),H=_4(),U=O4(),N=J.flags;switch(J.tag){case 0:case 11:case 15:I4(w,J),N&4&&xA(J,z2|M2);break;case 1:if(I4(w,J),N&4)if(w=J.stateNode,$===null)J.type.defaultProps||"ref"in J.memoizedProps||R$||(w.props!==J.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",m(J)||"instance"),w.state!==J.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",m(J)||"instance")),L4(J)?(N4(),B0(J,Eq,J,w),A4()):B0(J,Eq,J,w);else{var b=D9(J.type,$.memoizedProps);$=$.memoizedState,J.type.defaultProps||"ref"in J.memoizedProps||R$||(w.props!==J.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",m(J)||"instance"),w.state!==J.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",m(J)||"instance")),L4(J)?(N4(),B0(J,Sb,J,w,b,$,w.__reactInternalSnapshotBeforeUpdate),A4()):B0(J,Sb,J,w,b,$,w.__reactInternalSnapshotBeforeUpdate)}N&64&&fA(J),N&512&&qJ(J,J.return);break;case 3:if($=G6(),I4(w,J),N&64&&(N=J.updateQueue,N!==null)){if(b=null,J.child!==null)switch(J.child.tag){case 27:case 5:b=J.child.stateNode;break;case 1:b=J.child.stateNode}try{B0(J,dO,N,b)}catch(h){Aw(J,J.return,h)}}w.effectDuration+=_3($);break;case 27:$===null&&N&4&&uA(J);case 26:case 5:if(I4(w,J),$===null){if(N&4)mA(J);else if(N&64){w=J.type,$=J.memoizedProps,b=J.stateNode;try{B0(J,ZC,b,w,$,J)}catch(h){Aw(J,J.return,h)}}}N&512&&qJ(J,J.return);break;case 12:if(N&4){N=G6(),I4(w,J),w=J.stateNode,w.effectDuration+=wJ(N);try{B0(J,dA,J,$,q8,w.effectDuration)}catch(h){Aw(J,J.return,h)}}else I4(w,J);break;case 31:I4(w,J),N&4&&nA(w,J);break;case 13:I4(w,J),N&4&&aA(w,J),N&64&&(w=J.memoizedState,w!==null&&(w=w.dehydrated,w!==null&&(N=cg.bind(null,J),FC(w,N))));break;case 22:if(N=J.memoizedState!==null||D6,!N){$=$!==null&&$.memoizedState!==null||F1,b=D6;var V=F1;D6=N,(F1=$)&&!V?(V4(w,J,(J.subtreeFlags&8772)!==0),(J.mode&l0)!==f0&&0<=v0&&0<=S0&&0.05<S0-v0&&z3(J,v0,S0)):I4(w,J),D6=b,F1=V}break;case 30:break;default:I4(w,J)}(J.mode&l0)!==f0&&0<=v0&&0<=S0&&((nw||0.05<mw)&&q4(J,v0,S0,mw,fw),J.alternate===null&&J.return!==null&&J.return.alternate!==null&&0.05<S0-v0&&(pA(J.return.alternate,J.return)||K4(J,v0,S0,"Mount"))),s5(z),F4(W),fw=H,nw=U}function iA(w){var $=w.alternate;$!==null&&(w.alternate=null,iA($)),w.child=null,w.deletions=null,w.sibling=null,w.tag===5&&($=w.stateNode,$!==null&&X0($)),w.stateNode=null,w._debugOwner=null,w.return=null,w.dependencies=null,w.memoizedProps=null,w.memoizedState=null,w.pendingProps=null,w.stateNode=null,w.updateQueue=null}function q6(w,$,J){for(J=J.child;J!==null;)rA(w,$,J),J=J.sibling}function rA(w,$,J){if(X5&&typeof X5.onCommitFiberUnmount==="function")try{X5.onCommitFiberUnmount(G$,J)}catch(V){P4||(P4=!0,console.error("React instrumentation encountered an error: %o",V))}var z=o5(),W=U4(),H=_4(),U=O4();switch(J.tag){case 26:F1||b4(J,$),q6(w,$,J),J.memoizedState?J.memoizedState.count--:J.stateNode&&(w=J.stateNode,w.parentNode.removeChild(w));break;case 27:F1||b4(J,$);var N=_1,b=j5;Z8(J.type)&&(_1=J.stateNode,j5=!1),q6(w,$,J),B0(J,bJ,J.stateNode),_1=N,j5=b;break;case 5:F1||b4(J,$);case 6:if(N=_1,b=j5,_1=null,q6(w,$,J),_1=N,j5=b,_1!==null)if(j5)try{B0(J,zC,_1,J.stateNode)}catch(V){Aw(J,$,V)}else try{B0(J,YC,_1,J.stateNode)}catch(V){Aw(J,$,V)}break;case 18:_1!==null&&(j5?(w=_1,oN(w.nodeType===9?w.body:w.nodeName==="HTML"?w.ownerDocument.body:w,J.stateNode),Y$(w)):oN(_1,J.stateNode));break;case 4:N=_1,b=j5,_1=J.stateNode.containerInfo,j5=!0,q6(w,$,J),_1=N,j5=b;break;case 0:case 11:case 14:case 15:s7(L5,J,$),F1||YK(J,$,z2),q6(w,$,J);break;case 1:F1||(b4(J,$),N=J.stateNode,typeof N.componentWillUnmount==="function"&&yA(J,$,N)),q6(w,$,J);break;case 21:q6(w,$,J);break;case 22:F1=(N=F1)||J.memoizedState!==null,q6(w,$,J),F1=N;break;default:q6(w,$,J)}(J.mode&l0)!==f0&&0<=v0&&0<=S0&&(nw||0.05<mw)&&q4(J,v0,S0,mw,fw),s5(z),F4(W),fw=H,nw=U}function nA(w,$){if($.memoizedState===null&&(w=$.alternate,w!==null&&(w=w.memoizedState,w!==null))){w=w.dehydrated;try{B0($,OC,w)}catch(J){Aw($,$.return,J)}}}function aA(w,$){if($.memoizedState===null&&(w=$.alternate,w!==null&&(w=w.memoizedState,w!==null&&(w=w.dehydrated,w!==null))))try{B0($,AC,w)}catch(J){Aw($,$.return,J)}}function jg(w){switch(w.tag){case 31:case 13:case 19:var $=w.stateNode;return $===null&&($=w.stateNode=new LI),$;case 22:return w=w.stateNode,$=w._retryCache,$===null&&($=w._retryCache=new LI),$;default:throw Error("Unexpected Suspense handler tag ("+w.tag+"). This is a bug in React.")}}function p3(w,$){var J=jg(w);$.forEach(function(z){if(!J.has(z)){if(J.add(z),E4)if(j$!==null&&S$!==null)_J(S$,j$);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var W=ug.bind(null,w,z);z.then(W,W)}})}function C5(w,$){var J=$.deletions;if(J!==null)for(var z=0;z<J.length;z++){var W=w,H=$,U=J[z],N=o5(),b=H;w:for(;b!==null;){switch(b.tag){case 27:if(Z8(b.type)){_1=b.stateNode,j5=!1;break w}break;case 5:_1=b.stateNode,j5=!1;break w;case 3:case 4:_1=b.stateNode.containerInfo,j5=!0;break w}b=b.return}if(_1===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");rA(W,H,U),_1=null,j5=!1,(U.mode&l0)!==f0&&0<=v0&&0<=S0&&0.05<S0-v0&&K4(U,v0,S0,"Unmount"),s5(N),W=U,H=W.alternate,H!==null&&(H.return=null),W.return=null}if($.subtreeFlags&13886)for($=$.child;$!==null;)oA($,w),$=$.sibling}function oA(w,$){var J=o5(),z=U4(),W=_4(),H=O4(),U=w.alternate,N=w.flags;switch(w.tag){case 0:case 11:case 14:case 15:C5($,w),R5(w),N&4&&(s7(L5|M2,w,w.return),KJ(L5|M2,w),YK(w,w.return,z2|M2));break;case 1:if(C5($,w),R5(w),N&512&&(F1||U===null||b4(U,U.return)),N&64&&D6&&(N=w.updateQueue,N!==null&&(U=N.callbacks,U!==null))){var b=N.shared.hiddenCallbacks;N.shared.hiddenCallbacks=b===null?U:b.concat(U)}break;case 26:if(b=n2,C5($,w),R5(w),N&512&&(F1||U===null||b4(U,U.return)),N&4){var V=U!==null?U.memoizedState:null;if(N=w.memoizedState,U===null)if(N===null)if(w.stateNode===null){w:{N=w.type,U=w.memoizedProps,b=b.ownerDocument||b;$:switch(N){case"title":if(V=b.getElementsByTagName("title")[0],!V||V[vJ]||V[o1]||V.namespaceURI===K$||V.hasAttribute("itemprop"))V=b.createElement(N),b.head.insertBefore(V,b.querySelector("head > title"));a1(V,N,U),V[o1]=w,G0(V),N=V;break w;case"link":var h=QL("link","href",b).get(N+(U.href||""));if(h){for(var f=0;f<h.length;f++)if(V=h[f],V.getAttribute("href")===(U.href==null||U.href===""?null:U.href)&&V.getAttribute("rel")===(U.rel==null?null:U.rel)&&V.getAttribute("title")===(U.title==null?null:U.title)&&V.getAttribute("crossorigin")===(U.crossOrigin==null?null:U.crossOrigin)){h.splice(f,1);break $}}V=b.createElement(N),a1(V,N,U),b.head.appendChild(V);break;case"meta":if(h=QL("meta","content",b).get(N+(U.content||""))){for(f=0;f<h.length;f++)if(V=h[f],qw(U.content,"content"),V.getAttribute("content")===(U.content==null?null:""+U.content)&&V.getAttribute("name")===(U.name==null?null:U.name)&&V.getAttribute("property")===(U.property==null?null:U.property)&&V.getAttribute("http-equiv")===(U.httpEquiv==null?null:U.httpEquiv)&&V.getAttribute("charset")===(U.charSet==null?null:U.charSet)){h.splice(f,1);break $}}V=b.createElement(N),a1(V,N,U),b.head.appendChild(V);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+N+'". This is a bug in React.')}V[o1]=w,G0(V),N=V}w.stateNode=N}else WL(b,w.type,w.stateNode);else w.stateNode=zL(b,N,w.memoizedProps);else V!==N?(V===null?U.stateNode!==null&&(U=U.stateNode,U.parentNode.removeChild(U)):V.count--,N===null?WL(b,w.type,w.stateNode):zL(b,N,w.memoizedProps)):N===null&&w.stateNode!==null&&QK(w,w.memoizedProps,U.memoizedProps)}break;case 27:C5($,w),R5(w),N&512&&(F1||U===null||b4(U,U.return)),U!==null&&N&4&&QK(w,w.memoizedProps,U.memoizedProps);break;case 5:if(C5($,w),R5(w),N&512&&(F1||U===null||b4(U,U.return)),w.flags&32){b=w.stateNode;try{B0(w,nN,b)}catch(A0){Aw(w,w.return,A0)}}N&4&&w.stateNode!=null&&(b=w.memoizedProps,QK(w,b,U!==null?U.memoizedProps:b)),N&1024&&(uq=!0,w.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(C5($,w),R5(w),N&4){if(w.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");N=w.memoizedProps,U=U!==null?U.memoizedProps:N,b=w.stateNode;try{B0(w,XC,b,U,N)}catch(A0){Aw(w,w.return,A0)}}break;case 3:if(b=G6(),zQ=null,V=n2,n2=t3($.containerInfo),C5($,w),n2=V,R5(w),N&4&&U!==null&&U.memoizedState.isDehydrated)try{B0(w,_C,$.containerInfo)}catch(A0){Aw(w,w.return,A0)}uq&&(uq=!1,sA(w)),$.effectDuration+=_3(b);break;case 4:N=n2,n2=t3(w.stateNode.containerInfo),C5($,w),R5(w),n2=N;break;case 12:N=G6(),C5($,w),R5(w),w.stateNode.effectDuration+=wJ(N);break;case 31:C5($,w),R5(w),N&4&&(N=w.updateQueue,N!==null&&(w.updateQueue=null,p3(w,N)));break;case 13:C5($,w),R5(w),w.child.flags&8192&&w.memoizedState!==null!==(U!==null&&U.memoizedState!==null)&&(lz=f1()),N&4&&(N=w.updateQueue,N!==null&&(w.updateQueue=null,p3(w,N)));break;case 22:b=w.memoizedState!==null;var R=U!==null&&U.memoizedState!==null,i=D6,q0=F1;if(D6=i||b,F1=q0||R,C5($,w),F1=q0,D6=i,R&&!b&&!i&&!q0&&(w.mode&l0)!==f0&&0<=v0&&0<=S0&&0.05<S0-v0&&z3(w,v0,S0),R5(w),N&8192)w:for($=w.stateNode,$._visibility=b?$._visibility&~hJ:$._visibility|hJ,!b||U===null||R||D6||F1||(M9(w),(w.mode&l0)!==f0&&0<=v0&&0<=S0&&0.05<S0-v0&&K4(w,v0,S0,"Disconnect")),U=null,$=w;;){if($.tag===5||$.tag===26){if(U===null){R=U=$;try{V=R.stateNode,b?B0(R,WC,V):B0(R,KC,R.stateNode,R.memoizedProps)}catch(A0){Aw(R,R.return,A0)}}}else if($.tag===6){if(U===null){R=$;try{h=R.stateNode,b?B0(R,GC,h):B0(R,qC,h,R.memoizedProps)}catch(A0){Aw(R,R.return,A0)}}}else if($.tag===18){if(U===null){R=$;try{f=R.stateNode,b?B0(R,QC,f):B0(R,HC,R.stateNode)}catch(A0){Aw(R,R.return,A0)}}}else if(($.tag!==22&&$.tag!==23||$.memoizedState===null||$===w)&&$.child!==null){$.child.return=$,$=$.child;continue}if($===w)break w;for(;$.sibling===null;){if($.return===null||$.return===w)break w;U===$&&(U=null),$=$.return}U===$&&(U=null),$.sibling.return=$.return,$=$.sibling}N&4&&(N=w.updateQueue,N!==null&&(U=N.retryQueue,U!==null&&(N.retryQueue=null,p3(w,U))));break;case 19:C5($,w),R5(w),N&4&&(N=w.updateQueue,N!==null&&(w.updateQueue=null,p3(w,N)));break;case 30:break;case 21:break;default:C5($,w),R5(w)}(w.mode&l0)!==f0&&0<=v0&&0<=S0&&((nw||0.05<mw)&&q4(w,v0,S0,mw,fw),w.alternate===null&&w.return!==null&&w.return.alternate!==null&&0.05<S0-v0&&(pA(w.return.alternate,w.return)||K4(w,v0,S0,"Mount"))),s5(J),F4(z),fw=W,nw=H}function R5(w){var $=w.flags;if($&2){try{B0(w,Cg,w)}catch(J){Aw(w,w.return,J)}w.flags&=-3}$&4096&&(w.flags&=-4097)}function sA(w){if(w.subtreeFlags&1024)for(w=w.child;w!==null;){var $=w;sA($),$.tag===5&&$.flags&1024&&$.stateNode.reset(),w=w.sibling}}function I4(w,$){if($.subtreeFlags&8772)for($=$.child;$!==null;)lA(w,$.alternate,$),$=$.sibling}function tA(w){var $=o5(),J=U4(),z=_4(),W=O4();switch(w.tag){case 0:case 11:case 14:case 15:YK(w,w.return,z2),M9(w);break;case 1:b4(w,w.return);var H=w.stateNode;typeof H.componentWillUnmount==="function"&&yA(w,w.return,H),M9(w);break;case 27:B0(w,bJ,w.stateNode);case 26:case 5:b4(w,w.return),M9(w);break;case 22:w.memoizedState===null&&M9(w);break;case 30:M9(w);break;default:M9(w)}(w.mode&l0)!==f0&&0<=v0&&0<=S0&&(nw||0.05<mw)&&q4(w,v0,S0,mw,fw),s5($),F4(J),fw=z,nw=W}function M9(w){for(w=w.child;w!==null;)tA(w),w=w.sibling}function eA(w,$,J,z){var W=o5(),H=U4(),U=_4(),N=O4(),b=J.flags;switch(J.tag){case 0:case 11:case 15:V4(w,J,z),xA(J,z2);break;case 1:if(V4(w,J,z),$=J.stateNode,typeof $.componentDidMount==="function"&&B0(J,Eq,J,$),$=J.updateQueue,$!==null){w=J.stateNode;try{B0(J,_g,$,w)}catch(V){Aw(J,J.return,V)}}z&&b&64&&fA(J),qJ(J,J.return);break;case 27:uA(J);case 26:case 5:V4(w,J,z),z&&$===null&&b&4&&mA(J),qJ(J,J.return);break;case 12:if(z&&b&4){b=G6(),V4(w,J,z),z=J.stateNode,z.effectDuration+=wJ(b);try{B0(J,dA,J,$,q8,z.effectDuration)}catch(V){Aw(J,J.return,V)}}else V4(w,J,z);break;case 31:V4(w,J,z),z&&b&4&&nA(w,J);break;case 13:V4(w,J,z),z&&b&4&&aA(w,J);break;case 22:J.memoizedState===null&&V4(w,J,z),qJ(J,J.return);break;case 30:break;default:V4(w,J,z)}(J.mode&l0)!==f0&&0<=v0&&0<=S0&&(nw||0.05<mw)&&q4(J,v0,S0,mw,fw),s5(W),F4(H),fw=U,nw=N}function V4(w,$,J){J=J&&($.subtreeFlags&8772)!==0;for($=$.child;$!==null;)eA(w,$.alternate,$,J),$=$.sibling}function HK(w,$){var J=null;w!==null&&w.memoizedState!==null&&w.memoizedState.cachePool!==null&&(J=w.memoizedState.cachePool.pool),w=null,$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(w=$.memoizedState.cachePool.pool),w!==J&&(w!=null&&b9(w),J!=null&&eZ(J))}function KK(w,$){w=null,$.alternate!==null&&(w=$.alternate.memoizedState.cache),$=$.memoizedState.cache,$!==w&&(b9($),w!=null&&eZ(w))}function c2(w,$,J,z,W){if($.subtreeFlags&10256||$.actualDuration!==0&&($.alternate===null||$.alternate.child!==$.child))for($=$.child;$!==null;){var H=$.sibling;wN(w,$,J,z,H!==null?H.actualStartTime:W),$=H}}function wN(w,$,J,z,W){var H=o5(),U=U4(),N=_4(),b=O4(),V=W8,h=$.flags;switch($.tag){case 0:case 11:case 15:($.mode&l0)!==f0&&0<$.actualStartTime&&($.flags&1)!==0&&Q3($,$.actualStartTime,W,k1,J),c2(w,$,J,z,W),h&2048&&hA($,b5|M2);break;case 1:($.mode&l0)!==f0&&0<$.actualStartTime&&(($.flags&128)!==0?nG($,$.actualStartTime,W,[]):($.flags&1)!==0&&Q3($,$.actualStartTime,W,k1,J)),c2(w,$,J,z,W);break;case 3:var f=G6(),R=k1;k1=$.alternate!==null&&$.alternate.memoizedState.isDehydrated&&($.flags&256)===0,c2(w,$,J,z,W),k1=R,h&2048&&(J=null,$.alternate!==null&&(J=$.alternate.memoizedState.cache),z=$.memoizedState.cache,z!==J&&(b9(z),J!=null&&eZ(J))),w.passiveEffectDuration+=_3(f);break;case 12:if(h&2048){h=G6(),c2(w,$,J,z,W),w=$.stateNode,w.passiveEffectDuration+=wJ(h);try{B0($,gg,$,$.alternate,q8,w.passiveEffectDuration)}catch(i){Aw($,$.return,i)}}else c2(w,$,J,z,W);break;case 31:h=k1,f=$.alternate!==null?$.alternate.memoizedState:null,R=$.memoizedState,f!==null&&R===null?(R=$.deletions,R!==null&&0<R.length&&R[0].tag===18?(k1=!1,f=f.hydrationErrors,f!==null&&nG($,$.actualStartTime,W,f)):k1=!0):k1=!1,c2(w,$,J,z,W),k1=h;break;case 13:h=k1,f=$.alternate!==null?$.alternate.memoizedState:null,R=$.memoizedState,f===null||f.dehydrated===null||R!==null&&R.dehydrated!==null?k1=!1:(R=$.deletions,R!==null&&0<R.length&&R[0].tag===18?(k1=!1,f=f.hydrationErrors,f!==null&&nG($,$.actualStartTime,W,f)):k1=!0),c2(w,$,J,z,W),k1=h;break;case 23:break;case 22:R=$.stateNode,f=$.alternate,$.memoizedState!==null?R._visibility&F6?c2(w,$,J,z,W):BJ(w,$,J,z,W):R._visibility&F6?c2(w,$,J,z,W):(R._visibility|=F6,t7(w,$,J,z,($.subtreeFlags&10256)!==0||$.actualDuration!==0&&($.alternate===null||$.alternate.child!==$.child),W),($.mode&l0)===f0||k1||(w=$.actualStartTime,0<=w&&0.05<W-w&&z3($,w,W),0<=v0&&0<=S0&&0.05<S0-v0&&z3($,v0,S0))),h&2048&&HK(f,$);break;case 24:c2(w,$,J,z,W),h&2048&&KK($.alternate,$);break;default:c2(w,$,J,z,W)}if(($.mode&l0)!==f0){if(w=!k1&&$.alternate===null&&$.return!==null&&$.return.alternate!==null)J=$.actualStartTime,0<=J&&0.05<W-J&&K4($,J,W,"Mount");0<=v0&&0<=S0&&((nw||0.05<mw)&&q4($,v0,S0,mw,fw),w&&0.05<S0-v0&&K4($,v0,S0,"Mount"))}s5(H),F4(U),fw=N,nw=b,W8=V}function t7(w,$,J,z,W,H){W=W&&(($.subtreeFlags&10256)!==0||$.actualDuration!==0&&($.alternate===null||$.alternate.child!==$.child));for($=$.child;$!==null;){var U=$.sibling;$N(w,$,J,z,W,U!==null?U.actualStartTime:H),$=U}}function $N(w,$,J,z,W,H){var U=o5(),N=U4(),b=_4(),V=O4(),h=W8;W&&($.mode&l0)!==f0&&0<$.actualStartTime&&($.flags&1)!==0&&Q3($,$.actualStartTime,H,k1,J);var f=$.flags;switch($.tag){case 0:case 11:case 15:t7(w,$,J,z,W,H),hA($,b5);break;case 23:break;case 22:var R=$.stateNode;$.memoizedState!==null?R._visibility&F6?t7(w,$,J,z,W,H):BJ(w,$,J,z,H):(R._visibility|=F6,t7(w,$,J,z,W,H)),W&&f&2048&&HK($.alternate,$);break;case 24:t7(w,$,J,z,W,H),W&&f&2048&&KK($.alternate,$);break;default:t7(w,$,J,z,W,H)}($.mode&l0)!==f0&&0<=v0&&0<=S0&&(nw||0.05<mw)&&q4($,v0,S0,mw,fw),s5(U),F4(N),fw=b,nw=V,W8=h}function BJ(w,$,J,z,W){if($.subtreeFlags&10256||$.actualDuration!==0&&($.alternate===null||$.alternate.child!==$.child))for(var H=$.child;H!==null;){$=H.sibling;var U=w,N=J,b=z,V=$!==null?$.actualStartTime:W,h=W8;(H.mode&l0)!==f0&&0<H.actualStartTime&&(H.flags&1)!==0&&Q3(H,H.actualStartTime,V,k1,N);var f=H.flags;switch(H.tag){case 22:BJ(U,H,N,b,V),f&2048&&HK(H.alternate,H);break;case 24:BJ(U,H,N,b,V),f&2048&&KK(H.alternate,H);break;default:BJ(U,H,N,b,V)}W8=h,H=$}}function e7(w,$,J){if(w.subtreeFlags&JX)for(w=w.child;w!==null;)ZN(w,$,J),w=w.sibling}function ZN(w,$,J){switch(w.tag){case 26:e7(w,$,J),w.flags&JX&&w.memoizedState!==null&&IC(J,n2,w.memoizedState,w.memoizedProps);break;case 5:e7(w,$,J);break;case 3:case 4:var z=n2;n2=t3(w.stateNode.containerInfo),e7(w,$,J),n2=z;break;case 22:w.memoizedState===null&&(z=w.alternate,z!==null&&z.memoizedState!==null?(z=JX,JX=16777216,e7(w,$,J),JX=z):e7(w,$,J));break;default:e7(w,$,J)}}function JN(w){var $=w.alternate;if($!==null&&(w=$.child,w!==null)){$.child=null;do $=w.sibling,w.sibling=null,w=$;while(w!==null)}}function UJ(w){var $=w.deletions;if((w.flags&16)!==0){if($!==null)for(var J=0;J<$.length;J++){var z=$[J],W=o5();d1=z,zN(z,w),(z.mode&l0)!==f0&&0<=v0&&0<=S0&&0.05<S0-v0&&K4(z,v0,S0,"Unmount"),s5(W)}JN(w)}if(w.subtreeFlags&10256)for(w=w.child;w!==null;)XN(w),w=w.sibling}function XN(w){var $=o5(),J=U4(),z=_4(),W=O4();switch(w.tag){case 0:case 11:case 15:UJ(w),w.flags&2048&&zK(w,w.return,b5|M2);break;case 3:var H=G6();UJ(w),w.stateNode.passiveEffectDuration+=_3(H);break;case 12:H=G6(),UJ(w),w.stateNode.passiveEffectDuration+=wJ(H);break;case 22:H=w.stateNode,w.memoizedState!==null&&H._visibility&F6&&(w.return===null||w.return.tag!==13)?(H._visibility&=~F6,l3(w),(w.mode&l0)!==f0&&0<=v0&&0<=S0&&0.05<S0-v0&&K4(w,v0,S0,"Disconnect")):UJ(w);break;default:UJ(w)}(w.mode&l0)!==f0&&0<=v0&&0<=S0&&(nw||0.05<mw)&&q4(w,v0,S0,mw,fw),s5($),F4(J),nw=W,fw=z}function l3(w){var $=w.deletions;if((w.flags&16)!==0){if($!==null)for(var J=0;J<$.length;J++){var z=$[J],W=o5();d1=z,zN(z,w),(z.mode&l0)!==f0&&0<=v0&&0<=S0&&0.05<S0-v0&&K4(z,v0,S0,"Unmount"),s5(W)}JN(w)}for(w=w.child;w!==null;)YN(w),w=w.sibling}function YN(w){var $=o5(),J=U4(),z=_4(),W=O4();switch(w.tag){case 0:case 11:case 15:zK(w,w.return,b5),l3(w);break;case 22:var H=w.stateNode;H._visibility&F6&&(H._visibility&=~F6,l3(w));break;default:l3(w)}(w.mode&l0)!==f0&&0<=v0&&0<=S0&&(nw||0.05<mw)&&q4(w,v0,S0,mw,fw),s5($),F4(J),nw=W,fw=z}function zN(w,$){for(;d1!==null;){var J=d1,z=J,W=$,H=o5(),U=U4(),N=_4(),b=O4();switch(z.tag){case 0:case 11:case 15:zK(z,W,b5);break;case 23:case 22:z.memoizedState!==null&&z.memoizedState.cachePool!==null&&(W=z.memoizedState.cachePool.pool,W!=null&&b9(W));break;case 24:eZ(z.memoizedState.cache)}if((z.mode&l0)!==f0&&0<=v0&&0<=S0&&(nw||0.05<mw)&&q4(z,v0,S0,mw,fw),s5(H),F4(U),nw=b,fw=N,z=J.child,z!==null)z.return=J,d1=z;else w:for(J=w;d1!==null;){if(z=d1,H=z.sibling,U=z.return,iA(z),z===J){d1=null;break w}if(H!==null){H.return=U,d1=H;break w}d1=U}}}function Sg(){Zj.forEach(function(w){return w()})}function QN(){var w=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return w||a.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),w}function e5(w){if((Bw&D1)!==m1&&r0!==0)return r0&-r0;var $=a.T;return $!==null?($._updatedFibers||($._updatedFibers=new Set),$._updatedFibers.add(w),NK()):d()}function WN(){if(x5===0)if((r0&536870912)===0||Yw){var w=Hz;Hz<<=1,(Hz&3932160)===0&&(Hz=262144),x5=w}else x5=536870912;return w=Y2.current,w!==null&&(w.flags|=32),x5}function rw(w,$,J){if(f$&&console.error("useInsertionEffect must not schedule updates."),wB&&(az=!0),w===Ew&&(Vw===m9||Vw===c9)||w.cancelPendingCommit!==null)$$(w,0),w8(w,r0,x5,!1);if(s0(w,J),(Bw&D1)!==m1&&w===Ew){if(v4)switch($.tag){case 0:case 11:case 15:w=o0&&m(o0)||"Unknown",SI.has(w)||(SI.add(w),$=m($)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",$,w,w));break;case 1:jI||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),jI=!0)}}else E4&&y2(w,$,J),lg($),w===Ew&&((Bw&D1)===m1&&(b8|=J),cw===A8&&w8(w,r0,x5,!1)),k4(w)}function GN(w,$,J){if((Bw&(D1|Q2))!==m1)throw Error("Should not already be working.");if(r0!==0&&o0!==null){var z=o0,W=f1();switch(Tb){case zX:case m9:var H=uJ;jw&&((z=z._debugTask)?z.run(console.timeStamp.bind(console,"Suspended",H,W,A2,void 0,"primary-light")):console.timeStamp("Suspended",H,W,A2,void 0,"primary-light"));break;case c9:H=uJ,jw&&((z=z._debugTask)?z.run(console.timeStamp.bind(console,"Action",H,W,A2,void 0,"primary-light")):console.timeStamp("Action",H,W,A2,void 0,"primary-light"));break;default:jw&&(z=W-uJ,3>z||console.timeStamp("Blocked",uJ,W,A2,void 0,5>z?"primary-light":10>z?"primary":100>z?"primary-dark":"error"))}}H=(J=!J&&($&127)===0&&($&w.expiredLanes)===0||f2(w,$))?hg(w,$):BK(w,$,!0);var U=J;do{if(H===M6){x$&&!J&&w8(w,$,0,!1),$=Vw,uJ=q1(),Tb=$;break}else{if(z=f1(),W=w.current.alternate,U&&!xg(W)){n5($),W=y1,H=z,!jw||H<=W||(Z1?Z1.run(console.timeStamp.bind(console,"Teared Render",W,H,Jw,ww,"error")):console.timeStamp("Teared Render",W,H,Jw,ww,"error")),T9($,z),H=BK(w,$,!1),U=!1;continue}if(H===d9){if(U=$,w.errorRecoveryDisabledLanes&U)var N=0;else N=w.pendingLanes&-536870913,N=N!==0?N:N&536870912?536870912:0;if(N!==0){n5($),aG(y1,z,$,Z1),T9($,z),$=N;w:{z=w,H=U,U=WX;var b=z.current.memoizedState.isDehydrated;if(b&&($$(z,N).flags|=256),N=BK(z,N,!1),N!==d9){if(iq&&!b){z.errorRecoveryDisabledLanes|=H,b8|=H,H=A8;break w}z=I5,I5=U,z!==null&&(I5===null?I5=z:I5.push.apply(I5,z))}H=N}if(U=!1,H!==d9)continue;else z=f1()}}if(H===YX){n5($),aG(y1,z,$,Z1),T9($,z),$$(w,0),w8(w,$,0,!0);break}w:{switch(J=w,H){case M6:case YX:throw Error("Root did not complete. This is a bug in React.");case A8:if(($&4194048)!==$)break;case mz:n5($),GO(y1,z,$,Z1),T9($,z),W=$,(W&127)!==0?Mz=z:(W&4194048)!==0&&(Tz=z),w8(J,$,x5,!N8);break w;case d9:I5=null;break;case dz:case bI:break;default:throw Error("Unknown root exit status.")}if(a.actQueue!==null)UK(J,W,$,I5,GX,pz,x5,b8,u9,H,null,null,y1,z);else{if(($&62914560)===$&&(U=lz+kI-f1(),10<U)){if(w8(J,$,x5,!N8),l1(J,0,!0)!==0)break w;a2=$,J.timeoutHandle=uI(HN.bind(null,J,W,I5,GX,pz,$,x5,b8,u9,N8,H,"Throttled",y1,z),U);break w}HN(J,W,I5,GX,pz,$,x5,b8,u9,N8,H,null,y1,z)}}}break}while(1);k4(w)}function HN(w,$,J,z,W,H,U,N,b,V,h,f,R,i){w.timeoutHandle=n9;var q0=$.subtreeFlags,A0=null;if(q0&8192||(q0&16785408)===16785408){if(A0={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Y6},ZN($,H,A0),q0=(H&62914560)===H?lz-f1():(H&4194048)===H?VI-f1():0,q0=VC(A0,q0),q0!==null){a2=H,w.cancelPendingCommit=q0(UK.bind(null,w,$,H,J,z,W,U,N,b,h,A0,A0.waitingForViewTransition?"Waiting for the previous Animation":0<A0.count?0<A0.imgCount?"Suspended on CSS and Images":"Suspended on CSS":A0.imgCount===1?"Suspended on an Image":0<A0.imgCount?"Suspended on Images":null,R,i)),w8(w,H,U,!V);return}}UK(w,$,H,J,z,W,U,N,b,h,A0,f,R,i)}function xg(w){for(var $=w;;){var J=$.tag;if((J===0||J===11||J===15)&&$.flags&16384&&(J=$.updateQueue,J!==null&&(J=J.stores,J!==null)))for(var z=0;z<J.length;z++){var W=J[z],H=W.getSnapshot;W=W.value;try{if(!A5(H(),W))return!1}catch(U){return!1}}if(J=$.child,$.subtreeFlags&16384&&J!==null)J.return=$,$=J;else{if($===w)break;for(;$.sibling===null;){if($.return===null||$.return===w)return!0;$=$.return}$.sibling.return=$.return,$=$.sibling}}return!0}function w8(w,$,J,z){$&=~rq,$&=~b8,w.suspendedLanes|=$,w.pingedLanes&=~$,z&&(w.warmLanes|=$),z=w.expirationTimes;for(var W=$;0<W;){var H=31-F5(W),U=1<<H;z[H]=-1,W&=~U}J!==0&&I1(w,J,$)}function w$(){return(Bw&(D1|Q2))===m1?(OJ(0,!1),!1):!0}function qK(){if(o0!==null){if(Vw===S5)var w=o0.return;else w=o0,B3(),VH(w),T$=null,tJ=0,w=o0;for(;w!==null;)SA(w.alternate,w),w=w.return;o0=null}}function T9(w,$){(w&127)!==0&&(B8=$),(w&4194048)!==0&&(S4=$),(w&62914560)!==0&&(Db=$),(w&2080374784)!==0&&(Mb=$)}function $$(w,$){jw&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",ww,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",ww,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",ww,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",ww,"primary-light"));var J=y1;if(y1=q1(),r0!==0&&0<J){if(n5(r0),cw===dz||cw===A8)GO(J,y1,$,Z1);else{var z=y1,W=Z1;if(jw&&!(z<=J)){var H=($&738197653)===$?"tertiary-dark":"primary-dark",U=($&536870912)===$?"Prewarm":($&201326741)===$?"Interrupted Hydration":"Interrupted Render";W?W.run(console.timeStamp.bind(console,U,J,z,Jw,ww,H)):console.timeStamp(U,J,z,Jw,ww,H)}}T9(r0,y1)}if(J=Z1,Z1=null,($&127)!==0){Z1=dJ,W=0<=j4&&j4<B8?B8:j4,z=0<=C9&&C9<B8?B8:C9,H=0<=z?z:0<=W?W:y1,0<=Mz?(n5(2),HO(Mz,H,$,J)):(vz&127)!==0&&(n5(2),sZ(B8,H,b6)),J=W;var N=z,b=mJ,V=0<k$,h=U8===yJ,f=U8===Dz;if(W=y1,z=dJ,H=Dq,U=Mq,jw){if(Jw="Blocking",0<J?J>W&&(J=W):J=W,0<N?N>J&&(N=J):N=J,b!==null&&J>N){var R=V?"secondary-light":"warning";z?z.run(console.timeStamp.bind(console,V?"Consecutive":"Event: "+b,N,J,Jw,ww,R)):console.timeStamp(V?"Consecutive":"Event: "+b,N,J,Jw,ww,R)}W>J&&(N=h?"error":($&738197653)===$?"tertiary-light":"primary-light",h=f?"Promise Resolved":h?"Cascading Update":5<W-J?"Update Blocked":"Update",f=[],U!=null&&f.push(["Component name",U]),H!=null&&f.push(["Method name",H]),J={start:J,end:W,detail:{devtools:{properties:f,track:Jw,trackGroup:ww,color:N}}},z?z.run(performance.measure.bind(performance,h,J)):performance.measure(h,J))}j4=-1.1,U8=0,Mq=Dq=null,Mz=-1.1,k$=C9,C9=-1.1,B8=q1()}if(($&4194048)!==0&&(Z1=cJ,W=0<=L6&&L6<S4?S4:L6,J=0<=k2&&k2<S4?S4:k2,z=0<=F8&&F8<S4?S4:F8,H=0<=z?z:0<=J?J:y1,0<=Tz?(n5(256),HO(Tz,H,$,Z1)):(vz&4194048)!==0&&(n5(256),sZ(S4,H,b6)),f=z,N=R9,b=0<_8,V=Tq===Dz,H=y1,z=cJ,U=Vb,h=kb,jw&&(Jw="Transition",0<J?J>H&&(J=H):J=H,0<W?W>J&&(W=J):W=J,0<f?f>W&&(f=W):f=W,W>f&&N!==null&&(R=b?"secondary-light":"warning",z?z.run(console.timeStamp.bind(console,b?"Consecutive":"Event: "+N,f,W,Jw,ww,R)):console.timeStamp(b?"Consecutive":"Event: "+N,f,W,Jw,ww,R)),J>W&&(z?z.run(console.timeStamp.bind(console,"Action",W,J,Jw,ww,"primary-dark")):console.timeStamp("Action",W,J,Jw,ww,"primary-dark")),H>J&&(W=V?"Promise Resolved":5<H-J?"Update Blocked":"Update",f=[],h!=null&&f.push(["Component name",h]),U!=null&&f.push(["Method name",U]),J={start:J,end:H,detail:{devtools:{properties:f,track:Jw,trackGroup:ww,color:"primary-light"}}},z?z.run(performance.measure.bind(performance,W,J)):performance.measure(W,J))),k2=L6=-1.1,Tq=0,Tz=-1.1,_8=F8,F8=-1.1,S4=q1()),($&62914560)!==0&&(vz&62914560)!==0&&(n5(4194304),sZ(Db,y1,b6)),($&2080374784)!==0&&(vz&2080374784)!==0&&(n5(268435456),sZ(Mb,y1,b6)),J=w.timeoutHandle,J!==n9&&(w.timeoutHandle=n9,Fj(J)),J=w.cancelPendingCommit,J!==null&&(w.cancelPendingCommit=null,J()),a2=0,qK(),Ew=w,o0=J=z6(w.current,null),r0=$,Vw=S5,W2=null,N8=!1,x$=f2(w,$),iq=!1,cw=M6,u9=x5=rq=b8=L8=0,I5=WX=null,pz=!1,($&8)!==0&&($|=$&32),z=w.entangledLanes,z!==0)for(w=w.entanglements,z&=$;0<z;)W=31-F5(z),H=1<<W,$|=w[W],z&=~H;return h4=$,W3(),w=Ob(),1000<w-_b&&(a.recentlyCreatedOwnerStacks=0,_b=w),i2.discardPendingWarnings(),J}function KN(w,$){c0=null,a.H=ZX,a.getCurrentStack=null,v4=!1,Z2=null,$===M$||$===Cz?($=CO(),Vw=zX):$===gq?($=CO(),Vw=II):Vw=$===mq?lq:$!==null&&typeof $==="object"&&typeof $.then==="function"?QX:cz,W2=$;var J=o0;J===null?(cw=YX,f3(w,a5($,w.current))):J.mode&l0&&HH(J)}function qN(){var w=Y2.current;return w===null?!0:(r0&4194048)===r0?D2===null?!0:!1:(r0&62914560)===r0||(r0&536870912)!==0?w===D2:!1}function BN(){var w=a.H;return a.H=ZX,w===null?ZX:w}function UN(){var w=a.A;return a.A=$j,w}function i3(w){Z1===null&&(Z1=w._debugTask==null?null:w._debugTask)}function r3(){cw=A8,N8||(r0&4194048)!==r0&&Y2.current!==null||(x$=!0),(L8&134217727)===0&&(b8&134217727)===0||Ew===null||w8(Ew,r0,x5,!1)}function BK(w,$,J){var z=Bw;Bw|=D1;var W=BN(),H=UN();if(Ew!==w||r0!==$){if(E4){var U=w.memoizedUpdaters;0<U.size&&(_J(w,r0),U.clear()),B5(w,$)}GX=null,$$(w,$)}$=!1,U=cw;w:do try{if(Vw!==S5&&o0!==null){var N=o0,b=W2;switch(Vw){case lq:qK(),U=mz;break w;case zX:case m9:case c9:case QX:Y2.current===null&&($=!0);var V=Vw;if(Vw=S5,W2=null,Z$(w,N,b,V),J&&x$){U=M6;break w}break;default:V=Vw,Vw=S5,W2=null,Z$(w,N,b,V)}}FN(),U=cw;break}catch(h){KN(w,h)}while(1);return $&&w.shellSuspendCounter++,B3(),Bw=z,a.H=W,a.A=H,o0===null&&(Ew=null,r0=0,W3()),U}function FN(){for(;o0!==null;)_N(o0)}function hg(w,$){var J=Bw;Bw|=D1;var z=BN(),W=UN();if(Ew!==w||r0!==$){if(E4){var H=w.memoizedUpdaters;0<H.size&&(_J(w,r0),H.clear()),B5(w,$)}GX=null,iz=f1()+DI,$$(w,$)}else x$=f2(w,$);w:do try{if(Vw!==S5&&o0!==null)$:switch($=o0,H=W2,Vw){case cz:Vw=S5,W2=null,Z$(w,$,H,cz);break;case m9:case c9:if(EO(H)){Vw=S5,W2=null,ON($);break}$=function(){Vw!==m9&&Vw!==c9||Ew!==w||(Vw=uz),k4(w)},H.then($,$);break w;case zX:Vw=uz;break w;case II:Vw=pq;break w;case uz:EO(H)?(Vw=S5,W2=null,ON($)):(Vw=S5,W2=null,Z$(w,$,H,uz));break;case pq:var U=null;switch(o0.tag){case 26:U=o0.memoizedState;case 5:case 27:var N=o0;if(U?GL(U):N.stateNode.complete){Vw=S5,W2=null;var b=N.sibling;if(b!==null)o0=b;else{var V=N.return;V!==null?(o0=V,n3(V)):o0=null}break $}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}Vw=S5,W2=null,Z$(w,$,H,pq);break;case QX:Vw=S5,W2=null,Z$(w,$,H,QX);break;case lq:qK(),cw=mz;break w;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}a.actQueue!==null?FN():fg();break}catch(h){KN(w,h)}while(1);if(B3(),a.H=z,a.A=W,Bw=J,o0!==null)return M6;return Ew=null,r0=0,W3(),cw}function fg(){for(;o0!==null&&!xC();)_N(o0)}function _N(w){var $=w.alternate;(w.mode&l0)!==f0?(GH(w),$=B0(w,JK,$,w,h4),HH(w)):$=B0(w,JK,$,w,h4),w.memoizedProps=w.pendingProps,$===null?n3(w):o0=$}function ON(w){var $=B0(w,yg,w);w.memoizedProps=w.pendingProps,$===null?n3(w):o0=$}function yg(w){var $=w.alternate,J=(w.mode&l0)!==f0;switch(J&&GH(w),w.tag){case 15:case 0:$=vA($,w,w.pendingProps,w.type,void 0,r0);break;case 11:$=vA($,w,w.pendingProps,w.type.render,w.ref,r0);break;case 5:VH(w);default:SA($,w),w=o0=_O(w,h4),$=JK($,w,h4)}return J&&HH(w),$}function Z$(w,$,J,z){B3(),VH($),T$=null,tJ=0;var W=$.return;try{if(Vg(w,W,$,J,r0)){cw=YX,f3(w,a5(J,w.current)),o0=null;return}}catch(H){if(W!==null)throw o0=W,H;cw=YX,f3(w,a5(J,w.current)),o0=null;return}if($.flags&32768){if(Yw||z===cz)w=!0;else if(x$||(r0&536870912)!==0)w=!1;else if(N8=w=!0,z===m9||z===c9||z===zX||z===QX)z=Y2.current,z!==null&&z.tag===13&&(z.flags|=16384);AN($,w)}else n3($)}function n3(w){var $=w;do{if(($.flags&32768)!==0){AN($,N8);return}var J=$.alternate;if(w=$.return,GH($),J=B0($,Mg,J,$,h4),($.mode&l0)!==f0&&DO($),J!==null){o0=J;return}if($=$.sibling,$!==null){o0=$;return}o0=$=w}while($!==null);cw===M6&&(cw=bI)}function AN(w,$){do{var J=Tg(w.alternate,w);if(J!==null){J.flags&=32767,o0=J;return}if((w.mode&l0)!==f0){DO(w),J=w.actualDuration;for(var z=w.child;z!==null;)J+=z.actualDuration,z=z.sibling;w.actualDuration=J}if(J=w.return,J!==null&&(J.flags|=32768,J.subtreeFlags=0,J.deletions=null),!$&&(w=w.sibling,w!==null)){o0=w;return}o0=w=J}while(w!==null);cw=mz,o0=null}function UK(w,$,J,z,W,H,U,N,b,V,h,f,R,i){w.cancelPendingCommit=null;do FJ();while(O1!==V8);if(i2.flushLegacyContextWarning(),i2.flushPendingUnsafeLifecycleWarnings(),(Bw&(D1|Q2))!==m1)throw Error("Should not already be working.");if(n5(J),V===d9?aG(R,i,J,Z1):z!==null?Hg(R,i,J,z,$!==null&&$.alternate!==null&&$.alternate.memoizedState.isDehydrated&&($.flags&256)!==0,Z1):Gg(R,i,J,Z1),$!==null){if(J===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),$===w.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(H=$.lanes|$.childLanes,H|=Lq,ew(w,J,H,U,N,b),w===Ew&&(o0=Ew=null,r0=0),h$=$,k8=w,a2=J,oq=H,tq=W,gI=z,sq=i,CI=f,o2=rz,RI=null,$.actualDuration!==0||($.subtreeFlags&10256)!==0||($.flags&10256)!==0?(w.callbackNode=null,w.callbackPriority=0,pg(W$,function(){return FX=window.event,o2===rz&&(o2=aq),VN(),null})):(w.callbackNode=null,w.callbackPriority=0),N6=null,q8=q1(),f!==null&&Kg(i,q8,f,Z1),z=($.flags&13878)!==0,($.subtreeFlags&13878)!==0||z){z=a.T,a.T=null,W=Nw.p,Nw.p=J2,U=Bw,Bw|=Q2;try{Rg(w,$,J)}finally{Bw=U,Nw.p=W,a.T=z}}O1=TI,NN(),LN(),bN()}}function NN(){if(O1===TI){O1=V8;var w=k8,$=h$,J=a2,z=($.flags&13878)!==0;if(($.subtreeFlags&13878)!==0||z){z=a.T,a.T=null;var W=Nw.p;Nw.p=J2;var H=Bw;Bw|=Q2;try{j$=J,S$=w,O3(),oA($,w),S$=j$=null,J=GB;var U=zO(w.containerInfo),N=J.focusedElem,b=J.selectionRange;if(U!==N&&N&&N.ownerDocument&&YO(N.ownerDocument.documentElement,N)){if(b!==null&&iG(N)){var{start:V,end:h}=b;if(h===void 0&&(h=V),"selectionStart"in N)N.selectionStart=V,N.selectionEnd=Math.min(h,N.value.length);else{var f=N.ownerDocument||document,R=f&&f.defaultView||window;if(R.getSelection){var i=R.getSelection(),q0=N.textContent.length,A0=Math.min(b.start,q0),Cw=b.end===void 0?A0:Math.min(b.end,q0);!i.extend&&A0>Cw&&(U=Cw,Cw=A0,A0=U);var Ww=XO(N,A0),g=XO(N,Cw);if(Ww&&g&&(i.rangeCount!==1||i.anchorNode!==Ww.node||i.anchorOffset!==Ww.offset||i.focusNode!==g.node||i.focusOffset!==g.offset)){var S=f.createRange();S.setStart(Ww.node,Ww.offset),i.removeAllRanges(),A0>Cw?(i.addRange(S),i.extend(g.node,g.offset)):(S.setEnd(g.node,g.offset),i.addRange(S))}}}}f=[];for(i=N;i=i.parentNode;)i.nodeType===1&&f.push({element:i,left:i.scrollLeft,top:i.scrollTop});typeof N.focus==="function"&&N.focus();for(N=0;N<f.length;N++){var x=f[N];x.element.scrollLeft=x.left,x.element.scrollTop=x.top}}GQ=!!WB,GB=WB=null}finally{Bw=H,Nw.p=W,a.T=z}}w.current=$,O1=vI}}function LN(){if(O1===vI){O1=V8;var w=RI;if(w!==null){q8=q1();var $=A6,J=q8;!jw||J<=$||(b6?b6.run(console.timeStamp.bind(console,w,$,J,Jw,ww,"secondary-light")):console.timeStamp(w,$,J,Jw,ww,"secondary-light"))}w=k8,$=h$,J=a2;var z=($.flags&8772)!==0;if(($.subtreeFlags&8772)!==0||z){z=a.T,a.T=null;var W=Nw.p;Nw.p=J2;var H=Bw;Bw|=Q2;try{j$=J,S$=w,O3(),lA(w,$.alternate,$),S$=j$=null}finally{Bw=H,Nw.p=W,a.T=z}}w=sq,$=CI,A6=q1(),w=$===null?w:q8,$=A6,J=o2===nq,z=Z1,N6!==null?KO(w,$,N6,!1,z):!jw||$<=w||(z?z.run(console.timeStamp.bind(console,J?"Commit Interrupted View Transition":"Commit",w,$,Jw,ww,J?"error":"secondary-dark")):console.timeStamp(J?"Commit Interrupted View Transition":"Commit",w,$,Jw,ww,J?"error":"secondary-dark")),O1=PI}}function bN(){if(O1===EI||O1===PI){if(O1===EI){var w=A6;A6=q1();var $=A6,J=o2===nq;!jw||$<=w||(b6?b6.run(console.timeStamp.bind(console,J?"Interrupted View Transition":"Starting Animation",w,$,Jw,ww,J?"error":"secondary-light")):console.timeStamp(J?"Interrupted View Transition":"Starting Animation",w,$,Jw,ww,J?" error":"secondary-light")),o2!==nq&&(o2=MI)}O1=V8,hC(),w=k8;var z=h$;$=a2,J=gI;var W=z.actualDuration!==0||(z.subtreeFlags&10256)!==0||(z.flags&10256)!==0;W?O1=nz:(O1=V8,h$=k8=null,IN(w,w.pendingLanes),p9=0,KX=null);var H=w.pendingLanes;if(H===0&&(I8=null),W||TN(w),H=k($),z=z.stateNode,X5&&typeof X5.onCommitFiberRoot==="function")try{var U=(z.current.flags&128)===128;switch(H){case J2:var N=tK;break;case p2:N=eK;break;case g4:N=W$;break;case qz:N=wq;break;default:N=W$}X5.onCommitFiberRoot(G$,z,N,U)}catch(f){P4||(P4=!0,console.error("React instrumentation encountered an error: %o",f))}if(E4&&w.memoizedUpdaters.clear(),Sg(),J!==null){U=a.T,N=Nw.p,Nw.p=J2,a.T=null;try{var b=w.onRecoverableError;for(z=0;z<J.length;z++){var V=J[z],h=dg(V.stack);B0(V.source,b,V.value,h)}}finally{a.T=U,Nw.p=N}}(a2&3)!==0&&FJ(),k4(w),H=w.pendingLanes,($&261930)!==0&&(H&42)!==0?(Ez=!0,w===eq?HX++:(HX=0,eq=w)):HX=0,W||T9($,A6),OJ(0,!1)}}function dg(w){return w={componentStack:w},Object.defineProperty(w,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),w}function IN(w,$){(w.pooledCacheLanes&=$)===0&&($=w.pooledCache,$!=null&&(w.pooledCache=null,eZ($)))}function FJ(){return NN(),LN(),bN(),VN()}function VN(){if(O1!==nz)return!1;var w=k8,$=oq;oq=0;var J=k(a2),z=g4===0||g4>J?g4:J;J=a.T;var W=Nw.p;try{Nw.p=z,a.T=null;var H=tq;tq=null,z=k8;var U=a2;if(O1=V8,h$=k8=null,a2=0,(Bw&(D1|Q2))!==m1)throw Error("Cannot flush passive effects while already rendering.");n5(U),wB=!0,az=!1;var N=0;if(N6=null,N=f1(),o2===MI)sZ(A6,N,b6);else{var b=A6,V=N,h=o2===aq;!jw||V<=b||(Z1?Z1.run(console.timeStamp.bind(console,h?"Waiting for Paint":"Waiting",b,V,Jw,ww,"secondary-light")):console.timeStamp(h?"Waiting for Paint":"Waiting",b,V,Jw,ww,"secondary-light"))}b=Bw,Bw|=Q2;var f=z.current;O3(),XN(f);var R=z.current;f=sq,O3(),wN(z,R,U,H,f),TN(z),Bw=b;var i=f1();if(R=N,f=Z1,N6!==null?KO(R,i,N6,!0,f):!jw||i<=R||(f?f.run(console.timeStamp.bind(console,"Remaining Effects",R,i,Jw,ww,"secondary-dark")):console.timeStamp("Remaining Effects",R,i,Jw,ww,"secondary-dark")),T9(U,i),OJ(0,!1),az?z===KX?p9++:(p9=0,KX=z):p9=0,az=wB=!1,X5&&typeof X5.onPostCommitFiberRoot==="function")try{X5.onPostCommitFiberRoot(G$,z)}catch(A0){P4||(P4=!0,console.error("React instrumentation encountered an error: %o",A0))}var q0=z.current.stateNode;return q0.effectDuration=0,q0.passiveEffectDuration=0,!0}finally{Nw.p=W,a.T=J,IN(w,$)}}function kN(w,$,J){$=a5(J,$),MO($),$=iH(w.stateNode,$,2),w=o6(w,$,2),w!==null&&(s0(w,2),k4(w))}function Aw(w,$,J){if(f$=!1,w.tag===3)kN(w,w,J);else{for(;$!==null;){if($.tag===3){kN($,w,J);return}if($.tag===1){var z=$.stateNode;if(typeof $.type.getDerivedStateFromError==="function"||typeof z.componentDidCatch==="function"&&(I8===null||!I8.has(z))){w=a5(J,w),MO(w),J=rH(2),z=o6($,J,2),z!==null&&(nH(J,z,$,w),s0(z,2),k4(z));return}}$=$.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
154
+
155
+ Error message:
156
+
157
+ %s`,J)}}function FK(w,$,J){var z=w.pingCache;if(z===null){z=w.pingCache=new Jj;var W=new Set;z.set($,W)}else W=z.get($),W===void 0&&(W=new Set,z.set($,W));W.has(J)||(iq=!0,W.add(J),z=mg.bind(null,w,$,J),E4&&_J(w,J),$.then(z,z))}function mg(w,$,J){var z=w.pingCache;z!==null&&z.delete($),w.pingedLanes|=w.suspendedLanes&J,w.warmLanes&=~J,(J&127)!==0?0>j4&&(B8=j4=q1(),dJ=kz("Promise Resolved"),U8=Dz):(J&4194048)!==0&&0>k2&&(S4=k2=q1(),cJ=kz("Promise Resolved"),Tq=Dz),QN()&&a.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
158
+
159
+ When testing, code that resolves suspended data should be wrapped into act(...):
160
+
161
+ act(() => {
162
+ /* finish loading suspended data */
163
+ });
164
+ /* assert on the output */
165
+
166
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),Ew===w&&(r0&J)===J&&(cw===A8||cw===dz&&(r0&62914560)===r0&&f1()-lz<kI?(Bw&D1)===m1&&$$(w,0):rq|=J,u9===r0&&(u9=0)),k4(w)}function DN(w,$){$===0&&($=l5()),w=J5(w,$),w!==null&&(s0(w,$),k4(w))}function cg(w){var $=w.memoizedState,J=0;$!==null&&(J=$.retryLane),DN(w,J)}function ug(w,$){var J=0;switch(w.tag){case 31:case 13:var{stateNode:z,memoizedState:W}=w;W!==null&&(J=W.retryLane);break;case 19:z=w.stateNode;break;case 22:z=w.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}z!==null&&z.delete($),DN(w,J)}function _K(w,$,J){if(($.subtreeFlags&67117056)!==0)for($=$.child;$!==null;){var z=w,W=$,H=W.type===zz;H=J||H,W.tag!==22?W.flags&67108864?H&&B0(W,MN,z,W):_K(z,W,H):W.memoizedState===null&&(H&&W.flags&8192?B0(W,MN,z,W):W.subtreeFlags&67108864&&B0(W,_K,z,W,H)),$=$.sibling}}function MN(w,$){zw(!0);try{tA($),YN($),eA(w,$.alternate,$,!1),$N(w,$,0,null,!1,0)}finally{zw(!1)}}function TN(w){var $=!0;w.current.mode&(Y5|l2)||($=!1),_K(w,w.current,$)}function vN(w){if((Bw&D1)===m1){var $=w.tag;if($===3||$===1||$===0||$===11||$===14||$===15){if($=m(w)||"ReactComponent",oz!==null){if(oz.has($))return;oz.add($)}else oz=new Set([$]);B0(w,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function _J(w,$){E4&&w.memoizedUpdaters.forEach(function(J){y2(w,J,$)})}function pg(w,$){var J=a.actQueue;return J!==null?(J.push($),zj):sK(w,$)}function lg(w){QN()&&a.actQueue===null&&B0(w,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
167
+
168
+ When testing, code that causes React state updates should be wrapped into act(...):
169
+
170
+ act(() => {
171
+ /* fire events that update state */
172
+ });
173
+ /* assert on the output */
174
+
175
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,m(w))})}function k4(w){w!==y$&&w.next===null&&(y$===null?sz=y$=w:y$=y$.next=w),tz=!0,a.actQueue!==null?ZB||(ZB=!0,CN()):$B||($B=!0,CN())}function OJ(w,$){if(!JB&&tz){JB=!0;do{var J=!1;for(var z=sz;z!==null;){if(!$)if(w!==0){var W=z.pendingLanes;if(W===0)var H=0;else{var{suspendedLanes:U,pingedLanes:N}=z;H=(1<<31-F5(42|w)+1)-1,H&=W&~(U&~N),H=H&201326741?H&201326741|1:H?H|2:0}H!==0&&(J=!0,gN(z,H))}else H=r0,H=l1(z,z===Ew?H:0,z.cancelPendingCommit!==null||z.timeoutHandle!==n9),(H&3)===0||f2(z,H)||(J=!0,gN(z,H));z=z.next}}while(J);JB=!1}}function ig(){FX=window.event,OK()}function OK(){tz=ZB=$B=!1;var w=0;D8!==0&&eg()&&(w=D8);for(var $=f1(),J=null,z=sz;z!==null;){var W=z.next,H=PN(z,$);if(H===0)z.next=null,J===null?sz=W:J.next=W,W===null&&(y$=J);else if(J=z,w!==0||(H&3)!==0)tz=!0;z=W}O1!==V8&&O1!==nz||OJ(w,!1),D8!==0&&(D8=0)}function PN(w,$){for(var{suspendedLanes:J,pingedLanes:z,expirationTimes:W}=w,H=w.pendingLanes&-62914561;0<H;){var U=31-F5(H),N=1<<U,b=W[U];if(b===-1){if((N&J)===0||(N&z)!==0)W[U]=q9(N,$)}else b<=$&&(w.expiredLanes|=N);H&=~N}if($=Ew,J=r0,J=l1(w,w===$?J:0,w.cancelPendingCommit!==null||w.timeoutHandle!==n9),z=w.callbackNode,J===0||w===$&&(Vw===m9||Vw===c9)||w.cancelPendingCommit!==null)return z!==null&&AK(z),w.callbackNode=null,w.callbackPriority=0;if((J&3)===0||f2(w,J)){if($=J&-J,$!==w.callbackPriority||a.actQueue!==null&&z!==XB)AK(z);else return $;switch(k(J)){case J2:case p2:J=eK;break;case g4:J=W$;break;case qz:J=wq;break;default:J=W$}return z=EN.bind(null,w),a.actQueue!==null?(a.actQueue.push(z),J=XB):J=sK(J,z),w.callbackPriority=$,w.callbackNode=J,$}return z!==null&&AK(z),w.callbackPriority=2,w.callbackNode=null,2}function EN(w,$){if(Ez=Pz=!1,FX=window.event,O1!==V8&&O1!==nz)return w.callbackNode=null,w.callbackPriority=0,null;var J=w.callbackNode;if(o2===rz&&(o2=aq),FJ()&&w.callbackNode!==J)return null;var z=r0;if(z=l1(w,w===Ew?z:0,w.cancelPendingCommit!==null||w.timeoutHandle!==n9),z===0)return null;return GN(w,z,$),PN(w,f1()),w.callbackNode!=null&&w.callbackNode===J?EN.bind(null,w):null}function gN(w,$){if(FJ())return null;Pz=Ez,Ez=!1,GN(w,$,!0)}function AK(w){w!==XB&&w!==null&&SC(w)}function CN(){a.actQueue!==null&&a.actQueue.push(function(){return OK(),null}),_j(function(){(Bw&(D1|Q2))!==m1?sK(tK,ig):OK()})}function NK(){if(D8===0){var w=j9;w===0&&(w=Gz,Gz<<=1,(Gz&261888)===0&&(Gz=256)),D8=w}return D8}function RN(w){if(w==null||typeof w==="symbol"||typeof w==="boolean")return null;if(typeof w==="function")return w;return qw(w,"action"),nZ(""+w)}function jN(w,$){var J=$.ownerDocument.createElement("input");return J.name=$.name,J.value=$.value,w.id&&J.setAttribute("form",w.id),$.parentNode.insertBefore(J,$),w=new FormData(w),J.parentNode.removeChild(J),w}function rg(w,$,J,z,W){if($==="submit"&&J&&J.stateNode===W){var H=RN((W[_5]||null).action),U=z.submitter;U&&($=($=U[_5]||null)?RN($.formAction):U.getAttribute("formAction"),$!==null&&(H=$,U=null));var N=new Oz("action","action",null,z,W);w.push({event:N,listeners:[{instance:null,listener:function(){if(z.defaultPrevented){if(D8!==0){var b=U?jN(W,U):new FormData(W),V={pending:!0,data:b,method:W.method,action:H};Object.freeze(V),yH(J,V,null,b)}}else typeof H==="function"&&(N.preventDefault(),b=U?jN(W,U):new FormData(W),V={pending:!0,data:b,method:W.method,action:H},Object.freeze(V),yH(J,V,H,b))},currentTarget:W}]})}}function a3(w,$,J){w.currentTarget=J;try{$(w)}catch(z){_q(z)}w.currentTarget=null}function SN(w,$){$=($&4)!==0;for(var J=0;J<w.length;J++){var z=w[J];w:{var W=void 0,H=z.event;if(z=z.listeners,$)for(var U=z.length-1;0<=U;U--){var N=z[U],b=N.instance,V=N.currentTarget;if(N=N.listener,b!==W&&H.isPropagationStopped())break w;b!==null?B0(b,a3,H,N,V):a3(H,N,V),W=b}else for(U=0;U<z.length;U++){if(N=z[U],b=N.instance,V=N.currentTarget,N=N.listener,b!==W&&H.isPropagationStopped())break w;b!==null?B0(b,a3,H,N,V):a3(H,N,V),W=b}}}}function Qw(w,$){YB.has(w)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',w);var J=$[$q];J===void 0&&(J=$[$q]=new Set);var z=w+"__bubble";J.has(z)||(xN($,w,2,!1),J.add(z))}function LK(w,$,J){YB.has(w)&&!$&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',w);var z=0;$&&(z|=4),xN(J,w,z,$)}function bK(w){if(!w[ez]){w[ez]=!0,CL.forEach(function(J){J!=="selectionchange"&&(YB.has(J)||LK(J,!1,w),LK(J,!0,w))});var $=w.nodeType===9?w:w.ownerDocument;$===null||$[ez]||($[ez]=!0,LK("selectionchange",!1,$))}}function xN(w,$,J,z){switch(FL($)){case J2:var W=TC;break;case p2:W=vC;break;default:W=hK}J=W.bind(null,$,J,w),W=void 0,!zq||$!=="touchstart"&&$!=="touchmove"&&$!=="wheel"||(W=!0),z?W!==void 0?w.addEventListener($,J,{capture:!0,passive:W}):w.addEventListener($,J,!0):W!==void 0?w.addEventListener($,J,{passive:W}):w.addEventListener($,J,!1)}function IK(w,$,J,z,W){var H=z;if(($&1)===0&&($&2)===0&&z!==null)w:for(;;){if(z===null)return;var U=z.tag;if(U===3||U===4){var N=z.stateNode.containerInfo;if(N===W)break;if(U===4)for(U=z.return;U!==null;){var b=U.tag;if((b===3||b===4)&&U.stateNode.containerInfo===W)return;U=U.return}for(;N!==null;){if(U=_0(N),U===null)return;if(b=U.tag,b===5||b===6||b===26||b===27){z=H=U;continue w}N=N.parentNode}}z=z.return}r_(function(){var V=H,h=pG(J),f=[];w:{var R=Fb.get(w);if(R!==void 0){var i=Oz,q0=w;switch(w){case"keypress":if(J3(J)===0)break w;case"keydown":case"keyup":i=IR;break;case"focusin":q0="focus",i=Hq;break;case"focusout":q0="blur",i=Hq;break;case"beforeblur":case"afterblur":i=Hq;break;case"click":if(J.button===2)break w;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":i=$b;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":i=HR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":i=DR;break;case Kb:case qb:case Bb:i=BR;break;case Ub:i=TR;break;case"scroll":case"scrollend":i=WR;break;case"wheel":i=PR;break;case"copy":case"cut":case"paste":i=FR;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":i=Jb;break;case"toggle":case"beforetoggle":i=gR}var A0=($&4)!==0,Cw=!A0&&(w==="scroll"||w==="scrollend"),Ww=A0?R!==null?R+"Capture":null:R;A0=[];for(var g=V,S;g!==null;){var x=g;if(S=x.stateNode,x=x.tag,x!==5&&x!==26&&x!==27||S===null||Ww===null||(x=aZ(g,Ww),x!=null&&A0.push(AJ(g,x,S))),Cw)break;g=g.return}0<A0.length&&(R=new i(R,q0,null,J,h),f.push({event:R,listeners:A0}))}}if(($&7)===0){w:{if(R=w==="mouseover"||w==="pointerover",i=w==="mouseout"||w==="pointerout",R&&J!==PJ&&(q0=J.relatedTarget||J.fromElement)&&(_0(q0)||q0[z8]))break w;if(i||R){if(R=h.window===h?h:(R=h.ownerDocument)?R.defaultView||R.parentWindow:window,i){if(q0=J.relatedTarget||J.toElement,i=V,q0=q0?_0(q0):null,q0!==null&&(Cw=v(q0),A0=q0.tag,q0!==Cw||A0!==5&&A0!==27&&A0!==6))q0=null}else i=null,q0=V;if(i!==q0){if(A0=$b,x="onMouseLeave",Ww="onMouseEnter",g="mouse",w==="pointerout"||w==="pointerover")A0=Jb,x="onPointerLeave",Ww="onPointerEnter",g="pointer";if(Cw=i==null?R:g0(i),S=q0==null?R:g0(q0),R=new A0(x,g+"leave",i,J,h),R.target=Cw,R.relatedTarget=S,x=null,_0(h)===V&&(A0=new A0(Ww,g+"enter",q0,J,h),A0.target=S,A0.relatedTarget=Cw,x=A0),Cw=x,i&&q0)$:{A0=ng,Ww=i,g=q0,S=0;for(x=Ww;x;x=A0(x))S++;x=0;for(var o=g;o;o=A0(o))x++;for(;0<S-x;)Ww=A0(Ww),S--;for(;0<x-S;)g=A0(g),x--;for(;S--;){if(Ww===g||g!==null&&Ww===g.alternate){A0=Ww;break $}Ww=A0(Ww),g=A0(g)}A0=null}else A0=null;i!==null&&hN(f,R,i,A0,!1),q0!==null&&Cw!==null&&hN(f,Cw,q0,A0,!0)}}}w:{if(R=V?g0(V):window,i=R.nodeName&&R.nodeName.toLowerCase(),i==="select"||i==="input"&&R.type==="file")var F0=wO;else if(t_(R))if(Gb)F0=zg;else{F0=Xg;var u0=Jg}else i=R.nodeName,!i||i.toLowerCase()!=="input"||R.type!=="checkbox"&&R.type!=="radio"?V&&rZ(V.elementType)&&(F0=wO):F0=Yg;if(F0&&(F0=F0(w,V))){e_(f,F0,J,h);break w}u0&&u0(w,R,V),w==="focusout"&&V&&R.type==="number"&&V.memoizedProps.value!=null&&fG(R,"number",R.value)}switch(u0=V?g0(V):window,w){case"focusin":if(t_(u0)||u0.contentEditable==="true")_$=u0,qq=V,xJ=null;break;case"focusout":xJ=qq=_$=null;break;case"mousedown":Bq=!0;break;case"contextmenu":case"mouseup":case"dragend":Bq=!1,QO(f,J,h);break;case"selectionchange":if(SR)break;case"keydown":case"keyup":QO(f,J,h)}var T0;if(Kq)w:{switch(w){case"compositionstart":var D0="onCompositionStart";break w;case"compositionend":D0="onCompositionEnd";break w;case"compositionupdate":D0="onCompositionUpdate";break w}D0=void 0}else F$?o_(w,J)&&(D0="onCompositionEnd"):w==="keydown"&&J.keyCode===Xb&&(D0="onCompositionStart");if(D0&&(Yb&&J.locale!=="ko"&&(F$||D0!=="onCompositionStart"?D0==="onCompositionEnd"&&F$&&(T0=n_()):(Q8=h,Qq=("value"in Q8)?Q8.value:Q8.textContent,F$=!0)),u0=o3(V,D0),0<u0.length&&(D0=new Zb(D0,w,null,J,h),f.push({event:D0,listeners:u0}),T0?D0.data=T0:(T0=s_(J),T0!==null&&(D0.data=T0)))),T0=RR?eE(w,J):wg(w,J))D0=o3(V,"onBeforeInput"),0<D0.length&&(u0=new OR("onBeforeInput","beforeinput",null,J,h),f.push({event:u0,listeners:D0}),u0.data=T0);rg(f,w,V,J,h)}SN(f,$)})}function AJ(w,$,J){return{instance:w,listener:$,currentTarget:J}}function o3(w,$){for(var J=$+"Capture",z=[];w!==null;){var W=w,H=W.stateNode;if(W=W.tag,W!==5&&W!==26&&W!==27||H===null||(W=aZ(w,J),W!=null&&z.unshift(AJ(w,W,H)),W=aZ(w,$),W!=null&&z.push(AJ(w,W,H))),w.tag===3)return z;w=w.return}return[]}function ng(w){if(w===null)return null;do w=w.return;while(w&&w.tag!==5&&w.tag!==27);return w?w:null}function hN(w,$,J,z,W){for(var H=$._reactName,U=[];J!==null&&J!==z;){var N=J,b=N.alternate,V=N.stateNode;if(N=N.tag,b!==null&&b===z)break;N!==5&&N!==26&&N!==27||V===null||(b=V,W?(V=aZ(J,H),V!=null&&U.unshift(AJ(J,V,b))):W||(V=aZ(J,H),V!=null&&U.push(AJ(J,V,b)))),J=J.return}U.length!==0&&w.push({event:$,listeners:U})}function VK(w,$){aE(w,$),w!=="input"&&w!=="textarea"&&w!=="select"||$==null||$.value!==null||eL||(eL=!0,w==="select"&&$.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",w):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",w));var J={registrationNameDependencies:v9,possibleRegistrationNames:Zq};rZ(w)||typeof $.is==="string"||sE(w,$,J),$.contentEditable&&!$.suppressContentEditableWarning&&$.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function h1(w,$,J,z){$!==J&&(J=$8(J),$8($)!==J&&(z[w]=$))}function ag(w,$,J){$.forEach(function(z){J[dN(z)]=z==="style"?DK(w):w.getAttribute(z)})}function D4(w,$){$===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",w,w,w):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",w,typeof $)}function fN(w,$){return w=w.namespaceURI===Uz||w.namespaceURI===K$?w.ownerDocument.createElementNS(w.namespaceURI,w.tagName):w.ownerDocument.createElement(w.tagName),w.innerHTML=$,w.innerHTML}function $8(w){return q5(w)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",F2(w)),tw(w)),(typeof w==="string"?w:""+w).replace(Qj,`
176
+ `).replace(Wj,"")}function yN(w,$){return $=$8($),$8(w)===$?!0:!1}function vw(w,$,J,z,W,H){switch(J){case"children":if(typeof z==="string")Z3(z,$,!1),$==="body"||$==="textarea"&&z===""||iZ(w,z);else if(typeof z==="number"||typeof z==="bigint")Z3(""+z,$,!1),$!=="body"&&iZ(w,""+z);break;case"className":J6(w,"class",z);break;case"tabIndex":J6(w,"tabindex",z);break;case"dir":case"role":case"viewBox":case"width":case"height":J6(w,J,z);break;case"style":p_(w,z,H);break;case"data":if($!=="object"){J6(w,"data",z);break}case"src":case"href":if(z===""&&($!=="a"||J!=="href")){J==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',J,J):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',J,J),w.removeAttribute(J);break}if(z==null||typeof z==="function"||typeof z==="symbol"||typeof z==="boolean"){w.removeAttribute(J);break}qw(z,J),z=nZ(""+z),w.setAttribute(J,z);break;case"action":case"formAction":if(z!=null&&($==="form"?J==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof z==="function"&&(W.encType==null&&W.method==null||ZQ||(ZQ=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),W.target==null||$Q||($Q=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):$==="input"||$==="button"?J==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):$!=="input"||W.type==="submit"||W.type==="image"||wQ?$!=="button"||W.type==null||W.type==="submit"||wQ?typeof z==="function"&&(W.name==null||fI||(fI=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),W.formEncType==null&&W.formMethod==null||ZQ||(ZQ=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),W.formTarget==null||$Q||($Q=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(wQ=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(wQ=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):J==="action"?console.error("You can only pass the action prop to <form>."):console.error("You can only pass the formAction prop to <input> or <button>.")),typeof z==="function"){w.setAttribute(J,"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"&&(J==="formAction"?($!=="input"&&vw(w,$,"name",W.name,W,null),vw(w,$,"formEncType",W.formEncType,W,null),vw(w,$,"formMethod",W.formMethod,W,null),vw(w,$,"formTarget",W.formTarget,W,null)):(vw(w,$,"encType",W.encType,W,null),vw(w,$,"method",W.method,W,null),vw(w,$,"target",W.target,W,null)));if(z==null||typeof z==="symbol"||typeof z==="boolean"){w.removeAttribute(J);break}qw(z,J),z=nZ(""+z),w.setAttribute(J,z);break;case"onClick":z!=null&&(typeof z!=="function"&&D4(J,z),w.onclick=Y6);break;case"onScroll":z!=null&&(typeof z!=="function"&&D4(J,z),Qw("scroll",w));break;case"onScrollEnd":z!=null&&(typeof z!=="function"&&D4(J,z),Qw("scrollend",w));break;case"dangerouslySetInnerHTML":if(z!=null){if(typeof z!=="object"||!("__html"in z))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(J=z.__html,J!=null){if(W.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");w.innerHTML=J}}break;case"multiple":w.multiple=z&&typeof z!=="function"&&typeof z!=="symbol";break;case"muted":w.muted=z&&typeof z!=="function"&&typeof z!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(z==null||typeof z==="function"||typeof z==="boolean"||typeof z==="symbol"){w.removeAttribute("xlink:href");break}qw(z,J),J=nZ(""+z),w.setAttributeNS(l9,"xlink:href",J);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":z!=null&&typeof z!=="function"&&typeof z!=="symbol"?(qw(z,J),w.setAttribute(J,""+z)):w.removeAttribute(J);break;case"inert":z!==""||JQ[J]||(JQ[J]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",J));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":z&&typeof z!=="function"&&typeof z!=="symbol"?w.setAttribute(J,""):w.removeAttribute(J);break;case"capture":case"download":z===!0?w.setAttribute(J,""):z!==!1&&z!=null&&typeof z!=="function"&&typeof z!=="symbol"?(qw(z,J),w.setAttribute(J,z)):w.removeAttribute(J);break;case"cols":case"rows":case"size":case"span":z!=null&&typeof z!=="function"&&typeof z!=="symbol"&&!isNaN(z)&&1<=z?(qw(z,J),w.setAttribute(J,z)):w.removeAttribute(J);break;case"rowSpan":case"start":z==null||typeof z==="function"||typeof z==="symbol"||isNaN(z)?w.removeAttribute(J):(qw(z,J),w.setAttribute(J,z));break;case"popover":Qw("beforetoggle",w),Qw("toggle",w),i1(w,"popover",z);break;case"xlinkActuate":z1(w,l9,"xlink:actuate",z);break;case"xlinkArcrole":z1(w,l9,"xlink:arcrole",z);break;case"xlinkRole":z1(w,l9,"xlink:role",z);break;case"xlinkShow":z1(w,l9,"xlink:show",z);break;case"xlinkTitle":z1(w,l9,"xlink:title",z);break;case"xlinkType":z1(w,l9,"xlink:type",z);break;case"xmlBase":z1(w,zB,"xml:base",z);break;case"xmlLang":z1(w,zB,"xml:lang",z);break;case"xmlSpace":z1(w,zB,"xml:space",z);break;case"is":H!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),i1(w,"is",z);break;case"innerText":case"textContent":break;case"popoverTarget":yI||z==null||typeof z!=="object"||(yI=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",z));default:!(2<J.length)||J[0]!=="o"&&J[0]!=="O"||J[1]!=="n"&&J[1]!=="N"?(J=l_(J),i1(w,J,z)):v9.hasOwnProperty(J)&&z!=null&&typeof z!=="function"&&D4(J,z)}}function kK(w,$,J,z,W,H){switch(J){case"style":p_(w,z,H);break;case"dangerouslySetInnerHTML":if(z!=null){if(typeof z!=="object"||!("__html"in z))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(J=z.__html,J!=null){if(W.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");w.innerHTML=J}}break;case"children":typeof z==="string"?iZ(w,z):(typeof z==="number"||typeof z==="bigint")&&iZ(w,""+z);break;case"onScroll":z!=null&&(typeof z!=="function"&&D4(J,z),Qw("scroll",w));break;case"onScrollEnd":z!=null&&(typeof z!=="function"&&D4(J,z),Qw("scrollend",w));break;case"onClick":z!=null&&(typeof z!=="function"&&D4(J,z),w.onclick=Y6);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(v9.hasOwnProperty(J))z!=null&&typeof z!=="function"&&D4(J,z);else w:{if(J[0]==="o"&&J[1]==="n"&&(W=J.endsWith("Capture"),$=J.slice(2,W?J.length-7:void 0),H=w[_5]||null,H=H!=null?H[J]:null,typeof H==="function"&&w.removeEventListener($,H,W),typeof z==="function")){typeof H!=="function"&&H!==null&&(J in w?w[J]=null:w.hasAttribute(J)&&w.removeAttribute(J)),w.addEventListener($,z,W);break w}J in w?w[J]=z:z===!0?w.setAttribute(J,""):i1(w,J,z)}}}function a1(w,$,J){switch(VK($,J),$){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Qw("error",w),Qw("load",w);var z=!1,W=!1,H;for(H in J)if(J.hasOwnProperty(H)){var U=J[H];if(U!=null)switch(H){case"src":z=!0;break;case"srcSet":W=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error($+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:vw(w,$,H,U,J,null)}}W&&vw(w,$,"srcSet",J.srcSet,J,null),z&&vw(w,$,"src",J.src,J,null);return;case"input":w1("input",J),Qw("invalid",w);var N=H=U=W=null,b=null,V=null;for(z in J)if(J.hasOwnProperty(z)){var h=J[z];if(h!=null)switch(z){case"name":W=h;break;case"type":U=h;break;case"checked":b=h;break;case"defaultChecked":V=h;break;case"value":H=h;break;case"defaultValue":N=h;break;case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error($+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:vw(w,$,z,h,J,null)}}v_(w,J),P_(w,H,N,b,V,U,W,!1);return;case"select":w1("select",J),Qw("invalid",w),z=U=H=null;for(W in J)if(J.hasOwnProperty(W)&&(N=J[W],N!=null))switch(W){case"value":H=N;break;case"defaultValue":U=N;break;case"multiple":z=N;default:vw(w,$,W,N,J,null)}C_(w,J),$=H,J=U,w.multiple=!!z,$!=null?c7(w,!!z,$,!1):J!=null&&c7(w,!!z,J,!0);return;case"textarea":w1("textarea",J),Qw("invalid",w),H=W=z=null;for(U in J)if(J.hasOwnProperty(U)&&(N=J[U],N!=null))switch(U){case"value":z=N;break;case"defaultValue":W=N;break;case"children":H=N;break;case"dangerouslySetInnerHTML":if(N!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:vw(w,$,U,N,J,null)}R_(w,J),S_(w,z,W,H);return;case"option":E_(w,J);for(b in J)if(J.hasOwnProperty(b)&&(z=J[b],z!=null))switch(b){case"selected":w.selected=z&&typeof z!=="function"&&typeof z!=="symbol";break;default:vw(w,$,b,z,J,null)}return;case"dialog":Qw("beforetoggle",w),Qw("toggle",w),Qw("cancel",w),Qw("close",w);break;case"iframe":case"object":Qw("load",w);break;case"video":case"audio":for(z=0;z<qX.length;z++)Qw(qX[z],w);break;case"image":Qw("error",w),Qw("load",w);break;case"details":Qw("toggle",w);break;case"embed":case"source":case"link":Qw("error",w),Qw("load",w);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(V in J)if(J.hasOwnProperty(V)&&(z=J[V],z!=null))switch(V){case"children":case"dangerouslySetInnerHTML":throw Error($+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:vw(w,$,V,z,J,null)}return;default:if(rZ($)){for(h in J)J.hasOwnProperty(h)&&(z=J[h],z!==void 0&&kK(w,$,h,z,J,void 0));return}}for(N in J)J.hasOwnProperty(N)&&(z=J[N],z!=null&&vw(w,$,N,z,J,null))}function og(w,$,J,z){switch(VK($,z),$){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var W=null,H=null,U=null,N=null,b=null,V=null,h=null;for(i in J){var f=J[i];if(J.hasOwnProperty(i)&&f!=null)switch(i){case"checked":break;case"value":break;case"defaultValue":b=f;default:z.hasOwnProperty(i)||vw(w,$,i,null,z,f)}}for(var R in z){var i=z[R];if(f=J[R],z.hasOwnProperty(R)&&(i!=null||f!=null))switch(R){case"type":H=i;break;case"name":W=i;break;case"checked":V=i;break;case"defaultChecked":h=i;break;case"value":U=i;break;case"defaultValue":N=i;break;case"children":case"dangerouslySetInnerHTML":if(i!=null)throw Error($+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:i!==f&&vw(w,$,R,i,z,f)}}$=J.type==="checkbox"||J.type==="radio"?J.checked!=null:J.value!=null,z=z.type==="checkbox"||z.type==="radio"?z.checked!=null:z.value!=null,$||!z||hI||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),hI=!0),!$||z||xI||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),xI=!0),hG(w,U,N,b,V,h,H,W);return;case"select":i=U=N=R=null;for(H in J)if(b=J[H],J.hasOwnProperty(H)&&b!=null)switch(H){case"value":break;case"multiple":i=b;default:z.hasOwnProperty(H)||vw(w,$,H,null,z,b)}for(W in z)if(H=z[W],b=J[W],z.hasOwnProperty(W)&&(H!=null||b!=null))switch(W){case"value":R=H;break;case"defaultValue":N=H;break;case"multiple":U=H;default:H!==b&&vw(w,$,W,H,z,b)}z=N,$=U,J=i,R!=null?c7(w,!!$,R,!1):!!J!==!!$&&(z!=null?c7(w,!!$,z,!0):c7(w,!!$,$?[]:"",!1));return;case"textarea":i=R=null;for(N in J)if(W=J[N],J.hasOwnProperty(N)&&W!=null&&!z.hasOwnProperty(N))switch(N){case"value":break;case"children":break;default:vw(w,$,N,null,z,W)}for(U in z)if(W=z[U],H=J[U],z.hasOwnProperty(U)&&(W!=null||H!=null))switch(U){case"value":R=W;break;case"defaultValue":i=W;break;case"children":break;case"dangerouslySetInnerHTML":if(W!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:W!==H&&vw(w,$,U,W,z,H)}j_(w,R,i);return;case"option":for(var q0 in J)if(R=J[q0],J.hasOwnProperty(q0)&&R!=null&&!z.hasOwnProperty(q0))switch(q0){case"selected":w.selected=!1;break;default:vw(w,$,q0,null,z,R)}for(b in z)if(R=z[b],i=J[b],z.hasOwnProperty(b)&&R!==i&&(R!=null||i!=null))switch(b){case"selected":w.selected=R&&typeof R!=="function"&&typeof R!=="symbol";break;default:vw(w,$,b,R,z,i)}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 A0 in J)R=J[A0],J.hasOwnProperty(A0)&&R!=null&&!z.hasOwnProperty(A0)&&vw(w,$,A0,null,z,R);for(V in z)if(R=z[V],i=J[V],z.hasOwnProperty(V)&&R!==i&&(R!=null||i!=null))switch(V){case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error($+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:vw(w,$,V,R,z,i)}return;default:if(rZ($)){for(var Cw in J)R=J[Cw],J.hasOwnProperty(Cw)&&R!==void 0&&!z.hasOwnProperty(Cw)&&kK(w,$,Cw,void 0,z,R);for(h in z)R=z[h],i=J[h],!z.hasOwnProperty(h)||R===i||R===void 0&&i===void 0||kK(w,$,h,R,z,i);return}}for(var Ww in J)R=J[Ww],J.hasOwnProperty(Ww)&&R!=null&&!z.hasOwnProperty(Ww)&&vw(w,$,Ww,null,z,R);for(f in z)R=z[f],i=J[f],!z.hasOwnProperty(f)||R===i||R==null&&i==null||vw(w,$,f,R,z,i)}function dN(w){switch(w){case"class":return"className";case"for":return"htmlFor";default:return w}}function DK(w){var $={};w=w.style;for(var J=0;J<w.length;J++){var z=w[J];$[z]=w.getPropertyValue(z)}return $}function mN(w,$,J){if($!=null&&typeof $!=="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var z,W=z="",H;for(H in $)if($.hasOwnProperty(H)){var U=$[H];U!=null&&typeof U!=="boolean"&&U!==""&&(H.indexOf("--")===0?(P5(U,H),z+=W+H+":"+(""+U).trim()):typeof U!=="number"||U===0||sL.has(H)?(P5(U,H),z+=W+H.replace(iL,"-$1").toLowerCase().replace(rL,"-ms-")+":"+(""+U).trim()):z+=W+H.replace(iL,"-$1").toLowerCase().replace(rL,"-ms-")+":"+U+"px",W=";")}z=z||null,$=w.getAttribute("style"),$!==z&&(z=$8(z),$8($)!==z&&(J.style=DK(w)))}}function O2(w,$,J,z,W,H){if(W.delete(J),w=w.getAttribute(J),w===null)switch(typeof z){case"undefined":case"function":case"symbol":case"boolean":return}else if(z!=null)switch(typeof z){case"function":case"symbol":case"boolean":break;default:if(qw(z,$),w===""+z)return}h1($,w,z,H)}function cN(w,$,J,z,W,H){if(W.delete(J),w=w.getAttribute(J),w===null){switch(typeof z){case"function":case"symbol":return}if(!z)return}else switch(typeof z){case"function":case"symbol":break;default:if(z)return}h1($,w,z,H)}function MK(w,$,J,z,W,H){if(W.delete(J),w=w.getAttribute(J),w===null)switch(typeof z){case"undefined":case"function":case"symbol":return}else if(z!=null)switch(typeof z){case"function":case"symbol":break;default:if(qw(z,J),w===""+z)return}h1($,w,z,H)}function uN(w,$,J,z,W,H){if(W.delete(J),w=w.getAttribute(J),w===null)switch(typeof z){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(z))return}else if(z!=null)switch(typeof z){case"function":case"symbol":case"boolean":break;default:if(!isNaN(z)&&(qw(z,$),w===""+z))return}h1($,w,z,H)}function TK(w,$,J,z,W,H){if(W.delete(J),w=w.getAttribute(J),w===null)switch(typeof z){case"undefined":case"function":case"symbol":case"boolean":return}else if(z!=null)switch(typeof z){case"function":case"symbol":case"boolean":break;default:if(qw(z,$),J=nZ(""+z),w===J)return}h1($,w,z,H)}function pN(w,$,J,z){for(var W={},H=new Set,U=w.attributes,N=0;N<U.length;N++)switch(U[N].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:H.add(U[N].name)}if(rZ($)){for(var b in J)if(J.hasOwnProperty(b)){var V=J[b];if(V!=null){if(v9.hasOwnProperty(b))typeof V!=="function"&&D4(b,V);else if(J.suppressHydrationWarning!==!0)switch(b){case"children":typeof V!=="string"&&typeof V!=="number"||h1("children",w.textContent,V,W);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":U=w.innerHTML,V=V?V.__html:void 0,V!=null&&(V=fN(w,V),h1(b,U,V,W));continue;case"style":H.delete(b),mN(w,V,W);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":H.delete(b.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",b);continue;case"className":H.delete("class"),U=H1(w,"class",V),h1("className",U,V,W);continue;default:z.context===T6&&$!=="svg"&&$!=="math"?H.delete(b.toLowerCase()):H.delete(b),U=H1(w,b,V),h1(b,U,V,W)}}}}else for(V in J)if(J.hasOwnProperty(V)&&(b=J[V],b!=null)){if(v9.hasOwnProperty(V))typeof b!=="function"&&D4(V,b);else if(J.suppressHydrationWarning!==!0)switch(V){case"children":typeof b!=="string"&&typeof b!=="number"||h1("children",w.textContent,b,W);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":U=w.innerHTML,b=b?b.__html:void 0,b!=null&&(b=fN(w,b),U!==b&&(W[V]={__html:U}));continue;case"className":O2(w,V,"class",b,H,W);continue;case"tabIndex":O2(w,V,"tabindex",b,H,W);continue;case"style":H.delete(V),mN(w,b,W);continue;case"multiple":H.delete(V),h1(V,w.multiple,b,W);continue;case"muted":H.delete(V),h1(V,w.muted,b,W);continue;case"autoFocus":H.delete("autofocus"),h1(V,w.autofocus,b,W);continue;case"data":if($!=="object"){H.delete(V),U=w.getAttribute("data"),h1(V,U,b,W);continue}case"src":case"href":if(!(b!==""||$==="a"&&V==="href"||$==="object"&&V==="data")){V==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',V,V):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',V,V);continue}TK(w,V,V,b,H,W);continue;case"action":case"formAction":if(U=w.getAttribute(V),typeof b==="function"){H.delete(V.toLowerCase()),V==="formAction"?(H.delete("name"),H.delete("formenctype"),H.delete("formmethod"),H.delete("formtarget")):(H.delete("enctype"),H.delete("method"),H.delete("target"));continue}else if(U===Gj){H.delete(V.toLowerCase()),h1(V,"function",b,W);continue}TK(w,V,V.toLowerCase(),b,H,W);continue;case"xlinkHref":TK(w,V,"xlink:href",b,H,W);continue;case"contentEditable":MK(w,V,"contenteditable",b,H,W);continue;case"spellCheck":MK(w,V,"spellcheck",b,H,W);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":MK(w,V,V,b,H,W);continue;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":cN(w,V,V.toLowerCase(),b,H,W);continue;case"capture":case"download":w:{N=w;var h=U=V,f=W;if(H.delete(h),N=N.getAttribute(h),N===null)switch(typeof b){case"undefined":case"function":case"symbol":break w;default:if(b===!1)break w}else if(b!=null)switch(typeof b){case"function":case"symbol":break;case"boolean":if(b===!0&&N==="")break w;break;default:if(qw(b,U),N===""+b)break w}h1(U,N,b,f)}continue;case"cols":case"rows":case"size":case"span":w:{if(N=w,h=U=V,f=W,H.delete(h),N=N.getAttribute(h),N===null)switch(typeof b){case"undefined":case"function":case"symbol":case"boolean":break w;default:if(isNaN(b)||1>b)break w}else if(b!=null)switch(typeof b){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(b)||1>b)&&(qw(b,U),N===""+b))break w}h1(U,N,b,f)}continue;case"rowSpan":uN(w,V,"rowspan",b,H,W);continue;case"start":uN(w,V,V,b,H,W);continue;case"xHeight":O2(w,V,"x-height",b,H,W);continue;case"xlinkActuate":O2(w,V,"xlink:actuate",b,H,W);continue;case"xlinkArcrole":O2(w,V,"xlink:arcrole",b,H,W);continue;case"xlinkRole":O2(w,V,"xlink:role",b,H,W);continue;case"xlinkShow":O2(w,V,"xlink:show",b,H,W);continue;case"xlinkTitle":O2(w,V,"xlink:title",b,H,W);continue;case"xlinkType":O2(w,V,"xlink:type",b,H,W);continue;case"xmlBase":O2(w,V,"xml:base",b,H,W);continue;case"xmlLang":O2(w,V,"xml:lang",b,H,W);continue;case"xmlSpace":O2(w,V,"xml:space",b,H,W);continue;case"inert":b!==""||JQ[V]||(JQ[V]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",V)),cN(w,V,V,b,H,W);continue;default:if(!(2<V.length)||V[0]!=="o"&&V[0]!=="O"||V[1]!=="n"&&V[1]!=="N"){N=l_(V),U=!1,z.context===T6&&$!=="svg"&&$!=="math"?H.delete(N.toLowerCase()):(h=V.toLowerCase(),h=Fz.hasOwnProperty(h)?Fz[h]||null:null,h!==null&&h!==V&&(U=!0,H.delete(h)),H.delete(N));w:if(h=w,f=N,N=b,G4(f))if(h.hasAttribute(f))h=h.getAttribute(f),qw(N,f),N=h===""+N?N:h;else{switch(typeof N){case"function":case"symbol":break w;case"boolean":if(h=f.toLowerCase().slice(0,5),h!=="data-"&&h!=="aria-")break w}N=N===void 0?void 0:null}else N=void 0;U||h1(V,N,b,W)}}}return 0<H.size&&J.suppressHydrationWarning!==!0&&ag(w,H,W),Object.keys(W).length===0?null:W}function sg(w,$){switch(w.length){case 0:return"";case 1:return w[0];case 2:return w[0]+" "+$+" "+w[1];default:return w.slice(0,-1).join(", ")+", "+$+" "+w[w.length-1]}}function lN(w){switch(w){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function tg(){if(typeof performance.getEntriesByType==="function"){for(var w=0,$=0,J=performance.getEntriesByType("resource"),z=0;z<J.length;z++){var W=J[z],H=W.transferSize,U=W.initiatorType,N=W.duration;if(H&&N&&lN(U)){U=0,N=W.responseEnd;for(z+=1;z<J.length;z++){var b=J[z],V=b.startTime;if(V>N)break;var{transferSize:h,initiatorType:f}=b;h&&lN(f)&&(b=b.responseEnd,U+=h*(b<N?1:(N-V)/(b-V)))}if(--z,$+=8*(H+U)/(W.duration/1000),w++,10<w)break}}if(0<w)return $/w/1e6}return navigator.connection&&(w=navigator.connection.downlink,typeof w==="number")?w:5}function s3(w){return w.nodeType===9?w:w.ownerDocument}function iN(w){switch(w){case K$:return m$;case Uz:return YQ;default:return T6}}function rN(w,$){if(w===T6)switch($){case"svg":return m$;case"math":return YQ;default:return T6}return w===m$&&$==="foreignObject"?T6:w}function vK(w,$){return w==="textarea"||w==="noscript"||typeof $.children==="string"||typeof $.children==="number"||typeof $.children==="bigint"||typeof $.dangerouslySetInnerHTML==="object"&&$.dangerouslySetInnerHTML!==null&&$.dangerouslySetInnerHTML.__html!=null}function eg(){var w=window.event;if(w&&w.type==="popstate"){if(w===HB)return!1;return HB=w,!0}return HB=null,!1}function NJ(){var w=window.event;return w&&w!==FX?w.type:null}function LJ(){var w=window.event;return w&&w!==FX?w.timeStamp:-1.1}function wC(w){setTimeout(function(){throw w})}function $C(w,$,J){switch($){case"button":case"input":case"select":case"textarea":J.autoFocus&&w.focus();break;case"img":J.src?w.src=J.src:J.srcSet&&(w.srcset=J.srcSet)}}function ZC(){}function JC(w,$,J,z){og(w,$,J,z),w[_5]=z}function nN(w){iZ(w,"")}function XC(w,$,J){w.nodeValue=J}function aN(w){if(!w.__reactWarnedAboutChildrenConflict){var $=w[_5]||null;if($!==null){var J=b0(w);J!==null&&(typeof $.children==="string"||typeof $.children==="number"?(w.__reactWarnedAboutChildrenConflict=!0,B0(J,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):$.dangerouslySetInnerHTML!=null&&(w.__reactWarnedAboutChildrenConflict=!0,B0(J,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function Z8(w){return w==="head"}function YC(w,$){w.removeChild($)}function zC(w,$){(w.nodeType===9?w.body:w.nodeName==="HTML"?w.ownerDocument.body:w).removeChild($)}function oN(w,$){var J=$,z=0;do{var W=J.nextSibling;if(w.removeChild(J),W&&W.nodeType===8)if(J=W.data,J===UX||J===XQ){if(z===0){w.removeChild(W),Y$($);return}z--}else if(J===BX||J===M8||J===r9||J===d$||J===i9)z++;else if(J===Kj)bJ(w.ownerDocument.documentElement);else if(J===Bj){J=w.ownerDocument.head,bJ(J);for(var H=J.firstChild;H;){var{nextSibling:U,nodeName:N}=H;H[vJ]||N==="SCRIPT"||N==="STYLE"||N==="LINK"&&H.rel.toLowerCase()==="stylesheet"||J.removeChild(H),H=U}}else J===qj&&bJ(w.ownerDocument.body);J=W}while(J);Y$($)}function sN(w,$){var J=w;w=0;do{var z=J.nextSibling;if(J.nodeType===1?$?(J._stashedDisplay=J.style.display,J.style.display="none"):(J.style.display=J._stashedDisplay||"",J.getAttribute("style")===""&&J.removeAttribute("style")):J.nodeType===3&&($?(J._stashedText=J.nodeValue,J.nodeValue=""):J.nodeValue=J._stashedText||""),z&&z.nodeType===8)if(J=z.data,J===UX)if(w===0)break;else w--;else J!==BX&&J!==M8&&J!==r9&&J!==d$||w++;J=z}while(J)}function QC(w){sN(w,!0)}function WC(w){w=w.style,typeof w.setProperty==="function"?w.setProperty("display","none","important"):w.display="none"}function GC(w){w.nodeValue=""}function HC(w){sN(w,!1)}function KC(w,$){$=$[Uj],$=$!==void 0&&$!==null&&$.hasOwnProperty("display")?$.display:null,w.style.display=$==null||typeof $==="boolean"?"":(""+$).trim()}function qC(w,$){w.nodeValue=$}function PK(w){var $=w.firstChild;$&&$.nodeType===10&&($=$.nextSibling);for(;$;){var J=$;switch($=$.nextSibling,J.nodeName){case"HTML":case"HEAD":case"BODY":PK(J),X0(J);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(J.rel.toLowerCase()==="stylesheet")continue}w.removeChild(J)}}function BC(w,$,J,z){for(;w.nodeType===1;){var W=J;if(w.nodeName.toLowerCase()!==$.toLowerCase()){if(!z&&(w.nodeName!=="INPUT"||w.type!=="hidden"))break}else if(!z)if($==="input"&&w.type==="hidden"){qw(W.name,"name");var H=W.name==null?null:""+W.name;if(W.type==="hidden"&&w.getAttribute("name")===H)return w}else return w;else if(!w[vJ])switch($){case"meta":if(!w.hasAttribute("itemprop"))break;return w;case"link":if(H=w.getAttribute("rel"),H==="stylesheet"&&w.hasAttribute("data-precedence"))break;else if(H!==W.rel||w.getAttribute("href")!==(W.href==null||W.href===""?null:W.href)||w.getAttribute("crossorigin")!==(W.crossOrigin==null?null:W.crossOrigin)||w.getAttribute("title")!==(W.title==null?null:W.title))break;return w;case"style":if(w.hasAttribute("data-precedence"))break;return w;case"script":if(H=w.getAttribute("src"),(H!==(W.src==null?null:W.src)||w.getAttribute("type")!==(W.type==null?null:W.type)||w.getAttribute("crossorigin")!==(W.crossOrigin==null?null:W.crossOrigin))&&H&&w.hasAttribute("async")&&!w.hasAttribute("itemprop"))break;return w;default:return w}if(w=w2(w.nextSibling),w===null)break}return null}function UC(w,$,J){if($==="")return null;for(;w.nodeType!==3;){if((w.nodeType!==1||w.nodeName!=="INPUT"||w.type!=="hidden")&&!J)return null;if(w=w2(w.nextSibling),w===null)return null}return w}function tN(w,$){for(;w.nodeType!==8;){if((w.nodeType!==1||w.nodeName!=="INPUT"||w.type!=="hidden")&&!$)return null;if(w=w2(w.nextSibling),w===null)return null}return w}function EK(w){return w.data===M8||w.data===r9}function gK(w){return w.data===d$||w.data===M8&&w.ownerDocument.readyState!==mI}function FC(w,$){var J=w.ownerDocument;if(w.data===r9)w._reactRetry=$;else if(w.data!==M8||J.readyState!==mI)$();else{var z=function(){$(),J.removeEventListener("DOMContentLoaded",z)};J.addEventListener("DOMContentLoaded",z),w._reactRetry=z}}function w2(w){for(;w!=null;w=w.nextSibling){var $=w.nodeType;if($===1||$===3)break;if($===8){if($=w.data,$===BX||$===d$||$===M8||$===r9||$===i9||$===QB||$===dI)break;if($===UX||$===XQ)return null}}return w}function eN(w){if(w.nodeType===1){for(var $=w.nodeName.toLowerCase(),J={},z=w.attributes,W=0;W<z.length;W++){var H=z[W];J[dN(H.name)]=H.name.toLowerCase()==="style"?DK(w):H.value}return{type:$,props:J}}return w.nodeType===8?w.data===i9?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:w.nodeValue}function wL(w,$,J){return J===null||J[Hj]!==!0?(w.nodeValue===$?w=null:($=$8($),w=$8(w.nodeValue)===$?null:w.nodeValue),w):null}function CK(w){w=w.nextSibling;for(var $=0;w;){if(w.nodeType===8){var J=w.data;if(J===UX||J===XQ){if($===0)return w2(w.nextSibling);$--}else J!==BX&&J!==d$&&J!==M8&&J!==r9&&J!==i9||$++}w=w.nextSibling}return null}function $L(w){w=w.previousSibling;for(var $=0;w;){if(w.nodeType===8){var J=w.data;if(J===BX||J===d$||J===M8||J===r9||J===i9){if($===0)return w;$--}else J!==UX&&J!==XQ||$++}w=w.previousSibling}return null}function _C(w){Y$(w)}function OC(w){Y$(w)}function AC(w){Y$(w)}function ZL(w,$,J,z,W){switch(W&&uG(w,z.ancestorInfo),$=s3(J),w){case"html":if(w=$.documentElement,!w)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return w;case"head":if(w=$.head,!w)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return w;case"body":if(w=$.body,!w)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return w;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function NC(w,$,J,z){if(!J[z8]&&b0(J)){var W=J.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",W,W,W)}switch(w){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(W=J.attributes;W.length;)J.removeAttributeNode(W[0]);a1(J,w,$),J[o1]=z,J[_5]=$}function bJ(w){for(var $=w.attributes;$.length;)w.removeAttributeNode($[0]);X0(w)}function t3(w){return typeof w.getRootNode==="function"?w.getRootNode():w.nodeType===9?w:w.ownerDocument}function JL(w,$,J){var z=c$;if(z&&typeof $==="string"&&$){var W=_2($);W='link[rel="'+w+'"][href="'+W+'"]',typeof J==="string"&&(W+='[crossorigin="'+J+'"]'),rI.has(W)||(rI.add(W),w={rel:w,crossOrigin:J,href:$},z.querySelector(W)===null&&($=z.createElement("link"),a1($,"link",w),G0($),z.head.appendChild($)))}}function XL(w,$,J,z){var W=(W=X8.current)?t3(W):null;if(!W)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(w){case"meta":case"title":return null;case"style":return typeof J.precedence==="string"&&typeof J.href==="string"?(J=J$(J.href),$=Zw(W).hoistableStyles,z=$.get(J),z||(z={type:"style",instance:null,count:0,state:null},$.set(J,z)),z):{type:"void",instance:null,count:0,state:null};case"link":if(J.rel==="stylesheet"&&typeof J.href==="string"&&typeof J.precedence==="string"){w=J$(J.href);var H=Zw(W).hoistableStyles,U=H.get(w);if(!U&&(W=W.ownerDocument||W,U={type:"stylesheet",instance:null,count:0,state:{loading:a9,preload:null}},H.set(w,U),(H=W.querySelector(IJ(w)))&&!H._p&&(U.instance=H,U.state.loading=_X|v2),!P2.has(w))){var N={rel:"preload",as:"style",href:J.href,crossOrigin:J.crossOrigin,integrity:J.integrity,media:J.media,hrefLang:J.hrefLang,referrerPolicy:J.referrerPolicy};P2.set(w,N),H||LC(W,w,N,U.state)}if($&&z===null)throw J=`
177
+
178
+ - `+e3($)+`
179
+ + `+e3(J),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+J);return U}if($&&z!==null)throw J=`
180
+
181
+ - `+e3($)+`
182
+ + `+e3(J),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+J);return null;case"script":return $=J.async,J=J.src,typeof J==="string"&&$&&typeof $!=="function"&&typeof $!=="symbol"?(J=X$(J),$=Zw(W).hoistableScripts,z=$.get(J),z||(z={type:"script",instance:null,count:0,state:null},$.set(J,z)),z):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+w+'". this is a bug in React.')}}function e3(w){var $=0,J="<link";return typeof w.rel==="string"?($++,J+=' rel="'+w.rel+'"'):u2.call(w,"rel")&&($++,J+=' rel="'+(w.rel===null?"null":"invalid type "+typeof w.rel)+'"'),typeof w.href==="string"?($++,J+=' href="'+w.href+'"'):u2.call(w,"href")&&($++,J+=' href="'+(w.href===null?"null":"invalid type "+typeof w.href)+'"'),typeof w.precedence==="string"?($++,J+=' precedence="'+w.precedence+'"'):u2.call(w,"precedence")&&($++,J+=" precedence={"+(w.precedence===null?"null":"invalid type "+typeof w.precedence)+"}"),Object.getOwnPropertyNames(w).length>$&&(J+=" ..."),J+" />"}function J$(w){return'href="'+_2(w)+'"'}function IJ(w){return'link[rel="stylesheet"]['+w+"]"}function YL(w){return e0({},w,{"data-precedence":w.precedence,precedence:null})}function LC(w,$,J,z){w.querySelector('link[rel="preload"][as="style"]['+$+"]")?z.loading=_X:($=w.createElement("link"),z.preload=$,$.addEventListener("load",function(){return z.loading|=_X}),$.addEventListener("error",function(){return z.loading|=lI}),a1($,"link",J),G0($),w.head.appendChild($))}function X$(w){return'[src="'+_2(w)+'"]'}function VJ(w){return"script[async]"+w}function zL(w,$,J){if($.count++,$.instance===null)switch($.type){case"style":var z=w.querySelector('style[data-href~="'+_2(J.href)+'"]');if(z)return $.instance=z,G0(z),z;var W=e0({},J,{"data-href":J.href,"data-precedence":J.precedence,href:null,precedence:null});return z=(w.ownerDocument||w).createElement("style"),G0(z),a1(z,"style",W),wz(z,J.precedence,w),$.instance=z;case"stylesheet":W=J$(J.href);var H=w.querySelector(IJ(W));if(H)return $.state.loading|=v2,$.instance=H,G0(H),H;z=YL(J),(W=P2.get(W))&&RK(z,W),H=(w.ownerDocument||w).createElement("link"),G0(H);var U=H;return U._p=new Promise(function(N,b){U.onload=N,U.onerror=b}),a1(H,"link",z),$.state.loading|=v2,wz(H,J.precedence,w),$.instance=H;case"script":if(H=X$(J.src),W=w.querySelector(VJ(H)))return $.instance=W,G0(W),W;if(z=J,W=P2.get(H))z=e0({},J),jK(z,W);return w=w.ownerDocument||w,W=w.createElement("script"),G0(W),a1(W,"link",z),w.head.appendChild(W),$.instance=W;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+$.type+'". this is a bug in React.')}else $.type==="stylesheet"&&($.state.loading&v2)===a9&&(z=$.instance,$.state.loading|=v2,wz(z,J.precedence,w));return $.instance}function wz(w,$,J){for(var z=J.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),W=z.length?z[z.length-1]:null,H=W,U=0;U<z.length;U++){var N=z[U];if(N.dataset.precedence===$)H=N;else if(H!==W)break}H?H.parentNode.insertBefore(w,H.nextSibling):($=J.nodeType===9?J.head:J,$.insertBefore(w,$.firstChild))}function RK(w,$){w.crossOrigin==null&&(w.crossOrigin=$.crossOrigin),w.referrerPolicy==null&&(w.referrerPolicy=$.referrerPolicy),w.title==null&&(w.title=$.title)}function jK(w,$){w.crossOrigin==null&&(w.crossOrigin=$.crossOrigin),w.referrerPolicy==null&&(w.referrerPolicy=$.referrerPolicy),w.integrity==null&&(w.integrity=$.integrity)}function QL(w,$,J){if(zQ===null){var z=new Map,W=zQ=new Map;W.set(J,z)}else W=zQ,z=W.get(J),z||(z=new Map,W.set(J,z));if(z.has(w))return z;z.set(w,null),J=J.getElementsByTagName(w);for(W=0;W<J.length;W++){var H=J[W];if(!(H[vJ]||H[o1]||w==="link"&&H.getAttribute("rel")==="stylesheet")&&H.namespaceURI!==K$){var U=H.getAttribute($)||"";U=w+U;var N=z.get(U);N?N.push(H):z.set(U,[H])}}return z}function WL(w,$,J){w=w.ownerDocument||w,w.head.insertBefore(J,$==="title"?w.querySelector("head > title"):null)}function bC(w,$,J){var z=!J.ancestorInfo.containerTagInScope;if(J.context===m$||$.itemProp!=null)return!z||$.itemProp==null||w!=="meta"&&w!=="title"&&w!=="style"&&w!=="link"&&w!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",w,w),!1;switch(w){case"meta":case"title":return!0;case"style":if(typeof $.precedence!=="string"||typeof $.href!=="string"||$.href===""){z&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof $.rel!=="string"||typeof $.href!=="string"||$.href===""||$.onLoad||$.onError){if($.rel==="stylesheet"&&typeof $.precedence==="string"){w=$.href;var{onError:W,disabled:H}=$;J=[],$.onLoad&&J.push("`onLoad`"),W&&J.push("`onError`"),H!=null&&J.push("`disabled`"),W=sg(J,"and"),W+=J.length===1?" prop":" props",H=J.length===1?"an "+W:"the "+W,J.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',w,H,W)}z&&(typeof $.rel!=="string"||typeof $.href!=="string"||$.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):($.onError||$.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch($.rel){case"stylesheet":return w=$.precedence,$=$.disabled,typeof w!=="string"&&z&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof w==="string"&&$==null;default:return!0}case"script":if(w=$.async&&typeof $.async!=="function"&&typeof $.async!=="symbol",!w||$.onLoad||$.onError||!$.src||typeof $.src!=="string"){z&&(w?$.onLoad||$.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":z&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",w)}return!1}function GL(w){return w.type==="stylesheet"&&(w.state.loading&iI)===a9?!1:!0}function IC(w,$,J,z){if(J.type==="stylesheet"&&(typeof z.media!=="string"||matchMedia(z.media).matches!==!1)&&(J.state.loading&v2)===a9){if(J.instance===null){var W=J$(z.href),H=$.querySelector(IJ(W));if(H){$=H._p,$!==null&&typeof $==="object"&&typeof $.then==="function"&&(w.count++,w=$z.bind(w),$.then(w,w)),J.state.loading|=v2,J.instance=H,G0(H);return}H=$.ownerDocument||$,z=YL(z),(W=P2.get(W))&&RK(z,W),H=H.createElement("link"),G0(H);var U=H;U._p=new Promise(function(N,b){U.onload=N,U.onerror=b}),a1(H,"link",z),J.instance=H}w.stylesheets===null&&(w.stylesheets=new Map),w.stylesheets.set(J,$),($=J.state.preload)&&(J.state.loading&iI)===a9&&(w.count++,J=$z.bind(w),$.addEventListener("load",J),$.addEventListener("error",J))}}function VC(w,$){return w.stylesheets&&w.count===0&&Zz(w,w.stylesheets),0<w.count||0<w.imgCount?function(J){var z=setTimeout(function(){if(w.stylesheets&&Zz(w,w.stylesheets),w.unsuspend){var H=w.unsuspend;w.unsuspend=null,H()}},Oj+$);0<w.imgBytes&&qB===0&&(qB=125*tg()*Nj);var W=setTimeout(function(){if(w.waitingForImages=!1,w.count===0&&(w.stylesheets&&Zz(w,w.stylesheets),w.unsuspend)){var H=w.unsuspend;w.unsuspend=null,H()}},(w.imgBytes>qB?50:Aj)+$);return w.unsuspend=J,function(){w.unsuspend=null,clearTimeout(z),clearTimeout(W)}}:null}function $z(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Zz(this,this.stylesheets);else if(this.unsuspend){var w=this.unsuspend;this.unsuspend=null,w()}}}function Zz(w,$){w.stylesheets=null,w.unsuspend!==null&&(w.count++,QQ=new Map,$.forEach(kC,w),QQ=null,$z.call(w))}function kC(w,$){if(!($.state.loading&v2)){var J=QQ.get(w);if(J)var z=J.get(BB);else{J=new Map,QQ.set(w,J);for(var W=w.querySelectorAll("link[data-precedence],style[data-precedence]"),H=0;H<W.length;H++){var U=W[H];if(U.nodeName==="LINK"||U.getAttribute("media")!=="not all")J.set(U.dataset.precedence,U),z=U}z&&J.set(BB,z)}W=$.instance,U=W.getAttribute("data-precedence"),H=J.get(U)||z,H===z&&J.set(BB,W),J.set(U,W),this.count++,z=$z.bind(this),W.addEventListener("load",z),W.addEventListener("error",z),H?H.parentNode.insertBefore(W,H.nextSibling):(w=w.nodeType===9?w.head:w,w.insertBefore(W,w.firstChild)),$.state.loading|=v2}}function DC(w,$,J,z,W,H,U,N,b){this.tag=1,this.containerInfo=w,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=n9,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Uw(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Uw(0),this.hiddenUpdates=Uw(null),this.identifierPrefix=z,this.onUncaughtError=W,this.onCaughtError=H,this.onRecoverableError=U,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,w=this.pendingUpdatersLaneMap=[];for($=0;31>$;$++)w.push(new Set);this._debugRootType=J?"hydrateRoot()":"createRoot()"}function HL(w,$,J,z,W,H,U,N,b,V,h,f){return w=new DC(w,$,J,U,b,V,h,f,N),$=pR,H===!0&&($|=Y5|l2),$|=l0,H=L(3,null,null,$),w.current=H,H.stateNode=w,$=WH(),b9($),w.pooledCache=$,b9($),H.memoizedState={element:z,isDehydrated:J,cache:$},BH(H),w}function KL(w){if(!w)return H8;return w=H8,w}function SK(w,$,J,z,W,H){if(X5&&typeof X5.onScheduleFiberRoot==="function")try{X5.onScheduleFiberRoot(G$,z,J)}catch(U){P4||(P4=!0,console.error("React instrumentation encountered an error: %o",U))}W=KL(W),z.context===null?z.context=W:z.pendingContext=W,v4&&Z2!==null&&!sI&&(sI=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
183
+
184
+ Check the render method of %s.`,m(Z2)||"Unknown")),z=a6($),z.payload={element:J},H=H===void 0?null:H,H!==null&&(typeof H!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",H),z.callback=H),J=o6(w,z,$),J!==null&&(B4($,"root.render()",null),rw(J,w,$),JJ(J,w,$))}function qL(w,$){if(w=w.memoizedState,w!==null&&w.dehydrated!==null){var J=w.retryLane;w.retryLane=J!==0&&J<$?J:$}}function xK(w,$){qL(w,$),(w=w.alternate)&&qL(w,$)}function BL(w){if(w.tag===13||w.tag===31){var $=J5(w,67108864);$!==null&&rw($,w,67108864),xK(w,67108864)}}function UL(w){if(w.tag===13||w.tag===31){var $=e5(w);$=i5($);var J=J5(w,$);J!==null&&rw(J,w,$),xK(w,$)}}function MC(){return Z2}function TC(w,$,J,z){var W=a.T;a.T=null;var H=Nw.p;try{Nw.p=J2,hK(w,$,J,z)}finally{Nw.p=H,a.T=W}}function vC(w,$,J,z){var W=a.T;a.T=null;var H=Nw.p;try{Nw.p=p2,hK(w,$,J,z)}finally{Nw.p=H,a.T=W}}function hK(w,$,J,z){if(GQ){var W=fK(z);if(W===null)IK(w,$,z,HQ,J),_L(w,z);else if(PC(W,w,$,J,z))z.stopPropagation();else if(_L(w,z),$&4&&-1<bj.indexOf(w)){for(;W!==null;){var H=b0(W);if(H!==null)switch(H.tag){case 3:if(H=H.stateNode,H.current.memoizedState.isDehydrated){var U=Rw(H.pendingLanes);if(U!==0){var N=H;N.pendingLanes|=2;for(N.entangledLanes|=2;U;){var b=1<<31-F5(U);N.entanglements[1]|=b,U&=~b}k4(H),(Bw&(D1|Q2))===m1&&(iz=f1()+DI,OJ(0,!1))}}break;case 31:case 13:N=J5(H,2),N!==null&&rw(N,H,2),w$(),xK(H,2)}if(H=fK(z),H===null&&IK(w,$,z,HQ,J),H===W)break;W=H}W!==null&&z.stopPropagation()}else IK(w,$,z,null,J)}}function fK(w){return w=pG(w),yK(w)}function yK(w){if(HQ=null,w=_0(w),w!==null){var $=v(w);if($===null)w=null;else{var J=$.tag;if(J===13){if(w=P($),w!==null)return w;w=null}else if(J===31){if(w=E($),w!==null)return w;w=null}else if(J===3){if($.stateNode.current.memoizedState.isDehydrated)return $.tag===3?$.stateNode.containerInfo:null;w=null}else $!==w&&(w=null)}}return HQ=w,null}function FL(w){switch(w){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 J2;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 p2;case"message":switch(fC()){case tK:return J2;case eK:return p2;case W$:case yC:return g4;case wq:return qz;default:return g4}default:return g4}}function _L(w,$){switch(w){case"focusin":case"focusout":T8=null;break;case"dragenter":case"dragleave":v8=null;break;case"mouseover":case"mouseout":P8=null;break;case"pointerover":case"pointerout":AX.delete($.pointerId);break;case"gotpointercapture":case"lostpointercapture":NX.delete($.pointerId)}}function kJ(w,$,J,z,W,H){if(w===null||w.nativeEvent!==H)return w={blockedOn:$,domEventName:J,eventSystemFlags:z,nativeEvent:H,targetContainers:[W]},$!==null&&($=b0($),$!==null&&BL($)),w;return w.eventSystemFlags|=z,$=w.targetContainers,W!==null&&$.indexOf(W)===-1&&$.push(W),w}function PC(w,$,J,z,W){switch($){case"focusin":return T8=kJ(T8,w,$,J,z,W),!0;case"dragenter":return v8=kJ(v8,w,$,J,z,W),!0;case"mouseover":return P8=kJ(P8,w,$,J,z,W),!0;case"pointerover":var H=W.pointerId;return AX.set(H,kJ(AX.get(H)||null,w,$,J,z,W)),!0;case"gotpointercapture":return H=W.pointerId,NX.set(H,kJ(NX.get(H)||null,w,$,J,z,W)),!0}return!1}function OL(w){var $=_0(w.target);if($!==null){var J=v($);if(J!==null){if($=J.tag,$===13){if($=P(J),$!==null){w.blockedOn=$,w0(w.priority,function(){UL(J)});return}}else if($===31){if($=E(J),$!==null){w.blockedOn=$,w0(w.priority,function(){UL(J)});return}}else if($===3&&J.stateNode.current.memoizedState.isDehydrated){w.blockedOn=J.tag===3?J.stateNode.containerInfo:null;return}}}w.blockedOn=null}function Jz(w){if(w.blockedOn!==null)return!1;for(var $=w.targetContainers;0<$.length;){var J=fK(w.nativeEvent);if(J===null){J=w.nativeEvent;var z=new J.constructor(J.type,J),W=z;PJ!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),PJ=W,J.target.dispatchEvent(z),PJ===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),PJ=null}else return $=b0(J),$!==null&&BL($),w.blockedOn=J,!1;$.shift()}return!0}function AL(w,$,J){Jz(w)&&J.delete($)}function EC(){UB=!1,T8!==null&&Jz(T8)&&(T8=null),v8!==null&&Jz(v8)&&(v8=null),P8!==null&&Jz(P8)&&(P8=null),AX.forEach(AL),NX.forEach(AL)}function Xz(w,$){w.blockedOn===$&&(w.blockedOn=null,UB||(UB=!0,Fw.unstable_scheduleCallback(Fw.unstable_NormalPriority,EC)))}function NL(w){KQ!==w&&(KQ=w,Fw.unstable_scheduleCallback(Fw.unstable_NormalPriority,function(){KQ===w&&(KQ=null);for(var $=0;$<w.length;$+=3){var J=w[$],z=w[$+1],W=w[$+2];if(typeof z!=="function")if(yK(z||J)===null)continue;else break;var H=b0(J);H!==null&&(w.splice($,3),$-=3,J={pending:!0,data:W,method:J.method,action:z},Object.freeze(J),yH(H,J,z,W))}}))}function Y$(w){function $(b){return Xz(b,w)}T8!==null&&Xz(T8,w),v8!==null&&Xz(v8,w),P8!==null&&Xz(P8,w),AX.forEach($),NX.forEach($);for(var J=0;J<E8.length;J++){var z=E8[J];z.blockedOn===w&&(z.blockedOn=null)}for(;0<E8.length&&(J=E8[0],J.blockedOn===null);)OL(J),J.blockedOn===null&&E8.shift();if(J=(w.ownerDocument||w).$$reactFormReplay,J!=null)for(z=0;z<J.length;z+=3){var W=J[z],H=J[z+1],U=W[_5]||null;if(typeof H==="function")U||NL(J);else if(U){var N=null;if(H&&H.hasAttribute("formAction")){if(W=H,U=H[_5]||null)N=U.formAction;else if(yK(W)!==null)continue}else N=U.action;typeof N==="function"?J[z+1]=N:(J.splice(z,3),z-=3),NL(J)}}}function LL(){function w(H){H.canIntercept&&H.info==="react-transition"&&H.intercept({handler:function(){return new Promise(function(U){return W=U})},focusReset:"manual",scroll:"manual"})}function $(){W!==null&&(W(),W=null),z||setTimeout(J,20)}function J(){if(!z&&!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 z=!1,W=null;return navigation.addEventListener("navigate",w),navigation.addEventListener("navigatesuccess",$),navigation.addEventListener("navigateerror",$),setTimeout(J,100),function(){z=!0,navigation.removeEventListener("navigate",w),navigation.removeEventListener("navigatesuccess",$),navigation.removeEventListener("navigateerror",$),W!==null&&(W(),W=null)}}}function dK(w){this._internalRoot=w}function Yz(w){this._internalRoot=w}function bL(w){w[z8]&&(w._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var e0=Object.assign,gC=Symbol.for("react.element"),M4=Symbol.for("react.transitional.element"),z$=Symbol.for("react.portal"),Q$=Symbol.for("react.fragment"),zz=Symbol.for("react.strict_mode"),mK=Symbol.for("react.profiler"),cK=Symbol.for("react.consumer"),T4=Symbol.for("react.context"),DJ=Symbol.for("react.forward_ref"),uK=Symbol.for("react.suspense"),pK=Symbol.for("react.suspense_list"),Qz=Symbol.for("react.memo"),$2=Symbol.for("react.lazy"),lK=Symbol.for("react.activity"),CC=Symbol.for("react.memo_cache_sentinel"),IL=Symbol.iterator,RC=Symbol.for("react.client.reference"),V1=Array.isArray,a=u$.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Nw=_B.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,jC=Object.freeze({pending:!1,data:null,method:null,action:null}),iK=[],rK=[],B6=-1,J8=$0(null),MJ=$0(null),X8=$0(null),Wz=$0(null),TJ=0,VL,kL,DL,ML,TL,vL,PL;C.__reactDisabledLog=!0;var nK,EL,aK=!1,oK=new(typeof WeakMap==="function"?WeakMap:Map),Z2=null,v4=!1,u2=Object.prototype.hasOwnProperty,sK=Fw.unstable_scheduleCallback,SC=Fw.unstable_cancelCallback,xC=Fw.unstable_shouldYield,hC=Fw.unstable_requestPaint,f1=Fw.unstable_now,fC=Fw.unstable_getCurrentPriorityLevel,tK=Fw.unstable_ImmediatePriority,eK=Fw.unstable_UserBlockingPriority,W$=Fw.unstable_NormalPriority,yC=Fw.unstable_LowPriority,wq=Fw.unstable_IdlePriority,dC=Fw.log,mC=Fw.unstable_setDisableYieldValue,G$=null,X5=null,P4=!1,E4=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",F5=Math.clz32?Math.clz32:p6,cC=Math.log,uC=Math.LN2,Gz=256,Hz=262144,Kz=4194304,J2=2,p2=8,g4=32,qz=268435456,Y8=Math.random().toString(36).slice(2),o1="__reactFiber$"+Y8,_5="__reactProps$"+Y8,z8="__reactContainer$"+Y8,$q="__reactEvents$"+Y8,pC="__reactListeners$"+Y8,lC="__reactHandles$"+Y8,gL="__reactResources$"+Y8,vJ="__reactMarker$"+Y8,CL=new Set,v9={},Zq={},iC={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},rC=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]*$"),RL={},jL={},nC=/[\n"\\]/g,SL=!1,xL=!1,hL=!1,fL=!1,yL=!1,dL=!1,mL=["value","defaultValue"],cL=!1,uL=/["'&<>\n\t]|^\s|\s$/,aC="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),pL="applet caption html table td th marquee object template foreignObject desc title".split(" "),oC=pL.concat(["button"]),sC="dd dt li option optgroup p rp rt".split(" "),lL={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},Bz={},Jq={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},iL=/([A-Z])/g,rL=/^ms-/,tC=/^(?:webkit|moz|o)[A-Z]/,eC=/^-ms-/,wR=/-(.)/g,nL=/;\s*$/,H$={},Xq={},aL=!1,oL=!1,sL=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(" ")),Uz="http://www.w3.org/1998/Math/MathML",K$="http://www.w3.org/2000/svg",$R=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"]]),Fz={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},tL={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},q$={},ZR=RegExp("^(aria)-[: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]*$"),JR=RegExp("^(aria)[A-Z][: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]*$"),eL=!1,O5={},wb=/^on./,XR=/^on[^A-Z]/,YR=RegExp("^(aria)-[: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]*$"),zR=RegExp("^(aria)[A-Z][: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]*$"),QR=/^[\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,PJ=null,B$=null,U$=null,Yq=!1,C4=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zq=!1;if(C4)try{var EJ={};Object.defineProperty(EJ,"passive",{get:function(){zq=!0}}),window.addEventListener("test",EJ,EJ),window.removeEventListener("test",EJ,EJ)}catch(w){zq=!1}var Q8=null,Qq=null,_z=null,P9={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(w){return w.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Oz=E5(P9),gJ=e0({},P9,{view:0,detail:0}),WR=E5(gJ),Wq,Gq,CJ,Az=e0({},gJ,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lG,button:0,buttons:0,relatedTarget:function(w){return w.relatedTarget===void 0?w.fromElement===w.srcElement?w.toElement:w.fromElement:w.relatedTarget},movementX:function(w){if("movementX"in w)return w.movementX;return w!==CJ&&(CJ&&w.type==="mousemove"?(Wq=w.screenX-CJ.screenX,Gq=w.screenY-CJ.screenY):Gq=Wq=0,CJ=w),Wq},movementY:function(w){return"movementY"in w?w.movementY:Gq}}),$b=E5(Az),GR=e0({},Az,{dataTransfer:0}),HR=E5(GR),KR=e0({},gJ,{relatedTarget:0}),Hq=E5(KR),qR=e0({},P9,{animationName:0,elapsedTime:0,pseudoElement:0}),BR=E5(qR),UR=e0({},P9,{clipboardData:function(w){return"clipboardData"in w?w.clipboardData:window.clipboardData}}),FR=E5(UR),_R=e0({},P9,{data:0}),Zb=E5(_R),OR=Zb,AR={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},NR={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"},LR={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},bR=e0({},gJ,{key:function(w){if(w.key){var $=AR[w.key]||w.key;if($!=="Unidentified")return $}return w.type==="keypress"?(w=J3(w),w===13?"Enter":String.fromCharCode(w)):w.type==="keydown"||w.type==="keyup"?NR[w.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lG,charCode:function(w){return w.type==="keypress"?J3(w):0},keyCode:function(w){return w.type==="keydown"||w.type==="keyup"?w.keyCode:0},which:function(w){return w.type==="keypress"?J3(w):w.type==="keydown"||w.type==="keyup"?w.keyCode:0}}),IR=E5(bR),VR=e0({},Az,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Jb=E5(VR),kR=e0({},gJ,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lG}),DR=E5(kR),MR=e0({},P9,{propertyName:0,elapsedTime:0,pseudoElement:0}),TR=E5(MR),vR=e0({},Az,{deltaX:function(w){return"deltaX"in w?w.deltaX:("wheelDeltaX"in w)?-w.wheelDeltaX:0},deltaY:function(w){return"deltaY"in w?w.deltaY:("wheelDeltaY"in w)?-w.wheelDeltaY:("wheelDelta"in w)?-w.wheelDelta:0},deltaZ:0,deltaMode:0}),PR=E5(vR),ER=e0({},P9,{newState:0,oldState:0}),gR=E5(ER),CR=[9,13,27,32],Xb=229,Kq=C4&&"CompositionEvent"in window,RJ=null;C4&&"documentMode"in document&&(RJ=document.documentMode);var RR=C4&&"TextEvent"in window&&!RJ,Yb=C4&&(!Kq||RJ&&8<RJ&&11>=RJ),zb=32,Qb=String.fromCharCode(zb),Wb=!1,F$=!1,jR={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},jJ=null,SJ=null,Gb=!1;C4&&(Gb=$g("input")&&(!document.documentMode||9<document.documentMode));var A5=typeof Object.is==="function"?Object.is:Qg,SR=C4&&"documentMode"in document&&11>=document.documentMode,_$=null,qq=null,xJ=null,Bq=!1,O$={animationend:U9("Animation","AnimationEnd"),animationiteration:U9("Animation","AnimationIteration"),animationstart:U9("Animation","AnimationStart"),transitionrun:U9("Transition","TransitionRun"),transitionstart:U9("Transition","TransitionStart"),transitioncancel:U9("Transition","TransitionCancel"),transitionend:U9("Transition","TransitionEnd")},Uq={},Hb={};C4&&(Hb=document.createElement("div").style,("AnimationEvent"in window)||(delete O$.animationend.animation,delete O$.animationiteration.animation,delete O$.animationstart.animation),("TransitionEvent"in window)||delete O$.transitionend.transition);var Kb=F9("animationend"),qb=F9("animationiteration"),Bb=F9("animationstart"),xR=F9("transitionrun"),hR=F9("transitionstart"),fR=F9("transitioncancel"),Ub=F9("transitionend"),Fb=new Map,Fq="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(" ");Fq.push("scrollEnd");var _b=0;if(typeof performance==="object"&&typeof performance.now==="function")var yR=performance,Ob=function(){return yR.now()};else{var dR=Date;Ob=function(){return dR.now()}}var _q=typeof reportError==="function"?reportError:function(w){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var $=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w==="object"&&w!==null&&typeof w.message==="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent($))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",w);return}console.error(w)},mR="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",Nz=0,Oq=1,Aq=2,Nq=3,Lz="– ",bz="+ ",Ab="  ",jw=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",A2="Components ⚛",ww="Scheduler ⚛",Jw="Blocking",W8=!1,U6={color:"primary",properties:null,tooltipText:"",track:A2},G8={start:-0,end:-0,detail:{devtools:U6}},cR=["Changed Props",""],Nb="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",uR=["Changed Props",Nb],hJ=1,F6=2,N2=[],A$=0,Lq=0,H8={};Object.freeze(H8);var L2=null,N$=null,f0=0,pR=1,l0=2,Y5=8,l2=16,lR=32,Lb=!1;try{var bb=Object.preventExtensions({})}catch(w){Lb=!0}var bq=new WeakMap,L$=[],b$=0,Iz=null,fJ=0,b2=[],I2=0,E9=null,_6=1,O6="",s1=null,Sw=null,Yw=!1,R4=!1,X2=null,K8=null,V2=!1,Iq=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),Vq=$0(null),kq=$0(null),Ib={},Vz=null,I$=null,V$=!1,iR=typeof AbortController<"u"?AbortController:function(){var w=[],$=this.signal={aborted:!1,addEventListener:function(J,z){w.push(z)}};this.abort=function(){$.aborted=!0,w.forEach(function(J){return J()})}},rR=Fw.unstable_scheduleCallback,nR=Fw.unstable_NormalPriority,K1={$$typeof:T4,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},q1=Fw.unstable_now,kz=console.createTask?console.createTask:function(){return null},yJ=1,Dz=2,y1=-0,q8=-0,A6=-0,N6=null,N5=-1.1,g9=-0,mw=-0,v0=-1.1,S0=-1.1,fw=null,nw=!1,B8=-0,j4=-1.1,dJ=null,U8=0,Dq=null,Mq=null,C9=-1.1,mJ=null,k$=-1.1,Mz=-1.1,S4=-0,L6=-1.1,k2=-1.1,Tq=0,cJ=null,Vb=null,kb=null,F8=-1.1,R9=null,_8=-1.1,Tz=-1.1,Db=-0,Mb=-0,vz=0,b6=null,Tb=0,uJ=-1.1,Pz=!1,Ez=!1,pJ=null,vq=0,j9=0,D$=null,vb=a.S;a.S=function(w,$){if(VI=f1(),typeof $==="object"&&$!==null&&typeof $.then==="function"){if(0>L6&&0>k2){L6=q1();var J=LJ(),z=NJ();if(J!==_8||z!==R9)_8=-1.1;F8=J,R9=z}Ug(w,$)}vb!==null&&vb(w,$)};var S9=$0(null),i2={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},lJ=[],iJ=[],rJ=[],nJ=[],aJ=[],oJ=[],x9=new Set;i2.recordUnsafeLifecycleWarnings=function(w,$){x9.has(w.type)||(typeof $.componentWillMount==="function"&&$.componentWillMount.__suppressDeprecationWarning!==!0&&lJ.push(w),w.mode&Y5&&typeof $.UNSAFE_componentWillMount==="function"&&iJ.push(w),typeof $.componentWillReceiveProps==="function"&&$.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&rJ.push(w),w.mode&Y5&&typeof $.UNSAFE_componentWillReceiveProps==="function"&&nJ.push(w),typeof $.componentWillUpdate==="function"&&$.componentWillUpdate.__suppressDeprecationWarning!==!0&&aJ.push(w),w.mode&Y5&&typeof $.UNSAFE_componentWillUpdate==="function"&&oJ.push(w))},i2.flushPendingUnsafeLifecycleWarnings=function(){var w=new Set;0<lJ.length&&(lJ.forEach(function(N){w.add(m(N)||"Component"),x9.add(N.type)}),lJ=[]);var $=new Set;0<iJ.length&&(iJ.forEach(function(N){$.add(m(N)||"Component"),x9.add(N.type)}),iJ=[]);var J=new Set;0<rJ.length&&(rJ.forEach(function(N){J.add(m(N)||"Component"),x9.add(N.type)}),rJ=[]);var z=new Set;0<nJ.length&&(nJ.forEach(function(N){z.add(m(N)||"Component"),x9.add(N.type)}),nJ=[]);var W=new Set;0<aJ.length&&(aJ.forEach(function(N){W.add(m(N)||"Component"),x9.add(N.type)}),aJ=[]);var H=new Set;if(0<oJ.length&&(oJ.forEach(function(N){H.add(m(N)||"Component"),x9.add(N.type)}),oJ=[]),0<$.size){var U=F($);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
185
+
186
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
187
+
188
+ Please update the following components: %s`,U)}0<z.size&&(U=F(z),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
189
+
190
+ * Move data fetching code or side effects to componentDidUpdate.
191
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
192
+
193
+ Please update the following components: %s`,U)),0<H.size&&(U=F(H),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
194
+
195
+ * Move data fetching code or side effects to componentDidUpdate.
196
+
197
+ Please update the following components: %s`,U)),0<w.size&&(U=F(w),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
198
+
199
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
200
+ * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
201
+
202
+ Please update the following components: %s`,U)),0<J.size&&(U=F(J),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
203
+
204
+ * Move data fetching code or side effects to componentDidUpdate.
205
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
206
+ * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
207
+
208
+ Please update the following components: %s`,U)),0<W.size&&(U=F(W),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
209
+
210
+ * Move data fetching code or side effects to componentDidUpdate.
211
+ * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
212
+
213
+ Please update the following components: %s`,U))};var gz=new Map,Pb=new Set;i2.recordLegacyContextWarning=function(w,$){var J=null;for(var z=w;z!==null;)z.mode&Y5&&(J=z),z=z.return;J===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!Pb.has(w.type)&&(z=gz.get(J),w.type.contextTypes!=null||w.type.childContextTypes!=null||$!==null&&typeof $.getChildContext==="function")&&(z===void 0&&(z=[],gz.set(J,z)),z.push(w))},i2.flushLegacyContextWarning=function(){gz.forEach(function(w){if(w.length!==0){var $=w[0],J=new Set;w.forEach(function(W){J.add(m(W)||"Component"),Pb.add(W.type)});var z=F(J);B0($,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
214
+
215
+ The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
216
+
217
+ Please update the following components: %s
218
+
219
+ Learn more about this warning here: https://react.dev/link/legacy-context`,z)})}})},i2.discardPendingWarnings=function(){lJ=[],iJ=[],rJ=[],nJ=[],aJ=[],oJ=[],gz=new Map};var Eb={react_stack_bottom_frame:function(w,$,J){var z=v4;v4=!0;try{return w($,J)}finally{v4=z}}},Pq=Eb.react_stack_bottom_frame.bind(Eb),gb={react_stack_bottom_frame:function(w){var $=v4;v4=!0;try{return w.render()}finally{v4=$}}},Cb=gb.react_stack_bottom_frame.bind(gb),Rb={react_stack_bottom_frame:function(w,$){try{$.componentDidMount()}catch(J){Aw(w,w.return,J)}}},Eq=Rb.react_stack_bottom_frame.bind(Rb),jb={react_stack_bottom_frame:function(w,$,J,z,W){try{$.componentDidUpdate(J,z,W)}catch(H){Aw(w,w.return,H)}}},Sb=jb.react_stack_bottom_frame.bind(jb),xb={react_stack_bottom_frame:function(w,$){var J=$.stack;w.componentDidCatch($.value,{componentStack:J!==null?J:""})}},aR=xb.react_stack_bottom_frame.bind(xb),hb={react_stack_bottom_frame:function(w,$,J){try{J.componentWillUnmount()}catch(z){Aw(w,$,z)}}},fb=hb.react_stack_bottom_frame.bind(hb),yb={react_stack_bottom_frame:function(w){var $=w.create;return w=w.inst,$=$(),w.destroy=$}},oR=yb.react_stack_bottom_frame.bind(yb),db={react_stack_bottom_frame:function(w,$,J){try{J()}catch(z){Aw(w,$,z)}}},sR=db.react_stack_bottom_frame.bind(db),mb={react_stack_bottom_frame:function(w){var $=w._init;return $(w._payload)}},tR=mb.react_stack_bottom_frame.bind(mb),M$=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),gq=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),Cz=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),Rz={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},h9=null,sJ=!1,T$=null,tJ=0,i0=null,Cq,cb=Cq=!1,ub={},pb={},lb={};A=function(w,$,J){if(J!==null&&typeof J==="object"&&J._store&&(!J._store.validated&&J.key==null||J._store.validated===2)){if(typeof J._store!=="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");J._store.validated=1;var z=m(w),W=z||"null";if(!ub[W]){ub[W]=!0,J=J._owner,w=w._debugOwner;var H="";w&&typeof w.tag==="number"&&(W=m(w))&&(H=`
220
+
221
+ Check the render method of \``+W+"`."),H||z&&(H=`
222
+
223
+ Check the top-level render call using <`+z+">.");var U="";J!=null&&w!==J&&(z=null,typeof J.tag==="number"?z=m(J):typeof J.name==="string"&&(z=J.name),z&&(U=" It was passed a child from "+z+".")),B0($,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',H,U)})}}};var f9=hO(!0),ib=hO(!1),rb=0,nb=1,ab=2,Rq=3,O8=!1,ob=!1,jq=null,Sq=!1,v$=$0(null),jz=$0(0),Y2=$0(null),D2=null,P$=1,eJ=2,Q1=$0(0),Sz=0,M2=1,L5=2,z2=4,b5=8,E$,sb=new Set,tb=new Set,xq=new Set,eb=new Set,I6=0,c0=null,Pw=null,B1=null,xz=!1,g$=!1,y9=!1,hz=0,wX=0,V6=null,eR=0,wj=25,r=null,T2=null,k6=-1,$X=!1,ZX={readContext:hw,use:e6,useCallback:$1,useContext:$1,useEffect:$1,useImperativeHandle:$1,useLayoutEffect:$1,useInsertionEffect:$1,useMemo:$1,useReducer:$1,useRef:$1,useState:$1,useDebugValue:$1,useDeferredValue:$1,useTransition:$1,useSyncExternalStore:$1,useId:$1,useHostTransitionStatus:$1,useFormState:$1,useActionState:$1,useOptimistic:$1,useMemoCache:$1,useCacheRefresh:$1};ZX.useEffectEvent=$1;var hq=null,wI=null,fq=null,$I=null,x4=null,r2=null,fz=null;hq={readContext:function(w){return hw(w)},use:e6,useCallback:function(w,$){return r="useCallback",t0(),r7($),SH(w,$)},useContext:function(w){return r="useContext",t0(),hw(w)},useEffect:function(w,$){return r="useEffect",t0(),r7($),g3(w,$)},useImperativeHandle:function(w,$,J){return r="useImperativeHandle",t0(),r7(J),jH(w,$,J)},useInsertionEffect:function(w,$){r="useInsertionEffect",t0(),r7($),V9(4,L5,w,$)},useLayoutEffect:function(w,$){return r="useLayoutEffect",t0(),r7($),RH(w,$)},useMemo:function(w,$){r="useMemo",t0(),r7($);var J=a.H;a.H=x4;try{return xH(w,$)}finally{a.H=J}},useReducer:function(w,$,J){r="useReducer",t0();var z=a.H;a.H=x4;try{return kH(w,$,J)}finally{a.H=z}},useRef:function(w){return r="useRef",t0(),gH(w)},useState:function(w){r="useState",t0();var $=a.H;a.H=x4;try{return vH(w)}finally{a.H=$}},useDebugValue:function(){r="useDebugValue",t0()},useDeferredValue:function(w,$){return r="useDeferredValue",t0(),hH(w,$)},useTransition:function(){return r="useTransition",t0(),dH()},useSyncExternalStore:function(w,$,J){return r="useSyncExternalStore",t0(),MH(w,$,J)},useId:function(){return r="useId",t0(),mH()},useFormState:function(w,$){return r="useFormState",t0(),M3(),a7(w,$)},useActionState:function(w,$){return r="useActionState",t0(),a7(w,$)},useOptimistic:function(w){return r="useOptimistic",t0(),PH(w)},useHostTransitionStatus:k9,useMemoCache:I9,useCacheRefresh:function(){return r="useCacheRefresh",t0(),cH()},useEffectEvent:function(w){return r="useEffectEvent",t0(),CH(w)}},wI={readContext:function(w){return hw(w)},use:e6,useCallback:function(w,$){return r="useCallback",W0(),SH(w,$)},useContext:function(w){return r="useContext",W0(),hw(w)},useEffect:function(w,$){return r="useEffect",W0(),g3(w,$)},useImperativeHandle:function(w,$,J){return r="useImperativeHandle",W0(),jH(w,$,J)},useInsertionEffect:function(w,$){r="useInsertionEffect",W0(),V9(4,L5,w,$)},useLayoutEffect:function(w,$){return r="useLayoutEffect",W0(),RH(w,$)},useMemo:function(w,$){r="useMemo",W0();var J=a.H;a.H=x4;try{return xH(w,$)}finally{a.H=J}},useReducer:function(w,$,J){r="useReducer",W0();var z=a.H;a.H=x4;try{return kH(w,$,J)}finally{a.H=z}},useRef:function(w){return r="useRef",W0(),gH(w)},useState:function(w){r="useState",W0();var $=a.H;a.H=x4;try{return vH(w)}finally{a.H=$}},useDebugValue:function(){r="useDebugValue",W0()},useDeferredValue:function(w,$){return r="useDeferredValue",W0(),hH(w,$)},useTransition:function(){return r="useTransition",W0(),dH()},useSyncExternalStore:function(w,$,J){return r="useSyncExternalStore",W0(),MH(w,$,J)},useId:function(){return r="useId",W0(),mH()},useActionState:function(w,$){return r="useActionState",W0(),a7(w,$)},useFormState:function(w,$){return r="useFormState",W0(),M3(),a7(w,$)},useOptimistic:function(w){return r="useOptimistic",W0(),PH(w)},useHostTransitionStatus:k9,useMemoCache:I9,useCacheRefresh:function(){return r="useCacheRefresh",W0(),cH()},useEffectEvent:function(w){return r="useEffectEvent",W0(),CH(w)}},fq={readContext:function(w){return hw(w)},use:e6,useCallback:function(w,$){return r="useCallback",W0(),j3(w,$)},useContext:function(w){return r="useContext",W0(),hw(w)},useEffect:function(w,$){r="useEffect",W0(),g5(2048,b5,w,$)},useImperativeHandle:function(w,$,J){return r="useImperativeHandle",W0(),R3(w,$,J)},useInsertionEffect:function(w,$){return r="useInsertionEffect",W0(),g5(4,L5,w,$)},useLayoutEffect:function(w,$){return r="useLayoutEffect",W0(),g5(4,z2,w,$)},useMemo:function(w,$){r="useMemo",W0();var J=a.H;a.H=r2;try{return S3(w,$)}finally{a.H=J}},useReducer:function(w,$,J){r="useReducer",W0();var z=a.H;a.H=r2;try{return n7(w,$,J)}finally{a.H=z}},useRef:function(){return r="useRef",W0(),Iw().memoizedState},useState:function(){r="useState",W0();var w=a.H;a.H=r2;try{return n7(m2)}finally{a.H=w}},useDebugValue:function(){r="useDebugValue",W0()},useDeferredValue:function(w,$){return r="useDeferredValue",W0(),YA(w,$)},useTransition:function(){return r="useTransition",W0(),KA()},useSyncExternalStore:function(w,$,J){return r="useSyncExternalStore",W0(),v3(w,$,J)},useId:function(){return r="useId",W0(),Iw().memoizedState},useFormState:function(w){return r="useFormState",W0(),M3(),P3(w)},useActionState:function(w){return r="useActionState",W0(),P3(w)},useOptimistic:function(w,$){return r="useOptimistic",W0(),aO(w,$)},useHostTransitionStatus:k9,useMemoCache:I9,useCacheRefresh:function(){return r="useCacheRefresh",W0(),Iw().memoizedState},useEffectEvent:function(w){return r="useEffectEvent",W0(),C3(w)}},$I={readContext:function(w){return hw(w)},use:e6,useCallback:function(w,$){return r="useCallback",W0(),j3(w,$)},useContext:function(w){return r="useContext",W0(),hw(w)},useEffect:function(w,$){r="useEffect",W0(),g5(2048,b5,w,$)},useImperativeHandle:function(w,$,J){return r="useImperativeHandle",W0(),R3(w,$,J)},useInsertionEffect:function(w,$){return r="useInsertionEffect",W0(),g5(4,L5,w,$)},useLayoutEffect:function(w,$){return r="useLayoutEffect",W0(),g5(4,z2,w,$)},useMemo:function(w,$){r="useMemo",W0();var J=a.H;a.H=fz;try{return S3(w,$)}finally{a.H=J}},useReducer:function(w,$,J){r="useReducer",W0();var z=a.H;a.H=fz;try{return QJ(w,$,J)}finally{a.H=z}},useRef:function(){return r="useRef",W0(),Iw().memoizedState},useState:function(){r="useState",W0();var w=a.H;a.H=fz;try{return QJ(m2)}finally{a.H=w}},useDebugValue:function(){r="useDebugValue",W0()},useDeferredValue:function(w,$){return r="useDeferredValue",W0(),zA(w,$)},useTransition:function(){return r="useTransition",W0(),qA()},useSyncExternalStore:function(w,$,J){return r="useSyncExternalStore",W0(),v3(w,$,J)},useId:function(){return r="useId",W0(),Iw().memoizedState},useFormState:function(w){return r="useFormState",W0(),M3(),E3(w)},useActionState:function(w){return r="useActionState",W0(),E3(w)},useOptimistic:function(w,$){return r="useOptimistic",W0(),sO(w,$)},useHostTransitionStatus:k9,useMemoCache:I9,useCacheRefresh:function(){return r="useCacheRefresh",W0(),Iw().memoizedState},useEffectEvent:function(w){return r="useEffectEvent",W0(),C3(w)}},x4={readContext:function(w){return _(),hw(w)},use:function(w){return B(),e6(w)},useCallback:function(w,$){return r="useCallback",B(),t0(),SH(w,$)},useContext:function(w){return r="useContext",B(),t0(),hw(w)},useEffect:function(w,$){return r="useEffect",B(),t0(),g3(w,$)},useImperativeHandle:function(w,$,J){return r="useImperativeHandle",B(),t0(),jH(w,$,J)},useInsertionEffect:function(w,$){r="useInsertionEffect",B(),t0(),V9(4,L5,w,$)},useLayoutEffect:function(w,$){return r="useLayoutEffect",B(),t0(),RH(w,$)},useMemo:function(w,$){r="useMemo",B(),t0();var J=a.H;a.H=x4;try{return xH(w,$)}finally{a.H=J}},useReducer:function(w,$,J){r="useReducer",B(),t0();var z=a.H;a.H=x4;try{return kH(w,$,J)}finally{a.H=z}},useRef:function(w){return r="useRef",B(),t0(),gH(w)},useState:function(w){r="useState",B(),t0();var $=a.H;a.H=x4;try{return vH(w)}finally{a.H=$}},useDebugValue:function(){r="useDebugValue",B(),t0()},useDeferredValue:function(w,$){return r="useDeferredValue",B(),t0(),hH(w,$)},useTransition:function(){return r="useTransition",B(),t0(),dH()},useSyncExternalStore:function(w,$,J){return r="useSyncExternalStore",B(),t0(),MH(w,$,J)},useId:function(){return r="useId",B(),t0(),mH()},useFormState:function(w,$){return r="useFormState",B(),t0(),a7(w,$)},useActionState:function(w,$){return r="useActionState",B(),t0(),a7(w,$)},useOptimistic:function(w){return r="useOptimistic",B(),t0(),PH(w)},useMemoCache:function(w){return B(),I9(w)},useHostTransitionStatus:k9,useCacheRefresh:function(){return r="useCacheRefresh",t0(),cH()},useEffectEvent:function(w){return r="useEffectEvent",B(),t0(),CH(w)}},r2={readContext:function(w){return _(),hw(w)},use:function(w){return B(),e6(w)},useCallback:function(w,$){return r="useCallback",B(),W0(),j3(w,$)},useContext:function(w){return r="useContext",B(),W0(),hw(w)},useEffect:function(w,$){r="useEffect",B(),W0(),g5(2048,b5,w,$)},useImperativeHandle:function(w,$,J){return r="useImperativeHandle",B(),W0(),R3(w,$,J)},useInsertionEffect:function(w,$){return r="useInsertionEffect",B(),W0(),g5(4,L5,w,$)},useLayoutEffect:function(w,$){return r="useLayoutEffect",B(),W0(),g5(4,z2,w,$)},useMemo:function(w,$){r="useMemo",B(),W0();var J=a.H;a.H=r2;try{return S3(w,$)}finally{a.H=J}},useReducer:function(w,$,J){r="useReducer",B(),W0();var z=a.H;a.H=r2;try{return n7(w,$,J)}finally{a.H=z}},useRef:function(){return r="useRef",B(),W0(),Iw().memoizedState},useState:function(){r="useState",B(),W0();var w=a.H;a.H=r2;try{return n7(m2)}finally{a.H=w}},useDebugValue:function(){r="useDebugValue",B(),W0()},useDeferredValue:function(w,$){return r="useDeferredValue",B(),W0(),YA(w,$)},useTransition:function(){return r="useTransition",B(),W0(),KA()},useSyncExternalStore:function(w,$,J){return r="useSyncExternalStore",B(),W0(),v3(w,$,J)},useId:function(){return r="useId",B(),W0(),Iw().memoizedState},useFormState:function(w){return r="useFormState",B(),W0(),P3(w)},useActionState:function(w){return r="useActionState",B(),W0(),P3(w)},useOptimistic:function(w,$){return r="useOptimistic",B(),W0(),aO(w,$)},useMemoCache:function(w){return B(),I9(w)},useHostTransitionStatus:k9,useCacheRefresh:function(){return r="useCacheRefresh",W0(),Iw().memoizedState},useEffectEvent:function(w){return r="useEffectEvent",B(),W0(),C3(w)}},fz={readContext:function(w){return _(),hw(w)},use:function(w){return B(),e6(w)},useCallback:function(w,$){return r="useCallback",B(),W0(),j3(w,$)},useContext:function(w){return r="useContext",B(),W0(),hw(w)},useEffect:function(w,$){r="useEffect",B(),W0(),g5(2048,b5,w,$)},useImperativeHandle:function(w,$,J){return r="useImperativeHandle",B(),W0(),R3(w,$,J)},useInsertionEffect:function(w,$){return r="useInsertionEffect",B(),W0(),g5(4,L5,w,$)},useLayoutEffect:function(w,$){return r="useLayoutEffect",B(),W0(),g5(4,z2,w,$)},useMemo:function(w,$){r="useMemo",B(),W0();var J=a.H;a.H=r2;try{return S3(w,$)}finally{a.H=J}},useReducer:function(w,$,J){r="useReducer",B(),W0();var z=a.H;a.H=r2;try{return QJ(w,$,J)}finally{a.H=z}},useRef:function(){return r="useRef",B(),W0(),Iw().memoizedState},useState:function(){r="useState",B(),W0();var w=a.H;a.H=r2;try{return QJ(m2)}finally{a.H=w}},useDebugValue:function(){r="useDebugValue",B(),W0()},useDeferredValue:function(w,$){return r="useDeferredValue",B(),W0(),zA(w,$)},useTransition:function(){return r="useTransition",B(),W0(),qA()},useSyncExternalStore:function(w,$,J){return r="useSyncExternalStore",B(),W0(),v3(w,$,J)},useId:function(){return r="useId",B(),W0(),Iw().memoizedState},useFormState:function(w){return r="useFormState",B(),W0(),E3(w)},useActionState:function(w){return r="useActionState",B(),W0(),E3(w)},useOptimistic:function(w,$){return r="useOptimistic",B(),W0(),sO(w,$)},useMemoCache:function(w){return B(),I9(w)},useHostTransitionStatus:k9,useCacheRefresh:function(){return r="useCacheRefresh",W0(),Iw().memoizedState},useEffectEvent:function(w){return r="useEffectEvent",B(),W0(),C3(w)}};var ZI={},JI=new Set,XI=new Set,YI=new Set,zI=new Set,QI=new Set,WI=new Set,GI=new Set,HI=new Set,KI=new Set,qI=new Set;Object.freeze(ZI);var yq={enqueueSetState:function(w,$,J){w=w._reactInternals;var z=e5(w),W=a6(z);W.payload=$,J!==void 0&&J!==null&&(pH(J),W.callback=J),$=o6(w,W,z),$!==null&&(B4(z,"this.setState()",w),rw($,w,z),JJ($,w,z))},enqueueReplaceState:function(w,$,J){w=w._reactInternals;var z=e5(w),W=a6(z);W.tag=nb,W.payload=$,J!==void 0&&J!==null&&(pH(J),W.callback=J),$=o6(w,W,z),$!==null&&(B4(z,"this.replaceState()",w),rw($,w,z),JJ($,w,z))},enqueueForceUpdate:function(w,$){w=w._reactInternals;var J=e5(w),z=a6(J);z.tag=ab,$!==void 0&&$!==null&&(pH($),z.callback=$),$=o6(w,z,J),$!==null&&(B4(J,"this.forceUpdate()",w),rw($,w,J),JJ($,w,J))}},C$=null,dq=null,mq=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),U1=!1,BI={},UI={},FI={},_I={},R$=!1,OI={},yz={},cq={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},AI=!1,NI=null;NI=new Set;var D6=!1,F1=!1,uq=!1,LI=typeof WeakSet==="function"?WeakSet:Set,d1=null,j$=null,S$=null,_1=null,j5=!1,n2=null,k1=!1,JX=8192,$j={getCacheForType:function(w){var $=hw(K1),J=$.data.get(w);return J===void 0&&(J=w(),$.data.set(w,J)),J},cacheSignal:function(){return hw(K1).controller.signal},getOwner:function(){return Z2}};if(typeof Symbol==="function"&&Symbol.for){var XX=Symbol.for;XX("selector.component"),XX("selector.has_pseudo_class"),XX("selector.role"),XX("selector.test_id"),XX("selector.text")}var Zj=[],Jj=typeof WeakMap==="function"?WeakMap:Map,m1=0,D1=2,Q2=4,M6=0,YX=1,d9=2,dz=3,A8=4,mz=6,bI=5,Bw=m1,Ew=null,o0=null,r0=0,S5=0,cz=1,m9=2,zX=3,II=4,pq=5,QX=6,uz=7,lq=8,c9=9,Vw=S5,W2=null,N8=!1,x$=!1,iq=!1,h4=0,cw=M6,L8=0,b8=0,rq=0,x5=0,u9=0,WX=null,I5=null,pz=!1,lz=0,VI=0,kI=300,iz=1/0,DI=500,GX=null,Z1=null,I8=null,rz=0,nq=1,aq=2,MI=3,V8=0,TI=1,vI=2,PI=3,EI=4,nz=5,O1=0,k8=null,h$=null,a2=0,oq=0,sq=-0,tq=null,gI=null,CI=null,o2=rz,RI=null,Xj=50,HX=0,eq=null,wB=!1,az=!1,Yj=50,p9=0,KX=null,f$=!1,oz=null,jI=!1,SI=new Set,zj={},sz=null,y$=null,$B=!1,ZB=!1,tz=!1,JB=!1,D8=0,XB={};(function(){for(var w=0;w<Fq.length;w++){var $=Fq[w],J=$.toLowerCase();$=$[0].toUpperCase()+$.slice(1),d2(J,"on"+$)}d2(Kb,"onAnimationEnd"),d2(qb,"onAnimationIteration"),d2(Bb,"onAnimationStart"),d2("dblclick","onDoubleClick"),d2("focusin","onFocus"),d2("focusout","onBlur"),d2(xR,"onTransitionRun"),d2(hR,"onTransitionStart"),d2(fR,"onTransitionCancel"),d2(Ub,"onTransitionEnd")})(),Ow("onMouseEnter",["mouseout","mouseover"]),Ow("onMouseLeave",["mouseout","mouseover"]),Ow("onPointerEnter",["pointerout","pointerover"]),Ow("onPointerLeave",["pointerout","pointerover"]),Gw("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Gw("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Gw("onBeforeInput",["compositionend","keypress","textInput","paste"]),Gw("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Gw("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Gw("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var qX="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(" "),YB=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(qX)),ez="_reactListening"+Math.random().toString(36).slice(2),xI=!1,hI=!1,wQ=!1,fI=!1,$Q=!1,ZQ=!1,yI=!1,JQ={},Qj=/\r\n?/g,Wj=/\u0000|\uFFFD/g,l9="http://www.w3.org/1999/xlink",zB="http://www.w3.org/XML/1998/namespace",Gj="javascript:throw new Error('React form unexpectedly submitted.')",Hj="suppressHydrationWarning",i9="&",XQ="/&",BX="$",UX="/$",M8="$?",r9="$~",d$="$!",Kj="html",qj="body",Bj="head",QB="F!",dI="F",mI="loading",Uj="style",T6=0,m$=1,YQ=2,WB=null,GB=null,cI={dialog:!0,webview:!0},HB=null,FX=void 0,uI=typeof setTimeout==="function"?setTimeout:void 0,Fj=typeof clearTimeout==="function"?clearTimeout:void 0,n9=-1,pI=typeof Promise==="function"?Promise:void 0,_j=typeof queueMicrotask==="function"?queueMicrotask:typeof pI<"u"?function(w){return pI.resolve(null).then(w).catch(wC)}:uI,KB=null,a9=0,_X=1,lI=2,iI=3,v2=4,P2=new Map,rI=new Set,v6=Nw.d;Nw.d={f:function(){var w=v6.f(),$=w$();return w||$},r:function(w){var $=b0(w);$!==null&&$.tag===5&&$.type==="form"?HA($):v6.r(w)},D:function(w){v6.D(w),JL("dns-prefetch",w,null)},C:function(w,$){v6.C(w,$),JL("preconnect",w,$)},L:function(w,$,J){v6.L(w,$,J);var z=c$;if(z&&w&&$){var W='link[rel="preload"][as="'+_2($)+'"]';$==="image"?J&&J.imageSrcSet?(W+='[imagesrcset="'+_2(J.imageSrcSet)+'"]',typeof J.imageSizes==="string"&&(W+='[imagesizes="'+_2(J.imageSizes)+'"]')):W+='[href="'+_2(w)+'"]':W+='[href="'+_2(w)+'"]';var H=W;switch($){case"style":H=J$(w);break;case"script":H=X$(w)}P2.has(H)||(w=e0({rel:"preload",href:$==="image"&&J&&J.imageSrcSet?void 0:w,as:$},J),P2.set(H,w),z.querySelector(W)!==null||$==="style"&&z.querySelector(IJ(H))||$==="script"&&z.querySelector(VJ(H))||($=z.createElement("link"),a1($,"link",w),G0($),z.head.appendChild($)))}},m:function(w,$){v6.m(w,$);var J=c$;if(J&&w){var z=$&&typeof $.as==="string"?$.as:"script",W='link[rel="modulepreload"][as="'+_2(z)+'"][href="'+_2(w)+'"]',H=W;switch(z){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":H=X$(w)}if(!P2.has(H)&&(w=e0({rel:"modulepreload",href:w},$),P2.set(H,w),J.querySelector(W)===null)){switch(z){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(J.querySelector(VJ(H)))return}z=J.createElement("link"),a1(z,"link",w),G0(z),J.head.appendChild(z)}}},X:function(w,$){v6.X(w,$);var J=c$;if(J&&w){var z=Zw(J).hoistableScripts,W=X$(w),H=z.get(W);H||(H=J.querySelector(VJ(W)),H||(w=e0({src:w,async:!0},$),($=P2.get(W))&&jK(w,$),H=J.createElement("script"),G0(H),a1(H,"link",w),J.head.appendChild(H)),H={type:"script",instance:H,count:1,state:null},z.set(W,H))}},S:function(w,$,J){v6.S(w,$,J);var z=c$;if(z&&w){var W=Zw(z).hoistableStyles,H=J$(w);$=$||"default";var U=W.get(H);if(!U){var N={loading:a9,preload:null};if(U=z.querySelector(IJ(H)))N.loading=_X|v2;else{w=e0({rel:"stylesheet",href:w,"data-precedence":$},J),(J=P2.get(H))&&RK(w,J);var b=U=z.createElement("link");G0(b),a1(b,"link",w),b._p=new Promise(function(V,h){b.onload=V,b.onerror=h}),b.addEventListener("load",function(){N.loading|=_X}),b.addEventListener("error",function(){N.loading|=lI}),N.loading|=v2,wz(U,$,z)}U={type:"stylesheet",instance:U,count:1,state:N},W.set(H,U)}}},M:function(w,$){v6.M(w,$);var J=c$;if(J&&w){var z=Zw(J).hoistableScripts,W=X$(w),H=z.get(W);H||(H=J.querySelector(VJ(W)),H||(w=e0({src:w,async:!0,type:"module"},$),($=P2.get(W))&&jK(w,$),H=J.createElement("script"),G0(H),a1(H,"link",w),J.head.appendChild(H)),H={type:"script",instance:H,count:1,state:null},z.set(W,H))}}};var c$=typeof document>"u"?null:document,zQ=null,Oj=60000,Aj=800,Nj=500,qB=0,BB=null,QQ=null,o9=jC,OX={$$typeof:T4,Provider:null,Consumer:null,_currentValue:o9,_currentValue2:o9,_threadCount:0},nI="%c%s%c",aI="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",oI="",WQ=" ",Lj=Function.prototype.bind,sI=!1,tI=null,eI=null,wV=null,$V=null,ZV=null,JV=null,XV=null,YV=null,zV=null,QV=null;tI=function(w,$,J,z){$=Z(w,$),$!==null&&(J=X($.memoizedState,J,0,z),$.memoizedState=J,$.baseState=J,w.memoizedProps=e0({},w.memoizedProps),J=J5(w,2),J!==null&&rw(J,w,2))},eI=function(w,$,J){$=Z(w,$),$!==null&&(J=G($.memoizedState,J,0),$.memoizedState=J,$.baseState=J,w.memoizedProps=e0({},w.memoizedProps),J=J5(w,2),J!==null&&rw(J,w,2))},wV=function(w,$,J,z){$=Z(w,$),$!==null&&(J=Y($.memoizedState,J,z),$.memoizedState=J,$.baseState=J,w.memoizedProps=e0({},w.memoizedProps),J=J5(w,2),J!==null&&rw(J,w,2))},$V=function(w,$,J){w.pendingProps=X(w.memoizedProps,$,0,J),w.alternate&&(w.alternate.pendingProps=w.pendingProps),$=J5(w,2),$!==null&&rw($,w,2)},ZV=function(w,$){w.pendingProps=G(w.memoizedProps,$,0),w.alternate&&(w.alternate.pendingProps=w.pendingProps),$=J5(w,2),$!==null&&rw($,w,2)},JV=function(w,$,J){w.pendingProps=Y(w.memoizedProps,$,J),w.alternate&&(w.alternate.pendingProps=w.pendingProps),$=J5(w,2),$!==null&&rw($,w,2)},XV=function(w){var $=J5(w,2);$!==null&&rw($,w,2)},YV=function(w){var $=l5(),J=J5(w,$);J!==null&&rw(J,w,$)},zV=function(w){q=w},QV=function(w){K=w};var GQ=!0,HQ=null,UB=!1,T8=null,v8=null,P8=null,AX=new Map,NX=new Map,E8=[],bj="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(" "),KQ=null;if(Yz.prototype.render=dK.prototype.render=function(w){var $=this._internalRoot;if($===null)throw Error("Cannot update an unmounted root.");var J=arguments;typeof J[1]==="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):M(J[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof J[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),J=w;var z=$.current,W=e5(z);SK(z,W,J,$,null,null)},Yz.prototype.unmount=dK.prototype.unmount=function(){var w=arguments;if(typeof w[0]==="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),w=this._internalRoot,w!==null){this._internalRoot=null;var $=w.containerInfo;(Bw&(D1|Q2))!==m1&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),SK(w.current,2,null,w,null,null),w$(),$[z8]=null}},Yz.prototype.unstable_scheduleHydration=function(w){if(w){var $=d();w={blockedOn:null,target:w,priority:$};for(var J=0;J<E8.length&&$!==0&&$<E8[J].priority;J++);E8.splice(J,0,w),J===0&&OL(w)}},function(){var w=u$.version;if(w!=="19.2.3")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
224
+ - react: `+(w+`
225
+ - react-dom: 19.2.3
226
+ Learn more: https://react.dev/warnings/version-mismatch`))}(),typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),Nw.findDOMNode=function(w){var $=w._reactInternals;if($===void 0){if(typeof w.render==="function")throw Error("Unable to find node on an unmounted component.");throw w=Object.keys(w).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+w)}return w=l($),w=w!==null?p(w):null,w=w===null?null:w.stateNode,w},!function(){var w={bundleType:1,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:a,reconcilerVersion:"19.2.3"};return w.overrideHookState=tI,w.overrideHookStateDeletePath=eI,w.overrideHookStateRenamePath=wV,w.overrideProps=$V,w.overridePropsDeletePath=ZV,w.overridePropsRenamePath=JV,w.scheduleUpdate=XV,w.scheduleRetry=YV,w.setErrorHandler=zV,w.setSuspenseHandler=QV,w.scheduleRefresh=D,w.scheduleRoot=I,w.setRefreshHandler=T,w.getCurrentFiber=MC,G1(w)}()&&C4&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var WV=window.location.protocol;/^(https?|file):$/.test(WV)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(WV==="file:"?`
227
+ You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}Cj.createRoot=function(w,$){if(!M(w))throw Error("Target container is not a DOM element.");bL(w);var J=!1,z="",W=AA,H=NA,U=LA;return $!==null&&$!==void 0&&($.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof $==="object"&&$!==null&&$.$$typeof===M4&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
228
+
229
+ let root = createRoot(domContainer);
230
+ root.render(<App />);`),$.unstable_strictMode===!0&&(J=!0),$.identifierPrefix!==void 0&&(z=$.identifierPrefix),$.onUncaughtError!==void 0&&(W=$.onUncaughtError),$.onCaughtError!==void 0&&(H=$.onCaughtError),$.onRecoverableError!==void 0&&(U=$.onRecoverableError)),$=HL(w,1,!1,null,null,J,z,null,W,H,U,LL),w[z8]=$.current,bK(w),new dK($)},Cj.hydrateRoot=function(w,$,J){if(!M(w))throw Error("Target container is not a DOM element.");bL(w),$===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var z=!1,W="",H=AA,U=NA,N=LA,b=null;return J!==null&&J!==void 0&&(J.unstable_strictMode===!0&&(z=!0),J.identifierPrefix!==void 0&&(W=J.identifierPrefix),J.onUncaughtError!==void 0&&(H=J.onUncaughtError),J.onCaughtError!==void 0&&(U=J.onCaughtError),J.onRecoverableError!==void 0&&(N=J.onRecoverableError),J.formState!==void 0&&(b=J.formState)),$=HL(w,1,!0,$,J!=null?J:null,z,W,b,H,U,N,LL),$.context=KL(null),J=$.current,z=e5(J),z=i5(z),W=a6(z),W.callback=null,o6(J,W,z),B4(z,"hydrateRoot()",null),J=z,$.current.lanes=J,s0($,J),k4($),w[z8]=$.current,bK(w),new Yz($)},Cj.version="19.2.3",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var FV=f4((nc,UV)=>{var Rj=c(BV());UV.exports=Rj});var Lw=f4((KS)=>{var X7=c(U0());(function(){function Z(C){if(C==null)return null;if(typeof C==="function")return C.$$typeof===m?null:C.displayName||C.name||null;if(typeof C==="string")return C;switch(C){case T:return"Fragment";case v:return"Profiler";case M:return"StrictMode";case l:return"Suspense";case p:return"SuspenseList";case y:return"Activity"}if(typeof C==="object")switch(typeof C.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),C.$$typeof){case D:return"Portal";case E:return C.displayName||"Context";case P:return(C._context.displayName||"Context")+".Consumer";case u:var Q0=C.render;return C=C.displayName,C||(C=Q0.displayName||Q0.name||"",C=C!==""?"ForwardRef("+C+")":"ForwardRef"),C;case n:return Q0=C.displayName||null,Q0!==null?Q0:Z(C.type)||"Memo";case j:Q0=C._payload,C=C._init;try{return Z(C(Q0))}catch(L0){}}return null}function X(C){return""+C}function Y(C){try{X(C);var Q0=!1}catch(O0){Q0=!0}if(Q0){Q0=console;var L0=Q0.error,J0=typeof Symbol==="function"&&Symbol.toStringTag&&C[Symbol.toStringTag]||C.constructor.name||"Object";return L0.call(Q0,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",J0),X(C)}}function Q(C){if(C===T)return"<>";if(typeof C==="object"&&C!==null&&C.$$typeof===j)return"<...>";try{var Q0=Z(C);return Q0?"<"+Q0+">":"<...>"}catch(L0){return"<...>"}}function G(){var C=$0.A;return C===null?null:C.getOwner()}function K(){return Error("react-stack-top-frame")}function q(C){if(t.call(C,"key")){var Q0=Object.getOwnPropertyDescriptor(C,"key").get;if(Q0&&Q0.isReactWarning)return!1}return C.key!==void 0}function B(C,Q0){function L0(){e||(e=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",Q0))}L0.isReactWarning=!0,Object.defineProperty(C,"key",{get:L0,configurable:!0})}function _(){var C=Z(this.type);return Y0[C]||(Y0[C]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),C=this.props.ref,C!==void 0?C:null}function O(C,Q0,L0,J0,O0,R0){var k0=L0.ref;return C={$$typeof:I,type:C,key:Q0,props:L0,_owner:J0},(k0!==void 0?k0:null)!==null?Object.defineProperty(C,"ref",{enumerable:!1,get:_}):Object.defineProperty(C,"ref",{enumerable:!1,value:null}),C._store={},Object.defineProperty(C._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(C,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(C,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:O0}),Object.defineProperty(C,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:R0}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C}function A(C,Q0,L0,J0,O0,R0){var k0=Q0.children;if(k0!==void 0)if(J0)if(s(k0)){for(J0=0;J0<k0.length;J0++)F(k0[J0]);Object.freeze&&Object.freeze(k0)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else F(k0);if(t.call(Q0,"key")){k0=Z(C);var d0=Object.keys(Q0).filter(function(Tw){return Tw!=="key"});J0=0<d0.length?"{key: someKey, "+d0.join(": ..., ")+": ...}":"{key: someKey}",C0[k0+J0]||(d0=0<d0.length?"{"+d0.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
231
+ let props = %s;
232
+ <%s {...props} />
233
+ React keys must be passed directly to JSX without using spread:
234
+ let props = %s;
235
+ <%s key={someKey} {...props} />`,J0,k0,d0,k0),C0[k0+J0]=!0)}if(k0=null,L0!==void 0&&(Y(L0),k0=""+L0),q(Q0)&&(Y(Q0.key),k0=""+Q0.key),"key"in Q0){L0={};for(var x0 in Q0)x0!=="key"&&(L0[x0]=Q0[x0])}else L0=Q0;return k0&&B(L0,typeof C==="function"?C.displayName||C.name||"Unknown":C),O(C,k0,L0,G(),O0,R0)}function F(C){L(C)?C._store&&(C._store.validated=1):typeof C==="object"&&C!==null&&C.$$typeof===j&&(C._payload.status==="fulfilled"?L(C._payload.value)&&C._payload.value._store&&(C._payload.value._store.validated=1):C._store&&(C._store.validated=1))}function L(C){return typeof C==="object"&&C!==null&&C.$$typeof===I}var I=Symbol.for("react.transitional.element"),D=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),E=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),n=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),m=Symbol.for("react.client.reference"),$0=X7.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,t=Object.prototype.hasOwnProperty,s=Array.isArray,M0=console.createTask?console.createTask:function(){return null};X7={react_stack_bottom_frame:function(C){return C()}};var e,Y0={},z0=X7.react_stack_bottom_frame.bind(X7,K)(),Z0=M0(Q(K)),C0={};KS.Fragment=T,KS.jsx=function(C,Q0,L0){var J0=1e4>$0.recentlyCreatedOwnerStacks++;return A(C,Q0,L0,!1,J0?Error("react-stack-top-frame"):z0,J0?M0(Q(C)):Z0)},KS.jsxs=function(C,Q0,L0){var J0=1e4>$0.recentlyCreatedOwnerStacks++;return A(C,Q0,L0,!0,J0?Error("react-stack-top-frame"):z0,J0?M0(Q(C)):Z0)}})()});var Zk=f4((_S)=>{var H2=c(U0());(function(){function Z(L,I){return L===I&&(L!==0||1/L===1/I)||L!==L&&I!==I}function X(L,I){O||H2.startTransition===void 0||(O=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var D=I();if(!A){var T=I();G(D,T)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),A=!0)}T=K({inst:{value:D,getSnapshot:I}});var M=T[0].inst,v=T[1];return B(function(){M.value=D,M.getSnapshot=I,Y(M)&&v({inst:M})},[L,D,I]),q(function(){return Y(M)&&v({inst:M}),L(function(){Y(M)&&v({inst:M})})},[L]),_(D),D}function Y(L){var I=L.getSnapshot;L=L.value;try{var D=I();return!G(L,D)}catch(T){return!0}}function Q(L,I){return I()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var G=typeof Object.is==="function"?Object.is:Z,K=H2.useState,q=H2.useEffect,B=H2.useLayoutEffect,_=H2.useDebugValue,O=!1,A=!1,F=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Q:X;_S.useSyncExternalStore=H2.useSyncExternalStore!==void 0?H2.useSyncExternalStore:F,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var Jk=f4((OS)=>{var C6=c(U0());(function(){function Z(_,O){return _===O&&(_!==0||1/_===1/O)||_!==_&&O!==O}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var X=Zk(),Y=typeof Object.is==="function"?Object.is:Z,Q=X.useSyncExternalStore,G=C6.useRef,K=C6.useEffect,q=C6.useMemo,B=C6.useDebugValue;OS.useSyncExternalStoreWithSelector=function(_,O,A,F,L){var I=G(null);if(I.current===null){var D={hasValue:!1,value:null};I.current=D}else D=I.current;I=q(function(){function M(l){if(!v){if(v=!0,P=l,l=F(l),L!==void 0&&D.hasValue){var p=D.value;if(L(p,l))return E=p}return E=l}if(p=E,Y(P,l))return p;var n=F(l);if(L!==void 0&&L(p,n))return P=l,p;return P=l,E=n}var v=!1,P,E,u=A===void 0?null:A;return[function(){return M(O())},u===null?void 0:function(){return M(u())}]},[O,A,F,L]);var T=Q(_,I[0],I[1]);return K(function(){D.hasValue=!0,D.value=T},[T]),B(T),T},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var m0=f4((yS)=>{var W7=c(U0());(function(){function Z(C){if(C==null)return null;if(typeof C==="function")return C.$$typeof===m?null:C.displayName||C.name||null;if(typeof C==="string")return C;switch(C){case T:return"Fragment";case v:return"Profiler";case M:return"StrictMode";case l:return"Suspense";case p:return"SuspenseList";case y:return"Activity"}if(typeof C==="object")switch(typeof C.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),C.$$typeof){case D:return"Portal";case E:return C.displayName||"Context";case P:return(C._context.displayName||"Context")+".Consumer";case u:var Q0=C.render;return C=C.displayName,C||(C=Q0.displayName||Q0.name||"",C=C!==""?"ForwardRef("+C+")":"ForwardRef"),C;case n:return Q0=C.displayName||null,Q0!==null?Q0:Z(C.type)||"Memo";case j:Q0=C._payload,C=C._init;try{return Z(C(Q0))}catch(L0){}}return null}function X(C){return""+C}function Y(C){try{X(C);var Q0=!1}catch(O0){Q0=!0}if(Q0){Q0=console;var L0=Q0.error,J0=typeof Symbol==="function"&&Symbol.toStringTag&&C[Symbol.toStringTag]||C.constructor.name||"Object";return L0.call(Q0,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",J0),X(C)}}function Q(C){if(C===T)return"<>";if(typeof C==="object"&&C!==null&&C.$$typeof===j)return"<...>";try{var Q0=Z(C);return Q0?"<"+Q0+">":"<...>"}catch(L0){return"<...>"}}function G(){var C=$0.A;return C===null?null:C.getOwner()}function K(){return Error("react-stack-top-frame")}function q(C){if(t.call(C,"key")){var Q0=Object.getOwnPropertyDescriptor(C,"key").get;if(Q0&&Q0.isReactWarning)return!1}return C.key!==void 0}function B(C,Q0){function L0(){e||(e=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",Q0))}L0.isReactWarning=!0,Object.defineProperty(C,"key",{get:L0,configurable:!0})}function _(){var C=Z(this.type);return Y0[C]||(Y0[C]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),C=this.props.ref,C!==void 0?C:null}function O(C,Q0,L0,J0,O0,R0){var k0=L0.ref;return C={$$typeof:I,type:C,key:Q0,props:L0,_owner:J0},(k0!==void 0?k0:null)!==null?Object.defineProperty(C,"ref",{enumerable:!1,get:_}):Object.defineProperty(C,"ref",{enumerable:!1,value:null}),C._store={},Object.defineProperty(C._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(C,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(C,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:O0}),Object.defineProperty(C,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:R0}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C}function A(C,Q0,L0,J0,O0,R0){var k0=Q0.children;if(k0!==void 0)if(J0)if(s(k0)){for(J0=0;J0<k0.length;J0++)F(k0[J0]);Object.freeze&&Object.freeze(k0)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else F(k0);if(t.call(Q0,"key")){k0=Z(C);var d0=Object.keys(Q0).filter(function(Tw){return Tw!=="key"});J0=0<d0.length?"{key: someKey, "+d0.join(": ..., ")+": ...}":"{key: someKey}",C0[k0+J0]||(d0=0<d0.length?"{"+d0.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
236
+ let props = %s;
237
+ <%s {...props} />
238
+ React keys must be passed directly to JSX without using spread:
239
+ let props = %s;
240
+ <%s key={someKey} {...props} />`,J0,k0,d0,k0),C0[k0+J0]=!0)}if(k0=null,L0!==void 0&&(Y(L0),k0=""+L0),q(Q0)&&(Y(Q0.key),k0=""+Q0.key),"key"in Q0){L0={};for(var x0 in Q0)x0!=="key"&&(L0[x0]=Q0[x0])}else L0=Q0;return k0&&B(L0,typeof C==="function"?C.displayName||C.name||"Unknown":C),O(C,k0,L0,G(),O0,R0)}function F(C){L(C)?C._store&&(C._store.validated=1):typeof C==="object"&&C!==null&&C.$$typeof===j&&(C._payload.status==="fulfilled"?L(C._payload.value)&&C._payload.value._store&&(C._payload.value._store.validated=1):C._store&&(C._store.validated=1))}function L(C){return typeof C==="object"&&C!==null&&C.$$typeof===I}var I=Symbol.for("react.transitional.element"),D=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),E=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),n=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),m=Symbol.for("react.client.reference"),$0=W7.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,t=Object.prototype.hasOwnProperty,s=Array.isArray,M0=console.createTask?console.createTask:function(){return null};W7={react_stack_bottom_frame:function(C){return C()}};var e,Y0={},z0=W7.react_stack_bottom_frame.bind(W7,K)(),Z0=M0(Q(K)),C0={};yS.Fragment=T,yS.jsxDEV=function(C,Q0,L0,J0){var O0=1e4>$0.recentlyCreatedOwnerStacks++;return A(C,Q0,L0,J0,O0?Error("react-stack-top-frame"):z0,O0?M0(Q(C)):Z0)}})()});var cE=c(FV(),1);var UQ=new WeakMap,_V=new WeakMap,IX={current:[]},OB=!1,bX=0,LX=new Set,BQ=new Map;function OV(Z){for(let X of Z){if(IX.current.includes(X))continue;IX.current.push(X),X.recompute();let Y=_V.get(X);if(Y)for(let Q of Y){let G=UQ.get(Q);if(!(G==null?void 0:G.length))continue;OV(G)}}}function jj(Z){let X={prevVal:Z.prevState,currentVal:Z.state};for(let Y of Z.listeners)Y(X)}function Sj(Z){let X={prevVal:Z.prevState,currentVal:Z.state};for(let Y of Z.listeners)Y(X)}function FQ(Z){if(bX>0&&!BQ.has(Z))BQ.set(Z,Z.prevState);if(LX.add(Z),bX>0)return;if(OB)return;try{OB=!0;while(LX.size>0){let X=Array.from(LX);LX.clear();for(let Y of X){let Q=BQ.get(Y)??Y.prevState;Y.prevState=Q,jj(Y)}for(let Y of X){let Q=UQ.get(Y);if(!Q)continue;IX.current.push(Y),OV(Q)}for(let Y of X){let Q=UQ.get(Y);if(!Q)continue;for(let G of Q)Sj(G)}}}finally{OB=!1,IX.current=[],BQ.clear()}}function AB(Z){bX++;try{Z()}finally{if(bX--,bX===0){let X=LX.values().next().value;if(X)FQ(X)}}}function AV(Z){return typeof Z==="function"}class _Q{constructor(Z,X){this.listeners=new Set,this.subscribe=(Y)=>{var Q,G;this.listeners.add(Y);let K=(G=(Q=this.options)==null?void 0:Q.onSubscribe)==null?void 0:G.call(Q,Y,this);return()=>{this.listeners.delete(Y),K==null||K()}},this.prevState=Z,this.state=Z,this.options=X}setState(Z){var X,Y,Q;if(this.prevState=this.state,(X=this.options)==null?void 0:X.updateFn)this.state=this.options.updateFn(this.prevState)(Z);else if(AV(Z))this.state=Z(this.prevState);else this.state=Z;(Q=(Y=this.options)==null?void 0:Y.onUpdate)==null||Q.call(Y),FQ(this)}}function LV(Z){let X=Z.getLocation(),Y=new Set,Q=(q)=>{X=Z.getLocation(),Y.forEach((B)=>B({location:X,action:q}))},G=(q)=>{if(Z.notifyOnIndexChange??!0)Q(q);else X=Z.getLocation()},K=async({task:q,navigateOpts:B,..._})=>{if(B?.ignoreBlocker??!1){q();return}let A=Z.getBlockers?.()??[],F=_.type==="PUSH"||_.type==="REPLACE";if(typeof document<"u"&&A.length&&F)for(let L of A){let I=p$(_.path,_.state);if(await L.blockerFn({currentLocation:X,nextLocation:I,action:_.type})){Z.onBlocked?.();return}}q()};return{get location(){return X},get length(){return Z.getLength()},subscribers:Y,subscribe:(q)=>{return Y.add(q),()=>{Y.delete(q)}},push:(q,B,_)=>{let O=X.state.__TSR_index;B=NV(O+1,B),K({task:()=>{Z.pushState(q,B),Q({type:"PUSH"})},navigateOpts:_,type:"PUSH",path:q,state:B})},replace:(q,B,_)=>{let O=X.state.__TSR_index;B=NV(O,B),K({task:()=>{Z.replaceState(q,B),Q({type:"REPLACE"})},navigateOpts:_,type:"REPLACE",path:q,state:B})},go:(q,B)=>{K({task:()=>{Z.go(q),G({type:"GO",index:q})},navigateOpts:B,type:"GO"})},back:(q)=>{K({task:()=>{Z.back(q?.ignoreBlocker??!1),G({type:"BACK"})},navigateOpts:q,type:"BACK"})},forward:(q)=>{K({task:()=>{Z.forward(q?.ignoreBlocker??!1),G({type:"FORWARD"})},navigateOpts:q,type:"FORWARD"})},canGoBack:()=>X.state.__TSR_index!==0,createHref:(q)=>Z.createHref(q),block:(q)=>{if(!Z.setBlockers)return()=>{};let B=Z.getBlockers?.()??[];return Z.setBlockers([...B,q]),()=>{let _=Z.getBlockers?.()??[];Z.setBlockers?.(_.filter((O)=>O!==q))}},flush:()=>Z.flush?.(),destroy:()=>Z.destroy?.(),notify:Q}}function NV(Z,X){if(!X)X={};let Y=LB();return{...X,key:Y,__TSR_key:Y,["__TSR_index"]:Z}}function OQ(Z){let X=Z?.window??(typeof document<"u"?window:void 0),Y=X.history.pushState,Q=X.history.replaceState,G=[],K=()=>G,q=(j)=>G=j,B=Z?.createHref??((j)=>j),_=Z?.parseLocation??(()=>p$(`${X.location.pathname}${X.location.search}${X.location.hash}`,X.history.state));if(!X.history.state?.__TSR_key&&!X.history.state?.key){let j=LB();X.history.replaceState({["__TSR_index"]:0,key:j,__TSR_key:j},"")}let O=_(),A,F=!1,L=!1,I=!1,D=!1,T=()=>O,M,v,P=()=>{if(!M)return;n._ignoreSubscribers=!0,(M.isPush?X.history.pushState:X.history.replaceState)(M.state,"",M.href),n._ignoreSubscribers=!1,M=void 0,v=void 0,A=void 0},E=(j,y,m)=>{let $0=B(y);if(!v)A=O;if(O=p$(y,m),M={href:$0,state:m,isPush:M?.isPush||j==="push"},!v)v=Promise.resolve().then(()=>P())},u=(j)=>{O=_(),n.notify({type:j})},l=async()=>{if(L){L=!1;return}let j=_(),y=j.state.__TSR_index-O.state.__TSR_index,m=y===1,$0=y===-1,t=!m&&!$0||F;F=!1;let s=t?"GO":$0?"BACK":"FORWARD",M0=t?{type:"GO",index:y}:{type:$0?"BACK":"FORWARD"};if(I)I=!1;else{let e=K();if(typeof document<"u"&&e.length){for(let Y0 of e)if(await Y0.blockerFn({currentLocation:O,nextLocation:j,action:s})){L=!0,X.history.go(1),n.notify(M0);return}}}O=_(),n.notify(M0)},p=(j)=>{if(D){D=!1;return}let y=!1,m=K();if(typeof document<"u"&&m.length)for(let $0 of m){let t=$0.enableBeforeUnload??!0;if(t===!0){y=!0;break}if(typeof t==="function"&&t()===!0){y=!0;break}}if(y)return j.preventDefault(),j.returnValue="";return},n=LV({getLocation:T,getLength:()=>X.history.length,pushState:(j,y)=>E("push",j,y),replaceState:(j,y)=>E("replace",j,y),back:(j)=>{if(j)I=!0;return D=!0,X.history.back()},forward:(j)=>{if(j)I=!0;D=!0,X.history.forward()},go:(j)=>{F=!0,X.history.go(j)},createHref:(j)=>B(j),flush:P,destroy:()=>{X.history.pushState=Y,X.history.replaceState=Q,X.removeEventListener("beforeunload",p,{capture:!0}),X.removeEventListener("popstate",l)},onBlocked:()=>{if(A&&O!==A)O=A},getBlockers:K,setBlockers:q,notifyOnIndexChange:!1});return X.addEventListener("beforeunload",p,{capture:!0}),X.addEventListener("popstate",l),X.history.pushState=function(...j){let y=Y.apply(X.history,j);if(!n._ignoreSubscribers)u("PUSH");return y},X.history.replaceState=function(...j){let y=Q.apply(X.history,j);if(!n._ignoreSubscribers)u("REPLACE");return y},n}function NB(Z){let X=Z?.window??(typeof document<"u"?window:void 0);return OQ({window:X,parseLocation:()=>{let Y=X.location.hash.split("#").slice(1),Q=Y[0]??"/",G=X.location.search,K=Y.slice(1),q=K.length===0?"":`#${K.join("#")}`,B=`${Q}${G}${q}`;return p$(B,X.history.state)},createHref:(Y)=>`${X.location.pathname}${X.location.search}#${Y}`})}function xj(Z){let X=Z.replace(/[\x00-\x1f\x7f]/g,"");if(X.startsWith("//"))X="/"+X.replace(/^\/+/,"");return X}function p$(Z,X){let Y=xj(Z),Q=Y.indexOf("#"),G=Y.indexOf("?"),K=LB();return{href:Y,pathname:Y.substring(0,Q>0?G>0?Math.min(Q,G):Q:G>0?G:Y.length),hash:Q>-1?Y.substring(Q):"",search:G>-1?Y.slice(G,Q===-1?void 0:Q):"",state:X||{["__TSR_index"]:0,key:K,__TSR_key:K}}}function LB(){return(Math.random()+1).toString(36).substring(7)}var $w=void 0;function e9(Z){if($w)return Z();let X;return AB(()=>{X=Z()}),X}function E6(Z){return Z[Z.length-1]}function hj(Z){return typeof Z==="function"}function h5(Z,X){if(hj(Z))return Z(X);return Z}var fj=Object.prototype.hasOwnProperty,bV=Object.prototype.propertyIsEnumerable;function V5(Z,X,Y=0){if($w)return X;if(Z===X)return Z;if(Y>500)return X;let Q=X,G=bB(Z)&&bB(Q);if(!G&&!(VX(Z)&&VX(Q)))return Q;let K=G?Z:IV(Z);if(!K)return Q;let q=G?Q:IV(Q);if(!q)return Q;let B=K.length,_=q.length,O=G?Array(_):{},A=0;for(let F=0;F<_;F++){let L=G?F:q[F],I=Z[L],D=Q[L];if(I===D){if(O[L]=I,G?F<B:fj.call(Z,L))A++;continue}if(I===null||D===null||typeof I!=="object"||typeof D!=="object"){O[L]=D;continue}let T=V5(I,D,Y+1);if(O[L]=T,T===I)A++}return B===_&&A===B?Z:O}function IV(Z){let X=Object.getOwnPropertyNames(Z);for(let G of X)if(!bV.call(Z,G))return!1;let Y=Object.getOwnPropertySymbols(Z);if(Y.length===0)return X;let Q=X;for(let G of Y){if(!bV.call(Z,G))return!1;Q.push(G)}return Q}function VX(Z){if(!VV(Z))return!1;let X=Z.constructor;if(typeof X>"u")return!0;let Y=X.prototype;if(!VV(Y))return!1;if(!Y.hasOwnProperty("isPrototypeOf"))return!1;return!0}function VV(Z){return Object.prototype.toString.call(Z)==="[object Object]"}function bB(Z){return Array.isArray(Z)&&Z.length===Object.keys(Z).length}function s2(Z,X,Y){if(Z===X)return!0;if(typeof Z!==typeof X)return!1;if(Array.isArray(Z)&&Array.isArray(X)){if(Z.length!==X.length)return!1;for(let Q=0,G=Z.length;Q<G;Q++)if(!s2(Z[Q],X[Q],Y))return!1;return!0}if(VX(Z)&&VX(X)){let Q=Y?.ignoreUndefined??!0;if(Y?.partial){for(let q in X)if(!Q||X[q]!==void 0){if(!s2(Z[q],X[q],Y))return!1}return!0}let G=0;if(!Q)G=Object.keys(Z).length;else for(let q in Z)if(Z[q]!==void 0)G++;let K=0;for(let q in X)if(!Q||X[q]!==void 0){if(K++,K>G||!s2(Z[q],X[q],Y))return!1}return G===K}return!1}function y4(Z){let X,Y,Q=new Promise((G,K)=>{X=G,Y=K});return Q.status="pending",Q.resolve=(G)=>{Q.status="resolved",Q.value=G,X(G),Z?.(G)},Q.reject=(G)=>{Q.status="rejected",Y(G)},Q}function g6(Z){return Boolean(Z&&typeof Z==="object"&&typeof Z.then==="function")}function IB(Z,X){for(let Y=Z.length-1;Y>=0;Y--){let Q=Z[Y];if(X(Q))return Q}return}function yj(Z){return Z.replace(/[\x00-\x1f\x7f]/g,"")}function kV(Z){let X;try{X=decodeURI(Z)}catch{X=Z.replaceAll(/%[0-9A-F]{2}/gi,(Y)=>{try{return decodeURI(Y)}catch{return Y}})}return yj(X)}var VB=["http:","https:","mailto:","tel:"];function t2(Z){if(!Z)return!1;try{let X=new URL(Z);return!VB.includes(X.protocol)}catch{return!1}}var dj={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},mj=/[&><\u2028\u2029]/g;function kB(Z){return Z.replace(mj,(X)=>dj[X])}function kX(Z,X){if(!Z)return Z;if(!/[%\\\x00-\x1f\x7f]/.test(Z)&&!Z.startsWith("//"))return Z;let Y=X?new RegExp(`${X.join("|")}`,"gi"):/%25|%5C/gi,Q=0,G="",K;while((K=Y.exec(Z))!==null)G+=kV(Z.slice(Q,K.index))+K[0],Q=Y.lastIndex;if(G=G+kV(Q?Z.slice(Q):Z),G.startsWith("//"))G="/"+G.replace(/^\/+/,"");return G}function DV(Z){if(!/[^\u0000-\u007F]/.test(Z))return Z;return Z.replace(/[^\u0000-\u007F]/gu,encodeURIComponent)}var cj=!1,DB="Invariant failed";function f5(Z,X){if(Z)return;if(cj)throw Error(DB);var Y=typeof X==="function"?X():X,Q=Y?"".concat(DB,": ").concat(Y):DB;throw Error(Q)}function l$(Z){let X=new Map,Y,Q,G=(K)=>{if(!K.next)return;if(!K.prev){if(K.next.prev=void 0,Y=K.next,K.next=void 0,Q)K.prev=Q,Q.next=K}else if(K.prev.next=K.next,K.next.prev=K.prev,K.next=void 0,Q)Q.next=K,K.prev=Q;Q=K};return{get(K){let q=X.get(K);if(!q)return;return G(q),q.value},set(K,q){if(X.size>=Z&&Y){let _=Y;if(X.delete(_.key),_.next)Y=_.next,_.next.prev=void 0;if(_===Q)Q=void 0}let B=X.get(K);if(B)B.value=q,G(B);else{let _={key:K,value:q,prev:Q};if(Q)Q.next=_;if(Q=_,!Y)Y=_;X.set(K,_)}},clear(){X.clear(),Y=void 0,Q=void 0}}}var Z7=0,C8=1,R8=2,i$=3,w7=4,MV=5;function uj(Z){let X=Z.indexOf("{");if(X===-1)return null;let Y=Z.indexOf("}",X);if(Y===-1)return null;if(X+1>=Z.length)return null;return[X,Y]}function AQ(Z,X,Y=new Uint16Array(6)){let Q=Z.indexOf("/",X),G=Q===-1?Z.length:Q,K=Z.substring(X,G);if(!K||!K.includes("$"))return Y[0]=Z7,Y[1]=X,Y[2]=X,Y[3]=G,Y[4]=G,Y[5]=G,Y;if(K==="$"){let B=Z.length;return Y[0]=R8,Y[1]=X,Y[2]=X,Y[3]=B,Y[4]=B,Y[5]=B,Y}if(K.charCodeAt(0)===36)return Y[0]=C8,Y[1]=X,Y[2]=X+1,Y[3]=G,Y[4]=G,Y[5]=G,Y;let q=uj(K);if(q){let[B,_]=q,O=K.charCodeAt(B+1);if(O===45){if(B+2<K.length&&K.charCodeAt(B+2)===36){let A=B+3,F=_;if(A<F)return Y[0]=i$,Y[1]=X+B,Y[2]=X+A,Y[3]=X+F,Y[4]=X+_+1,Y[5]=G,Y}}else if(O===36){let A=B+1,F=B+2;if(F===_)return Y[0]=R8,Y[1]=X+B,Y[2]=X+A,Y[3]=X+F,Y[4]=X+_+1,Y[5]=Z.length,Y;return Y[0]=C8,Y[1]=X+B,Y[2]=X+F,Y[3]=X+_,Y[4]=X+_+1,Y[5]=G,Y}}return Y[0]=Z7,Y[1]=X,Y[2]=X,Y[3]=G,Y[4]=G,Y[5]=G,Y}function NQ(Z,X,Y,Q,G,K,q){q?.(Y);let B=Q;{let _=Y.fullPath??Y.from,O=_.length,A=Y.options?.caseSensitive??Z,F=!!(Y.options?.params?.parse&&Y.options?.skipRouteOnParseError?.params);while(B<O){let I=AQ(_,B,X),D,T=B,M=I[5];switch(B=M+1,K++,I[0]){case Z7:{let P=_.substring(I[2],I[3]);if(A){let E=G.static?.get(P);if(E)D=E;else{G.static??=new Map;let u=$7(Y.fullPath??Y.from);u.parent=G,u.depth=K,D=u,G.static.set(P,u)}}else{let E=P.toLowerCase(),u=G.staticInsensitive?.get(E);if(u)D=u;else{G.staticInsensitive??=new Map;let l=$7(Y.fullPath??Y.from);l.parent=G,l.depth=K,D=l,G.staticInsensitive.set(E,l)}}break}case C8:{let P=_.substring(T,I[1]),E=_.substring(I[4],M),u=A&&!!(P||E),l=!P?void 0:u?P:P.toLowerCase(),p=!E?void 0:u?E:E.toLowerCase(),n=!F&&G.dynamic?.find((j)=>!j.skipOnParamError&&j.caseSensitive===u&&j.prefix===l&&j.suffix===p);if(n)D=n;else{let j=TB(C8,Y.fullPath??Y.from,u,l,p);D=j,j.depth=K,j.parent=G,G.dynamic??=[],G.dynamic.push(j)}break}case i$:{let P=_.substring(T,I[1]),E=_.substring(I[4],M),u=A&&!!(P||E),l=!P?void 0:u?P:P.toLowerCase(),p=!E?void 0:u?E:E.toLowerCase(),n=!F&&G.optional?.find((j)=>!j.skipOnParamError&&j.caseSensitive===u&&j.prefix===l&&j.suffix===p);if(n)D=n;else{let j=TB(i$,Y.fullPath??Y.from,u,l,p);D=j,j.parent=G,j.depth=K,G.optional??=[],G.optional.push(j)}break}case R8:{let P=_.substring(T,I[1]),E=_.substring(I[4],M),u=A&&!!(P||E),l=!P?void 0:u?P:P.toLowerCase(),p=!E?void 0:u?E:E.toLowerCase(),n=TB(R8,Y.fullPath??Y.from,u,l,p);D=n,n.parent=G,n.depth=K,G.wildcard??=[],G.wildcard.push(n)}}G=D}if(F&&Y.children&&!Y.isRoot&&Y.id&&Y.id.charCodeAt(Y.id.lastIndexOf("/")+1)===95){let I=$7(Y.fullPath??Y.from);I.kind=MV,I.parent=G,K++,I.depth=K,G.pathless??=[],G.pathless.push(I),G=I}let L=(Y.path||!Y.children)&&!Y.isRoot;if(L&&_.endsWith("/")){let I=$7(Y.fullPath??Y.from);I.kind=w7,I.parent=G,K++,I.depth=K,G.index=I,G=I}if(G.parse=Y.options?.params?.parse??null,G.skipOnParamError=F,G.parsingPriority=Y.options?.skipRouteOnParseError?.priority??0,L&&!G.route)G.route=Y,G.fullPath=Y.fullPath??Y.from}if(Y.children)for(let _ of Y.children)NQ(Z,X,_,B,G,K,q)}function MB(Z,X){if(Z.skipOnParamError&&!X.skipOnParamError)return-1;if(!Z.skipOnParamError&&X.skipOnParamError)return 1;if(Z.skipOnParamError&&X.skipOnParamError&&(Z.parsingPriority||X.parsingPriority))return X.parsingPriority-Z.parsingPriority;if(Z.prefix&&X.prefix&&Z.prefix!==X.prefix){if(Z.prefix.startsWith(X.prefix))return-1;if(X.prefix.startsWith(Z.prefix))return 1}if(Z.suffix&&X.suffix&&Z.suffix!==X.suffix){if(Z.suffix.endsWith(X.suffix))return-1;if(X.suffix.endsWith(Z.suffix))return 1}if(Z.prefix&&!X.prefix)return-1;if(!Z.prefix&&X.prefix)return 1;if(Z.suffix&&!X.suffix)return-1;if(!Z.suffix&&X.suffix)return 1;if(Z.caseSensitive&&!X.caseSensitive)return-1;if(!Z.caseSensitive&&X.caseSensitive)return 1;return 0}function g8(Z){if(Z.pathless)for(let X of Z.pathless)g8(X);if(Z.static)for(let X of Z.static.values())g8(X);if(Z.staticInsensitive)for(let X of Z.staticInsensitive.values())g8(X);if(Z.dynamic?.length){Z.dynamic.sort(MB);for(let X of Z.dynamic)g8(X)}if(Z.optional?.length){Z.optional.sort(MB);for(let X of Z.optional)g8(X)}if(Z.wildcard?.length){Z.wildcard.sort(MB);for(let X of Z.wildcard)g8(X)}}function $7(Z){return{kind:Z7,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:Z,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0}}function TB(Z,X,Y,Q,G){return{kind:Z,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:X,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0,caseSensitive:Y,prefix:Q,suffix:G}}function TV(Z,X){let Y=$7("/"),Q=new Uint16Array(6);for(let G of Z)NQ(!1,Q,G,1,Y,0);g8(Y),X.masksTree=Y,X.flatCache=l$(1000)}function vV(Z,X){Z||="/";let Y=X.flatCache.get(Z);if(Y)return Y;let Q=PB(Z,X.masksTree);return X.flatCache.set(Z,Q),Q}function PV(Z,X,Y,Q,G){Z||="/",Q||="/";let K=X?`case\x00${Z}`:Z,q=G.singleCache.get(K);if(!q){q=$7("/");let B=new Uint16Array(6);NQ(X,B,{from:Z},1,q,0),G.singleCache.set(K,q)}return PB(Q,q,Y)}function EV(Z,X,Y=!1){let Q=Y?Z:`nofuzz\x00${Z}`,G=X.matchCache.get(Q);if(G!==void 0)return G;Z||="/";let K;try{K=PB(Z,X.segmentTree,Y)}catch(q){if(q instanceof URIError)K=null;else throw q}if(K)K.branch=lj(K.route);return X.matchCache.set(Q,K),K}function pj(Z){return Z==="/"?Z:Z.replace(/\/{1,}$/,"")}function gV(Z,X=!1,Y){let Q=$7(Z.fullPath),G=new Uint16Array(6),K={},q={},B=0;return NQ(X,G,Z,1,Q,0,(O)=>{if(Y?.(O,B),f5(!(O.id in K),`Duplicate routes found with id: ${String(O.id)}`),K[O.id]=O,B!==0&&O.path){let A=pj(O.fullPath);if(!q[A]||O.fullPath.endsWith("/"))q[A]=O}B++}),g8(Q),{processedTree:{segmentTree:Q,singleCache:l$(1000),matchCache:l$(1000),flatCache:null,masksTree:null},routesById:K,routesByPath:q}}function PB(Z,X,Y=!1){let Q=Z.split("/"),G=rj(Z,Q,X,Y);if(!G)return null;let[K]=CV(Z,Q,G);return{route:G.node.route,rawParams:K,parsedParams:G.parsedParams}}function CV(Z,X,Y){let Q=ij(Y.node),G=null,K={},q=Y.extract?.part??0,B=Y.extract?.node??0,_=Y.extract?.path??0,O=Y.extract?.segment??0;for(;B<Q.length;q++,B++,_++,O++){let A=Q[B];if(A.kind===w7)break;if(A.kind===MV){O--,q--,_--;continue}let F=X[q],L=_;if(F)_+=F.length;if(A.kind===C8){G??=Y.node.fullPath.split("/");let I=G[O],D=A.prefix?.length??0;if(I.charCodeAt(D)===123){let M=A.suffix?.length??0,v=I.substring(D+2,I.length-M-1),P=F.substring(D,F.length-M);K[v]=decodeURIComponent(P)}else{let M=I.substring(1);K[M]=decodeURIComponent(F)}}else if(A.kind===i$){if(Y.skipped&1<<B){q--,_=L-1;continue}G??=Y.node.fullPath.split("/");let I=G[O],D=A.prefix?.length??0,T=A.suffix?.length??0,M=I.substring(D+3,I.length-T-1),v=A.suffix||A.prefix?F.substring(D,F.length-T):F;if(v)K[M]=decodeURIComponent(v)}else if(A.kind===R8){let I=A,D=Z.substring(L+(I.prefix?.length??0),Z.length-(I.suffix?.length??0)),T=decodeURIComponent(D);K["*"]=T,K._splat=T;break}}if(Y.rawParams)Object.assign(K,Y.rawParams);return[K,{part:q,node:B,path:_,segment:O}]}function lj(Z){let X=[Z];while(Z.parentRoute)Z=Z.parentRoute,X.push(Z);return X.reverse(),X}function ij(Z){let X=Array(Z.depth+1);do X[Z.depth]=Z,Z=Z.parent;while(Z);return X}function rj(Z,X,Y,Q){if(Z==="/"&&Y.index)return{node:Y.index,skipped:0};let G=!E6(X),K=G&&Z!=="/",q=X.length-(G?1:0),B=[{node:Y,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}],_=null,O=null,A=null;while(B.length){let F=B.pop(),{node:L,index:I,skipped:D,depth:T,statics:M,dynamics:v,optionals:P}=F,{extract:E,rawParams:u,parsedParams:l}=F;if(L.skipOnParamError){if(!vB(Z,X,F))continue;u=F.rawParams,E=F.extract,l=F.parsedParams}if(Q&&L.route&&L.kind!==w7&&DX(O,F))O=F;let p=I===q;if(p){if(L.route&&!K&&DX(A,F))A=F;if(!L.optional&&!L.wildcard&&!L.index&&!L.pathless)continue}let n=p?void 0:X[I],j;if(p&&L.index){let y={node:L.index,index:I,skipped:D,depth:T+1,statics:M,dynamics:v,optionals:P,extract:E,rawParams:u,parsedParams:l},m=!0;if(L.index.skipOnParamError){if(!vB(Z,X,y))m=!1}if(m){if(M===q&&!v&&!P&&!D)return y;if(DX(A,y))A=y}}if(L.wildcard&&DX(_,F))for(let y of L.wildcard){let{prefix:m,suffix:$0}=y;if(m){if(p)continue;if(!(y.caseSensitive?n:j??=n.toLowerCase()).startsWith(m))continue}if($0){if(p)continue;let s=X.slice(I).join("/").slice(-$0.length);if((y.caseSensitive?s:s.toLowerCase())!==$0)continue}let t={node:y,index:q,skipped:D,depth:T,statics:M,dynamics:v,optionals:P,extract:E,rawParams:u,parsedParams:l};if(y.skipOnParamError){if(!vB(Z,X,t))continue}_=t;break}if(L.optional){let y=D|1<<T,m=T+1;for(let $0=L.optional.length-1;$0>=0;$0--){let t=L.optional[$0];B.push({node:t,index:I,skipped:y,depth:m,statics:M,dynamics:v,optionals:P,extract:E,rawParams:u,parsedParams:l})}if(!p)for(let $0=L.optional.length-1;$0>=0;$0--){let t=L.optional[$0],{prefix:s,suffix:M0}=t;if(s||M0){let e=t.caseSensitive?n:j??=n.toLowerCase();if(s&&!e.startsWith(s))continue;if(M0&&!e.endsWith(M0))continue}B.push({node:t,index:I+1,skipped:D,depth:m,statics:M,dynamics:v,optionals:P+1,extract:E,rawParams:u,parsedParams:l})}}if(!p&&L.dynamic&&n)for(let y=L.dynamic.length-1;y>=0;y--){let m=L.dynamic[y],{prefix:$0,suffix:t}=m;if($0||t){let s=m.caseSensitive?n:j??=n.toLowerCase();if($0&&!s.startsWith($0))continue;if(t&&!s.endsWith(t))continue}B.push({node:m,index:I+1,skipped:D,depth:T+1,statics:M,dynamics:v+1,optionals:P,extract:E,rawParams:u,parsedParams:l})}if(!p&&L.staticInsensitive){let y=L.staticInsensitive.get(j??=n.toLowerCase());if(y)B.push({node:y,index:I+1,skipped:D,depth:T+1,statics:M+1,dynamics:v,optionals:P,extract:E,rawParams:u,parsedParams:l})}if(!p&&L.static){let y=L.static.get(n);if(y)B.push({node:y,index:I+1,skipped:D,depth:T+1,statics:M+1,dynamics:v,optionals:P,extract:E,rawParams:u,parsedParams:l})}if(L.pathless){let y=T+1;for(let m=L.pathless.length-1;m>=0;m--){let $0=L.pathless[m];B.push({node:$0,index:I,skipped:D,depth:y,statics:M,dynamics:v,optionals:P,extract:E,rawParams:u,parsedParams:l})}}}if(A&&_)return DX(_,A)?A:_;if(A)return A;if(_)return _;if(Q&&O){let F=O.index;for(let I=0;I<O.index;I++)F+=X[I].length;let L=F===Z.length?"/":Z.slice(F);return O.rawParams??={},O.rawParams["**"]=decodeURIComponent(L),O}return null}function vB(Z,X,Y){try{let[Q,G]=CV(Z,X,Y);Y.rawParams=Q,Y.extract=G;let K=Y.node.parse(Q);return Y.parsedParams=Object.assign({},Y.parsedParams,K),!0}catch{return null}}function DX(Z,X){if(!Z)return!0;return X.statics>Z.statics||X.statics===Z.statics&&(X.dynamics>Z.dynamics||X.dynamics===Z.dynamics&&(X.optionals>Z.optionals||X.optionals===Z.optionals&&((X.node.kind===w7)>(Z.node.kind===w7)||X.node.kind===w7===(Z.node.kind===w7)&&X.depth>Z.depth)))}function J7(Z){return TX(Z.filter((X)=>{return X!==void 0}).join("/"))}function TX(Z){return Z.replace(/\/{2,}/g,"/")}function LQ(Z){return Z==="/"?Z:Z.replace(/^\/{1,}/,"")}function G2(Z){let X=Z.length;return X>1&&Z[X-1]==="/"?Z.replace(/\/{1,}$/,""):Z}function vX(Z){return G2(LQ(Z))}function j8(Z,X){if(Z?.endsWith("/")&&Z!=="/"&&Z!==`${X}/`)return Z.slice(0,-1);return Z}function bQ(Z,X,Y){return j8(Z,Y)===j8(X,Y)}function EB({base:Z,to:X,trailingSlash:Y="never",cache:Q}){let G=X.startsWith("/"),K=!G&&X===".",q;if(Q){q=G?X:K?Z:Z+"\x00"+X;let F=Q.get(q);if(F)return F}let B;if(K)B=Z.split("/");else if(G)B=X.split("/");else{B=Z.split("/");while(B.length>1&&E6(B)==="")B.pop();let F=X.split("/");for(let L=0,I=F.length;L<I;L++){let D=F[L];if(D===""){if(!L)B=[D];else if(L===I-1)B.push(D)}else if(D==="..")B.pop();else if(D===".");else B.push(D)}}if(B.length>1){if(E6(B)===""){if(Y==="never")B.pop()}else if(Y==="always")B.push("")}let _,O="";for(let F=0;F<B.length;F++){if(F>0)O+="/";let L=B[F];if(!L)continue;_=AQ(L,0,_);let I=_[0];if(I===Z7){O+=L;continue}let D=_[5],T=L.substring(0,_[1]),M=L.substring(_[4],D),v=L.substring(_[2],_[3]);if(I===C8)O+=T||M?`${T}{$${v}}${M}`:`$${v}`;else if(I===R8)O+=T||M?`${T}{$}${M}`:"$";else O+=`${T}{-$${v}}${M}`}O=TX(O);let A=O||"/";if(q&&Q)Q.set(q,A);return A}function RV(Z){let X=new Map(Z.map((G)=>[encodeURIComponent(G),G])),Y=Array.from(X.keys()).map((G)=>G.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),Q=new RegExp(Y,"g");return(G)=>G.replace(Q,(K)=>X.get(K)??K)}function MX(Z,X,Y){let Q=X[Z];if(typeof Q!=="string")return Q;if(Z==="_splat")return encodeURI(Q);else return nj(Q,Y)}function PX({path:Z,params:X,decoder:Y,server:Q}){let G=!1,K={};if(!Z||Z==="/")return{interpolatedPath:"/",usedParams:K,isMissingParams:G};if(!Z.includes("$"))return{interpolatedPath:Z,usedParams:K,isMissingParams:G};if($w??Q){if(Z.indexOf("{")===-1){let F=Z.length,L=0,I="";while(L<F){while(L<F&&Z.charCodeAt(L)===47)L++;if(L>=F)break;let T=L,M=Z.indexOf("/",L);if(M===-1)M=F;L=M;let v=Z.substring(T,M);if(!v)continue;if(v.charCodeAt(0)===36)if(v.length===1){let P=X._splat;if(K._splat=P,K["*"]=P,!P){G=!0;continue}let E=MX("_splat",X,Y);I+="/"+E}else{let P=v.substring(1);if(!G&&!(P in X))G=!0;K[P]=X[P];let E=MX(P,X,Y)??"undefined";I+="/"+E}else I+="/"+v}if(Z.endsWith("/"))I+="/";return{usedParams:K,interpolatedPath:I||"/",isMissingParams:G}}}let q=Z.length,B=0,_,O="";while(B<q){let F=B;_=AQ(Z,F,_);let L=_[5];if(B=L+1,F===L)continue;let I=_[0];if(I===Z7){O+="/"+Z.substring(F,L);continue}if(I===R8){let D=X._splat;K._splat=D,K["*"]=D;let T=Z.substring(F,_[1]),M=Z.substring(_[4],L);if(!D){if(G=!0,T||M)O+="/"+T+M;continue}let v=MX("_splat",X,Y);O+="/"+T+v+M;continue}if(I===C8){let D=Z.substring(_[2],_[3]);if(!G&&!(D in X))G=!0;K[D]=X[D];let T=Z.substring(F,_[1]),M=Z.substring(_[4],L),v=MX(D,X,Y)??"undefined";O+="/"+T+v+M;continue}if(I===i$){let D=Z.substring(_[2],_[3]),T=X[D];if(T==null)continue;K[D]=T;let M=Z.substring(F,_[1]),v=Z.substring(_[4],L),P=MX(D,X,Y)??"";O+="/"+M+P+v;continue}}if(Z.endsWith("/"))O+="/";return{usedParams:K,interpolatedPath:O||"/",isMissingParams:G}}function nj(Z,X){let Y=encodeURIComponent(Z);return X?.(Y)??Y}function c1(Z){return!!Z?.isNotFound}function aj(){try{if(typeof window<"u"&&typeof window.sessionStorage==="object")return window.sessionStorage}catch{}return}var r$="tsr-scroll-restoration-v1_3",oj=(Z,X)=>{let Y;return(...Q)=>{if(!Y)Y=setTimeout(()=>{Z(...Q),Y=null},X)}};function sj(){let Z=aj();if(!Z)return null;let X=Z.getItem(r$),Y=X?JSON.parse(X):{};return{state:Y,set:(Q)=>{Y=h5(Q,Y)||Y;try{Z.setItem(r$,JSON.stringify(Y))}catch{console.warn("[ts-router] Could not persist scroll restoration state to sessionStorage.")}}}}var EX=sj(),gX=(Z)=>{return Z.state.__TSR_key||Z.href};function jV(Z){let X=[],Y;while(Y=Z.parentNode)X.push(`${Z.tagName}:nth-child(${Array.prototype.indexOf.call(Y.children,Z)+1})`),Z=Y;return`${X.reverse().join(" > ")}`.toLowerCase()}var IQ=!1;function VQ({storageKey:Z,key:X,behavior:Y,shouldScrollRestoration:Q,scrollToTopSelectors:G,location:K}){let q;try{q=JSON.parse(sessionStorage.getItem(Z)||"{}")}catch(O){console.error(O);return}let B=X||window.history.state?.__TSR_key,_=q[B];IQ=!0;w:{if(Q&&_&&Object.keys(_).length>0){for(let F in _){let L=_[F];if(F==="window")window.scrollTo({top:L.scrollY,left:L.scrollX,behavior:Y});else if(F){let I=document.querySelector(F);if(I)I.scrollLeft=L.scrollX,I.scrollTop=L.scrollY}}break w}let O=(K??window.location).hash.split("#",2)[1];if(O){let F=window.history.state?.__hashScrollIntoViewOptions??!0;if(F){let L=document.getElementById(O);if(L)L.scrollIntoView(F)}break w}let A={top:0,left:0,behavior:Y};if(window.scrollTo(A),G)for(let F of G){if(F==="window")continue;let L=typeof F==="function"?F():document.querySelector(F);if(L)L.scrollTo(A)}}IQ=!1}function gB(Z,X){if(!EX&&!($w??Z.isServer))return;if(X??Z.options.scrollRestoration??!1)Z.isScrollRestoring=!0;if(($w??Z.isServer)||Z.isScrollRestorationSetup||!EX)return;Z.isScrollRestorationSetup=!0,IQ=!1;let Q=Z.options.getScrollRestorationKey||gX;window.history.scrollRestoration="manual";let G=(K)=>{if(IQ||!Z.isScrollRestoring)return;let q="";if(K.target===document||K.target===window)q="window";else{let _=K.target.getAttribute("data-scroll-restoration-id");if(_)q=`[data-scroll-restoration-id="${_}"]`;else q=jV(K.target)}let B=Q(Z.state.location);EX.set((_)=>{let O=_[B]||={},A=O[q]||={};if(q==="window")A.scrollX=window.scrollX||0,A.scrollY=window.scrollY||0;else if(q){let F=document.querySelector(q);if(F)A.scrollX=F.scrollLeft||0,A.scrollY=F.scrollTop||0}return _})};if(typeof document<"u")document.addEventListener("scroll",oj(G,100),!0);Z.subscribe("onRendered",(K)=>{let q=Q(K.toLocation);if(!Z.resetNextScroll){Z.resetNextScroll=!0;return}if(typeof Z.options.scrollRestoration==="function"){if(!Z.options.scrollRestoration({location:Z.latestLocation}))return}if(VQ({storageKey:r$,key:q,behavior:Z.options.scrollRestorationBehavior,shouldScrollRestoration:Z.isScrollRestoring,scrollToTopSelectors:Z.options.scrollToTopSelectors,location:Z.history.location}),Z.isScrollRestoring)EX.set((B)=>{return B[q]||={},B})})}function CB(Z){if(typeof document<"u"&&document.querySelector){let X=Z.state.location.state.__hashScrollIntoViewOptions??!0;if(X&&Z.state.location.hash!==""){let Y=document.getElementById(Z.state.location.hash);if(Y)Y.scrollIntoView(X)}}}function SV(Z,X=String){let Y=new URLSearchParams;for(let Q in Z){let G=Z[Q];if(G!==void 0)Y.set(Q,X(G))}return Y.toString()}function RB(Z){if(!Z)return"";if(Z==="false")return!1;if(Z==="true")return!0;return+Z*0===0&&+Z+""===Z?+Z:Z}function xV(Z){let X=new URLSearchParams(Z),Y={};for(let[Q,G]of X.entries()){let K=Y[Q];if(K==null)Y[Q]=RB(G);else if(Array.isArray(K))K.push(RB(G));else Y[Q]=[K,RB(G)]}return Y}var hV=tj(JSON.parse),fV=ej(JSON.stringify,JSON.parse);function tj(Z){return(X)=>{if(X[0]==="?")X=X.substring(1);let Y=xV(X);for(let Q in Y){let G=Y[Q];if(typeof G==="string")try{Y[Q]=Z(G)}catch(K){}}return Y}}function ej(Z,X){let Y=typeof X==="function";function Q(G){if(typeof G==="object"&&G!==null)try{return Z(G)}catch(K){}else if(Y&&typeof G==="string")try{return X(G),Z(G)}catch(K){}return G}return(G)=>{let K=SV(G,Q);return K?`?${K}`:""}}var M1="__root__";function CX(Z){if(Z.statusCode=Z.statusCode||Z.code||307,typeof Z.href==="string"&&t2(Z.href))throw Error(`Redirect blocked: unsafe protocol in href "${Z.href}". Only ${VB.join(", ")} protocols are allowed.`);if(!Z.reloadDocument&&typeof Z.href==="string")try{new URL(Z.href),Z.reloadDocument=!0}catch{}let X=new Headers(Z.headers);if(Z.href&&X.get("Location")===null)X.set("Location",Z.href);let Y=new Response(null,{status:Z.statusCode,headers:X});if(Y.options=Z,Z.throw)throw Y;return Y}function z5(Z){return Z instanceof Response&&!!Z.options}var DQ=(Z)=>{if(!Z.rendered)return Z.rendered=!0,Z.onReady?.()},MQ=(Z,X)=>{return!!(Z.preload&&!Z.router.state.matches.some((Y)=>Y.id===X))},n$=(Z,X,Y=!0)=>{let Q={...Z.router.options.context??{}},G=Y?X:X-1;for(let K=0;K<=G;K++){let q=Z.matches[K];if(!q)continue;let B=Z.router.getMatch(q.id);if(!B)continue;Object.assign(Q,B.__routeContext,B.__beforeLoadContext)}return Q},dV=(Z,X)=>{let Y=Z.router.routesById[X.routeId??""]??Z.router.routeTree;if(!Y.options.notFoundComponent&&Z.router.options?.defaultNotFoundComponent)Y.options.notFoundComponent=Z.router.options.defaultNotFoundComponent;f5(Y.options.notFoundComponent,"No notFoundComponent found. Please set a notFoundComponent on your route or provide a defaultNotFoundComponent to the router.");let Q=Z.matches.find((G)=>G.routeId===Y.id);if(f5(Q,"Could not find match for route: "+Y.id),Z.updateMatch(Q.id,(G)=>({...G,status:"notFound",error:X,isFetching:!1})),X.routerCode==="BEFORE_LOAD"&&Y.parentRoute)X.routeId=Y.parentRoute.id,dV(Z,X)},S8=(Z,X,Y)=>{if(!z5(Y)&&!c1(Y))return;if(z5(Y)&&Y.redirectHandled&&!Y.options.reloadDocument)throw Y;if(X){X._nonReactive.beforeLoadPromise?.resolve(),X._nonReactive.loaderPromise?.resolve(),X._nonReactive.beforeLoadPromise=void 0,X._nonReactive.loaderPromise=void 0;let Q=z5(Y)?"redirected":"notFound";if(X._nonReactive.error=Y,Z.updateMatch(X.id,(G)=>({...G,status:Q,context:n$(Z,X.index),isFetching:!1,error:Y})),c1(Y)&&!Y.routeId)Y.routeId=X.routeId;X._nonReactive.loadPromise?.resolve()}if(z5(Y))throw Z.rendered=!0,Y.options._fromLocation=Z.location,Y.redirectHandled=!0,Y=Z.router.resolveRedirect(Y),Y;else throw dV(Z,Y),Y},mV=(Z,X)=>{let Y=Z.router.getMatch(X);if(!($w??Z.router.isServer)&&Y._nonReactive.dehydrated)return!0;if(($w??Z.router.isServer)&&Y.ssr===!1)return!0;return!1},RX=(Z,X,Y,Q)=>{let{id:G,routeId:K}=Z.matches[X],q=Z.router.looseRoutesById[K];if(Y instanceof Promise)throw Y;Y.routerCode=Q,Z.firstBadMatchIndex??=X,S8(Z,Z.router.getMatch(G),Y);try{q.options.onError?.(Y)}catch(B){Y=B,S8(Z,Z.router.getMatch(G),Y)}Z.updateMatch(G,(B)=>{return B._nonReactive.beforeLoadPromise?.resolve(),B._nonReactive.beforeLoadPromise=void 0,B._nonReactive.loadPromise?.resolve(),{...B,error:Y,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}})},wS=(Z,X,Y,Q)=>{let G=Z.router.getMatch(X),K=Z.matches[Y-1]?.id,q=K?Z.router.getMatch(K):void 0;if(Z.router.isShell()){G.ssr=Q.id===M1;return}if(q?.ssr===!1){G.ssr=!1;return}let B=(I)=>{if(I===!0&&q?.ssr==="data-only")return"data-only";return I},_=Z.router.options.defaultSsr??!0;if(Q.options.ssr===void 0){G.ssr=B(_);return}if(typeof Q.options.ssr!=="function"){G.ssr=B(Q.options.ssr);return}let{search:O,params:A}=G,F={search:kQ(O,G.searchError),params:kQ(A,G.paramsError),location:Z.location,matches:Z.matches.map((I)=>({index:I.index,pathname:I.pathname,fullPath:I.fullPath,staticData:I.staticData,id:I.id,routeId:I.routeId,search:kQ(I.search,I.searchError),params:kQ(I.params,I.paramsError),ssr:I.ssr}))},L=Q.options.ssr(F);if(g6(L))return L.then((I)=>{G.ssr=B(I??_)});G.ssr=B(L??_);return},cV=(Z,X,Y,Q)=>{if(Q._nonReactive.pendingTimeout!==void 0)return;let G=Y.options.pendingMs??Z.router.options.defaultPendingMs;if(!!(Z.onReady&&!($w??Z.router.isServer)&&!MQ(Z,X)&&(Y.options.loader||Y.options.beforeLoad||xB(Y))&&typeof G==="number"&&G!==1/0&&(Y.options.pendingComponent??Z.router.options?.defaultPendingComponent))){let q=setTimeout(()=>{DQ(Z)},G);Q._nonReactive.pendingTimeout=q}},$S=(Z,X,Y)=>{let Q=Z.router.getMatch(X);if(!Q._nonReactive.beforeLoadPromise&&!Q._nonReactive.loaderPromise)return;cV(Z,X,Y,Q);let G=()=>{let K=Z.router.getMatch(X);if(K.preload&&(K.status==="redirected"||K.status==="notFound"))S8(Z,K,K.error)};return Q._nonReactive.beforeLoadPromise?Q._nonReactive.beforeLoadPromise.then(G):G()},ZS=(Z,X,Y,Q)=>{let G=Z.router.getMatch(X),K=G._nonReactive.loadPromise;G._nonReactive.loadPromise=y4(()=>{K?.resolve()});let{paramsError:q,searchError:B}=G;if(q)RX(Z,Y,q,"PARSE_PARAMS");if(B)RX(Z,Y,B,"VALIDATE_SEARCH");cV(Z,X,Q,G);let _=new AbortController,O=Z.matches[Y-1]?.id;(O?Z.router.getMatch(O):void 0)?.context??Z.router.options.context;let F=!1,L=()=>{if(F)return;F=!0,Z.updateMatch(X,(p)=>({...p,isFetching:"beforeLoad",fetchCount:p.fetchCount+1,abortController:_}))},I=()=>{G._nonReactive.beforeLoadPromise?.resolve(),G._nonReactive.beforeLoadPromise=void 0,Z.updateMatch(X,(p)=>({...p,isFetching:!1}))};if(!Q.options.beforeLoad){e9(()=>{L(),I()});return}G._nonReactive.beforeLoadPromise=y4();let D={...n$(Z,Y,!1),...G.__routeContext},{search:T,params:M,cause:v}=G,P=MQ(Z,X),E={search:T,abortController:_,params:M,preload:P,context:D,location:Z.location,navigate:(p)=>Z.router.navigate({...p,_fromLocation:Z.location}),buildLocation:Z.router.buildLocation,cause:P?"preload":v,matches:Z.matches,...Z.router.options.additionalContext},u=(p)=>{if(p===void 0){e9(()=>{L(),I()});return}if(z5(p)||c1(p))L(),RX(Z,Y,p,"BEFORE_LOAD");e9(()=>{L(),Z.updateMatch(X,(n)=>({...n,__beforeLoadContext:p})),I()})},l;try{if(l=Q.options.beforeLoad(E),g6(l))return L(),l.catch((p)=>{RX(Z,Y,p,"BEFORE_LOAD")}).then(u)}catch(p){L(),RX(Z,Y,p,"BEFORE_LOAD")}u(l);return},JS=(Z,X)=>{let{id:Y,routeId:Q}=Z.matches[X],G=Z.router.looseRoutesById[Q],K=()=>{if($w??Z.router.isServer){let _=wS(Z,Y,X,G);if(g6(_))return _.then(B)}return B()},q=()=>ZS(Z,Y,X,G),B=()=>{if(mV(Z,Y))return;let _=$S(Z,Y,G);return g6(_)?_.then(q):q()};return K()},XS=(Z,X,Y)=>{let Q=Z.router.getMatch(X);if(!Q)return;if(!Y.options.head&&!Y.options.scripts&&!Y.options.headers)return;let G={ssr:Z.router.options.ssr,matches:Z.matches,match:Q,params:Q.params,loaderData:Q.loaderData};return Promise.all([Y.options.head?.(G),Y.options.scripts?.(G),Y.options.headers?.(G)]).then(([K,q,B])=>{let _=K?.meta,O=K?.links,A=K?.scripts,F=K?.styles;return{meta:_,links:O,headScripts:A,headers:B,scripts:q,styles:F}})},uV=(Z,X,Y,Q)=>{let G=Z.matchPromises[Y-1],{params:K,loaderDeps:q,abortController:B,cause:_}=Z.router.getMatch(X),O=n$(Z,Y),A=MQ(Z,X);return{params:K,deps:q,preload:!!A,parentMatchPromise:G,abortController:B,context:O,location:Z.location,navigate:(F)=>Z.router.navigate({...F,_fromLocation:Z.location}),cause:A?"preload":_,route:Q,...Z.router.options.additionalContext}},yV=async(Z,X,Y,Q)=>{try{let G=Z.router.getMatch(X);try{if(!($w??Z.router.isServer)||G.ssr===!0)SB(Q);let K=Q.options.loader?.(uV(Z,X,Y,Q)),q=Q.options.loader&&g6(K);if(!!(q||Q._lazyPromise||Q._componentsPromise||Q.options.head||Q.options.scripts||Q.options.headers||G._nonReactive.minPendingPromise))Z.updateMatch(X,(O)=>({...O,isFetching:"loader"}));if(Q.options.loader){let O=q?await K:K;if(S8(Z,Z.router.getMatch(X),O),O!==void 0)Z.updateMatch(X,(A)=>({...A,loaderData:O}))}if(Q._lazyPromise)await Q._lazyPromise;let _=G._nonReactive.minPendingPromise;if(_)await _;if(Q._componentsPromise)await Q._componentsPromise;Z.updateMatch(X,(O)=>({...O,error:void 0,context:n$(Z,Y),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(K){let q=K;if(q?.name==="AbortError"){Z.updateMatch(X,(_)=>({..._,status:_.status==="pending"?"success":_.status,isFetching:!1,context:n$(Z,Y)}));return}let B=G._nonReactive.minPendingPromise;if(B)await B;if(c1(K))await Q.options.notFoundComponent?.preload?.();S8(Z,Z.router.getMatch(X),K);try{Q.options.onError?.(K)}catch(_){q=_,S8(Z,Z.router.getMatch(X),_)}Z.updateMatch(X,(_)=>({..._,error:q,context:n$(Z,Y),status:"error",isFetching:!1}))}}catch(G){let K=Z.router.getMatch(X);if(K)K._nonReactive.loaderPromise=void 0;S8(Z,K,G)}},YS=async(Z,X)=>{let{id:Y,routeId:Q}=Z.matches[X],G=!1,K=!1,q=Z.router.looseRoutesById[Q];if(mV(Z,Y)){if($w??Z.router.isServer)return Z.router.getMatch(Y)}else{let O=Z.router.getMatch(Y);if(O._nonReactive.loaderPromise){if(O.status==="success"&&!Z.sync&&!O.preload)return O;await O._nonReactive.loaderPromise;let A=Z.router.getMatch(Y),F=A._nonReactive.error||A.error;if(F)S8(Z,A,F)}else{let A=Date.now()-O.updatedAt,F=MQ(Z,Y),L=F?q.options.preloadStaleTime??Z.router.options.defaultPreloadStaleTime??30000:q.options.staleTime??Z.router.options.defaultStaleTime??0,I=q.options.shouldReload,D=typeof I==="function"?I(uV(Z,Y,X,q)):I,T=!!F&&!Z.router.state.matches.some((E)=>E.id===Y),M=Z.router.getMatch(Y);if(M._nonReactive.loaderPromise=y4(),T!==M.preload)Z.updateMatch(Y,(E)=>({...E,preload:T}));let{status:v,invalid:P}=M;if(G=v==="success"&&(P||(D??A>L)),F&&q.options.preload===!1);else if(G&&!Z.sync)K=!0,(async()=>{try{await yV(Z,Y,X,q);let E=Z.router.getMatch(Y);E._nonReactive.loaderPromise?.resolve(),E._nonReactive.loadPromise?.resolve(),E._nonReactive.loaderPromise=void 0}catch(E){if(z5(E))await Z.router.navigate(E.options)}})();else if(v!=="success"||G&&Z.sync)await yV(Z,Y,X,q)}}let B=Z.router.getMatch(Y);if(!K)B._nonReactive.loaderPromise?.resolve(),B._nonReactive.loadPromise?.resolve();if(clearTimeout(B._nonReactive.pendingTimeout),B._nonReactive.pendingTimeout=void 0,!K)B._nonReactive.loaderPromise=void 0;B._nonReactive.dehydrated=void 0;let _=K?B.isFetching:!1;if(_!==B.isFetching||B.invalid!==!1)return Z.updateMatch(Y,(O)=>({...O,isFetching:_,invalid:!1})),Z.router.getMatch(Y);else return B};async function jB(Z){let X=Object.assign(Z,{matchPromises:[]});if(!($w??X.router.isServer)&&X.router.state.matches.some((Y)=>Y._forcePending))DQ(X);try{for(let B=0;B<X.matches.length;B++){let _=JS(X,B);if(g6(_))await _}let Y=X.firstBadMatchIndex??X.matches.length;for(let B=0;B<Y;B++)X.matchPromises.push(YS(X,B));let G=(await Promise.allSettled(X.matchPromises)).filter((B)=>B.status==="rejected").map((B)=>B.reason),K;for(let B of G){if(z5(B))throw B;if(!K&&c1(B))K=B}for(let B of X.matches){let{id:_,routeId:O}=B,A=X.router.looseRoutesById[O];try{let F=XS(X,_,A);if(F){let L=await F;X.updateMatch(_,(I)=>({...I,...L}))}}catch(F){console.error(`Error executing head for route ${O}:`,F)}}if(K)throw K;let q=DQ(X);if(g6(q))await q}catch(Y){if(c1(Y)&&!X.preload){let Q=DQ(X);if(g6(Q))await Q;throw Y}if(z5(Y))throw Y}return X.matches}async function SB(Z){if(!Z._lazyLoaded&&Z._lazyPromise===void 0)if(Z.lazyFn)Z._lazyPromise=Z.lazyFn().then((X)=>{let{id:Y,...Q}=X.options;Object.assign(Z.options,Q),Z._lazyLoaded=!0,Z._lazyPromise=void 0});else Z._lazyLoaded=!0;if(!Z._componentsLoaded&&Z._componentsPromise===void 0){let X=()=>{let Y=[];for(let Q of pV){let G=Z.options[Q]?.preload;if(G)Y.push(G())}if(Y.length)return Promise.all(Y).then(()=>{Z._componentsLoaded=!0,Z._componentsPromise=void 0});Z._componentsLoaded=!0,Z._componentsPromise=void 0;return};Z._componentsPromise=Z._lazyPromise?Z._lazyPromise.then(X):X()}return Z._componentsPromise}function kQ(Z,X){if(X)return{status:"error",error:X};return{status:"success",value:Z}}function xB(Z){for(let X of pV)if(Z.options[X]?.preload)return!0;return!1}var pV=["component","errorComponent","pendingComponent","notFoundComponent"];function lV(Z){return{input:({url:X})=>{for(let Y of Z)X=TQ(Y,X);return X},output:({url:X})=>{for(let Y=Z.length-1;Y>=0;Y--)X=hB(Z[Y],X);return X}}}function iV(Z){let X=vX(Z.basepath),Y=`/${X}`,Q=`${Y}/`,G=Z.caseSensitive?Y:Y.toLowerCase(),K=Z.caseSensitive?Q:Q.toLowerCase();return{input:({url:q})=>{let B=Z.caseSensitive?q.pathname:q.pathname.toLowerCase();if(B===G)q.pathname="/";else if(B.startsWith(K))q.pathname=q.pathname.slice(Y.length);return q},output:({url:q})=>{return q.pathname=J7(["/",X,q.pathname]),q}}}function TQ(Z,X){let Y=Z?.input?.({url:X});if(Y){if(typeof Y==="string")return new URL(Y);else if(Y instanceof URL)return Y}return X}function hB(Z,X){let Y=Z?.output?.({url:X});if(Y){if(typeof Y==="string")return new URL(Y);else if(Y instanceof URL)return Y}return X}function d4(Z){let{resolvedLocation:X,location:Y}=Z,Q=X?.pathname!==Y.pathname,G=X?.href!==Y.href,K=X?.hash!==Y.hash;return{fromLocation:X,toLocation:Y,pathChanged:Q,hrefChanged:G,hashChanged:K}}function zS(Z){let X={state:Z,setState:(Y)=>{X.state=Y(X.state)}};return X}class PQ{constructor(Z){if(this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=(X)=>X(),this.update=(X)=>{if(X.notFoundRoute)console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");let Y=this.options,Q=this.basepath??Y?.basepath??"/",G=this.basepath===void 0,K=Y?.rewrite;if(this.options={...Y,...X},this.isServer=this.options.isServer??typeof document>"u",this.options.pathParamsAllowedCharacters)this.pathParamsDecoder=RV(this.options.pathParamsAllowedCharacters);if(!this.history||this.options.history&&this.options.history!==this.history)if(!this.options.history){if(!($w??this.isServer))this.history=OQ()}else this.history=this.options.history;if(this.origin=this.options.origin,!this.origin)if(!($w??this.isServer)&&window?.origin&&window.origin!=="null")this.origin=window.origin;else this.origin="http://localhost";if(this.history)this.updateLatestLocation();if(this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let F;if(($w??this.isServer)&&globalThis.__TSR_CACHE__&&globalThis.__TSR_CACHE__.routeTree===this.routeTree){let L=globalThis.__TSR_CACHE__;this.resolvePathCache=L.resolvePathCache,F=L.processRouteTreeResult}else if(this.resolvePathCache=l$(1000),F=this.buildRouteTree(),($w??this.isServer)&&globalThis.__TSR_CACHE__===void 0)globalThis.__TSR_CACHE__={routeTree:this.routeTree,processRouteTreeResult:F,resolvePathCache:this.resolvePathCache};this.setRoutes(F)}if(!this.__store&&this.latestLocation)if($w??this.isServer)this.__store=zS(fB(this.latestLocation));else this.__store=new _Q(fB(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter((F)=>!["redirected"].includes(F.status))}}}),gB(this);let q=!1,B=this.options.basepath??"/",_=this.options.rewrite;if(G||Q!==B||K!==_){this.basepath=B;let F=[],L=vX(B);if(L&&L!=="/")F.push(iV({basepath:B}));if(_)F.push(_);if(this.rewrite=F.length===0?void 0:F.length===1?F[0]:lV(F),this.history)this.updateLatestLocation();q=!0}if(q&&this.__store)this.__store.state={...this.state,location:this.latestLocation};if(typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports==="function")this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)")},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let X=gV(this.routeTree,this.options.caseSensitive,(Y,Q)=>{Y.init({originalIndex:Q})});if(this.options.routeMasks)TV(this.options.routeMasks,X.processedTree);return X},this.subscribe=(X,Y)=>{let Q={eventType:X,fn:Y};return this.subscribers.add(Q),()=>{this.subscribers.delete(Q)}},this.emit=(X)=>{this.subscribers.forEach((Y)=>{if(Y.eventType===X.type)Y.fn(X)})},this.parseLocation=(X,Y)=>{let Q=({href:B,state:_})=>{let O=new URL(B,this.origin),A=TQ(this.rewrite,O),F=this.options.parseSearch(A.search),L=this.options.stringifySearch(F);return A.search=L,{href:A.href.replace(A.origin,""),publicHref:B,pathname:kX(A.pathname),external:!!this.rewrite&&A.origin!==this.origin,searchStr:L,search:V5(Y?.search,F),hash:kX(A.hash.split("#").reverse()[0]??""),state:V5(Y?.state,_)}},G=Q(X),{__tempLocation:K,__tempKey:q}=G.state;if(K&&(!q||q===this.tempLocationKey)){let B=Q(K);return B.state.key=G.state.key,B.state.__TSR_key=G.state.__TSR_key,delete B.state.__tempLocation,{...B,maskedLocation:G}}return G},this.resolvePathWithBase=(X,Y)=>{return EB({base:X,to:TX(Y),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache})},this.matchRoutes=(X,Y,Q)=>{if(typeof X==="string")return this.matchRoutesInternal({pathname:X,search:Y},Q);return this.matchRoutesInternal(X,Y)},this.getMatchedRoutes=(X)=>{return sV({pathname:X,routesById:this.routesById,processedTree:this.processedTree})},this.cancelMatch=(X)=>{let Y=this.getMatch(X);if(!Y)return;Y.abortController.abort(),clearTimeout(Y._nonReactive.pendingTimeout),Y._nonReactive.pendingTimeout=void 0},this.cancelMatches=()=>{let X=this.state.matches.filter((G)=>G.status==="pending"),Y=this.state.matches.filter((G)=>G.isFetching==="loader");new Set([...this.state.pendingMatches??[],...X,...Y]).forEach((G)=>{this.cancelMatch(G.id)})},this.buildLocation=(X)=>{let Y=(G={})=>{let K=G._fromLocation||this.pendingBuiltLocation||this.latestLocation,q=this.matchRoutesLightweight(K);if(G.from&&!0&&G._isNavigate){let t=this.getMatchedRoutes(G.from).matchedRoutes,s=IB(q.matchedRoutes,(e)=>{return nV(e.fullPath,G.from)}),M0=IB(t,(e)=>{return nV(e.fullPath,q.fullPath)});if(!s&&!M0)console.warn(`Could not find match for from: ${G.from}`)}let B=G.unsafeRelative==="path"?K.pathname:G.from??q.fullPath,_=this.resolvePathWithBase(B,"."),O=q.search,A={...q.params},F=G.to?this.resolvePathWithBase(_,`${G.to}`):this.resolvePathWithBase(_,"."),L=G.params===!1||G.params===null?{}:(G.params??!0)===!0?A:Object.assign(A,h5(G.params,A)),I=PX({path:F,params:L,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath,D=this.getMatchedRoutes(I),T=D.matchedRoutes;if(D.foundRoute?D.foundRoute.path!=="/"&&D.routeParams["**"]:G2(I))if(this.options.notFoundRoute)T=[...T,this.options.notFoundRoute];else aV(this.options.notFoundMode,T);let v=!1;if(Object.keys(L).length>0)for(let t of T){let s=t.options.params?.stringify??t.options.stringifyParams;if(s)v=!0,Object.assign(L,s(L))}let P=X.leaveParams?F:kX(!v?I:PX({path:F,params:L,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath),E=O;if(X._includeValidateSearch&&this.options.search?.strict){let t={};T.forEach((s)=>{if(s.options.validateSearch)try{Object.assign(t,vQ(s.options.validateSearch,{...t,...E}))}catch{}}),E=t}E=QS({search:E,dest:G,destRoutes:T,_includeValidateSearch:X._includeValidateSearch}),E=V5(O,E);let u=this.options.stringifySearch(E),l=G.hash===!0?K.hash:G.hash?h5(G.hash,K.hash):void 0,p=l?`#${l}`:"",n=G.state===!0?K.state:G.state?h5(G.state,K.state):{};n=V5(K.state,n);let j=`${P}${u}${p}`,y,m,$0=!1;if(this.rewrite){let t=new URL(j,this.origin),s=hB(this.rewrite,t);if(y=t.href.replace(t.origin,""),s.origin!==this.origin)m=s.href,$0=!0;else m=s.pathname+s.search+s.hash}else y=DV(j),m=y;return{publicHref:m,href:y,pathname:P,search:E,searchStr:u,state:n,hash:l??"",external:$0,unmaskOnReload:G.unmaskOnReload}},Q=(G={},K)=>{let q=Y(G),B=K?Y(K):void 0;if(!B){let _={};if(this.options.routeMasks){let O=vV(q.pathname,this.processedTree);if(O){Object.assign(_,O.rawParams);let{from:A,params:F,...L}=O.route,I=F===!1||F===null?{}:(F??!0)===!0?_:Object.assign(_,h5(F,_));K={from:X.from,...L,params:I},B=Y(K)}}}if(B)q.maskedLocation=B;return q};if(X.mask)return Q(X,{from:X.from,...X.mask});return Q(X)},this.commitLocation=async({viewTransition:X,ignoreBlocker:Y,...Q})=>{let G=()=>{let B=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];B.forEach((O)=>{Q.state[O]=this.latestLocation.state[O]});let _=s2(Q.state,this.latestLocation.state);return B.forEach((O)=>{delete Q.state[O]}),_},K=G2(this.latestLocation.href)===G2(Q.href),q=this.commitLocationPromise;if(this.commitLocationPromise=y4(()=>{q?.resolve()}),K&&G())this.load();else{let{maskedLocation:B,hashScrollIntoView:_,...O}=Q;if(B){if(O={...B,state:{...B.state,__tempKey:void 0,__tempLocation:{...O,search:O.searchStr,state:{...O.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},O.unmaskOnReload??this.options.unmaskOnReload??!1)O.state.__tempKey=this.tempLocationKey}O.state.__hashScrollIntoViewOptions=_??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=X,this.history[Q.replace?"replace":"push"](O.publicHref,O.state,{ignoreBlocker:Y})}if(this.resetNextScroll=Q.resetScroll??!0,!this.history.subscribers.size)this.load();return this.commitLocationPromise},this.buildAndCommitLocation=({replace:X,resetScroll:Y,hashScrollIntoView:Q,viewTransition:G,ignoreBlocker:K,href:q,...B}={})=>{if(q){let A=this.history.location.state.__TSR_index,F=p$(q,{__TSR_index:X?A:A+1}),L=new URL(F.pathname,this.origin),I=TQ(this.rewrite,L);B.to=I.pathname,B.search=this.options.parseSearch(F.search),B.hash=F.hash.slice(1)}let _=this.buildLocation({...B,_includeValidateSearch:!0});this.pendingBuiltLocation=_;let O=this.commitLocation({..._,viewTransition:G,replace:X,resetScroll:Y,hashScrollIntoView:Q,ignoreBlocker:K});return Promise.resolve().then(()=>{if(this.pendingBuiltLocation===_)this.pendingBuiltLocation=void 0}),O},this.navigate=async({to:X,reloadDocument:Y,href:Q,publicHref:G,...K})=>{let q=!1;if(Q)try{new URL(`${Q}`),q=!0}catch{}if(q&&!Y)Y=!0;if(Y){if(X!==void 0||!Q){let _=this.buildLocation({to:X,...K});Q=Q??_.publicHref,G=G??_.publicHref}let B=!q&&G?G:Q;if(t2(B))return console.warn(`Blocked navigation to dangerous protocol: ${B}`),Promise.resolve();if(!K.ignoreBlocker){let O=this.history.getBlockers?.()??[];for(let A of O)if(A?.blockerFn){if(await A.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}}if(K.replace)window.location.replace(B);else window.location.href=B;return Promise.resolve()}return this.buildAndCommitLocation({...K,href:Q,to:X,_isNavigate:!0})},this.beforeLoad=()=>{if(this.cancelMatches(),this.updateLatestLocation(),$w??this.isServer){let Y=this.buildLocation({to:this.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(this.latestLocation.publicHref!==Y.publicHref){let Q=this.getParsedLocationHref(Y);throw CX({href:Q})}}let X=this.matchRoutes(this.latestLocation);this.__store.setState((Y)=>({...Y,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:X,cachedMatches:Y.cachedMatches.filter((Q)=>!X.some((G)=>G.id===Q.id))}))},this.load=async(X)=>{let Y,Q,G;G=new Promise((q)=>{this.startTransition(async()=>{try{this.beforeLoad();let B=this.latestLocation,_=this.state.resolvedLocation;if(!this.state.redirect)this.emit({type:"onBeforeNavigate",...d4({resolvedLocation:_,location:B})});this.emit({type:"onBeforeLoad",...d4({resolvedLocation:_,location:B})}),await jB({router:this,sync:X?.sync,matches:this.state.pendingMatches,location:B,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let O=[],A=[],F=[];e9(()=>{this.__store.setState((L)=>{let I=L.matches,D=L.pendingMatches||L.matches;return O=I.filter((T)=>!D.some((M)=>M.id===T.id)),A=D.filter((T)=>!I.some((M)=>M.id===T.id)),F=D.filter((T)=>I.some((M)=>M.id===T.id)),{...L,isLoading:!1,loadedAt:Date.now(),matches:D,pendingMatches:void 0,cachedMatches:[...L.cachedMatches,...O.filter((T)=>T.status!=="error"&&T.status!=="notFound")]}}),this.clearExpiredCache()}),[[O,"onLeave"],[A,"onEnter"],[F,"onStay"]].forEach(([L,I])=>{L.forEach((D)=>{this.looseRoutesById[D.routeId].options[I]?.(D)})})})})}})}catch(B){if(z5(B)){if(Y=B,!($w??this.isServer))this.navigate({...Y.options,replace:!0,ignoreBlocker:!0})}else if(c1(B))Q=B;this.__store.setState((_)=>({..._,statusCode:Y?Y.status:Q?404:_.matches.some((O)=>O.status==="error")?500:200,redirect:Y}))}if(this.latestLoadPromise===G)this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0;q()})}),this.latestLoadPromise=G,await G;while(this.latestLoadPromise&&G!==this.latestLoadPromise)await this.latestLoadPromise;let K=void 0;if(this.hasNotFoundMatch())K=404;else if(this.__store.state.matches.some((q)=>q.status==="error"))K=500;if(K!==void 0)this.__store.setState((q)=>({...q,statusCode:K}))},this.startViewTransition=(X)=>{let Y=this.shouldViewTransition??this.options.defaultViewTransition;if(delete this.shouldViewTransition,Y&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition==="function"){let Q;if(typeof Y==="object"&&this.isViewTransitionTypesSupported){let G=this.latestLocation,K=this.state.resolvedLocation,q=typeof Y.types==="function"?Y.types(d4({resolvedLocation:K,location:G})):Y.types;if(q===!1){X();return}Q={update:X,types:q}}else Q=X;document.startViewTransition(Q)}else X()},this.updateMatch=(X,Y)=>{this.startTransition(()=>{let Q=this.state.pendingMatches?.some((G)=>G.id===X)?"pendingMatches":this.state.matches.some((G)=>G.id===X)?"matches":this.state.cachedMatches.some((G)=>G.id===X)?"cachedMatches":"";if(Q)this.__store.setState((G)=>({...G,[Q]:G[Q]?.map((K)=>K.id===X?Y(K):K)}))})},this.getMatch=(X)=>{let Y=(Q)=>Q.id===X;return this.state.cachedMatches.find(Y)??this.state.pendingMatches?.find(Y)??this.state.matches.find(Y)},this.invalidate=(X)=>{let Y=(Q)=>{if(X?.filter?.(Q)??!0)return{...Q,invalid:!0,...X?.forcePending||Q.status==="error"||Q.status==="notFound"?{status:"pending",error:void 0}:void 0};return Q};return this.__store.setState((Q)=>({...Q,matches:Q.matches.map(Y),cachedMatches:Q.cachedMatches.map(Y),pendingMatches:Q.pendingMatches?.map(Y)})),this.shouldViewTransition=!1,this.load({sync:X?.sync})},this.getParsedLocationHref=(X)=>{return X.publicHref||"/"},this.resolveRedirect=(X)=>{let Y=X.headers.get("Location");if(!X.options.href){let Q=this.buildLocation(X.options),G=this.getParsedLocationHref(Q);X.options.href=G,X.headers.set("Location",G)}else if(Y)try{let Q=new URL(Y);if(this.origin&&Q.origin===this.origin){let G=Q.pathname+Q.search+Q.hash;X.options.href=G,X.headers.set("Location",G)}}catch{}if(!X.headers.get("Location"))X.headers.set("Location",X.options.href);return X},this.clearCache=(X)=>{let Y=X?.filter;if(Y!==void 0)this.__store.setState((Q)=>{return{...Q,cachedMatches:Q.cachedMatches.filter((G)=>!Y(G))}});else this.__store.setState((Q)=>{return{...Q,cachedMatches:[]}})},this.clearExpiredCache=()=>{let X=(Y)=>{let Q=this.looseRoutesById[Y.routeId];if(!Q.options.loader)return!0;let G=(Y.preload?Q.options.preloadGcTime??this.options.defaultPreloadGcTime:Q.options.gcTime??this.options.defaultGcTime)??300000;if(Y.status==="error")return!0;return Date.now()-Y.updatedAt>=G};this.clearCache({filter:X})},this.loadRouteChunk=SB,this.preloadRoute=async(X)=>{let Y=this.buildLocation(X),Q=this.matchRoutes(Y,{throwOnError:!0,preload:!0,dest:X}),G=new Set([...this.state.matches,...this.state.pendingMatches??[]].map((q)=>q.id)),K=new Set([...G,...this.state.cachedMatches.map((q)=>q.id)]);e9(()=>{Q.forEach((q)=>{if(!K.has(q.id))this.__store.setState((B)=>({...B,cachedMatches:[...B.cachedMatches,q]}))})});try{return Q=await jB({router:this,matches:Q,location:Y,preload:!0,updateMatch:(q,B)=>{if(G.has(q))Q=Q.map((_)=>_.id===q?B(_):_);else this.updateMatch(q,B)}}),Q}catch(q){if(z5(q)){if(q.options.reloadDocument)return;return await this.preloadRoute({...q.options,_fromLocation:Y})}if(!c1(q))console.error(q);return}},this.matchRoute=(X,Y)=>{let Q={...X,to:X.to?this.resolvePathWithBase(X.from||"",X.to):void 0,params:X.params||{},leaveParams:!0},G=this.buildLocation(Q);if(Y?.pending&&this.state.status!=="pending")return!1;let q=(Y?.pending===void 0?!this.state.isLoading:Y.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,B=PV(G.pathname,Y?.caseSensitive??!1,Y?.fuzzy??!1,q.pathname,this.processedTree);if(!B)return!1;if(X.params){if(!s2(B.rawParams,X.params,{partial:!0}))return!1}if(Y?.includeSearch??!0)return s2(q.search,G.search,{partial:!0})?B.rawParams:!1;return B.rawParams},this.hasNotFoundMatch=()=>{return this.__store.state.matches.some((X)=>X.status==="notFound"||X.globalNotFound)},this.update({defaultPreloadDelay:50,defaultPendingMs:1000,defaultPendingMinMs:500,context:void 0,...Z,caseSensitive:Z.caseSensitive??!1,notFoundMode:Z.notFoundMode??"fuzzy",stringifySearch:Z.stringifySearch??fV,parseSearch:Z.parseSearch??hV}),typeof document<"u")self.__TSR_ROUTER__=this}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}setRoutes({routesById:Z,routesByPath:X,processedTree:Y}){this.routesById=Z,this.routesByPath=X,this.processedTree=Y;let Q=this.options.notFoundRoute;if(Q)Q.init({originalIndex:99999999999}),this.routesById[Q.id]=Q}get looseRoutesById(){return this.routesById}matchRoutesInternal(Z,X){let Y=this.getMatchedRoutes(Z.pathname),{foundRoute:Q,routeParams:G,parsedParams:K}=Y,{matchedRoutes:q}=Y,B=!1;if(Q?Q.path!=="/"&&G["**"]:G2(Z.pathname))if(this.options.notFoundRoute)q=[...q,this.options.notFoundRoute];else B=!0;let _=B?aV(this.options.notFoundMode,q):void 0,O=[],A=(F)=>{return!F?.id?this.options.context??void 0:F.context??this.options.context??void 0};return q.forEach((F,L)=>{let I=O[L-1],[D,T,M]=(()=>{let s=I?.search??Z.search,M0=I?._strictSearch??void 0;try{let e=vQ(F.options.validateSearch,{...s})??void 0;return[{...s,...e},{...M0,...e},void 0]}catch(e){let Y0=e;if(!(e instanceof a$))Y0=new a$(e.message,{cause:e});if(X?.throwOnError)throw Y0;return[s,{},Y0]}})(),v=F.options.loaderDeps?.({search:D})??"",P=v?JSON.stringify(v):"",{interpolatedPath:E,usedParams:u}=PX({path:F.fullPath,params:G,decoder:this.pathParamsDecoder,server:this.isServer}),l=F.id+E+P,p=this.getMatch(l),n=this.state.matches.find((s)=>s.routeId===F.id),j=p?._strictParams??u,y=void 0;if(!p)try{oV(F,u,K,j)}catch(s){if(c1(s)||z5(s))y=s;else y=new yB(s.message,{cause:s});if(X?.throwOnError)throw y}Object.assign(G,j);let m=n?"stay":"enter",$0;if(p)$0={...p,cause:m,params:n?V5(n.params,G):G,_strictParams:j,search:n?V5(n.search,D):V5(p.search,D),_strictSearch:T};else{let s=F.options.loader||F.options.beforeLoad||F.lazyFn||xB(F)?"pending":"success";$0={id:l,ssr:$w??this.isServer?void 0:F.options.ssr,index:L,routeId:F.id,params:n?V5(n.params,G):G,_strictParams:j,pathname:E,updatedAt:Date.now(),search:n?V5(n.search,D):D,_strictSearch:T,searchError:void 0,status:s,isFetching:!1,error:void 0,paramsError:y,__routeContext:void 0,_nonReactive:{loadPromise:y4()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:m,loaderDeps:n?V5(n.loaderDeps,v):v,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:F.options.staticData||{},fullPath:F.fullPath}}if(!X?.preload)$0.globalNotFound=_===F.id;$0.searchError=M;let t=A(I);$0.context={...t,...$0.__routeContext,...$0.__beforeLoadContext},O.push($0)}),O.forEach((F,L)=>{let I=this.looseRoutesById[F.routeId];if(!this.getMatch(F.id)){let T=O[L-1],M=A(T);if(I.options.context){let v={deps:F.loaderDeps,params:F.params,context:M??{},location:Z,navigate:(P)=>this.navigate({...P,_fromLocation:Z}),buildLocation:this.buildLocation,cause:F.cause,abortController:F.abortController,preload:!!F.preload,matches:O};F.__routeContext=I.options.context(v)??void 0}F.context={...M,...F.__routeContext,...F.__beforeLoadContext}}}),O}matchRoutesLightweight(Z){let{matchedRoutes:X,routeParams:Y,parsedParams:Q}=this.getMatchedRoutes(Z.pathname),G=E6(X),K={...Z.search};for(let O of X)try{Object.assign(K,vQ(O.options.validateSearch,K))}catch{}let q=E6(this.state.matches),B=q&&q.routeId===G.id&&Z.pathname===this.state.location.pathname,_;if(B)_=q.params;else{let O={...Y};for(let A of X)try{oV(A,Y,Q??{},O)}catch{}_=O}return{matchedRoutes:X,fullPath:G.fullPath,search:K,params:_}}}class a$ extends Error{}class yB extends Error{}var rV=(Z)=>Z.endsWith("/")&&Z.length>1?Z.slice(0,-1):Z;function nV(Z,X){return rV(Z)===rV(X)}function fB(Z){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:Z,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function vQ(Z,X){if(Z==null)return{};if("~standard"in Z){let Y=Z["~standard"].validate(X);if(Y instanceof Promise)throw new a$("Async validation not supported");if(Y.issues)throw new a$(JSON.stringify(Y.issues,void 0,2),{cause:Y});return Y.value}if("parse"in Z)return Z.parse(X);if(typeof Z==="function")return Z(X);return{}}function sV({pathname:Z,routesById:X,processedTree:Y}){let Q={},G=G2(Z),K=void 0,q=void 0,B=EV(G,Y,!0);if(B)K=B.route,Object.assign(Q,B.rawParams),q=Object.assign({},B.parsedParams);return{matchedRoutes:B?.branch||[X[M1]],routeParams:Q,foundRoute:K,parsedParams:q}}function QS({search:Z,dest:X,destRoutes:Y,_includeValidateSearch:Q}){return WS(Y)(Z,X,Q??!1)}function WS(Z){let X={dest:null,_includeValidateSearch:!1,middlewares:[]};for(let G of Z){if("search"in G.options){if(G.options.search?.middlewares)X.middlewares.push(...G.options.search.middlewares)}else if(G.options.preSearchFilters||G.options.postSearchFilters){let K=({search:q,next:B})=>{let _=q;if("preSearchFilters"in G.options&&G.options.preSearchFilters)_=G.options.preSearchFilters.reduce((A,F)=>F(A),q);let O=B(_);if("postSearchFilters"in G.options&&G.options.postSearchFilters)return G.options.postSearchFilters.reduce((A,F)=>F(A),O);return O};X.middlewares.push(K)}if(G.options.validateSearch){let K=({search:q,next:B})=>{let _=B(q);if(!X._includeValidateSearch)return _;try{return{..._,...vQ(G.options.validateSearch,_)??void 0}}catch{return _}};X.middlewares.push(K)}}let Y=({search:G})=>{let K=X.dest;if(!K.search)return{};if(K.search===!0)return G;return h5(K.search,G)};X.middlewares.push(Y);let Q=(G,K,q)=>{if(G>=q.length)return K;let B=q[G];return B({search:K,next:(O)=>{return Q(G+1,O,q)}})};return function(K,q,B){return X.dest=q,X._includeValidateSearch=B,Q(0,K,X.middlewares)}}function aV(Z,X){if(Z!=="root")for(let Y=X.length-1;Y>=0;Y--){let Q=X[Y];if(Q.children)return Q.id}return M1}function oV(Z,X,Y,Q){let G=Z.options.params?.parse??Z.options.parseParams;if(G)if(Z.options.skipRouteOnParseError){for(let K in X)if(K in Y)Q[K]=Y[K]}else{let K=G(Q);Object.assign(Q,K)}}var dB="Error preloading route! ☝️";class jX{constructor(Z){if(this.init=(X)=>{this.originalIndex=X.originalIndex;let Y=this.options,Q=!Y?.path&&!Y?.id;if(this.parentRoute=this.options.getParentRoute?.(),Q)this._path=M1;else if(!this.parentRoute)f5(!1,"Child Route instances must pass a 'getParentRoute: () => ParentRoute' option that returns a Route instance.");let G=Q?M1:Y?.path;if(G&&G!=="/")G=LQ(G);let K=Y?.id||G,q=Q?M1:J7([this.parentRoute.id===M1?"":this.parentRoute.id,K]);if(G===M1)G="/";if(q!==M1)q=J7(["/",q]);let B=q===M1?"/":J7([this.parentRoute.fullPath,G]);this._path=G,this._id=q,this._fullPath=B,this._to=G2(B)},this.addChildren=(X)=>{return this._addFileChildren(X)},this._addFileChildren=(X)=>{if(Array.isArray(X))this.children=X;if(typeof X==="object"&&X!==null)this.children=Object.values(X);return this},this._addFileTypes=()=>{return this},this.updateLoader=(X)=>{return Object.assign(this.options,X),this},this.update=(X)=>{return Object.assign(this.options,X),this},this.lazy=(X)=>{return this.lazyFn=X,this},this.redirect=(X)=>CX({from:this.fullPath,...X}),this.options=Z||{},this.isRoot=!Z?.getParentRoute,Z?.id&&Z?.path)throw Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}}class EQ extends jX{constructor(Z){super(Z)}}var e2=c(U0(),1),qS="use",Ep=e2[qS];var SX=typeof window<"u"?e2.useLayoutEffect:e2.useEffect;function gQ(Z){let X=e2.useRef({value:Z,prev:null}),Y=X.current.value;if(Z!==Y)X.current={value:Z,prev:Y};return X.current.prev}function tV(Z,X,Y={},Q={}){e2.useEffect(()=>{if(!Z.current||Q.disabled||typeof IntersectionObserver!=="function")return;let G=new IntersectionObserver(([K])=>{X(K)},Y);return G.observe(Z.current),()=>{G.disconnect()}},[X,Y,Q.disabled,Z])}function eV(Z){let X=e2.useRef(null);return e2.useImperativeHandle(Z,()=>X.current,[]),X}var w4=c(Lw(),1),o$=c(U0(),1);function s$(Z){let X=Z.errorComponent??t$;return w4.jsx(wk,{getResetKey:Z.getResetKey,onCatch:Z.onCatch,children:({error:Y,reset:Q})=>{if(Y)return o$.createElement(X,{error:Y,reset:Q});return Z.children}})}class wk extends o$.Component{constructor(){super(...arguments);this.state={error:null}}static getDerivedStateFromProps(Z){return{resetKey:Z.getResetKey()}}static getDerivedStateFromError(Z){return{error:Z}}reset(){this.setState({error:null})}componentDidUpdate(Z,X){if(X.error&&X.resetKey!==this.state.resetKey)this.reset()}componentDidCatch(Z,X){if(this.props.onCatch)this.props.onCatch(Z,X)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function t$({error:Z}){let[X,Y]=o$.useState(!0);return w4.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[w4.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[w4.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),w4.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>Y((Q)=>!Q),children:X?"Hide Error":"Show Error"})]}),w4.jsx("div",{style:{height:".25rem"}}),X?w4.jsx("div",{children:w4.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:Z.message?w4.jsx("code",{children:Z.message}):null})}):null]})}var mB=c(Lw(),1),CQ=c(U0(),1);function $k({children:Z,fallback:X=null}){return cB()?mB.jsx(CQ.default.Fragment,{children:Z}):mB.jsx(CQ.default.Fragment,{children:X})}function cB(){return CQ.default.useSyncExternalStore(BS,()=>!0,()=>!1)}function BS(){return()=>{}}var US=!1;function FS(Z,X){if(!US){if(Z)return;var Y="Warning: "+X;if(typeof console<"u")console.warn(Y);try{throw Error(Y)}catch(Q){}}}var $4=FS;var rB=c(Lw(),1);var nB=c(U0(),1);var Kk=c(U0(),1);var Yk=c(Jk(),1);function zk(Z,X=(Q)=>Q,Y={}){let Q=Y.equal??AS;return Yk.useSyncExternalStoreWithSelector(Z.subscribe,()=>Z.state,()=>Z.state,X,Q)}function AS(Z,X){if(Object.is(Z,X))return!0;if(typeof Z!=="object"||Z===null||typeof X!=="object"||X===null)return!1;if(Z instanceof Map&&X instanceof Map){if(Z.size!==X.size)return!1;for(let[Q,G]of Z)if(!X.has(Q)||!Object.is(G,X.get(Q)))return!1;return!0}if(Z instanceof Set&&X instanceof Set){if(Z.size!==X.size)return!1;for(let Q of Z)if(!X.has(Q))return!1;return!0}if(Z instanceof Date&&X instanceof Date){if(Z.getTime()!==X.getTime())return!1;return!0}let Y=Xk(Z);if(Y.length!==Xk(X).length)return!1;for(let Q=0;Q<Y.length;Q++)if(!Object.prototype.hasOwnProperty.call(X,Y[Q])||!Object.is(Z[Y[Q]],X[Y[Q]]))return!1;return!0}function Xk(Z){return Object.keys(Z).concat(Object.getOwnPropertySymbols(Z))}var Gk=c(U0(),1);var Wk=c(U0(),1);var Qk=c(U0(),1),uB=Qk.createContext(null);function RQ(){if(typeof document>"u")return uB;if(window.__TSR_ROUTER_CONTEXT__)return window.__TSR_ROUTER_CONTEXT__;return window.__TSR_ROUTER_CONTEXT__=uB,uB}function J1(Z){let X=Wk.useContext(RQ());return $4(!((Z?.warn??!0)&&!X),"useRouter must be used inside a <RouterProvider> component!"),X}function A1(Z){let X=J1({warn:Z?.router===void 0}),Y=Z?.router||X;if($w??Y.isServer){let K=Y.state;return Z?.select?Z.select(K):K}let G=Gk.useRef(void 0);return zk(Y.__store,(K)=>{if(Z?.select){if(Z.structuralSharing??Y.options.defaultStructuralSharing){let q=V5(G.current,Z.select(K));return G.current=q,q}return Z.select(K)}return K})}var pB=c(U0(),1),Y7=pB.createContext(void 0),Hk=pB.createContext(void 0);function Q5(Z){let X=Kk.useContext(Z.from?Hk:Y7);return A1({select:(Q)=>{let G=Q.matches.find((K)=>Z.from?Z.from===K.routeId:K.id===X);if(f5(!((Z.shouldThrow??!0)&&!G),`Could not find ${Z.from?`an active match from "${Z.from}"`:"a nearest match!"}`),G===void 0)return;return Z.select?Z.select(G):G},structuralSharing:Z.structuralSharing})}function xX(Z){return Q5({from:Z.from,strict:Z.strict,structuralSharing:Z.structuralSharing,select:(X)=>{return Z.select?Z.select(X.loaderData):X.loaderData}})}function hX(Z){let{select:X,...Y}=Z;return Q5({...Y,select:(Q)=>{return X?X(Q.loaderDeps):Q.loaderDeps}})}function fX(Z){return Q5({from:Z.from,shouldThrow:Z.shouldThrow,structuralSharing:Z.structuralSharing,strict:Z.strict,select:(X)=>{let Y=Z.strict===!1?X.params:X._strictParams;return Z.select?Z.select(Y):Y}})}function yX(Z){return Q5({from:Z.from,strict:Z.strict,shouldThrow:Z.shouldThrow,structuralSharing:Z.structuralSharing,select:(X)=>{return Z.select?Z.select(X.search):X.search}})}var lB=c(U0(),1);function dX(Z){let X=J1();return lB.useCallback((Y)=>{return X.navigate({...Y,from:Y.from??Z?.from})},[Z?.from,X])}var NS=c(Lw(),1),T1=c(U0(),1),Ok=c(t9(),1);function LS(Z,X){let Y=J1(),Q=eV(X),G=$w??Y.isServer,{activeProps:K,inactiveProps:q,activeOptions:B,to:_,preload:O,preloadDelay:A,hashScrollIntoView:F,replace:L,startTransition:I,resetScroll:D,viewTransition:T,children:M,target:v,disabled:P,style:E,className:u,onClick:l,onFocus:p,onMouseEnter:n,onMouseLeave:j,onTouchStart:y,ignoreBlocker:m,params:$0,search:t,hash:s,state:M0,mask:e,reloadDocument:Y0,unsafeRelative:z0,from:Z0,_fromLocation:C0,...C}=Z;if(G){let Uw=_k(_);if(typeof _==="string"&&!Uw&&_.indexOf(":")>-1)try{if(new URL(_),t2(_))return console.warn(`Blocked Link with dangerous protocol: ${_}`),{...C,ref:Q,href:void 0,...M&&{children:M},...v&&{target:v},...P&&{disabled:P},...E&&{style:E},...u&&{className:u}};return{...C,ref:Q,href:_,...M&&{children:M},...v&&{target:v},...P&&{disabled:P},...E&&{style:E},...u&&{className:u}}}catch{}let s0=Y.buildLocation({...Z,from:Z.from}),ew=s0.maskedLocation?s0.maskedLocation.publicHref:s0.publicHref,I1=s0.maskedLocation?s0.maskedLocation.external:s0.external,Z5=Fk(ew,I1,Y.history,P),x1=(()=>{if(Z5?.external){if(t2(Z5.href)){console.warn(`Blocked Link with dangerous protocol: ${Z5.href}`);return}return Z5.href}if(Uw)return;if(typeof _==="string"&&_.indexOf(":")>-1)try{if(new URL(_),t2(_)){console.warn(`Blocked Link with dangerous protocol: ${_}`);return}return _}catch{}return})(),i5=(()=>{if(x1)return!1;let w0=Y.state.location,X0=B?.exact??!1;if(X0){if(!bQ(w0.pathname,s0.pathname,Y.basepath))return!1}else{let b0=j8(w0.pathname,Y.basepath),g0=j8(s0.pathname,Y.basepath);if(!(b0.startsWith(g0)&&(b0.length===g0.length||b0[g0.length]==="/")))return!1}if(B?.includeSearch??!0){if(w0.search!==s0.search){let b0=!w0.search||typeof w0.search==="object"&&Object.keys(w0.search).length===0,g0=!s0.search||typeof s0.search==="object"&&Object.keys(s0.search).length===0;if(!(b0&&g0)){if(!s2(w0.search,s0.search,{partial:!X0,ignoreUndefined:!B?.explicitUndefined}))return!1}}}if(B?.includeHash)return!1;return!0})();if(x1)return{...C,ref:Q,href:x1,...M&&{children:M},...v&&{target:v},...P&&{disabled:P},...E&&{style:E},...u&&{className:u}};let y2=i5?h5(K,{})??qk:e$,B5=i5?e$:h5(q,{})??e$,k=(()=>{let w0=E,X0=y2.style,_0=B5.style;if(!w0&&!X0&&!_0)return;if(w0&&!X0&&!_0)return w0;if(!w0&&X0&&!_0)return X0;if(!w0&&!X0&&_0)return _0;return{...w0,...X0,..._0}})(),d=(()=>{let w0=u,X0=y2.className,_0=B5.className;if(!w0&&!X0&&!_0)return"";let b0="";if(w0)b0=w0;if(X0)b0=b0?`${b0} ${X0}`:X0;if(_0)b0=b0?`${b0} ${_0}`:_0;return b0})();return{...C,...y2,...B5,href:Z5?.href,ref:Q,disabled:!!P,target:v,...k&&{style:k},...d&&{className:d},...P&&Bk,...i5&&Uk}}let Q0=cB(),L0=A1({select:(Uw)=>Uw.location.search,structuralSharing:!0}),J0=Z.from,O0=T1.useMemo(()=>{return{...Z,from:J0}},[Y,L0,J0,Z._fromLocation,Z.hash,Z.to,Z.search,Z.params,Z.state,Z.mask,Z.unsafeRelative]),R0=T1.useMemo(()=>Y.buildLocation({...O0}),[Y,O0]),k0=R0.maskedLocation?R0.maskedLocation.publicHref:R0.publicHref,d0=R0.maskedLocation?R0.maskedLocation.external:R0.external,x0=T1.useMemo(()=>Fk(k0,d0,Y.history,P),[P,d0,k0,Y.history]),Tw=T1.useMemo(()=>{if(x0?.external){if(t2(x0.href)){console.warn(`Blocked Link with dangerous protocol: ${x0.href}`);return}return x0.href}if(_k(_))return;if(typeof _!=="string"||_.indexOf(":")===-1)return;try{if(new URL(_),t2(_)){console.warn(`Blocked Link with dangerous protocol: ${_}`);return}return _}catch{}return},[_,x0]),S1=A1({select:(Uw)=>{if(Tw)return!1;if(B?.exact){if(!bQ(Uw.location.pathname,R0.pathname,Y.basepath))return!1}else{let s0=j8(Uw.location.pathname,Y.basepath),ew=j8(R0.pathname,Y.basepath);if(!(s0.startsWith(ew)&&(s0.length===ew.length||s0[ew.length]==="/")))return!1}if(B?.includeSearch??!0){if(!s2(Uw.location.search,R0.search,{partial:!B?.exact,ignoreUndefined:!B?.explicitUndefined}))return!1}if(B?.includeHash)return Q0&&Uw.location.hash===R0.hash;return!0}}),B0=S1?h5(K,{})??qk:e$,iw=S1?e$:h5(q,{})??e$,F2=[u,B0.className,iw.className].filter(Boolean).join(" "),q5=(E||B0.style||iw.style)&&{...E,...B0.style,...iw.style},[tw,qw]=T1.useState(!1),P5=T1.useRef(!1),j0=Z.reloadDocument||Tw?!1:O??Y.options.defaultPreload,G1=A??Y.options.defaultPreloadDelay??0,zw=T1.useCallback(()=>{Y.preloadRoute({...O0}).catch((Uw)=>{console.warn(Uw),console.warn(dB)})},[Y,O0]),p6=T1.useCallback((Uw)=>{if(Uw?.isIntersecting)zw()},[zw]);tV(Q,p6,IS,{disabled:!!P||j0!=="viewport"}),T1.useEffect(()=>{if(P5.current)return;if(!P&&j0==="render")zw(),P5.current=!0},[P,zw,j0]);let Rw=(Uw)=>{let s0=Uw.currentTarget.getAttribute("target"),ew=v!==void 0?v:s0;if(!P&&!VS(Uw)&&!Uw.defaultPrevented&&(!ew||ew==="_self")&&Uw.button===0){Uw.preventDefault(),Ok.flushSync(()=>{qw(!0)});let I1=Y.subscribe("onResolved",()=>{I1(),qw(!1)});Y.navigate({...O0,replace:L,resetScroll:D,hashScrollIntoView:F,startTransition:I,viewTransition:T,ignoreBlocker:m})}};if(Tw)return{...C,ref:Q,href:Tw,...M&&{children:M},...v&&{target:v},...P&&{disabled:P},...E&&{style:E},...u&&{className:u},...l&&{onClick:l},...p&&{onFocus:p},...n&&{onMouseEnter:n},...j&&{onMouseLeave:j},...y&&{onTouchStart:y}};let l1=(Uw)=>{if(P)return;if(j0)zw()},f2=l1,q9=(Uw)=>{if(P||!j0)return;if(!G1)zw();else{let s0=Uw.target;if(mX.has(s0))return;let ew=setTimeout(()=>{mX.delete(s0),zw()},G1);mX.set(s0,ew)}},l5=(Uw)=>{if(P||!j0||!G1)return;let s0=Uw.target,ew=mX.get(s0);if(ew)clearTimeout(ew),mX.delete(s0)};return{...C,...B0,...iw,href:x0?.href,ref:Q,onClick:cX([l,Rw]),onFocus:cX([p,l1]),onMouseEnter:cX([n,q9]),onMouseLeave:cX([j,l5]),onTouchStart:cX([y,f2]),disabled:!!P,target:v,...q5&&{style:q5},...F2&&{className:F2},...P&&Bk,...S1&&Uk,...Q0&&tw&&bS}}var e$={},qk={className:"active"},Bk={role:"link","aria-disabled":!0},Uk={"data-status":"active","aria-current":"page"},bS={"data-transitioning":"transitioning"},mX=new WeakMap,IS={rootMargin:"100px"},cX=(Z)=>(X)=>{for(let Y of Z){if(!Y)continue;if(X.defaultPrevented)return;Y(X)}};function Fk(Z,X,Y,Q){if(Q)return;if(X)return{href:Z,external:!0};return{href:Y.createHref(Z)||"/",external:!1}}function _k(Z){if(typeof Z!=="string")return!1;let X=Z.charCodeAt(0);if(X===47)return Z.charCodeAt(1)!==47;return X===46}var iB=T1.forwardRef((Z,X)=>{let{_asChild:Y,...Q}=Z,{type:G,...K}=LS(Q,X),q=typeof Q.children==="function"?Q.children({isActive:K["data-status"]==="active"}):Q.children;if(!Y){let{disabled:B,..._}=K;return T1.createElement("a",_,q)}return T1.createElement(Y,K,q)});function VS(Z){return!!(Z.metaKey||Z.altKey||Z.ctrlKey||Z.shiftKey)}class aB extends jX{constructor(Z){super(Z);this.useMatch=(X)=>{return Q5({select:X?.select,from:this.id,structuralSharing:X?.structuralSharing})},this.useRouteContext=(X)=>{return Q5({...X,from:this.id,select:(Y)=>X?.select?X.select(Y.context):Y.context})},this.useSearch=(X)=>{return yX({select:X?.select,structuralSharing:X?.structuralSharing,from:this.id})},this.useParams=(X)=>{return fX({select:X?.select,structuralSharing:X?.structuralSharing,from:this.id})},this.useLoaderDeps=(X)=>{return hX({...X,from:this.id})},this.useLoaderData=(X)=>{return xX({...X,from:this.id})},this.useNavigate=()=>{return dX({from:this.fullPath})},this.Link=nB.default.forwardRef((X,Y)=>{return rB.jsx(iB,{ref:Y,from:this.fullPath,...X})}),this.$$typeof=Symbol.for("react.memo")}}function uX(Z){return new aB(Z)}class oB extends EQ{constructor(Z){super(Z);this.useMatch=(X)=>{return Q5({select:X?.select,from:this.id,structuralSharing:X?.structuralSharing})},this.useRouteContext=(X)=>{return Q5({...X,from:this.id,select:(Y)=>X?.select?X.select(Y.context):Y.context})},this.useSearch=(X)=>{return yX({select:X?.select,structuralSharing:X?.structuralSharing,from:this.id})},this.useParams=(X)=>{return fX({select:X?.select,structuralSharing:X?.structuralSharing,from:this.id})},this.useLoaderDeps=(X)=>{return hX({...X,from:this.id})},this.useLoaderData=(X)=>{return xX({...X,from:this.id})},this.useNavigate=()=>{return dX({from:this.fullPath})},this.Link=nB.default.forwardRef((X,Y)=>{return rB.jsx(iB,{ref:Y,from:this.fullPath,...X})}),this.$$typeof=Symbol.for("react.memo")}}function sB(Z){return new oB(Z)}function wU(Z){if(typeof Z==="object")return new tB(Z,{silent:!0}).createRoute(Z);return new tB(Z,{silent:!0}).createRoute}class tB{constructor(Z,X){this.path=Z,this.createRoute=(Y)=>{$4(this.silent,"FileRoute is deprecated and will be removed in the next major version. Use the createFileRoute(path)(options) function instead.");let Q=uX(Y);return Q.isRoot=!1,Q},this.silent=X?.silent}}class eB{constructor(Z){this.useMatch=(X)=>{return Q5({select:X?.select,from:this.options.id,structuralSharing:X?.structuralSharing})},this.useRouteContext=(X)=>{return Q5({from:this.options.id,select:(Y)=>X?.select?X.select(Y.context):Y.context})},this.useSearch=(X)=>{return yX({select:X?.select,structuralSharing:X?.structuralSharing,from:this.options.id})},this.useParams=(X)=>{return fX({select:X?.select,structuralSharing:X?.structuralSharing,from:this.options.id})},this.useLoaderDeps=(X)=>{return hX({...X,from:this.options.id})},this.useLoaderData=(X)=>{return xX({...X,from:this.options.id})},this.useNavigate=()=>{let X=J1();return dX({from:X.routesById[this.options.id].fullPath})},this.options=Z,this.$$typeof=Symbol.for("react.memo")}}function $U(Z){if(typeof Z==="object")return new eB(Z);return(X)=>new eB({id:Z,...X})}var m4=c(Lw(),1),fQ=c(U0(),1);var x8=c(U0(),1);function Ak(){let Z=J1(),X=x8.useRef({router:Z,mounted:!1}),[Y,Q]=x8.useState(!1),{hasPendingMatches:G,isLoading:K}=A1({select:(F)=>({isLoading:F.isLoading,hasPendingMatches:F.matches.some((L)=>L.status==="pending")}),structuralSharing:!0}),q=gQ(K),B=K||Y||G,_=gQ(B),O=K||G,A=gQ(O);return Z.startTransition=(F)=>{Q(!0),x8.startTransition(()=>{F(),Q(!1)})},x8.useEffect(()=>{let F=Z.history.subscribe(Z.load),L=Z.buildLocation({to:Z.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(G2(Z.latestLocation.publicHref)!==G2(L.publicHref))Z.commitLocation({...L,replace:!0});return()=>{F()}},[Z,Z.history]),SX(()=>{if(typeof window<"u"&&Z.ssr||X.current.router===Z&&X.current.mounted)return;X.current={router:Z,mounted:!0},(async()=>{try{await Z.load()}catch(L){console.error(L)}})()},[Z]),SX(()=>{if(q&&!K)Z.emit({type:"onLoad",...d4(Z.state)})},[q,Z,K]),SX(()=>{if(A&&!O)Z.emit({type:"onBeforeRouteMount",...d4(Z.state)})},[O,A,Z]),SX(()=>{if(_&&!B){let F=d4(Z.state);if(Z.emit({type:"onResolved",...F}),Z.__store.setState((L)=>({...L,status:"idle",resolvedLocation:L.location})),F.hrefChanged)CB(Z)}},[B,_,Z]),null}var aw=c(Lw(),1),k5=c(U0(),1);var ZU=c(Lw(),1);function Nk(Z){let X=A1({select:(Y)=>`not-found-${Y.location.pathname}-${Y.status}`});return ZU.jsx(s$,{getResetKey:()=>X,onCatch:(Y,Q)=>{if(c1(Y))Z.onCatch?.(Y,Q);else throw Y},errorComponent:({error:Y})=>{if(c1(Y))return Z.fallback?.(Y);else throw Y},children:Z.children})}function Lk(){return ZU.jsx("p",{children:"Not Found"})}var jQ=c(Lw(),1);function h8(Z){return jQ.jsx(jQ.Fragment,{children:Z.children})}var SQ=c(Lw(),1);function JU(Z,X,Y){if(!X.options.notFoundComponent){if(Z.options.defaultNotFoundComponent)return SQ.jsx(Z.options.defaultNotFoundComponent,{...Y});return $4(X.options.notFoundComponent,`A notFoundError was encountered on the route with ID "${X.id}", but a notFoundComponent option was not configured, nor was a router level defaultNotFoundComponent configured. Consider configuring at least one of these to avoid TanStack Router's overly generic defaultNotFoundComponent (<p>Not Found</p>)`),SQ.jsx(Lk,{})}return SQ.jsx(X.options.notFoundComponent,{...Y})}var Vk=c(Lw(),1);var bk=c(Lw(),1);function Ik({children:Z}){let X=J1();if(!($w??X.isServer))return null;return bk.jsx("script",{nonce:X.options.ssr?.nonce,dangerouslySetInnerHTML:{__html:Z+";document.currentScript.remove()"}})}function kk(){let Z=J1();if(!Z.isScrollRestoring||!($w??Z.isServer))return null;if(typeof Z.options.scrollRestoration==="function"){if(!Z.options.scrollRestoration({location:Z.latestLocation}))return null}let Y=(Z.options.getScrollRestorationKey||gX)(Z.latestLocation),Q=Y!==gX(Z.latestLocation)?Y:void 0,G={storageKey:r$,shouldScrollRestoration:!0};if(Q)G.key=Q;return Vk.jsx(Ik,{children:`(${VQ.toString()})(${kB(JSON.stringify(G))})`})}var xQ=k5.memo(function({matchId:X}){let Y=J1(),Q=A1({select:(v)=>{let P=v.matches.find((E)=>E.id===X);return f5(P,`Could not find match for matchId "${X}". Please file an issue!`),{routeId:P.routeId,ssr:P.ssr,_displayPending:P._displayPending}},structuralSharing:!0}),G=Y.routesById[Q.routeId],K=G.options.pendingComponent??Y.options.defaultPendingComponent,q=K?aw.jsx(K,{}):null,B=G.options.errorComponent??Y.options.defaultErrorComponent,_=G.options.onCatch??Y.options.defaultOnCatch,O=G.isRoot?G.options.notFoundComponent??Y.options.notFoundRoute?.options.component:G.options.notFoundComponent,A=Q.ssr===!1||Q.ssr==="data-only",F=(!G.isRoot||G.options.wrapInSuspense||A)&&(G.options.wrapInSuspense??K??(G.options.errorComponent?.preload||A))?k5.Suspense:h8,L=B?s$:h8,I=O?Nk:h8,D=A1({select:(v)=>v.loadedAt}),T=A1({select:(v)=>{let P=v.matches.findIndex((E)=>E.id===X);return v.matches[P-1]?.routeId}}),M=G.isRoot?G.options.shellComponent??h8:h8;return aw.jsxs(M,{children:[aw.jsx(Y7.Provider,{value:X,children:aw.jsx(F,{fallback:q,children:aw.jsx(L,{getResetKey:()=>D,errorComponent:B||t$,onCatch:(v,P)=>{if(c1(v))throw v;$4(!1,`Error in route match: ${X}`),_?.(v,P)},children:aw.jsx(I,{fallback:(v)=>{if(!O||v.routeId&&v.routeId!==Q.routeId||!v.routeId&&!G.isRoot)throw v;return k5.createElement(O,v)},children:A||Q._displayPending?aw.jsx($k,{fallback:q,children:aw.jsx(Dk,{matchId:X})}):aw.jsx(Dk,{matchId:X})})})})}),T===M1&&Y.options.scrollRestoration?aw.jsxs(aw.Fragment,{children:[aw.jsx(kS,{}),aw.jsx(kk,{})]}):null]})});function kS(){let Z=J1(),X=k5.useRef(void 0);return aw.jsx("script",{suppressHydrationWarning:!0,ref:(Y)=>{if(Y&&(X.current===void 0||X.current.href!==Z.latestLocation.href))Z.emit({type:"onRendered",...d4(Z.state)}),X.current=Z.latestLocation}},Z.latestLocation.state.__TSR_key)}var Dk=k5.memo(function({matchId:X}){let Y=J1(),{match:Q,key:G,routeId:K}=A1({select:(_)=>{let O=_.matches.find((D)=>D.id===X),A=O.routeId,L=(Y.routesById[A].options.remountDeps??Y.options.defaultRemountDeps)?.({routeId:A,loaderDeps:O.loaderDeps,params:O._strictParams,search:O._strictSearch});return{key:L?JSON.stringify(L):void 0,routeId:A,match:{id:O.id,status:O.status,error:O.error,invalid:O.invalid,_forcePending:O._forcePending,_displayPending:O._displayPending}}},structuralSharing:!0}),q=Y.routesById[K],B=k5.useMemo(()=>{let _=q.options.component??Y.options.defaultComponent;if(_)return aw.jsx(_,{},G);return aw.jsx(hQ,{})},[G,q.options.component,Y.options.defaultComponent]);if(Q._displayPending)throw Y.getMatch(Q.id)?._nonReactive.displayPendingPromise;if(Q._forcePending)throw Y.getMatch(Q.id)?._nonReactive.minPendingPromise;if(Q.status==="pending"){let _=q.options.pendingMinMs??Y.options.defaultPendingMinMs;if(_){let O=Y.getMatch(Q.id);if(O&&!O._nonReactive.minPendingPromise){if(!($w??Y.isServer)){let A=y4();O._nonReactive.minPendingPromise=A,setTimeout(()=>{A.resolve(),O._nonReactive.minPendingPromise=void 0},_)}}}throw Y.getMatch(Q.id)?._nonReactive.loadPromise}if(Q.status==="notFound")return f5(c1(Q.error),"Expected a notFound error"),JU(Y,q,Q.error);if(Q.status==="redirected")throw f5(z5(Q.error),"Expected a redirect error"),Y.getMatch(Q.id)?._nonReactive.loadPromise;if(Q.status==="error"){if($w??Y.isServer){let _=(q.options.errorComponent??Y.options.defaultErrorComponent)||t$;return aw.jsx(_,{error:Q.error,reset:void 0,info:{componentStack:""}})}throw Q.error}return B}),hQ=k5.memo(function(){let X=J1(),Y=k5.useContext(Y7),Q=A1({select:(O)=>O.matches.find((A)=>A.id===Y)?.routeId}),G=X.routesById[Q],K=A1({select:(O)=>{let F=O.matches.find((L)=>L.id===Y);return f5(F,`Could not find parent match for matchId "${Y}"`),F.globalNotFound}}),q=A1({select:(O)=>{let A=O.matches,F=A.findIndex((L)=>L.id===Y);return A[F+1]?.id}}),B=X.options.defaultPendingComponent?aw.jsx(X.options.defaultPendingComponent,{}):null;if(K)return JU(X,G,void 0);if(!q)return null;let _=aw.jsx(xQ,{matchId:q});if(Q===M1)return aw.jsx(k5.Suspense,{fallback:B,children:_});return _});function Mk(){let Z=J1(),Y=Z.routesById[M1].options.pendingComponent??Z.options.defaultPendingComponent,Q=Y?m4.jsx(Y,{}):null,G=($w??Z.isServer)||typeof document<"u"&&Z.ssr?h8:fQ.Suspense,K=m4.jsxs(G,{fallback:Q,children:[!($w??Z.isServer)&&m4.jsx(Ak,{}),m4.jsx(DS,{})]});return Z.options.InnerWrap?m4.jsx(Z.options.InnerWrap,{children:K}):K}function DS(){let Z=J1(),X=A1({select:(G)=>{return G.matches[0]?.id}}),Y=A1({select:(G)=>G.loadedAt}),Q=X?m4.jsx(xQ,{matchId:X}):null;return m4.jsx(Y7.Provider,{value:X,children:Z.options.disableGlobalCatchBoundary?Q:m4.jsx(s$,{getResetKey:()=>Y,errorComponent:t$,onCatch:(G)=>{$4(!1,"The following error wasn't caught by any route! At the very least, consider setting an 'errorComponent' in your RootRoute!"),$4(!1,G.message||G.toString())},children:Q})})}var XU=(Z)=>{return new YU(Z)};class YU extends PQ{constructor(Z){super(Z)}}if(typeof globalThis<"u")globalThis.createFileRoute=wU,globalThis.createLazyFileRoute=$U;else if(typeof window<"u")window.createFileRoute=wU,window.createLazyFileRoute=$U;var pX=c(Lw(),1);function Tk({router:Z,children:X,...Y}){if(Object.keys(Y).length>0)Z.update({...Z.options,...Y,context:{...Z.options.context,...Y.context}});let Q=RQ(),G=pX.jsx(Q.Provider,{value:Z,children:X});if(Z.options.Wrap)return pX.jsx(Z.options.Wrap,{children:G});return G}function zU({router:Z,...X}){return pX.jsx(Tk,{router:Z,...X,children:pX.jsx(Mk,{})})}var E2=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(Z){return this.listeners.add(Z),this.onSubscribe(),()=>{this.listeners.delete(Z),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};var MS={setTimeout:(Z,X)=>setTimeout(Z,X),clearTimeout:(Z)=>clearTimeout(Z),setInterval:(Z,X)=>setInterval(Z,X),clearInterval:(Z)=>clearInterval(Z)},TS=class{#w=MS;#$=!1;setTimeoutProvider(Z){if(this.#$&&Z!==this.#w)console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",{previous:this.#w,provider:Z});this.#w=Z,this.#$=!1}setTimeout(Z,X){return this.#$=!0,this.#w.setTimeout(Z,X)}clearTimeout(Z){this.#w.clearTimeout(Z)}setInterval(Z,X){return this.#$=!0,this.#w.setInterval(Z,X)}clearInterval(Z){this.#w.clearInterval(Z)}},c4=new TS;function vk(Z){setTimeout(Z,0)}var y5=typeof window>"u"||"Deno"in globalThis;function X1(){}function gk(Z,X){return typeof Z==="function"?Z(X):Z}function lX(Z){return typeof Z==="number"&&Z>=0&&Z!==1/0}function dQ(Z,X){return Math.max(Z+(X||0)-Date.now(),0)}function Z4(Z,X){return typeof Z==="function"?Z(X):Z}function d5(Z,X){return typeof Z==="function"?Z(X):Z}function mQ(Z,X){let{type:Y="all",exact:Q,fetchStatus:G,predicate:K,queryKey:q,stale:B}=Z;if(q){if(Q){if(X.queryHash!==iX(q,X.options))return!1}else if(!Q7(X.queryKey,q))return!1}if(Y!=="all"){let _=X.isActive();if(Y==="active"&&!_)return!1;if(Y==="inactive"&&_)return!1}if(typeof B==="boolean"&&X.isStale()!==B)return!1;if(G&&G!==X.state.fetchStatus)return!1;if(K&&!K(X))return!1;return!0}function cQ(Z,X){let{exact:Y,status:Q,predicate:G,mutationKey:K}=Z;if(K){if(!X.options.mutationKey)return!1;if(Y){if(u4(X.options.mutationKey)!==u4(K))return!1}else if(!Q7(X.options.mutationKey,K))return!1}if(Q&&X.state.status!==Q)return!1;if(G&&!G(X))return!1;return!0}function iX(Z,X){return(X?.queryKeyHashFn||u4)(Z)}function u4(Z){return JSON.stringify(Z,(X,Y)=>QU(Y)?Object.keys(Y).sort().reduce((Q,G)=>{return Q[G]=Y[G],Q},{}):Y)}function Q7(Z,X){if(Z===X)return!0;if(typeof Z!==typeof X)return!1;if(Z&&X&&typeof Z==="object"&&typeof X==="object")return Object.keys(X).every((Y)=>Q7(Z[Y],X[Y]));return!1}var vS=Object.prototype.hasOwnProperty;function yQ(Z,X,Y=0){if(Z===X)return Z;if(Y>500)return X;let Q=Pk(Z)&&Pk(X);if(!Q&&!(QU(Z)&&QU(X)))return X;let K=(Q?Z:Object.keys(Z)).length,q=Q?X:Object.keys(X),B=q.length,_=Q?Array(B):{},O=0;for(let A=0;A<B;A++){let F=Q?A:q[A],L=Z[F],I=X[F];if(L===I){if(_[F]=L,Q?A<K:vS.call(Z,F))O++;continue}if(L===null||I===null||typeof L!=="object"||typeof I!=="object"){_[F]=I;continue}let D=yQ(L,I,Y+1);if(_[F]=D,D===L)O++}return K===B&&O===K?Z:_}function wZ(Z,X){if(!X||Object.keys(Z).length!==Object.keys(X).length)return!1;for(let Y in Z)if(Z[Y]!==X[Y])return!1;return!0}function Pk(Z){return Array.isArray(Z)&&Z.length===Object.keys(Z).length}function QU(Z){if(!Ek(Z))return!1;let X=Z.constructor;if(X===void 0)return!0;let Y=X.prototype;if(!Ek(Y))return!1;if(!Y.hasOwnProperty("isPrototypeOf"))return!1;if(Object.getPrototypeOf(Z)!==Object.prototype)return!1;return!0}function Ek(Z){return Object.prototype.toString.call(Z)==="[object Object]"}function Ck(Z){return new Promise((X)=>{c4.setTimeout(X,Z)})}function rX(Z,X,Y){if(typeof Y.structuralSharing==="function")return Y.structuralSharing(Z,X);else if(Y.structuralSharing!==!1){try{return yQ(Z,X)}catch(Q){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${Y.queryHash}]: ${Q}`),Q}return yQ(Z,X)}return X}function Rk(Z,X,Y=0){let Q=[...Z,X];return Y&&Q.length>Y?Q.slice(1):Q}function jk(Z,X,Y=0){let Q=[X,...Z];return Y&&Q.length>Y?Q.slice(0,-1):Q}var z7=Symbol();function uQ(Z,X){if(Z.queryFn===z7)console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${Z.queryHash}'`);if(!Z.queryFn&&X?.initialPromise)return()=>X.initialPromise;if(!Z.queryFn||Z.queryFn===z7)return()=>Promise.reject(Error(`Missing queryFn: '${Z.queryHash}'`));return Z.queryFn}function $Z(Z,X){if(typeof Z==="function")return Z(...X);return!!Z}function Sk(Z,X,Y){let Q=!1,G;return Object.defineProperty(Z,"signal",{enumerable:!0,get:()=>{if(G??=X(),Q)return G;if(Q=!0,G.aborted)Y();else G.addEventListener("abort",Y,{once:!0});return G}}),Z}var PS=class extends E2{#w;#$;#Z;constructor(){super();this.#Z=(Z)=>{if(!y5&&window.addEventListener){let X=()=>Z();return window.addEventListener("visibilitychange",X,!1),()=>{window.removeEventListener("visibilitychange",X)}}return}}onSubscribe(){if(!this.#$)this.setEventListener(this.#Z)}onUnsubscribe(){if(!this.hasListeners())this.#$?.(),this.#$=void 0}setEventListener(Z){this.#Z=Z,this.#$?.(),this.#$=Z((X)=>{if(typeof X==="boolean")this.setFocused(X);else this.onFocus()})}setFocused(Z){if(this.#w!==Z)this.#w=Z,this.onFocus()}onFocus(){let Z=this.isFocused();this.listeners.forEach((X)=>{X(Z)})}isFocused(){if(typeof this.#w==="boolean")return this.#w;return globalThis.document?.visibilityState!=="hidden"}},ZZ=new PS;function nX(){let Z,X,Y=new Promise((G,K)=>{Z=G,X=K});Y.status="pending",Y.catch(()=>{});function Q(G){Object.assign(Y,G),delete Y.resolve,delete Y.reject}return Y.resolve=(G)=>{Q({status:"fulfilled",value:G}),Z(G)},Y.reject=(G)=>{Q({status:"rejected",reason:G}),X(G)},Y}var xk=vk;function ES(){let Z=[],X=0,Y=(B)=>{B()},Q=(B)=>{B()},G=xk,K=(B)=>{if(X)Z.push(B);else G(()=>{Y(B)})},q=()=>{let B=Z;if(Z=[],B.length)G(()=>{Q(()=>{B.forEach((_)=>{Y(_)})})})};return{batch:(B)=>{let _;X++;try{_=B()}finally{if(X--,!X)q()}return _},batchCalls:(B)=>{return(..._)=>{K(()=>{B(..._)})}},schedule:K,setNotifyFunction:(B)=>{Y=B},setBatchNotifyFunction:(B)=>{Q=B},setScheduler:(B)=>{G=B}}}var Mw=ES();var gS=class extends E2{#w=!0;#$;#Z;constructor(){super();this.#Z=(Z)=>{if(!y5&&window.addEventListener){let X=()=>Z(!0),Y=()=>Z(!1);return window.addEventListener("online",X,!1),window.addEventListener("offline",Y,!1),()=>{window.removeEventListener("online",X),window.removeEventListener("offline",Y)}}return}}onSubscribe(){if(!this.#$)this.setEventListener(this.#Z)}onUnsubscribe(){if(!this.hasListeners())this.#$?.(),this.#$=void 0}setEventListener(Z){this.#Z=Z,this.#$?.(),this.#$=Z(this.setOnline.bind(this))}setOnline(Z){if(this.#w!==Z)this.#w=Z,this.listeners.forEach((Y)=>{Y(Z)})}isOnline(){return this.#w}},JZ=new gS;function CS(Z){return Math.min(1000*2**Z,30000)}function WU(Z){return(Z??"online")==="online"?JZ.isOnline():!0}var pQ=class extends Error{constructor(Z){super("CancelledError");this.revert=Z?.revert,this.silent=Z?.silent}};function lQ(Z){let X=!1,Y=0,Q,G=nX(),K=()=>G.status!=="pending",q=(T)=>{if(!K()){let M=new pQ(T);L(M),Z.onCancel?.(M)}},B=()=>{X=!0},_=()=>{X=!1},O=()=>ZZ.isFocused()&&(Z.networkMode==="always"||JZ.isOnline())&&Z.canRun(),A=()=>WU(Z.networkMode)&&Z.canRun(),F=(T)=>{if(!K())Q?.(),G.resolve(T)},L=(T)=>{if(!K())Q?.(),G.reject(T)},I=()=>{return new Promise((T)=>{Q=(M)=>{if(K()||O())T(M)},Z.onPause?.()}).then(()=>{if(Q=void 0,!K())Z.onContinue?.()})},D=()=>{if(K())return;let T,M=Y===0?Z.initialPromise:void 0;try{T=M??Z.fn()}catch(v){T=Promise.reject(v)}Promise.resolve(T).then(F).catch((v)=>{if(K())return;let P=Z.retry??(y5?0:3),E=Z.retryDelay??CS,u=typeof E==="function"?E(Y,v):E,l=P===!0||typeof P==="number"&&Y<P||typeof P==="function"&&P(Y,v);if(X||!l){L(v);return}Y++,Z.onFail?.(Y,v),Ck(u).then(()=>{return O()?void 0:I()}).then(()=>{if(X)L(v);else D()})})};return{promise:G,status:()=>G.status,cancel:q,continue:()=>{return Q?.(),G},cancelRetry:B,continueRetry:_,canStart:A,start:()=>{if(A())D();else I().then(D);return G}}}var iQ=class{#w;destroy(){this.clearGcTimeout()}scheduleGc(){if(this.clearGcTimeout(),lX(this.gcTime))this.#w=c4.setTimeout(()=>{this.optionalRemove()},this.gcTime)}updateGcTime(Z){this.gcTime=Math.max(this.gcTime||0,Z??(y5?1/0:300000))}clearGcTimeout(){if(this.#w)c4.clearTimeout(this.#w),this.#w=void 0}};var yk=class extends iQ{#w;#$;#Z;#X;#J;#z;#Q;constructor(Z){super();this.#Q=!1,this.#z=Z.defaultOptions,this.setOptions(Z.options),this.observers=[],this.#X=Z.client,this.#Z=this.#X.getQueryCache(),this.queryKey=Z.queryKey,this.queryHash=Z.queryHash,this.#w=fk(this.options),this.state=Z.state??this.#w,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#J?.promise}setOptions(Z){if(this.options={...this.#z,...Z},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let X=fk(this.options);if(X.data!==void 0)this.setState(hk(X.data,X.dataUpdatedAt)),this.#w=X}}optionalRemove(){if(!this.observers.length&&this.state.fetchStatus==="idle")this.#Z.remove(this)}setData(Z,X){let Y=rX(this.state.data,Z,this.options);return this.#Y({data:Y,type:"success",dataUpdatedAt:X?.updatedAt,manual:X?.manual}),Y}setState(Z,X){this.#Y({type:"setState",state:Z,setStateOptions:X})}cancel(Z){let X=this.#J?.promise;return this.#J?.cancel(Z),X?X.then(X1).catch(X1):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#w)}isActive(){return this.observers.some((Z)=>d5(Z.options.enabled,this)!==!1)}isDisabled(){if(this.getObserversCount()>0)return!this.isActive();return this.options.queryFn===z7||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){if(this.getObserversCount()>0)return this.observers.some((Z)=>Z4(Z.options.staleTime,this)==="static");return!1}isStale(){if(this.getObserversCount()>0)return this.observers.some((Z)=>Z.getCurrentResult().isStale);return this.state.data===void 0||this.state.isInvalidated}isStaleByTime(Z=0){if(this.state.data===void 0)return!0;if(Z==="static")return!1;if(this.state.isInvalidated)return!0;return!dQ(this.state.dataUpdatedAt,Z)}onFocus(){this.observers.find((X)=>X.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#J?.continue()}onOnline(){this.observers.find((X)=>X.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#J?.continue()}addObserver(Z){if(!this.observers.includes(Z))this.observers.push(Z),this.clearGcTimeout(),this.#Z.notify({type:"observerAdded",query:this,observer:Z})}removeObserver(Z){if(this.observers.includes(Z)){if(this.observers=this.observers.filter((X)=>X!==Z),!this.observers.length){if(this.#J)if(this.#Q)this.#J.cancel({revert:!0});else this.#J.cancelRetry();this.scheduleGc()}this.#Z.notify({type:"observerRemoved",query:this,observer:Z})}}getObserversCount(){return this.observers.length}invalidate(){if(!this.state.isInvalidated)this.#Y({type:"invalidate"})}async fetch(Z,X){if(this.state.fetchStatus!=="idle"&&this.#J?.status()!=="rejected"){if(this.state.data!==void 0&&X?.cancelRefetch)this.cancel({silent:!0});else if(this.#J)return this.#J.continueRetry(),this.#J.promise}if(Z)this.setOptions(Z);if(!this.options.queryFn){let B=this.observers.find((_)=>_.options.queryFn);if(B)this.setOptions(B.options)}if(!Array.isArray(this.options.queryKey))console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']");let Y=new AbortController,Q=(B)=>{Object.defineProperty(B,"signal",{enumerable:!0,get:()=>{return this.#Q=!0,Y.signal}})},G=()=>{let B=uQ(this.options,X),O=(()=>{let A={client:this.#X,queryKey:this.queryKey,meta:this.meta};return Q(A),A})();if(this.#Q=!1,this.options.persister)return this.options.persister(B,O,this);return B(O)},q=(()=>{let B={fetchOptions:X,options:this.options,queryKey:this.queryKey,client:this.#X,state:this.state,fetchFn:G};return Q(B),B})();if(this.options.behavior?.onFetch(q,this),this.#$=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==q.fetchOptions?.meta)this.#Y({type:"fetch",meta:q.fetchOptions?.meta});this.#J=lQ({initialPromise:X?.initialPromise,fn:q.fetchFn,onCancel:(B)=>{if(B instanceof pQ&&B.revert)this.setState({...this.#$,fetchStatus:"idle"});Y.abort()},onFail:(B,_)=>{this.#Y({type:"failed",failureCount:B,error:_})},onPause:()=>{this.#Y({type:"pause"})},onContinue:()=>{this.#Y({type:"continue"})},retry:q.options.retry,retryDelay:q.options.retryDelay,networkMode:q.options.networkMode,canRun:()=>!0});try{let B=await this.#J.start();if(B===void 0)throw console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),Error(`${this.queryHash} data is undefined`);return this.setData(B),this.#Z.config.onSuccess?.(B,this),this.#Z.config.onSettled?.(B,this.state.error,this),B}catch(B){if(B instanceof pQ){if(B.silent)return this.#J.promise;else if(B.revert){if(this.state.data===void 0)throw B;return this.state.data}}throw this.#Y({type:"error",error:B}),this.#Z.config.onError?.(B,this),this.#Z.config.onSettled?.(this.state.data,B,this),B}finally{this.scheduleGc()}}#Y(Z){let X=(Y)=>{switch(Z.type){case"failed":return{...Y,fetchFailureCount:Z.failureCount,fetchFailureReason:Z.error};case"pause":return{...Y,fetchStatus:"paused"};case"continue":return{...Y,fetchStatus:"fetching"};case"fetch":return{...Y,...GU(Y.data,this.options),fetchMeta:Z.meta??null};case"success":let Q={...Y,...hk(Z.data,Z.dataUpdatedAt),dataUpdateCount:Y.dataUpdateCount+1,...!Z.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#$=Z.manual?Q:void 0,Q;case"error":let G=Z.error;return{...Y,error:G,errorUpdateCount:Y.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:Y.fetchFailureCount+1,fetchFailureReason:G,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...Y,isInvalidated:!0};case"setState":return{...Y,...Z.state}}};this.state=X(this.state),Mw.batch(()=>{this.observers.forEach((Y)=>{Y.onQueryUpdate()}),this.#Z.notify({query:this,type:"updated",action:Z})})}};function GU(Z,X){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:WU(X.networkMode)?"fetching":"paused",...Z===void 0&&{error:null,status:"pending"}}}function hk(Z,X){return{data:Z,dataUpdatedAt:X??Date.now(),error:null,isInvalidated:!1,status:"success"}}function fk(Z){let X=typeof Z.initialData==="function"?Z.initialData():Z.initialData,Y=X!==void 0,Q=Y?typeof Z.initialDataUpdatedAt==="function"?Z.initialDataUpdatedAt():Z.initialDataUpdatedAt:0;return{data:X,dataUpdateCount:0,dataUpdatedAt:Y?Q??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:Y?"success":"pending",fetchStatus:"idle"}}var KU=class extends E2{constructor(Z,X){super();this.options=X,this.#w=Z,this.#Y=null,this.#Q=nX(),this.bindMethods(),this.setOptions(X)}#w;#$=void 0;#Z=void 0;#X=void 0;#J;#z;#Q;#Y;#F;#q;#B;#G;#H;#W;#U=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){if(this.listeners.size===1){if(this.#$.addObserver(this),dk(this.#$,this.options))this.#K();else this.updateResult();this.#N()}}onUnsubscribe(){if(!this.hasListeners())this.destroy()}shouldFetchOnReconnect(){return HU(this.#$,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return HU(this.#$,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#L(),this.#b(),this.#$.removeObserver(this)}setOptions(Z){let X=this.options,Y=this.#$;if(this.options=this.#w.defaultQueryOptions(Z),this.options.enabled!==void 0&&typeof this.options.enabled!=="boolean"&&typeof this.options.enabled!=="function"&&typeof d5(this.options.enabled,this.#$)!=="boolean")throw Error("Expected enabled to be a boolean or a callback that returns a boolean");if(this.#I(),this.#$.setOptions(this.options),X._defaulted&&!wZ(this.options,X))this.#w.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#$,observer:this});let Q=this.hasListeners();if(Q&&mk(this.#$,Y,this.options,X))this.#K();if(this.updateResult(),Q&&(this.#$!==Y||d5(this.options.enabled,this.#$)!==d5(X.enabled,this.#$)||Z4(this.options.staleTime,this.#$)!==Z4(X.staleTime,this.#$)))this.#_();let G=this.#O();if(Q&&(this.#$!==Y||d5(this.options.enabled,this.#$)!==d5(X.enabled,this.#$)||G!==this.#W))this.#A(G)}getOptimisticResult(Z){let X=this.#w.getQueryCache().build(this.#w,Z),Y=this.createResult(X,Z);if(jS(this,Y))this.#X=Y,this.#z=this.options,this.#J=this.#$.state;return Y}getCurrentResult(){return this.#X}trackResult(Z,X){return new Proxy(Z,{get:(Y,Q)=>{if(this.trackProp(Q),X?.(Q),Q==="promise"){if(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#Q.status==="pending")this.#Q.reject(Error("experimental_prefetchInRender feature flag is not enabled"))}return Reflect.get(Y,Q)}})}trackProp(Z){this.#U.add(Z)}getCurrentQuery(){return this.#$}refetch({...Z}={}){return this.fetch({...Z})}fetchOptimistic(Z){let X=this.#w.defaultQueryOptions(Z),Y=this.#w.getQueryCache().build(this.#w,X);return Y.fetch().then(()=>this.createResult(Y,X))}fetch(Z){return this.#K({...Z,cancelRefetch:Z.cancelRefetch??!0}).then(()=>{return this.updateResult(),this.#X})}#K(Z){this.#I();let X=this.#$.fetch(this.options,Z);if(!Z?.throwOnError)X=X.catch(X1);return X}#_(){this.#L();let Z=Z4(this.options.staleTime,this.#$);if(y5||this.#X.isStale||!lX(Z))return;let Y=dQ(this.#X.dataUpdatedAt,Z)+1;this.#G=c4.setTimeout(()=>{if(!this.#X.isStale)this.updateResult()},Y)}#O(){return(typeof this.options.refetchInterval==="function"?this.options.refetchInterval(this.#$):this.options.refetchInterval)??!1}#A(Z){if(this.#b(),this.#W=Z,y5||d5(this.options.enabled,this.#$)===!1||!lX(this.#W)||this.#W===0)return;this.#H=c4.setInterval(()=>{if(this.options.refetchIntervalInBackground||ZZ.isFocused())this.#K()},this.#W)}#N(){this.#_(),this.#A(this.#O())}#L(){if(this.#G)c4.clearTimeout(this.#G),this.#G=void 0}#b(){if(this.#H)c4.clearInterval(this.#H),this.#H=void 0}createResult(Z,X){let Y=this.#$,Q=this.options,G=this.#X,K=this.#J,q=this.#z,_=Z!==Y?Z.state:this.#Z,{state:O}=Z,A={...O},F=!1,L;if(X._optimisticResults){let j=this.hasListeners(),y=!j&&dk(Z,X),m=j&&mk(Z,Y,X,Q);if(y||m)A={...A,...GU(O.data,Z.options)};if(X._optimisticResults==="isRestoring")A.fetchStatus="idle"}let{error:I,errorUpdatedAt:D,status:T}=A;L=A.data;let M=!1;if(X.placeholderData!==void 0&&L===void 0&&T==="pending"){let j;if(G?.isPlaceholderData&&X.placeholderData===q?.placeholderData)j=G.data,M=!0;else j=typeof X.placeholderData==="function"?X.placeholderData(this.#B?.state.data,this.#B):X.placeholderData;if(j!==void 0)T="success",L=rX(G?.data,j,X),F=!0}if(X.select&&L!==void 0&&!M)if(G&&L===K?.data&&X.select===this.#F)L=this.#q;else try{this.#F=X.select,L=X.select(L),L=rX(G?.data,L,X),this.#q=L,this.#Y=null}catch(j){this.#Y=j}if(this.#Y)I=this.#Y,L=this.#q,D=Date.now(),T="error";let v=A.fetchStatus==="fetching",P=T==="pending",E=T==="error",u=P&&v,l=L!==void 0,n={status:T,fetchStatus:A.fetchStatus,isPending:P,isSuccess:T==="success",isError:E,isInitialLoading:u,isLoading:u,data:L,dataUpdatedAt:A.dataUpdatedAt,error:I,errorUpdatedAt:D,failureCount:A.fetchFailureCount,failureReason:A.fetchFailureReason,errorUpdateCount:A.errorUpdateCount,isFetched:A.dataUpdateCount>0||A.errorUpdateCount>0,isFetchedAfterMount:A.dataUpdateCount>_.dataUpdateCount||A.errorUpdateCount>_.errorUpdateCount,isFetching:v,isRefetching:v&&!P,isLoadingError:E&&!l,isPaused:A.fetchStatus==="paused",isPlaceholderData:F,isRefetchError:E&&l,isStale:qU(Z,X),refetch:this.refetch,promise:this.#Q,isEnabled:d5(X.enabled,Z)!==!1};if(this.options.experimental_prefetchInRender){let j=n.data!==void 0,y=n.status==="error"&&!j,m=(s)=>{if(y)s.reject(n.error);else if(j)s.resolve(n.data)},$0=()=>{let s=this.#Q=n.promise=nX();m(s)},t=this.#Q;switch(t.status){case"pending":if(Z.queryHash===Y.queryHash)m(t);break;case"fulfilled":if(y||n.data!==t.value)$0();break;case"rejected":if(!y||n.error!==t.reason)$0();break}}return n}updateResult(){let Z=this.#X,X=this.createResult(this.#$,this.options);if(this.#J=this.#$.state,this.#z=this.options,this.#J.data!==void 0)this.#B=this.#$;if(wZ(X,Z))return;this.#X=X;let Y=()=>{if(!Z)return!0;let{notifyOnChangeProps:Q}=this.options,G=typeof Q==="function"?Q():Q;if(G==="all"||!G&&!this.#U.size)return!0;let K=new Set(G??this.#U);if(this.options.throwOnError)K.add("error");return Object.keys(this.#X).some((q)=>{let B=q;return this.#X[B]!==Z[B]&&K.has(B)})};this.#V({listeners:Y()})}#I(){let Z=this.#w.getQueryCache().build(this.#w,this.options);if(Z===this.#$)return;let X=this.#$;if(this.#$=Z,this.#Z=Z.state,this.hasListeners())X?.removeObserver(this),Z.addObserver(this)}onQueryUpdate(){if(this.updateResult(),this.hasListeners())this.#N()}#V(Z){Mw.batch(()=>{if(Z.listeners)this.listeners.forEach((X)=>{X(this.#X)});this.#w.getQueryCache().notify({query:this.#$,type:"observerResultsUpdated"})})}};function RS(Z,X){return d5(X.enabled,Z)!==!1&&Z.state.data===void 0&&!(Z.state.status==="error"&&X.retryOnMount===!1)}function dk(Z,X){return RS(Z,X)||Z.state.data!==void 0&&HU(Z,X,X.refetchOnMount)}function HU(Z,X,Y){if(d5(X.enabled,Z)!==!1&&Z4(X.staleTime,Z)!=="static"){let Q=typeof Y==="function"?Y(Z):Y;return Q==="always"||Q!==!1&&qU(Z,X)}return!1}function mk(Z,X,Y,Q){return(Z!==X||d5(Q.enabled,Z)===!1)&&(!Y.suspense||Z.state.status!=="error")&&qU(Z,Y)}function qU(Z,X){return d5(X.enabled,Z)!==!1&&Z.isStaleByTime(Z4(X.staleTime,Z))}function jS(Z,X){if(!wZ(Z.getCurrentResult(),X))return!0;return!1}function BU(Z){return{onFetch:(X,Y)=>{let Q=X.options,G=X.fetchOptions?.meta?.fetchMore?.direction,K=X.state.data?.pages||[],q=X.state.data?.pageParams||[],B={pages:[],pageParams:[]},_=0,O=async()=>{let A=!1,F=(D)=>{Sk(D,()=>X.signal,()=>A=!0)},L=uQ(X.options,X.fetchOptions),I=async(D,T,M)=>{if(A)return Promise.reject();if(T==null&&D.pages.length)return Promise.resolve(D);let P=(()=>{let p={client:X.client,queryKey:X.queryKey,pageParam:T,direction:M?"backward":"forward",meta:X.options.meta};return F(p),p})(),E=await L(P),{maxPages:u}=X.options,l=M?jk:Rk;return{pages:l(D.pages,E,u),pageParams:l(D.pageParams,T,u)}};if(G&&K.length){let D=G==="backward",T=D?SS:ck,M={pages:K,pageParams:q},v=T(Q,M);B=await I(M,v,D)}else{let D=Z??K.length;do{let T=_===0?q[0]??Q.initialPageParam:ck(Q,B);if(_>0&&T==null)break;B=await I(B,T),_++}while(_<D)}return B};if(X.options.persister)X.fetchFn=()=>{return X.options.persister?.(O,{client:X.client,queryKey:X.queryKey,meta:X.options.meta,signal:X.signal},Y)};else X.fetchFn=O}}}function ck(Z,{pages:X,pageParams:Y}){let Q=X.length-1;return X.length>0?Z.getNextPageParam(X[Q],X,Y[Q],Y):void 0}function SS(Z,{pages:X,pageParams:Y}){return X.length>0?Z.getPreviousPageParam?.(X[0],X,Y[0],Y):void 0}var uk=class extends iQ{#w;#$;#Z;#X;constructor(Z){super();this.#w=Z.client,this.mutationId=Z.mutationId,this.#Z=Z.mutationCache,this.#$=[],this.state=Z.state||UU(),this.setOptions(Z.options),this.scheduleGc()}setOptions(Z){this.options=Z,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(Z){if(!this.#$.includes(Z))this.#$.push(Z),this.clearGcTimeout(),this.#Z.notify({type:"observerAdded",mutation:this,observer:Z})}removeObserver(Z){this.#$=this.#$.filter((X)=>X!==Z),this.scheduleGc(),this.#Z.notify({type:"observerRemoved",mutation:this,observer:Z})}optionalRemove(){if(!this.#$.length)if(this.state.status==="pending")this.scheduleGc();else this.#Z.remove(this)}continue(){return this.#X?.continue()??this.execute(this.state.variables)}async execute(Z){let X=()=>{this.#J({type:"continue"})},Y={client:this.#w,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#X=lQ({fn:()=>{if(!this.options.mutationFn)return Promise.reject(Error("No mutationFn found"));return this.options.mutationFn(Z,Y)},onFail:(K,q)=>{this.#J({type:"failed",failureCount:K,error:q})},onPause:()=>{this.#J({type:"pause"})},onContinue:X,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#Z.canRun(this)});let Q=this.state.status==="pending",G=!this.#X.canStart();try{if(Q)X();else{if(this.#J({type:"pending",variables:Z,isPaused:G}),this.#Z.config.onMutate)await this.#Z.config.onMutate(Z,this,Y);let q=await this.options.onMutate?.(Z,Y);if(q!==this.state.context)this.#J({type:"pending",context:q,variables:Z,isPaused:G})}let K=await this.#X.start();return await this.#Z.config.onSuccess?.(K,Z,this.state.context,this,Y),await this.options.onSuccess?.(K,Z,this.state.context,Y),await this.#Z.config.onSettled?.(K,null,this.state.variables,this.state.context,this,Y),await this.options.onSettled?.(K,null,Z,this.state.context,Y),this.#J({type:"success",data:K}),K}catch(K){try{await this.#Z.config.onError?.(K,Z,this.state.context,this,Y)}catch(q){Promise.reject(q)}try{await this.options.onError?.(K,Z,this.state.context,Y)}catch(q){Promise.reject(q)}try{await this.#Z.config.onSettled?.(void 0,K,this.state.variables,this.state.context,this,Y)}catch(q){Promise.reject(q)}try{await this.options.onSettled?.(void 0,K,Z,this.state.context,Y)}catch(q){Promise.reject(q)}throw this.#J({type:"error",error:K}),K}finally{this.#Z.runNext(this)}}#J(Z){let X=(Y)=>{switch(Z.type){case"failed":return{...Y,failureCount:Z.failureCount,failureReason:Z.error};case"pause":return{...Y,isPaused:!0};case"continue":return{...Y,isPaused:!1};case"pending":return{...Y,context:Z.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:Z.isPaused,status:"pending",variables:Z.variables,submittedAt:Date.now()};case"success":return{...Y,data:Z.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...Y,data:void 0,error:Z.error,failureCount:Y.failureCount+1,failureReason:Z.error,isPaused:!1,status:"error"}}};this.state=X(this.state),Mw.batch(()=>{this.#$.forEach((Y)=>{Y.onMutationUpdate(Z)}),this.#Z.notify({mutation:this,type:"updated",action:Z})})}};function UU(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var pk=class extends E2{constructor(Z={}){super();this.config=Z,this.#w=new Set,this.#$=new Map,this.#Z=0}#w;#$;#Z;build(Z,X,Y){let Q=new uk({client:Z,mutationCache:this,mutationId:++this.#Z,options:Z.defaultMutationOptions(X),state:Y});return this.add(Q),Q}add(Z){this.#w.add(Z);let X=rQ(Z);if(typeof X==="string"){let Y=this.#$.get(X);if(Y)Y.push(Z);else this.#$.set(X,[Z])}this.notify({type:"added",mutation:Z})}remove(Z){if(this.#w.delete(Z)){let X=rQ(Z);if(typeof X==="string"){let Y=this.#$.get(X);if(Y){if(Y.length>1){let Q=Y.indexOf(Z);if(Q!==-1)Y.splice(Q,1)}else if(Y[0]===Z)this.#$.delete(X)}}}this.notify({type:"removed",mutation:Z})}canRun(Z){let X=rQ(Z);if(typeof X==="string"){let Q=this.#$.get(X)?.find((G)=>G.state.status==="pending");return!Q||Q===Z}else return!0}runNext(Z){let X=rQ(Z);if(typeof X==="string")return this.#$.get(X)?.find((Q)=>Q!==Z&&Q.state.isPaused)?.continue()??Promise.resolve();else return Promise.resolve()}clear(){Mw.batch(()=>{this.#w.forEach((Z)=>{this.notify({type:"removed",mutation:Z})}),this.#w.clear(),this.#$.clear()})}getAll(){return Array.from(this.#w)}find(Z){let X={exact:!0,...Z};return this.getAll().find((Y)=>cQ(X,Y))}findAll(Z={}){return this.getAll().filter((X)=>cQ(Z,X))}notify(Z){Mw.batch(()=>{this.listeners.forEach((X)=>{X(Z)})})}resumePausedMutations(){let Z=this.getAll().filter((X)=>X.state.isPaused);return Mw.batch(()=>Promise.all(Z.map((X)=>X.continue().catch(X1))))}};function rQ(Z){return Z.options.scope?.id}var FU=class extends E2{#w;#$=void 0;#Z;#X;constructor(Z,X){super();this.#w=Z,this.setOptions(X),this.bindMethods(),this.#J()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(Z){let X=this.options;if(this.options=this.#w.defaultMutationOptions(Z),!wZ(this.options,X))this.#w.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#Z,observer:this});if(X?.mutationKey&&this.options.mutationKey&&u4(X.mutationKey)!==u4(this.options.mutationKey))this.reset();else if(this.#Z?.state.status==="pending")this.#Z.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners())this.#Z?.removeObserver(this)}onMutationUpdate(Z){this.#J(),this.#z(Z)}getCurrentResult(){return this.#$}reset(){this.#Z?.removeObserver(this),this.#Z=void 0,this.#J(),this.#z()}mutate(Z,X){return this.#X=X,this.#Z?.removeObserver(this),this.#Z=this.#w.getMutationCache().build(this.#w,this.options),this.#Z.addObserver(this),this.#Z.execute(Z)}#J(){let Z=this.#Z?.state??UU();this.#$={...Z,isPending:Z.status==="pending",isSuccess:Z.status==="success",isError:Z.status==="error",isIdle:Z.status==="idle",mutate:this.mutate,reset:this.reset}}#z(Z){Mw.batch(()=>{if(this.#X&&this.hasListeners()){let X=this.#$.variables,Y=this.#$.context,Q={client:this.#w,meta:this.options.meta,mutationKey:this.options.mutationKey};if(Z?.type==="success"){try{this.#X.onSuccess?.(Z.data,X,Y,Q)}catch(G){Promise.reject(G)}try{this.#X.onSettled?.(Z.data,null,X,Y,Q)}catch(G){Promise.reject(G)}}else if(Z?.type==="error"){try{this.#X.onError?.(Z.error,X,Y,Q)}catch(G){Promise.reject(G)}try{this.#X.onSettled?.(void 0,Z.error,X,Y,Q)}catch(G){Promise.reject(G)}}}this.listeners.forEach((X)=>{X(this.#$)})})}};var lk=class extends E2{constructor(Z={}){super();this.config=Z,this.#w=new Map}#w;build(Z,X,Y){let Q=X.queryKey,G=X.queryHash??iX(Q,X),K=this.get(G);if(!K)K=new yk({client:Z,queryKey:Q,queryHash:G,options:Z.defaultQueryOptions(X),state:Y,defaultOptions:Z.getQueryDefaults(Q)}),this.add(K);return K}add(Z){if(!this.#w.has(Z.queryHash))this.#w.set(Z.queryHash,Z),this.notify({type:"added",query:Z})}remove(Z){let X=this.#w.get(Z.queryHash);if(X){if(Z.destroy(),X===Z)this.#w.delete(Z.queryHash);this.notify({type:"removed",query:Z})}}clear(){Mw.batch(()=>{this.getAll().forEach((Z)=>{this.remove(Z)})})}get(Z){return this.#w.get(Z)}getAll(){return[...this.#w.values()]}find(Z){let X={exact:!0,...Z};return this.getAll().find((Y)=>mQ(X,Y))}findAll(Z={}){let X=this.getAll();return Object.keys(Z).length>0?X.filter((Y)=>mQ(Z,Y)):X}notify(Z){Mw.batch(()=>{this.listeners.forEach((X)=>{X(Z)})})}onFocus(){Mw.batch(()=>{this.getAll().forEach((Z)=>{Z.onFocus()})})}onOnline(){Mw.batch(()=>{this.getAll().forEach((Z)=>{Z.onOnline()})})}};var _U=class{#w;#$;#Z;#X;#J;#z;#Q;#Y;constructor(Z={}){this.#w=Z.queryCache||new lk,this.#$=Z.mutationCache||new pk,this.#Z=Z.defaultOptions||{},this.#X=new Map,this.#J=new Map,this.#z=0}mount(){if(this.#z++,this.#z!==1)return;this.#Q=ZZ.subscribe(async(Z)=>{if(Z)await this.resumePausedMutations(),this.#w.onFocus()}),this.#Y=JZ.subscribe(async(Z)=>{if(Z)await this.resumePausedMutations(),this.#w.onOnline()})}unmount(){if(this.#z--,this.#z!==0)return;this.#Q?.(),this.#Q=void 0,this.#Y?.(),this.#Y=void 0}isFetching(Z){return this.#w.findAll({...Z,fetchStatus:"fetching"}).length}isMutating(Z){return this.#$.findAll({...Z,status:"pending"}).length}getQueryData(Z){let X=this.defaultQueryOptions({queryKey:Z});return this.#w.get(X.queryHash)?.state.data}ensureQueryData(Z){let X=this.defaultQueryOptions(Z),Y=this.#w.build(this,X),Q=Y.state.data;if(Q===void 0)return this.fetchQuery(Z);if(Z.revalidateIfStale&&Y.isStaleByTime(Z4(X.staleTime,Y)))this.prefetchQuery(X);return Promise.resolve(Q)}getQueriesData(Z){return this.#w.findAll(Z).map(({queryKey:X,state:Y})=>{let Q=Y.data;return[X,Q]})}setQueryData(Z,X,Y){let Q=this.defaultQueryOptions({queryKey:Z}),K=this.#w.get(Q.queryHash)?.state.data,q=gk(X,K);if(q===void 0)return;return this.#w.build(this,Q).setData(q,{...Y,manual:!0})}setQueriesData(Z,X,Y){return Mw.batch(()=>this.#w.findAll(Z).map(({queryKey:Q})=>[Q,this.setQueryData(Q,X,Y)]))}getQueryState(Z){let X=this.defaultQueryOptions({queryKey:Z});return this.#w.get(X.queryHash)?.state}removeQueries(Z){let X=this.#w;Mw.batch(()=>{X.findAll(Z).forEach((Y)=>{X.remove(Y)})})}resetQueries(Z,X){let Y=this.#w;return Mw.batch(()=>{return Y.findAll(Z).forEach((Q)=>{Q.reset()}),this.refetchQueries({type:"active",...Z},X)})}cancelQueries(Z,X={}){let Y={revert:!0,...X},Q=Mw.batch(()=>this.#w.findAll(Z).map((G)=>G.cancel(Y)));return Promise.all(Q).then(X1).catch(X1)}invalidateQueries(Z,X={}){return Mw.batch(()=>{if(this.#w.findAll(Z).forEach((Y)=>{Y.invalidate()}),Z?.refetchType==="none")return Promise.resolve();return this.refetchQueries({...Z,type:Z?.refetchType??Z?.type??"active"},X)})}refetchQueries(Z,X={}){let Y={...X,cancelRefetch:X.cancelRefetch??!0},Q=Mw.batch(()=>this.#w.findAll(Z).filter((G)=>!G.isDisabled()&&!G.isStatic()).map((G)=>{let K=G.fetch(void 0,Y);if(!Y.throwOnError)K=K.catch(X1);return G.state.fetchStatus==="paused"?Promise.resolve():K}));return Promise.all(Q).then(X1)}fetchQuery(Z){let X=this.defaultQueryOptions(Z);if(X.retry===void 0)X.retry=!1;let Y=this.#w.build(this,X);return Y.isStaleByTime(Z4(X.staleTime,Y))?Y.fetch(X):Promise.resolve(Y.state.data)}prefetchQuery(Z){return this.fetchQuery(Z).then(X1).catch(X1)}fetchInfiniteQuery(Z){return Z.behavior=BU(Z.pages),this.fetchQuery(Z)}prefetchInfiniteQuery(Z){return this.fetchInfiniteQuery(Z).then(X1).catch(X1)}ensureInfiniteQueryData(Z){return Z.behavior=BU(Z.pages),this.ensureQueryData(Z)}resumePausedMutations(){if(JZ.isOnline())return this.#$.resumePausedMutations();return Promise.resolve()}getQueryCache(){return this.#w}getMutationCache(){return this.#$}getDefaultOptions(){return this.#Z}setDefaultOptions(Z){this.#Z=Z}setQueryDefaults(Z,X){this.#X.set(u4(Z),{queryKey:Z,defaultOptions:X})}getQueryDefaults(Z){let X=[...this.#X.values()],Y={};return X.forEach((Q)=>{if(Q7(Z,Q.queryKey))Object.assign(Y,Q.defaultOptions)}),Y}setMutationDefaults(Z,X){this.#J.set(u4(Z),{mutationKey:Z,defaultOptions:X})}getMutationDefaults(Z){let X=[...this.#J.values()],Y={};return X.forEach((Q)=>{if(Q7(Z,Q.mutationKey))Object.assign(Y,Q.defaultOptions)}),Y}defaultQueryOptions(Z){if(Z._defaulted)return Z;let X={...this.#Z.queries,...this.getQueryDefaults(Z.queryKey),...Z,_defaulted:!0};if(!X.queryHash)X.queryHash=iX(X.queryKey,X);if(X.refetchOnReconnect===void 0)X.refetchOnReconnect=X.networkMode!=="always";if(X.throwOnError===void 0)X.throwOnError=!!X.suspense;if(!X.networkMode&&X.persister)X.networkMode="offlineFirst";if(X.queryFn===z7)X.enabled=!1;return X}defaultMutationOptions(Z){if(Z?._defaulted)return Z;return{...this.#Z.mutations,...Z?.mutationKey&&this.getMutationDefaults(Z.mutationKey),...Z,_defaulted:!0}}clear(){this.#w.clear(),this.#$.clear()}};var XZ=c(U0(),1),ik=c(Lw(),1),OU=XZ.createContext(void 0),R6=(Z)=>{let X=XZ.useContext(OU);if(Z)return Z;if(!X)throw Error("No QueryClient set, use QueryClientProvider to set one");return X},AU=({client:Z,children:X})=>{return XZ.useEffect(()=>{return Z.mount(),()=>{Z.unmount()}},[Z]),ik.jsx(OU.Provider,{value:Z,children:X})};var nQ=c(U0(),1),rk=nQ.createContext(!1),nk=()=>nQ.useContext(rk),Pn=rk.Provider;var aX=c(U0(),1),xS=c(Lw(),1);function hS(){let Z=!1;return{clearReset:()=>{Z=!1},reset:()=>{Z=!0},isReset:()=>{return Z}}}var fS=aX.createContext(hS()),ak=()=>aX.useContext(fS);var ok=c(U0(),1);var sk=(Z,X,Y)=>{let Q=Y?.state.error&&typeof Z.throwOnError==="function"?$Z(Z.throwOnError,[Y.state.error,Y]):Z.throwOnError;if(Z.suspense||Z.experimental_prefetchInRender||Q){if(!X.isReset())Z.retryOnMount=!1}},tk=(Z)=>{ok.useEffect(()=>{Z.clearReset()},[Z])},ek=({result:Z,errorResetBoundary:X,throwOnError:Y,query:Q,suspense:G})=>{return Z.isError&&!X.isReset()&&!Z.isFetching&&Q&&(G&&Z.data===void 0||$Z(Y,[Z.error,Q]))};var wD=(Z)=>{if(Z.suspense){let Y=(G)=>G==="static"?G:Math.max(G??1000,1000),Q=Z.staleTime;if(Z.staleTime=typeof Q==="function"?(...G)=>Y(Q(...G)):Y(Q),typeof Z.gcTime==="number")Z.gcTime=Math.max(Z.gcTime,1000)}},$D=(Z,X)=>Z.isLoading&&Z.isFetching&&!X,ZD=(Z,X)=>Z?.suspense&&X.isPending,NU=(Z,X,Y)=>X.fetchOptimistic(Z).catch(()=>{Y.clearReset()});var f8=c(U0(),1);function JD(Z,X,Y){if(typeof Z!=="object"||Array.isArray(Z))throw Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');let Q=nk(),G=ak(),K=R6(Y),q=K.defaultQueryOptions(Z);K.getDefaultOptions().queries?._experimental_beforeQuery?.(q);let B=K.getQueryCache().get(q.queryHash);if(!q.queryFn)console.error(`[${q.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`);q._optimisticResults=Q?"isRestoring":"optimistic",wD(q),sk(q,G,B),tk(G);let _=!K.getQueryCache().get(q.queryHash),[O]=f8.useState(()=>new X(K,q)),A=O.getOptimisticResult(q),F=!Q&&Z.subscribed!==!1;if(f8.useSyncExternalStore(f8.useCallback((L)=>{let I=F?O.subscribe(Mw.batchCalls(L)):X1;return O.updateResult(),I},[O,F]),()=>O.getCurrentResult(),()=>O.getCurrentResult()),f8.useEffect(()=>{O.setOptions(q)},[q,O]),ZD(q,A))throw NU(q,O,G);if(ek({result:A,errorResetBoundary:G,throwOnError:q.throwOnError,query:B,suspense:q.suspense}))throw A.error;if(K.getDefaultOptions().queries?._experimental_afterQuery?.(q,A),q.experimental_prefetchInRender&&!y5&&$D(A,Q))(_?NU(q,O,G):B?.promise)?.catch(X1).finally(()=>{O.updateResult()});return!q.notifyOnChangeProps?O.trackResult(A):A}function J4(Z,X){return JD(Z,KU,X)}var j6=c(U0(),1);function S6(Z,X){let Y=R6(X),[Q]=j6.useState(()=>new FU(Y,Z));j6.useEffect(()=>{Q.setOptions(Z)},[Q,Z]);let G=j6.useSyncExternalStore(j6.useCallback((q)=>Q.subscribe(Mw.batchCalls(q)),[Q]),()=>Q.getCurrentResult(),()=>Q.getCurrentResult()),K=j6.useCallback((q,B)=>{Q.mutate(q,B).catch(X1)},[Q]);if(G.error&&$Z(Q.options.throwOnError,[G.error]))throw G.error;return{...G,mutate:K,mutateAsync:G.mutate}}function XD(Z){var X,Y,Q="";if(typeof Z=="string"||typeof Z=="number")Q+=Z;else if(typeof Z=="object")if(Array.isArray(Z)){var G=Z.length;for(X=0;X<G;X++)Z[X]&&(Y=XD(Z[X]))&&(Q&&(Q+=" "),Q+=Y)}else for(Y in Z)Z[Y]&&(Q&&(Q+=" "),Q+=Y);return Q}function oX(){for(var Z,X,Y=0,Q="",G=arguments.length;Y<G;Y++)(Z=arguments[Y])&&(X=XD(Z))&&(Q&&(Q+=" "),Q+=X);return Q}var YD=oX;var y8=c(U0(),1),GD=c(m0(),1),dS={theme:"system",setTheme:()=>null},zD=y8.createContext(dS);function QD({children:Z,defaultTheme:X="system",storageKey:Y="vite-ui-theme",...Q}){let[G,K]=y8.useState(()=>localStorage.getItem(Y)||X);y8.useEffect(()=>{let B=window.document.documentElement;if(B.classList.remove("light","dark"),G==="system"){let _=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";B.classList.add(_);return}B.classList.add(G)},[G]);let q={theme:G,setTheme:(B)=>{localStorage.setItem(Y,B),K(B)}};return GD.jsxDEV(zD.Provider,{...Q,value:q,children:Z},void 0,!1,void 0,this)}var WD=()=>{let Z=y8.useContext(zD);if(Z===void 0)throw Error("useTheme must be used within a ThemeProvider");return Z};var aQ=c(m0(),1),mS=new _U;function LU({children:Z,className:X}){return aQ.jsxDEV(AU,{client:mS,children:aQ.jsxDEV(QD,{defaultTheme:"dark",storageKey:"vite-ui-theme",children:aQ.jsxDEV("div",{className:YD("flex flex-col justify-center items-center w-full min-h-screen",X),children:Z},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var N1=c(U0(),1);var KD=c(U0(),1);function HD(Z,X){if(typeof Z==="function")return Z(X);else if(Z!==null&&Z!==void 0)Z.current=X}function G7(...Z){return(X)=>{let Y=!1,Q=Z.map((G)=>{let K=HD(G,X);if(!Y&&typeof K=="function")Y=!0;return K});if(Y)return()=>{for(let G=0;G<Q.length;G++){let K=Q[G];if(typeof K=="function")K();else HD(Z[G],null)}}}}function W5(...Z){return KD.useCallback(G7(...Z),Z)}var oQ=c(Lw(),1),cS=Symbol.for("react.lazy"),sQ=N1[" use ".trim().toString()];function uS(Z){return typeof Z==="object"&&Z!==null&&"then"in Z}function qD(Z){return Z!=null&&typeof Z==="object"&&"$$typeof"in Z&&Z.$$typeof===cS&&"_payload"in Z&&uS(Z._payload)}function bU(Z){let X=pS(Z),Y=N1.forwardRef((Q,G)=>{let{children:K,...q}=Q;if(qD(K)&&typeof sQ==="function")K=sQ(K._payload);let B=N1.Children.toArray(K),_=B.find(iS);if(_){let O=_.props.children,A=B.map((F)=>{if(F===_){if(N1.Children.count(O)>1)return N1.Children.only(null);return N1.isValidElement(O)?O.props.children:null}else return F});return oQ.jsx(X,{...q,ref:G,children:N1.isValidElement(O)?N1.cloneElement(O,void 0,A):null})}return oQ.jsx(X,{...q,ref:G,children:K})});return Y.displayName=`${Z}.Slot`,Y}var tQ=bU("Slot");function pS(Z){let X=N1.forwardRef((Y,Q)=>{let{children:G,...K}=Y;if(qD(G)&&typeof sQ==="function")G=sQ(G._payload);if(N1.isValidElement(G)){let q=nS(G),B=rS(K,G.props);if(G.type!==N1.Fragment)B.ref=Q?G7(Q,q):q;return N1.cloneElement(G,B)}return N1.Children.count(G)>1?N1.Children.only(null):null});return X.displayName=`${Z}.SlotClone`,X}var lS=Symbol("radix.slottable");function iS(Z){return N1.isValidElement(Z)&&typeof Z.type==="function"&&"__radixId"in Z.type&&Z.type.__radixId===lS}function rS(Z,X){let Y={...X};for(let Q in X){let G=Z[Q],K=X[Q];if(/^on[A-Z]/.test(Q)){if(G&&K)Y[Q]=(...B)=>{let _=K(...B);return G(...B),_};else if(G)Y[Q]=G}else if(Q==="style")Y[Q]={...G,...K};else if(Q==="className")Y[Q]=[G,K].filter(Boolean).join(" ")}return{...Z,...Y}}function nS(Z){let X=Object.getOwnPropertyDescriptor(Z.props,"ref")?.get,Y=X&&"isReactWarning"in X&&X.isReactWarning;if(Y)return Z.ref;if(X=Object.getOwnPropertyDescriptor(Z,"ref")?.get,Y=X&&"isReactWarning"in X&&X.isReactWarning,Y)return Z.props.ref;return Z.props.ref||Z.ref}var BD=(Z)=>typeof Z==="boolean"?`${Z}`:Z===0?"0":Z,UD=oX,YZ=(Z,X)=>(Y)=>{var Q;if((X===null||X===void 0?void 0:X.variants)==null)return UD(Z,Y===null||Y===void 0?void 0:Y.class,Y===null||Y===void 0?void 0:Y.className);let{variants:G,defaultVariants:K}=X,q=Object.keys(G).map((O)=>{let A=Y===null||Y===void 0?void 0:Y[O],F=K===null||K===void 0?void 0:K[O];if(A===null)return null;let L=BD(A)||BD(F);return G[O][L]}),B=Y&&Object.entries(Y).reduce((O,A)=>{let[F,L]=A;if(L===void 0)return O;return O[F]=L,O},{}),_=X===null||X===void 0?void 0:(Q=X.compoundVariants)===null||Q===void 0?void 0:Q.reduce((O,A)=>{let{class:F,className:L,...I}=A;return Object.entries(I).every((D)=>{let[T,M]=D;return Array.isArray(M)?M.includes({...K,...B}[T]):{...K,...B}[T]===M})?[...O,F,L]:O},[]);return UD(Z,q,_,Y===null||Y===void 0?void 0:Y.class,Y===null||Y===void 0?void 0:Y.className)};var aS=(Z,X)=>{let Y=Array(Z.length+X.length);for(let Q=0;Q<Z.length;Q++)Y[Q]=Z[Q];for(let Q=0;Q<X.length;Q++)Y[Z.length+Q]=X[Q];return Y},oS=(Z,X)=>({classGroupId:Z,validator:X}),ND=(Z=new Map,X=null,Y)=>({nextPart:Z,validators:X,classGroupId:Y});var FD=[];var sS=(Z)=>{let X=eS(Z),{conflictingClassGroups:Y,conflictingClassGroupModifiers:Q}=Z;return{getClassGroupId:(q)=>{if(q.startsWith("[")&&q.endsWith("]"))return tS(q);let B=q.split("-"),_=B[0]===""&&B.length>1?1:0;return LD(B,_,X)},getConflictingClassGroupIds:(q,B)=>{if(B){let _=Q[q],O=Y[q];if(_){if(O)return aS(O,_);return _}return O||FD}return Y[q]||FD}}},LD=(Z,X,Y)=>{if(Z.length-X===0)return Y.classGroupId;let G=Z[X],K=Y.nextPart.get(G);if(K){let O=LD(Z,X+1,K);if(O)return O}let q=Y.validators;if(q===null)return;let B=X===0?Z.join("-"):Z.slice(X).join("-"),_=q.length;for(let O=0;O<_;O++){let A=q[O];if(A.validator(B))return A.classGroupId}return},tS=(Z)=>Z.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let X=Z.slice(1,-1),Y=X.indexOf(":"),Q=X.slice(0,Y);return Q?"arbitrary.."+Q:void 0})(),eS=(Z)=>{let{theme:X,classGroups:Y}=Z;return wx(Y,X)},wx=(Z,X)=>{let Y=ND();for(let Q in Z){let G=Z[Q];kU(G,Y,Q,X)}return Y},kU=(Z,X,Y,Q)=>{let G=Z.length;for(let K=0;K<G;K++){let q=Z[K];$x(q,X,Y,Q)}},$x=(Z,X,Y,Q)=>{if(typeof Z==="string"){Zx(Z,X,Y);return}if(typeof Z==="function"){Jx(Z,X,Y,Q);return}Xx(Z,X,Y,Q)},Zx=(Z,X,Y)=>{let Q=Z===""?X:bD(X,Z);Q.classGroupId=Y},Jx=(Z,X,Y,Q)=>{if(Yx(Z)){kU(Z(Q),X,Y,Q);return}if(X.validators===null)X.validators=[];X.validators.push(oS(Y,Z))},Xx=(Z,X,Y,Q)=>{let G=Object.entries(Z),K=G.length;for(let q=0;q<K;q++){let[B,_]=G[q];kU(_,bD(X,B),Y,Q)}},bD=(Z,X)=>{let Y=Z,Q=X.split("-"),G=Q.length;for(let K=0;K<G;K++){let q=Q[K],B=Y.nextPart.get(q);if(!B)B=ND(),Y.nextPart.set(q,B);Y=B}return Y},Yx=(Z)=>("isThemeGetter"in Z)&&Z.isThemeGetter===!0,zx=(Z)=>{if(Z<1)return{get:()=>{return},set:()=>{}};let X=0,Y=Object.create(null),Q=Object.create(null),G=(K,q)=>{if(Y[K]=q,X++,X>Z)X=0,Q=Y,Y=Object.create(null)};return{get(K){let q=Y[K];if(q!==void 0)return q;if((q=Q[K])!==void 0)return G(K,q),q},set(K,q){if(K in Y)Y[K]=q;else G(K,q)}}};var Qx=[],_D=(Z,X,Y,Q,G)=>({modifiers:Z,hasImportantModifier:X,baseClassName:Y,maybePostfixModifierPosition:Q,isExternal:G}),Wx=(Z)=>{let{prefix:X,experimentalParseClassName:Y}=Z,Q=(G)=>{let K=[],q=0,B=0,_=0,O,A=G.length;for(let T=0;T<A;T++){let M=G[T];if(q===0&&B===0){if(M===":"){K.push(G.slice(_,T)),_=T+1;continue}if(M==="/"){O=T;continue}}if(M==="[")q++;else if(M==="]")q--;else if(M==="(")B++;else if(M===")")B--}let F=K.length===0?G:G.slice(_),L=F,I=!1;if(F.endsWith("!"))L=F.slice(0,-1),I=!0;else if(F.startsWith("!"))L=F.slice(1),I=!0;let D=O&&O>_?O-_:void 0;return _D(K,I,L,D)};if(X){let G=X+":",K=Q;Q=(q)=>q.startsWith(G)?K(q.slice(G.length)):_D(Qx,!1,q,void 0,!0)}if(Y){let G=Q;Q=(K)=>Y({className:K,parseClassName:G})}return Q},Gx=(Z)=>{let X=new Map;return Z.orderSensitiveModifiers.forEach((Y,Q)=>{X.set(Y,1e6+Q)}),(Y)=>{let Q=[],G=[];for(let K=0;K<Y.length;K++){let q=Y[K],B=q[0]==="[",_=X.has(q);if(B||_){if(G.length>0)G.sort(),Q.push(...G),G=[];Q.push(q)}else G.push(q)}if(G.length>0)G.sort(),Q.push(...G);return Q}},Hx=(Z)=>({cache:zx(Z.cacheSize),parseClassName:Wx(Z),sortModifiers:Gx(Z),...sS(Z)}),Kx=/\s+/,qx=(Z,X)=>{let{parseClassName:Y,getClassGroupId:Q,getConflictingClassGroupIds:G,sortModifiers:K}=X,q=[],B=Z.trim().split(Kx),_="";for(let O=B.length-1;O>=0;O-=1){let A=B[O],{isExternal:F,modifiers:L,hasImportantModifier:I,baseClassName:D,maybePostfixModifierPosition:T}=Y(A);if(F){_=A+(_.length>0?" "+_:_);continue}let M=!!T,v=Q(M?D.substring(0,T):D);if(!v){if(!M){_=A+(_.length>0?" "+_:_);continue}if(v=Q(D),!v){_=A+(_.length>0?" "+_:_);continue}M=!1}let P=L.length===0?"":L.length===1?L[0]:K(L).join(":"),E=I?P+"!":P,u=E+v;if(q.indexOf(u)>-1)continue;q.push(u);let l=G(v,M);for(let p=0;p<l.length;++p){let n=l[p];q.push(E+n)}_=A+(_.length>0?" "+_:_)}return _},Bx=(...Z)=>{let X=0,Y,Q,G="";while(X<Z.length)if(Y=Z[X++]){if(Q=ID(Y))G&&(G+=" "),G+=Q}return G},ID=(Z)=>{if(typeof Z==="string")return Z;let X,Y="";for(let Q=0;Q<Z.length;Q++)if(Z[Q]){if(X=ID(Z[Q]))Y&&(Y+=" "),Y+=X}return Y},Ux=(Z,...X)=>{let Y,Q,G,K,q=(_)=>{let O=X.reduce((A,F)=>F(A),Z());return Y=Hx(O),Q=Y.cache.get,G=Y.cache.set,K=B,B(_)},B=(_)=>{let O=Q(_);if(O)return O;let A=qx(_,Y);return G(_,A),A};return K=q,(..._)=>K(Bx(..._))},Fx=[],v1=(Z)=>{let X=(Y)=>Y[Z]||Fx;return X.isThemeGetter=!0,X},VD=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,kD=/^\((?:(\w[\w-]*):)?(.+)\)$/i,_x=/^\d+\/\d+$/,Ox=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ax=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Nx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Lx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,zZ=(Z)=>_x.test(Z),Xw=(Z)=>!!Z&&!Number.isNaN(Number(Z)),d8=(Z)=>!!Z&&Number.isInteger(Number(Z)),IU=(Z)=>Z.endsWith("%")&&Xw(Z.slice(0,-1)),x6=(Z)=>Ox.test(Z),Ix=()=>!0,Vx=(Z)=>Ax.test(Z)&&!Nx.test(Z),DD=()=>!1,kx=(Z)=>Lx.test(Z),Dx=(Z)=>bx.test(Z),Mx=(Z)=>!I0(Z)&&!V0(Z),Tx=(Z)=>QZ(Z,vD,DD),I0=(Z)=>VD.test(Z),H7=(Z)=>QZ(Z,PD,Vx),VU=(Z)=>QZ(Z,Cx,Xw),OD=(Z)=>QZ(Z,MD,DD),vx=(Z)=>QZ(Z,TD,Dx),eQ=(Z)=>QZ(Z,ED,kx),V0=(Z)=>kD.test(Z),sX=(Z)=>WZ(Z,PD),Px=(Z)=>WZ(Z,Rx),AD=(Z)=>WZ(Z,MD),Ex=(Z)=>WZ(Z,vD),gx=(Z)=>WZ(Z,TD),wW=(Z)=>WZ(Z,ED,!0),QZ=(Z,X,Y)=>{let Q=VD.exec(Z);if(Q){if(Q[1])return X(Q[1]);return Y(Q[2])}return!1},WZ=(Z,X,Y=!1)=>{let Q=kD.exec(Z);if(Q){if(Q[1])return X(Q[1]);return Y}return!1},MD=(Z)=>Z==="position"||Z==="percentage",TD=(Z)=>Z==="image"||Z==="url",vD=(Z)=>Z==="length"||Z==="size"||Z==="bg-size",PD=(Z)=>Z==="length",Cx=(Z)=>Z==="number",Rx=(Z)=>Z==="family-name",ED=(Z)=>Z==="shadow";var jx=()=>{let Z=v1("color"),X=v1("font"),Y=v1("text"),Q=v1("font-weight"),G=v1("tracking"),K=v1("leading"),q=v1("breakpoint"),B=v1("container"),_=v1("spacing"),O=v1("radius"),A=v1("shadow"),F=v1("inset-shadow"),L=v1("text-shadow"),I=v1("drop-shadow"),D=v1("blur"),T=v1("perspective"),M=v1("aspect"),v=v1("ease"),P=v1("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],u=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],l=()=>[...u(),V0,I0],p=()=>["auto","hidden","clip","visible","scroll"],n=()=>["auto","contain","none"],j=()=>[V0,I0,_],y=()=>[zZ,"full","auto",...j()],m=()=>[d8,"none","subgrid",V0,I0],$0=()=>["auto",{span:["full",d8,V0,I0]},d8,V0,I0],t=()=>[d8,"auto",V0,I0],s=()=>["auto","min","max","fr",V0,I0],M0=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],e=()=>["start","end","center","stretch","center-safe","end-safe"],Y0=()=>["auto",...j()],z0=()=>[zZ,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...j()],Z0=()=>[Z,V0,I0],C0=()=>[...u(),AD,OD,{position:[V0,I0]}],C=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Q0=()=>["auto","cover","contain",Ex,Tx,{size:[V0,I0]}],L0=()=>[IU,sX,H7],J0=()=>["","none","full",O,V0,I0],O0=()=>["",Xw,sX,H7],R0=()=>["solid","dashed","dotted","double"],k0=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],d0=()=>[Xw,IU,AD,OD],x0=()=>["","none",D,V0,I0],Tw=()=>["none",Xw,V0,I0],S1=()=>["none",Xw,V0,I0],B0=()=>[Xw,V0,I0],iw=()=>[zZ,"full",...j()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[x6],breakpoint:[x6],color:[Ix],container:[x6],"drop-shadow":[x6],ease:["in","out","in-out"],font:[Mx],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[x6],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[x6],shadow:[x6],spacing:["px",Xw],text:[x6],"text-shadow":[x6],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",zZ,I0,V0,M]}],container:["container"],columns:[{columns:[Xw,I0,V0,B]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:l()}],overflow:[{overflow:p()}],"overflow-x":[{"overflow-x":p()}],"overflow-y":[{"overflow-y":p()}],overscroll:[{overscroll:n()}],"overscroll-x":[{"overscroll-x":n()}],"overscroll-y":[{"overscroll-y":n()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:y()}],"inset-x":[{"inset-x":y()}],"inset-y":[{"inset-y":y()}],start:[{start:y()}],end:[{end:y()}],top:[{top:y()}],right:[{right:y()}],bottom:[{bottom:y()}],left:[{left:y()}],visibility:["visible","invisible","collapse"],z:[{z:[d8,"auto",V0,I0]}],basis:[{basis:[zZ,"full","auto",B,...j()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Xw,zZ,"auto","initial","none",I0]}],grow:[{grow:["",Xw,V0,I0]}],shrink:[{shrink:["",Xw,V0,I0]}],order:[{order:[d8,"first","last","none",V0,I0]}],"grid-cols":[{"grid-cols":m()}],"col-start-end":[{col:$0()}],"col-start":[{"col-start":t()}],"col-end":[{"col-end":t()}],"grid-rows":[{"grid-rows":m()}],"row-start-end":[{row:$0()}],"row-start":[{"row-start":t()}],"row-end":[{"row-end":t()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":s()}],"auto-rows":[{"auto-rows":s()}],gap:[{gap:j()}],"gap-x":[{"gap-x":j()}],"gap-y":[{"gap-y":j()}],"justify-content":[{justify:[...M0(),"normal"]}],"justify-items":[{"justify-items":[...e(),"normal"]}],"justify-self":[{"justify-self":["auto",...e()]}],"align-content":[{content:["normal",...M0()]}],"align-items":[{items:[...e(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...e(),{baseline:["","last"]}]}],"place-content":[{"place-content":M0()}],"place-items":[{"place-items":[...e(),"baseline"]}],"place-self":[{"place-self":["auto",...e()]}],p:[{p:j()}],px:[{px:j()}],py:[{py:j()}],ps:[{ps:j()}],pe:[{pe:j()}],pt:[{pt:j()}],pr:[{pr:j()}],pb:[{pb:j()}],pl:[{pl:j()}],m:[{m:Y0()}],mx:[{mx:Y0()}],my:[{my:Y0()}],ms:[{ms:Y0()}],me:[{me:Y0()}],mt:[{mt:Y0()}],mr:[{mr:Y0()}],mb:[{mb:Y0()}],ml:[{ml:Y0()}],"space-x":[{"space-x":j()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":j()}],"space-y-reverse":["space-y-reverse"],size:[{size:z0()}],w:[{w:[B,"screen",...z0()]}],"min-w":[{"min-w":[B,"screen","none",...z0()]}],"max-w":[{"max-w":[B,"screen","none","prose",{screen:[q]},...z0()]}],h:[{h:["screen","lh",...z0()]}],"min-h":[{"min-h":["screen","lh","none",...z0()]}],"max-h":[{"max-h":["screen","lh",...z0()]}],"font-size":[{text:["base",Y,sX,H7]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[Q,V0,VU]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",IU,I0]}],"font-family":[{font:[Px,I0,X]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[G,V0,I0]}],"line-clamp":[{"line-clamp":[Xw,"none",V0,VU]}],leading:[{leading:[K,...j()]}],"list-image":[{"list-image":["none",V0,I0]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",V0,I0]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Z0()}],"text-color":[{text:Z0()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...R0(),"wavy"]}],"text-decoration-thickness":[{decoration:[Xw,"from-font","auto",V0,H7]}],"text-decoration-color":[{decoration:Z0()}],"underline-offset":[{"underline-offset":[Xw,"auto",V0,I0]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",V0,I0]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",V0,I0]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:C0()}],"bg-repeat":[{bg:C()}],"bg-size":[{bg:Q0()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},d8,V0,I0],radial:["",V0,I0],conic:[d8,V0,I0]},gx,vx]}],"bg-color":[{bg:Z0()}],"gradient-from-pos":[{from:L0()}],"gradient-via-pos":[{via:L0()}],"gradient-to-pos":[{to:L0()}],"gradient-from":[{from:Z0()}],"gradient-via":[{via:Z0()}],"gradient-to":[{to:Z0()}],rounded:[{rounded:J0()}],"rounded-s":[{"rounded-s":J0()}],"rounded-e":[{"rounded-e":J0()}],"rounded-t":[{"rounded-t":J0()}],"rounded-r":[{"rounded-r":J0()}],"rounded-b":[{"rounded-b":J0()}],"rounded-l":[{"rounded-l":J0()}],"rounded-ss":[{"rounded-ss":J0()}],"rounded-se":[{"rounded-se":J0()}],"rounded-ee":[{"rounded-ee":J0()}],"rounded-es":[{"rounded-es":J0()}],"rounded-tl":[{"rounded-tl":J0()}],"rounded-tr":[{"rounded-tr":J0()}],"rounded-br":[{"rounded-br":J0()}],"rounded-bl":[{"rounded-bl":J0()}],"border-w":[{border:O0()}],"border-w-x":[{"border-x":O0()}],"border-w-y":[{"border-y":O0()}],"border-w-s":[{"border-s":O0()}],"border-w-e":[{"border-e":O0()}],"border-w-t":[{"border-t":O0()}],"border-w-r":[{"border-r":O0()}],"border-w-b":[{"border-b":O0()}],"border-w-l":[{"border-l":O0()}],"divide-x":[{"divide-x":O0()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":O0()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...R0(),"hidden","none"]}],"divide-style":[{divide:[...R0(),"hidden","none"]}],"border-color":[{border:Z0()}],"border-color-x":[{"border-x":Z0()}],"border-color-y":[{"border-y":Z0()}],"border-color-s":[{"border-s":Z0()}],"border-color-e":[{"border-e":Z0()}],"border-color-t":[{"border-t":Z0()}],"border-color-r":[{"border-r":Z0()}],"border-color-b":[{"border-b":Z0()}],"border-color-l":[{"border-l":Z0()}],"divide-color":[{divide:Z0()}],"outline-style":[{outline:[...R0(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Xw,V0,I0]}],"outline-w":[{outline:["",Xw,sX,H7]}],"outline-color":[{outline:Z0()}],shadow:[{shadow:["","none",A,wW,eQ]}],"shadow-color":[{shadow:Z0()}],"inset-shadow":[{"inset-shadow":["none",F,wW,eQ]}],"inset-shadow-color":[{"inset-shadow":Z0()}],"ring-w":[{ring:O0()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Z0()}],"ring-offset-w":[{"ring-offset":[Xw,H7]}],"ring-offset-color":[{"ring-offset":Z0()}],"inset-ring-w":[{"inset-ring":O0()}],"inset-ring-color":[{"inset-ring":Z0()}],"text-shadow":[{"text-shadow":["none",L,wW,eQ]}],"text-shadow-color":[{"text-shadow":Z0()}],opacity:[{opacity:[Xw,V0,I0]}],"mix-blend":[{"mix-blend":[...k0(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":k0()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Xw]}],"mask-image-linear-from-pos":[{"mask-linear-from":d0()}],"mask-image-linear-to-pos":[{"mask-linear-to":d0()}],"mask-image-linear-from-color":[{"mask-linear-from":Z0()}],"mask-image-linear-to-color":[{"mask-linear-to":Z0()}],"mask-image-t-from-pos":[{"mask-t-from":d0()}],"mask-image-t-to-pos":[{"mask-t-to":d0()}],"mask-image-t-from-color":[{"mask-t-from":Z0()}],"mask-image-t-to-color":[{"mask-t-to":Z0()}],"mask-image-r-from-pos":[{"mask-r-from":d0()}],"mask-image-r-to-pos":[{"mask-r-to":d0()}],"mask-image-r-from-color":[{"mask-r-from":Z0()}],"mask-image-r-to-color":[{"mask-r-to":Z0()}],"mask-image-b-from-pos":[{"mask-b-from":d0()}],"mask-image-b-to-pos":[{"mask-b-to":d0()}],"mask-image-b-from-color":[{"mask-b-from":Z0()}],"mask-image-b-to-color":[{"mask-b-to":Z0()}],"mask-image-l-from-pos":[{"mask-l-from":d0()}],"mask-image-l-to-pos":[{"mask-l-to":d0()}],"mask-image-l-from-color":[{"mask-l-from":Z0()}],"mask-image-l-to-color":[{"mask-l-to":Z0()}],"mask-image-x-from-pos":[{"mask-x-from":d0()}],"mask-image-x-to-pos":[{"mask-x-to":d0()}],"mask-image-x-from-color":[{"mask-x-from":Z0()}],"mask-image-x-to-color":[{"mask-x-to":Z0()}],"mask-image-y-from-pos":[{"mask-y-from":d0()}],"mask-image-y-to-pos":[{"mask-y-to":d0()}],"mask-image-y-from-color":[{"mask-y-from":Z0()}],"mask-image-y-to-color":[{"mask-y-to":Z0()}],"mask-image-radial":[{"mask-radial":[V0,I0]}],"mask-image-radial-from-pos":[{"mask-radial-from":d0()}],"mask-image-radial-to-pos":[{"mask-radial-to":d0()}],"mask-image-radial-from-color":[{"mask-radial-from":Z0()}],"mask-image-radial-to-color":[{"mask-radial-to":Z0()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":u()}],"mask-image-conic-pos":[{"mask-conic":[Xw]}],"mask-image-conic-from-pos":[{"mask-conic-from":d0()}],"mask-image-conic-to-pos":[{"mask-conic-to":d0()}],"mask-image-conic-from-color":[{"mask-conic-from":Z0()}],"mask-image-conic-to-color":[{"mask-conic-to":Z0()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:C0()}],"mask-repeat":[{mask:C()}],"mask-size":[{mask:Q0()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",V0,I0]}],filter:[{filter:["","none",V0,I0]}],blur:[{blur:x0()}],brightness:[{brightness:[Xw,V0,I0]}],contrast:[{contrast:[Xw,V0,I0]}],"drop-shadow":[{"drop-shadow":["","none",I,wW,eQ]}],"drop-shadow-color":[{"drop-shadow":Z0()}],grayscale:[{grayscale:["",Xw,V0,I0]}],"hue-rotate":[{"hue-rotate":[Xw,V0,I0]}],invert:[{invert:["",Xw,V0,I0]}],saturate:[{saturate:[Xw,V0,I0]}],sepia:[{sepia:["",Xw,V0,I0]}],"backdrop-filter":[{"backdrop-filter":["","none",V0,I0]}],"backdrop-blur":[{"backdrop-blur":x0()}],"backdrop-brightness":[{"backdrop-brightness":[Xw,V0,I0]}],"backdrop-contrast":[{"backdrop-contrast":[Xw,V0,I0]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Xw,V0,I0]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Xw,V0,I0]}],"backdrop-invert":[{"backdrop-invert":["",Xw,V0,I0]}],"backdrop-opacity":[{"backdrop-opacity":[Xw,V0,I0]}],"backdrop-saturate":[{"backdrop-saturate":[Xw,V0,I0]}],"backdrop-sepia":[{"backdrop-sepia":["",Xw,V0,I0]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":j()}],"border-spacing-x":[{"border-spacing-x":j()}],"border-spacing-y":[{"border-spacing-y":j()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",V0,I0]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Xw,"initial",V0,I0]}],ease:[{ease:["linear","initial",v,V0,I0]}],delay:[{delay:[Xw,V0,I0]}],animate:[{animate:["none",P,V0,I0]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[T,V0,I0]}],"perspective-origin":[{"perspective-origin":l()}],rotate:[{rotate:Tw()}],"rotate-x":[{"rotate-x":Tw()}],"rotate-y":[{"rotate-y":Tw()}],"rotate-z":[{"rotate-z":Tw()}],scale:[{scale:S1()}],"scale-x":[{"scale-x":S1()}],"scale-y":[{"scale-y":S1()}],"scale-z":[{"scale-z":S1()}],"scale-3d":["scale-3d"],skew:[{skew:B0()}],"skew-x":[{"skew-x":B0()}],"skew-y":[{"skew-y":B0()}],transform:[{transform:[V0,I0,"","none","gpu","cpu"]}],"transform-origin":[{origin:l()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:iw()}],"translate-x":[{"translate-x":iw()}],"translate-y":[{"translate-y":iw()}],"translate-z":[{"translate-z":iw()}],"translate-none":["translate-none"],accent:[{accent:Z0()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Z0()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",V0,I0]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",V0,I0]}],fill:[{fill:["none",...Z0()]}],"stroke-w":[{stroke:[Xw,sX,H7,VU]}],stroke:[{stroke:["none",...Z0()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var gD=Ux(jx);function h0(...Z){return gD(oX(Z))}var CD=c(m0(),1),Sx=YZ("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function t1({className:Z,variant:X,size:Y,asChild:Q=!1,...G}){return CD.jsxDEV(Q?tQ:"button",{"data-slot":"button",className:h0(Sx({variant:X,size:Y,className:Z})),...G},void 0,!1,void 0,this)}var RD=c(m0(),1),xx=YZ("inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function p4({className:Z,variant:X,asChild:Y=!1,...Q}){return RD.jsxDEV(Y?tQ:"span",{"data-slot":"badge",className:h0(xx({variant:X}),Z),...Q},void 0,!1,void 0,this)}var ZW=c(U0(),1);var $W=(...Z)=>Z.filter((X,Y,Q)=>{return Boolean(X)&&X.trim()!==""&&Q.indexOf(X)===Y}).join(" ").trim();var jD=(Z)=>Z.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var SD=(Z)=>Z.replace(/^([A-Z])|[\s-_]+(\w)/g,(X,Y,Q)=>Q?Q.toUpperCase():Y.toLowerCase());var DU=(Z)=>{let X=SD(Z);return X.charAt(0).toUpperCase()+X.slice(1)};var tX=c(U0(),1);var xD={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var hD=(Z)=>{for(let X in Z)if(X.startsWith("aria-")||X==="role"||X==="title")return!0;return!1};var fD=tX.forwardRef(({color:Z="currentColor",size:X=24,strokeWidth:Y=2,absoluteStrokeWidth:Q,className:G="",children:K,iconNode:q,...B},_)=>tX.createElement("svg",{ref:_,...xD,width:X,height:X,stroke:Z,strokeWidth:Q?Number(Y)*24/Number(X):Y,className:$W("lucide",G),...!K&&!hD(B)&&{"aria-hidden":"true"},...B},[...q.map(([O,A])=>tX.createElement(O,A)),...Array.isArray(K)?K:[K]]));var Hw=(Z,X)=>{let Y=ZW.forwardRef(({className:Q,...G},K)=>ZW.createElement(fD,{ref:K,iconNode:X,className:$W(`lucide-${jD(DU(Z))}`,`lucide-${Z}`,Q),...G}));return Y.displayName=DU(Z),Y};var hx=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],K7=Hw("check",hx);var fx=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],eX=Hw("chevron-down",fx);var yx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],m8=Hw("circle-check",yx);var dx=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],wY=Hw("clock",dx);var mx=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],q7=Hw("copy",mx);var cx=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],c8=Hw("external-link",cx);var ux=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],$Y=Hw("info",ux);var px=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],ZY=Hw("key",px);var lx=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],P1=Hw("loader-circle",lx);var ix=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],JY=Hw("log-out",ix);var rx=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],XY=Hw("moon",rx);var nx=[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],u8=Hw("octagon-x",nx);var ax=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],YY=Hw("plus",ax);var ox=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],zY=Hw("refresh-cw",ox);var sx=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],QY=Hw("sun",sx);var tx=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],WY=Hw("trash-2",tx);var ex=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],l4=Hw("triangle-alert",ex);var wh=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],GY=Hw("user",wh);var GZ=c(m0(),1);function D5({className:Z,...X}){return GZ.jsxDEV("div",{"data-slot":"card",className:h0("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",Z),...X},void 0,!1,void 0,this)}function i4({className:Z,...X}){return GZ.jsxDEV("div",{"data-slot":"card-header",className:h0("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",Z),...X},void 0,!1,void 0,this)}function p8({className:Z,...X}){return GZ.jsxDEV("div",{"data-slot":"card-title",className:h0("leading-none font-semibold",Z),...X},void 0,!1,void 0,this)}function l8({className:Z,...X}){return GZ.jsxDEV("div",{"data-slot":"card-description",className:h0("text-muted-foreground text-sm",Z),...X},void 0,!1,void 0,this)}function K2({className:Z,...X}){return GZ.jsxDEV("div",{"data-slot":"card-content",className:h0("px-6",Z),...X},void 0,!1,void 0,this)}var K0=c(U0(),1),mD=c(t9(),1);function $h(Z){if(!Z||typeof document>"u")return;let X=document.head||document.getElementsByTagName("head")[0],Y=document.createElement("style");Y.type="text/css",X.appendChild(Y),Y.styleSheet?Y.styleSheet.cssText=Z:Y.appendChild(document.createTextNode(Z))}var Zh=(Z)=>{switch(Z){case"success":return Yh;case"info":return Qh;case"warning":return zh;case"error":return Wh;default:return null}},Jh=Array(12).fill(0),Xh=({visible:Z,className:X})=>{return K0.default.createElement("div",{className:["sonner-loading-wrapper",X].filter(Boolean).join(" "),"data-visible":Z},K0.default.createElement("div",{className:"sonner-spinner"},Jh.map((Y,Q)=>K0.default.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${Q}`}))))},Yh=K0.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},K0.default.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),zh=K0.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},K0.default.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Qh=K0.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},K0.default.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Wh=K0.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},K0.default.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Gh=K0.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},K0.default.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),K0.default.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Hh=()=>{let[Z,X]=K0.default.useState(document.hidden);return K0.default.useEffect(()=>{let Y=()=>{X(document.hidden)};return document.addEventListener("visibilitychange",Y),()=>window.removeEventListener("visibilitychange",Y)},[]),Z},MU=1;class cD{constructor(){this.subscribe=(Z)=>{return this.subscribers.push(Z),()=>{let X=this.subscribers.indexOf(Z);this.subscribers.splice(X,1)}},this.publish=(Z)=>{this.subscribers.forEach((X)=>X(Z))},this.addToast=(Z)=>{this.publish(Z),this.toasts=[...this.toasts,Z]},this.create=(Z)=>{var X;let{message:Y,...Q}=Z,G=typeof(Z==null?void 0:Z.id)==="number"||((X=Z.id)==null?void 0:X.length)>0?Z.id:MU++,K=this.toasts.find((B)=>{return B.id===G}),q=Z.dismissible===void 0?!0:Z.dismissible;if(this.dismissedToasts.has(G))this.dismissedToasts.delete(G);if(K)this.toasts=this.toasts.map((B)=>{if(B.id===G)return this.publish({...B,...Z,id:G,title:Y}),{...B,...Z,id:G,dismissible:q,title:Y};return B});else this.addToast({title:Y,...Q,dismissible:q,id:G});return G},this.dismiss=(Z)=>{if(Z)this.dismissedToasts.add(Z),requestAnimationFrame(()=>this.subscribers.forEach((X)=>X({id:Z,dismiss:!0})));else this.toasts.forEach((X)=>{this.subscribers.forEach((Y)=>Y({id:X.id,dismiss:!0}))});return Z},this.message=(Z,X)=>{return this.create({...X,message:Z})},this.error=(Z,X)=>{return this.create({...X,message:Z,type:"error"})},this.success=(Z,X)=>{return this.create({...X,type:"success",message:Z})},this.info=(Z,X)=>{return this.create({...X,type:"info",message:Z})},this.warning=(Z,X)=>{return this.create({...X,type:"warning",message:Z})},this.loading=(Z,X)=>{return this.create({...X,type:"loading",message:Z})},this.promise=(Z,X)=>{if(!X)return;let Y=void 0;if(X.loading!==void 0)Y=this.create({...X,promise:Z,type:"loading",message:X.loading,description:typeof X.description!=="function"?X.description:void 0});let Q=Promise.resolve(Z instanceof Function?Z():Z),G=Y!==void 0,K,q=Q.then(async(_)=>{if(K=["resolve",_],K0.default.isValidElement(_))G=!1,this.create({id:Y,type:"default",message:_});else if(qh(_)&&!_.ok){G=!1;let A=typeof X.error==="function"?await X.error(`HTTP error! status: ${_.status}`):X.error,F=typeof X.description==="function"?await X.description(`HTTP error! status: ${_.status}`):X.description,I=typeof A==="object"&&!K0.default.isValidElement(A)?A:{message:A};this.create({id:Y,type:"error",description:F,...I})}else if(_ instanceof Error){G=!1;let A=typeof X.error==="function"?await X.error(_):X.error,F=typeof X.description==="function"?await X.description(_):X.description,I=typeof A==="object"&&!K0.default.isValidElement(A)?A:{message:A};this.create({id:Y,type:"error",description:F,...I})}else if(X.success!==void 0){G=!1;let A=typeof X.success==="function"?await X.success(_):X.success,F=typeof X.description==="function"?await X.description(_):X.description,I=typeof A==="object"&&!K0.default.isValidElement(A)?A:{message:A};this.create({id:Y,type:"success",description:F,...I})}}).catch(async(_)=>{if(K=["reject",_],X.error!==void 0){G=!1;let O=typeof X.error==="function"?await X.error(_):X.error,A=typeof X.description==="function"?await X.description(_):X.description,L=typeof O==="object"&&!K0.default.isValidElement(O)?O:{message:O};this.create({id:Y,type:"error",description:A,...L})}}).finally(()=>{if(G)this.dismiss(Y),Y=void 0;X.finally==null||X.finally.call(X)}),B=()=>new Promise((_,O)=>q.then(()=>K[0]==="reject"?O(K[1]):_(K[1])).catch(O));if(typeof Y!=="string"&&typeof Y!=="number")return{unwrap:B};else return Object.assign(Y,{unwrap:B})},this.custom=(Z,X)=>{let Y=(X==null?void 0:X.id)||MU++;return this.create({jsx:Z(Y),id:Y,...X}),Y},this.getActiveToasts=()=>{return this.toasts.filter((Z)=>!this.dismissedToasts.has(Z.id))},this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}var m5=new cD,Kh=(Z,X)=>{let Y=(X==null?void 0:X.id)||MU++;return m5.addToast({title:Z,...X,id:Y}),Y},qh=(Z)=>{return Z&&typeof Z==="object"&&"ok"in Z&&typeof Z.ok==="boolean"&&"status"in Z&&typeof Z.status==="number"},Bh=Kh,Uh=()=>m5.toasts,Fh=()=>m5.getActiveToasts(),E1=Object.assign(Bh,{success:m5.success,info:m5.info,warning:m5.warning,error:m5.error,custom:m5.custom,message:m5.message,promise:m5.promise,dismiss:m5.dismiss,loading:m5.loading},{getHistory:Uh,getToasts:Fh});$h("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family: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;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function JW(Z){return Z.label!==void 0}var _h=3,Oh="24px",Ah="16px",yD=4000,Nh=356,Lh=14,bh=45,Ih=200;function r4(...Z){return Z.filter(Boolean).join(" ")}function Vh(Z){let[X,Y]=Z.split("-"),Q=[];if(X)Q.push(X);if(Y)Q.push(Y);return Q}var kh=(Z)=>{var X,Y,Q,G,K,q,B,_,O;let{invert:A,toast:F,unstyled:L,interacting:I,setHeights:D,visibleToasts:T,heights:M,index:v,toasts:P,expanded:E,removeToast:u,defaultRichColors:l,closeButton:p,style:n,cancelButtonStyle:j,actionButtonStyle:y,className:m="",descriptionClassName:$0="",duration:t,position:s,gap:M0,expandByDefault:e,classNames:Y0,icons:z0,closeButtonAriaLabel:Z0="Close toast"}=Z,[C0,C]=K0.default.useState(null),[Q0,L0]=K0.default.useState(null),[J0,O0]=K0.default.useState(!1),[R0,k0]=K0.default.useState(!1),[d0,x0]=K0.default.useState(!1),[Tw,S1]=K0.default.useState(!1),[B0,iw]=K0.default.useState(!1),[F2,q5]=K0.default.useState(0),[tw,qw]=K0.default.useState(0),P5=K0.default.useRef(F.duration||t||yD),j0=K0.default.useRef(null),G1=K0.default.useRef(null),zw=v===0,p6=v+1<=T,Rw=F.type,l1=F.dismissible!==!1,f2=F.className||"",q9=F.descriptionClassName||"",l5=K0.default.useMemo(()=>M.findIndex((G0)=>G0.toastId===F.id)||0,[M,F.id]),Uw=K0.default.useMemo(()=>{var G0;return(G0=F.closeButton)!=null?G0:p},[F.closeButton,p]),s0=K0.default.useMemo(()=>F.duration||t||yD,[F.duration,t]),ew=K0.default.useRef(0),I1=K0.default.useRef(0),Z5=K0.default.useRef(0),x1=K0.default.useRef(null),[i5,y2]=s.split("-"),B5=K0.default.useMemo(()=>{return M.reduce((G0,Gw,Ow)=>{if(Ow>=l5)return G0;return G0+Gw.height},0)},[M,l5]),k=Hh(),d=F.invert||A,w0=Rw==="loading";I1.current=K0.default.useMemo(()=>l5*M0+B5,[l5,B5]),K0.default.useEffect(()=>{P5.current=s0},[s0]),K0.default.useEffect(()=>{O0(!0)},[]),K0.default.useEffect(()=>{let G0=G1.current;if(G0){let Gw=G0.getBoundingClientRect().height;return qw(Gw),D((Ow)=>[{toastId:F.id,height:Gw,position:F.position},...Ow]),()=>D((Ow)=>Ow.filter((w1)=>w1.toastId!==F.id))}},[D,F.id]),K0.default.useLayoutEffect(()=>{if(!J0)return;let G0=G1.current,Gw=G0.style.height;G0.style.height="auto";let Ow=G0.getBoundingClientRect().height;G0.style.height=Gw,qw(Ow),D((w1)=>{if(!w1.find((H1)=>H1.toastId===F.id))return[{toastId:F.id,height:Ow,position:F.position},...w1];else return w1.map((H1)=>H1.toastId===F.id?{...H1,height:Ow}:H1)})},[J0,F.title,F.description,D,F.id,F.jsx,F.action,F.cancel]);let X0=K0.default.useCallback(()=>{k0(!0),q5(I1.current),D((G0)=>G0.filter((Gw)=>Gw.toastId!==F.id)),setTimeout(()=>{u(F)},Ih)},[F,u,D,I1]);K0.default.useEffect(()=>{if(F.promise&&Rw==="loading"||F.duration===1/0||F.type==="loading")return;let G0,Gw=()=>{if(Z5.current<ew.current){let w1=new Date().getTime()-ew.current;P5.current=P5.current-w1}Z5.current=new Date().getTime()},Ow=()=>{if(P5.current===1/0)return;ew.current=new Date().getTime(),G0=setTimeout(()=>{F.onAutoClose==null||F.onAutoClose.call(F,F),X0()},P5.current)};if(E||I||k)Gw();else Ow();return()=>clearTimeout(G0)},[E,I,F,Rw,k,X0]),K0.default.useEffect(()=>{if(F.delete)X0(),F.onDismiss==null||F.onDismiss.call(F,F)},[X0,F.delete]);function _0(){var G0;if(z0==null?void 0:z0.loading){var Gw;return K0.default.createElement("div",{className:r4(Y0==null?void 0:Y0.loader,F==null?void 0:(Gw=F.classNames)==null?void 0:Gw.loader,"sonner-loader"),"data-visible":Rw==="loading"},z0.loading)}return K0.default.createElement(Xh,{className:r4(Y0==null?void 0:Y0.loader,F==null?void 0:(G0=F.classNames)==null?void 0:G0.loader),visible:Rw==="loading"})}let b0=F.icon||(z0==null?void 0:z0[Rw])||Zh(Rw);var g0,Zw;return K0.default.createElement("li",{tabIndex:0,ref:G1,className:r4(m,f2,Y0==null?void 0:Y0.toast,F==null?void 0:(X=F.classNames)==null?void 0:X.toast,Y0==null?void 0:Y0.default,Y0==null?void 0:Y0[Rw],F==null?void 0:(Y=F.classNames)==null?void 0:Y[Rw]),"data-sonner-toast":"","data-rich-colors":(g0=F.richColors)!=null?g0:l,"data-styled":!Boolean(F.jsx||F.unstyled||L),"data-mounted":J0,"data-promise":Boolean(F.promise),"data-swiped":B0,"data-removed":R0,"data-visible":p6,"data-y-position":i5,"data-x-position":y2,"data-index":v,"data-front":zw,"data-swiping":d0,"data-dismissible":l1,"data-type":Rw,"data-invert":d,"data-swipe-out":Tw,"data-swipe-direction":Q0,"data-expanded":Boolean(E||e&&J0),"data-testid":F.testId,style:{"--index":v,"--toasts-before":v,"--z-index":P.length-v,"--offset":`${R0?F2:I1.current}px`,"--initial-height":e?"auto":`${tw}px`,...n,...F.style},onDragEnd:()=>{x0(!1),C(null),x1.current=null},onPointerDown:(G0)=>{if(G0.button===2)return;if(w0||!l1)return;if(j0.current=new Date,q5(I1.current),G0.target.setPointerCapture(G0.pointerId),G0.target.tagName==="BUTTON")return;x0(!0),x1.current={x:G0.clientX,y:G0.clientY}},onPointerUp:()=>{var G0,Gw,Ow;if(Tw||!l1)return;x1.current=null;let w1=Number(((G0=G1.current)==null?void 0:G0.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),G4=Number(((Gw=G1.current)==null?void 0:Gw.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),H1=new Date().getTime()-((Ow=j0.current)==null?void 0:Ow.getTime()),i1=C0==="x"?w1:G4,J6=Math.abs(i1)/H1;if(Math.abs(i1)>=bh||J6>0.11){if(q5(I1.current),F.onDismiss==null||F.onDismiss.call(F,F),C0==="x")L0(w1>0?"right":"left");else L0(G4>0?"down":"up");X0(),S1(!0);return}else{var z1,dw;(z1=G1.current)==null||z1.style.setProperty("--swipe-amount-x","0px"),(dw=G1.current)==null||dw.style.setProperty("--swipe-amount-y","0px")}iw(!1),x0(!1),C(null)},onPointerMove:(G0)=>{var Gw,Ow,w1;if(!x1.current||!l1)return;if(((Gw=window.getSelection())==null?void 0:Gw.toString().length)>0)return;let H1=G0.clientY-x1.current.y,i1=G0.clientX-x1.current.x;var J6;let z1=(J6=Z.swipeDirections)!=null?J6:Vh(s);if(!C0&&(Math.abs(i1)>1||Math.abs(H1)>1))C(Math.abs(i1)>Math.abs(H1)?"x":"y");let dw={x:0,y:0},uZ=(X6)=>{return 1/(1.5+Math.abs(X6)/20)};if(C0==="y"){if(z1.includes("top")||z1.includes("bottom"))if(z1.includes("top")&&H1<0||z1.includes("bottom")&&H1>0)dw.y=H1;else{let X6=H1*uZ(H1);dw.y=Math.abs(X6)<Math.abs(H1)?X6:H1}}else if(C0==="x"){if(z1.includes("left")||z1.includes("right"))if(z1.includes("left")&&i1<0||z1.includes("right")&&i1>0)dw.x=i1;else{let X6=i1*uZ(i1);dw.x=Math.abs(X6)<Math.abs(i1)?X6:i1}}if(Math.abs(dw.x)>0||Math.abs(dw.y)>0)iw(!0);(Ow=G1.current)==null||Ow.style.setProperty("--swipe-amount-x",`${dw.x}px`),(w1=G1.current)==null||w1.style.setProperty("--swipe-amount-y",`${dw.y}px`)}},Uw&&!F.jsx&&Rw!=="loading"?K0.default.createElement("button",{"aria-label":Z0,"data-disabled":w0,"data-close-button":!0,onClick:w0||!l1?()=>{}:()=>{X0(),F.onDismiss==null||F.onDismiss.call(F,F)},className:r4(Y0==null?void 0:Y0.closeButton,F==null?void 0:(Q=F.classNames)==null?void 0:Q.closeButton)},(Zw=z0==null?void 0:z0.close)!=null?Zw:Gh):null,(Rw||F.icon||F.promise)&&F.icon!==null&&((z0==null?void 0:z0[Rw])!==null||F.icon)?K0.default.createElement("div",{"data-icon":"",className:r4(Y0==null?void 0:Y0.icon,F==null?void 0:(G=F.classNames)==null?void 0:G.icon)},F.promise||F.type==="loading"&&!F.icon?F.icon||_0():null,F.type!=="loading"?b0:null):null,K0.default.createElement("div",{"data-content":"",className:r4(Y0==null?void 0:Y0.content,F==null?void 0:(K=F.classNames)==null?void 0:K.content)},K0.default.createElement("div",{"data-title":"",className:r4(Y0==null?void 0:Y0.title,F==null?void 0:(q=F.classNames)==null?void 0:q.title)},F.jsx?F.jsx:typeof F.title==="function"?F.title():F.title),F.description?K0.default.createElement("div",{"data-description":"",className:r4($0,q9,Y0==null?void 0:Y0.description,F==null?void 0:(B=F.classNames)==null?void 0:B.description)},typeof F.description==="function"?F.description():F.description):null),K0.default.isValidElement(F.cancel)?F.cancel:F.cancel&&JW(F.cancel)?K0.default.createElement("button",{"data-button":!0,"data-cancel":!0,style:F.cancelButtonStyle||j,onClick:(G0)=>{if(!JW(F.cancel))return;if(!l1)return;F.cancel.onClick==null||F.cancel.onClick.call(F.cancel,G0),X0()},className:r4(Y0==null?void 0:Y0.cancelButton,F==null?void 0:(_=F.classNames)==null?void 0:_.cancelButton)},F.cancel.label):null,K0.default.isValidElement(F.action)?F.action:F.action&&JW(F.action)?K0.default.createElement("button",{"data-button":!0,"data-action":!0,style:F.actionButtonStyle||y,onClick:(G0)=>{if(!JW(F.action))return;if(F.action.onClick==null||F.action.onClick.call(F.action,G0),G0.defaultPrevented)return;X0()},className:r4(Y0==null?void 0:Y0.actionButton,F==null?void 0:(O=F.classNames)==null?void 0:O.actionButton)},F.action.label):null)};function dD(){if(typeof window>"u")return"ltr";if(typeof document>"u")return"ltr";let Z=document.documentElement.getAttribute("dir");if(Z==="auto"||!Z)return window.getComputedStyle(document.documentElement).direction;return Z}function Dh(Z,X){let Y={};return[Z,X].forEach((Q,G)=>{let K=G===1,q=K?"--mobile-offset":"--offset",B=K?Ah:Oh;function _(O){["top","right","bottom","left"].forEach((A)=>{Y[`${q}-${A}`]=typeof O==="number"?`${O}px`:O})}if(typeof Q==="number"||typeof Q==="string")_(Q);else if(typeof Q==="object")["top","right","bottom","left"].forEach((O)=>{if(Q[O]===void 0)Y[`${q}-${O}`]=B;else Y[`${q}-${O}`]=typeof Q[O]==="number"?`${Q[O]}px`:Q[O]});else _(B)}),Y}var uD=K0.default.forwardRef(function(X,Y){let{id:Q,invert:G,position:K="bottom-right",hotkey:q=["altKey","KeyT"],expand:B,closeButton:_,className:O,offset:A,mobileOffset:F,theme:L="light",richColors:I,duration:D,style:T,visibleToasts:M=_h,toastOptions:v,dir:P=dD(),gap:E=Lh,icons:u,containerAriaLabel:l="Notifications"}=X,[p,n]=K0.default.useState([]),j=K0.default.useMemo(()=>{if(Q)return p.filter((J0)=>J0.toasterId===Q);return p.filter((J0)=>!J0.toasterId)},[p,Q]),y=K0.default.useMemo(()=>{return Array.from(new Set([K].concat(j.filter((J0)=>J0.position).map((J0)=>J0.position))))},[j,K]),[m,$0]=K0.default.useState([]),[t,s]=K0.default.useState(!1),[M0,e]=K0.default.useState(!1),[Y0,z0]=K0.default.useState(L!=="system"?L:typeof window<"u"?window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":"light"),Z0=K0.default.useRef(null),C0=q.join("+").replace(/Key/g,"").replace(/Digit/g,""),C=K0.default.useRef(null),Q0=K0.default.useRef(!1),L0=K0.default.useCallback((J0)=>{n((O0)=>{var R0;if(!((R0=O0.find((k0)=>k0.id===J0.id))==null?void 0:R0.delete))m5.dismiss(J0.id);return O0.filter(({id:k0})=>k0!==J0.id)})},[]);return K0.default.useEffect(()=>{return m5.subscribe((J0)=>{if(J0.dismiss){requestAnimationFrame(()=>{n((O0)=>O0.map((R0)=>R0.id===J0.id?{...R0,delete:!0}:R0))});return}setTimeout(()=>{mD.default.flushSync(()=>{n((O0)=>{let R0=O0.findIndex((k0)=>k0.id===J0.id);if(R0!==-1)return[...O0.slice(0,R0),{...O0[R0],...J0},...O0.slice(R0+1)];return[J0,...O0]})})})})},[p]),K0.default.useEffect(()=>{if(L!=="system"){z0(L);return}if(L==="system")if(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)z0("dark");else z0("light");if(typeof window>"u")return;let J0=window.matchMedia("(prefers-color-scheme: dark)");try{J0.addEventListener("change",({matches:O0})=>{if(O0)z0("dark");else z0("light")})}catch(O0){J0.addListener(({matches:R0})=>{try{if(R0)z0("dark");else z0("light")}catch(k0){console.error(k0)}})}},[L]),K0.default.useEffect(()=>{if(p.length<=1)s(!1)},[p]),K0.default.useEffect(()=>{let J0=(O0)=>{var R0;if(q.every((x0)=>O0[x0]||O0.code===x0)){var d0;s(!0),(d0=Z0.current)==null||d0.focus()}if(O0.code==="Escape"&&(document.activeElement===Z0.current||((R0=Z0.current)==null?void 0:R0.contains(document.activeElement))))s(!1)};return document.addEventListener("keydown",J0),()=>document.removeEventListener("keydown",J0)},[q]),K0.default.useEffect(()=>{if(Z0.current)return()=>{if(C.current)C.current.focus({preventScroll:!0}),C.current=null,Q0.current=!1}},[Z0.current]),K0.default.createElement("section",{ref:Y,"aria-label":`${l} ${C0}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},y.map((J0,O0)=>{var R0;let[k0,d0]=J0.split("-");if(!j.length)return null;return K0.default.createElement("ol",{key:J0,dir:P==="auto"?dD():P,tabIndex:-1,ref:Z0,className:O,"data-sonner-toaster":!0,"data-sonner-theme":Y0,"data-y-position":k0,"data-x-position":d0,style:{"--front-toast-height":`${((R0=m[0])==null?void 0:R0.height)||0}px`,"--width":`${Nh}px`,"--gap":`${E}px`,...T,...Dh(A,F)},onBlur:(x0)=>{if(Q0.current&&!x0.currentTarget.contains(x0.relatedTarget)){if(Q0.current=!1,C.current)C.current.focus({preventScroll:!0}),C.current=null}},onFocus:(x0)=>{if(x0.target instanceof HTMLElement&&x0.target.dataset.dismissible==="false")return;if(!Q0.current)Q0.current=!0,C.current=x0.relatedTarget},onMouseEnter:()=>s(!0),onMouseMove:()=>s(!0),onMouseLeave:()=>{if(!M0)s(!1)},onDragEnd:()=>s(!1),onPointerDown:(x0)=>{if(x0.target instanceof HTMLElement&&x0.target.dataset.dismissible==="false")return;e(!0)},onPointerUp:()=>e(!1)},j.filter((x0)=>!x0.position&&O0===0||x0.position===J0).map((x0,Tw)=>{var S1,B0;return K0.default.createElement(kh,{key:x0.id,icons:u,index:Tw,toast:x0,defaultRichColors:I,duration:(S1=v==null?void 0:v.duration)!=null?S1:D,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:G,visibleToasts:M,closeButton:(B0=v==null?void 0:v.closeButton)!=null?B0:_,interacting:M0,position:J0,style:v==null?void 0:v.style,unstyled:v==null?void 0:v.unstyled,classNames:v==null?void 0:v.classNames,cancelButtonStyle:v==null?void 0:v.cancelButtonStyle,actionButtonStyle:v==null?void 0:v.actionButtonStyle,closeButtonAriaLabel:v==null?void 0:v.closeButtonAriaLabel,removeToast:L0,toasts:j.filter((iw)=>iw.position==x0.position),heights:m.filter((iw)=>iw.position==x0.position),setHeights:$0,expandByDefault:B,gap:E,expanded:t,swipeDirections:X.swipeDirections})}))}))});var XW=c(m0(),1),Mh=YZ("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"}},defaultVariants:{variant:"default"}});function pD({className:Z,variant:X,...Y}){return XW.jsxDEV("div",{"data-slot":"alert",role:"alert",className:h0(Mh({variant:X}),Z),...Y},void 0,!1,void 0,this)}function lD({className:Z,...X}){return XW.jsxDEV("div",{"data-slot":"alert-title",className:h0("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",Z),...X},void 0,!1,void 0,this)}function iD({className:Z,...X}){return XW.jsxDEV("div",{"data-slot":"alert-description",className:h0("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",Z),...X},void 0,!1,void 0,this)}var i8=class extends Error{constructor(Z,X){super(X+"");this.status=Z,this.value=X}},Th=/(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))/,vh=/(?:Sun|Mon|Tue|Wed|Thu|Fri|Sat)\s(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s\d{2}\s\d{4}\s\d{2}:\d{2}:\d{2}\sGMT(?:\+|-)\d{4}\s\([^)]+\)/,Ph=/^(?:(?:(?:(?:0?[1-9]|[12][0-9]|3[01])[/\s-](?:0?[1-9]|1[0-2])[/\s-](?:19|20)\d{2})|(?:(?:19|20)\d{2}[/\s-](?:0?[1-9]|1[0-2])[/\s-](?:0?[1-9]|[12][0-9]|3[01]))))(?:\s(?:1[012]|0?[1-9]):[0-5][0-9](?::[0-5][0-9])?(?:\s[AP]M)?)?$/,Eh=(Z)=>Z.trim().length!==0&&!Number.isNaN(Number(Z)),YW=(Z)=>{if(typeof Z!="string")return null;let X=Z.replace(/"/g,"");if(Th.test(X)||vh.test(X)||Ph.test(X)){let Y=new Date(X);if(!Number.isNaN(Y.getTime()))return Y}return null},gh=(Z)=>{let X=Z.charCodeAt(0),Y=Z.charCodeAt(Z.length-1);return X===123&&Y===125||X===91&&Y===93},Ch=(Z)=>JSON.parse(Z,(X,Y)=>{return YW(Y)||Y}),HZ=(Z)=>{if(!Z)return Z;if(Eh(Z))return+Z;if(Z==="true")return!0;if(Z==="false")return!1;let X=YW(Z);if(X)return X;if(gh(Z))try{return Ch(Z)}catch{}return Z},TU=(Z)=>{let X=Z.data.toString();return X==="null"?null:HZ(X)};var Rh=class{constructor(Z){this.url=Z,this.ws=new WebSocket(Z)}ws;send(Z){return Array.isArray(Z)?(Z.forEach((X)=>this.send(X)),this):(this.ws.send(typeof Z=="object"?JSON.stringify(Z):Z.toString()),this)}on(Z,X,Y){return this.addEventListener(Z,X,Y)}off(Z,X,Y){return this.ws.removeEventListener(Z,X,Y),this}subscribe(Z,X){return this.addEventListener("message",Z,X)}addEventListener(Z,X,Y){return this.ws.addEventListener(Z,(Q)=>{if(Z==="message"){let G=TU(Q);X({...Q,data:G})}else X(Q)},Y),this}removeEventListener(Z,X,Y){return this.off(Z,X,Y),this}close(){return this.ws.close(),this}},jh=["get","post","put","delete","patch","options","head","connect","subscribe"],nD=["localhost","127.0.0.1","0.0.0.0"],PU=typeof FileList>"u",zW=(Z)=>PU?Z instanceof Blob:Z instanceof FileList||Z instanceof File,Sh=(Z)=>{if(!Z)return!1;for(let X in Z)if(zW(Z[X])||Array.isArray(Z[X])&&Z[X].find(zW))return!0;return!1},vU=(Z)=>PU?Z:new Promise((X)=>{let Y=new FileReader;Y.onload=()=>{let Q=new File([Y.result],Z.name,{lastModified:Z.lastModified,type:Z.type});X(Q)},Y.readAsArrayBuffer(Z)}),B7=async(Z,X,Y={},Q={})=>{if(Array.isArray(Z)){for(let G of Z)if(!Array.isArray(G))Q=await B7(G,X,Y,Q);else{let K=G[0];if(typeof K=="string")Q[K.toLowerCase()]=G[1];else for(let[q,B]of K)Q[q.toLowerCase()]=B}return Q}if(!Z)return Q;switch(typeof Z){case"function":if(Z instanceof Headers)return B7(Z,X,Y,Q);let G=await Z(X,Y);return G?B7(G,X,Y,Q):Q;case"object":if(Z instanceof Headers)return Z.forEach((K,q)=>{Q[q.toLowerCase()]=K}),Q;for(let[K,q]of Object.entries(Z))Q[K.toLowerCase()]=q;return Q;default:return Q}};function aD(Z){let X=Z.split(`
241
+ `),Y={};for(let Q of X){if(!Q||Q.startsWith(":"))continue;let G=Q.indexOf(":");if(G>0){let K=Q.slice(0,G).trim(),q=Q.slice(G+1).replace(/^ /,"");Y[K]=q&&HZ(q)}}return Object.keys(Y).length>0?Y:null}function*rD(Z){let X;for(;(X=Z.value.indexOf(`
242
+
243
+ `))!==-1;){let Y=Z.value.slice(0,X);if(Z.value=Z.value.slice(X+2),Y.trim()){let Q=aD(Y);Q&&(yield Q)}}}async function*xh(Z){let X=Z.body;if(!X)return;let Y=X.getReader(),Q=new TextDecoder("utf-8"),G={value:""};try{for(;;){let{done:q,value:B}=await Y.read();if(q)break;let _=typeof B=="string"?B:Q.decode(B,{stream:!0});G.value+=_,yield*rD(G)}let K=Q.decode();if(K&&(G.value+=K),yield*rD(G),G.value.trim()){let q=aD(G.value);q&&(yield q)}}finally{Y.releaseLock()}}var HY=(Z,X,Y=[],Q)=>new Proxy(()=>{},{get(G,K){return HY(Z,X,K==="index"?Y:[...Y,K],Q)},apply(G,K,[q,B]){if(!q||B||typeof q=="object"&&Object.keys(q).length!==1||jh.includes(Y.at(-1))){let _=[...Y],O=_.pop(),A="/"+_.join("/"),{fetcher:F=fetch,headers:L,onRequest:I,onResponse:D,fetch:T}=X,M=O==="get"||O==="head"||O==="subscribe",v=M?q?.query:B?.query,P="";if(v){let E=(u,l)=>{P+=(P?"&":"?")+`${encodeURIComponent(u)}=${encodeURIComponent(l)}`};for(let[u,l]of Object.entries(v)){if(Array.isArray(l)){for(let p of l)E(u,p);continue}if(l!=null){if(typeof l=="object"){E(u,JSON.stringify(l));continue}E(u,`${l}`)}}}if(O==="subscribe"){let E=Z.replace(/^([^]+):\/\//,Z.startsWith("https://")?"wss://":Z.startsWith("http://")||nD.find((u)=>Z.includes(u))?"ws://":"wss://")+A+P;return new Rh(E)}return(async()=>{L=await B7(L,A,B);let E={method:O?.toUpperCase(),body:q,...T,headers:L};E.headers={...L,...await B7(M?q?.headers:B?.headers,A,E)};let u=M&&typeof q=="object"?q.fetch:B?.fetch;if(E={...E,...u},M&&delete E.body,I){Array.isArray(I)||(I=[I]);for(let y of I){let m=await y(A,E);typeof m=="object"&&(E={...E,...m,headers:{...E.headers,...await B7(m.headers,A,E)}})}}if(M&&delete E.body,Sh(q)){let y=new FormData,m=(t)=>{if(typeof t=="string"||zW(t))return!1;if(typeof t=="object"){if(t!==null)return!0;if(t instanceof Date)return!1}return!1},$0=async(t)=>t instanceof File?await vU(t):m(t)?JSON.stringify(t):t;for(let[t,s]of Object.entries(E.body)){if(Array.isArray(s)){if(s.some((M0)=>typeof M0=="object"&&M0!==null&&!zW(M0)))y.append(t,JSON.stringify(s));else for(let M0=0;M0<s.length;M0++){let e=s[M0],Y0=await $0(e);y.append(t,Y0)}continue}if(PU){if(Array.isArray(s))for(let M0 of s)y.append(t,await $0(M0));else y.append(t,await $0(s));continue}if(s instanceof File){y.append(t,await vU(s));continue}if(s instanceof FileList){for(let M0=0;M0<s.length;M0++)y.append(t,await vU(s[M0]));continue}y.append(t,await $0(s))}E.body=y}else typeof q=="object"?(E.headers["content-type"]="application/json",E.body=JSON.stringify(q)):q!=null&&(E.headers["content-type"]="text/plain");if(M&&delete E.body,I){Array.isArray(I)||(I=[I]);for(let y of I){let m=await y(A,E);typeof m=="object"&&(E={...E,...m,headers:{...E.headers,...await B7(m.headers,A,E)}})}}B?.headers?.["content-type"]&&(E.headers["content-type"]=B?.headers["content-type"]);let l=Z+A+P,p;try{p=await(Q?.handle(new Request(l,E))??F(l,E))}catch(y){return{data:null,error:new i8(503,y),response:void 0,status:503,headers:void 0}}let n=null,j=null;if(D){Array.isArray(D)||(D=[D]);for(let y of D)try{let m=await y(p.clone());if(m!=null){n=m;break}}catch(m){m instanceof i8?j=m:j=new i8(422,m);break}}if(n!==null)return{data:n,error:j,response:p,status:p.status,headers:p.headers};switch(p.headers.get("Content-Type")?.split(";")[0]){case"text/event-stream":n=xh(p);break;case"application/json":n=JSON.parse(await p.text(),(m,$0)=>{if(typeof $0!="string")return $0;return YW($0)||$0});break;case"application/octet-stream":n=await p.arrayBuffer();break;case"multipart/form-data":let y=await p.formData();n={},y.forEach((m,$0)=>{n[$0]=m});break;default:n=await p.text().then(HZ)}return(p.status>=300||p.status<200)&&(j=new i8(p.status,n),n=null),{data:n,error:j,response:p,status:p.status,headers:p.headers}})()}return typeof q=="object"?HY(Z,X,[...Y,Object.values(q)[0]],Q):HY(Z,X,Y)}}),EU=(Z,X={})=>typeof Z=="string"?(X.keepDomain||(Z.includes("://")||(Z=(nD.find((Y)=>Z.includes(Y))?"http://":"https://")+Z),Z.endsWith("/")&&(Z=Z.slice(0,-1))),HY(Z,X)):(typeof window<"u"&&console.warn("Elysia instance server found on client side, this is not recommended for security reason. Use generic type instead."),HY("http://e.ly",X,[],Z));var u1=EU(window.location.origin);var sD=c(m0(),1);function oD({children:Z,className:X,speed:Y=1,colorFrom:Q="#ffaa40",colorTo:G="#9c40ff",...K}){return sD.jsxDEV("span",{style:{"--bg-size":`${Y*300}%`,"--color-from":Q,"--color-to":G},className:h0("animate-gradient inline bg-gradient-to-r from-[var(--color-from)] via-[var(--color-to)] to-[var(--color-from)] bg-[length:var(--bg-size)_100%] bg-clip-text text-transparent",X),...K,children:Z},void 0,!1,void 0,this)}var SZ=c(U0(),1);var tD=c(U0(),1),QW=tD.createContext({});var eD=c(U0(),1);function WW(Z){let X=eD.useRef(null);if(X.current===null)X.current=Z();return X.current}var HW=c(U0(),1);var GW=typeof window<"u";var KW=GW?HW.useLayoutEffect:HW.useEffect;var wM=c(U0(),1),KZ=wM.createContext(null);function U7(Z,X){if(Z.indexOf(X)===-1)Z.push(X)}function F7(Z,X){let Y=Z.indexOf(X);if(Y>-1)Z.splice(Y,1)}var L1=(Z,X,Y)=>{if(Y>X)return X;if(Y<Z)return Z;return Y};function KY(Z,X){return X?`${Z}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${X}`:Z}var g2=()=>{},e1=()=>{};if(typeof process<"u"&&process.env?.NODE_ENV!=="production")g2=(Z,X,Y)=>{if(!Z&&typeof console<"u")console.warn(KY(X,Y))},e1=(Z,X,Y)=>{if(!Z)throw Error(KY(X,Y))};var G5={};var qY=(Z)=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(Z);function BY(Z){return typeof Z==="object"&&Z!==null}var UY=(Z)=>/^0[^.\s]+$/u.test(Z);function _7(Z){let X;return()=>{if(X===void 0)X=Z();return X}}var ow=(Z)=>Z;var hh=(Z,X)=>(Y)=>X(Z(Y)),X4=(...Z)=>Z.reduce(hh);var n4=(Z,X,Y)=>{let Q=X-Z;return Q===0?1:(Y-Z)/Q};class r8{constructor(){this.subscriptions=[]}add(Z){return U7(this.subscriptions,Z),()=>F7(this.subscriptions,Z)}notify(Z,X,Y){let Q=this.subscriptions.length;if(!Q)return;if(Q===1)this.subscriptions[0](Z,X,Y);else for(let G=0;G<Q;G++){let K=this.subscriptions[G];K&&K(Z,X,Y)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}var w5=(Z)=>Z*1000,g1=(Z)=>Z/1000;function FY(Z,X){return X?Z*(1000/X):0}var $M=new Set;function O7(Z,X,Y){if(Z||$M.has(X))return;console.warn(KY(X,Y)),$M.add(X)}var ZM=(Z,X,Y)=>(((1-3*Y+3*X)*Z+(3*Y-6*X))*Z+3*X)*Z,fh=0.0000001,yh=12;function dh(Z,X,Y,Q,G){let K,q,B=0;do if(q=X+(Y-X)/2,K=ZM(q,Q,G)-Z,K>0)Y=q;else X=q;while(Math.abs(K)>fh&&++B<yh);return q}function n8(Z,X,Y,Q){if(Z===X&&Y===Q)return ow;let G=(K)=>dh(K,0,1,Z,Y);return(K)=>K===0||K===1?K:ZM(G(K),X,Q)}var qW=(Z)=>(X)=>X<=0.5?Z(2*X)/2:(2-Z(2*(1-X)))/2;var BW=(Z)=>(X)=>1-Z(1-X);var UW=n8(0.33,1.53,0.69,0.99),qZ=BW(UW),_Y=qW(qZ);var OY=(Z)=>(Z*=2)<1?0.5*qZ(Z):0.5*(2-Math.pow(2,-10*(Z-1)));var AY=(Z)=>1-Math.sin(Math.acos(Z)),NY=BW(AY),LY=qW(AY);var gU=n8(0.42,0,1,1),CU=n8(0,0,0.58,1),bY=n8(0.42,0,0.58,1);var RU=(Z)=>{return Array.isArray(Z)&&typeof Z[0]!=="number"};var IY=(Z)=>Array.isArray(Z)&&typeof Z[0]==="number";var JM={linear:ow,easeIn:gU,easeInOut:bY,easeOut:CU,circIn:AY,circInOut:LY,circOut:NY,backIn:qZ,backInOut:_Y,backOut:UW,anticipate:OY},mh=(Z)=>{return typeof Z==="string"},FW=(Z)=>{if(IY(Z)){e1(Z.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[X,Y,Q,G]=Z;return n8(X,Y,Q,G)}else if(mh(Z))return e1(JM[Z]!==void 0,`Invalid easing type '${Z}'`,"invalid-easing-type"),JM[Z];return Z};var VY=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];var q2={value:null,addProjectionMetrics:null};function XM(Z,X){let Y=new Set,Q=new Set,G=!1,K=!1,q=new WeakSet,B={delta:0,timestamp:0,isProcessing:!1},_=0;function O(F){if(q.has(F))A.schedule(F),Z();_++,F(B)}let A={schedule:(F,L=!1,I=!1)=>{let T=I&&G?Y:Q;if(L)q.add(F);if(!T.has(F))T.add(F);return F},cancel:(F)=>{Q.delete(F),q.delete(F)},process:(F)=>{if(B=F,G){K=!0;return}if(G=!0,[Y,Q]=[Q,Y],Y.forEach(O),X&&q2.value)q2.value.frameloop[X].push(_);if(_=0,Y.clear(),G=!1,K)K=!1,A.process(F)}};return A}var ch=40;function _W(Z,X){let Y=!1,Q=!0,G={delta:0,timestamp:0,isProcessing:!1},K=()=>Y=!0,q=VY.reduce((E,u)=>{return E[u]=XM(K,X?u:void 0),E},{}),{setup:B,read:_,resolveKeyframes:O,preUpdate:A,update:F,preRender:L,render:I,postRender:D}=q,T=()=>{let E=G5.useManualTiming?G.timestamp:performance.now();if(Y=!1,!G5.useManualTiming)G.delta=Q?16.666666666666668:Math.max(Math.min(E-G.timestamp,ch),1);if(G.timestamp=E,G.isProcessing=!0,B.process(G),_.process(G),O.process(G),A.process(G),F.process(G),L.process(G),I.process(G),D.process(G),G.isProcessing=!1,Y&&X)Q=!1,Z(T)},M=()=>{if(Y=!0,Q=!0,!G.isProcessing)Z(T)};return{schedule:VY.reduce((E,u)=>{let l=q[u];return E[u]=(p,n=!1,j=!1)=>{if(!Y)M();return l.schedule(p,n,j)},E},{}),cancel:(E)=>{for(let u=0;u<VY.length;u++)q[VY[u]].cancel(E)},state:G,steps:q}}var{schedule:n0,cancel:H5,state:Y1,steps:kY}=_W(typeof requestAnimationFrame<"u"?requestAnimationFrame:ow,!0);var OW;function uh(){OW=void 0}var sw={now:()=>{if(OW===void 0)sw.set(Y1.isProcessing||G5.useManualTiming?Y1.timestamp:performance.now());return OW},set:(Z)=>{OW=Z,queueMicrotask(uh)}};var a4={layout:0,mainThread:0,waapi:0};var YM=(Z)=>(X)=>typeof X==="string"&&X.startsWith(Z),AW=YM("--"),ph=YM("var(--"),BZ=(Z)=>{if(!ph(Z))return!1;return lh.test(Z.split("/*")[0].trim())},lh=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function jU(Z){if(typeof Z!=="string")return!1;return Z.split("/*")[0].includes("var(--")}var o4={test:(Z)=>typeof Z==="number",parse:parseFloat,transform:(Z)=>Z},h6={...o4,transform:(Z)=>L1(0,1,Z)},DY={...o4,default:1};var a8=(Z)=>Math.round(Z*1e5)/1e5;var UZ=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function zM(Z){return Z==null}var QM=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var FZ=(Z,X)=>(Y)=>{return Boolean(typeof Y==="string"&&QM.test(Y)&&Y.startsWith(Z)||X&&!zM(Y)&&Object.prototype.hasOwnProperty.call(Y,X))},NW=(Z,X,Y)=>(Q)=>{if(typeof Q!=="string")return Q;let[G,K,q,B]=Q.match(UZ);return{[Z]:parseFloat(G),[X]:parseFloat(K),[Y]:parseFloat(q),alpha:B!==void 0?parseFloat(B):1}};var ih=(Z)=>L1(0,255,Z),SU={...o4,transform:(Z)=>Math.round(ih(Z))},s4={test:FZ("rgb","red"),parse:NW("red","green","blue"),transform:({red:Z,green:X,blue:Y,alpha:Q=1})=>"rgba("+SU.transform(Z)+", "+SU.transform(X)+", "+SU.transform(Y)+", "+a8(h6.transform(Q))+")"};function rh(Z){let X="",Y="",Q="",G="";if(Z.length>5)X=Z.substring(1,3),Y=Z.substring(3,5),Q=Z.substring(5,7),G=Z.substring(7,9);else X=Z.substring(1,2),Y=Z.substring(2,3),Q=Z.substring(3,4),G=Z.substring(4,5),X+=X,Y+=Y,Q+=Q,G+=G;return{red:parseInt(X,16),green:parseInt(Y,16),blue:parseInt(Q,16),alpha:G?parseInt(G,16)/255:1}}var MY={test:FZ("#"),parse:rh,transform:s4.transform};var TY=(Z)=>({test:(X)=>typeof X==="string"&&X.endsWith(Z)&&X.split(" ").length===1,parse:parseFloat,transform:(X)=>`${X}${Z}`}),Y4=TY("deg"),K5=TY("%"),N0=TY("px"),xU=TY("vh"),hU=TY("vw"),LW=(()=>({...K5,parse:(Z)=>K5.parse(Z)/100,transform:(Z)=>K5.transform(Z*100)}))();var o8={test:FZ("hsl","hue"),parse:NW("hue","saturation","lightness"),transform:({hue:Z,saturation:X,lightness:Y,alpha:Q=1})=>{return"hsla("+Math.round(Z)+", "+K5.transform(a8(X))+", "+K5.transform(a8(Y))+", "+a8(h6.transform(Q))+")"}};var uw={test:(Z)=>s4.test(Z)||MY.test(Z)||o8.test(Z),parse:(Z)=>{if(s4.test(Z))return s4.parse(Z);else if(o8.test(Z))return o8.parse(Z);else return MY.parse(Z)},transform:(Z)=>{return typeof Z==="string"?Z:Z.hasOwnProperty("red")?s4.transform(Z):o8.transform(Z)},getAnimatableNone:(Z)=>{let X=uw.parse(Z);return X.alpha=0,uw.transform(X)}};var WM=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function nh(Z){return isNaN(Z)&&typeof Z==="string"&&(Z.match(UZ)?.length||0)+(Z.match(WM)?.length||0)>0}var HM="number",KM="color",ah="var",oh="var(",GM="${}",sh=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function A7(Z){let X=Z.toString(),Y=[],Q={color:[],number:[],var:[]},G=[],K=0,B=X.replace(sh,(_)=>{if(uw.test(_))Q.color.push(K),G.push(KM),Y.push(uw.parse(_));else if(_.startsWith(oh))Q.var.push(K),G.push(ah),Y.push(_);else Q.number.push(K),G.push(HM),Y.push(parseFloat(_));return++K,GM}).split(GM);return{values:Y,split:B,indexes:Q,types:G}}function qM(Z){return A7(Z).values}function BM(Z){let{split:X,types:Y}=A7(Z),Q=X.length;return(G)=>{let K="";for(let q=0;q<Q;q++)if(K+=X[q],G[q]!==void 0){let B=Y[q];if(B===HM)K+=a8(G[q]);else if(B===KM)K+=uw.transform(G[q]);else K+=G[q]}return K}}var th=(Z)=>typeof Z==="number"?0:uw.test(Z)?uw.getAnimatableNone(Z):Z;function eh(Z){let X=qM(Z);return BM(Z)(X.map(th))}var M5={test:nh,parse:qM,createTransformer:BM,getAnimatableNone:eh};function fU(Z,X,Y){if(Y<0)Y+=1;if(Y>1)Y-=1;if(Y<0.16666666666666666)return Z+(X-Z)*6*Y;if(Y<0.5)return X;if(Y<0.6666666666666666)return Z+(X-Z)*(0.6666666666666666-Y)*6;return Z}function UM({hue:Z,saturation:X,lightness:Y,alpha:Q}){Z/=360,X/=100,Y/=100;let G=0,K=0,q=0;if(!X)G=K=q=Y;else{let B=Y<0.5?Y*(1+X):Y+X-Y*X,_=2*Y-B;G=fU(_,B,Z+0.3333333333333333),K=fU(_,B,Z),q=fU(_,B,Z-0.3333333333333333)}return{red:Math.round(G*255),green:Math.round(K*255),blue:Math.round(q*255),alpha:Q}}function _Z(Z,X){return(Y)=>Y>0?X:Z}var Kw=(Z,X,Y)=>{return Z+(X-Z)*Y};var yU=(Z,X,Y)=>{let Q=Z*Z,G=Y*(X*X-Q)+Q;return G<0?0:Math.sqrt(G)},wf=[MY,s4,o8],$f=(Z)=>wf.find((X)=>X.test(Z));function FM(Z){let X=$f(Z);if(g2(Boolean(X),`'${Z}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!Boolean(X))return!1;let Y=X.parse(Z);if(X===o8)Y=UM(Y);return Y}var dU=(Z,X)=>{let Y=FM(Z),Q=FM(X);if(!Y||!Q)return _Z(Z,X);let G={...Y};return(K)=>{return G.red=yU(Y.red,Q.red,K),G.green=yU(Y.green,Q.green,K),G.blue=yU(Y.blue,Q.blue,K),G.alpha=Kw(Y.alpha,Q.alpha,K),s4.transform(G)}};var bW=new Set(["none","hidden"]);function _M(Z,X){if(bW.has(Z))return(Y)=>Y<=0?Z:X;else return(Y)=>Y>=1?X:Z}function Zf(Z,X){return(Y)=>Kw(Z,X,Y)}function IW(Z){if(typeof Z==="number")return Zf;else if(typeof Z==="string")return BZ(Z)?_Z:uw.test(Z)?dU:Yf;else if(Array.isArray(Z))return OM;else if(typeof Z==="object")return uw.test(Z)?dU:Jf;return _Z}function OM(Z,X){let Y=[...Z],Q=Y.length,G=Z.map((K,q)=>IW(K)(K,X[q]));return(K)=>{for(let q=0;q<Q;q++)Y[q]=G[q](K);return Y}}function Jf(Z,X){let Y={...Z,...X},Q={};for(let G in Y)if(Z[G]!==void 0&&X[G]!==void 0)Q[G]=IW(Z[G])(Z[G],X[G]);return(G)=>{for(let K in Q)Y[K]=Q[K](G);return Y}}function Xf(Z,X){let Y=[],Q={color:0,var:0,number:0};for(let G=0;G<X.values.length;G++){let K=X.types[G],q=Z.indexes[K][Q[K]],B=Z.values[q]??0;Y[G]=B,Q[K]++}return Y}var Yf=(Z,X)=>{let Y=M5.createTransformer(X),Q=A7(Z),G=A7(X);if(Q.indexes.var.length===G.indexes.var.length&&Q.indexes.color.length===G.indexes.color.length&&Q.indexes.number.length>=G.indexes.number.length){if(bW.has(Z)&&!G.values.length||bW.has(X)&&!Q.values.length)return _M(Z,X);return X4(OM(Xf(Q,G),G.values),Y)}else return g2(!0,`Complex values '${Z}' and '${X}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),_Z(Z,X)};function VW(Z,X,Y){if(typeof Z==="number"&&typeof X==="number"&&typeof Y==="number")return Kw(Z,X,Y);return IW(Z)(Z,X)}var AM=(Z)=>{let X=({timestamp:Y})=>Z(Y);return{start:(Y=!0)=>n0.update(X,Y),stop:()=>H5(X),now:()=>Y1.isProcessing?Y1.timestamp:sw.now()}};var kW=(Z,X,Y=10)=>{let Q="",G=Math.max(Math.round(X/Y),2);for(let K=0;K<G;K++)Q+=Math.round(Z(K/(G-1))*1e4)/1e4+", ";return`linear(${Q.substring(0,Q.length-2)})`};var DW=20000;function OZ(Z){let X=0,Y=50,Q=Z.next(X);while(!Q.done&&X<20000)X+=Y,Q=Z.next(X);return X>=20000?1/0:X}function NM(Z,X=100,Y){let Q=Y({...Z,keyframes:[0,X]}),G=Math.min(OZ(Q),DW);return{type:"keyframes",ease:(K)=>{return Q.next(G*K).value/X},duration:g1(G)}}var zf=5;function MW(Z,X,Y){let Q=Math.max(X-zf,0);return FY(Y-Z(Q),X-Q)}var yw={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:0.3,visualDuration:0.3,restSpeed:{granular:0.01,default:2},restDelta:{granular:0.005,default:0.5},minDuration:0.01,maxDuration:10,minDamping:0.05,maxDamping:1};var mU=0.001;function LM({duration:Z=yw.duration,bounce:X=yw.bounce,velocity:Y=yw.velocity,mass:Q=yw.mass}){let G,K;g2(Z<=w5(yw.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let q=1-X;if(q=L1(yw.minDamping,yw.maxDamping,q),Z=L1(yw.minDuration,yw.maxDuration,g1(Z)),q<1)G=(O)=>{let A=O*q,F=A*Z,L=A-Y,I=TW(O,q),D=Math.exp(-F);return mU-L/I*D},K=(O)=>{let F=O*q*Z,L=F*Y+Y,I=Math.pow(q,2)*Math.pow(O,2)*Z,D=Math.exp(-F),T=TW(Math.pow(O,2),q);return(-G(O)+mU>0?-1:1)*((L-I)*D)/T};else G=(O)=>{let A=Math.exp(-O*Z),F=(O-Y)*Z+1;return-mU+A*F},K=(O)=>{let A=Math.exp(-O*Z),F=(Y-O)*(Z*Z);return A*F};let B=5/Z,_=Wf(G,K,B);if(Z=w5(Z),isNaN(_))return{stiffness:yw.stiffness,damping:yw.damping,duration:Z};else{let O=Math.pow(_,2)*Q;return{stiffness:O,damping:q*2*Math.sqrt(Q*O),duration:Z}}}var Qf=12;function Wf(Z,X,Y){let Q=Y;for(let G=1;G<Qf;G++)Q=Q-Z(Q)/X(Q);return Q}function TW(Z,X){return Z*Math.sqrt(1-X*X)}var Gf=["duration","bounce"],Hf=["stiffness","damping","mass"];function bM(Z,X){return X.some((Y)=>Z[Y]!==void 0)}function Kf(Z){let X={velocity:yw.velocity,stiffness:yw.stiffness,damping:yw.damping,mass:yw.mass,isResolvedFromDuration:!1,...Z};if(!bM(Z,Hf)&&bM(Z,Gf))if(Z.visualDuration){let Y=Z.visualDuration,Q=2*Math.PI/(Y*1.2),G=Q*Q,K=2*L1(0.05,1,1-(Z.bounce||0))*Math.sqrt(G);X={...X,mass:yw.mass,stiffness:G,damping:K}}else{let Y=LM(Z);X={...X,...Y,mass:yw.mass},X.isResolvedFromDuration=!0}return X}function AZ(Z=yw.visualDuration,X=yw.bounce){let Y=typeof Z!=="object"?{visualDuration:Z,keyframes:[0,1],bounce:X}:Z,{restSpeed:Q,restDelta:G}=Y,K=Y.keyframes[0],q=Y.keyframes[Y.keyframes.length-1],B={done:!1,value:K},{stiffness:_,damping:O,mass:A,duration:F,velocity:L,isResolvedFromDuration:I}=Kf({...Y,velocity:-g1(Y.velocity||0)}),D=L||0,T=O/(2*Math.sqrt(_*A)),M=q-K,v=g1(Math.sqrt(_/A)),P=Math.abs(M)<5;Q||(Q=P?yw.restSpeed.granular:yw.restSpeed.default),G||(G=P?yw.restDelta.granular:yw.restDelta.default);let E;if(T<1){let l=TW(v,T);E=(p)=>{let n=Math.exp(-T*v*p);return q-n*((D+T*v*M)/l*Math.sin(l*p)+M*Math.cos(l*p))}}else if(T===1)E=(l)=>q-Math.exp(-v*l)*(M+(D+v*M)*l);else{let l=v*Math.sqrt(T*T-1);E=(p)=>{let n=Math.exp(-T*v*p),j=Math.min(l*p,300);return q-n*((D+T*v*M)*Math.sinh(j)+l*M*Math.cosh(j))/l}}let u={calculatedDuration:I?F||null:null,next:(l)=>{let p=E(l);if(!I){let n=l===0?D:0;if(T<1)n=l===0?w5(D):MW(E,l,p);let j=Math.abs(n)<=Q,y=Math.abs(q-p)<=G;B.done=j&&y}else B.done=l>=F;return B.value=B.done?q:p,B},toString:()=>{let l=Math.min(OZ(u),DW),p=kW((n)=>u.next(l*n).value,l,30);return l+"ms "+p},toTransition:()=>{}};return u}AZ.applyToOptions=(Z)=>{let X=NM(Z,100,AZ);return Z.ease=X.ease,Z.duration=w5(X.duration),Z.type="keyframes",Z};function vY({keyframes:Z,velocity:X=0,power:Y=0.8,timeConstant:Q=325,bounceDamping:G=10,bounceStiffness:K=500,modifyTarget:q,min:B,max:_,restDelta:O=0.5,restSpeed:A}){let F=Z[0],L={done:!1,value:F},I=(j)=>B!==void 0&&j<B||_!==void 0&&j>_,D=(j)=>{if(B===void 0)return _;if(_===void 0)return B;return Math.abs(B-j)<Math.abs(_-j)?B:_},T=Y*X,M=F+T,v=q===void 0?M:q(M);if(v!==M)T=v-F;let P=(j)=>-T*Math.exp(-j/Q),E=(j)=>v+P(j),u=(j)=>{let y=P(j),m=E(j);L.done=Math.abs(y)<=O,L.value=L.done?v:m},l,p,n=(j)=>{if(!I(L.value))return;l=j,p=AZ({keyframes:[L.value,D(L.value)],velocity:MW(E,j,L.value),damping:G,stiffness:K,restDelta:O,restSpeed:A})};return n(0),{calculatedDuration:null,next:(j)=>{let y=!1;if(!p&&l===void 0)y=!0,u(j),n(j);if(l!==void 0&&j>=l)return p.next(j-l);else return!y&&u(j),L}}}function qf(Z,X,Y){let Q=[],G=Y||G5.mix||VW,K=Z.length-1;for(let q=0;q<K;q++){let B=G(Z[q],Z[q+1]);if(X){let _=Array.isArray(X)?X[q]||ow:X;B=X4(_,B)}Q.push(B)}return Q}function IM(Z,X,{clamp:Y=!0,ease:Q,mixer:G}={}){let K=Z.length;if(e1(K===X.length,"Both input and output ranges must be the same length","range-length"),K===1)return()=>X[0];if(K===2&&X[0]===X[1])return()=>X[1];let q=Z[0]===Z[1];if(Z[0]>Z[K-1])Z=[...Z].reverse(),X=[...X].reverse();let B=qf(X,Q,G),_=B.length,O=(A)=>{if(q&&A<Z[0])return X[0];let F=0;if(_>1){for(;F<Z.length-2;F++)if(A<Z[F+1])break}let L=n4(Z[F],Z[F+1],A);return B[F](L)};return Y?(A)=>O(L1(Z[0],Z[K-1],A)):O}function VM(Z,X){let Y=Z[Z.length-1];for(let Q=1;Q<=X;Q++){let G=n4(0,X,Q);Z.push(Kw(Y,1,G))}}function kM(Z){let X=[0];return VM(X,Z.length-1),X}function DM(Z,X){return Z.map((Y)=>Y*X)}function Bf(Z,X){return Z.map(()=>X||bY).splice(0,Z.length-1)}function s8({duration:Z=300,keyframes:X,times:Y,ease:Q="easeInOut"}){let G=RU(Q)?Q.map(FW):FW(Q),K={done:!1,value:X[0]},q=DM(Y&&Y.length===X.length?Y:kM(X),Z),B=IM(q,X,{ease:Array.isArray(G)?G:Bf(X,G)});return{calculatedDuration:Z,next:(_)=>{return K.value=B(_),K.done=_>=Z,K}}}var Uf=(Z)=>Z!==null;function NZ(Z,{repeat:X,repeatType:Y="loop"},Q,G=1){let K=Z.filter(Uf),B=G<0||X&&Y!=="loop"&&X%2===1?0:K.length-1;return!B||Q===void 0?K[B]:Q}var Ff={decay:vY,inertia:vY,tween:s8,keyframes:s8,spring:AZ};function vW(Z){if(typeof Z.type==="string")Z.type=Ff[Z.type]}class N7{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise((Z)=>{this.resolve=Z})}notifyFinished(){this.resolve()}then(Z,X){return this.finished.then(Z,X)}}var _f=(Z)=>Z/100;class L7 extends N7{constructor(Z){super();if(this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:X}=this.options;if(X&&X.updatedAt!==sw.now())this.tick(sw.now());if(this.isStopped=!0,this.state==="idle")return;this.teardown(),this.options.onStop?.()},a4.mainThread++,this.options=Z,this.initAnimation(),this.play(),Z.autoplay===!1)this.pause()}initAnimation(){let{options:Z}=this;vW(Z);let{type:X=s8,repeat:Y=0,repeatDelay:Q=0,repeatType:G,velocity:K=0}=Z,{keyframes:q}=Z,B=X||s8;if(B!==s8)e1(q.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${q}`,"spring-two-frames");if(B!==s8&&typeof q[0]!=="number")this.mixKeyframes=X4(_f,VW(q[0],q[1])),q=[0,100];let _=B({...Z,keyframes:q});if(G==="mirror")this.mirroredGenerator=B({...Z,keyframes:[...q].reverse(),velocity:-K});if(_.calculatedDuration===null)_.calculatedDuration=OZ(_);let{calculatedDuration:O}=_;this.calculatedDuration=O,this.resolvedDuration=O+Q,this.totalDuration=this.resolvedDuration*(Y+1)-Q,this.generator=_}updateTime(Z){let X=Math.round(Z-this.startTime)*this.playbackSpeed;if(this.holdTime!==null)this.currentTime=this.holdTime;else this.currentTime=X}tick(Z,X=!1){let{generator:Y,totalDuration:Q,mixKeyframes:G,mirroredGenerator:K,resolvedDuration:q,calculatedDuration:B}=this;if(this.startTime===null)return Y.next(0);let{delay:_=0,keyframes:O,repeat:A,repeatType:F,repeatDelay:L,type:I,onUpdate:D,finalKeyframe:T}=this.options;if(this.speed>0)this.startTime=Math.min(this.startTime,Z);else if(this.speed<0)this.startTime=Math.min(Z-Q/this.speed,this.startTime);if(X)this.currentTime=Z;else this.updateTime(Z);let M=this.currentTime-_*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?M<0:M>Q;if(this.currentTime=Math.max(M,0),this.state==="finished"&&this.holdTime===null)this.currentTime=Q;let P=this.currentTime,E=Y;if(A){let n=Math.min(this.currentTime,Q)/q,j=Math.floor(n),y=n%1;if(!y&&n>=1)y=1;if(y===1&&j--,j=Math.min(j,A+1),Boolean(j%2)){if(F==="reverse"){if(y=1-y,L)y-=L/q}else if(F==="mirror")E=K}P=L1(0,1,y)*q}let u=v?{done:!1,value:O[0]}:E.next(P);if(G)u.value=G(u.value);let{done:l}=u;if(!v&&B!==null)l=this.playbackSpeed>=0?this.currentTime>=Q:this.currentTime<=0;let p=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&l);if(p&&I!==vY)u.value=NZ(O,this.options,T,this.speed);if(D)D(u.value);if(p)this.finish();return u}then(Z,X){return this.finished.then(Z,X)}get duration(){return g1(this.calculatedDuration)}get iterationDuration(){let{delay:Z=0}=this.options||{};return this.duration+g1(Z)}get time(){return g1(this.currentTime)}set time(Z){if(Z=w5(Z),this.currentTime=Z,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0)this.holdTime=Z;else if(this.driver)this.startTime=this.driver.now()-Z/this.playbackSpeed;this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(Z){this.updateTime(sw.now());let X=this.playbackSpeed!==Z;if(this.playbackSpeed=Z,X)this.time=g1(this.currentTime)}play(){if(this.isStopped)return;let{driver:Z=AM,startTime:X}=this.options;if(!this.driver)this.driver=Z((Q)=>this.tick(Q));this.options.onPlay?.();let Y=this.driver.now();if(this.state==="finished")this.updateFinished(),this.startTime=Y;else if(this.holdTime!==null)this.startTime=Y-this.holdTime;else if(!this.startTime)this.startTime=X??Y;if(this.state==="finished"&&this.speed<0)this.startTime+=this.calculatedDuration;this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(sw.now()),this.holdTime=this.currentTime}complete(){if(this.state!=="running")this.play();this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,a4.mainThread--}stopDriver(){if(!this.driver)return;this.driver.stop(),this.driver=void 0}sample(Z){return this.startTime=0,this.tick(Z,!0)}attachTimeline(Z){if(this.options.allowFlatten)this.options.type="keyframes",this.options.ease="linear",this.initAnimation();return this.driver?.stop(),Z.observe(this)}}function MM(Z){for(let X=1;X<Z.length;X++)Z[X]??(Z[X]=Z[X-1])}var b7=(Z)=>Z*180/Math.PI,cU=(Z)=>{let X=b7(Math.atan2(Z[1],Z[0]));return uU(X)},Of={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:(Z)=>(Math.abs(Z[0])+Math.abs(Z[3]))/2,rotate:cU,rotateZ:cU,skewX:(Z)=>b7(Math.atan(Z[1])),skewY:(Z)=>b7(Math.atan(Z[2])),skew:(Z)=>(Math.abs(Z[1])+Math.abs(Z[2]))/2},uU=(Z)=>{if(Z=Z%360,Z<0)Z+=360;return Z},TM=cU,vM=(Z)=>Math.sqrt(Z[0]*Z[0]+Z[1]*Z[1]),PM=(Z)=>Math.sqrt(Z[4]*Z[4]+Z[5]*Z[5]),Af={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:vM,scaleY:PM,scale:(Z)=>(vM(Z)+PM(Z))/2,rotateX:(Z)=>uU(b7(Math.atan2(Z[6],Z[5]))),rotateY:(Z)=>uU(b7(Math.atan2(-Z[2],Z[0]))),rotateZ:TM,rotate:TM,skewX:(Z)=>b7(Math.atan(Z[4])),skewY:(Z)=>b7(Math.atan(Z[1])),skew:(Z)=>(Math.abs(Z[1])+Math.abs(Z[4]))/2};function PW(Z){return Z.includes("scale")?1:0}function EW(Z,X){if(!Z||Z==="none")return PW(X);let Y=Z.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),Q,G;if(Y)Q=Af,G=Y;else{let B=Z.match(/^matrix\(([-\d.e\s,]+)\)$/u);Q=Of,G=B}if(!G)return PW(X);let K=Q[X],q=G[1].split(",").map(Nf);return typeof K==="function"?K(q):q[K]}var EM=(Z,X)=>{let{transform:Y="none"}=getComputedStyle(Z);return EW(Y,X)};function Nf(Z){return parseFloat(Z.trim())}var t4=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],C2=(()=>new Set(t4))();var pU=(Z)=>Z===o4||Z===N0,Lf=new Set(["x","y","z"]),bf=t4.filter((Z)=>!Lf.has(Z));function gM(Z){let X=[];return bf.forEach((Y)=>{let Q=Z.getValue(Y);if(Q!==void 0)X.push([Y,Q.get()]),Q.set(Y.startsWith("scale")?1:0)}),X}var f6={width:({x:Z},{paddingLeft:X="0",paddingRight:Y="0"})=>Z.max-Z.min-parseFloat(X)-parseFloat(Y),height:({y:Z},{paddingTop:X="0",paddingBottom:Y="0"})=>Z.max-Z.min-parseFloat(X)-parseFloat(Y),top:(Z,{top:X})=>parseFloat(X),left:(Z,{left:X})=>parseFloat(X),bottom:({y:Z},{top:X})=>parseFloat(X)+(Z.max-Z.min),right:({x:Z},{left:X})=>parseFloat(X)+(Z.max-Z.min),x:(Z,{transform:X})=>EW(X,"x"),y:(Z,{transform:X})=>EW(X,"y")};f6.translateX=f6.x;f6.translateY=f6.y;var I7=new Set,lU=!1,iU=!1,rU=!1;function CM(){if(iU){let Z=Array.from(I7).filter((Q)=>Q.needsMeasurement),X=new Set(Z.map((Q)=>Q.element)),Y=new Map;X.forEach((Q)=>{let G=gM(Q);if(!G.length)return;Y.set(Q,G),Q.render()}),Z.forEach((Q)=>Q.measureInitialState()),X.forEach((Q)=>{Q.render();let G=Y.get(Q);if(G)G.forEach(([K,q])=>{Q.getValue(K)?.set(q)})}),Z.forEach((Q)=>Q.measureEndState()),Z.forEach((Q)=>{if(Q.suspendedScrollY!==void 0)window.scrollTo(0,Q.suspendedScrollY)})}iU=!1,lU=!1,I7.forEach((Z)=>Z.complete(rU)),I7.clear()}function RM(){I7.forEach((Z)=>{if(Z.readKeyframes(),Z.needsMeasurement)iU=!0})}function jM(){rU=!0,RM(),CM(),rU=!1}class V7{constructor(Z,X,Y,Q,G,K=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...Z],this.onComplete=X,this.name=Y,this.motionValue=Q,this.element=G,this.isAsync=K}scheduleResolve(){if(this.state="scheduled",this.isAsync){if(I7.add(this),!lU)lU=!0,n0.read(RM),n0.resolveKeyframes(CM)}else this.readKeyframes(),this.complete()}readKeyframes(){let{unresolvedKeyframes:Z,name:X,element:Y,motionValue:Q}=this;if(Z[0]===null){let G=Q?.get(),K=Z[Z.length-1];if(G!==void 0)Z[0]=G;else if(Y&&X){let q=Y.readValue(X,K);if(q!==void 0&&q!==null)Z[0]=q}if(Z[0]===void 0)Z[0]=K;if(Q&&G===void 0)Q.set(Z[0])}MM(Z)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(Z=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,Z),I7.delete(this)}cancel(){if(this.state==="scheduled")I7.delete(this),this.state="pending"}resume(){if(this.state==="pending")this.scheduleResolve()}}var SM=(Z)=>Z.startsWith("--");function xM(Z,X,Y){SM(X)?Z.style.setProperty(X,Y):Z.style[X]=Y}var hM=_7(()=>window.ScrollTimeline!==void 0);var fM={};function yM(Z,X){let Y=_7(Z);return()=>fM[X]??Y()}var gW=yM(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(Z){return!1}return!0},"linearEasing");var k7=([Z,X,Y,Q])=>`cubic-bezier(${Z}, ${X}, ${Y}, ${Q})`;var nU={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:k7([0,0.65,0.55,1]),circOut:k7([0.55,0,1,0.45]),backIn:k7([0.31,0.01,0.66,-0.59]),backOut:k7([0.33,1.53,0.69,0.99])};function aU(Z,X){if(!Z)return;else if(typeof Z==="function")return gW()?kW(Z,X):"ease-out";else if(IY(Z))return k7(Z);else if(Array.isArray(Z))return Z.map((Y)=>aU(Y,X)||nU.easeOut);else return nU[Z]}function dM(Z,X,Y,{delay:Q=0,duration:G=300,repeat:K=0,repeatType:q="loop",ease:B="easeOut",times:_}={},O=void 0){let A={[X]:Y};if(_)A.offset=_;let F=aU(B,G);if(Array.isArray(F))A.easing=F;if(q2.value)a4.waapi++;let L={delay:Q,duration:G,easing:!Array.isArray(F)?F:"linear",fill:"both",iterations:K+1,direction:q==="reverse"?"alternate":"normal"};if(O)L.pseudoElement=O;let I=Z.animate(A,L);if(q2.value)I.finished.finally(()=>{a4.waapi--});return I}function CW(Z){return typeof Z==="function"&&"applyToOptions"in Z}function mM({type:Z,...X}){if(CW(Z)&&gW())return Z.applyToOptions(X);else X.duration??(X.duration=300),X.ease??(X.ease="easeOut");return X}class oU extends N7{constructor(Z){super();if(this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!Z)return;let{element:X,name:Y,keyframes:Q,pseudoElement:G,allowFlatten:K=!1,finalKeyframe:q,onComplete:B}=Z;this.isPseudoElement=Boolean(G),this.allowFlatten=K,this.options=Z,e1(typeof Z.type!=="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");let _=mM(Z);if(this.animation=dM(X,Y,Q,_,G),_.autoplay===!1)this.animation.pause();this.animation.onfinish=()=>{if(this.finishedTime=this.time,!G){let O=NZ(Q,this.options,q,this.speed);if(this.updateMotionValue)this.updateMotionValue(O);else xM(X,Y,O);this.animation.cancel()}B?.(),this.notifyFinished()}}play(){if(this.isStopped)return;if(this.manualStartTime=null,this.animation.play(),this.state==="finished")this.updateFinished()}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(Z){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:Z}=this;if(Z==="idle"||Z==="finished")return;if(this.updateMotionValue)this.updateMotionValue();else this.commitStyles();if(!this.isPseudoElement)this.cancel()}commitStyles(){if(!this.isPseudoElement)this.animation.commitStyles?.()}get duration(){let Z=this.animation.effect?.getComputedTiming?.().duration||0;return g1(Number(Z))}get iterationDuration(){let{delay:Z=0}=this.options||{};return this.duration+g1(Z)}get time(){return g1(Number(this.animation.currentTime)||0)}set time(Z){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=w5(Z)}get speed(){return this.animation.playbackRate}set speed(Z){if(Z<0)this.finishedTime=null;this.animation.playbackRate=Z}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(Z){this.manualStartTime=this.animation.startTime=Z}attachTimeline({timeline:Z,observe:X}){if(this.allowFlatten)this.animation.effect?.updateTiming({easing:"linear"});if(this.animation.onfinish=null,Z&&hM())return this.animation.timeline=Z,ow;else return X(this)}}var cM={anticipate:OY,backInOut:_Y,circInOut:LY};function If(Z){return Z in cM}function uM(Z){if(typeof Z.ease==="string"&&If(Z.ease))Z.ease=cM[Z.ease]}var sU=10;class tU extends oU{constructor(Z){uM(Z),vW(Z);super(Z);if(Z.startTime!==void 0)this.startTime=Z.startTime;this.options=Z}updateMotionValue(Z){let{motionValue:X,onUpdate:Y,onComplete:Q,element:G,...K}=this.options;if(!X)return;if(Z!==void 0){X.set(Z);return}let q=new L7({...K,autoplay:!1}),B=Math.max(sU,sw.now()-this.startTime),_=L1(0,sU,B-sU);X.setWithVelocity(q.sample(Math.max(0,B-_)).value,q.sample(B).value,_),q.stop()}}var eU=(Z,X)=>{if(X==="zIndex")return!1;if(typeof Z==="number"||Array.isArray(Z))return!0;if(typeof Z==="string"&&(M5.test(Z)||Z==="0")&&!Z.startsWith("url("))return!0;return!1};function Vf(Z){let X=Z[0];if(Z.length===1)return!0;for(let Y=0;Y<Z.length;Y++)if(Z[Y]!==X)return!0}function pM(Z,X,Y,Q){let G=Z[0];if(G===null)return!1;if(X==="display"||X==="visibility")return!0;let K=Z[Z.length-1],q=eU(G,X),B=eU(K,X);if(g2(q===B,`You are trying to animate ${X} from "${G}" to "${K}". "${q?K:G}" is not an animatable value.`,"value-not-animatable"),!q||!B)return!1;return Vf(Z)||(Y==="spring"||CW(Y))&&Q}function PY(Z){Z.duration=0,Z.type="keyframes"}var kf=new Set(["opacity","clipPath","filter","transform"]),Df=_7(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function lM(Z){let{motionValue:X,name:Y,repeatDelay:Q,repeatType:G,damping:K,type:q}=Z;if(!(X?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:_,transformTemplate:O}=X.owner.getProps();return Df()&&Y&&kf.has(Y)&&(Y!=="transform"||!O)&&!_&&!Q&&G!=="mirror"&&K!==0&&q!=="inertia"}var Mf=40;class wF extends N7{constructor({autoplay:Z=!0,delay:X=0,type:Y="keyframes",repeat:Q=0,repeatDelay:G=0,repeatType:K="loop",keyframes:q,name:B,motionValue:_,element:O,...A}){super();this.stop=()=>{if(this._animation)this._animation.stop(),this.stopTimeline?.();this.keyframeResolver?.cancel()},this.createdAt=sw.now();let F={autoplay:Z,delay:X,type:Y,repeat:Q,repeatDelay:G,repeatType:K,name:B,motionValue:_,element:O,...A},L=O?.KeyframeResolver||V7;this.keyframeResolver=new L(q,(I,D,T)=>this.onKeyframesResolved(I,D,F,!T),B,_,O),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(Z,X,Y,Q){this.keyframeResolver=void 0;let{name:G,type:K,velocity:q,delay:B,isHandoff:_,onUpdate:O}=Y;if(this.resolvedAt=sw.now(),!pM(Z,G,K,q)){if(G5.instantAnimations||!B)O?.(NZ(Z,Y,X));Z[0]=Z[Z.length-1],PY(Y),Y.repeat=0}let F={startTime:Q?!this.resolvedAt?this.createdAt:this.resolvedAt-this.createdAt>Mf?this.resolvedAt:this.createdAt:void 0,finalKeyframe:X,...Y,keyframes:Z},L=!_&&lM(F),I=F.motionValue?.owner?.current,D=L?new tU({...F,element:I}):new L7(F);if(D.finished.then(()=>{this.notifyFinished()}).catch(ow),this.pendingTimeline)this.stopTimeline=D.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0;this._animation=D}get finished(){if(!this._animation)return this._finished;else return this.animation.finished}then(Z,X){return this.finished.finally(Z).then(()=>{})}get animation(){if(!this._animation)this.keyframeResolver?.resume(),jM();return this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(Z){this.animation.time=Z}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(Z){this.animation.speed=Z}get startTime(){return this.animation.startTime}attachTimeline(Z){if(this._animation)this.stopTimeline=this.animation.attachTimeline(Z);else this.pendingTimeline=Z;return()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){if(this._animation)this.animation.cancel();this.keyframeResolver?.cancel()}}function RW(Z,X,Y,Q=0,G=1){let K=Array.from(Z).sort((O,A)=>O.sortNodePosition(A)).indexOf(X),q=Z.size,B=(q-1)*Q;return typeof Y==="function"?Y(K,q):G===1?K*Q:B-K*Q}var Tf=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function vf(Z){let X=Tf.exec(Z);if(!X)return[,];let[,Y,Q,G]=X;return[`--${Y??Q}`,G]}var Pf=4;function $F(Z,X,Y=1){e1(Y<=Pf,`Max CSS variable fallback depth detected in property "${Z}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[Q,G]=vf(Z);if(!Q)return;let K=window.getComputedStyle(X).getPropertyValue(Q);if(K){let q=K.trim();return qY(q)?parseFloat(q):q}return BZ(G)?$F(G,X,Y+1):G}var Ef={type:"spring",stiffness:500,damping:25,restSpeed:10},gf=(Z)=>({type:"spring",stiffness:550,damping:Z===0?2*Math.sqrt(550):30,restSpeed:10}),Cf={type:"keyframes",duration:0.8},Rf={type:"keyframes",ease:[0.25,0.1,0.35,1],duration:0.3},iM=(Z,{keyframes:X})=>{if(X.length>2)return Cf;else if(C2.has(Z))return Z.startsWith("scale")?gf(X[1]):Ef;return Rf};var jf=(Z)=>Z!==null;function rM(Z,{repeat:X,repeatType:Y="loop"},Q){let G=Z.filter(jf),K=X&&Y!=="loop"&&X%2===1?0:G.length-1;return!K||Q===void 0?G[K]:Q}function LZ(Z,X){return Z?.[X]??Z?.default??Z}function nM({when:Z,delay:X,delayChildren:Y,staggerChildren:Q,staggerDirection:G,repeat:K,repeatType:q,repeatDelay:B,from:_,elapsed:O,...A}){return!!Object.keys(A).length}var D7=(Z,X,Y,Q={},G,K)=>(q)=>{let B=LZ(Q,Z)||{},_=B.delay||Q.delay||0,{elapsed:O=0}=Q;O=O-w5(_);let A={keyframes:Array.isArray(Y)?Y:[null,Y],ease:"easeOut",velocity:X.getVelocity(),...B,delay:-O,onUpdate:(L)=>{X.set(L),B.onUpdate&&B.onUpdate(L)},onComplete:()=>{q(),B.onComplete&&B.onComplete()},name:Z,motionValue:X,element:K?void 0:G};if(!nM(B))Object.assign(A,iM(Z,A));if(A.duration&&(A.duration=w5(A.duration)),A.repeatDelay&&(A.repeatDelay=w5(A.repeatDelay)),A.from!==void 0)A.keyframes[0]=A.from;let F=!1;if(A.type===!1||A.duration===0&&!A.repeatDelay){if(PY(A),A.delay===0)F=!0}if(G5.instantAnimations||G5.skipAnimations)F=!0,PY(A),A.delay=0;if(A.allowFlatten=!B.type&&!B.ease,F&&!K&&X.get()!==void 0){let L=rM(A.keyframes,B);if(L!==void 0){n0.update(()=>{A.onUpdate(L),A.onComplete()});return}}return B.isSync?new L7(A):new wF(A)};function aM(Z){let X=[{},{}];return Z?.values.forEach((Y,Q)=>{X[0][Q]=Y.get(),X[1][Q]=Y.getVelocity()}),X}function M7(Z,X,Y,Q){if(typeof X==="function"){let[G,K]=aM(Q);X=X(Y!==void 0?Y:Z.custom,G,K)}if(typeof X==="string")X=Z.variants&&Z.variants[X];if(typeof X==="function"){let[G,K]=aM(Q);X=X(Y!==void 0?Y:Z.custom,G,K)}return X}function e4(Z,X,Y){let Q=Z.getProps();return M7(Q,X,Y!==void 0?Y:Q.custom,Z)}var jW=new Set(["width","height","top","left","right","bottom",...t4]);var oM=30,Sf=(Z)=>{return!isNaN(parseFloat(Z))},ZF={current:void 0};class JF{constructor(Z,X={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(Y)=>{let Q=sw.now();if(this.updatedAt!==Q)this.setPrevFrameValue();if(this.prev=this.current,this.setCurrent(Y),this.current!==this.prev){if(this.events.change?.notify(this.current),this.dependents)for(let G of this.dependents)G.dirty()}},this.hasAnimated=!1,this.setCurrent(Z),this.owner=X.owner}setCurrent(Z){if(this.current=Z,this.updatedAt=sw.now(),this.canTrackVelocity===null&&Z!==void 0)this.canTrackVelocity=Sf(this.current)}setPrevFrameValue(Z=this.current){this.prevFrameValue=Z,this.prevUpdatedAt=this.updatedAt}onChange(Z){return O7(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",Z)}on(Z,X){if(!this.events[Z])this.events[Z]=new r8;let Y=this.events[Z].add(X);if(Z==="change")return()=>{Y(),n0.read(()=>{if(!this.events.change.getSize())this.stop()})};return Y}clearListeners(){for(let Z in this.events)this.events[Z].clear()}attach(Z,X){this.passiveEffect=Z,this.stopPassiveEffect=X}set(Z){if(!this.passiveEffect)this.updateAndNotify(Z);else this.passiveEffect(Z,this.updateAndNotify)}setWithVelocity(Z,X,Y){this.set(X),this.prev=void 0,this.prevFrameValue=Z,this.prevUpdatedAt=this.updatedAt-Y}jump(Z,X=!0){if(this.updateAndNotify(Z),this.prev=Z,this.prevUpdatedAt=this.prevFrameValue=void 0,X&&this.stop(),this.stopPassiveEffect)this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(Z){if(!this.dependents)this.dependents=new Set;this.dependents.add(Z)}removeDependent(Z){if(this.dependents)this.dependents.delete(Z)}get(){if(ZF.current)ZF.current.push(this);return this.current}getPrevious(){return this.prev}getVelocity(){let Z=sw.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||Z-this.updatedAt>oM)return 0;let X=Math.min(this.updatedAt-this.prevUpdatedAt,oM);return FY(parseFloat(this.current)-parseFloat(this.prevFrameValue),X)}start(Z){return this.stop(),new Promise((X)=>{if(this.hasAnimated=!0,this.animation=Z(X),this.events.animationStart)this.events.animationStart.notify()}).then(()=>{if(this.events.animationComplete)this.events.animationComplete.notify();this.clearAnimation()})}stop(){if(this.animation){if(this.animation.stop(),this.events.animationCancel)this.events.animationCancel.notify()}this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){if(this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect)this.stopPassiveEffect()}}function c5(Z,X){return new JF(Z,X)}var EY=(Z)=>{return Array.isArray(Z)};function xf(Z,X,Y){if(Z.hasValue(X))Z.getValue(X).set(Y);else Z.addValue(X,c5(Y))}function hf(Z){return EY(Z)?Z[Z.length-1]||0:Z}function sM(Z,X){let Y=e4(Z,X),{transitionEnd:Q={},transition:G={},...K}=Y||{};K={...K,...Q};for(let q in K){let B=hf(K[q]);xf(Z,q,B)}}var kw=(Z)=>Boolean(Z&&Z.getVelocity);function tM(Z){return Boolean(kw(Z)&&Z.add)}function bZ(Z,X){let Y=Z.getValue("willChange");if(tM(Y))return Y.add(X);else if(!Y&&G5.WillChange){let Q=new G5.WillChange("auto");Z.addValue("willChange",Q),Q.add(X)}}function IZ(Z){return Z.replace(/([A-Z])/g,(X)=>`-${X.toLowerCase()}`)}var eM="framerAppearId",gY="data-"+IZ(eM);function SW(Z){return Z.props[gY]}function ff({protectedKeys:Z,needsAnimating:X},Y){let Q=Z.hasOwnProperty(Y)&&X[Y]!==!0;return X[Y]=!1,Q}function xW(Z,X,{delay:Y=0,transitionOverride:Q,type:G}={}){let{transition:K=Z.getDefaultTransition(),transitionEnd:q,...B}=X,_=K?.reduceMotion;if(Q)K=Q;let O=[],A=G&&Z.animationState&&Z.animationState.getState()[G];for(let F in B){let L=Z.getValue(F,Z.latestValues[F]??null),I=B[F];if(I===void 0||A&&ff(A,F))continue;let D={delay:Y,...LZ(K||{},F)},T=L.get();if(T!==void 0&&!L.isAnimating&&!Array.isArray(I)&&I===T&&!D.velocity)continue;let M=!1;if(window.MotionHandoffAnimation){let E=SW(Z);if(E){let u=window.MotionHandoffAnimation(E,F,n0);if(u!==null)D.startTime=u,M=!0}}bZ(Z,F);let v=_??Z.shouldReduceMotion;L.start(D7(F,L,I,v&&jW.has(F)?{type:!1}:D,Z,M));let P=L.animation;if(P)O.push(P)}if(q)Promise.all(O).then(()=>{n0.update(()=>{q&&sM(Z,q)})});return O}function hW(Z,X,Y={}){let Q=e4(Z,X,Y.type==="exit"?Z.presenceContext?.custom:void 0),{transition:G=Z.getDefaultTransition()||{}}=Q||{};if(Y.transitionOverride)G=Y.transitionOverride;let K=Q?()=>Promise.all(xW(Z,Q,Y)):()=>Promise.resolve(),q=Z.variantChildren&&Z.variantChildren.size?(_=0)=>{let{delayChildren:O=0,staggerChildren:A,staggerDirection:F}=G;return yf(Z,X,_,O,A,F,Y)}:()=>Promise.resolve(),{when:B}=G;if(B){let[_,O]=B==="beforeChildren"?[K,q]:[q,K];return _().then(()=>O())}else return Promise.all([K(),q(Y.delay)])}function yf(Z,X,Y=0,Q=0,G=0,K=1,q){let B=[];for(let _ of Z.variantChildren)_.notify("AnimationStart",X),B.push(hW(_,X,{...q,delay:Y+(typeof Q==="function"?0:Q)+RW(Z.variantChildren,_,Q,G,K)}).then(()=>_.notify("AnimationComplete",X)));return Promise.all(B)}function wT(Z,X,Y={}){Z.notify("AnimationStart",X);let Q;if(Array.isArray(X)){let G=X.map((K)=>hW(Z,K,Y));Q=Promise.all(G)}else if(typeof X==="string")Q=hW(Z,X,Y);else{let G=typeof X==="function"?e4(Z,X,Y.custom):X;Q=Promise.all(xW(Z,G,Y))}return Q.then(()=>{Z.notify("AnimationComplete",X)})}var $T={test:(Z)=>Z==="auto",parse:(Z)=>Z};var fW=(Z)=>(X)=>X.test(Z);var XF=[o4,N0,K5,Y4,hU,xU,$T],YF=(Z)=>XF.find(fW(Z));function ZT(Z){if(typeof Z==="number")return Z===0;else if(Z!==null)return Z==="none"||Z==="0"||UY(Z);else return!0}var df=new Set(["brightness","contrast","saturate","opacity"]);function mf(Z){let[X,Y]=Z.slice(0,-1).split("(");if(X==="drop-shadow")return Z;let[Q]=Y.match(UZ)||[];if(!Q)return Z;let G=Y.replace(Q,""),K=df.has(X)?1:0;if(Q!==Y)K*=100;return X+"("+K+G+")"}var cf=/\b([a-z-]*)\(.*?\)/gu,CY={...M5,getAnimatableNone:(Z)=>{let X=Z.match(cf);return X?X.map(mf).join(" "):Z}};var zF={...o4,transform:Math.round};var JT={rotate:Y4,rotateX:Y4,rotateY:Y4,rotateZ:Y4,scale:DY,scaleX:DY,scaleY:DY,scaleZ:DY,skew:Y4,skewX:Y4,skewY:Y4,distance:N0,translateX:N0,translateY:N0,translateZ:N0,x:N0,y:N0,z:N0,perspective:N0,transformPerspective:N0,opacity:h6,originX:LW,originY:LW,originZ:N0};var VZ={borderWidth:N0,borderTopWidth:N0,borderRightWidth:N0,borderBottomWidth:N0,borderLeftWidth:N0,borderRadius:N0,borderTopLeftRadius:N0,borderTopRightRadius:N0,borderBottomRightRadius:N0,borderBottomLeftRadius:N0,width:N0,maxWidth:N0,height:N0,maxHeight:N0,top:N0,right:N0,bottom:N0,left:N0,inset:N0,insetBlock:N0,insetBlockStart:N0,insetBlockEnd:N0,insetInline:N0,insetInlineStart:N0,insetInlineEnd:N0,padding:N0,paddingTop:N0,paddingRight:N0,paddingBottom:N0,paddingLeft:N0,paddingBlock:N0,paddingBlockStart:N0,paddingBlockEnd:N0,paddingInline:N0,paddingInlineStart:N0,paddingInlineEnd:N0,margin:N0,marginTop:N0,marginRight:N0,marginBottom:N0,marginLeft:N0,marginBlock:N0,marginBlockStart:N0,marginBlockEnd:N0,marginInline:N0,marginInlineStart:N0,marginInlineEnd:N0,fontSize:N0,backgroundPositionX:N0,backgroundPositionY:N0,...JT,zIndex:zF,fillOpacity:h6,strokeOpacity:h6,numOctaves:zF};var uf={...VZ,color:uw,backgroundColor:uw,outlineColor:uw,fill:uw,stroke:uw,borderColor:uw,borderTopColor:uw,borderRightColor:uw,borderBottomColor:uw,borderLeftColor:uw,filter:CY,WebkitFilter:CY},yW=(Z)=>uf[Z];function dW(Z,X){let Y=yW(Z);if(Y!==CY)Y=M5;return Y.getAnimatableNone?Y.getAnimatableNone(X):void 0}var pf=new Set(["auto","none","0"]);function XT(Z,X,Y){let Q=0,G=void 0;while(Q<Z.length&&!G){let K=Z[Q];if(typeof K==="string"&&!pf.has(K)&&A7(K).values.length)G=Z[Q];Q++}if(G&&Y)for(let K of X)Z[K]=dW(Y,G)}class QF extends V7{constructor(Z,X,Y,Q,G){super(Z,X,Y,Q,G,!0)}readKeyframes(){let{unresolvedKeyframes:Z,element:X,name:Y}=this;if(!X||!X.current)return;super.readKeyframes();for(let O=0;O<Z.length;O++){let A=Z[O];if(typeof A==="string"){if(A=A.trim(),BZ(A)){let F=$F(A,X.current);if(F!==void 0)Z[O]=F;if(O===Z.length-1)this.finalKeyframe=A}}}if(this.resolveNoneKeyframes(),!jW.has(Y)||Z.length!==2)return;let[Q,G]=Z,K=YF(Q),q=YF(G),B=jU(Q),_=jU(G);if(B!==_&&f6[Y]){this.needsMeasurement=!0;return}if(K===q)return;if(pU(K)&&pU(q))for(let O=0;O<Z.length;O++){let A=Z[O];if(typeof A==="string")Z[O]=parseFloat(A)}else if(f6[Y])this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:Z,name:X}=this,Y=[];for(let Q=0;Q<Z.length;Q++)if(Z[Q]===null||ZT(Z[Q]))Y.push(Q);if(Y.length)XT(Z,Y,X)}measureInitialState(){let{element:Z,unresolvedKeyframes:X,name:Y}=this;if(!Z||!Z.current)return;if(Y==="height")this.suspendedScrollY=window.pageYOffset;this.measuredOrigin=f6[Y](Z.measureViewportBox(),window.getComputedStyle(Z.current)),X[0]=this.measuredOrigin;let Q=X[X.length-1];if(Q!==void 0)Z.getValue(Y,Q).jump(Q,!1)}measureEndState(){let{element:Z,name:X,unresolvedKeyframes:Y}=this;if(!Z||!Z.current)return;let Q=Z.getValue(X);Q&&Q.jump(this.measuredOrigin,!1);let G=Y.length-1,K=Y[G];if(Y[G]=f6[X](Z.measureViewportBox(),window.getComputedStyle(Z.current)),K!==null&&this.finalKeyframe===void 0)this.finalKeyframe=K;if(this.removedTransforms?.length)this.removedTransforms.forEach(([q,B])=>{Z.getValue(q).set(B)});this.resolveNoneKeyframes()}}function YT(Z,X,Y){if(Z==null)return[];if(Z instanceof EventTarget)return[Z];else if(typeof Z==="string"){let Q=document;if(X)Q=X.current;let G=Y?.[Z]??Q.querySelectorAll(Z);return G?Array.from(G):[]}return Array.from(Z).filter((Q)=>Q!=null)}var mW=(Z,X)=>{return X&&typeof Z==="number"?X.transform(Z):Z};function zT(Z){return BY(Z)&&"offsetHeight"in Z}var{schedule:T7,cancel:lf}=_W(queueMicrotask,!1);var R2={x:!1,y:!1};function cW(){return R2.x||R2.y}function WF(Z){if(Z==="x"||Z==="y")if(R2[Z])return null;else return R2[Z]=!0,()=>{R2[Z]=!1};else if(R2.x||R2.y)return null;else return R2.x=R2.y=!0,()=>{R2.x=R2.y=!1}}function uW(Z,X){let Y=YT(Z),Q=new AbortController,G={passive:!0,...X,signal:Q.signal};return[Y,G,()=>Q.abort()]}function QT(Z){return!(Z.pointerType==="touch"||cW())}function GF(Z,X,Y={}){let[Q,G,K]=uW(Z,Y),q=(B)=>{if(!QT(B))return;let{target:_}=B,O=X(_,B);if(typeof O!=="function"||!_)return;let A=(F)=>{if(!QT(F))return;O(F),_.removeEventListener("pointerleave",A)};_.addEventListener("pointerleave",A,G)};return Q.forEach((B)=>{B.addEventListener("pointerenter",q,G)}),K}var HF=(Z,X)=>{if(!X)return!1;else if(Z===X)return!0;else return HF(Z,X.parentElement)};var v7=(Z)=>{if(Z.pointerType==="mouse")return typeof Z.button!=="number"||Z.button<=0;else return Z.isPrimary!==!1};var rf=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function RY(Z){return rf.has(Z.tagName)||Z.isContentEditable===!0}var kZ=new WeakSet;function WT(Z){return(X)=>{if(X.key!=="Enter")return;Z(X)}}function KF(Z,X){Z.dispatchEvent(new PointerEvent("pointer"+X,{isPrimary:!0,bubbles:!0}))}var GT=(Z,X)=>{let Y=Z.currentTarget;if(!Y)return;let Q=WT(()=>{if(kZ.has(Y))return;KF(Y,"down");let G=WT(()=>{KF(Y,"up")}),K=()=>KF(Y,"cancel");Y.addEventListener("keyup",G,X),Y.addEventListener("blur",K,X)});Y.addEventListener("keydown",Q,X),Y.addEventListener("blur",()=>Y.removeEventListener("keydown",Q),X)};function HT(Z){return v7(Z)&&!cW()}function qF(Z,X,Y={}){let[Q,G,K]=uW(Z,Y),q=(B)=>{let _=B.currentTarget;if(!HT(B))return;kZ.add(_);let O=X(_,B),A=(I,D)=>{if(window.removeEventListener("pointerup",F),window.removeEventListener("pointercancel",L),kZ.has(_))kZ.delete(_);if(!HT(I))return;if(typeof O==="function")O(I,{success:D})},F=(I)=>{A(I,_===window||_===document||Y.useGlobalTarget||HF(_,I.target))},L=(I)=>{A(I,!1)};window.addEventListener("pointerup",F,G),window.addEventListener("pointercancel",L,G)};return Q.forEach((B)=>{if((Y.useGlobalTarget?window:B).addEventListener("pointerdown",q,G),zT(B)){if(B.addEventListener("focus",(O)=>GT(O,G)),!RY(B)&&!B.hasAttribute("tabindex"))B.tabIndex=0}}),K}function pW(Z){return BY(Z)&&"ownerSVGElement"in Z}function KT(Z){return pW(Z)&&Z.tagName==="svg"}var nf=[...XF,uw,M5],qT=(Z)=>nf.find(fW(Z));var BF=()=>({translate:0,scale:1,origin:0,originPoint:0}),t8=()=>({x:BF(),y:BF()}),UF=()=>({min:0,max:0}),pw=()=>({x:UF(),y:UF()});var jY={current:null},lW={current:!1};var af=typeof window<"u";function BT(){if(lW.current=!0,!af)return;if(window.matchMedia){let Z=window.matchMedia("(prefers-reduced-motion)"),X=()=>jY.current=Z.matches;Z.addEventListener("change",X),X()}else jY.current=!1}var UT=new WeakMap;function y6(Z){return Z!==null&&typeof Z==="object"&&typeof Z.start==="function"}function w6(Z){return typeof Z==="string"||Array.isArray(Z)}var iW=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],SY=["initial",...iW];function e8(Z){return y6(Z.animate)||SY.some((X)=>w6(Z[X]))}function xY(Z){return Boolean(e8(Z)||Z.variants)}function FT(Z,X,Y){for(let Q in X){let G=X[Q],K=Y[Q];if(kw(G))Z.addValue(Q,G);else if(kw(K))Z.addValue(Q,c5(G,{owner:Z}));else if(K!==G)if(Z.hasValue(Q)){let q=Z.getValue(Q);if(q.liveStyle===!0)q.jump(G);else if(!q.hasAnimated)q.set(G)}else{let q=Z.getStaticValue(Q);Z.addValue(Q,c5(q!==void 0?q:G,{owner:Z}))}}for(let Q in Y)if(X[Q]===void 0)Z.removeValue(Q);return X}var _T=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],rW={};function hY(Z){rW=Z}function FF(){return rW}class nW{scrapeMotionValuesFromProps(Z,X,Y){return{}}constructor({parent:Z,props:X,presenceContext:Y,reducedMotionConfig:Q,blockInitialAnimation:G,visualState:K},q={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=V7,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{if(!this.current)return;this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection)},this.renderScheduledAt=0,this.scheduleRender=()=>{let F=sw.now();if(this.renderScheduledAt<F)this.renderScheduledAt=F,n0.render(this.render,!1,!0)};let{latestValues:B,renderState:_}=K;if(this.latestValues=B,this.baseTarget={...B},this.initialValues=X.initial?{...B}:{},this.renderState=_,this.parent=Z,this.props=X,this.presenceContext=Y,this.depth=Z?Z.depth+1:0,this.reducedMotionConfig=Q,this.options=q,this.blockInitialAnimation=Boolean(G),this.isControllingVariants=e8(X),this.isVariantNode=xY(X),this.isVariantNode)this.variantChildren=new Set;this.manuallyAnimateOnMount=Boolean(Z&&Z.current);let{willChange:O,...A}=this.scrapeMotionValuesFromProps(X,{},this);for(let F in A){let L=A[F];if(B[F]!==void 0&&kw(L))L.set(B[F])}}mount(Z){if(this.current=Z,UT.set(Z,this),this.projection&&!this.projection.instance)this.projection.mount(Z);if(this.parent&&this.isVariantNode&&!this.isControllingVariants)this.removeFromVariantTree=this.parent.addVariantChild(this);if(this.values.forEach((X,Y)=>this.bindToMotionValue(Y,X)),this.reducedMotionConfig==="never")this.shouldReduceMotion=!1;else if(this.reducedMotionConfig==="always")this.shouldReduceMotion=!0;else{if(!lW.current)BT();this.shouldReduceMotion=jY.current}O7(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),H5(this.notifyUpdate),H5(this.render),this.valueSubscriptions.forEach((Z)=>Z()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let Z in this.events)this.events[Z].clear();for(let Z in this.features){let X=this.features[Z];if(X)X.unmount(),X.isMounted=!1}this.current=null}addChild(Z){this.children.add(Z),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(Z)}removeChild(Z){this.children.delete(Z),this.enteringChildren&&this.enteringChildren.delete(Z)}bindToMotionValue(Z,X){if(this.valueSubscriptions.has(Z))this.valueSubscriptions.get(Z)();let Y=C2.has(Z);if(Y&&this.onBindTransform)this.onBindTransform();let Q=X.on("change",(K)=>{if(this.latestValues[Z]=K,this.props.onUpdate&&n0.preRender(this.notifyUpdate),Y&&this.projection)this.projection.isTransformDirty=!0;this.scheduleRender()}),G;if(typeof window<"u"&&window.MotionCheckAppearSync)G=window.MotionCheckAppearSync(this,Z,X);this.valueSubscriptions.set(Z,()=>{if(Q(),G)G();if(X.owner)X.stop()})}sortNodePosition(Z){if(!this.current||!this.sortInstanceNodePosition||this.type!==Z.type)return 0;return this.sortInstanceNodePosition(this.current,Z.current)}updateFeatures(){let Z="animation";for(Z in rW){let X=rW[Z];if(!X)continue;let{isEnabled:Y,Feature:Q}=X;if(!this.features[Z]&&Q&&Y(this.props))this.features[Z]=new Q(this);if(this.features[Z]){let G=this.features[Z];if(G.isMounted)G.update();else G.mount(),G.isMounted=!0}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):pw()}getStaticValue(Z){return this.latestValues[Z]}setStaticValue(Z,X){this.latestValues[Z]=X}update(Z,X){if(Z.transformTemplate||this.props.transformTemplate)this.scheduleRender();this.prevProps=this.props,this.props=Z,this.prevPresenceContext=this.presenceContext,this.presenceContext=X;for(let Y=0;Y<_T.length;Y++){let Q=_T[Y];if(this.propEventSubscriptions[Q])this.propEventSubscriptions[Q](),delete this.propEventSubscriptions[Q];let G="on"+Q,K=Z[G];if(K)this.propEventSubscriptions[Q]=this.on(Q,K)}if(this.prevMotionValues=FT(this,this.scrapeMotionValuesFromProps(Z,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue)this.handleChildMotionValue()}getProps(){return this.props}getVariant(Z){return this.props.variants?this.props.variants[Z]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(Z){let X=this.getClosestVariantNode();if(X)return X.variantChildren&&X.variantChildren.add(Z),()=>X.variantChildren.delete(Z)}addValue(Z,X){let Y=this.values.get(Z);if(X!==Y){if(Y)this.removeValue(Z);this.bindToMotionValue(Z,X),this.values.set(Z,X),this.latestValues[Z]=X.get()}}removeValue(Z){this.values.delete(Z);let X=this.valueSubscriptions.get(Z);if(X)X(),this.valueSubscriptions.delete(Z);delete this.latestValues[Z],this.removeValueFromRenderState(Z,this.renderState)}hasValue(Z){return this.values.has(Z)}getValue(Z,X){if(this.props.values&&this.props.values[Z])return this.props.values[Z];let Y=this.values.get(Z);if(Y===void 0&&X!==void 0)Y=c5(X===null?void 0:X,{owner:this}),this.addValue(Z,Y);return Y}readValue(Z,X){let Y=this.latestValues[Z]!==void 0||!this.current?this.latestValues[Z]:this.getBaseTargetFromProps(this.props,Z)??this.readValueFromInstance(this.current,Z,this.options);if(Y!==void 0&&Y!==null){if(typeof Y==="string"&&(qY(Y)||UY(Y)))Y=parseFloat(Y);else if(!qT(Y)&&M5.test(X))Y=dW(Z,X);this.setBaseTarget(Z,kw(Y)?Y.get():Y)}return kw(Y)?Y.get():Y}setBaseTarget(Z,X){this.baseTarget[Z]=X}getBaseTarget(Z){let{initial:X}=this.props,Y;if(typeof X==="string"||typeof X==="object"){let G=M7(this.props,X,this.presenceContext?.custom);if(G)Y=G[Z]}if(X&&Y!==void 0)return Y;let Q=this.getBaseTargetFromProps(this.props,Z);if(Q!==void 0&&!kw(Q))return Q;return this.initialValues[Z]!==void 0&&Y===void 0?void 0:this.baseTarget[Z]}on(Z,X){if(!this.events[Z])this.events[Z]=new r8;return this.events[Z].add(X)}notify(Z,...X){if(this.events[Z])this.events[Z].notify(...X)}scheduleRenderMicrotask(){T7.render(this.render)}}class fY extends nW{constructor(){super(...arguments);this.KeyframeResolver=QF}sortInstanceNodePosition(Z,X){return Z.compareDocumentPosition(X)&2?1:-1}getBaseTargetFromProps(Z,X){let Y=Z.style;return Y?Y[X]:void 0}removeValueFromRenderState(Z,{vars:X,style:Y}){delete X[Z],delete Y[Z]}handleChildMotionValue(){if(this.childSubscription)this.childSubscription(),delete this.childSubscription;let{children:Z}=this.props;if(kw(Z))this.childSubscription=Z.on("change",(X)=>{if(this.current)this.current.textContent=`${X}`})}}class p1{constructor(Z){this.isMounted=!1,this.node=Z}update(){}}function yY({top:Z,left:X,right:Y,bottom:Q}){return{x:{min:X,max:Y},y:{min:Z,max:Q}}}function _F({x:Z,y:X}){return{top:X.min,right:Z.max,bottom:X.max,left:Z.min}}function OF(Z,X){if(!X)return Z;let Y=X({x:Z.left,y:Z.top}),Q=X({x:Z.right,y:Z.bottom});return{top:Y.y,left:Y.x,bottom:Q.y,right:Q.x}}function AF(Z){return Z===void 0||Z===1}function aW({scale:Z,scaleX:X,scaleY:Y}){return!AF(Z)||!AF(X)||!AF(Y)}function d6(Z){return aW(Z)||NF(Z)||Z.z||Z.rotate||Z.rotateX||Z.rotateY||Z.skewX||Z.skewY}function NF(Z){return OT(Z.x)||OT(Z.y)}function OT(Z){return Z&&Z!=="0%"}function dY(Z,X,Y){let Q=Z-Y,G=X*Q;return Y+G}function AT(Z,X,Y,Q,G){if(G!==void 0)Z=dY(Z,G,Q);return dY(Z,Y,Q)+X}function LF(Z,X=0,Y=1,Q,G){Z.min=AT(Z.min,X,Y,Q,G),Z.max=AT(Z.max,X,Y,Q,G)}function bF(Z,{x:X,y:Y}){LF(Z.x,X.translate,X.scale,X.originPoint),LF(Z.y,Y.translate,Y.scale,Y.originPoint)}var NT=0.999999999999,LT=1.0000000000001;function IT(Z,X,Y,Q=!1){let G=Y.length;if(!G)return;X.x=X.y=1;let K,q;for(let B=0;B<G;B++){K=Y[B],q=K.projectionDelta;let{visualElement:_}=K.options;if(_&&_.props.style&&_.props.style.display==="contents")continue;if(Q&&K.options.layoutScroll&&K.scroll&&K!==K.root)P7(Z,{x:-K.scroll.offset.x,y:-K.scroll.offset.y});if(q)X.x*=q.x.scale,X.y*=q.y.scale,bF(Z,q);if(Q&&d6(K.latestValues))P7(Z,K.latestValues)}if(X.x<LT&&X.x>NT)X.x=1;if(X.y<LT&&X.y>NT)X.y=1}function w9(Z,X){Z.min=Z.min+X,Z.max=Z.max+X}function bT(Z,X,Y,Q,G=0.5){let K=Kw(Z.min,Z.max,G);LF(Z,X,Y,K,Q)}function P7(Z,X){bT(Z.x,X.x,X.scaleX,X.scale,X.originX),bT(Z.y,X.y,X.scaleY,X.scale,X.originY)}function oW(Z,X){return yY(OF(Z.getBoundingClientRect(),X))}function IF(Z,X,Y){let Q=oW(Z,Y),{scroll:G}=X;if(G)w9(Q.x,G.offset.x),w9(Q.y,G.offset.y);return Q}var of={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},sf=t4.length;function VT(Z,X,Y){let Q="",G=!0;for(let K=0;K<sf;K++){let q=t4[K],B=Z[q];if(B===void 0)continue;let _=!0;if(typeof B==="number")_=B===(q.startsWith("scale")?1:0);else{let O=parseFloat(B);_=q.startsWith("scale")?O===1:O===0}if(!_||Y){let O=mW(B,VZ[q]);if(!_){G=!1;let A=of[q]||q;Q+=`${A}(${O}) `}if(Y)X[q]=O}}if(Q=Q.trim(),Y)Q=Y(X,G?"":Q);else if(G)Q="none";return Q}function E7(Z,X,Y){let{style:Q,vars:G,transformOrigin:K}=Z,q=!1,B=!1;for(let _ in X){let O=X[_];if(C2.has(_)){q=!0;continue}else if(AW(_)){G[_]=O;continue}else{let A=mW(O,VZ[_]);if(_.startsWith("origin"))B=!0,K[_]=A;else Q[_]=A}}if(!X.transform){if(q||Y)Q.transform=VT(X,Z.transform,Y);else if(Q.transform)Q.transform="none"}if(B){let{originX:_="50%",originY:O="50%",originZ:A=0}=K;Q.transformOrigin=`${_} ${O} ${A}`}}function sW(Z,{style:X,vars:Y},Q,G){let K=Z.style,q;for(q in X)K[q]=X[q];G?.applyProjectionStyles(K,Q);for(q in Y)K.setProperty(q,Y[q])}function kT(Z,X){if(X.max===X.min)return 0;return Z/(X.max-X.min)*100}var DZ={correct:(Z,X)=>{if(!X.target)return Z;if(typeof Z==="string")if(N0.test(Z))Z=parseFloat(Z);else return Z;let Y=kT(Z,X.target.x),Q=kT(Z,X.target.y);return`${Y}% ${Q}%`}};var DT={correct:(Z,{treeScale:X,projectionDelta:Y})=>{let Q=Z,G=M5.parse(Z);if(G.length>5)return Q;let K=M5.createTransformer(Z),q=typeof G[0]!=="number"?1:0,B=Y.x.scale*X.x,_=Y.y.scale*X.y;G[0+q]/=B,G[1+q]/=_;let O=Kw(B,_,0.5);if(typeof G[2+q]==="number")G[2+q]/=O;if(typeof G[3+q]==="number")G[3+q]/=O;return K(G)}};var mY={borderRadius:{...DZ,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:DZ,borderTopRightRadius:DZ,borderBottomLeftRadius:DZ,borderBottomRightRadius:DZ,boxShadow:DT};function cY(Z,{layout:X,layoutId:Y}){return C2.has(Z)||Z.startsWith("origin")||(X||Y!==void 0)&&(!!mY[Z]||Z==="opacity")}function g7(Z,X,Y){let Q=Z.style,G=X?.style,K={};if(!Q)return K;for(let q in Q)if(kw(Q[q])||G&&kw(G[q])||cY(q,Z)||Y?.getValue(q)?.liveStyle!==void 0)K[q]=Q[q];return K}function tf(Z){return window.getComputedStyle(Z)}class tW extends fY{constructor(){super(...arguments);this.type="html",this.renderInstance=sW}readValueFromInstance(Z,X){if(C2.has(X))return this.projection?.isProjecting?PW(X):EM(Z,X);else{let Y=tf(Z),Q=(AW(X)?Y.getPropertyValue(X):Y[X])||0;return typeof Q==="string"?Q.trim():Q}}measureInstanceViewportBox(Z,{transformPagePoint:X}){return oW(Z,X)}build(Z,X,Y){E7(Z,X,Y.transformTemplate)}scrapeMotionValuesFromProps(Z,X,Y){return g7(Z,X,Y)}}var ef={offset:"stroke-dashoffset",array:"stroke-dasharray"},wy={offset:"strokeDashoffset",array:"strokeDasharray"};function MT(Z,X,Y=1,Q=0,G=!0){Z.pathLength=1;let K=G?ef:wy;Z[K.offset]=`${-Q}`,Z[K.array]=`${X} ${Y}`}var $y=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function uY(Z,{attrX:X,attrY:Y,attrScale:Q,pathLength:G,pathSpacing:K=1,pathOffset:q=0,...B},_,O,A){if(E7(Z,B,O),_){if(Z.style.viewBox)Z.attrs.viewBox=Z.style.viewBox;return}Z.attrs=Z.style,Z.style={};let{attrs:F,style:L}=Z;if(F.transform)L.transform=F.transform,delete F.transform;if(L.transform||F.transformOrigin)L.transformOrigin=F.transformOrigin??"50% 50%",delete F.transformOrigin;if(L.transform)L.transformBox=A?.transformBox??"fill-box",delete F.transformBox;for(let I of $y)if(F[I]!==void 0)L[I]=F[I],delete F[I];if(X!==void 0)F.x=X;if(Y!==void 0)F.y=Y;if(Q!==void 0)F.scale=Q;if(G!==void 0)MT(F,G,K,q,!1)}var eW=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);var pY=(Z)=>typeof Z==="string"&&Z.toLowerCase()==="svg";function TT(Z,X,Y,Q){sW(Z,X,void 0,Q);for(let G in X.attrs)Z.setAttribute(!eW.has(G)?IZ(G):G,X.attrs[G])}function lY(Z,X,Y){let Q=g7(Z,X,Y);for(let G in Z)if(kw(Z[G])||kw(X[G])){let K=t4.indexOf(G)!==-1?"attr"+G.charAt(0).toUpperCase()+G.substring(1):G;Q[K]=Z[G]}return Q}class wG extends fY{constructor(){super(...arguments);this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=pw}getBaseTargetFromProps(Z,X){return Z[X]}readValueFromInstance(Z,X){if(C2.has(X)){let Y=yW(X);return Y?Y.default||0:0}return X=!eW.has(X)?IZ(X):X,Z.getAttribute(X)}scrapeMotionValuesFromProps(Z,X,Y){return lY(Z,X,Y)}build(Z,X,Y){uY(Z,X,this.isSVGTag,Y.transformTemplate,Y.style)}renderInstance(Z,X,Y,Q){TT(Z,X,Y,Q)}mount(Z){this.isSVGTag=pY(Z.tagName),super.mount(Z)}}var Zy=SY.length;function VF(Z){if(!Z)return;if(!Z.isControllingVariants){let Y=Z.parent?VF(Z.parent)||{}:{};if(Z.props.initial!==void 0)Y.initial=Z.props.initial;return Y}let X={};for(let Y=0;Y<Zy;Y++){let Q=SY[Y],G=Z.props[Q];if(w6(G)||G===!1)X[Q]=G}return X}function kF(Z,X){if(!Array.isArray(X))return!1;let Y=X.length;if(Y!==Z.length)return!1;for(let Q=0;Q<Y;Q++)if(X[Q]!==Z[Q])return!1;return!0}var Jy=[...iW].reverse(),Xy=iW.length;function Yy(Z){return(X)=>{return Promise.all(X.map(({animation:Y,options:Q})=>wT(Z,Y,Q)))}}function DF(Z){let X=Yy(Z),Y=vT(),Q=!0,G=(_)=>(O,A)=>{let F=e4(Z,A,_==="exit"?Z.presenceContext?.custom:void 0);if(F){let{transition:L,transitionEnd:I,...D}=F;O={...O,...D,...I}}return O};function K(_){X=_(Z)}function q(_){let{props:O}=Z,A=VF(Z.parent)||{},F=[],L=new Set,I={},D=1/0;for(let M=0;M<Xy;M++){let v=Jy[M],P=Y[v],E=O[v]!==void 0?O[v]:A[v],u=w6(E),l=v===_?P.isActive:null;if(l===!1)D=M;let p=E===A[v]&&E!==O[v]&&u;if(p&&Q&&Z.manuallyAnimateOnMount)p=!1;if(P.protectedKeys={...I},!P.isActive&&l===null||!E&&!P.prevProp||y6(E)||typeof E==="boolean")continue;let n=PT(P.prevProp,E),j=n||v===_&&P.isActive&&!p&&u||M>D&&u,y=!1,m=Array.isArray(E)?E:[E],$0=m.reduce(G(v),{});if(l===!1)$0={};let{prevResolvedValues:t={}}=P,s={...t,...$0},M0=(z0)=>{if(j=!0,L.has(z0))y=!0,L.delete(z0);P.needsAnimating[z0]=!0;let Z0=Z.getValue(z0);if(Z0)Z0.liveStyle=!1};for(let z0 in s){let Z0=$0[z0],C0=t[z0];if(I.hasOwnProperty(z0))continue;let C=!1;if(EY(Z0)&&EY(C0))C=!kF(Z0,C0);else C=Z0!==C0;if(C)if(Z0!==void 0&&Z0!==null)M0(z0);else L.add(z0);else if(Z0!==void 0&&L.has(z0))M0(z0);else P.protectedKeys[z0]=!0}if(P.prevProp=E,P.prevResolvedValues=$0,P.isActive)I={...I,...$0};if(Q&&Z.blockInitialAnimation)j=!1;let e=p&&n;if(j&&(!e||y))F.push(...m.map((z0)=>{let Z0={type:v};if(typeof z0==="string"&&Q&&!e&&Z.manuallyAnimateOnMount&&Z.parent){let{parent:C0}=Z,C=e4(C0,z0);if(C0.enteringChildren&&C){let{delayChildren:Q0}=C.transition||{};Z0.delay=RW(C0.enteringChildren,Z,Q0)}}return{animation:z0,options:Z0}}))}if(L.size){let M={};if(typeof O.initial!=="boolean"){let v=e4(Z,Array.isArray(O.initial)?O.initial[0]:O.initial);if(v&&v.transition)M.transition=v.transition}L.forEach((v)=>{let P=Z.getBaseTarget(v),E=Z.getValue(v);if(E)E.liveStyle=!0;M[v]=P??null}),F.push({animation:M})}let T=Boolean(F.length);if(Q&&(O.initial===!1||O.initial===O.animate)&&!Z.manuallyAnimateOnMount)T=!1;return Q=!1,T?X(F):Promise.resolve()}function B(_,O){if(Y[_].isActive===O)return Promise.resolve();Z.variantChildren?.forEach((F)=>F.animationState?.setActive(_,O)),Y[_].isActive=O;let A=q(_);for(let F in Y)Y[F].protectedKeys={};return A}return{animateChanges:q,setActive:B,setAnimateFunction:K,getState:()=>Y,reset:()=>{Y=vT()}}}function PT(Z,X){if(typeof X==="string")return X!==Z;else if(Array.isArray(X))return!kF(X,Z);return!1}function C7(Z=!1){return{isActive:Z,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function vT(){return{animate:C7(!0),whileInView:C7(),whileHover:C7(),whileTap:C7(),whileDrag:C7(),whileFocus:C7(),exit:C7()}}function ET(Z,X){Z.min=X.min,Z.max=X.max}function j2(Z,X){ET(Z.x,X.x),ET(Z.y,X.y)}function MF(Z,X){Z.translate=X.translate,Z.scale=X.scale,Z.originPoint=X.originPoint,Z.origin=X.origin}var gT=0.0001,zy=1-gT,Qy=1+gT,CT=0.01,Wy=0-CT,Gy=0+CT;function b1(Z){return Z.max-Z.min}function EF(Z,X,Y){return Math.abs(Z-X)<=Y}function TF(Z,X,Y,Q=0.5){if(Z.origin=Q,Z.originPoint=Kw(X.min,X.max,Z.origin),Z.scale=b1(Y)/b1(X),Z.translate=Kw(Y.min,Y.max,Z.origin)-Z.originPoint,Z.scale>=zy&&Z.scale<=Qy||isNaN(Z.scale))Z.scale=1;if(Z.translate>=Wy&&Z.translate<=Gy||isNaN(Z.translate))Z.translate=0}function R7(Z,X,Y,Q){TF(Z.x,X.x,Y.x,Q?Q.originX:void 0),TF(Z.y,X.y,Y.y,Q?Q.originY:void 0)}function vF(Z,X,Y){Z.min=Y.min+X.min,Z.max=Z.min+b1(X)}function gF(Z,X,Y){vF(Z.x,X.x,Y.x),vF(Z.y,X.y,Y.y)}function PF(Z,X,Y){Z.min=X.min-Y.min,Z.max=Z.min+b1(X)}function MZ(Z,X,Y){PF(Z.x,X.x,Y.x),PF(Z.y,X.y,Y.y)}function RT(Z,X,Y,Q,G){if(Z-=X,Z=dY(Z,1/Y,Q),G!==void 0)Z=dY(Z,1/G,Q);return Z}function Hy(Z,X=0,Y=1,Q=0.5,G,K=Z,q=Z){if(K5.test(X))X=parseFloat(X),X=Kw(q.min,q.max,X/100)-q.min;if(typeof X!=="number")return;let B=Kw(K.min,K.max,Q);if(Z===K)B-=X;Z.min=RT(Z.min,X,Y,B,G),Z.max=RT(Z.max,X,Y,B,G)}function jT(Z,X,[Y,Q,G],K,q){Hy(Z,X[Y],X[Q],X[G],X.scale,K,q)}var Ky=["x","scaleX","originX"],qy=["y","scaleY","originY"];function CF(Z,X,Y,Q){jT(Z.x,X,Ky,Y?Y.x:void 0,Q?Q.x:void 0),jT(Z.y,X,qy,Y?Y.y:void 0,Q?Q.y:void 0)}function ST(Z){return Z.translate===0&&Z.scale===1}function RF(Z){return ST(Z.x)&&ST(Z.y)}function xT(Z,X){return Z.min===X.min&&Z.max===X.max}function fT(Z,X){return xT(Z.x,X.x)&&xT(Z.y,X.y)}function hT(Z,X){return Math.round(Z.min)===Math.round(X.min)&&Math.round(Z.max)===Math.round(X.max)}function jF(Z,X){return hT(Z.x,X.x)&&hT(Z.y,X.y)}function SF(Z){return b1(Z.x)/b1(Z.y)}function xF(Z,X){return Z.translate===X.translate&&Z.scale===X.scale&&Z.originPoint===X.originPoint}function T5(Z){return[Z("x"),Z("y")]}function yT(Z,X,Y){let Q="",G=Z.x.translate/X.x,K=Z.y.translate/X.y,q=Y?.z||0;if(G||K||q)Q=`translate3d(${G}px, ${K}px, ${q}px) `;if(X.x!==1||X.y!==1)Q+=`scale(${1/X.x}, ${1/X.y}) `;if(Y){let{transformPerspective:O,rotate:A,rotateX:F,rotateY:L,skewX:I,skewY:D}=Y;if(O)Q=`perspective(${O}px) ${Q}`;if(A)Q+=`rotate(${A}deg) `;if(F)Q+=`rotateX(${F}deg) `;if(L)Q+=`rotateY(${L}deg) `;if(I)Q+=`skewX(${I}deg) `;if(D)Q+=`skewY(${D}deg) `}let B=Z.x.scale*X.x,_=Z.y.scale*X.y;if(B!==1||_!==1)Q+=`scale(${B}, ${_})`;return Q||"none"}var uT=["TopLeft","TopRight","BottomLeft","BottomRight"],By=uT.length,dT=(Z)=>typeof Z==="string"?parseFloat(Z):Z,mT=(Z)=>typeof Z==="number"||N0.test(Z);function pT(Z,X,Y,Q,G,K){if(G)Z.opacity=Kw(0,Y.opacity??1,Uy(Q)),Z.opacityExit=Kw(X.opacity??1,0,Fy(Q));else if(K)Z.opacity=Kw(X.opacity??1,Y.opacity??1,Q);for(let q=0;q<By;q++){let B=`border${uT[q]}Radius`,_=cT(X,B),O=cT(Y,B);if(_===void 0&&O===void 0)continue;if(_||(_=0),O||(O=0),_===0||O===0||mT(_)===mT(O)){if(Z[B]=Math.max(Kw(dT(_),dT(O),Q),0),K5.test(O)||K5.test(_))Z[B]+="%"}else Z[B]=O}if(X.rotate||Y.rotate)Z.rotate=Kw(X.rotate||0,Y.rotate||0,Q)}function cT(Z,X){return Z[X]!==void 0?Z[X]:Z.borderRadius}var Uy=lT(0,0.5,NY),Fy=lT(0.5,0.95,ow);function lT(Z,X,Y){return(Q)=>{if(Q<Z)return 0;if(Q>X)return 1;return Y(n4(Z,X,Q))}}function iT(Z,X,Y){let Q=kw(Z)?Z:c5(Z);return Q.start(D7("",Q,X,Y)),Q.animation}function $6(Z,X,Y,Q={passive:!0}){return Z.addEventListener(X,Y,Q),()=>Z.removeEventListener(X,Y)}var rT=(Z,X)=>Z.depth-X.depth;class hF{constructor(){this.children=[],this.isDirty=!1}add(Z){U7(this.children,Z),this.isDirty=!0}remove(Z){F7(this.children,Z),this.isDirty=!0}forEach(Z){this.isDirty&&this.children.sort(rT),this.isDirty=!1,this.children.forEach(Z)}}function nT(Z,X){let Y=sw.now(),Q=({timestamp:G})=>{let K=G-Y;if(K>=X)H5(Q),Z(K-X)};return n0.setup(Q,!0),()=>H5(Q)}function j7(Z){return kw(Z)?Z.get():Z}class fF{constructor(){this.members=[]}add(Z){U7(this.members,Z),Z.scheduleRender()}remove(Z){if(F7(this.members,Z),Z===this.prevLead)this.prevLead=void 0;if(Z===this.lead){let X=this.members[this.members.length-1];if(X)this.promote(X)}}relegate(Z){let X=this.members.findIndex((Q)=>Z===Q);if(X===0)return!1;let Y;for(let Q=X;Q>=0;Q--){let G=this.members[Q];if(G.isPresent!==!1){Y=G;break}}if(Y)return this.promote(Y),!0;else return!1}promote(Z,X){let Y=this.lead;if(Z===Y)return;if(this.prevLead=Y,this.lead=Z,Z.show(),Y){Y.instance&&Y.scheduleRender(),Z.scheduleRender();let Q=Y.options.layoutDependency,G=Z.options.layoutDependency;if(!(Q!==void 0&&G!==void 0&&Q===G)){if(Z.resumeFrom=Y,X)Z.resumeFrom.preserveOpacity=!0;if(Y.snapshot)Z.snapshot=Y.snapshot,Z.snapshot.latestValues=Y.animationValues||Y.latestValues;if(Z.root&&Z.root.isUpdating)Z.isLayoutDirty=!0}let{crossfade:q}=Z.options;if(q===!1)Y.hide()}}exitAnimationComplete(){this.members.forEach((Z)=>{let{options:X,resumingFrom:Y}=Z;if(X.onExitComplete&&X.onExitComplete(),Y)Y.options.onExitComplete&&Y.options.onExitComplete()})}scheduleRender(){this.members.forEach((Z)=>{Z.instance&&Z.scheduleRender(!1)})}removeLeadSnapshot(){if(this.lead&&this.lead.snapshot)this.lead.snapshot=void 0}}var S7={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var x7={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},yF=["","X","Y","Z"],_y=1000,Oy=0;function dF(Z,X,Y,Q){let{latestValues:G}=X;if(G[Z]){if(Y[Z]=G[Z],X.setStaticValue(Z,0),Q)Q[Z]=0}}function Jv(Z){if(Z.hasCheckedOptimisedAppear=!0,Z.root===Z)return;let{visualElement:X}=Z.options;if(!X)return;let Y=SW(X);if(window.MotionHasOptimisedAnimation(Y,"transform")){let{layout:G,layoutId:K}=Z.options;window.MotionCancelOptimisedAnimation(Y,"transform",n0,!(G||K))}let{parent:Q}=Z;if(Q&&!Q.hasCheckedOptimisedAppear)Jv(Q)}function $G({attachResizeListener:Z,defaultParent:X,measureScroll:Y,checkIsScrollRoot:Q,resetTransform:G}){return class{constructor(q={},B=X?.()){this.id=Oy++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{if(this.isUpdating)this.isUpdating=!1,this.clearAllSnapshots()},this.updateProjection=()=>{if(this.projectionUpdateScheduled=!1,q2.value)x7.nodes=x7.calculatedTargetDeltas=x7.calculatedProjections=0;if(this.nodes.forEach(Ly),this.nodes.forEach(ky),this.nodes.forEach(Dy),this.nodes.forEach(by),q2.addProjectionMetrics)q2.addProjectionMetrics(x7)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=q,this.root=B?B.root||B:this,this.path=B?[...B.path,B]:[],this.parent=B,this.depth=B?B.depth+1:0;for(let _=0;_<this.path.length;_++)this.path[_].shouldResetTransform=!0;if(this.root===this)this.nodes=new hF}addEventListener(q,B){if(!this.eventHandlers.has(q))this.eventHandlers.set(q,new r8);return this.eventHandlers.get(q).add(B)}notifyListeners(q,...B){let _=this.eventHandlers.get(q);_&&_.notify(...B)}hasListeners(q){return this.eventHandlers.has(q)}mount(q){if(this.instance)return;this.isSVG=pW(q)&&!KT(q),this.instance=q;let{layoutId:B,layout:_,visualElement:O}=this.options;if(O&&!O.current)O.mount(q);if(this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(_||B))this.isLayoutDirty=!0;if(Z){let A,F=0,L=()=>this.root.updateBlockedByResize=!1;n0.read(()=>{F=window.innerWidth}),Z(q,()=>{let I=window.innerWidth;if(I===F)return;if(F=I,this.root.updateBlockedByResize=!0,A&&A(),A=nT(L,250),S7.hasAnimatedSinceResize)S7.hasAnimatedSinceResize=!1,this.nodes.forEach(sT)})}if(B)this.root.registerSharedNode(B,this);if(this.options.animate!==!1&&O&&(B||_))this.addEventListener("didUpdate",({delta:A,hasLayoutChanged:F,hasRelativeLayoutChanged:L,layout:I})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let D=this.options.transition||O.getDefaultTransition()||Ey,{onLayoutAnimationStart:T,onLayoutAnimationComplete:M}=O.getProps(),v=!this.targetLayout||!jF(this.targetLayout,I),P=!F&&L;if(this.options.layoutRoot||this.resumeFrom||P||F&&(v||!this.currentAnimation)){if(this.resumeFrom)this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0;let E={...LZ(D,"layout"),onPlay:T,onComplete:M};if(O.shouldReduceMotion||this.options.layoutRoot)E.delay=0,E.type=!1;this.startAnimation(E),this.setAnimationOrigin(A,P)}else{if(!F)sT(this);if(this.isLead()&&this.options.onExitComplete)this.options.onExitComplete()}this.targetLayout=I})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let q=this.getStack();q&&q.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),H5(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){if(this.isUpdateBlocked())return;this.isUpdating=!0,this.nodes&&this.nodes.forEach(My),this.animationId++}getTransformTemplate(){let{visualElement:q}=this.options;return q&&q.getProps().transformTemplate}willUpdate(q=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear)Jv(this);if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let A=0;A<this.path.length;A++){let F=this.path[A];if(F.shouldResetTransform=!0,F.updateScroll("snapshot"),F.options.layoutRoot)F.willUpdate(!1)}let{layoutId:B,layout:_}=this.options;if(B===void 0&&!_)return;let O=this.getTransformTemplate();this.prevTransformTemplateValue=O?O(this.latestValues,""):void 0,this.updateSnapshot(),q&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(aT);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(oT);return}if(this.animationCommitId=this.animationId,!this.isUpdating)this.nodes.forEach(oT);else this.isUpdating=!1,this.nodes.forEach(Vy),this.nodes.forEach(Ay),this.nodes.forEach(Ny);this.clearAllSnapshots();let B=sw.now();Y1.delta=L1(0,16.666666666666668,B-Y1.timestamp),Y1.timestamp=B,Y1.isProcessing=!0,kY.update.process(Y1),kY.preRender.process(Y1),kY.render.process(Y1),Y1.isProcessing=!1}didUpdate(){if(!this.updateScheduled)this.updateScheduled=!0,T7.read(this.scheduleUpdate)}clearAllSnapshots(){this.nodes.forEach(Iy),this.sharedNodes.forEach(Ty)}scheduleUpdateProjection(){if(!this.projectionUpdateScheduled)this.projectionUpdateScheduled=!0,n0.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){n0.postRender(()=>{if(this.isLayoutDirty)this.root.didUpdate();else this.root.checkUpdateFailed()})}updateSnapshot(){if(this.snapshot||!this.instance)return;if(this.snapshot=this.measure(),this.snapshot&&!b1(this.snapshot.measuredBox.x)&&!b1(this.snapshot.measuredBox.y))this.snapshot=void 0}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty)return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let _=0;_<this.path.length;_++)this.path[_].updateScroll();let q=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=pw(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:B}=this.options;B&&B.notify("LayoutMeasure",this.layout.layoutBox,q?q.layoutBox:void 0)}updateScroll(q="measure"){let B=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===q)B=!1;if(B&&this.instance){let _=Q(this.instance);this.scroll={animationId:this.root.animationId,phase:q,isRoot:_,offset:Y(this.instance),wasRoot:this.scroll?this.scroll.isRoot:_}}}resetTransform(){if(!G)return;let q=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,B=this.projectionDelta&&!RF(this.projectionDelta),_=this.getTransformTemplate(),O=_?_(this.latestValues,""):void 0,A=O!==this.prevTransformTemplateValue;if(q&&this.instance&&(B||d6(this.latestValues)||A))G(this.instance,O),this.shouldResetTransform=!1,this.scheduleRender()}measure(q=!0){let B=this.measurePageBox(),_=this.removeElementScroll(B);if(q)_=this.removeTransform(_);return gy(_),{animationId:this.root.animationId,measuredBox:B,layoutBox:_,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:q}=this.options;if(!q)return pw();let B=q.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Cy))){let{scroll:O}=this.root;if(O)w9(B.x,O.offset.x),w9(B.y,O.offset.y)}return B}removeElementScroll(q){let B=pw();if(j2(B,q),this.scroll?.wasRoot)return B;for(let _=0;_<this.path.length;_++){let O=this.path[_],{scroll:A,options:F}=O;if(O!==this.root&&A&&F.layoutScroll){if(A.wasRoot)j2(B,q);w9(B.x,A.offset.x),w9(B.y,A.offset.y)}}return B}applyTransform(q,B=!1){let _=pw();j2(_,q);for(let O=0;O<this.path.length;O++){let A=this.path[O];if(!B&&A.options.layoutScroll&&A.scroll&&A!==A.root)P7(_,{x:-A.scroll.offset.x,y:-A.scroll.offset.y});if(!d6(A.latestValues))continue;P7(_,A.latestValues)}if(d6(this.latestValues))P7(_,this.latestValues);return _}removeTransform(q){let B=pw();j2(B,q);for(let _=0;_<this.path.length;_++){let O=this.path[_];if(!O.instance)continue;if(!d6(O.latestValues))continue;aW(O.latestValues)&&O.updateSnapshot();let A=pw(),F=O.measurePageBox();j2(A,F),CF(B,O.latestValues,O.snapshot?O.snapshot.layoutBox:void 0,A)}if(d6(this.latestValues))CF(B,this.latestValues);return B}setTargetDelta(q){this.targetDelta=q,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(q){this.options={...this.options,...q,crossfade:q.crossfade!==void 0?q.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){if(!this.relativeParent)return;if(this.relativeParent.resolvedRelativeTargetAt!==Y1.timestamp)this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(q=!1){let B=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=B.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=B.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=B.isSharedProjectionDirty);let _=Boolean(this.resumingFrom)||this!==B;if(!(q||_&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:A,layoutId:F}=this.options;if(!this.layout||!(A||F))return;this.resolvedRelativeTargetAt=Y1.timestamp;let L=this.getClosestProjectingParent();if(L&&this.linkedParentVersion!==L.layoutVersion&&!L.options.layoutRoot)this.removeRelativeTarget();if(!this.targetDelta&&!this.relativeTarget)if(L&&L.layout)this.createRelativeTarget(L,this.layout.layoutBox,L.layout.layoutBox);else this.removeRelativeTarget();if(!this.relativeTarget&&!this.targetDelta)return;if(!this.target)this.target=pw(),this.targetWithTransforms=pw();if(this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)this.forceRelativeParentToResolveTarget(),gF(this.target,this.relativeTarget,this.relativeParent.target);else if(this.targetDelta){if(Boolean(this.resumingFrom))this.target=this.applyTransform(this.layout.layoutBox);else j2(this.target,this.layout.layoutBox);bF(this.target,this.targetDelta)}else j2(this.target,this.layout.layoutBox);if(this.attemptToResolveRelativeTarget)if(this.attemptToResolveRelativeTarget=!1,L&&Boolean(L.resumingFrom)===Boolean(this.resumingFrom)&&!L.options.layoutScroll&&L.target&&this.animationProgress!==1)this.createRelativeTarget(L,this.target,L.target);else this.relativeParent=this.relativeTarget=void 0;if(q2.value)x7.calculatedTargetDeltas++}getClosestProjectingParent(){if(!this.parent||aW(this.parent.latestValues)||NF(this.parent.latestValues))return;if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(q,B,_){this.relativeParent=q,this.linkedParentVersion=q.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=pw(),this.relativeTargetOrigin=pw(),MZ(this.relativeTargetOrigin,B,_),j2(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let q=this.getLead(),B=Boolean(this.resumingFrom)||this!==q,_=!0;if(this.isProjectionDirty||this.parent?.isProjectionDirty)_=!1;if(B&&(this.isSharedProjectionDirty||this.isTransformDirty))_=!1;if(this.resolvedRelativeTargetAt===Y1.timestamp)_=!1;if(_)return;let{layout:O,layoutId:A}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),!this.isTreeAnimating)this.targetDelta=this.relativeTarget=void 0;if(!this.layout||!(O||A))return;j2(this.layoutCorrected,this.layout.layoutBox);let F=this.treeScale.x,L=this.treeScale.y;if(IT(this.layoutCorrected,this.treeScale,this.path,B),q.layout&&!q.target&&(this.treeScale.x!==1||this.treeScale.y!==1))q.target=q.layout.layoutBox,q.targetWithTransforms=pw();let{target:I}=q;if(!I){if(this.prevProjectionDelta)this.createProjectionDeltas(),this.scheduleRender();return}if(!this.projectionDelta||!this.prevProjectionDelta)this.createProjectionDeltas();else MF(this.prevProjectionDelta.x,this.projectionDelta.x),MF(this.prevProjectionDelta.y,this.projectionDelta.y);if(R7(this.projectionDelta,this.layoutCorrected,I,this.latestValues),this.treeScale.x!==F||this.treeScale.y!==L||!xF(this.projectionDelta.x,this.prevProjectionDelta.x)||!xF(this.projectionDelta.y,this.prevProjectionDelta.y))this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",I);if(q2.value)x7.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(q=!0){if(this.options.visualElement?.scheduleRender(),q){let B=this.getStack();B&&B.scheduleRender()}if(this.resumingFrom&&!this.resumingFrom.instance)this.resumingFrom=void 0}createProjectionDeltas(){this.prevProjectionDelta=t8(),this.projectionDelta=t8(),this.projectionDeltaWithTransform=t8()}setAnimationOrigin(q,B=!1){let _=this.snapshot,O=_?_.latestValues:{},A={...this.latestValues},F=t8();if(!this.relativeParent||!this.relativeParent.options.layoutRoot)this.relativeTarget=this.relativeTargetOrigin=void 0;this.attemptToResolveRelativeTarget=!B;let L=pw(),I=_?_.source:void 0,D=this.layout?this.layout.source:void 0,T=I!==D,M=this.getStack(),v=!M||M.members.length<=1,P=Boolean(T&&!v&&this.options.crossfade===!0&&!this.path.some(Py));this.animationProgress=0;let E;this.mixTargetDelta=(u)=>{let l=u/1000;if(tT(F.x,q.x,l),tT(F.y,q.y,l),this.setTargetDelta(F),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){if(MZ(L,this.layout.layoutBox,this.relativeParent.layout.layoutBox),vy(this.relativeTarget,this.relativeTargetOrigin,L,l),E&&fT(this.relativeTarget,E))this.isProjectionDirty=!1;if(!E)E=pw();j2(E,this.relativeTarget)}if(T)this.animationValues=A,pT(A,O,this.latestValues,l,P,v);this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=l},this.mixTargetDelta(this.options.layoutRoot?1000:0)}startAnimation(q){if(this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation)H5(this.pendingAnimation),this.pendingAnimation=void 0;this.pendingAnimation=n0.update(()=>{if(S7.hasAnimatedSinceResize=!0,a4.layout++,this.motionValue||(this.motionValue=c5(0)),this.currentAnimation=iT(this.motionValue,[0,1000],{...q,velocity:0,isSync:!0,onUpdate:(B)=>{this.mixTargetDelta(B),q.onUpdate&&q.onUpdate(B)},onStop:()=>{a4.layout--},onComplete:()=>{a4.layout--,q.onComplete&&q.onComplete(),this.completeAnimation()}}),this.resumingFrom)this.resumingFrom.currentAnimation=this.currentAnimation;this.pendingAnimation=void 0})}completeAnimation(){if(this.resumingFrom)this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0;let q=this.getStack();q&&q.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){if(this.currentAnimation)this.mixTargetDelta&&this.mixTargetDelta(_y),this.currentAnimation.stop();this.completeAnimation()}applyTransformsToTarget(){let q=this.getLead(),{targetWithTransforms:B,target:_,layout:O,latestValues:A}=q;if(!B||!_||!O)return;if(this!==q&&this.layout&&O&&Xv(this.options.animationType,this.layout.layoutBox,O.layoutBox)){_=this.target||pw();let F=b1(this.layout.layoutBox.x);_.x.min=q.target.x.min,_.x.max=_.x.min+F;let L=b1(this.layout.layoutBox.y);_.y.min=q.target.y.min,_.y.max=_.y.min+L}j2(B,_),P7(B,A),R7(this.projectionDeltaWithTransform,this.layoutCorrected,B,A)}registerSharedNode(q,B){if(!this.sharedNodes.has(q))this.sharedNodes.set(q,new fF);this.sharedNodes.get(q).add(B);let O=B.options.initialPromotionConfig;B.promote({transition:O?O.transition:void 0,preserveFollowOpacity:O&&O.shouldPreserveFollowOpacity?O.shouldPreserveFollowOpacity(B):void 0})}isLead(){let q=this.getStack();return q?q.lead===this:!0}getLead(){let{layoutId:q}=this.options;return q?this.getStack()?.lead||this:this}getPrevLead(){let{layoutId:q}=this.options;return q?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:q}=this.options;if(q)return this.root.sharedNodes.get(q)}promote({needsReset:q,transition:B,preserveFollowOpacity:_}={}){let O=this.getStack();if(O)O.promote(this,_);if(q)this.projectionDelta=void 0,this.needsReset=!0;if(B)this.setOptions({transition:B})}relegate(){let q=this.getStack();if(q)return q.relegate(this);else return!1}resetSkewAndRotation(){let{visualElement:q}=this.options;if(!q)return;let B=!1,{latestValues:_}=q;if(_.z||_.rotate||_.rotateX||_.rotateY||_.rotateZ||_.skewX||_.skewY)B=!0;if(!B)return;let O={};if(_.z)dF("z",q,O,this.animationValues);for(let A=0;A<yF.length;A++)dF(`rotate${yF[A]}`,q,O,this.animationValues),dF(`skew${yF[A]}`,q,O,this.animationValues);q.render();for(let A in O)if(q.setStaticValue(A,O[A]),this.animationValues)this.animationValues[A]=O[A];q.scheduleRender()}applyProjectionStyles(q,B){if(!this.instance||this.isSVG)return;if(!this.isVisible){q.visibility="hidden";return}let _=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,q.visibility="",q.opacity="",q.pointerEvents=j7(B?.pointerEvents)||"",q.transform=_?_(this.latestValues,""):"none";return}let O=this.getLead();if(!this.projectionDelta||!this.layout||!O.target){if(this.options.layoutId)q.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,q.pointerEvents=j7(B?.pointerEvents)||"";if(this.hasProjected&&!d6(this.latestValues))q.transform=_?_({},""):"none",this.hasProjected=!1;return}q.visibility="";let A=O.animationValues||O.latestValues;this.applyTransformsToTarget();let F=yT(this.projectionDeltaWithTransform,this.treeScale,A);if(_)F=_(A,F);q.transform=F;let{x:L,y:I}=this.projectionDelta;if(q.transformOrigin=`${L.origin*100}% ${I.origin*100}% 0`,O.animationValues)q.opacity=O===this?A.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:A.opacityExit;else q.opacity=O===this?A.opacity!==void 0?A.opacity:"":A.opacityExit!==void 0?A.opacityExit:0;for(let D in mY){if(A[D]===void 0)continue;let{correct:T,applyTo:M,isCSSVariable:v}=mY[D],P=F==="none"?A[D]:T(A[D],O);if(M){let E=M.length;for(let u=0;u<E;u++)q[M[u]]=P}else if(v)this.options.visualElement.renderState.vars[D]=P;else q[D]=P}if(this.options.layoutId)q.pointerEvents=O===this?j7(B?.pointerEvents)||"":"none"}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((q)=>q.currentAnimation?.stop()),this.root.nodes.forEach(aT),this.root.sharedNodes.clear()}}}function Ay(Z){Z.updateLayout()}function Ny(Z){let X=Z.resumeFrom?.snapshot||Z.snapshot;if(Z.isLead()&&Z.layout&&X&&Z.hasListeners("didUpdate")){let{layoutBox:Y,measuredBox:Q}=Z.layout,{animationType:G}=Z.options,K=X.source!==Z.layout.source;if(G==="size")T5((A)=>{let F=K?X.measuredBox[A]:X.layoutBox[A],L=b1(F);F.min=Y[A].min,F.max=F.min+L});else if(Xv(G,X.layoutBox,Y))T5((A)=>{let F=K?X.measuredBox[A]:X.layoutBox[A],L=b1(Y[A]);if(F.max=F.min+L,Z.relativeTarget&&!Z.currentAnimation)Z.isProjectionDirty=!0,Z.relativeTarget[A].max=Z.relativeTarget[A].min+L});let q=t8();R7(q,Y,X.layoutBox);let B=t8();if(K)R7(B,Z.applyTransform(Q,!0),X.measuredBox);else R7(B,Y,X.layoutBox);let _=!RF(q),O=!1;if(!Z.resumeFrom){let A=Z.getClosestProjectingParent();if(A&&!A.resumeFrom){let{snapshot:F,layout:L}=A;if(F&&L){let I=pw();MZ(I,X.layoutBox,F.layoutBox);let D=pw();if(MZ(D,Y,L.layoutBox),!jF(I,D))O=!0;if(A.options.layoutRoot)Z.relativeTarget=D,Z.relativeTargetOrigin=I,Z.relativeParent=A}}}Z.notifyListeners("didUpdate",{layout:Y,snapshot:X,delta:B,layoutDelta:q,hasLayoutChanged:_,hasRelativeLayoutChanged:O})}else if(Z.isLead()){let{onExitComplete:Y}=Z.options;Y&&Y()}Z.options.transition=void 0}function Ly(Z){if(q2.value)x7.nodes++;if(!Z.parent)return;if(!Z.isProjecting())Z.isProjectionDirty=Z.parent.isProjectionDirty;Z.isSharedProjectionDirty||(Z.isSharedProjectionDirty=Boolean(Z.isProjectionDirty||Z.parent.isProjectionDirty||Z.parent.isSharedProjectionDirty)),Z.isTransformDirty||(Z.isTransformDirty=Z.parent.isTransformDirty)}function by(Z){Z.isProjectionDirty=Z.isSharedProjectionDirty=Z.isTransformDirty=!1}function Iy(Z){Z.clearSnapshot()}function aT(Z){Z.clearMeasurements()}function oT(Z){Z.isLayoutDirty=!1}function Vy(Z){let{visualElement:X}=Z.options;if(X&&X.getProps().onBeforeLayoutMeasure)X.notify("BeforeLayoutMeasure");Z.resetTransform()}function sT(Z){Z.finishAnimation(),Z.targetDelta=Z.relativeTarget=Z.target=void 0,Z.isProjectionDirty=!0}function ky(Z){Z.resolveTargetDelta()}function Dy(Z){Z.calcProjection()}function My(Z){Z.resetSkewAndRotation()}function Ty(Z){Z.removeLeadSnapshot()}function tT(Z,X,Y){Z.translate=Kw(X.translate,0,Y),Z.scale=Kw(X.scale,1,Y),Z.origin=X.origin,Z.originPoint=X.originPoint}function eT(Z,X,Y,Q){Z.min=Kw(X.min,Y.min,Q),Z.max=Kw(X.max,Y.max,Q)}function vy(Z,X,Y,Q){eT(Z.x,X.x,Y.x,Q),eT(Z.y,X.y,Y.y,Q)}function Py(Z){return Z.animationValues&&Z.animationValues.opacityExit!==void 0}var Ey={duration:0.45,ease:[0.4,0,0.1,1]},wv=(Z)=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(Z),$v=wv("applewebkit/")&&!wv("chrome/")?Math.round:ow;function Zv(Z){Z.min=$v(Z.min),Z.max=$v(Z.max)}function gy(Z){Zv(Z.x),Zv(Z.y)}function Xv(Z,X,Y){return Z==="position"||Z==="preserve-aspect"&&!EF(SF(X),SF(Y),0.2)}function Cy(Z){return Z!==Z.root&&Z.scroll?.wasRoot}var Yv=$G({attachResizeListener:(Z,X)=>$6(Z,"resize",X),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0});var ZG={current:void 0},iY=$G({measureScroll:(Z)=>({x:Z.scrollLeft,y:Z.scrollTop}),defaultParent:()=>{if(!ZG.current){let Z=new Yv({});Z.mount(window),Z.setOptions({layoutScroll:!0}),ZG.current=Z}return ZG.current},resetTransform:(Z,X)=>{Z.style.transform=X!==void 0?X:"none"},checkIsScrollRoot:(Z)=>Boolean(window.getComputedStyle(Z).position==="fixed")});var zv=c(U0(),1),TZ=zv.createContext({transformPagePoint:(Z)=>Z,isStatic:!1,reducedMotion:"never"});var $9=c(U0(),1);function Qv(Z=!0){let X=$9.useContext(KZ);if(X===null)return[!0,null];let{isPresent:Y,onExitComplete:Q,register:G}=X,K=$9.useId();$9.useEffect(()=>{if(Z)return G(K)},[Z]);let q=$9.useCallback(()=>Z&&Q&&Q(K),[K,Q,Z]);return!Y&&Q?[!1,q]:[!0]}var Wv=c(U0(),1),JG=Wv.createContext({strict:!1});var Gv={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Hv=!1;function Ry(){if(Hv)return;let Z={};for(let X in Gv)Z[X]={isEnabled:(Y)=>Gv[X].some((Q)=>!!Y[Q])};hY(Z),Hv=!0}function XG(){return Ry(),FF()}function Kv(Z){let X=XG();for(let Y in Z)X[Y]={...X[Y],...Z[Y]};hY(X)}var jy=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function rY(Z){return Z.startsWith("while")||Z.startsWith("drag")&&Z!=="draggable"||Z.startsWith("layout")||Z.startsWith("onTap")||Z.startsWith("onPan")||Z.startsWith("onLayout")||jy.has(Z)}var qv=(Z)=>!rY(Z);function Sy(Z){if(typeof Z!=="function")return;qv=(X)=>X.startsWith("on")?!rY(X):Z(X)}try{Sy((()=>{throw new Error("Cannot require module "+"@emotion/is-prop-valid");})().default)}catch{}function Bv(Z,X,Y){let Q={};for(let G in Z){if(G==="values"&&typeof Z.values==="object")continue;if(qv(G)||Y===!0&&rY(G)||!X&&!rY(G)||Z.draggable&&G.startsWith("onDrag"))Q[G]=Z[G]}return Q}var GG=c(Lw(),1);var gZ=c(U0(),1);var Uv=c(U0(),1),Z9=Uv.createContext({});var YG=c(U0(),1);function Fv(Z,X){if(e8(Z)){let{initial:Y,animate:Q}=Z;return{initial:Y===!1||w6(Y)?Y:void 0,animate:w6(Q)?Q:void 0}}return Z.inherit!==!1?X:{}}function Ov(Z){let{initial:X,animate:Y}=Fv(Z,YG.useContext(Z9));return YG.useMemo(()=>({initial:X,animate:Y}),[_v(X),_v(Y)])}function _v(Z){return Array.isArray(Z)?Z.join(" "):Z}var EZ=c(U0(),1);var Av=c(U0(),1);var vZ=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function mF(Z,X,Y){for(let Q in X)if(!kw(X[Q])&&!cY(Q,Y))Z[Q]=X[Q]}function xy({transformTemplate:Z},X){return Av.useMemo(()=>{let Y=vZ();return E7(Y,X,Z),Object.assign({},Y.vars,Y.style)},[X])}function hy(Z,X){let Y=Z.style||{},Q={};return mF(Q,Y,Z),Object.assign(Q,xy(Z,X)),Q}function Nv(Z,X){let Y={},Q=hy(Z,X);if(Z.drag&&Z.dragListener!==!1)Y.draggable=!1,Q.userSelect=Q.WebkitUserSelect=Q.WebkitTouchCallout="none",Q.touchAction=Z.drag===!0?"none":`pan-${Z.drag==="x"?"y":"x"}`;if(Z.tabIndex===void 0&&(Z.onTap||Z.onTapStart||Z.whileTap))Y.tabIndex=0;return Y.style=Q,Y}var Lv=c(U0(),1);var zG=()=>({...vZ(),attrs:{}});function bv(Z,X,Y,Q){let G=Lv.useMemo(()=>{let K=zG();return uY(K,X,pY(Q),Z.transformTemplate,Z.style),{...K.attrs,style:{...K.style}}},[X]);if(Z.style){let K={};mF(K,Z.style,Z),G.style={...K,...G.style}}return G}var Iv=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function PZ(Z){if(typeof Z!=="string"||Z.includes("-"))return!1;else if(Iv.indexOf(Z)>-1||/[A-Z]/u.test(Z))return!0;return!1}function Vv(Z,X,Y,{latestValues:Q},G,K=!1,q){let _=(q??PZ(Z)?bv:Nv)(X,Q,G,Z),O=Bv(X,typeof Z==="string",K),A=Z!==EZ.Fragment?{...O,..._,ref:Y}:{},{children:F}=X,L=EZ.useMemo(()=>kw(F)?F.get():F,[F]);return EZ.createElement(Z,{...A,children:L})}var cF=c(U0(),1);function fy({scrapeMotionValuesFromProps:Z,createRenderState:X},Y,Q,G){return{latestValues:yy(Y,Q,G,Z),renderState:X()}}function yy(Z,X,Y,Q){let G={},K=Q(Z,{});for(let L in K)G[L]=j7(K[L]);let{initial:q,animate:B}=Z,_=e8(Z),O=xY(Z);if(X&&O&&!_&&Z.inherit!==!1){if(q===void 0)q=X.initial;if(B===void 0)B=X.animate}let A=Y?Y.initial===!1:!1;A=A||q===!1;let F=A?B:q;if(F&&typeof F!=="boolean"&&!y6(F)){let L=Array.isArray(F)?F:[F];for(let I=0;I<L.length;I++){let D=M7(Z,L[I]);if(D){let{transitionEnd:T,transition:M,...v}=D;for(let P in v){let E=v[P];if(Array.isArray(E)){let u=A?E.length-1:0;E=E[u]}if(E!==null)G[P]=E}for(let P in T)G[P]=T[P]}}}return G}var QG=(Z)=>(X,Y)=>{let Q=cF.useContext(Z9),G=cF.useContext(KZ),K=()=>fy(Z,X,Q,G);return Y?K():WW(K)};var kv=QG({scrapeMotionValuesFromProps:g7,createRenderState:vZ});var Dv=QG({scrapeMotionValuesFromProps:lY,createRenderState:zG});var Mv=Symbol.for("motionComponentSymbol");var h7=c(U0(),1);function Tv(Z,X,Y){let Q=h7.useRef(Y);h7.useInsertionEffect(()=>{Q.current=Y});let G=h7.useRef(null);return h7.useCallback((K)=>{if(K)Z.onMount?.(K);if(X)K?X.mount(K):X.unmount();let q=Q.current;if(typeof q==="function")if(K){let B=q(K);if(typeof B==="function")G.current=B}else if(G.current)G.current(),G.current=null;else q(K);else if(q)q.current=K},[X])}var v5=c(U0(),1);var vv=c(U0(),1),WG=vv.createContext({});function f7(Z){return Z&&typeof Z==="object"&&Object.prototype.hasOwnProperty.call(Z,"current")}function Pv(Z,X,Y,Q,G,K){let{visualElement:q}=v5.useContext(Z9),B=v5.useContext(JG),_=v5.useContext(KZ),O=v5.useContext(TZ).reducedMotion,A=v5.useRef(null),F=v5.useRef(!1);if(Q=Q||B.renderer,!A.current&&Q){if(A.current=Q(Z,{visualState:X,parent:q,props:Y,presenceContext:_,blockInitialAnimation:_?_.initial===!1:!1,reducedMotionConfig:O,isSVG:K}),F.current&&A.current)A.current.manuallyAnimateOnMount=!0}let L=A.current,I=v5.useContext(WG);if(L&&!L.projection&&G&&(L.type==="html"||L.type==="svg"))dy(A.current,Y,G,I);let D=v5.useRef(!1);v5.useInsertionEffect(()=>{if(L&&D.current)L.update(Y,_)});let T=Y[gY],M=v5.useRef(Boolean(T)&&!window.MotionHandoffIsComplete?.(T)&&window.MotionHasOptimisedAnimation?.(T));return KW(()=>{if(F.current=!0,!L)return;if(D.current=!0,window.MotionIsMounted=!0,L.updateFeatures(),L.scheduleRenderMicrotask(),M.current&&L.animationState)L.animationState.animateChanges()}),v5.useEffect(()=>{if(!L)return;if(!M.current&&L.animationState)L.animationState.animateChanges();if(M.current)queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(T)}),M.current=!1;L.enteringChildren=void 0}),L}function dy(Z,X,Y,Q){let{layoutId:G,layout:K,drag:q,dragConstraints:B,layoutScroll:_,layoutRoot:O,layoutCrossfade:A}=X;Z.projection=new Y(Z.latestValues,X["data-framer-portal-id"]?void 0:Ev(Z.parent)),Z.projection.setOptions({layoutId:G,layout:K,alwaysMeasureLayout:Boolean(q)||B&&f7(B),visualElement:Z,animationType:typeof K==="string"?K:"both",initialPromotionConfig:Q,crossfade:A,layoutScroll:_,layoutRoot:O})}function Ev(Z){if(!Z)return;return Z.options.allowProjection!==!1?Z.projection:Ev(Z.parent)}function HG(Z,{forwardMotionProps:X=!1,type:Y}={},Q,G){Q&&Kv(Q);let K=Y?Y==="svg":PZ(Z),q=K?Dv:kv;function B(O,A){let F,L={...gZ.useContext(TZ),...O,layoutId:my(O)},{isStatic:I}=L,D=Ov(O),T=q(O,I);if(!I&&GW){cy(L,Q);let M=uy(L);F=M.MeasureLayout,D.visualElement=Pv(Z,T,L,G,M.ProjectionNode,K)}return GG.jsxs(Z9.Provider,{value:D,children:[F&&D.visualElement?GG.jsx(F,{visualElement:D.visualElement,...L}):null,Vv(Z,O,Tv(T,D.visualElement,A),T,I,X,K)]})}B.displayName=`motion.${typeof Z==="string"?Z:`create(${Z.displayName??Z.name??""})`}`;let _=gZ.forwardRef(B);return _[Mv]=Z,_}function my({layoutId:Z}){let X=gZ.useContext(QW).id;return X&&Z!==void 0?X+"-"+Z:Z}function cy(Z,X){let Y=gZ.useContext(JG).strict;if(X&&Y)Z.ignoreStrict?g2(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.","lazy-strict-mode"):e1(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.","lazy-strict-mode")}function uy(Z){let X=XG(),{drag:Y,layout:Q}=X;if(!Y&&!Q)return{};let G={...Y,...Q};return{MeasureLayout:Y?.isEnabled(Z)||Q?.isEnabled(Z)?G.MeasureLayout:void 0,ProjectionNode:G.ProjectionNode}}function gv(Z,X){if(typeof Proxy>"u")return HG;let Y=new Map,Q=(K,q)=>{return HG(K,q,Z,X)};return new Proxy((K,q)=>{return O7(!1,"motion() is deprecated. Use motion.create() instead."),Q(K,q)},{get:(K,q)=>{if(q==="create")return Q;if(!Y.has(q))Y.set(q,HG(q,void 0,Z,X));return Y.get(q)}})}var Cv=c(U0(),1);var Rv=(Z,X)=>{return X.isSVG??PZ(Z)?new wG(X):new tW(X,{allowProjection:Z!==Cv.Fragment})};class uF extends p1{constructor(Z){super(Z);Z.animationState||(Z.animationState=DF(Z))}updateAnimationControlsSubscription(){let{animate:Z}=this.node.getProps();if(y6(Z))this.unmountControls=Z.subscribe(this.node)}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:Z}=this.node.getProps(),{animate:X}=this.node.prevProps||{};if(Z!==X)this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}var py=0;class pF extends p1{constructor(){super(...arguments);this.id=py++}update(){if(!this.node.presenceContext)return;let{isPresent:Z,onExitComplete:X}=this.node.presenceContext,{isPresent:Y}=this.node.prevPresenceContext||{};if(!this.node.animationState||Z===Y)return;let Q=this.node.animationState.setActive("exit",!Z);if(X&&!Z)Q.then(()=>{X(this.id)})}mount(){let{register:Z,onExitComplete:X}=this.node.presenceContext||{};if(X)X(this.id);if(Z)this.unmount=Z(this.id)}unmount(){}}var jv={animation:{Feature:uF},exit:{Feature:pF}};function m6(Z){return{point:{x:Z.pageX,y:Z.pageY}}}var Sv=(Z)=>{return(X)=>v7(X)&&Z(X,m6(X))};function J9(Z,X,Y,Q){return $6(Z,X,Sv(Y),Q)}var KG=({current:Z})=>{return Z?Z.ownerDocument.defaultView:null};var xv=(Z,X)=>Math.abs(Z-X);function hv(Z,X){let Y=xv(Z.x,X.x),Q=xv(Z.y,X.y);return Math.sqrt(Y**2+Q**2)}var fv=new Set(["auto","scroll"]);class nY{constructor(Z,X,{transformPagePoint:Y,contextWindow:Q=window,dragSnapToOrigin:G=!1,distanceThreshold:K=3,element:q}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=(L)=>{this.handleScroll(L.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let L=iF(this.lastMoveEventInfo,this.history),I=this.startEvent!==null,D=hv(L.offset,{x:0,y:0})>=this.distanceThreshold;if(!I&&!D)return;let{point:T}=L,{timestamp:M}=Y1;this.history.push({...T,timestamp:M});let{onStart:v,onMove:P}=this.handlers;if(!I)v&&v(this.lastMoveEvent,L),this.startEvent=this.lastMoveEvent;P&&P(this.lastMoveEvent,L)},this.handlePointerMove=(L,I)=>{this.lastMoveEvent=L,this.lastMoveEventInfo=lF(I,this.transformPagePoint),n0.update(this.updatePoint,!0)},this.handlePointerUp=(L,I)=>{this.end();let{onEnd:D,onSessionEnd:T,resumeAnimation:M}=this.handlers;if(this.dragSnapToOrigin||!this.startEvent)M&&M();if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let v=iF(L.type==="pointercancel"?this.lastMoveEventInfo:lF(I,this.transformPagePoint),this.history);if(this.startEvent&&D)D(L,v);T&&T(L,v)},!v7(Z))return;this.dragSnapToOrigin=G,this.handlers=X,this.transformPagePoint=Y,this.distanceThreshold=K,this.contextWindow=Q||window;let B=m6(Z),_=lF(B,this.transformPagePoint),{point:O}=_,{timestamp:A}=Y1;this.history=[{...O,timestamp:A}];let{onSessionStart:F}=X;if(F&&F(Z,iF(_,this.history)),this.removeListeners=X4(J9(this.contextWindow,"pointermove",this.handlePointerMove),J9(this.contextWindow,"pointerup",this.handlePointerUp),J9(this.contextWindow,"pointercancel",this.handlePointerUp)),q)this.startScrollTracking(q)}startScrollTracking(Z){let X=Z.parentElement;while(X){let Y=getComputedStyle(X);if(fv.has(Y.overflowX)||fv.has(Y.overflowY))this.scrollPositions.set(X,{x:X.scrollLeft,y:X.scrollTop});X=X.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(Z){let X=this.scrollPositions.get(Z);if(!X)return;let Y=Z===window,Q=Y?{x:window.scrollX,y:window.scrollY}:{x:Z.scrollLeft,y:Z.scrollTop},G={x:Q.x-X.x,y:Q.y-X.y};if(G.x===0&&G.y===0)return;if(Y){if(this.lastMoveEventInfo)this.lastMoveEventInfo.point.x+=G.x,this.lastMoveEventInfo.point.y+=G.y}else if(this.history.length>0)this.history[0].x-=G.x,this.history[0].y-=G.y;this.scrollPositions.set(Z,Q),n0.update(this.updatePoint,!0)}updateHandlers(Z){this.handlers=Z}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),H5(this.updatePoint)}}function lF(Z,X){return X?{point:X(Z.point)}:Z}function yv(Z,X){return{x:Z.x-X.x,y:Z.y-X.y}}function iF({point:Z},X){return{point:Z,delta:yv(Z,dv(X)),offset:yv(Z,ly(X)),velocity:iy(X,0.1)}}function ly(Z){return Z[0]}function dv(Z){return Z[Z.length-1]}function iy(Z,X){if(Z.length<2)return{x:0,y:0};let Y=Z.length-1,Q=null,G=dv(Z);while(Y>=0){if(Q=Z[Y],G.timestamp-Q.timestamp>w5(X))break;Y--}if(!Q)return{x:0,y:0};let K=g1(G.timestamp-Q.timestamp);if(K===0)return{x:0,y:0};let q={x:(G.x-Q.x)/K,y:(G.y-Q.y)/K};if(q.x===1/0)q.x=0;if(q.y===1/0)q.y=0;return q}function lv(Z,{min:X,max:Y},Q){if(X!==void 0&&Z<X)Z=Q?Kw(X,Z,Q.min):Math.max(Z,X);else if(Y!==void 0&&Z>Y)Z=Q?Kw(Y,Z,Q.max):Math.min(Z,Y);return Z}function mv(Z,X,Y){return{min:X!==void 0?Z.min+X:void 0,max:Y!==void 0?Z.max+Y-(Z.max-Z.min):void 0}}function iv(Z,{top:X,left:Y,bottom:Q,right:G}){return{x:mv(Z.x,Y,G),y:mv(Z.y,X,Q)}}function cv(Z,X){let Y=X.min-Z.min,Q=X.max-Z.max;if(X.max-X.min<Z.max-Z.min)[Y,Q]=[Q,Y];return{min:Y,max:Q}}function rv(Z,X){return{x:cv(Z.x,X.x),y:cv(Z.y,X.y)}}function nv(Z,X){let Y=0.5,Q=b1(Z),G=b1(X);if(G>Q)Y=n4(X.min,X.max-Q,Z.min);else if(Q>G)Y=n4(Z.min,Z.max-G,X.min);return L1(0,1,Y)}function av(Z,X){let Y={};if(X.min!==void 0)Y.min=X.min-Z.min;if(X.max!==void 0)Y.max=X.max-Z.min;return Y}var qG=0.35;function ov(Z=qG){if(Z===!1)Z=0;else if(Z===!0)Z=qG;return{x:uv(Z,"left","right"),y:uv(Z,"top","bottom")}}function uv(Z,X,Y){return{min:pv(Z,X),max:pv(Z,Y)}}function pv(Z,X){return typeof Z==="number"?Z:Z[X]||0}var ry=new WeakMap;class rF{constructor(Z){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=pw(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=Z}start(Z,{snapToCursor:X=!1,distanceThreshold:Y}={}){let{presenceContext:Q}=this.visualElement;if(Q&&Q.isPresent===!1)return;let G=(A)=>{if(X)this.stopAnimation(),this.snapToCursor(m6(A).point);else this.pauseAnimation()},K=(A,F)=>{this.stopAnimation();let{drag:L,dragPropagation:I,onDragStart:D}=this.getProps();if(L&&!I){if(this.openDragLock)this.openDragLock();if(this.openDragLock=WF(L),!this.openDragLock)return}if(this.latestPointerEvent=A,this.latestPanInfo=F,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection)this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0;if(T5((M)=>{let v=this.getAxisMotionValue(M).get()||0;if(K5.test(v)){let{projection:P}=this.visualElement;if(P&&P.layout){let E=P.layout.layoutBox[M];if(E)v=b1(E)*(parseFloat(v)/100)}}this.originPoint[M]=v}),D)n0.postRender(()=>D(A,F));bZ(this.visualElement,"transform");let{animationState:T}=this.visualElement;T&&T.setActive("whileDrag",!0)},q=(A,F)=>{this.latestPointerEvent=A,this.latestPanInfo=F;let{dragPropagation:L,dragDirectionLock:I,onDirectionLock:D,onDrag:T}=this.getProps();if(!L&&!this.openDragLock)return;let{offset:M}=F;if(I&&this.currentDirection===null){if(this.currentDirection=ny(M),this.currentDirection!==null)D&&D(this.currentDirection);return}this.updateAxis("x",F.point,M),this.updateAxis("y",F.point,M),this.visualElement.render(),T&&T(A,F)},B=(A,F)=>{this.latestPointerEvent=A,this.latestPanInfo=F,this.stop(A,F),this.latestPointerEvent=null,this.latestPanInfo=null},_=()=>T5((A)=>this.getAnimationState(A)==="paused"&&this.getAxisMotionValue(A).animation?.play()),{dragSnapToOrigin:O}=this.getProps();this.panSession=new nY(Z,{onSessionStart:G,onStart:K,onMove:q,onSessionEnd:B,resumeAnimation:_},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:O,distanceThreshold:Y,contextWindow:KG(this.visualElement),element:this.visualElement.current})}stop(Z,X){let Y=Z||this.latestPointerEvent,Q=X||this.latestPanInfo,G=this.isDragging;if(this.cancel(),!G||!Q||!Y)return;let{velocity:K}=Q;this.startAnimation(K);let{onDragEnd:q}=this.getProps();if(q)n0.postRender(()=>q(Y,Q))}cancel(){this.isDragging=!1;let{projection:Z,animationState:X}=this.visualElement;if(Z)Z.isAnimationBlocked=!1;this.endPanSession();let{dragPropagation:Y}=this.getProps();if(!Y&&this.openDragLock)this.openDragLock(),this.openDragLock=null;X&&X.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(Z,X,Y){let{drag:Q}=this.getProps();if(!Y||!BG(Z,Q,this.currentDirection))return;let G=this.getAxisMotionValue(Z),K=this.originPoint[Z]+Y[Z];if(this.constraints&&this.constraints[Z])K=lv(K,this.constraints[Z],this.elastic[Z]);G.set(K)}resolveConstraints(){let{dragConstraints:Z,dragElastic:X}=this.getProps(),Y=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,Q=this.constraints;if(Z&&f7(Z)){if(!this.constraints)this.constraints=this.resolveRefConstraints()}else if(Z&&Y)this.constraints=iv(Y.layoutBox,Z);else this.constraints=!1;if(this.elastic=ov(X),Q!==this.constraints&&Y&&this.constraints&&!this.hasMutatedConstraints)T5((G)=>{if(this.constraints!==!1&&this.getAxisMotionValue(G))this.constraints[G]=av(Y.layoutBox[G],this.constraints[G])})}resolveRefConstraints(){let{dragConstraints:Z,onMeasureDragConstraints:X}=this.getProps();if(!Z||!f7(Z))return!1;let Y=Z.current;e1(Y!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:Q}=this.visualElement;if(!Q||!Q.layout)return!1;let G=IF(Y,Q.root,this.visualElement.getTransformPagePoint()),K=rv(Q.layout.layoutBox,G);if(X){let q=X(_F(K));if(this.hasMutatedConstraints=!!q,q)K=yY(q)}return K}startAnimation(Z){let{drag:X,dragMomentum:Y,dragElastic:Q,dragTransition:G,dragSnapToOrigin:K,onDragTransitionEnd:q}=this.getProps(),B=this.constraints||{},_=T5((O)=>{if(!BG(O,X,this.currentDirection))return;let A=B&&B[O]||{};if(K)A={min:0,max:0};let F=Q?200:1e6,L=Q?40:1e7,I={type:"inertia",velocity:Y?Z[O]:0,bounceStiffness:F,bounceDamping:L,timeConstant:750,restDelta:1,restSpeed:10,...G,...A};return this.startAxisValueAnimation(O,I)});return Promise.all(_).then(q)}startAxisValueAnimation(Z,X){let Y=this.getAxisMotionValue(Z);return bZ(this.visualElement,Z),Y.start(D7(Z,Y,0,X,this.visualElement,!1))}stopAnimation(){T5((Z)=>this.getAxisMotionValue(Z).stop())}pauseAnimation(){T5((Z)=>this.getAxisMotionValue(Z).animation?.pause())}getAnimationState(Z){return this.getAxisMotionValue(Z).animation?.state}getAxisMotionValue(Z){let X=`_drag${Z.toUpperCase()}`,Y=this.visualElement.getProps(),Q=Y[X];return Q?Q:this.visualElement.getValue(Z,(Y.initial?Y.initial[Z]:void 0)||0)}snapToCursor(Z){T5((X)=>{let{drag:Y}=this.getProps();if(!BG(X,Y,this.currentDirection))return;let{projection:Q}=this.visualElement,G=this.getAxisMotionValue(X);if(Q&&Q.layout){let{min:K,max:q}=Q.layout.layoutBox[X],B=G.get()||0;G.set(Z[X]-Kw(K,q,0.5)+B)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:Z,dragConstraints:X}=this.getProps(),{projection:Y}=this.visualElement;if(!f7(X)||!Y||!this.constraints)return;this.stopAnimation();let Q={x:0,y:0};T5((K)=>{let q=this.getAxisMotionValue(K);if(q&&this.constraints!==!1){let B=q.get();Q[K]=nv({min:B,max:B},this.constraints[K])}});let{transformTemplate:G}=this.visualElement.getProps();this.visualElement.current.style.transform=G?G({},""):"none",Y.root&&Y.root.updateScroll(),Y.updateLayout(),this.resolveConstraints(),T5((K)=>{if(!BG(K,Z,null))return;let q=this.getAxisMotionValue(K),{min:B,max:_}=this.constraints[K];q.set(Kw(B,_,Q[K]))})}addListeners(){if(!this.visualElement.current)return;ry.set(this.visualElement,this);let Z=this.visualElement.current,X=J9(Z,"pointerdown",(B)=>{let{drag:_,dragListener:O=!0}=this.getProps(),A=B.target,F=A!==Z&&RY(A);if(_&&O&&!F)this.start(B)}),Y=()=>{let{dragConstraints:B}=this.getProps();if(f7(B)&&B.current)this.constraints=this.resolveRefConstraints()},{projection:Q}=this.visualElement,G=Q.addEventListener("measure",Y);if(Q&&!Q.layout)Q.root&&Q.root.updateScroll(),Q.updateLayout();n0.read(Y);let K=$6(window,"resize",()=>this.scalePositionWithinConstraints()),q=Q.addEventListener("didUpdate",({delta:B,hasLayoutChanged:_})=>{if(this.isDragging&&_)T5((O)=>{let A=this.getAxisMotionValue(O);if(!A)return;this.originPoint[O]+=B[O].translate,A.set(A.get()+B[O].translate)}),this.visualElement.render()});return()=>{K(),X(),G(),q&&q()}}getProps(){let Z=this.visualElement.getProps(),{drag:X=!1,dragDirectionLock:Y=!1,dragPropagation:Q=!1,dragConstraints:G=!1,dragElastic:K=qG,dragMomentum:q=!0}=Z;return{...Z,drag:X,dragDirectionLock:Y,dragPropagation:Q,dragConstraints:G,dragElastic:K,dragMomentum:q}}}function BG(Z,X,Y){return(X===!0||X===Z)&&(Y===null||Y===Z)}function ny(Z,X=10){let Y=null;if(Math.abs(Z.y)>X)Y="y";else if(Math.abs(Z.x)>X)Y="x";return Y}class nF extends p1{constructor(Z){super(Z);this.removeGroupControls=ow,this.removeListeners=ow,this.controls=new rF(Z)}mount(){let{dragControls:Z}=this.node.getProps();if(Z)this.removeGroupControls=Z.subscribe(this.controls);this.removeListeners=this.controls.addListeners()||ow}update(){let{dragControls:Z}=this.node.getProps(),{dragControls:X}=this.node.prevProps||{};if(Z!==X){if(this.removeGroupControls(),Z)this.removeGroupControls=Z.subscribe(this.controls)}}unmount(){if(this.removeGroupControls(),this.removeListeners(),!this.controls.isDragging)this.controls.endPanSession()}}var sv=(Z)=>(X,Y)=>{if(Z)n0.postRender(()=>Z(X,Y))};class aF extends p1{constructor(){super(...arguments);this.removePointerDownListener=ow}onPointerDown(Z){this.session=new nY(Z,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:KG(this.node)})}createPanHandlers(){let{onPanSessionStart:Z,onPanStart:X,onPan:Y,onPanEnd:Q}=this.node.getProps();return{onSessionStart:sv(Z),onStart:sv(X),onMove:Y,onEnd:(G,K)=>{if(delete this.session,Q)n0.postRender(()=>Q(G,K))}}}mount(){this.removePointerDownListener=J9(this.node.current,"pointerdown",(Z)=>this.onPointerDown(Z))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var tv=c(Lw(),1);var aY=c(U0(),1);var oF=!1;class ev extends aY.Component{componentDidMount(){let{visualElement:Z,layoutGroup:X,switchLayoutGroup:Y,layoutId:Q}=this.props,{projection:G}=Z;if(G){if(X.group)X.group.add(G);if(Y&&Y.register&&Q)Y.register(G);if(oF)G.root.didUpdate();G.addEventListener("animationComplete",()=>{this.safeToRemove()}),G.setOptions({...G.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})}S7.hasEverUpdated=!0}getSnapshotBeforeUpdate(Z){let{layoutDependency:X,visualElement:Y,drag:Q,isPresent:G}=this.props,{projection:K}=Y;if(!K)return null;if(K.isPresent=G,Z.layoutDependency!==X)K.setOptions({...K.options,layoutDependency:X});if(oF=!0,Q||Z.layoutDependency!==X||X===void 0||Z.isPresent!==G)K.willUpdate();else this.safeToRemove();if(Z.isPresent!==G){if(G)K.promote();else if(!K.relegate())n0.postRender(()=>{let q=K.getStack();if(!q||!q.members.length)this.safeToRemove()})}return null}componentDidUpdate(){let{projection:Z}=this.props.visualElement;if(Z)Z.root.didUpdate(),T7.postRender(()=>{if(!Z.currentAnimation&&Z.isLead())this.safeToRemove()})}componentWillUnmount(){let{visualElement:Z,layoutGroup:X,switchLayoutGroup:Y}=this.props,{projection:Q}=Z;if(oF=!0,Q){if(Q.scheduleCheckAfterUnmount(),X&&X.group)X.group.remove(Q);if(Y&&Y.deregister)Y.deregister(Q)}}safeToRemove(){let{safeToRemove:Z}=this.props;Z&&Z()}render(){return null}}function UG(Z){let[X,Y]=Qv(),Q=aY.useContext(QW);return tv.jsx(ev,{...Z,layoutGroup:Q,switchLayoutGroup:aY.useContext(WG),isPresent:X,safeToRemove:Y})}var wP={pan:{Feature:aF},drag:{Feature:nF,ProjectionNode:iY,MeasureLayout:UG}};function $P(Z,X,Y){let{props:Q}=Z;if(Z.animationState&&Q.whileHover)Z.animationState.setActive("whileHover",Y==="Start");let G="onHover"+Y,K=Q[G];if(K)n0.postRender(()=>K(X,m6(X)))}class sF extends p1{mount(){let{current:Z}=this.node;if(!Z)return;this.unmount=GF(Z,(X,Y)=>{return $P(this.node,Y,"Start"),(Q)=>$P(this.node,Q,"End")})}unmount(){}}class tF extends p1{constructor(){super(...arguments);this.isActive=!1}onFocus(){let Z=!1;try{Z=this.node.current.matches(":focus-visible")}catch(X){Z=!0}if(!Z||!this.node.animationState)return;this.node.animationState.setActive("whileFocus",!0),this.isActive=!0}onBlur(){if(!this.isActive||!this.node.animationState)return;this.node.animationState.setActive("whileFocus",!1),this.isActive=!1}mount(){this.unmount=X4($6(this.node.current,"focus",()=>this.onFocus()),$6(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function ZP(Z,X,Y){let{props:Q}=Z;if(Z.current instanceof HTMLButtonElement&&Z.current.disabled)return;if(Z.animationState&&Q.whileTap)Z.animationState.setActive("whileTap",Y==="Start");let G="onTap"+(Y==="End"?"":Y),K=Q[G];if(K)n0.postRender(()=>K(X,m6(X)))}class eF extends p1{mount(){let{current:Z}=this.node;if(!Z)return;this.unmount=qF(Z,(X,Y)=>{return ZP(this.node,Y,"Start"),(Q,{success:G})=>ZP(this.node,Q,G?"End":"Cancel")},{useGlobalTarget:this.node.props.globalTapTarget})}unmount(){}}var $_=new WeakMap,w_=new WeakMap,ay=(Z)=>{let X=$_.get(Z.target);X&&X(Z)},oy=(Z)=>{Z.forEach(ay)};function sy({root:Z,...X}){let Y=Z||document;if(!w_.has(Y))w_.set(Y,{});let Q=w_.get(Y),G=JSON.stringify(X);if(!Q[G])Q[G]=new IntersectionObserver(oy,{root:Z,...X});return Q[G]}function JP(Z,X,Y){let Q=sy(X);return $_.set(Z,Y),Q.observe(Z),()=>{$_.delete(Z),Q.unobserve(Z)}}var ty={some:0,all:1};class Z_ extends p1{constructor(){super(...arguments);this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:Z={}}=this.node.getProps(),{root:X,margin:Y,amount:Q="some",once:G}=Z,K={root:X?X.current:void 0,rootMargin:Y,threshold:typeof Q==="number"?Q:ty[Q]},q=(B)=>{let{isIntersecting:_}=B;if(this.isInView===_)return;if(this.isInView=_,G&&!_&&this.hasEnteredView)return;else if(_)this.hasEnteredView=!0;if(this.node.animationState)this.node.animationState.setActive("whileInView",_);let{onViewportEnter:O,onViewportLeave:A}=this.node.getProps(),F=_?O:A;F&&F(B)};return JP(this.node.current,K,q)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:Z,prevProps:X}=this.node;if(["amount","margin","root"].some(ey(Z,X)))this.startObserver()}unmount(){}}function ey({viewport:Z={}},{viewport:X={}}={}){return(Y)=>Z[Y]!==X[Y]}var XP={inView:{Feature:Z_},tap:{Feature:eF},focus:{Feature:tF},hover:{Feature:sF}};var YP={layout:{ProjectionNode:iY,MeasureLayout:UG}};var zP={...jv,...XP,...wP,...YP};var oY=gv(zP,Rv);var CZ=c(U0(),1);function RZ(Z){let X=WW(()=>c5(Z)),{isStatic:Y}=CZ.useContext(TZ);if(Y){let[,Q]=CZ.useState(Z);CZ.useEffect(()=>X.on("change",Q),[])}return X}function QP(Z,X){let Y=RZ(X()),Q=()=>Y.set(X());return Q(),KW(()=>{let G=()=>n0.preRender(Q,!1,!0),K=Z.map((q)=>q.on("change",G));return()=>{K.forEach((q)=>q()),H5(Q)}}),Y}function FG(Z,...X){let Y=Z.length;function Q(){let G="";for(let K=0;K<Y;K++){G+=Z[K];let q=X[K];if(q)G+=kw(q)?q.get():q}return G}return QP(X.filter(kw),Q)}var jZ=c(m0(),1);function X9({children:Z,className:X,gradientSize:Y=200,gradientColor:Q="hsl(var(--foreground))",gradientOpacity:G=0.15,gradientFrom:K="#9E7AFF",gradientTo:q="#FE8BBB"}){let B=RZ(-Y),_=RZ(-Y),O=SZ.useCallback(()=>{B.set(-Y),_.set(-Y)},[Y,B,_]),A=SZ.useCallback((F)=>{let L=F.currentTarget.getBoundingClientRect();B.set(F.clientX-L.left),_.set(F.clientY-L.top)},[B,_]);return SZ.useEffect(()=>{O()},[O]),SZ.useEffect(()=>{let F=(I)=>{if(!I.relatedTarget)O()},L=()=>{if(document.visibilityState!=="visible")O()};return window.addEventListener("pointerout",F),window.addEventListener("blur",O),document.addEventListener("visibilitychange",L),()=>{window.removeEventListener("pointerout",F),window.removeEventListener("blur",O),document.removeEventListener("visibilitychange",L)}},[O]),jZ.jsxDEV("div",{className:h0("group relative rounded-[inherit]",X),onPointerMove:A,onPointerLeave:O,onPointerEnter:O,children:[jZ.jsxDEV(oY.div,{className:"bg-border pointer-events-none absolute inset-0 rounded-[inherit] duration-300 group-hover:opacity-100",style:{background:FG`
244
+ radial-gradient(${Y}px circle at ${B}px ${_}px,
245
+ ${K},
246
+ ${q},
247
+ var(--border) 100%
248
+ )
249
+ `}},void 0,!1,void 0,this),jZ.jsxDEV("div",{className:"bg-background absolute inset-px rounded-[inherit]"},void 0,!1,void 0,this),jZ.jsxDEV(oY.div,{className:"pointer-events-none absolute inset-px rounded-[inherit] opacity-0 transition-opacity duration-300 group-hover:opacity-100",style:{background:FG`
250
+ radial-gradient(${Y}px circle at ${B}px ${_}px, ${Q}, transparent 100%)
251
+ `,opacity:G}},void 0,!1,void 0,this),jZ.jsxDEV("div",{className:"relative",children:Z},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Y9=c(U0(),1);var WP=c(t9(),1);var sY=c(m0(),1),GP=({className:Z,duration:X=400,...Y})=>{let{theme:Q,setTheme:G}=WD(),[K,q]=Y9.useState(!1),B=Y9.useRef(null);Y9.useEffect(()=>{let O=()=>{q(document.documentElement.classList.contains("dark"))};O();let A=new MutationObserver(O);return A.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>A.disconnect()},[]);let _=Y9.useCallback(async()=>{if(!B.current)return;let O=K?"light":"dark";await document.startViewTransition(()=>{WP.flushSync(()=>{G(O),q(!K)})}).ready;let{top:A,left:F,width:L,height:I}=B.current.getBoundingClientRect(),D=F+L/2,T=A+I/2,M=Math.hypot(Math.max(F,window.innerWidth-F),Math.max(A,window.innerHeight-A));document.documentElement.animate({clipPath:[`circle(0px at ${D}px ${T}px)`,`circle(${M}px at ${D}px ${T}px)`]},{duration:X,easing:"ease-in-out",pseudoElement:"::view-transition-new(root)"})},[K,X,G]);return sY.jsxDEV("button",{ref:B,onClick:_,className:h0("cursor-pointer",Z),...Y,children:[K?sY.jsxDEV(QY,{},void 0,!1,void 0,this):sY.jsxDEV(XY,{},void 0,!1,void 0,this),sY.jsxDEV("span",{className:"sr-only",children:"Toggle theme"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};var xZ=c(U0(),1);var HP=c(m0(),1);function z9({className:Z,type:X,...Y}){return HP.jsxDEV("input",{type:X,"data-slot":"input",className:h0("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",Z),...Y},void 0,!1,void 0,this)}var KP=c(m0(),1);function Dw({className:Z,...X}){return KP.jsxDEV("div",{"data-slot":"skeleton",className:h0("bg-accent animate-pulse rounded-md",Z),...X},void 0,!1,void 0,this)}var BP=c(m0(),1);function qP({borderWidth:Z=1,duration:X=14,shineColor:Y="#000000",className:Q,style:G,...K}){return BP.jsxDEV("div",{style:{"--border-width":`${Z}px`,"--duration":`${X}s`,backgroundImage:`radial-gradient(transparent,transparent, ${Array.isArray(Y)?Y.join(","):Y},transparent,transparent)`,backgroundSize:"300% 300%",mask:"linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",WebkitMask:"linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",WebkitMaskComposite:"xor",maskComposite:"exclude",padding:"var(--border-width)",...G},className:h0("motion-safe:animate-shine pointer-events-none absolute inset-0 size-full rounded-[inherit] will-change-[background-position]",Q),...K},void 0,!1,void 0,this)}var _w=c(m0(),1);function UP({user:Z,onLogin:X,onRegister:Y,onLogout:Q,isLoading:G,useShineBorder:K=!1}){let[q,B]=xZ.useState(!1),[_,O]=xZ.useState(""),[A,F]=xZ.useState(""),[L,I]=xZ.useState(""),[D,T]=xZ.useState(!1),M=async(P)=>{if(P.preventDefault(),!_||!A)return;T(!0);try{if(q)await Y(_,A,L||void 0);else await X(_,A);O(""),F(""),I("")}finally{T(!1)}},v=(P)=>{if(!K)return P;return _w.jsxDEV("div",{className:"relative rounded-lg",children:[_w.jsxDEV(qP,{shineColor:["#9E7AFF","#FE8BBB"],duration:10},void 0,!1,void 0,this),P]},void 0,!0,void 0,this)};if(G)return v(_w.jsxDEV(D5,{children:[_w.jsxDEV(i4,{className:"pb-2",children:[_w.jsxDEV(Dw,{className:"h-5 w-24"},void 0,!1,void 0,this),_w.jsxDEV(Dw,{className:"h-3 w-48 mt-1"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_w.jsxDEV(K2,{className:"space-y-3",children:[_w.jsxDEV(Dw,{className:"h-9 w-full"},void 0,!1,void 0,this),_w.jsxDEV(Dw,{className:"h-9 w-full"},void 0,!1,void 0,this),_w.jsxDEV(Dw,{className:"h-9 w-full"},void 0,!1,void 0,this),_w.jsxDEV(Dw,{className:"h-4 w-40 mx-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this));if(Z)return v(_w.jsxDEV(D5,{className:"bg-muted/30",children:_w.jsxDEV(K2,{className:"p-4",children:_w.jsxDEV("div",{className:"flex items-center gap-3",children:[_w.jsxDEV("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-primary/10",children:_w.jsxDEV(GY,{className:"h-5 w-5 text-primary"},void 0,!1,void 0,this)},void 0,!1,void 0,this),_w.jsxDEV("div",{className:"flex-1 min-w-0",children:[_w.jsxDEV("p",{className:"text-sm font-medium truncate",children:Z.username||Z.email.split("@")[0]},void 0,!1,void 0,this),_w.jsxDEV("p",{className:"text-xs text-muted-foreground truncate",children:Z.email},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_w.jsxDEV(p4,{variant:"outline",className:"shrink-0 border-green-500/50 text-green-600 text-xs",children:"Active"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this));return v(_w.jsxDEV(D5,{children:[_w.jsxDEV(i4,{className:"pb-2",children:[_w.jsxDEV(p8,{className:"text-base",children:q?"Create Account":"Sign In"},void 0,!1,void 0,this),_w.jsxDEV(l8,{className:"text-xs",children:q?"Register to save your OAuth credentials":"Login to manage your API keys and credentials"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_w.jsxDEV(K2,{children:_w.jsxDEV("form",{onSubmit:M,className:"space-y-3",children:[_w.jsxDEV("div",{className:"space-y-2",children:[_w.jsxDEV(z9,{type:"email",placeholder:"Email",value:_,onChange:(P)=>O(P.target.value),required:!0,className:"h-9"},void 0,!1,void 0,this),_w.jsxDEV(z9,{type:"password",placeholder:"Password",value:A,onChange:(P)=>F(P.target.value),minLength:8,required:!0,className:"h-9"},void 0,!1,void 0,this),q&&_w.jsxDEV(z9,{type:"text",placeholder:"Username (optional)",value:L,onChange:(P)=>I(P.target.value),className:"h-9"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_w.jsxDEV(t1,{type:"submit",disabled:D,className:"w-full h-9",size:"sm",children:D?_w.jsxDEV(P1,{className:"h-4 w-4 animate-spin"},void 0,!1,void 0,this):q?"Create Account":"Sign In"},void 0,!1,void 0,this),_w.jsxDEV("button",{type:"button",className:"w-full text-xs text-muted-foreground hover:text-foreground transition-colors",onClick:()=>B(!q),children:q?"Already have an account? Sign in":"Don't have an account? Create one"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this))}var X_=c(U0(),1);var c6=c(U0(),1),FP=c(Lw(),1);function _P(Z,X=[]){let Y=[];function Q(K,q){let B=c6.createContext(q);B.displayName=K+"Context";let _=Y.length;Y=[...Y,q];let O=(F)=>{let{scope:L,children:I,...D}=F,T=L?.[Z]?.[_]||B,M=c6.useMemo(()=>D,Object.values(D));return FP.jsx(T.Provider,{value:M,children:I})};O.displayName=K+"Provider";function A(F,L){let I=L?.[Z]?.[_]||B,D=c6.useContext(I);if(D)return D;if(q!==void 0)return q;throw Error(`\`${F}\` must be used within \`${K}\``)}return[O,A]}let G=()=>{let K=Y.map((q)=>{return c6.createContext(q)});return function(B){let _=B?.[Z]||K;return c6.useMemo(()=>({[`__scope${Z}`]:{...B,[Z]:_}}),[B,_])}};return G.scopeName=Z,[Q,wd(G,...X)]}function wd(...Z){let X=Z[0];if(Z.length===1)return X;let Y=()=>{let Q=Z.map((G)=>({useScope:G(),scopeName:G.scopeName}));return function(K){let q=Q.reduce((B,{useScope:_,scopeName:O})=>{let F=_(K)[`__scope${O}`];return{...B,...F}},{});return c6.useMemo(()=>({[`__scope${X.scopeName}`]:q}),[q])}};return Y.scopeName=X.scopeName,Y}var OP=c(U0(),1),$d=c(t9(),1);var AP=c(Lw(),1),Zd=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],J_=Zd.reduce((Z,X)=>{let Y=bU(`Primitive.${X}`),Q=OP.forwardRef((G,K)=>{let{asChild:q,...B}=G,_=q?Y:X;if(typeof window<"u")window[Symbol.for("radix-ui")]=!0;return AP.jsx(_,{...B,ref:K})});return Q.displayName=`Primitive.${X}`,{...Z,[X]:Q}},{});var _G=c(Lw(),1),Y_="Progress",z_=100,[Jd,IX0]=_P(Y_),[Xd,Yd]=Jd(Y_),bP=X_.forwardRef((Z,X)=>{let{__scopeProgress:Y,value:Q=null,max:G,getValueLabel:K=zd,...q}=Z;if((G||G===0)&&!NP(G))console.error(Qd(`${G}`,"Progress"));let B=NP(G)?G:z_;if(Q!==null&&!LP(Q,B))console.error(Wd(`${Q}`,"Progress"));let _=LP(Q,B)?Q:null,O=OG(_)?K(_,B):void 0;return _G.jsx(Xd,{scope:Y,value:_,max:B,children:_G.jsx(J_.div,{"aria-valuemax":B,"aria-valuemin":0,"aria-valuenow":OG(_)?_:void 0,"aria-valuetext":O,role:"progressbar","data-state":kP(_,B),"data-value":_??void 0,"data-max":B,...q,ref:X})})});bP.displayName=Y_;var IP="ProgressIndicator",VP=X_.forwardRef((Z,X)=>{let{__scopeProgress:Y,...Q}=Z,G=Yd(IP,Y);return _G.jsx(J_.div,{"data-state":kP(G.value,G.max),"data-value":G.value??void 0,"data-max":G.max,...Q,ref:X})});VP.displayName=IP;function zd(Z,X){return`${Math.round(Z/X*100)}%`}function kP(Z,X){return Z==null?"indeterminate":Z===X?"complete":"loading"}function OG(Z){return typeof Z==="number"}function NP(Z){return OG(Z)&&!isNaN(Z)&&Z>0}function LP(Z,X){return OG(Z)&&!isNaN(Z)&&Z<=X&&Z>=0}function Qd(Z,X){return`Invalid prop \`max\` of value \`${Z}\` supplied to \`${X}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${z_}\`.`}function Wd(Z,X){return`Invalid prop \`value\` of value \`${Z}\` supplied to \`${X}\`. The \`value\` prop must be:
252
+ - a positive number
253
+ - less than the value passed to \`max\` (or ${z_} if no \`max\` prop is set)
254
+ - \`null\` or \`undefined\` if the progress is indeterminate.
255
+
256
+ Defaulting to \`null\`.`}var DP=bP,MP=VP;var Q_=c(m0(),1);function TP({className:Z,value:X,color:Y="primary",...Q}){let G={primary:"bg-primary",green:"bg-gradient-to-r from-green-500 to-lime-500",yellow:"bg-gradient-to-r from-yellow-500 to-amber-500",red:"bg-gradient-to-r from-red-500 to-red-600"};return Q_.jsxDEV(DP,{"data-slot":"progress",className:h0("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",Z),...Q,children:Q_.jsxDEV(MP,{"data-slot":"progress-indicator",className:h0("h-full w-full flex-1 transition-all",G[Y]),style:{transform:`translateX(-${100-(X||0)}%)`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var hZ=c(U0(),1);function vP(Z){let[X,Y]=hZ.useState("");return hZ.useEffect(()=>{if(!Z){Y("");return}let Q=()=>{let K=Date.now(),q=Z-K;if(q<=0){Y("Expired");return}let B=Math.floor(q/60000),_=Math.floor(q%60000/1000);Y(`${B}m ${_}s`)};Q();let G=setInterval(Q,1000);return()=>clearInterval(G)},[Z]),X}function AG(Z){let[X,Y]=hZ.useState("");return hZ.useEffect(()=>{if(!Z){Y("");return}let Q=()=>{let K=Date.now(),B=new Date(Z).getTime()-K;if(B<=0){Y("Reseting");return}let _=Math.floor(B/86400000),O=Math.floor(B%86400000/3600000),A=Math.floor(B%3600000/60000),F=Math.floor(B%60000/1000);if(_>0)Y(`${_}d ${O}h`);else if(O>0)Y(`${O}h ${A}m`);else if(A>0)Y(`${A}m ${F}s`);else Y(`${F}s`)};Q();let G=setInterval(Q,1000);return()=>clearInterval(G)},[Z]),X}var k_=c(U0(),1);var P0=c(U0(),1);var EP=c(U0(),1),Fd=c(t9(),1);var C1=c(U0(),1);var NG=c(Lw(),1);function PP(Z){let X=Hd(Z),Y=C1.forwardRef((Q,G)=>{let{children:K,...q}=Q,B=C1.Children.toArray(K),_=B.find(qd);if(_){let O=_.props.children,A=B.map((F)=>{if(F===_){if(C1.Children.count(O)>1)return C1.Children.only(null);return C1.isValidElement(O)?O.props.children:null}else return F});return NG.jsx(X,{...q,ref:G,children:C1.isValidElement(O)?C1.cloneElement(O,void 0,A):null})}return NG.jsx(X,{...q,ref:G,children:K})});return Y.displayName=`${Z}.Slot`,Y}function Hd(Z){let X=C1.forwardRef((Y,Q)=>{let{children:G,...K}=Y;if(C1.isValidElement(G)){let q=Ud(G),B=Bd(K,G.props);if(G.type!==C1.Fragment)B.ref=Q?G7(Q,q):q;return C1.cloneElement(G,B)}return C1.Children.count(G)>1?C1.Children.only(null):null});return X.displayName=`${Z}.SlotClone`,X}var Kd=Symbol("radix.slottable");function qd(Z){return C1.isValidElement(Z)&&typeof Z.type==="function"&&"__radixId"in Z.type&&Z.type.__radixId===Kd}function Bd(Z,X){let Y={...X};for(let Q in X){let G=Z[Q],K=X[Q];if(/^on[A-Z]/.test(Q)){if(G&&K)Y[Q]=(...B)=>{let _=K(...B);return G(...B),_};else if(G)Y[Q]=G}else if(Q==="style")Y[Q]={...G,...K};else if(Q==="className")Y[Q]=[G,K].filter(Boolean).join(" ")}return{...Z,...Y}}function Ud(Z){let X=Object.getOwnPropertyDescriptor(Z.props,"ref")?.get,Y=X&&"isReactWarning"in X&&X.isReactWarning;if(Y)return Z.ref;if(X=Object.getOwnPropertyDescriptor(Z,"ref")?.get,Y=X&&"isReactWarning"in X&&X.isReactWarning,Y)return Z.props.ref;return Z.props.ref||Z.ref}var gP=c(Lw(),1),_d=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],B2=_d.reduce((Z,X)=>{let Y=PP(`Primitive.${X}`),Q=EP.forwardRef((G,K)=>{let{asChild:q,...B}=G,_=q?Y:X;if(typeof window<"u")window[Symbol.for("radix-ui")]=!0;return gP.jsx(_,{...B,ref:K})});return Q.displayName=`Primitive.${X}`,{...Z,[X]:Q}},{});var u5=c(U0(),1);var CP=c(U0(),1),z4=globalThis?.document?CP.useLayoutEffect:()=>{};var RP=c(U0(),1);function Od(Z,X){return RP.useReducer((Y,Q)=>{return X[Y][Q]??Y},Z)}var Q9=(Z)=>{let{present:X,children:Y}=Z,Q=Ad(X),G=typeof Y==="function"?Y({present:Q.isPresent}):u5.Children.only(Y),K=W5(Q.ref,Nd(G));return typeof Y==="function"||Q.isPresent?u5.cloneElement(G,{ref:K}):null};Q9.displayName="Presence";function Ad(Z){let[X,Y]=u5.useState(),Q=u5.useRef(null),G=u5.useRef(Z),K=u5.useRef("none"),q=Z?"mounted":"unmounted",[B,_]=Od(q,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u5.useEffect(()=>{let O=LG(Q.current);K.current=B==="mounted"?O:"none"},[B]),z4(()=>{let O=Q.current,A=G.current;if(A!==Z){let L=K.current,I=LG(O);if(Z)_("MOUNT");else if(I==="none"||O?.display==="none")_("UNMOUNT");else if(A&&L!==I)_("ANIMATION_OUT");else _("UNMOUNT");G.current=Z}},[Z,_]),z4(()=>{if(X){let O,A=X.ownerDocument.defaultView??window,F=(I)=>{let T=LG(Q.current).includes(CSS.escape(I.animationName));if(I.target===X&&T){if(_("ANIMATION_END"),!G.current){let M=X.style.animationFillMode;X.style.animationFillMode="forwards",O=A.setTimeout(()=>{if(X.style.animationFillMode==="forwards")X.style.animationFillMode=M})}}},L=(I)=>{if(I.target===X)K.current=LG(Q.current)};return X.addEventListener("animationstart",L),X.addEventListener("animationcancel",F),X.addEventListener("animationend",F),()=>{A.clearTimeout(O),X.removeEventListener("animationstart",L),X.removeEventListener("animationcancel",F),X.removeEventListener("animationend",F)}}else _("ANIMATION_END")},[X,_]),{isPresent:["mounted","unmountSuspended"].includes(B),ref:u5.useCallback((O)=>{Q.current=O?getComputedStyle(O):null,Y(O)},[])}}function LG(Z){return Z?.animationName||"none"}function Nd(Z){let X=Object.getOwnPropertyDescriptor(Z.props,"ref")?.get,Y=X&&"isReactWarning"in X&&X.isReactWarning;if(Y)return Z.ref;if(X=Object.getOwnPropertyDescriptor(Z,"ref")?.get,Y=X&&"isReactWarning"in X&&X.isReactWarning,Y)return Z.props.ref;return Z.props.ref||Z.ref}var u6=c(U0(),1),jP=c(Lw(),1);function W9(Z,X=[]){let Y=[];function Q(K,q){let B=u6.createContext(q),_=Y.length;Y=[...Y,q];let O=(F)=>{let{scope:L,children:I,...D}=F,T=L?.[Z]?.[_]||B,M=u6.useMemo(()=>D,Object.values(D));return jP.jsx(T.Provider,{value:M,children:I})};O.displayName=K+"Provider";function A(F,L){let I=L?.[Z]?.[_]||B,D=u6.useContext(I);if(D)return D;if(q!==void 0)return q;throw Error(`\`${F}\` must be used within \`${K}\``)}return[O,A]}let G=()=>{let K=Y.map((q)=>{return u6.createContext(q)});return function(B){let _=B?.[Z]||K;return u6.useMemo(()=>({[`__scope${Z}`]:{...B,[Z]:_}}),[B,_])}};return G.scopeName=Z,[Q,Ld(G,...X)]}function Ld(...Z){let X=Z[0];if(Z.length===1)return X;let Y=()=>{let Q=Z.map((G)=>({useScope:G(),scopeName:G.scopeName}));return function(K){let q=Q.reduce((B,{useScope:_,scopeName:O})=>{let F=_(K)[`__scope${O}`];return{...B,...F}},{});return u6.useMemo(()=>({[`__scope${X.scopeName}`]:q}),[q])}};return Y.scopeName=X.scopeName,Y}var fZ=c(U0(),1);function G9(Z){let X=fZ.useRef(Z);return fZ.useEffect(()=>{X.current=Z}),fZ.useMemo(()=>(...Y)=>X.current?.(...Y),[])}var bG=c(U0(),1),bd=c(Lw(),1),Id=bG.createContext(void 0);function IG(Z){let X=bG.useContext(Id);return Z||X||"ltr"}function SP(Z,[X,Y]){return Math.min(Y,Math.max(X,Z))}var fX0=!!(typeof window<"u"&&window.document&&window.document.createElement);function S2(Z,X,{checkForDefaultPrevented:Y=!0}={}){return function(G){if(Z?.(G),Y===!1||!G.defaultPrevented)return X?.(G)}}var hP=c(U0(),1),bw=c(Lw(),1);function Vd(Z,X){return hP.useReducer((Y,Q)=>{return X[Y][Q]??Y},Z)}var W_="ScrollArea",[fP,aX0]=W9(W_),[kd,x2]=fP(W_),yP=P0.forwardRef((Z,X)=>{let{__scopeScrollArea:Y,type:Q="hover",dir:G,scrollHideDelay:K=600,...q}=Z,[B,_]=P0.useState(null),[O,A]=P0.useState(null),[F,L]=P0.useState(null),[I,D]=P0.useState(null),[T,M]=P0.useState(null),[v,P]=P0.useState(0),[E,u]=P0.useState(0),[l,p]=P0.useState(!1),[n,j]=P0.useState(!1),y=W5(X,($0)=>_($0)),m=IG(G);return bw.jsx(kd,{scope:Y,type:Q,dir:m,scrollHideDelay:K,scrollArea:B,viewport:O,onViewportChange:A,content:F,onContentChange:L,scrollbarX:I,onScrollbarXChange:D,scrollbarXEnabled:l,onScrollbarXEnabledChange:p,scrollbarY:T,onScrollbarYChange:M,scrollbarYEnabled:n,onScrollbarYEnabledChange:j,onCornerWidthChange:P,onCornerHeightChange:u,children:bw.jsx(B2.div,{dir:m,...q,ref:y,style:{position:"relative",["--radix-scroll-area-corner-width"]:v+"px",["--radix-scroll-area-corner-height"]:E+"px",...Z.style}})})});yP.displayName=W_;var dP="ScrollAreaViewport",mP=P0.forwardRef((Z,X)=>{let{__scopeScrollArea:Y,children:Q,nonce:G,...K}=Z,q=x2(dP,Y),B=P0.useRef(null),_=W5(X,B,q.onViewportChange);return bw.jsxs(bw.Fragment,{children:[bw.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:G}),bw.jsx(B2.div,{"data-radix-scroll-area-viewport":"",...K,ref:_,style:{overflowX:q.scrollbarXEnabled?"scroll":"hidden",overflowY:q.scrollbarYEnabled?"scroll":"hidden",...Z.style},children:bw.jsx("div",{ref:q.onContentChange,style:{minWidth:"100%",display:"table"},children:Q})})]})});mP.displayName=dP;var Z6="ScrollAreaScrollbar",G_=P0.forwardRef((Z,X)=>{let{forceMount:Y,...Q}=Z,G=x2(Z6,Z.__scopeScrollArea),{onScrollbarXEnabledChange:K,onScrollbarYEnabledChange:q}=G,B=Z.orientation==="horizontal";return P0.useEffect(()=>{return B?K(!0):q(!0),()=>{B?K(!1):q(!1)}},[B,K,q]),G.type==="hover"?bw.jsx(Dd,{...Q,ref:X,forceMount:Y}):G.type==="scroll"?bw.jsx(Md,{...Q,ref:X,forceMount:Y}):G.type==="auto"?bw.jsx(cP,{...Q,ref:X,forceMount:Y}):G.type==="always"?bw.jsx(H_,{...Q,ref:X}):null});G_.displayName=Z6;var Dd=P0.forwardRef((Z,X)=>{let{forceMount:Y,...Q}=Z,G=x2(Z6,Z.__scopeScrollArea),[K,q]=P0.useState(!1);return P0.useEffect(()=>{let B=G.scrollArea,_=0;if(B){let O=()=>{window.clearTimeout(_),q(!0)},A=()=>{_=window.setTimeout(()=>q(!1),G.scrollHideDelay)};return B.addEventListener("pointerenter",O),B.addEventListener("pointerleave",A),()=>{window.clearTimeout(_),B.removeEventListener("pointerenter",O),B.removeEventListener("pointerleave",A)}}},[G.scrollArea,G.scrollHideDelay]),bw.jsx(Q9,{present:Y||K,children:bw.jsx(cP,{"data-state":K?"visible":"hidden",...Q,ref:X})})}),Md=P0.forwardRef((Z,X)=>{let{forceMount:Y,...Q}=Z,G=x2(Z6,Z.__scopeScrollArea),K=Z.orientation==="horizontal",q=MG(()=>_("SCROLL_END"),100),[B,_]=Vd("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return P0.useEffect(()=>{if(B==="idle"){let O=window.setTimeout(()=>_("HIDE"),G.scrollHideDelay);return()=>window.clearTimeout(O)}},[B,G.scrollHideDelay,_]),P0.useEffect(()=>{let O=G.viewport,A=K?"scrollLeft":"scrollTop";if(O){let F=O[A],L=()=>{let I=O[A];if(F!==I)_("SCROLL"),q();F=I};return O.addEventListener("scroll",L),()=>O.removeEventListener("scroll",L)}},[G.viewport,K,_,q]),bw.jsx(Q9,{present:Y||B!=="hidden",children:bw.jsx(H_,{"data-state":B==="hidden"?"hidden":"visible",...Q,ref:X,onPointerEnter:S2(Z.onPointerEnter,()=>_("POINTER_ENTER")),onPointerLeave:S2(Z.onPointerLeave,()=>_("POINTER_LEAVE"))})})}),cP=P0.forwardRef((Z,X)=>{let Y=x2(Z6,Z.__scopeScrollArea),{forceMount:Q,...G}=Z,[K,q]=P0.useState(!1),B=Z.orientation==="horizontal",_=MG(()=>{if(Y.viewport){let O=Y.viewport.offsetWidth<Y.viewport.scrollWidth,A=Y.viewport.offsetHeight<Y.viewport.scrollHeight;q(B?O:A)}},10);return yZ(Y.viewport,_),yZ(Y.content,_),bw.jsx(Q9,{present:Q||K,children:bw.jsx(H_,{"data-state":K?"visible":"hidden",...G,ref:X})})}),H_=P0.forwardRef((Z,X)=>{let{orientation:Y="vertical",...Q}=Z,G=x2(Z6,Z.__scopeScrollArea),K=P0.useRef(null),q=P0.useRef(0),[B,_]=P0.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),O=iP(B.viewport,B.content),A={...Q,sizes:B,onSizesChange:_,hasThumb:Boolean(O>0&&O<1),onThumbChange:(L)=>K.current=L,onThumbPointerUp:()=>q.current=0,onThumbPointerDown:(L)=>q.current=L};function F(L,I){return Cd(L,q.current,B,I)}if(Y==="horizontal")return bw.jsx(Td,{...A,ref:X,onThumbPositionChange:()=>{if(G.viewport&&K.current){let L=G.viewport.scrollLeft,I=xP(L,B,G.dir);K.current.style.transform=`translate3d(${I}px, 0, 0)`}},onWheelScroll:(L)=>{if(G.viewport)G.viewport.scrollLeft=L},onDragScroll:(L)=>{if(G.viewport)G.viewport.scrollLeft=F(L,G.dir)}});if(Y==="vertical")return bw.jsx(vd,{...A,ref:X,onThumbPositionChange:()=>{if(G.viewport&&K.current){let L=G.viewport.scrollTop,I=xP(L,B);K.current.style.transform=`translate3d(0, ${I}px, 0)`}},onWheelScroll:(L)=>{if(G.viewport)G.viewport.scrollTop=L},onDragScroll:(L)=>{if(G.viewport)G.viewport.scrollTop=F(L)}});return null}),Td=P0.forwardRef((Z,X)=>{let{sizes:Y,onSizesChange:Q,...G}=Z,K=x2(Z6,Z.__scopeScrollArea),[q,B]=P0.useState(),_=P0.useRef(null),O=W5(X,_,K.onScrollbarXChange);return P0.useEffect(()=>{if(_.current)B(getComputedStyle(_.current))},[_]),bw.jsx(pP,{"data-orientation":"horizontal",...G,ref:O,sizes:Y,style:{bottom:0,left:K.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:K.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,["--radix-scroll-area-thumb-width"]:DG(Y)+"px",...Z.style},onThumbPointerDown:(A)=>Z.onThumbPointerDown(A.x),onDragScroll:(A)=>Z.onDragScroll(A.x),onWheelScroll:(A,F)=>{if(K.viewport){let L=K.viewport.scrollLeft+A.deltaX;if(Z.onWheelScroll(L),nP(L,F))A.preventDefault()}},onResize:()=>{if(_.current&&K.viewport&&q)Q({content:K.viewport.scrollWidth,viewport:K.viewport.offsetWidth,scrollbar:{size:_.current.clientWidth,paddingStart:kG(q.paddingLeft),paddingEnd:kG(q.paddingRight)}})}})}),vd=P0.forwardRef((Z,X)=>{let{sizes:Y,onSizesChange:Q,...G}=Z,K=x2(Z6,Z.__scopeScrollArea),[q,B]=P0.useState(),_=P0.useRef(null),O=W5(X,_,K.onScrollbarYChange);return P0.useEffect(()=>{if(_.current)B(getComputedStyle(_.current))},[_]),bw.jsx(pP,{"data-orientation":"vertical",...G,ref:O,sizes:Y,style:{top:0,right:K.dir==="ltr"?0:void 0,left:K.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)",["--radix-scroll-area-thumb-height"]:DG(Y)+"px",...Z.style},onThumbPointerDown:(A)=>Z.onThumbPointerDown(A.y),onDragScroll:(A)=>Z.onDragScroll(A.y),onWheelScroll:(A,F)=>{if(K.viewport){let L=K.viewport.scrollTop+A.deltaY;if(Z.onWheelScroll(L),nP(L,F))A.preventDefault()}},onResize:()=>{if(_.current&&K.viewport&&q)Q({content:K.viewport.scrollHeight,viewport:K.viewport.offsetHeight,scrollbar:{size:_.current.clientHeight,paddingStart:kG(q.paddingTop),paddingEnd:kG(q.paddingBottom)}})}})}),[Pd,uP]=fP(Z6),pP=P0.forwardRef((Z,X)=>{let{__scopeScrollArea:Y,sizes:Q,hasThumb:G,onThumbChange:K,onThumbPointerUp:q,onThumbPointerDown:B,onThumbPositionChange:_,onDragScroll:O,onWheelScroll:A,onResize:F,...L}=Z,I=x2(Z6,Y),[D,T]=P0.useState(null),M=W5(X,(y)=>T(y)),v=P0.useRef(null),P=P0.useRef(""),E=I.viewport,u=Q.content-Q.viewport,l=G9(A),p=G9(_),n=MG(F,10);function j(y){if(v.current){let m=y.clientX-v.current.left,$0=y.clientY-v.current.top;O({x:m,y:$0})}}return P0.useEffect(()=>{let y=(m)=>{let $0=m.target;if(D?.contains($0))l(m,u)};return document.addEventListener("wheel",y,{passive:!1}),()=>document.removeEventListener("wheel",y,{passive:!1})},[E,D,u,l]),P0.useEffect(p,[Q,p]),yZ(D,n),yZ(I.content,n),bw.jsx(Pd,{scope:Y,scrollbar:D,hasThumb:G,onThumbChange:G9(K),onThumbPointerUp:G9(q),onThumbPositionChange:p,onThumbPointerDown:G9(B),children:bw.jsx(B2.div,{...L,ref:M,style:{position:"absolute",...L.style},onPointerDown:S2(Z.onPointerDown,(y)=>{if(y.button===0){if(y.target.setPointerCapture(y.pointerId),v.current=D.getBoundingClientRect(),P.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",I.viewport)I.viewport.style.scrollBehavior="auto";j(y)}}),onPointerMove:S2(Z.onPointerMove,j),onPointerUp:S2(Z.onPointerUp,(y)=>{let m=y.target;if(m.hasPointerCapture(y.pointerId))m.releasePointerCapture(y.pointerId);if(document.body.style.webkitUserSelect=P.current,I.viewport)I.viewport.style.scrollBehavior="";v.current=null})})})}),VG="ScrollAreaThumb",K_=P0.forwardRef((Z,X)=>{let{forceMount:Y,...Q}=Z,G=uP(VG,Z.__scopeScrollArea);return bw.jsx(Q9,{present:Y||G.hasThumb,children:bw.jsx(Ed,{ref:X,...Q})})}),Ed=P0.forwardRef((Z,X)=>{let{__scopeScrollArea:Y,style:Q,...G}=Z,K=x2(VG,Y),q=uP(VG,Y),{onThumbPositionChange:B}=q,_=W5(X,(F)=>q.onThumbChange(F)),O=P0.useRef(void 0),A=MG(()=>{if(O.current)O.current(),O.current=void 0},100);return P0.useEffect(()=>{let F=K.viewport;if(F){let L=()=>{if(A(),!O.current){let I=Rd(F,B);O.current=I,B()}};return B(),F.addEventListener("scroll",L),()=>F.removeEventListener("scroll",L)}},[K.viewport,A,B]),bw.jsx(B2.div,{"data-state":q.hasThumb?"visible":"hidden",...G,ref:_,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...Q},onPointerDownCapture:S2(Z.onPointerDownCapture,(F)=>{let I=F.target.getBoundingClientRect(),D=F.clientX-I.left,T=F.clientY-I.top;q.onThumbPointerDown({x:D,y:T})}),onPointerUp:S2(Z.onPointerUp,q.onThumbPointerUp)})});K_.displayName=VG;var q_="ScrollAreaCorner",lP=P0.forwardRef((Z,X)=>{let Y=x2(q_,Z.__scopeScrollArea),Q=Boolean(Y.scrollbarX&&Y.scrollbarY);return Y.type!=="scroll"&&Q?bw.jsx(gd,{...Z,ref:X}):null});lP.displayName=q_;var gd=P0.forwardRef((Z,X)=>{let{__scopeScrollArea:Y,...Q}=Z,G=x2(q_,Y),[K,q]=P0.useState(0),[B,_]=P0.useState(0),O=Boolean(K&&B);return yZ(G.scrollbarX,()=>{let A=G.scrollbarX?.offsetHeight||0;G.onCornerHeightChange(A),_(A)}),yZ(G.scrollbarY,()=>{let A=G.scrollbarY?.offsetWidth||0;G.onCornerWidthChange(A),q(A)}),O?bw.jsx(B2.div,{...Q,ref:X,style:{width:K,height:B,position:"absolute",right:G.dir==="ltr"?0:void 0,left:G.dir==="rtl"?0:void 0,bottom:0,...Z.style}}):null});function kG(Z){return Z?parseInt(Z,10):0}function iP(Z,X){let Y=Z/X;return isNaN(Y)?0:Y}function DG(Z){let X=iP(Z.viewport,Z.content),Y=Z.scrollbar.paddingStart+Z.scrollbar.paddingEnd,Q=(Z.scrollbar.size-Y)*X;return Math.max(Q,18)}function Cd(Z,X,Y,Q="ltr"){let G=DG(Y),K=G/2,q=X||K,B=G-q,_=Y.scrollbar.paddingStart+q,O=Y.scrollbar.size-Y.scrollbar.paddingEnd-B,A=Y.content-Y.viewport,F=Q==="ltr"?[0,A]:[A*-1,0];return rP([_,O],F)(Z)}function xP(Z,X,Y="ltr"){let Q=DG(X),G=X.scrollbar.paddingStart+X.scrollbar.paddingEnd,K=X.scrollbar.size-G,q=X.content-X.viewport,B=K-Q,_=Y==="ltr"?[0,q]:[q*-1,0],O=SP(Z,_);return rP([0,q],[0,B])(O)}function rP(Z,X){return(Y)=>{if(Z[0]===Z[1]||X[0]===X[1])return X[0];let Q=(X[1]-X[0])/(Z[1]-Z[0]);return X[0]+Q*(Y-Z[0])}}function nP(Z,X){return Z>0&&Z<X}var Rd=(Z,X=()=>{})=>{let Y={left:Z.scrollLeft,top:Z.scrollTop},Q=0;return function G(){let K={left:Z.scrollLeft,top:Z.scrollTop},q=Y.left!==K.left,B=Y.top!==K.top;if(q||B)X();Y=K,Q=window.requestAnimationFrame(G)}(),()=>window.cancelAnimationFrame(Q)};function MG(Z,X){let Y=G9(Z),Q=P0.useRef(0);return P0.useEffect(()=>()=>window.clearTimeout(Q.current),[]),P0.useCallback(()=>{window.clearTimeout(Q.current),Q.current=window.setTimeout(Y,X)},[Y,X])}function yZ(Z,X){let Y=G9(X);z4(()=>{let Q=0;if(Z){let G=new ResizeObserver(()=>{cancelAnimationFrame(Q),Q=window.requestAnimationFrame(Y)});return G.observe(Z),()=>{window.cancelAnimationFrame(Q),G.unobserve(Z)}}},[Z,Y])}var aP=yP,oP=mP;var sP=lP;var y7=c(m0(),1);function tP({className:Z,children:X,...Y}){return y7.jsxDEV(aP,{"data-slot":"scroll-area",className:h0("relative",Z),...Y,children:[y7.jsxDEV(oP,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:X},void 0,!1,void 0,this),y7.jsxDEV(Sd,{},void 0,!1,void 0,this),y7.jsxDEV(sP,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Sd({className:Z,orientation:X="vertical",...Y}){return y7.jsxDEV(G_,{"data-slot":"scroll-area-scrollbar",orientation:X,className:h0("flex touch-none p-px transition-colors select-none",X==="vertical"&&"h-full w-2.5 border-l border-l-transparent",X==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",Z),...Y,children:y7.jsxDEV(K_,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var p5=c(U0(),1);var H9=c(U0(),1);var R1=c(U0(),1);var TG=c(Lw(),1);function B_(Z){let X=xd(Z),Y=R1.forwardRef((Q,G)=>{let{children:K,...q}=Q,B=R1.Children.toArray(K),_=B.find(fd);if(_){let O=_.props.children,A=B.map((F)=>{if(F===_){if(R1.Children.count(O)>1)return R1.Children.only(null);return R1.isValidElement(O)?O.props.children:null}else return F});return TG.jsx(X,{...q,ref:G,children:R1.isValidElement(O)?R1.cloneElement(O,void 0,A):null})}return TG.jsx(X,{...q,ref:G,children:K})});return Y.displayName=`${Z}.Slot`,Y}function xd(Z){let X=R1.forwardRef((Y,Q)=>{let{children:G,...K}=Y;if(R1.isValidElement(G)){let q=dd(G),B=yd(K,G.props);if(G.type!==R1.Fragment)B.ref=Q?G7(Q,q):q;return R1.cloneElement(G,B)}return R1.Children.count(G)>1?R1.Children.only(null):null});return X.displayName=`${Z}.SlotClone`,X}var hd=Symbol("radix.slottable");function fd(Z){return R1.isValidElement(Z)&&typeof Z.type==="function"&&"__radixId"in Z.type&&Z.type.__radixId===hd}function yd(Z,X){let Y={...X};for(let Q in X){let G=Z[Q],K=X[Q];if(/^on[A-Z]/.test(Q)){if(G&&K)Y[Q]=(...B)=>{let _=K(...B);return G(...B),_};else if(G)Y[Q]=G}else if(Q==="style")Y[Q]={...G,...K};else if(Q==="className")Y[Q]=[G,K].filter(Boolean).join(" ")}return{...Z,...Y}}function dd(Z){let X=Object.getOwnPropertyDescriptor(Z.props,"ref")?.get,Y=X&&"isReactWarning"in X&&X.isReactWarning;if(Y)return Z.ref;if(X=Object.getOwnPropertyDescriptor(Z,"ref")?.get,Y=X&&"isReactWarning"in X&&X.isReactWarning,Y)return Z.props.ref;return Z.props.ref||Z.ref}var vG=c(Lw(),1),md=c(U0(),1);var ud=c(Lw(),1);function wE(Z){let X=Z+"CollectionProvider",[Y,Q]=W9(X),[G,K]=Y(X,{collectionRef:{current:null},itemMap:new Map}),q=(T)=>{let{scope:M,children:v}=T,P=H9.default.useRef(null),E=H9.default.useRef(new Map).current;return vG.jsx(G,{scope:M,itemMap:E,collectionRef:P,children:v})};q.displayName=X;let B=Z+"CollectionSlot",_=B_(B),O=H9.default.forwardRef((T,M)=>{let{scope:v,children:P}=T,E=K(B,v),u=W5(M,E.collectionRef);return vG.jsx(_,{ref:u,children:P})});O.displayName=B;let A=Z+"CollectionItemSlot",F="data-radix-collection-item",L=B_(A),I=H9.default.forwardRef((T,M)=>{let{scope:v,children:P,...E}=T,u=H9.default.useRef(null),l=W5(M,u),p=K(A,v);return H9.default.useEffect(()=>{return p.itemMap.set(u,{ref:u,...E}),()=>void p.itemMap.delete(u)}),vG.jsx(L,{...{[F]:""},ref:l,children:P})});I.displayName=A;function D(T){let M=K(Z+"CollectionConsumer",T);return H9.default.useCallback(()=>{let P=M.collectionRef.current;if(!P)return[];let E=Array.from(P.querySelectorAll(`[${F}]`));return Array.from(M.itemMap.values()).sort((p,n)=>E.indexOf(p.ref.current)-E.indexOf(n.ref.current))},[M.collectionRef,M.itemMap])}return[{Provider:q,Slot:O,ItemSlot:I},D,Q]}var eP=new WeakMap,JY0=class Z extends Map{#w;constructor(X){super(X);this.#w=[...super.keys()],eP.set(this,!0)}set(X,Y){if(eP.get(this))if(this.has(X))this.#w[this.#w.indexOf(X)]=X;else this.#w.push(X);return super.set(X,Y),this}insert(X,Y,Q){let G=this.has(Y),K=this.#w.length,q=$E(X),B=q>=0?q:K+q,_=B<0||B>=K?-1:B;if(_===this.size||G&&_===this.size-1||_===-1)return this.set(Y,Q),this;let O=this.size+(G?0:1);if(q<0)B++;let A=[...this.#w],F,L=!1;for(let I=B;I<O;I++)if(B===I){let D=A[I];if(A[I]===Y)D=A[I+1];if(G)this.delete(Y);F=this.get(D),this.set(Y,Q)}else{if(!L&&A[I-1]===Y)L=!0;let D=A[L?I:I-1],T=F;F=this.get(D),this.delete(D),this.set(D,T)}return this}with(X,Y,Q){let G=new Z(this);return G.insert(X,Y,Q),G}before(X){let Y=this.#w.indexOf(X)-1;if(Y<0)return;return this.entryAt(Y)}setBefore(X,Y,Q){let G=this.#w.indexOf(X);if(G===-1)return this;return this.insert(G,Y,Q)}after(X){let Y=this.#w.indexOf(X);if(Y=Y===-1||Y===this.size-1?-1:Y+1,Y===-1)return;return this.entryAt(Y)}setAfter(X,Y,Q){let G=this.#w.indexOf(X);if(G===-1)return this;return this.insert(G+1,Y,Q)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#w=[],super.clear()}delete(X){let Y=super.delete(X);if(Y)this.#w.splice(this.#w.indexOf(X),1);return Y}deleteAt(X){let Y=this.keyAt(X);if(Y!==void 0)return this.delete(Y);return!1}at(X){let Y=U_(this.#w,X);if(Y!==void 0)return this.get(Y)}entryAt(X){let Y=U_(this.#w,X);if(Y!==void 0)return[Y,this.get(Y)]}indexOf(X){return this.#w.indexOf(X)}keyAt(X){return U_(this.#w,X)}from(X,Y){let Q=this.indexOf(X);if(Q===-1)return;let G=Q+Y;if(G<0)G=0;if(G>=this.size)G=this.size-1;return this.at(G)}keyFrom(X,Y){let Q=this.indexOf(X);if(Q===-1)return;let G=Q+Y;if(G<0)G=0;if(G>=this.size)G=this.size-1;return this.keyAt(G)}find(X,Y){let Q=0;for(let G of this){if(Reflect.apply(X,Y,[G,Q,this]))return G;Q++}return}findIndex(X,Y){let Q=0;for(let G of this){if(Reflect.apply(X,Y,[G,Q,this]))return Q;Q++}return-1}filter(X,Y){let Q=[],G=0;for(let K of this){if(Reflect.apply(X,Y,[K,G,this]))Q.push(K);G++}return new Z(Q)}map(X,Y){let Q=[],G=0;for(let K of this)Q.push([K[0],Reflect.apply(X,Y,[K,G,this])]),G++;return new Z(Q)}reduce(...X){let[Y,Q]=X,G=0,K=Q??this.at(0);for(let q of this){if(G===0&&X.length===1)K=q;else K=Reflect.apply(Y,this,[K,q,G,this]);G++}return K}reduceRight(...X){let[Y,Q]=X,G=Q??this.at(-1);for(let K=this.size-1;K>=0;K--){let q=this.at(K);if(K===this.size-1&&X.length===1)G=q;else G=Reflect.apply(Y,this,[G,q,K,this])}return G}toSorted(X){let Y=[...this.entries()].sort(X);return new Z(Y)}toReversed(){let X=new Z;for(let Y=this.size-1;Y>=0;Y--){let Q=this.keyAt(Y),G=this.get(Q);X.set(Q,G)}return X}toSpliced(...X){let Y=[...this.entries()];return Y.splice(...X),new Z(Y)}slice(X,Y){let Q=new Z,G=this.size-1;if(X===void 0)return Q;if(X<0)X=X+this.size;if(Y!==void 0&&Y>0)G=Y-1;for(let K=X;K<=G;K++){let q=this.keyAt(K),B=this.get(q);Q.set(q,B)}return Q}every(X,Y){let Q=0;for(let G of this){if(!Reflect.apply(X,Y,[G,Q,this]))return!1;Q++}return!0}some(X,Y){let Q=0;for(let G of this){if(Reflect.apply(X,Y,[G,Q,this]))return!0;Q++}return!1}};function U_(Z,X){if("at"in Array.prototype)return Array.prototype.at.call(Z,X);let Y=cd(Z,X);return Y===-1?void 0:Z[Y]}function cd(Z,X){let Y=Z.length,Q=$E(X),G=Q>=0?Q:Y+Q;return G<0||G>=Y?-1:G}function $E(Z){return Z!==Z||Z===0?0:Math.trunc(Z)}var h2=c(U0(),1);var PG=c(U0(),1);var pd=h2[" useInsertionEffect ".trim().toString()]||z4;function tY({prop:Z,defaultProp:X,onChange:Y=()=>{},caller:Q}){let[G,K,q]=ld({defaultProp:X,onChange:Y}),B=Z!==void 0,_=B?Z:G;{let A=h2.useRef(Z!==void 0);h2.useEffect(()=>{let F=A.current;if(F!==B)console.warn(`${Q} is changing from ${F?"controlled":"uncontrolled"} to ${B?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`);A.current=B},[B,Q])}let O=h2.useCallback((A)=>{if(B){let F=id(A)?A(Z):A;if(F!==Z)q.current?.(F)}else K(A)},[B,Z,K,q]);return[_,O]}function ld({defaultProp:Z,onChange:X}){let[Y,Q]=h2.useState(Z),G=h2.useRef(Y),K=h2.useRef(X);return pd(()=>{K.current=X},[X]),h2.useEffect(()=>{if(G.current!==Y)K.current?.(Y),G.current=Y},[Y,G]),[Y,Q,K]}function id(Z){return typeof Z==="function"}var zY0=Symbol("RADIX:SYNC_STATE");var $5=c(U0(),1);var F_=c(U0(),1);var rd=F_[" useId ".trim().toString()]||(()=>{return}),nd=0;function EG(Z){let[X,Y]=F_.useState(rd());return z4(()=>{if(!Z)Y((Q)=>Q??String(nd++))},[Z]),Z||(X?`radix-${X}`:"")}var d7=c(Lw(),1),gG="Collapsible",[ad,__]=W9(gG),[od,O_]=ad(gG),ZE=$5.forwardRef((Z,X)=>{let{__scopeCollapsible:Y,open:Q,defaultOpen:G,disabled:K,onOpenChange:q,...B}=Z,[_,O]=tY({prop:Q,defaultProp:G??!1,onChange:q,caller:gG});return d7.jsx(od,{scope:Y,disabled:K,contentId:EG(),open:_,onOpenToggle:$5.useCallback(()=>O((A)=>!A),[O]),children:d7.jsx(B2.div,{"data-state":N_(_),"data-disabled":K?"":void 0,...B,ref:X})})});ZE.displayName=gG;var JE="CollapsibleTrigger",XE=$5.forwardRef((Z,X)=>{let{__scopeCollapsible:Y,...Q}=Z,G=O_(JE,Y);return d7.jsx(B2.button,{type:"button","aria-controls":G.contentId,"aria-expanded":G.open||!1,"data-state":N_(G.open),"data-disabled":G.disabled?"":void 0,disabled:G.disabled,...Q,ref:X,onClick:S2(Z.onClick,G.onOpenToggle)})});XE.displayName=JE;var A_="CollapsibleContent",YE=$5.forwardRef((Z,X)=>{let{forceMount:Y,...Q}=Z,G=O_(A_,Z.__scopeCollapsible);return d7.jsx(Q9,{present:Y||G.open,children:({present:K})=>d7.jsx(sd,{...Q,ref:X,present:K})})});YE.displayName=A_;var sd=$5.forwardRef((Z,X)=>{let{__scopeCollapsible:Y,present:Q,children:G,...K}=Z,q=O_(A_,Y),[B,_]=$5.useState(Q),O=$5.useRef(null),A=W5(X,O),F=$5.useRef(0),L=F.current,I=$5.useRef(0),D=I.current,T=q.open||B,M=$5.useRef(T),v=$5.useRef(void 0);return $5.useEffect(()=>{let P=requestAnimationFrame(()=>M.current=!1);return()=>cancelAnimationFrame(P)},[]),z4(()=>{let P=O.current;if(P){v.current=v.current||{transitionDuration:P.style.transitionDuration,animationName:P.style.animationName},P.style.transitionDuration="0s",P.style.animationName="none";let E=P.getBoundingClientRect();if(F.current=E.height,I.current=E.width,!M.current)P.style.transitionDuration=v.current.transitionDuration,P.style.animationName=v.current.animationName;_(Q)}},[q.open,Q]),d7.jsx(B2.div,{"data-state":N_(q.open),"data-disabled":q.disabled?"":void 0,id:q.contentId,hidden:!T,...K,ref:A,style:{["--radix-collapsible-content-height"]:L?`${L}px`:void 0,["--radix-collapsible-content-width"]:D?`${D}px`:void 0,...Z.style},children:T&&G})});function N_(Z){return Z?"open":"closed"}var zE=ZE,QE=XE,WE=YE;var j1=c(Lw(),1),Q4="Accordion",ed=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[b_,wm,$m]=wE(Q4),[RG,TY0]=W9(Q4,[$m,__]),I_=__(),GE=p5.default.forwardRef((Z,X)=>{let{type:Y,...Q}=Z,G=Q,K=Q;return j1.jsx(b_.Provider,{scope:Z.__scopeAccordion,children:Y==="multiple"?j1.jsx(Ym,{...K,ref:X}):j1.jsx(Xm,{...G,ref:X})})});GE.displayName=Q4;var[HE,Zm]=RG(Q4),[KE,Jm]=RG(Q4,{collapsible:!1}),Xm=p5.default.forwardRef((Z,X)=>{let{value:Y,defaultValue:Q,onValueChange:G=()=>{},collapsible:K=!1,...q}=Z,[B,_]=tY({prop:Y,defaultProp:Q??"",onChange:G,caller:Q4});return j1.jsx(HE,{scope:Z.__scopeAccordion,value:p5.default.useMemo(()=>B?[B]:[],[B]),onItemOpen:_,onItemClose:p5.default.useCallback(()=>K&&_(""),[K,_]),children:j1.jsx(KE,{scope:Z.__scopeAccordion,collapsible:K,children:j1.jsx(qE,{...q,ref:X})})})}),Ym=p5.default.forwardRef((Z,X)=>{let{value:Y,defaultValue:Q,onValueChange:G=()=>{},...K}=Z,[q,B]=tY({prop:Y,defaultProp:Q??[],onChange:G,caller:Q4}),_=p5.default.useCallback((A)=>B((F=[])=>[...F,A]),[B]),O=p5.default.useCallback((A)=>B((F=[])=>F.filter((L)=>L!==A)),[B]);return j1.jsx(HE,{scope:Z.__scopeAccordion,value:q,onItemOpen:_,onItemClose:O,children:j1.jsx(KE,{scope:Z.__scopeAccordion,collapsible:!0,children:j1.jsx(qE,{...K,ref:X})})})}),[zm,jG]=RG(Q4),qE=p5.default.forwardRef((Z,X)=>{let{__scopeAccordion:Y,disabled:Q,dir:G,orientation:K="vertical",...q}=Z,B=p5.default.useRef(null),_=W5(B,X),O=wm(Y),F=IG(G)==="ltr",L=S2(Z.onKeyDown,(I)=>{if(!ed.includes(I.key))return;let D=I.target,T=O().filter((j)=>!j.ref.current?.disabled),M=T.findIndex((j)=>j.ref.current===D),v=T.length;if(M===-1)return;I.preventDefault();let P=M,E=0,u=v-1,l=()=>{if(P=M+1,P>u)P=E},p=()=>{if(P=M-1,P<E)P=u};switch(I.key){case"Home":P=E;break;case"End":P=u;break;case"ArrowRight":if(K==="horizontal")if(F)l();else p();break;case"ArrowDown":if(K==="vertical")l();break;case"ArrowLeft":if(K==="horizontal")if(F)p();else l();break;case"ArrowUp":if(K==="vertical")p();break}let n=P%v;T[n].ref.current?.focus()});return j1.jsx(zm,{scope:Y,disabled:Q,direction:G,orientation:K,children:j1.jsx(b_.Slot,{scope:Y,children:j1.jsx(B2.div,{...q,"data-orientation":K,ref:_,onKeyDown:Q?void 0:L})})})}),CG="AccordionItem",[Qm,V_]=RG(CG),BE=p5.default.forwardRef((Z,X)=>{let{__scopeAccordion:Y,value:Q,...G}=Z,K=jG(CG,Y),q=Zm(CG,Y),B=I_(Y),_=EG(),O=Q&&q.value.includes(Q)||!1,A=K.disabled||Z.disabled;return j1.jsx(Qm,{scope:Y,open:O,disabled:A,triggerId:_,children:j1.jsx(zE,{"data-orientation":K.orientation,"data-state":NE(O),...B,...G,ref:X,disabled:A,open:O,onOpenChange:(F)=>{if(F)q.onItemOpen(Q);else q.onItemClose(Q)}})})});BE.displayName=CG;var UE="AccordionHeader",FE=p5.default.forwardRef((Z,X)=>{let{__scopeAccordion:Y,...Q}=Z,G=jG(Q4,Y),K=V_(UE,Y);return j1.jsx(B2.h3,{"data-orientation":G.orientation,"data-state":NE(K.open),"data-disabled":K.disabled?"":void 0,...Q,ref:X})});FE.displayName=UE;var L_="AccordionTrigger",_E=p5.default.forwardRef((Z,X)=>{let{__scopeAccordion:Y,...Q}=Z,G=jG(Q4,Y),K=V_(L_,Y),q=Jm(L_,Y),B=I_(Y);return j1.jsx(b_.ItemSlot,{scope:Y,children:j1.jsx(QE,{"aria-disabled":K.open&&!q.collapsible||void 0,"data-orientation":G.orientation,id:K.triggerId,...B,...Q,ref:X})})});_E.displayName=L_;var OE="AccordionContent",AE=p5.default.forwardRef((Z,X)=>{let{__scopeAccordion:Y,...Q}=Z,G=jG(Q4,Y),K=V_(OE,Y),q=I_(Y);return j1.jsx(WE,{role:"region","aria-labelledby":K.triggerId,"data-orientation":G.orientation,...q,...Q,ref:X,style:{["--radix-accordion-content-height"]:"var(--radix-collapsible-content-height)",["--radix-accordion-content-width"]:"var(--radix-collapsible-content-width)",...Z.style}})});AE.displayName=OE;function NE(Z){return Z?"open":"closed"}var LE=GE,bE=BE,IE=FE,VE=_E,kE=AE;var K9=c(m0(),1);function DE({...Z}){return K9.jsxDEV(LE,{"data-slot":"accordion",...Z},void 0,!1,void 0,this)}function ME({className:Z,...X}){return K9.jsxDEV(bE,{"data-slot":"accordion-item",className:h0("border-b last:border-b-0",Z),...X},void 0,!1,void 0,this)}function TE({className:Z,children:X,...Y}){return K9.jsxDEV(IE,{className:"flex",children:K9.jsxDEV(VE,{"data-slot":"accordion-trigger",className:h0("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",Z),...Y,children:[X,K9.jsxDEV(eX,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function vE({className:Z,children:X,...Y}){return K9.jsxDEV(kE,{"data-slot":"accordion-content",className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...Y,children:K9.jsxDEV("div",{className:h0("pt-0 pb-4",Z),children:X},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function dZ(Z,X){if(X!==void 0){if(X<0)return"bg-red-500";if(X<25)return"bg-yellow-500";return"bg-green-500"}if(Z<50)return"bg-green-500";if(Z<75)return"bg-yellow-500";return"bg-red-500"}function mZ(Z,X){if(X!==void 0){if(X<0)return"Will exhaust";if(X<25)return"Close";return"On track"}if(Z<50)return"On track";if(Z<75)return"At risk";return"Over limit"}function W4(Z,X){if(X!==void 0){if(X<0)return"text-red-600";if(X<25)return"text-yellow-600";return"text-green-600"}if(Z<50)return"text-green-600";if(Z<75)return"text-yellow-600";return"text-red-600"}function cZ(Z,X,Y){if(!X||Z>=100||Z<=0)return null;let Q=Date.now(),G=new Date(X).getTime();if(!Number.isFinite(G))return null;let K=G-Q;if(K<=0)return null;let q=Y-K;if(!(q>0))return null;let B=Z/q,O=(100-Z)/B,F=(Q+O-G)/K*100;return{text:((I)=>{let D=Math.floor(I/86400000),T=Math.floor(I%86400000/3600000),M=Math.floor(I%3600000/60000);if(D>0)return`${D}d ${T}h`;if(T>0)return`${T}h ${M}m`;return`${M}m`})(O),marginPercent:F}}function PE(Z){return new Date(Z).toLocaleDateString()}function EE(Z){if(!Z)return"Never";let X=new Date(Z),Q=new Date().getTime()-X.getTime(),G=Math.floor(Q/60000),K=Math.floor(Q/3600000),q=Math.floor(Q/86400000);if(G<1)return"Just now";if(G<60)return`${G}m ago`;if(K<24)return`${K}h ago`;if(q<7)return`${q}d ago`;return X.toLocaleDateString()}var H0=c(m0(),1);function Gm(Z){return"plan_type"in Z&&"rate_limit"in Z}function D_({connected:Z}){return H0.jsxDEV("span",{className:h0("inline-block w-2 h-2 rounded-full",Z?"bg-green-500":"bg-muted-foreground/30")},void 0,!1,void 0,this)}function gE({provider:Z,onSuccess:X}){let[Y,Q]=k_.useState(""),[G,K]=k_.useState(!1);if(Z==="openai")return null;return H0.jsxDEV("form",{onSubmit:async(B)=>{if(B.preventDefault(),!Y.trim())return;K(!0);try{let _=Y.trim(),O=await u1.oauth.anthropic.callback.get({query:{code:_}});if(O.error)E1.error(`Failed to submit token: ${String(O.error.value)||"Unknown error"}`);else E1.success("Token submitted successfully"),Q(""),X?.()}catch(_){E1.error(`Error: ${_ instanceof Error?_.message:"Unknown error"}`)}finally{K(!1)}},className:"flex gap-2 pt-3 border-t",children:[H0.jsxDEV(z9,{type:"text",placeholder:"Paste callback code...",value:Y,onChange:(B)=>Q(B.target.value),className:"flex-1 text-xs h-8"},void 0,!1,void 0,this),H0.jsxDEV(t1,{type:"submit",size:"sm",variant:"outline",disabled:G||!Y.trim(),children:G?H0.jsxDEV(P1,{className:"h-3 w-3 animate-spin"},void 0,!1,void 0,this):"Submit"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function CE({models:Z,isLoading:X}){if(X)return H0.jsxDEV("div",{className:"space-y-2 pt-3 border-t",children:H0.jsxDEV(Dw,{className:"h-8 w-40"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(!Z||!Z.data||Z.data.length===0)return null;return H0.jsxDEV("div",{className:"pt-3 border-t",children:H0.jsxDEV(DE,{type:"single",collapsible:!0,children:H0.jsxDEV(ME,{value:"models",className:"border-0",children:[H0.jsxDEV(TE,{className:"py-2 hover:no-underline",children:H0.jsxDEV("span",{className:"text-sm font-medium",children:["Available Models (",Z.data.length,")"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),H0.jsxDEV(vE,{className:"pt-2 pb-0",children:H0.jsxDEV(tP,{className:"h-64",children:H0.jsxDEV("div",{className:"space-y-1.5 pr-3",children:Z.data.map((Y)=>H0.jsxDEV("div",{className:"flex items-center justify-between py-2 px-3 rounded-md bg-muted/40 hover:bg-muted/60 transition-colors cursor-pointer",onClick:()=>{navigator.clipboard.writeText(Y.id),E1.success(`Copied: ${Y.id}`)},children:[H0.jsxDEV("div",{className:"flex flex-col gap-0.5",children:[H0.jsxDEV("span",{className:"text-sm font-mono",children:Y.id},void 0,!1,void 0,this),H0.jsxDEV("span",{className:"text-xs text-muted-foreground",children:new Date(Y.created*1000).toLocaleDateString()},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H0.jsxDEV(p4,{variant:"outline",className:"text-xs",children:Y.owned_by},void 0,!1,void 0,this)]},Y.id,!0,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function RE({usage:Z,isLoading:X}){if(X)return H0.jsxDEV("div",{className:"space-y-3 pt-3 border-t",children:[H0.jsxDEV("div",{className:"space-y-1",children:[H0.jsxDEV("div",{className:"flex items-center justify-between",children:[H0.jsxDEV(Dw,{className:"h-4 w-20"},void 0,!1,void 0,this),H0.jsxDEV(Dw,{className:"h-4 w-32"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H0.jsxDEV(Dw,{className:"h-2 w-full"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H0.jsxDEV("div",{className:"space-y-1",children:[H0.jsxDEV("div",{className:"flex items-center justify-between",children:[H0.jsxDEV(Dw,{className:"h-4 w-20"},void 0,!1,void 0,this),H0.jsxDEV(Dw,{className:"h-4 w-32"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H0.jsxDEV(Dw,{className:"h-2 w-full"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);if(!Z)return null;if(Gm(Z)){let A=Z.rate_limit.primary_window.used_percent,F=Z.rate_limit.secondary_window.used_percent,L=Z.rate_limit.primary_window.reset_after_seconds,I=Z.rate_limit.secondary_window.reset_after_seconds,D=cZ(A,new Date(Z.rate_limit.primary_window.reset_at*1000).toISOString(),Z.rate_limit.primary_window.limit_window_seconds*1000),T=cZ(F,new Date(Z.rate_limit.secondary_window.reset_at*1000).toISOString(),Z.rate_limit.secondary_window.limit_window_seconds*1000);return H0.jsxDEV("div",{className:"space-y-3 pt-3 border-t",children:[H0.jsxDEV("div",{className:"space-y-1",children:[H0.jsxDEV("div",{className:"flex items-center justify-between text-sm",children:[H0.jsxDEV("span",{className:"font-medium",children:"5-Hour Quota"},void 0,!1,void 0,this),H0.jsxDEV("div",{className:"flex items-center gap-3",children:[H0.jsxDEV("span",{className:"font-mono text-muted-foreground",children:[A,"%"]},void 0,!0,void 0,this),H0.jsxDEV("span",{className:h0("text-xs",W4(A,D?.marginPercent)),children:mZ(A,D?.marginPercent)},void 0,!1,void 0,this),H0.jsxDEV("span",{className:"text-muted-foreground text-xs",children:["· Resets in ",Math.ceil(L/60),"m"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),H0.jsxDEV("div",{className:h0("h-2 w-full rounded-full overflow-hidden bg-muted",dZ(A,D?.marginPercent)),style:{width:`${Math.min(A,100)}%`}},void 0,!1,void 0,this),D&&H0.jsxDEV("div",{className:"text-xs text-muted-foreground mt-1",children:H0.jsxDEV("span",{className:W4(A,D.marginPercent),children:["Exhausts in ",D.text," (",D.marginPercent<0?"earlier":"later"," than reset)"]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H0.jsxDEV("div",{className:"space-y-1",children:[H0.jsxDEV("div",{className:"flex items-center justify-between text-sm",children:[H0.jsxDEV("span",{className:"font-medium",children:"7-Day Quota"},void 0,!1,void 0,this),H0.jsxDEV("div",{className:"flex items-center gap-3",children:[H0.jsxDEV("span",{className:"font-mono text-muted-foreground",children:[F,"%"]},void 0,!0,void 0,this),H0.jsxDEV("span",{className:h0("text-xs",W4(F,T?.marginPercent)),children:mZ(F,T?.marginPercent)},void 0,!1,void 0,this),H0.jsxDEV("span",{className:"text-muted-foreground text-xs",children:["· Resets in ",Math.ceil(I/60),"m"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),H0.jsxDEV("div",{className:h0("h-2 w-full rounded-full overflow-hidden bg-muted",dZ(F,T?.marginPercent)),style:{width:`${Math.min(F,100)}%`}},void 0,!1,void 0,this),T&&H0.jsxDEV("div",{className:"text-xs text-muted-foreground mt-1",children:H0.jsxDEV("span",{className:W4(F,T.marginPercent),children:["Exhausts in ",T.text," (",T.marginPercent<0?"earlier":"later"," ","than reset)"]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H0.jsxDEV("div",{className:"flex items-center justify-between text-xs pt-2",children:[H0.jsxDEV("span",{className:"text-muted-foreground",children:["Plan: ",Z.plan_type]},void 0,!0,void 0,this),H0.jsxDEV("span",{className:h0(Z.credits.unlimited?"text-green-600":Z.credits.has_credits?"text-muted-foreground":"text-red-600"),children:Z.credits.unlimited?"Unlimited credits":`Balance: ${Z.credits.balance}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}let Y=AG(Z.five_hour?.resets_at),Q=AG(Z.seven_day?.resets_at),G=AG(Z.seven_day_sonnet?.resets_at),K=18000000,q=604800000,B=Z.five_hour?cZ(Z.five_hour.utilization,Z.five_hour.resets_at,K):null,_=Z.seven_day?cZ(Z.seven_day.utilization,Z.seven_day.resets_at,q):null,O=Z.seven_day_sonnet?cZ(Z.seven_day_sonnet.utilization,Z.seven_day_sonnet.resets_at,q):null;if(Z.five_hour?.utilization===void 0&&Z.seven_day?.utilization===void 0&&Z.seven_day_sonnet?.utilization===void 0)return null;return H0.jsxDEV("div",{className:"space-y-3 pt-3 border-t",children:[Z.five_hour&&H0.jsxDEV("div",{className:"space-y-1",children:[H0.jsxDEV("div",{className:"flex items-center justify-between text-sm",children:[H0.jsxDEV("span",{className:"font-medium",children:"5-Hour Quota"},void 0,!1,void 0,this),H0.jsxDEV("div",{className:"flex items-center gap-3",children:[H0.jsxDEV("span",{className:"font-mono text-muted-foreground",children:[Z.five_hour.utilization,"%"]},void 0,!0,void 0,this),H0.jsxDEV("span",{className:h0("text-xs",W4(Z.five_hour.utilization,B?.marginPercent)),children:mZ(Z.five_hour.utilization,B?.marginPercent)},void 0,!1,void 0,this),H0.jsxDEV("span",{className:"text-muted-foreground text-xs",children:Y&&`· Resets in ${Y}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),H0.jsxDEV("div",{className:h0("h-2 w-full rounded-full overflow-hidden bg-muted",dZ(Z.five_hour.utilization,B?.marginPercent)),style:{width:`${Math.min(Z.five_hour.utilization,100)}%`}},void 0,!1,void 0,this),B&&H0.jsxDEV("div",{className:"text-xs text-muted-foreground mt-1",children:H0.jsxDEV("span",{className:W4(Z.five_hour.utilization,B.marginPercent),children:["Exhausts in ",B.text," (",B.marginPercent<0?"earlier":"later"," ","than reset)"]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z.seven_day&&H0.jsxDEV("div",{className:"space-y-1",children:[H0.jsxDEV("div",{className:"flex items-center justify-between text-sm",children:[H0.jsxDEV("span",{className:"font-medium",children:"7-Day Quota"},void 0,!1,void 0,this),H0.jsxDEV("div",{className:"flex items-center gap-3",children:[H0.jsxDEV("span",{className:"font-mono text-muted-foreground",children:[Z.seven_day.utilization,"%"]},void 0,!0,void 0,this),H0.jsxDEV("span",{className:h0("text-xs",W4(Z.seven_day.utilization,_?.marginPercent)),children:mZ(Z.seven_day.utilization,_?.marginPercent)},void 0,!1,void 0,this),H0.jsxDEV("span",{className:"text-muted-foreground text-xs",children:Q&&`· Resets in ${Q}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),H0.jsxDEV("div",{className:h0("h-2 w-full rounded-full overflow-hidden bg-muted",dZ(Z.seven_day.utilization,_?.marginPercent)),style:{width:`${Math.min(Z.seven_day.utilization,100)}%`}},void 0,!1,void 0,this),_&&H0.jsxDEV("div",{className:"text-xs text-muted-foreground mt-1",children:H0.jsxDEV("span",{className:W4(Z.seven_day.utilization,_.marginPercent),children:["Exhausts in ",_.text," (",_.marginPercent<0?"earlier":"later"," ","than reset)"]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z.seven_day_sonnet&&H0.jsxDEV("div",{className:"space-y-1",children:[H0.jsxDEV("div",{className:"flex items-center justify-between text-sm",children:[H0.jsxDEV("span",{className:"font-medium",children:"7-Day Sonnet"},void 0,!1,void 0,this),H0.jsxDEV("div",{className:"flex items-center gap-3",children:[H0.jsxDEV("span",{className:"font-mono text-muted-foreground",children:[Z.seven_day_sonnet.utilization,"%"]},void 0,!0,void 0,this),H0.jsxDEV("span",{className:h0("text-xs",W4(Z.seven_day_sonnet.utilization,O?.marginPercent)),children:mZ(Z.seven_day_sonnet.utilization,O?.marginPercent)},void 0,!1,void 0,this),H0.jsxDEV("span",{className:"text-muted-foreground text-xs",children:G&&`· Resets in ${G}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),H0.jsxDEV("div",{className:h0("h-2 w-full rounded-full overflow-hidden bg-muted",dZ(Z.seven_day_sonnet.utilization,O?.marginPercent)),style:{width:`${Math.min(Z.seven_day_sonnet.utilization,100)}%`}},void 0,!1,void 0,this),O&&H0.jsxDEV("div",{className:"text-xs text-muted-foreground mt-1",children:H0.jsxDEV("span",{className:W4(Z.seven_day_sonnet.utilization,O.marginPercent),children:["Exhausts in ",O.text," (",O.marginPercent<0?"earlier":"later"," than reset)"]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var E0=c(m0(),1);function M_({name:Z,status:X,isLoading:Y,loginUrl:Q,loginLabel:G,secondaryLoginUrl:K,secondaryLoginLabel:q,onRefresh:B,isRefreshing:_,usage:O,isUsageLoading:A,models:F,isModelsLoading:L,provider:I,onCallbackSuccess:D,warningComponent:T,useMagicCard:M=!1}){let v=vP(X?.expiresAt),P=v==="Expired",E=!X?.authenticated||P,u=I==="openai"?864000:28800,l=X?.expiresAt,p=0,n=0;if(l&&!P)n=Math.max(0,(l-Date.now())/1000),p=Math.min(100,n/u*100);let j=(y)=>{if(!M)return E0.jsxDEV(D5,{className:"flex flex-col",children:y},void 0,!1,void 0,this);return E0.jsxDEV(D5,{className:"flex flex-col border-none p-0 shadow-none rounded-lg",children:E0.jsxDEV(X9,{className:"p-0 rounded-lg flex flex-col flex-1",children:y},void 0,!1,void 0,this)},void 0,!1,void 0,this)};if(Y)return j(E0.jsxDEV(E0.Fragment,{children:[E0.jsxDEV(i4,{className:M?"p-4 pb-2":"pb-2",children:[E0.jsxDEV("div",{className:"flex items-center justify-between",children:[E0.jsxDEV(Dw,{className:"h-5 w-32"},void 0,!1,void 0,this),E0.jsxDEV(Dw,{className:"h-5 w-20"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),E0.jsxDEV(Dw,{className:"h-3 w-24 mt-1"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),E0.jsxDEV(K2,{className:M?"p-4 pt-2 space-y-3 flex-1":"space-y-3 flex-1",children:[E0.jsxDEV("div",{className:"flex items-center justify-between",children:[E0.jsxDEV(Dw,{className:"h-4 w-28"},void 0,!1,void 0,this),E0.jsxDEV(Dw,{className:"h-7 w-7"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),E0.jsxDEV("div",{className:"space-y-2 pt-3 border-t",children:[E0.jsxDEV(Dw,{className:"h-4 w-full"},void 0,!1,void 0,this),E0.jsxDEV(Dw,{className:"h-2 w-full"},void 0,!1,void 0,this),E0.jsxDEV(Dw,{className:"h-4 w-full"},void 0,!1,void 0,this),E0.jsxDEV(Dw,{className:"h-2 w-full"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),E0.jsxDEV("div",{className:"flex gap-2 pt-2",children:[E0.jsxDEV(Dw,{className:"h-8 w-24"},void 0,!1,void 0,this),E0.jsxDEV(Dw,{className:"h-8 w-28"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this));return j(E0.jsxDEV(E0.Fragment,{children:[E0.jsxDEV(i4,{className:M?"p-4 pb-2":"pb-2",children:[E0.jsxDEV("div",{className:"flex items-center justify-between",children:[E0.jsxDEV(p8,{className:"text-base",children:Z},void 0,!1,void 0,this),E0.jsxDEV(p4,{variant:X?.authenticated&&!P?"outline":"destructive",className:h0("text-xs font-normal",X?.authenticated&&!P&&"border-green-500/50 text-green-600"),children:X?.authenticated?P?"Expired":"Connected":"Not Connected"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X?.authenticated&&X.mode&&E0.jsxDEV(l8,{className:"text-xs",children:[X.mode," mode"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),E0.jsxDEV(K2,{className:M?"p-4 pt-2 space-y-3 flex-1":"space-y-3 flex-1",children:[T,X?.authenticated&&E0.jsxDEV("div",{className:"space-y-2",children:[E0.jsxDEV("div",{className:"flex items-center justify-between text-xs",children:[E0.jsxDEV("div",{className:"flex items-center gap-1.5 text-muted-foreground",children:[E0.jsxDEV(wY,{className:"h-3.5 w-3.5"},void 0,!1,void 0,this),E0.jsxDEV("span",{children:P?"Expired":"Expires in"},void 0,!1,void 0,this),!P&&E0.jsxDEV("span",{className:"font-mono text-foreground",children:v||"-"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),B&&E0.jsxDEV(t1,{size:"sm",variant:"ghost",className:"h-7 w-7 p-0",onClick:B,disabled:_,children:_?E0.jsxDEV(P1,{className:"h-3.5 w-3.5 animate-spin"},void 0,!1,void 0,this):E0.jsxDEV(zY,{className:"h-3.5 w-3.5"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),!P&&E0.jsxDEV("div",{className:"space-y-1",children:[E0.jsxDEV("div",{className:"flex justify-between text-xs text-muted-foreground",children:[E0.jsxDEV("span",{children:[p.toFixed(1),"%"]},void 0,!0,void 0,this),E0.jsxDEV("span",{children:[(n/60).toFixed(0)," min left"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),E0.jsxDEV(TP,{value:p,className:"h-2",color:p>60?"green":p>30?"yellow":"red"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),X?.authenticated&&E0.jsxDEV(RE,{usage:O,isLoading:A},void 0,!1,void 0,this),E0.jsxDEV(CE,{models:F,isLoading:L},void 0,!1,void 0,this),E0.jsxDEV("div",{className:"flex flex-wrap gap-2 mt-auto pt-2",children:[E0.jsxDEV(t1,{size:"sm",variant:E?"default":"outline",className:"h-8 text-xs",asChild:!0,children:E0.jsxDEV("a",{href:Q,target:"_blank",rel:"noopener noreferrer",children:[G,E0.jsxDEV(c8,{className:"ml-1 h-3 w-3"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),K&&q&&E0.jsxDEV(t1,{size:"sm",variant:"outline",className:"h-8 text-xs",asChild:!0,children:E0.jsxDEV("a",{href:K,target:"_blank",rel:"noopener noreferrer",children:[q,E0.jsxDEV(c8,{className:"ml-1 h-3 w-3"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I&&E0.jsxDEV(gE,{provider:I,onSuccess:D},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this))}var SG=c(U0(),1);var a0=c(m0(),1);function jE({user:Z,onKeyCreated:X,useMagicCard:Y=!1}){let Q=R6(),[G,K]=SG.useState(""),[q,B]=SG.useState(null),[_,O]=SG.useState(!1),{data:A,isLoading:F}=J4({queryKey:["auth","api-keys"],queryFn:async()=>{let{data:M,error:v}=await u1.auth["api-keys"].get();if(v)throw Error(String(v.value)||"Failed to fetch API keys");return M.apiKeys},enabled:!!Z}),L=S6({mutationFn:async(M)=>{let{data:v,error:P}=await u1.auth["api-keys"].post({name:M});if(P)throw Error(String(P.value)||"Failed to create API key");return v},onSuccess:(M)=>{if(M.key)B(M.key);K(""),Q.invalidateQueries({queryKey:["auth","api-keys"]}),E1.success("API key created"),X?.()},onError:(M)=>{E1.error(M.message)}}),I=S6({mutationFn:async(M)=>{let{error:v}=await u1.auth["api-keys"]({id:M.toString()}).delete();if(v)throw Error(String(v.value)||"Failed to delete API key")},onSuccess:()=>{Q.invalidateQueries({queryKey:["auth","api-keys"]}),E1.success("API key deleted")},onError:(M)=>{E1.error(M.message)}}),D=async(M)=>{await navigator.clipboard.writeText(M),O(!0),setTimeout(()=>O(!1),2000)},T=(M)=>{if(!Y)return a0.jsxDEV(D5,{children:M},void 0,!1,void 0,this);return a0.jsxDEV(D5,{className:"border-none p-0 shadow-none rounded-lg",children:a0.jsxDEV(X9,{className:"p-0 rounded-lg",children:M},void 0,!1,void 0,this)},void 0,!1,void 0,this)};if(!Z)return null;return T(a0.jsxDEV(a0.Fragment,{children:[a0.jsxDEV(i4,{className:Y?"p-4 pb-2":"pb-2",children:[a0.jsxDEV("div",{className:"flex items-center justify-between",children:[a0.jsxDEV(p8,{className:"text-base flex items-center gap-2",children:[a0.jsxDEV(ZY,{className:"h-4 w-4"},void 0,!1,void 0,this),"API Keys"]},void 0,!0,void 0,this),a0.jsxDEV(p4,{variant:"outline",className:"text-xs font-normal",children:[A?.length??0,"/5"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),a0.jsxDEV(l8,{className:"text-xs",children:"Use API keys with external apps like Cherry Studio"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),a0.jsxDEV(K2,{className:Y?"p-4 pt-2 space-y-3":"space-y-3",children:[a0.jsxDEV("div",{className:"flex gap-2",children:[a0.jsxDEV(z9,{type:"text",placeholder:"Key name (optional)",value:G,onChange:(M)=>K(M.target.value),className:"flex-1 h-8 text-xs",disabled:L.isPending},void 0,!1,void 0,this),a0.jsxDEV(t1,{size:"sm",className:"h-8 px-3",onClick:()=>L.mutate(G||void 0),disabled:L.isPending||(A?.length??0)>=5,children:L.isPending?a0.jsxDEV(P1,{className:"h-3.5 w-3.5 animate-spin"},void 0,!1,void 0,this):a0.jsxDEV(YY,{className:"h-3.5 w-3.5"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q&&a0.jsxDEV("div",{className:"p-3 rounded-md bg-green-50 dark:bg-green-950 border border-green-200 dark:border-green-800",children:[a0.jsxDEV("div",{className:"flex items-center justify-between gap-2",children:[a0.jsxDEV("div",{className:"flex-1 min-w-0",children:[a0.jsxDEV("p",{className:"text-xs text-green-700 dark:text-green-300 mb-1",children:"Copy this key now. You won't see it again!"},void 0,!1,void 0,this),a0.jsxDEV("code",{className:"text-xs font-mono break-all text-green-800 dark:text-green-200",children:q},void 0,!1,void 0,this)]},void 0,!0,void 0,this),a0.jsxDEV(t1,{size:"sm",variant:"ghost",className:"shrink-0 cursor-pointer",onClick:()=>D(q),children:_?a0.jsxDEV(K7,{className:"h-4 w-4 text-green-600"},void 0,!1,void 0,this):a0.jsxDEV(q7,{className:"h-4 w-4"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),a0.jsxDEV(t1,{size:"sm",variant:"outline",className:"mt-2 w-full text-xs",onClick:()=>B(null),children:"I've copied it"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F&&a0.jsxDEV("div",{className:"space-y-2",children:[a0.jsxDEV(Dw,{className:"h-12 w-full"},void 0,!1,void 0,this),a0.jsxDEV(Dw,{className:"h-12 w-full"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),!F&&A&&A.length>0&&a0.jsxDEV("div",{className:"space-y-2",children:A.map((M)=>a0.jsxDEV("div",{className:"flex items-center justify-between p-2 rounded-md bg-muted/40 hover:bg-muted/60 transition-colors",children:[a0.jsxDEV("div",{className:"flex-1 min-w-0",children:[a0.jsxDEV("div",{className:"flex items-center gap-2",children:[a0.jsxDEV("code",{className:"text-xs font-mono text-muted-foreground",children:M.keyPrefix},void 0,!1,void 0,this),M.name&&a0.jsxDEV("span",{className:"text-xs text-foreground truncate",children:M.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this),a0.jsxDEV("div",{className:"text-xs text-muted-foreground mt-0.5",children:["Created ",PE(M.createdAt)," · Used"," ",EE(M.lastUsedAt)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),a0.jsxDEV(t1,{size:"sm",variant:"ghost",className:"shrink-0 text-destructive hover:text-destructive",onClick:()=>I.mutate(M.id),disabled:I.isPending,children:I.isPending?a0.jsxDEV(P1,{className:"h-4 w-4 animate-spin"},void 0,!1,void 0,this):a0.jsxDEV(WY,{className:"h-4 w-4"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},M.id,!0,void 0,this))},void 0,!1,void 0,this),!F&&(!A||A.length===0)&&!q&&a0.jsxDEV("p",{className:"text-sm text-muted-foreground text-center py-4",children:"No API keys yet. Create one to use with external apps."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this))}var SE=c(U0(),1);var lw=c(m0(),1);function xE({user:Z,useMagicCard:X=!1}){let[Y,Q]=SE.useState(null),G=typeof window<"u"?window.location.origin:"",K=async(_,O)=>{await navigator.clipboard.writeText(_),Q(O),setTimeout(()=>Q(null),2000)},q=(_)=>{if(!X)return lw.jsxDEV(D5,{children:_},void 0,!1,void 0,this);return lw.jsxDEV(D5,{className:"border-none p-0 shadow-none rounded-lg",children:lw.jsxDEV(X9,{className:"p-0 rounded-lg",children:_},void 0,!1,void 0,this)},void 0,!1,void 0,this)};if(!Z)return null;let B=[{id:"anthropic",name:"Anthropic (Native)",url:`${G}/api/anthropic/v1`,description:"Use /messages endpoint with Claude models"},{id:"openai",name:"OpenAI Compatible",url:`${G}/api/anthropic/openai/v1`,description:"Use /chat/completions with Claude models"},{id:"codex",name:"Codex (ChatGPT)",url:`${G}/api/codex/v1`,description:"Use /chat/completions with GPT models"}];return q(lw.jsxDEV(lw.Fragment,{children:[lw.jsxDEV(i4,{className:X?"p-4 pb-2":"pb-2",children:[lw.jsxDEV(p8,{className:"text-base flex items-center gap-2",children:[lw.jsxDEV(c8,{className:"h-4 w-4"},void 0,!1,void 0,this),"API Endpoints"]},void 0,!0,void 0,this),lw.jsxDEV(l8,{className:"text-xs",children:"Use these base URLs in external apps like Cherry Studio"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),lw.jsxDEV(K2,{className:X?"p-4 pt-2 space-y-3":"space-y-3",children:[B.map((_)=>lw.jsxDEV("div",{className:"p-2 rounded-md bg-muted/40 space-y-1",children:[lw.jsxDEV("div",{className:"flex items-center justify-between",children:[lw.jsxDEV("span",{className:"text-sm font-medium",children:_.name},void 0,!1,void 0,this),lw.jsxDEV(t1,{size:"sm",variant:"ghost",className:"h-7 w-7 p-0 cursor-pointer",onClick:()=>K(_.url,_.id),children:Y===_.id?lw.jsxDEV(K7,{className:"h-3.5 w-3.5 text-green-600"},void 0,!1,void 0,this):lw.jsxDEV(q7,{className:"h-3.5 w-3.5"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),lw.jsxDEV("code",{className:"text-xs font-mono text-muted-foreground block truncate",children:_.url},void 0,!1,void 0,this),lw.jsxDEV("p",{className:"text-xs text-muted-foreground",children:_.description},void 0,!1,void 0,this)]},_.id,!0,void 0,this)),lw.jsxDEV("div",{className:"pt-2 border-t space-y-2",children:[lw.jsxDEV("p",{className:"text-xs font-medium",children:"Authentication"},void 0,!1,void 0,this),lw.jsxDEV("p",{className:"text-xs text-muted-foreground",children:"Use your API key as Bearer token in Authorization header:"},void 0,!1,void 0,this),lw.jsxDEV("code",{className:"text-xs font-mono bg-muted/60 px-2 py-1 rounded block",children:"Authorization: Bearer hkcc_sk_..."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this))}var y0=c(m0(),1);function hE(){let Z=R6(),X=typeof window<"u"&&(window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1"||window.location.hostname.startsWith("localhost.")),{data:Y,isLoading:Q}=J4({queryKey:["auth","me"],queryFn:async()=>{let{data:y,error:m}=await u1.auth.me.get();if(m)return null;return y.user}}),G=S6({mutationFn:async({email:y,password:m})=>{let{data:$0,error:t}=await u1.auth.login.post({email:y,password:m});if(t)throw Error(String(t.value)||"Login failed");return $0},onSuccess:()=>{Z.invalidateQueries({queryKey:["auth","me"]}),Z.invalidateQueries({queryKey:["oauth-status"]}),E1.success("Logged in successfully")},onError:(y)=>{E1.error(y.message)}}),K=S6({mutationFn:async({email:y,password:m,username:$0})=>{let{data:t,error:s}=await u1.auth.register.post({email:y,password:m,username:$0});if(s)throw Error(String(s.value)||"Registration failed");return t},onSuccess:()=>{Z.invalidateQueries({queryKey:["auth","me"]}),E1.success("Registered successfully")},onError:(y)=>{E1.error(y.message)}}),q=S6({mutationFn:async()=>{let{error:y}=await u1.auth.logout.post();if(y)throw Error("Logout failed")},onSuccess:()=>{Z.invalidateQueries({queryKey:["auth","me"]}),Z.invalidateQueries({queryKey:["oauth-status"]}),E1.success("Logged out successfully")},onError:(y)=>{E1.error(y.message)}}),{data:B,isLoading:_}=J4({queryKey:["oauth-status","anthropic"],queryFn:async()=>{let{data:y,error:m}=await u1.oauth.anthropic.status.get();if(m)throw Error("Failed to fetch Anthropic status");return y},refetchInterval:30000}),{data:O,isLoading:A}=J4({queryKey:["oauth-status","openai"],queryFn:async()=>{let{data:y,error:m}=await u1.oauth.openai.status.get();if(m)throw Error("Failed to fetch OpenAI status");return y},refetchInterval:30000}),{data:F,isLoading:L}=J4({queryKey:["usage","anthropic"],queryFn:async()=>{let y=await u1.oauth.anthropic.usage.get();if(y.error)throw Error("Failed to fetch usage");return y.data},refetchInterval:30000,enabled:B?.authenticated}),{data:I,isLoading:D}=J4({queryKey:["usage","openai"],queryFn:async()=>{let y=await u1.oauth.openai.usage.get();if(y.error)throw Error("Failed to fetch usage");return y.data},refetchInterval:30000,enabled:O?.authenticated}),{data:T,isLoading:M}=J4({queryKey:["models","anthropic"],queryFn:async()=>{let y=await u1.oauth.anthropic.models.get();if(y.error)throw Error("Failed to fetch models");return y.data},refetchInterval:300000,enabled:B?.authenticated}),{data:v,isLoading:P}=J4({queryKey:["models","openai"],queryFn:async()=>{let y=await u1.oauth.openai.models.get();if(y.error)throw Error("Failed to fetch models");return y.data},refetchInterval:300000,enabled:O?.authenticated}),E=S6({mutationFn:async()=>{let{data:y,error:m}=await u1.oauth.anthropic.refresh.post();if(m)throw Error(String(m.value)||"Refresh failed");if(!y.success)throw Error(y.error||"Refresh failed");return y},onSuccess:()=>{Z.invalidateQueries({queryKey:["oauth-status","anthropic"]}),E1.success("Anthropic token refreshed")},onError:(y)=>{E1.error(y.message)}}),u=_||A,l=B?.authenticated,p=O?.authenticated,n=(l?1:0)+(p?1:0),j=!X?y0.jsxDEV(pD,{className:"border-red-200 bg-red-50 text-red-900 dark:border-red-900 dark:bg-red-950 dark:text-red-50",children:[y0.jsxDEV(l4,{className:"h-4 w-4"},void 0,!1,void 0,this),y0.jsxDEV(lD,{children:"OpenAI OAuth requires localhost"},void 0,!1,void 0,this),y0.jsxDEV(iD,{children:"OpenAI (Codex) login is only available when accessing this dashboard from localhost due to hardcoded OAuth redirect URI restrictions. Please access via http://localhost:3000 to use OpenAI login."},void 0,!1,void 0,this)]},void 0,!0,void 0,this):void 0;return y0.jsxDEV("div",{className:"flex flex-col min-h-screen bg-background container",children:[y0.jsxDEV("header",{className:"sticky top-0 z-10 border-b bg-background/95 backdrop-blur supports-backdrop-filter:bg-background/60",children:y0.jsxDEV("div",{className:"flex h-14 items-center px-4 md:px-8",children:[y0.jsxDEV("div",{className:"flex items-center gap-4",children:[y0.jsxDEV("h1",{className:"text-lg font-semibold",children:y0.jsxDEV(oD,{children:"HKCC"},void 0,!1,void 0,this)},void 0,!1,void 0,this),y0.jsxDEV("div",{className:"hidden md:flex items-center gap-3 text-sm text-muted-foreground",children:[y0.jsxDEV("div",{className:"flex items-center gap-1.5",children:[y0.jsxDEV(D_,{connected:!!l},void 0,!1,void 0,this),y0.jsxDEV("span",{children:"Claude"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y0.jsxDEV("div",{className:"flex items-center gap-1.5",children:[y0.jsxDEV(D_,{connected:!!p},void 0,!1,void 0,this),y0.jsxDEV("span",{children:"Codex"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),y0.jsxDEV("div",{className:"ml-auto flex items-center gap-2",children:[y0.jsxDEV(GP,{},void 0,!1,void 0,this),Y?y0.jsxDEV("div",{className:"flex items-center gap-2",children:[y0.jsxDEV("span",{className:"text-sm text-muted-foreground hidden sm:inline",children:Y.username||Y.email},void 0,!1,void 0,this),y0.jsxDEV(t1,{variant:"ghost",size:"sm",onClick:()=>q.mutate(),children:y0.jsxDEV(JY,{className:"h-4 w-4"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):y0.jsxDEV(p4,{variant:"outline",className:"text-xs",children:"Not logged in"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),y0.jsxDEV("main",{className:"flex-1 px-4 md:px-8 py-6",children:y0.jsxDEV("div",{className:"grid gap-6 lg:grid-cols-[360px_1fr]",children:[y0.jsxDEV("aside",{className:"space-y-4",children:[y0.jsxDEV("div",{className:"space-y-4",children:[y0.jsxDEV("h2",{className:"text-sm font-medium text-muted-foreground uppercase tracking-wide",children:"Account"},void 0,!1,void 0,this),y0.jsxDEV(UP,{user:Y??null,onLogin:(y,m)=>G.mutate({email:y,password:m}),onRegister:(y,m,$0)=>K.mutate({email:y,password:m,username:$0}),onLogout:()=>q.mutate(),isLoading:Q||G.isPending||K.isPending,useShineBorder:!0},void 0,!1,void 0,this),y0.jsxDEV(jE,{user:Y??null,useMagicCard:!0},void 0,!1,void 0,this),y0.jsxDEV(xE,{user:Y??null,useMagicCard:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y0.jsxDEV("div",{className:"lg:hidden space-y-4",children:[y0.jsxDEV("h2",{className:"text-sm font-medium text-muted-foreground uppercase tracking-wide",children:"Status"},void 0,!1,void 0,this),y0.jsxDEV(D5,{className:"border-none p-0 shadow-none rounded-lg",children:y0.jsxDEV(X9,{className:"p-0 rounded-lg",children:y0.jsxDEV(K2,{className:"p-4",children:y0.jsxDEV("div",{className:"flex items-center justify-between text-sm",children:[y0.jsxDEV("span",{className:"text-muted-foreground",children:"Providers"},void 0,!1,void 0,this),y0.jsxDEV("span",{className:"font-medium",children:u?y0.jsxDEV(P1,{className:"h-4 w-4 animate-spin"},void 0,!1,void 0,this):`${n}/2 connected`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),y0.jsxDEV("div",{className:"space-y-4",children:[y0.jsxDEV("h2",{className:"text-sm font-medium text-muted-foreground uppercase tracking-wide",children:"Providers"},void 0,!1,void 0,this),y0.jsxDEV("div",{className:"space-y-4",children:[y0.jsxDEV(M_,{name:"Anthropic (Claude)",status:B,isLoading:_,loginUrl:"/oauth/anthropic/login?mode=max",loginLabel:"Login (Max)",secondaryLoginUrl:"/oauth/anthropic/login?mode=console",secondaryLoginLabel:"Login (Console)",onRefresh:()=>E.mutate(),isRefreshing:E.isPending,usage:F,isUsageLoading:L,models:T,isModelsLoading:M,provider:"anthropic",onCallbackSuccess:()=>{Z.invalidateQueries({queryKey:["oauth-status","anthropic"]}),Z.invalidateQueries({queryKey:["usage","anthropic"]}),Z.invalidateQueries({queryKey:["models","anthropic"]})},useMagicCard:!0},void 0,!1,void 0,this),y0.jsxDEV(M_,{name:"OpenAI (Codex)",status:O,isLoading:A,loginUrl:"/oauth/openai/login",loginLabel:"Login",usage:I,isUsageLoading:D,models:v,isModelsLoading:P,provider:"openai",warningComponent:j,useMagicCard:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),y0.jsxDEV("footer",{className:"border-t mt-auto",children:y0.jsxDEV("div",{className:"px-4 md:px-8 py-4",children:y0.jsxDEV("p",{className:"text-xs text-muted-foreground text-center",children:"HKCC Proxy Server — Claude OAuth + Codex OAuth"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var U2=c(U0(),1),Hm=(Z,X,Y,Q,G,K,q,B)=>{let _=document.documentElement,O=["light","dark"];function A(I){(Array.isArray(Z)?Z:[Z]).forEach((D)=>{let T=D==="class",M=T&&K?G.map((v)=>K[v]||v):G;T?(_.classList.remove(...M),_.classList.add(K&&K[I]?K[I]:I)):_.setAttribute(D,I)}),F(I)}function F(I){B&&O.includes(I)&&(_.style.colorScheme=I)}function L(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(Q)A(Q);else try{let I=localStorage.getItem(X)||Y,D=q&&I==="system"?L():I;A(D)}catch(I){}};var Km=U2.createContext(void 0),qm={setTheme:(Z)=>{},themes:[]},fE=()=>{var Z;return(Z=U2.useContext(Km))!=null?Z:qm};var y30=U2.memo(({forcedTheme:Z,storageKey:X,attribute:Y,enableSystem:Q,enableColorScheme:G,defaultTheme:K,value:q,themes:B,nonce:_,scriptProps:O})=>{let A=JSON.stringify([Y,X,K,Z,B,q,Q,G]).slice(1,-1);return U2.createElement("script",{...O,suppressHydrationWarning:!0,nonce:typeof window>"u"?_:"",dangerouslySetInnerHTML:{__html:`(${Hm.toString()})(${A})`}})});var m7=c(m0(),1),yE=({...Z})=>{let{theme:X="system"}=fE();return m7.jsxDEV(uD,{theme:X,className:"toaster group",icons:{success:m7.jsxDEV(m8,{className:"size-4"},void 0,!1,void 0,this),info:m7.jsxDEV($Y,{className:"size-4"},void 0,!1,void 0,this),warning:m7.jsxDEV(l4,{className:"size-4"},void 0,!1,void 0,this),error:m7.jsxDEV(u8,{className:"size-4"},void 0,!1,void 0,this),loading:m7.jsxDEV(P1,{className:"size-4 animate-spin"},void 0,!1,void 0,this)},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)"},...Z},void 0,!1,void 0,this)};var xG=c(m0(),1),dE=sB({component:()=>xG.jsxDEV(LU,{children:[xG.jsxDEV(yE,{richColors:!0},void 0,!1,void 0,this),xG.jsxDEV(hQ,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}),Bm=uX({getParentRoute:()=>dE,path:"/",component:hE}),Um=dE.addChildren([Bm]),Fm=NB(),mE=XU({routeTree:Um,history:Fm});var uE=c(m0(),1),_m=cE.createRoot(document.getElementById("elysia"));_m.render(uE.jsxDEV(zU,{router:mE},void 0,!1,void 0,this));